(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();var dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wp={exports:{}},nf={};/**
 * @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 Mg;function Ax(){if(Mg)return nf;Mg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(r,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var u in s)u!=="key"&&(o[u]=s[u])}else o=s;return s=o.ref,{$$typeof:e,type:r,key:c,ref:s!==void 0?s:null,props:o}}return nf.Fragment=n,nf.jsx=i,nf.jsxs=i,nf}var Bg;function Nx(){return Bg||(Bg=1,wp.exports=Ax()),wp.exports}var B=Nx(),_p={exports:{}},Ht={};/**
 * @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 Pg;function Cx(){if(Pg)return Ht;Pg=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),w=Symbol.iterator;function p(I){return I===null||typeof I!="object"?null:(I=w&&I[w]||I["@@iterator"],typeof I=="function"?I:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function _(I,L,z){this.props=I,this.context=L,this.refs=E,this.updater=z||A}_.prototype.isReactComponent={},_.prototype.setState=function(I,L){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,L,"setState")},_.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function j(){}j.prototype=_.prototype;function O(I,L,z){this.props=I,this.context=L,this.refs=E,this.updater=z||A}var P=O.prototype=new j;P.constructor=O,S(P,_.prototype),P.isPureReactComponent=!0;var G=Array.isArray;function J(){}var ae={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function U(I,L,z){var V=z.ref;return{$$typeof:e,type:I,key:L,ref:V!==void 0?V:null,props:z}}function le(I,L){return U(I.type,L,I.props)}function F(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function T(I){var L={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(z){return L[z]})}var X=/\/+/g;function N(I,L){return typeof I=="object"&&I!==null&&I.key!=null?T(""+I.key):L.toString(36)}function Q(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(J,J):(I.status="pending",I.then(function(L){I.status==="pending"&&(I.status="fulfilled",I.value=L)},function(L){I.status==="pending"&&(I.status="rejected",I.reason=L)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function ie(I,L,z,V,ee){var pe=typeof I;(pe==="undefined"||pe==="boolean")&&(I=null);var we=!1;if(I===null)we=!0;else switch(pe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(I.$$typeof){case e:case n:we=!0;break;case m:return we=I._init,ie(we(I._payload),L,z,V,ee)}}if(we)return ee=ee(I),we=V===""?"."+N(I,0):V,G(ee)?(z="",we!=null&&(z=we.replace(X,"$&/")+"/"),ie(ee,L,z,"",function(Ue){return Ue})):ee!=null&&(F(ee)&&(ee=le(ee,z+(ee.key==null||I&&I.key===ee.key?"":(""+ee.key).replace(X,"$&/")+"/")+we)),L.push(ee)),1;we=0;var Ae=V===""?".":V+":";if(G(I))for(var Ne=0;Ne<I.length;Ne++)V=I[Ne],pe=Ae+N(V,Ne),we+=ie(V,L,z,pe,ee);else if(Ne=p(I),typeof Ne=="function")for(I=Ne.call(I),Ne=0;!(V=I.next()).done;)V=V.value,pe=Ae+N(V,Ne++),we+=ie(V,L,z,pe,ee);else if(pe==="object"){if(typeof I.then=="function")return ie(Q(I),L,z,V,ee);throw L=String(I),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return we}function oe(I,L,z){if(I==null)return I;var V=[],ee=0;return ie(I,V,"","",function(pe){return L.call(z,pe,ee++)}),V}function me(I){if(I._status===-1){var L=I._result;L=L(),L.then(function(z){(I._status===0||I._status===-1)&&(I._status=1,I._result=z)},function(z){(I._status===0||I._status===-1)&&(I._status=2,I._result=z)}),I._status===-1&&(I._status=0,I._result=L)}if(I._status===1)return I._result.default;throw I._result}var ge=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},Z={map:oe,forEach:function(I,L,z){oe(I,function(){L.apply(this,arguments)},z)},count:function(I){var L=0;return oe(I,function(){L++}),L},toArray:function(I){return oe(I,function(L){return L})||[]},only:function(I){if(!F(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Ht.Activity=y,Ht.Children=Z,Ht.Component=_,Ht.Fragment=i,Ht.Profiler=s,Ht.PureComponent=O,Ht.StrictMode=r,Ht.Suspense=h,Ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,Ht.__COMPILER_RUNTIME={__proto__:null,c:function(I){return ae.H.useMemoCache(I)}},Ht.cache=function(I){return function(){return I.apply(null,arguments)}},Ht.cacheSignal=function(){return null},Ht.cloneElement=function(I,L,z){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var V=S({},I.props),ee=I.key;if(L!=null)for(pe in L.key!==void 0&&(ee=""+L.key),L)!ne.call(L,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&L.ref===void 0||(V[pe]=L[pe]);var pe=arguments.length-2;if(pe===1)V.children=z;else if(1<pe){for(var we=Array(pe),Ae=0;Ae<pe;Ae++)we[Ae]=arguments[Ae+2];V.children=we}return U(I.type,ee,V)},Ht.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:o,_context:I},I},Ht.createElement=function(I,L,z){var V,ee={},pe=null;if(L!=null)for(V in L.key!==void 0&&(pe=""+L.key),L)ne.call(L,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(ee[V]=L[V]);var we=arguments.length-2;if(we===1)ee.children=z;else if(1<we){for(var Ae=Array(we),Ne=0;Ne<we;Ne++)Ae[Ne]=arguments[Ne+2];ee.children=Ae}if(I&&I.defaultProps)for(V in we=I.defaultProps,we)ee[V]===void 0&&(ee[V]=we[V]);return U(I,pe,ee)},Ht.createRef=function(){return{current:null}},Ht.forwardRef=function(I){return{$$typeof:u,render:I}},Ht.isValidElement=F,Ht.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:me}},Ht.memo=function(I,L){return{$$typeof:d,type:I,compare:L===void 0?null:L}},Ht.startTransition=function(I){var L=ae.T,z={};ae.T=z;try{var V=I(),ee=ae.S;ee!==null&&ee(z,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(J,ge)}catch(pe){ge(pe)}finally{L!==null&&z.types!==null&&(L.types=z.types),ae.T=L}},Ht.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},Ht.use=function(I){return ae.H.use(I)},Ht.useActionState=function(I,L,z){return ae.H.useActionState(I,L,z)},Ht.useCallback=function(I,L){return ae.H.useCallback(I,L)},Ht.useContext=function(I){return ae.H.useContext(I)},Ht.useDebugValue=function(){},Ht.useDeferredValue=function(I,L){return ae.H.useDeferredValue(I,L)},Ht.useEffect=function(I,L){return ae.H.useEffect(I,L)},Ht.useEffectEvent=function(I){return ae.H.useEffectEvent(I)},Ht.useId=function(){return ae.H.useId()},Ht.useImperativeHandle=function(I,L,z){return ae.H.useImperativeHandle(I,L,z)},Ht.useInsertionEffect=function(I,L){return ae.H.useInsertionEffect(I,L)},Ht.useLayoutEffect=function(I,L){return ae.H.useLayoutEffect(I,L)},Ht.useMemo=function(I,L){return ae.H.useMemo(I,L)},Ht.useOptimistic=function(I,L){return ae.H.useOptimistic(I,L)},Ht.useReducer=function(I,L,z){return ae.H.useReducer(I,L,z)},Ht.useRef=function(I){return ae.H.useRef(I)},Ht.useState=function(I){return ae.H.useState(I)},Ht.useSyncExternalStore=function(I,L,z){return ae.H.useSyncExternalStore(I,L,z)},Ht.useTransition=function(){return ae.H.useTransition()},Ht.version="19.2.0",Ht}var Ig;function Wm(){return Ig||(Ig=1,_p.exports=Cx()),_p.exports}var Te=Wm();const xn=mc(Te);var Sp={exports:{}},af={},kp={exports:{}},Ap={};/**
 * @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 Fg;function Ex(){return Fg||(Fg=1,(function(e){function n(ie,oe){var me=ie.length;ie.push(oe);e:for(;0<me;){var ge=me-1>>>1,Z=ie[ge];if(0<s(Z,oe))ie[ge]=oe,ie[me]=Z,me=ge;else break e}}function i(ie){return ie.length===0?null:ie[0]}function r(ie){if(ie.length===0)return null;var oe=ie[0],me=ie.pop();if(me!==oe){ie[0]=me;e:for(var ge=0,Z=ie.length,I=Z>>>1;ge<I;){var L=2*(ge+1)-1,z=ie[L],V=L+1,ee=ie[V];if(0>s(z,me))V<Z&&0>s(ee,z)?(ie[ge]=ee,ie[V]=me,ge=V):(ie[ge]=z,ie[L]=me,ge=L);else if(V<Z&&0>s(ee,me))ie[ge]=ee,ie[V]=me,ge=V;else break e}}return oe}function s(ie,oe){var me=ie.sortIndex-oe.sortIndex;return me!==0?me:ie.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var h=[],d=[],m=1,y=null,w=3,p=!1,A=!1,S=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function P(ie){for(var oe=i(d);oe!==null;){if(oe.callback===null)r(d);else if(oe.startTime<=ie)r(d),oe.sortIndex=oe.expirationTime,n(h,oe);else break;oe=i(d)}}function G(ie){if(S=!1,P(ie),!A)if(i(h)!==null)A=!0,J||(J=!0,T());else{var oe=i(d);oe!==null&&Q(G,oe.startTime-ie)}}var J=!1,ae=-1,ne=5,U=-1;function le(){return E?!0:!(e.unstable_now()-U<ne)}function F(){if(E=!1,J){var ie=e.unstable_now();U=ie;var oe=!0;try{e:{A=!1,S&&(S=!1,j(ae),ae=-1),p=!0;var me=w;try{t:{for(P(ie),y=i(h);y!==null&&!(y.expirationTime>ie&&le());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,w=y.priorityLevel;var Z=ge(y.expirationTime<=ie);if(ie=e.unstable_now(),typeof Z=="function"){y.callback=Z,P(ie),oe=!0;break t}y===i(h)&&r(h),P(ie)}else r(h);y=i(h)}if(y!==null)oe=!0;else{var I=i(d);I!==null&&Q(G,I.startTime-ie),oe=!1}}break e}finally{y=null,w=me,p=!1}oe=void 0}}finally{oe?T():J=!1}}}var T;if(typeof O=="function")T=function(){O(F)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,N=X.port2;X.port1.onmessage=F,T=function(){N.postMessage(null)}}else T=function(){_(F,0)};function Q(ie,oe){ae=_(function(){ie(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ie){ie.callback=null},e.unstable_forceFrameRate=function(ie){0>ie||125<ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<ie?Math.floor(1e3/ie):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_next=function(ie){switch(w){case 1:case 2:case 3:var oe=3;break;default:oe=w}var me=w;w=oe;try{return ie()}finally{w=me}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(ie,oe){switch(ie){case 1:case 2:case 3:case 4:case 5:break;default:ie=3}var me=w;w=ie;try{return oe()}finally{w=me}},e.unstable_scheduleCallback=function(ie,oe,me){var ge=e.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?ge+me:ge):me=ge,ie){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=me+Z,ie={id:m++,callback:oe,priorityLevel:ie,startTime:me,expirationTime:Z,sortIndex:-1},me>ge?(ie.sortIndex=me,n(d,ie),i(h)===null&&ie===i(d)&&(S?(j(ae),ae=-1):S=!0,Q(G,me-ge))):(ie.sortIndex=Z,n(h,ie),A||p||(A=!0,J||(J=!0,T()))),ie},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(ie){var oe=w;return function(){var me=w;w=oe;try{return ie.apply(this,arguments)}finally{w=me}}}})(Ap)),Ap}var Ug;function Lx(){return Ug||(Ug=1,kp.exports=Ex()),kp.exports}var Np={exports:{}},sa={};/**
 * @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 qg;function zx(){if(qg)return sa;qg=1;var e=Wm();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(h,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:h,containerInfo:d,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return sa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,sa.createPortal=function(h,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return o(h,d,null,m)},sa.flushSync=function(h){var d=c.T,m=r.p;try{if(c.T=null,r.p=2,h)return h()}finally{c.T=d,r.p=m,r.d.f()}},sa.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(h,d))},sa.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},sa.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var m=d.as,y=u(m,d.crossOrigin),w=typeof d.integrity=="string"?d.integrity:void 0,p=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:p}):m==="script"&&r.d.X(h,{crossOrigin:y,integrity:w,fetchPriority:p,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},sa.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=u(d.as,d.crossOrigin);r.d.M(h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(h)},sa.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=u(m,d.crossOrigin);r.d.L(h,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},sa.preloadModule=function(h,d){if(typeof h=="string")if(d){var m=u(d.as,d.crossOrigin);r.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(h)},sa.requestFormReset=function(h){r.d.r(h)},sa.unstable_batchedUpdates=function(h,d){return h(d)},sa.useFormState=function(h,d,m){return c.H.useFormState(h,d,m)},sa.useFormStatus=function(){return c.H.useHostTransitionStatus()},sa.version="19.2.0",sa}var Hg;function Tx(){if(Hg)return Np.exports;Hg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Np.exports=zx(),Np.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 Yg;function jx(){if(Yg)return af;Yg=1;var e=Lx(),n=Wm(),i=Tx();function r(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function o(t){var a=t,l=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(l=a.return),t=a.return;while(t)}return a.tag===3?l:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function u(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(o(t)!==t)throw Error(r(188))}function d(t){var a=t.alternate;if(!a){if(a=o(t),a===null)throw Error(r(188));return a!==t?null:t}for(var l=t,f=a;;){var v=l.return;if(v===null)break;var x=v.alternate;if(x===null){if(f=v.return,f!==null){l=f;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===l)return h(v),t;if(x===f)return h(v),a;x=x.sibling}throw Error(r(188))}if(l.return!==f.return)l=v,f=x;else{for(var D=!1,$=v.child;$;){if($===l){D=!0,l=v,f=x;break}if($===f){D=!0,f=v,l=x;break}$=$.sibling}if(!D){for($=x.child;$;){if($===l){D=!0,l=x,f=v;break}if($===f){D=!0,f=x,l=v;break}$=$.sibling}if(!D)throw Error(r(189))}}if(l.alternate!==f)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:a}function m(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=m(t),a!==null)return a;t=t.sibling}return null}var y=Object.assign,w=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function T(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var X=Symbol.for("react.client.reference");function N(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===X?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case G:return"Suspense";case J:return"SuspenseList";case U:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case O:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case P:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ae:return a=t.displayName||null,a!==null?a:N(t.type)||"Memo";case ne:a=t._payload,t=t._init;try{return N(t(a))}catch{}}return null}var Q=Array.isArray,ie=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},ge=[],Z=-1;function I(t){return{current:t}}function L(t){0>Z||(t.current=ge[Z],ge[Z]=null,Z--)}function z(t,a){Z++,ge[Z]=t.current,t.current=a}var V=I(null),ee=I(null),pe=I(null),we=I(null);function Ae(t,a){switch(z(pe,a),z(ee,t),z(V,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?rg(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=rg(a),t=og(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}L(V),z(V,t)}function Ne(){L(V),L(ee),L(pe)}function Ue(t){t.memoizedState!==null&&z(we,t);var a=V.current,l=og(a,t.type);a!==l&&(z(ee,t),z(V,l))}function Xe(t){ee.current===t&&(L(V),L(ee)),we.current===t&&(L(we),Qc._currentValue=me)}var at,rt;function M(t){if(at===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);at=a&&a[1]||"",rt=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+at+t+rt}var Y=!1;function xe(t,a){if(!t||Y)return"";Y=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Ye){var qe=Ye}Reflect.construct(t,[],et)}else{try{et.call()}catch(Ye){qe=Ye}t.call(et.prototype)}}else{try{throw Error()}catch(Ye){qe=Ye}(et=t())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(Ye){if(Ye&&qe&&typeof Ye.stack=="string")return[Ye.stack,qe.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=f.DetermineComponentFrameRoot(),D=x[0],$=x[1];if(D&&$){var ye=D.split(`
`),Fe=$.split(`
`);for(v=f=0;f<ye.length&&!ye[f].includes("DetermineComponentFrameRoot");)f++;for(;v<Fe.length&&!Fe[v].includes("DetermineComponentFrameRoot");)v++;if(f===ye.length||v===Fe.length)for(f=ye.length-1,v=Fe.length-1;1<=f&&0<=v&&ye[f]!==Fe[v];)v--;for(;1<=f&&0<=v;f--,v--)if(ye[f]!==Fe[v]){if(f!==1||v!==1)do if(f--,v--,0>v||ye[f]!==Fe[v]){var Ze=`
`+ye[f].replace(" at new "," at ");return t.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",t.displayName)),Ze}while(1<=f&&0<=v);break}}}finally{Y=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?M(l):""}function ue(t,a){switch(t.tag){case 26:case 27:case 5:return M(t.type);case 16:return M("Lazy");case 13:return t.child!==a&&a!==null?M("Suspense Fallback"):M("Suspense");case 19:return M("SuspenseList");case 0:case 15:return xe(t.type,!1);case 11:return xe(t.type.render,!1);case 1:return xe(t.type,!0);case 31:return M("Activity");default:return""}}function re(t){try{var a="",l=null;do a+=ue(t,l),l=t,t=t.return;while(t);return a}catch(f){return`
Error generating stack: `+f.message+`
`+f.stack}}var ce=Object.prototype.hasOwnProperty,De=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,_e=e.unstable_shouldYield,He=e.unstable_requestPaint,Ee=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,ve=e.unstable_ImmediatePriority,Be=e.unstable_UserBlockingPriority,Ge=e.unstable_NormalPriority,$e=e.unstable_LowPriority,st=e.unstable_IdlePriority,lt=e.log,Vt=e.unstable_setDisableYieldValue,ct=null,dt=null;function _t(t){if(typeof lt=="function"&&Vt(t),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(ct,t)}catch{}}var mt=Math.clz32?Math.clz32:Et,pt=Math.log,Ft=Math.LN2;function Et(t){return t>>>=0,t===0?32:31-(pt(t)/Ft|0)|0}var Ot=256,dn=262144,Mt=4194304;function wt(t){var a=t&42;if(a!==0)return a;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function nn(t,a,l){var f=t.pendingLanes;if(f===0)return 0;var v=0,x=t.suspendedLanes,D=t.pingedLanes;t=t.warmLanes;var $=f&134217727;return $!==0?(f=$&~x,f!==0?v=wt(f):(D&=$,D!==0?v=wt(D):l||(l=$&~t,l!==0&&(v=wt(l))))):($=f&~x,$!==0?v=wt($):D!==0?v=wt(D):l||(l=f&~t,l!==0&&(v=wt(l)))),v===0?0:a!==0&&a!==v&&(a&x)===0&&(x=v&-v,l=a&-a,x>=l||x===32&&(l&4194048)!==0)?a:v}function Xa(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function Fi(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 gr(){var t=Mt;return Mt<<=1,(Mt&62914560)===0&&(Mt=4194304),t}function Aa(t){for(var a=[],l=0;31>l;l++)a.push(t);return a}function Nt(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Br(t,a,l,f,v,x){var D=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var $=t.entanglements,ye=t.expirationTimes,Fe=t.hiddenUpdates;for(l=D&~l;0<l;){var Ze=31-mt(l),et=1<<Ze;$[Ze]=0,ye[Ze]=-1;var qe=Fe[Ze];if(qe!==null)for(Fe[Ze]=null,Ze=0;Ze<qe.length;Ze++){var Ye=qe[Ze];Ye!==null&&(Ye.lane&=-536870913)}l&=~et}f!==0&&vr(t,f,0),x!==0&&v===0&&t.tag!==0&&(t.suspendedLanes|=x&~(D&~a))}function vr(t,a,l){t.pendingLanes|=a,t.suspendedLanes&=~a;var f=31-mt(a);t.entangledLanes|=a,t.entanglements[f]=t.entanglements[f]|1073741824|l&261930}function da(t,a){var l=t.entangledLanes|=a;for(t=t.entanglements;l;){var f=31-mt(l),v=1<<f;v&a|t[f]&a&&(t[f]|=a),l&=~v}}function pa(t,a){var l=a&-a;return l=(l&42)!==0?1:Bn(l),(l&(t.suspendedLanes|a))!==0?0:l}function Bn(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function si(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ki(){var t=oe.p;return t!==0?t:(t=window.event,t===void 0?32:Lg(t.type))}function yo(t,a){var l=oe.p;try{return oe.p=t,a()}finally{oe.p=l}}var Zi=Math.random().toString(36).slice(2),wn="__reactFiber$"+Zi,Fn="__reactProps$"+Zi,Ui="__reactContainer$"+Zi,ma="__reactEvents$"+Zi,Na="__reactListeners$"+Zi,Xo="__reactHandles$"+Zi,Za="__reactResources$"+Zi,Ka="__reactMarker$"+Zi;function bo(t){delete t[wn],delete t[Fn],delete t[ma],delete t[Na],delete t[Xo]}function Ja(t){var a=t[wn];if(a)return a;for(var l=t.parentNode;l;){if(a=l[Ui]||l[wn]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(t=dg(t);t!==null;){if(l=t[wn])return l;t=dg(t)}return a}t=l,l=t.parentNode}return null}function Qa(t){if(t=t[wn]||t[Ui]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function Zo(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(r(33))}function yr(t){var a=t[Za];return a||(a=t[Za]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function $n(t){t[Ka]=!0}var vl=new Set,ga={};function $a(t,a){Pr(t,a),Pr(t+"Capture",a)}function Pr(t,a){for(ga[t]=a,t=0;t<a.length;t++)vl.add(a[t])}var yl=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]*$"),bl={},xl={};function ou(t){return ce.call(xl,t)?!0:ce.call(bl,t)?!1:yl.test(t)?xl[t]=!0:(bl[t]=!0,!1)}function va(t,a,l){if(ou(a))if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+l)}}function Ir(t,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+l)}}function er(t,a,l,f){if(f===null)t.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(a,l,""+f)}}function cn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wl(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function br(t,a,l){var f=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var v=f.get,x=f.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return v.call(this)},set:function(D){l=""+D,x.call(this,D)}}),Object.defineProperty(t,a,{enumerable:f.enumerable}),{getValue:function(){return l},setValue:function(D){l=""+D},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function xo(t){if(!t._valueTracker){var a=wl(t)?"checked":"value";t._valueTracker=br(t,a,""+t[a])}}function _l(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var l=a.getValue(),f="";return t&&(f=wl(t)?t.checked?"true":"false":t.value),t=f,t!==l?(a.setValue(t),!0):!1}function Ki(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var vi=/[\n"\\]/g;function li(t){return t.replace(vi,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Es(t,a,l,f,v,x,D,$){t.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?t.type=D:t.removeAttribute("type"),a!=null?D==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+cn(a)):t.value!==""+cn(a)&&(t.value=""+cn(a)):D!=="submit"&&D!=="reset"||t.removeAttribute("value"),a!=null?Sl(t,D,cn(a)):l!=null?Sl(t,D,cn(l)):f!=null&&t.removeAttribute("value"),v==null&&x!=null&&(t.defaultChecked=!!x),v!=null&&(t.checked=v&&typeof v!="function"&&typeof v!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?t.name=""+cn($):t.removeAttribute("name")}function su(t,a,l,f,v,x,D,$){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.type=x),a!=null||l!=null){if(!(x!=="submit"&&x!=="reset"||a!=null)){xo(t);return}l=l!=null?""+cn(l):"",a=a!=null?""+cn(a):l,$||a===t.value||(t.value=a),t.defaultValue=a}f=f??v,f=typeof f!="function"&&typeof f!="symbol"&&!!f,t.checked=$?t.checked:!!f,t.defaultChecked=!!f,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(t.name=D),xo(t)}function Sl(t,a,l){a==="number"&&Ki(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Ji(t,a,l,f){if(t=t.options,a){a={};for(var v=0;v<l.length;v++)a["$"+l[v]]=!0;for(l=0;l<t.length;l++)v=a.hasOwnProperty("$"+t[l].value),t[l].selected!==v&&(t[l].selected=v),v&&f&&(t[l].defaultSelected=!0)}else{for(l=""+cn(l),a=null,v=0;v<t.length;v++){if(t[v].value===l){t[v].selected=!0,f&&(t[v].defaultSelected=!0);return}a!==null||t[v].disabled||(a=t[v])}a!==null&&(a.selected=!0)}}function kl(t,a,l){if(a!=null&&(a=""+cn(a),a!==t.value&&(t.value=a),l==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=l!=null?""+cn(l):""}function Al(t,a,l,f){if(a==null){if(f!=null){if(l!=null)throw Error(r(92));if(Q(f)){if(1<f.length)throw Error(r(93));f=f[0]}l=f}l==null&&(l=""),a=l}l=cn(a),t.defaultValue=l,f=t.textContent,f===l&&f!==""&&f!==null&&(t.value=f),xo(t)}function tr(t,a){if(a){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=a;return}}t.textContent=a}var Ko=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 lu(t,a,l){var f=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?f?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":f?t.setProperty(a,l):typeof l!="number"||l===0||Ko.has(a)?a==="float"?t.cssFloat=l:t[a]=(""+l).trim():t[a]=l+"px"}function uu(t,a,l){if(a!=null&&typeof a!="object")throw Error(r(62));if(t=t.style,l!=null){for(var f in l)!l.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?t.setProperty(f,""):f==="float"?t.cssFloat="":t[f]="");for(var v in a)f=a[v],a.hasOwnProperty(v)&&l[v]!==f&&lu(t,v,f)}else for(var x in a)a.hasOwnProperty(x)&&lu(t,x,a[x])}function Nl(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Cl=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"]]),cu=/^[\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 aa(t){return cu.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function nr(){}var Fr=null;function Jo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wo=null,Tt=null;function fu(t){var a=Qa(t);if(a&&(t=a.stateNode)){var l=t[Fn]||null;e:switch(t=a.stateNode,a.type){case"input":if(Es(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+li(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var f=l[a];if(f!==t&&f.form===t.form){var v=f[Fn]||null;if(!v)throw Error(r(90));Es(f,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<l.length;a++)f=l[a],f.form===t.form&&_l(f)}break e;case"textarea":kl(t,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Ji(t,!!l.multiple,a,!1)}}}var El=!1;function hu(t,a,l){if(El)return t(a,l);El=!0;try{var f=t(a);return f}finally{if(El=!1,(wo!==null||Tt!==null)&&(Qf(),wo&&(a=wo,t=Tt,Tt=wo=null,fu(a),t)))for(a=0;a<t.length;a++)fu(t[a])}}function ya(t,a){var l=t.stateNode;if(l===null)return null;var f=l[Fn]||null;if(f===null)return null;l=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(t=t.type,f=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!f;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,a,typeof l));return l}var Ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=!1;if(Ti)try{var Qo={};Object.defineProperty(Qo,"passive",{get:function(){Ll=!0}}),window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch{Ll=!1}var ba=null,$o=null,xr=null;function du(){if(xr)return xr;var t,a=$o,l=a.length,f,v="value"in ba?ba.value:ba.textContent,x=v.length;for(t=0;t<l&&a[t]===v[t];t++);var D=l-t;for(f=1;f<=D&&a[l-f]===v[x-f];f++);return xr=v.slice(t,1<f?1-f:void 0)}function Ca(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Ls(){return!0}function zs(){return!1}function Ai(t){function a(l,f,v,x,D){this._reactName=l,this._targetInst=v,this.type=f,this.nativeEvent=x,this.target=D,this.currentTarget=null;for(var $ in t)t.hasOwnProperty($)&&(l=t[$],this[$]=l?l(x):x[$]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Ls:zs,this.isPropagationStopped=zs,this}return y(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),a}var wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ea=Ai(wr),Ur=y({},wr,{view:0,detail:0}),Ts=Ai(Ur),es,qr,Hr,ts=y({},Ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dt,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Hr&&(Hr&&t.type==="mousemove"?(es=t.screenX-Hr.screenX,qr=t.screenY-Hr.screenY):qr=es=0,Hr=t),es)},movementY:function(t){return"movementY"in t?t.movementY:qr}}),zl=Ai(ts),Yr=y({},ts,{dataTransfer:0}),Gr=Ai(Yr),pu=y({},Ur,{relatedTarget:0}),Vr=Ai(pu),mu=y({},wr,{animationName:0,elapsedTime:0,pseudoElement:0}),k=Ai(mu),q=y({},wr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),de=Ai(q),be=y({},wr,{data:0}),Le=Ai(be),Ke={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nt={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"},vt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function St(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=vt[t])?!!a[t]:!1}function Dt(){return St}var Ut=y({},Ur,{key:function(t){if(t.key){var a=Ke[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Ca(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?nt[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dt,charCode:function(t){return t.type==="keypress"?Ca(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ca(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),an=Ai(Ut),Un=y({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ei=Ai(Un),Nn=y({},Ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dt}),yi=Ai(Nn),ui=y({},wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ji=Ai(ui),Wr=y({},ts,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ir=Ai(Wr),Xr=y({},wr,{newState:0,oldState:0}),Tl=Ai(Xr),js=[9,13,27,32],_r=Ti&&"CompositionEvent"in window,ar=null;Ti&&"documentMode"in document&&(ar=document.documentMode);var ns=Ti&&"TextEvent"in window&&!ar,Zr=Ti&&(!_r||ar&&8<ar&&11>=ar),Ni=" ",_o=!1;function So(t,a){switch(t){case"keyup":return js.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Sr=!1;function Qi(t,a){switch(t){case"compositionend":return Rs(a);case"keypress":return a.which!==32?null:(_o=!0,Ni);case"textInput":return t=a.data,t===Ni&&_o?null:t;default:return null}}function Kr(t,a){if(Sr)return t==="compositionend"||!_r&&So(t,a)?(t=du(),xr=$o=ba=null,Sr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Zr&&a.locale!=="ko"?null:a.data;default:return null}}var Os={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 jl(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!Os[t.type]:a==="textarea"}function xa(t,a,l,f){wo?Tt?Tt.push(f):Tt=[f]:wo=f,a=rh(a,"onChange"),0<a.length&&(l=new Ea("onChange","change",null,l,f),t.push({event:l,listeners:a}))}var rr=null,Jr=null;function Rl(t){$0(t,0)}function or(t){var a=Zo(t);if(_l(a))return t}function ko(t,a){if(t==="change")return a}var ra=!1;if(Ti){var $i;if(Ti){var kr="oninput"in document;if(!kr){var Ar=document.createElement("div");Ar.setAttribute("oninput","return;"),kr=typeof Ar.oninput=="function"}$i=kr}else $i=!1;ra=$i&&(!document.documentMode||9<document.documentMode)}function Qr(){rr&&(rr.detachEvent("onpropertychange",Ds),Jr=rr=null)}function Ds(t){if(t.propertyName==="value"&&or(Jr)){var a=[];xa(a,Jr,t,Jo(t)),hu(Rl,a)}}function Ms(t,a,l){t==="focusin"?(Qr(),rr=a,Jr=l,rr.attachEvent("onpropertychange",Ds)):t==="focusout"&&Qr()}function ti(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return or(Jr)}function gu(t,a){if(t==="click")return or(a)}function Nr(t,a){if(t==="input"||t==="change")return or(a)}function Cr(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var Ri=typeof Object.is=="function"?Object.is:Cr;function $r(t,a){if(Ri(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var l=Object.keys(t),f=Object.keys(a);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var v=l[f];if(!ce.call(a,v)||!Ri(t[v],a[v]))return!1}return!0}function Bs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ps(t,a){var l=Bs(t);t=0;for(var f;l;){if(l.nodeType===3){if(f=t+l.textContent.length,t<=a&&f>=a)return{node:l,offset:a-t};t=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Bs(l)}}function eo(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?eo(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function to(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Ki(t.document);a instanceof t.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)t=a.contentWindow;else break;a=Ki(t.document)}return a}function Er(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var is=Ti&&"documentMode"in document&&11>=document.documentMode,wa=null,no=null,qi=null,La=!1;function fn(t,a,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;La||wa==null||wa!==Ki(f)||(f=wa,"selectionStart"in f&&Er(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),qi&&$r(qi,f)||(qi=f,f=rh(no,"onSelect"),0<f.length&&(a=new Ea("onSelect","select",null,a,l),t.push({event:a,listeners:f}),a.target=wa)))}function rn(t,a){var l={};return l[t.toLowerCase()]=a.toLowerCase(),l["Webkit"+t]="webkit"+a,l["Moz"+t]="moz"+a,l}var Cn={animationend:rn("Animation","AnimationEnd"),animationiteration:rn("Animation","AnimationIteration"),animationstart:rn("Animation","AnimationStart"),transitionrun:rn("Transition","TransitionRun"),transitionstart:rn("Transition","TransitionStart"),transitioncancel:rn("Transition","TransitionCancel"),transitionend:rn("Transition","TransitionEnd")},ni={},Lr={};Ti&&(Lr=document.createElement("div").style,"AnimationEvent"in window||(delete Cn.animationend.animation,delete Cn.animationiteration.animation,delete Cn.animationstart.animation),"TransitionEvent"in window||delete Cn.transitionend.transition);function sr(t){if(ni[t])return ni[t];if(!Cn[t])return t;var a=Cn[t],l;for(l in a)if(a.hasOwnProperty(l)&&l in Lr)return ni[t]=a[l];return t}var as=sr("animationend"),Ol=sr("animationiteration"),wc=sr("animationstart"),Ef=sr("transitionrun"),Lf=sr("transitionstart"),zf=sr("transitioncancel"),_c=sr("transitionend"),Sc=new Map,rs="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(" ");rs.push("scrollEnd");function za(t,a){Sc.set(t,a),$a(a,[t])}var Dl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},_a=[],os=0,vu=0;function Ml(){for(var t=os,a=vu=os=0;a<t;){var l=_a[a];_a[a++]=null;var f=_a[a];_a[a++]=null;var v=_a[a];_a[a++]=null;var x=_a[a];if(_a[a++]=null,f!==null&&v!==null){var D=f.pending;D===null?v.next=v:(v.next=D.next,D.next=v),f.pending=v}x!==0&&Pl(l,v,x)}}function Bl(t,a,l,f){_a[os++]=t,_a[os++]=a,_a[os++]=l,_a[os++]=f,vu|=f,t.lanes|=f,t=t.alternate,t!==null&&(t.lanes|=f)}function yu(t,a,l,f){return Bl(t,a,l,f),Hi(t)}function io(t,a){return Bl(t,null,null,a),Hi(t)}function Pl(t,a,l){t.lanes|=l;var f=t.alternate;f!==null&&(f.lanes|=l);for(var v=!1,x=t.return;x!==null;)x.childLanes|=l,f=x.alternate,f!==null&&(f.childLanes|=l),x.tag===22&&(t=x.stateNode,t===null||t._visibility&1||(v=!0)),t=x,x=x.return;return t.tag===3?(x=t.stateNode,v&&a!==null&&(v=31-mt(l),t=x.hiddenUpdates,f=t[v],f===null?t[v]=[a]:f.push(a),a.lane=l|536870912),x):null}function Hi(t){if(50<Gc)throw Gc=0,Gd=null,Error(r(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Oi={};function bu(t,a,l,f){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yi(t,a,l,f){return new bu(t,a,l,f)}function xu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ta(t,a){var l=t.alternate;return l===null?(l=Yi(t.tag,a,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=a,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,a=t.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Il(t,a){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,a=l.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Is(t,a,l,f,v,x){var D=0;if(f=t,typeof t=="function")xu(t)&&(D=1);else if(typeof t=="string")D=dx(t,l,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case U:return t=Yi(31,l,a,v),t.elementType=U,t.lanes=x,t;case S:return Ao(l.children,v,x,a);case E:D=8,v|=24;break;case _:return t=Yi(12,l,a,v|2),t.elementType=_,t.lanes=x,t;case G:return t=Yi(13,l,a,v),t.elementType=G,t.lanes=x,t;case J:return t=Yi(19,l,a,v),t.elementType=J,t.lanes=x,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case O:D=10;break e;case j:D=9;break e;case P:D=11;break e;case ae:D=14;break e;case ne:D=16,f=null;break e}D=29,l=Error(r(130,t===null?"null":typeof t,"")),f=null}return a=Yi(D,l,a,v),a.elementType=t,a.type=f,a.lanes=x,a}function Ao(t,a,l,f){return t=Yi(7,t,f,a),t.lanes=l,t}function Fl(t,a,l){return t=Yi(6,t,null,a),t.lanes=l,t}function wu(t){var a=Yi(18,null,null,0);return a.stateNode=t,a}function Fs(t,a,l){return a=Yi(4,t.children!==null?t.children:[],t.key,a),a.lanes=l,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var _u=new WeakMap;function ja(t,a){if(typeof t=="object"&&t!==null){var l=_u.get(t);return l!==void 0?l:(a={value:t,source:a,stack:re(a)},_u.set(t,a),a)}return{value:t,source:a,stack:re(a)}}var Us=[],ss=0,Su=null,Ul=0,Ra=[],Oa=0,No=null,Da=1,Ma="";function Sa(t,a){Us[ss++]=Ul,Us[ss++]=Su,Su=t,Ul=a}function Tf(t,a,l){Ra[Oa++]=Da,Ra[Oa++]=Ma,Ra[Oa++]=No,No=t;var f=Da;t=Ma;var v=32-mt(f)-1;f&=~(1<<v),l+=1;var x=32-mt(a)+v;if(30<x){var D=v-v%5;x=(f&(1<<D)-1).toString(32),f>>=D,v-=D,Da=1<<32-mt(a)+v|l<<v|f,Ma=x+t}else Da=1<<x|l<<v|f,Ma=t}function kc(t){t.return!==null&&(Sa(t,1),Tf(t,1,0))}function ku(t){for(;t===Su;)Su=Us[--ss],Us[ss]=null,Ul=Us[--ss],Us[ss]=null;for(;t===No;)No=Ra[--Oa],Ra[Oa]=null,Ma=Ra[--Oa],Ra[Oa]=null,Da=Ra[--Oa],Ra[Oa]=null}function jf(t,a){Ra[Oa++]=Da,Ra[Oa++]=Ma,Ra[Oa++]=No,Da=a.id,Ma=a.overflow,No=t}var Di=null,jn=null,Jt=!1,ea=null,Wn=!1,lr=Error(r(519));function Co(t){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qs(ja(a,t)),lr}function Ac(t){var a=t.stateNode,l=t.type,f=t.memoizedProps;switch(a[wn]=t,a[Fn]=f,l){case"dialog":$t("cancel",a),$t("close",a);break;case"iframe":case"object":case"embed":$t("load",a);break;case"video":case"audio":for(l=0;l<Wc.length;l++)$t(Wc[l],a);break;case"source":$t("error",a);break;case"img":case"image":case"link":$t("error",a),$t("load",a);break;case"details":$t("toggle",a);break;case"input":$t("invalid",a),su(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":$t("invalid",a);break;case"textarea":$t("invalid",a),Al(a,f.value,f.defaultValue,f.children)}l=f.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||f.suppressHydrationWarning===!0||ig(a.textContent,l)?(f.popover!=null&&($t("beforetoggle",a),$t("toggle",a)),f.onScroll!=null&&$t("scroll",a),f.onScrollEnd!=null&&$t("scrollend",a),f.onClick!=null&&(a.onclick=nr),a=!0):a=!1,a||Co(t,!0)}function ao(t){for(Di=t.return;Di;)switch(Di.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Di=Di.return}}function Mi(t){if(t!==Di)return!1;if(!Jt)return ao(t),Jt=!0,!1;var a=t.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||op(t.type,t.memoizedProps)),l=!l),l&&jn&&Co(t),ao(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));jn=hg(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));jn=hg(t)}else a===27?(a=jn,nl(t.type)?(t=fp,fp=null,jn=t):jn=a):jn=Di?Rr(t.stateNode.nextSibling):null;return!0}function ls(){jn=Di=null,Jt=!1}function Nc(){var t=ea;return t!==null&&(qa===null?qa=t:qa.push.apply(qa,t),ea=null),t}function qs(t){ea===null?ea=[t]:ea.push(t)}var Au=I(null),Eo=null,zr=null;function Lo(t,a,l){z(Au,a._currentValue),a._currentValue=l}function Ba(t){t._currentValue=Au.current,L(Au)}function Hs(t,a,l){for(;t!==null;){var f=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),t===l)break;t=t.return}}function us(t,a,l,f){var v=t.child;for(v!==null&&(v.return=t);v!==null;){var x=v.dependencies;if(x!==null){var D=v.child;x=x.firstContext;e:for(;x!==null;){var $=x;x=v;for(var ye=0;ye<a.length;ye++)if($.context===a[ye]){x.lanes|=l,$=x.alternate,$!==null&&($.lanes|=l),Hs(x.return,l,t),f||(D=null);break e}x=$.next}}else if(v.tag===18){if(D=v.return,D===null)throw Error(r(341));D.lanes|=l,x=D.alternate,x!==null&&(x.lanes|=l),Hs(D,l,t),D=null}else D=v.child;if(D!==null)D.return=v;else for(D=v;D!==null;){if(D===t){D=null;break}if(v=D.sibling,v!==null){v.return=D.return,D=v;break}D=D.return}v=D}}function zo(t,a,l,f){t=null;for(var v=a,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var D=v.alternate;if(D===null)throw Error(r(387));if(D=D.memoizedProps,D!==null){var $=v.type;Ri(v.pendingProps.value,D.value)||(t!==null?t.push($):t=[$])}}else if(v===we.current){if(D=v.alternate,D===null)throw Error(r(387));D.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(t!==null?t.push(Qc):t=[Qc])}v=v.return}t!==null&&us(a,t,l,f),a.flags|=262144}function Nu(t){for(t=t.firstContext;t!==null;){if(!Ri(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function To(t){Eo=t,zr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Bi(t){return Rf(Eo,t)}function Cu(t,a){return Eo===null&&To(t),Rf(t,a)}function Rf(t,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},zr===null){if(t===null)throw Error(r(308));zr=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else zr=zr.next=a;return l}var cd=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(l,f){t.push(f)}};this.abort=function(){a.aborted=!0,t.forEach(function(l){return l()})}},fd=e.unstable_scheduleCallback,hd=e.unstable_NormalPriority,ii={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ys(){return{controller:new cd,data:new Map,refCount:0}}function ql(t){t.refCount--,t.refCount===0&&fd(hd,function(){t.controller.abort()})}var Hl=null,Eu=0,g=0,b=null;function C(t,a){if(Hl===null){var l=Hl=[];Eu=0,g=Jd(),b={status:"pending",value:void 0,then:function(f){l.push(f)}}}return Eu++,a.then(R,R),a}function R(){if(--Eu===0&&Hl!==null){b!==null&&(b.status="fulfilled");var t=Hl;Hl=null,g=0,b=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function H(t,a){var l=[],f={status:"pending",value:null,reason:null,then:function(v){l.push(v)}};return t.then(function(){f.status="fulfilled",f.value=a;for(var v=0;v<l.length;v++)(0,l[v])(a)},function(v){for(f.status="rejected",f.reason=v,v=0;v<l.length;v++)(0,l[v])(void 0)}),f}var W=ie.S;ie.S=function(t,a){C0=Ee(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&C(t,a),W!==null&&W(t,a)};var K=I(null);function te(){var t=K.current;return t!==null?t:On.pooledCache}function se(t,a){a===null?z(K,K.current):z(K,a.pool)}function he(){var t=te();return t===null?null:{parent:ii._currentValue,pool:t}}var Se=Error(r(460)),Pe=Error(r(474)),fe=Error(r(542)),Ce={then:function(){}};function Oe(t){return t=t.status,t==="fulfilled"||t==="rejected"}function We(t,a,l){switch(l=t[l],l===void 0?t.push(a):l!==a&&(a.then(nr,nr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,it(t),t;default:if(typeof a.status=="string")a.then(nr,nr);else{if(t=On,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=a,t.status="pending",t.then(function(f){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=f}},function(f){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,it(t),t}throw Ve=a,Se}}function Me(t){try{var a=t._init;return a(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ve=l,Se):l}}var Ve=null;function Je(){if(Ve===null)throw Error(r(459));var t=Ve;return Ve=null,t}function it(t){if(t===Se||t===fe)throw Error(r(483))}var tt=null,bt=0;function ft(t){var a=bt;return bt+=1,tt===null&&(tt=[]),We(tt,t,a)}function Bt(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function gt(t,a){throw a.$$typeof===w?Error(r(525)):(t=Object.prototype.toString.call(a),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Kt(t){function a(ze,ke){if(t){var Ie=ze.deletions;Ie===null?(ze.deletions=[ke],ze.flags|=16):Ie.push(ke)}}function l(ze,ke){if(!t)return null;for(;ke!==null;)a(ze,ke),ke=ke.sibling;return null}function f(ze){for(var ke=new Map;ze!==null;)ze.key!==null?ke.set(ze.key,ze):ke.set(ze.index,ze),ze=ze.sibling;return ke}function v(ze,ke){return ze=Ta(ze,ke),ze.index=0,ze.sibling=null,ze}function x(ze,ke,Ie){return ze.index=Ie,t?(Ie=ze.alternate,Ie!==null?(Ie=Ie.index,Ie<ke?(ze.flags|=67108866,ke):Ie):(ze.flags|=67108866,ke)):(ze.flags|=1048576,ke)}function D(ze){return t&&ze.alternate===null&&(ze.flags|=67108866),ze}function $(ze,ke,Ie,Qe){return ke===null||ke.tag!==6?(ke=Fl(Ie,ze.mode,Qe),ke.return=ze,ke):(ke=v(ke,Ie),ke.return=ze,ke)}function ye(ze,ke,Ie,Qe){var zt=Ie.type;return zt===S?Ze(ze,ke,Ie.props.children,Qe,Ie.key):ke!==null&&(ke.elementType===zt||typeof zt=="object"&&zt!==null&&zt.$$typeof===ne&&Me(zt)===ke.type)?(ke=v(ke,Ie.props),Bt(ke,Ie),ke.return=ze,ke):(ke=Is(Ie.type,Ie.key,Ie.props,null,ze.mode,Qe),Bt(ke,Ie),ke.return=ze,ke)}function Fe(ze,ke,Ie,Qe){return ke===null||ke.tag!==4||ke.stateNode.containerInfo!==Ie.containerInfo||ke.stateNode.implementation!==Ie.implementation?(ke=Fs(Ie,ze.mode,Qe),ke.return=ze,ke):(ke=v(ke,Ie.children||[]),ke.return=ze,ke)}function Ze(ze,ke,Ie,Qe,zt){return ke===null||ke.tag!==7?(ke=Ao(Ie,ze.mode,Qe,zt),ke.return=ze,ke):(ke=v(ke,Ie),ke.return=ze,ke)}function et(ze,ke,Ie){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return ke=Fl(""+ke,ze.mode,Ie),ke.return=ze,ke;if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case p:return Ie=Is(ke.type,ke.key,ke.props,null,ze.mode,Ie),Bt(Ie,ke),Ie.return=ze,Ie;case A:return ke=Fs(ke,ze.mode,Ie),ke.return=ze,ke;case ne:return ke=Me(ke),et(ze,ke,Ie)}if(Q(ke)||T(ke))return ke=Ao(ke,ze.mode,Ie,null),ke.return=ze,ke;if(typeof ke.then=="function")return et(ze,ft(ke),Ie);if(ke.$$typeof===O)return et(ze,Cu(ze,ke),Ie);gt(ze,ke)}return null}function qe(ze,ke,Ie,Qe){var zt=ke!==null?ke.key:null;if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return zt!==null?null:$(ze,ke,""+Ie,Qe);if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case p:return Ie.key===zt?ye(ze,ke,Ie,Qe):null;case A:return Ie.key===zt?Fe(ze,ke,Ie,Qe):null;case ne:return Ie=Me(Ie),qe(ze,ke,Ie,Qe)}if(Q(Ie)||T(Ie))return zt!==null?null:Ze(ze,ke,Ie,Qe,null);if(typeof Ie.then=="function")return qe(ze,ke,ft(Ie),Qe);if(Ie.$$typeof===O)return qe(ze,ke,Cu(ze,Ie),Qe);gt(ze,Ie)}return null}function Ye(ze,ke,Ie,Qe,zt){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return ze=ze.get(Ie)||null,$(ke,ze,""+Qe,zt);if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case p:return ze=ze.get(Qe.key===null?Ie:Qe.key)||null,ye(ke,ze,Qe,zt);case A:return ze=ze.get(Qe.key===null?Ie:Qe.key)||null,Fe(ke,ze,Qe,zt);case ne:return Qe=Me(Qe),Ye(ze,ke,Ie,Qe,zt)}if(Q(Qe)||T(Qe))return ze=ze.get(Ie)||null,Ze(ke,ze,Qe,zt,null);if(typeof Qe.then=="function")return Ye(ze,ke,Ie,ft(Qe),zt);if(Qe.$$typeof===O)return Ye(ze,ke,Ie,Cu(ke,Qe),zt);gt(ke,Qe)}return null}function yt(ze,ke,Ie,Qe){for(var zt=null,pn=null,kt=ke,Wt=ke=0,tn=null;kt!==null&&Wt<Ie.length;Wt++){kt.index>Wt?(tn=kt,kt=null):tn=kt.sibling;var mn=qe(ze,kt,Ie[Wt],Qe);if(mn===null){kt===null&&(kt=tn);break}t&&kt&&mn.alternate===null&&a(ze,kt),ke=x(mn,ke,Wt),pn===null?zt=mn:pn.sibling=mn,pn=mn,kt=tn}if(Wt===Ie.length)return l(ze,kt),Jt&&Sa(ze,Wt),zt;if(kt===null){for(;Wt<Ie.length;Wt++)kt=et(ze,Ie[Wt],Qe),kt!==null&&(ke=x(kt,ke,Wt),pn===null?zt=kt:pn.sibling=kt,pn=kt);return Jt&&Sa(ze,Wt),zt}for(kt=f(kt);Wt<Ie.length;Wt++)tn=Ye(kt,ze,Wt,Ie[Wt],Qe),tn!==null&&(t&&tn.alternate!==null&&kt.delete(tn.key===null?Wt:tn.key),ke=x(tn,ke,Wt),pn===null?zt=tn:pn.sibling=tn,pn=tn);return t&&kt.forEach(function(sl){return a(ze,sl)}),Jt&&Sa(ze,Wt),zt}function Rt(ze,ke,Ie,Qe){if(Ie==null)throw Error(r(151));for(var zt=null,pn=null,kt=ke,Wt=ke=0,tn=null,mn=Ie.next();kt!==null&&!mn.done;Wt++,mn=Ie.next()){kt.index>Wt?(tn=kt,kt=null):tn=kt.sibling;var sl=qe(ze,kt,mn.value,Qe);if(sl===null){kt===null&&(kt=tn);break}t&&kt&&sl.alternate===null&&a(ze,kt),ke=x(sl,ke,Wt),pn===null?zt=sl:pn.sibling=sl,pn=sl,kt=tn}if(mn.done)return l(ze,kt),Jt&&Sa(ze,Wt),zt;if(kt===null){for(;!mn.done;Wt++,mn=Ie.next())mn=et(ze,mn.value,Qe),mn!==null&&(ke=x(mn,ke,Wt),pn===null?zt=mn:pn.sibling=mn,pn=mn);return Jt&&Sa(ze,Wt),zt}for(kt=f(kt);!mn.done;Wt++,mn=Ie.next())mn=Ye(kt,ze,Wt,mn.value,Qe),mn!==null&&(t&&mn.alternate!==null&&kt.delete(mn.key===null?Wt:mn.key),ke=x(mn,ke,Wt),pn===null?zt=mn:pn.sibling=mn,pn=mn);return t&&kt.forEach(function(kx){return a(ze,kx)}),Jt&&Sa(ze,Wt),zt}function Tn(ze,ke,Ie,Qe){if(typeof Ie=="object"&&Ie!==null&&Ie.type===S&&Ie.key===null&&(Ie=Ie.props.children),typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case p:e:{for(var zt=Ie.key;ke!==null;){if(ke.key===zt){if(zt=Ie.type,zt===S){if(ke.tag===7){l(ze,ke.sibling),Qe=v(ke,Ie.props.children),Qe.return=ze,ze=Qe;break e}}else if(ke.elementType===zt||typeof zt=="object"&&zt!==null&&zt.$$typeof===ne&&Me(zt)===ke.type){l(ze,ke.sibling),Qe=v(ke,Ie.props),Bt(Qe,Ie),Qe.return=ze,ze=Qe;break e}l(ze,ke);break}else a(ze,ke);ke=ke.sibling}Ie.type===S?(Qe=Ao(Ie.props.children,ze.mode,Qe,Ie.key),Qe.return=ze,ze=Qe):(Qe=Is(Ie.type,Ie.key,Ie.props,null,ze.mode,Qe),Bt(Qe,Ie),Qe.return=ze,ze=Qe)}return D(ze);case A:e:{for(zt=Ie.key;ke!==null;){if(ke.key===zt)if(ke.tag===4&&ke.stateNode.containerInfo===Ie.containerInfo&&ke.stateNode.implementation===Ie.implementation){l(ze,ke.sibling),Qe=v(ke,Ie.children||[]),Qe.return=ze,ze=Qe;break e}else{l(ze,ke);break}else a(ze,ke);ke=ke.sibling}Qe=Fs(Ie,ze.mode,Qe),Qe.return=ze,ze=Qe}return D(ze);case ne:return Ie=Me(Ie),Tn(ze,ke,Ie,Qe)}if(Q(Ie))return yt(ze,ke,Ie,Qe);if(T(Ie)){if(zt=T(Ie),typeof zt!="function")throw Error(r(150));return Ie=zt.call(Ie),Rt(ze,ke,Ie,Qe)}if(typeof Ie.then=="function")return Tn(ze,ke,ft(Ie),Qe);if(Ie.$$typeof===O)return Tn(ze,ke,Cu(ze,Ie),Qe);gt(ze,Ie)}return typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint"?(Ie=""+Ie,ke!==null&&ke.tag===6?(l(ze,ke.sibling),Qe=v(ke,Ie),Qe.return=ze,ze=Qe):(l(ze,ke),Qe=Fl(Ie,ze.mode,Qe),Qe.return=ze,ze=Qe),D(ze)):l(ze,ke)}return function(ze,ke,Ie,Qe){try{bt=0;var zt=Tn(ze,ke,Ie,Qe);return tt=null,zt}catch(kt){if(kt===Se||kt===fe)throw kt;var pn=Yi(29,kt,null,ze.mode);return pn.lanes=Qe,pn.return=ze,pn}finally{}}}var Rn=Kt(!0),qt=Kt(!1),ht=!1;function ut(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qn(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function jt(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Gt(t,a,l){var f=t.updateQueue;if(f===null)return null;if(f=f.shared,(yn&2)!==0){var v=f.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),f.pending=a,a=Hi(t),Pl(t,null,l),a}return Bl(t,f,a,l),Hi(t)}function gn(t,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var f=a.lanes;f&=t.pendingLanes,l|=f,a.lanes=l,da(t,l)}}function bi(t,a){var l=t.updateQueue,f=t.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var v=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var D={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};x===null?v=x=D:x=x.next=D,l=l.next}while(l!==null);x===null?v=x=a:x=x.next=a}else v=x=a;l={baseState:f.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:f.shared,callbacks:f.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=a:t.next=a,l.lastBaseUpdate=a}var Pi=!1;function En(){if(Pi){var t=b;if(t!==null)throw t}}function ci(t,a,l,f){Pi=!1;var v=t.updateQueue;ht=!1;var x=v.firstBaseUpdate,D=v.lastBaseUpdate,$=v.shared.pending;if($!==null){v.shared.pending=null;var ye=$,Fe=ye.next;ye.next=null,D===null?x=Fe:D.next=Fe,D=ye;var Ze=t.alternate;Ze!==null&&(Ze=Ze.updateQueue,$=Ze.lastBaseUpdate,$!==D&&($===null?Ze.firstBaseUpdate=Fe:$.next=Fe,Ze.lastBaseUpdate=ye))}if(x!==null){var et=v.baseState;D=0,Ze=Fe=ye=null,$=x;do{var qe=$.lane&-536870913,Ye=qe!==$.lane;if(Ye?(en&qe)===qe:(f&qe)===qe){qe!==0&&qe===g&&(Pi=!0),Ze!==null&&(Ze=Ze.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var yt=t,Rt=$;qe=a;var Tn=l;switch(Rt.tag){case 1:if(yt=Rt.payload,typeof yt=="function"){et=yt.call(Tn,et,qe);break e}et=yt;break e;case 3:yt.flags=yt.flags&-65537|128;case 0:if(yt=Rt.payload,qe=typeof yt=="function"?yt.call(Tn,et,qe):yt,qe==null)break e;et=y({},et,qe);break e;case 2:ht=!0}}qe=$.callback,qe!==null&&(t.flags|=64,Ye&&(t.flags|=8192),Ye=v.callbacks,Ye===null?v.callbacks=[qe]:Ye.push(qe))}else Ye={lane:qe,tag:$.tag,payload:$.payload,callback:$.callback,next:null},Ze===null?(Fe=Ze=Ye,ye=et):Ze=Ze.next=Ye,D|=qe;if($=$.next,$===null){if($=v.shared.pending,$===null)break;Ye=$,$=Ye.next,Ye.next=null,v.lastBaseUpdate=Ye,v.shared.pending=null}}while(!0);Ze===null&&(ye=et),v.baseState=ye,v.firstBaseUpdate=Fe,v.lastBaseUpdate=Ze,x===null&&(v.shared.lanes=0),Js|=D,t.lanes=D,t.memoizedState=et}}function Gi(t,a){if(typeof t!="function")throw Error(r(191,t));t.call(a)}function fi(t,a){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Gi(l[t],a)}var Zt=I(null),sn=I(0);function Hn(t,a){t=bs,z(sn,t),z(Zt,a),bs=t|a.baseLanes}function hn(){z(sn,bs),z(Zt,Zt.current)}function xi(){bs=sn.current,L(Zt),L(sn)}var Yn=I(null),ln=null;function ai(t){var a=t.alternate;z(on,on.current&1),z(Yn,t),ln===null&&(a===null||Zt.current!==null||a.memoizedState!==null)&&(ln=t)}function vn(t){z(on,on.current),z(Yn,t),ln===null&&(ln=t)}function hi(t){t.tag===22?(z(on,on.current),z(Yn,t),ln===null&&(ln=t)):di()}function di(){z(on,on.current),z(Yn,Yn.current)}function _n(t){L(Yn),ln===t&&(ln=null),L(on)}var on=I(0);function Vi(t){for(var a=t;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||up(l)||cp(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Xn=0,Ct=null,Lt=null,un=null,oa=!1,Pa=!1,ta=!1,pi=0,jo=0,Ro=null,Lu=0;function Ln(){throw Error(r(321))}function Cc(t,a){if(a===null)return!1;for(var l=0;l<a.length&&l<t.length;l++)if(!Ri(t[l],a[l]))return!1;return!0}function Ec(t,a,l,f,v,x){return Xn=x,Ct=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,ie.H=t===null||t.memoizedState===null?P1:xd,ta=!1,x=l(f,v),ta=!1,Pa&&(x=ro(a,l,f,v)),zu(t),x}function zu(t){ie.H=Mc;var a=Lt!==null&&Lt.next!==null;if(Xn=0,un=Lt=Ct=null,oa=!1,jo=0,Ro=null,a)throw Error(r(300));t===null||Ei||(t=t.dependencies,t!==null&&Nu(t)&&(Ei=!0))}function ro(t,a,l,f){Ct=t;var v=0;do{if(Pa&&(Ro=null),jo=0,Pa=!1,25<=v)throw Error(r(301));if(v+=1,un=Lt=null,t.updateQueue!=null){var x=t.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}ie.H=I1,x=a(l,f)}while(Pa);return x}function dd(){var t=ie.H,a=t.useState()[0];return a=typeof a.then=="function"?Oo(a):a,t=t.useState()[0],(Lt!==null?Lt.memoizedState:null)!==t&&(Ct.flags|=1024),a}function Lc(){var t=pi!==0;return pi=0,t}function zc(t,a,l){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~l}function Tu(t){if(oa){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}oa=!1}Xn=0,un=Lt=Ct=null,Pa=!1,jo=pi=0,Ro=null}function Ci(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?Ct.memoizedState=un=t:un=un.next=t,un}function Zn(){if(Lt===null){var t=Ct.alternate;t=t!==null?t.memoizedState:null}else t=Lt.next;var a=un===null?Ct.memoizedState:un.next;if(a!==null)un=a,Lt=t;else{if(t===null)throw Ct.alternate===null?Error(r(467)):Error(r(310));Lt=t,t={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},un===null?Ct.memoizedState=un=t:un=un.next=t}return un}function Yl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oo(t){var a=jo;return jo+=1,Ro===null&&(Ro=[]),t=We(Ro,t,a),a=Ct,(un===null?a.memoizedState:un.next)===null&&(a=a.alternate,ie.H=a===null||a.memoizedState===null?P1:xd),t}function Gs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Oo(t);if(t.$$typeof===O)return Bi(t)}throw Error(r(438,String(t)))}function cs(t){var a=null,l=Ct.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var f=Ct.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Yl(),Ct.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(t),f=0;f<t;f++)l[f]=le;return a.index++,l}function Tr(t,a){return typeof a=="function"?a(t):a}function ju(t){var a=Zn();return Vs(a,Lt,t)}function Vs(t,a,l){var f=t.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=l;var v=t.baseQueue,x=f.pending;if(x!==null){if(v!==null){var D=v.next;v.next=x.next,x.next=D}a.baseQueue=v=x,f.pending=null}if(x=t.baseState,v===null)t.memoizedState=x;else{a=v.next;var $=D=null,ye=null,Fe=a,Ze=!1;do{var et=Fe.lane&-536870913;if(et!==Fe.lane?(en&et)===et:(Xn&et)===et){var qe=Fe.revertLane;if(qe===0)ye!==null&&(ye=ye.next={lane:0,revertLane:0,gesture:null,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null}),et===g&&(Ze=!0);else if((Xn&qe)===qe){Fe=Fe.next,qe===g&&(Ze=!0);continue}else et={lane:0,revertLane:Fe.revertLane,gesture:null,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null},ye===null?($=ye=et,D=x):ye=ye.next=et,Ct.lanes|=qe,Js|=qe;et=Fe.action,ta&&l(x,et),x=Fe.hasEagerState?Fe.eagerState:l(x,et)}else qe={lane:et,revertLane:Fe.revertLane,gesture:Fe.gesture,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null},ye===null?($=ye=qe,D=x):ye=ye.next=qe,Ct.lanes|=et,Js|=et;Fe=Fe.next}while(Fe!==null&&Fe!==a);if(ye===null?D=x:ye.next=$,!Ri(x,t.memoizedState)&&(Ei=!0,Ze&&(l=b,l!==null)))throw l;t.memoizedState=x,t.baseState=D,t.baseQueue=ye,f.lastRenderedState=x}return v===null&&(f.lanes=0),[t.memoizedState,f.dispatch]}function Ru(t){var a=Zn(),l=a.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var f=l.dispatch,v=l.pending,x=a.memoizedState;if(v!==null){l.pending=null;var D=v=v.next;do x=t(x,D.action),D=D.next;while(D!==v);Ri(x,a.memoizedState)||(Ei=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),l.lastRenderedState=x}return[x,f]}function Ou(t,a,l){var f=Ct,v=Zn(),x=Jt;if(x){if(l===void 0)throw Error(r(407));l=l()}else l=a();var D=!Ri((Lt||v).memoizedState,l);if(D&&(v.memoizedState=l,Ei=!0),v=v.queue,pd(jc.bind(null,f,v,t),[t]),v.getSnapshot!==a||D||un!==null&&un.memoizedState.tag&1){if(f.flags|=2048,hs(9,{destroy:void 0},Tc.bind(null,f,v,l,a),null),On===null)throw Error(r(349));x||(Xn&127)!==0||oo(f,a,l)}return l}function oo(t,a,l){t.flags|=16384,t={getSnapshot:a,value:l},a=Ct.updateQueue,a===null?(a=Yl(),Ct.updateQueue=a,a.stores=[t]):(l=a.stores,l===null?a.stores=[t]:l.push(t))}function Tc(t,a,l,f){a.value=l,a.getSnapshot=f,Of(a)&&Rc(t)}function jc(t,a,l){return l(function(){Of(a)&&Rc(t)})}function Of(t){var a=t.getSnapshot;t=t.value;try{var l=a();return!Ri(t,l)}catch{return!0}}function Rc(t){var a=io(t,2);a!==null&&Ha(a,t,2)}function Do(t){var a=Ci();if(typeof t=="function"){var l=t;if(t=l(),ta){_t(!0);try{l()}finally{_t(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:t},a}function Df(t,a,l,f){return t.baseState=l,Vs(t,Lt,typeof f=="function"?f:Tr)}function Mf(t,a,l,f,v){if(Ff(t))throw Error(r(485));if(t=a.action,t!==null){var x={payload:v,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){x.listeners.push(D)}};ie.T!==null?l(!0):x.isTransition=!1,f(x),l=a.pending,l===null?(x.next=a.pending=x,Bf(a,x)):(x.next=l.next,a.pending=l.next=x)}}function Bf(t,a){var l=a.action,f=a.payload,v=t.state;if(a.isTransition){var x=ie.T,D={};ie.T=D;try{var $=l(v,f),ye=ie.S;ye!==null&&ye(D,$),Oc(t,a,$)}catch(Fe){fs(t,a,Fe)}finally{x!==null&&D.types!==null&&(x.types=D.types),ie.T=x}}else try{x=l(v,f),Oc(t,a,x)}catch(Fe){fs(t,a,Fe)}}function Oc(t,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(f){Pf(t,a,f)},function(f){return fs(t,a,f)}):Pf(t,a,l)}function Pf(t,a,l){a.status="fulfilled",a.value=l,Du(a),t.state=l,a=t.pending,a!==null&&(l=a.next,l===a?t.pending=null:(l=l.next,a.next=l,Bf(t,l)))}function fs(t,a,l){var f=t.pending;if(t.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=l,Du(a),a=a.next;while(a!==f)}t.action=null}function Du(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Gl(t,a){return a}function jr(t,a){if(Jt){var l=On.formState;if(l!==null){e:{var f=Ct;if(Jt){if(jn){t:{for(var v=jn,x=Wn;v.nodeType!==8;){if(!x){v=null;break t}if(v=Rr(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){jn=Rr(v.nextSibling),f=v.data==="F!";break e}}Co(f)}f=!1}f&&(a=l[0])}}return l=Ci(),l.memoizedState=l.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:a},l.queue=f,l=D1.bind(null,Ct,f),f.dispatch=l,f=Do(!1),x=bd.bind(null,Ct,!1,f.queue),f=Ci(),v={state:a,dispatch:null,action:t,pending:null},f.queue=v,l=Mf.bind(null,Ct,v,x,l),v.dispatch=l,f.memoizedState=t,[a,l,!1]}function so(t){var a=Zn();return lo(a,Lt,t)}function lo(t,a,l){if(a=Vs(t,a,Gl)[0],t=ju(Tr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=Oo(a)}catch(D){throw D===Se?fe:D}else f=a;a=Zn();var v=a.queue,x=v.dispatch;return l!==a.memoizedState&&(Ct.flags|=2048,hs(9,{destroy:void 0},Mu.bind(null,v,l),null)),[f,x,t]}function Mu(t,a){t.action=a}function Bu(t){var a=Zn(),l=Lt;if(l!==null)return lo(a,l,t);Zn(),a=a.memoizedState,l=Zn();var f=l.queue.dispatch;return l.memoizedState=t,[a,f,!1]}function hs(t,a,l,f){return t={tag:t,create:l,deps:f,inst:a,next:null},a=Ct.updateQueue,a===null&&(a=Yl(),Ct.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=t.next=t:(f=l.next,l.next=t,t.next=f,a.lastEffect=t),t}function If(){return Zn().memoizedState}function Ws(t,a,l,f){var v=Ci();Ct.flags|=t,v.memoizedState=hs(1|a,{destroy:void 0},l,f===void 0?null:f)}function Xs(t,a,l,f){var v=Zn();f=f===void 0?null:f;var x=v.memoizedState.inst;Lt!==null&&f!==null&&Cc(f,Lt.memoizedState.deps)?v.memoizedState=hs(a,x,l,f):(Ct.flags|=t,v.memoizedState=hs(1|a,x,l,f))}function w1(t,a){Ws(8390656,8,t,a)}function pd(t,a){Xs(2048,8,t,a)}function yb(t){Ct.flags|=4;var a=Ct.updateQueue;if(a===null)a=Yl(),Ct.updateQueue=a,a.events=[t];else{var l=a.events;l===null?a.events=[t]:l.push(t)}}function _1(t){var a=Zn().memoizedState;return yb({ref:a,nextImpl:t}),function(){if((yn&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function S1(t,a){return Xs(4,2,t,a)}function k1(t,a){return Xs(4,4,t,a)}function A1(t,a){if(typeof a=="function"){t=t();var l=a(t);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function N1(t,a,l){l=l!=null?l.concat([t]):null,Xs(4,4,A1.bind(null,a,t),l)}function md(){}function C1(t,a){var l=Zn();a=a===void 0?null:a;var f=l.memoizedState;return a!==null&&Cc(a,f[1])?f[0]:(l.memoizedState=[t,a],t)}function E1(t,a){var l=Zn();a=a===void 0?null:a;var f=l.memoizedState;if(a!==null&&Cc(a,f[1]))return f[0];if(f=t(),ta){_t(!0);try{t()}finally{_t(!1)}}return l.memoizedState=[f,a],f}function gd(t,a,l){return l===void 0||(Xn&1073741824)!==0&&(en&261930)===0?t.memoizedState=a:(t.memoizedState=l,t=L0(),Ct.lanes|=t,Js|=t,l)}function L1(t,a,l,f){return Ri(l,a)?l:Zt.current!==null?(t=gd(t,l,f),Ri(t,a)||(Ei=!0),t):(Xn&42)===0||(Xn&1073741824)!==0&&(en&261930)===0?(Ei=!0,t.memoizedState=l):(t=L0(),Ct.lanes|=t,Js|=t,a)}function z1(t,a,l,f,v){var x=oe.p;oe.p=x!==0&&8>x?x:8;var D=ie.T,$={};ie.T=$,bd(t,!1,a,l);try{var ye=v(),Fe=ie.S;if(Fe!==null&&Fe($,ye),ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var Ze=H(ye,f);Dc(t,a,Ze,fr(t))}else Dc(t,a,f,fr(t))}catch(et){Dc(t,a,{then:function(){},status:"rejected",reason:et},fr())}finally{oe.p=x,D!==null&&$.types!==null&&(D.types=$.types),ie.T=D}}function bb(){}function vd(t,a,l,f){if(t.tag!==5)throw Error(r(476));var v=T1(t).queue;z1(t,v,a,me,l===null?bb:function(){return j1(t),l(f)})}function T1(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:me},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:l},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function j1(t){var a=T1(t);a.next===null&&(a=t.alternate.memoizedState),Dc(t,a.next.queue,{},fr())}function yd(){return Bi(Qc)}function R1(){return Zn().memoizedState}function O1(){return Zn().memoizedState}function xb(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var l=fr();t=jt(l);var f=Gt(a,t,l);f!==null&&(Ha(f,a,l),gn(f,a,l)),a={cache:Ys()},t.payload=a;return}a=a.return}}function wb(t,a,l){var f=fr();l={lane:f,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ff(t)?M1(a,l):(l=yu(t,a,l,f),l!==null&&(Ha(l,t,f),B1(l,a,f)))}function D1(t,a,l){var f=fr();Dc(t,a,l,f)}function Dc(t,a,l,f){var v={lane:f,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ff(t))M1(a,v);else{var x=t.alternate;if(t.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var D=a.lastRenderedState,$=x(D,l);if(v.hasEagerState=!0,v.eagerState=$,Ri($,D))return Bl(t,a,v,0),On===null&&Ml(),!1}catch{}finally{}if(l=yu(t,a,v,f),l!==null)return Ha(l,t,f),B1(l,a,f),!0}return!1}function bd(t,a,l,f){if(f={lane:2,revertLane:Jd(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Ff(t)){if(a)throw Error(r(479))}else a=yu(t,l,f,2),a!==null&&Ha(a,t,2)}function Ff(t){var a=t.alternate;return t===Ct||a!==null&&a===Ct}function M1(t,a){Pa=oa=!0;var l=t.pending;l===null?a.next=a:(a.next=l.next,l.next=a),t.pending=a}function B1(t,a,l){if((l&4194048)!==0){var f=a.lanes;f&=t.pendingLanes,l|=f,a.lanes=l,da(t,l)}}var Mc={readContext:Bi,use:Gs,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useLayoutEffect:Ln,useInsertionEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useSyncExternalStore:Ln,useId:Ln,useHostTransitionStatus:Ln,useFormState:Ln,useActionState:Ln,useOptimistic:Ln,useMemoCache:Ln,useCacheRefresh:Ln};Mc.useEffectEvent=Ln;var P1={readContext:Bi,use:Gs,useCallback:function(t,a){return Ci().memoizedState=[t,a===void 0?null:a],t},useContext:Bi,useEffect:w1,useImperativeHandle:function(t,a,l){l=l!=null?l.concat([t]):null,Ws(4194308,4,A1.bind(null,a,t),l)},useLayoutEffect:function(t,a){return Ws(4194308,4,t,a)},useInsertionEffect:function(t,a){Ws(4,2,t,a)},useMemo:function(t,a){var l=Ci();a=a===void 0?null:a;var f=t();if(ta){_t(!0);try{t()}finally{_t(!1)}}return l.memoizedState=[f,a],f},useReducer:function(t,a,l){var f=Ci();if(l!==void 0){var v=l(a);if(ta){_t(!0);try{l(a)}finally{_t(!1)}}}else v=a;return f.memoizedState=f.baseState=v,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:v},f.queue=t,t=t.dispatch=wb.bind(null,Ct,t),[f.memoizedState,t]},useRef:function(t){var a=Ci();return t={current:t},a.memoizedState=t},useState:function(t){t=Do(t);var a=t.queue,l=D1.bind(null,Ct,a);return a.dispatch=l,[t.memoizedState,l]},useDebugValue:md,useDeferredValue:function(t,a){var l=Ci();return gd(l,t,a)},useTransition:function(){var t=Do(!1);return t=z1.bind(null,Ct,t.queue,!0,!1),Ci().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,l){var f=Ct,v=Ci();if(Jt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=a(),On===null)throw Error(r(349));(en&127)!==0||oo(f,a,l)}v.memoizedState=l;var x={value:l,getSnapshot:a};return v.queue=x,w1(jc.bind(null,f,x,t),[t]),f.flags|=2048,hs(9,{destroy:void 0},Tc.bind(null,f,x,l,a),null),l},useId:function(){var t=Ci(),a=On.identifierPrefix;if(Jt){var l=Ma,f=Da;l=(f&~(1<<32-mt(f)-1)).toString(32)+l,a="_"+a+"R_"+l,l=pi++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=Lu++,a="_"+a+"r_"+l.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:yd,useFormState:jr,useActionState:jr,useOptimistic:function(t){var a=Ci();a.memoizedState=a.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=bd.bind(null,Ct,!0,l),l.dispatch=a,[t,a]},useMemoCache:cs,useCacheRefresh:function(){return Ci().memoizedState=xb.bind(null,Ct)},useEffectEvent:function(t){var a=Ci(),l={impl:t};return a.memoizedState=l,function(){if((yn&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},xd={readContext:Bi,use:Gs,useCallback:C1,useContext:Bi,useEffect:pd,useImperativeHandle:N1,useInsertionEffect:S1,useLayoutEffect:k1,useMemo:E1,useReducer:ju,useRef:If,useState:function(){return ju(Tr)},useDebugValue:md,useDeferredValue:function(t,a){var l=Zn();return L1(l,Lt.memoizedState,t,a)},useTransition:function(){var t=ju(Tr)[0],a=Zn().memoizedState;return[typeof t=="boolean"?t:Oo(t),a]},useSyncExternalStore:Ou,useId:R1,useHostTransitionStatus:yd,useFormState:so,useActionState:so,useOptimistic:function(t,a){var l=Zn();return Df(l,Lt,t,a)},useMemoCache:cs,useCacheRefresh:O1};xd.useEffectEvent=_1;var I1={readContext:Bi,use:Gs,useCallback:C1,useContext:Bi,useEffect:pd,useImperativeHandle:N1,useInsertionEffect:S1,useLayoutEffect:k1,useMemo:E1,useReducer:Ru,useRef:If,useState:function(){return Ru(Tr)},useDebugValue:md,useDeferredValue:function(t,a){var l=Zn();return Lt===null?gd(l,t,a):L1(l,Lt.memoizedState,t,a)},useTransition:function(){var t=Ru(Tr)[0],a=Zn().memoizedState;return[typeof t=="boolean"?t:Oo(t),a]},useSyncExternalStore:Ou,useId:R1,useHostTransitionStatus:yd,useFormState:Bu,useActionState:Bu,useOptimistic:function(t,a){var l=Zn();return Lt!==null?Df(l,Lt,t,a):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:cs,useCacheRefresh:O1};I1.useEffectEvent=_1;function wd(t,a,l,f){a=t.memoizedState,l=l(f,a),l=l==null?a:y({},a,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var _d={enqueueSetState:function(t,a,l){t=t._reactInternals;var f=fr(),v=jt(f);v.payload=a,l!=null&&(v.callback=l),a=Gt(t,v,f),a!==null&&(Ha(a,t,f),gn(a,t,f))},enqueueReplaceState:function(t,a,l){t=t._reactInternals;var f=fr(),v=jt(f);v.tag=1,v.payload=a,l!=null&&(v.callback=l),a=Gt(t,v,f),a!==null&&(Ha(a,t,f),gn(a,t,f))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var l=fr(),f=jt(l);f.tag=2,a!=null&&(f.callback=a),a=Gt(t,f,l),a!==null&&(Ha(a,t,l),gn(a,t,l))}};function F1(t,a,l,f,v,x,D){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(f,x,D):a.prototype&&a.prototype.isPureReactComponent?!$r(l,f)||!$r(v,x):!0}function U1(t,a,l,f){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,f),a.state!==t&&_d.enqueueReplaceState(a,a.state,null)}function Vl(t,a){var l=a;if("ref"in a){l={};for(var f in a)f!=="ref"&&(l[f]=a[f])}if(t=t.defaultProps){l===a&&(l=y({},l));for(var v in t)l[v]===void 0&&(l[v]=t[v])}return l}function q1(t){Dl(t)}function H1(t){console.error(t)}function Y1(t){Dl(t)}function Uf(t,a){try{var l=t.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function G1(t,a,l){try{var f=t.onCaughtError;f(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Sd(t,a,l){return l=jt(l),l.tag=3,l.payload={element:null},l.callback=function(){Uf(t,a)},l}function V1(t){return t=jt(t),t.tag=3,t}function W1(t,a,l,f){var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var x=f.value;t.payload=function(){return v(x)},t.callback=function(){G1(a,l,f)}}var D=l.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(t.callback=function(){G1(a,l,f),typeof v!="function"&&(Qs===null?Qs=new Set([this]):Qs.add(this));var $=f.stack;this.componentDidCatch(f.value,{componentStack:$!==null?$:""})})}function _b(t,a,l,f,v){if(l.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=l.alternate,a!==null&&zo(a,l,v,!0),l=Yn.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?$f():l.alternate===null&&mi===0&&(mi=3),l.flags&=-257,l.flags|=65536,l.lanes=v,f===Ce?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([f]):a.add(f),Xd(t,f,v)),!1;case 22:return l.flags|=65536,f===Ce?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([f]):l.add(f)),Xd(t,f,v)),!1}throw Error(r(435,l.tag))}return Xd(t,f,v),$f(),!1}if(Jt)return a=Yn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,f!==lr&&(t=Error(r(422),{cause:f}),qs(ja(t,l)))):(f!==lr&&(a=Error(r(423),{cause:f}),qs(ja(a,l))),t=t.current.alternate,t.flags|=65536,v&=-v,t.lanes|=v,f=ja(f,l),v=Sd(t.stateNode,f,v),bi(t,v),mi!==4&&(mi=2)),!1;var x=Error(r(520),{cause:f});if(x=ja(x,l),Yc===null?Yc=[x]:Yc.push(x),mi!==4&&(mi=2),a===null)return!0;f=ja(f,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,t=v&-v,l.lanes|=t,t=Sd(l.stateNode,f,t),bi(l,t),!1;case 1:if(a=l.type,x=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Qs===null||!Qs.has(x))))return l.flags|=65536,v&=-v,l.lanes|=v,v=V1(v),W1(v,t,l,f),bi(l,v),!1}l=l.return}while(l!==null);return!1}var kd=Error(r(461)),Ei=!1;function na(t,a,l,f){a.child=t===null?qt(a,null,l,f):Rn(a,t.child,l,f)}function X1(t,a,l,f,v){l=l.render;var x=a.ref;if("ref"in f){var D={};for(var $ in f)$!=="ref"&&(D[$]=f[$])}else D=f;return To(a),f=Ec(t,a,l,D,x,v),$=Lc(),t!==null&&!Ei?(zc(t,a,v),ds(t,a,v)):(Jt&&$&&kc(a),a.flags|=1,na(t,a,f,v),a.child)}function Z1(t,a,l,f,v){if(t===null){var x=l.type;return typeof x=="function"&&!xu(x)&&x.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=x,K1(t,a,x,f,v)):(t=Is(l.type,null,f,a,a.mode,v),t.ref=a.ref,t.return=a,a.child=t)}if(x=t.child,!jd(t,v)){var D=x.memoizedProps;if(l=l.compare,l=l!==null?l:$r,l(D,f)&&t.ref===a.ref)return ds(t,a,v)}return a.flags|=1,t=Ta(x,f),t.ref=a.ref,t.return=a,a.child=t}function K1(t,a,l,f,v){if(t!==null){var x=t.memoizedProps;if($r(x,f)&&t.ref===a.ref)if(Ei=!1,a.pendingProps=f=x,jd(t,v))(t.flags&131072)!==0&&(Ei=!0);else return a.lanes=t.lanes,ds(t,a,v)}return Ad(t,a,l,f,v)}function J1(t,a,l,f){var v=f.children,x=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((a.flags&128)!==0){if(x=x!==null?x.baseLanes|l:l,t!==null){for(f=a.child=t.child,v=0;f!==null;)v=v|f.lanes|f.childLanes,f=f.sibling;f=v&~x}else f=0,a.child=null;return Q1(t,a,x,l,f)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&se(a,x!==null?x.cachePool:null),x!==null?Hn(a,x):hn(),hi(a);else return f=a.lanes=536870912,Q1(t,a,x!==null?x.baseLanes|l:l,l,f)}else x!==null?(se(a,x.cachePool),Hn(a,x),di(),a.memoizedState=null):(t!==null&&se(a,null),hn(),di());return na(t,a,v,l),a.child}function Bc(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Q1(t,a,l,f,v){var x=te();return x=x===null?null:{parent:ii._currentValue,pool:x},a.memoizedState={baseLanes:l,cachePool:x},t!==null&&se(a,null),hn(),hi(a),t!==null&&zo(t,a,f,!0),a.childLanes=v,null}function qf(t,a){return a=Yf({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function $1(t,a,l){return Rn(a,t.child,null,l),t=qf(a,a.pendingProps),t.flags|=2,_n(a),a.memoizedState=null,t}function Sb(t,a,l){var f=a.pendingProps,v=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(Jt){if(f.mode==="hidden")return t=qf(a,f),a.lanes=536870912,Bc(null,t);if(vn(a),(t=jn)?(t=fg(t,Wn),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:No!==null?{id:Da,overflow:Ma}:null,retryLane:536870912,hydrationErrors:null},l=wu(t),l.return=a,a.child=l,Di=a,jn=null)):t=null,t===null)throw Co(a);return a.lanes=536870912,null}return qf(a,f)}var x=t.memoizedState;if(x!==null){var D=x.dehydrated;if(vn(a),v)if(a.flags&256)a.flags&=-257,a=$1(t,a,l);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(r(558));else if(Ei||zo(t,a,l,!1),v=(l&t.childLanes)!==0,Ei||v){if(f=On,f!==null&&(D=pa(f,l),D!==0&&D!==x.retryLane))throw x.retryLane=D,io(t,D),Ha(f,t,D),kd;$f(),a=$1(t,a,l)}else t=x.treeContext,jn=Rr(D.nextSibling),Di=a,Jt=!0,ea=null,Wn=!1,t!==null&&jf(a,t),a=qf(a,f),a.flags|=4096;return a}return t=Ta(t.child,{mode:f.mode,children:f.children}),t.ref=a.ref,a.child=t,t.return=a,t}function Hf(t,a){var l=a.ref;if(l===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(a.flags|=4194816)}}function Ad(t,a,l,f,v){return To(a),l=Ec(t,a,l,f,void 0,v),f=Lc(),t!==null&&!Ei?(zc(t,a,v),ds(t,a,v)):(Jt&&f&&kc(a),a.flags|=1,na(t,a,l,v),a.child)}function e0(t,a,l,f,v,x){return To(a),a.updateQueue=null,l=ro(a,f,l,v),zu(t),f=Lc(),t!==null&&!Ei?(zc(t,a,x),ds(t,a,x)):(Jt&&f&&kc(a),a.flags|=1,na(t,a,l,x),a.child)}function t0(t,a,l,f,v){if(To(a),a.stateNode===null){var x=Oi,D=l.contextType;typeof D=="object"&&D!==null&&(x=Bi(D)),x=new l(f,x),a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=_d,a.stateNode=x,x._reactInternals=a,x=a.stateNode,x.props=f,x.state=a.memoizedState,x.refs={},ut(a),D=l.contextType,x.context=typeof D=="object"&&D!==null?Bi(D):Oi,x.state=a.memoizedState,D=l.getDerivedStateFromProps,typeof D=="function"&&(wd(a,l,D,f),x.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(D=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),D!==x.state&&_d.enqueueReplaceState(x,x.state,null),ci(a,f,x,v),En(),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(t===null){x=a.stateNode;var $=a.memoizedProps,ye=Vl(l,$);x.props=ye;var Fe=x.context,Ze=l.contextType;D=Oi,typeof Ze=="object"&&Ze!==null&&(D=Bi(Ze));var et=l.getDerivedStateFromProps;Ze=typeof et=="function"||typeof x.getSnapshotBeforeUpdate=="function",$=a.pendingProps!==$,Ze||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||($||Fe!==D)&&U1(a,x,f,D),ht=!1;var qe=a.memoizedState;x.state=qe,ci(a,f,x,v),En(),Fe=a.memoizedState,$||qe!==Fe||ht?(typeof et=="function"&&(wd(a,l,et,f),Fe=a.memoizedState),(ye=ht||F1(a,l,ye,f,qe,Fe,D))?(Ze||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(a.flags|=4194308)):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=Fe),x.props=f,x.state=Fe,x.context=D,f=ye):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{x=a.stateNode,qn(t,a),D=a.memoizedProps,Ze=Vl(l,D),x.props=Ze,et=a.pendingProps,qe=x.context,Fe=l.contextType,ye=Oi,typeof Fe=="object"&&Fe!==null&&(ye=Bi(Fe)),$=l.getDerivedStateFromProps,(Fe=typeof $=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(D!==et||qe!==ye)&&U1(a,x,f,ye),ht=!1,qe=a.memoizedState,x.state=qe,ci(a,f,x,v),En();var Ye=a.memoizedState;D!==et||qe!==Ye||ht||t!==null&&t.dependencies!==null&&Nu(t.dependencies)?(typeof $=="function"&&(wd(a,l,$,f),Ye=a.memoizedState),(Ze=ht||F1(a,l,Ze,f,qe,Ye,ye)||t!==null&&t.dependencies!==null&&Nu(t.dependencies))?(Fe||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,Ye,ye),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,Ye,ye)),typeof x.componentDidUpdate=="function"&&(a.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof x.componentDidUpdate!="function"||D===t.memoizedProps&&qe===t.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&qe===t.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=Ye),x.props=f,x.state=Ye,x.context=ye,f=Ze):(typeof x.componentDidUpdate!="function"||D===t.memoizedProps&&qe===t.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&qe===t.memoizedState||(a.flags|=1024),f=!1)}return x=f,Hf(t,a),f=(a.flags&128)!==0,x||f?(x=a.stateNode,l=f&&typeof l.getDerivedStateFromError!="function"?null:x.render(),a.flags|=1,t!==null&&f?(a.child=Rn(a,t.child,null,v),a.child=Rn(a,null,l,v)):na(t,a,l,v),a.memoizedState=x.state,t=a.child):t=ds(t,a,v),t}function n0(t,a,l,f){return ls(),a.flags|=256,na(t,a,l,f),a.child}var Nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cd(t){return{baseLanes:t,cachePool:he()}}function Ed(t,a,l){return t=t!==null?t.childLanes&~l:0,a&&(t|=cr),t}function i0(t,a,l){var f=a.pendingProps,v=!1,x=(a.flags&128)!==0,D;if((D=x)||(D=t!==null&&t.memoizedState===null?!1:(on.current&2)!==0),D&&(v=!0,a.flags&=-129),D=(a.flags&32)!==0,a.flags&=-33,t===null){if(Jt){if(v?ai(a):di(),(t=jn)?(t=fg(t,Wn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:No!==null?{id:Da,overflow:Ma}:null,retryLane:536870912,hydrationErrors:null},l=wu(t),l.return=a,a.child=l,Di=a,jn=null)):t=null,t===null)throw Co(a);return cp(t)?a.lanes=32:a.lanes=536870912,null}var $=f.children;return f=f.fallback,v?(di(),v=a.mode,$=Yf({mode:"hidden",children:$},v),f=Ao(f,v,l,null),$.return=a,f.return=a,$.sibling=f,a.child=$,f=a.child,f.memoizedState=Cd(l),f.childLanes=Ed(t,D,l),a.memoizedState=Nd,Bc(null,f)):(ai(a),Ld(a,$))}var ye=t.memoizedState;if(ye!==null&&($=ye.dehydrated,$!==null)){if(x)a.flags&256?(ai(a),a.flags&=-257,a=zd(t,a,l)):a.memoizedState!==null?(di(),a.child=t.child,a.flags|=128,a=null):(di(),$=f.fallback,v=a.mode,f=Yf({mode:"visible",children:f.children},v),$=Ao($,v,l,null),$.flags|=2,f.return=a,$.return=a,f.sibling=$,a.child=f,Rn(a,t.child,null,l),f=a.child,f.memoizedState=Cd(l),f.childLanes=Ed(t,D,l),a.memoizedState=Nd,a=Bc(null,f));else if(ai(a),cp($)){if(D=$.nextSibling&&$.nextSibling.dataset,D)var Fe=D.dgst;D=Fe,f=Error(r(419)),f.stack="",f.digest=D,qs({value:f,source:null,stack:null}),a=zd(t,a,l)}else if(Ei||zo(t,a,l,!1),D=(l&t.childLanes)!==0,Ei||D){if(D=On,D!==null&&(f=pa(D,l),f!==0&&f!==ye.retryLane))throw ye.retryLane=f,io(t,f),Ha(D,t,f),kd;up($)||$f(),a=zd(t,a,l)}else up($)?(a.flags|=192,a.child=t.child,a=null):(t=ye.treeContext,jn=Rr($.nextSibling),Di=a,Jt=!0,ea=null,Wn=!1,t!==null&&jf(a,t),a=Ld(a,f.children),a.flags|=4096);return a}return v?(di(),$=f.fallback,v=a.mode,ye=t.child,Fe=ye.sibling,f=Ta(ye,{mode:"hidden",children:f.children}),f.subtreeFlags=ye.subtreeFlags&65011712,Fe!==null?$=Ta(Fe,$):($=Ao($,v,l,null),$.flags|=2),$.return=a,f.return=a,f.sibling=$,a.child=f,Bc(null,f),f=a.child,$=t.child.memoizedState,$===null?$=Cd(l):(v=$.cachePool,v!==null?(ye=ii._currentValue,v=v.parent!==ye?{parent:ye,pool:ye}:v):v=he(),$={baseLanes:$.baseLanes|l,cachePool:v}),f.memoizedState=$,f.childLanes=Ed(t,D,l),a.memoizedState=Nd,Bc(t.child,f)):(ai(a),l=t.child,t=l.sibling,l=Ta(l,{mode:"visible",children:f.children}),l.return=a,l.sibling=null,t!==null&&(D=a.deletions,D===null?(a.deletions=[t],a.flags|=16):D.push(t)),a.child=l,a.memoizedState=null,l)}function Ld(t,a){return a=Yf({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Yf(t,a){return t=Yi(22,t,null,a),t.lanes=0,t}function zd(t,a,l){return Rn(a,t.child,null,l),t=Ld(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function a0(t,a,l){t.lanes|=a;var f=t.alternate;f!==null&&(f.lanes|=a),Hs(t.return,a,l)}function Td(t,a,l,f,v,x){var D=t.memoizedState;D===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:v,treeForkCount:x}:(D.isBackwards=a,D.rendering=null,D.renderingStartTime=0,D.last=f,D.tail=l,D.tailMode=v,D.treeForkCount=x)}function r0(t,a,l){var f=a.pendingProps,v=f.revealOrder,x=f.tail;f=f.children;var D=on.current,$=(D&2)!==0;if($?(D=D&1|2,a.flags|=128):D&=1,z(on,D),na(t,a,f,l),f=Jt?Ul:0,!$&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&a0(t,l,a);else if(t.tag===19)a0(t,l,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(v){case"forwards":for(l=a.child,v=null;l!==null;)t=l.alternate,t!==null&&Vi(t)===null&&(v=l),l=l.sibling;l=v,l===null?(v=a.child,a.child=null):(v=l.sibling,l.sibling=null),Td(a,!1,v,l,x,f);break;case"backwards":case"unstable_legacy-backwards":for(l=null,v=a.child,a.child=null;v!==null;){if(t=v.alternate,t!==null&&Vi(t)===null){a.child=v;break}t=v.sibling,v.sibling=l,l=v,v=t}Td(a,!0,l,null,x,f);break;case"together":Td(a,!1,null,null,void 0,f);break;default:a.memoizedState=null}return a.child}function ds(t,a,l){if(t!==null&&(a.dependencies=t.dependencies),Js|=a.lanes,(l&a.childLanes)===0)if(t!==null){if(zo(t,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(r(153));if(a.child!==null){for(t=a.child,l=Ta(t,t.pendingProps),a.child=l,l.return=a;t.sibling!==null;)t=t.sibling,l=l.sibling=Ta(t,t.pendingProps),l.return=a;l.sibling=null}return a.child}function jd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Nu(t)))}function kb(t,a,l){switch(a.tag){case 3:Ae(a,a.stateNode.containerInfo),Lo(a,ii,t.memoizedState.cache),ls();break;case 27:case 5:Ue(a);break;case 4:Ae(a,a.stateNode.containerInfo);break;case 10:Lo(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,vn(a),null;break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(ai(a),a.flags|=128,null):(l&a.child.childLanes)!==0?i0(t,a,l):(ai(a),t=ds(t,a,l),t!==null?t.sibling:null);ai(a);break;case 19:var v=(t.flags&128)!==0;if(f=(l&a.childLanes)!==0,f||(zo(t,a,l,!1),f=(l&a.childLanes)!==0),v){if(f)return r0(t,a,l);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),z(on,on.current),f)break;return null;case 22:return a.lanes=0,J1(t,a,l,a.pendingProps);case 24:Lo(a,ii,t.memoizedState.cache)}return ds(t,a,l)}function o0(t,a,l){if(t!==null)if(t.memoizedProps!==a.pendingProps)Ei=!0;else{if(!jd(t,l)&&(a.flags&128)===0)return Ei=!1,kb(t,a,l);Ei=(t.flags&131072)!==0}else Ei=!1,Jt&&(a.flags&1048576)!==0&&Tf(a,Ul,a.index);switch(a.lanes=0,a.tag){case 16:e:{var f=a.pendingProps;if(t=Me(a.elementType),a.type=t,typeof t=="function")xu(t)?(f=Vl(t,f),a.tag=1,a=t0(null,a,t,f,l)):(a.tag=0,a=Ad(null,a,t,f,l));else{if(t!=null){var v=t.$$typeof;if(v===P){a.tag=11,a=X1(null,a,t,f,l);break e}else if(v===ae){a.tag=14,a=Z1(null,a,t,f,l);break e}}throw a=N(t)||t,Error(r(306,a,""))}}return a;case 0:return Ad(t,a,a.type,a.pendingProps,l);case 1:return f=a.type,v=Vl(f,a.pendingProps),t0(t,a,f,v,l);case 3:e:{if(Ae(a,a.stateNode.containerInfo),t===null)throw Error(r(387));f=a.pendingProps;var x=a.memoizedState;v=x.element,qn(t,a),ci(a,f,null,l);var D=a.memoizedState;if(f=D.cache,Lo(a,ii,f),f!==x.cache&&us(a,[ii],l,!0),En(),f=D.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:D.cache},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){a=n0(t,a,f,l);break e}else if(f!==v){v=ja(Error(r(424)),a),qs(v),a=n0(t,a,f,l);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(jn=Rr(t.firstChild),Di=a,Jt=!0,ea=null,Wn=!0,l=qt(a,null,f,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ls(),f===v){a=ds(t,a,l);break e}na(t,a,f,l)}a=a.child}return a;case 26:return Hf(t,a),t===null?(l=vg(a.type,null,a.pendingProps,null))?a.memoizedState=l:Jt||(l=a.type,t=a.pendingProps,f=oh(pe.current).createElement(l),f[wn]=a,f[Fn]=t,ia(f,l,t),$n(f),a.stateNode=f):a.memoizedState=vg(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ue(a),t===null&&Jt&&(f=a.stateNode=pg(a.type,a.pendingProps,pe.current),Di=a,Wn=!0,v=jn,nl(a.type)?(fp=v,jn=Rr(f.firstChild)):jn=v),na(t,a,a.pendingProps.children,l),Hf(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Jt&&((v=f=jn)&&(f=ex(f,a.type,a.pendingProps,Wn),f!==null?(a.stateNode=f,Di=a,jn=Rr(f.firstChild),Wn=!1,v=!0):v=!1),v||Co(a)),Ue(a),v=a.type,x=a.pendingProps,D=t!==null?t.memoizedProps:null,f=x.children,op(v,x)?f=null:D!==null&&op(v,D)&&(a.flags|=32),a.memoizedState!==null&&(v=Ec(t,a,dd,null,null,l),Qc._currentValue=v),Hf(t,a),na(t,a,f,l),a.child;case 6:return t===null&&Jt&&((t=l=jn)&&(l=tx(l,a.pendingProps,Wn),l!==null?(a.stateNode=l,Di=a,jn=null,t=!0):t=!1),t||Co(a)),null;case 13:return i0(t,a,l);case 4:return Ae(a,a.stateNode.containerInfo),f=a.pendingProps,t===null?a.child=Rn(a,null,f,l):na(t,a,f,l),a.child;case 11:return X1(t,a,a.type,a.pendingProps,l);case 7:return na(t,a,a.pendingProps,l),a.child;case 8:return na(t,a,a.pendingProps.children,l),a.child;case 12:return na(t,a,a.pendingProps.children,l),a.child;case 10:return f=a.pendingProps,Lo(a,a.type,f.value),na(t,a,f.children,l),a.child;case 9:return v=a.type._context,f=a.pendingProps.children,To(a),v=Bi(v),f=f(v),a.flags|=1,na(t,a,f,l),a.child;case 14:return Z1(t,a,a.type,a.pendingProps,l);case 15:return K1(t,a,a.type,a.pendingProps,l);case 19:return r0(t,a,l);case 31:return Sb(t,a,l);case 22:return J1(t,a,l,a.pendingProps);case 24:return To(a),f=Bi(ii),t===null?(v=te(),v===null&&(v=On,x=Ys(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=l),v=x),a.memoizedState={parent:f,cache:v},ut(a),Lo(a,ii,v)):((t.lanes&l)!==0&&(qn(t,a),ci(a,null,null,l),En()),v=t.memoizedState,x=a.memoizedState,v.parent!==f?(v={parent:f,cache:f},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),Lo(a,ii,f)):(f=x.cache,Lo(a,ii,f),f!==v.cache&&us(a,[ii],l,!0))),na(t,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function ps(t){t.flags|=4}function Rd(t,a,l,f,v){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(v&335544128)===v)if(t.stateNode.complete)t.flags|=8192;else if(R0())t.flags|=8192;else throw Ve=Ce,Pe}else t.flags&=-16777217}function s0(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_g(a))if(R0())t.flags|=8192;else throw Ve=Ce,Pe}function Gf(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?gr():536870912,t.lanes|=a,Uu|=a)}function Pc(t,a){if(!Jt)switch(t.tailMode){case"hidden":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:f.sibling=null}}function Gn(t){var a=t.alternate!==null&&t.alternate.child===t.child,l=0,f=0;if(a)for(var v=t.child;v!==null;)l|=v.lanes|v.childLanes,f|=v.subtreeFlags&65011712,f|=v.flags&65011712,v.return=t,v=v.sibling;else for(v=t.child;v!==null;)l|=v.lanes|v.childLanes,f|=v.subtreeFlags,f|=v.flags,v.return=t,v=v.sibling;return t.subtreeFlags|=f,t.childLanes=l,a}function Ab(t,a,l){var f=a.pendingProps;switch(ku(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(a),null;case 1:return Gn(a),null;case 3:return l=a.stateNode,f=null,t!==null&&(f=t.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),Ba(ii),Ne(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Mi(a)?ps(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Nc())),Gn(a),null;case 26:var v=a.type,x=a.memoizedState;return t===null?(ps(a),x!==null?(Gn(a),s0(a,x)):(Gn(a),Rd(a,v,null,f,l))):x?x!==t.memoizedState?(ps(a),Gn(a),s0(a,x)):(Gn(a),a.flags&=-16777217):(t=t.memoizedProps,t!==f&&ps(a),Gn(a),Rd(a,v,t,f,l)),null;case 27:if(Xe(a),l=pe.current,v=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==f&&ps(a);else{if(!f){if(a.stateNode===null)throw Error(r(166));return Gn(a),null}t=V.current,Mi(a)?Ac(a):(t=pg(v,f,l),a.stateNode=t,ps(a))}return Gn(a),null;case 5:if(Xe(a),v=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==f&&ps(a);else{if(!f){if(a.stateNode===null)throw Error(r(166));return Gn(a),null}if(x=V.current,Mi(a))Ac(a);else{var D=oh(pe.current);switch(x){case 1:x=D.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=D.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=D.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=D.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=D.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof f.is=="string"?D.createElement("select",{is:f.is}):D.createElement("select"),f.multiple?x.multiple=!0:f.size&&(x.size=f.size);break;default:x=typeof f.is=="string"?D.createElement(v,{is:f.is}):D.createElement(v)}}x[wn]=a,x[Fn]=f;e:for(D=a.child;D!==null;){if(D.tag===5||D.tag===6)x.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===a)break e;for(;D.sibling===null;){if(D.return===null||D.return===a)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}a.stateNode=x;e:switch(ia(x,v,f),v){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&ps(a)}}return Gn(a),Rd(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,l),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==f&&ps(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(r(166));if(t=pe.current,Mi(a)){if(t=a.stateNode,l=a.memoizedProps,f=null,v=Di,v!==null)switch(v.tag){case 27:case 5:f=v.memoizedProps}t[wn]=a,t=!!(t.nodeValue===l||f!==null&&f.suppressHydrationWarning===!0||ig(t.nodeValue,l)),t||Co(a,!0)}else t=oh(t).createTextNode(f),t[wn]=a,a.stateNode=t}return Gn(a),null;case 31:if(l=a.memoizedState,t===null||t.memoizedState!==null){if(f=Mi(a),l!==null){if(t===null){if(!f)throw Error(r(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[wn]=a}else ls(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Gn(a),t=!1}else l=Nc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return a.flags&256?(_n(a),a):(_n(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Gn(a),null;case 13:if(f=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(v=Mi(a),f!==null&&f.dehydrated!==null){if(t===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[wn]=a}else ls(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Gn(a),v=!1}else v=Nc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(_n(a),a):(_n(a),null)}return _n(a),(a.flags&128)!==0?(a.lanes=l,a):(l=f!==null,t=t!==null&&t.memoizedState!==null,l&&(f=a.child,v=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(v=f.alternate.memoizedState.cachePool.pool),x=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==v&&(f.flags|=2048)),l!==t&&l&&(a.child.flags|=8192),Gf(a,a.updateQueue),Gn(a),null);case 4:return Ne(),t===null&&tp(a.stateNode.containerInfo),Gn(a),null;case 10:return Ba(a.type),Gn(a),null;case 19:if(L(on),f=a.memoizedState,f===null)return Gn(a),null;if(v=(a.flags&128)!==0,x=f.rendering,x===null)if(v)Pc(f,!1);else{if(mi!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(x=Vi(t),x!==null){for(a.flags|=128,Pc(f,!1),t=x.updateQueue,a.updateQueue=t,Gf(a,t),a.subtreeFlags=0,t=l,l=a.child;l!==null;)Il(l,t),l=l.sibling;return z(on,on.current&1|2),Jt&&Sa(a,f.treeForkCount),a.child}t=t.sibling}f.tail!==null&&Ee()>Kf&&(a.flags|=128,v=!0,Pc(f,!1),a.lanes=4194304)}else{if(!v)if(t=Vi(x),t!==null){if(a.flags|=128,v=!0,t=t.updateQueue,a.updateQueue=t,Gf(a,t),Pc(f,!0),f.tail===null&&f.tailMode==="hidden"&&!x.alternate&&!Jt)return Gn(a),null}else 2*Ee()-f.renderingStartTime>Kf&&l!==536870912&&(a.flags|=128,v=!0,Pc(f,!1),a.lanes=4194304);f.isBackwards?(x.sibling=a.child,a.child=x):(t=f.last,t!==null?t.sibling=x:a.child=x,f.last=x)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=Ee(),t.sibling=null,l=on.current,z(on,v?l&1|2:l&1),Jt&&Sa(a,f.treeForkCount),t):(Gn(a),null);case 22:case 23:return _n(a),xi(),f=a.memoizedState!==null,t!==null?t.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(l&536870912)!==0&&(a.flags&128)===0&&(Gn(a),a.subtreeFlags&6&&(a.flags|=8192)):Gn(a),l=a.updateQueue,l!==null&&Gf(a,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==l&&(a.flags|=2048),t!==null&&L(K),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Ba(ii),Gn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function Nb(t,a){switch(ku(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Ba(ii),Ne(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Xe(a),null;case 31:if(a.memoizedState!==null){if(_n(a),a.alternate===null)throw Error(r(340));ls()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(_n(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ls()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return L(on),null;case 4:return Ne(),null;case 10:return Ba(a.type),null;case 22:case 23:return _n(a),xi(),t!==null&&L(K),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Ba(ii),null;case 25:return null;default:return null}}function l0(t,a){switch(ku(a),a.tag){case 3:Ba(ii),Ne();break;case 26:case 27:case 5:Xe(a);break;case 4:Ne();break;case 31:a.memoizedState!==null&&_n(a);break;case 13:_n(a);break;case 19:L(on);break;case 10:Ba(a.type);break;case 22:case 23:_n(a),xi(),t!==null&&L(K);break;case 24:Ba(ii)}}function Ic(t,a){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var v=f.next;l=v;do{if((l.tag&t)===t){f=void 0;var x=l.create,D=l.inst;f=x(),D.destroy=f}l=l.next}while(l!==v)}}catch($){kn(a,a.return,$)}}function Zs(t,a,l){try{var f=a.updateQueue,v=f!==null?f.lastEffect:null;if(v!==null){var x=v.next;f=x;do{if((f.tag&t)===t){var D=f.inst,$=D.destroy;if($!==void 0){D.destroy=void 0,v=a;var ye=l,Fe=$;try{Fe()}catch(Ze){kn(v,ye,Ze)}}}f=f.next}while(f!==x)}}catch(Ze){kn(a,a.return,Ze)}}function u0(t){var a=t.updateQueue;if(a!==null){var l=t.stateNode;try{fi(a,l)}catch(f){kn(t,t.return,f)}}}function c0(t,a,l){l.props=Vl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(f){kn(t,a,f)}}function Fc(t,a){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var f=t.stateNode;break;case 30:f=t.stateNode;break;default:f=t.stateNode}typeof l=="function"?t.refCleanup=l(f):l.current=f}}catch(v){kn(t,a,v)}}function Mo(t,a){var l=t.ref,f=t.refCleanup;if(l!==null)if(typeof f=="function")try{f()}catch(v){kn(t,a,v)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(v){kn(t,a,v)}else l.current=null}function f0(t){var a=t.type,l=t.memoizedProps,f=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&f.focus();break e;case"img":l.src?f.src=l.src:l.srcSet&&(f.srcset=l.srcSet)}}catch(v){kn(t,t.return,v)}}function Od(t,a,l){try{var f=t.stateNode;Xb(f,t.type,l,a),f[Fn]=a}catch(v){kn(t,t.return,v)}}function h0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&nl(t.type)||t.tag===4}function Dd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||h0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&nl(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Md(t,a,l){var f=t.tag;if(f===5||f===6)t=t.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(t),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=nr));else if(f!==4&&(f===27&&nl(t.type)&&(l=t.stateNode,a=null),t=t.child,t!==null))for(Md(t,a,l),t=t.sibling;t!==null;)Md(t,a,l),t=t.sibling}function Vf(t,a,l){var f=t.tag;if(f===5||f===6)t=t.stateNode,a?l.insertBefore(t,a):l.appendChild(t);else if(f!==4&&(f===27&&nl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Vf(t,a,l),t=t.sibling;t!==null;)Vf(t,a,l),t=t.sibling}function d0(t){var a=t.stateNode,l=t.memoizedProps;try{for(var f=t.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);ia(a,f,l),a[wn]=t,a[Fn]=l}catch(x){kn(t,t.return,x)}}var ms=!1,Li=!1,Bd=!1,p0=typeof WeakSet=="function"?WeakSet:Set,Wi=null;function Cb(t,a){if(t=t.containerInfo,ap=dh,t=to(t),Er(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var v=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var D=0,$=-1,ye=-1,Fe=0,Ze=0,et=t,qe=null;t:for(;;){for(var Ye;et!==l||v!==0&&et.nodeType!==3||($=D+v),et!==x||f!==0&&et.nodeType!==3||(ye=D+f),et.nodeType===3&&(D+=et.nodeValue.length),(Ye=et.firstChild)!==null;)qe=et,et=Ye;for(;;){if(et===t)break t;if(qe===l&&++Fe===v&&($=D),qe===x&&++Ze===f&&(ye=D),(Ye=et.nextSibling)!==null)break;et=qe,qe=et.parentNode}et=Ye}l=$===-1||ye===-1?null:{start:$,end:ye}}else l=null}l=l||{start:0,end:0}}else l=null;for(rp={focusedElem:t,selectionRange:l},dh=!1,Wi=a;Wi!==null;)if(a=Wi,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,Wi=t;else for(;Wi!==null;){switch(a=Wi,x=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)v=t[l],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&x!==null){t=void 0,l=a,v=x.memoizedProps,x=x.memoizedState,f=l.stateNode;try{var yt=Vl(l.type,v);t=f.getSnapshotBeforeUpdate(yt,x),f.__reactInternalSnapshotBeforeUpdate=t}catch(Rt){kn(l,l.return,Rt)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,l=t.nodeType,l===9)lp(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":lp(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=a.sibling,t!==null){t.return=a.return,Wi=t;break}Wi=a.return}}function m0(t,a,l){var f=l.flags;switch(l.tag){case 0:case 11:case 15:vs(t,l),f&4&&Ic(5,l);break;case 1:if(vs(t,l),f&4)if(t=l.stateNode,a===null)try{t.componentDidMount()}catch(D){kn(l,l.return,D)}else{var v=Vl(l.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(v,a,t.__reactInternalSnapshotBeforeUpdate)}catch(D){kn(l,l.return,D)}}f&64&&u0(l),f&512&&Fc(l,l.return);break;case 3:if(vs(t,l),f&64&&(t=l.updateQueue,t!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{fi(t,a)}catch(D){kn(l,l.return,D)}}break;case 27:a===null&&f&4&&d0(l);case 26:case 5:vs(t,l),a===null&&f&4&&f0(l),f&512&&Fc(l,l.return);break;case 12:vs(t,l);break;case 31:vs(t,l),f&4&&y0(t,l);break;case 13:vs(t,l),f&4&&b0(t,l),f&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Mb.bind(null,l),nx(t,l))));break;case 22:if(f=l.memoizedState!==null||ms,!f){a=a!==null&&a.memoizedState!==null||Li,v=ms;var x=Li;ms=f,(Li=a)&&!x?ys(t,l,(l.subtreeFlags&8772)!==0):vs(t,l),ms=v,Li=x}break;case 30:break;default:vs(t,l)}}function g0(t){var a=t.alternate;a!==null&&(t.alternate=null,g0(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&bo(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Kn=null,Ia=!1;function gs(t,a,l){for(l=l.child;l!==null;)v0(t,a,l),l=l.sibling}function v0(t,a,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(ct,l)}catch{}switch(l.tag){case 26:Li||Mo(l,a),gs(t,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Li||Mo(l,a);var f=Kn,v=Ia;nl(l.type)&&(Kn=l.stateNode,Ia=!1),gs(t,a,l),Zc(l.stateNode),Kn=f,Ia=v;break;case 5:Li||Mo(l,a);case 6:if(f=Kn,v=Ia,Kn=null,gs(t,a,l),Kn=f,Ia=v,Kn!==null)if(Ia)try{(Kn.nodeType===9?Kn.body:Kn.nodeName==="HTML"?Kn.ownerDocument.body:Kn).removeChild(l.stateNode)}catch(x){kn(l,a,x)}else try{Kn.removeChild(l.stateNode)}catch(x){kn(l,a,x)}break;case 18:Kn!==null&&(Ia?(t=Kn,ug(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Zu(t)):ug(Kn,l.stateNode));break;case 4:f=Kn,v=Ia,Kn=l.stateNode.containerInfo,Ia=!0,gs(t,a,l),Kn=f,Ia=v;break;case 0:case 11:case 14:case 15:Zs(2,l,a),Li||Zs(4,l,a),gs(t,a,l);break;case 1:Li||(Mo(l,a),f=l.stateNode,typeof f.componentWillUnmount=="function"&&c0(l,a,f)),gs(t,a,l);break;case 21:gs(t,a,l);break;case 22:Li=(f=Li)||l.memoizedState!==null,gs(t,a,l),Li=f;break;default:gs(t,a,l)}}function y0(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Zu(t)}catch(l){kn(a,a.return,l)}}}function b0(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Zu(t)}catch(l){kn(a,a.return,l)}}function Eb(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new p0),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new p0),a;default:throw Error(r(435,t.tag))}}function Wf(t,a){var l=Eb(t);a.forEach(function(f){if(!l.has(f)){l.add(f);var v=Bb.bind(null,t,f);f.then(v,v)}})}function Fa(t,a){var l=a.deletions;if(l!==null)for(var f=0;f<l.length;f++){var v=l[f],x=t,D=a,$=D;e:for(;$!==null;){switch($.tag){case 27:if(nl($.type)){Kn=$.stateNode,Ia=!1;break e}break;case 5:Kn=$.stateNode,Ia=!1;break e;case 3:case 4:Kn=$.stateNode.containerInfo,Ia=!0;break e}$=$.return}if(Kn===null)throw Error(r(160));v0(x,D,v),Kn=null,Ia=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)x0(a,t),a=a.sibling}var uo=null;function x0(t,a){var l=t.alternate,f=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Fa(a,t),Ua(t),f&4&&(Zs(3,t,t.return),Ic(3,t),Zs(5,t,t.return));break;case 1:Fa(a,t),Ua(t),f&512&&(Li||l===null||Mo(l,l.return)),f&64&&ms&&(t=t.updateQueue,t!==null&&(f=t.callbacks,f!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?f:l.concat(f))));break;case 26:var v=uo;if(Fa(a,t),Ua(t),f&512&&(Li||l===null||Mo(l,l.return)),f&4){var x=l!==null?l.memoizedState:null;if(f=t.memoizedState,l===null)if(f===null)if(t.stateNode===null){e:{f=t.type,l=t.memoizedProps,v=v.ownerDocument||v;t:switch(f){case"title":x=v.getElementsByTagName("title")[0],(!x||x[Ka]||x[wn]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(f),v.head.insertBefore(x,v.querySelector("head > title"))),ia(x,f,l),x[wn]=t,$n(x),f=x;break e;case"link":var D=xg("link","href",v).get(f+(l.href||""));if(D){for(var $=0;$<D.length;$++)if(x=D[$],x.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&x.getAttribute("rel")===(l.rel==null?null:l.rel)&&x.getAttribute("title")===(l.title==null?null:l.title)&&x.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){D.splice($,1);break t}}x=v.createElement(f),ia(x,f,l),v.head.appendChild(x);break;case"meta":if(D=xg("meta","content",v).get(f+(l.content||""))){for($=0;$<D.length;$++)if(x=D[$],x.getAttribute("content")===(l.content==null?null:""+l.content)&&x.getAttribute("name")===(l.name==null?null:l.name)&&x.getAttribute("property")===(l.property==null?null:l.property)&&x.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&x.getAttribute("charset")===(l.charSet==null?null:l.charSet)){D.splice($,1);break t}}x=v.createElement(f),ia(x,f,l),v.head.appendChild(x);break;default:throw Error(r(468,f))}x[wn]=t,$n(x),f=x}t.stateNode=f}else wg(v,t.type,t.stateNode);else t.stateNode=bg(v,f,t.memoizedProps);else x!==f?(x===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):x.count--,f===null?wg(v,t.type,t.stateNode):bg(v,f,t.memoizedProps)):f===null&&t.stateNode!==null&&Od(t,t.memoizedProps,l.memoizedProps)}break;case 27:Fa(a,t),Ua(t),f&512&&(Li||l===null||Mo(l,l.return)),l!==null&&f&4&&Od(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Fa(a,t),Ua(t),f&512&&(Li||l===null||Mo(l,l.return)),t.flags&32){v=t.stateNode;try{tr(v,"")}catch(yt){kn(t,t.return,yt)}}f&4&&t.stateNode!=null&&(v=t.memoizedProps,Od(t,v,l!==null?l.memoizedProps:v)),f&1024&&(Bd=!0);break;case 6:if(Fa(a,t),Ua(t),f&4){if(t.stateNode===null)throw Error(r(162));f=t.memoizedProps,l=t.stateNode;try{l.nodeValue=f}catch(yt){kn(t,t.return,yt)}}break;case 3:if(uh=null,v=uo,uo=sh(a.containerInfo),Fa(a,t),uo=v,Ua(t),f&4&&l!==null&&l.memoizedState.isDehydrated)try{Zu(a.containerInfo)}catch(yt){kn(t,t.return,yt)}Bd&&(Bd=!1,w0(t));break;case 4:f=uo,uo=sh(t.stateNode.containerInfo),Fa(a,t),Ua(t),uo=f;break;case 12:Fa(a,t),Ua(t);break;case 31:Fa(a,t),Ua(t),f&4&&(f=t.updateQueue,f!==null&&(t.updateQueue=null,Wf(t,f)));break;case 13:Fa(a,t),Ua(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Zf=Ee()),f&4&&(f=t.updateQueue,f!==null&&(t.updateQueue=null,Wf(t,f)));break;case 22:v=t.memoizedState!==null;var ye=l!==null&&l.memoizedState!==null,Fe=ms,Ze=Li;if(ms=Fe||v,Li=Ze||ye,Fa(a,t),Li=Ze,ms=Fe,Ua(t),f&8192)e:for(a=t.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(l===null||ye||ms||Li||Wl(t)),l=null,a=t;;){if(a.tag===5||a.tag===26){if(l===null){ye=l=a;try{if(x=ye.stateNode,v)D=x.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{$=ye.stateNode;var et=ye.memoizedProps.style,qe=et!=null&&et.hasOwnProperty("display")?et.display:null;$.style.display=qe==null||typeof qe=="boolean"?"":(""+qe).trim()}}catch(yt){kn(ye,ye.return,yt)}}}else if(a.tag===6){if(l===null){ye=a;try{ye.stateNode.nodeValue=v?"":ye.memoizedProps}catch(yt){kn(ye,ye.return,yt)}}}else if(a.tag===18){if(l===null){ye=a;try{var Ye=ye.stateNode;v?cg(Ye,!0):cg(ye.stateNode,!1)}catch(yt){kn(ye,ye.return,yt)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=t.updateQueue,f!==null&&(l=f.retryQueue,l!==null&&(f.retryQueue=null,Wf(t,l))));break;case 19:Fa(a,t),Ua(t),f&4&&(f=t.updateQueue,f!==null&&(t.updateQueue=null,Wf(t,f)));break;case 30:break;case 21:break;default:Fa(a,t),Ua(t)}}function Ua(t){var a=t.flags;if(a&2){try{for(var l,f=t.return;f!==null;){if(h0(f)){l=f;break}f=f.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var v=l.stateNode,x=Dd(t);Vf(t,x,v);break;case 5:var D=l.stateNode;l.flags&32&&(tr(D,""),l.flags&=-33);var $=Dd(t);Vf(t,$,D);break;case 3:case 4:var ye=l.stateNode.containerInfo,Fe=Dd(t);Md(t,Fe,ye);break;default:throw Error(r(161))}}catch(Ze){kn(t,t.return,Ze)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function w0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;w0(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function vs(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)m0(t,a.alternate,a),a=a.sibling}function Wl(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Zs(4,a,a.return),Wl(a);break;case 1:Mo(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&c0(a,a.return,l),Wl(a);break;case 27:Zc(a.stateNode);case 26:case 5:Mo(a,a.return),Wl(a);break;case 22:a.memoizedState===null&&Wl(a);break;case 30:Wl(a);break;default:Wl(a)}t=t.sibling}}function ys(t,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,v=t,x=a,D=x.flags;switch(x.tag){case 0:case 11:case 15:ys(v,x,l),Ic(4,x);break;case 1:if(ys(v,x,l),f=x,v=f.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Fe){kn(f,f.return,Fe)}if(f=x,v=f.updateQueue,v!==null){var $=f.stateNode;try{var ye=v.shared.hiddenCallbacks;if(ye!==null)for(v.shared.hiddenCallbacks=null,v=0;v<ye.length;v++)Gi(ye[v],$)}catch(Fe){kn(f,f.return,Fe)}}l&&D&64&&u0(x),Fc(x,x.return);break;case 27:d0(x);case 26:case 5:ys(v,x,l),l&&f===null&&D&4&&f0(x),Fc(x,x.return);break;case 12:ys(v,x,l);break;case 31:ys(v,x,l),l&&D&4&&y0(v,x);break;case 13:ys(v,x,l),l&&D&4&&b0(v,x);break;case 22:x.memoizedState===null&&ys(v,x,l),Fc(x,x.return);break;case 30:break;default:ys(v,x,l)}a=a.sibling}}function Pd(t,a){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ql(l))}function Id(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&ql(t))}function co(t,a,l,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)_0(t,a,l,f),a=a.sibling}function _0(t,a,l,f){var v=a.flags;switch(a.tag){case 0:case 11:case 15:co(t,a,l,f),v&2048&&Ic(9,a);break;case 1:co(t,a,l,f);break;case 3:co(t,a,l,f),v&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&ql(t)));break;case 12:if(v&2048){co(t,a,l,f),t=a.stateNode;try{var x=a.memoizedProps,D=x.id,$=x.onPostCommit;typeof $=="function"&&$(D,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(ye){kn(a,a.return,ye)}}else co(t,a,l,f);break;case 31:co(t,a,l,f);break;case 13:co(t,a,l,f);break;case 23:break;case 22:x=a.stateNode,D=a.alternate,a.memoizedState!==null?x._visibility&2?co(t,a,l,f):Uc(t,a):x._visibility&2?co(t,a,l,f):(x._visibility|=2,Pu(t,a,l,f,(a.subtreeFlags&10256)!==0||!1)),v&2048&&Pd(D,a);break;case 24:co(t,a,l,f),v&2048&&Id(a.alternate,a);break;default:co(t,a,l,f)}}function Pu(t,a,l,f,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var x=t,D=a,$=l,ye=f,Fe=D.flags;switch(D.tag){case 0:case 11:case 15:Pu(x,D,$,ye,v),Ic(8,D);break;case 23:break;case 22:var Ze=D.stateNode;D.memoizedState!==null?Ze._visibility&2?Pu(x,D,$,ye,v):Uc(x,D):(Ze._visibility|=2,Pu(x,D,$,ye,v)),v&&Fe&2048&&Pd(D.alternate,D);break;case 24:Pu(x,D,$,ye,v),v&&Fe&2048&&Id(D.alternate,D);break;default:Pu(x,D,$,ye,v)}a=a.sibling}}function Uc(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=t,f=a,v=f.flags;switch(f.tag){case 22:Uc(l,f),v&2048&&Pd(f.alternate,f);break;case 24:Uc(l,f),v&2048&&Id(f.alternate,f);break;default:Uc(l,f)}a=a.sibling}}var qc=8192;function Iu(t,a,l){if(t.subtreeFlags&qc)for(t=t.child;t!==null;)S0(t,a,l),t=t.sibling}function S0(t,a,l){switch(t.tag){case 26:Iu(t,a,l),t.flags&qc&&t.memoizedState!==null&&px(l,uo,t.memoizedState,t.memoizedProps);break;case 5:Iu(t,a,l);break;case 3:case 4:var f=uo;uo=sh(t.stateNode.containerInfo),Iu(t,a,l),uo=f;break;case 22:t.memoizedState===null&&(f=t.alternate,f!==null&&f.memoizedState!==null?(f=qc,qc=16777216,Iu(t,a,l),qc=f):Iu(t,a,l));break;default:Iu(t,a,l)}}function k0(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Hc(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var f=a[l];Wi=f,N0(f,t)}k0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)A0(t),t=t.sibling}function A0(t){switch(t.tag){case 0:case 11:case 15:Hc(t),t.flags&2048&&Zs(9,t,t.return);break;case 3:Hc(t);break;case 12:Hc(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Xf(t)):Hc(t);break;default:Hc(t)}}function Xf(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var f=a[l];Wi=f,N0(f,t)}k0(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Zs(8,a,a.return),Xf(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Xf(a));break;default:Xf(a)}t=t.sibling}}function N0(t,a){for(;Wi!==null;){var l=Wi;switch(l.tag){case 0:case 11:case 15:Zs(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var f=l.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:ql(l.memoizedState.cache)}if(f=l.child,f!==null)f.return=l,Wi=f;else e:for(l=t;Wi!==null;){f=Wi;var v=f.sibling,x=f.return;if(g0(f),f===l){Wi=null;break e}if(v!==null){v.return=x,Wi=v;break e}Wi=x}}}var Lb={getCacheForType:function(t){var a=Bi(ii),l=a.data.get(t);return l===void 0&&(l=t(),a.data.set(t,l)),l},cacheSignal:function(){return Bi(ii).controller.signal}},zb=typeof WeakMap=="function"?WeakMap:Map,yn=0,On=null,Qt=null,en=0,Sn=0,ur=null,Ks=!1,Fu=!1,Fd=!1,bs=0,mi=0,Js=0,Xl=0,Ud=0,cr=0,Uu=0,Yc=null,qa=null,qd=!1,Zf=0,C0=0,Kf=1/0,Jf=null,Qs=null,Ii=0,$s=null,qu=null,xs=0,Hd=0,Yd=null,E0=null,Gc=0,Gd=null;function fr(){return(yn&2)!==0&&en!==0?en&-en:ie.T!==null?Jd():ki()}function L0(){if(cr===0)if((en&536870912)===0||Jt){var t=dn;dn<<=1,(dn&3932160)===0&&(dn=262144),cr=t}else cr=536870912;return t=Yn.current,t!==null&&(t.flags|=32),cr}function Ha(t,a,l){(t===On&&(Sn===2||Sn===9)||t.cancelPendingCommit!==null)&&(Hu(t,0),el(t,en,cr,!1)),Nt(t,l),((yn&2)===0||t!==On)&&(t===On&&((yn&2)===0&&(Xl|=l),mi===4&&el(t,en,cr,!1)),Bo(t))}function z0(t,a,l){if((yn&6)!==0)throw Error(r(327));var f=!l&&(a&127)===0&&(a&t.expiredLanes)===0||Xa(t,a),v=f?Rb(t,a):Wd(t,a,!0),x=f;do{if(v===0){Fu&&!f&&el(t,a,0,!1);break}else{if(l=t.current.alternate,x&&!Tb(l)){v=Wd(t,a,!1),x=!1;continue}if(v===2){if(x=a,t.errorRecoveryDisabledLanes&x)var D=0;else D=t.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){a=D;e:{var $=t;v=Yc;var ye=$.current.memoizedState.isDehydrated;if(ye&&(Hu($,D).flags|=256),D=Wd($,D,!1),D!==2){if(Fd&&!ye){$.errorRecoveryDisabledLanes|=x,Xl|=x,v=4;break e}x=qa,qa=v,x!==null&&(qa===null?qa=x:qa.push.apply(qa,x))}v=D}if(x=!1,v!==2)continue}}if(v===1){Hu(t,0),el(t,a,0,!0);break}e:{switch(f=t,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:el(f,a,cr,!Ks);break e;case 2:qa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=Zf+300-Ee(),10<v)){if(el(f,a,cr,!Ks),nn(f,0,!0)!==0)break e;xs=a,f.timeoutHandle=sg(T0.bind(null,f,l,qa,Jf,qd,a,cr,Xl,Uu,Ks,x,"Throttled",-0,0),v);break e}T0(f,l,qa,Jf,qd,a,cr,Xl,Uu,Ks,x,null,-0,0)}}break}while(!0);Bo(t)}function T0(t,a,l,f,v,x,D,$,ye,Fe,Ze,et,qe,Ye){if(t.timeoutHandle=-1,et=a.subtreeFlags,et&8192||(et&16785408)===16785408){et={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nr},S0(a,x,et);var yt=(x&62914560)===x?Zf-Ee():(x&4194048)===x?C0-Ee():0;if(yt=mx(et,yt),yt!==null){xs=x,t.cancelPendingCommit=yt(I0.bind(null,t,a,x,l,f,v,D,$,ye,Ze,et,null,qe,Ye)),el(t,x,D,!Fe);return}}I0(t,a,x,l,f,v,D,$,ye)}function Tb(t){for(var a=t;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var f=0;f<l.length;f++){var v=l[f],x=v.getSnapshot;v=v.value;try{if(!Ri(x(),v))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function el(t,a,l,f){a&=~Ud,a&=~Xl,t.suspendedLanes|=a,t.pingedLanes&=~a,f&&(t.warmLanes|=a),f=t.expirationTimes;for(var v=a;0<v;){var x=31-mt(v),D=1<<x;f[x]=-1,v&=~D}l!==0&&vr(t,l,a)}function Qf(){return(yn&6)===0?(Vc(0),!1):!0}function Vd(){if(Qt!==null){if(Sn===0)var t=Qt.return;else t=Qt,zr=Eo=null,Tu(t),tt=null,bt=0,t=Qt;for(;t!==null;)l0(t.alternate,t),t=t.return;Qt=null}}function Hu(t,a){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Jb(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),xs=0,Vd(),On=t,Qt=l=Ta(t.current,null),en=a,Sn=0,ur=null,Ks=!1,Fu=Xa(t,a),Fd=!1,Uu=cr=Ud=Xl=Js=mi=0,qa=Yc=null,qd=!1,(a&8)!==0&&(a|=a&32);var f=t.entangledLanes;if(f!==0)for(t=t.entanglements,f&=a;0<f;){var v=31-mt(f),x=1<<v;a|=t[v],f&=~x}return bs=a,Ml(),l}function j0(t,a){Ct=null,ie.H=Mc,a===Se||a===fe?(a=Je(),Sn=3):a===Pe?(a=Je(),Sn=4):Sn=a===kd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ur=a,Qt===null&&(mi=1,Uf(t,ja(a,t.current)))}function R0(){var t=Yn.current;return t===null?!0:(en&4194048)===en?ln===null:(en&62914560)===en||(en&536870912)!==0?t===ln:!1}function O0(){var t=ie.H;return ie.H=Mc,t===null?Mc:t}function D0(){var t=ie.A;return ie.A=Lb,t}function $f(){mi=4,Ks||(en&4194048)!==en&&Yn.current!==null||(Fu=!0),(Js&134217727)===0&&(Xl&134217727)===0||On===null||el(On,en,cr,!1)}function Wd(t,a,l){var f=yn;yn|=2;var v=O0(),x=D0();(On!==t||en!==a)&&(Jf=null,Hu(t,a)),a=!1;var D=mi;e:do try{if(Sn!==0&&Qt!==null){var $=Qt,ye=ur;switch(Sn){case 8:Vd(),D=6;break e;case 3:case 2:case 9:case 6:Yn.current===null&&(a=!0);var Fe=Sn;if(Sn=0,ur=null,Yu(t,$,ye,Fe),l&&Fu){D=0;break e}break;default:Fe=Sn,Sn=0,ur=null,Yu(t,$,ye,Fe)}}jb(),D=mi;break}catch(Ze){j0(t,Ze)}while(!0);return a&&t.shellSuspendCounter++,zr=Eo=null,yn=f,ie.H=v,ie.A=x,Qt===null&&(On=null,en=0,Ml()),D}function jb(){for(;Qt!==null;)M0(Qt)}function Rb(t,a){var l=yn;yn|=2;var f=O0(),v=D0();On!==t||en!==a?(Jf=null,Kf=Ee()+500,Hu(t,a)):Fu=Xa(t,a);e:do try{if(Sn!==0&&Qt!==null){a=Qt;var x=ur;t:switch(Sn){case 1:Sn=0,ur=null,Yu(t,a,x,1);break;case 2:case 9:if(Oe(x)){Sn=0,ur=null,B0(a);break}a=function(){Sn!==2&&Sn!==9||On!==t||(Sn=7),Bo(t)},x.then(a,a);break e;case 3:Sn=7;break e;case 4:Sn=5;break e;case 7:Oe(x)?(Sn=0,ur=null,B0(a)):(Sn=0,ur=null,Yu(t,a,x,7));break;case 5:var D=null;switch(Qt.tag){case 26:D=Qt.memoizedState;case 5:case 27:var $=Qt;if(D?_g(D):$.stateNode.complete){Sn=0,ur=null;var ye=$.sibling;if(ye!==null)Qt=ye;else{var Fe=$.return;Fe!==null?(Qt=Fe,eh(Fe)):Qt=null}break t}}Sn=0,ur=null,Yu(t,a,x,5);break;case 6:Sn=0,ur=null,Yu(t,a,x,6);break;case 8:Vd(),mi=6;break e;default:throw Error(r(462))}}Ob();break}catch(Ze){j0(t,Ze)}while(!0);return zr=Eo=null,ie.H=f,ie.A=v,yn=l,Qt!==null?0:(On=null,en=0,Ml(),mi)}function Ob(){for(;Qt!==null&&!_e();)M0(Qt)}function M0(t){var a=o0(t.alternate,t,bs);t.memoizedProps=t.pendingProps,a===null?eh(t):Qt=a}function B0(t){var a=t,l=a.alternate;switch(a.tag){case 15:case 0:a=e0(l,a,a.pendingProps,a.type,void 0,en);break;case 11:a=e0(l,a,a.pendingProps,a.type.render,a.ref,en);break;case 5:Tu(a);default:l0(l,a),a=Qt=Il(a,bs),a=o0(l,a,bs)}t.memoizedProps=t.pendingProps,a===null?eh(t):Qt=a}function Yu(t,a,l,f){zr=Eo=null,Tu(a),tt=null,bt=0;var v=a.return;try{if(_b(t,v,a,l,en)){mi=1,Uf(t,ja(l,t.current)),Qt=null;return}}catch(x){if(v!==null)throw Qt=v,x;mi=1,Uf(t,ja(l,t.current)),Qt=null;return}a.flags&32768?(Jt||f===1?t=!0:Fu||(en&536870912)!==0?t=!1:(Ks=t=!0,(f===2||f===9||f===3||f===6)&&(f=Yn.current,f!==null&&f.tag===13&&(f.flags|=16384))),P0(a,t)):eh(a)}function eh(t){var a=t;do{if((a.flags&32768)!==0){P0(a,Ks);return}t=a.return;var l=Ab(a.alternate,a,bs);if(l!==null){Qt=l;return}if(a=a.sibling,a!==null){Qt=a;return}Qt=a=t}while(a!==null);mi===0&&(mi=5)}function P0(t,a){do{var l=Nb(t.alternate,t);if(l!==null){l.flags&=32767,Qt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(t=t.sibling,t!==null)){Qt=t;return}Qt=t=l}while(t!==null);mi=6,Qt=null}function I0(t,a,l,f,v,x,D,$,ye){t.cancelPendingCommit=null;do th();while(Ii!==0);if((yn&6)!==0)throw Error(r(327));if(a!==null){if(a===t.current)throw Error(r(177));if(x=a.lanes|a.childLanes,x|=vu,Br(t,l,x,D,$,ye),t===On&&(Qt=On=null,en=0),qu=a,$s=t,xs=l,Hd=x,Yd=v,E0=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Pb(Ge,function(){return Y0(),null})):(t.callbackNode=null,t.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=ie.T,ie.T=null,v=oe.p,oe.p=2,D=yn,yn|=4;try{Cb(t,a,l)}finally{yn=D,oe.p=v,ie.T=f}}Ii=1,F0(),U0(),q0()}}function F0(){if(Ii===1){Ii=0;var t=$s,a=qu,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=ie.T,ie.T=null;var f=oe.p;oe.p=2;var v=yn;yn|=4;try{x0(a,t);var x=rp,D=to(t.containerInfo),$=x.focusedElem,ye=x.selectionRange;if(D!==$&&$&&$.ownerDocument&&eo($.ownerDocument.documentElement,$)){if(ye!==null&&Er($)){var Fe=ye.start,Ze=ye.end;if(Ze===void 0&&(Ze=Fe),"selectionStart"in $)$.selectionStart=Fe,$.selectionEnd=Math.min(Ze,$.value.length);else{var et=$.ownerDocument||document,qe=et&&et.defaultView||window;if(qe.getSelection){var Ye=qe.getSelection(),yt=$.textContent.length,Rt=Math.min(ye.start,yt),Tn=ye.end===void 0?Rt:Math.min(ye.end,yt);!Ye.extend&&Rt>Tn&&(D=Tn,Tn=Rt,Rt=D);var ze=Ps($,Rt),ke=Ps($,Tn);if(ze&&ke&&(Ye.rangeCount!==1||Ye.anchorNode!==ze.node||Ye.anchorOffset!==ze.offset||Ye.focusNode!==ke.node||Ye.focusOffset!==ke.offset)){var Ie=et.createRange();Ie.setStart(ze.node,ze.offset),Ye.removeAllRanges(),Rt>Tn?(Ye.addRange(Ie),Ye.extend(ke.node,ke.offset)):(Ie.setEnd(ke.node,ke.offset),Ye.addRange(Ie))}}}}for(et=[],Ye=$;Ye=Ye.parentNode;)Ye.nodeType===1&&et.push({element:Ye,left:Ye.scrollLeft,top:Ye.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<et.length;$++){var Qe=et[$];Qe.element.scrollLeft=Qe.left,Qe.element.scrollTop=Qe.top}}dh=!!ap,rp=ap=null}finally{yn=v,oe.p=f,ie.T=l}}t.current=a,Ii=2}}function U0(){if(Ii===2){Ii=0;var t=$s,a=qu,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=ie.T,ie.T=null;var f=oe.p;oe.p=2;var v=yn;yn|=4;try{m0(t,a.alternate,a)}finally{yn=v,oe.p=f,ie.T=l}}Ii=3}}function q0(){if(Ii===4||Ii===3){Ii=0,He();var t=$s,a=qu,l=xs,f=E0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ii=5:(Ii=0,qu=$s=null,H0(t,t.pendingLanes));var v=t.pendingLanes;if(v===0&&(Qs=null),si(l),a=a.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(ct,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=ie.T,v=oe.p,oe.p=2,ie.T=null;try{for(var x=t.onRecoverableError,D=0;D<f.length;D++){var $=f[D];x($.value,{componentStack:$.stack})}}finally{ie.T=a,oe.p=v}}(xs&3)!==0&&th(),Bo(t),v=t.pendingLanes,(l&261930)!==0&&(v&42)!==0?t===Gd?Gc++:(Gc=0,Gd=t):Gc=0,Vc(0)}}function H0(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,ql(a)))}function th(){return F0(),U0(),q0(),Y0()}function Y0(){if(Ii!==5)return!1;var t=$s,a=Hd;Hd=0;var l=si(xs),f=ie.T,v=oe.p;try{oe.p=32>l?32:l,ie.T=null,l=Yd,Yd=null;var x=$s,D=xs;if(Ii=0,qu=$s=null,xs=0,(yn&6)!==0)throw Error(r(331));var $=yn;if(yn|=4,A0(x.current),_0(x,x.current,D,l),yn=$,Vc(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(ct,x)}catch{}return!0}finally{oe.p=v,ie.T=f,H0(t,a)}}function G0(t,a,l){a=ja(l,a),a=Sd(t.stateNode,a,2),t=Gt(t,a,2),t!==null&&(Nt(t,2),Bo(t))}function kn(t,a,l){if(t.tag===3)G0(t,t,l);else for(;a!==null;){if(a.tag===3){G0(a,t,l);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Qs===null||!Qs.has(f))){t=ja(l,t),l=V1(2),f=Gt(a,l,2),f!==null&&(W1(l,f,a,t),Nt(f,2),Bo(f));break}}a=a.return}}function Xd(t,a,l){var f=t.pingCache;if(f===null){f=t.pingCache=new zb;var v=new Set;f.set(a,v)}else v=f.get(a),v===void 0&&(v=new Set,f.set(a,v));v.has(l)||(Fd=!0,v.add(l),t=Db.bind(null,t,a,l),a.then(t,t))}function Db(t,a,l){var f=t.pingCache;f!==null&&f.delete(a),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,On===t&&(en&l)===l&&(mi===4||mi===3&&(en&62914560)===en&&300>Ee()-Zf?(yn&2)===0&&Hu(t,0):Ud|=l,Uu===en&&(Uu=0)),Bo(t)}function V0(t,a){a===0&&(a=gr()),t=io(t,a),t!==null&&(Nt(t,a),Bo(t))}function Mb(t){var a=t.memoizedState,l=0;a!==null&&(l=a.retryLane),V0(t,l)}function Bb(t,a){var l=0;switch(t.tag){case 31:case 13:var f=t.stateNode,v=t.memoizedState;v!==null&&(l=v.retryLane);break;case 19:f=t.stateNode;break;case 22:f=t.stateNode._retryCache;break;default:throw Error(r(314))}f!==null&&f.delete(a),V0(t,l)}function Pb(t,a){return De(t,a)}var nh=null,Gu=null,Zd=!1,ih=!1,Kd=!1,tl=0;function Bo(t){t!==Gu&&t.next===null&&(Gu===null?nh=Gu=t:Gu=Gu.next=t),ih=!0,Zd||(Zd=!0,Fb())}function Vc(t,a){if(!Kd&&ih){Kd=!0;do for(var l=!1,f=nh;f!==null;){if(t!==0){var v=f.pendingLanes;if(v===0)var x=0;else{var D=f.suspendedLanes,$=f.pingedLanes;x=(1<<31-mt(42|t)+1)-1,x&=v&~(D&~$),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(l=!0,K0(f,x))}else x=en,x=nn(f,f===On?x:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(x&3)===0||Xa(f,x)||(l=!0,K0(f,x));f=f.next}while(l);Kd=!1}}function Ib(){W0()}function W0(){ih=Zd=!1;var t=0;tl!==0&&Kb()&&(t=tl);for(var a=Ee(),l=null,f=nh;f!==null;){var v=f.next,x=X0(f,a);x===0?(f.next=null,l===null?nh=v:l.next=v,v===null&&(Gu=l)):(l=f,(t!==0||(x&3)!==0)&&(ih=!0)),f=v}Ii!==0&&Ii!==5||Vc(t),tl!==0&&(tl=0)}function X0(t,a){for(var l=t.suspendedLanes,f=t.pingedLanes,v=t.expirationTimes,x=t.pendingLanes&-62914561;0<x;){var D=31-mt(x),$=1<<D,ye=v[D];ye===-1?(($&l)===0||($&f)!==0)&&(v[D]=Fi($,a)):ye<=a&&(t.expiredLanes|=$),x&=~$}if(a=On,l=en,l=nn(t,t===a?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),f=t.callbackNode,l===0||t===a&&(Sn===2||Sn===9)||t.cancelPendingCommit!==null)return f!==null&&f!==null&&Re(f),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Xa(t,l)){if(a=l&-l,a===t.callbackPriority)return a;switch(f!==null&&Re(f),si(l)){case 2:case 8:l=Be;break;case 32:l=Ge;break;case 268435456:l=st;break;default:l=Ge}return f=Z0.bind(null,t),l=De(l,f),t.callbackPriority=a,t.callbackNode=l,a}return f!==null&&f!==null&&Re(f),t.callbackPriority=2,t.callbackNode=null,2}function Z0(t,a){if(Ii!==0&&Ii!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(th()&&t.callbackNode!==l)return null;var f=en;return f=nn(t,t===On?f:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),f===0?null:(z0(t,f,a),X0(t,Ee()),t.callbackNode!=null&&t.callbackNode===l?Z0.bind(null,t):null)}function K0(t,a){if(th())return null;z0(t,a,!0)}function Fb(){Qb(function(){(yn&6)!==0?De(ve,Ib):W0()})}function Jd(){if(tl===0){var t=g;t===0&&(t=Ot,Ot<<=1,(Ot&261888)===0&&(Ot=256)),tl=t}return tl}function J0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:aa(""+t)}function Q0(t,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,t.id&&l.setAttribute("form",t.id),a.parentNode.insertBefore(l,a),t=new FormData(t),l.parentNode.removeChild(l),t}function Ub(t,a,l,f,v){if(a==="submit"&&l&&l.stateNode===v){var x=J0((v[Fn]||null).action),D=f.submitter;D&&(a=(a=D[Fn]||null)?J0(a.formAction):D.getAttribute("formAction"),a!==null&&(x=a,D=null));var $=new Ea("action","action",null,f,v);t.push({event:$,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(tl!==0){var ye=D?Q0(v,D):new FormData(v);vd(l,{pending:!0,data:ye,method:v.method,action:x},null,ye)}}else typeof x=="function"&&($.preventDefault(),ye=D?Q0(v,D):new FormData(v),vd(l,{pending:!0,data:ye,method:v.method,action:x},x,ye))},currentTarget:v}]})}}for(var Qd=0;Qd<rs.length;Qd++){var $d=rs[Qd],qb=$d.toLowerCase(),Hb=$d[0].toUpperCase()+$d.slice(1);za(qb,"on"+Hb)}za(as,"onAnimationEnd"),za(Ol,"onAnimationIteration"),za(wc,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(Ef,"onTransitionRun"),za(Lf,"onTransitionStart"),za(zf,"onTransitionCancel"),za(_c,"onTransitionEnd"),Pr("onMouseEnter",["mouseout","mouseover"]),Pr("onMouseLeave",["mouseout","mouseover"]),Pr("onPointerEnter",["pointerout","pointerover"]),Pr("onPointerLeave",["pointerout","pointerover"]),$a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$a("onBeforeInput",["compositionend","keypress","textInput","paste"]),$a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wc="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(" "),Yb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wc));function $0(t,a){a=(a&4)!==0;for(var l=0;l<t.length;l++){var f=t[l],v=f.event;f=f.listeners;e:{var x=void 0;if(a)for(var D=f.length-1;0<=D;D--){var $=f[D],ye=$.instance,Fe=$.currentTarget;if($=$.listener,ye!==x&&v.isPropagationStopped())break e;x=$,v.currentTarget=Fe;try{x(v)}catch(Ze){Dl(Ze)}v.currentTarget=null,x=ye}else for(D=0;D<f.length;D++){if($=f[D],ye=$.instance,Fe=$.currentTarget,$=$.listener,ye!==x&&v.isPropagationStopped())break e;x=$,v.currentTarget=Fe;try{x(v)}catch(Ze){Dl(Ze)}v.currentTarget=null,x=ye}}}}function $t(t,a){var l=a[ma];l===void 0&&(l=a[ma]=new Set);var f=t+"__bubble";l.has(f)||(eg(a,t,2,!1),l.add(f))}function ep(t,a,l){var f=0;a&&(f|=4),eg(l,t,f,a)}var ah="_reactListening"+Math.random().toString(36).slice(2);function tp(t){if(!t[ah]){t[ah]=!0,vl.forEach(function(l){l!=="selectionchange"&&(Yb.has(l)||ep(l,!1,t),ep(l,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[ah]||(a[ah]=!0,ep("selectionchange",!1,a))}}function eg(t,a,l,f){switch(Lg(a)){case 2:var v=yx;break;case 8:v=bx;break;default:v=gp}l=v.bind(null,a,l,t),v=void 0,!Ll||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),f?v!==void 0?t.addEventListener(a,l,{capture:!0,passive:v}):t.addEventListener(a,l,!0):v!==void 0?t.addEventListener(a,l,{passive:v}):t.addEventListener(a,l,!1)}function np(t,a,l,f,v){var x=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var D=f.tag;if(D===3||D===4){var $=f.stateNode.containerInfo;if($===v)break;if(D===4)for(D=f.return;D!==null;){var ye=D.tag;if((ye===3||ye===4)&&D.stateNode.containerInfo===v)return;D=D.return}for(;$!==null;){if(D=Ja($),D===null)return;if(ye=D.tag,ye===5||ye===6||ye===26||ye===27){f=x=D;continue e}$=$.parentNode}}f=f.return}hu(function(){var Fe=x,Ze=Jo(l),et=[];e:{var qe=Sc.get(t);if(qe!==void 0){var Ye=Ea,yt=t;switch(t){case"keypress":if(Ca(l)===0)break e;case"keydown":case"keyup":Ye=an;break;case"focusin":yt="focus",Ye=Vr;break;case"focusout":yt="blur",Ye=Vr;break;case"beforeblur":case"afterblur":Ye=Vr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ye=zl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=Gr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=yi;break;case as:case Ol:case wc:Ye=k;break;case _c:Ye=ji;break;case"scroll":case"scrollend":Ye=Ts;break;case"wheel":Ye=ir;break;case"copy":case"cut":case"paste":Ye=de;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=ei;break;case"toggle":case"beforetoggle":Ye=Tl}var Rt=(a&4)!==0,Tn=!Rt&&(t==="scroll"||t==="scrollend"),ze=Rt?qe!==null?qe+"Capture":null:qe;Rt=[];for(var ke=Fe,Ie;ke!==null;){var Qe=ke;if(Ie=Qe.stateNode,Qe=Qe.tag,Qe!==5&&Qe!==26&&Qe!==27||Ie===null||ze===null||(Qe=ya(ke,ze),Qe!=null&&Rt.push(Xc(ke,Qe,Ie))),Tn)break;ke=ke.return}0<Rt.length&&(qe=new Ye(qe,yt,null,l,Ze),et.push({event:qe,listeners:Rt}))}}if((a&7)===0){e:{if(qe=t==="mouseover"||t==="pointerover",Ye=t==="mouseout"||t==="pointerout",qe&&l!==Fr&&(yt=l.relatedTarget||l.fromElement)&&(Ja(yt)||yt[Ui]))break e;if((Ye||qe)&&(qe=Ze.window===Ze?Ze:(qe=Ze.ownerDocument)?qe.defaultView||qe.parentWindow:window,Ye?(yt=l.relatedTarget||l.toElement,Ye=Fe,yt=yt?Ja(yt):null,yt!==null&&(Tn=o(yt),Rt=yt.tag,yt!==Tn||Rt!==5&&Rt!==27&&Rt!==6)&&(yt=null)):(Ye=null,yt=Fe),Ye!==yt)){if(Rt=zl,Qe="onMouseLeave",ze="onMouseEnter",ke="mouse",(t==="pointerout"||t==="pointerover")&&(Rt=ei,Qe="onPointerLeave",ze="onPointerEnter",ke="pointer"),Tn=Ye==null?qe:Zo(Ye),Ie=yt==null?qe:Zo(yt),qe=new Rt(Qe,ke+"leave",Ye,l,Ze),qe.target=Tn,qe.relatedTarget=Ie,Qe=null,Ja(Ze)===Fe&&(Rt=new Rt(ze,ke+"enter",yt,l,Ze),Rt.target=Ie,Rt.relatedTarget=Tn,Qe=Rt),Tn=Qe,Ye&&yt)t:{for(Rt=Gb,ze=Ye,ke=yt,Ie=0,Qe=ze;Qe;Qe=Rt(Qe))Ie++;Qe=0;for(var zt=ke;zt;zt=Rt(zt))Qe++;for(;0<Ie-Qe;)ze=Rt(ze),Ie--;for(;0<Qe-Ie;)ke=Rt(ke),Qe--;for(;Ie--;){if(ze===ke||ke!==null&&ze===ke.alternate){Rt=ze;break t}ze=Rt(ze),ke=Rt(ke)}Rt=null}else Rt=null;Ye!==null&&tg(et,qe,Ye,Rt,!1),yt!==null&&Tn!==null&&tg(et,Tn,yt,Rt,!0)}}e:{if(qe=Fe?Zo(Fe):window,Ye=qe.nodeName&&qe.nodeName.toLowerCase(),Ye==="select"||Ye==="input"&&qe.type==="file")var pn=ko;else if(jl(qe))if(ra)pn=Nr;else{pn=ti;var kt=Ms}else Ye=qe.nodeName,!Ye||Ye.toLowerCase()!=="input"||qe.type!=="checkbox"&&qe.type!=="radio"?Fe&&Nl(Fe.elementType)&&(pn=ko):pn=gu;if(pn&&(pn=pn(t,Fe))){xa(et,pn,l,Ze);break e}kt&&kt(t,qe,Fe),t==="focusout"&&Fe&&qe.type==="number"&&Fe.memoizedProps.value!=null&&Sl(qe,"number",qe.value)}switch(kt=Fe?Zo(Fe):window,t){case"focusin":(jl(kt)||kt.contentEditable==="true")&&(wa=kt,no=Fe,qi=null);break;case"focusout":qi=no=wa=null;break;case"mousedown":La=!0;break;case"contextmenu":case"mouseup":case"dragend":La=!1,fn(et,l,Ze);break;case"selectionchange":if(is)break;case"keydown":case"keyup":fn(et,l,Ze)}var Wt;if(_r)e:{switch(t){case"compositionstart":var tn="onCompositionStart";break e;case"compositionend":tn="onCompositionEnd";break e;case"compositionupdate":tn="onCompositionUpdate";break e}tn=void 0}else Sr?So(t,l)&&(tn="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(tn="onCompositionStart");tn&&(Zr&&l.locale!=="ko"&&(Sr||tn!=="onCompositionStart"?tn==="onCompositionEnd"&&Sr&&(Wt=du()):(ba=Ze,$o="value"in ba?ba.value:ba.textContent,Sr=!0)),kt=rh(Fe,tn),0<kt.length&&(tn=new Le(tn,t,null,l,Ze),et.push({event:tn,listeners:kt}),Wt?tn.data=Wt:(Wt=Rs(l),Wt!==null&&(tn.data=Wt)))),(Wt=ns?Qi(t,l):Kr(t,l))&&(tn=rh(Fe,"onBeforeInput"),0<tn.length&&(kt=new Le("onBeforeInput","beforeinput",null,l,Ze),et.push({event:kt,listeners:tn}),kt.data=Wt)),Ub(et,t,Fe,l,Ze)}$0(et,a)})}function Xc(t,a,l){return{instance:t,listener:a,currentTarget:l}}function rh(t,a){for(var l=a+"Capture",f=[];t!==null;){var v=t,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=ya(t,l),v!=null&&f.unshift(Xc(t,v,x)),v=ya(t,a),v!=null&&f.push(Xc(t,v,x))),t.tag===3)return f;t=t.return}return[]}function Gb(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function tg(t,a,l,f,v){for(var x=a._reactName,D=[];l!==null&&l!==f;){var $=l,ye=$.alternate,Fe=$.stateNode;if($=$.tag,ye!==null&&ye===f)break;$!==5&&$!==26&&$!==27||Fe===null||(ye=Fe,v?(Fe=ya(l,x),Fe!=null&&D.unshift(Xc(l,Fe,ye))):v||(Fe=ya(l,x),Fe!=null&&D.push(Xc(l,Fe,ye)))),l=l.return}D.length!==0&&t.push({event:a,listeners:D})}var Vb=/\r\n?/g,Wb=/\u0000|\uFFFD/g;function ng(t){return(typeof t=="string"?t:""+t).replace(Vb,`
`).replace(Wb,"")}function ig(t,a){return a=ng(a),ng(t)===a}function zn(t,a,l,f,v,x){switch(l){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||tr(t,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&tr(t,""+f);break;case"className":Ir(t,"class",f);break;case"tabIndex":Ir(t,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Ir(t,l,f);break;case"style":uu(t,f,x);break;case"data":if(a!=="object"){Ir(t,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||l!=="href")){t.removeAttribute(l);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){t.removeAttribute(l);break}f=aa(""+f),t.setAttribute(l,f);break;case"action":case"formAction":if(typeof f=="function"){t.setAttribute(l,"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 x=="function"&&(l==="formAction"?(a!=="input"&&zn(t,a,"name",v.name,v,null),zn(t,a,"formEncType",v.formEncType,v,null),zn(t,a,"formMethod",v.formMethod,v,null),zn(t,a,"formTarget",v.formTarget,v,null)):(zn(t,a,"encType",v.encType,v,null),zn(t,a,"method",v.method,v,null),zn(t,a,"target",v.target,v,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){t.removeAttribute(l);break}f=aa(""+f),t.setAttribute(l,f);break;case"onClick":f!=null&&(t.onclick=nr);break;case"onScroll":f!=null&&$t("scroll",t);break;case"onScrollEnd":f!=null&&$t("scrollend",t);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(l=f.__html,l!=null){if(v.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":t.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){t.removeAttribute("xlink:href");break}l=aa(""+f),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?t.setAttribute(l,""+f):t.removeAttribute(l);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":f&&typeof f!="function"&&typeof f!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":f===!0?t.setAttribute(l,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?t.setAttribute(l,f):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?t.setAttribute(l,f):t.removeAttribute(l);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?t.removeAttribute(l):t.setAttribute(l,f);break;case"popover":$t("beforetoggle",t),$t("toggle",t),va(t,"popover",f);break;case"xlinkActuate":er(t,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":er(t,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":er(t,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":er(t,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":er(t,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":er(t,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":er(t,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":er(t,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":er(t,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":va(t,"is",f);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Cl.get(l)||l,va(t,l,f))}}function ip(t,a,l,f,v,x){switch(l){case"style":uu(t,f,x);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(l=f.__html,l!=null){if(v.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof f=="string"?tr(t,f):(typeof f=="number"||typeof f=="bigint")&&tr(t,""+f);break;case"onScroll":f!=null&&$t("scroll",t);break;case"onScrollEnd":f!=null&&$t("scrollend",t);break;case"onClick":f!=null&&(t.onclick=nr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ga.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(v=l.endsWith("Capture"),a=l.slice(2,v?l.length-7:void 0),x=t[Fn]||null,x=x!=null?x[l]:null,typeof x=="function"&&t.removeEventListener(a,x,v),typeof f=="function")){typeof x!="function"&&x!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(a,f,v);break e}l in t?t[l]=f:f===!0?t.setAttribute(l,""):va(t,l,f)}}}function ia(t,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$t("error",t),$t("load",t);var f=!1,v=!1,x;for(x in l)if(l.hasOwnProperty(x)){var D=l[x];if(D!=null)switch(x){case"src":f=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:zn(t,a,x,D,l,null)}}v&&zn(t,a,"srcSet",l.srcSet,l,null),f&&zn(t,a,"src",l.src,l,null);return;case"input":$t("invalid",t);var $=x=D=v=null,ye=null,Fe=null;for(f in l)if(l.hasOwnProperty(f)){var Ze=l[f];if(Ze!=null)switch(f){case"name":v=Ze;break;case"type":D=Ze;break;case"checked":ye=Ze;break;case"defaultChecked":Fe=Ze;break;case"value":x=Ze;break;case"defaultValue":$=Ze;break;case"children":case"dangerouslySetInnerHTML":if(Ze!=null)throw Error(r(137,a));break;default:zn(t,a,f,Ze,l,null)}}su(t,x,$,ye,Fe,D,v,!1);return;case"select":$t("invalid",t),f=D=x=null;for(v in l)if(l.hasOwnProperty(v)&&($=l[v],$!=null))switch(v){case"value":x=$;break;case"defaultValue":D=$;break;case"multiple":f=$;default:zn(t,a,v,$,l,null)}a=x,l=D,t.multiple=!!f,a!=null?Ji(t,!!f,a,!1):l!=null&&Ji(t,!!f,l,!0);return;case"textarea":$t("invalid",t),x=v=f=null;for(D in l)if(l.hasOwnProperty(D)&&($=l[D],$!=null))switch(D){case"value":f=$;break;case"defaultValue":v=$;break;case"children":x=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:zn(t,a,D,$,l,null)}Al(t,f,v,x);return;case"option":for(ye in l)if(l.hasOwnProperty(ye)&&(f=l[ye],f!=null))switch(ye){case"selected":t.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:zn(t,a,ye,f,l,null)}return;case"dialog":$t("beforetoggle",t),$t("toggle",t),$t("cancel",t),$t("close",t);break;case"iframe":case"object":$t("load",t);break;case"video":case"audio":for(f=0;f<Wc.length;f++)$t(Wc[f],t);break;case"image":$t("error",t),$t("load",t);break;case"details":$t("toggle",t);break;case"embed":case"source":case"link":$t("error",t),$t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Fe in l)if(l.hasOwnProperty(Fe)&&(f=l[Fe],f!=null))switch(Fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:zn(t,a,Fe,f,l,null)}return;default:if(Nl(a)){for(Ze in l)l.hasOwnProperty(Ze)&&(f=l[Ze],f!==void 0&&ip(t,a,Ze,f,l,void 0));return}}for($ in l)l.hasOwnProperty($)&&(f=l[$],f!=null&&zn(t,a,$,f,l,null))}function Xb(t,a,l,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,D=null,$=null,ye=null,Fe=null,Ze=null;for(Ye in l){var et=l[Ye];if(l.hasOwnProperty(Ye)&&et!=null)switch(Ye){case"checked":break;case"value":break;case"defaultValue":ye=et;default:f.hasOwnProperty(Ye)||zn(t,a,Ye,null,f,et)}}for(var qe in f){var Ye=f[qe];if(et=l[qe],f.hasOwnProperty(qe)&&(Ye!=null||et!=null))switch(qe){case"type":x=Ye;break;case"name":v=Ye;break;case"checked":Fe=Ye;break;case"defaultChecked":Ze=Ye;break;case"value":D=Ye;break;case"defaultValue":$=Ye;break;case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(r(137,a));break;default:Ye!==et&&zn(t,a,qe,Ye,f,et)}}Es(t,D,$,ye,Fe,Ze,x,v);return;case"select":Ye=D=$=qe=null;for(x in l)if(ye=l[x],l.hasOwnProperty(x)&&ye!=null)switch(x){case"value":break;case"multiple":Ye=ye;default:f.hasOwnProperty(x)||zn(t,a,x,null,f,ye)}for(v in f)if(x=f[v],ye=l[v],f.hasOwnProperty(v)&&(x!=null||ye!=null))switch(v){case"value":qe=x;break;case"defaultValue":$=x;break;case"multiple":D=x;default:x!==ye&&zn(t,a,v,x,f,ye)}a=$,l=D,f=Ye,qe!=null?Ji(t,!!l,qe,!1):!!f!=!!l&&(a!=null?Ji(t,!!l,a,!0):Ji(t,!!l,l?[]:"",!1));return;case"textarea":Ye=qe=null;for($ in l)if(v=l[$],l.hasOwnProperty($)&&v!=null&&!f.hasOwnProperty($))switch($){case"value":break;case"children":break;default:zn(t,a,$,null,f,v)}for(D in f)if(v=f[D],x=l[D],f.hasOwnProperty(D)&&(v!=null||x!=null))switch(D){case"value":qe=v;break;case"defaultValue":Ye=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&zn(t,a,D,v,f,x)}kl(t,qe,Ye);return;case"option":for(var yt in l)if(qe=l[yt],l.hasOwnProperty(yt)&&qe!=null&&!f.hasOwnProperty(yt))switch(yt){case"selected":t.selected=!1;break;default:zn(t,a,yt,null,f,qe)}for(ye in f)if(qe=f[ye],Ye=l[ye],f.hasOwnProperty(ye)&&qe!==Ye&&(qe!=null||Ye!=null))switch(ye){case"selected":t.selected=qe&&typeof qe!="function"&&typeof qe!="symbol";break;default:zn(t,a,ye,qe,f,Ye)}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 Rt in l)qe=l[Rt],l.hasOwnProperty(Rt)&&qe!=null&&!f.hasOwnProperty(Rt)&&zn(t,a,Rt,null,f,qe);for(Fe in f)if(qe=f[Fe],Ye=l[Fe],f.hasOwnProperty(Fe)&&qe!==Ye&&(qe!=null||Ye!=null))switch(Fe){case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(r(137,a));break;default:zn(t,a,Fe,qe,f,Ye)}return;default:if(Nl(a)){for(var Tn in l)qe=l[Tn],l.hasOwnProperty(Tn)&&qe!==void 0&&!f.hasOwnProperty(Tn)&&ip(t,a,Tn,void 0,f,qe);for(Ze in f)qe=f[Ze],Ye=l[Ze],!f.hasOwnProperty(Ze)||qe===Ye||qe===void 0&&Ye===void 0||ip(t,a,Ze,qe,f,Ye);return}}for(var ze in l)qe=l[ze],l.hasOwnProperty(ze)&&qe!=null&&!f.hasOwnProperty(ze)&&zn(t,a,ze,null,f,qe);for(et in f)qe=f[et],Ye=l[et],!f.hasOwnProperty(et)||qe===Ye||qe==null&&Ye==null||zn(t,a,et,qe,f,Ye)}function ag(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zb(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,l=performance.getEntriesByType("resource"),f=0;f<l.length;f++){var v=l[f],x=v.transferSize,D=v.initiatorType,$=v.duration;if(x&&$&&ag(D)){for(D=0,$=v.responseEnd,f+=1;f<l.length;f++){var ye=l[f],Fe=ye.startTime;if(Fe>$)break;var Ze=ye.transferSize,et=ye.initiatorType;Ze&&ag(et)&&(ye=ye.responseEnd,D+=Ze*(ye<$?1:($-Fe)/(ye-Fe)))}if(--f,a+=8*(x+D)/(v.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ap=null,rp=null;function oh(t){return t.nodeType===9?t:t.ownerDocument}function rg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function og(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function op(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var sp=null;function Kb(){var t=window.event;return t&&t.type==="popstate"?t===sp?!1:(sp=t,!0):(sp=null,!1)}var sg=typeof setTimeout=="function"?setTimeout:void 0,Jb=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,Qb=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(t){return lg.resolve(null).then(t).catch($b)}:sg;function $b(t){setTimeout(function(){throw t})}function nl(t){return t==="head"}function ug(t,a){var l=a,f=0;do{var v=l.nextSibling;if(t.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"||l==="/&"){if(f===0){t.removeChild(v),Zu(a);return}f--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")f++;else if(l==="html")Zc(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Zc(l);for(var x=l.firstChild;x;){var D=x.nextSibling,$=x.nodeName;x[Ka]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&x.rel.toLowerCase()==="stylesheet"||l.removeChild(x),x=D}}else l==="body"&&Zc(t.ownerDocument.body);l=v}while(l);Zu(a)}function cg(t,a){var l=t;t=0;do{var f=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=f}while(l)}function lp(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":lp(l),bo(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function ex(t,a,l,f){for(;t.nodeType===1;){var v=l;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(f){if(!t[Ka])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(x=t.getAttribute("rel"),x==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(x!==v.rel||t.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||t.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||t.getAttribute("title")!==(v.title==null?null:v.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(x=t.getAttribute("src"),(x!==(v.src==null?null:v.src)||t.getAttribute("type")!==(v.type==null?null:v.type)||t.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&t.getAttribute("name")===x)return t}else return t;if(t=Rr(t.nextSibling),t===null)break}return null}function tx(t,a,l){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Rr(t.nextSibling),t===null))return null;return t}function fg(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Rr(t.nextSibling),t===null))return null;return t}function up(t){return t.data==="$?"||t.data==="$~"}function cp(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function nx(t,a){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||l.readyState!=="loading")a();else{var f=function(){a(),l.removeEventListener("DOMContentLoaded",f)};l.addEventListener("DOMContentLoaded",f),t._reactRetry=f}}function Rr(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var fp=null;function hg(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(a===0)return Rr(t.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}t=t.nextSibling}return null}function dg(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return t;a--}else l!=="/$"&&l!=="/&"||a++}t=t.previousSibling}return null}function pg(t,a,l){switch(a=oh(l),t){case"html":if(t=a.documentElement,!t)throw Error(r(452));return t;case"head":if(t=a.head,!t)throw Error(r(453));return t;case"body":if(t=a.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Zc(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);bo(t)}var Or=new Map,mg=new Set;function sh(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ws=oe.d;oe.d={f:ix,r:ax,D:rx,C:ox,L:sx,m:lx,X:cx,S:ux,M:fx};function ix(){var t=ws.f(),a=Qf();return t||a}function ax(t){var a=Qa(t);a!==null&&a.tag===5&&a.type==="form"?j1(a):ws.r(t)}var Vu=typeof document>"u"?null:document;function gg(t,a,l){var f=Vu;if(f&&typeof a=="string"&&a){var v=li(a);v='link[rel="'+t+'"][href="'+v+'"]',typeof l=="string"&&(v+='[crossorigin="'+l+'"]'),mg.has(v)||(mg.add(v),t={rel:t,crossOrigin:l,href:a},f.querySelector(v)===null&&(a=f.createElement("link"),ia(a,"link",t),$n(a),f.head.appendChild(a)))}}function rx(t){ws.D(t),gg("dns-prefetch",t,null)}function ox(t,a){ws.C(t,a),gg("preconnect",t,a)}function sx(t,a,l){ws.L(t,a,l);var f=Vu;if(f&&t&&a){var v='link[rel="preload"][as="'+li(a)+'"]';a==="image"&&l&&l.imageSrcSet?(v+='[imagesrcset="'+li(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(v+='[imagesizes="'+li(l.imageSizes)+'"]')):v+='[href="'+li(t)+'"]';var x=v;switch(a){case"style":x=Wu(t);break;case"script":x=Xu(t)}Or.has(x)||(t=y({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:t,as:a},l),Or.set(x,t),f.querySelector(v)!==null||a==="style"&&f.querySelector(Kc(x))||a==="script"&&f.querySelector(Jc(x))||(a=f.createElement("link"),ia(a,"link",t),$n(a),f.head.appendChild(a)))}}function lx(t,a){ws.m(t,a);var l=Vu;if(l&&t){var f=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+li(f)+'"][href="'+li(t)+'"]',x=v;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Xu(t)}if(!Or.has(x)&&(t=y({rel:"modulepreload",href:t},a),Or.set(x,t),l.querySelector(v)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Jc(x)))return}f=l.createElement("link"),ia(f,"link",t),$n(f),l.head.appendChild(f)}}}function ux(t,a,l){ws.S(t,a,l);var f=Vu;if(f&&t){var v=yr(f).hoistableStyles,x=Wu(t);a=a||"default";var D=v.get(x);if(!D){var $={loading:0,preload:null};if(D=f.querySelector(Kc(x)))$.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":a},l),(l=Or.get(x))&&hp(t,l);var ye=D=f.createElement("link");$n(ye),ia(ye,"link",t),ye._p=new Promise(function(Fe,Ze){ye.onload=Fe,ye.onerror=Ze}),ye.addEventListener("load",function(){$.loading|=1}),ye.addEventListener("error",function(){$.loading|=2}),$.loading|=4,lh(D,a,f)}D={type:"stylesheet",instance:D,count:1,state:$},v.set(x,D)}}}function cx(t,a){ws.X(t,a);var l=Vu;if(l&&t){var f=yr(l).hoistableScripts,v=Xu(t),x=f.get(v);x||(x=l.querySelector(Jc(v)),x||(t=y({src:t,async:!0},a),(a=Or.get(v))&&dp(t,a),x=l.createElement("script"),$n(x),ia(x,"link",t),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(v,x))}}function fx(t,a){ws.M(t,a);var l=Vu;if(l&&t){var f=yr(l).hoistableScripts,v=Xu(t),x=f.get(v);x||(x=l.querySelector(Jc(v)),x||(t=y({src:t,async:!0,type:"module"},a),(a=Or.get(v))&&dp(t,a),x=l.createElement("script"),$n(x),ia(x,"link",t),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(v,x))}}function vg(t,a,l,f){var v=(v=pe.current)?sh(v):null;if(!v)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Wu(l.href),l=yr(v).hoistableStyles,f=l.get(a),f||(f={type:"style",instance:null,count:0,state:null},l.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Wu(l.href);var x=yr(v).hoistableStyles,D=x.get(t);if(D||(v=v.ownerDocument||v,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(t,D),(x=v.querySelector(Kc(t)))&&!x._p&&(D.instance=x,D.state.loading=5),Or.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Or.set(t,l),x||hx(v,t,l,D.state))),a&&f===null)throw Error(r(528,""));return D}if(a&&f!==null)throw Error(r(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Xu(l),l=yr(v).hoistableScripts,f=l.get(a),f||(f={type:"script",instance:null,count:0,state:null},l.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Wu(t){return'href="'+li(t)+'"'}function Kc(t){return'link[rel="stylesheet"]['+t+"]"}function yg(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function hx(t,a,l,f){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=t.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),ia(a,"link",l),$n(a),t.head.appendChild(a))}function Xu(t){return'[src="'+li(t)+'"]'}function Jc(t){return"script[async]"+t}function bg(t,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var f=t.querySelector('style[data-href~="'+li(l.href)+'"]');if(f)return a.instance=f,$n(f),f;var v=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return f=(t.ownerDocument||t).createElement("style"),$n(f),ia(f,"style",v),lh(f,l.precedence,t),a.instance=f;case"stylesheet":v=Wu(l.href);var x=t.querySelector(Kc(v));if(x)return a.state.loading|=4,a.instance=x,$n(x),x;f=yg(l),(v=Or.get(v))&&hp(f,v),x=(t.ownerDocument||t).createElement("link"),$n(x);var D=x;return D._p=new Promise(function($,ye){D.onload=$,D.onerror=ye}),ia(x,"link",f),a.state.loading|=4,lh(x,l.precedence,t),a.instance=x;case"script":return x=Xu(l.src),(v=t.querySelector(Jc(x)))?(a.instance=v,$n(v),v):(f=l,(v=Or.get(x))&&(f=y({},l),dp(f,v)),t=t.ownerDocument||t,v=t.createElement("script"),$n(v),ia(v,"link",f),t.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,lh(f,l.precedence,t));return a.instance}function lh(t,a,l){for(var f=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=f.length?f[f.length-1]:null,x=v,D=0;D<f.length;D++){var $=f[D];if($.dataset.precedence===a)x=$;else if(x!==v)break}x?x.parentNode.insertBefore(t,x.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(t,a.firstChild))}function hp(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function dp(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var uh=null;function xg(t,a,l){if(uh===null){var f=new Map,v=uh=new Map;v.set(l,f)}else v=uh,f=v.get(l),f||(f=new Map,v.set(l,f));if(f.has(t))return f;for(f.set(t,null),l=l.getElementsByTagName(t),v=0;v<l.length;v++){var x=l[v];if(!(x[Ka]||x[wn]||t==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var D=x.getAttribute(a)||"";D=t+D;var $=f.get(D);$?$.push(x):f.set(D,[x])}}return f}function wg(t,a,l){t=t.ownerDocument||t,t.head.insertBefore(l,a==="title"?t.querySelector("head > title"):null)}function dx(t,a,l){if(l===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function _g(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function px(t,a,l,f){if(l.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=Wu(f.href),x=a.querySelector(Kc(v));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=ch.bind(t),a.then(t,t)),l.state.loading|=4,l.instance=x,$n(x);return}x=a.ownerDocument||a,f=yg(f),(v=Or.get(v))&&hp(f,v),x=x.createElement("link"),$n(x);var D=x;D._p=new Promise(function($,ye){D.onload=$,D.onerror=ye}),ia(x,"link",f),l.instance=x}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=ch.bind(t),a.addEventListener("load",l),a.addEventListener("error",l))}}var pp=0;function mx(t,a){return t.stylesheets&&t.count===0&&hh(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var f=setTimeout(function(){if(t.stylesheets&&hh(t,t.stylesheets),t.unsuspend){var x=t.unsuspend;t.unsuspend=null,x()}},6e4+a);0<t.imgBytes&&pp===0&&(pp=62500*Zb());var v=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&hh(t,t.stylesheets),t.unsuspend)){var x=t.unsuspend;t.unsuspend=null,x()}},(t.imgBytes>pp?50:800)+a);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(f),clearTimeout(v)}}:null}function ch(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var fh=null;function hh(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,fh=new Map,a.forEach(gx,t),fh=null,ch.call(t))}function gx(t,a){if(!(a.state.loading&4)){var l=fh.get(t);if(l)var f=l.get(null);else{l=new Map,fh.set(t,l);for(var v=t.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var D=v[x];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(l.set(D.dataset.precedence,D),f=D)}f&&l.set(null,f)}v=a.instance,D=v.getAttribute("data-precedence"),x=l.get(D)||f,x===f&&l.set(null,v),l.set(D,v),this.count++,f=ch.bind(this),v.addEventListener("load",f),v.addEventListener("error",f),x?x.parentNode.insertBefore(v,x.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(v,t.firstChild)),a.state.loading|=4}}var Qc={$$typeof:O,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function vx(t,a,l,f,v,x,D,$,ye){this.tag=1,this.containerInfo=t,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=Aa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Aa(0),this.hiddenUpdates=Aa(null),this.identifierPrefix=f,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ye,this.incompleteTransitions=new Map}function Sg(t,a,l,f,v,x,D,$,ye,Fe,Ze,et){return t=new vx(t,a,l,D,ye,Fe,Ze,et,$),a=1,x===!0&&(a|=24),x=Yi(3,null,null,a),t.current=x,x.stateNode=t,a=Ys(),a.refCount++,t.pooledCache=a,a.refCount++,x.memoizedState={element:f,isDehydrated:l,cache:a},ut(x),t}function kg(t){return t?(t=Oi,t):Oi}function Ag(t,a,l,f,v,x){v=kg(v),f.context===null?f.context=v:f.pendingContext=v,f=jt(a),f.payload={element:l},x=x===void 0?null:x,x!==null&&(f.callback=x),l=Gt(t,f,a),l!==null&&(Ha(l,t,a),gn(l,t,a))}function Ng(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<a?l:a}}function mp(t,a){Ng(t,a),(t=t.alternate)&&Ng(t,a)}function Cg(t){if(t.tag===13||t.tag===31){var a=io(t,67108864);a!==null&&Ha(a,t,67108864),mp(t,67108864)}}function Eg(t){if(t.tag===13||t.tag===31){var a=fr();a=Bn(a);var l=io(t,a);l!==null&&Ha(l,t,a),mp(t,a)}}var dh=!0;function yx(t,a,l,f){var v=ie.T;ie.T=null;var x=oe.p;try{oe.p=2,gp(t,a,l,f)}finally{oe.p=x,ie.T=v}}function bx(t,a,l,f){var v=ie.T;ie.T=null;var x=oe.p;try{oe.p=8,gp(t,a,l,f)}finally{oe.p=x,ie.T=v}}function gp(t,a,l,f){if(dh){var v=vp(f);if(v===null)np(t,a,f,ph,l),zg(t,f);else if(wx(v,t,a,l,f))f.stopPropagation();else if(zg(t,f),a&4&&-1<xx.indexOf(t)){for(;v!==null;){var x=Qa(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var D=wt(x.pendingLanes);if(D!==0){var $=x;for($.pendingLanes|=2,$.entangledLanes|=2;D;){var ye=1<<31-mt(D);$.entanglements[1]|=ye,D&=~ye}Bo(x),(yn&6)===0&&(Kf=Ee()+500,Vc(0))}}break;case 31:case 13:$=io(x,2),$!==null&&Ha($,x,2),Qf(),mp(x,2)}if(x=vp(f),x===null&&np(t,a,f,ph,l),x===v)break;v=x}v!==null&&f.stopPropagation()}else np(t,a,f,null,l)}}function vp(t){return t=Jo(t),yp(t)}var ph=null;function yp(t){if(ph=null,t=Ja(t),t!==null){var a=o(t);if(a===null)t=null;else{var l=a.tag;if(l===13){if(t=c(a),t!==null)return t;t=null}else if(l===31){if(t=u(a),t!==null)return t;t=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return ph=t,null}function Lg(t){switch(t){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(je()){case ve:return 2;case Be:return 8;case Ge:case $e:return 32;case st:return 268435456;default:return 32}default:return 32}}var bp=!1,il=null,al=null,rl=null,$c=new Map,ef=new Map,ol=[],xx="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 zg(t,a){switch(t){case"focusin":case"focusout":il=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":rl=null;break;case"pointerover":case"pointerout":$c.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ef.delete(a.pointerId)}}function tf(t,a,l,f,v,x){return t===null||t.nativeEvent!==x?(t={blockedOn:a,domEventName:l,eventSystemFlags:f,nativeEvent:x,targetContainers:[v]},a!==null&&(a=Qa(a),a!==null&&Cg(a)),t):(t.eventSystemFlags|=f,a=t.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),t)}function wx(t,a,l,f,v){switch(a){case"focusin":return il=tf(il,t,a,l,f,v),!0;case"dragenter":return al=tf(al,t,a,l,f,v),!0;case"mouseover":return rl=tf(rl,t,a,l,f,v),!0;case"pointerover":var x=v.pointerId;return $c.set(x,tf($c.get(x)||null,t,a,l,f,v)),!0;case"gotpointercapture":return x=v.pointerId,ef.set(x,tf(ef.get(x)||null,t,a,l,f,v)),!0}return!1}function Tg(t){var a=Ja(t.target);if(a!==null){var l=o(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){t.blockedOn=a,yo(t.priority,function(){Eg(l)});return}}else if(a===31){if(a=u(l),a!==null){t.blockedOn=a,yo(t.priority,function(){Eg(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function mh(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var l=vp(t.nativeEvent);if(l===null){l=t.nativeEvent;var f=new l.constructor(l.type,l);Fr=f,l.target.dispatchEvent(f),Fr=null}else return a=Qa(l),a!==null&&Cg(a),t.blockedOn=l,!1;a.shift()}return!0}function jg(t,a,l){mh(t)&&l.delete(a)}function _x(){bp=!1,il!==null&&mh(il)&&(il=null),al!==null&&mh(al)&&(al=null),rl!==null&&mh(rl)&&(rl=null),$c.forEach(jg),ef.forEach(jg)}function gh(t,a){t.blockedOn===a&&(t.blockedOn=null,bp||(bp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_x)))}var vh=null;function Rg(t){vh!==t&&(vh=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vh===t&&(vh=null);for(var a=0;a<t.length;a+=3){var l=t[a],f=t[a+1],v=t[a+2];if(typeof f!="function"){if(yp(f||l)===null)continue;break}var x=Qa(l);x!==null&&(t.splice(a,3),a-=3,vd(x,{pending:!0,data:v,method:l.method,action:f},f,v))}}))}function Zu(t){function a(ye){return gh(ye,t)}il!==null&&gh(il,t),al!==null&&gh(al,t),rl!==null&&gh(rl,t),$c.forEach(a),ef.forEach(a);for(var l=0;l<ol.length;l++){var f=ol[l];f.blockedOn===t&&(f.blockedOn=null)}for(;0<ol.length&&(l=ol[0],l.blockedOn===null);)Tg(l),l.blockedOn===null&&ol.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(f=0;f<l.length;f+=3){var v=l[f],x=l[f+1],D=v[Fn]||null;if(typeof x=="function")D||Rg(l);else if(D){var $=null;if(x&&x.hasAttribute("formAction")){if(v=x,D=x[Fn]||null)$=D.formAction;else if(yp(v)!==null)continue}else $=D.action;typeof $=="function"?l[f+1]=$:(l.splice(f,3),f-=3),Rg(l)}}}function Og(){function t(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(D){return v=D})},focusReset:"manual",scroll:"manual"})}function a(){v!==null&&(v(),v=null),f||setTimeout(l,20)}function l(){if(!f&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,v=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){f=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),v!==null&&(v(),v=null)}}}function xp(t){this._internalRoot=t}yh.prototype.render=xp.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(r(409));var l=a.current,f=fr();Ag(l,f,t,a,null,null)},yh.prototype.unmount=xp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Ag(t.current,2,null,t,null,null),Qf(),a[Ui]=null}};function yh(t){this._internalRoot=t}yh.prototype.unstable_scheduleHydration=function(t){if(t){var a=ki();t={blockedOn:null,target:t,priority:a};for(var l=0;l<ol.length&&a!==0&&a<ol[l].priority;l++);ol.splice(l,0,t),l===0&&Tg(t)}};var Dg=n.version;if(Dg!=="19.2.0")throw Error(r(527,Dg,"19.2.0"));oe.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=d(a),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var Sx={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bh.isDisabled&&bh.supportsFiber)try{ct=bh.inject(Sx),dt=bh}catch{}}return af.createRoot=function(t,a){if(!s(t))throw Error(r(299));var l=!1,f="",v=q1,x=H1,D=Y1;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(D=a.onRecoverableError)),a=Sg(t,1,!1,null,null,l,f,null,v,x,D,Og),t[Ui]=a.current,tp(t),new xp(a)},af.hydrateRoot=function(t,a,l){if(!s(t))throw Error(r(299));var f=!1,v="",x=q1,D=H1,$=Y1,ye=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(D=l.onCaughtError),l.onRecoverableError!==void 0&&($=l.onRecoverableError),l.formState!==void 0&&(ye=l.formState)),a=Sg(t,1,!0,a,l??null,f,v,ye,x,D,$,Og),a.context=kg(null),l=a.current,f=fr(),f=Bn(f),v=jt(f),v.callback=null,Gt(l,v,f),l=f,a.current.lanes=l,Nt(a,l),Bo(a),t[Ui]=a.current,tp(t),new yh(a)},af.version="19.2.0",af}var Gg;function Rx(){if(Gg)return Sp.exports;Gg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Sp.exports=jx(),Sp.exports}var Ox=Rx();/**
 * 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 Vg="popstate";function Dx(e={}){function n(r,s){let{pathname:o,search:c,hash:u}=r.location;return vm("",{pathname:o,search:c,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function i(r,s){return typeof s=="string"?s:vf(s)}return Bx(n,i,null,e)}function oi(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function po(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Mx(){return Math.random().toString(36).substring(2,10)}function Wg(e,n){return{usr:e.state,key:e.key,idx:n}}function vm(e,n,i=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?gc(n):n,state:i,key:n&&n.key||r||Mx()}}function vf({pathname:e="/",search:n="",hash:i=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function gc(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substring(i),e=e.substring(0,i));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function Bx(e,n,i,r={}){let{window:s=document.defaultView,v5Compat:o=!1}=r,c=s.history,u="POP",h=null,d=m();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function m(){return(c.state||{idx:null}).idx}function y(){u="POP";let E=m(),_=E==null?null:E-d;d=E,h&&h({action:u,location:S.location,delta:_})}function w(E,_){u="PUSH";let j=vm(S.location,E,_);d=m()+1;let O=Wg(j,d),P=S.createHref(j);try{c.pushState(O,"",P)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;s.location.assign(P)}o&&h&&h({action:u,location:S.location,delta:1})}function p(E,_){u="REPLACE";let j=vm(S.location,E,_);d=m();let O=Wg(j,d),P=S.createHref(j);c.replaceState(O,"",P),o&&h&&h({action:u,location:S.location,delta:0})}function A(E){return Px(E)}let S={get action(){return u},get location(){return e(s,c)},listen(E){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(Vg,y),h=E,()=>{s.removeEventListener(Vg,y),h=null}},createHref(E){return n(s,E)},createURL:A,encodeLocation(E){let _=A(E);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:p,go(E){return c.go(E)}};return S}function Px(e,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),oi(i,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:vf(e);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function bv(e,n,i="/"){return Ix(e,n,i,!1)}function Ix(e,n,i,r){let s=typeof n=="string"?gc(n):n,o=Ns(s.pathname||"/",i);if(o==null)return null;let c=xv(e);Fx(c);let u=null;for(let h=0;u==null&&h<c.length;++h){let d=Jx(o);u=Zx(c[h],d,r)}return u}function xv(e,n=[],i=[],r="",s=!1){let o=(c,u,h=s,d)=>{let m={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&h)return;oi(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let y=As([r,m.relativePath]),w=i.concat(m);c.children&&c.children.length>0&&(oi(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),xv(c.children,n,w,y,h)),!(c.path==null&&!c.index)&&n.push({path:y,score:Wx(y,c.index),routesMeta:w})};return e.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))o(c,u);else for(let h of wv(c.path))o(c,u,!0,h)}),n}function wv(e){let n=e.split("/");if(n.length===0)return[];let[i,...r]=n,s=i.endsWith("?"),o=i.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let c=wv(r.join("/")),u=[];return u.push(...c.map(h=>h===""?o:[o,h].join("/"))),s&&u.push(...c),u.map(h=>e.startsWith("/")&&h===""?"/":h)}function Fx(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:Xx(n.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var Ux=/^:[\w-]+$/,qx=3,Hx=2,Yx=1,Gx=10,Vx=-2,Xg=e=>e==="*";function Wx(e,n){let i=e.split("/"),r=i.length;return i.some(Xg)&&(r+=Vx),n&&(r+=Hx),i.filter(s=>!Xg(s)).reduce((s,o)=>s+(Ux.test(o)?qx:o===""?Yx:Gx),r)}function Xx(e,n){return e.length===n.length&&e.slice(0,-1).every((r,s)=>r===n[s])?e[e.length-1]-n[n.length-1]:0}function Zx(e,n,i=!1){let{routesMeta:r}=e,s={},o="/",c=[];for(let u=0;u<r.length;++u){let h=r[u],d=u===r.length-1,m=o==="/"?n:n.slice(o.length)||"/",y=Vh({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},m),w=h.route;if(!y&&d&&i&&!r[r.length-1].route.index&&(y=Vh({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(s,y.params),c.push({params:s,pathname:As([o,y.pathname]),pathnameBase:tw(As([o,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(o=As([o,y.pathnameBase]))}return c}function Vh(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,r]=Kx(e.path,e.caseSensitive,e.end),s=n.match(i);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),u=s.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:y},w)=>{if(m==="*"){let A=u[w]||"";c=o.slice(0,o.length-A.length).replace(/(.)\/+$/,"$1")}const p=u[w];return y&&!p?d[m]=void 0:d[m]=(p||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:c,pattern:e}}function Kx(e,n=!1,i=!0){po(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,h)=>(r.push({paramName:u,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),r]}function Jx(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return po(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Ns(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,r=e.charAt(i);return r&&r!=="/"?null:e.slice(i)||"/"}function Qx(e,n="/"){let{pathname:i,search:r="",hash:s=""}=typeof e=="string"?gc(e):e;return{pathname:i?i.startsWith("/")?i:$x(i,n):n,search:nw(r),hash:iw(s)}}function $x(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function Cp(e,n,i,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ew(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function _v(e){let n=ew(e);return n.map((i,r)=>r===n.length-1?i.pathname:i.pathnameBase)}function Sv(e,n,i,r=!1){let s;typeof e=="string"?s=gc(e):(s={...e},oi(!s.pathname||!s.pathname.includes("?"),Cp("?","pathname","search",s)),oi(!s.pathname||!s.pathname.includes("#"),Cp("#","pathname","hash",s)),oi(!s.search||!s.search.includes("#"),Cp("#","search","hash",s)));let o=e===""||s.pathname==="",c=o?"/":s.pathname,u;if(c==null)u=i;else{let y=n.length-1;if(!r&&c.startsWith("..")){let w=c.split("/");for(;w[0]==="..";)w.shift(),y-=1;s.pathname=w.join("/")}u=y>=0?n[y]:"/"}let h=Qx(s,u),d=c&&c!=="/"&&c.endsWith("/"),m=(o||c===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(d||m)&&(h.pathname+="/"),h}var As=e=>e.join("/").replace(/\/\/+/g,"/"),tw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var kv=["POST","PUT","PATCH","DELETE"];new Set(kv);var rw=["GET",...kv];new Set(rw);var vc=Te.createContext(null);vc.displayName="DataRouter";var id=Te.createContext(null);id.displayName="DataRouterState";Te.createContext(!1);var Av=Te.createContext({isTransitioning:!1});Av.displayName="ViewTransition";var ow=Te.createContext(new Map);ow.displayName="Fetchers";var sw=Te.createContext(null);sw.displayName="Await";var Go=Te.createContext(null);Go.displayName="Navigation";var _f=Te.createContext(null);_f.displayName="Location";var Vo=Te.createContext({outlet:null,matches:[],isDataRoute:!1});Vo.displayName="Route";var Xm=Te.createContext(null);Xm.displayName="RouteError";function lw(e,{relative:n}={}){oi(Sf(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=Te.useContext(Go),{hash:s,pathname:o,search:c}=kf(e,{relative:n}),u=o;return i!=="/"&&(u=o==="/"?i:As([i,o])),r.createHref({pathname:u,search:c,hash:s})}function Sf(){return Te.useContext(_f)!=null}function Cs(){return oi(Sf(),"useLocation() may be used only in the context of a <Router> component."),Te.useContext(_f).location}var Nv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cv(e){Te.useContext(Go).static||Te.useLayoutEffect(e)}function Zm(){let{isDataRoute:e}=Te.useContext(Vo);return e?_w():uw()}function uw(){oi(Sf(),"useNavigate() may be used only in the context of a <Router> component.");let e=Te.useContext(vc),{basename:n,navigator:i}=Te.useContext(Go),{matches:r}=Te.useContext(Vo),{pathname:s}=Cs(),o=JSON.stringify(_v(r)),c=Te.useRef(!1);return Cv(()=>{c.current=!0}),Te.useCallback((h,d={})=>{if(po(c.current,Nv),!c.current)return;if(typeof h=="number"){i.go(h);return}let m=Sv(h,JSON.parse(o),s,d.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:As([n,m.pathname])),(d.replace?i.replace:i.push)(m,d.state,d)},[n,i,o,s,e])}Te.createContext(null);function cw(){let{matches:e}=Te.useContext(Vo),n=e[e.length-1];return n?n.params:{}}function kf(e,{relative:n}={}){let{matches:i}=Te.useContext(Vo),{pathname:r}=Cs(),s=JSON.stringify(_v(i));return Te.useMemo(()=>Sv(e,JSON.parse(s),r,n==="path"),[e,s,r,n])}function fw(e,n){return Ev(e,n)}function Ev(e,n,i,r,s){oi(Sf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=Te.useContext(Go),{matches:c}=Te.useContext(Vo),u=c[c.length-1],h=u?u.params:{},d=u?u.pathname:"/",m=u?u.pathnameBase:"/",y=u&&u.route;{let j=y&&y.path||"";Lv(d,!y||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let w=Cs(),p;if(n){let j=typeof n=="string"?gc(n):n;oi(m==="/"||j.pathname?.startsWith(m),`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 "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),p=j}else p=w;let A=p.pathname||"/",S=A;if(m!=="/"){let j=m.replace(/^\//,"").split("/");S="/"+A.replace(/^\//,"").split("/").slice(j.length).join("/")}let E=bv(e,{pathname:S});po(y||E!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),po(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 _=gw(E&&E.map(j=>Object.assign({},j,{params:Object.assign({},h,j.params),pathname:As([m,o.encodeLocation?o.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:As([m,o.encodeLocation?o.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),c,i,r,s);return n&&_?Te.createElement(_f.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},_):_}function hw(){let e=ww(),n=aw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=Te.createElement(Te.Fragment,null,Te.createElement("p",null,"💿 Hey developer 👋"),Te.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Te.createElement("code",{style:o},"ErrorBoundary")," or"," ",Te.createElement("code",{style:o},"errorElement")," prop on your route.")),Te.createElement(Te.Fragment,null,Te.createElement("h2",null,"Unexpected Application Error!"),Te.createElement("h3",{style:{fontStyle:"italic"}},n),i?Te.createElement("pre",{style:s},i):null,c)}var dw=Te.createElement(hw,null),pw=class extends Te.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.unstable_onError?this.props.unstable_onError(e,n):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?Te.createElement(Vo.Provider,{value:this.props.routeContext},Te.createElement(Xm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function mw({routeContext:e,match:n,children:i}){let r=Te.useContext(vc);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),Te.createElement(Vo.Provider,{value:e},i)}function gw(e,n=[],i=null,r=null,s=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let o=e,c=i?.errors;if(c!=null){let d=o.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);oi(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,h=-1;if(i)for(let d=0;d<o.length;d++){let m=o[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=d),m.route.id){let{loaderData:y,errors:w}=i,p=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!w||w[m.route.id]===void 0);if(m.route.lazy||p){u=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((d,m,y)=>{let w,p=!1,A=null,S=null;i&&(w=c&&m.route.id?c[m.route.id]:void 0,A=m.route.errorElement||dw,u&&(h<0&&y===0?(Lv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,S=null):h===y&&(p=!0,S=m.route.hydrateFallbackElement||null)));let E=n.concat(o.slice(0,y+1)),_=()=>{let j;return w?j=A:p?j=S:m.route.Component?j=Te.createElement(m.route.Component,null):m.route.element?j=m.route.element:j=d,Te.createElement(mw,{match:m,routeContext:{outlet:d,matches:E,isDataRoute:i!=null},children:j})};return i&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?Te.createElement(pw,{location:i.location,revalidation:i.revalidation,component:A,error:w,children:_(),routeContext:{outlet:null,matches:E,isDataRoute:!0},unstable_onError:r}):_()},null)}function Km(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function vw(e){let n=Te.useContext(vc);return oi(n,Km(e)),n}function yw(e){let n=Te.useContext(id);return oi(n,Km(e)),n}function bw(e){let n=Te.useContext(Vo);return oi(n,Km(e)),n}function Jm(e){let n=bw(e),i=n.matches[n.matches.length-1];return oi(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function xw(){return Jm("useRouteId")}function ww(){let e=Te.useContext(Xm),n=yw("useRouteError"),i=Jm("useRouteError");return e!==void 0?e:n.errors?.[i]}function _w(){let{router:e}=vw("useNavigate"),n=Jm("useNavigate"),i=Te.useRef(!1);return Cv(()=>{i.current=!0}),Te.useCallback(async(s,o={})=>{po(i.current,Nv),i.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:n,...o}))},[e,n])}var Zg={};function Lv(e,n,i){!n&&!Zg[e]&&(Zg[e]=!0,po(!1,i))}Te.memo(Sw);function Sw({routes:e,future:n,state:i,unstable_onError:r}){return Ev(e,void 0,i,r,n)}function Zl(e){oi(!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 kw({basename:e="/",children:n=null,location:i,navigationType:r="POP",navigator:s,static:o=!1}){oi(!Sf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),u=Te.useMemo(()=>({basename:c,navigator:s,static:o,future:{}}),[c,s,o]);typeof i=="string"&&(i=gc(i));let{pathname:h="/",search:d="",hash:m="",state:y=null,key:w="default"}=i,p=Te.useMemo(()=>{let A=Ns(h,c);return A==null?null:{location:{pathname:A,search:d,hash:m,state:y,key:w},navigationType:r}},[c,h,d,m,y,w,r]);return po(p!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:Te.createElement(Go.Provider,{value:u},Te.createElement(_f.Provider,{children:n,value:p}))}function Aw({children:e,location:n}){return fw(ym(e),n)}function ym(e,n=[]){let i=[];return Te.Children.forEach(e,(r,s)=>{if(!Te.isValidElement(r))return;let o=[...n,s];if(r.type===Te.Fragment){i.push.apply(i,ym(r.props.children,o));return}oi(r.type===Zl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),oi(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=ym(r.props.children,o)),i.push(c)}),i}var Mh="get",Bh="application/x-www-form-urlencoded";function ad(e){return e!=null&&typeof e.tagName=="string"}function Nw(e){return ad(e)&&e.tagName.toLowerCase()==="button"}function Cw(e){return ad(e)&&e.tagName.toLowerCase()==="form"}function Ew(e){return ad(e)&&e.tagName.toLowerCase()==="input"}function Lw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zw(e,n){return e.button===0&&(!n||n==="_self")&&!Lw(e)}function bm(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,i)=>{let r=e[i];return n.concat(Array.isArray(r)?r.map(s=>[i,s]):[[i,r]])},[]))}function Tw(e,n){let i=bm(e);return n&&n.forEach((r,s)=>{i.has(s)||n.getAll(s).forEach(o=>{i.append(s,o)})}),i}var xh=null;function jw(){if(xh===null)try{new FormData(document.createElement("form"),0),xh=!1}catch{xh=!0}return xh}var Rw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ep(e){return e!=null&&!Rw.has(e)?(po(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bh}"`),null):e}function Ow(e,n){let i,r,s,o,c;if(Cw(e)){let u=e.getAttribute("action");r=u?Ns(u,n):null,i=e.getAttribute("method")||Mh,s=Ep(e.getAttribute("enctype"))||Bh,o=new FormData(e)}else if(Nw(e)||Ew(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||u.getAttribute("action");if(r=h?Ns(h,n):null,i=e.getAttribute("formmethod")||u.getAttribute("method")||Mh,s=Ep(e.getAttribute("formenctype"))||Ep(u.getAttribute("enctype"))||Bh,o=new FormData(u,e),!jw()){let{name:d,type:m,value:y}=e;if(m==="image"){let w=d?`${d}.`:"";o.append(`${w}x`,"0"),o.append(`${w}y`,"0")}else d&&o.append(d,y)}}else{if(ad(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Mh,r=null,s=Bh,c=e}return o&&s==="text/plain"&&(c=o,o=void 0),{action:r,method:i.toLowerCase(),encType:s,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Dw(e,n,i){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${i}`:n&&Ns(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}async function Mw(e,n){if(e.id in n)return n[e.id];try{let i=await import(e.module);return n[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Bw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Pw(e,n,i){let r=await Promise.all(e.map(async s=>{let o=n.routes[s.route.id];if(o){let c=await Mw(o,i);return c.links?c.links():[]}return[]}));return qw(r.flat(1).filter(Bw).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Kg(e,n,i,r,s,o){let c=(h,d)=>i[d]?h.route.id!==i[d].route.id:!0,u=(h,d)=>i[d].pathname!==h.pathname||i[d].route.path?.endsWith("*")&&i[d].params["*"]!==h.params["*"];return o==="assets"?n.filter((h,d)=>c(h,d)||u(h,d)):o==="data"?n.filter((h,d)=>{let m=r.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(c(h,d)||u(h,d))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Iw(e,n,{includeHydrateFallback:i}={}){return Fw(e.map(r=>{let s=n.routes[r.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),i&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function Fw(e){return[...new Set(e)]}function Uw(e){let n={},i=Object.keys(e).sort();for(let r of i)n[r]=e[r];return n}function qw(e,n){let i=new Set;return new Set(n),e.reduce((r,s)=>{let o=JSON.stringify(Uw(s));return i.has(o)||(i.add(o),r.push({key:o,link:s})),r},[])}function zv(){let e=Te.useContext(vc);return Qm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Hw(){let e=Te.useContext(id);return Qm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $m=Te.createContext(void 0);$m.displayName="FrameworkContext";function Tv(){let e=Te.useContext($m);return Qm(e,"You must render this element inside a <HydratedRouter> element"),e}function Yw(e,n){let i=Te.useContext($m),[r,s]=Te.useState(!1),[o,c]=Te.useState(!1),{onFocus:u,onBlur:h,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=n,w=Te.useRef(null);Te.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=_=>{_.forEach(j=>{c(j.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return w.current&&E.observe(w.current),()=>{E.disconnect()}}},[e]),Te.useEffect(()=>{if(r){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[r]);let p=()=>{s(!0)},A=()=>{s(!1),c(!1)};return i?e!=="intent"?[o,w,{}]:[o,w,{onFocus:rf(u,p),onBlur:rf(h,A),onMouseEnter:rf(d,p),onMouseLeave:rf(m,A),onTouchStart:rf(y,p)}]:[!1,w,{}]}function rf(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function Gw({page:e,...n}){let{router:i}=zv(),r=Te.useMemo(()=>bv(i.routes,e,i.basename),[i.routes,e,i.basename]);return r?Te.createElement(Ww,{page:e,matches:r,...n}):null}function Vw(e){let{manifest:n,routeModules:i}=Tv(),[r,s]=Te.useState([]);return Te.useEffect(()=>{let o=!1;return Pw(e,n,i).then(c=>{o||s(c)}),()=>{o=!0}},[e,n,i]),r}function Ww({page:e,matches:n,...i}){let r=Cs(),{manifest:s,routeModules:o}=Tv(),{basename:c}=zv(),{loaderData:u,matches:h}=Hw(),d=Te.useMemo(()=>Kg(e,n,h,s,r,"data"),[e,n,h,s,r]),m=Te.useMemo(()=>Kg(e,n,h,s,r,"assets"),[e,n,h,s,r]),y=Te.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let A=new Set,S=!1;if(n.forEach(_=>{let j=s.routes[_.route.id];!j||!j.hasLoader||(!d.some(O=>O.route.id===_.route.id)&&_.route.id in u&&o[_.route.id]?.shouldRevalidate||j.hasClientLoader?S=!0:A.add(_.route.id))}),A.size===0)return[];let E=Dw(e,c,"data");return S&&A.size>0&&E.searchParams.set("_routes",n.filter(_=>A.has(_.route.id)).map(_=>_.route.id).join(",")),[E.pathname+E.search]},[c,u,r,s,d,n,e,o]),w=Te.useMemo(()=>Iw(m,s),[m,s]),p=Vw(m);return Te.createElement(Te.Fragment,null,y.map(A=>Te.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...i})),w.map(A=>Te.createElement("link",{key:A,rel:"modulepreload",href:A,...i})),p.map(({key:A,link:S})=>Te.createElement("link",{key:A,nonce:i.nonce,...S})))}function Xw(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var jv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jv&&(window.__reactRouterVersion="7.9.5")}catch{}function Zw({basename:e,children:n,window:i}){let r=Te.useRef();r.current==null&&(r.current=Dx({window:i,v5Compat:!0}));let s=r.current,[o,c]=Te.useState({action:s.action,location:s.location}),u=Te.useCallback(h=>{Te.startTransition(()=>c(h))},[c]);return Te.useLayoutEffect(()=>s.listen(u),[s,u]),Te.createElement(kw,{basename:e,children:n,location:o.location,navigationType:o.action,navigator:s})}var Rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ka=Te.forwardRef(function({onClick:n,discover:i="render",prefetch:r="none",relative:s,reloadDocument:o,replace:c,state:u,target:h,to:d,preventScrollReset:m,viewTransition:y,...w},p){let{basename:A}=Te.useContext(Go),S=typeof d=="string"&&Rv.test(d),E,_=!1;if(typeof d=="string"&&S&&(E=d,jv))try{let U=new URL(window.location.href),le=d.startsWith("//")?new URL(U.protocol+d):new URL(d),F=Ns(le.pathname,A);le.origin===U.origin&&F!=null?d=F+le.search+le.hash:_=!0}catch{po(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=lw(d,{relative:s}),[O,P,G]=Yw(r,w),J=$w(d,{replace:c,state:u,target:h,preventScrollReset:m,relative:s,viewTransition:y});function ae(U){n&&n(U),U.defaultPrevented||J(U)}let ne=Te.createElement("a",{...w,...G,href:E||j,onClick:_||o?n:ae,ref:Xw(p,P),target:h,"data-discover":!S&&i==="render"?"true":void 0});return O&&!S?Te.createElement(Te.Fragment,null,ne,Te.createElement(Gw,{page:j})):ne});ka.displayName="Link";var Kw=Te.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:r="",end:s=!1,style:o,to:c,viewTransition:u,children:h,...d},m){let y=kf(c,{relative:d.relative}),w=Cs(),p=Te.useContext(id),{navigator:A,basename:S}=Te.useContext(Go),E=p!=null&&r3(y)&&u===!0,_=A.encodeLocation?A.encodeLocation(y).pathname:y.pathname,j=w.pathname,O=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(j=j.toLowerCase(),O=O?O.toLowerCase():null,_=_.toLowerCase()),O&&S&&(O=Ns(O,S)||O);const P=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let G=j===_||!s&&j.startsWith(_)&&j.charAt(P)==="/",J=O!=null&&(O===_||!s&&O.startsWith(_)&&O.charAt(_.length)==="/"),ae={isActive:G,isPending:J,isTransitioning:E},ne=G?n:void 0,U;typeof r=="function"?U=r(ae):U=[r,G?"active":null,J?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let le=typeof o=="function"?o(ae):o;return Te.createElement(ka,{...d,"aria-current":ne,className:U,ref:m,style:le,to:c,viewTransition:u},typeof h=="function"?h(ae):h)});Kw.displayName="NavLink";var Jw=Te.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:r,replace:s,state:o,method:c=Mh,action:u,onSubmit:h,relative:d,preventScrollReset:m,viewTransition:y,...w},p)=>{let A=i3(),S=a3(u,{relative:d}),E=c.toLowerCase()==="get"?"get":"post",_=typeof u=="string"&&Rv.test(u),j=O=>{if(h&&h(O),O.defaultPrevented)return;O.preventDefault();let P=O.nativeEvent.submitter,G=P?.getAttribute("formmethod")||c;A(P||O.currentTarget,{fetcherKey:n,method:G,navigate:i,replace:s,state:o,relative:d,preventScrollReset:m,viewTransition:y})};return Te.createElement("form",{ref:p,method:E,action:S,onSubmit:r?h:j,...w,"data-discover":!_&&e==="render"?"true":void 0})});Jw.displayName="Form";function Qw(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ov(e){let n=Te.useContext(vc);return oi(n,Qw(e)),n}function $w(e,{target:n,replace:i,state:r,preventScrollReset:s,relative:o,viewTransition:c}={}){let u=Zm(),h=Cs(),d=kf(e,{relative:o});return Te.useCallback(m=>{if(zw(m,n)){m.preventDefault();let y=i!==void 0?i:vf(h)===vf(d);u(e,{replace:y,state:r,preventScrollReset:s,relative:o,viewTransition:c})}},[h,u,d,i,r,n,e,s,o,c])}function e3(e){po(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 n=Te.useRef(bm(e)),i=Te.useRef(!1),r=Cs(),s=Te.useMemo(()=>Tw(r.search,i.current?null:n.current),[r.search]),o=Zm(),c=Te.useCallback((u,h)=>{const d=bm(typeof u=="function"?u(new URLSearchParams(s)):u);i.current=!0,o("?"+d,h)},[o,s]);return[s,c]}var t3=0,n3=()=>`__${String(++t3)}__`;function i3(){let{router:e}=Ov("useSubmit"),{basename:n}=Te.useContext(Go),i=xw();return Te.useCallback(async(r,s={})=>{let{action:o,method:c,encType:u,formData:h,body:d}=Ow(r,n);if(s.navigate===!1){let m=s.fetcherKey||n3();await e.fetch(m,i,s.action||o,{preventScrollReset:s.preventScrollReset,formData:h,body:d,formMethod:s.method||c,formEncType:s.encType||u,flushSync:s.flushSync})}else await e.navigate(s.action||o,{preventScrollReset:s.preventScrollReset,formData:h,body:d,formMethod:s.method||c,formEncType:s.encType||u,replace:s.replace,state:s.state,fromRouteId:i,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,n,i])}function a3(e,{relative:n}={}){let{basename:i}=Te.useContext(Go),r=Te.useContext(Vo);oi(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),o={...kf(e||".",{relative:n})},c=Cs();if(e==null){o.search=c.search;let u=new URLSearchParams(o.search),h=u.getAll("index");if(h.some(m=>m==="")){u.delete("index"),h.filter(y=>y).forEach(y=>u.append("index",y));let m=u.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(o.pathname=o.pathname==="/"?i:As([i,o.pathname])),vf(o)}function r3(e,{relative:n}={}){let i=Te.useContext(Av);oi(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ov("useViewTransitionState"),s=kf(e,{relative:n});if(!i.isTransitioning)return!1;let o=Ns(i.currentLocation.pathname,r)||i.currentLocation.pathname,c=Ns(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Vh(s.pathname,c)!=null||Vh(s.pathname,o)!=null}const xm="/assets/coffee-DVa1ZYI3.png",o3=()=>{const e=Cs(),[n,i]=Te.useState(!1),r=s=>`text-gray-700 font-bold px-3 py-2 rounded-md transition-colors ${e.pathname===s?"bg-yellow-300":"hover:bg-gray-100"}`;return B.jsxs("nav",{className:"bg-[#f5ffe8] p-4",children:[B.jsxs("div",{className:"container mx-auto flex justify-between items-center max-w-screen-lg",children:[B.jsx(ka,{to:"/",children:B.jsx("img",{src:"/logo.png",alt:"Resizeo Logo",className:"h-14 w-auto"})}),B.jsxs("div",{className:"hidden md:flex space-x-2",children:[B.jsx(ka,{to:"/",className:r("/"),children:"Home"}),B.jsx(ka,{to:"/presets",className:r("/presets"),children:"Resizer Presets"}),B.jsx(ka,{to:"/blog",className:r("/blog"),children:"Blog"})]}),B.jsx("div",{className:"md:hidden",children:B.jsx("button",{onClick:()=>i(!n),className:"text-gray-700 focus:outline-none",children:B.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n?B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16m-7 6h7"})})})}),B.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:[B.jsx("img",{src:xm,alt:"Coffee icon",className:"h-5 w-5 mr-2"}),"Buy me a coffee"]})]}),n&&B.jsx("div",{className:"md:hidden mt-4",children:B.jsxs("div",{className:"flex flex-col space-y-2",children:[B.jsx(ka,{to:"/",className:r("/"),children:"Home"}),B.jsx(ka,{to:"/presets",className:r("/presets"),children:"Resizer Presets"}),B.jsx(ka,{to:"/blog",className:r("/blog"),children:"Blog"}),B.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:[B.jsx("img",{src:xm,alt:"Coffee icon",className:"h-5 w-5 mr-2"}),"Buy me a coffee"]})]})})]})},s3=()=>B.jsxs("footer",{className:"bg-gray-100 py-8",children:[B.jsxs("div",{className:"container mx-auto flex justify-between items-center max-w-screen-lg",children:[B.jsx("div",{children:B.jsx("img",{src:"/logo.png",alt:"Resizeo Logo",className:"h-10 w-auto mb-2"})}),B.jsxs("div",{className:"flex flex-col md:flex-row md:space-x-8 space-y-4 md:space-y-0",children:[B.jsxs("div",{className:"flex space-x-8",children:[B.jsxs("div",{children:[B.jsx("h4",{className:"font-bold mb-2",children:"RESOURCES"}),B.jsx(ka,{to:"/presets",className:"text-gray-600 hover:underline",children:"Resizer Presets"})]}),B.jsxs("div",{children:[B.jsx("h4",{className:"font-bold mb-2",children:"LEGAL"}),B.jsx(ka,{to:"/privacy-policy",className:"text-gray-600 hover:underline",children:"Privacy Policy"}),B.jsx("br",{}),B.jsx(ka,{to:"/terms-of-service",className:"text-gray-600 hover:underline",children:"Terms & Conditions"})]})]}),B.jsxs("div",{children:[B.jsx("h4",{className:"font-bold mb-2",children:"SUPPORT & CONTACT"}),B.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:[B.jsx("img",{src:xm,alt:"Coffee icon",className:"h-4 w-4 mr-1"}),"Buy me a coffee"]}),B.jsx("br",{}),B.jsx("a",{href:"mailto:support@resizeo.com",className:"text-gray-600 hover:underline",children:"Contact us"})]})]})]}),B.jsxs("div",{className:"text-sm text-gray-500 text-center mt-8",children:[B.jsx("p",{className:"mb-1",children:"©2025 Resizeo.com. All Rights Reserved."}),B.jsx("p",{children:"Made With ❤️ For Everyone"})]})]});var Lp={exports:{}},zp,Jg;function l3(){if(Jg)return zp;Jg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zp=e,zp}var Tp,Qg;function u3(){if(Qg)return Tp;Qg=1;var e=l3();function n(){}function i(){}return i.resetWarningCache=n,Tp=function(){function r(c,u,h,d,m,y){if(y!==e){var w=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 w.name="Invariant Violation",w}}r.isRequired=r;function s(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:i,resetWarningCache:n};return o.PropTypes=o,o},Tp}var $g;function c3(){return $g||($g=1,Lp.exports=u3()()),Lp.exports}var f3=c3();const Dn=mc(f3);function nu(e,n,i,r){function s(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function u(m){try{d(r.next(m))}catch(y){c(y)}}function h(m){try{d(r.throw(m))}catch(y){c(y)}}function d(m){m.done?o(m.value):s(m.value).then(u,h)}d((r=r.apply(e,n||[])).next())})}const h3=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 pc(e,n,i){const r=d3(e),{webkitRelativePath:s}=e,o=typeof n=="string"?n:typeof s=="string"&&s.length>0?s:`./${e.name}`;return typeof r.path!="string"&&e2(r,"path",o),e2(r,"relativePath",o),r}function d3(e){const{name:n}=e;if(n&&n.lastIndexOf(".")!==-1&&!e.type){const r=n.split(".").pop().toLowerCase(),s=h3.get(r);s&&Object.defineProperty(e,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return e}function e2(e,n,i){Object.defineProperty(e,n,{value:i,writable:!1,configurable:!1,enumerable:!0})}const p3=[".DS_Store","Thumbs.db"];function m3(e){return nu(this,void 0,void 0,function*(){return Wh(e)&&g3(e.dataTransfer)?x3(e.dataTransfer,e.type):v3(e)?y3(e):Array.isArray(e)&&e.every(n=>"getFile"in n&&typeof n.getFile=="function")?b3(e):[]})}function g3(e){return Wh(e)}function v3(e){return Wh(e)&&Wh(e.target)}function Wh(e){return typeof e=="object"&&e!==null}function y3(e){return wm(e.target.files).map(n=>pc(n))}function b3(e){return nu(this,void 0,void 0,function*(){return(yield Promise.all(e.map(i=>i.getFile()))).map(i=>pc(i))})}function x3(e,n){return nu(this,void 0,void 0,function*(){if(e.items){const i=wm(e.items).filter(s=>s.kind==="file");if(n!=="drop")return i;const r=yield Promise.all(i.map(w3));return t2(Dv(r))}return t2(wm(e.files).map(i=>pc(i)))})}function t2(e){return e.filter(n=>p3.indexOf(n.name)===-1)}function wm(e){if(e===null)return[];const n=[];for(let i=0;i<e.length;i++){const r=e[i];n.push(r)}return n}function w3(e){if(typeof e.webkitGetAsEntry!="function")return n2(e);const n=e.webkitGetAsEntry();return n&&n.isDirectory?Mv(n):n2(e,n)}function Dv(e){return e.reduce((n,i)=>[...n,...Array.isArray(i)?Dv(i):[i]],[])}function n2(e,n){return nu(this,void 0,void 0,function*(){var i;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const c=yield o.getFile();return c.handle=o,pc(c)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return pc(r,(i=n?.fullPath)!==null&&i!==void 0?i:void 0)})}function _3(e){return nu(this,void 0,void 0,function*(){return e.isDirectory?Mv(e):S3(e)})}function Mv(e){const n=e.createReader();return new Promise((i,r)=>{const s=[];function o(){n.readEntries(c=>nu(this,void 0,void 0,function*(){if(c.length){const u=Promise.all(c.map(_3));s.push(u),o()}else try{const u=yield Promise.all(s);i(u)}catch(u){r(u)}}),c=>{r(c)})}o()})}function S3(e){return nu(this,void 0,void 0,function*(){return new Promise((n,i)=>{e.file(r=>{const s=pc(r,e.fullPath);n(s)},r=>{i(r)})})})}var wh={},i2;function k3(){return i2||(i2=1,wh.__esModule=!0,wh.default=function(e,n){if(e&&n){var i=Array.isArray(n)?n:n.split(",");if(i.length===0)return!0;var r=e.name||"",s=(e.type||"").toLowerCase(),o=s.replace(/\/.*$/,"");return i.some(function(c){var u=c.trim().toLowerCase();return u.charAt(0)==="."?r.toLowerCase().endsWith(u):u.endsWith("/*")?o===u.replace(/\/.*$/,""):s===u})}return!0}),wh}var A3=k3();const jp=mc(A3);function a2(e){return E3(e)||C3(e)||Pv(e)||N3()}function N3(){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 C3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E3(e){if(Array.isArray(e))return _m(e)}function r2(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,r)}return i}function o2(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?r2(Object(i),!0).forEach(function(r){Bv(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r2(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function Bv(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function yf(e,n){return T3(e)||z3(e,n)||Pv(e,n)||L3()}function L3(){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 Pv(e,n){if(e){if(typeof e=="string")return _m(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _m(e,n)}}function _m(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=e[i];return r}function z3(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var r=[],s=!0,o=!1,c,u;try{for(i=i.call(e);!(s=(c=i.next()).done)&&(r.push(c.value),!(n&&r.length===n));s=!0);}catch(h){o=!0,u=h}finally{try{!s&&i.return!=null&&i.return()}finally{if(o)throw u}}return r}}function T3(e){if(Array.isArray(e))return e}var j3=typeof jp=="function"?jp:jp.default,R3="file-invalid-type",O3="file-too-large",D3="file-too-small",M3="too-many-files",B3=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=n.split(","),r=i.length>1?"one of ".concat(i.join(", ")):i[0];return{code:R3,message:"File type must be ".concat(r)}},s2=function(n){return{code:O3,message:"File is larger than ".concat(n," ").concat(n===1?"byte":"bytes")}},l2=function(n){return{code:D3,message:"File is smaller than ".concat(n," ").concat(n===1?"byte":"bytes")}},P3={code:M3,message:"Too many files"};function Iv(e,n){var i=e.type==="application/x-moz-file"||j3(e,n);return[i,i?null:B3(n)]}function Fv(e,n,i){if(Jl(e.size))if(Jl(n)&&Jl(i)){if(e.size>i)return[!1,s2(i)];if(e.size<n)return[!1,l2(n)]}else{if(Jl(n)&&e.size<n)return[!1,l2(n)];if(Jl(i)&&e.size>i)return[!1,s2(i)]}return[!0,null]}function Jl(e){return e!=null}function I3(e){var n=e.files,i=e.accept,r=e.minSize,s=e.maxSize,o=e.multiple,c=e.maxFiles,u=e.validator;return!o&&n.length>1||o&&c>=1&&n.length>c?!1:n.every(function(h){var d=Iv(h,i),m=yf(d,1),y=m[0],w=Fv(h,r,s),p=yf(w,1),A=p[0],S=u?u(h):null;return y&&A&&!S})}function Xh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function _h(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(n){return n==="Files"||n==="application/x-moz-file"}):!!e.target&&!!e.target.files}function u2(e){e.preventDefault()}function F3(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function U3(e){return e.indexOf("Edge/")!==-1}function q3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return F3(e)||U3(e)}function Po(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(r){for(var s=arguments.length,o=new Array(s>1?s-1:0),c=1;c<s;c++)o[c-1]=arguments[c];return n.some(function(u){return!Xh(r)&&u&&u.apply(void 0,[r].concat(o)),Xh(r)})}}function H3(){return"showOpenFilePicker"in window}function Y3(e){if(Jl(e)){var n=Object.entries(e).filter(function(i){var r=yf(i,2),s=r[0],o=r[1],c=!0;return Uv(s)||(console.warn('Skipped "'.concat(s,'" 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.')),c=!1),(!Array.isArray(o)||!o.every(qv))&&(console.warn('Skipped "'.concat(s,'" because an invalid file extension was provided.')),c=!1),c}).reduce(function(i,r){var s=yf(r,2),o=s[0],c=s[1];return o2(o2({},i),{},Bv({},o,c))},{});return[{description:"Files",accept:n}]}return e}function G3(e){if(Jl(e))return Object.entries(e).reduce(function(n,i){var r=yf(i,2),s=r[0],o=r[1];return[].concat(a2(n),[s],a2(o))},[]).filter(function(n){return Uv(n)||qv(n)}).join(",")}function V3(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function W3(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Uv(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function qv(e){return/^.*\.[\w]+$/.test(e)}var X3=["children"],Z3=["open"],K3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],J3=["refKey","onChange","onClick"];function Q3(e){return t4(e)||e4(e)||Hv(e)||$3()}function $3(){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 e4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t4(e){if(Array.isArray(e))return Sm(e)}function Rp(e,n){return a4(e)||i4(e,n)||Hv(e,n)||n4()}function n4(){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 Hv(e,n){if(e){if(typeof e=="string")return Sm(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Sm(e,n)}}function Sm(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=e[i];return r}function i4(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var r=[],s=!0,o=!1,c,u;try{for(i=i.call(e);!(s=(c=i.next()).done)&&(r.push(c.value),!(n&&r.length===n));s=!0);}catch(h){o=!0,u=h}finally{try{!s&&i.return!=null&&i.return()}finally{if(o)throw u}}return r}}function a4(e){if(Array.isArray(e))return e}function c2(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,r)}return i}function ri(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?c2(Object(i),!0).forEach(function(r){km(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c2(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function km(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Zh(e,n){if(e==null)return{};var i=r4(e,n),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function r4(e,n){if(e==null)return{};var i={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(n.indexOf(s)>=0)&&(i[s]=e[s]);return i}var e1=Te.forwardRef(function(e,n){var i=e.children,r=Zh(e,X3),s=Gv(r),o=s.open,c=Zh(s,Z3);return Te.useImperativeHandle(n,function(){return{open:o}},[o]),xn.createElement(Te.Fragment,null,i(ri(ri({},c),{},{open:o})))});e1.displayName="Dropzone";var Yv={disabled:!1,getFilesFromEvent:m3,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};e1.defaultProps=Yv;e1.propTypes={children:Dn.func,accept:Dn.objectOf(Dn.arrayOf(Dn.string)),multiple:Dn.bool,preventDropOnDocument:Dn.bool,noClick:Dn.bool,noKeyboard:Dn.bool,noDrag:Dn.bool,noDragEventsBubbling:Dn.bool,minSize:Dn.number,maxSize:Dn.number,maxFiles:Dn.number,disabled:Dn.bool,getFilesFromEvent:Dn.func,onFileDialogCancel:Dn.func,onFileDialogOpen:Dn.func,useFsAccessApi:Dn.bool,autoFocus:Dn.bool,onDragEnter:Dn.func,onDragLeave:Dn.func,onDragOver:Dn.func,onDrop:Dn.func,onDropAccepted:Dn.func,onDropRejected:Dn.func,onError:Dn.func,validator:Dn.func};var Am={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Gv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=ri(ri({},Yv),e),i=n.accept,r=n.disabled,s=n.getFilesFromEvent,o=n.maxSize,c=n.minSize,u=n.multiple,h=n.maxFiles,d=n.onDragEnter,m=n.onDragLeave,y=n.onDragOver,w=n.onDrop,p=n.onDropAccepted,A=n.onDropRejected,S=n.onFileDialogCancel,E=n.onFileDialogOpen,_=n.useFsAccessApi,j=n.autoFocus,O=n.preventDropOnDocument,P=n.noClick,G=n.noKeyboard,J=n.noDrag,ae=n.noDragEventsBubbling,ne=n.onError,U=n.validator,le=Te.useMemo(function(){return G3(i)},[i]),F=Te.useMemo(function(){return Y3(i)},[i]),T=Te.useMemo(function(){return typeof E=="function"?E:f2},[E]),X=Te.useMemo(function(){return typeof S=="function"?S:f2},[S]),N=Te.useRef(null),Q=Te.useRef(null),ie=Te.useReducer(o4,Am),oe=Rp(ie,2),me=oe[0],ge=oe[1],Z=me.isFocused,I=me.isFileDialogActive,L=Te.useRef(typeof window<"u"&&window.isSecureContext&&_&&H3()),z=function(){!L.current&&I&&setTimeout(function(){if(Q.current){var je=Q.current.files;je.length||(ge({type:"closeDialog"}),X())}},300)};Te.useEffect(function(){return window.addEventListener("focus",z,!1),function(){window.removeEventListener("focus",z,!1)}},[Q,I,X,L]);var V=Te.useRef([]),ee=function(je){N.current&&N.current.contains(je.target)||(je.preventDefault(),V.current=[])};Te.useEffect(function(){return O&&(document.addEventListener("dragover",u2,!1),document.addEventListener("drop",ee,!1)),function(){O&&(document.removeEventListener("dragover",u2),document.removeEventListener("drop",ee))}},[N,O]),Te.useEffect(function(){return!r&&j&&N.current&&N.current.focus(),function(){}},[N,j,r]);var pe=Te.useCallback(function(Ee){ne?ne(Ee):console.error(Ee)},[ne]),we=Te.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),De(Ee),V.current=[].concat(Q3(V.current),[Ee.target]),_h(Ee)&&Promise.resolve(s(Ee)).then(function(je){if(!(Xh(Ee)&&!ae)){var ve=je.length,Be=ve>0&&I3({files:je,accept:le,minSize:c,maxSize:o,multiple:u,maxFiles:h,validator:U}),Ge=ve>0&&!Be;ge({isDragAccept:Be,isDragReject:Ge,isDragActive:!0,type:"setDraggedFiles"}),d&&d(Ee)}}).catch(function(je){return pe(je)})},[s,d,pe,ae,le,c,o,u,h,U]),Ae=Te.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),De(Ee);var je=_h(Ee);if(je&&Ee.dataTransfer)try{Ee.dataTransfer.dropEffect="copy"}catch{}return je&&y&&y(Ee),!1},[y,ae]),Ne=Te.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),De(Ee);var je=V.current.filter(function(Be){return N.current&&N.current.contains(Be)}),ve=je.indexOf(Ee.target);ve!==-1&&je.splice(ve,1),V.current=je,!(je.length>0)&&(ge({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_h(Ee)&&m&&m(Ee))},[N,m,ae]),Ue=Te.useCallback(function(Ee,je){var ve=[],Be=[];Ee.forEach(function(Ge){var $e=Iv(Ge,le),st=Rp($e,2),lt=st[0],Vt=st[1],ct=Fv(Ge,c,o),dt=Rp(ct,2),_t=dt[0],mt=dt[1],pt=U?U(Ge):null;if(lt&&_t&&!pt)ve.push(Ge);else{var Ft=[Vt,mt];pt&&(Ft=Ft.concat(pt)),Be.push({file:Ge,errors:Ft.filter(function(Et){return Et})})}}),(!u&&ve.length>1||u&&h>=1&&ve.length>h)&&(ve.forEach(function(Ge){Be.push({file:Ge,errors:[P3]})}),ve.splice(0)),ge({acceptedFiles:ve,fileRejections:Be,isDragReject:Be.length>0,type:"setFiles"}),w&&w(ve,Be,je),Be.length>0&&A&&A(Be,je),ve.length>0&&p&&p(ve,je)},[ge,u,le,c,o,h,w,p,A,U]),Xe=Te.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),De(Ee),V.current=[],_h(Ee)&&Promise.resolve(s(Ee)).then(function(je){Xh(Ee)&&!ae||Ue(je,Ee)}).catch(function(je){return pe(je)}),ge({type:"reset"})},[s,Ue,pe,ae]),at=Te.useCallback(function(){if(L.current){ge({type:"openDialog"}),T();var Ee={multiple:u,types:F};window.showOpenFilePicker(Ee).then(function(je){return s(je)}).then(function(je){Ue(je,null),ge({type:"closeDialog"})}).catch(function(je){V3(je)?(X(je),ge({type:"closeDialog"})):W3(je)?(L.current=!1,Q.current?(Q.current.value=null,Q.current.click()):pe(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."))):pe(je)});return}Q.current&&(ge({type:"openDialog"}),T(),Q.current.value=null,Q.current.click())},[ge,T,X,_,Ue,pe,F,u]),rt=Te.useCallback(function(Ee){!N.current||!N.current.isEqualNode(Ee.target)||(Ee.key===" "||Ee.key==="Enter"||Ee.keyCode===32||Ee.keyCode===13)&&(Ee.preventDefault(),at())},[N,at]),M=Te.useCallback(function(){ge({type:"focus"})},[]),Y=Te.useCallback(function(){ge({type:"blur"})},[]),xe=Te.useCallback(function(){P||(q3()?setTimeout(at,0):at())},[P,at]),ue=function(je){return r?null:je},re=function(je){return G?null:ue(je)},ce=function(je){return J?null:ue(je)},De=function(je){ae&&je.stopPropagation()},Re=Te.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},je=Ee.refKey,ve=je===void 0?"ref":je,Be=Ee.role,Ge=Ee.onKeyDown,$e=Ee.onFocus,st=Ee.onBlur,lt=Ee.onClick,Vt=Ee.onDragEnter,ct=Ee.onDragOver,dt=Ee.onDragLeave,_t=Ee.onDrop,mt=Zh(Ee,K3);return ri(ri(km({onKeyDown:re(Po(Ge,rt)),onFocus:re(Po($e,M)),onBlur:re(Po(st,Y)),onClick:ue(Po(lt,xe)),onDragEnter:ce(Po(Vt,we)),onDragOver:ce(Po(ct,Ae)),onDragLeave:ce(Po(dt,Ne)),onDrop:ce(Po(_t,Xe)),role:typeof Be=="string"&&Be!==""?Be:"presentation"},ve,N),!r&&!G?{tabIndex:0}:{}),mt)}},[N,rt,M,Y,xe,we,Ae,Ne,Xe,G,J,r]),_e=Te.useCallback(function(Ee){Ee.stopPropagation()},[]),He=Te.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},je=Ee.refKey,ve=je===void 0?"ref":je,Be=Ee.onChange,Ge=Ee.onClick,$e=Zh(Ee,J3),st=km({accept:le,multiple:u,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:ue(Po(Be,Xe)),onClick:ue(Po(Ge,_e)),tabIndex:-1},ve,Q);return ri(ri({},st),$e)}},[Q,i,u,Xe,r]);return ri(ri({},me),{},{isFocused:Z&&!r,getRootProps:Re,getInputProps:He,rootRef:N,inputRef:Q,open:ue(at)})}function o4(e,n){switch(n.type){case"focus":return ri(ri({},e),{},{isFocused:!0});case"blur":return ri(ri({},e),{},{isFocused:!1});case"openDialog":return ri(ri({},Am),{},{isFileDialogActive:!0});case"closeDialog":return ri(ri({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ri(ri({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return ri(ri({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections,isDragReject:n.isDragReject});case"reset":return ri({},Am);default:return e}}function f2(){}const s4=({onFiles:e,filesCount:n})=>{const i=Te.useCallback(c=>{e(c)},[e]),{getRootProps:r,getInputProps:s,isDragActive:o}=Gv({onDrop:i});return B.jsxs("div",{...r(),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 ${o?"bg-green-100":""}`,children:[B.jsx("input",{...s()}),B.jsxs("div",{className:"flex flex-col items-center",children:[B.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:B.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"})}),B.jsxs("p",{className:"mt-1 text-base text-gray-700",children:["Drag & drop images here, or click to select (",n,"/10)"]}),B.jsx("p",{className:"text-xs text-gray-500",children:"Supported formats: JPG, JPEG, PNG, WEBP (Max 20MB per file)"})]})]})},sc=[{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:"inch"},{name:"3R Photo",width:3.5,height:5,unit:"inch"},{name:"4R Photo",width:4,height:6,unit:"inch"},{name:"5R Photo",width:5,height:7,unit:"inch"},{name:"6R Photo",width:6,height:8,unit:"inch"},{name:"8R Photo",width:8,height:10,unit:"inch"},{name:"10R Photo",width:10,height:12,unit:"inch"},{name:"11x14 Photo",width:11,height:14,unit:"inch"},{name:"12x18 Photo",width:12,height:18,unit:"inch"},{name:"16x20 Poster",width:16,height:20,unit:"inch"},{name:"24x36 Poster",width:24,height:36,unit:"inch"},{name:"Business Card (US)",width:3.5,height:2,unit:"inch"},{name:"CD Cover",width:4.7,height:4.7,unit:"inch"},{name:"DVD Cover",width:5.1,height:7.2,unit:"inch"},{name:"Half Letter Flyer",width:5.5,height:8.5,unit:"inch"},{name:"Letter Flyer",width:8.5,height:11,unit:"inch"},{name:"Greeting Card",width:5,height:7,unit:"inch"},{name:"Invitation Card",width:5,height:7,unit:"inch"},{name:"Letter Paper",width:8.5,height:11,unit:"inch"},{name:"Legal Paper",width:8.5,height:14,unit:"inch"},{name:"Ledger Paper",width:11,height:17,unit:"inch"},{name:"Passport Photo (US)",width:2,height:2,unit:"inch"},{name:"Rack Card",width:4,height:9,unit:"inch"},{name:"Scrapbook Page",width:12,height:12,unit:"inch"},{name:"Album Cover",width:12.375,height:12.375,unit:"inch"}]},{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:"%"}]},{name:"Crafting & Cricut",presets:[{name:"Cricut: Print Then Cut (Letter Size)",width:7.44,height:9.94,unit:"inch"},{name:"Cricut: Print Then Cut (A4 Size)",width:7.19,height:10.06,unit:"inch"},{name:"Cricut: Print Then Cut (Tabloid)",width:9.94,height:15.94,unit:"inch"},{name:"Cricut: Joy Xtra Max Cut",width:8.25,height:6.25,unit:"inch"},{name:"Sublimation: 11oz Mug Wrap",width:8.5,height:3.5,unit:"inch"},{name:"Sublimation: 15oz Mug Wrap",width:9,height:4,unit:"inch"},{name:"Sublimation: 20oz Skinny Tumbler",width:9.3,height:8.2,unit:"inch"},{name:"Sublimation: 30oz Skinny Tumbler",width:10.3,height:9.5,unit:"inch"},{name:"Standard Circle Sticker",width:3,height:3,unit:"inch"},{name:"Standard Die-Cut Sticker",width:2.5,height:2.5,unit:"inch"},{name:"Planner Sticker (Vertical Box)",width:1.5,height:2.5,unit:"inch"}]}],l4=({setSettings:e,activeCategory:n,value:i,onChange:r})=>{const s=sc.flatMap(u=>u.presets),o=sc.find(u=>u.name===n)?.presets||[],c=u=>{const h=u.target.value;if(r(h),!h)return;const d=s.find(m=>m.name===h);d&&e(m=>({...m,width:d.width,height:d.height,unit:d.unit}))};return B.jsxs("div",{className:"relative flex items-center bg-white p-1 rounded-lg border border-gray-300",children:[B.jsxs("select",{id:"presets",name:"presets",value:i,onChange:c,className:"w-full bg-white text-gray-700 text-sm appearance-none focus:outline-none pl-2 pr-8 py-2",children:[B.jsx("option",{value:"",children:"Custom Dimensions"}),o.map(u=>B.jsxs("option",{value:u.name,children:[u.name," (",u.width," x ",u.height," ",u.unit,")"]},u.name))]}),B.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:B.jsx("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:B.jsx("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})})]})},u4=({settings:e,setSettings:n,onPreview:i,hasSelectedImages:r,aspectRatio:s,selectedPreset:o,setSelectedPreset:c,isUpscaling:u})=>{const[h,d]=Te.useState(!1),[m,y]=Te.useState(!0),[w,p]=Te.useState("PX"),A=e.mode==="none";Te.useEffect(()=>{if(o){const P=sc.find(G=>G.presets.some(J=>J.name===o));P&&P.name!==w&&p(P.name)}},[o,w]);const S=P=>{const{name:G,value:J}=P.target,ae=P.target.checked,ne=J===""?void 0:Number(J);if(c(""),G==="upscale")n(U=>({...U,[G]:ae}));else if(G==="width"&&m&&s&&ne){const U=Math.round(ne/s);n(le=>({...le,width:ne,height:U}))}else if(G==="height"&&m&&s&&ne){const U=Math.round(ne*s);n(le=>({...le,height:ne,width:U}))}else n(U=>({...U,[G]:ne||J}))},E=P=>{n(G=>({...G,unit:P}))},_=P=>{n(G=>({...G,mode:P}))},j=(P,G)=>{p(P),G&&E(G),c("")},O=(P,G,J,ae)=>B.jsx("button",{onClick:ae,className:`flex-1 py-2 px-3 text-sm rounded-md transition-colors ${J===G?"bg-blue-500 text-white shadow":"text-gray-600 hover:bg-gray-200"}`,children:P},P);return B.jsxs("div",{className:"bg-blue-50 p-4 sm:p-4 rounded-lg border border-blue-200",children:[B.jsxs("div",{className:"mb-5",children:[B.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Dimension Unit"}),B.jsxs("div",{className:"flex flex-wrap items-center bg-white p-1 rounded-lg border border-gray-300",children:[O("PX","PX",w,()=>j("PX","px")),O("CM","CM",w,()=>j("CM","cm")),O("MM","MM",w,()=>j("MM","mm")),O("INCH","INCH",w,()=>j("INCH","inch")),O("%","%",w,()=>j("%","%")),O("Crafting","Crafting & Cricut",w,()=>j("Crafting & Cricut"))]})]}),B.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-5",children:[B.jsxs("div",{children:[B.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Adjust image"}),B.jsxs("div",{className:"flex flex-wrap items-center bg-white p-1 rounded-lg border border-gray-300",children:[O("Stretch","stretch",e.mode,()=>_("stretch")),O("Fill","fill",e.mode,()=>_("fill")),O("Fit","fit",e.mode,()=>_("fit")),O("None","none",e.mode,()=>_("none"))]})]}),B.jsxs("div",{className:A?"opacity-50 cursor-not-allowed":"",children:[B.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:`Presets for ${w}`}),B.jsx("div",{className:A?"pointer-events-none":"",children:B.jsx(l4,{setSettings:n,activeCategory:w,value:o,onChange:c})})]})]}),B.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2 items-end mb-5",children:[B.jsxs("div",{className:"sm:col-span-2",children:[B.jsx("label",{htmlFor:"width",className:"block text-sm font-bold text-gray-700 mb-2",children:"Width"}),B.jsxs("div",{className:"relative",children:[B.jsx("input",{type:"number",id:"width",name:"width",value:e.width||"",onChange:S,className:"w-full p-2 pr-10 border border-gray-300 rounded-md disabled:bg-gray-200 disabled:cursor-not-allowed",placeholder:"Not set",disabled:A}),B.jsx("span",{className:"absolute inset-y-0 right-0 pr-3 flex items-center text-sm text-gray-500",children:e.unit})]})]}),B.jsx("div",{className:"flex justify-center items-center pt-8",children:B.jsx("button",{onClick:()=>y(!m),className:"p-2 rounded-full hover:bg-blue-100 transition-colors",disabled:!r||A,children:m?B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`w-5 h-5 ${r?"text-pink-500":"text-gray-400"}`,viewBox:"0 0 20 20",fill:"currentColor",children:B.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"})}):B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`w-5 h-5 ${r?"text-gray-600":"text-gray-400"}`,viewBox:"0 0 20 20",fill:"currentColor",children:B.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"})})})}),B.jsxs("div",{className:"sm:col-span-2",children:[B.jsx("label",{htmlFor:"height",className:"block text-sm font-bold text-gray-700 mb-2",children:"Height"}),B.jsxs("div",{className:"relative",children:[B.jsx("input",{type:"number",id:"height",name:"height",value:e.height||"",onChange:S,className:"w-full p-2 pr-10 border border-gray-300 rounded-md disabled:bg-gray-200 disabled:cursor-not-allowed",placeholder:"Not set",disabled:A}),B.jsx("span",{className:"absolute inset-y-0 right-0 pr-3 flex items-center text-sm text-gray-500",children:e.unit})]})]})]}),B.jsxs("div",{className:"mb-4",children:[B.jsx("label",{htmlFor:"format",className:"block text-sm font-bold text-gray-700 mb-2",children:"Save image as"}),B.jsxs("select",{id:"format",name:"format",value:e.format,onChange:S,className:"w-full p-2 border border-gray-300 rounded-md bg-white",children:[B.jsx("option",{value:"jpg",children:"JPG"}),B.jsx("option",{value:"jpeg",children:"JPEG"}),B.jsx("option",{value:"png",children:"PNG"}),B.jsx("option",{value:"webp",children:"WEBP"}),B.jsx("option",{value:"heic",children:"HEIC"}),B.jsx("option",{value:"pdf",children:"PDF (Print-Ready)"})]})]}),B.jsx("div",{className:"mt-6",children:B.jsxs("button",{onClick:()=>d(!h),className:"text-blue-600 text-sm hover:underline",children:[h?"Hide":"Show"," Advanced Options"]})}),h&&B.jsxs("div",{className:`mt-4 border-t border-blue-200 pt-4 ${A?"opacity-50 cursor-not-allowed":""}`,children:[B.jsxs("div",{className:`grid grid-cols-1 sm:grid-cols-3 gap-4 ${A?"pointer-events-none":""}`,children:[B.jsxs("div",{children:[B.jsx("label",{htmlFor:"targetSize",className:"block text-sm font-medium text-gray-700",children:"Target File Size"}),B.jsx("input",{type:"number",id:"targetSize",name:"targetSize",value:e.targetSize||"",onChange:S,className:"mt-1 block w-full p-2 border border-gray-300 rounded-md disabled:bg-gray-200",disabled:A})]}),B.jsxs("div",{children:[B.jsx("label",{htmlFor:"targetSizeUnit",className:"block text-sm font-medium text-gray-700",children:"Size Unit"}),B.jsxs("select",{id:"targetSizeUnit",name:"targetSizeUnit",value:e.targetSizeUnit,onChange:S,className:"mt-1 block w-full p-2 border border-gray-300 rounded-md bg-white disabled:bg-gray-200",disabled:A,children:[B.jsx("option",{value:"Bytes",children:"Bytes"}),B.jsx("option",{value:"KB",children:"KB"}),B.jsx("option",{value:"MB",children:"MB"})]})]}),B.jsxs("div",{children:[B.jsx("label",{htmlFor:"dpi",className:"block text-sm font-medium text-gray-700",children:"DPI"}),B.jsx("input",{type:"number",id:"dpi",name:"dpi",value:e.dpi||300,onChange:S,className:"mt-1 block w-full p-2 border border-gray-300 rounded-md disabled:bg-gray-200",disabled:A})]})]}),B.jsx("div",{className:"mt-4",children:B.jsxs("label",{className:"flex items-center",children:[B.jsx("input",{type:"checkbox",name:"upscale",checked:e.upscale||!1,onChange:S,className:"form-checkbox h-5 w-5 text-blue-600",disabled:A}),B.jsx("span",{className:"ml-2 text-sm text-gray-700",children:"Upscale Image To 300 DPI"})]})}),u&&B.jsxs("div",{className:"mt-4 flex items-center",children:[B.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[B.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),B.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),B.jsx("span",{className:"text-sm text-gray-700",children:"Upscaling image..."})]})]}),r&&B.jsx("div",{className:"mt-6",children:B.jsxs("button",{onClick:i,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:[B.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:B.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"]})})]})},c4=()=>{const e=[{title:"Bulk Resizing",description:"Resize 10 images with consistent settings in a single click",icon:B.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:B.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:B.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:B.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:B.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:B.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:B.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:B.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:B.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:B.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:B.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:B.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 B.jsxs("div",{className:"my-12",children:[B.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Powerful Features"}),B.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((n,i)=>B.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md hover:scale-105 transition-transform",children:[B.jsx("div",{className:"mb-4",children:n.icon}),B.jsx("h3",{className:"text-xl font-bold mb-2",children:n.title}),B.jsx("p",{className:"text-gray-600",children:n.description})]},i))})]})},f4=()=>{const e=[{title:"Upload Images",description:"Drag & drop up to 10 images at once or click to browse",icon:B.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:B.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:B.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:[B.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"}),B.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:B.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:[B.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"}),B.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:B.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:B.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 B.jsxs("div",{className:"my-12 bg-[#f5ffe8] py-12",children:[B.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"How It Works"}),B.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:e.map((n,i)=>B.jsxs("div",{className:"p-6",children:[B.jsx("div",{className:"text-5xl mb-4",children:n.icon}),B.jsxs("h3",{className:"text-xl font-bold mb-2",children:[i+1,". ",n.title]}),B.jsx("p",{className:"text-gray-600",children:n.description})]},i))})]})},h4=()=>{const e={"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 B.jsxs("div",{className:"my-12",children:[B.jsx("h2",{className:"text-3xl font-bold text-center mb-2",children:"Advanced Features"}),B.jsx("p",{className:"text-center text-gray-600 mb-8",children:"Professional tools for perfect results every time"}),B.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:Object.entries(e).map(([n,i])=>B.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[B.jsx("h3",{className:"text-xl font-bold mb-4",children:n}),B.jsx("ul",{className:"space-y-2",children:i.map((r,s)=>B.jsxs("li",{className:"flex items-center",children:[B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),r]},s))})]},n))})]})},d4=()=>{const e=[{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!"}],[n,i]=Te.useState(null),r=s=>{i(n===s?null:s)};return B.jsxs("div",{className:"my-12",children:[B.jsx("h2",{className:"text-3xl font-bold text-center mb-8",children:"Common Questions"}),B.jsx("div",{className:"max-w-3xl mx-auto",children:e.map((s,o)=>B.jsxs("div",{className:"border-b border-gray-200 py-4",children:[B.jsxs("button",{className:"w-full flex justify-between items-center text-left text-lg font-medium text-gray-800",onClick:()=>r(o),children:[B.jsx("span",{children:s.question}),B.jsx("span",{children:n===o?B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})}):B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]}),B.jsx("div",{className:`overflow-hidden transition-all duration-500 ease-in-out ${n===o?"max-h-screen mt-4":"max-h-0"}`,children:B.jsx("div",{className:"text-gray-600",children:s.answer})})]},o))})]})};var p4=Object.defineProperty,m4=(e,n,i)=>n in e?p4(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,Qn=(e,n,i)=>m4(e,typeof n!="symbol"?n+"":n,i);const Kh={x:0,y:0,width:0,height:0,unit:"px"},Ku=(e,n,i)=>Math.min(Math.max(e,n),i),g4=(...e)=>e.filter(n=>n&&typeof n=="string").join(" "),h2=(e,n)=>e===n||e.width===n.width&&e.height===n.height&&e.x===n.x&&e.y===n.y&&e.unit===n.unit;function Ju(e,n,i){return e.unit==="%"?{...Kh,...e,unit:"%"}:{unit:"%",x:e.x?e.x/n*100:0,y:e.y?e.y/i*100:0,width:e.width?e.width/n*100:0,height:e.height?e.height/i*100:0}}function ll(e,n,i){return e.unit?e.unit==="px"?{...Kh,...e,unit:"px"}:{unit:"px",x:e.x?e.x*n/100:0,y:e.y?e.y*i/100:0,width:e.width?e.width*n/100:0,height:e.height?e.height*i/100:0}:{...Kh,...e,unit:"px"}}function d2(e,n,i,r,s,o=0,c=0,u=r,h=s){const d={...e};let m=Math.min(o,r),y=Math.min(c,s),w=Math.min(u,r),p=Math.min(h,s);n&&(n>1?(m=c?c*n:m,y=m/n,w=u*n):(y=o?o/n:y,m=y*n,p=h/n)),d.y<0&&(d.height=Math.max(d.height+d.y,y),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,m),d.x=0);const A=r-(d.x+d.width);A<0&&(d.x=Math.min(d.x,r-m),d.width+=A);const S=s-(d.y+d.height);if(S<0&&(d.y=Math.min(d.y,s-y),d.height+=S),d.width<m&&((i==="sw"||i=="nw")&&(d.x-=m-d.width),d.width=m),d.height<y&&((i==="nw"||i=="ne")&&(d.y-=y-d.height),d.height=y),d.width>w&&((i==="sw"||i=="nw")&&(d.x-=w-d.width),d.width=w),d.height>p&&((i==="nw"||i=="ne")&&(d.y-=p-d.height),d.height=p),n){const E=d.width/d.height;if(E<n){const _=Math.max(d.width/n,y);(i==="nw"||i=="ne")&&(d.y-=_-d.height),d.height=_}else if(E>n){const _=Math.max(d.height*n,m);(i==="sw"||i=="nw")&&(d.x-=_-d.width),d.width=_}}return d}function v4(e,n,i,r){const s={...e};return n==="ArrowLeft"?r==="nw"?(s.x-=i,s.y-=i,s.width+=i,s.height+=i):r==="w"?(s.x-=i,s.width+=i):r==="sw"?(s.x-=i,s.width+=i,s.height+=i):r==="ne"?(s.y+=i,s.width-=i,s.height-=i):r==="e"?s.width-=i:r==="se"&&(s.width-=i,s.height-=i):n==="ArrowRight"&&(r==="nw"?(s.x+=i,s.y+=i,s.width-=i,s.height-=i):r==="w"?(s.x+=i,s.width-=i):r==="sw"?(s.x+=i,s.width-=i,s.height-=i):r==="ne"?(s.y-=i,s.width+=i,s.height+=i):r==="e"?s.width+=i:r==="se"&&(s.width+=i,s.height+=i)),n==="ArrowUp"?r==="nw"?(s.x-=i,s.y-=i,s.width+=i,s.height+=i):r==="n"?(s.y-=i,s.height+=i):r==="ne"?(s.y-=i,s.width+=i,s.height+=i):r==="sw"?(s.x+=i,s.width-=i,s.height-=i):r==="s"?s.height-=i:r==="se"&&(s.width-=i,s.height-=i):n==="ArrowDown"&&(r==="nw"?(s.x+=i,s.y+=i,s.width-=i,s.height-=i):r==="n"?(s.y+=i,s.height-=i):r==="ne"?(s.y+=i,s.width-=i,s.height-=i):r==="sw"?(s.x-=i,s.width+=i,s.height+=i):r==="s"?s.height+=i:r==="se"&&(s.width+=i,s.height+=i)),s}const Qu={capture:!0,passive:!1};let y4=0;const hl=class ho extends Te.PureComponent{constructor(){super(...arguments),Qn(this,"docMoveBound",!1),Qn(this,"mouseDownOnCrop",!1),Qn(this,"dragStarted",!1),Qn(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),Qn(this,"componentRef",Te.createRef()),Qn(this,"mediaRef",Te.createRef()),Qn(this,"resizeObserver"),Qn(this,"initChangeCalled",!1),Qn(this,"instanceId",`rc-${y4++}`),Qn(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),Qn(this,"onCropPointerDown",n=>{const{crop:i,disabled:r}=this.props,s=this.getBox();if(!i)return;const o=ll(i,s.width,s.height);if(r)return;n.cancelable&&n.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const c=n.target.dataset.ord,u=!!c;let h=n.clientX,d=n.clientY,m=o.x,y=o.y;if(c){const w=n.clientX-s.x,p=n.clientY-s.y;let A=0,S=0;c==="ne"||c=="e"?(A=w-(o.x+o.width),S=p-o.y,m=o.x,y=o.y+o.height):c==="se"||c==="s"?(A=w-(o.x+o.width),S=p-(o.y+o.height),m=o.x,y=o.y):c==="sw"||c=="w"?(A=w-o.x,S=p-(o.y+o.height),m=o.x+o.width,y=o.y):(c==="nw"||c=="n")&&(A=w-o.x,S=p-o.y,m=o.x+o.width,y=o.y+o.height),h=m+s.x+A,d=y+s.y+S}this.evData={startClientX:h,startClientY:d,startCropX:m,startCropY:y,clientX:n.clientX,clientY:n.clientY,isResize:u,ord:c},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),Qn(this,"onComponentPointerDown",n=>{const{crop:i,disabled:r,locked:s,keepSelection:o,onChange:c}=this.props,u=this.getBox();if(r||s||o&&i)return;n.cancelable&&n.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=n.clientX-u.x,d=n.clientY-u.y,m={unit:"px",x:h,y:d,width:0,height:0};this.evData={startClientX:n.clientX,startClientY:n.clientY,startCropX:h,startCropY:d,clientX:n.clientX,clientY:n.clientY,isResize:!0},this.mouseDownOnCrop=!0,c(ll(m,u.width,u.height),Ju(m,u.width,u.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),Qn(this,"onDocPointerMove",n=>{const{crop:i,disabled:r,onChange:s,onDragStart:o}=this.props,c=this.getBox();if(r||!i||!this.mouseDownOnCrop)return;n.cancelable&&n.preventDefault(),this.dragStarted||(this.dragStarted=!0,o&&o(n));const{evData:u}=this;u.clientX=n.clientX,u.clientY=n.clientY;let h;u.isResize?h=this.resizeCrop():h=this.dragCrop(),h2(i,h)||s(ll(h,c.width,c.height),Ju(h,c.width,c.height))}),Qn(this,"onComponentKeyDown",n=>{const{crop:i,disabled:r,onChange:s,onComplete:o}=this.props;if(r)return;const c=n.key;let u=!1;if(!i)return;const h=this.getBox(),d=this.makePixelCrop(h),m=(navigator.platform.match("Mac")?n.metaKey:n.ctrlKey)?ho.nudgeStepLarge:n.shiftKey?ho.nudgeStepMedium:ho.nudgeStep;if(c==="ArrowLeft"?(d.x-=m,u=!0):c==="ArrowRight"?(d.x+=m,u=!0):c==="ArrowUp"?(d.y-=m,u=!0):c==="ArrowDown"&&(d.y+=m,u=!0),u){n.cancelable&&n.preventDefault(),d.x=Ku(d.x,0,h.width-d.width),d.y=Ku(d.y,0,h.height-d.height);const y=ll(d,h.width,h.height),w=Ju(d,h.width,h.height);s(y,w),o&&o(y,w)}}),Qn(this,"onHandlerKeyDown",(n,i)=>{const{aspect:r=0,crop:s,disabled:o,minWidth:c=0,minHeight:u=0,maxWidth:h,maxHeight:d,onChange:m,onComplete:y}=this.props,w=this.getBox();if(o||!s)return;if(n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="ArrowLeft"||n.key==="ArrowRight")n.stopPropagation(),n.preventDefault();else return;const p=(navigator.platform.match("Mac")?n.metaKey:n.ctrlKey)?ho.nudgeStepLarge:n.shiftKey?ho.nudgeStepMedium:ho.nudgeStep,A=ll(s,w.width,w.height),S=v4(A,n.key,p,i),E=d2(S,r,i,w.width,w.height,c,u,h,d);if(!h2(s,E)){const _=Ju(E,w.width,w.height);m(E,_),y&&y(E,_)}}),Qn(this,"onDocPointerDone",n=>{const{crop:i,disabled:r,onComplete:s,onDragEnd:o}=this.props,c=this.getBox();this.unbindDocMove(),!(r||!i)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,o&&o(n),s&&s(ll(i,c.width,c.height),Ju(i,c.width,c.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),Qn(this,"onDragFocus",()=>{var n;(n=this.componentRef.current)==null||n.scrollTo(0,0)})}get document(){return document}getBox(){const n=this.mediaRef.current;if(!n)return{x:0,y:0,width:0,height:0};const{x:i,y:r,width:s,height:o}=n.getBoundingClientRect();return{x:i,y:r,width:s,height:o}}componentDidUpdate(n){const{crop:i,onComplete:r}=this.props;if(r&&!n.crop&&i){const{width:s,height:o}=this.getBox();s&&o&&r(ll(i,s,o),Ju(i,s,o))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,Qu),this.document.addEventListener("pointerup",this.onDocPointerDone,Qu),this.document.addEventListener("pointercancel",this.onDocPointerDone,Qu),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,Qu),this.document.removeEventListener("pointerup",this.onDocPointerDone,Qu),this.document.removeEventListener("pointercancel",this.onDocPointerDone,Qu),this.docMoveBound=!1)}getCropStyle(){const{crop:n}=this.props;if(n)return{top:`${n.y}${n.unit}`,left:`${n.x}${n.unit}`,width:`${n.width}${n.unit}`,height:`${n.height}${n.unit}`}}dragCrop(){const{evData:n}=this,i=this.getBox(),r=this.makePixelCrop(i),s=n.clientX-n.startClientX,o=n.clientY-n.startClientY;return r.x=Ku(n.startCropX+s,0,i.width-r.width),r.y=Ku(n.startCropY+o,0,i.height-r.height),r}getPointRegion(n,i,r,s){const{evData:o}=this,c=o.clientX-n.x,u=o.clientY-n.y;let h;s&&i?h=i==="nw"||i==="n"||i==="ne":h=u<o.startCropY;let d;return r&&i?d=i==="nw"||i==="w"||i==="sw":d=c<o.startCropX,d?h?"nw":"sw":h?"ne":"se"}resolveMinDimensions(n,i,r=0,s=0){const o=Math.min(r,n.width),c=Math.min(s,n.height);return!i||!o&&!c?[o,c]:i>1?o?[o,o/i]:[c*i,c]:c?[c*i,c]:[o,o/i]}resizeCrop(){const{evData:n}=this,{aspect:i=0,maxWidth:r,maxHeight:s}=this.props,o=this.getBox(),[c,u]=this.resolveMinDimensions(o,i,this.props.minWidth,this.props.minHeight);let h=this.makePixelCrop(o);const d=this.getPointRegion(o,n.ord,c,u),m=n.ord||d;let y=n.clientX-n.startClientX,w=n.clientY-n.startClientY;(c&&m==="nw"||m==="w"||m==="sw")&&(y=Math.min(y,-c)),(u&&m==="nw"||m==="n"||m==="ne")&&(w=Math.min(w,-u));const p={unit:"px",x:0,y:0,width:0,height:0};d==="ne"?(p.x=n.startCropX,p.width=y,i?(p.height=p.width/i,p.y=n.startCropY-p.height):(p.height=Math.abs(w),p.y=n.startCropY-p.height)):d==="se"?(p.x=n.startCropX,p.y=n.startCropY,p.width=y,i?p.height=p.width/i:p.height=w):d==="sw"?(p.x=n.startCropX+y,p.y=n.startCropY,p.width=Math.abs(y),i?p.height=p.width/i:p.height=w):d==="nw"&&(p.x=n.startCropX+y,p.width=Math.abs(y),i?(p.height=p.width/i,p.y=n.startCropY-p.height):(p.height=Math.abs(w),p.y=n.startCropY+w));const A=d2(p,i,d,o.width,o.height,c,u,r,s);return i||ho.xyOrds.indexOf(m)>-1?h=A:ho.xOrds.indexOf(m)>-1?(h.x=A.x,h.width=A.width):ho.yOrds.indexOf(m)>-1&&(h.y=A.y,h.height=A.height),h.x=Ku(h.x,0,o.width-h.width),h.y=Ku(h.y,0,o.height-h.height),h}renderCropSelection(){const{ariaLabels:n=ho.defaultProps.ariaLabels,disabled:i,locked:r,renderSelectionAddon:s,ruleOfThirds:o,crop:c}=this.props,u=this.getCropStyle();if(c)return xn.createElement("div",{style:u,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":n.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!i&&!r&&xn.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},xn.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),xn.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),xn.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),xn.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":n.nwDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"nw"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":n.nDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"n"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":n.neDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"ne"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":n.eDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"e"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":n.seDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"se"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":n.sDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"s"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":n.swDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"sw"),role:"button"}),xn.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":n.wDragHandle,onKeyDown:h=>this.onHandlerKeyDown(h,"w"),role:"button"})),s&&xn.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:h=>h.stopPropagation()},s(this.state)),o&&xn.createElement(xn.Fragment,null,xn.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),xn.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(n){const i={...Kh,...this.props.crop||{}};return ll(i,n.width,n.height)}render(){const{aspect:n,children:i,circularCrop:r,className:s,crop:o,disabled:c,locked:u,style:h,ruleOfThirds:d}=this.props,{cropIsActive:m,newCropIsBeingDrawn:y}=this.state,w=o?this.renderCropSelection():null,p=g4("ReactCrop",s,m&&"ReactCrop--active",c&&"ReactCrop--disabled",u&&"ReactCrop--locked",y&&"ReactCrop--new-crop",o&&n&&"ReactCrop--fixed-aspect",o&&r&&"ReactCrop--circular-crop",o&&d&&"ReactCrop--rule-of-thirds",!this.dragStarted&&o&&!o.width&&!o.height&&"ReactCrop--invisible-crop",r&&"ReactCrop--no-animate");return xn.createElement("div",{ref:this.componentRef,className:p,style:h},xn.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},i),o?xn.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},xn.createElement("defs",null,xn.createElement("mask",{id:`hole-${this.instanceId}`},xn.createElement("rect",{width:"100%",height:"100%",fill:"white"}),r?xn.createElement("ellipse",{cx:`${o.x+o.width/2}${o.unit}`,cy:`${o.y+o.height/2}${o.unit}`,rx:`${o.width/2}${o.unit}`,ry:`${o.height/2}${o.unit}`,fill:"black"}):xn.createElement("rect",{x:`${o.x}${o.unit}`,y:`${o.y}${o.unit}`,width:`${o.width}${o.unit}`,height:`${o.height}${o.unit}`,fill:"black"}))),xn.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,w)}};Qn(hl,"xOrds",["e","w"]),Qn(hl,"yOrds",["n","s"]),Qn(hl,"xyOrds",["nw","ne","se","sw"]),Qn(hl,"nudgeStep",1),Qn(hl,"nudgeStepMedium",10),Qn(hl,"nudgeStepLarge",100),Qn(hl,"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 b4=hl;const x4=[{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}],w4=({image:e,onClose:n,onCrop:i})=>{const[r,s]=Te.useState(),[o,c]=Te.useState(),[u,h]=Te.useState(void 0),[d,m]=Te.useState("rect"),y=xn.useRef(null),w=()=>{if(o&&y.current){const p=document.createElement("canvas"),A=y.current.naturalWidth/y.current.width,S=y.current.naturalHeight/y.current.height;p.width=o.width*A,p.height=o.height*S;const E=p.getContext("2d");E&&(E.drawImage(y.current,o.x*A,o.y*S,o.width*A,o.height*S,0,0,o.width*A,o.height*S),p.toBlob(_=>{if(_){const j=new File([_],"cropped.png",{type:"image/png"});i(j)}},"image/png"))}};return B.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:B.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-4xl w-full flex flex-col max-h-full",children:[B.jsxs("div",{className:"flex justify-between items-center mb-4 flex-shrink-0",children:[B.jsx("h2",{className:"text-2xl font-bold",children:"Crop Image"}),B.jsx("button",{onClick:n,className:"text-gray-500 hover:text-gray-800",children:B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),B.jsxs("div",{className:"flex justify-center mb-4 flex-shrink-0",children:[B.jsx("button",{onClick:()=>m("rect"),className:`px-4 py-2 rounded-l-md ${d==="rect"?"bg-blue-500 text-white":"bg-gray-200"}`,children:"Rectangle"}),B.jsx("button",{onClick:()=>m("circle"),className:`px-4 py-2 rounded-r-md ${d==="circle"?"bg-blue-500 text-white":"bg-gray-200"}`,children:"Circle"})]}),B.jsx("div",{className:"flex-grow overflow-y-auto",children:B.jsx("div",{className:"flex justify-center",children:B.jsx(b4,{crop:r,onChange:p=>s(p),onComplete:p=>c(p),aspect:u,circularCrop:d==="circle",children:B.jsx("img",{ref:y,src:e,alt:"Crop preview",className:"max-h-[60vh]"})})})}),B.jsx("div",{className:"flex flex-wrap justify-center gap-2 my-4 flex-shrink-0",children:x4.map(p=>B.jsx("button",{onClick:()=>{h(p.value),s(void 0)},className:`px-3 py-1 rounded-md text-sm ${u===p.value?"bg-blue-500 text-white":"bg-gray-200"}`,children:p.name},p.name))}),B.jsxs("div",{className:"flex justify-end gap-4 mt-4 flex-shrink-0",children:[B.jsx("button",{onClick:n,className:"px-4 py-2 bg-gray-300 rounded-md",children:"Close"}),B.jsx("button",{onClick:w,className:"px-4 py-2 bg-green-500 text-white rounded-md",children:"Apply Cropping"})]})]})})},_4=({image:e,onClose:n,onRotate:i})=>{const[r,s]=Te.useState(0),[o,c]=Te.useState(1),[u,h]=Te.useState(!1),[d,m]=Te.useState(!1),y=Te.useRef(null),w=()=>{if(y.current){const A=document.createElement("canvas"),S=A.getContext("2d"),E=y.current;if(S){const{naturalWidth:_,naturalHeight:j}=E;A.width=_,A.height=j,S.translate(_/2,j/2),S.rotate(r*Math.PI/180),S.scale(u?-o:o,d?-o:o),S.drawImage(E,-_/2,-j/2,_,j),A.toBlob(O=>{if(O){const P=new File([O],"rotated.png",{type:"image/png"});i(P)}},"image/png")}}},p=()=>{s(0),c(1),h(!1),m(!1)};return B.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:B.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-4xl w-full max-h-[90vh] flex flex-col",children:[" ",B.jsxs("div",{className:"flex justify-between items-center mb-4",children:[B.jsx("h2",{className:"text-2xl font-bold",children:"Rotate Image"}),B.jsx("button",{onClick:n,className:"text-gray-500 hover:text-gray-800",children:B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),B.jsxs("div",{className:"flex-grow overflow-y-auto pr-2 pb-4",children:[" ",B.jsx("div",{className:"relative w-full h-64 flex items-center justify-center mb-4 border border-gray-300 rounded-md overflow-hidden",children:B.jsx("img",{ref:y,src:e,alt:"Rotate preview",className:"absolute",style:{transform:`rotate(${r}deg) scale(${o}) scaleX(${u?-1:1}) scaleY(${d?-1:1})`,transition:"transform 0.2s",maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}})}),B.jsxs("div",{className:"grid grid-cols-4 gap-4 mb-4",children:[B.jsx("button",{onClick:()=>s(r+90),className:"p-2 bg-gray-200 rounded-md",children:"Rotate 90° CW"}),B.jsx("button",{onClick:()=>s(r-90),className:"p-2 bg-gray-200 rounded-md",children:"Rotate 90° CCW"}),B.jsx("button",{onClick:()=>h(!u),className:"p-2 bg-gray-200 rounded-md",children:"Flip H"}),B.jsx("button",{onClick:()=>m(!d),className:"p-2 bg-gray-200 rounded-md",children:"Flip V"}),B.jsx("button",{onClick:()=>c(o*1.1),className:"p-2 bg-gray-200 rounded-md",children:"Zoom In"}),B.jsx("button",{onClick:()=>c(o/1.1),className:"p-2 bg-gray-200 rounded-md",children:"Zoom Out"}),B.jsx("button",{onClick:p,className:"p-2 bg-red-500 text-white rounded-md col-span-2",children:"Reset"})]}),B.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[B.jsx("span",{children:"-180°"}),B.jsx("input",{type:"range",min:"-180",max:"180",value:r,onChange:A=>s(Number(A.target.value)),className:"w-full"}),B.jsx("span",{children:"180°"})]})]}),B.jsxs("div",{className:"flex justify-end gap-4 mt-4 pt-4 border-t border-gray-200",children:[" ",B.jsx("button",{onClick:n,className:"px-4 py-2 bg-gray-300 rounded-md",children:"Close"}),B.jsx("button",{onClick:w,className:"px-4 py-2 bg-green-500 text-white rounded-md",children:"Apply Rotation"})]})]})})},S4=({images:e,onRemove:n,onUpdate:i})=>{const[r,s]=Te.useState(null),[o,c]=Te.useState(null),u=y=>{const w=e.find(p=>p.id===y);w&&s(w)},h=y=>{const w=e.find(p=>p.id===y);w&&c(w)},d=y=>{if(r){const w=URL.createObjectURL(y);i(r.id,{file:y,preview:w}),s(null)}},m=y=>{if(o){const w=URL.createObjectURL(y);i(o.id,{file:y,preview:w}),c(null)}};return B.jsxs("div",{className:"mt-6",children:[B.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:e.map(y=>B.jsxs("div",{className:"relative bg-white rounded-lg shadow-md overflow-hidden",children:[B.jsx("img",{src:y.preview,alt:y.name,className:"w-full h-32 object-cover"}),B.jsx("button",{onClick:()=>n(y.id),className:"absolute top-2 right-2 bg-red-500 text-white rounded-full p-1 text-xs",children:B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),B.jsxs("div",{className:"p-2 text-sm",children:[B.jsx("p",{className:"font-medium truncate",children:y.name}),B.jsxs("p",{className:"text-gray-600",children:[y.dimensions.width," x ",y.dimensions.height," | ",(y.size/1024).toFixed(2)," KB"]})]}),B.jsxs("div",{className:"flex justify-around p-1 bg-gray-100",children:[B.jsx("button",{onClick:()=>u(y.id),className:"text-xs text-gray-600 hover:text-blue-500",children:"Crop"}),B.jsx("button",{onClick:()=>h(y.id),className:"text-xs text-gray-600 hover:text-blue-500",children:"Rotate"})]})]},y.id))}),r&&B.jsx(w4,{image:r.preview,onClose:()=>s(null),onCrop:d}),o&&B.jsx(_4,{image:o.preview,onClose:()=>c(null),onRotate:m})]})},k4=async e=>{const n=new FileReader;return new Promise((i,r)=>{n.onload=async s=>{if(typeof s.target?.result!="string")return r(new Error("FileReader did not return a string."));try{const c=await fetch("/.netlify/functions/replicate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:s.target.result})});if(!c.ok)throw new Error("Failed to upscale image");const{upscaledImage:u}=await c.json();i(u)}catch(o){r(o)}},n.onerror=s=>r(s),n.readAsDataURL(e)})},A4=e=>new Promise((n,i)=>{const r=new FileReader;r.onload=s=>{const o=new Image;o.onload=()=>{n({id:URL.createObjectURL(e),originalFile:e,file:e,preview:s.target?.result,name:e.name,format:e.type.split("/")[1],dimensions:{width:o.width,height:o.height},size:e.size})},o.onerror=i,o.src=s.target?.result},r.onerror=i,r.readAsDataURL(e)}),N4=(e,n)=>new Promise((i,r)=>{(async()=>{let s=e;if(n.upscale)try{const u=await k4(e),d=await(await fetch(u)).blob();s=new File([d],e.name,{type:d.type})}catch(u){return r(u)}const o=new Image,c=new FileReader;c.onload=u=>{if(typeof u.target?.result!="string")return r(new Error("FileReader did not return a string."));o.src=u.target.result},o.onload=()=>{const u=document.createElement("canvas"),h=u.getContext("2d");if(!h)return r(new Error("Could not get canvas context"));const{dpi:d=300,mode:m,targetSize:y,targetSizeUnit:w}=n;let p=n.width,A=n.height;switch(n.unit){case"%":p=o.width*(p/100),A=o.height*(A/100);break;case"cm":p=p/2.54*d,A=A/2.54*d;break;case"mm":p=p/25.4*d,A=A/25.4*d;break;case"inch":p=p*d,A=A*d;break}p=Math.round(p),A=Math.round(A),u.width=p,u.height=A;const S=o.width/o.height,E=p/A;let _=0,j=0,O=p,P=A,G=0,J=0,ae=o.width,ne=o.height;switch(m){case"fit":S>E?(P=p/S,j=(A-P)/2):(O=A*S,_=(p-O)/2),h.drawImage(o,_,j,O,P);break;case"fill":S>E?(ae=o.height*E,G=(o.width-ae)/2):(ne=o.width/E,J=(o.height-ne)/2),h.drawImage(o,G,J,ae,ne,0,0,p,A);break;case"none":u.width=o.width,u.height=o.height,h.drawImage(o,0,0,o.width,o.height);break;case"stretch":default:h.drawImage(o,0,0,p,A);break}const le=((T,X)=>{if(T)switch(X){case"Bytes":return T;case"KB":return T*1024;case"MB":return T*1024*1024;default:return T*1024}})(y,w),F=n.format==="jpg"||n.format==="jpeg"?"image/jpeg":`image/${n.format}`;if(le&&(F==="image/jpeg"||F==="image/webp")){let T=.9,X=0,N=1,Q=10,ie=null;const oe=()=>{u.toBlob(me=>{if(!me)return r(new Error("Could not create blob"));if(me.size<=le&&(!ie||me.size>ie.size)&&(ie=me),Q--<=0)return i(ie||me);me.size>le?N=T:X=T,T=(X+N)/2,oe()},F,T)};oe()}else u.toBlob(T=>{T?i(T):r(new Error("Could not create blob"))},F,.9)},c.onerror=u=>r(u),c.readAsDataURL(s)})()});var Ph={exports:{}},C4=Ph.exports,p2;function E4(){return p2||(p2=1,(function(e,n){(function(i,r){r()})(C4,function(){function i(d,m){return typeof m>"u"?m={autoBom:!1}:typeof m!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}function r(d,m,y){var w=new XMLHttpRequest;w.open("GET",d),w.responseType="blob",w.onload=function(){h(w.response,m,y)},w.onerror=function(){console.error("could not download file")},w.send()}function s(d){var m=new XMLHttpRequest;m.open("HEAD",d,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function o(d){try{d.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(m)}}var c=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof dl=="object"&&dl.global===dl?dl:void 0,u=c.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=c.saveAs||(typeof window!="object"||window!==c?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(d,m,y){var w=c.URL||c.webkitURL,p=document.createElement("a");m=m||d.name||"download",p.download=m,p.rel="noopener",typeof d=="string"?(p.href=d,p.origin===location.origin?o(p):s(p.href)?r(d,m,y):o(p,p.target="_blank")):(p.href=w.createObjectURL(d),setTimeout(function(){w.revokeObjectURL(p.href)},4e4),setTimeout(function(){o(p)},0))}:"msSaveOrOpenBlob"in navigator?function(d,m,y){if(m=m||d.name||"download",typeof d!="string")navigator.msSaveOrOpenBlob(i(d,y),m);else if(s(d))r(d,m,y);else{var w=document.createElement("a");w.href=d,w.target="_blank",setTimeout(function(){o(w)})}}:function(d,m,y,w){if(w=w||open("","_blank"),w&&(w.document.title=w.document.body.innerText="downloading..."),typeof d=="string")return r(d,m,y);var p=d.type==="application/octet-stream",A=/constructor/i.test(c.HTMLElement)||c.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||p&&A||u)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var O=E.result;O=S?O:O.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=O:location=O,w=null},E.readAsDataURL(d)}else{var _=c.URL||c.webkitURL,j=_.createObjectURL(d);w?w.location=j:location.href=j,w=null,setTimeout(function(){_.revokeObjectURL(j)},4e4)}});c.saveAs=h.saveAs=h,e.exports=h})})(Ph)),Ph.exports}var Op=E4();function Sh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dp={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 m2;function L4(){return m2||(m2=1,(function(e,n){(function(i){e.exports=i()})(function(){return(function i(r,s,o){function c(d,m){if(!s[d]){if(!r[d]){var y=typeof Sh=="function"&&Sh;if(!m&&y)return y(d,!0);if(u)return u(d,!0);var w=new Error("Cannot find module '"+d+"'");throw w.code="MODULE_NOT_FOUND",w}var p=s[d]={exports:{}};r[d][0].call(p.exports,function(A){var S=r[d][1][A];return c(S||A)},p,p.exports,i,r,s,o)}return s[d].exports}for(var u=typeof Sh=="function"&&Sh,h=0;h<o.length;h++)c(o[h]);return c})({1:[function(i,r,s){var o=i("./utils"),c=i("./support"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";s.encode=function(h){for(var d,m,y,w,p,A,S,E=[],_=0,j=h.length,O=j,P=o.getTypeOf(h)!=="string";_<h.length;)O=j-_,y=P?(d=h[_++],m=_<j?h[_++]:0,_<j?h[_++]:0):(d=h.charCodeAt(_++),m=_<j?h.charCodeAt(_++):0,_<j?h.charCodeAt(_++):0),w=d>>2,p=(3&d)<<4|m>>4,A=1<O?(15&m)<<2|y>>6:64,S=2<O?63&y:64,E.push(u.charAt(w)+u.charAt(p)+u.charAt(A)+u.charAt(S));return E.join("")},s.decode=function(h){var d,m,y,w,p,A,S=0,E=0,_="data:";if(h.substr(0,_.length)===_)throw new Error("Invalid base64 input, it looks like a data url.");var j,O=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===u.charAt(64)&&O--,h.charAt(h.length-2)===u.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(j=c.uint8array?new Uint8Array(0|O):new Array(0|O);S<h.length;)d=u.indexOf(h.charAt(S++))<<2|(w=u.indexOf(h.charAt(S++)))>>4,m=(15&w)<<4|(p=u.indexOf(h.charAt(S++)))>>2,y=(3&p)<<6|(A=u.indexOf(h.charAt(S++))),j[E++]=d,p!==64&&(j[E++]=m),A!==64&&(j[E++]=y);return j}},{"./support":30,"./utils":32}],2:[function(i,r,s){var o=i("./external"),c=i("./stream/DataWorker"),u=i("./stream/Crc32Probe"),h=i("./stream/DataLengthProbe");function d(m,y,w,p,A){this.compressedSize=m,this.uncompressedSize=y,this.crc32=w,this.compression=p,this.compressedContent=A}d.prototype={getContentWorker:function(){var m=new c(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),y=this;return m.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),m},getCompressedWorker:function(){return new c(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(m,y,w){return m.pipe(new u).pipe(new h("uncompressedSize")).pipe(y.compressWorker(w)).pipe(new h("compressedSize")).withStreamInfo("compression",y)},r.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(i,r,s){var o=i("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},s.DEFLATE=i("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(i,r,s){var o=i("./utils"),c=(function(){for(var u,h=[],d=0;d<256;d++){u=d;for(var m=0;m<8;m++)u=1&u?3988292384^u>>>1:u>>>1;h[d]=u}return h})();r.exports=function(u,h){return u!==void 0&&u.length?o.getTypeOf(u)!=="string"?(function(d,m,y,w){var p=c,A=w+y;d^=-1;for(var S=w;S<A;S++)d=d>>>8^p[255&(d^m[S])];return-1^d})(0|h,u,u.length,0):(function(d,m,y,w){var p=c,A=w+y;d^=-1;for(var S=w;S<A;S++)d=d>>>8^p[255&(d^m.charCodeAt(S))];return-1^d})(0|h,u,u.length,0):0}},{"./utils":32}],5:[function(i,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(i,r,s){var o=null;o=typeof Promise<"u"?Promise:i("lie"),r.exports={Promise:o}},{lie:37}],7:[function(i,r,s){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",c=i("pako"),u=i("./utils"),h=i("./stream/GenericWorker"),d=o?"uint8array":"array";function m(y,w){h.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=w,this.meta={}}s.magic="\b\0",u.inherits(m,h),m.prototype.processChunk=function(y){this.meta=y.meta,this._pako===null&&this._createPako(),this._pako.push(u.transformTo(d,y.data),!1)},m.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},m.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},m.prototype._createPako=function(){this._pako=new c[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(w){y.push({data:w,meta:y.meta})}},s.compressWorker=function(y){return new m("Deflate",y)},s.uncompressWorker=function(){return new m("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(i,r,s){function o(p,A){var S,E="";for(S=0;S<A;S++)E+=String.fromCharCode(255&p),p>>>=8;return E}function c(p,A,S,E,_,j){var O,P,G=p.file,J=p.compression,ae=j!==d.utf8encode,ne=u.transformTo("string",j(G.name)),U=u.transformTo("string",d.utf8encode(G.name)),le=G.comment,F=u.transformTo("string",j(le)),T=u.transformTo("string",d.utf8encode(le)),X=U.length!==G.name.length,N=T.length!==le.length,Q="",ie="",oe="",me=G.dir,ge=G.date,Z={crc32:0,compressedSize:0,uncompressedSize:0};A&&!S||(Z.crc32=p.crc32,Z.compressedSize=p.compressedSize,Z.uncompressedSize=p.uncompressedSize);var I=0;A&&(I|=8),ae||!X&&!N||(I|=2048);var L=0,z=0;me&&(L|=16),_==="UNIX"?(z=798,L|=(function(ee,pe){var we=ee;return ee||(we=pe?16893:33204),(65535&we)<<16})(G.unixPermissions,me)):(z=20,L|=(function(ee){return 63&(ee||0)})(G.dosPermissions)),O=ge.getUTCHours(),O<<=6,O|=ge.getUTCMinutes(),O<<=5,O|=ge.getUTCSeconds()/2,P=ge.getUTCFullYear()-1980,P<<=4,P|=ge.getUTCMonth()+1,P<<=5,P|=ge.getUTCDate(),X&&(ie=o(1,1)+o(m(ne),4)+U,Q+="up"+o(ie.length,2)+ie),N&&(oe=o(1,1)+o(m(F),4)+T,Q+="uc"+o(oe.length,2)+oe);var V="";return V+=`
\0`,V+=o(I,2),V+=J.magic,V+=o(O,2),V+=o(P,2),V+=o(Z.crc32,4),V+=o(Z.compressedSize,4),V+=o(Z.uncompressedSize,4),V+=o(ne.length,2),V+=o(Q.length,2),{fileRecord:y.LOCAL_FILE_HEADER+V+ne+Q,dirRecord:y.CENTRAL_FILE_HEADER+o(z,2)+V+o(F.length,2)+"\0\0\0\0"+o(L,4)+o(E,4)+ne+Q+F}}var u=i("../utils"),h=i("../stream/GenericWorker"),d=i("../utf8"),m=i("../crc32"),y=i("../signature");function w(p,A,S,E){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=A,this.zipPlatform=S,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}u.inherits(w,h),w.prototype.push=function(p){var A=p.meta.percent||0,S=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,h.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:S?(A+100*(S-E-1))/S:100}}))},w.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var A=this.streamFiles&&!p.file.dir;if(A){var S=c(p,A,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},w.prototype.closedSource=function(p){this.accumulate=!1;var A=this.streamFiles&&!p.file.dir,S=c(p,A,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),A)this.push({data:(function(E){return y.DATA_DESCRIPTOR+o(E.crc32,4)+o(E.compressedSize,4)+o(E.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},w.prototype.flush=function(){for(var p=this.bytesWritten,A=0;A<this.dirRecords.length;A++)this.push({data:this.dirRecords[A],meta:{percent:100}});var S=this.bytesWritten-p,E=(function(_,j,O,P,G){var J=u.transformTo("string",G(P));return y.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(_,2)+o(_,2)+o(j,4)+o(O,4)+o(J.length,2)+J})(this.dirRecords.length,S,p,this.zipComment,this.encodeFileName);this.push({data:E,meta:{percent:100}})},w.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},w.prototype.registerPrevious=function(p){this._sources.push(p);var A=this;return p.on("data",function(S){A.processChunk(S)}),p.on("end",function(){A.closedSource(A.previous.streamInfo),A._sources.length?A.prepareNextSource():A.end()}),p.on("error",function(S){A.error(S)}),this},w.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},w.prototype.error=function(p){var A=this._sources;if(!h.prototype.error.call(this,p))return!1;for(var S=0;S<A.length;S++)try{A[S].error(p)}catch{}return!0},w.prototype.lock=function(){h.prototype.lock.call(this);for(var p=this._sources,A=0;A<p.length;A++)p[A].lock()},r.exports=w},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(i,r,s){var o=i("../compressions"),c=i("./ZipFileWorker");s.generateWorker=function(u,h,d){var m=new c(h.streamFiles,d,h.platform,h.encodeFileName),y=0;try{u.forEach(function(w,p){y++;var A=(function(j,O){var P=j||O,G=o[P];if(!G)throw new Error(P+" is not a valid compression method !");return G})(p.options.compression,h.compression),S=p.options.compressionOptions||h.compressionOptions||{},E=p.dir,_=p.date;p._compressWorker(A,S).withStreamInfo("file",{name:w,dir:E,date:_,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(m)}),m.entriesCount=y}catch(w){m.error(w)}return m}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(i,r,s){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var c=new o;for(var u in this)typeof this[u]!="function"&&(c[u]=this[u]);return c}}(o.prototype=i("./object")).loadAsync=i("./load"),o.support=i("./support"),o.defaults=i("./defaults"),o.version="3.10.1",o.loadAsync=function(c,u){return new o().loadAsync(c,u)},o.external=i("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(i,r,s){var o=i("./utils"),c=i("./external"),u=i("./utf8"),h=i("./zipEntries"),d=i("./stream/Crc32Probe"),m=i("./nodejsUtils");function y(w){return new c.Promise(function(p,A){var S=w.decompressed.getContentWorker().pipe(new d);S.on("error",function(E){A(E)}).on("end",function(){S.streamInfo.crc32!==w.decompressed.crc32?A(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(w,p){var A=this;return p=o.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:u.utf8decode}),m.isNode&&m.isStream(w)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",w,!0,p.optimizedBinaryString,p.base64).then(function(S){var E=new h(p);return E.load(S),E}).then(function(S){var E=[c.Promise.resolve(S)],_=S.files;if(p.checkCRC32)for(var j=0;j<_.length;j++)E.push(y(_[j]));return c.Promise.all(E)}).then(function(S){for(var E=S.shift(),_=E.files,j=0;j<_.length;j++){var O=_[j],P=O.fileNameStr,G=o.resolve(O.fileNameStr);A.file(G,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:p.createFolders}),O.dir||(A.file(G).unsafeOriginalName=P)}return E.zipComment.length&&(A.comment=E.zipComment),A})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(i,r,s){var o=i("../utils"),c=i("../stream/GenericWorker");function u(h,d){c.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(d)}o.inherits(u,c),u.prototype._bindStream=function(h){var d=this;(this._stream=h).pause(),h.on("data",function(m){d.push({data:m,meta:{percent:0}})}).on("error",function(m){d.isPaused?this.generatedError=m:d.error(m)}).on("end",function(){d.isPaused?d._upstreamEnded=!0:d.end()})},u.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},u.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=u},{"../stream/GenericWorker":28,"../utils":32}],13:[function(i,r,s){var o=i("readable-stream").Readable;function c(u,h,d){o.call(this,h),this._helper=u;var m=this;u.on("data",function(y,w){m.push(y)||m._helper.pause(),d&&d(w)}).on("error",function(y){m.emit("error",y)}).on("end",function(){m.push(null)})}i("../utils").inherits(c,o),c.prototype._read=function(){this._helper.resume()},r.exports=c},{"../utils":32,"readable-stream":16}],14:[function(i,r,s){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,c){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,c);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,c)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var c=new Buffer(o);return c.fill(0),c},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(i,r,s){function o(G,J,ae){var ne,U=u.getTypeOf(J),le=u.extend(ae||{},m);le.date=le.date||new Date,le.compression!==null&&(le.compression=le.compression.toUpperCase()),typeof le.unixPermissions=="string"&&(le.unixPermissions=parseInt(le.unixPermissions,8)),le.unixPermissions&&16384&le.unixPermissions&&(le.dir=!0),le.dosPermissions&&16&le.dosPermissions&&(le.dir=!0),le.dir&&(G=_(G)),le.createFolders&&(ne=E(G))&&j.call(this,ne,!0);var F=U==="string"&&le.binary===!1&&le.base64===!1;ae&&ae.binary!==void 0||(le.binary=!F),(J instanceof y&&J.uncompressedSize===0||le.dir||!J||J.length===0)&&(le.base64=!1,le.binary=!0,J="",le.compression="STORE",U="string");var T=null;T=J instanceof y||J instanceof h?J:A.isNode&&A.isStream(J)?new S(G,J):u.prepareContent(G,J,le.binary,le.optimizedBinaryString,le.base64);var X=new w(G,T,le);this.files[G]=X}var c=i("./utf8"),u=i("./utils"),h=i("./stream/GenericWorker"),d=i("./stream/StreamHelper"),m=i("./defaults"),y=i("./compressedObject"),w=i("./zipObject"),p=i("./generate"),A=i("./nodejsUtils"),S=i("./nodejs/NodejsStreamInputAdapter"),E=function(G){G.slice(-1)==="/"&&(G=G.substring(0,G.length-1));var J=G.lastIndexOf("/");return 0<J?G.substring(0,J):""},_=function(G){return G.slice(-1)!=="/"&&(G+="/"),G},j=function(G,J){return J=J!==void 0?J:m.createFolders,G=_(G),this.files[G]||o.call(this,G,null,{dir:!0,createFolders:J}),this.files[G]};function O(G){return Object.prototype.toString.call(G)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(G){var J,ae,ne;for(J in this.files)ne=this.files[J],(ae=J.slice(this.root.length,J.length))&&J.slice(0,this.root.length)===this.root&&G(ae,ne)},filter:function(G){var J=[];return this.forEach(function(ae,ne){G(ae,ne)&&J.push(ne)}),J},file:function(G,J,ae){if(arguments.length!==1)return G=this.root+G,o.call(this,G,J,ae),this;if(O(G)){var ne=G;return this.filter(function(le,F){return!F.dir&&ne.test(le)})}var U=this.files[this.root+G];return U&&!U.dir?U:null},folder:function(G){if(!G)return this;if(O(G))return this.filter(function(U,le){return le.dir&&G.test(U)});var J=this.root+G,ae=j.call(this,J),ne=this.clone();return ne.root=ae.name,ne},remove:function(G){G=this.root+G;var J=this.files[G];if(J||(G.slice(-1)!=="/"&&(G+="/"),J=this.files[G]),J&&!J.dir)delete this.files[G];else for(var ae=this.filter(function(U,le){return le.name.slice(0,G.length)===G}),ne=0;ne<ae.length;ne++)delete this.files[ae[ne].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(G){var J,ae={};try{if((ae=u.extend(G||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=ae.type.toLowerCase(),ae.compression=ae.compression.toUpperCase(),ae.type==="binarystring"&&(ae.type="string"),!ae.type)throw new Error("No output type specified.");u.checkSupport(ae.type),ae.platform!=="darwin"&&ae.platform!=="freebsd"&&ae.platform!=="linux"&&ae.platform!=="sunos"||(ae.platform="UNIX"),ae.platform==="win32"&&(ae.platform="DOS");var ne=ae.comment||this.comment||"";J=p.generateWorker(this,ae,ne)}catch(U){(J=new h("error")).error(U)}return new d(J,ae.type||"string",ae.mimeType)},generateAsync:function(G,J){return this.generateInternalStream(G).accumulate(J)},generateNodeStream:function(G,J){return(G=G||{}).type||(G.type="nodebuffer"),this.generateInternalStream(G).toNodejsStream(J)}};r.exports=P},{"./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(i,r,s){r.exports=i("stream")},{stream:void 0}],17:[function(i,r,s){var o=i("./DataReader");function c(u){o.call(this,u);for(var h=0;h<this.data.length;h++)u[h]=255&u[h]}i("../utils").inherits(c,o),c.prototype.byteAt=function(u){return this.data[this.zero+u]},c.prototype.lastIndexOfSignature=function(u){for(var h=u.charCodeAt(0),d=u.charCodeAt(1),m=u.charCodeAt(2),y=u.charCodeAt(3),w=this.length-4;0<=w;--w)if(this.data[w]===h&&this.data[w+1]===d&&this.data[w+2]===m&&this.data[w+3]===y)return w-this.zero;return-1},c.prototype.readAndCheckSignature=function(u){var h=u.charCodeAt(0),d=u.charCodeAt(1),m=u.charCodeAt(2),y=u.charCodeAt(3),w=this.readData(4);return h===w[0]&&d===w[1]&&m===w[2]&&y===w[3]},c.prototype.readData=function(u){if(this.checkOffset(u),u===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,h},r.exports=c},{"../utils":32,"./DataReader":18}],18:[function(i,r,s){var o=i("../utils");function c(u){this.data=u,this.length=u.length,this.index=0,this.zero=0}c.prototype={checkOffset:function(u){this.checkIndex(this.index+u)},checkIndex:function(u){if(this.length<this.zero+u||u<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+u+"). Corrupted zip ?")},setIndex:function(u){this.checkIndex(u),this.index=u},skip:function(u){this.setIndex(this.index+u)},byteAt:function(){},readInt:function(u){var h,d=0;for(this.checkOffset(u),h=this.index+u-1;h>=this.index;h--)d=(d<<8)+this.byteAt(h);return this.index+=u,d},readString:function(u){return o.transformTo("string",this.readData(u))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var u=this.readInt(4);return new Date(Date.UTC(1980+(u>>25&127),(u>>21&15)-1,u>>16&31,u>>11&31,u>>5&63,(31&u)<<1))}},r.exports=c},{"../utils":32}],19:[function(i,r,s){var o=i("./Uint8ArrayReader");function c(u){o.call(this,u)}i("../utils").inherits(c,o),c.prototype.readData=function(u){this.checkOffset(u);var h=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,h},r.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(i,r,s){var o=i("./DataReader");function c(u){o.call(this,u)}i("../utils").inherits(c,o),c.prototype.byteAt=function(u){return this.data.charCodeAt(this.zero+u)},c.prototype.lastIndexOfSignature=function(u){return this.data.lastIndexOf(u)-this.zero},c.prototype.readAndCheckSignature=function(u){return u===this.readData(4)},c.prototype.readData=function(u){this.checkOffset(u);var h=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,h},r.exports=c},{"../utils":32,"./DataReader":18}],21:[function(i,r,s){var o=i("./ArrayReader");function c(u){o.call(this,u)}i("../utils").inherits(c,o),c.prototype.readData=function(u){if(this.checkOffset(u),u===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+u);return this.index+=u,h},r.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(i,r,s){var o=i("../utils"),c=i("../support"),u=i("./ArrayReader"),h=i("./StringReader"),d=i("./NodeBufferReader"),m=i("./Uint8ArrayReader");r.exports=function(y){var w=o.getTypeOf(y);return o.checkSupport(w),w!=="string"||c.uint8array?w==="nodebuffer"?new d(y):c.uint8array?new m(o.transformTo("uint8array",y)):new u(o.transformTo("array",y)):new h(y)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(i,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(i,r,s){var o=i("./GenericWorker"),c=i("../utils");function u(h){o.call(this,"ConvertWorker to "+h),this.destType=h}c.inherits(u,o),u.prototype.processChunk=function(h){this.push({data:c.transformTo(this.destType,h.data),meta:h.meta})},r.exports=u},{"../utils":32,"./GenericWorker":28}],25:[function(i,r,s){var o=i("./GenericWorker"),c=i("../crc32");function u(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}i("../utils").inherits(u,o),u.prototype.processChunk=function(h){this.streamInfo.crc32=c(h.data,this.streamInfo.crc32||0),this.push(h)},r.exports=u},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(i,r,s){var o=i("../utils"),c=i("./GenericWorker");function u(h){c.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}o.inherits(u,c),u.prototype.processChunk=function(h){if(h){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+h.data.length}c.prototype.processChunk.call(this,h)},r.exports=u},{"../utils":32,"./GenericWorker":28}],27:[function(i,r,s){var o=i("../utils"),c=i("./GenericWorker");function u(h){c.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(m){d.dataIsReady=!0,d.data=m,d.max=m&&m.length||0,d.type=o.getTypeOf(m),d.isPaused||d._tickAndRepeat()},function(m){d.error(m)})}o.inherits(u,c),u.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},u.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},u.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},u.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,d);break;case"uint8array":h=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":h=this.data.slice(this.index,d)}return this.index=d,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=u},{"../utils":32,"./GenericWorker":28}],28:[function(i,r,s){function o(c){this.name=c||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(c){this.emit("data",c)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(c){this.emit("error",c)}return!0},error:function(c){return!this.isFinished&&(this.isPaused?this.generatedError=c:(this.isFinished=!0,this.emit("error",c),this.previous&&this.previous.error(c),this.cleanUp()),!0)},on:function(c,u){return this._listeners[c].push(u),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(c,u){if(this._listeners[c])for(var h=0;h<this._listeners[c].length;h++)this._listeners[c][h].call(this,u)},pipe:function(c){return c.registerPrevious(this)},registerPrevious:function(c){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=c.streamInfo,this.mergeStreamInfo(),this.previous=c;var u=this;return c.on("data",function(h){u.processChunk(h)}),c.on("end",function(){u.end()}),c.on("error",function(h){u.error(h)}),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 c=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),c=!0),this.previous&&this.previous.resume(),!c},flush:function(){},processChunk:function(c){this.push(c)},withStreamInfo:function(c,u){return this.extraStreamInfo[c]=u,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var c in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,c)&&(this.streamInfo[c]=this.extraStreamInfo[c])},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 c="Worker "+this.name;return this.previous?this.previous+" -> "+c:c}},r.exports=o},{}],29:[function(i,r,s){var o=i("../utils"),c=i("./ConvertWorker"),u=i("./GenericWorker"),h=i("../base64"),d=i("../support"),m=i("../external"),y=null;if(d.nodestream)try{y=i("../nodejs/NodejsStreamOutputAdapter")}catch{}function w(A,S){return new m.Promise(function(E,_){var j=[],O=A._internalType,P=A._outputType,G=A._mimeType;A.on("data",function(J,ae){j.push(J),S&&S(ae)}).on("error",function(J){j=[],_(J)}).on("end",function(){try{var J=(function(ae,ne,U){switch(ae){case"blob":return o.newBlob(o.transformTo("arraybuffer",ne),U);case"base64":return h.encode(ne);default:return o.transformTo(ae,ne)}})(P,(function(ae,ne){var U,le=0,F=null,T=0;for(U=0;U<ne.length;U++)T+=ne[U].length;switch(ae){case"string":return ne.join("");case"array":return Array.prototype.concat.apply([],ne);case"uint8array":for(F=new Uint8Array(T),U=0;U<ne.length;U++)F.set(ne[U],le),le+=ne[U].length;return F;case"nodebuffer":return Buffer.concat(ne);default:throw new Error("concat : unsupported type '"+ae+"'")}})(O,j),G);E(J)}catch(ae){_(ae)}j=[]}).resume()})}function p(A,S,E){var _=S;switch(S){case"blob":case"arraybuffer":_="uint8array";break;case"base64":_="string"}try{this._internalType=_,this._outputType=S,this._mimeType=E,o.checkSupport(_),this._worker=A.pipe(new c(_)),A.lock()}catch(j){this._worker=new u("error"),this._worker.error(j)}}p.prototype={accumulate:function(A){return w(this,A)},on:function(A,S){var E=this;return A==="data"?this._worker.on(A,function(_){S.call(E,_.data,_.meta)}):this._worker.on(A,function(){o.delay(S,arguments,E)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(A){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new y(this,{objectMode:this._outputType!=="nodebuffer"},A)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(i,r,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",s.nodebuffer=typeof Buffer<"u",s.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")s.blob=!1;else{var o=new ArrayBuffer(0);try{s.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(o),s.blob=c.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!i("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(i,r,s){for(var o=i("./utils"),c=i("./support"),u=i("./nodejsUtils"),h=i("./stream/GenericWorker"),d=new Array(256),m=0;m<256;m++)d[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;d[254]=d[254]=1;function y(){h.call(this,"utf-8 decode"),this.leftOver=null}function w(){h.call(this,"utf-8 encode")}s.utf8encode=function(p){return c.nodebuffer?u.newBufferFrom(p,"utf-8"):(function(A){var S,E,_,j,O,P=A.length,G=0;for(j=0;j<P;j++)(64512&(E=A.charCodeAt(j)))==55296&&j+1<P&&(64512&(_=A.charCodeAt(j+1)))==56320&&(E=65536+(E-55296<<10)+(_-56320),j++),G+=E<128?1:E<2048?2:E<65536?3:4;for(S=c.uint8array?new Uint8Array(G):new Array(G),j=O=0;O<G;j++)(64512&(E=A.charCodeAt(j)))==55296&&j+1<P&&(64512&(_=A.charCodeAt(j+1)))==56320&&(E=65536+(E-55296<<10)+(_-56320),j++),E<128?S[O++]=E:(E<2048?S[O++]=192|E>>>6:(E<65536?S[O++]=224|E>>>12:(S[O++]=240|E>>>18,S[O++]=128|E>>>12&63),S[O++]=128|E>>>6&63),S[O++]=128|63&E);return S})(p)},s.utf8decode=function(p){return c.nodebuffer?o.transformTo("nodebuffer",p).toString("utf-8"):(function(A){var S,E,_,j,O=A.length,P=new Array(2*O);for(S=E=0;S<O;)if((_=A[S++])<128)P[E++]=_;else if(4<(j=d[_]))P[E++]=65533,S+=j-1;else{for(_&=j===2?31:j===3?15:7;1<j&&S<O;)_=_<<6|63&A[S++],j--;1<j?P[E++]=65533:_<65536?P[E++]=_:(_-=65536,P[E++]=55296|_>>10&1023,P[E++]=56320|1023&_)}return P.length!==E&&(P.subarray?P=P.subarray(0,E):P.length=E),o.applyFromCharCode(P)})(p=o.transformTo(c.uint8array?"uint8array":"array",p))},o.inherits(y,h),y.prototype.processChunk=function(p){var A=o.transformTo(c.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(c.uint8array){var S=A;(A=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),A.set(S,this.leftOver.length)}else A=this.leftOver.concat(A);this.leftOver=null}var E=(function(j,O){var P;for((O=O||j.length)>j.length&&(O=j.length),P=O-1;0<=P&&(192&j[P])==128;)P--;return P<0||P===0?O:P+d[j[P]]>O?P:O})(A),_=A;E!==A.length&&(c.uint8array?(_=A.subarray(0,E),this.leftOver=A.subarray(E,A.length)):(_=A.slice(0,E),this.leftOver=A.slice(E,A.length))),this.push({data:s.utf8decode(_),meta:p.meta})},y.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=y,o.inherits(w,h),w.prototype.processChunk=function(p){this.push({data:s.utf8encode(p.data),meta:p.meta})},s.Utf8EncodeWorker=w},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(i,r,s){var o=i("./support"),c=i("./base64"),u=i("./nodejsUtils"),h=i("./external");function d(S){return S}function m(S,E){for(var _=0;_<S.length;++_)E[_]=255&S.charCodeAt(_);return E}i("setimmediate"),s.newBlob=function(S,E){s.checkSupport("blob");try{return new Blob([S],{type:E})}catch{try{var _=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return _.append(S),_.getBlob(E)}catch{throw new Error("Bug : can't construct the Blob.")}}};var y={stringifyByChunk:function(S,E,_){var j=[],O=0,P=S.length;if(P<=_)return String.fromCharCode.apply(null,S);for(;O<P;)E==="array"||E==="nodebuffer"?j.push(String.fromCharCode.apply(null,S.slice(O,Math.min(O+_,P)))):j.push(String.fromCharCode.apply(null,S.subarray(O,Math.min(O+_,P)))),O+=_;return j.join("")},stringifyByChar:function(S){for(var E="",_=0;_<S.length;_++)E+=String.fromCharCode(S[_]);return E},applyCanBeUsed:{uint8array:(function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,u.allocBuffer(1)).length===1}catch{return!1}})()}};function w(S){var E=65536,_=s.getTypeOf(S),j=!0;if(_==="uint8array"?j=y.applyCanBeUsed.uint8array:_==="nodebuffer"&&(j=y.applyCanBeUsed.nodebuffer),j)for(;1<E;)try{return y.stringifyByChunk(S,_,E)}catch{E=Math.floor(E/2)}return y.stringifyByChar(S)}function p(S,E){for(var _=0;_<S.length;_++)E[_]=S[_];return E}s.applyFromCharCode=w;var A={};A.string={string:d,array:function(S){return m(S,new Array(S.length))},arraybuffer:function(S){return A.string.uint8array(S).buffer},uint8array:function(S){return m(S,new Uint8Array(S.length))},nodebuffer:function(S){return m(S,u.allocBuffer(S.length))}},A.array={string:w,array:d,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return u.newBufferFrom(S)}},A.arraybuffer={string:function(S){return w(new Uint8Array(S))},array:function(S){return p(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:d,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return u.newBufferFrom(new Uint8Array(S))}},A.uint8array={string:w,array:function(S){return p(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:d,nodebuffer:function(S){return u.newBufferFrom(S)}},A.nodebuffer={string:w,array:function(S){return p(S,new Array(S.length))},arraybuffer:function(S){return A.nodebuffer.uint8array(S).buffer},uint8array:function(S){return p(S,new Uint8Array(S.length))},nodebuffer:d},s.transformTo=function(S,E){if(E=E||"",!S)return E;s.checkSupport(S);var _=s.getTypeOf(E);return A[_][S](E)},s.resolve=function(S){for(var E=S.split("/"),_=[],j=0;j<E.length;j++){var O=E[j];O==="."||O===""&&j!==0&&j!==E.length-1||(O===".."?_.pop():_.push(O))}return _.join("/")},s.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":o.nodebuffer&&u.isBuffer(S)?"nodebuffer":o.uint8array&&S instanceof Uint8Array?"uint8array":o.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(S){if(!o[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(S){var E,_,j="";for(_=0;_<(S||"").length;_++)j+="\\x"+((E=S.charCodeAt(_))<16?"0":"")+E.toString(16).toUpperCase();return j},s.delay=function(S,E,_){setImmediate(function(){S.apply(_||null,E||[])})},s.inherits=function(S,E){function _(){}_.prototype=E.prototype,S.prototype=new _},s.extend=function(){var S,E,_={};for(S=0;S<arguments.length;S++)for(E in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],E)&&_[E]===void 0&&(_[E]=arguments[S][E]);return _},s.prepareContent=function(S,E,_,j,O){return h.Promise.resolve(E).then(function(P){return o.blob&&(P instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(P))!==-1)&&typeof FileReader<"u"?new h.Promise(function(G,J){var ae=new FileReader;ae.onload=function(ne){G(ne.target.result)},ae.onerror=function(ne){J(ne.target.error)},ae.readAsArrayBuffer(P)}):P}).then(function(P){var G=s.getTypeOf(P);return G?(G==="arraybuffer"?P=s.transformTo("uint8array",P):G==="string"&&(O?P=c.decode(P):_&&j!==!0&&(P=(function(J){return m(J,o.uint8array?new Uint8Array(J.length):new Array(J.length))})(P))),P):h.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(i,r,s){var o=i("./reader/readerFor"),c=i("./utils"),u=i("./signature"),h=i("./zipEntry"),d=i("./support");function m(y){this.files=[],this.loadOptions=y}m.prototype={checkSignature:function(y){if(!this.reader.readAndCheckSignature(y)){this.reader.index-=4;var w=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(w)+", expected "+c.pretty(y)+")")}},isSignature:function(y,w){var p=this.reader.index;this.reader.setIndex(y);var A=this.reader.readString(4)===w;return this.reader.setIndex(p),A},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 y=this.reader.readData(this.zipCommentLength),w=d.uint8array?"uint8array":"array",p=c.transformTo(w,y);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var y,w,p,A=this.zip64EndOfCentralSize-44;0<A;)y=this.reader.readInt(2),w=this.reader.readInt(4),p=this.reader.readData(w),this.zip64ExtensibleData[y]={id:y,length:w,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var y,w;for(y=0;y<this.files.length;y++)w=this.files[y],this.reader.setIndex(w.localHeaderOffset),this.checkSignature(u.LOCAL_FILE_HEADER),w.readLocalPart(this.reader),w.handleUTF8(),w.processAttributes()},readCentralDir:function(){var y;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(u.CENTRAL_FILE_HEADER);)(y=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(y);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 y=this.reader.lastIndexOfSignature(u.CENTRAL_DIRECTORY_END);if(y<0)throw this.isSignature(0,u.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(y);var w=y;if(this.checkSignature(u.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,(y=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(y),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,u.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(u.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(u.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var A=w-p;if(0<A)this.isSignature(w,u.CENTRAL_FILE_HEADER)||(this.reader.zero=A);else if(A<0)throw new Error("Corrupted zip: missing "+Math.abs(A)+" bytes.")},prepareReader:function(y){this.reader=o(y)},load:function(y){this.prepareReader(y),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=m},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(i,r,s){var o=i("./reader/readerFor"),c=i("./utils"),u=i("./compressedObject"),h=i("./crc32"),d=i("./utf8"),m=i("./compressions"),y=i("./support");function w(p,A){this.options=p,this.loadOptions=A}w.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var A,S;if(p.skip(22),this.fileNameLength=p.readInt(2),S=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(S),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((A=(function(E){for(var _ in m)if(Object.prototype.hasOwnProperty.call(m,_)&&m[_].magic===E)return m[_];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new u(this.compressedSize,this.uncompressedSize,this.crc32,A,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var A=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(A),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=o(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var A,S,E,_=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<_;)A=p.readInt(2),S=p.readInt(2),E=p.readData(S),this.extraFields[A]={id:A,length:S,value:E};p.setIndex(_)},handleUTF8:function(){var p=y.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=d.utf8decode(this.fileName),this.fileCommentStr=d.utf8decode(this.fileComment);else{var A=this.findExtraFieldUnicodePath();if(A!==null)this.fileNameStr=A;else{var S=c.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var E=this.findExtraFieldUnicodeComment();if(E!==null)this.fileCommentStr=E;else{var _=c.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(_)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var A=o(p.value);return A.readInt(1)!==1||h(this.fileName)!==A.readInt(4)?null:d.utf8decode(A.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var A=o(p.value);return A.readInt(1)!==1||h(this.fileComment)!==A.readInt(4)?null:d.utf8decode(A.readData(p.length-5))}return null}},r.exports=w},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(i,r,s){function o(A,S,E){this.name=A,this.dir=E.dir,this.date=E.date,this.comment=E.comment,this.unixPermissions=E.unixPermissions,this.dosPermissions=E.dosPermissions,this._data=S,this._dataBinary=E.binary,this.options={compression:E.compression,compressionOptions:E.compressionOptions}}var c=i("./stream/StreamHelper"),u=i("./stream/DataWorker"),h=i("./utf8"),d=i("./compressedObject"),m=i("./stream/GenericWorker");o.prototype={internalStream:function(A){var S=null,E="string";try{if(!A)throw new Error("No output type specified.");var _=(E=A.toLowerCase())==="string"||E==="text";E!=="binarystring"&&E!=="text"||(E="string"),S=this._decompressWorker();var j=!this._dataBinary;j&&!_&&(S=S.pipe(new h.Utf8EncodeWorker)),!j&&_&&(S=S.pipe(new h.Utf8DecodeWorker))}catch(O){(S=new m("error")).error(O)}return new c(S,E,"")},async:function(A,S){return this.internalStream(A).accumulate(S)},nodeStream:function(A,S){return this.internalStream(A||"nodebuffer").toNodejsStream(S)},_compressWorker:function(A,S){if(this._data instanceof d&&this._data.compression.magic===A.magic)return this._data.getCompressedWorker();var E=this._decompressWorker();return this._dataBinary||(E=E.pipe(new h.Utf8EncodeWorker)),d.createWorkerFrom(E,A,S)},_decompressWorker:function(){return this._data instanceof d?this._data.getContentWorker():this._data instanceof m?this._data:new u(this._data)}};for(var y=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],w=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<y.length;p++)o.prototype[y[p]]=w;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,r,s){(function(o){var c,u,h=o.MutationObserver||o.WebKitMutationObserver;if(h){var d=0,m=new h(A),y=o.document.createTextNode("");m.observe(y,{characterData:!0}),c=function(){y.data=d=++d%2}}else if(o.setImmediate||o.MessageChannel===void 0)c="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var S=o.document.createElement("script");S.onreadystatechange=function(){A(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},o.document.documentElement.appendChild(S)}:function(){setTimeout(A,0)};else{var w=new o.MessageChannel;w.port1.onmessage=A,c=function(){w.port2.postMessage(0)}}var p=[];function A(){var S,E;u=!0;for(var _=p.length;_;){for(E=p,p=[],S=-1;++S<_;)E[S]();_=p.length}u=!1}r.exports=function(S){p.push(S)!==1||u||c()}}).call(this,typeof dl<"u"?dl:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(i,r,s){var o=i("immediate");function c(){}var u={},h=["REJECTED"],d=["FULFILLED"],m=["PENDING"];function y(_){if(typeof _!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,_!==c&&S(this,_)}function w(_,j,O){this.promise=_,typeof j=="function"&&(this.onFulfilled=j,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function p(_,j,O){o(function(){var P;try{P=j(O)}catch(G){return u.reject(_,G)}P===_?u.reject(_,new TypeError("Cannot resolve promise with itself")):u.resolve(_,P)})}function A(_){var j=_&&_.then;if(_&&(typeof _=="object"||typeof _=="function")&&typeof j=="function")return function(){j.apply(_,arguments)}}function S(_,j){var O=!1;function P(ae){O||(O=!0,u.reject(_,ae))}function G(ae){O||(O=!0,u.resolve(_,ae))}var J=E(function(){j(G,P)});J.status==="error"&&P(J.value)}function E(_,j){var O={};try{O.value=_(j),O.status="success"}catch(P){O.status="error",O.value=P}return O}(r.exports=y).prototype.finally=function(_){if(typeof _!="function")return this;var j=this.constructor;return this.then(function(O){return j.resolve(_()).then(function(){return O})},function(O){return j.resolve(_()).then(function(){throw O})})},y.prototype.catch=function(_){return this.then(null,_)},y.prototype.then=function(_,j){if(typeof _!="function"&&this.state===d||typeof j!="function"&&this.state===h)return this;var O=new this.constructor(c);return this.state!==m?p(O,this.state===d?_:j,this.outcome):this.queue.push(new w(O,_,j)),O},w.prototype.callFulfilled=function(_){u.resolve(this.promise,_)},w.prototype.otherCallFulfilled=function(_){p(this.promise,this.onFulfilled,_)},w.prototype.callRejected=function(_){u.reject(this.promise,_)},w.prototype.otherCallRejected=function(_){p(this.promise,this.onRejected,_)},u.resolve=function(_,j){var O=E(A,j);if(O.status==="error")return u.reject(_,O.value);var P=O.value;if(P)S(_,P);else{_.state=d,_.outcome=j;for(var G=-1,J=_.queue.length;++G<J;)_.queue[G].callFulfilled(j)}return _},u.reject=function(_,j){_.state=h,_.outcome=j;for(var O=-1,P=_.queue.length;++O<P;)_.queue[O].callRejected(j);return _},y.resolve=function(_){return _ instanceof this?_:u.resolve(new this(c),_)},y.reject=function(_){var j=new this(c);return u.reject(j,_)},y.all=function(_){var j=this;if(Object.prototype.toString.call(_)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=_.length,P=!1;if(!O)return this.resolve([]);for(var G=new Array(O),J=0,ae=-1,ne=new this(c);++ae<O;)U(_[ae],ae);return ne;function U(le,F){j.resolve(le).then(function(T){G[F]=T,++J!==O||P||(P=!0,u.resolve(ne,G))},function(T){P||(P=!0,u.reject(ne,T))})}},y.race=function(_){var j=this;if(Object.prototype.toString.call(_)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=_.length,P=!1;if(!O)return this.resolve([]);for(var G=-1,J=new this(c);++G<O;)ae=_[G],j.resolve(ae).then(function(ne){P||(P=!0,u.resolve(J,ne))},function(ne){P||(P=!0,u.reject(J,ne))});var ae;return J}},{immediate:36}],38:[function(i,r,s){var o={};(0,i("./lib/utils/common").assign)(o,i("./lib/deflate"),i("./lib/inflate"),i("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(i,r,s){var o=i("./zlib/deflate"),c=i("./utils/common"),u=i("./utils/strings"),h=i("./zlib/messages"),d=i("./zlib/zstream"),m=Object.prototype.toString,y=0,w=-1,p=0,A=8;function S(_){if(!(this instanceof S))return new S(_);this.options=c.assign({level:w,method:A,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},_||{});var j=this.options;j.raw&&0<j.windowBits?j.windowBits=-j.windowBits:j.gzip&&0<j.windowBits&&j.windowBits<16&&(j.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var O=o.deflateInit2(this.strm,j.level,j.method,j.windowBits,j.memLevel,j.strategy);if(O!==y)throw new Error(h[O]);if(j.header&&o.deflateSetHeader(this.strm,j.header),j.dictionary){var P;if(P=typeof j.dictionary=="string"?u.string2buf(j.dictionary):m.call(j.dictionary)==="[object ArrayBuffer]"?new Uint8Array(j.dictionary):j.dictionary,(O=o.deflateSetDictionary(this.strm,P))!==y)throw new Error(h[O]);this._dict_set=!0}}function E(_,j){var O=new S(j);if(O.push(_,!0),O.err)throw O.msg||h[O.err];return O.result}S.prototype.push=function(_,j){var O,P,G=this.strm,J=this.options.chunkSize;if(this.ended)return!1;P=j===~~j?j:j===!0?4:0,typeof _=="string"?G.input=u.string2buf(_):m.call(_)==="[object ArrayBuffer]"?G.input=new Uint8Array(_):G.input=_,G.next_in=0,G.avail_in=G.input.length;do{if(G.avail_out===0&&(G.output=new c.Buf8(J),G.next_out=0,G.avail_out=J),(O=o.deflate(G,P))!==1&&O!==y)return this.onEnd(O),!(this.ended=!0);G.avail_out!==0&&(G.avail_in!==0||P!==4&&P!==2)||(this.options.to==="string"?this.onData(u.buf2binstring(c.shrinkBuf(G.output,G.next_out))):this.onData(c.shrinkBuf(G.output,G.next_out)))}while((0<G.avail_in||G.avail_out===0)&&O!==1);return P===4?(O=o.deflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===y):P!==2||(this.onEnd(y),!(G.avail_out=0))},S.prototype.onData=function(_){this.chunks.push(_)},S.prototype.onEnd=function(_){_===y&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},s.Deflate=S,s.deflate=E,s.deflateRaw=function(_,j){return(j=j||{}).raw=!0,E(_,j)},s.gzip=function(_,j){return(j=j||{}).gzip=!0,E(_,j)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(i,r,s){var o=i("./zlib/inflate"),c=i("./utils/common"),u=i("./utils/strings"),h=i("./zlib/constants"),d=i("./zlib/messages"),m=i("./zlib/zstream"),y=i("./zlib/gzheader"),w=Object.prototype.toString;function p(S){if(!(this instanceof p))return new p(S);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},S||{});var E=this.options;E.raw&&0<=E.windowBits&&E.windowBits<16&&(E.windowBits=-E.windowBits,E.windowBits===0&&(E.windowBits=-15)),!(0<=E.windowBits&&E.windowBits<16)||S&&S.windowBits||(E.windowBits+=32),15<E.windowBits&&E.windowBits<48&&(15&E.windowBits)==0&&(E.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var _=o.inflateInit2(this.strm,E.windowBits);if(_!==h.Z_OK)throw new Error(d[_]);this.header=new y,o.inflateGetHeader(this.strm,this.header)}function A(S,E){var _=new p(E);if(_.push(S,!0),_.err)throw _.msg||d[_.err];return _.result}p.prototype.push=function(S,E){var _,j,O,P,G,J,ae=this.strm,ne=this.options.chunkSize,U=this.options.dictionary,le=!1;if(this.ended)return!1;j=E===~~E?E:E===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof S=="string"?ae.input=u.binstring2buf(S):w.call(S)==="[object ArrayBuffer]"?ae.input=new Uint8Array(S):ae.input=S,ae.next_in=0,ae.avail_in=ae.input.length;do{if(ae.avail_out===0&&(ae.output=new c.Buf8(ne),ae.next_out=0,ae.avail_out=ne),(_=o.inflate(ae,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&U&&(J=typeof U=="string"?u.string2buf(U):w.call(U)==="[object ArrayBuffer]"?new Uint8Array(U):U,_=o.inflateSetDictionary(this.strm,J)),_===h.Z_BUF_ERROR&&le===!0&&(_=h.Z_OK,le=!1),_!==h.Z_STREAM_END&&_!==h.Z_OK)return this.onEnd(_),!(this.ended=!0);ae.next_out&&(ae.avail_out!==0&&_!==h.Z_STREAM_END&&(ae.avail_in!==0||j!==h.Z_FINISH&&j!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=u.utf8border(ae.output,ae.next_out),P=ae.next_out-O,G=u.buf2string(ae.output,O),ae.next_out=P,ae.avail_out=ne-P,P&&c.arraySet(ae.output,ae.output,O,P,0),this.onData(G)):this.onData(c.shrinkBuf(ae.output,ae.next_out)))),ae.avail_in===0&&ae.avail_out===0&&(le=!0)}while((0<ae.avail_in||ae.avail_out===0)&&_!==h.Z_STREAM_END);return _===h.Z_STREAM_END&&(j=h.Z_FINISH),j===h.Z_FINISH?(_=o.inflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===h.Z_OK):j!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(ae.avail_out=0))},p.prototype.onData=function(S){this.chunks.push(S)},p.prototype.onEnd=function(S){S===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},s.Inflate=p,s.inflate=A,s.inflateRaw=function(S,E){return(E=E||{}).raw=!0,A(S,E)},s.ungzip=A},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(i,r,s){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(h){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var m=d.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var y in m)m.hasOwnProperty(y)&&(h[y]=m[y])}}return h},s.shrinkBuf=function(h,d){return h.length===d?h:h.subarray?h.subarray(0,d):(h.length=d,h)};var c={arraySet:function(h,d,m,y,w){if(d.subarray&&h.subarray)h.set(d.subarray(m,m+y),w);else for(var p=0;p<y;p++)h[w+p]=d[m+p]},flattenChunks:function(h){var d,m,y,w,p,A;for(d=y=0,m=h.length;d<m;d++)y+=h[d].length;for(A=new Uint8Array(y),d=w=0,m=h.length;d<m;d++)p=h[d],A.set(p,w),w+=p.length;return A}},u={arraySet:function(h,d,m,y,w){for(var p=0;p<y;p++)h[w+p]=d[m+p]},flattenChunks:function(h){return[].concat.apply([],h)}};s.setTyped=function(h){h?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,c)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,u))},s.setTyped(o)},{}],42:[function(i,r,s){var o=i("./common"),c=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var h=new o.Buf8(256),d=0;d<256;d++)h[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;function m(y,w){if(w<65537&&(y.subarray&&u||!y.subarray&&c))return String.fromCharCode.apply(null,o.shrinkBuf(y,w));for(var p="",A=0;A<w;A++)p+=String.fromCharCode(y[A]);return p}h[254]=h[254]=1,s.string2buf=function(y){var w,p,A,S,E,_=y.length,j=0;for(S=0;S<_;S++)(64512&(p=y.charCodeAt(S)))==55296&&S+1<_&&(64512&(A=y.charCodeAt(S+1)))==56320&&(p=65536+(p-55296<<10)+(A-56320),S++),j+=p<128?1:p<2048?2:p<65536?3:4;for(w=new o.Buf8(j),S=E=0;E<j;S++)(64512&(p=y.charCodeAt(S)))==55296&&S+1<_&&(64512&(A=y.charCodeAt(S+1)))==56320&&(p=65536+(p-55296<<10)+(A-56320),S++),p<128?w[E++]=p:(p<2048?w[E++]=192|p>>>6:(p<65536?w[E++]=224|p>>>12:(w[E++]=240|p>>>18,w[E++]=128|p>>>12&63),w[E++]=128|p>>>6&63),w[E++]=128|63&p);return w},s.buf2binstring=function(y){return m(y,y.length)},s.binstring2buf=function(y){for(var w=new o.Buf8(y.length),p=0,A=w.length;p<A;p++)w[p]=y.charCodeAt(p);return w},s.buf2string=function(y,w){var p,A,S,E,_=w||y.length,j=new Array(2*_);for(p=A=0;p<_;)if((S=y[p++])<128)j[A++]=S;else if(4<(E=h[S]))j[A++]=65533,p+=E-1;else{for(S&=E===2?31:E===3?15:7;1<E&&p<_;)S=S<<6|63&y[p++],E--;1<E?j[A++]=65533:S<65536?j[A++]=S:(S-=65536,j[A++]=55296|S>>10&1023,j[A++]=56320|1023&S)}return m(j,A)},s.utf8border=function(y,w){var p;for((w=w||y.length)>y.length&&(w=y.length),p=w-1;0<=p&&(192&y[p])==128;)p--;return p<0||p===0?w:p+h[y[p]]>w?p:w}},{"./common":41}],43:[function(i,r,s){r.exports=function(o,c,u,h){for(var d=65535&o|0,m=o>>>16&65535|0,y=0;u!==0;){for(u-=y=2e3<u?2e3:u;m=m+(d=d+c[h++]|0)|0,--y;);d%=65521,m%=65521}return d|m<<16|0}},{}],44:[function(i,r,s){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(i,r,s){var o=(function(){for(var c,u=[],h=0;h<256;h++){c=h;for(var d=0;d<8;d++)c=1&c?3988292384^c>>>1:c>>>1;u[h]=c}return u})();r.exports=function(c,u,h,d){var m=o,y=d+h;c^=-1;for(var w=d;w<y;w++)c=c>>>8^m[255&(c^u[w])];return-1^c}},{}],46:[function(i,r,s){var o,c=i("../utils/common"),u=i("./trees"),h=i("./adler32"),d=i("./crc32"),m=i("./messages"),y=0,w=4,p=0,A=-2,S=-1,E=4,_=2,j=8,O=9,P=286,G=30,J=19,ae=2*P+1,ne=15,U=3,le=258,F=le+U+1,T=42,X=113,N=1,Q=2,ie=3,oe=4;function me(M,Y){return M.msg=m[Y],Y}function ge(M){return(M<<1)-(4<M?9:0)}function Z(M){for(var Y=M.length;0<=--Y;)M[Y]=0}function I(M){var Y=M.state,xe=Y.pending;xe>M.avail_out&&(xe=M.avail_out),xe!==0&&(c.arraySet(M.output,Y.pending_buf,Y.pending_out,xe,M.next_out),M.next_out+=xe,Y.pending_out+=xe,M.total_out+=xe,M.avail_out-=xe,Y.pending-=xe,Y.pending===0&&(Y.pending_out=0))}function L(M,Y){u._tr_flush_block(M,0<=M.block_start?M.block_start:-1,M.strstart-M.block_start,Y),M.block_start=M.strstart,I(M.strm)}function z(M,Y){M.pending_buf[M.pending++]=Y}function V(M,Y){M.pending_buf[M.pending++]=Y>>>8&255,M.pending_buf[M.pending++]=255&Y}function ee(M,Y){var xe,ue,re=M.max_chain_length,ce=M.strstart,De=M.prev_length,Re=M.nice_match,_e=M.strstart>M.w_size-F?M.strstart-(M.w_size-F):0,He=M.window,Ee=M.w_mask,je=M.prev,ve=M.strstart+le,Be=He[ce+De-1],Ge=He[ce+De];M.prev_length>=M.good_match&&(re>>=2),Re>M.lookahead&&(Re=M.lookahead);do if(He[(xe=Y)+De]===Ge&&He[xe+De-1]===Be&&He[xe]===He[ce]&&He[++xe]===He[ce+1]){ce+=2,xe++;do;while(He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&He[++ce]===He[++xe]&&ce<ve);if(ue=le-(ve-ce),ce=ve-le,De<ue){if(M.match_start=Y,Re<=(De=ue))break;Be=He[ce+De-1],Ge=He[ce+De]}}while((Y=je[Y&Ee])>_e&&--re!=0);return De<=M.lookahead?De:M.lookahead}function pe(M){var Y,xe,ue,re,ce,De,Re,_e,He,Ee,je=M.w_size;do{if(re=M.window_size-M.lookahead-M.strstart,M.strstart>=je+(je-F)){for(c.arraySet(M.window,M.window,je,je,0),M.match_start-=je,M.strstart-=je,M.block_start-=je,Y=xe=M.hash_size;ue=M.head[--Y],M.head[Y]=je<=ue?ue-je:0,--xe;);for(Y=xe=je;ue=M.prev[--Y],M.prev[Y]=je<=ue?ue-je:0,--xe;);re+=je}if(M.strm.avail_in===0)break;if(De=M.strm,Re=M.window,_e=M.strstart+M.lookahead,He=re,Ee=void 0,Ee=De.avail_in,He<Ee&&(Ee=He),xe=Ee===0?0:(De.avail_in-=Ee,c.arraySet(Re,De.input,De.next_in,Ee,_e),De.state.wrap===1?De.adler=h(De.adler,Re,Ee,_e):De.state.wrap===2&&(De.adler=d(De.adler,Re,Ee,_e)),De.next_in+=Ee,De.total_in+=Ee,Ee),M.lookahead+=xe,M.lookahead+M.insert>=U)for(ce=M.strstart-M.insert,M.ins_h=M.window[ce],M.ins_h=(M.ins_h<<M.hash_shift^M.window[ce+1])&M.hash_mask;M.insert&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[ce+U-1])&M.hash_mask,M.prev[ce&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=ce,ce++,M.insert--,!(M.lookahead+M.insert<U)););}while(M.lookahead<F&&M.strm.avail_in!==0)}function we(M,Y){for(var xe,ue;;){if(M.lookahead<F){if(pe(M),M.lookahead<F&&Y===y)return N;if(M.lookahead===0)break}if(xe=0,M.lookahead>=U&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+U-1])&M.hash_mask,xe=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart),xe!==0&&M.strstart-xe<=M.w_size-F&&(M.match_length=ee(M,xe)),M.match_length>=U)if(ue=u._tr_tally(M,M.strstart-M.match_start,M.match_length-U),M.lookahead-=M.match_length,M.match_length<=M.max_lazy_match&&M.lookahead>=U){for(M.match_length--;M.strstart++,M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+U-1])&M.hash_mask,xe=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart,--M.match_length!=0;);M.strstart++}else M.strstart+=M.match_length,M.match_length=0,M.ins_h=M.window[M.strstart],M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+1])&M.hash_mask;else ue=u._tr_tally(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++;if(ue&&(L(M,!1),M.strm.avail_out===0))return N}return M.insert=M.strstart<U-1?M.strstart:U-1,Y===w?(L(M,!0),M.strm.avail_out===0?ie:oe):M.last_lit&&(L(M,!1),M.strm.avail_out===0)?N:Q}function Ae(M,Y){for(var xe,ue,re;;){if(M.lookahead<F){if(pe(M),M.lookahead<F&&Y===y)return N;if(M.lookahead===0)break}if(xe=0,M.lookahead>=U&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+U-1])&M.hash_mask,xe=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart),M.prev_length=M.match_length,M.prev_match=M.match_start,M.match_length=U-1,xe!==0&&M.prev_length<M.max_lazy_match&&M.strstart-xe<=M.w_size-F&&(M.match_length=ee(M,xe),M.match_length<=5&&(M.strategy===1||M.match_length===U&&4096<M.strstart-M.match_start)&&(M.match_length=U-1)),M.prev_length>=U&&M.match_length<=M.prev_length){for(re=M.strstart+M.lookahead-U,ue=u._tr_tally(M,M.strstart-1-M.prev_match,M.prev_length-U),M.lookahead-=M.prev_length-1,M.prev_length-=2;++M.strstart<=re&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+U-1])&M.hash_mask,xe=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart),--M.prev_length!=0;);if(M.match_available=0,M.match_length=U-1,M.strstart++,ue&&(L(M,!1),M.strm.avail_out===0))return N}else if(M.match_available){if((ue=u._tr_tally(M,0,M.window[M.strstart-1]))&&L(M,!1),M.strstart++,M.lookahead--,M.strm.avail_out===0)return N}else M.match_available=1,M.strstart++,M.lookahead--}return M.match_available&&(ue=u._tr_tally(M,0,M.window[M.strstart-1]),M.match_available=0),M.insert=M.strstart<U-1?M.strstart:U-1,Y===w?(L(M,!0),M.strm.avail_out===0?ie:oe):M.last_lit&&(L(M,!1),M.strm.avail_out===0)?N:Q}function Ne(M,Y,xe,ue,re){this.good_length=M,this.max_lazy=Y,this.nice_length=xe,this.max_chain=ue,this.func=re}function Ue(){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=j,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 c.Buf16(2*ae),this.dyn_dtree=new c.Buf16(2*(2*G+1)),this.bl_tree=new c.Buf16(2*(2*J+1)),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(ne+1),this.heap=new c.Buf16(2*P+1),Z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*P+1),Z(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 Xe(M){var Y;return M&&M.state?(M.total_in=M.total_out=0,M.data_type=_,(Y=M.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?T:X,M.adler=Y.wrap===2?0:1,Y.last_flush=y,u._tr_init(Y),p):me(M,A)}function at(M){var Y=Xe(M);return Y===p&&(function(xe){xe.window_size=2*xe.w_size,Z(xe.head),xe.max_lazy_match=o[xe.level].max_lazy,xe.good_match=o[xe.level].good_length,xe.nice_match=o[xe.level].nice_length,xe.max_chain_length=o[xe.level].max_chain,xe.strstart=0,xe.block_start=0,xe.lookahead=0,xe.insert=0,xe.match_length=xe.prev_length=U-1,xe.match_available=0,xe.ins_h=0})(M.state),Y}function rt(M,Y,xe,ue,re,ce){if(!M)return A;var De=1;if(Y===S&&(Y=6),ue<0?(De=0,ue=-ue):15<ue&&(De=2,ue-=16),re<1||O<re||xe!==j||ue<8||15<ue||Y<0||9<Y||ce<0||E<ce)return me(M,A);ue===8&&(ue=9);var Re=new Ue;return(M.state=Re).strm=M,Re.wrap=De,Re.gzhead=null,Re.w_bits=ue,Re.w_size=1<<Re.w_bits,Re.w_mask=Re.w_size-1,Re.hash_bits=re+7,Re.hash_size=1<<Re.hash_bits,Re.hash_mask=Re.hash_size-1,Re.hash_shift=~~((Re.hash_bits+U-1)/U),Re.window=new c.Buf8(2*Re.w_size),Re.head=new c.Buf16(Re.hash_size),Re.prev=new c.Buf16(Re.w_size),Re.lit_bufsize=1<<re+6,Re.pending_buf_size=4*Re.lit_bufsize,Re.pending_buf=new c.Buf8(Re.pending_buf_size),Re.d_buf=1*Re.lit_bufsize,Re.l_buf=3*Re.lit_bufsize,Re.level=Y,Re.strategy=ce,Re.method=xe,at(M)}o=[new Ne(0,0,0,0,function(M,Y){var xe=65535;for(xe>M.pending_buf_size-5&&(xe=M.pending_buf_size-5);;){if(M.lookahead<=1){if(pe(M),M.lookahead===0&&Y===y)return N;if(M.lookahead===0)break}M.strstart+=M.lookahead,M.lookahead=0;var ue=M.block_start+xe;if((M.strstart===0||M.strstart>=ue)&&(M.lookahead=M.strstart-ue,M.strstart=ue,L(M,!1),M.strm.avail_out===0)||M.strstart-M.block_start>=M.w_size-F&&(L(M,!1),M.strm.avail_out===0))return N}return M.insert=0,Y===w?(L(M,!0),M.strm.avail_out===0?ie:oe):(M.strstart>M.block_start&&(L(M,!1),M.strm.avail_out),N)}),new Ne(4,4,8,4,we),new Ne(4,5,16,8,we),new Ne(4,6,32,32,we),new Ne(4,4,16,16,Ae),new Ne(8,16,32,32,Ae),new Ne(8,16,128,128,Ae),new Ne(8,32,128,256,Ae),new Ne(32,128,258,1024,Ae),new Ne(32,258,258,4096,Ae)],s.deflateInit=function(M,Y){return rt(M,Y,j,15,8,0)},s.deflateInit2=rt,s.deflateReset=at,s.deflateResetKeep=Xe,s.deflateSetHeader=function(M,Y){return M&&M.state?M.state.wrap!==2?A:(M.state.gzhead=Y,p):A},s.deflate=function(M,Y){var xe,ue,re,ce;if(!M||!M.state||5<Y||Y<0)return M?me(M,A):A;if(ue=M.state,!M.output||!M.input&&M.avail_in!==0||ue.status===666&&Y!==w)return me(M,M.avail_out===0?-5:A);if(ue.strm=M,xe=ue.last_flush,ue.last_flush=Y,ue.status===T)if(ue.wrap===2)M.adler=0,z(ue,31),z(ue,139),z(ue,8),ue.gzhead?(z(ue,(ue.gzhead.text?1:0)+(ue.gzhead.hcrc?2:0)+(ue.gzhead.extra?4:0)+(ue.gzhead.name?8:0)+(ue.gzhead.comment?16:0)),z(ue,255&ue.gzhead.time),z(ue,ue.gzhead.time>>8&255),z(ue,ue.gzhead.time>>16&255),z(ue,ue.gzhead.time>>24&255),z(ue,ue.level===9?2:2<=ue.strategy||ue.level<2?4:0),z(ue,255&ue.gzhead.os),ue.gzhead.extra&&ue.gzhead.extra.length&&(z(ue,255&ue.gzhead.extra.length),z(ue,ue.gzhead.extra.length>>8&255)),ue.gzhead.hcrc&&(M.adler=d(M.adler,ue.pending_buf,ue.pending,0)),ue.gzindex=0,ue.status=69):(z(ue,0),z(ue,0),z(ue,0),z(ue,0),z(ue,0),z(ue,ue.level===9?2:2<=ue.strategy||ue.level<2?4:0),z(ue,3),ue.status=X);else{var De=j+(ue.w_bits-8<<4)<<8;De|=(2<=ue.strategy||ue.level<2?0:ue.level<6?1:ue.level===6?2:3)<<6,ue.strstart!==0&&(De|=32),De+=31-De%31,ue.status=X,V(ue,De),ue.strstart!==0&&(V(ue,M.adler>>>16),V(ue,65535&M.adler)),M.adler=1}if(ue.status===69)if(ue.gzhead.extra){for(re=ue.pending;ue.gzindex<(65535&ue.gzhead.extra.length)&&(ue.pending!==ue.pending_buf_size||(ue.gzhead.hcrc&&ue.pending>re&&(M.adler=d(M.adler,ue.pending_buf,ue.pending-re,re)),I(M),re=ue.pending,ue.pending!==ue.pending_buf_size));)z(ue,255&ue.gzhead.extra[ue.gzindex]),ue.gzindex++;ue.gzhead.hcrc&&ue.pending>re&&(M.adler=d(M.adler,ue.pending_buf,ue.pending-re,re)),ue.gzindex===ue.gzhead.extra.length&&(ue.gzindex=0,ue.status=73)}else ue.status=73;if(ue.status===73)if(ue.gzhead.name){re=ue.pending;do{if(ue.pending===ue.pending_buf_size&&(ue.gzhead.hcrc&&ue.pending>re&&(M.adler=d(M.adler,ue.pending_buf,ue.pending-re,re)),I(M),re=ue.pending,ue.pending===ue.pending_buf_size)){ce=1;break}ce=ue.gzindex<ue.gzhead.name.length?255&ue.gzhead.name.charCodeAt(ue.gzindex++):0,z(ue,ce)}while(ce!==0);ue.gzhead.hcrc&&ue.pending>re&&(M.adler=d(M.adler,ue.pending_buf,ue.pending-re,re)),ce===0&&(ue.gzindex=0,ue.status=91)}else ue.status=91;if(ue.status===91)if(ue.gzhead.comment){re=ue.pending;do{if(ue.pending===ue.pending_buf_size&&(ue.gzhead.hcrc&&ue.pending>re&&(M.adler=d(M.adler,ue.pending_buf,ue.pending-re,re)),I(M),re=ue.pending,ue.pending===ue.pending_buf_size)){ce=1;break}ce=ue.gzindex<ue.gzhead.comment.length?255&ue.gzhead.comment.charCodeAt(ue.gzindex++):0,z(ue,ce)}while(ce!==0);ue.gzhead.hcrc&&ue.pending>re&&(M.adler=d(M.adler,ue.pending_buf,ue.pending-re,re)),ce===0&&(ue.status=103)}else ue.status=103;if(ue.status===103&&(ue.gzhead.hcrc?(ue.pending+2>ue.pending_buf_size&&I(M),ue.pending+2<=ue.pending_buf_size&&(z(ue,255&M.adler),z(ue,M.adler>>8&255),M.adler=0,ue.status=X)):ue.status=X),ue.pending!==0){if(I(M),M.avail_out===0)return ue.last_flush=-1,p}else if(M.avail_in===0&&ge(Y)<=ge(xe)&&Y!==w)return me(M,-5);if(ue.status===666&&M.avail_in!==0)return me(M,-5);if(M.avail_in!==0||ue.lookahead!==0||Y!==y&&ue.status!==666){var Re=ue.strategy===2?(function(_e,He){for(var Ee;;){if(_e.lookahead===0&&(pe(_e),_e.lookahead===0)){if(He===y)return N;break}if(_e.match_length=0,Ee=u._tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++,Ee&&(L(_e,!1),_e.strm.avail_out===0))return N}return _e.insert=0,He===w?(L(_e,!0),_e.strm.avail_out===0?ie:oe):_e.last_lit&&(L(_e,!1),_e.strm.avail_out===0)?N:Q})(ue,Y):ue.strategy===3?(function(_e,He){for(var Ee,je,ve,Be,Ge=_e.window;;){if(_e.lookahead<=le){if(pe(_e),_e.lookahead<=le&&He===y)return N;if(_e.lookahead===0)break}if(_e.match_length=0,_e.lookahead>=U&&0<_e.strstart&&(je=Ge[ve=_e.strstart-1])===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]){Be=_e.strstart+le;do;while(je===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]&&je===Ge[++ve]&&ve<Be);_e.match_length=le-(Be-ve),_e.match_length>_e.lookahead&&(_e.match_length=_e.lookahead)}if(_e.match_length>=U?(Ee=u._tr_tally(_e,1,_e.match_length-U),_e.lookahead-=_e.match_length,_e.strstart+=_e.match_length,_e.match_length=0):(Ee=u._tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++),Ee&&(L(_e,!1),_e.strm.avail_out===0))return N}return _e.insert=0,He===w?(L(_e,!0),_e.strm.avail_out===0?ie:oe):_e.last_lit&&(L(_e,!1),_e.strm.avail_out===0)?N:Q})(ue,Y):o[ue.level].func(ue,Y);if(Re!==ie&&Re!==oe||(ue.status=666),Re===N||Re===ie)return M.avail_out===0&&(ue.last_flush=-1),p;if(Re===Q&&(Y===1?u._tr_align(ue):Y!==5&&(u._tr_stored_block(ue,0,0,!1),Y===3&&(Z(ue.head),ue.lookahead===0&&(ue.strstart=0,ue.block_start=0,ue.insert=0))),I(M),M.avail_out===0))return ue.last_flush=-1,p}return Y!==w?p:ue.wrap<=0?1:(ue.wrap===2?(z(ue,255&M.adler),z(ue,M.adler>>8&255),z(ue,M.adler>>16&255),z(ue,M.adler>>24&255),z(ue,255&M.total_in),z(ue,M.total_in>>8&255),z(ue,M.total_in>>16&255),z(ue,M.total_in>>24&255)):(V(ue,M.adler>>>16),V(ue,65535&M.adler)),I(M),0<ue.wrap&&(ue.wrap=-ue.wrap),ue.pending!==0?p:1)},s.deflateEnd=function(M){var Y;return M&&M.state?(Y=M.state.status)!==T&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==X&&Y!==666?me(M,A):(M.state=null,Y===X?me(M,-3):p):A},s.deflateSetDictionary=function(M,Y){var xe,ue,re,ce,De,Re,_e,He,Ee=Y.length;if(!M||!M.state||(ce=(xe=M.state).wrap)===2||ce===1&&xe.status!==T||xe.lookahead)return A;for(ce===1&&(M.adler=h(M.adler,Y,Ee,0)),xe.wrap=0,Ee>=xe.w_size&&(ce===0&&(Z(xe.head),xe.strstart=0,xe.block_start=0,xe.insert=0),He=new c.Buf8(xe.w_size),c.arraySet(He,Y,Ee-xe.w_size,xe.w_size,0),Y=He,Ee=xe.w_size),De=M.avail_in,Re=M.next_in,_e=M.input,M.avail_in=Ee,M.next_in=0,M.input=Y,pe(xe);xe.lookahead>=U;){for(ue=xe.strstart,re=xe.lookahead-(U-1);xe.ins_h=(xe.ins_h<<xe.hash_shift^xe.window[ue+U-1])&xe.hash_mask,xe.prev[ue&xe.w_mask]=xe.head[xe.ins_h],xe.head[xe.ins_h]=ue,ue++,--re;);xe.strstart=ue,xe.lookahead=U-1,pe(xe)}return xe.strstart+=xe.lookahead,xe.block_start=xe.strstart,xe.insert=xe.lookahead,xe.lookahead=0,xe.match_length=xe.prev_length=U-1,xe.match_available=0,M.next_in=Re,M.input=_e,M.avail_in=De,xe.wrap=ce,p},s.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(i,r,s){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(i,r,s){r.exports=function(o,c){var u,h,d,m,y,w,p,A,S,E,_,j,O,P,G,J,ae,ne,U,le,F,T,X,N,Q;u=o.state,h=o.next_in,N=o.input,d=h+(o.avail_in-5),m=o.next_out,Q=o.output,y=m-(c-o.avail_out),w=m+(o.avail_out-257),p=u.dmax,A=u.wsize,S=u.whave,E=u.wnext,_=u.window,j=u.hold,O=u.bits,P=u.lencode,G=u.distcode,J=(1<<u.lenbits)-1,ae=(1<<u.distbits)-1;e:do{O<15&&(j+=N[h++]<<O,O+=8,j+=N[h++]<<O,O+=8),ne=P[j&J];t:for(;;){if(j>>>=U=ne>>>24,O-=U,(U=ne>>>16&255)===0)Q[m++]=65535&ne;else{if(!(16&U)){if((64&U)==0){ne=P[(65535&ne)+(j&(1<<U)-1)];continue t}if(32&U){u.mode=12;break e}o.msg="invalid literal/length code",u.mode=30;break e}le=65535&ne,(U&=15)&&(O<U&&(j+=N[h++]<<O,O+=8),le+=j&(1<<U)-1,j>>>=U,O-=U),O<15&&(j+=N[h++]<<O,O+=8,j+=N[h++]<<O,O+=8),ne=G[j&ae];n:for(;;){if(j>>>=U=ne>>>24,O-=U,!(16&(U=ne>>>16&255))){if((64&U)==0){ne=G[(65535&ne)+(j&(1<<U)-1)];continue n}o.msg="invalid distance code",u.mode=30;break e}if(F=65535&ne,O<(U&=15)&&(j+=N[h++]<<O,(O+=8)<U&&(j+=N[h++]<<O,O+=8)),p<(F+=j&(1<<U)-1)){o.msg="invalid distance too far back",u.mode=30;break e}if(j>>>=U,O-=U,(U=m-y)<F){if(S<(U=F-U)&&u.sane){o.msg="invalid distance too far back",u.mode=30;break e}if(X=_,(T=0)===E){if(T+=A-U,U<le){for(le-=U;Q[m++]=_[T++],--U;);T=m-F,X=Q}}else if(E<U){if(T+=A+E-U,(U-=E)<le){for(le-=U;Q[m++]=_[T++],--U;);if(T=0,E<le){for(le-=U=E;Q[m++]=_[T++],--U;);T=m-F,X=Q}}}else if(T+=E-U,U<le){for(le-=U;Q[m++]=_[T++],--U;);T=m-F,X=Q}for(;2<le;)Q[m++]=X[T++],Q[m++]=X[T++],Q[m++]=X[T++],le-=3;le&&(Q[m++]=X[T++],1<le&&(Q[m++]=X[T++]))}else{for(T=m-F;Q[m++]=Q[T++],Q[m++]=Q[T++],Q[m++]=Q[T++],2<(le-=3););le&&(Q[m++]=Q[T++],1<le&&(Q[m++]=Q[T++]))}break}}break}}while(h<d&&m<w);h-=le=O>>3,j&=(1<<(O-=le<<3))-1,o.next_in=h,o.next_out=m,o.avail_in=h<d?d-h+5:5-(h-d),o.avail_out=m<w?w-m+257:257-(m-w),u.hold=j,u.bits=O}},{}],49:[function(i,r,s){var o=i("../utils/common"),c=i("./adler32"),u=i("./crc32"),h=i("./inffast"),d=i("./inftrees"),m=1,y=2,w=0,p=-2,A=1,S=852,E=592;function _(T){return(T>>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function j(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function O(T){var X;return T&&T.state?(X=T.state,T.total_in=T.total_out=X.total=0,T.msg="",X.wrap&&(T.adler=1&X.wrap),X.mode=A,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new o.Buf32(S),X.distcode=X.distdyn=new o.Buf32(E),X.sane=1,X.back=-1,w):p}function P(T){var X;return T&&T.state?((X=T.state).wsize=0,X.whave=0,X.wnext=0,O(T)):p}function G(T,X){var N,Q;return T&&T.state?(Q=T.state,X<0?(N=0,X=-X):(N=1+(X>>4),X<48&&(X&=15)),X&&(X<8||15<X)?p:(Q.window!==null&&Q.wbits!==X&&(Q.window=null),Q.wrap=N,Q.wbits=X,P(T))):p}function J(T,X){var N,Q;return T?(Q=new j,(T.state=Q).window=null,(N=G(T,X))!==w&&(T.state=null),N):p}var ae,ne,U=!0;function le(T){if(U){var X;for(ae=new o.Buf32(512),ne=new o.Buf32(32),X=0;X<144;)T.lens[X++]=8;for(;X<256;)T.lens[X++]=9;for(;X<280;)T.lens[X++]=7;for(;X<288;)T.lens[X++]=8;for(d(m,T.lens,0,288,ae,0,T.work,{bits:9}),X=0;X<32;)T.lens[X++]=5;d(y,T.lens,0,32,ne,0,T.work,{bits:5}),U=!1}T.lencode=ae,T.lenbits=9,T.distcode=ne,T.distbits=5}function F(T,X,N,Q){var ie,oe=T.state;return oe.window===null&&(oe.wsize=1<<oe.wbits,oe.wnext=0,oe.whave=0,oe.window=new o.Buf8(oe.wsize)),Q>=oe.wsize?(o.arraySet(oe.window,X,N-oe.wsize,oe.wsize,0),oe.wnext=0,oe.whave=oe.wsize):(Q<(ie=oe.wsize-oe.wnext)&&(ie=Q),o.arraySet(oe.window,X,N-Q,ie,oe.wnext),(Q-=ie)?(o.arraySet(oe.window,X,N-Q,Q,0),oe.wnext=Q,oe.whave=oe.wsize):(oe.wnext+=ie,oe.wnext===oe.wsize&&(oe.wnext=0),oe.whave<oe.wsize&&(oe.whave+=ie))),0}s.inflateReset=P,s.inflateReset2=G,s.inflateResetKeep=O,s.inflateInit=function(T){return J(T,15)},s.inflateInit2=J,s.inflate=function(T,X){var N,Q,ie,oe,me,ge,Z,I,L,z,V,ee,pe,we,Ae,Ne,Ue,Xe,at,rt,M,Y,xe,ue,re=0,ce=new o.Buf8(4),De=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return p;(N=T.state).mode===12&&(N.mode=13),me=T.next_out,ie=T.output,Z=T.avail_out,oe=T.next_in,Q=T.input,ge=T.avail_in,I=N.hold,L=N.bits,z=ge,V=Z,Y=w;e:for(;;)switch(N.mode){case A:if(N.wrap===0){N.mode=13;break}for(;L<16;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(2&N.wrap&&I===35615){ce[N.check=0]=255&I,ce[1]=I>>>8&255,N.check=u(N.check,ce,2,0),L=I=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&I)<<8)+(I>>8))%31){T.msg="incorrect header check",N.mode=30;break}if((15&I)!=8){T.msg="unknown compression method",N.mode=30;break}if(L-=4,M=8+(15&(I>>>=4)),N.wbits===0)N.wbits=M;else if(M>N.wbits){T.msg="invalid window size",N.mode=30;break}N.dmax=1<<M,T.adler=N.check=1,N.mode=512&I?10:12,L=I=0;break;case 2:for(;L<16;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(N.flags=I,(255&N.flags)!=8){T.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){T.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=I>>8&1),512&N.flags&&(ce[0]=255&I,ce[1]=I>>>8&255,N.check=u(N.check,ce,2,0)),L=I=0,N.mode=3;case 3:for(;L<32;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}N.head&&(N.head.time=I),512&N.flags&&(ce[0]=255&I,ce[1]=I>>>8&255,ce[2]=I>>>16&255,ce[3]=I>>>24&255,N.check=u(N.check,ce,4,0)),L=I=0,N.mode=4;case 4:for(;L<16;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}N.head&&(N.head.xflags=255&I,N.head.os=I>>8),512&N.flags&&(ce[0]=255&I,ce[1]=I>>>8&255,N.check=u(N.check,ce,2,0)),L=I=0,N.mode=5;case 5:if(1024&N.flags){for(;L<16;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}N.length=I,N.head&&(N.head.extra_len=I),512&N.flags&&(ce[0]=255&I,ce[1]=I>>>8&255,N.check=u(N.check,ce,2,0)),L=I=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(ge<(ee=N.length)&&(ee=ge),ee&&(N.head&&(M=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),o.arraySet(N.head.extra,Q,oe,ee,M)),512&N.flags&&(N.check=u(N.check,Q,ee,oe)),ge-=ee,oe+=ee,N.length-=ee),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(ge===0)break e;for(ee=0;M=Q[oe+ee++],N.head&&M&&N.length<65536&&(N.head.name+=String.fromCharCode(M)),M&&ee<ge;);if(512&N.flags&&(N.check=u(N.check,Q,ee,oe)),ge-=ee,oe+=ee,M)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(ge===0)break e;for(ee=0;M=Q[oe+ee++],N.head&&M&&N.length<65536&&(N.head.comment+=String.fromCharCode(M)),M&&ee<ge;);if(512&N.flags&&(N.check=u(N.check,Q,ee,oe)),ge-=ee,oe+=ee,M)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;L<16;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(I!==(65535&N.check)){T.msg="header crc mismatch",N.mode=30;break}L=I=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),T.adler=N.check=0,N.mode=12;break;case 10:for(;L<32;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}T.adler=N.check=_(I),L=I=0,N.mode=11;case 11:if(N.havedict===0)return T.next_out=me,T.avail_out=Z,T.next_in=oe,T.avail_in=ge,N.hold=I,N.bits=L,2;T.adler=N.check=1,N.mode=12;case 12:if(X===5||X===6)break e;case 13:if(N.last){I>>>=7&L,L-=7&L,N.mode=27;break}for(;L<3;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}switch(N.last=1&I,L-=1,3&(I>>>=1)){case 0:N.mode=14;break;case 1:if(le(N),N.mode=20,X!==6)break;I>>>=2,L-=2;break e;case 2:N.mode=17;break;case 3:T.msg="invalid block type",N.mode=30}I>>>=2,L-=2;break;case 14:for(I>>>=7&L,L-=7&L;L<32;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if((65535&I)!=(I>>>16^65535)){T.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&I,L=I=0,N.mode=15,X===6)break e;case 15:N.mode=16;case 16:if(ee=N.length){if(ge<ee&&(ee=ge),Z<ee&&(ee=Z),ee===0)break e;o.arraySet(ie,Q,oe,ee,me),ge-=ee,oe+=ee,Z-=ee,me+=ee,N.length-=ee;break}N.mode=12;break;case 17:for(;L<14;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(N.nlen=257+(31&I),I>>>=5,L-=5,N.ndist=1+(31&I),I>>>=5,L-=5,N.ncode=4+(15&I),I>>>=4,L-=4,286<N.nlen||30<N.ndist){T.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;L<3;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}N.lens[De[N.have++]]=7&I,I>>>=3,L-=3}for(;N.have<19;)N.lens[De[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,xe={bits:N.lenbits},Y=d(0,N.lens,0,19,N.lencode,0,N.work,xe),N.lenbits=xe.bits,Y){T.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;Ne=(re=N.lencode[I&(1<<N.lenbits)-1])>>>16&255,Ue=65535&re,!((Ae=re>>>24)<=L);){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(Ue<16)I>>>=Ae,L-=Ae,N.lens[N.have++]=Ue;else{if(Ue===16){for(ue=Ae+2;L<ue;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(I>>>=Ae,L-=Ae,N.have===0){T.msg="invalid bit length repeat",N.mode=30;break}M=N.lens[N.have-1],ee=3+(3&I),I>>>=2,L-=2}else if(Ue===17){for(ue=Ae+3;L<ue;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}L-=Ae,M=0,ee=3+(7&(I>>>=Ae)),I>>>=3,L-=3}else{for(ue=Ae+7;L<ue;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}L-=Ae,M=0,ee=11+(127&(I>>>=Ae)),I>>>=7,L-=7}if(N.have+ee>N.nlen+N.ndist){T.msg="invalid bit length repeat",N.mode=30;break}for(;ee--;)N.lens[N.have++]=M}}if(N.mode===30)break;if(N.lens[256]===0){T.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,xe={bits:N.lenbits},Y=d(m,N.lens,0,N.nlen,N.lencode,0,N.work,xe),N.lenbits=xe.bits,Y){T.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,xe={bits:N.distbits},Y=d(y,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,xe),N.distbits=xe.bits,Y){T.msg="invalid distances set",N.mode=30;break}if(N.mode=20,X===6)break e;case 20:N.mode=21;case 21:if(6<=ge&&258<=Z){T.next_out=me,T.avail_out=Z,T.next_in=oe,T.avail_in=ge,N.hold=I,N.bits=L,h(T,V),me=T.next_out,ie=T.output,Z=T.avail_out,oe=T.next_in,Q=T.input,ge=T.avail_in,I=N.hold,L=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;Ne=(re=N.lencode[I&(1<<N.lenbits)-1])>>>16&255,Ue=65535&re,!((Ae=re>>>24)<=L);){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(Ne&&(240&Ne)==0){for(Xe=Ae,at=Ne,rt=Ue;Ne=(re=N.lencode[rt+((I&(1<<Xe+at)-1)>>Xe)])>>>16&255,Ue=65535&re,!(Xe+(Ae=re>>>24)<=L);){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}I>>>=Xe,L-=Xe,N.back+=Xe}if(I>>>=Ae,L-=Ae,N.back+=Ae,N.length=Ue,Ne===0){N.mode=26;break}if(32&Ne){N.back=-1,N.mode=12;break}if(64&Ne){T.msg="invalid literal/length code",N.mode=30;break}N.extra=15&Ne,N.mode=22;case 22:if(N.extra){for(ue=N.extra;L<ue;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}N.length+=I&(1<<N.extra)-1,I>>>=N.extra,L-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;Ne=(re=N.distcode[I&(1<<N.distbits)-1])>>>16&255,Ue=65535&re,!((Ae=re>>>24)<=L);){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if((240&Ne)==0){for(Xe=Ae,at=Ne,rt=Ue;Ne=(re=N.distcode[rt+((I&(1<<Xe+at)-1)>>Xe)])>>>16&255,Ue=65535&re,!(Xe+(Ae=re>>>24)<=L);){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}I>>>=Xe,L-=Xe,N.back+=Xe}if(I>>>=Ae,L-=Ae,N.back+=Ae,64&Ne){T.msg="invalid distance code",N.mode=30;break}N.offset=Ue,N.extra=15&Ne,N.mode=24;case 24:if(N.extra){for(ue=N.extra;L<ue;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}N.offset+=I&(1<<N.extra)-1,I>>>=N.extra,L-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){T.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(Z===0)break e;if(ee=V-Z,N.offset>ee){if((ee=N.offset-ee)>N.whave&&N.sane){T.msg="invalid distance too far back",N.mode=30;break}pe=ee>N.wnext?(ee-=N.wnext,N.wsize-ee):N.wnext-ee,ee>N.length&&(ee=N.length),we=N.window}else we=ie,pe=me-N.offset,ee=N.length;for(Z<ee&&(ee=Z),Z-=ee,N.length-=ee;ie[me++]=we[pe++],--ee;);N.length===0&&(N.mode=21);break;case 26:if(Z===0)break e;ie[me++]=N.length,Z--,N.mode=21;break;case 27:if(N.wrap){for(;L<32;){if(ge===0)break e;ge--,I|=Q[oe++]<<L,L+=8}if(V-=Z,T.total_out+=V,N.total+=V,V&&(T.adler=N.check=N.flags?u(N.check,ie,V,me-V):c(N.check,ie,V,me-V)),V=Z,(N.flags?I:_(I))!==N.check){T.msg="incorrect data check",N.mode=30;break}L=I=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;L<32;){if(ge===0)break e;ge--,I+=Q[oe++]<<L,L+=8}if(I!==(4294967295&N.total)){T.msg="incorrect length check",N.mode=30;break}L=I=0}N.mode=29;case 29:Y=1;break e;case 30:Y=-3;break e;case 31:return-4;case 32:default:return p}return T.next_out=me,T.avail_out=Z,T.next_in=oe,T.avail_in=ge,N.hold=I,N.bits=L,(N.wsize||V!==T.avail_out&&N.mode<30&&(N.mode<27||X!==4))&&F(T,T.output,T.next_out,V-T.avail_out)?(N.mode=31,-4):(z-=T.avail_in,V-=T.avail_out,T.total_in+=z,T.total_out+=V,N.total+=V,N.wrap&&V&&(T.adler=N.check=N.flags?u(N.check,ie,V,T.next_out-V):c(N.check,ie,V,T.next_out-V)),T.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(z==0&&V===0||X===4)&&Y===w&&(Y=-5),Y)},s.inflateEnd=function(T){if(!T||!T.state)return p;var X=T.state;return X.window&&(X.window=null),T.state=null,w},s.inflateGetHeader=function(T,X){var N;return T&&T.state?(2&(N=T.state).wrap)==0?p:((N.head=X).done=!1,w):p},s.inflateSetDictionary=function(T,X){var N,Q=X.length;return T&&T.state?(N=T.state).wrap!==0&&N.mode!==11?p:N.mode===11&&c(1,X,Q,0)!==N.check?-3:F(T,X,Q,Q)?(N.mode=31,-4):(N.havedict=1,w):p},s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(i,r,s){var o=i("../utils/common"),c=[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],u=[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],h=[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],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(m,y,w,p,A,S,E,_){var j,O,P,G,J,ae,ne,U,le,F=_.bits,T=0,X=0,N=0,Q=0,ie=0,oe=0,me=0,ge=0,Z=0,I=0,L=null,z=0,V=new o.Buf16(16),ee=new o.Buf16(16),pe=null,we=0;for(T=0;T<=15;T++)V[T]=0;for(X=0;X<p;X++)V[y[w+X]]++;for(ie=F,Q=15;1<=Q&&V[Q]===0;Q--);if(Q<ie&&(ie=Q),Q===0)return A[S++]=20971520,A[S++]=20971520,_.bits=1,0;for(N=1;N<Q&&V[N]===0;N++);for(ie<N&&(ie=N),T=ge=1;T<=15;T++)if(ge<<=1,(ge-=V[T])<0)return-1;if(0<ge&&(m===0||Q!==1))return-1;for(ee[1]=0,T=1;T<15;T++)ee[T+1]=ee[T]+V[T];for(X=0;X<p;X++)y[w+X]!==0&&(E[ee[y[w+X]]++]=X);if(ae=m===0?(L=pe=E,19):m===1?(L=c,z-=257,pe=u,we-=257,256):(L=h,pe=d,-1),T=N,J=S,me=X=I=0,P=-1,G=(Z=1<<(oe=ie))-1,m===1&&852<Z||m===2&&592<Z)return 1;for(;;){for(ne=T-me,le=E[X]<ae?(U=0,E[X]):E[X]>ae?(U=pe[we+E[X]],L[z+E[X]]):(U=96,0),j=1<<T-me,N=O=1<<oe;A[J+(I>>me)+(O-=j)]=ne<<24|U<<16|le|0,O!==0;);for(j=1<<T-1;I&j;)j>>=1;if(j!==0?(I&=j-1,I+=j):I=0,X++,--V[T]==0){if(T===Q)break;T=y[w+E[X]]}if(ie<T&&(I&G)!==P){for(me===0&&(me=ie),J+=N,ge=1<<(oe=T-me);oe+me<Q&&!((ge-=V[oe+me])<=0);)oe++,ge<<=1;if(Z+=1<<oe,m===1&&852<Z||m===2&&592<Z)return 1;A[P=I&G]=ie<<24|oe<<16|J-S|0}}return I!==0&&(A[J+I]=T-me<<24|64<<16|0),_.bits=ie,0}},{"../utils/common":41}],51:[function(i,r,s){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(i,r,s){var o=i("../utils/common"),c=0,u=1;function h(re){for(var ce=re.length;0<=--ce;)re[ce]=0}var d=0,m=29,y=256,w=y+1+m,p=30,A=19,S=2*w+1,E=15,_=16,j=7,O=256,P=16,G=17,J=18,ae=[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],ne=[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],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(w+2));h(F);var T=new Array(2*p);h(T);var X=new Array(512);h(X);var N=new Array(256);h(N);var Q=new Array(m);h(Q);var ie,oe,me,ge=new Array(p);function Z(re,ce,De,Re,_e){this.static_tree=re,this.extra_bits=ce,this.extra_base=De,this.elems=Re,this.max_length=_e,this.has_stree=re&&re.length}function I(re,ce){this.dyn_tree=re,this.max_code=0,this.stat_desc=ce}function L(re){return re<256?X[re]:X[256+(re>>>7)]}function z(re,ce){re.pending_buf[re.pending++]=255&ce,re.pending_buf[re.pending++]=ce>>>8&255}function V(re,ce,De){re.bi_valid>_-De?(re.bi_buf|=ce<<re.bi_valid&65535,z(re,re.bi_buf),re.bi_buf=ce>>_-re.bi_valid,re.bi_valid+=De-_):(re.bi_buf|=ce<<re.bi_valid&65535,re.bi_valid+=De)}function ee(re,ce,De){V(re,De[2*ce],De[2*ce+1])}function pe(re,ce){for(var De=0;De|=1&re,re>>>=1,De<<=1,0<--ce;);return De>>>1}function we(re,ce,De){var Re,_e,He=new Array(E+1),Ee=0;for(Re=1;Re<=E;Re++)He[Re]=Ee=Ee+De[Re-1]<<1;for(_e=0;_e<=ce;_e++){var je=re[2*_e+1];je!==0&&(re[2*_e]=pe(He[je]++,je))}}function Ae(re){var ce;for(ce=0;ce<w;ce++)re.dyn_ltree[2*ce]=0;for(ce=0;ce<p;ce++)re.dyn_dtree[2*ce]=0;for(ce=0;ce<A;ce++)re.bl_tree[2*ce]=0;re.dyn_ltree[2*O]=1,re.opt_len=re.static_len=0,re.last_lit=re.matches=0}function Ne(re){8<re.bi_valid?z(re,re.bi_buf):0<re.bi_valid&&(re.pending_buf[re.pending++]=re.bi_buf),re.bi_buf=0,re.bi_valid=0}function Ue(re,ce,De,Re){var _e=2*ce,He=2*De;return re[_e]<re[He]||re[_e]===re[He]&&Re[ce]<=Re[De]}function Xe(re,ce,De){for(var Re=re.heap[De],_e=De<<1;_e<=re.heap_len&&(_e<re.heap_len&&Ue(ce,re.heap[_e+1],re.heap[_e],re.depth)&&_e++,!Ue(ce,Re,re.heap[_e],re.depth));)re.heap[De]=re.heap[_e],De=_e,_e<<=1;re.heap[De]=Re}function at(re,ce,De){var Re,_e,He,Ee,je=0;if(re.last_lit!==0)for(;Re=re.pending_buf[re.d_buf+2*je]<<8|re.pending_buf[re.d_buf+2*je+1],_e=re.pending_buf[re.l_buf+je],je++,Re===0?ee(re,_e,ce):(ee(re,(He=N[_e])+y+1,ce),(Ee=ae[He])!==0&&V(re,_e-=Q[He],Ee),ee(re,He=L(--Re),De),(Ee=ne[He])!==0&&V(re,Re-=ge[He],Ee)),je<re.last_lit;);ee(re,O,ce)}function rt(re,ce){var De,Re,_e,He=ce.dyn_tree,Ee=ce.stat_desc.static_tree,je=ce.stat_desc.has_stree,ve=ce.stat_desc.elems,Be=-1;for(re.heap_len=0,re.heap_max=S,De=0;De<ve;De++)He[2*De]!==0?(re.heap[++re.heap_len]=Be=De,re.depth[De]=0):He[2*De+1]=0;for(;re.heap_len<2;)He[2*(_e=re.heap[++re.heap_len]=Be<2?++Be:0)]=1,re.depth[_e]=0,re.opt_len--,je&&(re.static_len-=Ee[2*_e+1]);for(ce.max_code=Be,De=re.heap_len>>1;1<=De;De--)Xe(re,He,De);for(_e=ve;De=re.heap[1],re.heap[1]=re.heap[re.heap_len--],Xe(re,He,1),Re=re.heap[1],re.heap[--re.heap_max]=De,re.heap[--re.heap_max]=Re,He[2*_e]=He[2*De]+He[2*Re],re.depth[_e]=(re.depth[De]>=re.depth[Re]?re.depth[De]:re.depth[Re])+1,He[2*De+1]=He[2*Re+1]=_e,re.heap[1]=_e++,Xe(re,He,1),2<=re.heap_len;);re.heap[--re.heap_max]=re.heap[1],(function(Ge,$e){var st,lt,Vt,ct,dt,_t,mt=$e.dyn_tree,pt=$e.max_code,Ft=$e.stat_desc.static_tree,Et=$e.stat_desc.has_stree,Ot=$e.stat_desc.extra_bits,dn=$e.stat_desc.extra_base,Mt=$e.stat_desc.max_length,wt=0;for(ct=0;ct<=E;ct++)Ge.bl_count[ct]=0;for(mt[2*Ge.heap[Ge.heap_max]+1]=0,st=Ge.heap_max+1;st<S;st++)Mt<(ct=mt[2*mt[2*(lt=Ge.heap[st])+1]+1]+1)&&(ct=Mt,wt++),mt[2*lt+1]=ct,pt<lt||(Ge.bl_count[ct]++,dt=0,dn<=lt&&(dt=Ot[lt-dn]),_t=mt[2*lt],Ge.opt_len+=_t*(ct+dt),Et&&(Ge.static_len+=_t*(Ft[2*lt+1]+dt)));if(wt!==0){do{for(ct=Mt-1;Ge.bl_count[ct]===0;)ct--;Ge.bl_count[ct]--,Ge.bl_count[ct+1]+=2,Ge.bl_count[Mt]--,wt-=2}while(0<wt);for(ct=Mt;ct!==0;ct--)for(lt=Ge.bl_count[ct];lt!==0;)pt<(Vt=Ge.heap[--st])||(mt[2*Vt+1]!==ct&&(Ge.opt_len+=(ct-mt[2*Vt+1])*mt[2*Vt],mt[2*Vt+1]=ct),lt--)}})(re,ce),we(He,Be,re.bl_count)}function M(re,ce,De){var Re,_e,He=-1,Ee=ce[1],je=0,ve=7,Be=4;for(Ee===0&&(ve=138,Be=3),ce[2*(De+1)+1]=65535,Re=0;Re<=De;Re++)_e=Ee,Ee=ce[2*(Re+1)+1],++je<ve&&_e===Ee||(je<Be?re.bl_tree[2*_e]+=je:_e!==0?(_e!==He&&re.bl_tree[2*_e]++,re.bl_tree[2*P]++):je<=10?re.bl_tree[2*G]++:re.bl_tree[2*J]++,He=_e,Be=(je=0)===Ee?(ve=138,3):_e===Ee?(ve=6,3):(ve=7,4))}function Y(re,ce,De){var Re,_e,He=-1,Ee=ce[1],je=0,ve=7,Be=4;for(Ee===0&&(ve=138,Be=3),Re=0;Re<=De;Re++)if(_e=Ee,Ee=ce[2*(Re+1)+1],!(++je<ve&&_e===Ee)){if(je<Be)for(;ee(re,_e,re.bl_tree),--je!=0;);else _e!==0?(_e!==He&&(ee(re,_e,re.bl_tree),je--),ee(re,P,re.bl_tree),V(re,je-3,2)):je<=10?(ee(re,G,re.bl_tree),V(re,je-3,3)):(ee(re,J,re.bl_tree),V(re,je-11,7));He=_e,Be=(je=0)===Ee?(ve=138,3):_e===Ee?(ve=6,3):(ve=7,4)}}h(ge);var xe=!1;function ue(re,ce,De,Re){V(re,(d<<1)+(Re?1:0),3),(function(_e,He,Ee,je){Ne(_e),z(_e,Ee),z(_e,~Ee),o.arraySet(_e.pending_buf,_e.window,He,Ee,_e.pending),_e.pending+=Ee})(re,ce,De)}s._tr_init=function(re){xe||((function(){var ce,De,Re,_e,He,Ee=new Array(E+1);for(_e=Re=0;_e<m-1;_e++)for(Q[_e]=Re,ce=0;ce<1<<ae[_e];ce++)N[Re++]=_e;for(N[Re-1]=_e,_e=He=0;_e<16;_e++)for(ge[_e]=He,ce=0;ce<1<<ne[_e];ce++)X[He++]=_e;for(He>>=7;_e<p;_e++)for(ge[_e]=He<<7,ce=0;ce<1<<ne[_e]-7;ce++)X[256+He++]=_e;for(De=0;De<=E;De++)Ee[De]=0;for(ce=0;ce<=143;)F[2*ce+1]=8,ce++,Ee[8]++;for(;ce<=255;)F[2*ce+1]=9,ce++,Ee[9]++;for(;ce<=279;)F[2*ce+1]=7,ce++,Ee[7]++;for(;ce<=287;)F[2*ce+1]=8,ce++,Ee[8]++;for(we(F,w+1,Ee),ce=0;ce<p;ce++)T[2*ce+1]=5,T[2*ce]=pe(ce,5);ie=new Z(F,ae,y+1,w,E),oe=new Z(T,ne,0,p,E),me=new Z(new Array(0),U,0,A,j)})(),xe=!0),re.l_desc=new I(re.dyn_ltree,ie),re.d_desc=new I(re.dyn_dtree,oe),re.bl_desc=new I(re.bl_tree,me),re.bi_buf=0,re.bi_valid=0,Ae(re)},s._tr_stored_block=ue,s._tr_flush_block=function(re,ce,De,Re){var _e,He,Ee=0;0<re.level?(re.strm.data_type===2&&(re.strm.data_type=(function(je){var ve,Be=4093624447;for(ve=0;ve<=31;ve++,Be>>>=1)if(1&Be&&je.dyn_ltree[2*ve]!==0)return c;if(je.dyn_ltree[18]!==0||je.dyn_ltree[20]!==0||je.dyn_ltree[26]!==0)return u;for(ve=32;ve<y;ve++)if(je.dyn_ltree[2*ve]!==0)return u;return c})(re)),rt(re,re.l_desc),rt(re,re.d_desc),Ee=(function(je){var ve;for(M(je,je.dyn_ltree,je.l_desc.max_code),M(je,je.dyn_dtree,je.d_desc.max_code),rt(je,je.bl_desc),ve=A-1;3<=ve&&je.bl_tree[2*le[ve]+1]===0;ve--);return je.opt_len+=3*(ve+1)+5+5+4,ve})(re),_e=re.opt_len+3+7>>>3,(He=re.static_len+3+7>>>3)<=_e&&(_e=He)):_e=He=De+5,De+4<=_e&&ce!==-1?ue(re,ce,De,Re):re.strategy===4||He===_e?(V(re,2+(Re?1:0),3),at(re,F,T)):(V(re,4+(Re?1:0),3),(function(je,ve,Be,Ge){var $e;for(V(je,ve-257,5),V(je,Be-1,5),V(je,Ge-4,4),$e=0;$e<Ge;$e++)V(je,je.bl_tree[2*le[$e]+1],3);Y(je,je.dyn_ltree,ve-1),Y(je,je.dyn_dtree,Be-1)})(re,re.l_desc.max_code+1,re.d_desc.max_code+1,Ee+1),at(re,re.dyn_ltree,re.dyn_dtree)),Ae(re),Re&&Ne(re)},s._tr_tally=function(re,ce,De){return re.pending_buf[re.d_buf+2*re.last_lit]=ce>>>8&255,re.pending_buf[re.d_buf+2*re.last_lit+1]=255&ce,re.pending_buf[re.l_buf+re.last_lit]=255&De,re.last_lit++,ce===0?re.dyn_ltree[2*De]++:(re.matches++,ce--,re.dyn_ltree[2*(N[De]+y+1)]++,re.dyn_dtree[2*L(ce)]++),re.last_lit===re.lit_bufsize-1},s._tr_align=function(re){V(re,2,3),ee(re,O,F),(function(ce){ce.bi_valid===16?(z(ce,ce.bi_buf),ce.bi_buf=0,ce.bi_valid=0):8<=ce.bi_valid&&(ce.pending_buf[ce.pending++]=255&ce.bi_buf,ce.bi_buf>>=8,ce.bi_valid-=8)})(re)}},{"../utils/common":41}],53:[function(i,r,s){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(i,r,s){(function(o){(function(c,u){if(!c.setImmediate){var h,d,m,y,w=1,p={},A=!1,S=c.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(c);E=E&&E.setTimeout?E:c,h={}.toString.call(c.process)==="[object process]"?function(P){process.nextTick(function(){j(P)})}:(function(){if(c.postMessage&&!c.importScripts){var P=!0,G=c.onmessage;return c.onmessage=function(){P=!1},c.postMessage("","*"),c.onmessage=G,P}})()?(y="setImmediate$"+Math.random()+"$",c.addEventListener?c.addEventListener("message",O,!1):c.attachEvent("onmessage",O),function(P){c.postMessage(y+P,"*")}):c.MessageChannel?((m=new MessageChannel).port1.onmessage=function(P){j(P.data)},function(P){m.port2.postMessage(P)}):S&&"onreadystatechange"in S.createElement("script")?(d=S.documentElement,function(P){var G=S.createElement("script");G.onreadystatechange=function(){j(P),G.onreadystatechange=null,d.removeChild(G),G=null},d.appendChild(G)}):function(P){setTimeout(j,0,P)},E.setImmediate=function(P){typeof P!="function"&&(P=new Function(""+P));for(var G=new Array(arguments.length-1),J=0;J<G.length;J++)G[J]=arguments[J+1];var ae={callback:P,args:G};return p[w]=ae,h(w),w++},E.clearImmediate=_}function _(P){delete p[P]}function j(P){if(A)setTimeout(j,0,P);else{var G=p[P];if(G){A=!0;try{(function(J){var ae=J.callback,ne=J.args;switch(ne.length){case 0:ae();break;case 1:ae(ne[0]);break;case 2:ae(ne[0],ne[1]);break;case 3:ae(ne[0],ne[1],ne[2]);break;default:ae.apply(u,ne)}})(G)}finally{_(P),A=!1}}}}function O(P){P.source===c&&typeof P.data=="string"&&P.data.indexOf(y)===0&&j(+P.data.slice(y.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof dl<"u"?dl:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Dp)),Dp.exports}var z4=L4();const g2=mc(z4),T4="modulepreload",j4=function(e){return"/"+e},v2={},Mp=function(n,i,r){let s=Promise.resolve();if(i&&i.length>0){let h=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");s=h(i.map(d=>{if(d=j4(d),d in v2)return;v2[d]=!0;const m=d.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${y}`))return;const w=document.createElement("link");if(w.rel=m?"stylesheet":T4,m||(w.as="script"),w.crossOrigin="",w.href=d,u&&w.setAttribute("nonce",u),document.head.appendChild(w),m)return new Promise((p,A)=>{w.addEventListener("load",p),w.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return s.then(c=>{for(const u of c||[])u.status==="rejected"&&o(u.reason);return n().catch(o)})};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},An(e)}var mo=Uint8Array,pr=Uint16Array,t1=Int32Array,n1=new mo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i1=new mo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),y2=new mo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Vv=function(e,n){for(var i=new pr(31),r=0;r<31;++r)i[r]=n+=1<<e[r-1];for(var s=new t1(i[30]),r=1;r<30;++r)for(var o=i[r];o<i[r+1];++o)s[o]=o-i[r]<<5|r;return{b:i,r:s}},Wv=Vv(n1,2),R4=Wv.b,Nm=Wv.r;R4[28]=258,Nm[258]=28;var O4=Vv(i1,0),b2=O4.r,Cm=new pr(32768);for(var Vn=0;Vn<32768;++Vn){var ul=(Vn&43690)>>1|(Vn&21845)<<1;ul=(ul&52428)>>2|(ul&13107)<<2,ul=(ul&61680)>>4|(ul&3855)<<4,Cm[Vn]=((ul&65280)>>8|(ul&255)<<8)>>1}var hf=(function(e,n,i){for(var r=e.length,s=0,o=new pr(n);s<r;++s)e[s]&&++o[e[s]-1];var c=new pr(n);for(s=1;s<n;++s)c[s]=c[s-1]+o[s-1]<<1;var u;if(i){u=new pr(1<<n);var h=15-n;for(s=0;s<r;++s)if(e[s])for(var d=s<<4|e[s],m=n-e[s],y=c[e[s]-1]++<<m,w=y|(1<<m)-1;y<=w;++y)u[Cm[y]>>h]=d}else for(u=new pr(r),s=0;s<r;++s)e[s]&&(u[s]=Cm[c[e[s]-1]++]>>15-e[s]);return u}),eu=new mo(288);for(var Vn=0;Vn<144;++Vn)eu[Vn]=8;for(var Vn=144;Vn<256;++Vn)eu[Vn]=9;for(var Vn=256;Vn<280;++Vn)eu[Vn]=7;for(var Vn=280;Vn<288;++Vn)eu[Vn]=8;var Jh=new mo(32);for(var Vn=0;Vn<32;++Vn)Jh[Vn]=5;var D4=hf(eu,9,0),M4=hf(Jh,5,0),Xv=function(e){return(e+7)/8|0},B4=function(e,n,i){return(i==null||i>e.length)&&(i=e.length),new mo(e.subarray(n,i))},_s=function(e,n,i){i<<=n&7;var r=n/8|0;e[r]|=i,e[r+1]|=i>>8},of=function(e,n,i){i<<=n&7;var r=n/8|0;e[r]|=i,e[r+1]|=i>>8,e[r+2]|=i>>16},Bp=function(e,n){for(var i=[],r=0;r<e.length;++r)e[r]&&i.push({s:r,f:e[r]});var s=i.length,o=i.slice();if(!s)return{t:Kv,l:0};if(s==1){var c=new mo(i[0].s+1);return c[i[0].s]=1,{t:c,l:1}}i.sort(function(G,J){return G.f-J.f}),i.push({s:-1,f:25001});var u=i[0],h=i[1],d=0,m=1,y=2;for(i[0]={s:-1,f:u.f+h.f,l:u,r:h};m!=s-1;)u=i[i[d].f<i[y].f?d++:y++],h=i[d!=m&&i[d].f<i[y].f?d++:y++],i[m++]={s:-1,f:u.f+h.f,l:u,r:h};for(var w=o[0].s,r=1;r<s;++r)o[r].s>w&&(w=o[r].s);var p=new pr(w+1),A=Em(i[m-1],p,0);if(A>n){var r=0,S=0,E=A-n,_=1<<E;for(o.sort(function(J,ae){return p[ae.s]-p[J.s]||J.f-ae.f});r<s;++r){var j=o[r].s;if(p[j]>n)S+=_-(1<<A-p[j]),p[j]=n;else break}for(S>>=E;S>0;){var O=o[r].s;p[O]<n?S-=1<<n-p[O]++-1:++r}for(;r>=0&&S;--r){var P=o[r].s;p[P]==n&&(--p[P],++S)}A=n}return{t:new mo(p),l:A}},Em=function(e,n,i){return e.s==-1?Math.max(Em(e.l,n,i+1),Em(e.r,n,i+1)):n[e.s]=i},x2=function(e){for(var n=e.length;n&&!e[--n];);for(var i=new pr(++n),r=0,s=e[0],o=1,c=function(h){i[r++]=h},u=1;u<=n;++u)if(e[u]==s&&u!=n)++o;else{if(!s&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(s),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(s);o=1,s=e[u]}return{c:i.subarray(0,r),n}},sf=function(e,n){for(var i=0,r=0;r<n.length;++r)i+=e[r]*n[r];return i},Zv=function(e,n,i){var r=i.length,s=Xv(n+2);e[s]=r&255,e[s+1]=r>>8,e[s+2]=e[s]^255,e[s+3]=e[s+1]^255;for(var o=0;o<r;++o)e[s+o+4]=i[o];return(s+4+r)*8},w2=function(e,n,i,r,s,o,c,u,h,d,m){_s(n,m++,i),++s[256];for(var y=Bp(s,15),w=y.t,p=y.l,A=Bp(o,15),S=A.t,E=A.l,_=x2(w),j=_.c,O=_.n,P=x2(S),G=P.c,J=P.n,ae=new pr(19),ne=0;ne<j.length;++ne)++ae[j[ne]&31];for(var ne=0;ne<G.length;++ne)++ae[G[ne]&31];for(var U=Bp(ae,7),le=U.t,F=U.l,T=19;T>4&&!le[y2[T-1]];--T);var X=d+5<<3,N=sf(s,eu)+sf(o,Jh)+c,Q=sf(s,w)+sf(o,S)+c+14+3*T+sf(ae,le)+2*ae[16]+3*ae[17]+7*ae[18];if(h>=0&&X<=N&&X<=Q)return Zv(n,m,e.subarray(h,h+d));var ie,oe,me,ge;if(_s(n,m,1+(Q<N)),m+=2,Q<N){ie=hf(w,p,0),oe=w,me=hf(S,E,0),ge=S;var Z=hf(le,F,0);_s(n,m,O-257),_s(n,m+5,J-1),_s(n,m+10,T-4),m+=14;for(var ne=0;ne<T;++ne)_s(n,m+3*ne,le[y2[ne]]);m+=3*T;for(var I=[j,G],L=0;L<2;++L)for(var z=I[L],ne=0;ne<z.length;++ne){var V=z[ne]&31;_s(n,m,Z[V]),m+=le[V],V>15&&(_s(n,m,z[ne]>>5&127),m+=z[ne]>>12)}}else ie=D4,oe=eu,me=M4,ge=Jh;for(var ne=0;ne<u;++ne){var ee=r[ne];if(ee>255){var V=ee>>18&31;of(n,m,ie[V+257]),m+=oe[V+257],V>7&&(_s(n,m,ee>>23&31),m+=n1[V]);var pe=ee&31;of(n,m,me[pe]),m+=ge[pe],pe>3&&(of(n,m,ee>>5&8191),m+=i1[pe])}else of(n,m,ie[ee]),m+=oe[ee]}return of(n,m,ie[256]),m+oe[256]},P4=new t1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Kv=new mo(0),I4=function(e,n,i,r,s,o){var c=o.z||e.length,u=new mo(r+c+5*(1+Math.ceil(c/7e3))+s),h=u.subarray(r,u.length-s),d=o.l,m=(o.r||0)&7;if(n){m&&(h[0]=o.r>>3);for(var y=P4[n-1],w=y>>13,p=y&8191,A=(1<<i)-1,S=o.p||new pr(32768),E=o.h||new pr(A+1),_=Math.ceil(i/3),j=2*_,O=function(M){return(e[M]^e[M+1]<<_^e[M+2]<<j)&A},P=new t1(25e3),G=new pr(288),J=new pr(32),ae=0,ne=0,U=o.i||0,le=0,F=o.w||0,T=0;U+2<c;++U){var X=O(U),N=U&32767,Q=E[X];if(S[N]=Q,E[X]=N,F<=U){var ie=c-U;if((ae>7e3||le>24576)&&(ie>423||!d)){m=w2(e,h,0,P,G,J,ne,le,T,U-T,m),le=ae=ne=0,T=U;for(var oe=0;oe<286;++oe)G[oe]=0;for(var oe=0;oe<30;++oe)J[oe]=0}var me=2,ge=0,Z=p,I=N-Q&32767;if(ie>2&&X==O(U-I))for(var L=Math.min(w,ie)-1,z=Math.min(32767,U),V=Math.min(258,ie);I<=z&&--Z&&N!=Q;){if(e[U+me]==e[U+me-I]){for(var ee=0;ee<V&&e[U+ee]==e[U+ee-I];++ee);if(ee>me){if(me=ee,ge=I,ee>L)break;for(var pe=Math.min(I,ee-2),we=0,oe=0;oe<pe;++oe){var Ae=U-I+oe&32767,Ne=S[Ae],Ue=Ae-Ne&32767;Ue>we&&(we=Ue,Q=Ae)}}}N=Q,Q=S[N],I+=N-Q&32767}if(ge){P[le++]=268435456|Nm[me]<<18|b2[ge];var Xe=Nm[me]&31,at=b2[ge]&31;ne+=n1[Xe]+i1[at],++G[257+Xe],++J[at],F=U+me,++ae}else P[le++]=e[U],++G[e[U]]}}for(U=Math.max(U,F);U<c;++U)P[le++]=e[U],++G[e[U]];m=w2(e,h,d,P,G,J,ne,le,T,U-T,m),d||(o.r=m&7|h[m/8|0]<<3,m-=7,o.h=E,o.p=S,o.i=U,o.w=F)}else{for(var U=o.w||0;U<c+d;U+=65535){var rt=U+65535;rt>=c&&(h[m/8|0]=d,rt=c),m=Zv(h,m+1,e.subarray(U,rt))}o.i=c}return B4(u,0,r+Xv(m)+s)},Jv=function(){var e=1,n=0;return{p:function(i){for(var r=e,s=n,o=i.length|0,c=0;c!=o;){for(var u=Math.min(c+2655,o);c<u;++c)s+=r+=i[c];r=(r&65535)+15*(r>>16),s=(s&65535)+15*(s>>16)}e=r,n=s},d:function(){return e%=65521,n%=65521,(e&255)<<24|(e&65280)<<8|(n&255)<<8|n>>8}}},F4=function(e,n,i,r,s){if(!s&&(s={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),c=new mo(o.length+e.length);c.set(o),c.set(e,o.length),e=c,s.w=o.length}return I4(e,n.level==null?6:n.level,n.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+n.mem,i,r,s)},Qv=function(e,n,i){for(;i;++n)e[n]=i,i>>>=8},U4=function(e,n){var i=n.level,r=i==0?0:i<6?1:i==9?3:2;if(e[0]=120,e[1]=r<<6|(n.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,n.dictionary){var s=Jv();s.p(n.dictionary),Qv(e,2,s.d())}};function Lm(e,n){n||(n={});var i=Jv();i.p(e);var r=F4(e,n,n.dictionary?6:2,4);return U4(r,n),Qv(r,r.length-4,i.d()),r}var q4=typeof TextDecoder<"u"&&new TextDecoder,H4=0;try{q4.decode(Kv,{stream:!0}),H4=1}catch{}function Y4(e){if(Array.isArray(e))return e}function G4(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var r,s,o,c,u=[],h=!0,d=!1;try{if(o=(i=i.call(e)).next,n!==0)for(;!(h=(r=o.call(i)).done)&&(u.push(r.value),u.length!==n);h=!0);}catch(m){d=!0,s=m}finally{try{if(!h&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(d)throw s}}return u}}function _2(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,r=Array(n);i<n;i++)r[i]=e[i];return r}function V4(e,n){if(e){if(typeof e=="string")return _2(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_2(e,n):void 0}}function W4(){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 S2(e,n){return Y4(e)||G4(e,n)||V4(e,n)||W4()}function k2(e,n="utf8"){return new TextDecoder(n).decode(e)}const X4=new TextEncoder;function Z4(e){return X4.encode(e)}const K4=1024*8,J4=(()=>{const e=new Uint8Array(4),n=new Uint32Array(e.buffer);return!((n[0]=1)&e[0])})(),Pp={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class a1{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=K4,i={}){let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);const s=i.offset?i.offset>>>0:0,o=n.byteLength-s;let c=s;(ArrayBuffer.isView(n)||n instanceof a1)&&(n.byteLength!==n.buffer.byteLength&&(c=n.byteOffset+s),n=n.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=n,this.length=o,this.byteLength=o,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,o),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const r=(this.offset+n)*2,s=new Uint8Array(r);s.set(new Uint8Array(this.buffer)),this.buffer=s.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,i){const r=Pp[i].BYTES_PER_ELEMENT*n,s=this.byteOffset+this.offset,o=this.buffer.slice(s,s+r);if(this.littleEndian===J4&&i!=="uint8"&&i!=="int8"){const u=new Uint8Array(this.buffer.slice(s,s+r));u.reverse();const h=new Pp[i](u.buffer);return this.offset+=r,h.reverse(),h}const c=new Pp[i](o);return this.offset+=r,c}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let i="";for(let r=0;r<n;r++)i+=this.readChar();return i}readUtf8(n=1){return k2(this.readBytes(n))}decodeText(n=1,i="utf8"){return k2(this.readBytes(n),i)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let i=0;i<n.length;i++)this._data.setUint8(this.offset++,n[i]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let i=0;i<n.length;i++)this.writeUint8(n.charCodeAt(i));return this}writeUtf8(n){return this.writeBytes(Z4(n))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function yc(e){let n=e.length;for(;--n>=0;)e[n]=0}const Q4=3,$4=258,$v=29,e6=256,t6=e6+1+$v,ey=30,n6=512,i6=new Array((t6+2)*2);yc(i6);const a6=new Array(ey*2);yc(a6);const r6=new Array(n6);yc(r6);const o6=new Array($4-Q4+1);yc(o6);const s6=new Array($v);yc(s6);const l6=new Array(ey);yc(l6);const u6=(e,n,i,r)=>{let s=e&65535|0,o=e>>>16&65535|0,c=0;for(;i!==0;){c=i>2e3?2e3:i,i-=c;do s=s+n[r++]|0,o=o+s|0;while(--c);s%=65521,o%=65521}return s|o<<16|0};var zm=u6;const c6=()=>{let e,n=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;n[i]=e}return n},f6=new Uint32Array(c6()),h6=(e,n,i,r)=>{const s=f6,o=r+i;e^=-1;for(let c=r;c<o;c++)e=e>>>8^s[(e^n[c])&255];return e^-1};var Io=h6,Tm={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"},ty={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const d6=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var p6=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const i=n.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)d6(i,r)&&(e[r]=i[r])}}return e},m6=e=>{let n=0;for(let r=0,s=e.length;r<s;r++)n+=e[r].length;const i=new Uint8Array(n);for(let r=0,s=0,o=e.length;r<o;r++){let c=e[r];i.set(c,s),s+=c.length}return i},ny={assign:p6,flattenChunks:m6};let iy=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{iy=!1}const bf=new Uint8Array(256);for(let e=0;e<256;e++)bf[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;bf[254]=bf[254]=1;var g6=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,i,r,s,o,c=e.length,u=0;for(s=0;s<c;s++)i=e.charCodeAt(s),(i&64512)===55296&&s+1<c&&(r=e.charCodeAt(s+1),(r&64512)===56320&&(i=65536+(i-55296<<10)+(r-56320),s++)),u+=i<128?1:i<2048?2:i<65536?3:4;for(n=new Uint8Array(u),o=0,s=0;o<u;s++)i=e.charCodeAt(s),(i&64512)===55296&&s+1<c&&(r=e.charCodeAt(s+1),(r&64512)===56320&&(i=65536+(i-55296<<10)+(r-56320),s++)),i<128?n[o++]=i:i<2048?(n[o++]=192|i>>>6,n[o++]=128|i&63):i<65536?(n[o++]=224|i>>>12,n[o++]=128|i>>>6&63,n[o++]=128|i&63):(n[o++]=240|i>>>18,n[o++]=128|i>>>12&63,n[o++]=128|i>>>6&63,n[o++]=128|i&63);return n};const v6=(e,n)=>{if(n<65534&&e.subarray&&iy)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let i="";for(let r=0;r<n;r++)i+=String.fromCharCode(e[r]);return i};var y6=(e,n)=>{const i=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let r,s;const o=new Array(i*2);for(s=0,r=0;r<i;){let c=e[r++];if(c<128){o[s++]=c;continue}let u=bf[c];if(u>4){o[s++]=65533,r+=u-1;continue}for(c&=u===2?31:u===3?15:7;u>1&&r<i;)c=c<<6|e[r++]&63,u--;if(u>1){o[s++]=65533;continue}c<65536?o[s++]=c:(c-=65536,o[s++]=55296|c>>10&1023,o[s++]=56320|c&1023)}return v6(o,s)},b6=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let i=n-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?n:i+bf[e[i]]>n?i:n},jm={string2buf:g6,buf2string:y6,utf8border:b6};function x6(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var w6=x6;const kh=16209,_6=16191;var S6=function(n,i){let r,s,o,c,u,h,d,m,y,w,p,A,S,E,_,j,O,P,G,J,ae,ne,U,le;const F=n.state;r=n.next_in,U=n.input,s=r+(n.avail_in-5),o=n.next_out,le=n.output,c=o-(i-n.avail_out),u=o+(n.avail_out-257),h=F.dmax,d=F.wsize,m=F.whave,y=F.wnext,w=F.window,p=F.hold,A=F.bits,S=F.lencode,E=F.distcode,_=(1<<F.lenbits)-1,j=(1<<F.distbits)-1;e:do{A<15&&(p+=U[r++]<<A,A+=8,p+=U[r++]<<A,A+=8),O=S[p&_];t:for(;;){if(P=O>>>24,p>>>=P,A-=P,P=O>>>16&255,P===0)le[o++]=O&65535;else if(P&16){G=O&65535,P&=15,P&&(A<P&&(p+=U[r++]<<A,A+=8),G+=p&(1<<P)-1,p>>>=P,A-=P),A<15&&(p+=U[r++]<<A,A+=8,p+=U[r++]<<A,A+=8),O=E[p&j];n:for(;;){if(P=O>>>24,p>>>=P,A-=P,P=O>>>16&255,P&16){if(J=O&65535,P&=15,A<P&&(p+=U[r++]<<A,A+=8,A<P&&(p+=U[r++]<<A,A+=8)),J+=p&(1<<P)-1,J>h){n.msg="invalid distance too far back",F.mode=kh;break e}if(p>>>=P,A-=P,P=o-c,J>P){if(P=J-P,P>m&&F.sane){n.msg="invalid distance too far back",F.mode=kh;break e}if(ae=0,ne=w,y===0){if(ae+=d-P,P<G){G-=P;do le[o++]=w[ae++];while(--P);ae=o-J,ne=le}}else if(y<P){if(ae+=d+y-P,P-=y,P<G){G-=P;do le[o++]=w[ae++];while(--P);if(ae=0,y<G){P=y,G-=P;do le[o++]=w[ae++];while(--P);ae=o-J,ne=le}}}else if(ae+=y-P,P<G){G-=P;do le[o++]=w[ae++];while(--P);ae=o-J,ne=le}for(;G>2;)le[o++]=ne[ae++],le[o++]=ne[ae++],le[o++]=ne[ae++],G-=3;G&&(le[o++]=ne[ae++],G>1&&(le[o++]=ne[ae++]))}else{ae=o-J;do le[o++]=le[ae++],le[o++]=le[ae++],le[o++]=le[ae++],G-=3;while(G>2);G&&(le[o++]=le[ae++],G>1&&(le[o++]=le[ae++]))}}else if((P&64)===0){O=E[(O&65535)+(p&(1<<P)-1)];continue n}else{n.msg="invalid distance code",F.mode=kh;break e}break}}else if((P&64)===0){O=S[(O&65535)+(p&(1<<P)-1)];continue t}else if(P&32){F.mode=_6;break e}else{n.msg="invalid literal/length code",F.mode=kh;break e}break}}while(r<s&&o<u);G=A>>3,r-=G,A-=G<<3,p&=(1<<A)-1,n.next_in=r,n.next_out=o,n.avail_in=r<s?5+(s-r):5-(r-s),n.avail_out=o<u?257+(u-o):257-(o-u),F.hold=p,F.bits=A};const $u=15,A2=852,N2=592,C2=0,Ip=1,E2=2,k6=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),A6=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),N6=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),C6=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),E6=(e,n,i,r,s,o,c,u)=>{const h=u.bits;let d=0,m=0,y=0,w=0,p=0,A=0,S=0,E=0,_=0,j=0,O,P,G,J,ae,ne=null,U;const le=new Uint16Array($u+1),F=new Uint16Array($u+1);let T=null,X,N,Q;for(d=0;d<=$u;d++)le[d]=0;for(m=0;m<r;m++)le[n[i+m]]++;for(p=h,w=$u;w>=1&&le[w]===0;w--);if(p>w&&(p=w),w===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,u.bits=1,0;for(y=1;y<w&&le[y]===0;y++);for(p<y&&(p=y),E=1,d=1;d<=$u;d++)if(E<<=1,E-=le[d],E<0)return-1;if(E>0&&(e===C2||w!==1))return-1;for(F[1]=0,d=1;d<$u;d++)F[d+1]=F[d]+le[d];for(m=0;m<r;m++)n[i+m]!==0&&(c[F[n[i+m]]++]=m);if(e===C2?(ne=T=c,U=20):e===Ip?(ne=k6,T=A6,U=257):(ne=N6,T=C6,U=0),j=0,m=0,d=y,ae=o,A=p,S=0,G=-1,_=1<<p,J=_-1,e===Ip&&_>A2||e===E2&&_>N2)return 1;for(;;){X=d-S,c[m]+1<U?(N=0,Q=c[m]):c[m]>=U?(N=T[c[m]-U],Q=ne[c[m]-U]):(N=96,Q=0),O=1<<d-S,P=1<<A,y=P;do P-=O,s[ae+(j>>S)+P]=X<<24|N<<16|Q|0;while(P!==0);for(O=1<<d-1;j&O;)O>>=1;if(O!==0?(j&=O-1,j+=O):j=0,m++,--le[d]===0){if(d===w)break;d=n[i+c[m]]}if(d>p&&(j&J)!==G){for(S===0&&(S=p),ae+=y,A=d-S,E=1<<A;A+S<w&&(E-=le[A+S],!(E<=0));)A++,E<<=1;if(_+=1<<A,e===Ip&&_>A2||e===E2&&_>N2)return 1;G=j&J,s[G]=p<<24|A<<16|ae-o|0}}return j!==0&&(s[ae+j]=d-S<<24|64<<16|0),u.bits=p,0};var df=E6;const L6=0,ay=1,ry=2,{Z_FINISH:L2,Z_BLOCK:z6,Z_TREES:Ah,Z_OK:tu,Z_STREAM_END:T6,Z_NEED_DICT:j6,Z_STREAM_ERROR:Mr,Z_DATA_ERROR:oy,Z_MEM_ERROR:sy,Z_BUF_ERROR:R6,Z_DEFLATED:z2}=ty,rd=16180,T2=16181,j2=16182,R2=16183,O2=16184,D2=16185,M2=16186,B2=16187,P2=16188,I2=16189,Qh=16190,Ss=16191,Fp=16192,F2=16193,Up=16194,U2=16195,q2=16196,H2=16197,Y2=16198,Nh=16199,Ch=16200,G2=16201,V2=16202,W2=16203,X2=16204,Z2=16205,qp=16206,K2=16207,J2=16208,Jn=16209,ly=16210,uy=16211,O6=852,D6=592,M6=15,B6=M6,Q2=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function P6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const iu=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<rd||n.mode>uy?1:0},cy=e=>{if(iu(e))return Mr;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=rd,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(O6),n.distcode=n.distdyn=new Int32Array(D6),n.sane=1,n.back=-1,tu},fy=e=>{if(iu(e))return Mr;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,cy(e)},hy=(e,n)=>{let i;if(iu(e))return Mr;const r=e.state;return n<0?(i=0,n=-n):(i=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Mr:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=i,r.wbits=n,fy(e))},dy=(e,n)=>{if(!e)return Mr;const i=new P6;e.state=i,i.strm=e,i.window=null,i.mode=rd;const r=hy(e,n);return r!==tu&&(e.state=null),r},I6=e=>dy(e,B6);let $2=!0,Hp,Yp;const F6=e=>{if($2){Hp=new Int32Array(512),Yp=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(df(ay,e.lens,0,288,Hp,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;df(ry,e.lens,0,32,Yp,0,e.work,{bits:5}),$2=!1}e.lencode=Hp,e.lenbits=9,e.distcode=Yp,e.distbits=5},py=(e,n,i,r)=>{let s;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(n.subarray(i-o.wsize,i),0),o.wnext=0,o.whave=o.wsize):(s=o.wsize-o.wnext,s>r&&(s=r),o.window.set(n.subarray(i-r,i-r+s),o.wnext),r-=s,r?(o.window.set(n.subarray(i-r,i),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0},U6=(e,n)=>{let i,r,s,o,c,u,h,d,m,y,w,p,A,S,E=0,_,j,O,P,G,J,ae,ne;const U=new Uint8Array(4);let le,F;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(iu(e)||!e.output||!e.input&&e.avail_in!==0)return Mr;i=e.state,i.mode===Ss&&(i.mode=Fp),c=e.next_out,s=e.output,h=e.avail_out,o=e.next_in,r=e.input,u=e.avail_in,d=i.hold,m=i.bits,y=u,w=h,ne=tu;e:for(;;)switch(i.mode){case rd:if(i.wrap===0){i.mode=Fp;break}for(;m<16;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(i.wrap&2&&d===35615){i.wbits===0&&(i.wbits=15),i.check=0,U[0]=d&255,U[1]=d>>>8&255,i.check=Io(i.check,U,2,0),d=0,m=0,i.mode=T2;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",i.mode=Jn;break}if((d&15)!==z2){e.msg="unknown compression method",i.mode=Jn;break}if(d>>>=4,m-=4,ae=(d&15)+8,i.wbits===0&&(i.wbits=ae),ae>15||ae>i.wbits){e.msg="invalid window size",i.mode=Jn;break}i.dmax=1<<i.wbits,i.flags=0,e.adler=i.check=1,i.mode=d&512?I2:Ss,d=0,m=0;break;case T2:for(;m<16;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(i.flags=d,(i.flags&255)!==z2){e.msg="unknown compression method",i.mode=Jn;break}if(i.flags&57344){e.msg="unknown header flags set",i.mode=Jn;break}i.head&&(i.head.text=d>>8&1),i.flags&512&&i.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,i.check=Io(i.check,U,2,0)),d=0,m=0,i.mode=j2;case j2:for(;m<32;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}i.head&&(i.head.time=d),i.flags&512&&i.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,U[2]=d>>>16&255,U[3]=d>>>24&255,i.check=Io(i.check,U,4,0)),d=0,m=0,i.mode=R2;case R2:for(;m<16;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}i.head&&(i.head.xflags=d&255,i.head.os=d>>8),i.flags&512&&i.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,i.check=Io(i.check,U,2,0)),d=0,m=0,i.mode=O2;case O2:if(i.flags&1024){for(;m<16;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}i.length=d,i.head&&(i.head.extra_len=d),i.flags&512&&i.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,i.check=Io(i.check,U,2,0)),d=0,m=0}else i.head&&(i.head.extra=null);i.mode=D2;case D2:if(i.flags&1024&&(p=i.length,p>u&&(p=u),p&&(i.head&&(ae=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(o,o+p),ae)),i.flags&512&&i.wrap&4&&(i.check=Io(i.check,r,p,o)),u-=p,o+=p,i.length-=p),i.length))break e;i.length=0,i.mode=M2;case M2:if(i.flags&2048){if(u===0)break e;p=0;do ae=r[o+p++],i.head&&ae&&i.length<65536&&(i.head.name+=String.fromCharCode(ae));while(ae&&p<u);if(i.flags&512&&i.wrap&4&&(i.check=Io(i.check,r,p,o)),u-=p,o+=p,ae)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=B2;case B2:if(i.flags&4096){if(u===0)break e;p=0;do ae=r[o+p++],i.head&&ae&&i.length<65536&&(i.head.comment+=String.fromCharCode(ae));while(ae&&p<u);if(i.flags&512&&i.wrap&4&&(i.check=Io(i.check,r,p,o)),u-=p,o+=p,ae)break e}else i.head&&(i.head.comment=null);i.mode=P2;case P2:if(i.flags&512){for(;m<16;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(i.wrap&4&&d!==(i.check&65535)){e.msg="header crc mismatch",i.mode=Jn;break}d=0,m=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Ss;break;case I2:for(;m<32;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}e.adler=i.check=Q2(d),d=0,m=0,i.mode=Qh;case Qh:if(i.havedict===0)return e.next_out=c,e.avail_out=h,e.next_in=o,e.avail_in=u,i.hold=d,i.bits=m,j6;e.adler=i.check=1,i.mode=Ss;case Ss:if(n===z6||n===Ah)break e;case Fp:if(i.last){d>>>=m&7,m-=m&7,i.mode=qp;break}for(;m<3;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}switch(i.last=d&1,d>>>=1,m-=1,d&3){case 0:i.mode=F2;break;case 1:if(F6(i),i.mode=Nh,n===Ah){d>>>=2,m-=2;break e}break;case 2:i.mode=q2;break;case 3:e.msg="invalid block type",i.mode=Jn}d>>>=2,m-=2;break;case F2:for(d>>>=m&7,m-=m&7;m<32;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",i.mode=Jn;break}if(i.length=d&65535,d=0,m=0,i.mode=Up,n===Ah)break e;case Up:i.mode=U2;case U2:if(p=i.length,p){if(p>u&&(p=u),p>h&&(p=h),p===0)break e;s.set(r.subarray(o,o+p),c),u-=p,o+=p,h-=p,c+=p,i.length-=p;break}i.mode=Ss;break;case q2:for(;m<14;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(i.nlen=(d&31)+257,d>>>=5,m-=5,i.ndist=(d&31)+1,d>>>=5,m-=5,i.ncode=(d&15)+4,d>>>=4,m-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=Jn;break}i.have=0,i.mode=H2;case H2:for(;i.have<i.ncode;){for(;m<3;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}i.lens[T[i.have++]]=d&7,d>>>=3,m-=3}for(;i.have<19;)i.lens[T[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,le={bits:i.lenbits},ne=df(L6,i.lens,0,19,i.lencode,0,i.work,le),i.lenbits=le.bits,ne){e.msg="invalid code lengths set",i.mode=Jn;break}i.have=0,i.mode=Y2;case Y2:for(;i.have<i.nlen+i.ndist;){for(;E=i.lencode[d&(1<<i.lenbits)-1],_=E>>>24,j=E>>>16&255,O=E&65535,!(_<=m);){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(O<16)d>>>=_,m-=_,i.lens[i.have++]=O;else{if(O===16){for(F=_+2;m<F;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(d>>>=_,m-=_,i.have===0){e.msg="invalid bit length repeat",i.mode=Jn;break}ae=i.lens[i.have-1],p=3+(d&3),d>>>=2,m-=2}else if(O===17){for(F=_+3;m<F;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}d>>>=_,m-=_,ae=0,p=3+(d&7),d>>>=3,m-=3}else{for(F=_+7;m<F;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}d>>>=_,m-=_,ae=0,p=11+(d&127),d>>>=7,m-=7}if(i.have+p>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=Jn;break}for(;p--;)i.lens[i.have++]=ae}}if(i.mode===Jn)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=Jn;break}if(i.lenbits=9,le={bits:i.lenbits},ne=df(ay,i.lens,0,i.nlen,i.lencode,0,i.work,le),i.lenbits=le.bits,ne){e.msg="invalid literal/lengths set",i.mode=Jn;break}if(i.distbits=6,i.distcode=i.distdyn,le={bits:i.distbits},ne=df(ry,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,le),i.distbits=le.bits,ne){e.msg="invalid distances set",i.mode=Jn;break}if(i.mode=Nh,n===Ah)break e;case Nh:i.mode=Ch;case Ch:if(u>=6&&h>=258){e.next_out=c,e.avail_out=h,e.next_in=o,e.avail_in=u,i.hold=d,i.bits=m,S6(e,w),c=e.next_out,s=e.output,h=e.avail_out,o=e.next_in,r=e.input,u=e.avail_in,d=i.hold,m=i.bits,i.mode===Ss&&(i.back=-1);break}for(i.back=0;E=i.lencode[d&(1<<i.lenbits)-1],_=E>>>24,j=E>>>16&255,O=E&65535,!(_<=m);){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(j&&(j&240)===0){for(P=_,G=j,J=O;E=i.lencode[J+((d&(1<<P+G)-1)>>P)],_=E>>>24,j=E>>>16&255,O=E&65535,!(P+_<=m);){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}d>>>=P,m-=P,i.back+=P}if(d>>>=_,m-=_,i.back+=_,i.length=O,j===0){i.mode=Z2;break}if(j&32){i.back=-1,i.mode=Ss;break}if(j&64){e.msg="invalid literal/length code",i.mode=Jn;break}i.extra=j&15,i.mode=G2;case G2:if(i.extra){for(F=i.extra;m<F;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}i.length+=d&(1<<i.extra)-1,d>>>=i.extra,m-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=V2;case V2:for(;E=i.distcode[d&(1<<i.distbits)-1],_=E>>>24,j=E>>>16&255,O=E&65535,!(_<=m);){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if((j&240)===0){for(P=_,G=j,J=O;E=i.distcode[J+((d&(1<<P+G)-1)>>P)],_=E>>>24,j=E>>>16&255,O=E&65535,!(P+_<=m);){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}d>>>=P,m-=P,i.back+=P}if(d>>>=_,m-=_,i.back+=_,j&64){e.msg="invalid distance code",i.mode=Jn;break}i.offset=O,i.extra=j&15,i.mode=W2;case W2:if(i.extra){for(F=i.extra;m<F;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}i.offset+=d&(1<<i.extra)-1,d>>>=i.extra,m-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=Jn;break}i.mode=X2;case X2:if(h===0)break e;if(p=w-h,i.offset>p){if(p=i.offset-p,p>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=Jn;break}p>i.wnext?(p-=i.wnext,A=i.wsize-p):A=i.wnext-p,p>i.length&&(p=i.length),S=i.window}else S=s,A=c-i.offset,p=i.length;p>h&&(p=h),h-=p,i.length-=p;do s[c++]=S[A++];while(--p);i.length===0&&(i.mode=Ch);break;case Z2:if(h===0)break e;s[c++]=i.length,h--,i.mode=Ch;break;case qp:if(i.wrap){for(;m<32;){if(u===0)break e;u--,d|=r[o++]<<m,m+=8}if(w-=h,e.total_out+=w,i.total+=w,i.wrap&4&&w&&(e.adler=i.check=i.flags?Io(i.check,s,w,c-w):zm(i.check,s,w,c-w)),w=h,i.wrap&4&&(i.flags?d:Q2(d))!==i.check){e.msg="incorrect data check",i.mode=Jn;break}d=0,m=0}i.mode=K2;case K2:if(i.wrap&&i.flags){for(;m<32;){if(u===0)break e;u--,d+=r[o++]<<m,m+=8}if(i.wrap&4&&d!==(i.total&4294967295)){e.msg="incorrect length check",i.mode=Jn;break}d=0,m=0}i.mode=J2;case J2:ne=T6;break e;case Jn:ne=oy;break e;case ly:return sy;case uy:default:return Mr}return e.next_out=c,e.avail_out=h,e.next_in=o,e.avail_in=u,i.hold=d,i.bits=m,(i.wsize||w!==e.avail_out&&i.mode<Jn&&(i.mode<qp||n!==L2))&&py(e,e.output,e.next_out,w-e.avail_out),y-=e.avail_in,w-=e.avail_out,e.total_in+=y,e.total_out+=w,i.total+=w,i.wrap&4&&w&&(e.adler=i.check=i.flags?Io(i.check,s,w,e.next_out-w):zm(i.check,s,w,e.next_out-w)),e.data_type=i.bits+(i.last?64:0)+(i.mode===Ss?128:0)+(i.mode===Nh||i.mode===Up?256:0),(y===0&&w===0||n===L2)&&ne===tu&&(ne=R6),ne},q6=e=>{if(iu(e))return Mr;let n=e.state;return n.window&&(n.window=null),e.state=null,tu},H6=(e,n)=>{if(iu(e))return Mr;const i=e.state;return(i.wrap&2)===0?Mr:(i.head=n,n.done=!1,tu)},Y6=(e,n)=>{const i=n.length;let r,s,o;return iu(e)||(r=e.state,r.wrap!==0&&r.mode!==Qh)?Mr:r.mode===Qh&&(s=1,s=zm(s,n,i,0),s!==r.check)?oy:(o=py(e,n,i,i),o?(r.mode=ly,sy):(r.havedict=1,tu))};var G6=fy,V6=hy,W6=cy,X6=I6,Z6=dy,K6=U6,J6=q6,Q6=H6,$6=Y6,e8="pako inflate (from Nodeca project)",ks={inflateReset:G6,inflateReset2:V6,inflateResetKeep:W6,inflateInit:X6,inflateInit2:Z6,inflate:K6,inflateEnd:J6,inflateGetHeader:Q6,inflateSetDictionary:$6,inflateInfo:e8};function t8(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var n8=t8;const my=Object.prototype.toString,{Z_NO_FLUSH:i8,Z_FINISH:a8,Z_OK:xf,Z_STREAM_END:Gp,Z_NEED_DICT:Vp,Z_STREAM_ERROR:r8,Z_DATA_ERROR:e5,Z_MEM_ERROR:o8}=ty;function Af(e){this.options=ny.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w6,this.strm.avail_out=0;let i=ks.inflateInit2(this.strm,n.windowBits);if(i!==xf)throw new Error(Tm[i]);if(this.header=new n8,ks.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=jm.string2buf(n.dictionary):my.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(i=ks.inflateSetDictionary(this.strm,n.dictionary),i!==xf)))throw new Error(Tm[i])}Af.prototype.push=function(e,n){const i=this.strm,r=this.options.chunkSize,s=this.options.dictionary;let o,c,u;if(this.ended)return!1;for(n===~~n?c=n:c=n===!0?a8:i8,my.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),o=ks.inflate(i,c),o===Vp&&s&&(o=ks.inflateSetDictionary(i,s),o===xf?o=ks.inflate(i,c):o===e5&&(o=Vp));i.avail_in>0&&o===Gp&&i.state.wrap>0&&e[i.next_in]!==0;)ks.inflateReset(i),o=ks.inflate(i,c);switch(o){case r8:case e5:case Vp:case o8:return this.onEnd(o),this.ended=!0,!1}if(u=i.avail_out,i.next_out&&(i.avail_out===0||o===Gp))if(this.options.to==="string"){let h=jm.utf8border(i.output,i.next_out),d=i.next_out-h,m=jm.buf2string(i.output,h);i.next_out=d,i.avail_out=r-d,d&&i.output.set(i.output.subarray(h,h+d),0),this.onData(m)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(o===xf&&u===0)){if(o===Gp)return o=ks.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Af.prototype.onData=function(e){this.chunks.push(e)};Af.prototype.onEnd=function(e){e===xf&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ny.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s8(e,n){const i=new Af(n);if(i.push(e),i.err)throw i.msg||Tm[i.err];return i.result}var l8=Af,u8=s8,c8={Inflate:l8,inflate:u8};const{Inflate:f8,inflate:h8}=c8;var t5=f8,d8=h8;const gy=[];for(let e=0;e<256;e++){let n=e;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;gy[e]=n}const n5=4294967295;function p8(e,n,i){let r=e;for(let s=0;s<i;s++)r=gy[(r^n[s])&255]^r>>>8;return r}function m8(e,n){return(p8(n5,e,n)^n5)>>>0}function i5(e,n,i){const r=e.readUint32(),s=m8(new Uint8Array(e.buffer,e.byteOffset+e.offset-n-4,n),n);if(s!==r)throw new Error(`CRC mismatch for chunk ${i}. Expected ${r}, found ${s}`)}function vy(e,n,i){for(let r=0;r<i;r++)n[r]=e[r]}function yy(e,n,i,r){let s=0;for(;s<r;s++)n[s]=e[s];for(;s<i;s++)n[s]=e[s]+n[s-r]&255}function by(e,n,i,r){let s=0;if(i.length===0)for(;s<r;s++)n[s]=e[s];else for(;s<r;s++)n[s]=e[s]+i[s]&255}function xy(e,n,i,r,s){let o=0;if(i.length===0){for(;o<s;o++)n[o]=e[o];for(;o<r;o++)n[o]=e[o]+(n[o-s]>>1)&255}else{for(;o<s;o++)n[o]=e[o]+(i[o]>>1)&255;for(;o<r;o++)n[o]=e[o]+(n[o-s]+i[o]>>1)&255}}function wy(e,n,i,r,s){let o=0;if(i.length===0){for(;o<s;o++)n[o]=e[o];for(;o<r;o++)n[o]=e[o]+n[o-s]&255}else{for(;o<s;o++)n[o]=e[o]+i[o]&255;for(;o<r;o++)n[o]=e[o]+g8(n[o-s],i[o],i[o-s])&255}}function g8(e,n,i){const r=e+n-i,s=Math.abs(r-e),o=Math.abs(r-n),c=Math.abs(r-i);return s<=o&&s<=c?e:o<=c?n:i}function v8(e,n,i,r,s,o){switch(e){case 0:vy(n,i,s);break;case 1:yy(n,i,s,o);break;case 2:by(n,i,r,s);break;case 3:xy(n,i,r,s,o);break;case 4:wy(n,i,r,s,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const y8=new Uint16Array([255]),b8=new Uint8Array(y8.buffer),x8=b8[0]===255;function w8(e){const{data:n,width:i,height:r,channels:s,depth:o}=e,c=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],u=Math.ceil(o/8)*s,h=new Uint8Array(r*i*u);let d=0;for(let m=0;m<7;m++){const y=c[m],w=Math.ceil((i-y.x)/y.xStep),p=Math.ceil((r-y.y)/y.yStep);if(w<=0||p<=0)continue;const A=w*u,S=new Uint8Array(A);for(let E=0;E<p;E++){const _=n[d++],j=n.subarray(d,d+A);d+=A;const O=new Uint8Array(A);v8(_,j,O,S,A,u),S.set(O);for(let P=0;P<w;P++){const G=y.x+P*y.xStep,J=y.y+E*y.yStep;if(!(G>=i||J>=r))for(let ae=0;ae<u;ae++)h[(J*i+G)*u+ae]=O[P*u+ae]}}}if(o===16){const m=new Uint16Array(h.buffer);if(x8)for(let y=0;y<m.length;y++)m[y]=_8(m[y]);return m}else return h}function _8(e){return(e&255)<<8|e>>8&255}const S8=new Uint16Array([255]),k8=new Uint8Array(S8.buffer),A8=k8[0]===255,N8=new Uint8Array(0);function a5(e){const{data:n,width:i,height:r,channels:s,depth:o}=e,c=Math.ceil(o/8)*s,u=Math.ceil(o/8*s*i),h=new Uint8Array(r*u);let d=N8,m=0,y,w;for(let p=0;p<r;p++){switch(y=n.subarray(m+1,m+1+u),w=h.subarray(p*u,(p+1)*u),n[m]){case 0:vy(y,w,u);break;case 1:yy(y,w,u,c);break;case 2:by(y,w,d,u);break;case 3:xy(y,w,d,u,c);break;case 4:wy(y,w,d,u,c);break;default:throw new Error(`Unsupported filter: ${n[m]}`)}d=w,m+=u+1}if(o===16){const p=new Uint16Array(h.buffer);if(A8)for(let A=0;A<p.length;A++)p[A]=C8(p[A]);return p}else return h}function C8(e){return(e&255)<<8|e>>8&255}const Ih=Uint8Array.of(137,80,78,71,13,10,26,10);function r5(e){if(!E8(e.readBytes(Ih.length)))throw new Error("wrong PNG signature")}function E8(e){if(e.length<Ih.length)return!1;for(let n=0;n<Ih.length;n++)if(e[n]!==Ih[n])return!1;return!0}const L8="tEXt",z8=0,_y=new TextDecoder("latin1");function T8(e){if(R8(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const j8=/^[\u0000-\u00FF]*$/;function R8(e){if(!j8.test(e))throw new Error("invalid latin1 text")}function O8(e,n,i){const r=Sy(n);e[r]=D8(n,i-r.length-1)}function Sy(e){for(e.mark();e.readByte()!==z8;);const n=e.offset;e.reset();const i=_y.decode(e.readBytes(n-e.offset-1));return e.skip(1),T8(i),i}function D8(e,n){return _y.decode(e.readBytes(n))}const hr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Wp={UNKNOWN:-1,DEFLATE:0},o5={UNKNOWN:-1,ADAPTIVE:0},Xp={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Eh={NONE:0,BACKGROUND:1,PREVIOUS:2},Zp={SOURCE:0,OVER:1};class M8 extends a1{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,i={}){super(n);const{checkCrc:r=!1}=i;this._checkCrc=r,this._inflator=new t5,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Wp.UNKNOWN,this._filterMethod=o5.UNKNOWN,this._interlaceMethod=Xp.UNKNOWN,this._colorType=hr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(r5(this);!this._end;){const n=this.readUint32(),i=this.readChars(4);this.decodeChunk(n,i)}return this.decodeImage(),this._png}decodeApng(){for(r5(this);!this._end;){const n=this.readUint32(),i=this.readChars(4);this.decodeApngChunk(n,i)}return this.decodeApngImage(),this._apng}decodeChunk(n,i){const r=this.offset;switch(i){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case L8:O8(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?i5(this,n+4,i):this.skip(4)}decodeApngChunk(n,i){const r=this.offset;switch(i!=="fdAT"&&i!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),i){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,i),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?i5(this,n+4,i):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=B8(this.readUint8());const i=this.readUint8();this._colorType=i;let r;switch(i){case hr.GREYSCALE:r=1;break;case hr.TRUECOLOUR:r=3;break;case hr.INDEXED_COLOUR:r=1;break;case hr.GREYSCALE_ALPHA:r=2;break;case hr.TRUECOLOUR_ALPHA:r=4;break;case hr.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==Wp.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const i=n/3;this._hasPalette=!0;const r=[];this._palette=r;for(let s=0;s<i;s++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const i=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,i)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let i=n,r=this.offset+this.byteOffset;if(r+=4,i-=4,this._inflator.push(new Uint8Array(this.buffer,r,i)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case hr.GREYSCALE:case hr.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let i=0;i<n/2;i++)this._transparency[i]=this.readUint16();break}case hr.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let i=0;for(;i<n;i++){const r=this.readByte();this._palette[i].push(r)}for(;i<this._palette.length;i++)this._palette[i].push(255);break}case hr.UNKNOWN:case hr.GREYSCALE_ALPHA:case hr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const i=Sy(this),r=this.readUint8();if(r!==Wp.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const s=this.readBytes(n-i.length-2);this._png.iccEmbeddedProfile={name:i,profile:d8(s)}}decodepHYs(){const n=this.readUint32(),i=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:i,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const i={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(n);if(r){if(r.data=a5({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)i.data=r.data;else{const s=this._apng.frames.at(n-1);this.disposeFrame(r,s,i),this.addFrameDataToCanvas(i,r)}this._apng.frames.push(i)}}return this._apng}disposeFrame(n,i,r){switch(n.disposeOp){case Eh.NONE:break;case Eh.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let o=0;o<this._png.width;o++){const c=(s*n.width+o)*this._png.channels;for(let u=0;u<this._png.channels;u++)r.data[c+u]=0}break;case Eh.PREVIOUS:r.data.set(i.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,i){const r=1<<this._png.depth,s=(o,c)=>{const u=((o+i.yOffset)*this._png.width+i.xOffset+c)*this._png.channels,h=(o*i.width+c)*this._png.channels;return{index:u,frameIndex:h}};switch(i.blendOp){case Zp.SOURCE:for(let o=0;o<i.height;o++)for(let c=0;c<i.width;c++){const{index:u,frameIndex:h}=s(o,c);for(let d=0;d<this._png.channels;d++)n.data[u+d]=i.data[h+d]}break;case Zp.OVER:for(let o=0;o<i.height;o++)for(let c=0;c<i.width;c++){const{index:u,frameIndex:h}=s(o,c);for(let d=0;d<this._png.channels;d++){const m=i.data[h+this._png.channels-1]/r,y=d%(this._png.channels-1)===0?1:i.data[h+d],w=Math.floor(m*y+(1-m)*n.data[u+d]);n.data[u+d]+=w}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==o5.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Xp.NO_INTERLACE)this._png.data=a5({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Xp.ADAM7)this._png.data=w8({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,i=this._frames.at(-1);i?i.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Eh.NONE,blendOp:Zp.SOURCE,data:n}),this._inflator=new t5,this._writingDataChunks=!1}}function B8(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var s5;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(s5||(s5={}));function P8(e,n){return new M8(e,n).decode()}var Pt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Kp(){Pt.console&&typeof Pt.console.log=="function"&&Pt.console.log.apply(Pt.console,arguments)}var Mn={log:Kp,warn:function(e){Pt.console&&(typeof Pt.console.warn=="function"?Pt.console.warn.apply(Pt.console,arguments):Kp.call(null,arguments))},error:function(e){Pt.console&&(typeof Pt.console.error=="function"?Pt.console.error.apply(Pt.console,arguments):Kp(e))}};function Jp(e,n,i){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Kl(r.response,n,i)},r.onerror=function(){Mn.error("could not download file")},r.send()}function l5(e){var n=new XMLHttpRequest;n.open("HEAD",e,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function Lh(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var Kl=Pt.saveAs||((typeof window>"u"?"undefined":An(window))!=="object"||window!==Pt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,n,i){var r=Pt.URL||Pt.webkitURL,s=document.createElement("a");n=n||e.name||"download",s.download=n,s.rel="noopener",typeof e=="string"?(s.href=e,s.origin!==location.origin?l5(s.href)?Jp(e,n,i):Lh(s,s.target="_blank"):Lh(s)):(s.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(s.href)},4e4),setTimeout(function(){Lh(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download",typeof e=="string")if(l5(e))Jp(e,n,i);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Lh(r)})}else navigator.msSaveOrOpenBlob((function(s,o){return o===void 0?o={autoBom:!1}:An(o)!=="object"&&(Mn.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s})(e,i),n)}:function(e,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Jp(e,n,i);var s=e.type==="application/octet-stream",o=/constructor/i.test(Pt.HTMLElement)||Pt.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&o)&&(typeof FileReader>"u"?"undefined":An(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var m=u.result;m=c?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=m:location=m,r=null},u.readAsDataURL(e)}else{var h=Pt.URL||Pt.webkitURL,d=h.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function ky(e){var n;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],r=0;r<i.length;r++){var s=i[r].re,o=i[r].process,c=s.exec(e);c&&(n=o(c),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var u=this.r.toString(16),h=this.g.toString(16),d=this.b.toString(16);return u.length==1&&(u="0"+u),h.length==1&&(h="0"+h),d.length==1&&(d="0"+d),"#"+u+h+d}}var Fh=Pt.atob.bind(Pt),u5=Pt.btoa.bind(Pt);/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function Qp(e,n){var i=e[0],r=e[1],s=e[2],o=e[3];i=la(i,r,s,o,n[0],7,-680876936),o=la(o,i,r,s,n[1],12,-389564586),s=la(s,o,i,r,n[2],17,606105819),r=la(r,s,o,i,n[3],22,-1044525330),i=la(i,r,s,o,n[4],7,-176418897),o=la(o,i,r,s,n[5],12,1200080426),s=la(s,o,i,r,n[6],17,-1473231341),r=la(r,s,o,i,n[7],22,-45705983),i=la(i,r,s,o,n[8],7,1770035416),o=la(o,i,r,s,n[9],12,-1958414417),s=la(s,o,i,r,n[10],17,-42063),r=la(r,s,o,i,n[11],22,-1990404162),i=la(i,r,s,o,n[12],7,1804603682),o=la(o,i,r,s,n[13],12,-40341101),s=la(s,o,i,r,n[14],17,-1502002290),i=ua(i,r=la(r,s,o,i,n[15],22,1236535329),s,o,n[1],5,-165796510),o=ua(o,i,r,s,n[6],9,-1069501632),s=ua(s,o,i,r,n[11],14,643717713),r=ua(r,s,o,i,n[0],20,-373897302),i=ua(i,r,s,o,n[5],5,-701558691),o=ua(o,i,r,s,n[10],9,38016083),s=ua(s,o,i,r,n[15],14,-660478335),r=ua(r,s,o,i,n[4],20,-405537848),i=ua(i,r,s,o,n[9],5,568446438),o=ua(o,i,r,s,n[14],9,-1019803690),s=ua(s,o,i,r,n[3],14,-187363961),r=ua(r,s,o,i,n[8],20,1163531501),i=ua(i,r,s,o,n[13],5,-1444681467),o=ua(o,i,r,s,n[2],9,-51403784),s=ua(s,o,i,r,n[7],14,1735328473),i=ca(i,r=ua(r,s,o,i,n[12],20,-1926607734),s,o,n[5],4,-378558),o=ca(o,i,r,s,n[8],11,-2022574463),s=ca(s,o,i,r,n[11],16,1839030562),r=ca(r,s,o,i,n[14],23,-35309556),i=ca(i,r,s,o,n[1],4,-1530992060),o=ca(o,i,r,s,n[4],11,1272893353),s=ca(s,o,i,r,n[7],16,-155497632),r=ca(r,s,o,i,n[10],23,-1094730640),i=ca(i,r,s,o,n[13],4,681279174),o=ca(o,i,r,s,n[0],11,-358537222),s=ca(s,o,i,r,n[3],16,-722521979),r=ca(r,s,o,i,n[6],23,76029189),i=ca(i,r,s,o,n[9],4,-640364487),o=ca(o,i,r,s,n[12],11,-421815835),s=ca(s,o,i,r,n[15],16,530742520),i=fa(i,r=ca(r,s,o,i,n[2],23,-995338651),s,o,n[0],6,-198630844),o=fa(o,i,r,s,n[7],10,1126891415),s=fa(s,o,i,r,n[14],15,-1416354905),r=fa(r,s,o,i,n[5],21,-57434055),i=fa(i,r,s,o,n[12],6,1700485571),o=fa(o,i,r,s,n[3],10,-1894986606),s=fa(s,o,i,r,n[10],15,-1051523),r=fa(r,s,o,i,n[1],21,-2054922799),i=fa(i,r,s,o,n[8],6,1873313359),o=fa(o,i,r,s,n[15],10,-30611744),s=fa(s,o,i,r,n[6],15,-1560198380),r=fa(r,s,o,i,n[13],21,1309151649),i=fa(i,r,s,o,n[4],6,-145523070),o=fa(o,i,r,s,n[11],10,-1120210379),s=fa(s,o,i,r,n[2],15,718787259),r=fa(r,s,o,i,n[9],21,-343485551),e[0]=pl(i,e[0]),e[1]=pl(r,e[1]),e[2]=pl(s,e[2]),e[3]=pl(o,e[3])}function od(e,n,i,r,s,o){return n=pl(pl(n,e),pl(r,o)),pl(n<<s|n>>>32-s,i)}function la(e,n,i,r,s,o,c){return od(n&i|~n&r,e,n,s,o,c)}function ua(e,n,i,r,s,o,c){return od(n&r|i&~r,e,n,s,o,c)}function ca(e,n,i,r,s,o,c){return od(n^i^r,e,n,s,o,c)}function fa(e,n,i,r,s,o,c){return od(i^(n|~r),e,n,s,o,c)}function Ay(e){var n,i=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=e.length;n+=64)Qp(r,I8(e.substring(n-64,n)));e=e.substring(n-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<e.length;n++)s[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(s[n>>2]|=128<<(n%4<<3),n>55)for(Qp(r,s),n=0;n<16;n++)s[n]=0;return s[14]=8*i,Qp(r,s),r}function I8(e){var n,i=[];for(n=0;n<64;n+=4)i[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return i}var c5="0123456789abcdef".split("");function F8(e){for(var n="",i=0;i<4;i++)n+=c5[e>>8*i+4&15]+c5[e>>8*i&15];return n}function U8(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Rm(e){return Ay(e).map(U8).join("")}var q8=(function(e){for(var n=0;n<e.length;n++)e[n]=F8(e[n]);return e.join("")})(Ay("hello"))!="5d41402abc4b2a76b9719d911017c592";function pl(e,n){if(q8){var i=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(i>>16)<<16|65535&i}return e+n&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function Om(e,n){var i,r,s,o;if(e!==i){for(var c=(s=e,o=1+(256/e.length|0),new Array(o+1).join(s)),u=[],h=0;h<256;h++)u[h]=h;var d=0;for(h=0;h<256;h++){var m=u[h];d=(d+m+c.charCodeAt(h))%256,u[h]=u[d],u[d]=m}i=e,r=u}else u=r;var y=n.length,w=0,p=0,A="";for(h=0;h<y;h++)p=(p+(m=u[w=(w+1)%256]))%256,u[w]=u[p],u[p]=m,c=u[(u[w]+u[p])%256],A+=String.fromCharCode(n.charCodeAt(h)^c);return A}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var f5={print:4,modify:8,copy:16,"annot-forms":32};function ac(e,n,i,r){this.v=1,this.r=2;var s=192;e.forEach(function(u){if(f5.perm!==void 0)throw new Error("Invalid permission: "+u);s+=f5[u]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var o=(n+this.padding).substr(0,32),c=(i+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^s)),this.encryptionKey=Rm(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Om(this.encryptionKey,this.padding)}function rc(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var n="",i=e.length,r=0;r<i;r++){var s=e.charCodeAt(r);n+=s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?"#"+("0"+s.toString(16)).slice(-2):e[r]}return n}function h5(e){if(An(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(i,r,s){if(s=s||!1,typeof i!="string"||typeof r!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(i)||(n[i]={});var o=Math.random().toString(35);return n[i][o]=[r,!!s],o},this.unsubscribe=function(i){for(var r in n)if(n[r][i])return delete n[r][i],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(i){if(n.hasOwnProperty(i)){var r=Array.prototype.slice.call(arguments,1),s=[];for(var o in n[i]){var c=n[i][o];try{c[0].apply(e,r)}catch(u){Pt.console&&Mn.error("jsPDF PubSub Error",u.message,u)}c[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function $h(e){if(!(this instanceof $h))return new $h(e);var n="opacity,stroke-opacity".split(",");for(var i in e)e.hasOwnProperty(i)&&n.indexOf(i)>=0&&(this[i]=e[i]);this.id="",this.objectNumber=-1}function Ny(e,n){this.gState=e,this.matrix=n,this.id="",this.objectNumber=-1}function Ql(e,n,i,r,s){if(!(this instanceof Ql))return new Ql(e,n,i,r,s);this.type=e==="axial"?2:3,this.coords=n,this.colors=i,Ny.call(this,r,s)}function oc(e,n,i,r,s){if(!(this instanceof oc))return new oc(e,n,i,r,s);this.boundingBox=e,this.xStep=n,this.yStep=i,this.stream="",this.cloneIndex=0,Ny.call(this,r,s)}function At(e){var n,i=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],s=arguments[2],o=arguments[3],c=[],u=1,h=16,d="S",m=null;An(e=e||{})==="object"&&(i=e.orientation,r=e.unit||r,s=e.format||s,o=e.compress||e.compressPdf||o,(m=e.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),u=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(n=e.precision),e.floatPrecision!==void 0&&(h=e.floatPrecision),d=e.defaultPathOperation||"S"),c=e.filters||(o===!0?["FlateEncode"]:c),r=r||"mm",i=(""+(i||"P")).toLowerCase();var y=e.putOnlyUsedFonts||!1,w={},p={internal:{},__private__:{}};p.__private__.PubSub=h5;var A="1.3",S=p.__private__.getPdfVersion=function(){return A};p.__private__.setPdfVersion=function(k){A=k};var E={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return E};var _=p.__private__.getPageFormat=function(k){return E[k]};s=s||"a4";var j="compat",O="advanced",P=j;function G(){this.saveGraphicsState(),Y(new Nt(st,0,0,-st,0,Vr()*st).toString()+" cm"),this.setFontSize(this.getFontSize()/st),d="n",P=O}function J(){this.restoreGraphicsState(),d="S",P=j}var ae=p.__private__.combineFontStyleAndFontWeight=function(k,q){if(k=="bold"&&q=="normal"||k=="bold"&&q==400||k=="normal"&&q=="italic"||k=="bold"&&q=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return q&&(k=q==400||q==="normal"?k==="italic"?"italic":"normal":q!=700&&q!=="bold"||k!=="normal"?(q==700?"bold":q)+""+k:"bold"),k};p.advancedAPI=function(k){var q=P===j;return q&&G.call(this),typeof k!="function"||(k(this),q&&J.call(this)),this},p.compatAPI=function(k){var q=P===O;return q&&J.call(this),typeof k!="function"||(k(this),q&&G.call(this)),this},p.isAdvancedAPI=function(){return P===O};var ne,U=function(k){if(P!==O)throw new Error(k+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},le=p.roundToPrecision=p.__private__.roundToPrecision=function(k,q){var de=n||q;if(isNaN(k)||isNaN(de))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return k.toFixed(de).replace(/0+$/,"")};ne=p.hpf=p.__private__.hpf=typeof h=="number"?function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.hpf");return le(k,h)}:h==="smart"?function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.hpf");return le(k,k>-1&&k<1?16:5)}:function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.hpf");return le(k,16)};var F=p.f2=p.__private__.f2=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.f2");return le(k,2)},T=p.__private__.f3=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.f3");return le(k,3)},X=p.scale=p.__private__.scale=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.scale");return P===j?k*st:P===O?k:void 0},N=function(k){return X((function(q){return P===j?Vr()-q:P===O?q:void 0})(k))};p.__private__.setPrecision=p.setPrecision=function(k){typeof parseInt(k,10)=="number"&&(n=parseInt(k,10))};var Q,ie="00000000000000000000000000000000",oe=p.__private__.getFileId=function(){return ie},me=p.__private__.setFileId=function(k){return ie=k!==void 0&&/^[a-fA-F0-9]{32}$/.test(k)?k.toUpperCase():ie.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(vi=new ac(m.userPermissions,m.userPassword,m.ownerPassword,ie)),ie};p.setFileId=function(k){return me(k),this},p.getFileId=function(){return oe()};var ge=p.__private__.convertDateToPDFDate=function(k){var q=k.getTimezoneOffset(),de=q<0?"+":"-",be=Math.floor(Math.abs(q/60)),Le=Math.abs(q%60),Ke=[de,V(be),"'",V(Le),"'"].join("");return["D:",k.getFullYear(),V(k.getMonth()+1),V(k.getDate()),V(k.getHours()),V(k.getMinutes()),V(k.getSeconds()),Ke].join("")},Z=p.__private__.convertPDFDateToDate=function(k){var q=parseInt(k.substr(2,4),10),de=parseInt(k.substr(6,2),10)-1,be=parseInt(k.substr(8,2),10),Le=parseInt(k.substr(10,2),10),Ke=parseInt(k.substr(12,2),10),nt=parseInt(k.substr(14,2),10);return new Date(q,de,be,Le,Ke,nt,0)},I=p.__private__.setCreationDate=function(k){var q;if(k===void 0&&(k=new Date),k instanceof Date)q=ge(k);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(k))throw new Error("Invalid argument passed to jsPDF.setCreationDate");q=k}return Q=q},L=p.__private__.getCreationDate=function(k){var q=Q;return k==="jsDate"&&(q=Z(Q)),q};p.setCreationDate=function(k){return I(k),this},p.getCreationDate=function(k){return L(k)};var z,V=p.__private__.padd2=function(k){return("0"+parseInt(k)).slice(-2)},ee=p.__private__.padd2Hex=function(k){return("00"+(k=k.toString())).substr(k.length)},pe=0,we=[],Ae=[],Ne=0,Ue=[],Xe=[],at=!1,rt=Ae;p.__private__.setCustomOutputDestination=function(k){at=!0,rt=k};var M=function(k){at||(rt=k)};p.__private__.resetCustomOutputDestination=function(){at=!1,rt=Ae};var Y=p.__private__.out=function(k){return k=k.toString(),Ne+=k.length+1,rt.push(k),rt},xe=p.__private__.write=function(k){return Y(arguments.length===1?k.toString():Array.prototype.join.call(arguments," "))},ue=p.__private__.getArrayBuffer=function(k){for(var q=k.length,de=new ArrayBuffer(q),be=new Uint8Array(de);q--;)be[q]=k.charCodeAt(q);return de},re=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return re};var ce=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(k){return ce=P===O?k/st:k,this};var De,Re=p.__private__.getFontSize=p.getFontSize=function(){return P===j?ce:ce*st},_e=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(k){return _e=k,this},p.__private__.getR2L=p.getR2L=function(){return _e};var He,Ee=p.__private__.setZoomMode=function(k){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(k))De=k;else if(isNaN(k)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(k)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+k+'" is not recognized.');De=k}else De=parseInt(k,10)};p.__private__.getZoomMode=function(){return De};var je,ve=p.__private__.setPageMode=function(k){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(k)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+k+'" is not recognized.');He=k};p.__private__.getPageMode=function(){return He};var Be=p.__private__.setLayoutMode=function(k){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(k)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+k+'" is not recognized.');je=k};p.__private__.getLayoutMode=function(){return je},p.__private__.setDisplayMode=p.setDisplayMode=function(k,q,de){return Ee(k),Be(q),ve(de),this};var Ge={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(k){if(Object.keys(Ge).indexOf(k)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ge[k]},p.__private__.getDocumentProperties=function(){return Ge},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(k){for(var q in Ge)Ge.hasOwnProperty(q)&&k[q]&&(Ge[q]=k[q]);return this},p.__private__.setDocumentProperty=function(k,q){if(Object.keys(Ge).indexOf(k)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ge[k]=q};var $e,st,lt,Vt,ct,dt={},_t={},mt=[],pt={},Ft={},Et={},Ot={},dn=null,Mt=0,wt=[],nn=new h5(p),Xa=e.hotfixes||[],Fi={},gr={},Aa=[],Nt=function k(q,de,be,Le,Ke,nt){if(!(this instanceof k))return new k(q,de,be,Le,Ke,nt);isNaN(q)&&(q=1),isNaN(de)&&(de=0),isNaN(be)&&(be=0),isNaN(Le)&&(Le=1),isNaN(Ke)&&(Ke=0),isNaN(nt)&&(nt=0),this._matrix=[q,de,be,Le,Ke,nt]};Object.defineProperty(Nt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(k){this._matrix[0]=k}}),Object.defineProperty(Nt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(k){this._matrix[1]=k}}),Object.defineProperty(Nt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(k){this._matrix[2]=k}}),Object.defineProperty(Nt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(k){this._matrix[3]=k}}),Object.defineProperty(Nt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(k){this._matrix[4]=k}}),Object.defineProperty(Nt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(k){this._matrix[5]=k}}),Object.defineProperty(Nt.prototype,"a",{get:function(){return this._matrix[0]},set:function(k){this._matrix[0]=k}}),Object.defineProperty(Nt.prototype,"b",{get:function(){return this._matrix[1]},set:function(k){this._matrix[1]=k}}),Object.defineProperty(Nt.prototype,"c",{get:function(){return this._matrix[2]},set:function(k){this._matrix[2]=k}}),Object.defineProperty(Nt.prototype,"d",{get:function(){return this._matrix[3]},set:function(k){this._matrix[3]=k}}),Object.defineProperty(Nt.prototype,"e",{get:function(){return this._matrix[4]},set:function(k){this._matrix[4]=k}}),Object.defineProperty(Nt.prototype,"f",{get:function(){return this._matrix[5]},set:function(k){this._matrix[5]=k}}),Object.defineProperty(Nt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Nt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Nt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Nt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Nt.prototype.join=function(k){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ne).join(k)},Nt.prototype.multiply=function(k){var q=k.sx*this.sx+k.shy*this.shx,de=k.sx*this.shy+k.shy*this.sy,be=k.shx*this.sx+k.sy*this.shx,Le=k.shx*this.shy+k.sy*this.sy,Ke=k.tx*this.sx+k.ty*this.shx+this.tx,nt=k.tx*this.shy+k.ty*this.sy+this.ty;return new Nt(q,de,be,Le,Ke,nt)},Nt.prototype.decompose=function(){var k=this.sx,q=this.shy,de=this.shx,be=this.sy,Le=this.tx,Ke=this.ty,nt=Math.sqrt(k*k+q*q),vt=(k/=nt)*de+(q/=nt)*be;de-=k*vt,be-=q*vt;var St=Math.sqrt(de*de+be*be);return vt/=St,k*(be/=St)<q*(de/=St)&&(k=-k,q=-q,vt=-vt,nt=-nt),{scale:new Nt(nt,0,0,St,0,0),translate:new Nt(1,0,0,1,Le,Ke),rotate:new Nt(k,q,-q,k,0,0),skew:new Nt(1,0,vt,1,0,0)}},Nt.prototype.toString=function(k){return this.join(" ")},Nt.prototype.inversed=function(){var k=this.sx,q=this.shy,de=this.shx,be=this.sy,Le=this.tx,Ke=this.ty,nt=1/(k*be-q*de),vt=be*nt,St=-q*nt,Dt=-de*nt,Ut=k*nt;return new Nt(vt,St,Dt,Ut,-vt*Le-Dt*Ke,-St*Le-Ut*Ke)},Nt.prototype.applyToPoint=function(k){var q=k.x*this.sx+k.y*this.shx+this.tx,de=k.x*this.shy+k.y*this.sy+this.ty;return new Ea(q,de)},Nt.prototype.applyToRectangle=function(k){var q=this.applyToPoint(k),de=this.applyToPoint(new Ea(k.x+k.w,k.y+k.h));return new Ur(q.x,q.y,de.x-q.x,de.y-q.y)},Nt.prototype.clone=function(){var k=this.sx,q=this.shy,de=this.shx,be=this.sy,Le=this.tx,Ke=this.ty;return new Nt(k,q,de,be,Le,Ke)},p.Matrix=Nt;var Br=p.matrixMult=function(k,q){return q.multiply(k)},vr=new Nt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=vr;var da=function(k,q){if(!Ft[k]){var de=(q instanceof Ql?"Sh":"P")+(Object.keys(pt).length+1).toString(10);q.id=de,Ft[k]=de,pt[de]=q,nn.publish("addPattern",q)}};p.ShadingPattern=Ql,p.TilingPattern=oc,p.addShadingPattern=function(k,q){return U("addShadingPattern()"),da(k,q),this},p.beginTilingPattern=function(k){U("beginTilingPattern()"),es(k.boundingBox[0],k.boundingBox[1],k.boundingBox[2]-k.boundingBox[0],k.boundingBox[3]-k.boundingBox[1],k.matrix)},p.endTilingPattern=function(k,q){U("endTilingPattern()"),q.stream=Xe[z].join(`
`),da(k,q),nn.publish("endTilingPattern",q),Aa.pop().restore()};var pa,Bn=p.__private__.newObject=function(){var k=si();return ki(k,!0),k},si=p.__private__.newObjectDeferred=function(){return pe++,we[pe]=function(){return Ne},pe},ki=function(k,q){return q=typeof q=="boolean"&&q,we[k]=Ne,q&&Y(k+" 0 obj"),k},yo=p.__private__.newAdditionalObject=function(){var k={objId:si(),content:""};return Ue.push(k),k},Zi=si(),wn=si(),Fn=p.__private__.decodeColorString=function(k){var q=k.split(" ");if(q.length!==2||q[1]!=="g"&&q[1]!=="G")q.length!==5||q[4]!=="k"&&q[4]!=="K"||(q=[(1-q[0])*(1-q[3]),(1-q[1])*(1-q[3]),(1-q[2])*(1-q[3]),"r"]);else{var de=parseFloat(q[0]);q=[de,de,de,"r"]}for(var be="#",Le=0;Le<3;Le++)be+=("0"+Math.floor(255*parseFloat(q[Le])).toString(16)).slice(-2);return be},Ui=p.__private__.encodeColorString=function(k){var q;typeof k=="string"&&(k={ch1:k});var de=k.ch1,be=k.ch2,Le=k.ch3,Ke=k.ch4,nt=k.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof de=="string"&&de.charAt(0)!=="#"){var vt=new ky(de);if(vt.ok)de=vt.toHex();else if(!/^\d*\.?\d*$/.test(de))throw new Error('Invalid color "'+de+'" passed to jsPDF.encodeColorString.')}if(typeof de=="string"&&/^#[0-9A-Fa-f]{3}$/.test(de)&&(de="#"+de[1]+de[1]+de[2]+de[2]+de[3]+de[3]),typeof de=="string"&&/^#[0-9A-Fa-f]{6}$/.test(de)){var St=parseInt(de.substr(1),16);de=St>>16&255,be=St>>8&255,Le=255&St}if(be===void 0||Ke===void 0&&de===be&&be===Le)q=typeof de=="string"?de+" "+nt[0]:k.precision===2?F(de/255)+" "+nt[0]:T(de/255)+" "+nt[0];else if(Ke===void 0||An(Ke)==="object"){if(Ke&&!isNaN(Ke.a)&&Ke.a===0)return["1.","1.","1.",nt[1]].join(" ");q=typeof de=="string"?[de,be,Le,nt[1]].join(" "):k.precision===2?[F(de/255),F(be/255),F(Le/255),nt[1]].join(" "):[T(de/255),T(be/255),T(Le/255),nt[1]].join(" ")}else q=typeof de=="string"?[de,be,Le,Ke,nt[2]].join(" "):k.precision===2?[F(de),F(be),F(Le),F(Ke),nt[2]].join(" "):[T(de),T(be),T(Le),T(Ke),nt[2]].join(" ");return q},ma=p.__private__.getFilters=function(){return c},Na=p.__private__.putStream=function(k){var q=(k=k||{}).data||"",de=k.filters||ma(),be=k.alreadyAppliedFilters||[],Le=k.addLength1||!1,Ke=q.length,nt=k.objectId,vt=function(yi){return yi};if(m!==null&&nt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(vt=vi.encryptor(nt,0));var St={};de===!0&&(de=["FlateEncode"]);var Dt=k.additionalKeyValues||[],Ut=(St=At.API.processDataByFilters!==void 0?At.API.processDataByFilters(q,de):{data:q,reverseChain:[]}).reverseChain+(Array.isArray(be)?be.join(" "):be.toString());if(St.data.length!==0&&(Dt.push({key:"Length",value:St.data.length}),Le===!0&&Dt.push({key:"Length1",value:Ke})),Ut.length!=0)if(Ut.split("/").length-1==1)Dt.push({key:"Filter",value:Ut});else{Dt.push({key:"Filter",value:"["+Ut+"]"});for(var an=0;an<Dt.length;an+=1)if(Dt[an].key==="DecodeParms"){for(var Un=[],ei=0;ei<St.reverseChain.split("/").length-1;ei+=1)Un.push("null");Un.push(Dt[an].value),Dt[an].value="["+Un.join(" ")+"]"}}Y("<<");for(var Nn=0;Nn<Dt.length;Nn++)Y("/"+Dt[Nn].key+" "+Dt[Nn].value);Y(">>"),St.data.length!==0&&(Y("stream"),Y(vt(St.data)),Y("endstream"))},Xo=p.__private__.putPage=function(k){var q=k.number,de=k.data,be=k.objId,Le=k.contentsObjId;ki(be,!0),Y("<</Type /Page"),Y("/Parent "+k.rootDictionaryObjId+" 0 R"),Y("/Resources "+k.resourceDictionaryObjId+" 0 R"),Y("/MediaBox ["+parseFloat(ne(k.mediaBox.bottomLeftX))+" "+parseFloat(ne(k.mediaBox.bottomLeftY))+" "+ne(k.mediaBox.topRightX)+" "+ne(k.mediaBox.topRightY)+"]"),k.cropBox!==null&&Y("/CropBox ["+ne(k.cropBox.bottomLeftX)+" "+ne(k.cropBox.bottomLeftY)+" "+ne(k.cropBox.topRightX)+" "+ne(k.cropBox.topRightY)+"]"),k.bleedBox!==null&&Y("/BleedBox ["+ne(k.bleedBox.bottomLeftX)+" "+ne(k.bleedBox.bottomLeftY)+" "+ne(k.bleedBox.topRightX)+" "+ne(k.bleedBox.topRightY)+"]"),k.trimBox!==null&&Y("/TrimBox ["+ne(k.trimBox.bottomLeftX)+" "+ne(k.trimBox.bottomLeftY)+" "+ne(k.trimBox.topRightX)+" "+ne(k.trimBox.topRightY)+"]"),k.artBox!==null&&Y("/ArtBox ["+ne(k.artBox.bottomLeftX)+" "+ne(k.artBox.bottomLeftY)+" "+ne(k.artBox.topRightX)+" "+ne(k.artBox.topRightY)+"]"),typeof k.userUnit=="number"&&k.userUnit!==1&&Y("/UserUnit "+k.userUnit),nn.publish("putPage",{objId:be,pageContext:wt[q],pageNumber:q,page:de}),Y("/Contents "+Le+" 0 R"),Y(">>"),Y("endobj");var Ke=de.join(`
`);return P===O&&(Ke+=`
Q`),ki(Le,!0),Na({data:Ke,filters:ma(),objectId:Le}),Y("endobj"),be},Za=p.__private__.putPages=function(){var k,q,de=[];for(k=1;k<=Mt;k++)wt[k].objId=si(),wt[k].contentsObjId=si();for(k=1;k<=Mt;k++)de.push(Xo({number:k,data:Xe[k],objId:wt[k].objId,contentsObjId:wt[k].contentsObjId,mediaBox:wt[k].mediaBox,cropBox:wt[k].cropBox,bleedBox:wt[k].bleedBox,trimBox:wt[k].trimBox,artBox:wt[k].artBox,userUnit:wt[k].userUnit,rootDictionaryObjId:Zi,resourceDictionaryObjId:wn}));ki(Zi,!0),Y("<</Type /Pages");var be="/Kids [";for(q=0;q<Mt;q++)be+=de[q]+" 0 R ";Y(be+"]"),Y("/Count "+Mt),Y(">>"),Y("endobj"),nn.publish("postPutPages")},Ka=function(k){nn.publish("putFont",{font:k,out:Y,newObject:Bn,putStream:Na}),k.isAlreadyPutted!==!0&&(k.objectNumber=Bn(),Y("<<"),Y("/Type /Font"),Y("/BaseFont /"+rc(k.postScriptName)),Y("/Subtype /Type1"),typeof k.encoding=="string"&&Y("/Encoding /"+k.encoding),Y("/FirstChar 32"),Y("/LastChar 255"),Y(">>"),Y("endobj"))},bo=function(k){k.objectNumber=Bn();var q=[];q.push({key:"Type",value:"/XObject"}),q.push({key:"Subtype",value:"/Form"}),q.push({key:"BBox",value:"["+[ne(k.x),ne(k.y),ne(k.x+k.width),ne(k.y+k.height)].join(" ")+"]"}),q.push({key:"Matrix",value:"["+k.matrix.toString()+"]"});var de=k.pages[1].join(`
`);Na({data:de,additionalKeyValues:q,objectId:k.objectNumber}),Y("endobj")},Ja=function(k,q){q||(q=21);var de=Bn(),be=(function(nt,vt){var St,Dt=[],Ut=1/(vt-1);for(St=0;St<1;St+=Ut)Dt.push(St);if(Dt.push(1),nt[0].offset!=0){var an={offset:0,color:nt[0].color};nt.unshift(an)}if(nt[nt.length-1].offset!=1){var Un={offset:1,color:nt[nt.length-1].color};nt.push(Un)}for(var ei="",Nn=0,yi=0;yi<Dt.length;yi++){for(St=Dt[yi];St>nt[Nn+1].offset;)Nn++;var ui=nt[Nn].offset,ji=(St-ui)/(nt[Nn+1].offset-ui),Wr=nt[Nn].color,ir=nt[Nn+1].color;ei+=ee(Math.round((1-ji)*Wr[0]+ji*ir[0]).toString(16))+ee(Math.round((1-ji)*Wr[1]+ji*ir[1]).toString(16))+ee(Math.round((1-ji)*Wr[2]+ji*ir[2]).toString(16))}return ei.trim()})(k.colors,q),Le=[];Le.push({key:"FunctionType",value:"0"}),Le.push({key:"Domain",value:"[0.0 1.0]"}),Le.push({key:"Size",value:"["+q+"]"}),Le.push({key:"BitsPerSample",value:"8"}),Le.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Le.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Na({data:be,additionalKeyValues:Le,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:de}),Y("endobj"),k.objectNumber=Bn(),Y("<< /ShadingType "+k.type),Y("/ColorSpace /DeviceRGB");var Ke="/Coords ["+ne(parseFloat(k.coords[0]))+" "+ne(parseFloat(k.coords[1]))+" ";k.type===2?Ke+=ne(parseFloat(k.coords[2]))+" "+ne(parseFloat(k.coords[3])):Ke+=ne(parseFloat(k.coords[2]))+" "+ne(parseFloat(k.coords[3]))+" "+ne(parseFloat(k.coords[4]))+" "+ne(parseFloat(k.coords[5])),Y(Ke+="]"),k.matrix&&Y("/Matrix ["+k.matrix.toString()+"]"),Y("/Function "+de+" 0 R"),Y("/Extend [true true]"),Y(">>"),Y("endobj")},Qa=function(k,q){var de=si(),be=Bn();q.push({resourcesOid:de,objectOid:be}),k.objectNumber=be;var Le=[];Le.push({key:"Type",value:"/Pattern"}),Le.push({key:"PatternType",value:"1"}),Le.push({key:"PaintType",value:"1"}),Le.push({key:"TilingType",value:"1"}),Le.push({key:"BBox",value:"["+k.boundingBox.map(ne).join(" ")+"]"}),Le.push({key:"XStep",value:ne(k.xStep)}),Le.push({key:"YStep",value:ne(k.yStep)}),Le.push({key:"Resources",value:de+" 0 R"}),k.matrix&&Le.push({key:"Matrix",value:"["+k.matrix.toString()+"]"}),Na({data:k.stream,additionalKeyValues:Le,objectId:k.objectNumber}),Y("endobj")},Zo=function(k){for(var q in k.objectNumber=Bn(),Y("<<"),k)switch(q){case"opacity":Y("/ca "+F(k[q]));break;case"stroke-opacity":Y("/CA "+F(k[q]))}Y(">>"),Y("endobj")},yr=function(k){ki(k.resourcesOid,!0),Y("<<"),Y("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var q in Y("/Font <<"),dt)dt.hasOwnProperty(q)&&(y===!1||y===!0&&w.hasOwnProperty(q))&&Y("/"+q+" "+dt[q].objectNumber+" 0 R");Y(">>")})(),(function(){if(Object.keys(pt).length>0){for(var q in Y("/Shading <<"),pt)pt.hasOwnProperty(q)&&pt[q]instanceof Ql&&pt[q].objectNumber>=0&&Y("/"+q+" "+pt[q].objectNumber+" 0 R");nn.publish("putShadingPatternDict"),Y(">>")}})(),(function(q){if(Object.keys(pt).length>0){for(var de in Y("/Pattern <<"),pt)pt.hasOwnProperty(de)&&pt[de]instanceof p.TilingPattern&&pt[de].objectNumber>=0&&pt[de].objectNumber<q&&Y("/"+de+" "+pt[de].objectNumber+" 0 R");nn.publish("putTilingPatternDict"),Y(">>")}})(k.objectOid),(function(){if(Object.keys(Et).length>0){var q;for(q in Y("/ExtGState <<"),Et)Et.hasOwnProperty(q)&&Et[q].objectNumber>=0&&Y("/"+q+" "+Et[q].objectNumber+" 0 R");nn.publish("putGStateDict"),Y(">>")}})(),(function(){for(var q in Y("/XObject <<"),Fi)Fi.hasOwnProperty(q)&&Fi[q].objectNumber>=0&&Y("/"+q+" "+Fi[q].objectNumber+" 0 R");nn.publish("putXobjectDict"),Y(">>")})(),Y(">>"),Y("endobj")},$n=function(k){_t[k.fontName]=_t[k.fontName]||{},_t[k.fontName][k.fontStyle]=k.id},vl=function(k,q,de,be,Le){var Ke={id:"F"+(Object.keys(dt).length+1).toString(10),postScriptName:k,fontName:q,fontStyle:de,encoding:be,isStandardFont:Le||!1,metadata:{}};return nn.publish("addFont",{font:Ke,instance:this}),dt[Ke.id]=Ke,$n(Ke),Ke.id},ga=p.__private__.pdfEscape=p.pdfEscape=function(k,q){return(function(de,be){var Le,Ke,nt,vt,St,Dt,Ut,an,Un;if(nt=(be=be||{}).sourceEncoding||"Unicode",St=be.outputEncoding,(be.autoencode||St)&&dt[$e].metadata&&dt[$e].metadata[nt]&&dt[$e].metadata[nt].encoding&&(vt=dt[$e].metadata[nt].encoding,!St&&dt[$e].encoding&&(St=dt[$e].encoding),!St&&vt.codePages&&(St=vt.codePages[0]),typeof St=="string"&&(St=vt[St]),St)){for(Ut=!1,Dt=[],Le=0,Ke=de.length;Le<Ke;Le++)(an=St[de.charCodeAt(Le)])?Dt.push(String.fromCharCode(an)):Dt.push(de[Le]),Dt[Le].charCodeAt(0)>>8&&(Ut=!0);de=Dt.join("")}for(Le=de.length;Ut===void 0&&Le!==0;)de.charCodeAt(Le-1)>>8&&(Ut=!0),Le--;if(!Ut)return de;for(Dt=be.noBOM?[]:[254,255],Le=0,Ke=de.length;Le<Ke;Le++){if((Un=(an=de.charCodeAt(Le))>>8)>>8)throw new Error("Character at position "+Le+" of string '"+de+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Dt.push(Un),Dt.push(an-(Un<<8))}return String.fromCharCode.apply(void 0,Dt)})(k,q).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$a=p.__private__.beginPage=function(k){Xe[++Mt]=[],wt[Mt]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(k[0]),topRightY:Number(k[1])}},bl(Mt),M(Xe[z])},Pr=function(k,q){var de,be,Le;switch(i=q||i,typeof k=="string"&&(de=_(k.toLowerCase()),Array.isArray(de)&&(be=de[0],Le=de[1])),Array.isArray(k)&&(be=k[0]*st,Le=k[1]*st),isNaN(be)&&(be=s[0],Le=s[1]),(be>14400||Le>14400)&&(Mn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),be=Math.min(14400,be),Le=Math.min(14400,Le)),s=[be,Le],i.substr(0,1)){case"l":Le>be&&(s=[Le,be]);break;case"p":be>Le&&(s=[Le,be])}$a(s),Tt(Jo),Y(ba),zs!==0&&Y(zs+" J"),Ai!==0&&Y(Ai+" j"),nn.publish("addPage",{pageNumber:Mt})},yl=function(k){k>0&&k<=Mt&&(Xe.splice(k,1),wt.splice(k,1),Mt--,z>Mt&&(z=Mt),this.setPage(z))},bl=function(k){k>0&&k<=Mt&&(z=k)},xl=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Xe.length-1},ou=function(k,q,de){var be,Le=void 0;return de=de||{},k=k!==void 0?k:dt[$e].fontName,q=q!==void 0?q:dt[$e].fontStyle,be=k.toLowerCase(),_t[be]!==void 0&&_t[be][q]!==void 0?Le=_t[be][q]:_t[k]!==void 0&&_t[k][q]!==void 0?Le=_t[k][q]:de.disableWarning===!1&&Mn.warn("Unable to look up font label for font '"+k+"', '"+q+"'. Refer to getFontList() for available fonts."),Le||de.noFallback||(Le=_t.times[q])==null&&(Le=_t.times.normal),Le},va=p.__private__.putInfo=function(){var k=Bn(),q=function(be){return be};for(var de in m!==null&&(q=vi.encryptor(k,0)),Y("<<"),Y("/Producer ("+ga(q("jsPDF "+At.version))+")"),Ge)Ge.hasOwnProperty(de)&&Ge[de]&&Y("/"+de.substr(0,1).toUpperCase()+de.substr(1)+" ("+ga(q(Ge[de]))+")");Y("/CreationDate ("+ga(q(Q))+")"),Y(">>"),Y("endobj")},Ir=p.__private__.putCatalog=function(k){var q=(k=k||{}).rootDictionaryObjId||Zi;switch(Bn(),Y("<<"),Y("/Type /Catalog"),Y("/Pages "+q+" 0 R"),De||(De="fullwidth"),De){case"fullwidth":Y("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Y("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Y("/OpenAction [3 0 R /Fit]");break;case"original":Y("/OpenAction [3 0 R /XYZ null null 1]");break;default:var de=""+De;de.substr(de.length-1)==="%"&&(De=parseInt(De)/100),typeof De=="number"&&Y("/OpenAction [3 0 R /XYZ null null "+F(De)+"]")}switch(je||(je="continuous"),je){case"continuous":Y("/PageLayout /OneColumn");break;case"single":Y("/PageLayout /SinglePage");break;case"two":case"twoleft":Y("/PageLayout /TwoColumnLeft");break;case"tworight":Y("/PageLayout /TwoColumnRight")}He&&Y("/PageMode /"+He),nn.publish("putCatalog"),Y(">>"),Y("endobj")},er=p.__private__.putTrailer=function(){Y("trailer"),Y("<<"),Y("/Size "+(pe+1)),Y("/Root "+pe+" 0 R"),Y("/Info "+(pe-1)+" 0 R"),m!==null&&Y("/Encrypt "+vi.oid+" 0 R"),Y("/ID [ <"+ie+"> <"+ie+"> ]"),Y(">>")},cn=p.__private__.putHeader=function(){Y("%PDF-"+A),Y("%ºß¬à")},wl=p.__private__.putXRef=function(){var k="0000000000";Y("xref"),Y("0 "+(pe+1)),Y("0000000000 65535 f ");for(var q=1;q<=pe;q++)typeof we[q]=="function"?Y((k+we[q]()).slice(-10)+" 00000 n "):we[q]!==void 0?Y((k+we[q]).slice(-10)+" 00000 n "):Y("0000000000 00000 n ")},br=p.__private__.buildDocument=function(){var k;pe=0,Ne=0,Ae=[],we=[],Ue=[],Zi=si(),wn=si(),M(Ae),nn.publish("buildDocument"),cn(),Za(),(function(){nn.publish("putAdditionalObjects");for(var de=0;de<Ue.length;de++){var be=Ue[de];ki(be.objId,!0),Y(be.content),Y("endobj")}nn.publish("postPutAdditionalObjects")})(),k=[],(function(){for(var de in dt)dt.hasOwnProperty(de)&&(y===!1||y===!0&&w.hasOwnProperty(de))&&Ka(dt[de])})(),(function(){var de;for(de in Et)Et.hasOwnProperty(de)&&Zo(Et[de])})(),(function(){for(var de in Fi)Fi.hasOwnProperty(de)&&bo(Fi[de])})(),(function(de){var be;for(be in pt)pt.hasOwnProperty(be)&&(pt[be]instanceof Ql?Ja(pt[be]):pt[be]instanceof oc&&Qa(pt[be],de))})(k),nn.publish("putResources"),k.forEach(yr),yr({resourcesOid:wn,objectOid:Number.MAX_SAFE_INTEGER}),nn.publish("postPutResources"),m!==null&&(vi.oid=Bn(),Y("<<"),Y("/Filter /Standard"),Y("/V "+vi.v),Y("/R "+vi.r),Y("/U <"+vi.toHexString(vi.U)+">"),Y("/O <"+vi.toHexString(vi.O)+">"),Y("/P "+vi.P),Y(">>"),Y("endobj")),va(),Ir();var q=Ne;return wl(),er(),Y("startxref"),Y(""+q),Y("%%EOF"),M(Xe[z]),Ae.join(`
`)},xo=p.__private__.getBlob=function(k){return new Blob([ue(k)],{type:"application/pdf"})},_l=p.output=p.__private__.output=(pa=function(k,q){switch(typeof(q=q||{})=="string"?q={filename:q}:q.filename=q.filename||"generated.pdf",k){case void 0:return br();case"save":p.save(q.filename);break;case"arraybuffer":return ue(br());case"blob":return xo(br());case"bloburi":case"bloburl":if(Pt.URL!==void 0&&typeof Pt.URL.createObjectURL=="function")return Pt.URL&&Pt.URL.createObjectURL(xo(br()))||void 0;Mn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var de="",be=br();try{de=u5(be)}catch{de=u5(unescape(encodeURIComponent(be)))}return"data:application/pdf;filename="+q.filename+";base64,"+de;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Pt)==="[object Window]"){var Le="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ke=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';q.pdfObjectUrl&&(Le=q.pdfObjectUrl,Ke="");var nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Le+'"'+Ke+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(q)+");<\/script></body></html>",vt=Pt.open();return vt!==null&&vt.document.write(nt),vt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Pt)==="[object Window]"){var St='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(q.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+q.filename+'" width="500px" height="400px" /></body></html>',Dt=Pt.open();if(Dt!==null){Dt.document.write(St);var Ut=this;Dt.document.documentElement.querySelector("#pdfViewer").onload=function(){Dt.document.title=q.filename,Dt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ut.output("bloburl"))}}return Dt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Pt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var an='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",q)+'"></iframe></body></html>',Un=Pt.open();if(Un!==null&&(Un.document.write(an),Un.document.title=q.filename),Un||typeof safari>"u")return Un;break;case"datauri":case"dataurl":return Pt.document.location.href=this.output("datauristring",q);default:return null}},pa.foo=function(){try{return pa.apply(this,arguments)}catch(de){var k=de.stack||"";~k.indexOf(" at ")&&(k=k.split(" at ")[1]);var q="Error in function "+k.split(`
`)[0].split("<")[0]+": "+de.message;if(!Pt.console)throw new Error(q);Pt.console.error(q,de),Pt.alert&&alert(q)}},pa.foo.bar=pa,pa.foo),Ki=function(k){return Array.isArray(Xa)===!0&&Xa.indexOf(k)>-1};switch(r){case"pt":st=1;break;case"mm":st=72/25.4;break;case"cm":st=72/2.54;break;case"in":st=72;break;case"px":st=Ki("px_scaling")==1?.75:96/72;break;case"pc":case"em":st=12;break;case"ex":st=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);st=r}var vi=null;I(),me();var li=p.__private__.getPageInfo=p.getPageInfo=function(k){if(isNaN(k)||k%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:wt[k].objId,pageNumber:k,pageContext:wt[k]}},Es=p.__private__.getPageInfoByObjId=function(k){if(isNaN(k)||k%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var q in wt)if(wt[q].objId===k)break;return li(q)},su=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:wt[z].objId,pageNumber:z,pageContext:wt[z]}};p.addPage=function(){return Pr.apply(this,arguments),this},p.setPage=function(){return bl.apply(this,arguments),M.call(this,Xe[z]),this},p.insertPage=function(k){return this.addPage(),this.movePage(z,k),this},p.movePage=function(k,q){var de,be;if(k>q){de=Xe[k],be=wt[k];for(var Le=k;Le>q;Le--)Xe[Le]=Xe[Le-1],wt[Le]=wt[Le-1];Xe[q]=de,wt[q]=be,this.setPage(q)}else if(k<q){de=Xe[k],be=wt[k];for(var Ke=k;Ke<q;Ke++)Xe[Ke]=Xe[Ke+1],wt[Ke]=wt[Ke+1];Xe[q]=de,wt[q]=be,this.setPage(q)}return this},p.deletePage=function(){return yl.apply(this,arguments),this},p.__private__.text=p.text=function(k,q,de,be,Le){var Ke,nt,vt,St,Dt,Ut,an,Un,ei,Nn=(be=be||{}).scope||this;if(typeof k=="number"&&typeof q=="number"&&(typeof de=="string"||Array.isArray(de))){var yi=de;de=q,q=k,k=yi}if(arguments[3]instanceof Nt==0?(vt=arguments[4],St=arguments[5],An(an=arguments[3])==="object"&&an!==null||(typeof vt=="string"&&(St=vt,vt=null),typeof an=="string"&&(St=an,an=null),typeof an=="number"&&(vt=an,an=null),be={flags:an,angle:vt,align:St})):(U("The transform parameter of text() with a Matrix value"),ei=Le),isNaN(q)||isNaN(de)||k==null)throw new Error("Invalid arguments passed to jsPDF.text");if(k.length===0)return Nn;var ui,ji="",Wr=typeof be.lineHeightFactor=="number"?be.lineHeightFactor:Fr,ir=Nn.internal.scaleFactor;function Xr(fn){return fn=fn.split("	").join(Array(be.TabLen||9).join(" ")),ga(fn,an)}function Tl(fn){for(var rn,Cn=fn.concat(),ni=[],Lr=Cn.length;Lr--;)typeof(rn=Cn.shift())=="string"?ni.push(rn):Array.isArray(fn)&&(rn.length===1||rn[1]===void 0&&rn[2]===void 0)?ni.push(rn[0]):ni.push([rn[0],rn[1],rn[2]]);return ni}function js(fn,rn){var Cn;if(typeof fn=="string")Cn=rn(fn)[0];else if(Array.isArray(fn)){for(var ni,Lr,sr=fn.concat(),as=[],Ol=sr.length;Ol--;)typeof(ni=sr.shift())=="string"?as.push(rn(ni)[0]):Array.isArray(ni)&&typeof ni[0]=="string"&&(Lr=rn(ni[0],ni[1],ni[2]),as.push([Lr[0],Lr[1],Lr[2]]));Cn=as}return Cn}var _r=!1,ar=!0;if(typeof k=="string")_r=!0;else if(Array.isArray(k)){var ns=k.concat();nt=[];for(var Zr,Ni=ns.length;Ni--;)(typeof(Zr=ns.shift())!="string"||Array.isArray(Zr)&&typeof Zr[0]!="string")&&(ar=!1);_r=ar}if(_r===!1)throw new Error('Type of text must be string or Array. "'+k+'" is not recognized.');typeof k=="string"&&(k=k.match(/[\r?\n]/)?k.split(/\r\n|\r|\n/g):[k]);var _o=ce/Nn.internal.scaleFactor,So=_o*(Wr-1);switch(be.baseline){case"bottom":de-=So;break;case"top":de+=_o-So;break;case"hanging":de+=_o-2*So;break;case"middle":de+=_o/2-So}if((Ut=be.maxWidth||0)>0&&(typeof k=="string"?k=Nn.splitTextToSize(k,Ut):Object.prototype.toString.call(k)==="[object Array]"&&(k=k.reduce(function(fn,rn){return fn.concat(Nn.splitTextToSize(rn,Ut))},[]))),Ke={text:k,x:q,y:de,options:be,mutex:{pdfEscape:ga,activeFontKey:$e,fonts:dt,activeFontSize:ce}},nn.publish("preProcessText",Ke),k=Ke.text,vt=(be=Ke.options).angle,ei instanceof Nt==0&&vt&&typeof vt=="number"){vt*=Math.PI/180,be.rotationDirection===0&&(vt=-vt),P===O&&(vt=-vt);var Rs=Math.cos(vt),Sr=Math.sin(vt);ei=new Nt(Rs,Sr,-Sr,Rs,0,0)}else vt&&vt instanceof Nt&&(ei=vt);P!==O||ei||(ei=vr),(Dt=be.charSpace||Ca)!==void 0&&(ji+=ne(X(Dt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Un=be.horizontalScale)!==void 0&&(ji+=ne(100*Un)+` Tz
`),be.lang;var Qi=-1,Kr=be.renderingMode!==void 0?be.renderingMode:be.stroke,Os=Nn.internal.getCurrentPageInfo().pageContext;switch(Kr){case 0:case!1:case"fill":Qi=0;break;case 1:case!0:case"stroke":Qi=1;break;case 2:case"fillThenStroke":Qi=2;break;case 3:case"invisible":Qi=3;break;case 4:case"fillAndAddForClipping":Qi=4;break;case 5:case"strokeAndAddPathForClipping":Qi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Qi=6;break;case 7:case"addToPathForClipping":Qi=7}var jl=Os.usedRenderingMode!==void 0?Os.usedRenderingMode:-1;Qi!==-1?ji+=Qi+` Tr
`:jl!==-1&&(ji+=`0 Tr
`),Qi!==-1&&(Os.usedRenderingMode=Qi),St=be.align||"left";var xa,rr=ce*Wr,Jr=Nn.internal.pageSize.getWidth(),Rl=dt[$e];Dt=be.charSpace||Ca,Ut=be.maxWidth||0,an=Object.assign({autoencode:!0,noBOM:!0},be.flags);var or=[],ko=function(fn){return Nn.getStringUnitWidth(fn,{font:Rl,charSpace:Dt,fontSize:ce,doKerning:!1})*ce/ir};if(Object.prototype.toString.call(k)==="[object Array]"){var ra;nt=Tl(k),St!=="left"&&(xa=nt.map(ko));var $i,kr=0;if(St==="right"){q-=xa[0],k=[],Ni=nt.length;for(var Ar=0;Ar<Ni;Ar++)Ar===0?($i=ya(q),ra=Ti(de)):($i=X(kr-xa[Ar]),ra=-rr),k.push([nt[Ar],$i,ra]),kr=xa[Ar]}else if(St==="center"){q-=xa[0]/2,k=[],Ni=nt.length;for(var Qr=0;Qr<Ni;Qr++)Qr===0?($i=ya(q),ra=Ti(de)):($i=X((kr-xa[Qr])/2),ra=-rr),k.push([nt[Qr],$i,ra]),kr=xa[Qr]}else if(St==="left"){k=[],Ni=nt.length;for(var Ds=0;Ds<Ni;Ds++)k.push(nt[Ds])}else if(St==="justify"&&Rl.encoding==="Identity-H"){k=[],Ni=nt.length,Ut=Ut!==0?Ut:Jr;for(var Ms=0,ti=0;ti<Ni;ti++)if(ra=ti===0?Ti(de):-rr,$i=ti===0?ya(q):Ms,ti<Ni-1){var gu=X((Ut-xa[ti])/(nt[ti].split(" ").length-1)),Nr=nt[ti].split(" ");k.push([Nr[0]+" ",$i,ra]),Ms=0;for(var Cr=1;Cr<Nr.length;Cr++){var Ri=(ko(Nr[Cr-1]+" "+Nr[Cr])-ko(Nr[Cr]))*ir+gu;Cr==Nr.length-1?k.push([Nr[Cr],Ri,0]):k.push([Nr[Cr]+" ",Ri,0]),Ms-=Ri}}else k.push([nt[ti],$i,ra]);k.push(["",Ms,0])}else{if(St!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(k=[],Ni=nt.length,Ut=Ut!==0?Ut:Jr,ti=0;ti<Ni;ti++){ra=ti===0?Ti(de):-rr,$i=ti===0?ya(q):0;var $r=nt[ti].split(" ").length-1,Bs=$r>0?(Ut-xa[ti])/$r:0;ti<Ni-1?or.push(ne(X(Bs))):or.push(0),k.push([nt[ti],$i,ra])}}}(typeof be.R2L=="boolean"?be.R2L:_e)===!0&&(k=js(k,function(fn,rn,Cn){return[fn.split("").reverse().join(""),rn,Cn]})),Ke={text:k,x:q,y:de,options:be,mutex:{pdfEscape:ga,activeFontKey:$e,fonts:dt,activeFontSize:ce}},nn.publish("postProcessText",Ke),k=Ke.text,ui=Ke.mutex.isHex||!1;var Ps=dt[$e].encoding;Ps!=="WinAnsiEncoding"&&Ps!=="StandardEncoding"||(k=js(k,function(fn,rn,Cn){return[Xr(fn),rn,Cn]})),nt=Tl(k),k=[];for(var eo,to,Er,is=Array.isArray(nt[0])?1:0,wa="",no=function(fn,rn,Cn){var ni="";return Cn instanceof Nt?(Cn=typeof be.angle=="number"?Br(Cn,new Nt(1,0,0,1,fn,rn)):Br(new Nt(1,0,0,1,fn,rn),Cn),P===O&&(Cn=Br(new Nt(1,0,0,-1,0,0),Cn)),ni=Cn.join(" ")+` Tm
`):ni=ne(fn)+" "+ne(rn)+` Td
`,ni},qi=0;qi<nt.length;qi++){switch(wa="",is){case 1:Er=(ui?"<":"(")+nt[qi][0]+(ui?">":")"),eo=parseFloat(nt[qi][1]),to=parseFloat(nt[qi][2]);break;case 0:Er=(ui?"<":"(")+nt[qi]+(ui?">":")"),eo=ya(q),to=Ti(de)}or!==void 0&&or[qi]!==void 0&&(wa=or[qi]+` Tw
`),qi===0?k.push(wa+no(eo,to,ei)+Er):is===0?k.push(wa+Er):is===1&&k.push(wa+no(eo,to,ei)+Er)}k=is===0?k.join(` Tj
T* `):k.join(` Tj
`),k+=` Tj
`;var La=`BT
/`;return La+=$e+" "+ce+` Tf
`,La+=ne(ce*Wr)+` TL
`,La+=xr+`
`,La+=ji,La+=k,Y(La+="ET"),w[$e]=!0,Nn};var Sl=p.__private__.clip=p.clip=function(k){return Y(k==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Sl("evenodd")},p.__private__.discardPath=p.discardPath=function(){return Y("n"),this};var Ji=p.__private__.isValidStyle=function(k){var q=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(k)!==-1&&(q=!0),q};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(k){return Ji(k)&&(d=k),this};var kl=p.__private__.getStyle=p.getStyle=function(k){var q=d;switch(k){case"D":case"S":q="S";break;case"F":q="f";break;case"FD":case"DF":q="B";break;case"f":case"f*":case"B":case"B*":q=k}return q},Al=p.close=function(){return Y("h"),this};p.stroke=function(){return Y("S"),this},p.fill=function(k){return tr("f",k),this},p.fillEvenOdd=function(k){return tr("f*",k),this},p.fillStroke=function(k){return tr("B",k),this},p.fillStrokeEvenOdd=function(k){return tr("B*",k),this};var tr=function(k,q){An(q)==="object"?uu(q,k):Y(k)},Ko=function(k){k===null||P===O&&k===void 0||(k=kl(k),Y(k))};function lu(k,q,de,be,Le){var Ke=new oc(q||this.boundingBox,de||this.xStep,be||this.yStep,this.gState,Le||this.matrix);Ke.stream=this.stream;var nt=k+"$$"+this.cloneIndex+++"$$";return da(nt,Ke),Ke}var uu=function(k,q){var de=Ft[k.key],be=pt[de];if(be instanceof Ql)Y("q"),Y(Nl(q)),be.gState&&p.setGState(be.gState),Y(k.matrix.toString()+" cm"),Y("/"+de+" sh"),Y("Q");else if(be instanceof oc){var Le=new Nt(1,0,0,-1,0,Vr());k.matrix&&(Le=Le.multiply(k.matrix||vr),de=lu.call(be,k.key,k.boundingBox,k.xStep,k.yStep,Le).id),Y("q"),Y("/Pattern cs"),Y("/"+de+" scn"),be.gState&&p.setGState(be.gState),Y(q),Y("Q")}},Nl=function(k){switch(k){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Cl=p.moveTo=function(k,q){return Y(ne(X(k))+" "+ne(N(q))+" m"),this},cu=p.lineTo=function(k,q){return Y(ne(X(k))+" "+ne(N(q))+" l"),this},aa=p.curveTo=function(k,q,de,be,Le,Ke){return Y([ne(X(k)),ne(N(q)),ne(X(de)),ne(N(be)),ne(X(Le)),ne(N(Ke)),"c"].join(" ")),this};p.__private__.line=p.line=function(k,q,de,be,Le){if(isNaN(k)||isNaN(q)||isNaN(de)||isNaN(be)||!Ji(Le))throw new Error("Invalid arguments passed to jsPDF.line");return P===j?this.lines([[de-k,be-q]],k,q,[1,1],Le||"S"):this.lines([[de-k,be-q]],k,q,[1,1]).stroke()},p.__private__.lines=p.lines=function(k,q,de,be,Le,Ke){var nt,vt,St,Dt,Ut,an,Un,ei,Nn,yi,ui,ji;if(typeof k=="number"&&(ji=de,de=q,q=k,k=ji),be=be||[1,1],Ke=Ke||!1,isNaN(q)||isNaN(de)||!Array.isArray(k)||!Array.isArray(be)||!Ji(Le)||typeof Ke!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Cl(q,de),nt=be[0],vt=be[1],Dt=k.length,yi=q,ui=de,St=0;St<Dt;St++)(Ut=k[St]).length===2?(yi=Ut[0]*nt+yi,ui=Ut[1]*vt+ui,cu(yi,ui)):(an=Ut[0]*nt+yi,Un=Ut[1]*vt+ui,ei=Ut[2]*nt+yi,Nn=Ut[3]*vt+ui,yi=Ut[4]*nt+yi,ui=Ut[5]*vt+ui,aa(an,Un,ei,Nn,yi,ui));return Ke&&Al(),Ko(Le),this},p.path=function(k){for(var q=0;q<k.length;q++){var de=k[q],be=de.c;switch(de.op){case"m":Cl(be[0],be[1]);break;case"l":cu(be[0],be[1]);break;case"c":aa.apply(this,be);break;case"h":Al()}}return this},p.__private__.rect=p.rect=function(k,q,de,be,Le){if(isNaN(k)||isNaN(q)||isNaN(de)||isNaN(be)||!Ji(Le))throw new Error("Invalid arguments passed to jsPDF.rect");return P===j&&(be=-be),Y([ne(X(k)),ne(N(q)),ne(X(de)),ne(X(be)),"re"].join(" ")),Ko(Le),this},p.__private__.triangle=p.triangle=function(k,q,de,be,Le,Ke,nt){if(isNaN(k)||isNaN(q)||isNaN(de)||isNaN(be)||isNaN(Le)||isNaN(Ke)||!Ji(nt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[de-k,be-q],[Le-de,Ke-be],[k-Le,q-Ke]],k,q,[1,1],nt,!0),this},p.__private__.roundedRect=p.roundedRect=function(k,q,de,be,Le,Ke,nt){if(isNaN(k)||isNaN(q)||isNaN(de)||isNaN(be)||isNaN(Le)||isNaN(Ke)||!Ji(nt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var vt=4/3*(Math.SQRT2-1);return Le=Math.min(Le,.5*de),Ke=Math.min(Ke,.5*be),this.lines([[de-2*Le,0],[Le*vt,0,Le,Ke-Ke*vt,Le,Ke],[0,be-2*Ke],[0,Ke*vt,-Le*vt,Ke,-Le,Ke],[2*Le-de,0],[-Le*vt,0,-Le,-Ke*vt,-Le,-Ke],[0,2*Ke-be],[0,-Ke*vt,Le*vt,-Ke,Le,-Ke]],k+Le,q,[1,1],nt,!0),this},p.__private__.ellipse=p.ellipse=function(k,q,de,be,Le){if(isNaN(k)||isNaN(q)||isNaN(de)||isNaN(be)||!Ji(Le))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ke=4/3*(Math.SQRT2-1)*de,nt=4/3*(Math.SQRT2-1)*be;return Cl(k+de,q),aa(k+de,q-nt,k+Ke,q-be,k,q-be),aa(k-Ke,q-be,k-de,q-nt,k-de,q),aa(k-de,q+nt,k-Ke,q+be,k,q+be),aa(k+Ke,q+be,k+de,q+nt,k+de,q),Ko(Le),this},p.__private__.circle=p.circle=function(k,q,de,be){if(isNaN(k)||isNaN(q)||isNaN(de)||!Ji(be))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(k,q,de,de,be)},p.setFont=function(k,q,de){return de&&(q=ae(q,de)),$e=ou(k,q,{disableWarning:!1}),this};var nr=p.__private__.getFont=p.getFont=function(){return dt[ou.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var k,q,de={};for(k in _t)if(_t.hasOwnProperty(k))for(q in de[k]=[],_t[k])_t[k].hasOwnProperty(q)&&de[k].push(q);return de},p.addFont=function(k,q,de,be,Le){var Ke=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ke.indexOf(arguments[3])!==-1?Le=arguments[3]:arguments[3]&&Ke.indexOf(arguments[3])==-1&&(de=ae(de,be)),vl.call(this,k,q,de,Le=Le||"Identity-H")};var Fr,Jo=e.lineWidth||.200025,wo=p.__private__.getLineWidth=p.getLineWidth=function(){return Jo},Tt=p.__private__.setLineWidth=p.setLineWidth=function(k){return Jo=k,Y(ne(X(k))+" w"),this};p.__private__.setLineDash=At.API.setLineDash=At.API.setLineDashPattern=function(k,q){if(k=k||[],q=q||0,isNaN(q)||!Array.isArray(k))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return k=k.map(function(de){return ne(X(de))}).join(" "),q=ne(X(q)),Y("["+k+"] "+q+" d"),this};var fu=p.__private__.getLineHeight=p.getLineHeight=function(){return ce*Fr};p.__private__.getLineHeight=p.getLineHeight=function(){return ce*Fr};var El=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(k){return typeof(k=k||1.15)=="number"&&(Fr=k),this},hu=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Fr};El(e.lineHeight);var ya=p.__private__.getHorizontalCoordinate=function(k){return X(k)},Ti=p.__private__.getVerticalCoordinate=function(k){return P===O?k:wt[z].mediaBox.topRightY-wt[z].mediaBox.bottomLeftY-X(k)},Ll=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(k){return ne(ya(k))},Qo=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(k){return ne(Ti(k))},ba=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Fn(ba)},p.__private__.setStrokeColor=p.setDrawColor=function(k,q,de,be){return ba=Ui({ch1:k,ch2:q,ch3:de,ch4:be,pdfColorType:"draw",precision:2}),Y(ba),this};var $o=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Fn($o)},p.__private__.setFillColor=p.setFillColor=function(k,q,de,be){return $o=Ui({ch1:k,ch2:q,ch3:de,ch4:be,pdfColorType:"fill",precision:2}),Y($o),this};var xr=e.textColor||"0 g",du=p.__private__.getTextColor=p.getTextColor=function(){return Fn(xr)};p.__private__.setTextColor=p.setTextColor=function(k,q,de,be){return xr=Ui({ch1:k,ch2:q,ch3:de,ch4:be,pdfColorType:"text",precision:3}),this};var Ca=e.charSpace,Ls=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Ca||0)};p.__private__.setCharSpace=p.setCharSpace=function(k){if(isNaN(k))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ca=k,this};var zs=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(k){var q=p.CapJoinStyles[k];if(q===void 0)throw new Error("Line cap style of '"+k+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return zs=q,Y(q+" J"),this};var Ai=0;p.__private__.setLineJoin=p.setLineJoin=function(k){var q=p.CapJoinStyles[k];if(q===void 0)throw new Error("Line join style of '"+k+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ai=q,Y(q+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(k){if(k=k||0,isNaN(k))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Y(ne(X(k))+" M"),this},p.GState=$h,p.setGState=function(k){(k=typeof k=="string"?Et[Ot[k]]:wr(null,k)).equals(dn)||(Y("/"+k.id+" gs"),dn=k)};var wr=function(k,q){if(!k||!Ot[k]){var de=!1;for(var be in Et)if(Et.hasOwnProperty(be)&&Et[be].equals(q)){de=!0;break}if(de)q=Et[be];else{var Le="GS"+(Object.keys(Et).length+1).toString(10);Et[Le]=q,q.id=Le}return k&&(Ot[k]=q.id),nn.publish("addGState",q),q}};p.addGState=function(k,q){return wr(k,q),this},p.saveGraphicsState=function(){return Y("q"),mt.push({key:$e,size:ce,color:xr}),this},p.restoreGraphicsState=function(){Y("Q");var k=mt.pop();return $e=k.key,ce=k.size,xr=k.color,dn=null,this},p.setCurrentTransformationMatrix=function(k){return Y(k.toString()+" cm"),this},p.comment=function(k){return Y("#"+k),this};var Ea=function(k,q){var de=k||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return de},set:function(Ke){isNaN(Ke)||(de=parseFloat(Ke))}});var be=q||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return be},set:function(Ke){isNaN(Ke)||(be=parseFloat(Ke))}});var Le="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Le},set:function(Ke){Le=Ke.toString()}}),this},Ur=function(k,q,de,be){Ea.call(this,k,q),this.type="rect";var Le=de||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Le},set:function(nt){isNaN(nt)||(Le=parseFloat(nt))}});var Ke=be||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ke},set:function(nt){isNaN(nt)||(Ke=parseFloat(nt))}}),this},Ts=function(){this.page=Mt,this.currentPage=z,this.pages=Xe.slice(0),this.pagesContext=wt.slice(0),this.x=lt,this.y=Vt,this.matrix=ct,this.width=Hr(z),this.height=zl(z),this.outputDestination=rt,this.id="",this.objectNumber=-1};Ts.prototype.restore=function(){Mt=this.page,z=this.currentPage,wt=this.pagesContext,Xe=this.pages,lt=this.x,Vt=this.y,ct=this.matrix,ts(z,this.width),Yr(z,this.height),rt=this.outputDestination};var es=function(k,q,de,be,Le){Aa.push(new Ts),Mt=z=0,Xe=[],lt=k,Vt=q,ct=Le,$a([de,be])};for(var qr in p.beginFormObject=function(k,q,de,be,Le){return es(k,q,de,be,Le),this},p.endFormObject=function(k){return(function(q){if(gr[q])Aa.pop().restore();else{var de=new Ts,be="Xo"+(Object.keys(Fi).length+1).toString(10);de.id=be,gr[q]=be,Fi[be]=de,nn.publish("addFormObject",de),Aa.pop().restore()}})(k),this},p.doFormObject=function(k,q){var de=Fi[gr[k]];return Y("q"),Y(q.toString()+" cm"),Y("/"+de.id+" Do"),Y("Q"),this},p.getFormObject=function(k){var q=Fi[gr[k]];return{x:q.x,y:q.y,width:q.width,height:q.height,matrix:q.matrix}},p.save=function(k,q){return k=k||"generated.pdf",(q=q||{}).returnPromise=q.returnPromise||!1,q.returnPromise===!1?(Kl(xo(br()),k),typeof Kl.unload=="function"&&Pt.setTimeout&&setTimeout(Kl.unload,911),this):new Promise(function(de,be){try{var Le=Kl(xo(br()),k);typeof Kl.unload=="function"&&Pt.setTimeout&&setTimeout(Kl.unload,911),de(Le)}catch(Ke){be(Ke.message)}})},At.API)At.API.hasOwnProperty(qr)&&(qr==="events"&&At.API.events.length?(function(k,q){var de,be,Le;for(Le=q.length-1;Le!==-1;Le--)de=q[Le][0],be=q[Le][1],k.subscribe.apply(k,[de].concat(typeof be=="function"?[be]:be))})(nn,At.API.events):p[qr]=At.API[qr]);function Hr(k){return wt[k].mediaBox.topRightX-wt[k].mediaBox.bottomLeftX}function ts(k,q){wt[k].mediaBox.topRightX=q+wt[k].mediaBox.bottomLeftX}function zl(k){return wt[k].mediaBox.topRightY-wt[k].mediaBox.bottomLeftY}function Yr(k,q){wt[k].mediaBox.topRightY=q+wt[k].mediaBox.bottomLeftY}var Gr=p.getPageWidth=function(k){return Hr(k=k||z)/st},pu=p.setPageWidth=function(k,q){ts(k,q*st)},Vr=p.getPageHeight=function(k){return zl(k=k||z)/st},mu=p.setPageHeight=function(k,q){Yr(k,q*st)};return p.internal={pdfEscape:ga,getStyle:kl,getFont:nr,getFontSize:Re,getCharSpace:Ls,getTextColor:du,getLineHeight:fu,getLineHeightFactor:hu,getLineWidth:wo,write:xe,getHorizontalCoordinate:ya,getVerticalCoordinate:Ti,getCoordinateString:Ll,getVerticalCoordinateString:Qo,collections:{},newObject:Bn,newAdditionalObject:yo,newObjectDeferred:si,newObjectDeferredBegin:ki,getFilters:ma,putStream:Na,events:nn,scaleFactor:st,pageSize:{getWidth:function(){return Gr(z)},setWidth:function(k){pu(z,k)},getHeight:function(){return Vr(z)},setHeight:function(k){mu(z,k)}},encryptionOptions:m,encryption:vi,getEncryptor:function(k){return m!==null?vi.encryptor(k,0):function(q){return q}},output:_l,getNumberOfPages:xl,get pages(){return Xe},out:Y,f2:F,f3:T,getPageInfo:li,getPageInfoByObjId:Es,getCurrentPageInfo:su,getPDFVersion:S,Point:Ea,Rectangle:Ur,Matrix:Nt,hasHotfix:Ki},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Gr(z)},set:function(k){pu(z,k)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return Vr(z)},set:function(k){mu(z,k)},enumerable:!0,configurable:!0}),(function(k){for(var q=0,de=re.length;q<de;q++){var be=vl.call(this,k[q][0],k[q][1],k[q][2],re[q][3],!0);y===!1&&(w[be]=!0);var Le=k[q][0].split("-");$n({id:be,fontName:Le[0],fontStyle:Le[1]||""})}nn.publish("addFonts",{fonts:dt,dictionary:_t})}).call(p,re),$e="F1",Pr(s,i),nn.publish("initialized"),p}ac.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},ac.prototype.toHexString=function(e){return e.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ac.prototype.hexToBytes=function(e){for(var n=[],i=0;i<e.length;i+=2)n.push(String.fromCharCode(parseInt(e.substr(i,2),16)));return n.join("")},ac.prototype.processOwnerPassword=function(e,n){return Om(Rm(n).substr(0,5),e)},ac.prototype.encryptor=function(e,n){var i=Rm(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&n,n>>8&255)).substr(0,10);return function(r){return Om(i,r)}},$h.prototype.equals=function(e){var n,i="id,objectNumber,equals";if(!e||An(e)!==An(this))return!1;var r=0;for(n in this)if(!(i.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!e.hasOwnProperty(n)||this[n]!==e[n])return!1;r++}for(n in e)e.hasOwnProperty(n)&&i.indexOf(n)<0&&r--;return r===0},At.API={events:[]},At.version="4.0.0";var gi=At.API,r1=1,au=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ec=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Yt=function(e){return e.toFixed(2)},cl=function(e){return e.toFixed(5)};gi.__acroform__={};var Va=function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e},d5=function(e){return e*r1},Fo=function(e){var n=new Ey,i=xt.internal.getHeight(e)||0,r=xt.internal.getWidth(e)||0;return n.BBox=[0,0,Number(Yt(r)),Number(Yt(i))],n},H8=gi.__acroform__.setBit=function(e,n){if(e=e||0,n=n||0,isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<n},Y8=gi.__acroform__.clearBit=function(e,n){if(e=e||0,n=n||0,isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<n)},G8=gi.__acroform__.getBit=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<n?1:0},wi=gi.__acroform__.getBitForPdf=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return G8(e,n-1)},_i=gi.__acroform__.setBitForPdf=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return H8(e,n-1)},Si=gi.__acroform__.clearBitForPdf=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Y8(e,n-1)},V8=gi.__acroform__.calculateCoordinates=function(e,n){var i=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,s=e[0],o=e[1],c=e[2],u=e[3],h={};return h.lowerLeft_X=i(s)||0,h.lowerLeft_Y=r(o+u)||0,h.upperRight_X=i(s+c)||0,h.upperRight_Y=r(o)||0,[Number(Yt(h.lowerLeft_X)),Number(Yt(h.lowerLeft_Y)),Number(Yt(h.upperRight_X)),Number(Yt(h.upperRight_Y))]},W8=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var n=[],i=e._V||e.DV,r=Dm(e,i),s=e.scope.internal.getFont(e.fontName,e.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(e.scope.__private__.encodeColorString(e.color)),n.push("/"+s+" "+Yt(r.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC");var o=Fo(e);return o.scope=e.scope,o.stream=n.join(`
`),o}},Dm=function(e,n){var i=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},s=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");s=e.multiline?s.map(function(F){return F.split(`
`)}):s.map(function(F){return[F]});var o=i,c=xt.internal.getHeight(e)||0;c=c<0?-c:c;var u=xt.internal.getWidth(e)||0;u=u<0?-u:u;var h=function(F,T,X){if(F+1<s.length){var N=T+" "+s[F+1][0];return zh(N,e,X).width<=u-4}return!1};o++;e:for(;o>0;){n="",o--;var d,m,y=zh("3",e,o).height,w=e.multiline?c-o:(c-y)/2,p=w+=2,A=0,S=0,E=0;if(o<=0){n=`(...) Tj
`,n+="% Width of Text: "+zh(n,e,o=12).width+", FieldWidth:"+u+`
`;break}for(var _="",j=0,O=0;O<s.length;O++)if(s.hasOwnProperty(O)){var P=!1;if(s[O].length!==1&&E!==s[O].length-1){if((y+2)*(j+2)+2>c)continue e;_+=s[O][E],P=!0,S=O,O--}else{_=(_+=s[O][E]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var G=parseInt(O),J=h(G,_,o),ae=O>=s.length-1;if(J&&!ae){_+=" ",E=0;continue}if(J||ae){if(ae)S=G;else if(e.multiline&&(y+2)*(j+2)+2>c)continue e}else{if(!e.multiline||(y+2)*(j+2)+2>c)continue e;S=G}}for(var ne="",U=A;U<=S;U++){var le=s[U];if(e.multiline){if(U===S){ne+=le[E]+" ",E=(E+1)%le.length;continue}if(U===A){ne+=le[le.length-1]+" ";continue}}ne+=le[0]+" "}switch(ne=ne.substr(ne.length-1)==" "?ne.substr(0,ne.length-1):ne,m=zh(ne,e,o).width,e.textAlign){case"right":d=u-m-2;break;case"center":d=(u-m)/2;break;default:d=2}n+=Yt(d)+" "+Yt(p)+` Td
`,n+="("+au(ne)+`) Tj
`,n+=-Yt(d)+` 0 Td
`,p=-(o+2),m=0,A=P?S:S+1,j++,_=""}break}return r.text=n,r.fontSize=o,r},zh=function(e,n,i){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),s=n.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:s}},X8={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Z8=function(e,n){var i={type:"reference",object:e};n.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===i.type&&r.object===i.object})===void 0&&n.internal.getPageInfo(e.page).pageContext.annotations.push(i)},K8=function(e,n){if(n.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(go.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(X8)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r1=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Ly,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(i){i.internal.events.unsubscribe(i.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete i.internal.acroformPlugin.acroFormDictionaryRoot._eventID,i.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(i){i.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=i.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var s in r)if(r.hasOwnProperty(s)){var o=r[s];o.objId=void 0,o.hasAnnotation&&Z8(o,i)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(i){if(i.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");i.internal.write("/AcroForm "+i.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(i){(function(r,s){var o=!r;for(var c in r||(s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||s.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(c)){var u=r[c],h=[],d=u.Rect;if(u.Rect&&(u.Rect=V8(u.Rect,s)),s.internal.newObjectDeferredBegin(u.objId,!0),u.DA=xt.createDefaultAppearanceStream(u),An(u)==="object"&&typeof u.getKeyValueListForStream=="function"&&(h=u.getKeyValueListForStream()),u.Rect=d,u.hasAppearanceStream&&!u.appearanceStreamContent){var m=W8(u);h.push({key:"AP",value:"<</N "+m+">>"}),s.internal.acroformPlugin.xForms.push(m)}if(u.appearanceStreamContent){var y="";for(var w in u.appearanceStreamContent)if(u.appearanceStreamContent.hasOwnProperty(w)){var p=u.appearanceStreamContent[w];if(y+="/"+w+" ",y+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var A=p[c];typeof A=="function"&&(A=A.call(s,u)),y+="/"+c+" "+A+" ",s.internal.acroformPlugin.xForms.indexOf(A)>=0||s.internal.acroformPlugin.xForms.push(A)}}else typeof(A=p)=="function"&&(A=A.call(s,u)),y+="/"+c+" "+A,s.internal.acroformPlugin.xForms.indexOf(A)>=0||s.internal.acroformPlugin.xForms.push(A);y+=">>"}h.push({key:"AP",value:`<<
`+y+">>"})}s.internal.putStream({additionalKeyValues:h,objectId:u.objId}),s.internal.out("endobj")}o&&(function(S,E){for(var _ in S)if(S.hasOwnProperty(_)){var j=_,O=S[_];E.internal.newObjectDeferredBegin(O.objId,!0),An(O)==="object"&&typeof O.putStream=="function"&&O.putStream(),delete S[j]}})(s.internal.acroformPlugin.xForms,s)})(i,e)}),e.internal.acroformPlugin.isInitialized=!0}},Cy=gi.__acroform__.arrayToPdfArray=function(e,n,i){var r=function(c){return c};if(Array.isArray(e)){for(var s="[",o=0;o<e.length;o++)switch(o!==0&&(s+=" "),An(e[o])){case"boolean":case"number":case"object":s+=e[o].toString();break;case"string":e[o].substr(0,1)!=="/"?(n!==void 0&&i&&(r=i.internal.getEncryptor(n)),s+="("+au(r(e[o].toString()))+")"):s+=e[o].toString()}return s+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$p=function(e,n,i){var r=function(s){return s};return n!==void 0&&i&&(r=i.internal.getEncryptor(n)),(e=e||"").toString(),"("+au(r(e))+")"},Ho=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ho.prototype.toString=function(){return this.objId+" 0 R"},Ho.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ho.prototype.getKeyValueListForStream=function(){var e=[],n=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var i in n)if(Object.getOwnPropertyDescriptor(this,n[i]).configurable===!1){var r=n[i],s=this[r];s&&(Array.isArray(s)?e.push({key:r,value:Cy(s,this.objId,this.scope)}):s instanceof Ho?(s.scope=this.scope,e.push({key:r,value:s.objId+" 0 R"})):typeof s!="function"&&e.push({key:r,value:s}))}return e};var Ey=function(){Ho.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(i){e=i.trim()},get:function(){return e||null}})};Va(Ey,Ho);var Ly=function(){Ho.call(this);var e,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var i=function(r){return r};return this.scope&&(i=this.scope.internal.getEncryptor(this.objId)),"("+au(i(e))+")"}},set:function(i){e=i}})};Va(Ly,Ho);var go=function e(){Ho.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');n=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!wi(n,3)},set:function(_){_?this.F=_i(n,3):this.F=Si(n,3)}});var i=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return i},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');i=_}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(_){r=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(_){r[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(_){r[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(_){r[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(_){r[3]=_}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=_;break;default:throw new Error('Invalid value "'+_+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof ed)return;o="FieldObject"+e.FieldNum++}var _=function(j){return j};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+au(_(o))+")"},set:function(_){o=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(_){o=_}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(_){c=_}});var u="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return u},set:function(_){u=_}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/r1:d},set:function(_){d=_}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(_){m=_}});var y="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!y||this instanceof ed||this instanceof $l))return $p(y,this.objId,this.scope)},set:function(_){_=_.toString(),y=_}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof Xi==0?$p(w,this.objId,this.scope):w},set:function(_){_=_.toString(),w=this instanceof Xi==0?_.substr(0,1)==="("?ec(_.substr(1,_.length-2)):ec(_):_}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xi==1?ec(w.substr(1,w.length-1)):w},set:function(_){_=_.toString(),w=this instanceof Xi==1?"/"+_:_}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Xi==0?$p(p,this.objId,this.scope):p},set:function(_){_=_.toString(),p=this instanceof Xi==0?_.substr(0,1)==="("?ec(_.substr(1,_.length-2)):ec(_):_}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xi==1?ec(p.substr(1,p.length-1)):p},set:function(_){_=_.toString(),p=this instanceof Xi==1?"/"+_:_}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var A,S=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return S},set:function(_){_=!!_,S=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(A)return A},set:function(_){A=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,1)},set:function(_){_?this.Ff=_i(this.Ff,1):this.Ff=Si(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,2)},set:function(_){_?this.Ff=_i(this.Ff,2):this.Ff=Si(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,3)},set:function(_){_?this.Ff=_i(this.Ff,3):this.Ff=Si(this.Ff,3)}});var E=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(E!==null)return E},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');E=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(E){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:E=2;break;case"center":case 1:E=1;break;default:E=0}}})};Va(go,Ho);var lc=function(){go.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(i){e=i}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Cy(n,this.objId,this.scope)},set:function(i){var r,s;s=[],typeof(r=i)=="string"&&(s=(function(o,c,u){u||(u=1);for(var h,d=[];h=c.exec(o);)d.push(h[u]);return d})(r,/\((.*?)\)/g)),n=s}}),this.getOptions=function(){return n},this.setOptions=function(i){n=i,this.sort&&n.sort()},this.addOption=function(i){i=(i=i||"").toString(),n.push(i),this.sort&&n.sort()},this.removeOption=function(i,r){for(r=r||!1,i=(i=i||"").toString();n.indexOf(i)!==-1&&(n.splice(n.indexOf(i),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,18)},set:function(i){i?this.Ff=_i(this.Ff,18):this.Ff=Si(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,19)},set:function(i){this.combo===!0&&(i?this.Ff=_i(this.Ff,19):this.Ff=Si(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,20)},set:function(i){i?(this.Ff=_i(this.Ff,20),n.sort()):this.Ff=Si(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,22)},set:function(i){i?this.Ff=_i(this.Ff,22):this.Ff=Si(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,23)},set:function(i){i?this.Ff=_i(this.Ff,23):this.Ff=Si(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,27)},set:function(i){i?this.Ff=_i(this.Ff,27):this.Ff=Si(this.Ff,27)}}),this.hasAppearanceStream=!1};Va(lc,go);var uc=function(){lc.call(this),this.fontName="helvetica",this.combo=!1};Va(uc,lc);var cc=function(){uc.call(this),this.combo=!0};Va(cc,uc);var Uh=function(){cc.call(this),this.edit=!0};Va(Uh,cc);var Xi=function(){go.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,15)},set:function(i){i?this.Ff=_i(this.Ff,15):this.Ff=Si(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,16)},set:function(i){i?this.Ff=_i(this.Ff,16):this.Ff=Si(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,17)},set:function(i){i?this.Ff=_i(this.Ff,17):this.Ff=Si(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,26)},set:function(i){i?this.Ff=_i(this.Ff,26):this.Ff=Si(this.Ff,26)}});var e,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};if(this.scope&&(i=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var r,s=[];for(r in s.push("<<"),n)s.push("/"+r+" ("+au(i(n[r]))+")");return s.push(">>"),s.join(`
`)}},set:function(i){An(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(i){e="/"+i}})};Va(Xi,go);var qh=function(){Xi.call(this),this.pushButton=!0};Va(qh,Xi);var fc=function(){Xi.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n!==void 0?n:[]}})};Va(fc,Xi);var ed=function(){var e,n;go.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(s){e=s}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(s){n=s}});var i,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var s=function(u){return u};this.scope&&(s=this.scope.internal.getEncryptor(this.objId));var o,c=[];for(o in c.push("<<"),r)c.push("/"+o+" ("+au(s(r[o]))+")");return c.push(">>"),c.join(`
`)},set:function(s){An(s)==="object"&&(r=s)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(s){typeof s=="string"&&(r.CA=s)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(s){i=s}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(s){i="/"+s}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=xt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Va(ed,go),fc.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var i=this.Kids[n];i.appearanceStreamContent=e.createAppearanceStream(i.optionName),i.caption=e.getCA()}},fc.prototype.createOption=function(e){var n=new ed;return n.Parent=this,n.optionName=e,this.Kids.push(n),J8.call(this.scope,n),n};var Hh=function(){Xi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=xt.CheckBox.createAppearanceStream()};Va(Hh,Xi);var $l=function(){go.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,13)},set:function(n){n?this.Ff=_i(this.Ff,13):this.Ff=Si(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,21)},set:function(n){n?this.Ff=_i(this.Ff,21):this.Ff=Si(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,23)},set:function(n){n?this.Ff=_i(this.Ff,23):this.Ff=Si(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,24)},set:function(n){n?this.Ff=_i(this.Ff,24):this.Ff=Si(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,25)},set:function(n){n?this.Ff=_i(this.Ff,25):this.Ff=Si(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,26)},set:function(n){n?this.Ff=_i(this.Ff,26):this.Ff=Si(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){Number.isInteger(n)&&(e=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Va($l,go);var Yh=function(){$l.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!wi(this.Ff,14)},set:function(e){e?this.Ff=_i(this.Ff,14):this.Ff=Si(this.Ff,14)}}),this.password=!0};Va(Yh,$l);var xt={CheckBox:{createAppearanceStream:function(){return{N:{On:xt.CheckBox.YesNormal},D:{On:xt.CheckBox.YesPushDown,Off:xt.CheckBox.OffPushDown}}},YesPushDown:function(e){var n=Fo(e);n.scope=e.scope;var i=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,s=e.scope.__private__.encodeColorString(e.color),o=Dm(e,e.caption);return i.push("0.749023 g"),i.push("0 0 "+Yt(xt.internal.getWidth(e))+" "+Yt(xt.internal.getHeight(e))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+r+" "+Yt(o.fontSize)+" Tf "+s),i.push("BT"),i.push(o.text),i.push("ET"),i.push("Q"),i.push("EMC"),n.stream=i.join(`
`),n},YesNormal:function(e){var n=Fo(e);n.scope=e.scope;var i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),s=[],o=xt.internal.getHeight(e),c=xt.internal.getWidth(e),u=Dm(e,e.caption);return s.push("1 g"),s.push("0 0 "+Yt(c)+" "+Yt(o)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+Yt(c-1)+" "+Yt(o-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+i+" "+Yt(u.fontSize)+" Tf "+r),s.push(u.text),s.push("ET"),s.push("Q"),n.stream=s.join(`
`),n},OffPushDown:function(e){var n=Fo(e);n.scope=e.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Yt(xt.internal.getWidth(e))+" "+Yt(xt.internal.getHeight(e))+" re"),i.push("f"),n.stream=i.join(`
`),n}},RadioButton:{Circle:{createAppearanceStream:function(e){var n={D:{Off:xt.RadioButton.Circle.OffPushDown},N:{}};return n.N[e]=xt.RadioButton.Circle.YesNormal,n.D[e]=xt.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(e){var n=Fo(e);n.scope=e.scope;var i=[],r=xt.internal.getWidth(e)<=xt.internal.getHeight(e)?xt.internal.getWidth(e)/4:xt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var s=xt.internal.Bezier_C,o=Number((r*s).toFixed(5));return i.push("q"),i.push("1 0 0 1 "+cl(xt.internal.getWidth(e)/2)+" "+cl(xt.internal.getHeight(e)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),i.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),i.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),i.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join(`
`),n},YesPushDown:function(e){var n=Fo(e);n.scope=e.scope;var i=[],r=xt.internal.getWidth(e)<=xt.internal.getHeight(e)?xt.internal.getWidth(e)/4:xt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var s=Number((2*r).toFixed(5)),o=Number((s*xt.internal.Bezier_C).toFixed(5)),c=Number((r*xt.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+cl(xt.internal.getWidth(e)/2)+" "+cl(xt.internal.getHeight(e)/2)+" cm"),i.push(s+" 0 m"),i.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),i.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),i.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),i.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),i.push("f"),i.push("Q"),i.push("0 g"),i.push("q"),i.push("1 0 0 1 "+cl(xt.internal.getWidth(e)/2)+" "+cl(xt.internal.getHeight(e)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+c+" "+c+" "+r+" 0 "+r+" c"),i.push("-"+c+" "+r+" -"+r+" "+c+" -"+r+" 0 c"),i.push("-"+r+" -"+c+" -"+c+" -"+r+" 0 -"+r+" c"),i.push(c+" -"+r+" "+r+" -"+c+" "+r+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join(`
`),n},OffPushDown:function(e){var n=Fo(e);n.scope=e.scope;var i=[],r=xt.internal.getWidth(e)<=xt.internal.getHeight(e)?xt.internal.getWidth(e)/4:xt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var s=Number((2*r).toFixed(5)),o=Number((s*xt.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+cl(xt.internal.getWidth(e)/2)+" "+cl(xt.internal.getHeight(e)/2)+" cm"),i.push(s+" 0 m"),i.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),i.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),i.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),i.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join(`
`),n}},Cross:{createAppearanceStream:function(e){var n={D:{Off:xt.RadioButton.Cross.OffPushDown},N:{}};return n.N[e]=xt.RadioButton.Cross.YesNormal,n.D[e]=xt.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(e){var n=Fo(e);n.scope=e.scope;var i=[],r=xt.internal.calculateCross(e);return i.push("q"),i.push("1 1 "+Yt(xt.internal.getWidth(e)-2)+" "+Yt(xt.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push(Yt(r.x1.x)+" "+Yt(r.x1.y)+" m"),i.push(Yt(r.x2.x)+" "+Yt(r.x2.y)+" l"),i.push(Yt(r.x4.x)+" "+Yt(r.x4.y)+" m"),i.push(Yt(r.x3.x)+" "+Yt(r.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join(`
`),n},YesPushDown:function(e){var n=Fo(e);n.scope=e.scope;var i=xt.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+Yt(xt.internal.getWidth(e))+" "+Yt(xt.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Yt(xt.internal.getWidth(e)-2)+" "+Yt(xt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Yt(i.x1.x)+" "+Yt(i.x1.y)+" m"),r.push(Yt(i.x2.x)+" "+Yt(i.x2.y)+" l"),r.push(Yt(i.x4.x)+" "+Yt(i.x4.y)+" m"),r.push(Yt(i.x3.x)+" "+Yt(i.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(`
`),n},OffPushDown:function(e){var n=Fo(e);n.scope=e.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Yt(xt.internal.getWidth(e))+" "+Yt(xt.internal.getHeight(e))+" re"),i.push("f"),n.stream=i.join(`
`),n}}},createDefaultAppearanceStream:function(e){var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color);return"/"+n+" "+e.fontSize+" Tf "+i}};xt.internal={Bezier_C:.551915024494,calculateCross:function(e){var n=xt.internal.getWidth(e),i=xt.internal.getHeight(e),r=Math.min(n,i);return{x1:{x:(n-r)/2,y:(i-r)/2+r},x2:{x:(n-r)/2+r,y:(i-r)/2},x3:{x:(n-r)/2,y:(i-r)/2},x4:{x:(n-r)/2+r,y:(i-r)/2+r}}}},xt.internal.getWidth=function(e){var n=0;return An(e)==="object"&&(n=d5(e.Rect[2])),n},xt.internal.getHeight=function(e){var n=0;return An(e)==="object"&&(n=d5(e.Rect[3])),n};var J8=gi.addField=function(e){if(K8(this,e),!(e instanceof go))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=e).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};gi.AcroFormChoiceField=lc,gi.AcroFormListBox=uc,gi.AcroFormComboBox=cc,gi.AcroFormEditBox=Uh,gi.AcroFormButton=Xi,gi.AcroFormPushButton=qh,gi.AcroFormRadioButton=fc,gi.AcroFormCheckBox=Hh,gi.AcroFormTextField=$l,gi.AcroFormPasswordField=Yh,gi.AcroFormAppearance=xt,gi.AcroForm={ChoiceField:lc,ListBox:uc,ComboBox:cc,EditBox:Uh,Button:Xi,PushButton:qh,RadioButton:fc,CheckBox:Hh,TextField:$l,PasswordField:Yh,Appearance:xt},At.AcroForm={ChoiceField:lc,ListBox:uc,ComboBox:cc,EditBox:Uh,Button:Xi,PushButton:qh,RadioButton:fc,CheckBox:Hh,TextField:$l,PasswordField:Yh,Appearance:xt};At.AcroForm;function zy(e){return e.reduce(function(n,i,r){return n[i]=r,n},{})}(function(e){var n="addImage_";e.__addimage__={};var i="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},s=e.__addimage__.getImageFileTypeByImageData=function(F,T){var X,N,Q,ie,oe,me=i;if((T=T||i)==="RGBA"||F.data!==void 0&&F.data instanceof Uint8ClampedArray&&"height"in F&&"width"in F)return"RGBA";if(J(F))for(oe in r)for(Q=r[oe],X=0;X<Q.length;X+=1){for(ie=!0,N=0;N<Q[X].length;N+=1)if(Q[X][N]!==void 0&&Q[X][N]!==F[N]){ie=!1;break}if(ie===!0){me=oe;break}}else for(oe in r)for(Q=r[oe],X=0;X<Q.length;X+=1){for(ie=!0,N=0;N<Q[X].length;N+=1)if(Q[X][N]!==void 0&&Q[X][N]!==F.charCodeAt(N)){ie=!1;break}if(ie===!0){me=oe;break}}return me===i&&T!==i&&(me=T),me},o=function F(T){for(var X=this.internal.write,N=this.internal.putStream,Q=(0,this.internal.getFilters)();Q.indexOf("FlateEncode")!==-1;)Q.splice(Q.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var ie=[];if(ie.push({key:"Type",value:"/XObject"}),ie.push({key:"Subtype",value:"/Image"}),ie.push({key:"Width",value:T.width}),ie.push({key:"Height",value:T.height}),T.colorSpace===_.INDEXED?ie.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(ie.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===_.DEVICE_CMYK&&ie.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ie.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&ie.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)&&T.transparency.length>0){for(var oe="",me=0,ge=T.transparency.length;me<ge;me++)oe+=T.transparency[me]+" "+T.transparency[me]+" ";ie.push({key:"Mask",value:"["+oe+"]"})}T.sMask!==void 0&&ie.push({key:"SMask",value:T.objectId+1+" 0 R"});var Z=T.filter!==void 0?["/"+T.filter]:void 0;if(N({data:T.data,additionalKeyValues:ie,alreadyAppliedFilters:Z,objectId:T.objectId}),X("endobj"),"sMask"in T&&T.sMask!==void 0){var I,L=(I=T.sMaskBitsPerComponent)!==null&&I!==void 0?I:T.bitsPerComponent,z={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:L,data:T.sMask};"filter"in T&&(z.decodeParameters="/Predictor ".concat(T.predictor," /Colors 1 /BitsPerComponent ").concat(L," /Columns ").concat(T.width),z.filter=T.filter),F.call(this,z)}if(T.colorSpace===_.INDEXED){var V=this.internal.newObject();N({data:ne(new Uint8Array(T.palette)),objectId:V}),X("endobj")}},c=function(){var F=this.internal.collections[n+"images"];for(var T in F)o.call(this,F[T])},u=function(){var F,T=this.internal.collections[n+"images"],X=this.internal.write;for(var N in T)X("/I"+(F=T[N]).index,F.objectId,"0","R")},h=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",u))},d=function(){var F=this.internal.collections[n+"images"];return h.call(this),F},m=function(){return Object.keys(this.internal.collections[n+"images"]).length},y=function(F){return typeof e["process"+F.toUpperCase()]=="function"},w=function(F){return An(F)==="object"&&F.nodeType===1},p=function(F,T){if(F.nodeName==="IMG"&&F.hasAttribute("src")){var X=""+F.getAttribute("src");if(X.indexOf("data:image/")===0)return Fh(unescape(X).split("base64,").pop());var N=e.loadFile(X,!0);if(N!==void 0)return N}if(F.nodeName==="CANVAS"){if(F.width===0||F.height===0)throw new Error("Given canvas must have data. Canvas width: "+F.width+", height: "+F.height);var Q;switch(T){case"PNG":Q="image/png";break;case"WEBP":Q="image/webp";break;default:Q="image/jpeg"}return Fh(F.toDataURL(Q,1).split("base64,").pop())}},A=function(F){var T=this.internal.collections[n+"images"];if(T){for(var X in T)if(F===T[X].alias)return T[X]}},S=function(F,T,X){return F||T||(F=-96,T=-96),F<0&&(F=-1*X.width*72/F/this.internal.scaleFactor),T<0&&(T=-1*X.height*72/T/this.internal.scaleFactor),F===0&&(F=T*X.width/X.height),T===0&&(T=F*X.height/X.width),[F,T]},E=function(F,T,X,N,Q,ie){var oe=S.call(this,X,N,Q),me=this.internal.getCoordinateString,ge=this.internal.getVerticalCoordinateString,Z=d.call(this);if(X=oe[0],N=oe[1],Z[Q.index]=Q,ie){ie*=Math.PI/180;var I=Math.cos(ie),L=Math.sin(ie),z=function(ee){return ee.toFixed(4)},V=[z(I),z(L),z(-1*L),z(I),0,0,"cm"]}this.internal.write("q"),ie?(this.internal.write([1,"0","0",1,me(F),ge(T+N),"cm"].join(" ")),this.internal.write(V.join(" ")),this.internal.write([me(X),"0","0",me(N),"0","0","cm"].join(" "))):this.internal.write([me(X),"0","0",me(N),me(F),ge(T+N),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Q.index+" Do"),this.internal.write("Q")},_=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var j=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},O=e.__addimage__.sHashCode=function(F){var T,X,N=0;if(typeof F=="string")for(X=F.length,T=0;T<X;T++)N=(N<<5)-N+F.charCodeAt(T),N|=0;else if(J(F))for(X=F.byteLength/2,T=0;T<X;T++)N=(N<<5)-N+F[T],N|=0;return N},P=e.__addimage__.validateStringAsBase64=function(F){(F=F||"").toString().trim();var T=!0;return F.length===0&&(T=!1),F.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(F.substr(0,F.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(F.substr(-2))===!1&&(T=!1),T},G=e.__addimage__.extractImageFromDataUrl=function(F){if(F==null||!(F=F.trim()).startsWith("data:"))return null;var T=F.indexOf(",");return T<0?null:F.substring(0,T).trim().endsWith("base64")?F.substring(T+1):null};e.__addimage__.isArrayBuffer=function(F){return F instanceof ArrayBuffer};var J=e.__addimage__.isArrayBufferView=function(F){return F instanceof Int8Array||F instanceof Uint8Array||F instanceof Uint8ClampedArray||F instanceof Int16Array||F instanceof Uint16Array||F instanceof Int32Array||F instanceof Uint32Array||F instanceof Float32Array||F instanceof Float64Array},ae=e.__addimage__.binaryStringToUint8Array=function(F){for(var T=F.length,X=new Uint8Array(T),N=0;N<T;N++)X[N]=F.charCodeAt(N);return X},ne=e.__addimage__.arrayBufferToBinaryString=function(F){for(var T="",X=J(F)?F:new Uint8Array(F),N=0;N<X.length;N+=8192)T+=String.fromCharCode.apply(null,X.subarray(N,N+8192));return T};e.addImage=function(){var F,T,X,N,Q,ie,oe,me,ge;if(typeof arguments[1]=="number"?(T=i,X=arguments[1],N=arguments[2],Q=arguments[3],ie=arguments[4],oe=arguments[5],me=arguments[6],ge=arguments[7]):(T=arguments[1],X=arguments[2],N=arguments[3],Q=arguments[4],ie=arguments[5],oe=arguments[6],me=arguments[7],ge=arguments[8]),An(F=arguments[0])==="object"&&!w(F)&&"imageData"in F){var Z=F;F=Z.imageData,T=Z.format||T||i,X=Z.x||X||0,N=Z.y||N||0,Q=Z.w||Z.width||Q,ie=Z.h||Z.height||ie,oe=Z.alias||oe,me=Z.compression||me,ge=Z.rotation||Z.angle||ge}var I=this.internal.getFilters();if(me===void 0&&I.indexOf("FlateEncode")!==-1&&(me="SLOW"),isNaN(X)||isNaN(N))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var L=U.call(this,F,T,oe,me);return E.call(this,X,N,Q,ie,L,ge),this};var U=function(F,T,X,N){var Q,ie,oe;if(typeof F=="string"&&s(F)===i){F=unescape(F);var me=le(F,!1);(me!==""||(me=e.loadFile(F,!0))!==void 0)&&(F=me)}if(w(F)&&(F=p(F,T)),T=s(F,T),!y(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((oe=X)==null||oe.length===0)&&(X=(function(ge){return typeof ge=="string"||J(ge)?O(ge):J(ge.data)?O(ge.data):null})(F)),(Q=A.call(this,X))||(F instanceof Uint8Array||T==="RGBA"||(ie=F,F=ae(F)),Q=this["process"+T.toUpperCase()](F,m.call(this),X,(function(ge){return ge&&typeof ge=="string"&&(ge=ge.toUpperCase()),ge in e.image_compression?ge:j.NONE})(N),ie)),!Q)throw new Error("An unknown error occurred whilst processing the image.");return Q},le=e.__addimage__.convertBase64ToBinaryString=function(F,T){T=typeof T!="boolean"||T;var X,N="";if(typeof F=="string"){var Q;X=(Q=G(F))!==null&&Q!==void 0?Q:F;try{N=Fh(X)}catch(ie){if(T)throw P(X)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ie.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return N};e.getImageProperties=function(F){var T,X,N="";if(w(F)&&(F=p(F)),typeof F=="string"&&s(F)===i&&((N=le(F,!1))===""&&(N=e.loadFile(F)||""),F=N),X=s(F),!y(X))throw new Error("addImage does not support files of type '"+X+"', please ensure that a plugin for '"+X+"' support is added.");if(F instanceof Uint8Array||(F=ae(F)),!(T=this["process"+X.toUpperCase()](F)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=X,T}})(At.API),(function(e){var n=function(i){if(i!==void 0&&i!="")return!0};At.API.events.push(["addPage",function(i){this.internal.getPageInfo(i.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(i){for(var r,s,o,c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,h=this.internal.getPageInfoByObjId(i.objId),d=i.pageContext.annotations,m=!1,y=0;y<d.length&&!m;y++)switch((r=d[y]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var w=0;w<d.length;w++){r=d[w];var p=this.internal.pdfEscape,A=this.internal.getEncryptor(i.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var S=this.internal.newAdditionalObject(),E=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(S.objId),j=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(s="/Rect ["+c(r.bounds.x)+" "+u(r.bounds.y+r.bounds.h)+" "+c(r.bounds.x+r.bounds.w)+" "+u(r.bounds.y)+"] ")+"/Contents ("+p(_(r.contents))+")",o+=" /Popup "+E.objId+" 0 R",o+=" /P "+h.objId+" 0 R",o+=" /T ("+p(_(j))+") >>",S.content=o;var O=S.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+c(r.bounds.x+30)+" "+u(r.bounds.y+r.bounds.h)+" "+c(r.bounds.x+r.bounds.w+30)+" "+u(r.bounds.y)+"] ")+" /Parent "+O,r.open&&(o+=" /Open true"),o+=" >>",E.content=o,this.internal.write(S.objId,"0 R",E.objId,"0 R");break;case"freetext":s="/Rect ["+c(r.bounds.x)+" "+u(r.bounds.y)+" "+c(r.bounds.x+r.bounds.w)+" "+u(r.bounds.y+r.bounds.h)+"] ";var P=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+p(A(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+P+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var G=this.annotations._nameMap[r.options.name];r.options.pageNumber=G.page,r.options.top=G.y}else r.options.top||(r.options.top=0);if(s="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+p(A(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var J=u(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+J+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(i){var r=this.internal.getCurrentPageInfo();switch(i.type){case"link":this.link(i.bounds.x,i.bounds.y,i.bounds.w,i.bounds.h,i);break;case"text":case"freetext":r.pageContext.annotations.push(i)}},e.link=function(i,r,s,o,c){var u=this.internal.getCurrentPageInfo(),h=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;u.pageContext.annotations.push({finalBounds:{x:h(i),y:d(r),w:h(i+s),h:d(r+o)},options:c,type:"link"})},e.textWithLink=function(i,r,s,o){var c,u,h=this.getTextWidth(i),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){u=o.maxWidth;var m=this.splitTextToSize(i,u).length;c=Math.ceil(d*m)}else u=h,c=d;return this.text(i,r,s,o),s+=.2*d,o.align==="center"&&(r-=h/2),o.align==="right"&&(r-=h),this.link(r,s-d,u,c,o),h},e.getTextWidth=function(i){var r=this.internal.getFontSize();return this.getStringUnitWidth(i)*r/this.internal.scaleFactor}})(At.API),(function(e){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},i={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(S){return n[S.charCodeAt(0)]!==void 0},c=e.__arabicParser__.isArabicLetter=function(S){return typeof S=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(S)},u=e.__arabicParser__.isArabicEndLetter=function(S){return c(S)&&o(S)&&n[S.charCodeAt(0)].length<=2},h=e.__arabicParser__.isArabicAlfLetter=function(S){return c(S)&&s.indexOf(S.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(S){return c(S)&&o(S)&&n[S.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(S){return c(S)&&o(S)&&n[S.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(S){return c(S)&&o(S)&&n[S.charCodeAt(0)].length>=3};var m=e.__arabicParser__.arabicLetterHasMedialForm=function(S){return c(S)&&o(S)&&n[S.charCodeAt(0)].length==4},y=e.__arabicParser__.resolveLigatures=function(S){var E=0,_=i,j="",O=0;for(E=0;E<S.length;E+=1)_[S.charCodeAt(E)]!==void 0?(O++,typeof(_=_[S.charCodeAt(E)])=="number"&&(j+=String.fromCharCode(_),_=i,O=0),E===S.length-1&&(_=i,j+=S.charAt(E-(O-1)),E-=O-1,O=0)):(_=i,j+=S.charAt(E-O),E-=O,O=0);return j};e.__arabicParser__.isArabicDiacritic=function(S){return S!==void 0&&r[S.charCodeAt(0)]!==void 0};var w=e.__arabicParser__.getCorrectForm=function(S,E,_){return c(S)?o(S)===!1?-1:!d(S)||!c(E)&&!c(_)||!c(_)&&u(E)||u(S)&&!c(E)||u(S)&&h(E)||u(S)&&u(E)?0:m(S)&&c(E)&&!u(E)&&c(_)&&d(_)?3:u(S)||!c(_)?1:2:-1},p=function(S){var E=0,_=0,j=0,O="",P="",G="",J=(S=S||"").split("\\s+"),ae=[];for(E=0;E<J.length;E+=1){for(ae.push(""),_=0;_<J[E].length;_+=1)O=J[E][_],P=J[E][_-1],G=J[E][_+1],c(O)?(j=w(O,P,G),ae[E]+=j!==-1?String.fromCharCode(n[O.charCodeAt(0)][j]):O):ae[E]+=O;ae[E]=y(ae[E])}return ae.join(" ")},A=e.__arabicParser__.processArabic=e.processArabic=function(){var S,E=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(E)){var j=0;for(_=[],j=0;j<E.length;j+=1)Array.isArray(E[j])?_.push([p(E[j][0]),E[j][1],E[j][2]]):_.push([p(E[j])]);S=_}else S=p(E);return typeof arguments[0]=="string"?S:(arguments[0].text=S,arguments[0])};e.events.push(["preProcessText",A])})(At.API),At.API.autoPrint=function(e){var n;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+n+" 0 R")})),this},(function(e){var n=function(){var i=void 0;Object.defineProperty(this,"pdf",{get:function(){return i},set:function(u){i=u}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(u){r=isNaN(u)||Number.isInteger(u)===!1||u<0?150:u,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(u){s=isNaN(u)||Number.isInteger(u)===!1||u<0?300:u,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(u){o=u}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(u){c=u}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(i,r){var s;if((i=i||"2d")!=="2d")return null;for(s in r)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=r[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(At.API),(function(e){var n={left:0,top:0,bottom:0,right:0},i=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var h=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return h},set:function(S){h=S}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(S){d=S}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(S){m=S}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(S){y=S}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(S){w=S}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(S){p=S}});var A=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return A},set:function(S){A=S}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(h){return r.call(this),this.internal.__cell__.headerFunction=typeof h=="function"?h:void 0,this},e.getTextDimensions=function(h,d){r.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),y=d.font||this.getFont(),w=d.scaleFactor||this.internal.scaleFactor,p=0,A=0,S=0,E=this;if(!Array.isArray(h)&&typeof h!="string"){if(typeof h!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");h=String(h)}var _=d.maxWidth;_>0?typeof h=="string"?h=this.splitTextToSize(h,_):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(O,P){return O.concat(E.splitTextToSize(P,_))},[])):h=Array.isArray(h)?h:[h];for(var j=0;j<h.length;j++)p<(S=this.getStringUnitWidth(h[j],{font:y})*m)&&(p=S);return p!==0&&(A=h.length),{w:p/=w,h:Math.max((A*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/w,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var h=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new o(h.left,h.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=e.cell=function(){var h;h=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var d=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,y=this.internal.__cell__.margins||n,w=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===h.lineNumber?(h.x=(d.x||0)+(d.width||0),h.y=d.y||0):d.y+d.height+h.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),h.y=y.top,p&&w&&(this.printHeaderRow(h.lineNumber,!0),h.y+=w[0].height)):h.y=d.y+d.height||h.y),h.text[0]!==void 0&&(this.rect(h.x,h.y,h.width,h.height,i===!0?"FD":void 0),h.align==="right"?this.text(h.text,h.x+h.width-m,h.y+m,{align:"right",baseline:"top"}):h.align==="center"?this.text(h.text,h.x+h.width/2,h.y+m,{align:"center",baseline:"top",maxWidth:h.width-m-m}):this.text(h.text,h.x+m,h.y+m,{align:"left",baseline:"top",maxWidth:h.width-m-m})),this.internal.__cell__.lastCell=h,this};e.table=function(h,d,m,y,w){if(r.call(this),!m)throw new Error("No data for PDF table.");var p,A,S,E,_=[],j=[],O=[],P={},G={},J=[],ae=[],ne=(w=w||{}).autoSize||!1,U=w.printHeaders!==!1,le=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,F=w.margins||Object.assign({width:this.getPageWidth()},n),T=typeof w.padding=="number"?w.padding:3,X=w.headerBackgroundColor||"#c8c8c8",N=w.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=U,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=le,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=X,this.internal.__cell__.headerTextColor=N,this.setFontSize(le),y==null)j=_=Object.keys(m[0]),O=_.map(function(){return"left"});else if(Array.isArray(y)&&An(y[0])==="object")for(_=y.map(function(Z){return Z.name}),j=y.map(function(Z){return Z.prompt||Z.name||""}),O=y.map(function(Z){return Z.align||"left"}),p=0;p<y.length;p+=1)G[y[p].name]=.7499990551181103*y[p].width;else Array.isArray(y)&&typeof y[0]=="string"&&(j=_=y,O=_.map(function(){return"left"}));if(ne||Array.isArray(y)&&typeof y[0]=="string")for(p=0;p<_.length;p+=1){for(P[E=_[p]]=m.map(function(Z){return Z[E]}),this.setFont(void 0,"bold"),J.push(this.getTextDimensions(j[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),A=P[E],this.setFont(void 0,"normal"),S=0;S<A.length;S+=1)J.push(this.getTextDimensions(A[S],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);G[E]=Math.max.apply(null,J)+T+T,J=[]}if(U){var Q={};for(p=0;p<_.length;p+=1)Q[_[p]]={},Q[_[p]].text=j[p],Q[_[p]].align=O[p];var ie=u.call(this,Q,G);ae=_.map(function(Z){return new o(h,d,G[Z],ie,Q[Z].text,void 0,Q[Z].align)}),this.setTableHeaderRow(ae),this.printHeaderRow(1,!1)}var oe=y.reduce(function(Z,I){return Z[I.name]=I.align,Z},{});for(p=0;p<m.length;p+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:p,data:m[p]},this);var me=u.call(this,m[p],G);for(S=0;S<_.length;S+=1){var ge=m[p][_[S]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:p,col:S,data:ge},this),c.call(this,new o(h,d,G[_[S]],me,ge,p+2,oe[_[S]]))}}return this.internal.__cell__.table_x=h,this.internal.__cell__.table_y=d,this};var u=function(h,d){var m=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(h).map(function(p){var A=h[p];return this.splitTextToSize(A.hasOwnProperty("text")?A.text:A,d[p]-m-m)},this).map(function(p){return this.getLineHeightFactor()*p.length*y/w+m+m},this).reduce(function(p,A){return Math.max(p,A)},0)};e.setTableHeaderRow=function(h){r.call(this),this.internal.__cell__.tableHeaderRow=h},e.printHeaderRow=function(h,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(i=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){m=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(m.y=this.internal.__cell__.margins.top||0,w.push(m)),m.lineNumber=h;var A=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,m),this.setTextColor(A)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),i=!1}})(At.API);var Ty={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},jy=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Mm=zy(jy),Ry=[100,200,300,400,500,600,700,800,900],Q8=zy(Ry);function em(e){var n=e.family.replace(/"|'/g,"").toLowerCase(),i=(function(o){return Ty[o=o||"normal"]?o:"normal"})(e.style),r=(function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400})(e.weight),s=(function(o){return typeof Mm[o=o||"normal"]=="number"?o:"normal"})(e.stretch);return{family:n,style:i,weight:r,stretch:s,src:e.src||[],ref:e.ref||{name:n,style:[s,i,r].join(" ")}}}function p5(e,n,i,r){var s;for(s=i;s>=0&&s<n.length;s+=r)if(e[n[s]])return e[n[s]];for(s=i;s>=0&&s<n.length;s-=r)if(e[n[s]])return e[n[s]]}var $8={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},m5={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function g5(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function v5(e){return e.trimLeft()}function e_(e,n){for(var i=0;i<e.length;){if(e.charAt(i)===n)return[e.substring(0,i),e.substring(i+1)];i+=1}return null}function t_(e){var n=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],e.substring(n[0].length)]}var Th,y5,b5,tc,jh,x5,w5,_5,tm=["times"];function S5(e,n,i,r,s){var o=4,c=A5;switch(s){case At.API.image_compression.FAST:o=1,c=k5;break;case At.API.image_compression.MEDIUM:o=6,c=N5;break;case At.API.image_compression.SLOW:o=9,c=C5}e=(function(h,d,m,y){for(var w,p=h.length/d,A=new Uint8Array(h.length+p),S=[n_,k5,A5,N5,C5],E=0;E<p;E+=1){var _=E*d,j=h.subarray(_,_+d);if(y)A.set(y(j,m,w),_+E);else{for(var O=S.length,P=[],G=0;G<O;G+=1)P[G]=S[G](j,m,w);var J=a_(P.concat());A.set(P[J],_+E)}w=j}return A})(e,n,Math.ceil(i*r/8),c);var u=Lm(e,{level:o});return At.API.__addimage__.arrayBufferToBinaryString(u)}function n_(e){var n=Array.apply([],e);return n.unshift(0),n}function k5(e,n){var i=e.length,r=[];r[0]=1;for(var s=0;s<i;s+=1){var o=e[s-n]||0;r[s+1]=e[s]-o+256&255}return r}function A5(e,n,i){var r=e.length,s=[];s[0]=2;for(var o=0;o<r;o+=1){var c=i&&i[o]||0;s[o+1]=e[o]-c+256&255}return s}function N5(e,n,i){var r=e.length,s=[];s[0]=3;for(var o=0;o<r;o+=1){var c=e[o-n]||0,u=i&&i[o]||0;s[o+1]=e[o]+256-(c+u>>>1)&255}return s}function C5(e,n,i){var r=e.length,s=[];s[0]=4;for(var o=0;o<r;o+=1){var c=i_(e[o-n]||0,i&&i[o]||0,i&&i[o-n]||0);s[o+1]=e[o]-c+256&255}return s}function i_(e,n,i){if(e===n&&n===i)return e;var r=Math.abs(n-i),s=Math.abs(e-i),o=Math.abs(e+n-i-i);return r<=s&&r<=o?e:s<=o?n:i}function a_(e){var n=e.map(function(i){return i.reduce(function(r,s){return r+Math.abs(s)},0)});return n.indexOf(Math.min.apply(null,n))}function nm(e,n,i){var r=n*i,s=Math.floor(r/8),o=16-(r-8*s+i),c=(1<<i)-1;return Oy(e,s)>>o&c}function E5(e,n,i,r){var s=i*r,o=Math.floor(s/8),c=16-(s-8*o+r),u=(1<<r)-1,h=(n&u)<<c;(function(d,m,y){if(m+1<d.byteLength)d.setUint16(m,y,!1);else{var w=y>>8&255;d.setUint8(m,w)}})(e,o,Oy(e,o)&~(u<<c)&65535|h)}function Oy(e,n){return n+1<e.byteLength?e.getUint16(n,!1):e.getUint8(n)<<8}function r_(e){var n=0;if(e[n++]!==71||e[n++]!==73||e[n++]!==70||e[n++]!==56||(e[n++]+1&253)!=56||e[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var i=e[n++]|e[n++]<<8,r=e[n++]|e[n++]<<8,s=e[n++],o=s>>7,c=1<<1+(7&s);e[n++],e[n++];var u=null,h=null;o&&(u=n,h=c,n+=3*c);var d=!0,m=[],y=0,w=null,p=0,A=null;for(this.width=i,this.height=r;d&&n<e.length;)switch(e[n++]){case 33:switch(e[n++]){case 255:if(e[n]!==11||e[n+1]==78&&e[n+2]==69&&e[n+3]==84&&e[n+4]==83&&e[n+5]==67&&e[n+6]==65&&e[n+7]==80&&e[n+8]==69&&e[n+9]==50&&e[n+10]==46&&e[n+11]==48&&e[n+12]==3&&e[n+13]==1&&e[n+16]==0)n+=14,A=e[n++]|e[n++]<<8,n++;else for(n+=12;;){if(!((F=e[n++])>=0))throw Error("Invalid block size");if(F===0)break;n+=F}break;case 249:if(e[n++]!==4||e[n+4]!==0)throw new Error("Invalid graphics extension block.");var S=e[n++];y=e[n++]|e[n++]<<8,w=e[n++],1&S||(w=null),p=S>>2&7,n++;break;case 254:for(;;){if(!((F=e[n++])>=0))throw Error("Invalid block size");if(F===0)break;n+=F}break;default:throw new Error("Unknown graphic control label: 0x"+e[n-1].toString(16))}break;case 44:var E=e[n++]|e[n++]<<8,_=e[n++]|e[n++]<<8,j=e[n++]|e[n++]<<8,O=e[n++]|e[n++]<<8,P=e[n++],G=P>>6&1,J=1<<1+(7&P),ae=u,ne=h,U=!1;P>>7&&(U=!0,ae=n,ne=J,n+=3*J);var le=n;for(n++;;){var F;if(!((F=e[n++])>=0))throw Error("Invalid block size");if(F===0)break;n+=F}m.push({x:E,y:_,width:j,height:O,has_local_palette:U,palette_offset:ae,palette_size:ne,data_offset:le,data_length:n-le,transparent_index:w,interlaced:!!G,delay:y,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[n-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return A},this.frameInfo=function(T){if(T<0||T>=m.length)throw new Error("Frame index out of range.");return m[T]},this.decodeAndBlitFrameBGRA=function(T,X){var N=this.frameInfo(T),Q=N.width*N.height,ie=new Uint8Array(Q);L5(e,N.data_offset,ie,Q);var oe=N.palette_offset,me=N.transparent_index;me===null&&(me=256);var ge=N.width,Z=i-ge,I=ge,L=4*(N.y*i+N.x),z=4*((N.y+N.height)*i+N.x),V=L,ee=4*Z;N.interlaced===!0&&(ee+=4*i*7);for(var pe=8,we=0,Ae=ie.length;we<Ae;++we){var Ne=ie[we];if(I===0&&(I=ge,(V+=ee)>=z&&(ee=4*Z+4*i*(pe-1),V=L+(ge+Z)*(pe<<1),pe>>=1)),Ne===me)V+=4;else{var Ue=e[oe+3*Ne],Xe=e[oe+3*Ne+1],at=e[oe+3*Ne+2];X[V++]=at,X[V++]=Xe,X[V++]=Ue,X[V++]=255}--I}},this.decodeAndBlitFrameRGBA=function(T,X){var N=this.frameInfo(T),Q=N.width*N.height,ie=new Uint8Array(Q);L5(e,N.data_offset,ie,Q);var oe=N.palette_offset,me=N.transparent_index;me===null&&(me=256);var ge=N.width,Z=i-ge,I=ge,L=4*(N.y*i+N.x),z=4*((N.y+N.height)*i+N.x),V=L,ee=4*Z;N.interlaced===!0&&(ee+=4*i*7);for(var pe=8,we=0,Ae=ie.length;we<Ae;++we){var Ne=ie[we];if(I===0&&(I=ge,(V+=ee)>=z&&(ee=4*Z+4*i*(pe-1),V=L+(ge+Z)*(pe<<1),pe>>=1)),Ne===me)V+=4;else{var Ue=e[oe+3*Ne],Xe=e[oe+3*Ne+1],at=e[oe+3*Ne+2];X[V++]=Ue,X[V++]=Xe,X[V++]=at,X[V++]=255}--I}}}function L5(e,n,i,r){for(var s=e[n++],o=1<<s,c=o+1,u=c+1,h=s+1,d=(1<<h)-1,m=0,y=0,w=0,p=e[n++],A=new Int32Array(4096),S=null;;){for(;m<16&&p!==0;)y|=e[n++]<<m,m+=8,p===1?p=e[n++]:--p;if(m<h)break;var E=y&d;if(y>>=h,m-=h,E!==o){if(E===c)break;for(var _=E<u?E:S,j=0,O=_;O>o;)O=A[O]>>8,++j;var P=O;if(w+j+(_!==E?1:0)>r)return void Mn.log("Warning, gif stream longer than expected.");i[w++]=P;var G=w+=j;for(_!==E&&(i[w++]=P),O=_;j--;)O=A[O],i[--G]=255&O,O>>=8;S!==null&&u<4096&&(A[u++]=S<<8|P,u>=d+1&&h<12&&(++h,d=d<<1|1)),S=E}else u=c+1,d=(1<<(h=s+1))-1,S=null}return w!==r&&Mn.log("Warning, gif stream shorter than expected."),i}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function im(e){var n,i,r,s,o,c=Math.floor,u=new Array(64),h=new Array(64),d=new Array(64),m=new Array(64),y=new Array(65535),w=new Array(65535),p=new Array(64),A=new Array(64),S=[],E=0,_=7,j=new Array(64),O=new Array(64),P=new Array(64),G=new Array(256),J=new Array(2048),ae=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],ne=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],le=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],X=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Q=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ie(L,z){for(var V=0,ee=0,pe=new Array,we=1;we<=16;we++){for(var Ae=1;Ae<=L[we];Ae++)pe[z[ee]]=[],pe[z[ee]][0]=V,pe[z[ee]][1]=we,ee++,V++;V*=2}return pe}function oe(L){for(var z=L[0],V=L[1]-1;V>=0;)z&1<<V&&(E|=1<<_),V--,--_<0&&(E==255?(me(255),me(0)):me(E),_=7,E=0)}function me(L){S.push(L)}function ge(L){me(L>>8&255),me(255&L)}function Z(L,z,V,ee,pe){for(var we,Ae=pe[0],Ne=pe[240],Ue=(function(ce,De){var Re,_e,He,Ee,je,ve,Be,Ge,$e,st,lt=0;for($e=0;$e<8;++$e){Re=ce[lt],_e=ce[lt+1],He=ce[lt+2],Ee=ce[lt+3],je=ce[lt+4],ve=ce[lt+5],Be=ce[lt+6];var Vt=Re+(Ge=ce[lt+7]),ct=Re-Ge,dt=_e+Be,_t=_e-Be,mt=He+ve,pt=He-ve,Ft=Ee+je,Et=Ee-je,Ot=Vt+Ft,dn=Vt-Ft,Mt=dt+mt,wt=dt-mt;ce[lt]=Ot+Mt,ce[lt+4]=Ot-Mt;var nn=.707106781*(wt+dn);ce[lt+2]=dn+nn,ce[lt+6]=dn-nn;var Xa=.382683433*((Ot=Et+pt)-(wt=_t+ct)),Fi=.5411961*Ot+Xa,gr=1.306562965*wt+Xa,Aa=.707106781*(Mt=pt+_t),Nt=ct+Aa,Br=ct-Aa;ce[lt+5]=Br+Fi,ce[lt+3]=Br-Fi,ce[lt+1]=Nt+gr,ce[lt+7]=Nt-gr,lt+=8}for(lt=0,$e=0;$e<8;++$e){Re=ce[lt],_e=ce[lt+8],He=ce[lt+16],Ee=ce[lt+24],je=ce[lt+32],ve=ce[lt+40],Be=ce[lt+48];var vr=Re+(Ge=ce[lt+56]),da=Re-Ge,pa=_e+Be,Bn=_e-Be,si=He+ve,ki=He-ve,yo=Ee+je,Zi=Ee-je,wn=vr+yo,Fn=vr-yo,Ui=pa+si,ma=pa-si;ce[lt]=wn+Ui,ce[lt+32]=wn-Ui;var Na=.707106781*(ma+Fn);ce[lt+16]=Fn+Na,ce[lt+48]=Fn-Na;var Xo=.382683433*((wn=Zi+ki)-(ma=Bn+da)),Za=.5411961*wn+Xo,Ka=1.306562965*ma+Xo,bo=.707106781*(Ui=ki+Bn),Ja=da+bo,Qa=da-bo;ce[lt+40]=Qa+Za,ce[lt+24]=Qa-Za,ce[lt+8]=Ja+Ka,ce[lt+56]=Ja-Ka,lt++}for($e=0;$e<64;++$e)st=ce[$e]*De[$e],p[$e]=st>0?st+.5|0:st-.5|0;return p})(L,z),Xe=0;Xe<64;++Xe)A[ae[Xe]]=Ue[Xe];var at=A[0]-V;V=A[0],at==0?oe(ee[0]):(oe(ee[w[we=32767+at]]),oe(y[we]));for(var rt=63;rt>0&&A[rt]==0;)rt--;if(rt==0)return oe(Ae),V;for(var M,Y=1;Y<=rt;){for(var xe=Y;A[Y]==0&&Y<=rt;)++Y;var ue=Y-xe;if(ue>=16){M=ue>>4;for(var re=1;re<=M;++re)oe(Ne);ue&=15}we=32767+A[Y],oe(pe[(ue<<4)+w[we]]),oe(y[we]),Y++}return rt!=63&&oe(Ae),V}function I(L){L=Math.min(Math.max(L,1),100),o!=L&&((function(z){for(var V=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ee=0;ee<64;ee++){var pe=c((V[ee]*z+50)/100);pe=Math.min(Math.max(pe,1),255),u[ae[ee]]=pe}for(var we=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ae=0;Ae<64;Ae++){var Ne=c((we[Ae]*z+50)/100);Ne=Math.min(Math.max(Ne,1),255),h[ae[Ae]]=Ne}for(var Ue=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Xe=0,at=0;at<8;at++)for(var rt=0;rt<8;rt++)d[Xe]=1/(u[ae[Xe]]*Ue[at]*Ue[rt]*8),m[Xe]=1/(h[ae[Xe]]*Ue[at]*Ue[rt]*8),Xe++})(L<50?Math.floor(5e3/L):Math.floor(200-2*L)),o=L)}this.encode=function(L,z){z&&I(z),S=new Array,E=0,_=7,ge(65496),ge(65504),ge(16),me(74),me(70),me(73),me(70),me(0),me(1),me(1),me(0),ge(1),ge(1),me(0),me(0),(function(){ge(65499),ge(132),me(0);for(var _e=0;_e<64;_e++)me(u[_e]);me(1);for(var He=0;He<64;He++)me(h[He])})(),(function(_e,He){ge(65472),ge(17),me(8),ge(He),ge(_e),me(3),me(1),me(17),me(0),me(2),me(17),me(1),me(3),me(17),me(1)})(L.width,L.height),(function(){ge(65476),ge(418),me(0);for(var _e=0;_e<16;_e++)me(ne[_e+1]);for(var He=0;He<=11;He++)me(U[He]);me(16);for(var Ee=0;Ee<16;Ee++)me(le[Ee+1]);for(var je=0;je<=161;je++)me(F[je]);me(1);for(var ve=0;ve<16;ve++)me(T[ve+1]);for(var Be=0;Be<=11;Be++)me(X[Be]);me(17);for(var Ge=0;Ge<16;Ge++)me(N[Ge+1]);for(var $e=0;$e<=161;$e++)me(Q[$e])})(),ge(65498),ge(12),me(3),me(1),me(0),me(2),me(17),me(3),me(17),me(0),me(63),me(0);var V=0,ee=0,pe=0;E=0,_=7,this.encode.displayName="_encode_";for(var we,Ae,Ne,Ue,Xe,at,rt,M,Y,xe=L.data,ue=L.width,re=L.height,ce=4*ue,De=0;De<re;){for(we=0;we<ce;){for(Xe=ce*De+we,rt=-1,M=0,Y=0;Y<64;Y++)at=Xe+(M=Y>>3)*ce+(rt=4*(7&Y)),De+M>=re&&(at-=ce*(De+1+M-re)),we+rt>=ce&&(at-=we+rt-ce+4),Ae=xe[at++],Ne=xe[at++],Ue=xe[at++],j[Y]=(J[Ae]+J[Ne+256|0]+J[Ue+512|0]>>16)-128,O[Y]=(J[Ae+768|0]+J[Ne+1024|0]+J[Ue+1280|0]>>16)-128,P[Y]=(J[Ae+1280|0]+J[Ne+1536|0]+J[Ue+1792|0]>>16)-128;V=Z(j,d,V,n,r),ee=Z(O,m,ee,i,s),pe=Z(P,m,pe,i,s),we+=32}De+=8}if(_>=0){var Re=[];Re[1]=_+1,Re[0]=(1<<_+1)-1,oe(Re)}return ge(65497),new Uint8Array(S)},e=e||50,(function(){for(var L=String.fromCharCode,z=0;z<256;z++)G[z]=L(z)})(),n=ie(ne,U),i=ie(T,X),r=ie(le,F),s=ie(N,Q),(function(){for(var L=1,z=2,V=1;V<=15;V++){for(var ee=L;ee<z;ee++)w[32767+ee]=V,y[32767+ee]=[],y[32767+ee][1]=V,y[32767+ee][0]=ee;for(var pe=-(z-1);pe<=-L;pe++)w[32767+pe]=V,y[32767+pe]=[],y[32767+pe][1]=V,y[32767+pe][0]=z-1+pe;L<<=1,z<<=1}})(),(function(){for(var L=0;L<256;L++)J[L]=19595*L,J[L+256|0]=38470*L,J[L+512|0]=7471*L+32768,J[L+768|0]=-11059*L,J[L+1024|0]=-21709*L,J[L+1280|0]=32768*L+8421375,J[L+1536|0]=-27439*L,J[L+1792|0]=-5329*L})(),I(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function fo(e,n){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!n,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function z5(e){function n(U){if(!U)throw Error("assert :P")}function i(U,le,F){for(var T=0;4>T;T++)if(U[le+T]!=F.charCodeAt(T))return!0;return!1}function r(U,le,F,T,X){for(var N=0;N<X;N++)U[le+N]=F[T+N]}function s(U,le,F,T){for(var X=0;X<T;X++)U[le+X]=F}function o(U){return new Int32Array(U)}function c(U,le){for(var F=[],T=0;T<U;T++)F.push(new le);return F}function u(U,le){var F=[];return(function T(X,N,Q){for(var ie=Q[N],oe=0;oe<ie&&(X.push(Q.length>N+1?[]:new le),!(Q.length<N+1));oe++)T(X[oe],N+1,Q)})(F,0,U),F}var h=function(){var U=this;function le(g,b){for(var C=1<<b-1>>>0;g&C;)C>>>=1;return C?(g&C-1)+C:g}function F(g,b,C,R,H){n(!(R%C));do g[b+(R-=C)]=H;while(0<R)}function T(g,b,C,R,H){if(n(2328>=H),512>=H)var W=o(512);else if((W=o(H))==null)return 0;return(function(K,te,se,he,Se,Pe){var fe,Ce,Oe=te,We=1<<se,Me=o(16),Ve=o(16);for(n(Se!=0),n(he!=null),n(K!=null),n(0<se),Ce=0;Ce<Se;++Ce){if(15<he[Ce])return 0;++Me[he[Ce]]}if(Me[0]==Se)return 0;for(Ve[1]=0,fe=1;15>fe;++fe){if(Me[fe]>1<<fe)return 0;Ve[fe+1]=Ve[fe]+Me[fe]}for(Ce=0;Ce<Se;++Ce)fe=he[Ce],0<he[Ce]&&(Pe[Ve[fe]++]=Ce);if(Ve[15]==1)return(he=new X).g=0,he.value=Pe[0],F(K,Oe,1,We,he),We;var Je,it=-1,tt=We-1,bt=0,ft=1,Bt=1,gt=1<<se;for(Ce=0,fe=1,Se=2;fe<=se;++fe,Se<<=1){if(ft+=Bt<<=1,0>(Bt-=Me[fe]))return 0;for(;0<Me[fe];--Me[fe])(he=new X).g=fe,he.value=Pe[Ce++],F(K,Oe+bt,Se,gt,he),bt=le(bt,fe)}for(fe=se+1,Se=2;15>=fe;++fe,Se<<=1){if(ft+=Bt<<=1,0>(Bt-=Me[fe]))return 0;for(;0<Me[fe];--Me[fe]){if(he=new X,(bt&tt)!=it){for(Oe+=gt,Je=1<<(it=fe)-se;15>it&&!(0>=(Je-=Me[it]));)++it,Je<<=1;We+=gt=1<<(Je=it-se),K[te+(it=bt&tt)].g=Je+se,K[te+it].value=Oe-te-it}he.g=fe-se,he.value=Pe[Ce++],F(K,Oe+(bt>>se),Se,gt,he),bt=le(bt,fe)}}return ft!=2*Ve[15]-1?0:We})(g,b,C,R,H,W)}function X(){this.value=this.g=0}function N(){this.value=this.g=0}function Q(){this.G=c(5,X),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(ko,N)}function ie(g,b,C,R){n(g!=null),n(b!=null),n(2147483648>R),g.Ca=254,g.I=0,g.b=-8,g.Ka=0,g.oa=b,g.pa=C,g.Jd=b,g.Yc=C+R,g.Zc=4<=R?C+R-4+1:C,Ae(g)}function oe(g,b){for(var C=0;0<b--;)C|=Ue(g,128)<<b;return C}function me(g,b){var C=oe(g,b);return Ne(g)?-C:C}function ge(g,b,C,R){var H,W=0;for(n(g!=null),n(b!=null),n(4294967288>R),g.Sb=R,g.Ra=0,g.u=0,g.h=0,4<R&&(R=4),H=0;H<R;++H)W+=b[C+H]<<8*H;g.Ra=W,g.bb=R,g.oa=b,g.pa=C}function Z(g){for(;8<=g.u&&g.bb<g.Sb;)g.Ra>>>=8,g.Ra+=g.oa[g.pa+g.bb]<<kr-8>>>0,++g.bb,g.u-=8;ee(g)&&(g.h=1,g.u=0)}function I(g,b){if(n(0<=b),!g.h&&b<=$i){var C=V(g)&ra[b];return g.u+=b,Z(g),C}return g.h=1,g.u=0}function L(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function z(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function V(g){return g.Ra>>>(g.u&kr-1)>>>0}function ee(g){return n(g.bb<=g.Sb),g.h||g.bb==g.Sb&&g.u>kr}function pe(g,b){g.u=b,g.h=ee(g)}function we(g){g.u>=Ar&&(n(g.u>=Ar),Z(g))}function Ae(g){n(g!=null&&g.oa!=null),g.pa<g.Zc?(g.I=(g.oa[g.pa++]|g.I<<8)>>>0,g.b+=8):(n(g!=null&&g.oa!=null),g.pa<g.Yc?(g.b+=8,g.I=g.oa[g.pa++]|g.I<<8):g.Ka?g.b=0:(g.I<<=8,g.b+=8,g.Ka=1))}function Ne(g){return oe(g,1)}function Ue(g,b){var C=g.Ca;0>g.b&&Ae(g);var R=g.b,H=C*b>>>8,W=(g.I>>>R>H)+0;for(W?(C-=H,g.I-=H+1<<R>>>0):C=H+1,R=C,H=0;256<=R;)H+=8,R>>=8;return R=7^H+Qr[R],g.b-=R,g.Ca=(C<<R)-1,W}function Xe(g,b,C){g[b+0]=C>>24&255,g[b+1]=C>>16&255,g[b+2]=C>>8&255,g[b+3]=255&C}function at(g,b){return g[b+0]|g[b+1]<<8}function rt(g,b){return at(g,b)|g[b+2]<<16}function M(g,b){return at(g,b)|at(g,b+2)<<16}function Y(g,b){var C=1<<b;return n(g!=null),n(0<b),g.X=o(C),g.X==null?0:(g.Mb=32-b,g.Xa=b,1)}function xe(g,b){n(g!=null),n(b!=null),n(g.Xa==b.Xa),r(b.X,0,g.X,0,1<<b.Xa)}function ue(){this.X=[],this.Xa=this.Mb=0}function re(g,b,C,R){n(C!=null),n(R!=null);var H=C[0],W=R[0];return H==0&&(H=(g*W+b/2)/b),W==0&&(W=(b*H+g/2)/g),0>=H||0>=W?0:(C[0]=H,R[0]=W,1)}function ce(g,b){return g+(1<<b)-1>>>b}function De(g,b){return((4278255360&g)+(4278255360&b)>>>0&4278255360)+((16711935&g)+(16711935&b)>>>0&16711935)>>>0}function Re(g,b){U[b]=function(C,R,H,W,K,te,se){var he;for(he=0;he<K;++he){var Se=U[g](te[se+he-1],H,W+he);te[se+he]=De(C[R+he],Se)}}}function _e(){this.ud=this.hd=this.jd=0}function He(g,b){return((4278124286&(g^b))>>>1)+(g&b)>>>0}function Ee(g){return 0<=g&&256>g?g:0>g?0:255<g?255:void 0}function je(g,b){return Ee(g+(g-b+.5>>1))}function ve(g,b,C){return Math.abs(b-C)-Math.abs(g-C)}function Be(g,b,C,R,H,W,K){for(R=W[K-1],C=0;C<H;++C)W[K+C]=R=De(g[b+C],R)}function Ge(g,b,C,R,H){var W;for(W=0;W<C;++W){var K=g[b+W],te=K>>8&255,se=16711935&(se=(se=16711935&K)+((te<<16)+te));R[H+W]=(4278255360&K)+se>>>0}}function $e(g,b){b.jd=255&g,b.hd=g>>8&255,b.ud=g>>16&255}function st(g,b,C,R,H,W){var K;for(K=0;K<R;++K){var te=b[C+K],se=te>>>8,he=te,Se=255&(Se=(Se=te>>>16)+((g.jd<<24>>24)*(se<<24>>24)>>>5));he=255&(he=(he+=(g.hd<<24>>24)*(se<<24>>24)>>>5)+((g.ud<<24>>24)*(Se<<24>>24)>>>5)),H[W+K]=(4278255360&te)+(Se<<16)+he}}function lt(g,b,C,R,H){U[b]=function(W,K,te,se,he,Se,Pe,fe,Ce){for(se=Pe;se<fe;++se)for(Pe=0;Pe<Ce;++Pe)he[Se++]=H(te[R(W[K++])])},U[g]=function(W,K,te,se,he,Se,Pe){var fe=8>>W.b,Ce=W.Ea,Oe=W.K[0],We=W.w;if(8>fe)for(W=(1<<W.b)-1,We=(1<<fe)-1;K<te;++K){var Me,Ve=0;for(Me=0;Me<Ce;++Me)Me&W||(Ve=R(se[he++])),Se[Pe++]=H(Oe[Ve&We]),Ve>>=fe}else U["VP8LMapColor"+C](se,he,Oe,We,Se,Pe,K,te,Ce)}}function Vt(g,b,C,R,H){for(C=b+C;b<C;){var W=g[b++];R[H++]=W>>16&255,R[H++]=W>>8&255,R[H++]=255&W}}function ct(g,b,C,R,H){for(C=b+C;b<C;){var W=g[b++];R[H++]=W>>16&255,R[H++]=W>>8&255,R[H++]=255&W,R[H++]=W>>24&255}}function dt(g,b,C,R,H){for(C=b+C;b<C;){var W=(K=g[b++])>>16&240|K>>12&15,K=240&K|K>>28&15;R[H++]=W,R[H++]=K}}function _t(g,b,C,R,H){for(C=b+C;b<C;){var W=(K=g[b++])>>16&248|K>>13&7,K=K>>5&224|K>>3&31;R[H++]=W,R[H++]=K}}function mt(g,b,C,R,H){for(C=b+C;b<C;){var W=g[b++];R[H++]=255&W,R[H++]=W>>8&255,R[H++]=W>>16&255}}function pt(g,b,C,R,H,W){if(W==0)for(C=b+C;b<C;)Xe(R,((W=g[b++])[0]>>24|W[1]>>8&65280|W[2]<<8&16711680|W[3]<<24)>>>0),H+=32;else r(R,H,g,b,C)}function Ft(g,b){U[b][0]=U[g+"0"],U[b][1]=U[g+"1"],U[b][2]=U[g+"2"],U[b][3]=U[g+"3"],U[b][4]=U[g+"4"],U[b][5]=U[g+"5"],U[b][6]=U[g+"6"],U[b][7]=U[g+"7"],U[b][8]=U[g+"8"],U[b][9]=U[g+"9"],U[b][10]=U[g+"10"],U[b][11]=U[g+"11"],U[b][12]=U[g+"12"],U[b][13]=U[g+"13"],U[b][14]=U[g+"0"],U[b][15]=U[g+"0"]}function Et(g){return g==Fl||g==wu||g==Fs||g==_u}function Ot(){this.eb=[],this.size=this.A=this.fb=0}function dn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Mt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ot,this.f.kb=new dn,this.sd=null}function wt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function nn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Xa(g){return alert("todo:WebPSamplerProcessPlane"),g.T}function Fi(g,b){var C=g.T,R=b.ba.f.RGBA,H=R.eb,W=R.fb+g.ka*R.A,K=Mi[b.ba.S],te=g.y,se=g.O,he=g.f,Se=g.N,Pe=g.ea,fe=g.W,Ce=b.cc,Oe=b.dc,We=b.Mc,Me=b.Nc,Ve=g.ka,Je=g.ka+g.T,it=g.U,tt=it+1>>1;for(Ve==0?K(te,se,null,null,he,Se,Pe,fe,he,Se,Pe,fe,H,W,null,null,it):(K(b.ec,b.fc,te,se,Ce,Oe,We,Me,he,Se,Pe,fe,H,W-R.A,H,W,it),++C);Ve+2<Je;Ve+=2)Ce=he,Oe=Se,We=Pe,Me=fe,Se+=g.Rc,fe+=g.Rc,W+=2*R.A,K(te,(se+=2*g.fa)-g.fa,te,se,Ce,Oe,We,Me,he,Se,Pe,fe,H,W-R.A,H,W,it);return se+=g.fa,g.j+Je<g.o?(r(b.ec,b.fc,te,se,it),r(b.cc,b.dc,he,Se,tt),r(b.Mc,b.Nc,Pe,fe,tt),C--):1&Je||K(te,se,null,null,he,Se,Pe,fe,he,Se,Pe,fe,H,W+R.A,null,null,it),C}function gr(g,b,C){var R=g.F,H=[g.J];if(R!=null){var W=g.U,K=b.ba.S,te=K==Il||K==Fs;b=b.ba.f.RGBA;var se=[0],he=g.ka;se[0]=g.T,g.Kb&&(he==0?--se[0]:(--he,H[0]-=g.width),g.j+g.ka+g.T==g.o&&(se[0]=g.o-g.j-he));var Se=b.eb;he=b.fb+he*b.A,g=Dl(R,H[0],g.width,W,se,Se,he+(te?0:3),b.A),n(C==se),g&&Et(K)&&rs(Se,he,te,W,se,b.A)}return 0}function Aa(g){var b=g.ma,C=b.ba.S,R=11>C,H=C==Yi||C==Ta||C==Il||C==Is||C==12||Et(C);if(b.memory=null,b.Ib=null,b.Jb=null,b.Nd=null,!Jr(b.Oa,g,H?11:12))return 0;if(H&&Et(C)&&Tl(),g.da)alert("todo:use_scaling");else{if(R){if(b.Ib=Xa,g.Kb){if(C=g.U+1>>1,b.memory=o(g.U+2*C),b.memory==null)return 0;b.ec=b.memory,b.fc=0,b.cc=b.ec,b.dc=b.fc+g.U,b.Mc=b.cc,b.Nc=b.dc+C,b.Ib=Fi,Tl()}}else alert("todo:EmitYUV");H&&(b.Jb=gr,R&&ir())}if(R&&!To){for(g=0;256>g;++g)Bi[g]=89858*(g-128)+Hs>>Ba,cd[g]=-22014*(g-128)+Hs,Rf[g]=-45773*(g-128),Cu[g]=113618*(g-128)+Hs>>Ba;for(g=us;g<zo;++g)b=76283*(g-16)+Hs>>Ba,fd[g-us]=va(b,255),hd[g-us]=va(b+8>>4,15);To=1}return 1}function Nt(g){var b=g.ma,C=g.U,R=g.T;return n(!(1&g.ka)),0>=C||0>=R?0:(C=b.Ib(g,b),b.Jb!=null&&b.Jb(g,b,C),b.Dc+=C,1)}function Br(g){g.ma.memory=null}function vr(g,b,C,R){return I(g,8)!=47?0:(b[0]=I(g,14)+1,C[0]=I(g,14)+1,R[0]=I(g,1),I(g,3)!=0?0:!g.h)}function da(g,b){if(4>g)return g+1;var C=g-2>>1;return(2+(1&g)<<C)+I(b,C)+1}function pa(g,b){return 120<b?b-120:1<=(C=((C=Ra[b-1])>>4)*g+(8-(15&C)))?C:1;var C}function Bn(g,b,C){var R=V(C),H=g[b+=255&R].g-8;return 0<H&&(pe(C,C.u+8),R=V(C),b+=g[b].value,b+=R&(1<<H)-1),pe(C,C.u+g[b].g),g[b].value}function si(g,b,C){return C.g+=g.g,C.value+=g.value<<b>>>0,n(8>=C.g),g.g}function ki(g,b,C){var R=g.xc;return n((b=R==0?0:g.vc[g.md*(C>>R)+(b>>R)])<g.Wb),g.Ya[b]}function yo(g,b,C,R){var H=g.ab,W=g.c*b,K=g.C;b=K+b;var te=C,se=R;for(R=g.Ta,C=g.Ua;0<H--;){var he=g.gc[H],Se=K,Pe=b,fe=te,Ce=se,Oe=(se=R,te=C,he.Ea);switch(n(Se<Pe),n(Pe<=he.nc),he.hc){case 2:ti(fe,Ce,(Pe-Se)*Oe,se,te);break;case 0:var We=Se,Me=Pe,Ve=se,Je=te,it=(gt=he).Ea;We==0&&(Ds(fe,Ce,null,null,1,Ve,Je),Be(fe,Ce+1,0,0,it-1,Ve,Je+1),Ce+=it,Je+=it,++We);for(var tt=1<<gt.b,bt=tt-1,ft=ce(it,gt.b),Bt=gt.K,gt=gt.w+(We>>gt.b)*ft;We<Me;){var Kt=Bt,Rn=gt,qt=1;for(Ms(fe,Ce,Ve,Je-it,1,Ve,Je);qt<it;){var ht=(qt&~bt)+tt;ht>it&&(ht=it),(0,$r[Kt[Rn++]>>8&15])(fe,Ce+ +qt,Ve,Je+qt-it,ht-qt,Ve,Je+qt),qt=ht}Ce+=it,Je+=it,++We&bt||(gt+=ft)}Pe!=he.nc&&r(se,te-Oe,se,te+(Pe-Se-1)*Oe,Oe);break;case 1:for(Oe=fe,Me=Ce,it=(fe=he.Ea)-(Je=fe&~(Ve=(Ce=1<<he.b)-1)),We=ce(fe,he.b),tt=he.K,he=he.w+(Se>>he.b)*We;Se<Pe;){for(bt=tt,ft=he,Bt=new _e,gt=Me+Je,Kt=Me+fe;Me<gt;)$e(bt[ft++],Bt),Bs(Bt,Oe,Me,Ce,se,te),Me+=Ce,te+=Ce;Me<Kt&&($e(bt[ft++],Bt),Bs(Bt,Oe,Me,it,se,te),Me+=it,te+=it),++Se&Ve||(he+=We)}break;case 3:if(fe==se&&Ce==te&&0<he.b){for(Me=se,fe=Oe=te+(Pe-Se)*Oe-(Je=(Pe-Se)*ce(he.Ea,he.b)),Ce=se,Ve=te,We=[],Je=(it=Je)-1;0<=Je;--Je)We[Je]=Ce[Ve+Je];for(Je=it-1;0<=Je;--Je)Me[fe+Je]=We[Je];gu(he,Se,Pe,se,Oe,se,te)}else gu(he,Se,Pe,fe,Ce,se,te)}te=R,se=C}se!=C&&r(R,C,te,se,W)}function Zi(g,b){var C=g.V,R=g.Ba+g.c*g.C,H=b-g.C;if(n(b<=g.l.o),n(16>=H),0<H){var W=g.l,K=g.Ta,te=g.Ua,se=W.width;if(yo(g,H,C,R),H=te=[te],n((C=g.C)<(R=b)),n(W.v<W.va),R>W.o&&(R=W.o),C<W.j){var he=W.j-C;C=W.j,H[0]+=he*se}if(C>=R?C=0:(H[0]+=4*W.v,W.ka=C-W.j,W.U=W.va-W.v,W.T=R-C,C=1),C){if(te=te[0],11>(C=g.ca).S){var Se=C.f.RGBA,Pe=(R=C.S,H=W.U,W=W.T,he=Se.eb,Se.A),fe=W;for(Se=Se.fb+g.Ma*Se.A;0<fe--;){var Ce=K,Oe=te,We=H,Me=he,Ve=Se;switch(R){case bu:Ps(Ce,Oe,We,Me,Ve);break;case Yi:eo(Ce,Oe,We,Me,Ve);break;case Fl:eo(Ce,Oe,We,Me,Ve),rs(Me,Ve,0,We,1,0);break;case xu:is(Ce,Oe,We,Me,Ve);break;case Ta:pt(Ce,Oe,We,Me,Ve,1);break;case wu:pt(Ce,Oe,We,Me,Ve,1),rs(Me,Ve,0,We,1,0);break;case Il:pt(Ce,Oe,We,Me,Ve,0);break;case Fs:pt(Ce,Oe,We,Me,Ve,0),rs(Me,Ve,1,We,1,0);break;case Is:to(Ce,Oe,We,Me,Ve);break;case _u:to(Ce,Oe,We,Me,Ve),za(Me,Ve,We,1,0);break;case Ao:Er(Ce,Oe,We,Me,Ve);break;default:n(0)}te+=se,Se+=Pe}g.Ma+=W}else alert("todo:EmitRescaledRowsYUVA");n(g.Ma<=C.height)}}g.C=b,n(g.C<=g.i)}function wn(g){var b;if(0<g.ua)return 0;for(b=0;b<g.Wb;++b){var C=g.Ya[b].G,R=g.Ya[b].H;if(0<C[1][R[1]+0].g||0<C[2][R[2]+0].g||0<C[3][R[3]+0].g)return 0}return 1}function Fn(g,b,C,R,H,W){if(g.Z!=0){var K=g.qd,te=g.rd;for(n(ao[g.Z]!=null);b<C;++b)ao[g.Z](K,te,R,H,R,H,W),K=R,te=H,H+=W;g.qd=K,g.rd=te}}function Ui(g,b){var C=g.l.ma,R=C.Z==0||C.Z==1?g.l.j:g.C;if(R=g.C<R?R:g.C,n(b<=g.l.o),b>R){var H=g.l.width,W=C.ca,K=C.tb+H*R,te=g.V,se=g.Ba+g.c*R,he=g.gc;n(g.ab==1),n(he[0].hc==3),Cr(he[0],R,b,te,se,W,K),Fn(C,R,b,W,K,H)}g.C=g.Ma=b}function ma(g,b,C,R,H,W,K){var te=g.$/R,se=g.$%R,he=g.m,Se=g.s,Pe=C+g.$,fe=Pe;H=C+R*H;var Ce=C+R*W,Oe=280+Se.ua,We=g.Pb?te:16777216,Me=0<Se.ua?Se.Wa:null,Ve=Se.wc,Je=Pe<Ce?ki(Se,se,te):null;n(g.C<W),n(Ce<=H);var it=!1;e:for(;;){for(;it||Pe<Ce;){var tt=0;if(te>=We){var bt=Pe-C;n((We=g).Pb),We.wd=We.m,We.xd=bt,0<We.s.ua&&xe(We.s.Wa,We.s.vb),We=te+No}if(se&Ve||(Je=ki(Se,se,te)),n(Je!=null),Je.Qb&&(b[Pe]=Je.qb,it=!0),!it)if(we(he),Je.jc){tt=he,bt=b;var ft=Pe,Bt=Je.pd[V(tt)&ko-1];n(Je.jc),256>Bt.g?(pe(tt,tt.u+Bt.g),bt[ft]=Bt.value,tt=0):(pe(tt,tt.u+Bt.g-256),n(256<=Bt.value),tt=Bt.value),tt==0&&(it=!0)}else tt=Bn(Je.G[0],Je.H[0],he);if(he.h)break;if(it||256>tt){if(!it)if(Je.nd)b[Pe]=(Je.qb|tt<<8)>>>0;else{if(we(he),it=Bn(Je.G[1],Je.H[1],he),we(he),bt=Bn(Je.G[2],Je.H[2],he),ft=Bn(Je.G[3],Je.H[3],he),he.h)break;b[Pe]=(ft<<24|it<<16|tt<<8|bt)>>>0}if(it=!1,++Pe,++se>=R&&(se=0,++te,K!=null&&te<=W&&!(te%16)&&K(g,te),Me!=null))for(;fe<Pe;)tt=b[fe++],Me.X[(506832829*tt&4294967295)>>>Me.Mb]=tt}else if(280>tt){if(tt=da(tt-256,he),bt=Bn(Je.G[4],Je.H[4],he),we(he),bt=pa(R,bt=da(bt,he)),he.h)break;if(Pe-C<bt||H-Pe<tt)break e;for(ft=0;ft<tt;++ft)b[Pe+ft]=b[Pe+ft-bt];for(Pe+=tt,se+=tt;se>=R;)se-=R,++te,K!=null&&te<=W&&!(te%16)&&K(g,te);if(n(Pe<=H),se&Ve&&(Je=ki(Se,se,te)),Me!=null)for(;fe<Pe;)tt=b[fe++],Me.X[(506832829*tt&4294967295)>>>Me.Mb]=tt}else{if(!(tt<Oe))break e;for(it=tt-280,n(Me!=null);fe<Pe;)tt=b[fe++],Me.X[(506832829*tt&4294967295)>>>Me.Mb]=tt;tt=Pe,n(!(it>>>(bt=Me).Xa)),b[tt]=bt.X[it],it=!0}it||n(he.h==ee(he))}if(g.Pb&&he.h&&Pe<H)n(g.m.h),g.a=5,g.m=g.wd,g.$=g.xd,0<g.s.ua&&xe(g.s.vb,g.s.Wa);else{if(he.h)break e;K?.(g,te>W?W:te),g.a=0,g.$=Pe-C}return 1}return g.a=3,0}function Na(g){n(g!=null),g.vc=null,g.yc=null,g.Ya=null;var b=g.Wa;b!=null&&(b.X=null),g.vb=null,n(g!=null)}function Xo(){var g=new Dt;return g==null?null:(g.a=0,g.xb=Ac,Ft("Predictor","VP8LPredictors"),Ft("Predictor","VP8LPredictors_C"),Ft("PredictorAdd","VP8LPredictorsAdd"),Ft("PredictorAdd","VP8LPredictorsAdd_C"),ti=Ge,Bs=st,Ps=Vt,eo=ct,to=dt,Er=_t,is=mt,U.VP8LMapColor32b=Nr,U.VP8LMapColor8b=Ri,g)}function Za(g,b,C,R,H){var W=1,K=[g],te=[b],se=R.m,he=R.s,Se=null,Pe=0;e:for(;;){if(C)for(;W&&I(se,1);){var fe=K,Ce=te,Oe=R,We=1,Me=Oe.m,Ve=Oe.gc[Oe.ab],Je=I(Me,2);if(Oe.Oc&1<<Je)W=0;else{switch(Oe.Oc|=1<<Je,Ve.hc=Je,Ve.Ea=fe[0],Ve.nc=Ce[0],Ve.K=[null],++Oe.ab,n(4>=Oe.ab),Je){case 0:case 1:Ve.b=I(Me,3)+2,We=Za(ce(Ve.Ea,Ve.b),ce(Ve.nc,Ve.b),0,Oe,Ve.K),Ve.K=Ve.K[0];break;case 3:var it,tt=I(Me,8)+1,bt=16<tt?0:4<tt?1:2<tt?2:3;if(fe[0]=ce(Ve.Ea,bt),Ve.b=bt,it=We=Za(tt,1,0,Oe,Ve.K)){var ft,Bt=tt,gt=Ve,Kt=1<<(8>>gt.b),Rn=o(Kt);if(Rn==null)it=0;else{var qt=gt.K[0],ht=gt.w;for(Rn[0]=gt.K[0][0],ft=1;ft<1*Bt;++ft)Rn[ft]=De(qt[ht+ft],Rn[ft-1]);for(;ft<4*Kt;++ft)Rn[ft]=0;gt.K[0]=null,gt.K[0]=Rn,it=1}}We=it;break;case 2:break;default:n(0)}W=We}}if(K=K[0],te=te[0],W&&I(se,1)&&!(W=1<=(Pe=I(se,4))&&11>=Pe)){R.a=3;break e}var ut;if(ut=W)t:{var qn,jt,Gt,gn=R,bi=K,Pi=te,En=Pe,ci=C,Gi=gn.m,fi=gn.s,Zt=[null],sn=1,Hn=0,hn=Oa[En];n:for(;;){if(ci&&I(Gi,1)){var xi=I(Gi,3)+2,Yn=ce(bi,xi),ln=ce(Pi,xi),ai=Yn*ln;if(!Za(Yn,ln,0,gn,Zt))break n;for(Zt=Zt[0],fi.xc=xi,qn=0;qn<ai;++qn){var vn=Zt[qn]>>8&65535;Zt[qn]=vn,vn>=sn&&(sn=vn+1)}}if(Gi.h)break n;for(jt=0;5>jt;++jt){var hi=ss[jt];!jt&&0<En&&(hi+=1<<En),Hn<hi&&(Hn=hi)}var di=c(sn*hn,X),_n=sn,on=c(_n,Q);if(on==null)var Vi=null;else n(65536>=_n),Vi=on;var Xn=o(Hn);if(Vi==null||Xn==null||di==null){gn.a=1;break n}var Ct=di;for(qn=Gt=0;qn<sn;++qn){var Lt=Vi[qn],un=Lt.G,oa=Lt.H,Pa=0,ta=1,pi=0;for(jt=0;5>jt;++jt){hi=ss[jt],un[jt]=Ct,oa[jt]=Gt,!jt&&0<En&&(hi+=1<<En);a:{var jo,Ro=hi,Lu=gn,Ln=Xn,Cc=Ct,Ec=Gt,zu=0,ro=Lu.m,dd=I(ro,1);if(s(Ln,0,0,Ro),dd){var Lc=I(ro,1)+1,zc=I(ro,1),Tu=I(ro,zc==0?1:8);Ln[Tu]=1,Lc==2&&(Ln[Tu=I(ro,8)]=1);var Ci=1}else{var Zn=o(19),Yl=I(ro,4)+4;if(19<Yl){Lu.a=3;var Oo=0;break a}for(jo=0;jo<Yl;++jo)Zn[Ul[jo]]=I(ro,3);var Gs=void 0,cs=void 0,Tr=Lu,ju=Zn,Vs=Ro,Ru=Ln,Ou=0,oo=Tr.m,Tc=8,jc=c(128,X);i:for(;T(jc,0,7,ju,19);){if(I(oo,1)){var Of=2+2*I(oo,3);if((Gs=2+I(oo,Of))>Vs)break i}else Gs=Vs;for(cs=0;cs<Vs&&Gs--;){we(oo);var Rc=jc[0+(127&V(oo))];pe(oo,oo.u+Rc.g);var Do=Rc.value;if(16>Do)Ru[cs++]=Do,Do!=0&&(Tc=Do);else{var Df=Do==16,Mf=Do-16,Bf=Us[Mf],Oc=I(oo,ja[Mf])+Bf;if(cs+Oc>Vs)break i;for(var Pf=Df?Tc:0;0<Oc--;)Ru[cs++]=Pf}}Ou=1;break i}Ou||(Tr.a=3),Ci=Ou}(Ci=Ci&&!ro.h)&&(zu=T(Cc,Ec,8,Ln,Ro)),Ci&&zu!=0?Oo=zu:(Lu.a=3,Oo=0)}if(Oo==0)break n;if(ta&&Su[jt]==1&&(ta=Ct[Gt].g==0),Pa+=Ct[Gt].g,Gt+=Oo,3>=jt){var fs,Du=Xn[0];for(fs=1;fs<hi;++fs)Xn[fs]>Du&&(Du=Xn[fs]);pi+=Du}}if(Lt.nd=ta,Lt.Qb=0,ta&&(Lt.qb=(un[3][oa[3]+0].value<<24|un[1][oa[1]+0].value<<16|un[2][oa[2]+0].value)>>>0,Pa==0&&256>un[0][oa[0]+0].value&&(Lt.Qb=1,Lt.qb+=un[0][oa[0]+0].value<<8)),Lt.jc=!Lt.Qb&&6>pi,Lt.jc){var Gl,jr=Lt;for(Gl=0;Gl<ko;++Gl){var so=Gl,lo=jr.pd[so],Mu=jr.G[0][jr.H[0]+so];256<=Mu.value?(lo.g=Mu.g+256,lo.value=Mu.value):(lo.g=0,lo.value=0,so>>=si(Mu,8,lo),so>>=si(jr.G[1][jr.H[1]+so],16,lo),so>>=si(jr.G[2][jr.H[2]+so],0,lo),si(jr.G[3][jr.H[3]+so],24,lo))}}}fi.vc=Zt,fi.Wb=sn,fi.Ya=Vi,fi.yc=di,ut=1;break t}ut=0}if(!(W=ut)){R.a=3;break e}if(0<Pe){if(he.ua=1<<Pe,!Y(he.Wa,Pe)){R.a=1,W=0;break e}}else he.ua=0;var Bu=R,hs=K,If=te,Ws=Bu.s,Xs=Ws.xc;if(Bu.c=hs,Bu.i=If,Ws.md=ce(hs,Xs),Ws.wc=Xs==0?-1:(1<<Xs)-1,C){R.xb=Co;break e}if((Se=o(K*te))==null){R.a=1,W=0;break e}W=(W=ma(R,Se,0,K,te,te,null))&&!se.h;break e}return W?(H!=null?H[0]=Se:(n(Se==null),n(C)),R.$=0,C||Na(he)):Na(he),W}function Ka(g,b){var C=g.c*g.i,R=C+b+16*b;return n(g.c<=b),g.V=o(R),g.V==null?(g.Ta=null,g.Ua=0,g.a=1,0):(g.Ta=g.V,g.Ua=g.Ba+C+b,1)}function bo(g,b){var C=g.C,R=b-C,H=g.V,W=g.Ba+g.c*C;for(n(b<=g.l.o);0<R;){var K=16<R?16:R,te=g.l.ma,se=g.l.width,he=se*K,Se=te.ca,Pe=te.tb+se*C,fe=g.Ta,Ce=g.Ua;yo(g,K,H,W),_a(fe,Ce,Se,Pe,he),Fn(te,C,C+K,Se,Pe,se),R-=K,H+=K*g.c,C+=K}n(C==b),g.C=g.Ma=b}function Ja(){this.ub=this.yd=this.td=this.Rb=0}function Qa(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Zo(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function yr(){this.Yb=(function(){var g=[];return(function b(C,R,H){for(var W=H[R],K=0;K<W&&(C.push(H.length>R+1?[]:0),!(H.length<R+1));K++)b(C[K],R+1,H)})(g,0,[3,11]),g})()}function $n(){this.jb=o(3),this.Wc=u([4,8],yr),this.Xc=u([4,17],yr)}function vl(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function ga(){this.ld=this.La=this.dd=this.tc=0}function $a(){this.Na=this.la=0}function Pr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yl(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function bl(){this.uc=this.M=this.Nb=0,this.wa=Array(new ga),this.Y=0,this.ya=Array(new yl),this.aa=0,this.l=new Ir}function xl(){this.y=o(16),this.f=o(8),this.ea=o(8)}function ou(){this.cb=this.a=0,this.sc="",this.m=new L,this.Od=new Ja,this.Kc=new Qa,this.ed=new vl,this.Qa=new Zo,this.Ic=this.$c=this.Aa=0,this.D=new bl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,L),this.ia=0,this.pb=c(4,Pr),this.Pa=new $n,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new xl),this.Hd=0,this.rb=Array(new $a),this.sb=0,this.wa=Array(new ga),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new yl),this.L=this.aa=0,this.gd=u([4,2],ga),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function va(g,b){return 0>g?0:g>b?b:g}function Ir(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function er(){var g=new ou;return g!=null&&(g.a=0,g.sc="OK",g.cb=0,g.Xb=0,Sa||(Sa=xo)),g}function cn(g,b,C){return g.a==0&&(g.a=b,g.sc=C,g.cb=0),0}function wl(g,b,C){return 3<=C&&g[b+0]==157&&g[b+1]==1&&g[b+2]==42}function br(g,b){if(g==null)return 0;if(g.a=0,g.sc="OK",b==null)return cn(g,2,"null VP8Io passed to VP8GetHeaders()");var C=b.data,R=b.w,H=b.ha;if(4>H)return cn(g,7,"Truncated header.");var W=C[R+0]|C[R+1]<<8|C[R+2]<<16,K=g.Od;if(K.Rb=!(1&W),K.td=W>>1&7,K.yd=W>>4&1,K.ub=W>>5,3<K.td)return cn(g,3,"Incorrect keyframe parameters.");if(!K.yd)return cn(g,4,"Frame not displayable.");R+=3,H-=3;var te=g.Kc;if(K.Rb){if(7>H)return cn(g,7,"cannot parse picture header");if(!wl(C,R,H))return cn(g,3,"Bad code word");te.c=16383&(C[R+4]<<8|C[R+3]),te.Td=C[R+4]>>6,te.i=16383&(C[R+6]<<8|C[R+5]),te.Ud=C[R+6]>>6,R+=7,H-=7,g.za=te.c+15>>4,g.Ub=te.i+15>>4,b.width=te.c,b.height=te.i,b.Da=0,b.j=0,b.v=0,b.va=b.width,b.o=b.height,b.da=0,b.ib=b.width,b.hb=b.height,b.U=b.width,b.T=b.height,s((W=g.Pa).jb,0,255,W.jb.length),n((W=g.Qa)!=null),W.Cb=0,W.Bb=0,W.Fb=1,s(W.Zb,0,0,W.Zb.length),s(W.Lb,0,0,W.Lb)}if(K.ub>H)return cn(g,7,"bad partition length");ie(W=g.m,C,R,K.ub),R+=K.ub,H-=K.ub,K.Rb&&(te.Ld=Ne(W),te.Kd=Ne(W)),te=g.Qa;var se,he=g.Pa;if(n(W!=null),n(te!=null),te.Cb=Ne(W),te.Cb){if(te.Bb=Ne(W),Ne(W)){for(te.Fb=Ne(W),se=0;4>se;++se)te.Zb[se]=Ne(W)?me(W,7):0;for(se=0;4>se;++se)te.Lb[se]=Ne(W)?me(W,6):0}if(te.Bb)for(se=0;3>se;++se)he.jb[se]=Ne(W)?oe(W,8):255}else te.Bb=0;if(W.Ka)return cn(g,3,"cannot parse segment header");if((te=g.ed).zd=Ne(W),te.Tb=oe(W,6),te.wb=oe(W,3),te.Pc=Ne(W),te.Pc&&Ne(W)){for(he=0;4>he;++he)Ne(W)&&(te.vd[he]=me(W,6));for(he=0;4>he;++he)Ne(W)&&(te.od[he]=me(W,6))}if(g.L=te.Tb==0?0:te.zd?1:2,W.Ka)return cn(g,3,"cannot parse filter header");var Se=H;if(H=se=R,R=se+Se,te=Se,g.Xb=(1<<oe(g.m,2))-1,Se<3*(he=g.Xb))C=7;else{for(se+=3*he,te-=3*he,Se=0;Se<he;++Se){var Pe=C[H+0]|C[H+1]<<8|C[H+2]<<16;Pe>te&&(Pe=te),ie(g.Jc[+Se],C,se,Pe),se+=Pe,te-=Pe,H+=3}ie(g.Jc[+he],C,se,te),C=se<R?0:5}if(C!=0)return cn(g,C,"cannot parse partitions");for(C=oe(se=g.m,7),H=Ne(se)?me(se,4):0,R=Ne(se)?me(se,4):0,te=Ne(se)?me(se,4):0,he=Ne(se)?me(se,4):0,se=Ne(se)?me(se,4):0,Se=g.Qa,Pe=0;4>Pe;++Pe){if(Se.Cb){var fe=Se.Zb[Pe];Se.Fb||(fe+=C)}else{if(0<Pe){g.pb[Pe]=g.pb[0];continue}fe=C}var Ce=g.pb[Pe];Ce.Sc[0]=Da[va(fe+H,127)],Ce.Sc[1]=Ma[va(fe+0,127)],Ce.Eb[0]=2*Da[va(fe+R,127)],Ce.Eb[1]=101581*Ma[va(fe+te,127)]>>16,8>Ce.Eb[1]&&(Ce.Eb[1]=8),Ce.Qc[0]=Da[va(fe+he,117)],Ce.Qc[1]=Ma[va(fe+se,127)],Ce.lc=fe+se}if(!K.Rb)return cn(g,4,"Not a key frame.");for(Ne(W),K=g.Pa,C=0;4>C;++C){for(H=0;8>H;++H)for(R=0;3>R;++R)for(te=0;11>te;++te)he=Ue(W,jn[C][H][R][te])?oe(W,8):jf[C][H][R][te],K.Wc[C][H].Yb[R][te]=he;for(H=0;17>H;++H)K.Xc[C][H]=K.Wc[C][Jt[H]]}return g.kc=Ne(W),g.kc&&(g.Bd=oe(W,8)),g.cb=1}function xo(g,b,C,R,H,W,K){var te=b[H].Yb[C];for(C=0;16>H;++H){if(!Ue(g,te[C+0]))return H;for(;!Ue(g,te[C+1]);)if(te=b[++H].Yb[0],C=0,H==16)return 16;var se=b[H+1].Yb;if(Ue(g,te[C+2])){var he=g,Se=0;if(Ue(he,(fe=te)[(Pe=C)+3]))if(Ue(he,fe[Pe+6])){for(te=0,Pe=2*(Se=Ue(he,fe[Pe+8]))+(fe=Ue(he,fe[Pe+9+Se])),Se=0,fe=Tf[Pe];fe[te];++te)Se+=Se+Ue(he,fe[te]);Se+=3+(8<<Pe)}else Ue(he,fe[Pe+7])?(Se=7+2*Ue(he,165),Se+=Ue(he,145)):Se=5+Ue(he,159);else Se=Ue(he,fe[Pe+4])?3+Ue(he,fe[Pe+5]):2;te=se[2]}else Se=1,te=se[1];se=K+kc[H],0>(he=g).b&&Ae(he);var Pe,fe=he.b,Ce=(Pe=he.Ca>>1)-(he.I>>fe)>>31;--he.b,he.Ca+=Ce,he.Ca|=1,he.I-=(Pe+1&Ce)<<fe,W[se]=((Se^Ce)-Ce)*R[(0<H)+0]}return 16}function _l(g){var b=g.rb[g.sb-1];b.la=0,b.Na=0,s(g.zc,0,0,g.zc.length),g.ja=0}function Ki(g,b,C,R,H){H=g[b+C+32*R]+(H>>3),g[b+C+32*R]=-256&H?0>H?0:255:H}function vi(g,b,C,R,H,W){Ki(g,b,0,C,R+H),Ki(g,b,1,C,R+W),Ki(g,b,2,C,R-W),Ki(g,b,3,C,R-H)}function li(g){return(20091*g>>16)+g}function Es(g,b,C,R){var H,W=0,K=o(16);for(H=0;4>H;++H){var te=g[b+0]+g[b+8],se=g[b+0]-g[b+8],he=(35468*g[b+4]>>16)-li(g[b+12]),Se=li(g[b+4])+(35468*g[b+12]>>16);K[W+0]=te+Se,K[W+1]=se+he,K[W+2]=se-he,K[W+3]=te-Se,W+=4,b++}for(H=W=0;4>H;++H)te=(g=K[W+0]+4)+K[W+8],se=g-K[W+8],he=(35468*K[W+4]>>16)-li(K[W+12]),Ki(C,R,0,0,te+(Se=li(K[W+4])+(35468*K[W+12]>>16))),Ki(C,R,1,0,se+he),Ki(C,R,2,0,se-he),Ki(C,R,3,0,te-Se),W++,R+=32}function su(g,b,C,R){var H=g[b+0]+4,W=35468*g[b+4]>>16,K=li(g[b+4]),te=35468*g[b+1]>>16;vi(C,R,0,H+K,g=li(g[b+1]),te),vi(C,R,1,H+W,g,te),vi(C,R,2,H-W,g,te),vi(C,R,3,H-K,g,te)}function Sl(g,b,C,R,H){Es(g,b,C,R),H&&Es(g,b+16,C,R+4)}function Ji(g,b,C,R){no(g,b+0,C,R,1),no(g,b+32,C,R+128,1)}function kl(g,b,C,R){var H;for(g=g[b+0]+4,H=0;4>H;++H)for(b=0;4>b;++b)Ki(C,R,b,H,g)}function Al(g,b,C,R){g[b+0]&&fn(g,b+0,C,R),g[b+16]&&fn(g,b+16,C,R+4),g[b+32]&&fn(g,b+32,C,R+128),g[b+48]&&fn(g,b+48,C,R+128+4)}function tr(g,b,C,R){var H,W=o(16);for(H=0;4>H;++H){var K=g[b+0+H]+g[b+12+H],te=g[b+4+H]+g[b+8+H],se=g[b+4+H]-g[b+8+H],he=g[b+0+H]-g[b+12+H];W[0+H]=K+te,W[8+H]=K-te,W[4+H]=he+se,W[12+H]=he-se}for(H=0;4>H;++H)K=(g=W[0+4*H]+3)+W[3+4*H],te=W[1+4*H]+W[2+4*H],se=W[1+4*H]-W[2+4*H],he=g-W[3+4*H],C[R+0]=K+te>>3,C[R+16]=he+se>>3,C[R+32]=K-te>>3,C[R+48]=he-se>>3,R+=64}function Ko(g,b,C){var R,H=b-32,W=Hi,K=255-g[H-1];for(R=0;R<C;++R){var te,se=W,he=K+g[b-1];for(te=0;te<C;++te)g[b+te]=se[he+g[H+te]];b+=32}}function lu(g,b){Ko(g,b,4)}function uu(g,b){Ko(g,b,8)}function Nl(g,b){Ko(g,b,16)}function Cl(g,b){var C;for(C=0;16>C;++C)r(g,b+32*C,g,b-32,16)}function cu(g,b){var C;for(C=16;0<C;--C)s(g,b,g[b-1],16),b+=32}function aa(g,b,C){var R;for(R=0;16>R;++R)s(b,C+32*R,g,16)}function nr(g,b){var C,R=16;for(C=0;16>C;++C)R+=g[b-1+32*C]+g[b+C-32];aa(R>>5,g,b)}function Fr(g,b){var C,R=8;for(C=0;16>C;++C)R+=g[b-1+32*C];aa(R>>4,g,b)}function Jo(g,b){var C,R=8;for(C=0;16>C;++C)R+=g[b+C-32];aa(R>>4,g,b)}function wo(g,b){aa(128,g,b)}function Tt(g,b,C){return g+2*b+C+2>>2}function fu(g,b){var C,R=b-32;for(R=new Uint8Array([Tt(g[R-1],g[R+0],g[R+1]),Tt(g[R+0],g[R+1],g[R+2]),Tt(g[R+1],g[R+2],g[R+3]),Tt(g[R+2],g[R+3],g[R+4])]),C=0;4>C;++C)r(g,b+32*C,R,0,R.length)}function El(g,b){var C=g[b-1],R=g[b-1+32],H=g[b-1+64],W=g[b-1+96];Xe(g,b+0,16843009*Tt(g[b-1-32],C,R)),Xe(g,b+32,16843009*Tt(C,R,H)),Xe(g,b+64,16843009*Tt(R,H,W)),Xe(g,b+96,16843009*Tt(H,W,W))}function hu(g,b){var C,R=4;for(C=0;4>C;++C)R+=g[b+C-32]+g[b-1+32*C];for(R>>=3,C=0;4>C;++C)s(g,b+32*C,R,4)}function ya(g,b){var C=g[b-1+0],R=g[b-1+32],H=g[b-1+64],W=g[b-1-32],K=g[b+0-32],te=g[b+1-32],se=g[b+2-32],he=g[b+3-32];g[b+0+96]=Tt(R,H,g[b-1+96]),g[b+1+96]=g[b+0+64]=Tt(C,R,H),g[b+2+96]=g[b+1+64]=g[b+0+32]=Tt(W,C,R),g[b+3+96]=g[b+2+64]=g[b+1+32]=g[b+0+0]=Tt(K,W,C),g[b+3+64]=g[b+2+32]=g[b+1+0]=Tt(te,K,W),g[b+3+32]=g[b+2+0]=Tt(se,te,K),g[b+3+0]=Tt(he,se,te)}function Ti(g,b){var C=g[b+1-32],R=g[b+2-32],H=g[b+3-32],W=g[b+4-32],K=g[b+5-32],te=g[b+6-32],se=g[b+7-32];g[b+0+0]=Tt(g[b+0-32],C,R),g[b+1+0]=g[b+0+32]=Tt(C,R,H),g[b+2+0]=g[b+1+32]=g[b+0+64]=Tt(R,H,W),g[b+3+0]=g[b+2+32]=g[b+1+64]=g[b+0+96]=Tt(H,W,K),g[b+3+32]=g[b+2+64]=g[b+1+96]=Tt(W,K,te),g[b+3+64]=g[b+2+96]=Tt(K,te,se),g[b+3+96]=Tt(te,se,se)}function Ll(g,b){var C=g[b-1+0],R=g[b-1+32],H=g[b-1+64],W=g[b-1-32],K=g[b+0-32],te=g[b+1-32],se=g[b+2-32],he=g[b+3-32];g[b+0+0]=g[b+1+64]=W+K+1>>1,g[b+1+0]=g[b+2+64]=K+te+1>>1,g[b+2+0]=g[b+3+64]=te+se+1>>1,g[b+3+0]=se+he+1>>1,g[b+0+96]=Tt(H,R,C),g[b+0+64]=Tt(R,C,W),g[b+0+32]=g[b+1+96]=Tt(C,W,K),g[b+1+32]=g[b+2+96]=Tt(W,K,te),g[b+2+32]=g[b+3+96]=Tt(K,te,se),g[b+3+32]=Tt(te,se,he)}function Qo(g,b){var C=g[b+0-32],R=g[b+1-32],H=g[b+2-32],W=g[b+3-32],K=g[b+4-32],te=g[b+5-32],se=g[b+6-32],he=g[b+7-32];g[b+0+0]=C+R+1>>1,g[b+1+0]=g[b+0+64]=R+H+1>>1,g[b+2+0]=g[b+1+64]=H+W+1>>1,g[b+3+0]=g[b+2+64]=W+K+1>>1,g[b+0+32]=Tt(C,R,H),g[b+1+32]=g[b+0+96]=Tt(R,H,W),g[b+2+32]=g[b+1+96]=Tt(H,W,K),g[b+3+32]=g[b+2+96]=Tt(W,K,te),g[b+3+64]=Tt(K,te,se),g[b+3+96]=Tt(te,se,he)}function ba(g,b){var C=g[b-1+0],R=g[b-1+32],H=g[b-1+64],W=g[b-1+96];g[b+0+0]=C+R+1>>1,g[b+2+0]=g[b+0+32]=R+H+1>>1,g[b+2+32]=g[b+0+64]=H+W+1>>1,g[b+1+0]=Tt(C,R,H),g[b+3+0]=g[b+1+32]=Tt(R,H,W),g[b+3+32]=g[b+1+64]=Tt(H,W,W),g[b+3+64]=g[b+2+64]=g[b+0+96]=g[b+1+96]=g[b+2+96]=g[b+3+96]=W}function $o(g,b){var C=g[b-1+0],R=g[b-1+32],H=g[b-1+64],W=g[b-1+96],K=g[b-1-32],te=g[b+0-32],se=g[b+1-32],he=g[b+2-32];g[b+0+0]=g[b+2+32]=C+K+1>>1,g[b+0+32]=g[b+2+64]=R+C+1>>1,g[b+0+64]=g[b+2+96]=H+R+1>>1,g[b+0+96]=W+H+1>>1,g[b+3+0]=Tt(te,se,he),g[b+2+0]=Tt(K,te,se),g[b+1+0]=g[b+3+32]=Tt(C,K,te),g[b+1+32]=g[b+3+64]=Tt(R,C,K),g[b+1+64]=g[b+3+96]=Tt(H,R,C),g[b+1+96]=Tt(W,H,R)}function xr(g,b){var C;for(C=0;8>C;++C)r(g,b+32*C,g,b-32,8)}function du(g,b){var C;for(C=0;8>C;++C)s(g,b,g[b-1],8),b+=32}function Ca(g,b,C){var R;for(R=0;8>R;++R)s(b,C+32*R,g,8)}function Ls(g,b){var C,R=8;for(C=0;8>C;++C)R+=g[b+C-32]+g[b-1+32*C];Ca(R>>4,g,b)}function zs(g,b){var C,R=4;for(C=0;8>C;++C)R+=g[b+C-32];Ca(R>>3,g,b)}function Ai(g,b){var C,R=4;for(C=0;8>C;++C)R+=g[b-1+32*C];Ca(R>>3,g,b)}function wr(g,b){Ca(128,g,b)}function Ea(g,b,C){var R=g[b-C],H=g[b+0],W=3*(H-R)+io[1020+g[b-2*C]-g[b+C]],K=Pl[112+(W+4>>3)];g[b-C]=Hi[255+R+Pl[112+(W+3>>3)]],g[b+0]=Hi[255+H-K]}function Ur(g,b,C,R){var H=g[b+0],W=g[b+C];return Oi[255+g[b-2*C]-g[b-C]]>R||Oi[255+W-H]>R}function Ts(g,b,C,R){return 4*Oi[255+g[b-C]-g[b+0]]+Oi[255+g[b-2*C]-g[b+C]]<=R}function es(g,b,C,R,H){var W=g[b-3*C],K=g[b-2*C],te=g[b-C],se=g[b+0],he=g[b+C],Se=g[b+2*C],Pe=g[b+3*C];return 4*Oi[255+te-se]+Oi[255+K-he]>R?0:Oi[255+g[b-4*C]-W]<=H&&Oi[255+W-K]<=H&&Oi[255+K-te]<=H&&Oi[255+Pe-Se]<=H&&Oi[255+Se-he]<=H&&Oi[255+he-se]<=H}function qr(g,b,C,R){var H=2*R+1;for(R=0;16>R;++R)Ts(g,b+R,C,H)&&Ea(g,b+R,C)}function Hr(g,b,C,R){var H=2*R+1;for(R=0;16>R;++R)Ts(g,b+R*C,1,H)&&Ea(g,b+R*C,1)}function ts(g,b,C,R){var H;for(H=3;0<H;--H)qr(g,b+=4*C,C,R)}function zl(g,b,C,R){var H;for(H=3;0<H;--H)Hr(g,b+=4,C,R)}function Yr(g,b,C,R,H,W,K,te){for(W=2*W+1;0<H--;){if(es(g,b,C,W,K))if(Ur(g,b,C,te))Ea(g,b,C);else{var se=g,he=b,Se=C,Pe=se[he-2*Se],fe=se[he-Se],Ce=se[he+0],Oe=se[he+Se],We=se[he+2*Se],Me=27*(Je=io[1020+3*(Ce-fe)+io[1020+Pe-Oe]])+63>>7,Ve=18*Je+63>>7,Je=9*Je+63>>7;se[he-3*Se]=Hi[255+se[he-3*Se]+Je],se[he-2*Se]=Hi[255+Pe+Ve],se[he-Se]=Hi[255+fe+Me],se[he+0]=Hi[255+Ce-Me],se[he+Se]=Hi[255+Oe-Ve],se[he+2*Se]=Hi[255+We-Je]}b+=R}}function Gr(g,b,C,R,H,W,K,te){for(W=2*W+1;0<H--;){if(es(g,b,C,W,K))if(Ur(g,b,C,te))Ea(g,b,C);else{var se=g,he=b,Se=C,Pe=se[he-Se],fe=se[he+0],Ce=se[he+Se],Oe=Pl[112+(4+(We=3*(fe-Pe))>>3)],We=Pl[112+(We+3>>3)],Me=Oe+1>>1;se[he-2*Se]=Hi[255+se[he-2*Se]+Me],se[he-Se]=Hi[255+Pe+We],se[he+0]=Hi[255+fe-Oe],se[he+Se]=Hi[255+Ce-Me]}b+=R}}function pu(g,b,C,R,H,W){Yr(g,b,C,1,16,R,H,W)}function Vr(g,b,C,R,H,W){Yr(g,b,1,C,16,R,H,W)}function mu(g,b,C,R,H,W){var K;for(K=3;0<K;--K)Gr(g,b+=4*C,C,1,16,R,H,W)}function k(g,b,C,R,H,W){var K;for(K=3;0<K;--K)Gr(g,b+=4,1,C,16,R,H,W)}function q(g,b,C,R,H,W,K,te){Yr(g,b,H,1,8,W,K,te),Yr(C,R,H,1,8,W,K,te)}function de(g,b,C,R,H,W,K,te){Yr(g,b,1,H,8,W,K,te),Yr(C,R,1,H,8,W,K,te)}function be(g,b,C,R,H,W,K,te){Gr(g,b+4*H,H,1,8,W,K,te),Gr(C,R+4*H,H,1,8,W,K,te)}function Le(g,b,C,R,H,W,K,te){Gr(g,b+4,1,H,8,W,K,te),Gr(C,R+4,1,H,8,W,K,te)}function Ke(){this.ba=new Mt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new nn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nt(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function vt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function St(){this.ua=0,this.Wa=new ue,this.vb=new ue,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Q,this.yc=new X}function Dt(){this.xb=this.a=0,this.l=new Ir,this.ca=new Mt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new z,this.Pb=0,this.wd=new z,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new St,this.ab=0,this.gc=c(4,vt),this.Oc=0}function Ut(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ir,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function an(g,b,C,R,H,W,K){for(g=g==null?0:g[b+0],b=0;b<K;++b)H[W+b]=g+C[R+b]&255,g=H[W+b]}function Un(g,b,C,R,H,W,K){var te;if(g==null)an(null,null,C,R,H,W,K);else for(te=0;te<K;++te)H[W+te]=g[b+te]+C[R+te]&255}function ei(g,b,C,R,H,W,K){if(g==null)an(null,null,C,R,H,W,K);else{var te,se=g[b+0],he=se,Se=se;for(te=0;te<K;++te)he=Se+(se=g[b+te])-he,Se=C[R+te]+(-256&he?0>he?0:255:he)&255,he=se,H[W+te]=Se}}function Nn(g,b,C,R){var H=b.width,W=b.o;if(n(g!=null&&b!=null),0>C||0>=R||C+R>W)return null;if(!g.Cc){if(g.ga==null){var K;if(g.ga=new Ut,(K=g.ga==null)||(K=b.width*b.o,n(g.Gb.length==0),g.Gb=o(K),g.Uc=0,g.Gb==null?K=0:(g.mb=g.Gb,g.nb=g.Uc,g.rc=null,K=1),K=!K),!K){K=g.ga;var te=g.Fa,se=g.P,he=g.qc,Se=g.mb,Pe=g.nb,fe=se+1,Ce=he-1,Oe=K.l;if(n(te!=null&&Se!=null&&b!=null),ao[0]=null,ao[1]=an,ao[2]=Un,ao[3]=ei,K.ca=Se,K.tb=Pe,K.c=b.width,K.i=b.height,n(0<K.c&&0<K.i),1>=he)b=0;else if(K.$a=3&te[se+0],K.Z=te[se+0]>>2&3,K.Lc=te[se+0]>>4&3,se=te[se+0]>>6&3,0>K.$a||1<K.$a||4<=K.Z||1<K.Lc||se)b=0;else if(Oe.put=Nt,Oe.ac=Aa,Oe.bc=Br,Oe.ma=K,Oe.width=b.width,Oe.height=b.height,Oe.Da=b.Da,Oe.v=b.v,Oe.va=b.va,Oe.j=b.j,Oe.o=b.o,K.$a)e:{n(K.$a==1),b=Xo();t:for(;;){if(b==null){b=0;break e}if(n(K!=null),K.mc=b,b.c=K.c,b.i=K.i,b.l=K.l,b.l.ma=K,b.l.width=K.c,b.l.height=K.i,b.a=0,ge(b.m,te,fe,Ce),!Za(K.c,K.i,1,b,null)||(b.ab==1&&b.gc[0].hc==3&&wn(b.s)?(K.ic=1,te=b.c*b.i,b.Ta=null,b.Ua=0,b.V=o(te),b.Ba=0,b.V==null?(b.a=1,b=0):b=1):(K.ic=0,b=Ka(b,K.c)),!b))break t;b=1;break e}K.mc=null,b=0}else b=Ce>=K.c*K.i;K=!b}if(K)return null;g.ga.Lc!=1?g.Ga=0:R=W-C}n(g.ga!=null),n(C+R<=W);e:{if(b=(te=g.ga).c,W=te.l.o,te.$a==0){if(fe=g.rc,Ce=g.Vc,Oe=g.Fa,se=g.P+1+C*b,he=g.mb,Se=g.nb+C*b,n(se<=g.P+g.qc),te.Z!=0)for(n(ao[te.Z]!=null),K=0;K<R;++K)ao[te.Z](fe,Ce,Oe,se,he,Se,b),fe=he,Ce=Se,Se+=b,se+=b;else for(K=0;K<R;++K)r(he,Se,Oe,se,b),fe=he,Ce=Se,Se+=b,se+=b;g.rc=fe,g.Vc=Ce}else{if(n(te.mc!=null),b=C+R,n((K=te.mc)!=null),n(b<=K.i),K.C>=b)b=1;else if(te.ic||ir(),te.ic){te=K.V,fe=K.Ba,Ce=K.c;var We=K.i,Me=(Oe=1,se=K.$/Ce,he=K.$%Ce,Se=K.m,Pe=K.s,K.$),Ve=Ce*We,Je=Ce*b,it=Pe.wc,tt=Me<Je?ki(Pe,he,se):null;n(Me<=Ve),n(b<=We),n(wn(Pe));t:for(;;){for(;!Se.h&&Me<Je;){if(he&it||(tt=ki(Pe,he,se)),n(tt!=null),we(Se),256>(We=Bn(tt.G[0],tt.H[0],Se)))te[fe+Me]=We,++Me,++he>=Ce&&(he=0,++se<=b&&!(se%16)&&Ui(K,se));else{if(!(280>We)){Oe=0;break t}We=da(We-256,Se);var bt,ft=Bn(tt.G[4],tt.H[4],Se);if(we(Se),!(Me>=(ft=pa(Ce,ft=da(ft,Se)))&&Ve-Me>=We)){Oe=0;break t}for(bt=0;bt<We;++bt)te[fe+Me+bt]=te[fe+Me+bt-ft];for(Me+=We,he+=We;he>=Ce;)he-=Ce,++se<=b&&!(se%16)&&Ui(K,se);Me<Je&&he&it&&(tt=ki(Pe,he,se))}n(Se.h==ee(Se))}Ui(K,se>b?b:se);break t}!Oe||Se.h&&Me<Ve?(Oe=0,K.a=Se.h?5:3):K.$=Me,b=Oe}else b=ma(K,K.V,K.Ba,K.c,K.i,b,bo);if(!b){R=0;break e}}C+R>=W&&(g.Cc=1),R=1}if(!R)return null;if(g.Cc&&((R=g.ga)!=null&&(R.mc=null),g.ga=null,0<g.Ga))return alert("todo:WebPDequantizeLevels"),null}return g.nb+C*H}function yi(g,b,C,R,H,W){for(;0<H--;){var K,te=g,se=b+(C?1:0),he=g,Se=b+(C?0:3);for(K=0;K<R;++K){var Pe=he[Se+4*K];Pe!=255&&(Pe*=32897,te[se+4*K+0]=te[se+4*K+0]*Pe>>23,te[se+4*K+1]=te[se+4*K+1]*Pe>>23,te[se+4*K+2]=te[se+4*K+2]*Pe>>23)}b+=W}}function ui(g,b,C,R,H){for(;0<R--;){var W;for(W=0;W<C;++W){var K=g[b+2*W+0],te=15&(he=g[b+2*W+1]),se=4369*te,he=(240&he|he>>4)*se>>16;g[b+2*W+0]=(240&K|K>>4)*se>>16&240|(15&K|K<<4)*se>>16>>4&15,g[b+2*W+1]=240&he|te}b+=H}}function ji(g,b,C,R,H,W,K,te){var se,he,Se=255;for(he=0;he<H;++he){for(se=0;se<R;++se){var Pe=g[b+se];W[K+4*se]=Pe,Se&=Pe}b+=C,K+=te}return Se!=255}function Wr(g,b,C,R,H){var W;for(W=0;W<H;++W)C[R+W]=g[b+W]>>8}function ir(){rs=yi,za=ui,Dl=ji,_a=Wr}function Xr(g,b,C){U[g]=function(R,H,W,K,te,se,he,Se,Pe,fe,Ce,Oe,We,Me,Ve,Je,it){var tt,bt=it-1>>1,ft=te[se+0]|he[Se+0]<<16,Bt=Pe[fe+0]|Ce[Oe+0]<<16;n(R!=null);var gt=3*ft+Bt+131074>>2;for(b(R[H+0],255&gt,gt>>16,We,Me),W!=null&&(gt=3*Bt+ft+131074>>2,b(W[K+0],255&gt,gt>>16,Ve,Je)),tt=1;tt<=bt;++tt){var Kt=te[se+tt]|he[Se+tt]<<16,Rn=Pe[fe+tt]|Ce[Oe+tt]<<16,qt=ft+Kt+Bt+Rn+524296,ht=qt+2*(Kt+Bt)>>3;gt=ht+ft>>1,ft=(qt=qt+2*(ft+Rn)>>3)+Kt>>1,b(R[H+2*tt-1],255&gt,gt>>16,We,Me+(2*tt-1)*C),b(R[H+2*tt-0],255&ft,ft>>16,We,Me+(2*tt-0)*C),W!=null&&(gt=qt+Bt>>1,ft=ht+Rn>>1,b(W[K+2*tt-1],255&gt,gt>>16,Ve,Je+(2*tt-1)*C),b(W[K+2*tt+0],255&ft,ft>>16,Ve,Je+(2*tt+0)*C)),ft=Kt,Bt=Rn}1&it||(gt=3*ft+Bt+131074>>2,b(R[H+it-1],255&gt,gt>>16,We,Me+(it-1)*C),W!=null&&(gt=3*Bt+ft+131074>>2,b(W[K+it-1],255&gt,gt>>16,Ve,Je+(it-1)*C)))}}function Tl(){Mi[bu]=ls,Mi[Yi]=qs,Mi[xu]=Nc,Mi[Ta]=Au,Mi[Il]=Eo,Mi[Is]=zr,Mi[Ao]=Lo,Mi[Fl]=qs,Mi[wu]=Au,Mi[Fs]=Eo,Mi[_u]=zr}function js(g){return g&-16384?0>g?0:255:g>>Nu}function _r(g,b){return js((19077*g>>8)+(26149*b>>8)-14234)}function ar(g,b,C){return js((19077*g>>8)-(6419*b>>8)-(13320*C>>8)+8708)}function ns(g,b){return js((19077*g>>8)+(33050*b>>8)-17685)}function Zr(g,b,C,R,H){R[H+0]=_r(g,C),R[H+1]=ar(g,b,C),R[H+2]=ns(g,b)}function Ni(g,b,C,R,H){R[H+0]=ns(g,b),R[H+1]=ar(g,b,C),R[H+2]=_r(g,C)}function _o(g,b,C,R,H){var W=ar(g,b,C);b=W<<3&224|ns(g,b)>>3,R[H+0]=248&_r(g,C)|W>>5,R[H+1]=b}function So(g,b,C,R,H){var W=240&ns(g,b)|15;R[H+0]=240&_r(g,C)|ar(g,b,C)>>4,R[H+1]=W}function Rs(g,b,C,R,H){R[H+0]=255,Zr(g,b,C,R,H+1)}function Sr(g,b,C,R,H){Ni(g,b,C,R,H),R[H+3]=255}function Qi(g,b,C,R,H){Zr(g,b,C,R,H),R[H+3]=255}function Kr(g,b,C){U[g]=function(R,H,W,K,te,se,he,Se,Pe){for(var fe=Se+(-2&Pe)*C;Se!=fe;)b(R[H+0],W[K+0],te[se+0],he,Se),b(R[H+1],W[K+0],te[se+0],he,Se+C),H+=2,++K,++se,Se+=2*C;1&Pe&&b(R[H+0],W[K+0],te[se+0],he,Se)}}function Os(g,b,C){return C==0?g==0?b==0?6:5:b==0?4:0:C}function jl(g,b,C,R,H){switch(g>>>30){case 3:no(b,C,R,H,0);break;case 2:qi(b,C,R,H);break;case 1:fn(b,C,R,H)}}function xa(g,b){var C,R,H=b.M,W=b.Nb,K=g.oc,te=g.pc+40,se=g.oc,he=g.pc+584,Se=g.oc,Pe=g.pc+600;for(C=0;16>C;++C)K[te+32*C-1]=129;for(C=0;8>C;++C)se[he+32*C-1]=129,Se[Pe+32*C-1]=129;for(0<H?K[te-1-32]=se[he-1-32]=Se[Pe-1-32]=129:(s(K,te-32-1,127,21),s(se,he-32-1,127,9),s(Se,Pe-32-1,127,9)),R=0;R<g.za;++R){var fe=b.ya[b.aa+R];if(0<R){for(C=-1;16>C;++C)r(K,te+32*C-4,K,te+32*C+12,4);for(C=-1;8>C;++C)r(se,he+32*C-4,se,he+32*C+4,4),r(Se,Pe+32*C-4,Se,Pe+32*C+4,4)}var Ce=g.Gd,Oe=g.Hd+R,We=fe.ad,Me=fe.Hc;if(0<H&&(r(K,te-32,Ce[Oe].y,0,16),r(se,he-32,Ce[Oe].f,0,8),r(Se,Pe-32,Ce[Oe].ea,0,8)),fe.Za){var Ve=K,Je=te-32+16;for(0<H&&(R>=g.za-1?s(Ve,Je,Ce[Oe].y[15],4):r(Ve,Je,Ce[Oe+1].y,0,4)),C=0;4>C;C++)Ve[Je+128+C]=Ve[Je+256+C]=Ve[Je+384+C]=Ve[Je+0+C];for(C=0;16>C;++C,Me<<=2)Ve=K,Je=te+ii[C],Wn[fe.Ob[C]](Ve,Je),jl(Me,We,16*+C,Ve,Je)}else if(Ve=Os(R,H,fe.Ob[0]),ea[Ve](K,te),Me!=0)for(C=0;16>C;++C,Me<<=2)jl(Me,We,16*+C,K,te+ii[C]);for(C=fe.Gc,Ve=Os(R,H,fe.Dd),lr[Ve](se,he),lr[Ve](Se,Pe),Me=We,Ve=se,Je=he,255&(fe=0|C)&&(170&fe?La(Me,256,Ve,Je):rn(Me,256,Ve,Je)),fe=Se,Me=Pe,255&(C>>=8)&&(170&C?La(We,320,fe,Me):rn(We,320,fe,Me)),H<g.Ub-1&&(r(Ce[Oe].y,0,K,te+480,16),r(Ce[Oe].f,0,se,he+224,8),r(Ce[Oe].ea,0,Se,Pe+224,8)),C=8*W*g.B,Ce=g.sa,Oe=g.ta+16*R+16*W*g.R,We=g.qa,fe=g.ra+8*R+C,Me=g.Ha,Ve=g.Ia+8*R+C,C=0;16>C;++C)r(Ce,Oe+C*g.R,K,te+32*C,16);for(C=0;8>C;++C)r(We,fe+C*g.B,se,he+32*C,8),r(Me,Ve+C*g.B,Se,Pe+32*C,8)}}function rr(g,b,C,R,H,W,K,te,se){var he=[0],Se=[0],Pe=0,fe=se!=null?se.kd:0,Ce=se??new nt;if(g==null||12>C)return 7;Ce.data=g,Ce.w=b,Ce.ha=C,b=[b],C=[C],Ce.gb=[Ce.gb];e:{var Oe=b,We=C,Me=Ce.gb;if(n(g!=null),n(We!=null),n(Me!=null),Me[0]=0,12<=We[0]&&!i(g,Oe[0],"RIFF")){if(i(g,Oe[0]+8,"WEBP")){Me=3;break e}var Ve=M(g,Oe[0]+4);if(12>Ve||4294967286<Ve){Me=3;break e}if(fe&&Ve>We[0]-8){Me=7;break e}Me[0]=Ve,Oe[0]+=12,We[0]-=12}Me=0}if(Me!=0)return Me;for(Ve=0<Ce.gb[0],C=C[0];;){e:{var Je=g;We=b,Me=C;var it=he,tt=Se,bt=Oe=[0];if((gt=Pe=[Pe])[0]=0,8>Me[0])Me=7;else{if(!i(Je,We[0],"VP8X")){if(M(Je,We[0]+4)!=10){Me=3;break e}if(18>Me[0]){Me=7;break e}var ft=M(Je,We[0]+8),Bt=1+rt(Je,We[0]+12);if(2147483648<=Bt*(Je=1+rt(Je,We[0]+15))){Me=3;break e}bt!=null&&(bt[0]=ft),it!=null&&(it[0]=Bt),tt!=null&&(tt[0]=Je),We[0]+=18,Me[0]-=18,gt[0]=1}Me=0}}if(Pe=Pe[0],Oe=Oe[0],Me!=0)return Me;if(We=!!(2&Oe),!Ve&&Pe)return 3;if(W!=null&&(W[0]=!!(16&Oe)),K!=null&&(K[0]=We),te!=null&&(te[0]=0),K=he[0],Oe=Se[0],Pe&&We&&se==null){Me=0;break}if(4>C){Me=7;break}if(Ve&&Pe||!Ve&&!Pe&&!i(g,b[0],"ALPH")){C=[C],Ce.na=[Ce.na],Ce.P=[Ce.P],Ce.Sa=[Ce.Sa];e:{ft=g,Me=b,Ve=C;var gt=Ce.gb;it=Ce.na,tt=Ce.P,bt=Ce.Sa,Bt=22,n(ft!=null),n(Ve!=null),Je=Me[0];var Kt=Ve[0];for(n(it!=null),n(bt!=null),it[0]=null,tt[0]=null,bt[0]=0;;){if(Me[0]=Je,Ve[0]=Kt,8>Kt){Me=7;break e}var Rn=M(ft,Je+4);if(4294967286<Rn){Me=3;break e}var qt=8+Rn+1&-2;if(Bt+=qt,0<gt&&Bt>gt){Me=3;break e}if(!i(ft,Je,"VP8 ")||!i(ft,Je,"VP8L")){Me=0;break e}if(Kt[0]<qt){Me=7;break e}i(ft,Je,"ALPH")||(it[0]=ft,tt[0]=Je+8,bt[0]=Rn),Je+=qt,Kt-=qt}}if(C=C[0],Ce.na=Ce.na[0],Ce.P=Ce.P[0],Ce.Sa=Ce.Sa[0],Me!=0)break}C=[C],Ce.Ja=[Ce.Ja],Ce.xa=[Ce.xa];e:if(gt=g,Me=b,Ve=C,it=Ce.gb[0],tt=Ce.Ja,bt=Ce.xa,ft=Me[0],Je=!i(gt,ft,"VP8 "),Bt=!i(gt,ft,"VP8L"),n(gt!=null),n(Ve!=null),n(tt!=null),n(bt!=null),8>Ve[0])Me=7;else{if(Je||Bt){if(gt=M(gt,ft+4),12<=it&&gt>it-12){Me=3;break e}if(fe&&gt>Ve[0]-8){Me=7;break e}tt[0]=gt,Me[0]+=8,Ve[0]-=8,bt[0]=Bt}else bt[0]=5<=Ve[0]&&gt[ft+0]==47&&!(gt[ft+4]>>5),tt[0]=Ve[0];Me=0}if(C=C[0],Ce.Ja=Ce.Ja[0],Ce.xa=Ce.xa[0],b=b[0],Me!=0)break;if(4294967286<Ce.Ja)return 3;if(te==null||We||(te[0]=Ce.xa?2:1),K=[K],Oe=[Oe],Ce.xa){if(5>C){Me=7;break}te=K,fe=Oe,We=W,g==null||5>C?g=0:5<=C&&g[b+0]==47&&!(g[b+4]>>5)?(Ve=[0],gt=[0],it=[0],ge(tt=new z,g,b,C),vr(tt,Ve,gt,it)?(te!=null&&(te[0]=Ve[0]),fe!=null&&(fe[0]=gt[0]),We!=null&&(We[0]=it[0]),g=1):g=0):g=0}else{if(10>C){Me=7;break}te=Oe,g==null||10>C||!wl(g,b+3,C-3)?g=0:(fe=g[b+0]|g[b+1]<<8|g[b+2]<<16,We=16383&(g[b+7]<<8|g[b+6]),g=16383&(g[b+9]<<8|g[b+8]),1&fe||3<(fe>>1&7)||!(fe>>4&1)||fe>>5>=Ce.Ja||!We||!g?g=0:(K&&(K[0]=We),te&&(te[0]=g),g=1))}if(!g||(K=K[0],Oe=Oe[0],Pe&&(he[0]!=K||Se[0]!=Oe)))return 3;se!=null&&(se[0]=Ce,se.offset=b-se.w,n(4294967286>b-se.w),n(se.offset==se.ha-C));break}return Me==0||Me==7&&Pe&&se==null?(W!=null&&(W[0]|=Ce.na!=null&&0<Ce.na.length),R!=null&&(R[0]=K),H!=null&&(H[0]=Oe),0):Me}function Jr(g,b,C){var R=b.width,H=b.height,W=0,K=0,te=R,se=H;if(b.Da=g!=null&&0<g.Da,b.Da&&(te=g.cd,se=g.bd,W=g.v,K=g.j,11>C||(W&=-2,K&=-2),0>W||0>K||0>=te||0>=se||W+te>R||K+se>H))return 0;if(b.v=W,b.j=K,b.va=W+te,b.o=K+se,b.U=te,b.T=se,b.da=g!=null&&0<g.da,b.da){if(!re(te,se,C=[g.ib],W=[g.hb]))return 0;b.ib=C[0],b.hb=W[0]}return b.ob=g!=null&&g.ob,b.Kb=g==null||!g.Sd,b.da&&(b.ob=b.ib<3*R/4&&b.hb<3*H/4,b.Kb=0),1}function Rl(g){if(g==null)return 2;if(11>g.S){var b=g.f.RGBA;b.fb+=(g.height-1)*b.A,b.A=-b.A}else b=g.f.kb,g=g.height,b.O+=(g-1)*b.fa,b.fa=-b.fa,b.N+=(g-1>>1)*b.Ab,b.Ab=-b.Ab,b.W+=(g-1>>1)*b.Db,b.Db=-b.Db,b.F!=null&&(b.J+=(g-1)*b.lb,b.lb=-b.lb);return 0}function or(g,b,C,R){if(R==null||0>=g||0>=b)return 2;if(C!=null){if(C.Da){var H=C.cd,W=C.bd,K=-2&C.v,te=-2&C.j;if(0>K||0>te||0>=H||0>=W||K+H>g||te+W>b)return 2;g=H,b=W}if(C.da){if(!re(g,b,H=[C.ib],W=[C.hb]))return 2;g=H[0],b=W[0]}}R.width=g,R.height=b;e:{var se=R.width,he=R.height;if(g=R.S,0>=se||0>=he||!(g>=bu&&13>g))g=2;else{if(0>=R.Rd&&R.sd==null){K=W=H=b=0;var Se=(te=se*Eu[g])*he;if(11>g||(W=(he+1)/2*(b=(se+1)/2),g==12&&(K=(H=se)*he)),(he=o(Se+2*W+K))==null){g=1;break e}R.sd=he,11>g?((se=R.f.RGBA).eb=he,se.fb=0,se.A=te,se.size=Se):((se=R.f.kb).y=he,se.O=0,se.fa=te,se.Fd=Se,se.f=he,se.N=0+Se,se.Ab=b,se.Cd=W,se.ea=he,se.W=0+Se+W,se.Db=b,se.Ed=W,g==12&&(se.F=he,se.J=0+Se+2*W),se.Tc=K,se.lb=H)}if(b=1,H=R.S,W=R.width,K=R.height,H>=bu&&13>H)if(11>H)g=R.f.RGBA,b&=(te=Math.abs(g.A))*(K-1)+W<=g.size,b&=te>=W*Eu[H],b&=g.eb!=null;else{g=R.f.kb,te=(W+1)/2,Se=(K+1)/2,se=Math.abs(g.fa),he=Math.abs(g.Ab);var Pe=Math.abs(g.Db),fe=Math.abs(g.lb),Ce=fe*(K-1)+W;b&=se*(K-1)+W<=g.Fd,b&=he*(Se-1)+te<=g.Cd,b=(b&=Pe*(Se-1)+te<=g.Ed)&se>=W&he>=te&Pe>=te,b&=g.y!=null,b&=g.f!=null,b&=g.ea!=null,H==12&&(b&=fe>=W,b&=Ce<=g.Tc,b&=g.F!=null)}else b=0;g=b?0:2}}return g!=0||C!=null&&C.fd&&(g=Rl(R)),g}var ko=64,ra=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],$i=24,kr=32,Ar=8,Qr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Re("Predictor0","PredictorAdd0"),U.Predictor0=function(){return 4278190080},U.Predictor1=function(g){return g},U.Predictor2=function(g,b,C){return b[C+0]},U.Predictor3=function(g,b,C){return b[C+1]},U.Predictor4=function(g,b,C){return b[C-1]},U.Predictor5=function(g,b,C){return He(He(g,b[C+1]),b[C+0])},U.Predictor6=function(g,b,C){return He(g,b[C-1])},U.Predictor7=function(g,b,C){return He(g,b[C+0])},U.Predictor8=function(g,b,C){return He(b[C-1],b[C+0])},U.Predictor9=function(g,b,C){return He(b[C+0],b[C+1])},U.Predictor10=function(g,b,C){return He(He(g,b[C-1]),He(b[C+0],b[C+1]))},U.Predictor11=function(g,b,C){var R=b[C+0];return 0>=ve(R>>24&255,g>>24&255,(b=b[C-1])>>24&255)+ve(R>>16&255,g>>16&255,b>>16&255)+ve(R>>8&255,g>>8&255,b>>8&255)+ve(255&R,255&g,255&b)?R:g},U.Predictor12=function(g,b,C){var R=b[C+0];return(Ee((g>>24&255)+(R>>24&255)-((b=b[C-1])>>24&255))<<24|Ee((g>>16&255)+(R>>16&255)-(b>>16&255))<<16|Ee((g>>8&255)+(R>>8&255)-(b>>8&255))<<8|Ee((255&g)+(255&R)-(255&b)))>>>0},U.Predictor13=function(g,b,C){var R=b[C-1];return(je((g=He(g,b[C+0]))>>24&255,R>>24&255)<<24|je(g>>16&255,R>>16&255)<<16|je(g>>8&255,R>>8&255)<<8|je(255&g,255&R))>>>0};var Ds=U.PredictorAdd0;U.PredictorAdd1=Be,Re("Predictor2","PredictorAdd2"),Re("Predictor3","PredictorAdd3"),Re("Predictor4","PredictorAdd4"),Re("Predictor5","PredictorAdd5"),Re("Predictor6","PredictorAdd6"),Re("Predictor7","PredictorAdd7"),Re("Predictor8","PredictorAdd8"),Re("Predictor9","PredictorAdd9"),Re("Predictor10","PredictorAdd10"),Re("Predictor11","PredictorAdd11"),Re("Predictor12","PredictorAdd12"),Re("Predictor13","PredictorAdd13");var Ms=U.PredictorAdd2;lt("ColorIndexInverseTransform","MapARGB","32b",function(g){return g>>8&255},function(g){return g}),lt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(g){return g},function(g){return g>>8&255});var ti,gu=U.ColorIndexInverseTransform,Nr=U.MapARGB,Cr=U.VP8LColorIndexInverseTransformAlpha,Ri=U.MapAlpha,$r=U.VP8LPredictorsAdd=[];$r.length=16,(U.VP8LPredictors=[]).length=16,(U.VP8LPredictorsAdd_C=[]).length=16,(U.VP8LPredictors_C=[]).length=16;var Bs,Ps,eo,to,Er,is,wa,no,qi,La,fn,rn,Cn,ni,Lr,sr,as,Ol,wc,Ef,Lf,zf,_c,Sc,rs,za,Dl,_a,os=o(511),vu=o(2041),Ml=o(225),Bl=o(767),yu=0,io=vu,Pl=Ml,Hi=Bl,Oi=os,bu=0,Yi=1,xu=2,Ta=3,Il=4,Is=5,Ao=6,Fl=7,wu=8,Fs=9,_u=10,ja=[2,3,7],Us=[3,3,11],ss=[280,256,256,256,40],Su=[0,1,1,1,0],Ul=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ra=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Oa=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],No=8,Da=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Ma=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Sa=null,Tf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],kc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ku=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],jf=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Di=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],jn=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Jt=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ea=[],Wn=[],lr=[],Co=1,Ac=2,ao=[],Mi=[];Xr("UpsampleRgbLinePair",Zr,3),Xr("UpsampleBgrLinePair",Ni,3),Xr("UpsampleRgbaLinePair",Qi,4),Xr("UpsampleBgraLinePair",Sr,4),Xr("UpsampleArgbLinePair",Rs,4),Xr("UpsampleRgba4444LinePair",So,2),Xr("UpsampleRgb565LinePair",_o,2);var ls=U.UpsampleRgbLinePair,Nc=U.UpsampleBgrLinePair,qs=U.UpsampleRgbaLinePair,Au=U.UpsampleBgraLinePair,Eo=U.UpsampleArgbLinePair,zr=U.UpsampleRgba4444LinePair,Lo=U.UpsampleRgb565LinePair,Ba=16,Hs=1<<Ba-1,us=-227,zo=482,Nu=6,To=0,Bi=o(256),Cu=o(256),Rf=o(256),cd=o(256),fd=o(zo-us),hd=o(zo-us);Kr("YuvToRgbRow",Zr,3),Kr("YuvToBgrRow",Ni,3),Kr("YuvToRgbaRow",Qi,4),Kr("YuvToBgraRow",Sr,4),Kr("YuvToArgbRow",Rs,4),Kr("YuvToRgba4444Row",So,2),Kr("YuvToRgb565Row",_o,2);var ii=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ys=[0,2,8],ql=[8,7,6,4,4,2,2,2,1,1,1,1],Hl=1;this.WebPDecodeRGBA=function(g,b,C,R,H){var W=Yi,K=new Ke,te=new Mt;K.ba=te,te.S=W,te.width=[te.width],te.height=[te.height];var se=te.width,he=te.height,Se=new wt;if(Se==null||g==null)var Pe=2;else n(Se!=null),Pe=rr(g,b,C,Se.width,Se.height,Se.Pd,Se.Qd,Se.format,null);if(Pe!=0?se=0:(se!=null&&(se[0]=Se.width[0]),he!=null&&(he[0]=Se.height[0]),se=1),se){te.width=te.width[0],te.height=te.height[0],R!=null&&(R[0]=te.width),H!=null&&(H[0]=te.height);e:{if(R=new Ir,(H=new nt).data=g,H.w=b,H.ha=C,H.kd=1,b=[0],n(H!=null),((g=rr(H.data,H.w,H.ha,null,null,null,b,null,H))==0||g==7)&&b[0]&&(g=4),(b=g)==0){if(n(K!=null),R.data=H.data,R.w=H.w+H.offset,R.ha=H.ha-H.offset,R.put=Nt,R.ac=Aa,R.bc=Br,R.ma=K,H.xa){if((g=Xo())==null){K=1;break e}if((function(fe,Ce){var Oe=[0],We=[0],Me=[0];t:for(;;){if(fe==null)return 0;if(Ce==null)return fe.a=2,0;if(fe.l=Ce,fe.a=0,ge(fe.m,Ce.data,Ce.w,Ce.ha),!vr(fe.m,Oe,We,Me)){fe.a=3;break t}if(fe.xb=Ac,Ce.width=Oe[0],Ce.height=We[0],!Za(Oe[0],We[0],1,fe,null))break t;return 1}return n(fe.a!=0),0})(g,R)){if(R=(b=or(R.width,R.height,K.Oa,K.ba))==0){t:{R=g;n:for(;;){if(R==null){R=0;break t}if(n(R.s.yc!=null),n(R.s.Ya!=null),n(0<R.s.Wb),n((C=R.l)!=null),n((H=C.ma)!=null),R.xb!=0){if(R.ca=H.ba,R.tb=H.tb,n(R.ca!=null),!Jr(H.Oa,C,Ta)){R.a=2;break n}if(!Ka(R,C.width)||C.da)break n;if((C.da||Et(R.ca.S))&&ir(),11>R.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),R.ca.f.kb.F!=null&&ir()),R.Pb&&0<R.s.ua&&R.s.vb.X==null&&!Y(R.s.vb,R.s.Wa.Xa)){R.a=1;break n}R.xb=0}if(!ma(R,R.V,R.Ba,R.c,R.i,C.o,Zi))break n;H.Dc=R.Ma,R=1;break t}n(R.a!=0),R=0}R=!R}R&&(b=g.a)}else b=g.a}else{if((g=new er)==null){K=1;break e}if(g.Fa=H.na,g.P=H.P,g.qc=H.Sa,br(g,R)){if((b=or(R.width,R.height,K.Oa,K.ba))==0){if(g.Aa=0,C=K.Oa,n((H=g)!=null),C!=null){if(0<(se=0>(se=C.Md)?0:100<se?255:255*se/100)){for(he=Se=0;4>he;++he)12>(Pe=H.pb[he]).lc&&(Pe.ia=se*ql[0>Pe.lc?0:Pe.lc]>>3),Se|=Pe.ia;Se&&(alert("todo:VP8InitRandom"),H.ia=1)}H.Ga=C.Id,100<H.Ga?H.Ga=100:0>H.Ga&&(H.Ga=0)}(function(fe,Ce){if(fe==null)return 0;if(Ce==null)return cn(fe,2,"NULL VP8Io parameter in VP8Decode().");if(!fe.cb&&!br(fe,Ce))return 0;if(n(fe.cb),Ce.ac==null||Ce.ac(Ce)){Ce.ob&&(fe.L=0);var Oe=Ys[fe.L];if(fe.L==2?(fe.yb=0,fe.zb=0):(fe.yb=Ce.v-Oe>>4,fe.zb=Ce.j-Oe>>4,0>fe.yb&&(fe.yb=0),0>fe.zb&&(fe.zb=0)),fe.Va=Ce.o+15+Oe>>4,fe.Hb=Ce.va+15+Oe>>4,fe.Hb>fe.za&&(fe.Hb=fe.za),fe.Va>fe.Ub&&(fe.Va=fe.Ub),0<fe.L){var We=fe.ed;for(Oe=0;4>Oe;++Oe){var Me;if(fe.Qa.Cb){var Ve=fe.Qa.Lb[Oe];fe.Qa.Fb||(Ve+=We.Tb)}else Ve=We.Tb;for(Me=0;1>=Me;++Me){var Je=fe.gd[Oe][Me],it=Ve;if(We.Pc&&(it+=We.vd[0],Me&&(it+=We.od[0])),0<(it=0>it?0:63<it?63:it)){var tt=it;0<We.wb&&(tt=4<We.wb?tt>>2:tt>>1)>9-We.wb&&(tt=9-We.wb),1>tt&&(tt=1),Je.dd=tt,Je.tc=2*it+tt,Je.ld=40<=it?2:15<=it?1:0}else Je.tc=0;Je.La=Me}}}Oe=0}else cn(fe,6,"Frame setup failed"),Oe=fe.a;if(Oe=Oe==0){if(Oe){fe.$c=0,0<fe.Aa||(fe.Ic=Hl);t:{Oe=fe.Ic,We=4*(tt=fe.za);var bt=32*tt,ft=tt+1,Bt=0<fe.L?tt*(0<fe.Aa?2:1):0,gt=(fe.Aa==2?2:1)*tt;if((Je=We+832+(Me=3*(16*Oe+Ys[fe.L])/2*bt)+(Ve=fe.Fa!=null&&0<fe.Fa.length?fe.Kc.c*fe.Kc.i:0))!=Je)Oe=0;else{if(Je>fe.Vb){if(fe.Vb=0,fe.Ec=o(Je),fe.Fc=0,fe.Ec==null){Oe=cn(fe,1,"no memory during frame initialization.");break t}fe.Vb=Je}Je=fe.Ec,it=fe.Fc,fe.Ac=Je,fe.Bc=it,it+=We,fe.Gd=c(bt,xl),fe.Hd=0,fe.rb=c(ft+1,$a),fe.sb=1,fe.wa=Bt?c(Bt,ga):null,fe.Y=0,fe.D.Nb=0,fe.D.wa=fe.wa,fe.D.Y=fe.Y,0<fe.Aa&&(fe.D.Y+=tt),n(!0),fe.oc=Je,fe.pc=it,it+=832,fe.ya=c(gt,yl),fe.aa=0,fe.D.ya=fe.ya,fe.D.aa=fe.aa,fe.Aa==2&&(fe.D.aa+=tt),fe.R=16*tt,fe.B=8*tt,tt=(bt=Ys[fe.L])*fe.R,bt=bt/2*fe.B,fe.sa=Je,fe.ta=it+tt,fe.qa=fe.sa,fe.ra=fe.ta+16*Oe*fe.R+bt,fe.Ha=fe.qa,fe.Ia=fe.ra+8*Oe*fe.B+bt,fe.$c=0,it+=Me,fe.mb=Ve?Je:null,fe.nb=Ve?it:null,n(it+Ve<=fe.Fc+fe.Vb),_l(fe),s(fe.Ac,fe.Bc,0,We),Oe=1}}if(Oe){if(Ce.ka=0,Ce.y=fe.sa,Ce.O=fe.ta,Ce.f=fe.qa,Ce.N=fe.ra,Ce.ea=fe.Ha,Ce.Vd=fe.Ia,Ce.fa=fe.R,Ce.Rc=fe.B,Ce.F=null,Ce.J=0,!yu){for(Oe=-255;255>=Oe;++Oe)os[255+Oe]=0>Oe?-Oe:Oe;for(Oe=-1020;1020>=Oe;++Oe)vu[1020+Oe]=-128>Oe?-128:127<Oe?127:Oe;for(Oe=-112;112>=Oe;++Oe)Ml[112+Oe]=-16>Oe?-16:15<Oe?15:Oe;for(Oe=-255;510>=Oe;++Oe)Bl[255+Oe]=0>Oe?0:255<Oe?255:Oe;yu=1}wa=tr,no=Sl,La=Ji,fn=kl,rn=Al,qi=su,Cn=pu,ni=Vr,Lr=q,sr=de,as=mu,Ol=k,wc=be,Ef=Le,Lf=qr,zf=Hr,_c=ts,Sc=zl,Wn[0]=hu,Wn[1]=lu,Wn[2]=fu,Wn[3]=El,Wn[4]=ya,Wn[5]=Ll,Wn[6]=Ti,Wn[7]=Qo,Wn[8]=$o,Wn[9]=ba,ea[0]=nr,ea[1]=Nl,ea[2]=Cl,ea[3]=cu,ea[4]=Fr,ea[5]=Jo,ea[6]=wo,lr[0]=Ls,lr[1]=uu,lr[2]=xr,lr[3]=du,lr[4]=Ai,lr[5]=zs,lr[6]=wr,Oe=1}else Oe=0}Oe&&(Oe=(function(Kt,Rn){for(Kt.M=0;Kt.M<Kt.Va;++Kt.M){var qt,ht=Kt.Jc[Kt.M&Kt.Xb],ut=Kt.m,qn=Kt;for(qt=0;qt<qn.za;++qt){var jt=ut,Gt=qn,gn=Gt.Ac,bi=Gt.Bc+4*qt,Pi=Gt.zc,En=Gt.ya[Gt.aa+qt];if(Gt.Qa.Bb?En.$b=Ue(jt,Gt.Pa.jb[0])?2+Ue(jt,Gt.Pa.jb[2]):Ue(jt,Gt.Pa.jb[1]):En.$b=0,Gt.kc&&(En.Ad=Ue(jt,Gt.Bd)),En.Za=!Ue(jt,145)+0,En.Za){var ci=En.Ob,Gi=0;for(Gt=0;4>Gt;++Gt){var fi,Zt=Pi[0+Gt];for(fi=0;4>fi;++fi){Zt=Di[gn[bi+fi]][Zt];for(var sn=ku[Ue(jt,Zt[0])];0<sn;)sn=ku[2*sn+Ue(jt,Zt[sn])];Zt=-sn,gn[bi+fi]=Zt}r(ci,Gi,gn,bi,4),Gi+=4,Pi[0+Gt]=Zt}}else Zt=Ue(jt,156)?Ue(jt,128)?1:3:Ue(jt,163)?2:0,En.Ob[0]=Zt,s(gn,bi,Zt,4),s(Pi,0,Zt,4);En.Dd=Ue(jt,142)?Ue(jt,114)?Ue(jt,183)?1:3:2:0}if(qn.m.Ka)return cn(Kt,7,"Premature end-of-partition0 encountered.");for(;Kt.ja<Kt.za;++Kt.ja){if(qn=ht,jt=(ut=Kt).rb[ut.sb-1],gn=ut.rb[ut.sb+ut.ja],qt=ut.ya[ut.aa+ut.ja],bi=ut.kc?qt.Ad:0)jt.la=gn.la=0,qt.Za||(jt.Na=gn.Na=0),qt.Hc=0,qt.Gc=0,qt.ia=0;else{var Hn,hn;if(jt=gn,gn=qn,bi=ut.Pa.Xc,Pi=ut.ya[ut.aa+ut.ja],En=ut.pb[Pi.$b],Gt=Pi.ad,ci=0,Gi=ut.rb[ut.sb-1],Zt=fi=0,s(Gt,ci,0,384),Pi.Za)var xi=0,Yn=bi[3];else{sn=o(16);var ln=jt.Na+Gi.Na;if(ln=Sa(gn,bi[1],ln,En.Eb,0,sn,0),jt.Na=Gi.Na=(0<ln)+0,1<ln)wa(sn,0,Gt,ci);else{var ai=sn[0]+3>>3;for(sn=0;256>sn;sn+=16)Gt[ci+sn]=ai}xi=1,Yn=bi[0]}var vn=15&jt.la,hi=15&Gi.la;for(sn=0;4>sn;++sn){var di=1&hi;for(ai=hn=0;4>ai;++ai)vn=vn>>1|(di=(ln=Sa(gn,Yn,ln=di+(1&vn),En.Sc,xi,Gt,ci))>xi)<<7,hn=hn<<2|(3<ln?3:1<ln?2:Gt[ci+0]!=0),ci+=16;vn>>=4,hi=hi>>1|di<<7,fi=(fi<<8|hn)>>>0}for(Yn=vn,xi=hi>>4,Hn=0;4>Hn;Hn+=2){for(hn=0,vn=jt.la>>4+Hn,hi=Gi.la>>4+Hn,sn=0;2>sn;++sn){for(di=1&hi,ai=0;2>ai;++ai)ln=di+(1&vn),vn=vn>>1|(di=0<(ln=Sa(gn,bi[2],ln,En.Qc,0,Gt,ci)))<<3,hn=hn<<2|(3<ln?3:1<ln?2:Gt[ci+0]!=0),ci+=16;vn>>=2,hi=hi>>1|di<<5}Zt|=hn<<4*Hn,Yn|=vn<<4<<Hn,xi|=(240&hi)<<Hn}jt.la=Yn,Gi.la=xi,Pi.Hc=fi,Pi.Gc=Zt,Pi.ia=43690&Zt?0:En.ia,bi=!(fi|Zt)}if(0<ut.L&&(ut.wa[ut.Y+ut.ja]=ut.gd[qt.$b][qt.Za],ut.wa[ut.Y+ut.ja].La|=!bi),qn.Ka)return cn(Kt,7,"Premature end-of-file encountered.")}if(_l(Kt),ut=Rn,qn=1,qt=(ht=Kt).D,jt=0<ht.L&&ht.M>=ht.zb&&ht.M<=ht.Va,ht.Aa==0)t:{if(qt.M=ht.M,qt.uc=jt,xa(ht,qt),qn=1,qt=(hn=ht.D).Nb,jt=(Zt=Ys[ht.L])*ht.R,gn=Zt/2*ht.B,sn=16*qt*ht.R,ai=8*qt*ht.B,bi=ht.sa,Pi=ht.ta-jt+sn,En=ht.qa,Gt=ht.ra-gn+ai,ci=ht.Ha,Gi=ht.Ia-gn+ai,hi=(vn=hn.M)==0,fi=vn>=ht.Va-1,ht.Aa==2&&xa(ht,hn),hn.uc)for(di=(ln=ht).D.M,n(ln.D.uc),hn=ln.yb;hn<ln.Hb;++hn){xi=hn,Yn=di;var _n=(on=(pi=ln).D).Nb;Hn=pi.R;var on=on.wa[on.Y+xi],Vi=pi.sa,Xn=pi.ta+16*_n*Hn+16*xi,Ct=on.dd,Lt=on.tc;if(Lt!=0)if(n(3<=Lt),pi.L==1)0<xi&&zf(Vi,Xn,Hn,Lt+4),on.La&&Sc(Vi,Xn,Hn,Lt),0<Yn&&Lf(Vi,Xn,Hn,Lt+4),on.La&&_c(Vi,Xn,Hn,Lt);else{var un=pi.B,oa=pi.qa,Pa=pi.ra+8*_n*un+8*xi,ta=pi.Ha,pi=pi.Ia+8*_n*un+8*xi;_n=on.ld,0<xi&&(ni(Vi,Xn,Hn,Lt+4,Ct,_n),sr(oa,Pa,ta,pi,un,Lt+4,Ct,_n)),on.La&&(Ol(Vi,Xn,Hn,Lt,Ct,_n),Ef(oa,Pa,ta,pi,un,Lt,Ct,_n)),0<Yn&&(Cn(Vi,Xn,Hn,Lt+4,Ct,_n),Lr(oa,Pa,ta,pi,un,Lt+4,Ct,_n)),on.La&&(as(Vi,Xn,Hn,Lt,Ct,_n),wc(oa,Pa,ta,pi,un,Lt,Ct,_n))}}if(ht.ia&&alert("todo:DitherRow"),ut.put!=null){if(hn=16*vn,vn=16*(vn+1),hi?(ut.y=ht.sa,ut.O=ht.ta+sn,ut.f=ht.qa,ut.N=ht.ra+ai,ut.ea=ht.Ha,ut.W=ht.Ia+ai):(hn-=Zt,ut.y=bi,ut.O=Pi,ut.f=En,ut.N=Gt,ut.ea=ci,ut.W=Gi),fi||(vn-=Zt),vn>ut.o&&(vn=ut.o),ut.F=null,ut.J=null,ht.Fa!=null&&0<ht.Fa.length&&hn<vn&&(ut.J=Nn(ht,ut,hn,vn-hn),ut.F=ht.mb,ut.F==null&&ut.F.length==0)){qn=cn(ht,3,"Could not decode alpha data.");break t}hn<ut.j&&(Zt=ut.j-hn,hn=ut.j,n(!(1&Zt)),ut.O+=ht.R*Zt,ut.N+=ht.B*(Zt>>1),ut.W+=ht.B*(Zt>>1),ut.F!=null&&(ut.J+=ut.width*Zt)),hn<vn&&(ut.O+=ut.v,ut.N+=ut.v>>1,ut.W+=ut.v>>1,ut.F!=null&&(ut.J+=ut.v),ut.ka=hn-ut.j,ut.U=ut.va-ut.v,ut.T=vn-hn,qn=ut.put(ut))}qt+1!=ht.Ic||fi||(r(ht.sa,ht.ta-jt,bi,Pi+16*ht.R,jt),r(ht.qa,ht.ra-gn,En,Gt+8*ht.B,gn),r(ht.Ha,ht.Ia-gn,ci,Gi+8*ht.B,gn))}if(!qn)return cn(Kt,6,"Output aborted.")}return 1})(fe,Ce)),Ce.bc!=null&&Ce.bc(Ce),Oe&=1}return Oe?(fe.cb=0,Oe):0})(g,R)||(b=g.a)}}else b=g.a}b==0&&K.Oa!=null&&K.Oa.fd&&(b=Rl(K.ba))}K=b}W=K!=0?null:11>W?te.f.RGBA.eb:te.f.kb.y}else W=null;return W};var Eu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(U,le){for(var F="",T=0;T<4;T++)F+=String.fromCharCode(U[le++]);return F}function m(U,le){return U[le+0]|U[le+1]<<8}function y(U,le){return(U[le+0]|U[le+1]<<8|U[le+2]<<16)>>>0}function w(U,le){return(U[le+0]|U[le+1]<<8|U[le+2]<<16|U[le+3]<<24)>>>0}new h;var p=[0],A=[0],S=[],E=new h,_=e,j=(function(U,le){var F={},T=0,X=!1,N=0,Q=0;if(F.frames=[],!(function(L,z){for(var V=0;V<4;V++)if(L[z+V]!="RIFF".charCodeAt(V))return!0;return!1})(U,le)){for(w(U,le+=4),le+=8;le<U.length;){var ie=d(U,le),oe=w(U,le+=4);le+=4;var me=oe+(1&oe);switch(ie){case"VP8 ":case"VP8L":F.frames[T]===void 0&&(F.frames[T]={}),(I=F.frames[T]).src_off=X?Q:le-8,I.src_size=N+oe+8,T++,X&&(X=!1,N=0,Q=0);break;case"VP8X":(I=F.header={}).feature_flags=U[le];var ge=le+4;I.canvas_width=1+y(U,ge),ge+=3,I.canvas_height=1+y(U,ge),ge+=3;break;case"ALPH":X=!0,N=me+8,Q=le-8;break;case"ANIM":(I=F.header).bgcolor=w(U,le),ge=le+4,I.loop_count=m(U,ge),ge+=2;break;case"ANMF":var Z,I;(I=F.frames[T]={}).offset_x=2*y(U,le),le+=3,I.offset_y=2*y(U,le),le+=3,I.width=1+y(U,le),le+=3,I.height=1+y(U,le),le+=3,I.duration=y(U,le),le+=3,Z=U[le++],I.dispose=1&Z,I.blend=Z>>1&1}ie!="ANMF"&&(le+=me)}return F}})(_,0);j.response=_,j.rgbaoutput=!0,j.dataurl=!1;var O=j.header?j.header:null,P=j.frames?j.frames:null;if(O){O.loop_counter=O.loop_count,p=[O.canvas_height],A=[O.canvas_width];for(var G=0;G<P.length&&P[G].blend!=0;G++);}var J=P[0],ae=E.WebPDecodeRGBA(_,J.src_off,J.src_size,A,p);J.rgba=ae,J.imgwidth=A[0],J.imgheight=p[0];for(var ne=0;ne<A[0]*p[0]*4;ne++)S[ne]=ae[ne];return this.width=A,this.height=p,this.data=S,this}(function(e){var n,i,r,s,o,c,u,h,d,m=function(L){return L=L||{},this.isStrokeTransparent=L.isStrokeTransparent||!1,this.strokeOpacity=L.strokeOpacity||1,this.strokeStyle=L.strokeStyle||"#000000",this.fillStyle=L.fillStyle||"#000000",this.isFillTransparent=L.isFillTransparent||!1,this.fillOpacity=L.fillOpacity||1,this.font=L.font||"10px sans-serif",this.textBaseline=L.textBaseline||"alphabetic",this.textAlign=L.textAlign||"left",this.lineWidth=L.lineWidth||1,this.lineJoin=L.lineJoin||"miter",this.lineCap=L.lineCap||"butt",this.path=L.path||[],this.transform=L.transform!==void 0?L.transform.clone():new h,this.globalCompositeOperation=L.globalCompositeOperation||"normal",this.globalAlpha=L.globalAlpha||1,this.clip_path=L.clip_path||[],this.currentPoint=L.currentPoint||new c,this.miterLimit=L.miterLimit||10,this.lastPoint=L.lastPoint||new c,this.lineDashOffset=L.lineDashOffset||0,this.lineDash=L.lineDash||[],this.margin=L.margin||[0,0,0,0],this.prevPageLastElemOffset=L.prevPageLastElemOffset||0,this.ignoreClearRect=typeof L.ignoreClearRect!="boolean"||L.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new y(this),n=this.internal.f2,i=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,c=this.internal.Point,u=this.internal.Rectangle,h=this.internal.Matrix,d=new m}]);var y=function(L){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var z=L;Object.defineProperty(this,"pdf",{get:function(){return z}});var V=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return V},set:function(Y){V=!!Y}});var ee=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ee},set:function(Y){ee=!!Y}});var pe=0;Object.defineProperty(this,"posX",{get:function(){return pe},set:function(Y){isNaN(Y)||(pe=Y)}});var we=0;Object.defineProperty(this,"posY",{get:function(){return we},set:function(Y){isNaN(Y)||(we=Y)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(Y){var xe;typeof Y=="number"?xe=[Y,Y,Y,Y]:((xe=new Array(4))[0]=Y[0],xe[1]=Y.length>=2?Y[1]:xe[0],xe[2]=Y.length>=3?Y[2]:xe[0],xe[3]=Y.length>=4?Y[3]:xe[1]),d.margin=xe}});var Ae=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ae},set:function(Y){Ae=Y}});var Ne=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ne},set:function(Y){Ne=Y}});var Ue=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ue},set:function(Y){Ue=Y}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(Y){Y instanceof m&&(d=Y)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(Y){d.path=Y}});var Xe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Xe},set:function(Y){Xe=Y}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Y){var xe;xe=w(Y),this.ctx.fillStyle=xe.style,this.ctx.isFillTransparent=xe.a===0,this.ctx.fillOpacity=xe.a,this.pdf.setFillColor(xe.r,xe.g,xe.b,{a:xe.a}),this.pdf.setTextColor(xe.r,xe.g,xe.b,{a:xe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Y){var xe=w(Y);this.ctx.strokeStyle=xe.style,this.ctx.isStrokeTransparent=xe.a===0,this.ctx.strokeOpacity=xe.a,xe.a===0?this.pdf.setDrawColor(255,255,255):(xe.a,this.pdf.setDrawColor(xe.r,xe.g,xe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Y){["butt","round","square"].indexOf(Y)!==-1&&(this.ctx.lineCap=Y,this.pdf.setLineCap(Y))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Y){isNaN(Y)||(this.ctx.lineWidth=Y,this.pdf.setLineWidth(Y))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Y){["bevel","round","miter"].indexOf(Y)!==-1&&(this.ctx.lineJoin=Y,this.pdf.setLineJoin(Y))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Y){isNaN(Y)||(this.ctx.miterLimit=Y,this.pdf.setMiterLimit(Y))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Y){this.ctx.textBaseline=Y}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Y){["right","end","center","left","start"].indexOf(Y)!==-1&&(this.ctx.textAlign=Y)}});var at=null,rt=null,M=null;Object.defineProperty(this,"fontFaces",{get:function(){return M},set:function(Y){at=null,rt=null,M=Y}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Y){var xe;if(this.ctx.font=Y,(xe=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(Y))!==null){var ue=xe[1];xe[2];var re=xe[3],ce=xe[4];xe[5];var De=xe[6],Re=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ce)[2];ce=Math.floor(Re==="px"?parseFloat(ce)*this.pdf.internal.scaleFactor:Re==="em"?parseFloat(ce)*this.pdf.getFontSize():parseFloat(ce)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ce);var _e=(function(lt){var Vt,ct,dt=[],_t=lt.trim();if(_t==="")return tm;if(_t in m5)return[m5[_t]];for(;_t!=="";){switch(ct=null,Vt=(_t=v5(_t)).charAt(0)){case'"':case"'":ct=e_(_t.substring(1),Vt);break;default:ct=t_(_t)}if(ct===null||(dt.push(ct[0]),(_t=v5(ct[1]))!==""&&_t.charAt(0)!==","))return tm;_t=_t.replace(/^,/,"")}return dt})(De);if(this.fontFaces){var He=(function(lt,Vt){var ct=lt.getFontList(),dt=JSON.stringify(ct);if(at===null||rt!==dt){var _t=(function(mt){var pt=[];return Object.keys(mt).forEach(function(Ft){mt[Ft].forEach(function(Et){var Ot=null;switch(Et){case"bold":Ot={family:Ft,weight:"bold"};break;case"italic":Ot={family:Ft,style:"italic"};break;case"bolditalic":Ot={family:Ft,weight:"bold",style:"italic"};break;case"":case"normal":Ot={family:Ft}}Ot!==null&&(Ot.ref={name:Ft,style:Et},pt.push(Ot))})}),pt})(ct);at=(function(mt){for(var pt={},Ft=0;Ft<mt.length;++Ft){var Et=em(mt[Ft]),Ot=Et.family,dn=Et.stretch,Mt=Et.style,wt=Et.weight;pt[Ot]=pt[Ot]||{},pt[Ot][dn]=pt[Ot][dn]||{},pt[Ot][dn][Mt]=pt[Ot][dn][Mt]||{},pt[Ot][dn][Mt][wt]=Et}return pt})(_t.concat(Vt)),rt=dt}return at})(this.pdf,this.fontFaces),Ee=_e.map(function(lt){return{family:lt,stretch:"normal",weight:re,style:ue}}),je=(function(lt,Vt,ct){for(var dt=(ct=ct||{}).defaultFontFamily||"times",_t=Object.assign({},$8,ct.genericFontFamilies||{}),mt=null,pt=null,Ft=0;Ft<Vt.length;++Ft)if(_t[(mt=em(Vt[Ft])).family]&&(mt.family=_t[mt.family]),lt.hasOwnProperty(mt.family)){pt=lt[mt.family];break}if(!(pt=pt||lt[dt]))throw new Error("Could not find a font-family for the rule '"+g5(mt)+"' and default family '"+dt+"'.");if(pt=(function(Et,Ot){if(Ot[Et])return Ot[Et];var dn=Mm[Et],Mt=dn<=Mm.normal?-1:1,wt=p5(Ot,jy,dn,Mt);if(!wt)throw new Error("Could not find a matching font-stretch value for "+Et);return wt})(mt.stretch,pt),pt=(function(Et,Ot){if(Ot[Et])return Ot[Et];for(var dn=Ty[Et],Mt=0;Mt<dn.length;++Mt)if(Ot[dn[Mt]])return Ot[dn[Mt]];throw new Error("Could not find a matching font-style for "+Et)})(mt.style,pt),!(pt=(function(Et,Ot){if(Ot[Et])return Ot[Et];if(Et===400&&Ot[500])return Ot[500];if(Et===500&&Ot[400])return Ot[400];var dn=Q8[Et],Mt=p5(Ot,Ry,dn,Et<400?-1:1);if(!Mt)throw new Error("Could not find a matching font-weight for value "+Et);return Mt})(mt.weight,pt)))throw new Error("Failed to resolve a font for the rule '"+g5(mt)+"'.");return pt})(He,Ee);this.pdf.setFont(je.ref.name,je.ref.style)}else{var ve="";(re==="bold"||parseInt(re,10)>=700||ue==="bold")&&(ve="bold"),ue==="italic"&&(ve+="italic"),ve.length===0&&(ve="normal");for(var Be="",Ge={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},$e=0;$e<_e.length;$e++){if(this.pdf.internal.getFont(_e[$e],ve,{noFallback:!0,disableWarning:!0})!==void 0){Be=_e[$e];break}if(ve==="bolditalic"&&this.pdf.internal.getFont(_e[$e],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Be=_e[$e],ve="bold";else if(this.pdf.internal.getFont(_e[$e],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Be=_e[$e],ve="normal";break}}if(Be===""){for(var st=0;st<_e.length;st++)if(Ge[_e[st]]){Be=Ge[_e[st]];break}}Be=Be===""?"Times":Be,this.pdf.setFont(Be,ve)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Y){this.ctx.globalCompositeOperation=Y}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Y){this.ctx.globalAlpha=Y}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Y){this.ctx.lineDashOffset=Y,I.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Y){this.ctx.lineDash=Y,I.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Y){this.ctx.ignoreClearRect=!!Y}})};y.prototype.setLineDash=function(L){this.lineDash=L},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){P.call(this,"fill",!1)},y.prototype.stroke=function(){P.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(L,z){if(isNaN(L)||isNaN(z))throw Mn.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var V=this.ctx.transform.applyToPoint(new c(L,z));this.path.push({type:"mt",x:V.x,y:V.y}),this.ctx.lastPoint=new c(L,z)},y.prototype.closePath=function(){var L=new c(0,0),z=0;for(z=this.path.length-1;z!==-1;z--)if(this.path[z].type==="begin"&&An(this.path[z+1])==="object"&&typeof this.path[z+1].x=="number"){L=new c(this.path[z+1].x,this.path[z+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(L.x,L.y)},y.prototype.lineTo=function(L,z){if(isNaN(L)||isNaN(z))throw Mn.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var V=this.ctx.transform.applyToPoint(new c(L,z));this.path.push({type:"lt",x:V.x,y:V.y}),this.ctx.lastPoint=new c(V.x,V.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),P.call(this,null,!0)},y.prototype.quadraticCurveTo=function(L,z,V,ee){if(isNaN(V)||isNaN(ee)||isNaN(L)||isNaN(z))throw Mn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var pe=this.ctx.transform.applyToPoint(new c(V,ee)),we=this.ctx.transform.applyToPoint(new c(L,z));this.path.push({type:"qct",x1:we.x,y1:we.y,x:pe.x,y:pe.y}),this.ctx.lastPoint=new c(pe.x,pe.y)},y.prototype.bezierCurveTo=function(L,z,V,ee,pe,we){if(isNaN(pe)||isNaN(we)||isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee))throw Mn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ae=this.ctx.transform.applyToPoint(new c(pe,we)),Ne=this.ctx.transform.applyToPoint(new c(L,z)),Ue=this.ctx.transform.applyToPoint(new c(V,ee));this.path.push({type:"bct",x1:Ne.x,y1:Ne.y,x2:Ue.x,y2:Ue.y,x:Ae.x,y:Ae.y}),this.ctx.lastPoint=new c(Ae.x,Ae.y)},y.prototype.arc=function(L,z,V,ee,pe,we){if(isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee)||isNaN(pe))throw Mn.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(we=!!we,!this.ctx.transform.isIdentity){var Ae=this.ctx.transform.applyToPoint(new c(L,z));L=Ae.x,z=Ae.y;var Ne=this.ctx.transform.applyToPoint(new c(0,V)),Ue=this.ctx.transform.applyToPoint(new c(0,0));V=Math.sqrt(Math.pow(Ne.x-Ue.x,2)+Math.pow(Ne.y-Ue.y,2))}Math.abs(pe-ee)>=2*Math.PI&&(ee=0,pe=2*Math.PI),this.path.push({type:"arc",x:L,y:z,radius:V,startAngle:ee,endAngle:pe,counterclockwise:we})},y.prototype.arcTo=function(L,z,V,ee,pe){throw new Error("arcTo not implemented.")},y.prototype.rect=function(L,z,V,ee){if(isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee))throw Mn.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(L,z),this.lineTo(L+V,z),this.lineTo(L+V,z+ee),this.lineTo(L,z+ee),this.lineTo(L,z),this.lineTo(L+V,z),this.lineTo(L,z)},y.prototype.fillRect=function(L,z,V,ee){if(isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee))throw Mn.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var pe={};this.lineCap!=="butt"&&(pe.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(pe.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(L,z,V,ee),this.fill(),pe.hasOwnProperty("lineCap")&&(this.lineCap=pe.lineCap),pe.hasOwnProperty("lineJoin")&&(this.lineJoin=pe.lineJoin)}},y.prototype.strokeRect=function(L,z,V,ee){if(isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee))throw Mn.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");A.call(this)||(this.beginPath(),this.rect(L,z,V,ee),this.stroke())},y.prototype.clearRect=function(L,z,V,ee){if(isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee))throw Mn.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(L,z,V,ee))},y.prototype.save=function(L){L=typeof L!="boolean"||L;for(var z=this.pdf.internal.getCurrentPageInfo().pageNumber,V=0;V<this.pdf.internal.getNumberOfPages();V++)this.pdf.setPage(V+1),this.pdf.internal.out("q");if(this.pdf.setPage(z),L){this.ctx.fontSize=this.pdf.internal.getFontSize();var ee=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ee}},y.prototype.restore=function(L){L=typeof L!="boolean"||L;for(var z=this.pdf.internal.getCurrentPageInfo().pageNumber,V=0;V<this.pdf.internal.getNumberOfPages();V++)this.pdf.setPage(V+1),this.pdf.internal.out("Q");this.pdf.setPage(z),L&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(L){var z,V,ee,pe;if(L.isCanvasGradient===!0&&(L=L.getColor()),!L)return{r:0,g:0,b:0,a:0,style:L};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(L))z=0,V=0,ee=0,pe=0;else{var we=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(L);if(we!==null)z=parseInt(we[1]),V=parseInt(we[2]),ee=parseInt(we[3]),pe=1;else if((we=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(L))!==null)z=parseInt(we[1]),V=parseInt(we[2]),ee=parseInt(we[3]),pe=parseFloat(we[4]);else{if(pe=1,typeof L=="string"&&L.charAt(0)!=="#"){var Ae=new ky(L);L=Ae.ok?Ae.toHex():"#000000"}L.length===4?(z=L.substring(1,2),z+=z,V=L.substring(2,3),V+=V,ee=L.substring(3,4),ee+=ee):(z=L.substring(1,3),V=L.substring(3,5),ee=L.substring(5,7)),z=parseInt(z,16),V=parseInt(V,16),ee=parseInt(ee,16)}}return{r:z,g:V,b:ee,a:pe,style:L}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},A=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(L,z,V,ee){if(isNaN(z)||isNaN(V)||typeof L!="string")throw Mn.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ee=isNaN(ee)?void 0:ee,!p.call(this)){var pe=me(this.ctx.transform.rotation),we=this.ctx.transform.scaleX;T.call(this,{text:L,x:z,y:V,scale:we,angle:pe,align:this.textAlign,maxWidth:ee})}},y.prototype.strokeText=function(L,z,V,ee){if(isNaN(z)||isNaN(V)||typeof L!="string")throw Mn.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!A.call(this)){ee=isNaN(ee)?void 0:ee;var pe=me(this.ctx.transform.rotation),we=this.ctx.transform.scaleX;T.call(this,{text:L,x:z,y:V,scale:we,renderingMode:"stroke",angle:pe,align:this.textAlign,maxWidth:ee})}},y.prototype.measureText=function(L){if(typeof L!="string")throw Mn.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var z=this.pdf,V=this.pdf.internal.scaleFactor,ee=z.internal.getFontSize(),pe=z.getStringUnitWidth(L)*ee/z.internal.scaleFactor;return new function(we){var Ae=(we=we||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ae}}),this}({width:pe*=Math.round(96*V/72*1e4)/1e4})},y.prototype.scale=function(L,z){if(isNaN(L)||isNaN(z))throw Mn.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var V=new h(L,0,0,z,0,0);this.ctx.transform=this.ctx.transform.multiply(V)},y.prototype.rotate=function(L){if(isNaN(L))throw Mn.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var z=new h(Math.cos(L),Math.sin(L),-Math.sin(L),Math.cos(L),0,0);this.ctx.transform=this.ctx.transform.multiply(z)},y.prototype.translate=function(L,z){if(isNaN(L)||isNaN(z))throw Mn.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var V=new h(1,0,0,1,L,z);this.ctx.transform=this.ctx.transform.multiply(V)},y.prototype.transform=function(L,z,V,ee,pe,we){if(isNaN(L)||isNaN(z)||isNaN(V)||isNaN(ee)||isNaN(pe)||isNaN(we))throw Mn.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ae=new h(L,z,V,ee,pe,we);this.ctx.transform=this.ctx.transform.multiply(Ae)},y.prototype.setTransform=function(L,z,V,ee,pe,we){L=isNaN(L)?1:L,z=isNaN(z)?0:z,V=isNaN(V)?0:V,ee=isNaN(ee)?1:ee,pe=isNaN(pe)?0:pe,we=isNaN(we)?0:we,this.ctx.transform=new h(L,z,V,ee,pe,we)};var S=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(L,z,V,ee,pe,we,Ae,Ne,Ue){var Xe=this.pdf.getImageProperties(L),at=1,rt=1,M=1,Y=1;ee!==void 0&&Ne!==void 0&&(M=Ne/ee,Y=Ue/pe,at=Xe.width/ee*Ne/ee,rt=Xe.height/pe*Ue/pe),we===void 0&&(we=z,Ae=V,z=0,V=0),ee!==void 0&&Ne===void 0&&(Ne=ee,Ue=pe),ee===void 0&&Ne===void 0&&(Ne=Xe.width,Ue=Xe.height);var xe=this.ctx.transform.decompose(),ue=me(xe.rotate.shx),re=new h,ce=(re=(re=(re=re.multiply(xe.translate)).multiply(xe.skew)).multiply(xe.scale)).applyToRectangle(new u(we-z*M,Ae-V*Y,ee*at,pe*rt));if(this.autoPaging){for(var De,Re=E.call(this,ce),_e=[],He=0;He<Re.length;He+=1)_e.indexOf(Re[He])===-1&&_e.push(Re[He]);O(_e);for(var Ee=_e[0],je=_e[_e.length-1],ve=Ee;ve<je+1;ve++){this.pdf.setPage(ve);var Be=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ge=ve===1?this.posY+this.margin[0]:this.margin[0],$e=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],st=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],lt=ve===1?0:$e+(ve-2)*st;if(this.ctx.clip_path.length!==0){var Vt=this.path;De=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(De,this.posX+this.margin[3],-lt+Ge+this.ctx.prevPageLastElemOffset),G.call(this,"fill",!0),this.path=Vt}var ct=JSON.parse(JSON.stringify(ce));ct=j([ct],this.posX+this.margin[3],-lt+Ge+this.ctx.prevPageLastElemOffset)[0];var dt=(ve>Ee||ve<je)&&S.call(this);dt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Be,st,null).clip().discardPath()),this.pdf.addImage(L,"JPEG",ct.x,ct.y,ct.w,ct.h,null,null,ue),dt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(L,"JPEG",ce.x,ce.y,ce.w,ce.h,null,null,ue)};var E=function(L,z,V){var ee=[];z=z||this.pdf.internal.pageSize.width,V=V||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var pe=this.posY+this.ctx.prevPageLastElemOffset;switch(L.type){default:case"mt":case"lt":ee.push(Math.floor((L.y+pe)/V)+1);break;case"arc":ee.push(Math.floor((L.y+pe-L.radius)/V)+1),ee.push(Math.floor((L.y+pe+L.radius)/V)+1);break;case"qct":var we=ge(this.ctx.lastPoint.x,this.ctx.lastPoint.y,L.x1,L.y1,L.x,L.y);ee.push(Math.floor((we.y+pe)/V)+1),ee.push(Math.floor((we.y+we.h+pe)/V)+1);break;case"bct":var Ae=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,L.x1,L.y1,L.x2,L.y2,L.x,L.y);ee.push(Math.floor((Ae.y+pe)/V)+1),ee.push(Math.floor((Ae.y+Ae.h+pe)/V)+1);break;case"rect":ee.push(Math.floor((L.y+pe)/V)+1),ee.push(Math.floor((L.y+L.h+pe)/V)+1)}for(var Ne=0;Ne<ee.length;Ne+=1)for(;this.pdf.internal.getNumberOfPages()<ee[Ne];)_.call(this);return ee},_=function(){var L=this.fillStyle,z=this.strokeStyle,V=this.font,ee=this.lineCap,pe=this.lineWidth,we=this.lineJoin;this.pdf.addPage(),this.fillStyle=L,this.strokeStyle=z,this.font=V,this.lineCap=ee,this.lineWidth=pe,this.lineJoin=we},j=function(L,z,V){for(var ee=0;ee<L.length;ee++)switch(L[ee].type){case"bct":L[ee].x2+=z,L[ee].y2+=V;case"qct":L[ee].x1+=z,L[ee].y1+=V;default:L[ee].x+=z,L[ee].y+=V}return L},O=function(L){return L.sort(function(z,V){return z-V})},P=function(L,z){var V=this.fillStyle,ee=this.strokeStyle,pe=this.lineCap,we=this.lineWidth,Ae=Math.abs(we*this.ctx.transform.scaleX),Ne=this.lineJoin;if(this.autoPaging){for(var Ue,Xe,at=JSON.parse(JSON.stringify(this.path)),rt=JSON.parse(JSON.stringify(this.path)),M=[],Y=0;Y<rt.length;Y++)if(rt[Y].x!==void 0)for(var xe=E.call(this,rt[Y]),ue=0;ue<xe.length;ue+=1)M.indexOf(xe[ue])===-1&&M.push(xe[ue]);for(var re=0;re<M.length;re++)for(;this.pdf.internal.getNumberOfPages()<M[re];)_.call(this);O(M);for(var ce=M[0],De=M[M.length-1],Re=ce;Re<De+1;Re++){this.pdf.setPage(Re),this.fillStyle=V,this.strokeStyle=ee,this.lineCap=pe,this.lineWidth=Ae,this.lineJoin=Ne;var _e=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],He=Re===1?this.posY+this.margin[0]:this.margin[0],Ee=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],je=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ve=Re===1?0:Ee+(Re-2)*je;if(this.ctx.clip_path.length!==0){var Be=this.path;Ue=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(Ue,this.posX+this.margin[3],-ve+He+this.ctx.prevPageLastElemOffset),G.call(this,L,!0),this.path=Be}if(Xe=JSON.parse(JSON.stringify(at)),this.path=j(Xe,this.posX+this.margin[3],-ve+He+this.ctx.prevPageLastElemOffset),z===!1||Re===0){var Ge=(Re>ce||Re<De)&&S.call(this);Ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_e,je,null).clip().discardPath()),G.call(this,L,z),Ge&&this.pdf.restoreGraphicsState()}this.lineWidth=we}this.path=at}else this.lineWidth=Ae,G.call(this,L,z),this.lineWidth=we},G=function(L,z){if((L!=="stroke"||z||!A.call(this))&&(L==="stroke"||z||!p.call(this))){for(var V,ee,pe=[],we=this.path,Ae=0;Ae<we.length;Ae++){var Ne=we[Ae];switch(Ne.type){case"begin":pe.push({begin:!0});break;case"close":pe.push({close:!0});break;case"mt":pe.push({start:Ne,deltas:[],abs:[]});break;case"lt":var Ue=pe.length;if(we[Ae-1]&&!isNaN(we[Ae-1].x)&&(V=[Ne.x-we[Ae-1].x,Ne.y-we[Ae-1].y],Ue>0)){for(;Ue>=0;Ue--)if(pe[Ue-1].close!==!0&&pe[Ue-1].begin!==!0){pe[Ue-1].deltas.push(V),pe[Ue-1].abs.push(Ne);break}}break;case"bct":V=[Ne.x1-we[Ae-1].x,Ne.y1-we[Ae-1].y,Ne.x2-we[Ae-1].x,Ne.y2-we[Ae-1].y,Ne.x-we[Ae-1].x,Ne.y-we[Ae-1].y],pe[pe.length-1].deltas.push(V);break;case"qct":var Xe=we[Ae-1].x+2/3*(Ne.x1-we[Ae-1].x),at=we[Ae-1].y+2/3*(Ne.y1-we[Ae-1].y),rt=Ne.x+2/3*(Ne.x1-Ne.x),M=Ne.y+2/3*(Ne.y1-Ne.y),Y=Ne.x,xe=Ne.y;V=[Xe-we[Ae-1].x,at-we[Ae-1].y,rt-we[Ae-1].x,M-we[Ae-1].y,Y-we[Ae-1].x,xe-we[Ae-1].y],pe[pe.length-1].deltas.push(V);break;case"arc":pe.push({deltas:[],abs:[],arc:!0}),Array.isArray(pe[pe.length-1].abs)&&pe[pe.length-1].abs.push(Ne)}}ee=z?null:L==="stroke"?"stroke":"fill";for(var ue=!1,re=0;re<pe.length;re++)if(pe[re].arc)for(var ce=pe[re].abs,De=0;De<ce.length;De++){var Re=ce[De];Re.type==="arc"?ne.call(this,Re.x,Re.y,Re.radius,Re.startAngle,Re.endAngle,Re.counterclockwise,void 0,z,!ue):X.call(this,Re.x,Re.y),ue=!0}else if(pe[re].close===!0)this.pdf.internal.out("h"),ue=!1;else if(pe[re].begin!==!0){var _e=pe[re].start.x,He=pe[re].start.y;N.call(this,pe[re].deltas,_e,He),ue=!0}ee&&U.call(this,ee),z&&le.call(this)}},J=function(L){var z=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,V=z*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return L-V;case"top":return L+z-V;case"hanging":return L+z-2*V;case"middle":return L+z/2-V;default:return L}},ae=function(L){return L+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var L=function(){};return L.colorStops=[],L.addColorStop=function(z,V){this.colorStops.push([z,V])},L.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},L.isCanvasGradient=!0,L},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ne=function(L,z,V,ee,pe,we,Ae,Ne,Ue){for(var Xe=ie.call(this,V,ee,pe,we),at=0;at<Xe.length;at++){var rt=Xe[at];at===0&&(Ue?F.call(this,rt.x1+L,rt.y1+z):X.call(this,rt.x1+L,rt.y1+z)),Q.call(this,L,z,rt.x2,rt.y2,rt.x3,rt.y3,rt.x4,rt.y4)}Ne?le.call(this):U.call(this,Ae)},U=function(L){switch(L){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},le=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(L,z){this.pdf.internal.out(i(L)+" "+r(z)+" m")},T=function(L){var z;switch(L.align){case"right":case"end":z="right";break;case"center":z="center";break;default:z="left"}var V,ee,pe,we=this.pdf.getTextDimensions(L.text),Ae=J.call(this,L.y),Ne=ae.call(this,Ae)-we.h,Ue=this.ctx.transform.applyToPoint(new c(L.x,Ae));if(this.autoPaging){var Xe=this.ctx.transform.decompose(),at=new h;at=(at=(at=at.multiply(Xe.translate)).multiply(Xe.skew)).multiply(Xe.scale);for(var rt=this.ctx.transform.applyToRectangle(new u(L.x,Ae,we.w,we.h)),M=at.applyToRectangle(new u(L.x,Ne,we.w,we.h)),Y=E.call(this,M),xe=[],ue=0;ue<Y.length;ue+=1)xe.indexOf(Y[ue])===-1&&xe.push(Y[ue]);O(xe);for(var re=xe[0],ce=xe[xe.length-1],De=re;De<ce+1;De++){this.pdf.setPage(De);var Re=De===1?this.posY+this.margin[0]:this.margin[0],_e=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],He=this.pdf.internal.pageSize.height-this.margin[2],Ee=He-this.margin[0],je=this.pdf.internal.pageSize.width-this.margin[1],ve=je-this.margin[3],Be=De===1?0:_e+(De-2)*Ee;if(this.ctx.clip_path.length!==0){var Ge=this.path;V=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(V,this.posX+this.margin[3],-1*Be+Re),G.call(this,"fill",!0),this.path=Ge}var $e=j([JSON.parse(JSON.stringify(M))],this.posX+this.margin[3],-Be+Re+this.ctx.prevPageLastElemOffset)[0];L.scale>=.01&&(ee=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ee*L.scale),pe=this.lineWidth,this.lineWidth=pe*L.scale);var st=this.autoPaging!=="text";if(st||$e.y+$e.h<=He){if(st||$e.y>=Re&&$e.x<=je){var lt=st?L.text:this.pdf.splitTextToSize(L.text,L.maxWidth||je-$e.x)[0],Vt=j([JSON.parse(JSON.stringify(rt))],this.posX+this.margin[3],-Be+Re+this.ctx.prevPageLastElemOffset)[0],ct=st&&(De>re||De<ce)&&S.call(this);ct&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ve,Ee,null).clip().discardPath()),this.pdf.text(lt,Vt.x,Vt.y,{angle:L.angle,align:z,renderingMode:L.renderingMode}),ct&&this.pdf.restoreGraphicsState()}}else $e.y<He&&(this.ctx.prevPageLastElemOffset+=He-$e.y);L.scale>=.01&&(this.pdf.setFontSize(ee),this.lineWidth=pe)}}else L.scale>=.01&&(ee=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ee*L.scale),pe=this.lineWidth,this.lineWidth=pe*L.scale),this.pdf.text(L.text,Ue.x+this.posX,Ue.y+this.posY,{angle:L.angle,align:z,renderingMode:L.renderingMode,maxWidth:L.maxWidth}),L.scale>=.01&&(this.pdf.setFontSize(ee),this.lineWidth=pe)},X=function(L,z,V,ee){V=V||0,ee=ee||0,this.pdf.internal.out(i(L+V)+" "+r(z+ee)+" l")},N=function(L,z,V){return this.pdf.lines(L,z,V,null,null)},Q=function(L,z,V,ee,pe,we,Ae,Ne){this.pdf.internal.out([n(s(V+L)),n(o(ee+z)),n(s(pe+L)),n(o(we+z)),n(s(Ae+L)),n(o(Ne+z)),"c"].join(" "))},ie=function(L,z,V,ee){for(var pe=2*Math.PI,we=Math.PI/2;z>V;)z-=pe;var Ae=Math.abs(V-z);Ae<pe&&ee&&(Ae=pe-Ae);for(var Ne=[],Ue=ee?-1:1,Xe=z;Ae>1e-5;){var at=Xe+Ue*Math.min(Ae,we);Ne.push(oe.call(this,L,Xe,at)),Ae-=Math.abs(at-Xe),Xe=at}return Ne},oe=function(L,z,V){var ee=(V-z)/2,pe=L*Math.cos(ee),we=L*Math.sin(ee),Ae=pe,Ne=-we,Ue=Ae*Ae+Ne*Ne,Xe=Ue+Ae*pe+Ne*we,at=4/3*(Math.sqrt(2*Ue*Xe)-Xe)/(Ae*we-Ne*pe),rt=Ae-at*Ne,M=Ne+at*Ae,Y=rt,xe=-M,ue=ee+z,re=Math.cos(ue),ce=Math.sin(ue);return{x1:L*Math.cos(z),y1:L*Math.sin(z),x2:rt*re-M*ce,y2:rt*ce+M*re,x3:Y*re-xe*ce,y3:Y*ce+xe*re,x4:L*Math.cos(V),y4:L*Math.sin(V)}},me=function(L){return 180*L/Math.PI},ge=function(L,z,V,ee,pe,we){var Ae=L+.5*(V-L),Ne=z+.5*(ee-z),Ue=pe+.5*(V-pe),Xe=we+.5*(ee-we),at=Math.min(L,pe,Ae,Ue),rt=Math.max(L,pe,Ae,Ue),M=Math.min(z,we,Ne,Xe),Y=Math.max(z,we,Ne,Xe);return new u(at,M,rt-at,Y-M)},Z=function(L,z,V,ee,pe,we,Ae,Ne){var Ue,Xe,at,rt,M,Y,xe,ue,re,ce,De,Re,_e,He,Ee=V-L,je=ee-z,ve=pe-V,Be=we-ee,Ge=Ae-pe,$e=Ne-we;for(Xe=0;Xe<41;Xe++)re=(xe=(at=L+(Ue=Xe/40)*Ee)+Ue*((M=V+Ue*ve)-at))+Ue*(M+Ue*(pe+Ue*Ge-M)-xe),ce=(ue=(rt=z+Ue*je)+Ue*((Y=ee+Ue*Be)-rt))+Ue*(Y+Ue*(we+Ue*$e-Y)-ue),Xe==0?(De=re,Re=ce,_e=re,He=ce):(De=Math.min(De,re),Re=Math.min(Re,ce),_e=Math.max(_e,re),He=Math.max(He,ce));return new u(Math.round(De),Math.round(Re),Math.round(_e-De),Math.round(He-Re))},I=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var L,z,V=(L=this.ctx.lineDash,z=this.ctx.lineDashOffset,JSON.stringify({lineDash:L,lineDashOffset:z}));this.prevLineDash!==V&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=V)}}})(At.API),(function(e){var n=function(c){var u,h,d,m,y,w,p,A,S,E;for(h=[],d=0,m=(c+=u="\0\0\0\0".slice(c.length%4||4)).length;m>d;d+=4)(y=(c.charCodeAt(d)<<24)+(c.charCodeAt(d+1)<<16)+(c.charCodeAt(d+2)<<8)+c.charCodeAt(d+3))!==0?(w=(y=((y=((y=((y=(y-(E=y%85))/85)-(S=y%85))/85)-(A=y%85))/85)-(p=y%85))/85)%85,h.push(w+33,p+33,A+33,S+33,E+33)):h.push(122);return(function(_,j){for(var O=j;O>0;O--)_.pop()})(h,u.length),String.fromCharCode.apply(String,h)+"~>"},i=function(c){var u,h,d,m,y,w=String,p="length",A=255,S="charCodeAt",E="slice",_="replace";for(c[E](-2),c=c[E](0,-2)[_](/\s/g,"")[_]("z","!!!!!"),d=[],m=0,y=(c+=u="uuuuu"[E](c[p]%5||5))[p];y>m;m+=5)h=52200625*(c[S](m)-33)+614125*(c[S](m+1)-33)+7225*(c[S](m+2)-33)+85*(c[S](m+3)-33)+(c[S](m+4)-33),d.push(A&h>>24,A&h>>16,A&h>>8,A&h);return(function(j,O){for(var P=O;P>0;P--)j.pop()})(d,u[p]),w.fromCharCode.apply(w,d)},r=function(c){return c.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">"},s=function(c){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((c=c.replace(/\s/g,"")).indexOf(">")!==-1&&(c=c.substr(0,c.indexOf(">"))),c.length%2&&(c+="0"),u.test(c)===!1)return"";for(var h="",d=0;d<c.length;d+=2)h+=String.fromCharCode("0x"+(c[d]+c[d+1]));return h},o=function(c){for(var u=new Uint8Array(c.length),h=c.length;h--;)u[h]=c.charCodeAt(h);return(u=Lm(u)).reduce(function(d,m){return d+String.fromCharCode(m)},"")};e.processDataByFilters=function(c,u){var h=0,d=c||"",m=[];for(typeof(u=u||[])=="string"&&(u=[u]),h=0;h<u.length;h+=1)switch(u[h]){case"ASCII85Decode":case"/ASCII85Decode":d=i(d),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=n(d),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=s(d),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=o(d),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+u[h]+'" is not implemented')}return{data:d,reverseChain:m.reverse().join(" ")}}})(At.API),(function(e){e.loadFile=function(n,i,r){return(function(s,o,c){o=o!==!1,c=typeof c=="function"?c:function(){};var u=void 0;try{u=(function(h,d,m){var y=new XMLHttpRequest,w=0,p=function(A){var S=A.length,E=[],_=String.fromCharCode;for(w=0;w<S;w+=1)E.push(_(255&A.charCodeAt(w)));return E.join("")};if(y.open("GET",h,!d),y.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(y.onload=function(){y.status===200?m(p(this.responseText)):m(void 0)}),y.send(null),d&&y.status===200)return p(y.responseText)})(s,o,c)}catch{}return u})(n,i,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile})(At.API),(function(e){function n(){return(Pt.html2canvas?Promise.resolve(Pt.html2canvas):Mp(()=>import("./html2canvas.esm-B0tyYwQk.js"),[])).catch(function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))}).then(function(u){return u.default?u.default:u})}function i(){return(Pt.DOMPurify?Promise.resolve(Pt.DOMPurify):Mp(()=>import("./purify.es-B9ZVCkUG.js"),[])).catch(function(u){return Promise.reject(new Error("Could not load dompurify: "+u))}).then(function(u){return u.default?u.default:u})}var r=function(u){var h=An(u);return h==="undefined"?"undefined":h==="string"||u instanceof String?"string":h==="number"||u instanceof Number?"number":h==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":h==="object"?"object":"unknown"},s=function(u,h){var d=document.createElement(u);for(var m in h.className&&(d.className=h.className),h.innerHTML&&h.dompurify&&(d.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)d.style[m]=h.style[m];return d},o=function u(h,d){for(var m=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),y=h.firstChild;y;y=y.nextSibling)d!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||m.appendChild(u(y,d));return h.nodeType===1&&(h.nodeName==="CANVAS"?(m.width=h.width,m.height=h.height,m.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(m.value=h.value),m.addEventListener("load",function(){m.scrollTop=h.scrollTop,m.scrollLeft=h.scrollLeft},!0)),m},c=function u(h){var d=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),m=u.convert(Promise.resolve(),d);return(m=m.setProgress(1,u,1,[u])).set(h)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(u,h){return u.__proto__=h||c.prototype,u},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(u,h){return this.then(function(){switch(h=h||(function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(u),h){case"string":return this.then(i).then(function(d){return this.set({src:s("div",{innerHTML:u,dompurify:d})})});case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}})},c.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},h=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},c.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(n).then(function(h){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,h(this.prop.container,d)}).then(function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(n).then(function(h){var d=this.opt.jsPDF,m=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,w=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete w.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;p<m.length;++p){var A=m[p],S=A.src.find(function(E){return E.format==="truetype"});S&&d.addFont(S.url,A.ref.name,A.ref.style)}return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,d.context2d.save(!0),h(this.prop.container,w)}).then(function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var u=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=u})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(u,h,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(u,h):this.outputPdf(u,h)},c.prototype.outputPdf=function(u,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(u,h)})},c.prototype.outputImg=function(u){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(u){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+u+'" is not supported.'}})},c.prototype.save=function(u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(u?{filename:u}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(u){if(r(u)!=="object")return this;var h=Object.keys(u||{}).map(function(d){if(d in c.template.prop)return function(){this.prop[d]=u[d]};switch(d){case"margin":return this.setMargin.bind(this,u.margin);case"jsPDF":return function(){return this.opt.jsPDF=u.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,u.pageSize);default:return function(){this.opt[d]=u[d]}}},this);return this.then(function(){return this.thenList(h)})},c.prototype.get=function(u,h){return this.then(function(){var d=u in c.template.prop?this.prop[u]:this.opt[u];return h?h(d):d})},c.prototype.setMargin=function(u){return this.then(function(){switch(r(u)){case"number":u=[u,u,u,u];case"array":if(u.length===2&&(u=[u[0],u[1],u[0],u[1]]),u.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=u}).then(this.setPageSize)},c.prototype.setPageSize=function(u){function h(d,m){return Math.floor(d*m/72*96)}return this.then(function(){(u=u||At.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(u.inner={width:u.width-this.opt.margin[1]-this.opt.margin[3],height:u.height-this.opt.margin[0]-this.opt.margin[2]},u.inner.px={width:h(u.inner.width,u.k),height:h(u.inner.height,u.k)},u.inner.ratio=u.inner.height/u.inner.width),this.prop.pageSize=u})},c.prototype.setProgress=function(u,h,d,m){return u!=null&&(this.progress.val=u),h!=null&&(this.progress.state=h),d!=null&&(this.progress.n=d),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(u,h,d,m){return this.setProgress(u?this.progress.val+u:null,h||null,d?this.progress.n+d:null,m?this.progress.stack.concat(m):null)},c.prototype.then=function(u,h){var d=this;return this.thenCore(u,h,function(m,y){return d.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(w){return d.updateProgress(null,m),w}).then(m,y).then(function(w){return d.updateProgress(1),w})})},c.prototype.thenCore=function(u,h,d){d=d||Promise.prototype.then;var m=this;u&&(u=u.bind(m)),h&&(h=h.bind(m));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:c.convert(Object.assign({},m),Promise.prototype),w=d.call(y,u,h);return c.convert(w,m.__proto__)},c.prototype.thenExternal=function(u,h){return Promise.prototype.then.call(this,u,h)},c.prototype.thenList=function(u){var h=this;return u.forEach(function(d){h=h.thenCore(d)}),h},c.prototype.catch=function(u){u&&(u=u.bind(this));var h=Promise.prototype.catch.call(this,u);return c.convert(h,this)},c.prototype.catchExternal=function(u){return Promise.prototype.catch.call(this,u)},c.prototype.error=function(u){return this.then(function(){throw new Error(u)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,At.getPageSize=function(u,h,d){if(An(u)==="object"){var m=u;u=m.orientation,h=m.unit||h,d=m.format||d}h=h||"mm",d=d||"a4",u=(""+(u||"P")).toLowerCase();var y,w=(""+d).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(h){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+h}var A,S=0,E=0;if(p.hasOwnProperty(w))S=p[w][1]/y,E=p[w][0]/y;else try{S=d[1],E=d[0]}catch{throw new Error("Invalid format: "+d)}if(u==="p"||u==="portrait")u="p",E>S&&(A=E,E=S,S=A);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",S>E&&(A=E,E=S,S=A)}return{width:E,height:S,unit:h,k:y,orientation:u}},e.html=function(u,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(em):null;var d=new c(h);return h.worker?d:d.from(u).doCallback()}})(At.API),At.API.addJS=function(e){return b5=e,this.internal.events.subscribe("postPutResources",function(){Th=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Th+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),y5=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+b5+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Th!==void 0&&y5!==void 0&&this.internal.out("/Names <</JavaScript "+Th+" 0 R>>")}),this},(function(e){var n;e.events.push(["postPutResources",function(){var i=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=i.outline.render().split(/\r\n/),o=0;o<s.length;o++){var c=s[o],u=r.exec(c);if(u!=null){var h=u[1];i.internal.newObjectDeferredBegin(h,!1)}i.internal.write(c)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,m=[];for(o=0;o<d;o++){var y=i.internal.newObject();m.push(y);var w=i.internal.getPageInfo(o+1);i.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var p=i.internal.newObject();for(i.internal.write("<< /Names [ "),o=0;o<m.length;o++)i.internal.write("(page_"+(o+1)+")"+m[o]+" 0 R");i.internal.write(" ] >>","endobj"),n=i.internal.newObject(),i.internal.write("<< /Dests "+p+" 0 R"),i.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var i=this;i.outline.root.children.length>0&&(i.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&i.internal.write("/Names "+n+" 0 R"))}]),e.events.push(["initialized",function(){var i=this;i.outline={createNamedDestinations:!1,root:{children:[]}},i.outline.add=function(r,s,o){var c={title:s,options:o,children:[]};return r==null&&(r=this.root),r.children.push(c),c},i.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=i,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},i.outline.genIds_r=function(r){r.id=i.internal.newObjectDeferred();for(var s=0;s<r.children.length;s++)this.genIds_r(r.children[s])},i.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},i.outline.renderItems=function(r){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var c=r.children[o];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var u=this.count=this.count_r({count:0},c);if(u>0&&this.line("/Count "+u),c.options&&c.options.pageNumber){var h=i.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+h.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},i.outline.line=function(r){this.ctx.val+=r+`\r
`},i.outline.makeRef=function(r){return r.id+" 0 R"},i.outline.makeString=function(r){return"("+i.internal.pdfEscape(r)+")"},i.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},i.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},i.outline.count_r=function(r,s){for(var o=0;o<s.children.length;o++)r.count++,this.count_r(r,s.children[o]);return r.count}}])})(At.API),(function(e){var n=[192,193,194,195,196,197,198,199];e.processJPEG=function(i,r,s,o,c,u){var h,d=this.decode.DCT_DECODE,m=null;if(typeof i=="string"||this.__addimage__.isArrayBuffer(i)||this.__addimage__.isArrayBufferView(i)){switch(i=c||i,i=this.__addimage__.isArrayBuffer(i)?new Uint8Array(i):i,h=(function(y){for(var w,p=256*y.charCodeAt(4)+y.charCodeAt(5),A=y.length,S={width:0,height:0,numcomponents:1},E=4;E<A;E+=2){if(E+=p,n.indexOf(y.charCodeAt(E+1))!==-1){w=256*y.charCodeAt(E+5)+y.charCodeAt(E+6),S={width:256*y.charCodeAt(E+7)+y.charCodeAt(E+8),height:w,numcomponents:y.charCodeAt(E+9)};break}p=256*y.charCodeAt(E+2)+y.charCodeAt(E+3)}return S})(i=this.__addimage__.isArrayBufferView(i)?this.__addimage__.arrayBufferToBinaryString(i):i),h.numcomponents){case 1:u=this.color_spaces.DEVICE_GRAY;break;case 4:u=this.color_spaces.DEVICE_CMYK;break;case 3:u=this.color_spaces.DEVICE_RGB}m={data:i,width:h.width,height:h.height,colorSpace:u,bitsPerComponent:8,filter:d,index:r,alias:s}}return m}})(At.API),At.API.processPNG=function(e,n,i,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var s,o=P8(e,{checkCrc:!0}),c=o.width,u=o.height,h=o.channels,d=o.palette,m=o.depth;s=d&&h===1?(function(ne){for(var U=ne.width,le=ne.height,F=ne.data,T=ne.palette,X=ne.depth,N=!1,Q=[],ie=[],oe=void 0,me=!1,ge=0,Z=0;Z<T.length;Z++){var I=S2(T[Z],4),L=I[0],z=I[1],V=I[2],ee=I[3];Q.push(L,z,V),ee!=null&&(ee===0?(ge++,ie.length<1&&ie.push(Z)):ee<255&&(me=!0))}if(me||ge>1){N=!0,ie=void 0;var pe=U*le;oe=new Uint8Array(pe);for(var we=new DataView(F.buffer),Ae=0;Ae<pe;Ae++){var Ne=nm(we,Ae,X),Ue=S2(T[Ne],4)[3];oe[Ae]=Ue}}else ge===0&&(ie=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:N?8:void 0,colorBytes:F,alphaBytes:oe,needSMask:N,palette:Q,mask:ie}})(o):h===2||h===4?(function(ne){for(var U=ne.data,le=ne.width,F=ne.height,T=ne.channels,X=ne.depth,N=T===2?"DeviceGray":"DeviceRGB",Q=T-1,ie=le*F,oe=Q,me=ie*oe,ge=1*ie,Z=Math.ceil(me*X/8),I=Math.ceil(ge*X/8),L=new Uint8Array(Z),z=new Uint8Array(I),V=new DataView(U.buffer),ee=new DataView(L.buffer),pe=new DataView(z.buffer),we=!1,Ae=0;Ae<ie;Ae++){for(var Ne=Ae*T,Ue=0;Ue<oe;Ue++)E5(ee,nm(V,Ne+Ue,X),Ae*oe+Ue,X);var Xe=nm(V,Ne+oe,X);Xe<(1<<X)-1&&(we=!0),E5(pe,Xe,1*Ae,X)}return{colorSpace:N,colorsPerPixel:Q,sMaskBitsPerComponent:we?X:void 0,colorBytes:L,alphaBytes:z,needSMask:we}})(o):(function(ne){var U=ne.data,le=ne.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:le,colorsPerPixel:le==="DeviceGray"?1:3,colorBytes:U instanceof Uint16Array?(function(F){for(var T=F.length,X=new Uint8Array(2*T),N=new DataView(X.buffer,X.byteOffset,X.byteLength),Q=0;Q<T;Q++)N.setUint16(2*Q,F[Q],!1);return X})(U):U,needSMask:!1}})(o);var y,w,p,A=s,S=A.colorSpace,E=A.colorsPerPixel,_=A.sMaskBitsPerComponent,j=A.colorBytes,O=A.alphaBytes,P=A.needSMask,G=A.palette,J=A.mask,ae=null;return r!==At.API.image_compression.NONE&&typeof Lm=="function"?(ae=(function(ne){var U;switch(ne){case At.API.image_compression.FAST:U=11;break;case At.API.image_compression.MEDIUM:U=13;break;case At.API.image_compression.SLOW:U=14;break;default:U=12}return U})(r),y=this.decode.FLATE_DECODE,w="/Predictor ".concat(ae," /Colors ").concat(E," /BitsPerComponent ").concat(m," /Columns ").concat(c),e=S5(j,Math.ceil(c*E*m/8),E,m,r),P&&(p=S5(O,Math.ceil(c*_/8),1,_,r))):(y=void 0,w=void 0,e=j,P&&(p=O)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:i,data:e,index:n,filter:y,decodeParameters:w,transparency:J,palette:G,sMask:p,predictor:ae,width:c,height:u,bitsPerComponent:m,sMaskBitsPerComponent:_,colorSpace:S}}},(function(e){e.processGIF89A=function(n,i,r,s){var o=new r_(n),c=o.width,u=o.height,h=[];o.decodeAndBlitFrameRGBA(0,h);var d={data:h,width:c,height:u},m=new im(100).encode(d,100);return e.processJPEG.call(this,m,i,r,s)},e.processGIF87A=e.processGIF89A})(At.API),fo.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var n=0;n<e;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:s,green:r,blue:i,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},fo.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,n=this.width*this.height*4;this.data=new Uint8Array(n),this[e]()}catch(i){Mn.log("bit decode error:"+i)}},fo.prototype.bit1=function(){var e,n=Math.ceil(this.width/8),i=n%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,s=0;s<n;s++)for(var o=this.datav.getUint8(this.pos++,!0),c=r*this.width*4+8*s*4,u=0;u<8&&8*s+u<this.width;u++){var h=this.palette[o>>7-u&1];this.data[c+4*u]=h.blue,this.data[c+4*u+1]=h.green,this.data[c+4*u+2]=h.red,this.data[c+4*u+3]=255}i!==0&&(this.pos+=4-i)}},fo.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),n=e%4,i=this.height-1;i>=0;i--){for(var r=this.bottom_up?i:this.height-1-i,s=0;s<e;s++){var o=this.datav.getUint8(this.pos++,!0),c=r*this.width*4+2*s*4,u=o>>4,h=15&o,d=this.palette[u];if(this.data[c]=d.blue,this.data[c+1]=d.green,this.data[c+2]=d.red,this.data[c+3]=255,2*s+1>=this.width)break;d=this.palette[h],this.data[c+4]=d.blue,this.data[c+4+1]=d.green,this.data[c+4+2]=d.red,this.data[c+4+3]=255}n!==0&&(this.pos+=4-n)}},fo.prototype.bit8=function(){for(var e=this.width%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var s=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+4*r;if(s<this.palette.length){var c=this.palette[s];this.data[o]=c.red,this.data[o+1]=c.green,this.data[o+2]=c.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}e!==0&&(this.pos+=4-e)}},fo.prototype.bit15=function(){for(var e=this.width%3,n=parseInt("11111",2),i=this.height-1;i>=0;i--){for(var r=this.bottom_up?i:this.height-1-i,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(o&n)/n*255|0,u=(o>>5&n)/n*255|0,h=(o>>10&n)/n*255|0,d=o>>15?255:0,m=r*this.width*4+4*s;this.data[m]=h,this.data[m+1]=u,this.data[m+2]=c,this.data[m+3]=d}this.pos+=e}},fo.prototype.bit16=function(){for(var e=this.width%3,n=parseInt("11111",2),i=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var s=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var u=(c&n)/n*255|0,h=(c>>5&i)/i*255|0,d=(c>>11)/n*255|0,m=s*this.width*4+4*o;this.data[m]=d,this.data[m+1]=h,this.data[m+2]=u,this.data[m+3]=255}this.pos+=e}},fo.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+4*i;this.data[c]=o,this.data[c+1]=s,this.data[c+2]=r,this.data[c+3]=255}this.pos+=this.width%4}},fo.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var n=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),u=n*this.width*4+4*i;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=r,this.data[u+3]=c}},fo.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(n,i,r,s){var o=new fo(n,!1),c=o.width,u=o.height,h={data:o.getData(),width:c,height:u},d=new im(100).encode(h,100);return e.processJPEG.call(this,d,i,r,s)}})(At.API),z5.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(n,i,r,s){var o=new z5(n),c=o.width,u=o.height,h={data:o.getData(),width:c,height:u},d=new im(100).encode(h,100);return e.processJPEG.call(this,d,i,r,s)}})(At.API),At.API.processRGBA=function(e,n,i){for(var r=e.data,s=r.length,o=new Uint8Array(s/4*3),c=new Uint8Array(s/4),u=0,h=0,d=0;d<s;d+=4){var m=r[d],y=r[d+1],w=r[d+2],p=r[d+3];o[u++]=m,o[u++]=y,o[u++]=w,c[h++]=p}var A=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:A,index:n,alias:i,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},At.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},tc=At.API,jh=tc.getCharWidthsArray=function(e,n){var i,r,s=(n=n||{}).font||this.internal.getFont(),o=n.fontSize||this.internal.getFontSize(),c=n.charSpace||this.internal.getCharSpace(),u=n.widths?n.widths:s.metadata.Unicode.widths,h=u.fof?u.fof:1,d=n.kerning?n.kerning:s.metadata.Unicode.kerning,m=d.fof?d.fof:1,y=n.doKerning!==!1,w=0,p=e.length,A=0,S=u[0]||h,E=[];for(i=0;i<p;i++)r=e.charCodeAt(i),typeof s.metadata.widthOfString=="function"?E.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(r))+c*(1e3/o)||0)/1e3):(w=y&&An(d[r])==="object"&&!isNaN(parseInt(d[r][A],10))?d[r][A]/m:0,E.push((u[r]||S)/h+w)),A=r;return E},x5=tc.getStringUnitWidth=function(e,n){var i=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),s=n.charSpace||this.internal.getCharSpace();return tc.processArabic&&(e=tc.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,i,s)/i:jh.apply(this,arguments).reduce(function(o,c){return o+c},0)},w5=function(e,n,i,r){for(var s=[],o=0,c=e.length,u=0;o!==c&&u+n[o]<i;)u+=n[o],o++;s.push(e.slice(0,o));var h=o;for(u=0;o!==c;)u+n[o]>r&&(s.push(e.slice(h,o)),u=0,h=o),u+=n[o],o++;return h!==o&&s.push(e.slice(h,o)),s},_5=function(e,n,i){i||(i={});var r,s,o,c,u,h,d,m=[],y=[m],w=i.textIndent||0,p=0,A=0,S=e.split(" "),E=jh.apply(this,[" ",i])[0];if(h=i.lineIndent===-1?S[0].length+2:i.lineIndent||0){var _=Array(h).join(" "),j=[];S.map(function(P){(P=P.split(/\s*\n/)).length>1?j=j.concat(P.map(function(G,J){return(J&&G.length?`
`:"")+G})):j.push(P[0])}),S=j,h=x5.apply(this,[_,i])}for(o=0,c=S.length;o<c;o++){var O=0;if(r=S[o],h&&r[0]==`
`&&(r=r.substr(1),O=1),w+p+(A=(s=jh.apply(this,[r,i])).reduce(function(P,G){return P+G},0))>n||O){if(A>n){for(u=w5.apply(this,[r,s,n-(w+p),n]),m.push(u.shift()),m=[u.pop()];u.length;)y.push([u.shift()]);A=s.slice(r.length-(m[0]?m[0].length:0)).reduce(function(P,G){return P+G},0)}else m=[r];y.push(m),w=A+h,p=E}else m.push(r),w+=p+A,p=E}return d=h?function(P,G){return(G?_:"")+P.join(" ")}:function(P){return P.join(" ")},y.map(d)},tc.splitTextToSize=function(e,n,i){var r,s=(i=i||{}).fontSize||this.internal.getFontSize(),o=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var y=this.internal.getFont(m.fontName,m.fontStyle),w="Unicode";return y.metadata[w]?{widths:y.metadata[w].widths||{0:1},kerning:y.metadata[w].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,i);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var c=1*this.internal.scaleFactor*n/s;o.textIndent=i.textIndent?1*i.textIndent*this.internal.scaleFactor/s:0,o.lineIndent=i.lineIndent;var u,h,d=[];for(u=0,h=r.length;u<h;u++)d=d.concat(_5.apply(this,[r[u],c,o]));return d},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var n="0123456789abcdef",i="klmnopqrstuvwxyz",r={},s={},o=0;o<16;o++)r[i[o]]=n[o],s[n[o]]=i[o];var c=function(w){return"0x"+parseInt(w,10).toString(16)},u=e.__fontmetrics__.compress=function(w){var p,A,S,E,_=["{"];for(var j in w){if(p=w[j],isNaN(parseInt(j,10))?A="'"+j+"'":(j=parseInt(j,10),A=(A=c(j).slice(2)).slice(0,-1)+s[A.slice(-1)]),typeof p=="number")p<0?(S=c(p).slice(3),E="-"):(S=c(p).slice(2),E=""),S=E+S.slice(0,-1)+s[S.slice(-1)];else{if(An(p)!=="object")throw new Error("Don't know what to do with value type "+An(p)+".");S=u(p)}_.push(A+S)}return _.push("}"),_.join("")},h=e.__fontmetrics__.uncompress=function(w){if(typeof w!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,A,S,E,_={},j=1,O=_,P=[],G="",J="",ae=w.length-1,ne=1;ne<ae;ne+=1)(E=w[ne])=="'"?p?(S=p.join(""),p=void 0):p=[]:p?p.push(E):E=="{"?(P.push([O,S]),O={},S=void 0):E=="}"?((A=P.pop())[0][A[1]]=O,S=void 0,O=A[0]):E=="-"?j=-1:S===void 0?r.hasOwnProperty(E)?(G+=r[E],S=parseInt(G,16)*j,j=1,G=""):G+=E:r.hasOwnProperty(E)?(J+=r[E],O[S]=parseInt(J,16)*j,j=1,S=void 0,J=""):J+=E;return _},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},y={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":h("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(w){var p=w.font,A=y.Unicode[p.postScriptName];A&&(p.metadata.Unicode={},p.metadata.Unicode.widths=A.widths,p.metadata.Unicode.kerning=A.kerning);var S=m.Unicode[p.postScriptName];S&&(p.metadata.Unicode.encoding=S,p.encoding=S.codePages[0])}])})(At.API),(function(e){var n=function(i){for(var r=i.length,s=new Uint8Array(r),o=0;o<r;o++)s[o]=i.charCodeAt(o);return s};e.API.events.push(["addFont",function(i){var r=void 0,s=i.font,o=i.instance;if(!s.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(r=o.existsFileInVFS(s.postScriptName)===!1?o.loadFile(s.postScriptName):o.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(c,u){u=/^\x00\x01\x00\x00/.test(u)?n(u):n(Fh(u)),c.metadata=e.API.TTFFont.open(u),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(s,r)}}])})(At),At.API.addSvgAsImage=function(e,n,i,r,s,o,c,u){if(isNaN(n)||isNaN(i))throw Mn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(s))throw Mn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=r,h.height=s;var d=h.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,h.width,h.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return(Pt.canvg?Promise.resolve(Pt.canvg):Mp(()=>import("./index.es-DjMS_RU7.js"),[])).catch(function(w){return Promise.reject(new Error("Could not load canvg: "+w))}).then(function(w){return w.default?w.default:w}).then(function(w){return w.fromString(d,e,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(m)}).then(function(){y.addImage(h.toDataURL("image/jpeg",1),n,i,r,s,c,u)})},At.API.putTotalPages=function(e){var n,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(e,"g"),i=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var s=0;s<this.internal.pages[r].length;s++)this.internal.pages[r][s]=this.internal.pages[r][s].replace(n,i);return this},At.API.viewerPreferences=function(e,n){var i;e=e||{},n=n||!1;var r,s,o,c={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(c),h=[],d=0,m=0,y=0;function w(A,S){var E,_=!1;for(E=0;E<A.length;E+=1)A[E]===S&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),i=this.internal.viewerpreferences.configuration,e==="reset"||n===!0){var p=u.length;for(y=0;y<p;y+=1)i[u[y]].value=i[u[y]].defaultValue,i[u[y]].explicitSet=!1}if(An(e)==="object"){for(s in e)if(o=e[s],w(u,s)&&o!==void 0){if(i[s].type==="boolean"&&typeof o=="boolean")i[s].value=o;else if(i[s].type==="name"&&w(i[s].valueSet,o))i[s].value=o;else if(i[s].type==="integer"&&Number.isInteger(o))i[s].value=o;else if(i[s].type==="array"){for(d=0;d<o.length;d+=1)if(r=!0,o[d].length===1&&typeof o[d][0]=="number")h.push(String(o[d]-1));else if(o[d].length>1){for(m=0;m<o[d].length;m+=1)typeof o[d][m]!="number"&&(r=!1);r===!0&&h.push([o[d][0]-1,o[d][1]-1].join(" "))}i[s].value="["+h.join(" ")+"]"}else i[s].value=i[s].defaultValue;i[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var A,S=[];for(A in i)i[A].explicitSet===!0&&(i[A].type==="name"?S.push("/"+A+" /"+i[A].value):S.push("/"+A+" "+i[A].value));S.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+S.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=i,this},(function(e){var n=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',s=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(r)),c=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),u=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),h=unescape(encodeURIComponent("</x:xmpmeta>")),d=o.length+c.length+u.length+s.length+h.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(s+o+c+u+h),this.internal.write("endstream"),this.internal.write("endobj")},i=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,s){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:s||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",i),this.internal.events.subscribe("postPutResources",n)),this}})(At.API),(function(e){var n=e.API,i=n.pdfEscape16=function(o,c){for(var u,h=c.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],y=0,w=o.length;y<w;++y){if(u=c.metadata.characterToGlyph(o.charCodeAt(y)),c.metadata.glyIdsUsed.push(u),c.metadata.toUnicode[u]=o.charCodeAt(y),h.indexOf(u)==-1&&(h.push(u),h.push([parseInt(c.metadata.widthOfGlyph(u),10)])),u=="0")return m.join("");u=u.toString(16),m.push(d[4-u.length],u)}return m.join("")},r=function(o){var c,u,h,d,m,y,w;for(m=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,h=[],y=0,w=(u=Object.keys(o).sort(function(p,A){return p-A})).length;y<w;y++)c=u[y],h.length>=100&&(m+=`
`+h.length+` beginbfchar
`+h.join(`
`)+`
endbfchar`,h=[]),o[c]!==void 0&&o[c]!==null&&typeof o[c].toString=="function"&&(d=("0000"+o[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),h.push("<"+c+"><"+d+">"));return h.length&&(m+=`
`+h.length+` beginbfchar
`+h.join(`
`)+`
endbfchar
`),m+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};n.events.push(["putFont",function(o){(function(c){var u=c.font,h=c.out,d=c.newObject,m=c.putStream;if(u.metadata instanceof e.API.TTFFont&&u.encoding==="Identity-H"){for(var y=u.metadata.Unicode.widths,w=u.metadata.subset.encode(u.metadata.glyIdsUsed,1),p="",A=0;A<w.length;A++)p+=String.fromCharCode(w[A]);var S=d();m({data:p,addLength1:!0,objectId:S}),h("endobj");var E=d();m({data:r(u.metadata.toUnicode),addLength1:!0,objectId:E}),h("endobj");var _=d();h("<<"),h("/Type /FontDescriptor"),h("/FontName /"+rc(u.fontName)),h("/FontFile2 "+S+" 0 R"),h("/FontBBox "+e.API.PDFObject.convert(u.metadata.bbox)),h("/Flags "+u.metadata.flags),h("/StemV "+u.metadata.stemV),h("/ItalicAngle "+u.metadata.italicAngle),h("/Ascent "+u.metadata.ascender),h("/Descent "+u.metadata.decender),h("/CapHeight "+u.metadata.capHeight),h(">>"),h("endobj");var j=d();h("<<"),h("/Type /Font"),h("/BaseFont /"+rc(u.fontName)),h("/FontDescriptor "+_+" 0 R"),h("/W "+e.API.PDFObject.convert(y)),h("/CIDToGIDMap /Identity"),h("/DW 1000"),h("/Subtype /CIDFontType2"),h("/CIDSystemInfo"),h("<<"),h("/Supplement 0"),h("/Registry (Adobe)"),h("/Ordering ("+u.encoding+")"),h(">>"),h(">>"),h("endobj"),u.objectNumber=d(),h("<<"),h("/Type /Font"),h("/Subtype /Type0"),h("/ToUnicode "+E+" 0 R"),h("/BaseFont /"+rc(u.fontName)),h("/Encoding /"+u.encoding),h("/DescendantFonts ["+j+" 0 R]"),h(">>"),h("endobj"),u.isAlreadyPutted=!0}})(o)}]),n.events.push(["putFont",function(o){(function(c){var u=c.font,h=c.out,d=c.newObject,m=c.putStream;if(u.metadata instanceof e.API.TTFFont&&u.encoding==="WinAnsiEncoding"){for(var y=u.metadata.rawData,w="",p=0;p<y.length;p++)w+=String.fromCharCode(y[p]);var A=d();m({data:w,addLength1:!0,objectId:A}),h("endobj");var S=d();m({data:r(u.metadata.toUnicode),addLength1:!0,objectId:S}),h("endobj");var E=d();h("<<"),h("/Descent "+u.metadata.decender),h("/CapHeight "+u.metadata.capHeight),h("/StemV "+u.metadata.stemV),h("/Type /FontDescriptor"),h("/FontFile2 "+A+" 0 R"),h("/Flags 96"),h("/FontBBox "+e.API.PDFObject.convert(u.metadata.bbox)),h("/FontName /"+rc(u.fontName)),h("/ItalicAngle "+u.metadata.italicAngle),h("/Ascent "+u.metadata.ascender),h(">>"),h("endobj"),u.objectNumber=d();for(var _=0;_<u.metadata.hmtx.widths.length;_++)u.metadata.hmtx.widths[_]=parseInt(u.metadata.hmtx.widths[_]*(1e3/u.metadata.head.unitsPerEm));h("<</Subtype/TrueType/Type/Font/ToUnicode "+S+" 0 R/BaseFont/"+rc(u.fontName)+"/FontDescriptor "+E+" 0 R/Encoding/"+u.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(u.metadata.hmtx.widths)+">>"),h("endobj"),u.isAlreadyPutted=!0}})(o)}]);var s=function(o){var c,u=o.text||"",h=o.x,d=o.y,m=o.options||{},y=o.mutex||{},w=y.pdfEscape,p=y.activeFontKey,A=y.fonts,S=p,E="",_=0,j="",O=A[S].encoding;if(A[S].encoding!=="Identity-H")return{text:u,x:h,y:d,options:m,mutex:y};for(j=u,S=p,Array.isArray(u)&&(j=u[0]),_=0;_<j.length;_+=1)A[S].metadata.hasOwnProperty("cmap")&&(c=A[S].metadata.cmap.unicode.codeMap[j[_].charCodeAt(0)]),c||j[_].charCodeAt(0)<256&&A[S].metadata.hasOwnProperty("Unicode")?E+=j[_]:E+="";var P="";return parseInt(S.slice(1))<14||O==="WinAnsiEncoding"?P=w(E,S).split("").map(function(G){return G.charCodeAt(0).toString(16)}).join(""):O==="Identity-H"&&(P=i(E,A[S])),y.isHex=!0,{text:P,x:h,y:d,options:m,mutex:y}};n.events.push(["postProcessText",function(o){var c=o.text||"",u=[],h={text:c,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?u.push([s(Object.assign({},h,{text:c[d][0]})).text,c[d][1],c[d][2]]):u.push(s(Object.assign({},h,{text:c[d]})).text);o.text=u}else o.text=s(Object.assign({},h,{text:c})).text}])})(At),(function(e){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(i){return n.call(this),this.internal.vFS[i]!==void 0},e.addFileToVFS=function(i,r){return n.call(this),this.internal.vFS[i]=r,this},e.getFileFromVFS=function(i){return n.call(this),this.internal.vFS[i]!==void 0?this.internal.vFS[i]:null}})(At.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var s,o,c,u,h,d,m,y=n,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],A={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},S={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},E=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),j=!1,O=0;this.__bidiEngine__={};var P=function(F){var T=F.charCodeAt(),X=T>>8,N=S[X];return N!==void 0?y[256*N+(255&T)]:X===252||X===253?"AL":_.test(X)?"L":X===8?"R":"N"},G=function(F){for(var T,X=0;X<F.length;X++){if((T=P(F.charAt(X)))==="L")return!1;if(T==="R")return!0}return!1},J=function(F,T,X,N){var Q,ie,oe,me,ge=T[N];switch(ge){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":j=!1;break;case"N":case"AN":break;case"EN":j&&(ge="AN");break;case"AL":j=!0,ge="R";break;case"WS":case"BN":ge="N";break;case"CS":N<1||N+1>=T.length||(Q=X[N-1])!=="EN"&&Q!=="AN"||(ie=T[N+1])!=="EN"&&ie!=="AN"?ge="N":j&&(ie="AN"),ge=ie===Q?ie:"N";break;case"ES":ge=(Q=N>0?X[N-1]:"B")==="EN"&&N+1<T.length&&T[N+1]==="EN"?"EN":"N";break;case"ET":if(N>0&&X[N-1]==="EN"){ge="EN";break}if(j){ge="N";break}for(oe=N+1,me=T.length;oe<me&&T[oe]==="ET";)oe++;ge=oe<me&&T[oe]==="EN"?"EN":"N";break;case"NSM":if(c&&!u){for(me=T.length,oe=N+1;oe<me&&T[oe]==="NSM";)oe++;if(oe<me){var Z=F[N],I=Z>=1425&&Z<=2303||Z===64286;if(Q=T[oe],I&&(Q==="R"||Q==="AL")){ge="R";break}}}ge=N<1||(Q=T[N-1])==="B"?"N":X[N-1];break;case"B":j=!1,s=!0,ge=O;break;case"S":o=!0,ge="N"}return ge},ae=function(F,T,X){var N=F.split("");return X&&ne(N,X,{hiLevel:O}),N.reverse(),T&&T.reverse(),N.join("")},ne=function(F,T,X){var N,Q,ie,oe,me,ge=-1,Z=F.length,I=0,L=[],z=O?p:w,V=[];for(j=!1,s=!1,o=!1,Q=0;Q<Z;Q++)V[Q]=P(F[Q]);for(ie=0;ie<Z;ie++){if(me=I,L[ie]=J(F,V,L,ie),N=240&(I=z[me][A[L[ie]]]),I&=15,T[ie]=oe=z[I][5],N>0)if(N===16){for(Q=ge;Q<ie;Q++)T[Q]=1;ge=-1}else ge=-1;if(z[I][6])ge===-1&&(ge=ie);else if(ge>-1){for(Q=ge;Q<ie;Q++)T[Q]=oe;ge=-1}V[ie]==="B"&&(T[ie]=0),X.hiLevel|=oe}o&&(function(ee,pe,we){for(var Ae=0;Ae<we;Ae++)if(ee[Ae]==="S"){pe[Ae]=O;for(var Ne=Ae-1;Ne>=0&&ee[Ne]==="WS";Ne--)pe[Ne]=O}})(V,T,Z)},U=function(F,T,X,N,Q){if(!(Q.hiLevel<F)){if(F===1&&O===1&&!s)return T.reverse(),void(X&&X.reverse());for(var ie,oe,me,ge,Z=T.length,I=0;I<Z;){if(N[I]>=F){for(me=I+1;me<Z&&N[me]>=F;)me++;for(ge=I,oe=me-1;ge<oe;ge++,oe--)ie=T[ge],T[ge]=T[oe],T[oe]=ie,X&&(ie=X[ge],X[ge]=X[oe],X[oe]=ie);I=me}I++}}},le=function(F,T,X){var N=F.split(""),Q={hiLevel:O};return X||(X=[]),ne(N,X,Q),(function(ie,oe,me){if(me.hiLevel!==0&&m)for(var ge,Z=0;Z<ie.length;Z++)oe[Z]===1&&(ge=E.indexOf(ie[Z]))>=0&&(ie[Z]=E[ge+1])})(N,X,Q),U(2,N,T,X,Q),U(1,N,T,X,Q),N.join("")};return this.__bidiEngine__.doBidiReorder=function(F,T,X){if((function(Q,ie){if(ie)for(var oe=0;oe<Q.length;oe++)ie[oe]=oe;u===void 0&&(u=G(Q)),d===void 0&&(d=G(Q))})(F,T),c||!h||d)if(c&&h&&u^d)O=u?1:0,F=ae(F,T,X);else if(!c&&h&&d)O=u?1:0,F=le(F,T,X),F=ae(F,T);else if(!c||u||h||d){if(c&&!h&&u^d)F=ae(F,T),u?(O=0,F=le(F,T,X)):(O=1,F=le(F,T,X),F=ae(F,T));else if(c&&u&&!h&&d)O=1,F=le(F,T,X),F=ae(F,T);else if(!c&&!h&&u^d){var N=m;u?(O=1,F=le(F,T,X),O=0,m=!1,F=le(F,T,X),m=N):(O=0,F=le(F,T,X),F=ae(F,T),O=1,m=!1,F=le(F,T,X),m=N,F=ae(F,T))}}else O=0,F=le(F,T,X);else O=u?1:0,F=le(F,T,X);return F},this.__bidiEngine__.setOptions=function(F){F&&(c=F.isInputVisual,h=F.isOutputVisual,u=F.isInputRtl,d=F.isOutputRtl,m=F.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var n=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],i=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var s=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var c=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,i.setOptions(o),Object.prototype.toString.call(s)==="[object Array]"){var u=0;for(c=[],u=0;u<s.length;u+=1)Object.prototype.toString.call(s[u])==="[object Array]"?c.push([i.doBidiReorder(s[u][0]),s[u][1],s[u][2]]):c.push([i.doBidiReorder(s[u])]);r.text=c}else r.text=i.doBidiReorder(s);i.setOptions({isInputVisual:!0})}])})(At),At.API.TTFFont=(function(){function e(n){var i;if(this.rawData=n,i=this.contents=new ml(n),this.contents.pos=4,i.readString(4)==="ttcf")throw new Error("TTCF not supported.");i.pos=0,this.parse(),this.subset=new x_(this),this.registerTTF()}return e.open=function(n){return new e(n)},e.prototype.parse=function(){return this.directory=new o_(this.contents),this.head=new l_(this),this.name=new d_(this),this.cmap=new Dy(this),this.toUnicode={},this.hhea=new u_(this),this.maxp=new p_(this),this.hmtx=new m_(this),this.post=new f_(this),this.os2=new c_(this),this.loca=new b_(this),this.glyf=new g_(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var n,i,r,s,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var c,u,h,d;for(d=[],c=0,u=(h=this.bbox).length;c<u;c++)n=h[c],d.push(Math.round(n*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(s=this.post.italic_angle),32768&(i=s>>16)&&(i=-(1+(65535^i))),this.italicAngle=+(i+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(n){var i;return((i=this.cmap.unicode)!=null?i.codeMap[n]:void 0)||0},e.prototype.widthOfGlyph=function(n){var i;return i=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*i},e.prototype.widthOfString=function(n,i,r){var s,o,c,u;for(c=0,o=0,u=(n=""+n).length;0<=u?o<u:o>u;o=0<=u?++o:--o)s=n.charCodeAt(o),c+=this.widthOfGlyph(this.characterToGlyph(s))+r*(1e3/i)||0;return c*(i/1e3)},e.prototype.lineHeight=function(n,i){var r;return i==null&&(i=!1),r=i?this.lineGap:0,(this.ascender+r-this.decender)/1e3*n},e})();var vo,ml=(function(){function e(n){this.data=n??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(n){return this.data[this.pos++]=n},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},e.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},e.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},e.prototype.readString=function(n){var i,r;for(r=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)r[i]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(n){var i,r,s;for(s=[],i=0,r=n.length;0<=r?i<r:i>r;i=0<=r?++i:--i)s.push(this.writeByte(n.charCodeAt(i)));return s},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(n){return this.writeInt16(n)},e.prototype.readLongLong=function(){var n,i,r,s,o,c,u,h;return n=this.readByte(),i=this.readByte(),r=this.readByte(),s=this.readByte(),o=this.readByte(),c=this.readByte(),u=this.readByte(),h=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^i)+1099511627776*(255^r)+4294967296*(255^s)+16777216*(255^o)+65536*(255^c)+256*(255^u)+(255^h)+1):72057594037927940*n+281474976710656*i+1099511627776*r+4294967296*s+16777216*o+65536*c+256*u+h},e.prototype.writeLongLong=function(n){var i,r;return i=Math.floor(n/4294967296),r=4294967295&n,this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(n){return this.writeInt32(n)},e.prototype.read=function(n){var i,r;for(i=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.readByte());return i},e.prototype.write=function(n){var i,r,s,o;for(o=[],r=0,s=n.length;r<s;r++)i=n[r],o.push(this.writeByte(i));return o},e})(),o_=(function(){var e;function n(i){var r,s,o;for(this.scalarType=i.readInt(),this.tableCount=i.readShort(),this.searchRange=i.readShort(),this.entrySelector=i.readShort(),this.rangeShift=i.readShort(),this.tables={},s=0,o=this.tableCount;0<=o?s<o:s>o;s=0<=o?++s:--s)r={tag:i.readString(4),checksum:i.readInt(),offset:i.readInt(),length:i.readInt()},this.tables[r.tag]=r}return n.prototype.encode=function(i){var r,s,o,c,u,h,d,m,y,w,p,A,S;for(S in p=Object.keys(i).length,h=Math.log(2),y=16*Math.floor(Math.log(p)/h),c=Math.floor(y/h),m=16*p-y,(s=new ml).writeInt(this.scalarType),s.writeShort(p),s.writeShort(y),s.writeShort(c),s.writeShort(m),o=16*p,d=s.pos+o,u=null,A=[],i)for(w=i[S],s.writeString(S),s.writeInt(e(w)),s.writeInt(d),s.writeInt(w.length),A=A.concat(w),S==="head"&&(u=d),d+=w.length;d%4;)A.push(0),d++;return s.write(A),r=2981146554-e(s.data),s.pos=u+8,s.writeUInt32(r),s.data},e=function(i){var r,s,o,c;for(i=My.call(i);i.length%4;)i.push(0);for(o=new ml(i),s=0,r=0,c=i.length;r<c;r=r+=4)s+=o.readUInt32();return 4294967295&s},n})(),s_={}.hasOwnProperty,Wo=function(e,n){for(var i in n)s_.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};vo=(function(){function e(n){var i;this.file=n,i=this.file.directory.tables[this.tag],this.exists=!!i,i&&(this.offset=i.offset,this.length=i.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var l_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="head",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},e.prototype.encode=function(n){var i;return(i=new ml).writeInt(this.version),i.writeInt(this.revision),i.writeInt(this.checkSumAdjustment),i.writeInt(this.magicNumber),i.writeShort(this.flags),i.writeShort(this.unitsPerEm),i.writeLongLong(this.created),i.writeLongLong(this.modified),i.writeShort(this.xMin),i.writeShort(this.yMin),i.writeShort(this.xMax),i.writeShort(this.yMax),i.writeShort(this.macStyle),i.writeShort(this.lowestRecPPEM),i.writeShort(this.fontDirectionHint),i.writeShort(n),i.writeShort(this.glyphDataFormat),i.data},e})(),T5=(function(){function e(n,i){var r,s,o,c,u,h,d,m,y,w,p,A,S,E,_,j,O;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=i+n.readInt(),y=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(h=0;h<256;++h)this.codeMap[h]=n.readByte();break;case 4:for(p=n.readUInt16(),w=p/2,n.pos+=6,o=(function(){var P,G;for(G=[],h=P=0;0<=w?P<w:P>w;h=0<=w?++P:--P)G.push(n.readUInt16());return G})(),n.pos+=2,S=(function(){var P,G;for(G=[],h=P=0;0<=w?P<w:P>w;h=0<=w?++P:--P)G.push(n.readUInt16());return G})(),d=(function(){var P,G;for(G=[],h=P=0;0<=w?P<w:P>w;h=0<=w?++P:--P)G.push(n.readUInt16());return G})(),m=(function(){var P,G;for(G=[],h=P=0;0<=w?P<w:P>w;h=0<=w?++P:--P)G.push(n.readUInt16());return G})(),s=(this.length-n.pos+this.offset)/2,u=(function(){var P,G;for(G=[],h=P=0;0<=s?P<s:P>s;h=0<=s?++P:--P)G.push(n.readUInt16());return G})(),h=_=0,O=o.length;_<O;h=++_)for(E=o[h],r=j=A=S[h];A<=E?j<=E:j>=E;r=A<=E?++j:--j)m[h]===0?c=r+d[h]:(c=u[m[h]/2+(r-A)-(w-h)]||0)!==0&&(c+=d[h]),this.codeMap[r]=65535&c}n.pos=y}return e.encode=function(n,i){var r,s,o,c,u,h,d,m,y,w,p,A,S,E,_,j,O,P,G,J,ae,ne,U,le,F,T,X,N,Q,ie,oe,me,ge,Z,I,L,z,V,ee,pe,we,Ae,Ne,Ue,Xe,at;switch(N=new ml,c=Object.keys(n).sort(function(rt,M){return rt-M}),i){case"macroman":for(S=0,E=(function(){var rt=[];for(A=0;A<256;++A)rt.push(0);return rt})(),j={0:0},o={},Q=0,ge=c.length;Q<ge;Q++)j[Ne=n[s=c[Q]]]==null&&(j[Ne]=++S),o[s]={old:n[s],new:j[n[s]]},E[s]=j[n[s]];return N.writeUInt16(1),N.writeUInt16(0),N.writeUInt32(12),N.writeUInt16(0),N.writeUInt16(262),N.writeUInt16(0),N.write(E),{charMap:o,subtable:N.data,maxGlyphID:S+1};case"unicode":for(T=[],y=[],O=0,j={},r={},_=d=null,ie=0,Z=c.length;ie<Z;ie++)j[G=n[s=c[ie]]]==null&&(j[G]=++O),r[s]={old:G,new:j[G]},u=j[G]-s,_!=null&&u===d||(_&&y.push(_),T.push(s),d=u),_=s;for(_&&y.push(_),y.push(65535),T.push(65535),le=2*(U=T.length),ne=2*Math.pow(Math.log(U)/Math.LN2,2),w=Math.log(ne/2)/Math.LN2,ae=2*U-ne,h=[],J=[],p=[],A=oe=0,I=T.length;oe<I;A=++oe){if(F=T[A],m=y[A],F===65535){h.push(0),J.push(0);break}if(F-(X=r[F].new)>=32768)for(h.push(0),J.push(2*(p.length+U-A)),s=me=F;F<=m?me<=m:me>=m;s=F<=m?++me:--me)p.push(r[s].new);else h.push(X-F),J.push(0)}for(N.writeUInt16(3),N.writeUInt16(1),N.writeUInt32(12),N.writeUInt16(4),N.writeUInt16(16+8*U+2*p.length),N.writeUInt16(0),N.writeUInt16(le),N.writeUInt16(ne),N.writeUInt16(w),N.writeUInt16(ae),we=0,L=y.length;we<L;we++)s=y[we],N.writeUInt16(s);for(N.writeUInt16(0),Ae=0,z=T.length;Ae<z;Ae++)s=T[Ae],N.writeUInt16(s);for(Ue=0,V=h.length;Ue<V;Ue++)u=h[Ue],N.writeUInt16(u);for(Xe=0,ee=J.length;Xe<ee;Xe++)P=J[Xe],N.writeUInt16(P);for(at=0,pe=p.length;at<pe;at++)S=p[at],N.writeUInt16(S);return{charMap:r,subtable:N.data,maxGlyphID:O+1}}},e})(),Dy=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="cmap",e.prototype.parse=function(n){var i,r,s;for(n.pos=this.offset,this.version=n.readUInt16(),s=n.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=s?r<s:r>s;r=0<=s?++r:--r)i=new T5(n,this.offset),this.tables.push(i),i.isUnicode&&this.unicode==null&&(this.unicode=i);return!0},e.encode=function(n,i){var r,s;return i==null&&(i="macroman"),r=T5.encode(n,i),(s=new ml).writeUInt16(0),s.writeUInt16(1),r.table=s.data.concat(r.subtable),r},e})(),u_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="hhea",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},e})(),c_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="OS/2",e.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=(function(){var i,r;for(r=[],i=0;i<10;++i)r.push(n.readByte());return r})(),this.charRange=(function(){var i,r;for(r=[],i=0;i<4;++i)r.push(n.readInt());return r})(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=(function(){var i,r;for(r=[],i=0;i<2;i=++i)r.push(n.readInt());return r})(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},e})(),f_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="post",e.prototype.parse=function(n){var i,r,s;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=n.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],s=[];n.pos<this.offset+this.length;)i=n.readByte(),s.push(this.names.push(n.readString(i)));return s;case 151552:return r=n.readUInt16(),this.offsets=n.read(r);case 262144:return this.map=(function(){var c,u,h;for(h=[],o=c=0,u=this.file.maxp.numGlyphs;0<=u?c<u:c>u;o=0<=u?++c:--c)h.push(n.readUInt32());return h}).call(this)}},e})(),h_=function(e,n){this.raw=e,this.length=e.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},d_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="name",e.prototype.parse=function(n){var i,r,s,o,c,u,h,d,m,y,w;for(n.pos=this.offset,n.readShort(),i=n.readShort(),u=n.readShort(),r=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)r.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+u+n.readShort()});for(h={},o=m=0,y=r.length;m<y;o=++m)s=r[o],n.pos=s.offset,d=n.readString(s.length),c=new h_(d,s),h[w=s.nameID]==null&&(h[w]=[]),h[s.nameID].push(c);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},e})(),p_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="maxp",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},e})(),m_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="hmtx",e.prototype.parse=function(n){var i,r,s,o,c,u,h;for(n.pos=this.offset,this.metrics=[],i=0,u=this.file.hhea.numberOfMetrics;0<=u?i<u:i>u;i=0<=u?++i:--i)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(s=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,m;for(m=[],i=d=0;0<=s?d<s:d>s;i=0<=s?++d:--d)m.push(n.readInt16());return m})(),this.widths=(function(){var d,m,y,w;for(w=[],d=0,m=(y=this.metrics).length;d<m;d++)o=y[d],w.push(o.advance);return w}).call(this),r=this.widths[this.widths.length-1],h=[],i=c=0;0<=s?c<s:c>s;i=0<=s?++c:--c)h.push(this.widths.push(r));return h},e.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},e})(),My=[].slice,g_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(n){var i,r,s,o,c,u,h,d,m,y;return n in this.cache?this.cache[n]:(o=this.file.loca,i=this.file.contents,r=o.indexOf(n),(s=o.lengthOf(n))===0?this.cache[n]=null:(i.pos=this.offset+r,c=(u=new ml(i.read(s))).readShort(),d=u.readShort(),y=u.readShort(),h=u.readShort(),m=u.readShort(),this.cache[n]=c===-1?new y_(u,d,y,h,m):new v_(u,c,d,y,h,m),this.cache[n]))},e.prototype.encode=function(n,i,r){var s,o,c,u,h;for(c=[],o=[],u=0,h=i.length;u<h;u++)s=n[i[u]],o.push(c.length),s&&(c=c.concat(s.encode(r)));return o.push(c.length),{table:c,offsets:o}},e})(),v_=(function(){function e(n,i,r,s,o,c){this.raw=n,this.numberOfContours=i,this.xMin=r,this.yMin=s,this.xMax=o,this.yMax=c,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),y_=(function(){function e(n,i,r,s,o){var c,u;for(this.raw=n,this.xMin=i,this.yMin=r,this.xMax=s,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;u=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&u;)c.pos+=1&u?4:2,128&u?c.pos+=8:64&u?c.pos+=4:8&u&&(c.pos+=2)}return e.prototype.encode=function(){var n,i,r;for(i=new ml(My.call(this.raw.data)),n=0,r=this.glyphIDs.length;n<r;++n)i.pos=this.glyphOffsets[n];return i.data},e})(),b_=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Wo(e,vo),e.prototype.tag="loca",e.prototype.parse=function(n){var i,r;return n.pos=this.offset,i=this.file.head.indexToLocFormat,this.offsets=i===0?(function(){var s,o;for(o=[],r=0,s=this.length;r<s;r+=2)o.push(2*n.readUInt16());return o}).call(this):(function(){var s,o;for(o=[],r=0,s=this.length;r<s;r+=4)o.push(n.readUInt32());return o}).call(this)},e.prototype.indexOf=function(n){return this.offsets[n]},e.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},e.prototype.encode=function(n,i){for(var r=new Uint32Array(this.offsets.length),s=0,o=0,c=0;c<r.length;++c)if(r[c]=s,o<i.length&&i[o]==c){++o,r[c]=s;var u=this.offsets[c],h=this.offsets[c+1]-u;h>0&&(s+=h)}for(var d=new Array(4*r.length),m=0;m<r.length;++m)d[4*m+3]=255&r[m],d[4*m+2]=(65280&r[m])>>8,d[4*m+1]=(16711680&r[m])>>16,d[4*m]=(4278190080&r[m])>>24;return d},e})(),x_=(function(){function e(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var n,i,r,s,o;for(i in s=this.font.cmap.tables[0].codeMap,n={},o=this.subset)r=o[i],n[i]=s[r];return n},e.prototype.glyphsFor=function(n){var i,r,s,o,c,u,h;for(s={},c=0,u=n.length;c<u;c++)s[o=n[c]]=this.font.glyf.glyphFor(o);for(o in i=[],s)(r=s[o])!=null&&r.compound&&i.push.apply(i,r.glyphIDs);if(i.length>0)for(o in h=this.glyphsFor(i))r=h[o],s[o]=r;return s},e.prototype.encode=function(n,i){var r,s,o,c,u,h,d,m,y,w,p,A,S,E,_;for(s in r=Dy.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(n),p={0:0},_=r.charMap)p[(h=_[s]).old]=h.new;for(A in w=r.maxGlyphID,c)A in p||(p[A]=w++);return m=(function(j){var O,P;for(O in P={},j)P[j[O]]=O;return P})(p),y=Object.keys(m).sort(function(j,O){return j-O}),S=(function(){var j,O,P;for(P=[],j=0,O=y.length;j<O;j++)u=y[j],P.push(m[u]);return P})(),o=this.font.glyf.encode(c,S,p),d=this.font.loca.encode(o.offsets,S),E={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(i)},this.font.os2.exists&&(E["OS/2"]=this.font.os2.raw()),this.font.directory.encode(E)},e})();At.API.PDFObject=(function(){var e;function n(){}return e=function(i,r){return(Array(r+1).join("0")+i).slice(-r)},n.convert=function(i){var r,s,o,c;if(Array.isArray(i))return"["+(function(){var u,h,d;for(d=[],u=0,h=i.length;u<h;u++)r=i[u],d.push(n.convert(r));return d})().join(" ")+"]";if(typeof i=="string")return"/"+i;if(i?.isString)return"("+i+")";if(i instanceof Date)return"(D:"+e(i.getUTCFullYear(),4)+e(i.getUTCMonth(),2)+e(i.getUTCDate(),2)+e(i.getUTCHours(),2)+e(i.getUTCMinutes(),2)+e(i.getUTCSeconds(),2)+"Z)";if({}.toString.call(i)==="[object Object]"){for(s in o=["<<"],i)c=i[s],o.push("/"+s+" "+n.convert(c));return o.push(">>"),o.join(`
`)}return""+i},n})();const w_=e=>new Promise((n,i)=>{const r=new FileReader;r.onloadend=()=>n(r.result),r.onerror=i,r.readAsDataURL(e)}),__=(e,n)=>{const{width:i,height:r,unit:s,dpi:o=96}=e;switch(s){case"px":return{width:i/o,height:r/o};case"cm":return{width:i/2.54,height:r/2.54};case"mm":return{width:i/25.4,height:r/25.4};case"%":{const c=n.width/o,u=n.height/o;return{width:c*(i/100),height:u*(r/100)}}case"inch":default:return{width:i,height:r}}},j5=async(e,n,i,r=!0)=>{const s=__(n,i),o=s.width,c=s.height,u=o>8.5?"landscape":"portrait",h=u==="landscape"?11:8.5,d=u==="landscape"?8.5:11;(o>h||c>d)&&alert(`Warning: Your image dimensions (${o.toFixed(2)}" x ${c.toFixed(2)}") are larger than the Letter page size (${h}" x ${d}"). The image will be cropped.`);const m=new At({orientation:u,unit:"in",format:"letter"}),y=(h-o)/2,w=(d-c)/2,p=await w_(e),A=e.type.split("/")[1].toUpperCase();if(m.addImage(p,A,y,w,o,c,void 0,"NONE"),r)m.save("print-ready-image.pdf");else return m},S_=({originalImages:e,resizedImages:n,resizeSettings:i,onClose:r})=>{const s=async()=>{if(i.format==="pdf")if(n.length===1)await j5(n[0],i,e[0].dimensions);else{const o=new g2;for(let u=0;u<n.length;u++){const h=await j5(n[u],i,e[u].dimensions,!1);h&&o.file(`resized_${e[u].name.split(".")[0]}.pdf`,h.output("blob"))}const c=await o.generateAsync({type:"blob"});Op.saveAs(c,"resized_images_pdf.zip")}else if(n.length===1)Op.saveAs(n[0],`resized_${e[0].name.split(".")[0]}.${i.format}`);else{const o=new g2;n.forEach((u,h)=>{o.file(`resized_${e[h].name.split(".")[0]}.${i.format}`,u)});const c=await o.generateAsync({type:"blob"});Op.saveAs(c,"resized_images.zip")}};return B.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:B.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[B.jsxs("div",{className:"flex justify-between items-center mb-4",children:[B.jsx("h2",{className:"text-2xl font-bold",children:"Resized Image Preview"}),B.jsx("button",{onClick:r,className:"text-gray-500 hover:text-gray-800",children:B.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:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),B.jsxs("div",{className:"bg-blue-100 border-l-4 border-blue-500 text-blue-700 p-4 mb-4",role:"alert",children:[B.jsx("p",{className:"font-bold",children:"Note"}),B.jsx("p",{children:"These preview images may appear pixelated and of low quality; always download for full quality."})]}),B.jsx("div",{children:e.map((o,c)=>B.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4 border-b pb-4",children:[B.jsxs("div",{children:[B.jsx("h3",{className:"text-lg font-semibold text-center mb-2",children:"Original"}),B.jsx("div",{className:"h-64 flex items-center justify-center bg-gray-100 rounded-lg",children:B.jsx("img",{src:URL.createObjectURL(o.originalFile),alt:o.name,className:"max-w-full max-h-full object-contain"})}),B.jsxs("div",{className:"text-center text-sm mt-2",children:[B.jsxs("p",{children:["Format: ",o.format.toUpperCase()]}),B.jsxs("p",{children:[o.dimensions.width," x ",o.dimensions.height," | ",(o.size/1024).toFixed(2)," KB"]})]})]}),B.jsxs("div",{children:[B.jsx("h3",{className:"text-lg font-semibold text-center mb-2",children:"After Edit"}),B.jsx("div",{className:"h-64 flex items-center justify-center bg-gray-100 rounded-lg",children:B.jsx("img",{src:URL.createObjectURL(n[c]),alt:"Resized",className:"max-w-full max-h-full object-contain"})}),B.jsxs("div",{className:"text-center text-sm mt-2",children:[B.jsxs("p",{children:["Format: ",i.format.toUpperCase()]}),B.jsxs("p",{children:[i.width," x ",i.height," | ",(n[c].size/1024).toFixed(2)," KB"]})]})]})]},o.id))}),B.jsxs("div",{className:"bg-gray-100 p-4 rounded-lg mt-6",children:[B.jsxs("h4",{className:"font-bold text-lg mb-2 flex items-center",children:[B.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:B.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"]}),B.jsxs("ul",{className:"list-disc list-inside text-sm text-gray-700 space-y-2",children:[B.jsxs("li",{children:["Consider saving images in ",B.jsx("strong",{children:"JPG, JPEG, or WEBP"})," formats for optimized file sizes."]}),B.jsx("li",{children:"Use our prebuilt ratio presets to achieve consistent and professional aspect ratios."}),B.jsxs("li",{children:["If the resized image(s) ",B.jsx("strong",{children:"doesn't match your targeted file size"}),", then try these methods:",B.jsxs("ol",{className:"list-decimal list-inside ml-4",children:[B.jsx("li",{children:"Try changing the targeted file size by slightly increasing or decreasing it."}),B.jsx("li",{children:"Reduce image width and height dimensions."})]})]})]})]}),B.jsxs("div",{className:"flex justify-end gap-4 mt-4",children:[B.jsx("button",{onClick:r,className:"px-4 py-2 bg-gray-300 rounded-md",children:"Close"}),B.jsx("button",{onClick:s,className:"px-4 py-2 bg-green-500 text-white rounded-md",children:n.length>1?"Download ZIP":"Download"})]})]})})},R5=()=>{const e=window.location.href,n="Check out Resizeo! It's a fast, free, and secure way to resize images right in your browser.",i={facebook:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}&quote=${encodeURIComponent(n)}`,twitter:`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(n)}`,linkedin:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(e)}`,whatsapp:`https://api.whatsapp.com/send?text=${encodeURIComponent(n+" "+e)}`,email:`mailto:?subject=Check out Resizeo&body=${encodeURIComponent(n+" "+e)}`};return B.jsxs("div",{className:"flex justify-center gap-2",children:[B.jsx("a",{href:i.facebook,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:B.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:B.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"})})}),B.jsx("a",{href:i.twitter,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:B.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:B.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"})})}),B.jsx("a",{href:i.linkedin,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:B.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:B.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"})})}),B.jsx("a",{href:i.whatsapp,target:"_blank",rel:"noopener noreferrer",className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:B.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:B.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"})})}),B.jsx("a",{href:i.email,className:"p-2 bg-gray-200 rounded-lg hover:bg-gray-300",children:B.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",viewBox:"0 0 20 20",fill:"currentColor",children:[B.jsx("path",{d:"M2.003 5.884L10 11.884l7.997-6A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}),B.jsx("path",{d:"M18 8.116l-8 5-8-5V14a2 2 0 002 2h12a2 2 0 002-2V8.116z"})]})})]})},O5=({variant:e})=>e==="initial"?B.jsxs("div",{className:"mt-8 p-6 bg-gray-50 border rounded-lg",children:[B.jsxs("div",{className:"text-center",children:[B.jsx("h3",{className:"text-xl font-bold mb-2",children:"Enjoyed using our app? Share the love! ❤️"}),B.jsx("p",{className:"text-gray-600 mb-4",children:"Tell your friends about us and help them discover it too."}),B.jsx(R5,{})]}),B.jsxs("div",{className:"relative flex items-center justify-center my-6",children:[B.jsx("div",{className:"absolute inset-x-0 h-px bg-gray-300"}),B.jsx("span",{className:"bg-gray-50 px-4 text-gray-400 font-semibold relative z-10",children:"OR"})]}),B.jsxs("div",{className:"text-center",children:[B.jsx("h3",{className:"text-xl font-bold mb-2",children:"Help us improve 😊🙌"}),B.jsx("p",{className:"text-gray-600 mb-4",children:"Your honest feedback helps us grow. Don't be shy!"}),B.jsxs("div",{className:"flex justify-center gap-4",children:[B.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"}),B.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"})]})]})]}):e==="compact"?B.jsx("div",{className:"my-8 p-4 bg-gray-50 border rounded-lg",children:B.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 items-center gap-4 text-center",children:[B.jsxs("div",{children:[B.jsx("h4",{className:"font-bold",children:"Share the love!"}),B.jsx(R5,{})]}),B.jsxs("div",{children:[B.jsx("h4",{className:"font-bold",children:"Help us improve"}),B.jsxs("div",{className:"flex justify-center gap-4 mt-2",children:[B.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"}),B.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,k_=()=>{const[e,n]=Te.useState([]),[i,r]=Te.useState({width:100,height:100,unit:"px",mode:"stretch",format:"jpg",dpi:300,targetSize:void 0,targetSizeUnit:"KB",upscale:!1}),[s,o]=Te.useState(!1),[c,u]=Te.useState([]),[h,d]=Te.useState(""),[m]=e3(),[y,w]=Te.useState(!1);Te.useEffect(()=>{const j=m.get("width"),O=m.get("height"),P=m.get("unit"),G=m.get("name");j&&O&&P&&(r(J=>({...J,width:Number(j),height:Number(O),unit:P})),d(G?decodeURIComponent(G):""))},[m]);const p=async j=>{const O=[];for(const P of j)if(e.length+O.length<10)try{const G=await A4(P);O.push(G)}catch(G){console.error("Error processing file:",P.name,G)}else{alert("You can only upload up to 10 images.");break}n(P=>[...P,...O])},A=j=>{n(O=>O.filter(P=>P.id!==j))},S=(j,O)=>{n(P=>P.map(G=>G.id===j?{...G,...O}:G))},E=async()=>{if(e.length!==0){i.upscale&&w(!0);try{const j=await Promise.all(e.map(O=>N4(O.file,i)));u(j),o(!0)}catch(j){console.error("Error resizing images:",j),alert("An error occurred while upscaling the images. Please try again.")}finally{w(!1)}}},_=e.length>0?e[0].dimensions.width/e[0].dimensions.height:void 0;return B.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg",children:[B.jsx("h1",{className:"text-4xl font-bold text-center my-8",children:"Resizeo – Fast, Free & Secure"}),B.jsx("p",{className:"text-center text-gray-600 mb-8",children:"Resize, crop, and optimize your images with ease"}),B.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[B.jsxs("div",{children:[B.jsx(s4,{onFiles:p,filesCount:e.length}),e.length>0?B.jsx(S4,{images:e,onRemove:A,onUpdate:S}):B.jsx(O5,{variant:"initial"})]}),B.jsx(u4,{settings:i,setSettings:r,onPreview:E,hasSelectedImages:e.length>0,aspectRatio:_,selectedPreset:h,setSelectedPreset:d,isUpscaling:y})]}),e.length>0&&B.jsx(O5,{variant:"compact"}),s&&B.jsx(S_,{originalImages:e,resizedImages:c,resizeSettings:i,onClose:()=>o(!1)}),B.jsx(c4,{}),B.jsx(f4,{}),B.jsx(h4,{}),B.jsx(d4,{})]})},A_=()=>{const e=Zm(),[n,i]=Te.useState(sc[0].name),r=o=>{e(`/?width=${o.width}&height=${o.height}&unit=${o.unit}&name=${encodeURIComponent(o.name)}`)},s=sc.find(o=>o.name===n);return B.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg",children:[B.jsx("h1",{className:"text-4xl font-bold text-center my-8",children:"Resizer Presets"}),B.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."}),B.jsx("div",{className:"flex flex-wrap justify-center mb-8 gap-2",children:sc.map(o=>B.jsx("button",{onClick:()=>i(o.name),className:`px-4 py-2 text-lg font-medium rounded-md transition-colors ${n===o.name?"bg-blue-500 text-white shadow":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:o.name},o.name))}),s&&B.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.presets.map(o=>B.jsxs("button",{onClick:()=>r(o),className:"text-left p-4 bg-white rounded-lg shadow-md hover:shadow-lg hover:scale-105 transition-transform",children:[B.jsx("p",{className:"font-semibold text-gray-800",children:o.name}),B.jsxs("p",{className:"text-sm text-blue-500",children:[o.width," x ",o.height," ",o.unit]})]},o.name))})]})},o1=[{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/)."}]}],N_=Array.from(new Set(o1.flatMap(e=>e.tags))),C_=e=>B.jsxs(ka,{to:`/blog/${e.slug}`,className:"block bg-white rounded-lg shadow-md overflow-hidden hover:shadow-xl transition-shadow duration-300",children:[B.jsx("img",{src:e.imageUrl,alt:e.title,className:"w-full h-48 object-cover"}),B.jsxs("div",{className:"p-6",children:[B.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.tags.slice(0,2).map(n=>B.jsx("span",{className:"bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full",children:n},n))}),B.jsx("h3",{className:"text-xl font-bold mb-2 text-gray-900",children:e.title}),B.jsx("p",{className:"text-gray-600 text-sm mb-4",children:e.description}),B.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[B.jsxs("span",{children:[e.author," • ",e.date]}),B.jsxs("span",{children:[e.readTime," min read"]})]})]})]}),E_=()=>{const[e,n]=Te.useState("All Topics"),[i,r]=Te.useState(""),s=Te.useMemo(()=>o1.filter(o=>{const c=e==="All Topics"||o.tags.includes(e),u=o.title.toLowerCase().includes(i.toLowerCase())||o.description.toLowerCase().includes(i.toLowerCase());return c&&u}),[e,i]);return B.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg",children:[B.jsxs("header",{className:"text-center my-8 sm:my-12",children:[B.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900",children:"Resizeo Blog"}),B.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."})]}),B.jsx("div",{className:"mb-8",children:B.jsxs("div",{className:"relative max-w-lg mx-auto",children:[B.jsx("span",{className:"absolute inset-y-0 left-0 pl-3 flex items-center",children:B.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:B.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"})})}),B.jsx("input",{type:"search",placeholder:"Search articles...",value:i,onChange:o=>r(o.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-full"})]})}),B.jsxs("div",{className:"flex flex-wrap justify-center gap-2 mb-8",children:[B.jsx("button",{onClick:()=>n("All Topics"),className:`px-4 py-1.5 text-sm font-medium rounded-full transition-colors ${e==="All Topics"?"bg-green-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:"All Topics"}),N_.map(o=>B.jsx("button",{onClick:()=>n(o),className:`px-4 py-1.5 text-sm font-medium rounded-full transition-colors ${e===o?"bg-green-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:o},o))]}),B.jsxs("p",{className:"text-center text-sm text-gray-500 mb-8",children:["Showing all ",s.length," articles"]}),B.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map(o=>B.jsx(C_,{...o},o.slug))})]})};function L_(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const z_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,j_={};function D5(e,n){return(j_.jsx?T_:z_).test(e)}const R_=/[ \t\n\f\r]/g;function O_(e){return typeof e=="object"?e.type==="text"?M5(e.value):!1:M5(e)}function M5(e){return e.replace(R_,"")===""}class Nf{constructor(n,i,r){this.normal=i,this.property=n,r&&(this.space=r)}}Nf.prototype.normal={};Nf.prototype.property={};Nf.prototype.space=void 0;function By(e,n){const i={},r={};for(const s of e)Object.assign(i,s.property),Object.assign(r,s.normal);return new Nf(i,r,n)}function Bm(e){return e.toLowerCase()}class Wa{constructor(n,i){this.attribute=i,this.property=n}}Wa.prototype.attribute="";Wa.prototype.booleanish=!1;Wa.prototype.boolean=!1;Wa.prototype.commaOrSpaceSeparated=!1;Wa.prototype.commaSeparated=!1;Wa.prototype.defined=!1;Wa.prototype.mustUseProperty=!1;Wa.prototype.number=!1;Wa.prototype.overloadedBoolean=!1;Wa.prototype.property="";Wa.prototype.spaceSeparated=!1;Wa.prototype.space=void 0;let D_=0;const Xt=ru(),zi=ru(),Pm=ru(),ot=ru(),Pn=ru(),hc=ru(),dr=ru();function ru(){return 2**++D_}const Im=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xt,booleanish:zi,commaOrSpaceSeparated:dr,commaSeparated:hc,number:ot,overloadedBoolean:Pm,spaceSeparated:Pn},Symbol.toStringTag,{value:"Module"})),am=Object.keys(Im);class s1 extends Wa{constructor(n,i,r,s){let o=-1;if(super(n,i),B5(this,"space",s),typeof r=="number")for(;++o<am.length;){const c=am[o];B5(this,am[o],(r&Im[c])===Im[c])}}}s1.prototype.defined=!0;function B5(e,n,i){i&&(e[n]=i)}function bc(e){const n={},i={};for(const[r,s]of Object.entries(e.properties)){const o=new s1(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,i[Bm(r)]=r,i[Bm(o.attribute)]=r}return new Nf(n,i,e.space)}const Py=bc({properties:{ariaActiveDescendant:null,ariaAtomic:zi,ariaAutoComplete:null,ariaBusy:zi,ariaChecked:zi,ariaColCount:ot,ariaColIndex:ot,ariaColSpan:ot,ariaControls:Pn,ariaCurrent:null,ariaDescribedBy:Pn,ariaDetails:null,ariaDisabled:zi,ariaDropEffect:Pn,ariaErrorMessage:null,ariaExpanded:zi,ariaFlowTo:Pn,ariaGrabbed:zi,ariaHasPopup:null,ariaHidden:zi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pn,ariaLevel:ot,ariaLive:null,ariaModal:zi,ariaMultiLine:zi,ariaMultiSelectable:zi,ariaOrientation:null,ariaOwns:Pn,ariaPlaceholder:null,ariaPosInSet:ot,ariaPressed:zi,ariaReadOnly:zi,ariaRelevant:null,ariaRequired:zi,ariaRoleDescription:Pn,ariaRowCount:ot,ariaRowIndex:ot,ariaRowSpan:ot,ariaSelected:zi,ariaSetSize:ot,ariaSort:null,ariaValueMax:ot,ariaValueMin:ot,ariaValueNow:ot,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Iy(e,n){return n in e?e[n]:n}function Fy(e,n){return Iy(e,n.toLowerCase())}const M_=bc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hc,acceptCharset:Pn,accessKey:Pn,action:null,allow:null,allowFullScreen:Xt,allowPaymentRequest:Xt,allowUserMedia:Xt,alt:null,as:null,async:Xt,autoCapitalize:null,autoComplete:Pn,autoFocus:Xt,autoPlay:Xt,blocking:Pn,capture:null,charSet:null,checked:Xt,cite:null,className:Pn,cols:ot,colSpan:null,content:null,contentEditable:zi,controls:Xt,controlsList:Pn,coords:ot|hc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:Pm,draggable:zi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xt,formTarget:null,headers:Pn,height:ot,hidden:Pm,high:ot,href:null,hrefLang:null,htmlFor:Pn,httpEquiv:Pn,id:null,imageSizes:null,imageSrcSet:null,inert:Xt,inputMode:null,integrity:null,is:null,isMap:Xt,itemId:null,itemProp:Pn,itemRef:Pn,itemScope:Xt,itemType:Pn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xt,low:ot,manifest:null,max:null,maxLength:ot,media:null,method:null,min:null,minLength:ot,multiple:Xt,muted:Xt,name:null,nonce:null,noModule:Xt,noValidate:Xt,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:Xt,optimum:ot,pattern:null,ping:Pn,placeholder:null,playsInline:Xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xt,referrerPolicy:null,rel:Pn,required:Xt,reversed:Xt,rows:ot,rowSpan:ot,sandbox:Pn,scope:null,scoped:Xt,seamless:Xt,selected:Xt,shadowRootClonable:Xt,shadowRootDelegatesFocus:Xt,shadowRootMode:null,shape:null,size:ot,sizes:null,slot:null,span:ot,spellCheck:zi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ot,step:null,style:null,tabIndex:ot,target:null,title:null,translate:null,type:null,typeMustMatch:Xt,useMap:null,value:zi,width:ot,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pn,axis:null,background:null,bgColor:null,border:ot,borderColor:null,bottomMargin:ot,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xt,declare:Xt,event:null,face:null,frame:null,frameBorder:null,hSpace:ot,leftMargin:ot,link:null,longDesc:null,lowSrc:null,marginHeight:ot,marginWidth:ot,noResize:Xt,noHref:Xt,noShade:Xt,noWrap:Xt,object:null,profile:null,prompt:null,rev:null,rightMargin:ot,rules:null,scheme:null,scrolling:zi,standby:null,summary:null,text:null,topMargin:ot,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ot,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xt,disableRemotePlayback:Xt,prefix:null,property:null,results:ot,security:null,unselectable:null},space:"html",transform:Fy}),B_=bc({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:dr,accentHeight:ot,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ot,amplitude:ot,arabicForm:null,ascent:ot,attributeName:null,attributeType:null,azimuth:ot,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ot,by:null,calcMode:null,capHeight:ot,className:Pn,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:ot,diffuseConstant:ot,direction:null,display:null,dur:null,divisor:ot,dominantBaseline:null,download:Xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ot,enableBackground:null,end:null,event:null,exponent:ot,externalResourcesRequired:null,fill:null,fillOpacity:ot,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:hc,g2:hc,glyphName:hc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ot,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ot,horizOriginX:ot,horizOriginY:ot,id:null,ideographic:ot,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ot,k:ot,k1:ot,k2:ot,k3:ot,k4:ot,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ot,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:ot,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:ot,overlineThickness:ot,paintOrder:null,panose1:null,path:null,pathLength:ot,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ot,pointsAtY:ot,pointsAtZ:ot,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,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:ot,specularExponent:ot,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ot,strikethroughThickness:ot,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ot,strokeOpacity:ot,strokeWidth:null,style:null,surfaceScale:ot,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:ot,tableValues:null,target:null,targetX:ot,targetY:ot,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ot,underlineThickness:ot,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ot,values:null,vAlphabetic:ot,vMathematical:ot,vectorEffect:null,vHanging:ot,vIdeographic:ot,version:null,vertAdvY:ot,vertOriginX:ot,vertOriginY:ot,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ot,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Iy}),Uy=bc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),qy=bc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fy}),Hy=bc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),P_={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"},I_=/[A-Z]/g,P5=/-[a-z]/g,F_=/^data[-\w.:]+$/i;function U_(e,n){const i=Bm(n);let r=n,s=Wa;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&F_.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(P5,H_);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!P5.test(o)){let c=o.replace(I_,q_);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}s=s1}return new s(r,n)}function q_(e){return"-"+e.toLowerCase()}function H_(e){return e.charAt(1).toUpperCase()}const Y_=By([Py,M_,Uy,qy,Hy],"html"),l1=By([Py,B_,Uy,qy,Hy],"svg");function G_(e){return e.join(" ").trim()}var nc={},rm,I5;function V_(){if(I5)return rm;I5=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,h=`
`,d="/",m="*",y="",w="comment",p="declaration";function A(E,_){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];_=_||{};var j=1,O=1;function P(N){var Q=N.match(n);Q&&(j+=Q.length);var ie=N.lastIndexOf(h);O=~ie?N.length-ie:O+N.length}function G(){var N={line:j,column:O};return function(Q){return Q.position=new J(N),U(),Q}}function J(N){this.start=N,this.end={line:j,column:O},this.source=_.source}J.prototype.content=E;function ae(N){var Q=new Error(_.source+":"+j+":"+O+": "+N);if(Q.reason=N,Q.filename=_.source,Q.line=j,Q.column=O,Q.source=E,!_.silent)throw Q}function ne(N){var Q=N.exec(E);if(Q){var ie=Q[0];return P(ie),E=E.slice(ie.length),Q}}function U(){ne(i)}function le(N){var Q;for(N=N||[];Q=F();)Q!==!1&&N.push(Q);return N}function F(){var N=G();if(!(d!=E.charAt(0)||m!=E.charAt(1))){for(var Q=2;y!=E.charAt(Q)&&(m!=E.charAt(Q)||d!=E.charAt(Q+1));)++Q;if(Q+=2,y===E.charAt(Q-1))return ae("End of comment missing");var ie=E.slice(2,Q-2);return O+=2,P(ie),E=E.slice(Q),O+=2,N({type:w,comment:ie})}}function T(){var N=G(),Q=ne(r);if(Q){if(F(),!ne(s))return ae("property missing ':'");var ie=ne(o),oe=N({type:p,property:S(Q[0].replace(e,y)),value:ie?S(ie[0].replace(e,y)):y});return ne(c),oe}}function X(){var N=[];le(N);for(var Q;Q=T();)Q!==!1&&(N.push(Q),le(N));return N}return U(),X()}function S(E){return E?E.replace(u,y):y}return rm=A,rm}var F5;function W_(){if(F5)return nc;F5=1;var e=nc&&nc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nc,"__esModule",{value:!0}),nc.default=i;const n=e(V_());function i(r,s){let o=null;if(!r||typeof r!="string")return o;const c=(0,n.default)(r),u=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:m}=h;u?s(d,m,h):m&&(o=o||{},o[d]=m)}),o}return nc}var lf={},U5;function X_(){if(U5)return lf;U5=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(d){return!d||i.test(d)||e.test(d)},c=function(d,m){return m.toUpperCase()},u=function(d,m){return"".concat(m,"-")},h=function(d,m){return m===void 0&&(m={}),o(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(s,u):d=d.replace(r,u),d.replace(n,c))};return lf.camelCase=h,lf}var uf,q5;function Z_(){if(q5)return uf;q5=1;var e=uf&&uf.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(W_()),i=X_();function r(s,o){var c={};return!s||typeof s!="string"||(0,n.default)(s,function(u,h){u&&h&&(c[(0,i.camelCase)(u,o)]=h)}),c}return r.default=r,uf=r,uf}var K_=Z_();const J_=mc(K_),Yy=Gy("end"),u1=Gy("start");function Gy(e){return n;function n(i){const r=i&&i.position&&i.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Q_(e){const n=u1(e),i=Yy(e);if(n&&i)return{start:n,end:i}}function pf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?H5(e.position):"start"in e||"end"in e?H5(e):"line"in e||"column"in e?Fm(e):""}function Fm(e){return Y5(e&&e.line)+":"+Y5(e&&e.column)}function H5(e){return Fm(e&&e.start)+"-"+Fm(e&&e.end)}function Y5(e){return e&&typeof e=="number"?e:1}class ha extends Error{constructor(n,i,r){super(),typeof i=="string"&&(r=i,i=void 0);let s="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof n=="string"?s=n:!o.cause&&n&&(c=!0,s=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const h=r.indexOf(":");h===-1?o.ruleId=r:(o.source=r.slice(0,h),o.ruleId=r.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=pf(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ha.prototype.file="";ha.prototype.name="";ha.prototype.reason="";ha.prototype.message="";ha.prototype.stack="";ha.prototype.column=void 0;ha.prototype.line=void 0;ha.prototype.ancestors=void 0;ha.prototype.cause=void 0;ha.prototype.fatal=void 0;ha.prototype.place=void 0;ha.prototype.ruleId=void 0;ha.prototype.source=void 0;const c1={}.hasOwnProperty,$_=new Map,eS=/[A-Z]/g,tS=new Set(["table","tbody","thead","tfoot","tr"]),nS=new Set(["td","th"]),Vy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iS(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=fS(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=cS(i,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?l1:Y_,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Wy(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function Wy(e,n,i){if(n.type==="element")return aS(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return rS(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return sS(e,n,i);if(n.type==="mdxjsEsm")return oS(e,n);if(n.type==="root")return lS(e,n,i);if(n.type==="text")return uS(e,n)}function aS(e,n,i){const r=e.schema;let s=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=l1,e.schema=s),e.ancestors.push(n);const o=Zy(e,n.tagName,!1),c=hS(e,n);let u=h1(e,n);return tS.has(n.tagName)&&(u=u.filter(function(h){return typeof h=="string"?!O_(h):!0})),Xy(e,c,o,n),f1(c,u),e.ancestors.pop(),e.schema=r,e.create(n,o,c,i)}function rS(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}wf(e,n.position)}function oS(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);wf(e,n.position)}function sS(e,n,i){const r=e.schema;let s=r;n.name==="svg"&&r.space==="html"&&(s=l1,e.schema=s),e.ancestors.push(n);const o=n.name===null?e.Fragment:Zy(e,n.name,!0),c=dS(e,n),u=h1(e,n);return Xy(e,c,o,n),f1(c,u),e.ancestors.pop(),e.schema=r,e.create(n,o,c,i)}function lS(e,n,i){const r={};return f1(r,h1(e,n)),e.create(n,e.Fragment,r,i)}function uS(e,n){return n.value}function Xy(e,n,i,r){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=r)}function f1(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function cS(e,n,i){return r;function r(s,o,c,u){const d=Array.isArray(c.children)?i:n;return u?d(o,c,u):d(o,c)}}function fS(e,n){return i;function i(r,s,o,c){const u=Array.isArray(o.children),h=u1(r);return n(s,o,c,u,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function hS(e,n){const i={};let r,s;for(s in n.properties)if(s!=="children"&&c1.call(n.properties,s)){const o=pS(e,s,n.properties[s]);if(o){const[c,u]=o;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&nS.has(n.tagName)?r=u:i[c]=u}}if(r){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return i}function dS(e,n){const i={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const c=o.expression;c.type;const u=c.properties[0];u.type,Object.assign(i,e.evaluater.evaluateExpression(u.argument))}else wf(e,n.position);else{const s=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else wf(e,n.position);else o=r.value===null?!0:r.value;i[s]=o}return i}function h1(e,n){const i=[];let r=-1;const s=e.passKeys?new Map:$_;for(;++r<n.children.length;){const o=n.children[r];let c;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const d=s.get(h)||0;c=h+"-"+d,s.set(h,d+1)}}const u=Wy(e,o,c);u!==void 0&&i.push(u)}return i}function pS(e,n,i){const r=U_(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=r.commaSeparated?L_(i):G_(i)),r.property==="style"){let s=typeof i=="object"?i:mS(e,String(i));return e.stylePropertyNameCase==="css"&&(s=gS(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&r.space?P_[r.property]||r.property:r.attribute,i]}}function mS(e,n){try{return J_(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const r=i,s=new ha("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Vy+"#cannot-parse-style-attribute",s}}function Zy(e,n,i){let r;if(!i)r={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let o=-1,c;for(;++o<s.length;){const u=D5(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=c}else r=D5(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const s=r.value;return c1.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(r);wf(e)}function wf(e,n){const i=new ha("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Vy+"#cannot-handle-mdx-estrees-without-createevaluater",i}function gS(e){const n={};let i;for(i in e)c1.call(e,i)&&(n[vS(i)]=e[i]);return n}function vS(e){let n=e.replace(eS,yS);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function yS(e){return"-"+e.toLowerCase()}const om={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"]},bS={};function xS(e,n){const i=bS,r=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Ky(e,r,s)}function Ky(e,n,i){if(wS(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return G5(e.children,n,i)}return Array.isArray(e)?G5(e,n,i):""}function G5(e,n,i){const r=[];let s=-1;for(;++s<e.length;)r[s]=Ky(e[s],n,i);return r.join("")}function wS(e){return!!(e&&typeof e=="object")}const V5=document.createElement("i");function d1(e){const n="&"+e+";";V5.innerHTML=n;const i=V5.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function Yo(e,n,i,r){const s=e.length;let o=0,c;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,i=i>0?i:0,r.length<1e4)c=Array.from(r),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);o<r.length;)c=r.slice(o,o+1e4),c.unshift(n,0),e.splice(...c),o+=1e4,n+=1e4}function Dr(e,n){return e.length>0?(Yo(e,e.length,0,n),e):n}const W5={}.hasOwnProperty;function _S(e){const n={};let i=-1;for(;++i<e.length;)SS(n,e[i]);return n}function SS(e,n){let i;for(i in n){const s=(W5.call(e,i)?e[i]:void 0)||(e[i]={}),o=n[i];let c;if(o)for(c in o){W5.call(s,c)||(s[c]=[]);const u=o[c];kS(s[c],Array.isArray(u)?u:u?[u]:[])}}}function kS(e,n){let i=-1;const r=[];for(;++i<n.length;)(n[i].add==="after"?e:r).push(n[i]);Yo(e,0,0,r)}function Jy(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function dc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qo=gl(/[A-Za-z]/),mr=gl(/[\dA-Za-z]/),AS=gl(/[#-'*+\--9=?A-Z^-~]/);function Um(e){return e!==null&&(e<32||e===127)}const qm=gl(/\d/),NS=gl(/[\dA-Fa-f]/),CS=gl(/[!-/:-@[-`{-~]/);function It(e){return e!==null&&e<-2}function Ga(e){return e!==null&&(e<0||e===32)}function bn(e){return e===-2||e===-1||e===32}const ES=gl(new RegExp("\\p{P}|\\p{S}","u")),LS=gl(/\s/);function gl(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function xc(e){const n=[];let i=-1,r=0,s=0;for(;++i<e.length;){const o=e.charCodeAt(i);let c="";if(o===37&&mr(e.charCodeAt(i+1))&&mr(e.charCodeAt(i+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(i+1);o<56320&&u>56319&&u<57344?(c=String.fromCharCode(o,u),s=1):c="�"}else c=String.fromCharCode(o);c&&(n.push(e.slice(r,i),encodeURIComponent(c)),r=i+s+1,c=""),s&&(i+=s,s=0)}return n.join("")+e.slice(r)}function In(e,n,i,r){const s=r?r-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(h){return bn(h)?(e.enter(i),u(h)):n(h)}function u(h){return bn(h)&&o++<s?(e.consume(h),u):(e.exit(i),n(h))}}const zS={tokenize:TS};function TS(e){const n=e.attempt(this.parser.constructs.contentInitial,r,s);let i;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),In(e,n,"linePrefix")}function s(u){return e.enter("paragraph"),o(u)}function o(u){const h=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=h),i=h,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return It(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),c)}}const jS={tokenize:RS},X5={tokenize:OS};function RS(e){const n=this,i=[];let r=0,s,o,c;return u;function u(O){if(r<i.length){const P=i[r];return n.containerState=P[1],e.attempt(P[0].continuation,h,d)(O)}return d(O)}function h(O){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&j();const P=n.events.length;let G=P,J;for(;G--;)if(n.events[G][0]==="exit"&&n.events[G][1].type==="chunkFlow"){J=n.events[G][1].end;break}_(r);let ae=P;for(;ae<n.events.length;)n.events[ae][1].end={...J},ae++;return Yo(n.events,G+1,0,n.events.slice(P)),n.events.length=ae,d(O)}return u(O)}function d(O){if(r===i.length){if(!s)return w(O);if(s.currentConstruct&&s.currentConstruct.concrete)return A(O);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(X5,m,y)(O)}function m(O){return s&&j(),_(r),w(O)}function y(O){return n.parser.lazy[n.now().line]=r!==i.length,c=n.now().offset,A(O)}function w(O){return n.containerState={},e.attempt(X5,p,A)(O)}function p(O){return r++,i.push([n.currentConstruct,n.containerState]),w(O)}function A(O){if(O===null){s&&j(),_(0),e.consume(O);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),S(O)}function S(O){if(O===null){E(e.exit("chunkFlow"),!0),_(0),e.consume(O);return}return It(O)?(e.consume(O),E(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(O),S)}function E(O,P){const G=n.sliceStream(O);if(P&&G.push(null),O.previous=o,o&&(o.next=O),o=O,s.defineSkip(O.start),s.write(G),n.parser.lazy[O.start.line]){let J=s.events.length;for(;J--;)if(s.events[J][1].start.offset<c&&(!s.events[J][1].end||s.events[J][1].end.offset>c))return;const ae=n.events.length;let ne=ae,U,le;for(;ne--;)if(n.events[ne][0]==="exit"&&n.events[ne][1].type==="chunkFlow"){if(U){le=n.events[ne][1].end;break}U=!0}for(_(r),J=ae;J<n.events.length;)n.events[J][1].end={...le},J++;Yo(n.events,ne+1,0,n.events.slice(ae)),n.events.length=J}}function _(O){let P=i.length;for(;P-- >O;){const G=i[P];n.containerState=G[1],G[0].exit.call(n,e)}i.length=O}function j(){s.write([null]),o=void 0,s=void 0,n.containerState._closeFlow=void 0}}function OS(e,n,i){return In(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Z5(e){if(e===null||Ga(e)||LS(e))return 1;if(ES(e))return 2}function p1(e,n,i){const r=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!r.includes(o)&&(n=o(n,i),r.push(o))}return n}const Hm={name:"attention",resolveAll:DS,tokenize:MS};function DS(e,n){let i=-1,r,s,o,c,u,h,d,m;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(r=i;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[r][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;h=e[r][1].end.offset-e[r][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[r][1].end},w={...e[i][1].start};K5(y,-h),K5(w,h),c={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[r][1].end}},u={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:w},o={type:h>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[i][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[r][1].end={...c.start},e[i][1].start={...u.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=Dr(d,[["enter",e[r][1],n],["exit",e[r][1],n]])),d=Dr(d,[["enter",s,n],["enter",c,n],["exit",c,n],["enter",o,n]]),d=Dr(d,p1(n.parser.constructs.insideSpan.null,e.slice(r+1,i),n)),d=Dr(d,[["exit",o,n],["enter",u,n],["exit",u,n],["exit",s,n]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,d=Dr(d,[["enter",e[i][1],n],["exit",e[i][1],n]])):m=0,Yo(e,r-1,i-r+3,d),i=r+d.length-m-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function MS(e,n){const i=this.parser.constructs.attentionMarkers.null,r=this.previous,s=Z5(r);let o;return c;function c(h){return o=h,e.enter("attentionSequence"),u(h)}function u(h){if(h===o)return e.consume(h),u;const d=e.exit("attentionSequence"),m=Z5(h),y=!m||m===2&&s||i.includes(h),w=!s||s===2&&m||i.includes(r);return d._open=!!(o===42?y:y&&(s||!w)),d._close=!!(o===42?w:w&&(m||!y)),n(h)}}function K5(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const BS={name:"autolink",tokenize:PS};function PS(e,n,i){let r=0;return s;function s(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return qo(p)?(e.consume(p),c):p===64?i(p):d(p)}function c(p){return p===43||p===45||p===46||mr(p)?(r=1,u(p)):d(p)}function u(p){return p===58?(e.consume(p),r=0,h):(p===43||p===45||p===46||mr(p))&&r++<32?(e.consume(p),u):(r=0,d(p))}function h(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Um(p)?i(p):(e.consume(p),h)}function d(p){return p===64?(e.consume(p),m):AS(p)?(e.consume(p),d):i(p)}function m(p){return mr(p)?y(p):i(p)}function y(p){return p===46?(e.consume(p),r=0,m):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):w(p)}function w(p){if((p===45||mr(p))&&r++<63){const A=p===45?w:y;return e.consume(p),A}return i(p)}}const sd={partial:!0,tokenize:IS};function IS(e,n,i){return r;function r(o){return bn(o)?In(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||It(o)?n(o):i(o)}}const Qy={continuation:{tokenize:US},exit:qS,name:"blockQuote",tokenize:FS};function FS(e,n,i){const r=this;return s;function s(c){if(c===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return i(c)}function o(c){return bn(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function US(e,n,i){const r=this;return s;function s(c){return bn(c)?In(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(Qy,n,i)(c)}}function qS(e){e.exit("blockQuote")}const $y={name:"characterEscape",tokenize:HS};function HS(e,n,i){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return CS(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(o)}}const eb={name:"characterReference",tokenize:YS};function YS(e,n,i){const r=this;let s=0,o,c;return u;function u(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,c=mr,m(y))}function d(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=NS,m):(e.enter("characterReferenceValue"),o=7,c=qm,m(y))}function m(y){if(y===59&&s){const w=e.exit("characterReferenceValue");return c===mr&&!d1(r.sliceSerialize(w))?i(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&s++<o?(e.consume(y),m):i(y)}}const J5={partial:!0,tokenize:VS},Q5={concrete:!0,name:"codeFenced",tokenize:GS};function GS(e,n,i){const r=this,s={partial:!0,tokenize:G};let o=0,c=0,u;return h;function h(J){return d(J)}function d(J){const ae=r.events[r.events.length-1];return o=ae&&ae[1].type==="linePrefix"?ae[2].sliceSerialize(ae[1],!0).length:0,u=J,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(J)}function m(J){return J===u?(c++,e.consume(J),m):c<3?i(J):(e.exit("codeFencedFenceSequence"),bn(J)?In(e,y,"whitespace")(J):y(J))}function y(J){return J===null||It(J)?(e.exit("codeFencedFence"),r.interrupt?n(J):e.check(J5,S,P)(J)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),w(J))}function w(J){return J===null||It(J)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(J)):bn(J)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),In(e,p,"whitespace")(J)):J===96&&J===u?i(J):(e.consume(J),w)}function p(J){return J===null||It(J)?y(J):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(J))}function A(J){return J===null||It(J)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(J)):J===96&&J===u?i(J):(e.consume(J),A)}function S(J){return e.attempt(s,P,E)(J)}function E(J){return e.enter("lineEnding"),e.consume(J),e.exit("lineEnding"),_}function _(J){return o>0&&bn(J)?In(e,j,"linePrefix",o+1)(J):j(J)}function j(J){return J===null||It(J)?e.check(J5,S,P)(J):(e.enter("codeFlowValue"),O(J))}function O(J){return J===null||It(J)?(e.exit("codeFlowValue"),j(J)):(e.consume(J),O)}function P(J){return e.exit("codeFenced"),n(J)}function G(J,ae,ne){let U=0;return le;function le(Q){return J.enter("lineEnding"),J.consume(Q),J.exit("lineEnding"),F}function F(Q){return J.enter("codeFencedFence"),bn(Q)?In(J,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):T(Q)}function T(Q){return Q===u?(J.enter("codeFencedFenceSequence"),X(Q)):ne(Q)}function X(Q){return Q===u?(U++,J.consume(Q),X):U>=c?(J.exit("codeFencedFenceSequence"),bn(Q)?In(J,N,"whitespace")(Q):N(Q)):ne(Q)}function N(Q){return Q===null||It(Q)?(J.exit("codeFencedFence"),ae(Q)):ne(Q)}}}function VS(e,n,i){const r=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return r.parser.lazy[r.now().line]?i(c):n(c)}}const sm={name:"codeIndented",tokenize:XS},WS={partial:!0,tokenize:ZS};function XS(e,n,i){const r=this;return s;function s(d){return e.enter("codeIndented"),In(e,o,"linePrefix",5)(d)}function o(d){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?h(d):It(d)?e.attempt(WS,c,h)(d):(e.enter("codeFlowValue"),u(d))}function u(d){return d===null||It(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),u)}function h(d){return e.exit("codeIndented"),n(d)}}function ZS(e,n,i){const r=this;return s;function s(c){return r.parser.lazy[r.now().line]?i(c):It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):In(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(c):It(c)?s(c):i(c)}}const KS={name:"codeText",previous:QS,resolve:JS,tokenize:$S};function JS(e){let n=e.length-4,i=3,r,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=i;++r<n;)if(e[r][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(r=i-1,n++;++r<=n;)s===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(s=r):(r===n||e[r][1].type==="lineEnding")&&(e[s][1].type="codeTextData",r!==s+2&&(e[s][1].end=e[r-1][1].end,e.splice(s+2,r-s-2),n-=r-s-2,r=s+2),s=void 0);return e}function QS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $S(e,n,i){let r=0,s,o;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),u(y)}function u(y){return y===96?(e.consume(y),r++,u):(e.exit("codeTextSequence"),h(y))}function h(y){return y===null?i(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(o=e.enter("codeTextSequence"),s=0,m(y)):It(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||It(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),d)}function m(y){return y===96?(e.consume(y),s++,m):s===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(o.type="codeTextData",d(y))}}class ek{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const r=i??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,i,r){const s=i||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&cf(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),cf(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),cf(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);cf(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);cf(this.left,i.reverse())}}}function cf(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function tb(e){const n={};let i=-1,r,s,o,c,u,h,d;const m=new ek(e);for(;++i<m.length;){for(;i in n;)i=n[i];if(r=m.get(i),i&&r[1].type==="chunkFlow"&&m.get(i-1)[1].type==="listItemPrefix"&&(h=r[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,tk(m,i)),i=n[i],d=!0);else if(r[1]._container){for(o=i,s=void 0;o--;)if(c=m.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(r[1].end={...m.get(s)[1].start},u=m.slice(s,i),u.unshift(r),m.splice(s,i-s+1,u))}}return Yo(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function tk(e,n){const i=e.get(n)[1],r=e.get(n)[2];let s=n-1;const o=[];let c=i._tokenizer;c||(c=r.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,h=[],d={};let m,y,w=-1,p=i,A=0,S=0;const E=[S];for(;p;){for(;e.get(++s)[1]!==p;);o.push(s),p._tokenizer||(m=r.sliceStream(p),p.next||m.push(null),y&&c.defineSkip(p.start),p._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),p._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=p,p=p.next}for(p=i;++w<u.length;)u[w][0]==="exit"&&u[w-1][0]==="enter"&&u[w][1].type===u[w-1][1].type&&u[w][1].start.line!==u[w][1].end.line&&(S=w+1,E.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(c.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),w=E.length;w--;){const _=u.slice(E[w],E[w+1]),j=o.pop();h.push([j,j+_.length-1]),e.splice(j,2,_)}for(h.reverse(),w=-1;++w<h.length;)d[A+h[w][0]]=A+h[w][1],A+=h[w][1]-h[w][0]-1;return d}const nk={resolve:ak,tokenize:rk},ik={partial:!0,tokenize:ok};function ak(e){return tb(e),e}function rk(e,n){let i;return r;function r(u){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?o(u):It(u)?e.check(ik,c,o)(u):(e.consume(u),s)}function o(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function c(u){return e.consume(u),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function ok(e,n,i){const r=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),In(e,o,"linePrefix")}function o(c){if(c===null||It(c))return i(c);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(c):e.interrupt(r.parser.constructs.flow,i,n)(c)}}function nb(e,n,i,r,s,o,c,u,h){const d=h||Number.POSITIVE_INFINITY;let m=0;return y;function y(_){return _===60?(e.enter(r),e.enter(s),e.enter(o),e.consume(_),e.exit(o),w):_===null||_===32||_===41||Um(_)?i(_):(e.enter(r),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),S(_))}function w(_){return _===62?(e.enter(o),e.consume(_),e.exit(o),e.exit(s),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===62?(e.exit("chunkString"),e.exit(u),w(_)):_===null||_===60||It(_)?i(_):(e.consume(_),_===92?A:p)}function A(_){return _===60||_===62||_===92?(e.consume(_),p):p(_)}function S(_){return!m&&(_===null||_===41||Ga(_))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(r),n(_)):m<d&&_===40?(e.consume(_),m++,S):_===41?(e.consume(_),m--,S):_===null||_===32||_===40||Um(_)?i(_):(e.consume(_),_===92?E:S)}function E(_){return _===40||_===41||_===92?(e.consume(_),S):S(_)}}function ib(e,n,i,r,s,o){const c=this;let u=0,h;return d;function d(p){return e.enter(r),e.enter(s),e.consume(p),e.exit(s),e.enter(o),m}function m(p){return u>999||p===null||p===91||p===93&&!h||p===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?i(p):p===93?(e.exit(o),e.enter(s),e.consume(p),e.exit(s),e.exit(r),n):It(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(p))}function y(p){return p===null||p===91||p===93||It(p)||u++>999?(e.exit("chunkString"),m(p)):(e.consume(p),h||(h=!bn(p)),p===92?w:y)}function w(p){return p===91||p===92||p===93?(e.consume(p),u++,y):y(p)}}function ab(e,n,i,r,s,o){let c;return u;function u(w){return w===34||w===39||w===40?(e.enter(r),e.enter(s),e.consume(w),e.exit(s),c=w===40?41:w,h):i(w)}function h(w){return w===c?(e.enter(s),e.consume(w),e.exit(s),e.exit(r),n):(e.enter(o),d(w))}function d(w){return w===c?(e.exit(o),h(c)):w===null?i(w):It(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),In(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===c||w===null||It(w)?(e.exit("chunkString"),d(w)):(e.consume(w),w===92?y:m)}function y(w){return w===c||w===92?(e.consume(w),m):m(w)}}function mf(e,n){let i;return r;function r(s){return It(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,r):bn(s)?In(e,r,i?"linePrefix":"lineSuffix")(s):n(s)}}const sk={name:"definition",tokenize:uk},lk={partial:!0,tokenize:ck};function uk(e,n,i){const r=this;let s;return o;function o(p){return e.enter("definition"),c(p)}function c(p){return ib.call(r,e,u,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return s=dc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),h):i(p)}function h(p){return Ga(p)?mf(e,d)(p):d(p)}function d(p){return nb(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function m(p){return e.attempt(lk,y,y)(p)}function y(p){return bn(p)?In(e,w,"whitespace")(p):w(p)}function w(p){return p===null||It(p)?(e.exit("definition"),r.parser.defined.push(s),n(p)):i(p)}}function ck(e,n,i){return r;function r(u){return Ga(u)?mf(e,s)(u):i(u)}function s(u){return ab(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return bn(u)?In(e,c,"whitespace")(u):c(u)}function c(u){return u===null||It(u)?n(u):i(u)}}const fk={name:"hardBreakEscape",tokenize:hk};function hk(e,n,i){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return It(o)?(e.exit("hardBreakEscape"),n(o)):i(o)}}const dk={name:"headingAtx",resolve:pk,tokenize:mk};function pk(e,n){let i=e.length-2,r=3,s,o;return e[r][1].type==="whitespace"&&(r+=2),i-2>r&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(r===i-1||i-4>r&&e[i-2][1].type==="whitespace")&&(i-=r+1===i?2:4),i>r&&(s={type:"atxHeadingText",start:e[r][1].start,end:e[i][1].end},o={type:"chunkText",start:e[r][1].start,end:e[i][1].end,contentType:"text"},Yo(e,r,i-r+1,[["enter",s,n],["enter",o,n],["exit",o,n],["exit",s,n]])),e}function mk(e,n,i){let r=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&r++<6?(e.consume(m),c):m===null||Ga(m)?(e.exit("atxHeadingSequence"),u(m)):i(m)}function u(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||It(m)?(e.exit("atxHeading"),n(m)):bn(m)?In(e,u,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),u(m))}function d(m){return m===null||m===35||Ga(m)?(e.exit("atxHeadingText"),u(m)):(e.consume(m),d)}}const gk=["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"],$5=["pre","script","style","textarea"],vk={concrete:!0,name:"htmlFlow",resolveTo:xk,tokenize:wk},yk={partial:!0,tokenize:Sk},bk={partial:!0,tokenize:_k};function xk(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function wk(e,n,i){const r=this;let s,o,c,u,h;return d;function d(z){return m(z)}function m(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),y}function y(z){return z===33?(e.consume(z),w):z===47?(e.consume(z),o=!0,S):z===63?(e.consume(z),s=3,r.interrupt?n:Z):qo(z)?(e.consume(z),c=String.fromCharCode(z),E):i(z)}function w(z){return z===45?(e.consume(z),s=2,p):z===91?(e.consume(z),s=5,u=0,A):qo(z)?(e.consume(z),s=4,r.interrupt?n:Z):i(z)}function p(z){return z===45?(e.consume(z),r.interrupt?n:Z):i(z)}function A(z){const V="CDATA[";return z===V.charCodeAt(u++)?(e.consume(z),u===V.length?r.interrupt?n:T:A):i(z)}function S(z){return qo(z)?(e.consume(z),c=String.fromCharCode(z),E):i(z)}function E(z){if(z===null||z===47||z===62||Ga(z)){const V=z===47,ee=c.toLowerCase();return!V&&!o&&$5.includes(ee)?(s=1,r.interrupt?n(z):T(z)):gk.includes(c.toLowerCase())?(s=6,V?(e.consume(z),_):r.interrupt?n(z):T(z)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?i(z):o?j(z):O(z))}return z===45||mr(z)?(e.consume(z),c+=String.fromCharCode(z),E):i(z)}function _(z){return z===62?(e.consume(z),r.interrupt?n:T):i(z)}function j(z){return bn(z)?(e.consume(z),j):le(z)}function O(z){return z===47?(e.consume(z),le):z===58||z===95||qo(z)?(e.consume(z),P):bn(z)?(e.consume(z),O):le(z)}function P(z){return z===45||z===46||z===58||z===95||mr(z)?(e.consume(z),P):G(z)}function G(z){return z===61?(e.consume(z),J):bn(z)?(e.consume(z),G):O(z)}function J(z){return z===null||z===60||z===61||z===62||z===96?i(z):z===34||z===39?(e.consume(z),h=z,ae):bn(z)?(e.consume(z),J):ne(z)}function ae(z){return z===h?(e.consume(z),h=null,U):z===null||It(z)?i(z):(e.consume(z),ae)}function ne(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Ga(z)?G(z):(e.consume(z),ne)}function U(z){return z===47||z===62||bn(z)?O(z):i(z)}function le(z){return z===62?(e.consume(z),F):i(z)}function F(z){return z===null||It(z)?T(z):bn(z)?(e.consume(z),F):i(z)}function T(z){return z===45&&s===2?(e.consume(z),ie):z===60&&s===1?(e.consume(z),oe):z===62&&s===4?(e.consume(z),I):z===63&&s===3?(e.consume(z),Z):z===93&&s===5?(e.consume(z),ge):It(z)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(yk,L,X)(z)):z===null||It(z)?(e.exit("htmlFlowData"),X(z)):(e.consume(z),T)}function X(z){return e.check(bk,N,L)(z)}function N(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),Q}function Q(z){return z===null||It(z)?X(z):(e.enter("htmlFlowData"),T(z))}function ie(z){return z===45?(e.consume(z),Z):T(z)}function oe(z){return z===47?(e.consume(z),c="",me):T(z)}function me(z){if(z===62){const V=c.toLowerCase();return $5.includes(V)?(e.consume(z),I):T(z)}return qo(z)&&c.length<8?(e.consume(z),c+=String.fromCharCode(z),me):T(z)}function ge(z){return z===93?(e.consume(z),Z):T(z)}function Z(z){return z===62?(e.consume(z),I):z===45&&s===2?(e.consume(z),Z):T(z)}function I(z){return z===null||It(z)?(e.exit("htmlFlowData"),L(z)):(e.consume(z),I)}function L(z){return e.exit("htmlFlow"),n(z)}}function _k(e,n,i){const r=this;return s;function s(c){return It(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):i(c)}function o(c){return r.parser.lazy[r.now().line]?i(c):n(c)}}function Sk(e,n,i){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(sd,n,i)}}const kk={name:"htmlText",tokenize:Ak};function Ak(e,n,i){const r=this;let s,o,c;return u;function u(Z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(Z),h}function h(Z){return Z===33?(e.consume(Z),d):Z===47?(e.consume(Z),G):Z===63?(e.consume(Z),O):qo(Z)?(e.consume(Z),ne):i(Z)}function d(Z){return Z===45?(e.consume(Z),m):Z===91?(e.consume(Z),o=0,A):qo(Z)?(e.consume(Z),j):i(Z)}function m(Z){return Z===45?(e.consume(Z),p):i(Z)}function y(Z){return Z===null?i(Z):Z===45?(e.consume(Z),w):It(Z)?(c=y,oe(Z)):(e.consume(Z),y)}function w(Z){return Z===45?(e.consume(Z),p):y(Z)}function p(Z){return Z===62?ie(Z):Z===45?w(Z):y(Z)}function A(Z){const I="CDATA[";return Z===I.charCodeAt(o++)?(e.consume(Z),o===I.length?S:A):i(Z)}function S(Z){return Z===null?i(Z):Z===93?(e.consume(Z),E):It(Z)?(c=S,oe(Z)):(e.consume(Z),S)}function E(Z){return Z===93?(e.consume(Z),_):S(Z)}function _(Z){return Z===62?ie(Z):Z===93?(e.consume(Z),_):S(Z)}function j(Z){return Z===null||Z===62?ie(Z):It(Z)?(c=j,oe(Z)):(e.consume(Z),j)}function O(Z){return Z===null?i(Z):Z===63?(e.consume(Z),P):It(Z)?(c=O,oe(Z)):(e.consume(Z),O)}function P(Z){return Z===62?ie(Z):O(Z)}function G(Z){return qo(Z)?(e.consume(Z),J):i(Z)}function J(Z){return Z===45||mr(Z)?(e.consume(Z),J):ae(Z)}function ae(Z){return It(Z)?(c=ae,oe(Z)):bn(Z)?(e.consume(Z),ae):ie(Z)}function ne(Z){return Z===45||mr(Z)?(e.consume(Z),ne):Z===47||Z===62||Ga(Z)?U(Z):i(Z)}function U(Z){return Z===47?(e.consume(Z),ie):Z===58||Z===95||qo(Z)?(e.consume(Z),le):It(Z)?(c=U,oe(Z)):bn(Z)?(e.consume(Z),U):ie(Z)}function le(Z){return Z===45||Z===46||Z===58||Z===95||mr(Z)?(e.consume(Z),le):F(Z)}function F(Z){return Z===61?(e.consume(Z),T):It(Z)?(c=F,oe(Z)):bn(Z)?(e.consume(Z),F):U(Z)}function T(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?i(Z):Z===34||Z===39?(e.consume(Z),s=Z,X):It(Z)?(c=T,oe(Z)):bn(Z)?(e.consume(Z),T):(e.consume(Z),N)}function X(Z){return Z===s?(e.consume(Z),s=void 0,Q):Z===null?i(Z):It(Z)?(c=X,oe(Z)):(e.consume(Z),X)}function N(Z){return Z===null||Z===34||Z===39||Z===60||Z===61||Z===96?i(Z):Z===47||Z===62||Ga(Z)?U(Z):(e.consume(Z),N)}function Q(Z){return Z===47||Z===62||Ga(Z)?U(Z):i(Z)}function ie(Z){return Z===62?(e.consume(Z),e.exit("htmlTextData"),e.exit("htmlText"),n):i(Z)}function oe(Z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),me}function me(Z){return bn(Z)?In(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):ge(Z)}function ge(Z){return e.enter("htmlTextData"),c(Z)}}const m1={name:"labelEnd",resolveAll:Lk,resolveTo:zk,tokenize:Tk},Nk={tokenize:jk},Ck={tokenize:Rk},Ek={tokenize:Ok};function Lk(e){let n=-1;const i=[];for(;++n<e.length;){const r=e[n][1];if(i.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",n+=s}}return e.length!==i.length&&Yo(e,0,e.length,i),e}function zk(e,n){let i=e.length,r=0,s,o,c,u;for(;i--;)if(s=e[i][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=i,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(c=i);const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",h,n],["enter",d,n]],u=Dr(u,e.slice(o+1,o+r+3)),u=Dr(u,[["enter",m,n]]),u=Dr(u,p1(n.parser.constructs.insideSpan.null,e.slice(o+r+4,c-3),n)),u=Dr(u,[["exit",m,n],e[c-2],e[c-1],["exit",d,n]]),u=Dr(u,e.slice(c+1)),u=Dr(u,[["exit",h,n]]),Yo(e,o,e.length,u),e}function Tk(e,n,i){const r=this;let s=r.events.length,o,c;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return u;function u(w){return o?o._inactive?y(w):(c=r.parser.defined.includes(dc(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(w),e.exit("labelMarker"),e.exit("labelEnd"),h):i(w)}function h(w){return w===40?e.attempt(Nk,m,c?m:y)(w):w===91?e.attempt(Ck,m,c?d:y)(w):c?m(w):y(w)}function d(w){return e.attempt(Ek,m,y)(w)}function m(w){return n(w)}function y(w){return o._balanced=!0,i(w)}}function jk(e,n,i){return r;function r(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),s}function s(y){return Ga(y)?mf(e,o)(y):o(y)}function o(y){return y===41?m(y):nb(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return Ga(y)?mf(e,h)(y):m(y)}function u(y){return i(y)}function h(y){return y===34||y===39||y===40?ab(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function d(y){return Ga(y)?mf(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):i(y)}}function Rk(e,n,i){const r=this;return s;function s(u){return ib.call(r,e,o,c,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(dc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):i(u)}function c(u){return i(u)}}function Ok(e,n,i){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):i(o)}}const Dk={name:"labelStartImage",resolveAll:m1.resolveAll,tokenize:Mk};function Mk(e,n,i){const r=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):i(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(u):n(u)}}const Bk={name:"labelStartLink",resolveAll:m1.resolveAll,tokenize:Pk};function Pk(e,n,i){const r=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(c):n(c)}}const lm={name:"lineEnding",tokenize:Ik};function Ik(e,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),In(e,n,"linePrefix")}}const Gh={name:"thematicBreak",tokenize:Fk};function Fk(e,n,i){let r=0,s;return o;function o(d){return e.enter("thematicBreak"),c(d)}function c(d){return s=d,u(d)}function u(d){return d===s?(e.enter("thematicBreakSequence"),h(d)):r>=3&&(d===null||It(d))?(e.exit("thematicBreak"),n(d)):i(d)}function h(d){return d===s?(e.consume(d),r++,h):(e.exit("thematicBreakSequence"),bn(d)?In(e,u,"whitespace")(d):u(d))}}const Ya={continuation:{tokenize:Yk},exit:Vk,name:"list",tokenize:Hk},Uk={partial:!0,tokenize:Wk},qk={partial:!0,tokenize:Gk};function Hk(e,n,i){const r=this,s=r.events[r.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(p){const A=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:qm(p)){if(r.containerState.type||(r.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Gh,i,d)(p):d(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(p)}return i(p)}function h(p){return qm(p)&&++c<10?(e.consume(p),h):(!r.interrupt||c<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),d(p)):i(p)}function d(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(sd,r.interrupt?i:m,e.attempt(Uk,w,y))}function m(p){return r.containerState.initialBlankLine=!0,o++,w(p)}function y(p){return bn(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),w):i(p)}function w(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function Yk(e,n,i){const r=this;return r.containerState._closeFlow=void 0,e.check(sd,s,o);function s(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,In(e,n,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!bn(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qk,n,c)(u))}function c(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,In(e,e.attempt(Ya,n,i),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Gk(e,n,i){const r=this;return In(e,s,"listItemIndent",r.containerState.size+1);function s(o){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?n(o):i(o)}}function Vk(e){e.exit(this.containerState.type)}function Wk(e,n,i){const r=this;return In(e,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=r.events[r.events.length-1];return!bn(o)&&c&&c[1].type==="listItemPrefixWhitespace"?n(o):i(o)}}const ev={name:"setextUnderline",resolveTo:Xk,tokenize:Zk};function Xk(e,n){let i=e.length,r,s,o;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){r=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=c,e.push(["exit",c,n]),e}function Zk(e,n,i){const r=this;let s;return o;function o(d){let m=r.events.length,y;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){y=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(e.enter("setextHeadingLine"),s=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),u(d)}function u(d){return d===s?(e.consume(d),u):(e.exit("setextHeadingLineSequence"),bn(d)?In(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||It(d)?(e.exit("setextHeadingLine"),n(d)):i(d)}}const Kk={tokenize:Jk};function Jk(e){const n=this,i=e.attempt(sd,r,e.attempt(this.parser.constructs.flowInitial,s,In(e,e.attempt(this.parser.constructs.flow,s,e.attempt(nk,s)),"linePrefix")));return i;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const Qk={resolveAll:ob()},$k=rb("string"),eA=rb("text");function rb(e){return{resolveAll:ob(e==="text"?tA:void 0),tokenize:n};function n(i){const r=this,s=this.parser.constructs[e],o=i.attempt(s,c,u);return c;function c(m){return d(m)?o(m):u(m)}function u(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),h}function h(m){return d(m)?(i.exit("data"),o(m)):(i.consume(m),h)}function d(m){if(m===null)return!0;const y=s[m];let w=-1;if(y)for(;++w<y.length;){const p=y[w];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ob(e){return n;function n(i,r){let s=-1,o;for(;++s<=i.length;)o===void 0?i[s]&&i[s][1].type==="data"&&(o=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==o+2&&(i[o][1].end=i[s-1][1].end,i.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(i,r):i}}function tA(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const r=e[i-1][1],s=n.sliceStream(r);let o=s.length,c=-1,u=0,h;for(;o--;){const d=s[o];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(d===-2)h=!0,u++;else if(d!==-1){o++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(u=0),u){const d={type:i===e.length||h||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:r.start._bufferIndex+c,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(i,0,["enter",d,n],["exit",d,n]),i+=2)}i++}return e}const nA={42:Ya,43:Ya,45:Ya,48:Ya,49:Ya,50:Ya,51:Ya,52:Ya,53:Ya,54:Ya,55:Ya,56:Ya,57:Ya,62:Qy},iA={91:sk},aA={[-2]:sm,[-1]:sm,32:sm},rA={35:dk,42:Gh,45:[ev,Gh],60:vk,61:ev,95:Gh,96:Q5,126:Q5},oA={38:eb,92:$y},sA={[-5]:lm,[-4]:lm,[-3]:lm,33:Dk,38:eb,42:Hm,60:[BS,kk],91:Bk,92:[fk,$y],93:m1,95:Hm,96:KS},lA={null:[Hm,Qk]},uA={null:[42,95]},cA={null:[]},fA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uA,contentInitial:iA,disable:cA,document:nA,flow:rA,flowInitial:aA,insideSpan:lA,string:oA,text:sA},Symbol.toStringTag,{value:"Module"}));function hA(e,n,i){let r={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},o=[];let c=[],u=[];const h={attempt:ae(G),check:ae(J),consume:j,enter:O,exit:P,interrupt:ae(J,{interrupt:!0})},d={code:null,containerState:{},defineSkip:S,events:[],now:A,parser:e,previous:null,sliceSerialize:w,sliceStream:p,write:y};let m=n.tokenize.call(d,h);return n.resolveAll&&o.push(n),d;function y(F){return c=Dr(c,F),E(),c[c.length-1]!==null?[]:(ne(n,0),d.events=p1(o,d.events,d),d.events)}function w(F,T){return pA(p(F),T)}function p(F){return dA(c,F)}function A(){const{_bufferIndex:F,_index:T,line:X,column:N,offset:Q}=r;return{_bufferIndex:F,_index:T,line:X,column:N,offset:Q}}function S(F){s[F.line]=F.column,le()}function E(){let F;for(;r._index<c.length;){const T=c[r._index];if(typeof T=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<T.length;)_(T.charCodeAt(r._bufferIndex));else _(T)}}function _(F){m=m(F)}function j(F){It(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,le()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=F}function O(F,T){const X=T||{};return X.type=F,X.start=A(),d.events.push(["enter",X,d]),u.push(X),X}function P(F){const T=u.pop();return T.end=A(),d.events.push(["exit",T,d]),T}function G(F,T){ne(F,T.from)}function J(F,T){T.restore()}function ae(F,T){return X;function X(N,Q,ie){let oe,me,ge,Z;return Array.isArray(N)?L(N):"tokenize"in N?L([N]):I(N);function I(pe){return we;function we(Ae){const Ne=Ae!==null&&pe[Ae],Ue=Ae!==null&&pe.null,Xe=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return L(Xe)(Ae)}}function L(pe){return oe=pe,me=0,pe.length===0?ie:z(pe[me])}function z(pe){return we;function we(Ae){return Z=U(),ge=pe,pe.partial||(d.currentConstruct=pe),pe.name&&d.parser.constructs.disable.null.includes(pe.name)?ee():pe.tokenize.call(T?Object.assign(Object.create(d),T):d,h,V,ee)(Ae)}}function V(pe){return F(ge,Z),Q}function ee(pe){return Z.restore(),++me<oe.length?z(oe[me]):ie}}}function ne(F,T){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&Yo(d.events,T,d.events.length-T,F.resolve(d.events.slice(T),d)),F.resolveTo&&(d.events=F.resolveTo(d.events,d))}function U(){const F=A(),T=d.previous,X=d.currentConstruct,N=d.events.length,Q=Array.from(u);return{from:N,restore:ie};function ie(){r=F,d.previous=T,d.currentConstruct=X,d.events.length=N,u=Q,le()}}function le(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function dA(e,n){const i=n.start._index,r=n.start._bufferIndex,s=n.end._index,o=n.end._bufferIndex;let c;if(i===s)c=[e[i].slice(r,o)];else{if(c=e.slice(i,s),r>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(r):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function pA(e,n){let i=-1;const r=[];let s;for(;++i<e.length;){const o=e[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
`;break}case-3:{c=`\r
`;break}case-2:{c=n?" ":"	";break}case-1:{if(!n&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,r.push(c)}return r.join("")}function mA(e){const r={constructs:_S([fA,...(e||{}).extensions||[]]),content:s(zS),defined:[],document:s(jS),flow:s(Kk),lazy:{},string:s($k),text:s(eA)};return r;function s(o){return c;function c(u){return hA(r,o,u)}}}function gA(e){for(;!tb(e););return e}const tv=/[\0\t\n\r]/g;function vA(){let e=1,n="",i=!0,r;return s;function s(o,c,u){const h=[];let d,m,y,w,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,n="",i&&(o.charCodeAt(0)===65279&&y++,i=void 0);y<o.length;){if(tv.lastIndex=y,d=tv.exec(o),w=d&&d.index!==void 0?d.index:o.length,p=o.charCodeAt(w),!d){n=o.slice(y);break}if(p===10&&y===w&&r)h.push(-3),r=void 0;else switch(r&&(h.push(-5),r=void 0),y<w&&(h.push(o.slice(y,w)),e+=w-y),p){case 0:{h.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,h.push(-2);e++<m;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:r=!0,e=1}y=w+1}return u&&(r&&h.push(-5),n&&h.push(n),h.push(null)),h}}const yA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bA(e){return e.replace(yA,xA)}function xA(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),o=s===120||s===88;return Jy(i.slice(o?2:1),o?16:10)}return d1(i)||e}const sb={}.hasOwnProperty;function wA(e,n,i){return typeof n!="string"&&(i=n,n=void 0),_A(i)(gA(mA(i).document().write(vA()(e,n,!0))))}function _A(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ce),autolinkProtocol:U,autolinkEmail:U,atxHeading:o(Y),blockQuote:o(Ue),characterEscape:U,characterReference:U,codeFenced:o(Xe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(Xe,c),codeText:o(at,c),codeTextData:U,data:U,codeFlowValue:U,definition:o(rt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(M),hardBreakEscape:o(xe),hardBreakTrailing:o(xe),htmlFlow:o(ue,c),htmlFlowData:U,htmlText:o(ue,c),htmlTextData:U,image:o(re),label:c,link:o(ce),listItem:o(Re),listItemValue:w,listOrdered:o(De,y),listUnordered:o(De),paragraph:o(_e),reference:z,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(Y),strong:o(He),thematicBreak:o(je)},exit:{atxHeading:h(),atxHeadingSequence:G,autolink:h(),autolinkEmail:Ne,autolinkProtocol:Ae,blockQuote:h(),characterEscapeValue:le,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:pe,characterReference:we,codeFenced:h(E),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:A,codeFlowValue:le,codeIndented:h(_),codeText:h(Q),codeTextData:le,data:le,definition:h(),definitionDestinationString:P,definitionLabelString:j,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(T),hardBreakTrailing:h(T),htmlFlow:h(X),htmlFlowData:le,htmlText:h(N),htmlTextData:le,image:h(oe),label:ge,labelText:me,lineEnding:F,link:h(ie),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:V,resourceDestinationString:Z,resourceTitleString:I,resource:L,setextHeading:h(ne),setextHeadingLineSequence:ae,setextHeadingText:J,strong:h(),thematicBreak:h()}};lb(n,(e||{}).mdastExtensions||[]);const i={};return r;function r(ve){let Be={type:"root",children:[]};const Ge={stack:[Be],tokenStack:[],config:n,enter:u,exit:d,buffer:c,resume:m,data:i},$e=[];let st=-1;for(;++st<ve.length;)if(ve[st][1].type==="listOrdered"||ve[st][1].type==="listUnordered")if(ve[st][0]==="enter")$e.push(st);else{const lt=$e.pop();st=s(ve,lt,st)}for(st=-1;++st<ve.length;){const lt=n[ve[st][0]];sb.call(lt,ve[st][1].type)&&lt[ve[st][1].type].call(Object.assign({sliceSerialize:ve[st][2].sliceSerialize},Ge),ve[st][1])}if(Ge.tokenStack.length>0){const lt=Ge.tokenStack[Ge.tokenStack.length-1];(lt[1]||nv).call(Ge,void 0,lt[0])}for(Be.position={start:fl(ve.length>0?ve[0][1].start:{line:1,column:1,offset:0}),end:fl(ve.length>0?ve[ve.length-2][1].end:{line:1,column:1,offset:0})},st=-1;++st<n.transforms.length;)Be=n.transforms[st](Be)||Be;return Be}function s(ve,Be,Ge){let $e=Be-1,st=-1,lt=!1,Vt,ct,dt,_t;for(;++$e<=Ge;){const mt=ve[$e];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?st++:st--,_t=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(Vt&&!_t&&!st&&!dt&&(dt=$e),_t=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_t=void 0}if(!st&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||st===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(Vt){let pt=$e;for(ct=void 0;pt--;){const Ft=ve[pt];if(Ft[1].type==="lineEnding"||Ft[1].type==="lineEndingBlank"){if(Ft[0]==="exit")continue;ct&&(ve[ct][1].type="lineEndingBlank",lt=!0),Ft[1].type="lineEnding",ct=pt}else if(!(Ft[1].type==="linePrefix"||Ft[1].type==="blockQuotePrefix"||Ft[1].type==="blockQuotePrefixWhitespace"||Ft[1].type==="blockQuoteMarker"||Ft[1].type==="listItemIndent"))break}dt&&(!ct||dt<ct)&&(Vt._spread=!0),Vt.end=Object.assign({},ct?ve[ct][1].start:mt[1].end),ve.splice(ct||$e,0,["exit",Vt,mt[2]]),$e++,Ge++}if(mt[1].type==="listItemPrefix"){const pt={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};Vt=pt,ve.splice($e,0,["enter",pt,mt[2]]),$e++,Ge++,dt=void 0,_t=!0}}}return ve[Be][1]._spread=lt,Ge}function o(ve,Be){return Ge;function Ge($e){u.call(this,ve($e),$e),Be&&Be.call(this,$e)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(ve,Be,Ge){this.stack[this.stack.length-1].children.push(ve),this.stack.push(ve),this.tokenStack.push([Be,Ge||void 0]),ve.position={start:fl(Be.start),end:void 0}}function h(ve){return Be;function Be(Ge){ve&&ve.call(this,Ge),d.call(this,Ge)}}function d(ve,Be){const Ge=this.stack.pop(),$e=this.tokenStack.pop();if($e)$e[0].type!==ve.type&&(Be?Be.call(this,ve,$e[0]):($e[1]||nv).call(this,ve,$e[0]));else throw new Error("Cannot close `"+ve.type+"` ("+pf({start:ve.start,end:ve.end})+"): it’s not open");Ge.position.end=fl(ve.end)}function m(){return xS(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function w(ve){if(this.data.expectingFirstListItemValue){const Be=this.stack[this.stack.length-2];Be.start=Number.parseInt(this.sliceSerialize(ve),10),this.data.expectingFirstListItemValue=void 0}}function p(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.lang=ve}function A(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.meta=ve}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.value=ve.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.value=ve.replace(/(\r?\n|\r)$/g,"")}function j(ve){const Be=this.resume(),Ge=this.stack[this.stack.length-1];Ge.label=Be,Ge.identifier=dc(this.sliceSerialize(ve)).toLowerCase()}function O(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.title=ve}function P(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.url=ve}function G(ve){const Be=this.stack[this.stack.length-1];if(!Be.depth){const Ge=this.sliceSerialize(ve).length;Be.depth=Ge}}function J(){this.data.setextHeadingSlurpLineEnding=!0}function ae(ve){const Be=this.stack[this.stack.length-1];Be.depth=this.sliceSerialize(ve).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function U(ve){const Ge=this.stack[this.stack.length-1].children;let $e=Ge[Ge.length-1];(!$e||$e.type!=="text")&&($e=Ee(),$e.position={start:fl(ve.start),end:void 0},Ge.push($e)),this.stack.push($e)}function le(ve){const Be=this.stack.pop();Be.value+=this.sliceSerialize(ve),Be.position.end=fl(ve.end)}function F(ve){const Be=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ge=Be.children[Be.children.length-1];Ge.position.end=fl(ve.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(Be.type)&&(U.call(this,ve),le.call(this,ve))}function T(){this.data.atHardBreak=!0}function X(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.value=ve}function N(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.value=ve}function Q(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.value=ve}function ie(){const ve=this.stack[this.stack.length-1];if(this.data.inReference){const Be=this.data.referenceType||"shortcut";ve.type+="Reference",ve.referenceType=Be,delete ve.url,delete ve.title}else delete ve.identifier,delete ve.label;this.data.referenceType=void 0}function oe(){const ve=this.stack[this.stack.length-1];if(this.data.inReference){const Be=this.data.referenceType||"shortcut";ve.type+="Reference",ve.referenceType=Be,delete ve.url,delete ve.title}else delete ve.identifier,delete ve.label;this.data.referenceType=void 0}function me(ve){const Be=this.sliceSerialize(ve),Ge=this.stack[this.stack.length-2];Ge.label=bA(Be),Ge.identifier=dc(Be).toLowerCase()}function ge(){const ve=this.stack[this.stack.length-1],Be=this.resume(),Ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ge.type==="link"){const $e=ve.children;Ge.children=$e}else Ge.alt=Be}function Z(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.url=ve}function I(){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.title=ve}function L(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function V(ve){const Be=this.resume(),Ge=this.stack[this.stack.length-1];Ge.label=Be,Ge.identifier=dc(this.sliceSerialize(ve)).toLowerCase(),this.data.referenceType="full"}function ee(ve){this.data.characterReferenceType=ve.type}function pe(ve){const Be=this.sliceSerialize(ve),Ge=this.data.characterReferenceType;let $e;Ge?($e=Jy(Be,Ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$e=d1(Be);const st=this.stack[this.stack.length-1];st.value+=$e}function we(ve){const Be=this.stack.pop();Be.position.end=fl(ve.end)}function Ae(ve){le.call(this,ve);const Be=this.stack[this.stack.length-1];Be.url=this.sliceSerialize(ve)}function Ne(ve){le.call(this,ve);const Be=this.stack[this.stack.length-1];Be.url="mailto:"+this.sliceSerialize(ve)}function Ue(){return{type:"blockquote",children:[]}}function Xe(){return{type:"code",lang:null,meta:null,value:""}}function at(){return{type:"inlineCode",value:""}}function rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function M(){return{type:"emphasis",children:[]}}function Y(){return{type:"heading",depth:0,children:[]}}function xe(){return{type:"break"}}function ue(){return{type:"html",value:""}}function re(){return{type:"image",title:null,url:"",alt:null}}function ce(){return{type:"link",title:null,url:"",children:[]}}function De(ve){return{type:"list",ordered:ve.type==="listOrdered",start:null,spread:ve._spread,children:[]}}function Re(ve){return{type:"listItem",spread:ve._spread,checked:null,children:[]}}function _e(){return{type:"paragraph",children:[]}}function He(){return{type:"strong",children:[]}}function Ee(){return{type:"text",value:""}}function je(){return{type:"thematicBreak"}}}function fl(e){return{line:e.line,column:e.column,offset:e.offset}}function lb(e,n){let i=-1;for(;++i<n.length;){const r=n[i];Array.isArray(r)?lb(e,r):SA(e,r)}}function SA(e,n){let i;for(i in n)if(sb.call(n,i))switch(i){case"canContainEols":{const r=n[i];r&&e[i].push(...r);break}case"transforms":{const r=n[i];r&&e[i].push(...r);break}case"enter":case"exit":{const r=n[i];r&&Object.assign(e[i],r);break}}}function nv(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+pf({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+pf({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+pf({start:n.start,end:n.end})+") is still open")}function kA(e){const n=this;n.parser=i;function i(r){return wA(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function AA(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)}function NA(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
`}]}function CA(e,n){const i=n.value?n.value+`
`:"",r={},s=n.lang?n.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:i}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function EA(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function LA(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function zA(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),s=xc(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let c,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),c=e.footnoteOrder.length):c=o+1,u+=1,e.footnoteCounts.set(r,u);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function TA(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function jA(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function ub(e,n){const i=n.referenceType;let r="]";if(i==="collapsed"?r+="[]":i==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const s=e.all(n),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=r:s.push({type:"text",value:r}),s}function RA(e,n){const i=String(n.identifier).toUpperCase(),r=e.definitionById.get(i);if(!r)return ub(e,n);const s={src:xc(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,o),e.applyData(n,o)}function OA(e,n){const i={src:xc(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const r={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,r),e.applyData(n,r)}function DA(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const r={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,r),e.applyData(n,r)}function MA(e,n){const i=String(n.identifier).toUpperCase(),r=e.definitionById.get(i);if(!r)return ub(e,n);const s={href:xc(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function BA(e,n){const i={href:xc(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const r={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function PA(e,n,i){const r=e.all(n),s=i?IA(i):cb(n),o={},c=[];if(typeof n.checked=="boolean"){const m=r[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const m=r[u];(s||u!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const h=r[r.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
`});const d={type:"element",tagName:"li",properties:o,children:c};return e.patch(n,d),e.applyData(n,d)}function IA(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const i=e.children;let r=-1;for(;!n&&++r<i.length;)n=cb(i[r])}return n}function cb(e){const n=e.spread;return n??e.children.length>1}function FA(e,n){const i={},r=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++s<r.length;){const c=r[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:i,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function UA(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function qA(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function HA(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function YA(e,n){const i=e.all(n),r=i.shift(),s=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},u=u1(n.children[1]),h=Yy(n.children[n.children.length-1]);u&&h&&(c.position={start:u,end:h}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,o),e.applyData(n,o)}function GA(e,n,i){const r=i?i.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,u=c?c.length:n.children.length;let h=-1;const d=[];for(;++h<u;){const y=n.children[h],w={},p=c?c[h]:void 0;p&&(w.align=p);let A={type:"element",tagName:o,properties:w,children:[]};y&&(A.children=e.all(y),e.patch(y,A),A=e.applyData(y,A)),d.push(A)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,m),e.applyData(n,m)}function VA(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const iv=9,av=32;function WA(e){const n=String(e),i=/\r?\n|\r/g;let r=i.exec(n),s=0;const o=[];for(;r;)o.push(rv(n.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=i.exec(n);return o.push(rv(n.slice(s),s>0,!1)),o.join("")}function rv(e,n,i){let r=0,s=e.length;if(n){let o=e.codePointAt(r);for(;o===iv||o===av;)r++,o=e.codePointAt(r)}if(i){let o=e.codePointAt(s-1);for(;o===iv||o===av;)s--,o=e.codePointAt(s-1)}return s>r?e.slice(r,s):""}function XA(e,n){const i={type:"text",value:WA(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function ZA(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const KA={blockquote:AA,break:NA,code:CA,delete:EA,emphasis:LA,footnoteReference:zA,heading:TA,html:jA,imageReference:RA,image:OA,inlineCode:DA,linkReference:MA,link:BA,listItem:PA,list:FA,paragraph:UA,root:qA,strong:HA,table:YA,tableCell:VA,tableRow:GA,text:XA,thematicBreak:ZA,toml:Rh,yaml:Rh,definition:Rh,footnoteDefinition:Rh};function Rh(){}const fb=-1,ld=0,gf=1,td=2,g1=3,v1=4,y1=5,b1=6,hb=7,db=8,ov=typeof self=="object"?self:globalThis,JA=(e,n)=>{const i=(s,o)=>(e.set(o,s),s),r=s=>{if(e.has(s))return e.get(s);const[o,c]=n[s];switch(o){case ld:case fb:return i(c,s);case gf:{const u=i([],s);for(const h of c)u.push(r(h));return u}case td:{const u=i({},s);for(const[h,d]of c)u[r(h)]=r(d);return u}case g1:return i(new Date(c),s);case v1:{const{source:u,flags:h}=c;return i(new RegExp(u,h),s)}case y1:{const u=i(new Map,s);for(const[h,d]of c)u.set(r(h),r(d));return u}case b1:{const u=i(new Set,s);for(const h of c)u.add(r(h));return u}case hb:{const{name:u,message:h}=c;return i(new ov[u](h),s)}case db:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return i(new DataView(u),c)}}return i(new ov[o](c),s)};return r},sv=e=>JA(new Map,e)(0),ic="",{toString:QA}={},{keys:$A}=Object,ff=e=>{const n=typeof e;if(n!=="object"||!e)return[ld,n];const i=QA.call(e).slice(8,-1);switch(i){case"Array":return[gf,ic];case"Object":return[td,ic];case"Date":return[g1,ic];case"RegExp":return[v1,ic];case"Map":return[y1,ic];case"Set":return[b1,ic];case"DataView":return[gf,i]}return i.includes("Array")?[gf,i]:i.includes("Error")?[hb,i]:[td,i]},Oh=([e,n])=>e===ld&&(n==="function"||n==="symbol"),e7=(e,n,i,r)=>{const s=(c,u)=>{const h=r.push(c)-1;return i.set(u,h),h},o=c=>{if(i.has(c))return i.get(c);let[u,h]=ff(c);switch(u){case ld:{let m=c;switch(h){case"bigint":u=db,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return s([fb],c)}return s([u,m],c)}case gf:{if(h){let w=c;return h==="DataView"?w=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(w=new Uint8Array(c)),s([h,[...w]],c)}const m=[],y=s([u,m],c);for(const w of c)m.push(o(w));return y}case td:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(n&&"toJSON"in c)return o(c.toJSON());const m=[],y=s([u,m],c);for(const w of $A(c))(e||!Oh(ff(c[w])))&&m.push([o(w),o(c[w])]);return y}case g1:return s([u,c.toISOString()],c);case v1:{const{source:m,flags:y}=c;return s([u,{source:m,flags:y}],c)}case y1:{const m=[],y=s([u,m],c);for(const[w,p]of c)(e||!(Oh(ff(w))||Oh(ff(p))))&&m.push([o(w),o(p)]);return y}case b1:{const m=[],y=s([u,m],c);for(const w of c)(e||!Oh(ff(w)))&&m.push(o(w));return y}}const{message:d}=c;return s([u,{name:h,message:d}],c)};return o},lv=(e,{json:n,lossy:i}={})=>{const r=[];return e7(!(n||i),!!n,new Map,r)(e),r},nd=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?sv(lv(e,n)):structuredClone(e):(e,n)=>sv(lv(e,n));function t7(e,n){const i=[{type:"text",value:"↩"}];return n>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),i}function n7(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function i7(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||t7,r=e.options.footnoteBackLabel||n7,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const m=e.all(d),y=String(d.identifier).toUpperCase(),w=xc(y.toLowerCase());let p=0;const A=[],S=e.footnoteCounts.get(y);for(;S!==void 0&&++p<=S;){A.length>0&&A.push({type:"text",value:" "});let j=typeof i=="string"?i:i(h,p);typeof j=="string"&&(j={type:"text",value:j}),A.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+w+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(h,p),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const E=m[m.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const j=E.children[E.children.length-1];j&&j.type==="text"?j.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...A)}else m.push(...A);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+w},children:e.wrap(m,!0)};e.patch(d,_),u.push(_)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...nd(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
`}]}}const pb=(function(e){if(e==null)return s7;if(typeof e=="function")return ud(e);if(typeof e=="object")return Array.isArray(e)?a7(e):r7(e);if(typeof e=="string")return o7(e);throw new Error("Expected function, string, or object as test")});function a7(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=pb(e[i]);return ud(r);function r(...s){let o=-1;for(;++o<n.length;)if(n[o].apply(this,s))return!0;return!1}}function r7(e){const n=e;return ud(i);function i(r){const s=r;let o;for(o in e)if(s[o]!==n[o])return!1;return!0}}function o7(e){return ud(n);function n(i){return i&&i.type===e}}function ud(e){return n;function n(i,r,s){return!!(l7(i)&&e.call(this,i,typeof r=="number"?r:void 0,s||void 0))}}function s7(){return!0}function l7(e){return e!==null&&typeof e=="object"&&"type"in e}const mb=[],u7=!0,uv=!1,c7="skip";function f7(e,n,i,r){let s;typeof n=="function"&&typeof i!="function"?(r=i,i=n):s=n;const o=pb(s),c=r?-1:1;u(e,void 0,[])();function u(h,d,m){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const p=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(h.type+(p?"<"+p+">":""))+")"})}return w;function w(){let p=mb,A,S,E;if((!n||o(h,d,m[m.length-1]||void 0))&&(p=h7(i(h,m)),p[0]===uv))return p;if("children"in h&&h.children){const _=h;if(_.children&&p[0]!==c7)for(S=(r?_.children.length:-1)+c,E=m.concat(_);S>-1&&S<_.children.length;){const j=_.children[S];if(A=u(j,S,E)(),A[0]===uv)return A;S=typeof A[1]=="number"?A[1]:S+c}}return p}}}function h7(e){return Array.isArray(e)?e:typeof e=="number"?[u7,e]:e==null?mb:[e]}function gb(e,n,i,r){let s,o,c;typeof n=="function"&&typeof i!="function"?(o=void 0,c=n,s=i):(o=n,c=i,s=r),f7(e,o,u,s);function u(h,d){const m=d[d.length-1],y=m?m.children.indexOf(h):void 0;return c(h,y,m)}}const Ym={}.hasOwnProperty,d7={};function p7(e,n){const i=n||d7,r=new Map,s=new Map,o=new Map,c={...KA,...i.handlers},u={all:d,applyData:g7,definitionById:r,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:h,options:i,patch:m7,wrap:y7};return gb(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?r:s,w=String(m.identifier).toUpperCase();y.has(w)||y.set(w,m)}}),u;function h(m,y){const w=m.type,p=u.handlers[w];if(Ym.call(u.handlers,w)&&p)return p(u,m,y);if(u.options.passThrough&&u.options.passThrough.includes(w)){if("children"in m){const{children:S,...E}=m,_=nd(E);return _.children=u.all(m),_}return nd(m)}return(u.options.unknownHandler||v7)(u,m,y)}function d(m){const y=[];if("children"in m){const w=m.children;let p=-1;for(;++p<w.length;){const A=u.one(w[p],m);if(A){if(p&&w[p-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=cv(A.value)),!Array.isArray(A)&&A.type==="element")){const S=A.children[0];S&&S.type==="text"&&(S.value=cv(S.value))}Array.isArray(A)?y.push(...A):y.push(A)}}}return y}}function m7(e,n){e.position&&(n.position=Q_(e))}function g7(e,n){let i=n;if(e&&e.data){const r=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(i.type==="element")i.tagName=r;else{const c="children"in i?i.children:[i];i={type:"element",tagName:r,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,nd(o)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function v7(e,n){const i=n.data||{},r="value"in n&&!(Ym.call(i,"hProperties")||Ym.call(i,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function y7(e,n){const i=[];let r=-1;for(n&&i.push({type:"text",value:`
`});++r<e.length;)r&&i.push({type:"text",value:`
`}),i.push(e[r]);return n&&e.length>0&&i.push({type:"text",value:`
`}),i}function cv(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function fv(e,n){const i=p7(e,n),r=i.one(e,void 0),s=i7(i),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
`},s),o}function b7(e,n){return e&&"run"in e?async function(i,r){const s=fv(i,{file:r,...n});await e.run(s,r)}:function(i,r){return fv(i,{file:r,...e||n})}}function hv(e){if(e)throw e}var um,dv;function x7(){if(dv)return um;dv=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},o=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!y)return!1;var w;for(w in d);return typeof w>"u"||e.call(d,w)},c=function(d,m){i&&m.name==="__proto__"?i(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},u=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(r)return r(d,m).value}else return;return d[m]};return um=function h(){var d,m,y,w,p,A,S=arguments[0],E=1,_=arguments.length,j=!1;for(typeof S=="boolean"&&(j=S,S=arguments[1]||{},E=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});E<_;++E)if(d=arguments[E],d!=null)for(m in d)y=u(S,m),w=u(d,m),S!==w&&(j&&w&&(o(w)||(p=s(w)))?(p?(p=!1,A=y&&s(y)?y:[]):A=y&&o(y)?y:{},c(S,{name:m,newValue:h(j,A,w)})):typeof w<"u"&&c(S,{name:m,newValue:w}));return S},um}var w7=x7();const cm=mc(w7);function Gm(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _7(){const e=[],n={run:i,use:r};return n;function i(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(h,...d){const m=e[++o];let y=-1;if(h){c(h);return}for(;++y<s.length;)(d[y]===null||d[y]===void 0)&&(d[y]=s[y]);s=d,m?S7(m,u)(...d):c(null,...d)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function S7(e,n){let i;return r;function r(...c){const u=e.length>c.length;let h;u&&c.push(s);try{h=e.apply(this,c)}catch(d){const m=d;if(u&&i)throw m;return s(m)}u||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(c,...u){i||(i=!0,n(c,...u))}function o(c){s(null,c)}}const Uo={basename:k7,dirname:A7,extname:N7,join:C7,sep:"/"};function k7(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Cf(e);let i=0,r=-1,s=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else r<0&&(o=!0,r=s+1);return r<0?"":e.slice(i,r)}if(n===e)return"";let c=-1,u=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else c<0&&(o=!0,c=s+1),u>-1&&(e.codePointAt(s)===n.codePointAt(u--)?u<0&&(r=s):(u=-1,r=c));return i===r?r=c:r<0&&(r=e.length),e.slice(i,r)}function A7(e){if(Cf(e),e.length===0)return".";let n=-1,i=e.length,r;for(;--i;)if(e.codePointAt(i)===47){if(r){n=i;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function N7(e){Cf(e);let n=e.length,i=-1,r=0,s=-1,o=0,c;for(;n--;){const u=e.codePointAt(n);if(u===47){if(c){r=n+1;break}continue}i<0&&(c=!0,i=n+1),u===46?s<0?s=n:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===r+1?"":e.slice(s,i)}function C7(...e){let n=-1,i;for(;++n<e.length;)Cf(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":E7(i)}function E7(e){Cf(e);const n=e.codePointAt(0)===47;let i=L7(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function L7(e,n){let i="",r=0,s=-1,o=0,c=-1,u,h;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(i.length<2||r!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",r=0):(i=i.slice(0,h),r=i.length-1-i.lastIndexOf("/")),s=c,o=0;continue}}else if(i.length>0){i="",r=0,s=c,o=0;continue}}n&&(i=i.length>0?i+"/..":"..",r=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),r=c-s-1;s=c,o=0}else u===46&&o>-1?o++:o=-1}return i}function Cf(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const z7={cwd:T7};function T7(){return"/"}function Vm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function j7(e){if(typeof e=="string")e=new URL(e);else if(!Vm(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return R7(e)}function R7(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let i=-1;for(;++i<n.length;)if(n.codePointAt(i)===37&&n.codePointAt(i+1)===50){const r=n.codePointAt(i+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const fm=["history","path","basename","stem","extname","dirname"];class vb{constructor(n){let i;n?Vm(n)?i={path:n}:typeof n=="string"||O7(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":z7.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<fm.length;){const o=fm[r];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let s;for(s in i)fm.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?Uo.basename(this.path):void 0}set basename(n){dm(n,"basename"),hm(n,"basename"),this.path=Uo.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Uo.dirname(this.path):void 0}set dirname(n){pv(this.basename,"dirname"),this.path=Uo.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Uo.extname(this.path):void 0}set extname(n){if(hm(n,"extname"),pv(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Uo.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Vm(n)&&(n=j7(n)),dm(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Uo.basename(this.path,this.extname):void 0}set stem(n){dm(n,"stem"),hm(n,"stem"),this.path=Uo.join(this.dirname||"",n+(this.extname||""))}fail(n,i,r){const s=this.message(n,i,r);throw s.fatal=!0,s}info(n,i,r){const s=this.message(n,i,r);return s.fatal=void 0,s}message(n,i,r){const s=new ha(n,i,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function hm(e,n){if(e&&e.includes(Uo.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Uo.sep+"`")}function dm(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function pv(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function O7(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const D7=(function(e){const r=this.constructor.prototype,s=r[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),M7={}.hasOwnProperty;class x1 extends D7{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=_7()}copy(){const n=new x1;let i=-1;for(;++i<this.attachers.length;){const r=this.attachers[i];n.use(...r)}return n.data(cm(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(gm("data",this.frozen),this.namespace[n]=i,this):M7.call(this.namespace,n)&&this.namespace[n]||void 0:n?(gm("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=i.call(n,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=Dh(n),r=this.parser||this.Parser;return pm("parse",r),r(String(i),i)}process(n,i){const r=this;return this.freeze(),pm("process",this.parser||this.Parser),mm("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(o,c){const u=Dh(n),h=r.parse(u);r.run(h,u,function(m,y,w){if(m||!y||!w)return d(m);const p=y,A=r.stringify(p,w);I7(A)?w.value=A:w.result=A,d(m,w)});function d(m,y){m||!y?c(m):o?o(y):i(void 0,y)}}}processSync(n){let i=!1,r;return this.freeze(),pm("processSync",this.parser||this.Parser),mm("processSync",this.compiler||this.Compiler),this.process(n,s),gv("processSync","process",i),r;function s(o,c){i=!0,hv(o),r=c}}run(n,i,r){mv(n),this.freeze();const s=this.transformers;return!r&&typeof i=="function"&&(r=i,i=void 0),r?o(void 0,r):new Promise(o);function o(c,u){const h=Dh(i);s.run(n,h,d);function d(m,y,w){const p=y||n;m?u(m):c?c(p):r(void 0,p,w)}}}runSync(n,i){let r=!1,s;return this.run(n,i,o),gv("runSync","run",r),s;function o(c,u){hv(c),s=u,r=!0}}stringify(n,i){this.freeze();const r=Dh(i),s=this.compiler||this.Compiler;return mm("stringify",s),mv(n),s(n,r)}use(n,...i){const r=this.attachers,s=this.namespace;if(gm("use",this.frozen),n!=null)if(typeof n=="function")h(n,i);else if(typeof n=="object")Array.isArray(n)?u(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...y]=d;h(m,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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");u(d.plugins),d.settings&&(s.settings=cm(!0,s.settings,d.settings))}function u(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const y=d[m];o(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,m){let y=-1,w=-1;for(;++y<r.length;)if(r[y][0]===d){w=y;break}if(w===-1)r.push([d,...m]);else if(m.length>0){let[p,...A]=m;const S=r[w][1];Gm(S)&&Gm(p)&&(p=cm(!0,S,p)),r[w]=[d,p,...A]}}}}const B7=new x1().freeze();function pm(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mm(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gm(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mv(e){if(!Gm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gv(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Dh(e){return P7(e)?e:new vb(e)}function P7(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function I7(e){return typeof e=="string"||F7(e)}function F7(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const U7="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vv=[],yv={allowDangerousHtml:!0},q7=/^(https?|ircs?|mailto|xmpp)$/i,H7=[{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 Y7(e){const n=G7(e),i=V7(e);return W7(n.runSync(n.parse(i),i),e)}function G7(e){const n=e.rehypePlugins||vv,i=e.remarkPlugins||vv,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yv}:yv;return B7().use(kA).use(i).use(b7,r).use(n)}function V7(e){const n=e.children||"",i=new vb;return typeof n=="string"&&(i.value=n),i}function W7(e,n){const i=n.allowedElements,r=n.allowElement,s=n.components,o=n.disallowedElements,c=n.skipHtml,u=n.unwrapDisallowed,h=n.urlTransform||X7;for(const m of H7)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+U7+m.id,void 0);return gb(e,d),iS(e,{Fragment:B.Fragment,components:s,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function d(m,y,w){if(m.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let p;for(p in om)if(Object.hasOwn(om,p)&&Object.hasOwn(m.properties,p)){const A=m.properties[p],S=om[p];(S===null||S.includes(m.tagName))&&(m.properties[p]=h(String(A||""),p,m))}}if(m.type==="element"){let p=i?!i.includes(m.tagName):o?o.includes(m.tagName):!1;if(!p&&r&&typeof y=="number"&&(p=!r(m,y,w)),p&&w&&typeof y=="number")return u&&m.children?w.children.splice(y,1,...m.children):w.children.splice(y,1),y}}}function X7(e){const n=e.indexOf(":"),i=e.indexOf("?"),r=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||i!==-1&&n>i||r!==-1&&n>r||q7.test(e.slice(0,n))?e:""}const Z7=()=>{const{slug:e}=cw(),n=o1.find(i=>i.slug===e);return n?B.jsx("main",{className:"container mx-auto p-4 max-w-3xl",children:B.jsxs("article",{className:"my-8 sm:my-12",children:[B.jsxs("header",{className:"mb-8",children:[B.jsx("div",{className:"flex items-center gap-2 mb-4",children:n.tags.map(i=>B.jsx("span",{className:"bg-gray-200 text-gray-700 text-xs font-medium px-2.5 py-0.5 rounded-full",children:i},i))}),B.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-3",children:n.title}),B.jsxs("div",{className:"flex items-center text-sm text-gray-500",children:[B.jsx("span",{children:n.author}),B.jsx("span",{className:"mx-2",children:"•"}),B.jsx("span",{children:n.date}),B.jsx("span",{className:"mx-2",children:"•"}),B.jsxs("span",{children:[n.readTime," min read"]})]})]}),B.jsx("img",{src:n.imageUrl,alt:n.title,className:"w-full h-auto rounded-lg mb-8"}),B.jsx("div",{className:"prose lg:prose-xl max-w-none text-gray-700",children:n.content.map((i,r)=>i.type==="h2"?B.jsx("h2",{children:i.text},r):B.jsx(Y7,{children:i.text},r))}),B.jsx("div",{className:"mt-12 border-t pt-8",children:B.jsx(ka,{to:"/blog",className:"text-blue-500 hover:underline",children:"← Back to All Articles"})})]})}):B.jsxs("main",{className:"container mx-auto p-4 max-w-screen-lg text-center",children:[B.jsx("h1",{className:"text-4xl font-bold my-8",children:"Post not found"}),B.jsx(ka,{to:"/blog",className:"text-blue-500 hover:underline",children:"← Back to Blog"})]})},K7=()=>B.jsx("main",{className:"container mx-auto p-4 max-w-3xl",children:B.jsxs("article",{className:"my-8 sm:my-12 prose lg:prose-xl max-w-none",children:[B.jsx("h1",{children:"Privacy Policy for Resizeo"}),B.jsxs("p",{children:[B.jsx("strong",{children:"Last Updated:"})," November 11, 2025"]}),B.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."}),B.jsx("h2",{children:"1. The Core Principle: Your Data is Your Data"}),B.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."}),B.jsx("h2",{children:"2. No Data Collection or Storage"}),B.jsx("p",{children:"We want to be unequivocally clear:"}),B.jsxs("ul",{children:[B.jsxs("li",{children:[B.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."]}),B.jsxs("li",{children:[B.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."]}),B.jsxs("li",{children:[B.jsx("strong",{children:"No Server-Side Processing."})," All image processing is performed by the JavaScript running in your browser."]})]}),B.jsx("h2",{children:"3. Cookies and Local Storage"}),B.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."}),B.jsx("h2",{children:"4. Third-Party Links"}),B.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.'}),B.jsx("h2",{children:"5. Changes to This Privacy Policy"}),B.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."}),B.jsx("h2",{children:"6. Contact Us"}),B.jsxs("p",{children:["If you have any questions about this Privacy Policy, you can contact us at: ",B.jsx("a",{href:"mailto:support@resizeo.com",children:"support@resizeo.com"}),"."]})]})}),J7=()=>B.jsx("main",{className:"container mx-auto p-4 max-w-3xl",children:B.jsxs("article",{className:"my-8 sm:my-12 prose lg:prose-xl max-w-none",children:[B.jsx("h1",{children:"Terms of Service for Resizeo"}),B.jsxs("p",{children:[B.jsx("strong",{children:"Last Updated:"})," November 11, 2025"]}),B.jsx("p",{children:'Please read these Terms of Service ("Terms", "Terms of Service") carefully before using the Resizeo website (the "Service") operated by us.'}),B.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."}),B.jsx("h2",{children:"1. Description of Service"}),B.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."}),B.jsx("h2",{children:"2. User Responsibilities"}),B.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."}),B.jsx("h2",{children:"3. Disclaimer of Warranty"}),B.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.'}),B.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."}),B.jsx("h2",{children:"4. Limitation of Liability"}),B.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."}),B.jsx("h2",{children:"5. Changes to Terms"}),B.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."}),B.jsx("h2",{children:"6. Contact Us"}),B.jsxs("p",{children:["If you have any questions about these Terms, please contact us at: ",B.jsx("a",{href:"mailto:support@resizeo.com",children:"support@resizeo.com"}),"."]})]})}),Q7=()=>B.jsxs("div",{children:[B.jsx(o3,{}),B.jsxs(Aw,{children:[B.jsx(Zl,{path:"/",element:B.jsx(k_,{})}),B.jsx(Zl,{path:"/presets",element:B.jsx(A_,{})}),B.jsx(Zl,{path:"/blog",element:B.jsx(E_,{})}),B.jsx(Zl,{path:"/blog/:slug",element:B.jsx(Z7,{})}),B.jsx(Zl,{path:"/privacy-policy",element:B.jsx(K7,{})}),B.jsx(Zl,{path:"/terms-of-service",element:B.jsx(J7,{})})]}),B.jsx(s3,{})]});console.log("main.tsx is being executed");Ox.createRoot(document.getElementById("root")).render(B.jsx(Te.StrictMode,{children:B.jsx(Zw,{children:B.jsx(Q7,{})})}));export{An as _,dl as c,mc as g};
