diff --git a/assets/index-BHCGsR3M.js b/assets/index-BHCGsR3M.js new file mode 100644 index 00000000..c612e5c4 --- /dev/null +++ b/assets/index-BHCGsR3M.js @@ -0,0 +1,42 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function BT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $_={exports:{}},ul={},j_={exports:{}},Oe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _s=Symbol.for("react.element"),PT=Symbol.for("react.portal"),CT=Symbol.for("react.fragment"),DT=Symbol.for("react.strict_mode"),kT=Symbol.for("react.profiler"),bT=Symbol.for("react.provider"),UT=Symbol.for("react.context"),FT=Symbol.for("react.forward_ref"),MT=Symbol.for("react.suspense"),$T=Symbol.for("react.memo"),jT=Symbol.for("react.lazy"),pf=Symbol.iterator;function HT(e){return e===null||typeof e!="object"?null:(e=pf&&e[pf]||e["@@iterator"],typeof e=="function"?e:null)}var H_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G_=Object.assign,z_={};function Yi(e,t,n){this.props=e,this.context=t,this.refs=z_,this.updater=n||H_}Yi.prototype.isReactComponent={};Yi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K_(){}K_.prototype=Yi.prototype;function t0(e,t,n){this.props=e,this.context=t,this.refs=z_,this.updater=n||H_}var n0=t0.prototype=new K_;n0.constructor=t0;G_(n0,Yi.prototype);n0.isPureReactComponent=!0;var Ef=Array.isArray,W_=Object.prototype.hasOwnProperty,r0={current:null},Z_={key:!0,ref:!0,__self:!0,__source:!0};function V_(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)W_.call(t,r)&&!Z_.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,X=N[se];if(0>>1;sei(Te,D))_ei(Ne,Te)?(N[se]=Ne,N[_e]=D,se=_e):(N[se]=Te,N[de]=D,se=de);else if(_ei(Ne,D))N[se]=Ne,N[_e]=D,se=_e;else break e}}return q}function i(N,q){var D=N.sortIndex-q.sortIndex;return D!==0?D:N.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],f=1,_=null,E=3,O=!1,w=!1,h=!1,m=typeof setTimeout=="function"?setTimeout:null,u=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var q=n(c);q!==null;){if(q.callback===null)r(c);else if(q.startTime<=N)r(c),q.sortIndex=q.expirationTime,t(a,q);else break;q=n(c)}}function A(N){if(h=!1,p(N),!w)if(n(a)!==null)w=!0,F(g);else{var q=n(c);q!==null&&ee(A,q.startTime-N)}}function g(N,q){w=!1,h&&(h=!1,u(T),T=-1),O=!0;var D=E;try{for(p(q),_=n(a);_!==null&&(!(_.expirationTime>q)||N&&!I());){var se=_.callback;if(typeof se=="function"){_.callback=null,E=_.priorityLevel;var X=se(_.expirationTime<=q);q=e.unstable_now(),typeof X=="function"?_.callback=X:_===n(a)&&r(a),p(q)}else r(a);_=n(a)}if(_!==null)var Y=!0;else{var de=n(c);de!==null&&ee(A,de.startTime-q),Y=!1}return Y}finally{_=null,E=D,O=!1}}var L=!1,v=null,T=-1,S=5,y=-1;function I(){return!(e.unstable_now()-yN||125se?(N.sortIndex=D,t(c,N),n(a)===null&&N===n(c)&&(h?(u(T),T=-1):h=!0,ee(A,D-se))):(N.sortIndex=X,t(a,N),w||O||(w=!0,F(g))),N},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(N){var q=E;return function(){var D=E;E=q;try{return N.apply(this,arguments)}finally{E=D}}}})(J_);Q_.exports=J_;var eh=Q_.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var th=te,en=eh;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=Object.prototype.hasOwnProperty,nh=/^[: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]*$/,Tf={},hf={};function rh(e){return bc.call(hf,e)?!0:bc.call(Tf,e)?!1:nh.test(e)?hf[e]=!0:(Tf[e]=!0,!1)}function ih(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oh(e,t,n,r){if(t===null||typeof t>"u"||ih(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function St(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Et[e]=new St(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Et[t]=new St(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Et[e]=new St(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Et[e]=new St(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Et[e]=new St(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Et[e]=new St(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Et[e]=new St(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Et[e]=new St(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Et[e]=new St(e,5,!1,e.toLowerCase(),null,!1,!1)});var o0=/[\-:]([a-z])/g;function s0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(o0,s0);Et[t]=new St(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(o0,s0);Et[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(o0,s0);Et[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Et[e]=new St(e,1,!1,e.toLowerCase(),null,!1,!1)});Et.xlinkHref=new St("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Et[e]=new St(e,1,!1,e.toLowerCase(),null,!0,!0)});function a0(e,t,n,r){var i=Et.hasOwnProperty(t)?Et[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` +`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Kl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wo(e):""}function sh(e){switch(e.tag){case 5:return wo(e.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 2:case 15:return e=Wl(e.type,!1),e;case 11:return e=Wl(e.type.render,!1),e;case 1:return e=Wl(e.type,!0),e;default:return""}}function $c(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hi:return"Fragment";case Ti:return"Portal";case Uc:return"Profiler";case l0:return"StrictMode";case Fc:return"Suspense";case Mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n1:return(e.displayName||"Context")+".Consumer";case t1:return(e._context.displayName||"Context")+".Provider";case c0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u0:return t=e.displayName||null,t!==null?t:$c(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return $c(e(t))}catch{}}return null}function ah(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $c(t);case 8:return t===l0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lh(e){var t=i1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rs(e){e._valueTracker||(e._valueTracker=lh(e))}function o1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ia(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jc(e,t){var n=t.checked;return Ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Of(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function s1(e,t){t=t.checked,t!=null&&a0(e,"checked",t,!1)}function Hc(e,t){s1(e,t);var n=Dr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gc(e,t.type,Dr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Af(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Gc(e,t,n){(t!=="number"||Ia(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xo=Array.isArray;function Bi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Bs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ho(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var No={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ch=["Webkit","ms","Moz","O"];Object.keys(No).forEach(function(e){ch.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),No[t]=No[e]})});function u1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||No.hasOwnProperty(e)&&No[e]?(""+t).trim():t+"px"}function f1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=u1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uh=Ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wc(e,t){if(t){if(uh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Zc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vc=null;function f0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yc=null,Pi=null,Ci=null;function wf(e){if(e=ms(e)){if(typeof Yc!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=El(t),Yc(e.stateNode,e.type,t))}}function d1(e){Pi?Ci?Ci.push(e):Ci=[e]:Pi=e}function _1(){if(Pi){var e=Pi,t=Ci;if(Ci=Pi=null,wf(e),t)for(e=0;e>>=0,e===0?32:31-(Ah(e)/gh|0)|0}var Ps=64,Cs=4194304;function yo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=yo(l):(o&=s,o!==0&&(r=yo(o)))}else s=n&~i,s!==0?r=yo(s):o!==0&&(r=yo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ps(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function yh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ro),Cf=" ",Df=!1;function C1(e,t){switch(e){case"keyup":return eL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Li=!1;function nL(e,t){switch(e){case"compositionend":return D1(t);case"keypress":return t.which!==32?null:(Df=!0,Cf);case"textInput":return e=t.data,e===Cf&&Df?null:e;default:return null}}function rL(e,t){if(Li)return e==="compositionend"||!L0&&C1(e,t)?(e=B1(),ca=m0=wr=null,Li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ff(n)}}function F1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?F1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function M1(){for(var e=window,t=Ia();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ia(e.document)}return t}function O0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dL(e){var t=M1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&F1(n.ownerDocument.documentElement,n)){if(r!==null&&O0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Mf(n,o);var s=Mf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Oi=null,tu=null,Po=null,nu=!1;function $f(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nu||Oi==null||Oi!==Ia(r)||(r=Oi,"selectionStart"in r&&O0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Po&&Vo(Po,r)||(Po=r,r=ba(tu,"onSelect"),0vi||(e.current=lu[vi],lu[vi]=null,vi--)}function ke(e,t){vi++,lu[vi]=e.current,e.current=t}var kr={},At=Fr(kr),Ut=Fr(!1),ei=kr;function $i(e,t){var n=e.type.contextTypes;if(!n)return kr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ft(e){return e=e.childContextTypes,e!=null}function Fa(){$e(Ut),$e(At)}function Zf(e,t,n){if(At.current!==kr)throw Error(Z(168));ke(At,t),ke(Ut,n)}function V1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,ah(e)||"Unknown",i));return Ze({},n,r)}function Ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kr,ei=At.current,ke(At,e),ke(Ut,Ut.current),!0}function Vf(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=V1(e,t,ei),r.__reactInternalMemoizedMergedChildContext=e,$e(Ut),$e(At),ke(At,e)):$e(Ut),ke(Ut,n)}var Jn=null,ml=!1,sc=!1;function Y1(e){Jn===null?Jn=[e]:Jn.push(e)}function wL(e){ml=!0,Y1(e)}function Mr(){if(!sc&&Jn!==null){sc=!0;var e=0,t=Re;try{var n=Jn;for(Re=1;e>=s,i-=s,er=1<<32-xn(t)+i|n<T?(S=v,v=null):S=v.sibling;var y=E(u,v,p[T],A);if(y===null){v===null&&(v=S);break}e&&v&&y.alternate===null&&t(u,v),d=o(y,d,T),L===null?g=y:L.sibling=y,L=y,v=S}if(T===p.length)return n(u,v),He&&zr(u,T),g;if(v===null){for(;TT?(S=v,v=null):S=v.sibling;var I=E(u,v,y.value,A);if(I===null){v===null&&(v=S);break}e&&v&&I.alternate===null&&t(u,v),d=o(I,d,T),L===null?g=I:L.sibling=I,L=I,v=S}if(y.done)return n(u,v),He&&zr(u,T),g;if(v===null){for(;!y.done;T++,y=p.next())y=_(u,y.value,A),y!==null&&(d=o(y,d,T),L===null?g=y:L.sibling=y,L=y);return He&&zr(u,T),g}for(v=r(u,v);!y.done;T++,y=p.next())y=O(v,u,T,y.value,A),y!==null&&(e&&y.alternate!==null&&v.delete(y.key===null?T:y.key),d=o(y,d,T),L===null?g=y:L.sibling=y,L=y);return e&&v.forEach(function(C){return t(u,C)}),He&&zr(u,T),g}function m(u,d,p,A){if(typeof p=="object"&&p!==null&&p.type===hi&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Is:e:{for(var g=p.key,L=d;L!==null;){if(L.key===g){if(g=p.type,g===hi){if(L.tag===7){n(u,L.sibling),d=i(L,p.props.children),d.return=u,u=d;break e}}else if(L.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===Lr&&Xf(g)===L.type){n(u,L.sibling),d=i(L,p.props),d.ref=_o(u,L,p),d.return=u,u=d;break e}n(u,L);break}else t(u,L);L=L.sibling}p.type===hi?(d=Jr(p.props.children,u.mode,A,p.key),d.return=u,u=d):(A=Ta(p.type,p.key,p.props,null,u.mode,A),A.ref=_o(u,d,p),A.return=u,u=A)}return s(u);case Ti:e:{for(L=p.key;d!==null;){if(d.key===L)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(u,d.sibling),d=i(d,p.children||[]),d.return=u,u=d;break e}else{n(u,d);break}else t(u,d);d=d.sibling}d=pc(p,u.mode,A),d.return=u,u=d}return s(u);case Lr:return L=p._init,m(u,d,L(p._payload),A)}if(xo(p))return w(u,d,p,A);if(ao(p))return h(u,d,p,A);$s(u,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(u,d.sibling),d=i(d,p),d.return=u,u=d):(n(u,d),d=_c(p,u.mode,A),d.return=u,u=d),s(u)):n(u,d)}return m}var Hi=J1(!0),ep=J1(!1),Ha=Fr(null),Ga=null,yi=null,w0=null;function x0(){w0=yi=Ga=null}function y0(e){var t=Ha.current;$e(Ha),e._currentValue=t}function fu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ki(e,t){Ga=e,w0=yi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function pn(e){var t=e._currentValue;if(w0!==e)if(e={context:e,memoizedValue:t,next:null},yi===null){if(Ga===null)throw Error(Z(308));yi=e,Ga.dependencies={lanes:0,firstContext:e}}else yi=yi.next=e;return t}var qr=null;function S0(e){qr===null?qr=[e]:qr.push(e)}function tp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,S0(t)):(n.next=i.next,i.next=n),t.interleaved=n,ar(e,r)}function ar(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Or=!1;function N0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function np(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ye&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ar(e,n)}return i=r.interleaved,i===null?(t.next=t,S0(r)):(t.next=i.next,i.next=t),r.interleaved=t,ar(e,n)}function fa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_0(e,n)}}function Qf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function za(e,t,n,r){var i=e.updateQueue;Or=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=a))}if(o!==null){var _=i.baseState;s=0,f=c=a=null,l=o;do{var E=l.lane,O=l.eventTime;if((r&E)===E){f!==null&&(f=f.next={eventTime:O,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,h=l;switch(E=t,O=n,h.tag){case 1:if(w=h.payload,typeof w=="function"){_=w.call(O,_,E);break e}_=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=h.payload,E=typeof w=="function"?w.call(O,_,E):w,E==null)break e;_=Ze({},_,E);break e;case 2:Or=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,E=i.effects,E===null?i.effects=[l]:E.push(l))}else O={eventTime:O,lane:E,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=O,a=_):f=f.next=O,s|=E;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;E=l,l=E.next,E.next=null,i.lastBaseUpdate=E,i.shared.pending=null}}while(!0);if(f===null&&(a=_),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ri|=s,e.lanes=s,e.memoizedState=_}}function Jf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lc.transition;lc.transition={};try{e(!1),t()}finally{Re=n,lc.transition=r}}function Lp(){return En().memoizedState}function NL(e,t,n){var r=Pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Op(e))Ap(t,n);else if(n=tp(e,t,n,r),n!==null){var i=xt();yn(n,e,r,i),gp(n,t,r)}}function IL(e,t,n){var r=Pr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Op(e))Ap(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Sn(l,s)){var a=t.interleaved;a===null?(i.next=i,S0(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=tp(e,t,i,r),n!==null&&(i=xt(),yn(n,e,r,i),gp(n,t,r))}}function Op(e){var t=e.alternate;return e===We||t!==null&&t===We}function Ap(e,t){Co=Wa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_0(e,n)}}var Za={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},RL={readContext:pn,useCallback:function(e,t){return Mn().memoizedState=[e,t===void 0?null:t],e},useContext:pn,useEffect:td,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_a(4194308,4,pp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _a(4194308,4,e,t)},useInsertionEffect:function(e,t){return _a(4,2,e,t)},useMemo:function(e,t){var n=Mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=NL.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=Mn();return e={current:e},t.memoizedState=e},useState:ed,useDebugValue:b0,useDeferredValue:function(e){return Mn().memoizedState=e},useTransition:function(){var e=ed(!1),t=e[0];return e=SL.bind(null,e[1]),Mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=We,i=Mn();if(He){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),ut===null)throw Error(Z(349));ni&30||sp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,td(lp.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,ap.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mn(),t=ut.identifierPrefix;if(He){var n=tr,r=er;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=es++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$n]=t,e[Xo]=r,Pp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zc(n,r),n){case"dialog":Ue("cancel",e),Ue("close",e),i=r;break;case"iframe":case"object":case"embed":Ue("load",e),i=r;break;case"video":case"audio":for(i=0;iKi&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ka(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!He)return ht(t),null}else 2*Qe()-o.renderingStartTime>Ki&&n!==1073741824&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Qe(),t.sibling=null,n=Ke.current,ke(Ke,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return H0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xt&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function FL(e,t){switch(g0(t),t.tag){case 1:return Ft(t.type)&&Fa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(),$e(Ut),$e(At),B0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R0(t),null;case 13:if($e(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Ke),null;case 4:return Gi(),null;case 10:return y0(t.type._context),null;case 22:case 23:return H0(),null;case 24:return null;default:return null}}var Hs=!1,Ot=!1,ML=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Ou(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var dd=!1;function $L(e,t){if(ru=Da,e=M1(),O0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,f=0,_=e,E=null;t:for(;;){for(var O;_!==n||i!==0&&_.nodeType!==3||(l=s+i),_!==o||r!==0&&_.nodeType!==3||(a=s+r),_.nodeType===3&&(s+=_.nodeValue.length),(O=_.firstChild)!==null;)E=_,_=O;for(;;){if(_===e)break t;if(E===n&&++c===i&&(l=s),E===o&&++f===r&&(a=s),(O=_.nextSibling)!==null)break;_=E,E=_.parentNode}_=O}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},Da=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var h=w.memoizedProps,m=w.memoizedState,u=t.stateNode,d=u.getSnapshotBeforeUpdate(t.elementType===t.type?h:On(t.type,h),m);u.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(A){Ve(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return w=dd,dd=!1,w}function Do(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ou(t,n,o)}i=i.next}while(i!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Au(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[Xo],delete t[au],delete t[gL],delete t[vL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bp(e){return e.tag===5||e.tag===3||e.tag===4}function _d(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ua));else if(r!==4&&(e=e.child,e!==null))for(gu(e,t,n),e=e.sibling;e!==null;)gu(e,t,n),e=e.sibling}function vu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vu(e,t,n),e=e.sibling;e!==null;)vu(e,t,n),e=e.sibling}var ft=null,An=!1;function pr(e,t,n){for(n=n.child;n!==null;)Up(e,t,n),n=n.sibling}function Up(e,t,n){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(fl,n)}catch{}switch(n.tag){case 5:Ot||Si(n,t);case 6:var r=ft,i=An;ft=null,pr(e,t,n),ft=r,An=i,ft!==null&&(An?(e=ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ft.removeChild(n.stateNode));break;case 18:ft!==null&&(An?(e=ft,n=n.stateNode,e.nodeType===8?oc(e.parentNode,n):e.nodeType===1&&oc(e,n),Wo(e)):oc(ft,n.stateNode));break;case 4:r=ft,i=An,ft=n.stateNode.containerInfo,An=!0,pr(e,t,n),ft=r,An=i;break;case 0:case 11:case 14:case 15:if(!Ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ou(n,t,s),i=i.next}while(i!==r)}pr(e,t,n);break;case 1:if(!Ot&&(Si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ve(n,t,l)}pr(e,t,n);break;case 21:pr(e,t,n);break;case 22:n.mode&1?(Ot=(r=Ot)||n.memoizedState!==null,pr(e,t,n),Ot=r):pr(e,t,n);break;default:pr(e,t,n)}}function pd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ML),t.forEach(function(r){var i=YL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HL(r/1960))-r,10e?16:e,xr===null)var r=!1;else{if(e=xr,xr=null,qa=0,ye&6)throw Error(Z(331));var i=ye;for(ye|=4,ae=e.current;ae!==null;){var o=ae,s=o.child;if(ae.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aQe()-$0?Qr(e,0):M0|=n),Mt(e,t)}function Kp(e,t){t===0&&(e.mode&1?(t=Cs,Cs<<=1,!(Cs&130023424)&&(Cs=4194304)):t=1);var n=xt();e=ar(e,t),e!==null&&(ps(e,t,n),Mt(e,n))}function VL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kp(e,n)}function YL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),Kp(e,n)}var Wp;Wp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ut.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,bL(e,t,n);bt=!!(e.flags&131072)}else bt=!1,He&&t.flags&1048576&&q1(t,ja,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pa(e,t),e=t.pendingProps;var i=$i(t,At.current);ki(t,n),i=C0(null,t,r,e,i,n);var o=D0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ft(r)?(o=!0,Ma(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,N0(t),i.updater=hl,t.stateNode=i,i._reactInternals=t,_u(t,r,e,n),t=mu(null,t,r,!0,o,n)):(t.tag=0,He&&o&&A0(t),vt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=XL(r),e=On(r,e),i){case 0:t=Eu(null,t,r,e,n);break e;case 1:t=cd(null,t,r,e,n);break e;case 11:t=ad(null,t,r,e,n);break e;case 14:t=ld(null,t,r,On(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),Eu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),cd(e,t,r,i,n);case 3:e:{if(Ip(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,np(e,t),za(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zi(Error(Z(423)),t),t=ud(e,t,r,n,i);break e}else if(r!==i){i=zi(Error(Z(424)),t),t=ud(e,t,r,n,i);break e}else for(Qt=Ir(t.stateNode.containerInfo.firstChild),Jt=t,He=!0,vn=null,n=ep(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),r===i){t=lr(e,t,n);break e}vt(e,t,r,n)}t=t.child}return t;case 5:return rp(t),e===null&&uu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ou(r,i)?s=null:o!==null&&ou(r,o)&&(t.flags|=32),Np(e,t),vt(e,t,s,n),t.child;case 6:return e===null&&uu(t),null;case 13:return Rp(e,t,n);case 4:return I0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hi(t,null,r,n):vt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),ad(e,t,r,i,n);case 7:return vt(e,t,t.pendingProps,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ke(Ha,r._currentValue),r._currentValue=s,o!==null)if(Sn(o.value,s)){if(o.children===i.children&&!Ut.current){t=lr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=nr(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),fu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Z(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}vt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ki(t,n),i=pn(i),r=r(i),t.flags|=1,vt(e,t,r,n),t.child;case 14:return r=t.type,i=On(r,t.pendingProps),i=On(r.type,i),ld(e,t,r,i,n);case 15:return yp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),pa(e,t),t.tag=1,Ft(r)?(e=!0,Ma(t)):e=!1,ki(t,n),vp(t,r,i),_u(t,r,i,n),mu(null,t,r,!0,e,n);case 19:return Bp(e,t,n);case 22:return Sp(e,t,n)}throw Error(Z(156,t.tag))};function Zp(e,t){return O1(e,t)}function qL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(e,t,n,r){return new qL(e,t,n,r)}function z0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XL(e){if(typeof e=="function")return z0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c0)return 11;if(e===u0)return 14}return 2}function Cr(e,t){var n=e.alternate;return n===null?(n=dn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ta(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")z0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case hi:return Jr(n.children,i,o,t);case l0:s=8,i|=8;break;case Uc:return e=dn(12,n,t,i|2),e.elementType=Uc,e.lanes=o,e;case Fc:return e=dn(13,n,t,i),e.elementType=Fc,e.lanes=o,e;case Mc:return e=dn(19,n,t,i),e.elementType=Mc,e.lanes=o,e;case r1:return Al(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case t1:s=10;break e;case n1:s=9;break e;case c0:s=11;break e;case u0:s=14;break e;case Lr:s=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=dn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Jr(e,t,n,r){return e=dn(7,e,r,t),e.lanes=n,e}function Al(e,t,n,r){return e=dn(22,e,r,t),e.elementType=r1,e.lanes=n,e.stateNode={isHidden:!1},e}function _c(e,t,n){return e=dn(6,e,null,t),e.lanes=n,e}function pc(e,t,n){return t=dn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QL(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function K0(e,t,n,r,i,o,s,l,a){return e=new QL(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=dn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},N0(o),e}function JL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xp)}catch(e){console.error(e)}}Xp(),X_.exports=nn;var iO=X_.exports,gd=iO;kc.createRoot=gd.createRoot,kc.hydrateRoot=gd.hydrateRoot;const oO="file",sO="AbortError";async function aO({multiple:e,description:t,accept:n}={}){const r=!!n;if("showOpenFilePicker"in window)try{const i={excludeAcceptAllOption:r,multiple:e};r&&Object.assign(i,{types:[{description:t,accept:n}]});const o=await window.showOpenFilePicker(i);return Promise.all(o.map(s=>s.getFile()))}catch(i){if(i.name===sO)return[];throw i}else{const i=document.createElement("input");return Object.assign(i,{type:"file",accept:n?Object.keys(n).join(","):"",multiple:e}),new Promise(o=>{i.onchange=({target:s})=>{s.files.length&&o(Array.from(s.files))},i.click()})}}function lO(e){return window.showDirectoryPicker(e)}function cO(e){return window.showSaveFilePicker(e)}function uO(){return"showSaveFilePicker"in window&&"showDirectoryPicker"in window}function fO(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");Object.assign(r,{href:n,download:t}),r.click(),URL.revokeObjectURL(n)}const Ks=Object.freeze(Object.defineProperty({__proto__:null,FILESYSTEM_FILE_KIND:oO,saveBlob:fO,savePickersSupported:uO,showDirectoryPicker:lO,showOpenFilePicker:aO,showSaveFilePicker:cO},Symbol.toStringTag,{value:"Module"})),dO="AbortError",Qp="download cancelled";function _O(){return new AbortController}function pO(e){e.abort(new Error(Qp))}function EO(e){return(e.message||e)===Qp||e.name===dO}const vd=Object.freeze(Object.defineProperty({__proto__:null,abortDownload:pO,createAbortController:_O,downloadAborted:EO},Symbol.toStringTag,{value:"Module"})),Jp="en-US",mO=[Jp,"de-DE","es-ES","fr-FR","it-IT","pt-PT"],wd=["kilobyte","megabyte","gigabyte","terabyte","petabyte"].map(e=>new Intl.NumberFormat(yl(),{style:"unit",maximumFractionDigits:1,unit:e})),TO=new Intl.DateTimeFormat(yl(),{dateStyle:"short",timeStyle:"short"}),hO=new Intl.NumberFormat(yl(),{style:"unit",maximumFractionDigits:0,unit:"percent"});function LO(e){let t=0;for(e=e/1e3;e>1e3&&tnew Array(t).fill(n,0,t)))}function Nl(e){return e.reduce((t,n)=>t.concat(Array.isArray(n)?Nl(n):n),[])}const Rd=[0,1,2,3].concat(...Sl([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(i){const o=e.dyn_tree,s=e.stat_desc.static_tree,l=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,c=e.stat_desc.max_length;let f,_,E,O,w,h,m=0;for(O=0;O<=is;O++)i.bl_count[O]=0;for(o[i.heap[i.heap_max]*2+1]=0,f=i.heap_max+1;fc&&(O=c,m++),o[_*2+1]=O,!(_>e.max_code)&&(i.bl_count[O]++,w=0,_>=a&&(w=l[_-a]),h=o[_*2],i.opt_len+=h*(O+w),s&&(i.static_len+=h*(s[_*2+1]+w)));if(m!==0){do{for(O=c-1;i.bl_count[O]===0;)O--;i.bl_count[O]--,i.bl_count[O+1]+=2,i.bl_count[c]--,m-=2}while(m>0);for(O=c;O!==0;O--)for(_=i.bl_count[O];_!==0;)E=i.heap[--f],!(E>e.max_code)&&(o[E*2+1]!=O&&(i.opt_len+=(O-o[E*2+1])*o[E*2],o[E*2+1]=O),_--)}}function n(i,o){let s=0;do s|=i&1,i>>>=1,s<<=1;while(--o>0);return s>>>1}function r(i,o,s){const l=[];let a=0,c,f,_;for(c=1;c<=is;c++)l[c]=a=a+s[c-1]<<1;for(f=0;f<=o;f++)_=i[f*2+1],_!==0&&(i[f*2]=n(l[_]++,_))}e.build_tree=function(i){const o=e.dyn_tree,s=e.stat_desc.static_tree,l=e.stat_desc.elems;let a,c,f=-1,_;for(i.heap_len=0,i.heap_max=xd,a=0;a=1;a--)i.pqdownheap(o,a);_=l;do a=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(o,1),c=i.heap[1],i.heap[--i.heap_max]=a,i.heap[--i.heap_max]=c,o[_*2]=o[a*2]+o[c*2],i.depth[_]=Math.max(i.depth[a],i.depth[c])+1,o[a*2+1]=o[c*2+1]=_,i.heap[1]=_++,i.pqdownheap(o,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],t(i),r(o,e.max_code,i.bl_count)}}Fe._length_code=[0,1,2,3,4,5,6,7].concat(...Sl([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Fe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Fe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Fe.d_code=function(e){return e<256?Rd[e]:Rd[256+(e>>>7)]};Fe.extra_lbits=[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];Fe.extra_dbits=[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];Fe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Fe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function dt(e,t,n,r,i){const o=this;o.static_tree=e,o.extra_bits=t,o.extra_base=n,o.elems=r,o.max_length=i}const BO=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],PO=Sl([[144,8],[112,9],[24,7],[8,8]]);dt.static_ltree=Nl(BO.map((e,t)=>[e,PO[t]]));const CO=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],DO=Sl([[30,5]]);dt.static_dtree=Nl(CO.map((e,t)=>[e,DO[t]]));dt.static_l_desc=new dt(dt.static_ltree,Fe.extra_lbits,Ja+1,Y0,is);dt.static_d_desc=new dt(dt.static_dtree,Fe.extra_dbits,0,Nu,is);dt.static_bl_desc=new dt(null,Fe.extra_blbits,0,Iu,yO);const kO=9,bO=8;function Un(e,t,n,r,i){const o=this;o.good_length=e,o.max_lazy=t,o.nice_length=n,o.max_chain=r,o.func=i}const tE=0,La=1,Wr=2,hn=[new Un(0,0,0,0,tE),new Un(4,4,8,4,La),new Un(4,5,16,8,La),new Un(4,6,32,32,La),new Un(4,4,16,16,Wr),new Un(8,16,32,32,Wr),new Un(8,16,128,128,Wr),new Un(8,32,128,256,Wr),new Un(32,128,258,1024,Wr),new Un(32,258,258,4096,Wr)],Vs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],an=0,Ys=1,To=2,qs=3,UO=32,mc=42,Xs=113,ho=666,Tc=8,FO=0,hc=1,MO=2,je=3,Oa=258,Vt=Oa+je+1;function Bd(e,t,n,r){const i=e[t*2],o=e[n*2];return i=3&&ee[Fe.bl_order[B]*2+1]===0;B--);return e.opt_len+=3*(B+1)+5+5+4,B}function V(B){e.pending_buf[e.pending++]=B}function W(B){V(B&255),V(B>>>8&255)}function ue(B){V(B>>8&255),V(B&255&255)}function j(B,H){let b;const G=H;_e>Ec-G?(b=B,Te|=b<<_e&65535,W(Te),Te=b>>>Ec-_e,_e+=G-Ec):(Te|=B<<_e&65535,_e+=G)}function P(B,H){const b=B*2;j(H[b]&65535,H[b+1]&65535)}function J(B,H){let b,G=-1,re,le=B[0*2+1],he=0,qe=7,be=4;for(le===0&&(qe=138,be=3),b=0;b<=H;b++)if(re=le,le=B[(b+1)*2+1],!(++he=8&&(V(Te&255),Te>>>=8,_e-=8)}function pe(){j(hc<<1,3),P(mo,dt.static_ltree),Le(),1+de+10-_e<9&&(j(hc<<1,3),P(mo,dt.static_ltree),Le()),de=7}function Ee(B,H){let b,G,re;if(e.dist_buf[X]=B,e.lc_buf[X]=H&255,X++,B===0?M[H*2]++:(Y++,B--,M[(Fe._length_code[H]+Ja+1)*2]++,F[Fe.d_code(B)*2]++),!(X&8191)&&I>2){for(b=X*8,G=g-u,re=0;re>>=3,Y8?W(Te):_e>0&&V(Te&255),Te=0,_e=0}function De(B,H,b){Ce(),de=8,W(H),W(~H),e.pending_buf.set(a.subarray(B,B+H),e.pending),e.pending+=H}function et(B,H,b){j((FO<<1)+(b?1:0),3),De(B,H)}function rt(B,H,b){let G,re,le=0;I>0?(N.build_tree(e),q.build_tree(e),le=ce(),G=e.opt_len+3+7>>>3,re=e.static_len+3+7>>>3,re<=G&&(G=re)):G=re=H+5,H+4<=G&&B!=-1?et(B,H,b):re==G?(j((hc<<1)+(b?1:0),3),Pe(dt.static_ltree,dt.static_dtree)):(j((MO<<1)+(b?1:0),3),fe(N.max_code+1,q.max_code+1,le+1),Pe(M,F)),ne(),b&&Ce()}function mt(B){rt(u>=0?u:-1,g-u,B),u=g,t.flush_pending()}function Dn(){let B,H,b,G;do{if(G=c-v-g,G===0&&g===0&&v===0)G=o;else if(G==-1)G--;else if(g>=o+o-Vt){a.set(a.subarray(o,o+o),0),L-=o,g-=o,u-=o,B=O,b=B;do H=_[--b]&65535,_[b]=H>=o?H-o:0;while(--B!==0);B=o,b=B;do H=f[--b]&65535,f[b]=H>=o?H-o:0;while(--B!==0);G+=o}if(t.avail_in===0)return;B=t.read_buf(a,g+v,G),v+=B,v>=je&&(E=a[g]&255,E=(E<r-5&&(H=r-5);;){if(v<=1){if(Dn(),v===0&&B==mi)return an;if(v===0)break}if(g+=v,v=0,b=u+H,(g===0||g>=b)&&(v=g-b,g=b,mt(!1),t.avail_out===0)||g-u>=o-Vt&&(mt(!1),t.avail_out===0))return an}return mt(B==Bt),t.avail_out===0?B==Bt?To:an:B==Bt?qs:Ys}function on(B){let H=S,b=g,G,re,le=T;const he=g>o-Vt?g-(o-Vt):0;let qe=k;const be=l,Zn=g+Oa;let jr=a[b+le-1],fr=a[b+le];T>=R&&(H>>=2),qe>v&&(qe=v);do if(G=B,!(a[G+le]!=fr||a[G+le-1]!=jr||a[G]!=a[b]||a[++G]!=a[b+1])){b+=2,G++;do;while(a[++b]==a[++G]&&a[++b]==a[++G]&&a[++b]==a[++G]&&a[++b]==a[++G]&&a[++b]==a[++G]&&a[++b]==a[++G]&&a[++b]==a[++G]&&a[++b]==a[++G]&&ble){if(L=B,le=re,re>=qe)break;jr=a[b+le-1],fr=a[b+le]}}while((B=f[B&be]&65535)>he&&--H!==0);return le<=v?le:v}function sn(B){let H=0,b;for(;;){if(v=je&&(E=(E<=je)if(b=Ee(g-L,d-je),v-=d,d<=y&&v>=je){d--;do g++,E=(E<=je&&(E=(E<4096)&&(d=je-1)),T>=je&&d<=T){G=g+v-je,b=Ee(g-1-p,T-je),v-=T-1,T-=2;do++g<=G&&(E=(E<kO||G!=Tc||b<9||b>15||H<0||H>9||le<0||le>Ws?gn:(B.dstate=e,s=b,o=1<9||b<0||b>Ws?gn:(hn[I].func!=hn[H].func&&B.total_in!==0&&(G=B.deflate(Id)),I!=H&&(I=H,y=hn[I].max_lazy,R=hn[I].good_length,k=hn[I].nice_length,S=hn[I].max_chain),C=b,G)},e.deflateSetDictionary=function(B,H,b){let G=b,re,le=0;if(!H||n!=mc)return gn;if(Go-Vt&&(G=o-Vt,le=b-G),a.set(H.subarray(le,le+G),0),g=G,u=G,E=a[0]&255,E=(E<Bt||H<0)return gn;if(!B.next_out||!B.next_in&&B.avail_in!==0||n==ho&&H!=Bt)return B.msg=Vs[Zs-gn],gn;if(B.avail_out===0)return B.msg=Vs[Zs-_i],_i;if(t=B,le=i,i=H,n==mc&&(G=Tc+(s-8<<4)<<8,re=(I-1&255)>>1,re>3&&(re=3),G|=re<<6,g!==0&&(G|=UO),G+=31-G%31,n=Xs,ue(G)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return i=-1,Ln}else if(t.avail_in===0&&H<=le&&H!=Bt)return t.msg=Vs[Zs-_i],_i;if(n==ho&&t.avail_in!==0)return B.msg=Vs[Zs-_i],_i;if(t.avail_in!==0||v!==0||H!=mi&&n!=ho){switch(he=-1,hn[I].func){case tE:he=Wn(H);break;case La:he=sn(H);break;case Wr:he=U(H);break}if((he==To||he==qs)&&(n=ho),he==an||he==To)return t.avail_out===0&&(i=-1),Ln;if(he==Ys){if(H==Id)pe();else if(et(0,0,!1),H==IO)for(b=0;bn&&(i=n),i===0?0:(r.avail_in-=i,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),t),r.next_in_index+=i,r.total_in+=i,i)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function jO(e){const t=this,n=new nE,r=HO(e&&e.chunkSize?e.chunkSize:64*1024),i=mi,o=new Uint8Array(r);let s=e?e.level:el;typeof s>"u"&&(s=el),n.deflateInit(s),n.next_out=o,t.append=function(l,a){let c,f,_=0,E=0,O=0;const w=[];if(l.length){n.next_in_index=0,n.next_in=l,n.avail_in=l.length;do{if(n.next_out_index=0,n.avail_out=r,c=n.deflate(i),c!=Ln)throw new Error("deflating: "+n.msg);n.next_out_index&&(n.next_out_index==r?w.push(new Uint8Array(o)):w.push(o.subarray(0,n.next_out_index))),O+=n.next_out_index,a&&n.next_in_index>0&&n.next_in_index!=_&&(a(n.next_in_index),_=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return w.length>1?(f=new Uint8Array(O),w.forEach(function(h){f.set(h,E),E+=h.length})):f=w[0]?new Uint8Array(w[0]):new Uint8Array,f}},t.flush=function(){let l,a,c=0,f=0;const _=[];do{if(n.next_out_index=0,n.avail_out=r,l=n.deflate(Bt),l!=eE&&l!=Ln)throw new Error("deflating: "+n.msg);r-n.avail_out>0&&_.push(o.slice(0,n.next_out_index)),f+=n.next_out_index}while(n.avail_in>0||n.avail_out===0);return n.deflateEnd(),a=new Uint8Array(f),_.forEach(function(E){a.set(E,c),c+=E.length}),a}}function HO(e){return e+5*(Math.floor(e/16383)+1)}const GO=15,xe=0,rr=1,zO=2,Ct=-2,Me=-3,Pd=-4,ir=-5,qt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],rE=1440,KO=0,WO=4,ZO=9,VO=5,YO=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],qO=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],XO=[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],QO=[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,112,112],JO=[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],eA=[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],Er=15;function Ru(){const e=this;let t,n,r,i,o,s;function l(c,f,_,E,O,w,h,m,u,d,p){let A,g,L,v,T,S,y,I,C,R,k,M,F,ee,N;R=0,T=_;do r[c[f+R]]++,R++,T--;while(T!==0);if(r[0]==_)return h[0]=-1,m[0]=0,xe;for(I=m[0],S=1;S<=Er&&r[S]===0;S++);for(y=S,IT&&(I=T),m[0]=I,ee=1<M+I;){if(v++,M+=I,N=L-M,N=N>I?I:N,(g=1<<(S=y-M))>A+1&&(g-=A+1,F=y,SrE)return Me;o[v]=k=d[0],d[0]+=N,v!==0?(s[v]=T,i[0]=S,i[1]=I,S=T>>>M-I,i[2]=k-o[v-1]-S,u.set(i,(o[v-1]+S)*3)):h[0]=k}for(i[1]=y-M,R>=_?i[0]=192:p[R]>>M;S>>=1)T^=S;for(T^=S,C=(1<257?(d==Me?u.msg="oversubscribed distance tree":d==ir?(u.msg="incomplete distance tree",d=Me):d!=Pd&&(u.msg="empty distance tree with lengths",d=Me),d):xe)}}Ru.inflate_trees_fixed=function(e,t,n,r){return e[0]=ZO,t[0]=VO,n[0]=YO,r[0]=qO,xe};const Qs=0,Cd=1,Dd=2,kd=3,bd=4,Ud=5,Fd=6,Lc=7,Md=8,Js=9;function tA(){const e=this;let t,n=0,r,i=0,o=0,s=0,l=0,a=0,c=0,f=0,_,E=0,O,w=0;function h(m,u,d,p,A,g,L,v){let T,S,y,I,C,R,k,M,F,ee,N,q,D,se,X,Y;k=v.next_in_index,M=v.avail_in,C=L.bitb,R=L.bitk,F=L.write,ee=F>=S[Y+1],R-=S[Y+1],L.win[F++]=S[Y+2],ee--;continue}do{if(C>>=S[Y+1],R-=S[Y+1],I&16){for(I&=15,D=S[Y+2]+(C&qt[I]),C>>=I,R-=I;R<15;)M--,C|=(v.read_byte(k++)&255)<>=S[Y+1],R-=S[Y+1],I&16){for(I&=15;R>=I,R-=I,ee-=D,F>=se)X=F-se,F-X>0&&2>F-X?(L.win[F++]=L.win[X++],L.win[F++]=L.win[X++],D-=2):(L.win.set(L.win.subarray(X,X+2),F),F+=2,X+=2,D-=2);else{X=F-se;do X+=L.end;while(X<0);if(I=L.end-X,D>I){if(D-=I,F-X>0&&I>F-X)do L.win[F++]=L.win[X++];while(--I!==0);else L.win.set(L.win.subarray(X,X+I),F),F+=I,X+=I,I=0;X=0}}if(F-X>0&&D>F-X)do L.win[F++]=L.win[X++];while(--D!==0);else L.win.set(L.win.subarray(X,X+D),F),F+=D,X+=D,D=0;break}else if(!(I&64))T+=S[Y+2],T+=C&qt[I],Y=(y+T)*3,I=S[Y];else return v.msg="invalid distance code",D=v.avail_in-M,D=R>>3>3:D,M+=D,k-=D,R-=D<<3,L.bitb=C,L.bitk=R,v.avail_in=M,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=F,Me;while(!0);break}if(I&64)return I&32?(D=v.avail_in-M,D=R>>3>3:D,M+=D,k-=D,R-=D<<3,L.bitb=C,L.bitk=R,v.avail_in=M,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=F,rr):(v.msg="invalid literal/length code",D=v.avail_in-M,D=R>>3>3:D,M+=D,k-=D,R-=D<<3,L.bitb=C,L.bitk=R,v.avail_in=M,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=F,Me);if(T+=S[Y+2],T+=C&qt[I],Y=(y+T)*3,(I=S[Y])===0){C>>=S[Y+1],R-=S[Y+1],L.win[F++]=S[Y+2],ee--;break}}while(!0)}while(ee>=258&&M>=10);return D=v.avail_in-M,D=R>>3>3:D,M+=D,k-=D,R-=D<<3,L.bitb=C,L.bitk=R,v.avail_in=M,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=F,xe}e.init=function(m,u,d,p,A,g){t=Qs,c=m,f=u,_=d,E=p,O=A,w=g,r=null},e.proc=function(m,u,d){let p,A,g,L=0,v=0,T=0,S,y,I,C;for(T=u.next_in_index,S=u.avail_in,L=m.bitb,v=m.bitk,y=m.write,I=y=258&&S>=10&&(m.bitb=L,m.bitk=v,u.avail_in=S,u.total_in+=T-u.next_in_index,u.next_in_index=T,m.write=y,d=h(c,f,_,E,O,w,m,u),T=u.next_in_index,S=u.avail_in,L=m.bitb,v=m.bitk,y=m.write,I=y>>=r[A+1],v-=r[A+1],g=r[A],g===0){s=r[A+2],t=Fd;break}if(g&16){l=g&15,n=r[A+2],t=Dd;break}if(!(g&64)){o=g,i=A/3+r[A+2];break}if(g&32){t=Lc;break}return t=Js,u.msg="invalid literal/length code",d=Me,m.bitb=L,m.bitk=v,u.avail_in=S,u.total_in+=T-u.next_in_index,u.next_in_index=T,m.write=y,m.inflate_flush(u,d);case Dd:for(p=l;v>=p,v-=p,o=f,r=O,i=w,t=kd;case kd:for(p=o;v>=r[A+1],v-=r[A+1],g=r[A],g&16){l=g&15,a=r[A+2],t=bd;break}if(!(g&64)){o=g,i=A/3+r[A+2];break}return t=Js,u.msg="invalid distance code",d=Me,m.bitb=L,m.bitk=v,u.avail_in=S,u.total_in+=T-u.next_in_index,u.next_in_index=T,m.write=y,m.inflate_flush(u,d);case bd:for(p=l;v>=p,v-=p,t=Ud;case Ud:for(C=y-a;C<0;)C+=m.end;for(;n!==0;){if(I===0&&(y==m.end&&m.read!==0&&(y=0,I=y7&&(v-=8,S++,T--),m.write=y,d=m.inflate_flush(u,d),y=m.write,I=yh.avail_out&&(u=h.avail_out),u!==0&&m==ir&&(m=xe),h.avail_out-=u,h.total_out+=u,h.next_out.set(n.win.subarray(p,p+u),d),d+=u,p+=u,p==n.end&&(p=0,n.write==n.end&&(n.write=0),u=n.write-p,u>h.avail_out&&(u=h.avail_out),u!==0&&m==ir&&(m=xe),h.avail_out-=u,h.total_out+=u,h.next_out.set(n.win.subarray(p,p+u),d),d+=u,p+=u),h.next_out_index=d,n.read=p,m},n.proc=function(h,m){let u,d,p,A,g,L,v,T;for(A=h.next_in_index,g=h.avail_in,d=n.bitb,p=n.bitk,L=n.write,v=L>>1){case 0:d>>>=3,p-=3,u=p&7,d>>>=u,p-=u,r=Oc;break;case 1:S=[],y=[],I=[[]],C=[[]],Ru.inflate_trees_fixed(S,y,I,C),f.init(S[0],y[0],I[0],0,C[0],0),d>>>=3,p-=3,r=ea;break;case 2:d>>>=3,p-=3,r=Hd;break;case 3:return d>>>=3,p-=3,r=Gr,h.msg="invalid block type",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m)}break;case Oc:for(;p<32;){if(g!==0)m=xe;else return n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);g--,d|=(h.read_byte(A++)&255)<>>16&65535)!=(d&65535))return r=Gr,h.msg="invalid stored block lengths",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);i=d&65535,d=p=0,r=i!==0?jd:_!==0?ta:pi;break;case jd:if(g===0||v===0&&(L==n.end&&n.read!==0&&(L=0,v=Lg&&(u=g),u>v&&(u=v),n.win.set(h.read_buf(A,u),L),A+=u,g-=u,L+=u,v-=u,(i-=u)!==0)break;r=_!==0?ta:pi;break;case Hd:for(;p<14;){if(g!==0)m=xe;else return n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);g--,d|=(h.read_byte(A++)&255)<29||(u>>5&31)>29)return r=Gr,h.msg="too many length or distance symbols",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);if(u=258+(u&31)+(u>>5&31),!l||l.length>>=14,p-=14,s=0,r=Gd;case Gd:for(;s<4+(o>>>10);){for(;p<3;){if(g!==0)m=xe;else return n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);g--,d|=(h.read_byte(A++)&255)<>>=3,p-=3}for(;s<19;)l[$d[s++]]=0;if(a[0]=7,u=w.inflate_trees_bits(l,a,c,E,h),u!=xe)return m=u,m==Me&&(l=null,r=Gr),n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);s=0,r=zd;case zd:for(;u=o,!(s>=258+(u&31)+(u>>5&31));){let ee,N;for(u=a[0];p>>=u,p-=u,l[s++]=N;else{for(T=N==18?7:N-14,ee=N==18?11:3;p>>=u,p-=u,ee+=d&qt[T],d>>>=T,p-=T,T=s,u=o,T+ee>258+(u&31)+(u>>5&31)||N==16&&T<1)return l=null,r=Gr,h.msg="invalid bit length repeat",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);N=N==16?l[T-1]:0;do l[T++]=N;while(--ee!==0);s=T}}if(c[0]=-1,R=[],k=[],M=[],F=[],R[0]=9,k[0]=6,u=o,u=w.inflate_trees_dynamic(257+(u&31),1+(u>>5&31),l,R,k,M,F,E,h),u!=xe)return u==Me&&(l=null,r=Gr),m=u,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);f.init(R[0],k[0],E,M[0],E,F[0]),r=ea;case ea:if(n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,(m=f.proc(n,h,m))!=rr)return n.inflate_flush(h,m);if(m=xe,f.free(h),A=h.next_in_index,g=h.avail_in,d=n.bitb,p=n.bitk,L=n.write,v=L15?(e.inflateEnd(n),Ct):(e.wbits=r,n.istate.blocks=new nA(n,1<>4)+8>s.wbits){s.mode=mr,n.msg="invalid win size",s.marker=5;break}s.mode=Wd;case Wd:if(n.avail_in===0)return i;if(i=r,n.avail_in--,n.total_in++,o=n.read_byte(n.next_in_index++)&255,((s.method<<8)+o)%31!==0){s.mode=mr,n.msg="incorrect header check",s.marker=5;break}if(!(o&rA)){s.mode=Lo;break}s.mode=Zd;case Zd:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,s.need=(n.read_byte(n.next_in_index++)&255)<<24&4278190080,s.mode=Vd;case Vd:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,s.need+=(n.read_byte(n.next_in_index++)&255)<<16&16711680,s.mode=Yd;case Yd:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,s.need+=(n.read_byte(n.next_in_index++)&255)<<8&65280,s.mode=qd;case qd:return n.avail_in===0?i:(i=r,n.avail_in--,n.total_in++,s.need+=n.read_byte(n.next_in_index++)&255,s.mode=Ac,zO);case Ac:return s.mode=mr,n.msg="need dictionary",s.marker=0,Ct;case Lo:if(i=s.blocks.proc(n,i),i==Me){s.mode=mr,s.marker=0;break}if(i==xe&&(i=r),i!=rr)return i;i=r,s.blocks.reset(n,s.was),s.mode=Xd;case Xd:return n.avail_in=0,rr;case mr:return Me;default:return Ct}},e.inflateSetDictionary=function(n,r,i){let o=0,s=i;if(!n||!n.istate||n.istate.mode!=Ac)return Ct;const l=n.istate;return s>=1<0&&n.next_in_index!=E&&(a(n.next_in_index),E=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return c.length>1?(_=new Uint8Array(w),c.forEach(function(h){_.set(h,O),O+=h.length})):_=c[0]?new Uint8Array(c[0]):new Uint8Array,_}},t.flush=function(){n.inflateEnd()}}const Je=4294967295,Ye=65535,Bu=8,oE=0,sE=99,aE=67324752,q0=134695760,cA=q0,Pu=33639248,lE=101010256,Cu=101075792,cE=117853008,un=22,Uo=20,Fo=56,uA=un+Uo+Fo,uE=1,fE=39169,dE=10,_E=1,X0=21589,fA=28789,dA=25461,pE=6534,Du=1,_A=6,ku=8,bu=2048,Uu=16,pA=20,Qd=45,Jd=51,Aa="/",e_=new Date(2107,11,31),t_=new Date(1980,0,1),Ie=void 0,br="undefined",hs="function";class n_{constructor(t){return class extends TransformStream{constructor(n,r){const i=new t(r);super({transform(o,s){s.enqueue(i.append(o))},flush(o){const s=i.flush();s&&o.enqueue(s)}})}}}}const EA=64;let EE=2;try{typeof navigator!=br&&navigator.hardwareConcurrency&&(EE=navigator.hardwareConcurrency)}catch{}const mA={chunkSize:512*1024,maxWorkers:EE,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:Ie,CompressionStreamNative:typeof CompressionStream!=br&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=br&&DecompressionStream},Ar=Object.assign({},mA);function Q0(){return Ar}function mE(e){return Math.max(e.chunkSize,EA)}function Il(e){const{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:o,useWebWorkers:s,Deflate:l,Inflate:a,CompressionStream:c,DecompressionStream:f,workerScripts:_}=e;if(Tr("baseURL",t),Tr("chunkSize",n),Tr("maxWorkers",r),Tr("terminateWorkerTimeout",i),Tr("useCompressionStream",o),Tr("useWebWorkers",s),l&&(Ar.CompressionStream=new n_(l)),a&&(Ar.DecompressionStream=new n_(a)),Tr("CompressionStream",c),Tr("DecompressionStream",f),_!==Ie){const{deflate:E,inflate:O}=_;if((E||O)&&(Ar.workerScripts||(Ar.workerScripts={})),E){if(!Array.isArray(E))throw new Error("workerScripts.deflate must be an array");Ar.workerScripts.deflate=E}if(O){if(!Array.isArray(O))throw new Error("workerScripts.inflate must be an array");Ar.workerScripts.inflate=O}}}function Tr(e,t){t!==Ie&&(Ar[e]=t)}const gc={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t of Object.keys(gc))for(const n of Object.keys(gc[t])){const r=gc[t][n];if(typeof r=="string")e[r]=t+"/"+n;else for(let i=0;i>>1^3988292384:t=t>>>1;TE[e]=t}class tl{constructor(t){this.crc=t||-1}append(t){let n=this.crc|0;for(let r=0,i=t.length|0;r>>8^TE[(n^t[r])&255];this.crc=n}get(){return~this.crc}}class hE extends TransformStream{constructor(){let t;const n=new tl;super({transform(r,i){n.append(r),i.enqueue(r)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,n.get()),t.value=r}}),t=this}}function ga(e){if(typeof TextEncoder==br){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n0&&t&&(e[n-1]=wt.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial(e,t,n){return e===32?t:(n?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,n,r){for(r===void 0&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(t===0)return r.concat(e);for(let s=0;s>>t),n=e[s]<<32-t;const i=e.length?e[e.length-1]:0,o=wt.getPartial(i);return r.push(wt.partial(t+o&31,t+o>32?n:r.pop(),1)),r}},nl={bytes:{fromBits(e){const n=wt.bitLength(e)/8,r=new Uint8Array(n);let i;for(let o=0;o>>24,i<<=8;return r},toBits(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(n);let s=0;for(let l=t.blockSize+r-(t.blockSize+r&t.blockSize-1);l<=i;l+=t.blockSize)t._block(o.subarray(16*s,16*(s+1))),s+=1;return n.splice(0,16*s),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=wt.concat(t,[wt.partial(1,1)]);for(let r=t.length+2;r&15;r++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){if(e<=19)return t&n|~t&r;if(e<=39)return t^n^r;if(e<=59)return t&n|t&r|n&r;if(e<=79)return t^n^r}_S(e,t){return t<>>32-e}_block(e){const t=this,n=t._h,r=Array(80);for(let c=0;c<16;c++)r[c]=e[c];let i=n[0],o=n[1],s=n[2],l=n[3],a=n[4];for(let c=0;c<=79;c++){c>=16&&(r[c]=t._S(1,r[c-3]^r[c-8]^r[c-14]^r[c-16]));const f=t._S(5,i)+t._f(c,o,s,l)+a+r[c]+t._key[Math.floor(c/20)]|0;a=l,l=s,s=t._S(30,o),o=i,i=f}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+l|0,n[4]=n[4]+a|0}};const OE={};OE.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let o,s,l,a=1;if(i!==4&&i!==6&&i!==8)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),l=[]],o=i;o<4*i+28;o++){let c=s[o-1];(o%i===0||i===8&&o%i===4)&&(c=n[c>>>24]<<24^n[c>>16&255]<<16^n[c>>8&255]<<8^n[c&255],o%i===0&&(c=c<<8^c>>>24^a<<24,a=a<<1^(a>>7)*283)),s[o]=s[o-i]^c}for(let c=0;o;c++,o--){const f=s[c&3?o:o-4];o<=4||c<4?l[c]=f:l[c]=r[0][n[f>>>24]]^r[1][n[f>>16&255]]^r[2][n[f>>8&255]]^r[3][n[f&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],o=[];let s,l,a,c;for(let f=0;f<256;f++)o[(i[f]=f<<1^(f>>7)*283)^f]=f;for(let f=s=0;!n[f];f^=l||1,s=o[s]||1){let _=s^s<<1^s<<2^s<<3^s<<4;_=_>>8^_&255^99,n[f]=_,r[_]=f,c=i[a=i[l=i[f]]];let E=c*16843009^a*65537^l*257^f*16843008,O=i[_]*257^_*16843008;for(let w=0;w<4;w++)e[w][f]=O=O<<24^O>>>8,t[w][_]=E=E<<24^E>>>8}for(let f=0;f<5;f++)e[f]=e[f].slice(0),t[f]=t[f].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],o=this._tables[t],s=o[0],l=o[1],a=o[2],c=o[3],f=o[4];let _=e[0]^n[0],E=e[t?3:1]^n[1],O=e[2]^n[2],w=e[t?1:3]^n[3],h=4,m,u,d;for(let p=0;p>>24]^l[E>>16&255]^a[O>>8&255]^c[w&255]^n[h],u=s[E>>>24]^l[O>>16&255]^a[w>>8&255]^c[_&255]^n[h+1],d=s[O>>>24]^l[w>>16&255]^a[_>>8&255]^c[E&255]^n[h+2],w=s[w>>>24]^l[_>>16&255]^a[E>>8&255]^c[O&255]^n[h+3],h+=4,_=m,E=u,O=d;for(let p=0;p<4;p++)i[t?3&-p:p]=f[_>>>24]<<24^f[E>>16&255]<<16^f[O>>8&255]<<8^f[w&255]^n[h++],m=_,_=E,E=O,O=w,w=m;return i}};const TA={getRandomValues(e){const t=new Uint32Array(e.buffer),n=r=>{let i=987654321;const o=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&o,r=18e3*(r&65535)+(r>>16)&o,(((i<<16)+r&o)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r>24&255)===255){let t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=wt.bitLength(t);for(let o=0;o>5)+1<<2;let o,s,l,a,c;const f=new ArrayBuffer(i),_=new DataView(f);let E=0;const O=wt;for(t=nl.bytes.toBits(t),c=1;E<(i||1);c++){for(o=s=e.encrypt(O.concat(t,[c])),l=1;li&&(e=new n().update(e).finalize());for(let o=0;othis.resolveReady=s),password:NE(t,n),signed:r,strength:i-1,pending:new Uint8Array})},async transform(s,l){const a=this,{password:c,strength:f,resolveReady:_,ready:E}=a;c?(await RA(a,f,c,fn(s,0,os[f]+2)),s=fn(s,os[f]+2),o?l.error(new Error(ef)):_()):await E;const O=new Uint8Array(s.length-hr-(s.length-hr)%Ii);l.enqueue(yE(a,s,O,0,hr,!0))},async flush(s){const{signed:l,ctr:a,hmac:c,pending:f,ready:_}=this;if(c&&a){await _;const E=fn(f,0,f.length-hr),O=fn(f,f.length-hr);let w=new Uint8Array;if(E.length){const h=as(zn,E);c.update(h);const m=a.update(h);w=ss(zn,m)}if(l){const h=fn(ss(zn,c.digest()),0,hr);for(let m=0;mthis.resolveReady=o),password:NE(t,n),strength:r-1,pending:new Uint8Array})},async transform(o,s){const l=this,{password:a,strength:c,resolveReady:f,ready:_}=l;let E=new Uint8Array;a?(E=await BA(l,c,a),f()):await _;const O=new Uint8Array(E.length+o.length-o.length%Ii);O.set(E,0),s.enqueue(yE(l,o,O,E.length,0))},async flush(o){const{ctr:s,hmac:l,pending:a,ready:c}=this;if(l&&s){await c;let f=new Uint8Array;if(a.length){const _=s.update(as(zn,a));l.update(_),f=ss(zn,_)}i.signature=ss(zn,l.digest()).slice(0,hr),o.enqueue(tf(f,i.signature))}}}),i=this}}function yE(e,t,n,r,i,o){const{ctr:s,hmac:l,pending:a}=e,c=t.length-i;a.length&&(t=tf(a,t),n=DA(n,c-c%Ii));let f;for(f=0;f<=c-Ii;f+=Ii){const _=as(zn,fn(t,f,f+Ii));o&&l.update(_);const E=s.update(_);o||l.update(E),n.set(ss(zn,E),f+r)}return e.pending=fn(t,f),n}async function RA(e,t,n,r){const i=await SE(e,t,n,fn(r,0,os[t])),o=fn(r,os[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new Error(J0)}async function BA(e,t,n){const r=vE(new Uint8Array(os[t])),i=await SE(e,t,n,r);return tf(r,i)}async function SE(e,t,n,r){e.password=null;const i=await PA(LA,n,gA,!1,vA),o=await CA(Object.assign({salt:r},Fu),i,8*(Oo[t]*2+2)),s=new Uint8Array(o),l=as(zn,fn(s,0,Oo[t])),a=as(zn,fn(s,Oo[t],Oo[t]*2)),c=fn(s,Oo[t]*2);return Object.assign(e,{keys:{key:l,authentication:a,passwordVerification:c},ctr:new yA(new xA(l),Array.from(wA)),hmac:new SA(a)}),c}async function PA(e,t,n,r,i){if(r_)try{return await Ls.importKey(e,t,n,r,i)}catch{return r_=!1,oi.importKey(t)}else return oi.importKey(t)}async function CA(e,t,n){if(i_)try{return await Ls.deriveBits(e,t,n)}catch{return i_=!1,oi.pbkdf2(t,e.salt,Fu.iterations,n)}else return oi.pbkdf2(t,e.salt,Fu.iterations,n)}function NE(e,t){return t===Ie?ga(e):t}function tf(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function DA(e,t){if(t&&t>e.length){const n=e;e=new Uint8Array(t),e.set(n,0)}return e}function fn(e,t,n){return e.subarray(t,n)}function ss(e,t){return e.fromBits(t)}function as(e,t){return e.toBits(t)}const Ui=12;class kA extends TransformStream{constructor({password:t,passwordVerification:n,checkPasswordOnly:r}){super({start(){Object.assign(this,{password:t,passwordVerification:n}),IE(this,t)},transform(i,o){const s=this;if(s.password){const l=o_(s,i.subarray(0,Ui));if(s.password=null,l[Ui-1]!=s.passwordVerification)throw new Error(J0);i=i.subarray(Ui)}r?o.error(new Error(ef)):o.enqueue(o_(s,i))}})}}class bA extends TransformStream{constructor({password:t,passwordVerification:n}){super({start(){Object.assign(this,{password:t,passwordVerification:n}),IE(this,t)},transform(r,i){const o=this;let s,l;if(o.password){o.password=null;const a=vE(new Uint8Array(Ui));a[Ui-1]=o.passwordVerification,s=new Uint8Array(r.length+a.length),s.set(s_(o,a),0),l=Ui}else s=new Uint8Array(r.length),l=0;s.set(s_(o,r),l),i.enqueue(s)}})}}function o_(e,t){const n=new Uint8Array(t.length);for(let r=0;r>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function RE(e){const t=e.keys[2]|2;return BE(Math.imul(t,t^1)>>>8)}function BE(e){return e&255}function a_(e){return e&4294967295}const l_="deflate-raw";class UA extends TransformStream{constructor(t,{chunkSize:n,CompressionStream:r,CompressionStreamNative:i}){super({});const{compressed:o,encrypted:s,useCompressionStream:l,zipCrypto:a,signed:c,level:f}=t,_=this;let E,O,w=PE(super.readable);(!s||a)&&c&&(E=new hE,w=Kn(w,E)),o&&(w=DE(w,l,{level:f,chunkSize:n},i,r)),s&&(a?w=Kn(w,new bA(t)):(O=new IA(t),w=Kn(w,O))),CE(_,w,()=>{let h;s&&!a&&(h=O.signature),(!s||a)&&c&&(h=new DataView(E.value.buffer).getUint32(0)),_.signature=h})}}class FA extends TransformStream{constructor(t,{chunkSize:n,DecompressionStream:r,DecompressionStreamNative:i}){super({});const{zipCrypto:o,encrypted:s,signed:l,signature:a,compressed:c,useCompressionStream:f}=t;let _,E,O=PE(super.readable);s&&(o?O=Kn(O,new kA(t)):(E=new NA(t),O=Kn(O,E))),c&&(O=DE(O,f,{chunkSize:n},i,r)),(!s||o)&&l&&(_=new hE,O=Kn(O,_)),CE(this,O,()=>{if((!s||o)&&l){const w=new DataView(_.value.buffer);if(a!=w.getUint32(0,!1))throw new Error(gE)}})}}function PE(e){return Kn(e,new TransformStream({transform(t,n){t&&t.length&&n.enqueue(t)}}))}function CE(e,t,n){t=Kn(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get(){return t}})}function DE(e,t,n,r,i){try{const o=t&&r?r:i;e=Kn(e,new o(l_,n))}catch{if(t)try{e=Kn(e,new i(l_,n))}catch{return e}else return e}return e}function Kn(e,t){return e.pipeThrough(t)}const MA="message",$A="start",jA="pull",c_="data",HA="ack",u_="close",kE="deflate",bE="inflate";class GA extends TransformStream{constructor(t,n){super({});const r=this,{codecType:i}=t;let o;i.startsWith(kE)?o=UA:i.startsWith(bE)&&(o=FA);let s=0,l=0;const a=new o(t,n),c=super.readable,f=new TransformStream({transform(E,O){E&&E.length&&(l+=E.length,O.enqueue(E))},flush(){Object.assign(r,{inputSize:l})}}),_=new TransformStream({transform(E,O){E&&E.length&&(s+=E.length,O.enqueue(E))},flush(){const{signature:E}=a;Object.assign(r,{signature:E,outputSize:s,inputSize:l})}});Object.defineProperty(r,"readable",{get(){return c.pipeThrough(f).pipeThrough(a).pipeThrough(_)}})}}class zA extends TransformStream{constructor(t){let n;super({transform:r,flush(i){n&&n.length&&i.enqueue(n)}});function r(i,o){if(n){const s=new Uint8Array(n.length+i.length);s.set(n),s.set(i,n.length),i=s,n=null}i.length>t?(o.enqueue(i.slice(0,t)),r(i.slice(t),o)):n=i}}}let UE=typeof Worker!=br;class vc{constructor(t,{readable:n,writable:r},{options:i,config:o,streamOptions:s,useWebWorkers:l,transferStreams:a,scripts:c},f){const{signal:_}=s;return Object.assign(t,{busy:!0,readable:n.pipeThrough(new zA(o.chunkSize)).pipeThrough(new KA(n,s),{signal:_}),writable:r,options:Object.assign({},i),scripts:c,transferStreams:a,terminate(){return new Promise(E=>{const{worker:O,busy:w}=t;O?(w?t.resolveTerminated=E:(O.terminate(),E()),t.interface=null):E()})},onTaskFinished(){const{resolveTerminated:E}=t;E&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),E()),t.busy=!1,f(t)}}),(l&&UE?WA:FE)(t,o)}}class KA extends TransformStream{constructor(t,{onstart:n,onprogress:r,size:i,onend:o}){let s=0;super({async start(){n&&await wc(n,i)},async transform(l,a){s+=l.length,r&&await wc(r,s,i),a.enqueue(l)},async flush(){t.size=s,o&&await wc(o,s)}})}}async function wc(e,...t){try{await e(...t)}catch{}}function FE(e,t){return{run:()=>ZA(e,t)}}function WA(e,t){const{baseURL:n,chunkSize:r}=t;if(!e.interface){let i;try{i=qA(e.scripts[0],n,e)}catch{return UE=!1,FE(e,t)}Object.assign(e,{worker:i,interface:{run:()=>VA(e,{chunkSize:r})}})}return e.interface}async function ZA({options:e,readable:t,writable:n,onTaskFinished:r},i){try{const o=new GA(e,i);await t.pipeThrough(o).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:s,inputSize:l,outputSize:a}=o;return{signature:s,inputSize:l,outputSize:a}}finally{r()}}async function VA(e,t){let n,r;const i=new Promise((E,O)=>{n=E,r=O});Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});const{readable:o,options:s,scripts:l}=e,{writable:a,closed:c}=YA(e.writable),f=va({type:$A,scripts:l.slice(1),options:s,config:t,readable:o,writable:a},e);f||Object.assign(e,{reader:o.getReader(),writer:a.getWriter()});const _=await i;return f||await a.getWriter().close(),await c,_}function YA(e){let t;const n=new Promise(i=>t=i);return{writable:new WritableStream({async write(i){const o=e.getWriter();await o.ready,await o.write(i),o.releaseLock()},close(){t()},abort(i){return e.getWriter().abort(i)}}),closed:n}}let f_=!0,d_=!0;function qA(e,t,n){const r={type:"module"};let i,o;typeof e==hs&&(e=e());try{i=new URL(e,t)}catch{i=e}if(f_)try{o=new Worker(i)}catch{f_=!1,o=new Worker(i,r)}else o=new Worker(i,r);return o.addEventListener(MA,s=>XA(s,n)),o}function va(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:o,readable:s,writable:l}=e;const a=[];if(o&&(o.byteLength!u.busy);if(m)return p_(m),new vc(m,e,t,h);if(Zr.lengthxc.push({resolve:u,stream:e,workerOptions:t}))}function h(m){if(xc.length){const[{resolve:u,stream:d,workerOptions:p}]=xc.splice(0,1);u(new vc(m,d,p,h))}else m.worker?(p_(m),QA(m,t)):Zr=Zr.filter(u=>u!=m)}}function QA(e,t){const{config:n}=t,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Zr=Zr.filter(i=>i!=e);try{await e.terminate()}catch{}},r))}function p_(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function JA(e,t={}){const n=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;inew V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;ad&&fs&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=15,Te=573,We=-2;function je(t){return He(t.map((([t,n])=>new e(t).fill(n,0,t))))}function He(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?He(n):n)),[])}const Le=[0,1,2,3].concat(...je([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=Te,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;Oe>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;Te>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;Oe>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function qe(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}Fe.ke=[0,1,2,3,4,5,6,7].concat(...je([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Fe.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Fe.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Fe.ze=e=>256>e?Le[e]:Le[256+(e>>>7)],Fe.Ce=[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],Fe.xe=[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],Fe.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fe._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ge=je([[144,8],[112,9],[24,7],[8,8]]);qe.Ie=He([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ge[t]])));const Je=je([[30,5]]);function Qe(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}qe.Ee=He([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Je[t]]))),qe.Me=new qe(qe.Ie,Fe.Ce,257,286,Oe),qe.Ue=new qe(qe.Ee,Fe.xe,0,30,Oe),qe.Ke=new qe(null,Fe.Ae,0,19,7);const Xe=[new Qe(0,0,0,0,0),new Qe(4,4,8,4,1),new Qe(4,5,16,8,1),new Qe(4,6,32,32,1),new Qe(4,4,16,16,2),new Qe(8,16,32,32,2),new Qe(8,16,128,128,2),new Qe(8,32,128,256,2),new Qe(32,128,258,1024,2),new Qe(32,258,258,4096,2)],Ye=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Ze=113,$e=666,et=262;function tt(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function nt(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new Fe,N=new Fe,O=new Fe;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++ii?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<>>16-F,F+=r-16):(L|=e<=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Fe.ke[n]+256+1)]++,M[2*Fe.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Fe.xe[o]);if(s>>>=3,jc);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*Fe._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(qe.Ie,qe.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*Fe._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-et){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-et?C-(f-et):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?We:(t.qe=e,a=x,f=1<(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Ze,c=0,K.se=E,K.oe=qe.Me,N.se=M,N.oe=qe.Ue,O.se=U,O.oe=qe.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Ze&&n!=$e?We:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Ze?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?We:(Xe[D].Be!=Xe[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return We;if(3>i)return 0;for(i>f-et&&(i=f-et,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<=s;s++)p=(p<{let o,w,m,I,R;if(i>4||0>i)return We;if(!r.et||!r.tt&&0!==r.je||n==$e&&4!=i)return r.Fe=Ye[4],We;if(0===r.nt)return r.Fe=Ye[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Ze,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Ye[7],-5;if(n==$e&&0!==t.je)return r.Fe=Ye[7],-5;if(0!==t.je||0!==A||0!=i&&n!=$e){switch(R=-1,Xe[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-et&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<f-et||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<{let n,r,s=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<_&&f-et>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<1+H+10-F&&(X(2,3),Y(256,qe.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function rt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function st(e){const t=new rt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}rt.prototype={Le(e,t){const n=this;return n.qe=new nt,t||(t=Oe),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):We},Xe(){const e=this;if(!e.qe)return We;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):We},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):We},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const it=0,ot=1,ct=-2,ft=-3,at=-4,lt=-5,ut=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=1440,ht=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],dt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],pt=[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],yt=[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,112,112],mt=[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],bt=[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],gt=15;function kt(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,it;for(S=u[0],k=1;gt>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=gt;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<k;k++,I<<=1)if(0>(I-=n[k]))return ft;if(0>(I-=n[g]))return ft;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++kn[++_];)y-=n[_];if(P=1<wt)return ft;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<>>=1)g^=k;for(g^=k,z=(1<c;c++)t[c]=0;for(c=0;gt+1>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,gt),0),i.set(n.subarray(0,gt+1),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==ft?f.Fe="oversubscribed dynamic bit lengths tree":a!=lt&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=ft),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,pt,yt,a,i,u,e,t),h!=it||0===i[0]?(h==ft?w.Fe="oversubscribed literal/length tree":h!=at&&(w.Fe="incomplete literal/length tree",h=ft),h):(c(288),h=o(s,n,r,0,mt,bt,l,f,u,e,t),h!=it||0===f[0]&&n>257?(h==ft?w.Fe="oversubscribed distance tree":h==lt?(w.Fe="incomplete distance tree",h=ft):h!=at&&(w.Fe="empty distance tree with lengths",h=ft),h):it)}}kt.ct=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ht,r[0]=dt,it);const vt=0,St=1,zt=2,Ct=3,xt=4,At=5,_t=6,It=7,Pt=8,Dt=9;function Vt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ft,h=o.lt,y=o.write,m=yh;)p--,w|=(255&c.ut(d++))<>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ut[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ut(d++))<>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ut(d++))<>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--u);else o.wt.set(o.wt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.wt[y++]=o.wt[S++],o.wt[y++]=o.wt[S++],k-=2):(o.wt.set(o.wt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--k);else o.wt.set(o.wt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft;f+=a[z+2],f+=w&ut[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ot):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft);if(f+=a[z+2],f+=w&ut[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,it}e.init=(e,i,o,c,f,a)=>{t=vt,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ht=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S=258&&v>=10&&(e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=SA;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=_t;break}if(16&k){a=15&k,i=n[g+2],t=zt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=It;break}return t=Dt,y.Fe="invalid literal/length code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case zt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=b,A-=b,c=w,n=s,o=d,t=Ct;case Ct:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=xt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=Dt,y.Fe="invalid distance code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case xt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=b,A-=b,t=At;case At:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S7&&(A-=8,v++,_--),e.write=S,m=e.dt(y,m),S=e.write,z=S{}}const Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=0,Et=1,Mt=2,Ut=3,Kt=4,Nt=5,Ot=6,Tt=7,Wt=8,jt=9;function Ht(e,t){const n=this;let r,s=Bt,o=0,c=0,a=0;const l=[0],u=[0],w=new Vt;let h=0,d=new f(3*wt);const p=new kt;n.lt=0,n.ft=0,n.wt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),s==Ot&&w.yt(e),s=Bt,n.lt=0,n.ft=0,n.read=n.write=0},n.reset(e,null),n.dt=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.ht=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=gy;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=Et;break;case 1:S=[],z=[],C=[[]],x=[[]],kt.ct(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=Ot;break;case 2:f>>>=3,y-=3,s=Ut;break;case 3:return f>>>=3,y-=3,s=jt,e.Fe="invalid block type",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}break;case Et:for(;32>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>16&65535)!=(65535&f))return s=jt,e.Fe="invalid stored block lengths",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);o=65535&f,f=y=0,s=0!==o?Mt:0!==h?Tt:Bt;break;case Mt:if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=gb&&(i=b),i>k&&(i=k),n.wt.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?Tt:Bt;break;case Ut:for(;14>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<29||(i>>5&31)>29)return s=jt,e.Fe="too many length or distance symbols",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.lengthv;v++)r[v]=0;f>>>=14,y-=14,a=0,s=Kt;case Kt:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>=3,y-=3}for(;19>a;)r[Rt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),i!=it)return(t=i)==ft&&(r=null,s=jt),n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);a=0,s=Nt;case Nt:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>=i,y-=i,o+=f&ut[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=jt,e.Fe="invalid bit length repeat",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),i!=it)return i==ft&&(r=null,s=jt),t=i,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=Ot;case Ot:if(n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,(t=w.ht(n,e,t))!=ot)return n.dt(e,t);if(t=it,w.yt(e),m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g{n.reset(e,null),n.wt=null,d=null},n.bt=(e,t,r)=>{n.wt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>s==Et?1:0}const Lt=13,Ft=[0,0,255,255];function qt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),it):ct}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.yt(t),e.vt=null,it),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),ct):(e.Ct=r,n.kt.vt=new Ht(n,1<{let n,r;if(!e||!e.kt||!e.tt)return ct;const s=e.kt;for(t=4==t?lt:it,n=lt;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.ut(e.rt++)))){s.mode=Lt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=Lt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.ut(e.rt++),((s.method<<8)+r)%31!=0){s.mode=Lt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.ut(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.ut(e.rt++),s.mode=6,2);case 6:return s.mode=Lt,e.Fe="need dictionary",s.marker=0,ct;case 7:if(n=s.vt.ht(e,n),n==ft){s.mode=Lt,s.marker=0;break}if(n==it&&(n=t),n!=ot)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,ot;case Lt:return ft;default:return ct}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return ct;const i=e.kt;return s<1<{let n,r,s,i,o;if(!e||!e.kt)return ct;const c=e.kt;if(c.mode!=Lt&&(c.mode=Lt,c.marker=0),0===(n=e.je))return lt;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.ut(r)==Ft[s]?s++:s=0!==e.ut(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?ft:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,it)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():ct}function Gt(){}function Jt(e){const t=new Gt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===lt){if(0!==t.je)throw new s("inflating: bad input")}else if(a!==it&&a!==ot)throw new s("inflating: "+t.Fe);if((c||a===ot)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}Gt.prototype={At(e){const t=this;return t.kt=new qt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):ct},xt(){const e=this;if(!e.kt)return ct;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):ct},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):ct},ut(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=st,self.Inflate=Jt}; +`,r=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"}));e({workerScripts:{inflate:[r],deflate:[r]}})}const $E="HTTP error ",Bl="HTTP Range not supported",eg="Writer iterator completed too soon",tg="text/plain",ng="Content-Length",rg="Content-Range",ig="Accept-Ranges",og="Range",sg="Content-Type",ag="HEAD",rf="GET",jE="bytes",lg=64*1024,of="writable";class Pl{constructor(){this.size=0}init(){this.initialized=!0}}class $r extends Pl{get readable(){const t=this,{chunkSize:n=lg}=t,r=new ReadableStream({start(){this.chunkOffset=0},async pull(i){const{offset:o=0,size:s,diskNumberStart:l}=r,{chunkOffset:a}=this;i.enqueue(await Lt(t,o+a,Math.min(n,s-a),l)),a+n>s?i.close():this.chunkOffset+=n}});return r}}class HE extends Pl{constructor(){super();const t=this,n=new WritableStream({write(r){return t.writeUint8Array(r)}});Object.defineProperty(t,of,{get(){return n}})}writeUint8Array(){}}class Mu extends $r{constructor(t){super();let n=t.length;for(;t.charAt(n-1)=="=";)n--;const r=t.indexOf(",")+1;Object.assign(this,{dataURI:t,dataStart:r,size:Math.floor((n-r)*.75)})}readUint8Array(t,n){const{dataStart:r,dataURI:i}=this,o=new Uint8Array(n),s=Math.floor(t/3)*4,l=atob(i.substring(s+r,Math.ceil((t+n)/3)*4+r)),a=t-Math.floor(s/4)*3;for(let c=a;c2?n.data+=btoa(i):n.pending=i}getData(){return this.data+btoa(this.pending)}}class Wi extends $r{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,n){const r=this,i=t+n;let s=await(t||in&&(s=s.slice(t,i)),new Uint8Array(s)}}class Zi extends Pl{constructor(t){super();const n=this,r=new TransformStream,i=[];t&&i.push([sg,t]),Object.defineProperty(n,of,{get(){return r.writable}}),n.blob=new Response(r.readable,{headers:i}).blob()}getData(){return this.blob}}class GE extends Wi{constructor(t){super(new Blob([t],{type:tg}))}}class $u extends Zi{constructor(t){super(t),Object.assign(this,{encoding:t,utf8:!t||t.toLowerCase()=="utf-8"})}async getData(){const{encoding:t,utf8:n}=this,r=await super.getData();if(r.text&&n)return r.text();{const i=new FileReader;return new Promise((o,s)=>{Object.assign(i,{onload:({target:l})=>o(l.result),onerror:()=>s(i.error)}),i.readAsText(r,t)})}}}class cg extends $r{constructor(t,n){super(),zE(this,t,n)}async init(){await KE(this,ju,E_),super.init()}readUint8Array(t,n){return WE(this,t,n,ju,E_)}}class ug extends $r{constructor(t,n){super(),zE(this,t,n)}async init(){await KE(this,Hu,m_),super.init()}readUint8Array(t,n){return WE(this,t,n,Hu,m_)}}function zE(e,t,n){const{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:o,combineSizeEocd:s}=n;n=Object.assign({},n),delete n.preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.combineSizeEocd,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:o,combineSizeEocd:s})}async function KE(e,t,n){const{url:r,preventHeadRequest:i,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:l}=e;if(dg(r)&&(o||s)&&(typeof i>"u"||i)){const a=await t(rf,e,ZE(e,l?-un:void 0));if(!s&&a.headers.get(ig)!=jE)throw new Error(Bl);{l&&(e.eocdCache=new Uint8Array(await a.arrayBuffer()));let c;const f=a.headers.get(rg);if(f){const _=f.trim().split(/\s*\/\s*/);if(_.length){const E=_[1];E&&E!="*"&&(c=Number(E))}}c===Ie?await T_(e,t,n):e.size=c}}else await T_(e,t,n)}async function WE(e,t,n,r,i){const{useRangeHeader:o,forceRangeRequests:s,eocdCache:l,size:a,options:c}=e;if(o||s){if(l&&t==a-un&&n==un)return l;const f=await r(rf,e,ZE(e,t,n));if(f.status!=206)throw new Error(Bl);return new Uint8Array(await f.arrayBuffer())}else{const{data:f}=e;return f||await i(e,c),new Uint8Array(e.data.subarray(t,t+n))}}function ZE(e,t=0,n=1){return Object.assign({},sf(e),{[og]:jE+"="+(t<0?t:t+"-"+(t+n-1))})}function sf({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function E_(e){await VE(e,ju)}async function m_(e){await VE(e,Hu)}async function VE(e,t){const n=await t(rf,e,sf(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function T_(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const i=(await t(ag,e,sf(e))).headers.get(ng);i?e.size=Number(i):await n(e,e.options)}}async function ju(e,{options:t,url:n},r){const i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(i.status<400)return i;throw i.status==416?new Error(Bl):new Error($E+(i.statusText||i.status))}function Hu(e,{url:t},n){return new Promise((r,i)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status<400){const s=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(l=>{const a=l.trim().split(/\s*:\s*/);a[0]=a[0].trim().replace(/^[a-z]|-[a-z]/g,c=>c.toUpperCase()),s.push(a)}),r({status:o.status,arrayBuffer:()=>o.response,headers:new Map(s)})}else i(o.status==416?new Error(Bl):new Error($E+(o.statusText||o.status)))},!1),o.addEventListener("error",s=>i(s.detail?s.detail.error:new Error("Network error")),!1),o.open(e,t),n)for(const s of Object.entries(n))o.setRequestHeader(s[0],s[1]);o.responseType="arraybuffer",o.send()})}class h_ extends $r{constructor(t,n={}){super(),Object.assign(this,{url:t,reader:n.useXHR?new ug(t,n):new cg(t,n)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(t,n){return this.reader.readUint8Array(t,n)}}class Gu extends $r{constructor(t){super(),Object.assign(this,{array:t,size:t.length})}readUint8Array(t,n){return this.array.slice(t,t+n)}}class il extends HE{init(t=0){Object.assign(this,{offset:0,array:new Uint8Array(t)}),super.init()}writeUint8Array(t){const n=this;if(n.offset+t.length>n.array.length){const r=n.array;n.array=new Uint8Array(r.length+t.length),n.array.set(r)}n.array.set(t,n.offset),n.offset+=t.length}getData(){return this.array}}class fg extends $r{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:n}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(n.map(async(r,i)=>{await r.init(),i!=n.length-1&&(t.lastDiskOffset+=r.size),t.size+=r.size})),super.init()}async readUint8Array(t,n,r=0){const i=this,{readers:o}=this;let s,l=r;l==-1&&(l=o.length-1);let a=t;for(;a>=o[l].size;)a-=o[l].size,l++;const c=o[l],f=c.size;if(a+n<=f)s=await Lt(c,a,n);else{const _=f-a;s=new Uint8Array(n),s.set(await Lt(c,a,_)),s.set(await i.readUint8Array(t+_,n-_,r),_)}return i.lastDiskNumber=Math.max(l,i.lastDiskNumber),s}}class L_ extends Pl{constructor(t,n=4294967295){super();const r=this;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:n,availableSize:n});let i,o,s;const l=new WritableStream({async write(f){const{availableSize:_}=r;if(s)f.length>=_?(await a(f.slice(0,_)),await c(),r.diskOffset+=i.size,r.diskNumber++,s=null,await this.write(f.slice(_))):await a(f);else{const{value:E,done:O}=await t.next();if(O&&!E)throw new Error(eg);i=E,i.size=0,i.maxSize&&(r.maxSize=i.maxSize),r.availableSize=r.maxSize,await tn(i),o=E.writable,s=o.getWriter(),await this.write(f)}},async close(){await s.ready,await c()}});Object.defineProperty(r,of,{get(){return l}});async function a(f){const _=f.length;_&&(await s.ready,await s.write(f),i.size+=_,r.size+=_,r.availableSize-=_)}async function c(){o.size=i.size,await s.close()}}}function dg(e){const{baseURL:t}=Q0(),{protocol:n}=new URL(e,t);return n=="http:"||n=="https:"}async function tn(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function YE(e){return Array.isArray(e)&&(e=new fg(e)),e instanceof ReadableStream&&(e={readable:e}),e}function qE(e){e.writable===Ie&&typeof e.next==hs&&(e=new L_(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===Ie&&(t.size=0),e instanceof L_||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Lt(e,t,n,r){return e.readUint8Array(t,n,r)}const XE="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),_g=XE.length==256;function pg(e){if(_g){let t="";for(let n=0;nthis[n]=t[n])}};const yc="File format is not recognized",hg="End of central directory not found",Lg="End of Zip64 central directory locator not found",Og="Central directory header not found",Ag="Local file header not found",gg="Zip64 extra field not found",vg="File contains encrypted entry",wg="Encryption method not supported",O_="Compression method not supported",A_="Split zip file",g_="utf-8",v_="cp437",xg=[[nm,Je],[rm,Je],[im,Je],[zu,Ye]],yg={[Ye]:{getValue:Xe,bytes:4},[Je]:{getValue:xa,bytes:8}};class Sg{constructor(t,n={}){Object.assign(this,{reader:YE(t),options:n,config:Q0()})}async*getEntriesGenerator(t={}){const n=this;let{reader:r}=n;const{config:i}=n;if(await tn(r),(r.size===Ie||!r.readUint8Array)&&(r=new Wi(await new Response(r.readable).blob()),await tn(r)),r.size=r.size&&(m=r.size-a-l-un,a=r.size-l-un),O!=E)throw new Error(A_);if(a<0)throw new Error(yc);let d=0,p=await Lt(r,a,l,w),A=ct(p);if(l){const y=o.offset-l;if(Xe(A,d)!=Pu&&a!=y){const I=a;a=y,m+=a-I,p=await Lt(r,a,l,w),A=ct(p)}}const g=o.offset-a-(r.lastDiskOffset||0);if(l!=g&&g>=0&&(l=g,p=await Lt(r,a,l,w),A=ct(p)),a<0||a>=r.size)throw new Error(yc);const L=Pt(n,t,"filenameEncoding"),v=Pt(n,t,"commentEncoding");for(let y=0;yI.getData(W,ce,ue),d=D;const{onprogress:V}=t;if(V)try{await V(y+1,h,new ls(I))}catch{}yield ce}const T=Pt(n,t,"extractPrependedData"),S=Pt(n,t,"extractAppendedData");return T&&(n.prependedData=u>0?await Lt(r,0,u):new Uint8Array),n.comment=f?await Lt(r,c+un,f):new Uint8Array,S&&(n.appendedData=_>>8&255:E>>>24&255),signature:E,compressed:c!=0,encrypted:g,useWebWorkers:Pt(i,r,"useWebWorkers"),useCompressionStream:Pt(i,r,"useCompressionStream"),transferStreams:Pt(i,r,"transferStreams"),checkPasswordOnly:I},config:f,streamOptions:{signal:y,size:T,onstart:R,onprogress:k,onend:M}};let ee=0;try{({outputSize:ee}=await ME({readable:S,writable:C},F))}catch(N){if(!I||N.message!=ef)throw N}finally{const N=Pt(i,r,"preventClose");C.size+=ee,!N&&!C.locked&&await C.getWriter().close()}return I?Ie:t.getData?t.getData():C}};function cm(e,t,n){const r=e.rawBitFlag=lt(t,n+2),i=(r&Du)==Du,o=Xe(t,n+6);Object.assign(e,{encrypted:i,version:lt(t,n),bitFlag:{level:(r&_A)>>1,dataDescriptor:(r&ku)==ku,languageEncodingFlag:(r&bu)==bu},rawLastModDate:o,lastModDate:Dg(o),filenameLength:lt(t,n+22),extraFieldLength:lt(t,n+24)})}async function um(e,t,n,r,i){const{rawExtraField:o}=t,s=t.extraField=new Map,l=ct(new Uint8Array(o));let a=0;try{for(;at[i]==o);for(let i=0,o=0;i=5&&(o.push(ol),s.push(Ku));let l=1;o.forEach((a,c)=>{if(e.data.length>=l+4){const f=Xe(r,l);t[a]=e[a]=new Date(f*1e3);const _=s[c];e[_]=f}l+=4})}async function Cg(e,t,n,r,i){const o=new Uint8Array(4),s=ct(o);kg(s,0,t);const l=r+i;return await a(r)||await a(Math.min(l,n));async function a(c){const f=n-c,_=await Lt(e,f,c);for(let E=_.length-r;E>=0;E--)if(_[E]==o[0]&&_[E+1]==o[1]&&_[E+2]==o[2]&&_[E+3]==o[3])return{offset:f+E,buffer:_.slice(E,E+r).buffer}}}function Pt(e,t,n){return t[n]===Ie?e.options[n]:t[n]}function Dg(e){const t=(e&4294901760)>>16,n=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(n&63488)>>11,(n&2016)>>5,(n&31)*2,0)}catch{}}function Sc(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function Fi(e,t){return e.getUint8(t)}function lt(e,t){return e.getUint16(t,!0)}function Xe(e,t){return e.getUint32(t,!0)}function xa(e,t){return Number(e.getBigUint64(t,!0))}function kg(e,t,n){e.setUint32(t,n,!0)}function ct(e){return new DataView(e.buffer)}const bg="File already exists",Ug="Zip file comment exceeds 64KB",Fg="File entry comment exceeds 64KB",Mg="File entry name exceeds 64KB",x_="Version exceeds 65535",$g="The strength must equal 1, 2, or 3",jg="Extra field type exceeds 65535",Hg="Extra field data exceeds 64KB",cf="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",y_=new Uint8Array([7,0,2,0,65,69,3,0,0]);let Nc=0;const S_=[];class Gg{constructor(t,n={}){t=qE(t);const r=t.availableSize!==Ie&&t.availableSize>0&&t.availableSize!==1/0&&t.maxSize!==Ie&&t.maxSize>0&&t.maxSize!==1/0;Object.assign(this,{writer:t,addSplitZipSignature:r,options:n,config:Q0(),files:new Map,filenames:new Set,offset:t.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(t="",n,r={}){const i=this,{pendingAddFileCalls:o,config:s}=i;NcS_.push(a));let l;try{if(t=t.trim(),i.filenames.has(t))throw new Error(bg);return i.filenames.add(t),l=zg(i,t,n,r),o.add(l),await l}catch(a){throw i.filenames.delete(t),a}finally{o.delete(l);const a=S_.shift();a?a():Nc--}}async close(t=new Uint8Array,n={}){const r=this,{pendingAddFileCalls:i,writer:o}=this,{writable:s}=o;for(;i.size;)await Promise.allSettled(Array.from(i));return await Jg(this,t,n),Be(r,n,"preventClose")||await s.getWriter().close(),o.getData?o.getData():s}}async function zg(e,t,n,r){t=t.trim(),r.directory&&!t.endsWith(Aa)?t+=Aa:r.directory=t.endsWith(Aa);const i=Be(e,r,"encodeText",ga);let o=i(t);if(o===Ie&&(o=ga(t)),ge(o)>Ye)throw new Error(Mg);const s=r.comment||"";let l=i(s);if(l===Ie&&(l=ga(s)),ge(l)>Ye)throw new Error(Fg);const a=Be(e,r,"version",pA);if(a>Ye)throw new Error(x_);const c=Be(e,r,"versionMadeBy",20);if(c>Ye)throw new Error(x_);const f=Be(e,r,ol,new Date),_=Be(e,r,af),E=Be(e,r,lf),O=Be(e,r,am,!0),w=Be(e,r,om,0),h=Be(e,r,sm,0),m=Be(e,r,"password"),u=Be(e,r,"rawPassword"),d=Be(e,r,"encryptionStrength",3),p=Be(e,r,"zipCrypto"),A=Be(e,r,"extendedTimestamp",!0),g=Be(e,r,"keepOrder",!0),L=Be(e,r,"level"),v=Be(e,r,"useWebWorkers"),T=Be(e,r,"bufferedWrite"),S=Be(e,r,"dataDescriptorSignature",!1),y=Be(e,r,"signal"),I=Be(e,r,"useUnicodeFileNames",!0),C=Be(e,r,"useCompressionStream");let R=Be(e,r,"dataDescriptor",!0),k=Be(e,r,lm);if(m!==Ie&&d!==Ie&&(d<1||d>3))throw new Error($g);let M=new Uint8Array;const{extraField:F}=r;if(F){let W=0,ue=0;F.forEach(j=>W+=4+ge(j)),M=new Uint8Array(W),F.forEach((j,P)=>{if(P>Ye)throw new Error(jg);if(ge(j)>Ye)throw new Error(Hg);tt(M,new Uint16Array([P]),ue),tt(M,new Uint16Array([ge(j)]),ue+2),tt(M,j,ue+4),ue+=4+ge(j)})}let ee=0,N=0,q=0;const D=k===!0;n&&(n=YE(n),await tn(n),n.size===Ie?(R=!0,(k||k===Ie)&&(k=!0,q=ee=Je+1)):(q=n.size,ee=ev(q)));const{diskOffset:se,diskNumber:X,maxSize:Y}=e.writer,de=D||q>Je,Te=D||ee>Je,_e=D||e.offset+e.pendingEntriesSize-se>Je,ne=Be(e,r,"supportZip64SplitFile",!0)&&D||X+Math.ceil(e.pendingEntriesSize/Y)>Ye;if(_e||de||Te||ne){if(k===!1||!g)throw new Error(cf);k=!0}k=k||!1,r=Object.assign({},r,{rawFilename:o,rawComment:l,version:a,versionMadeBy:c,lastModDate:f,lastAccessDate:_,creationDate:E,rawExtraField:M,zip64:k,zip64UncompressedSize:de,zip64CompressedSize:Te,zip64Offset:_e,zip64DiskNumberStart:ne,password:m,rawPassword:u,level:!C&&e.config.CompressionStream===Ie&&e.config.CompressionStreamNative===Ie?0:L,useWebWorkers:v,encryptionStrength:d,extendedTimestamp:A,zipCrypto:p,bufferedWrite:T,keepOrder:g,useUnicodeFileNames:I,dataDescriptor:R,dataDescriptorSignature:S,signal:y,msDosCompatible:O,internalFileAttribute:w,externalFileAttribute:h,useCompressionStream:C});const $=Zg(r),ie=Yg(r),ce=ge($.localHeaderArray,ie.dataDescriptorArray);N=ce+ee,e.options.usdz&&(N+=N+64),e.pendingEntriesSize+=N;let V;try{V=await Kg(e,t,n,{headerInfo:$,dataDescriptorInfo:ie,metadataSize:ce},r)}finally{e.pendingEntriesSize-=N}return Object.assign(V,{name:t,comment:s,extraField:F}),new ls(V)}async function Kg(e,t,n,r,i){const{files:o,writer:s}=e,{keepOrder:l,dataDescriptor:a,signal:c}=i,{headerInfo:f}=r,{usdz:_}=e.options,E=Array.from(o.values()).pop();let O={},w,h,m,u,d,p,A;o.set(t,O);try{let T;l&&(T=E&&E.lock,g()),(i.bufferedWrite||e.writerLocked||e.bufferedWrites&&l||!a)&&!_?(p=new TransformStream,A=new Response(p.readable).blob(),p.writable.size=0,w=!0,e.bufferedWrites++,await tn(s)):(p=s,await L()),await tn(p);const{writable:S}=s;let{diskOffset:y}=s;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const C=new Uint8Array(4),R=_t(C);Ae(R,0,q0),await jn(S,C),e.offset+=4}_&&Vg(r,e.offset-y),w||(await T,await v(S));const{diskNumber:I}=s;if(d=!0,O.diskNumberStart=I,O=await Wg(n,p,O,r,e.config,i),d=!1,o.set(t,O),O.filename=t,w){await p.writable.getWriter().close();let C=await A;await T,await L(),u=!0,a||(C=await Xg(O,C,S,i)),await v(S),O.diskNumberStart=s.diskNumber,y=s.diskOffset,await C.stream().pipeTo(S,{preventClose:!0,preventAbort:!0,signal:c}),S.size+=C.size,u=!1}if(O.offset=e.offset-y,O.zip64)Qg(O,i);else if(O.offset>Je)throw new Error(cf);return e.offset+=O.size,O}catch(T){if(w&&u||!w&&d){if(e.hasCorruptedEntries=!0,T)try{T.corruptedEntry=!0}catch{}w?e.offset+=p.writable.size:e.offset=p.writable.size}throw o.delete(t),T}finally{w&&e.bufferedWrites--,m&&m(),h&&h()}function g(){O.lock=new Promise(T=>m=T)}async function L(){e.writerLocked=!0;const{lockWriter:T}=e;e.lockWriter=new Promise(S=>h=()=>{e.writerLocked=!1,S()}),await T}async function v(T){ge(f.localHeaderArray)>s.availableSize&&(s.availableSize=0,await jn(T,new Uint8Array))}}async function Wg(e,t,{diskNumberStart:n,lock:r},i,o,s){const{headerInfo:l,dataDescriptorInfo:a,metadataSize:c}=i,{localHeaderArray:f,headerArray:_,lastModDate:E,rawLastModDate:O,encrypted:w,compressed:h,version:m,compressionMethod:u,rawExtraFieldExtendedTimestamp:d,extraFieldExtendedTimestampFlag:p,rawExtraFieldNTFS:A,rawExtraFieldAES:g}=l,{dataDescriptorArray:L}=a,{rawFilename:v,lastAccessDate:T,creationDate:S,password:y,rawPassword:I,level:C,zip64:R,zip64UncompressedSize:k,zip64CompressedSize:M,zip64Offset:F,zip64DiskNumberStart:ee,zipCrypto:N,dataDescriptor:q,directory:D,versionMadeBy:se,rawComment:X,rawExtraField:Y,useWebWorkers:de,onstart:Te,onprogress:_e,onend:Ne,signal:ne,encryptionStrength:$,extendedTimestamp:ie,msDosCompatible:ce,internalFileAttribute:V,externalFileAttribute:W,useCompressionStream:ue}=s,j={lock:r,versionMadeBy:se,zip64:R,directory:!!D,filenameUTF8:!0,rawFilename:v,commentUTF8:!0,rawComment:X,rawExtraFieldExtendedTimestamp:d,rawExtraFieldNTFS:A,rawExtraFieldAES:g,rawExtraField:Y,extendedTimestamp:ie,msDosCompatible:ce,internalFileAttribute:V,externalFileAttribute:W,diskNumberStart:n};let P=0,J=0,fe;const{writable:Le}=t;if(e){e.chunkSize=mE(o),await jn(Le,f);const Ee=e.readable,Pe=Ee.size=e.size,Ce={options:{codecType:kE,level:C,rawPassword:I,password:y,encryptionStrength:$,zipCrypto:w&&N,passwordVerification:w&&N&&O>>8&255,signed:!0,compressed:h,encrypted:w,useWebWorkers:de,useCompressionStream:ue,transferStreams:!1},config:o,streamOptions:{signal:ne,size:Pe,onstart:Te,onprogress:_e,onend:Ne}},De=await ME({readable:Ee,writable:Le},Ce);J=De.inputSize,P=De.outputSize,fe=De.signature,Le.size+=J}else await jn(Le,f);let pe;if(R){let Ee=4;k&&(Ee+=8),M&&(Ee+=8),F&&(Ee+=8),ee&&(Ee+=4),pe=new Uint8Array(Ee)}else pe=new Uint8Array;return qg({signature:fe,rawExtraFieldZip64:pe,compressedSize:P,uncompressedSize:J,headerInfo:l,dataDescriptorInfo:a},s),q&&await jn(Le,L),Object.assign(j,{uncompressedSize:J,compressedSize:P,lastModDate:E,rawLastModDate:O,creationDate:S,lastAccessDate:T,encrypted:w,size:c+P,compressionMethod:u,version:m,headerArray:_,signature:fe,rawExtraFieldZip64:pe,extraFieldExtendedTimestampFlag:p,zip64UncompressedSize:k,zip64CompressedSize:M,zip64Offset:F,zip64DiskNumberStart:ee}),j}function Zg(e){const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:i,rawPassword:o,password:s,level:l,zip64:a,zipCrypto:c,useUnicodeFileNames:f,dataDescriptor:_,directory:E,rawExtraField:O,encryptionStrength:w,extendedTimestamp:h}=e,m=l!==0&&!E,u=!!(s&&ge(s)||o&&ge(o));let d=e.version,p;if(u&&!c){p=new Uint8Array(ge(y_)+2);const N=_t(p);we(N,0,fE),tt(p,y_,2),sl(N,8,w)}else p=new Uint8Array;let A,g,L;if(h){g=new Uint8Array(9+(r?4:0)+(i?4:0));const N=_t(g);we(N,0,X0),we(N,2,ge(g)-4),L=1+(r?2:0)+(i?4:0),sl(N,4,L);let q=5;Ae(N,q,Math.floor(n.getTime()/1e3)),q+=4,r&&(Ae(N,q,Math.floor(r.getTime()/1e3)),q+=4),i&&Ae(N,q,Math.floor(i.getTime()/1e3));try{A=new Uint8Array(36);const D=_t(A),se=Ic(n);we(D,0,dE),we(D,2,32),we(D,8,_E),we(D,10,24),kt(D,12,se),kt(D,20,Ic(r)||se),kt(D,28,Ic(i)||se)}catch{A=new Uint8Array}}else A=g=new Uint8Array;let v=0;f&&(v=v|bu),_&&(v=v|ku);let T=oE;m&&(T=Bu),a&&(d=d>Qd?d:Qd),u&&(v=v|Du,c||(d=d>Jd?d:Jd,T=sE,m&&(p[9]=Bu)));const S=new Uint8Array(26),y=_t(S);we(y,0,d),we(y,2,v),we(y,4,T);const I=new Uint32Array(1),C=_t(I);let R;ne_?R=e_:R=n,we(C,0,(R.getHours()<<6|R.getMinutes())<<5|R.getSeconds()/2),we(C,2,(R.getFullYear()-1980<<4|R.getMonth()+1)<<5|R.getDate());const k=I[0];Ae(y,6,k),we(y,22,ge(t));const M=ge(p,g,A,O);we(y,24,M);const F=new Uint8Array(30+ge(t)+M),ee=_t(F);return Ae(ee,0,aE),tt(F,S,4),tt(F,t,30),tt(F,p,30+ge(t)),tt(F,g,30+ge(t,p)),tt(F,A,30+ge(t,p,g)),tt(F,O,30+ge(t,p,g,A)),{localHeaderArray:F,headerArray:S,headerView:y,lastModDate:n,rawLastModDate:k,encrypted:u,compressed:m,version:d,compressionMethod:T,extraFieldExtendedTimestampFlag:L,rawExtraFieldExtendedTimestamp:g,rawExtraFieldNTFS:A,rawExtraFieldAES:p,extraFieldLength:M}}function Vg(e,t){const{headerInfo:n}=e;let{localHeaderArray:r,extraFieldLength:i}=n,o=_t(r),s=64-(t+ge(r))%64;s<4&&(s+=64);const l=new Uint8Array(s),a=_t(l);we(a,0,pE),we(a,2,s-2);const c=r;n.localHeaderArray=r=new Uint8Array(ge(c)+s),tt(r,c),tt(r,l,ge(c)),o=_t(r),we(o,28,i+s),e.metadataSize+=s}function Yg(e){const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let i=new Uint8Array,o,s=0;return n&&(i=new Uint8Array(t?r?24:20:r?16:12),o=_t(i),r&&(s=4,Ae(o,0,cA))),{dataDescriptorArray:i,dataDescriptorView:o,dataDescriptorOffset:s}}function qg(e,t){const{signature:n,rawExtraFieldZip64:r,compressedSize:i,uncompressedSize:o,headerInfo:s,dataDescriptorInfo:l}=e,{headerView:a,encrypted:c}=s,{dataDescriptorView:f,dataDescriptorOffset:_}=l,{zip64:E,zip64UncompressedSize:O,zip64CompressedSize:w,zipCrypto:h,dataDescriptor:m}=t;if((!c||h)&&n!==Ie&&(Ae(a,10,n),m&&Ae(f,_,n)),E){const u=_t(r);we(u,0,uE),we(u,2,ge(r)-4);let d=4;O&&(Ae(a,18,Je),kt(u,d,BigInt(o)),d+=8),w&&(Ae(a,14,Je),kt(u,d,BigInt(i))),m&&(kt(f,_+4,BigInt(i)),kt(f,_+12,BigInt(o)))}else Ae(a,14,i),Ae(a,18,o),m&&(Ae(f,_+4,i),Ae(f,_+8,o))}async function Xg(e,t,n,{zipCrypto:r}){let i;i=await t.slice(0,26).arrayBuffer(),i.byteLength!=26&&(i=i.slice(0,26));const o=new DataView(i);return(!e.encrypted||r)&&Ae(o,14,e.signature),e.zip64?(Ae(o,18,Je),Ae(o,22,Je)):(Ae(o,18,e.compressedSize),Ae(o,22,e.uncompressedSize)),await jn(n,new Uint8Array(i)),t.slice(i.byteLength)}function Qg(e,t){const{rawExtraFieldZip64:n,offset:r,diskNumberStart:i}=e,{zip64UncompressedSize:o,zip64CompressedSize:s,zip64Offset:l,zip64DiskNumberStart:a}=t,c=_t(n);let f=4;o&&(f+=8),s&&(f+=8),l&&(kt(c,f,BigInt(r)),f+=8),a&&Ae(c,f,i)}async function Jg(e,t,n){const{files:r,writer:i}=e,{diskOffset:o,writable:s}=i;let{diskNumber:l}=i,a=0,c=0,f=e.offset-o,_=r.size;for(const[,g]of r){const{rawFilename:L,rawExtraFieldZip64:v,rawExtraFieldAES:T,rawComment:S,rawExtraFieldNTFS:y,rawExtraField:I,extendedTimestamp:C,extraFieldExtendedTimestampFlag:R,lastModDate:k}=g;let M;if(C){M=new Uint8Array(9);const F=_t(M);we(F,0,X0),we(F,2,5),sl(F,4,R),Ae(F,5,Math.floor(k.getTime()/1e3))}else M=new Uint8Array;g.rawExtraFieldCDExtendedTimestamp=M,c+=46+ge(L,S,v,T,y,M,I)}const E=new Uint8Array(c),O=_t(E);await tn(i);let w=0;for(const[g,L]of Array.from(r.values()).entries()){const{offset:v,rawFilename:T,rawExtraFieldZip64:S,rawExtraFieldAES:y,rawExtraFieldCDExtendedTimestamp:I,rawExtraFieldNTFS:C,rawExtraField:R,rawComment:k,versionMadeBy:M,headerArray:F,directory:ee,zip64:N,zip64UncompressedSize:q,zip64CompressedSize:D,zip64DiskNumberStart:se,zip64Offset:X,msDosCompatible:Y,internalFileAttribute:de,externalFileAttribute:Te,diskNumberStart:_e,uncompressedSize:Ne,compressedSize:ne}=L,$=ge(S,y,I,C,R);Ae(O,a,Pu),we(O,a+4,M);const ie=_t(F);q||Ae(ie,18,Ne),D||Ae(ie,14,ne),tt(E,F,a+6),we(O,a+30,$),we(O,a+32,ge(k)),we(O,a+34,N&&se?Ye:_e),we(O,a+36,de),Te?Ae(O,a+38,Te):ee&&Y&&sl(O,a+38,Uu),Ae(O,a+42,N&&X?Je:v),tt(E,T,a+46),tt(E,S,a+46+ge(T)),tt(E,y,a+46+ge(T,S)),tt(E,I,a+46+ge(T,S,y)),tt(E,C,a+46+ge(T,S,y,I)),tt(E,R,a+46+ge(T,S,y,I,C)),tt(E,k,a+46+ge(T)+$);const ce=46+ge(T,k)+$;if(a-w>i.availableSize&&(i.availableSize=0,await jn(s,E.slice(w,a)),w=a),a+=ce,n.onprogress)try{await n.onprogress(g+1,r.size,new ls(L))}catch{}}await jn(s,w?E.slice(w):E);let h=i.diskNumber;const{availableSize:m}=i;mJe||c>Je||_>Ye||h>Ye){if(u===!1)throw new Error(cf);u=!0}const d=new Uint8Array(u?uA:un),p=_t(d);a=0,u&&(Ae(p,0,Cu),kt(p,4,BigInt(44)),we(p,12,45),we(p,14,45),Ae(p,16,h),Ae(p,20,l),kt(p,24,BigInt(_)),kt(p,32,BigInt(_)),kt(p,40,BigInt(c)),kt(p,48,BigInt(f)),Ae(p,56,cE),kt(p,64,BigInt(f)+BigInt(c)),Ae(p,72,h+1),Be(e,n,"supportZip64SplitFile",!0)&&(h=Ye,l=Ye),_=Ye,f=Je,c=Je,a+=Fo+Uo),Ae(p,a,lE),we(p,a+4,h),we(p,a+6,l),we(p,a+8,_),we(p,a+10,_),Ae(p,a+12,c),Ae(p,a+16,f);const A=ge(t);if(A)if(A<=Ye)we(p,a+20,A);else throw new Error(Ug);await jn(s,d),A&&await jn(s,t)}async function jn(e,t){const n=e.getWriter();try{await n.ready,e.size+=ge(t),await n.write(t)}finally{n.releaseLock()}}function Ic(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function Be(e,t,n,r){const i=t[n]===Ie?e.options[n]:t[n];return i===Ie?r:i}function ev(e){return e+5*(Math.floor(e/16383)+1)}function sl(e,t,n){e.setUint8(t,n)}function we(e,t,n){e.setUint16(t,n,!0)}function Ae(e,t,n){e.setUint32(t,n,!0)}function kt(e,t,n){e.setBigUint64(t,n,!0)}function tt(e,t,n){e.set(t,n)}function _t(e){return new DataView(e.buffer)}function ge(...e){let t=0;return e.forEach(n=>n&&(t+=n.length)),t}class fm{constructor(t,n,r,i){const o=this;if(t.root&&i&&i.getChildByName(n))throw new Error("Entry filename already exists");r||(r={}),Object.assign(o,{fs:t,name:n,data:r.data,options:r.options,id:t.entries.length,parent:i,children:[],uncompressedSize:r.uncompressedSize||0}),t.entries.push(o),i&&o.parent.children.push(o)}moveTo(t){const n=this;n.fs.move(n,t)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){const n=this;let r=n.name,i=n.parent;for(;i&&i!=t;)r=(i.name?i.name+"/":"")+r,i=i.parent;return r}isDescendantOf(t){let n=this.parent;for(;n&&n.id!=t.id;)n=n.parent;return!!n}rename(t){const n=this.parent;if(n&&n.getChildByName(t))throw new Error("Entry filename already exists");this.name=t}}class Cl extends fm{constructor(t,n,r,i){super(t,n,r,i);const o=this;o.Reader=r.Reader,o.Writer=r.Writer,r.getData&&(o.getData=r.getData)}clone(){return new Cl(this.fs,this.name,this)}async getData(t,n={}){const r=this;if(!t||t.constructor==r.Writer&&r.data)return r.data;{const i=r.reader=new r.Reader(r.data,n),o=r.data?r.data.uncompressedSize:i.size;await Promise.all([tn(i),tn(t,o)]);const s=i.readable;return s.size=r.uncompressedSize=i.size,await s.pipeTo(t.writable),t.getData?t.getData():t.writable}}isPasswordProtected(){return this.data.encrypted}async checkPassword(t,n={}){const r=this;if(r.isPasswordProtected()){n.password=t,n.checkPasswordOnly=!0;try{return await r.data.getData(null,n),!0}catch(i){if(i.message==J0)return!1;throw i}}else return!0}getText(t,n){return this.getData(new $u(t),n)}getBlob(t,n){return this.getData(new Zi(t),n)}getData64URI(t,n){return this.getData(new rl(t),n)}getUint8Array(t){return this.getData(new il,t)}getWritable(t=new WritableStream,n){return this.getData({writable:t},n)}replaceBlob(t){Object.assign(this,{data:t,Reader:Wi,Writer:Zi,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:GE,Writer:$u,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:Mu,Writer:rl,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Gu,Writer:il,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:function(){return{readable:t}},Writer:null,reader:null})}}class Vi extends fm{constructor(t,n,r,i){super(t,n,r,i),this.directory=!0}clone(t){const n=this,r=new Vi(n.fs,n.name);return t&&(r.children=n.children.map(i=>{const o=i.clone(t);return o.parent=r,o})),r}addDirectory(t,n){return Fn(this,t,{options:n},!0)}addText(t,n,r={}){return Fn(this,t,{data:n,Reader:GE,Writer:$u,options:r,uncompressedSize:n.length})}addBlob(t,n,r={}){return Fn(this,t,{data:n,Reader:Wi,Writer:Zi,options:r,uncompressedSize:n.size})}addData64URI(t,n,r={}){let i=n.length;for(;n.charAt(i-1)=="=";)i--;const o=n.indexOf(",")+1;return Fn(this,t,{data:n,Reader:Mu,Writer:rl,options:r,uncompressedSize:Math.floor((i-o)*.75)})}addUint8Array(t,n,r={}){return Fn(this,t,{data:n,Reader:Gu,Writer:il,options:r,uncompressedSize:n.length})}addHttpContent(t,n,r={}){return Fn(this,t,{data:n,Reader:class extends h_{constructor(i){super(i,r)}},options:r})}addReadable(t,n,r={}){return Fn(this,t,{Reader:function(){return{readable:n}},options:r})}addFileSystemEntry(t,n={}){return I_(this,t,n)}addFileSystemHandle(t,n={}){return I_(this,t,n)}addFile(t,n={}){return n.lastModDate||(n.lastModDate=new Date(t.lastModified)),Fn(this,t.name,{data:t,Reader:function(){const r=t.stream(),i=t.size;return{readable:r,size:i}},options:n,uncompressedSize:t.size})}addData(t,n){return Fn(this,t,n)}importBlob(t,n){return this.importZip(new Wi(t),n)}importData64URI(t,n){return this.importZip(new Mu(t),n)}importUint8Array(t,n){return this.importZip(new Gu(t),n)}importHttpContent(t,n){return this.importZip(new h_(t,n),n)}importReadable(t,n){return this.importZip({readable:t},n)}exportBlob(t={}){return this.exportZip(new Zi(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new rl(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new il,t)}async exportWritable(t=new WritableStream,n={}){return await this.exportZip({writable:t},n),t}async importZip(t,n={}){await tn(t);const r=new Sg(t,n),i=[],o=await r.getEntries();for(const s of o){let l=this;try{const a=s.filename.split("/"),c=a.pop();a.forEach((f,_)=>{const E=l;l=l.getChildByName(f),l||(l=new Vi(this.fs,f,{data:_==a.length-1?s:null},E),i.push(l))}),s.directory||i.push(Fn(l,c,{data:s,Reader:iv(Object.assign({},n)),uncompressedSize:s.uncompressedSize}))}catch(a){try{a.cause={entry:s}}catch{}throw a}}return i}async exportZip(t,n){const r=this;n.bufferedWrite===Ie&&(n.bufferedWrite=!0),await Promise.all([dm(r,n.readerOptions),tn(t)]);const i=new Gg(t,n);return await ov(i,r,rv([r],"uncompressedSize"),n),await i.close(),t.getData?t.getData():t.writable}getChildByName(t){const n=this.children;for(let r=0;ro.checkPassword(t,n)))).includes(!1)}}let tv=class{constructor(){Ei(this)}get children(){return this.root.children}remove(t){N_(t),this.entries[t.id]=null}move(t,n){if(t==this.root)throw new Error("Root directory cannot be moved");if(n.directory){if(n.isDescendantOf(t))throw new Error("Entry is a ancestor of target entry");if(t!=n){if(n.getChildByName(t.name))throw new Error("Entry filename already exists");N_(t),t.parent=n,n.children.push(t)}}else throw new Error("Target entry is not a directory")}find(t){const n=t.split("/");let r=this.root;for(let i=0;r&&i{if(n.directory)await dm(n,t);else{const r=n.reader=new n.Reader(n.data,t);try{await tn(r)}catch(i){try{i.entryId=n.id,i.cause={entry:n}}catch{}throw i}n.uncompressedSize=r.size}}))}function N_(e){if(e.parent){const t=e.parent.children;t.forEach((n,r)=>{n.id==e.id&&t.splice(r,1)})}}async function ov(e,t,n,r){const i=t,o=new Map;await s(e,t);async function s(l,a){await c();async function c(){if(r.bufferedWrite)await Promise.allSettled(a.children.map(f));else for(const _ of a.children)await f(_)}async function f(_){const E=r.relativePath?_.getRelativeName(i):_.getFullname();let O=_.options||{},w={};if(_.data instanceof ls){const{externalFileAttribute:h,versionMadeBy:m,comment:u,lastModDate:d,creationDate:p,lastAccessDate:A}=_.data;w={externalFileAttribute:h,versionMadeBy:m,comment:u,lastModDate:d,creationDate:p,lastAccessDate:A}}await l.add(E,_.reader,Object.assign({directory:_.directory},Object.assign({},r,w,O,{onprogress:async h=>{if(r.onprogress){o.set(E,h);try{await r.onprogress(Array.from(o.values()).reduce((m,u)=>m+u),n)}catch{}}}}))),await s(l,_)}}}async function I_(e,t,n){return r(e,t,[]);async function r(i,o,s){if(o)try{if((o.isFile||o.isDirectory)&&(o=await _m(o)),o.kind=="file"){const l=await o.getFile();s.push(i.addData(l.name,{Reader:function(){const a=l.stream(),c=l.size;return{readable:a,size:c}},options:Object.assign({},{lastModDate:new Date(l.lastModified)},n),uncompressedSize:l.size}))}else if(o.kind=="directory"){const l=i.addDirectory(o.name);s.push(l);for await(const a of o.values())await r(l,a,s)}}catch(l){const a=l.message+(o?" ("+o.name+")":"");throw new Error(a)}return s}}async function _m(e){const t={name:e.name};if(e.isFile&&(t.kind="file",t.getFile=()=>new Promise((n,r)=>e.file(n,r))),e.isDirectory){t.kind="directory";const n=await sv(e);t.values=()=>n}return t}async function sv(e){const t=[];function n(r,i,o){r.readEntries(async s=>{if(!s.length)i(t);else{for(const l of s)t.push(await _m(l));n(r,i,o)}},o)}return await new Promise((r,i)=>n(e.createReader(),r,i)),{[Symbol.iterator](){let r=0;return{next(){const i={value:t[r],done:r===t.length};return r++,i}}}}}function Ei(e){e.entries=[],e.root=new Vi(e)}function Fn(e,t,n,r){if(e.directory)return r?new Vi(e.fs,t,n,e):new Cl(e.fs,t,n,e);throw new Error("Parent entry is not a directory")}let pm;try{pm=import.meta.url}catch{}Il({baseURL:pm});JA(Il);Il({Deflate:jO,Inflate:lA});const{FS:av}=nv;function Em(){return new av}const R_=Object.freeze(Object.defineProperty({__proto__:null,configure:Il,createZipFileSystem:Em},Symbol.toStringTag,{value:"Module"})),lv=".",cv="?shared-files",uv="/shared-files",fv=lv+uv,dv="shared-files";async function _v(e){const t=pv();if(t&&(Ev(),t===cv)){const i=await(await fetch(fv)).formData();e(i.getAll(dv))}}function pv(){return location.search}function Ev(){return history.replaceState(null,null,location.pathname)}const mv=Object.freeze(Object.defineProperty({__proto__:null,onShareFiles:_v},Symbol.toStringTag,{value:"Module"}));function Tv(e){"launchQueue"in window&&launchQueue.setConsumer(t=>{hv(t,e)})}async function hv(e,t){e.files.length&&await Promise.all(e.files.map(async n=>t(await n.getFile())))}const Lv=Object.freeze(Object.defineProperty({__proto__:null,onOpenWith:Tv},Symbol.toStringTag,{value:"Module"})),Wu=document.createElement("style");document.head.appendChild(Wu);function Ov(e,t){const n=Array.from(Wu.sheet.rules).find(r=>r.style.getPropertyValue(e));n?n.style.setProperty(e,t):Wu.sheet.insertRule(":root { "+e+": "+t+"}")}const Rc=Object.freeze(Object.defineProperty({__proto__:null,setStyle:Ov},Symbol.toStringTag,{value:"Module"})),Av=["Macintosh","MacIntel","MacPPC","Mac68K"];function gv(){return navigator.hardwareConcurrency}function vv(){const{platform:e}=navigator;return e!==void 0&&Av.includes(e)}const B_=Object.freeze(Object.defineProperty({__proto__:null,getMaximumWorkers:gv,isMacOSPlatform:vv},Symbol.toStringTag,{value:"Module"})),mm="keyup",Tm="keydown";function wv(e){addEventListener(mm,e)}function xv(e){removeEventListener(mm,e)}function yv(e){addEventListener(Tm,e)}function Sv(e){removeEventListener(Tm,e)}const Nv=Object.freeze(Object.defineProperty({__proto__:null,addKeyDownListener:yv,addKeyUpListener:wv,removeKeyDownListener:Sv,removeKeyUpListener:xv},Symbol.toStringTag,{value:"Module"})),Iv="--accent-color";function Rv({accentColor:e,skin:t}){const n=[t],r=Bv(e);r>224?n.push("dark"):r<32&&n.push("light"),document.documentElement.className=n.join(" ")}function Bv(e){const t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16);return Math.round((t*299+n*587+r*114)/1e3)}const P_=Object.freeze(Object.defineProperty({__proto__:null,ACCENT_COLOR_CUSTOM_PROPERTY_NAME:Iv,setTheme:Rv},Symbol.toStringTag,{value:"Module"}));function Pv(e){e.scrollIntoView({block:"nearest"})}function hm(e){return e.offsetHeight}function Cv(e){const t=parseInt(getComputedStyle(e.parentElement).rowGap,10);return hm(e)+(Number.isNaN(t)?0:t)}function Dv(e){document.documentElement.removeAttribute(e)}function kv(e,t){const n=new ResizeObserver(t);return n.observe(e,{attributes:!0}),n}function bv(e){document.documentElement.lang=e}const C_=Object.freeze(Object.defineProperty({__proto__:null,addResizeObserver:kv,getHeight:hm,getRowHeight:Cv,removeDocumentAttribute:Dv,scrollIntoView:Pv,setDocumentLanguage:bv},Symbol.toStringTag,{value:"Module"})),Lm="resize",Om="beforeunload";function Uv(e){addEventListener(Om,e)}function Fv(e){removeEventListener(Om,e)}function Mv(e){addEventListener(Lm,e)}function $v(e){removeEventListener(Lm,e)}const D_=Object.freeze(Object.defineProperty({__proto__:null,addResizeListener:Mv,addUnloadListener:Uv,removeResizeListener:$v,removeUnloadListener:Fv},Symbol.toStringTag,{value:"Module"}));function jv(e){Object.assign(e,{properties:{masterVol:{type:Number,value:.5,observer:"setMasterVol"},reverbLev:{type:Number,value:.3,observer:"setReverbLev"},quality:{type:Number,value:1,observer:"setQuality"},loop:{type:Number,value:0},internalcontext:{type:Number,value:1},tsmode:{type:Number,value:0},voices:{type:Number,value:64},useReverb:{type:Number,value:1}},program:[{name:"Acoustic Grand Piano"},{name:"Bright Acoustic Piano"},{name:"Electric Grand Piano"},{name:"Honky-tonk Piano"},{name:"Electric Piano 1"},{name:"Electric Piano 2"},{name:"Harpsichord"},{name:"Clavi"},{name:"Celesta"},{name:"Glockenspiel"},{name:"Music Box"},{name:"Vibraphone"},{name:"Marimba"},{name:"Xylophone"},{name:"Tubular Bells"},{name:"Dulcimer"},{name:"Drawbar Organ"},{name:"Percussive Organ"},{name:"Rock Organ"},{name:"Church Organ"},{name:"Reed Organ"},{name:"Accordion"},{name:"Harmonica"},{name:"Tango Accordion"},{name:"Acoustic Guitar (nylon)"},{name:"Acoustic Guitar (steel)"},{name:"Electric Guitar (jazz)"},{name:"Electric Guitar (clean)"},{name:"Electric Guitar (muted)"},{name:"Overdriven Guitar"},{name:"Distortion Guitar"},{name:"Guitar harmonics"},{name:"Acoustic Bass"},{name:"Electric Bass (finger)"},{name:"Electric Bass (pick)"},{name:"Fretless Bass"},{name:"Slap Bass 1"},{name:"Slap Bass 2"},{name:"Synth Bass 1"},{name:"Synth Bass 2"},{name:"Violin"},{name:"Viola"},{name:"Cello"},{name:"Contrabass"},{name:"Tremolo Strings"},{name:"Pizzicato Strings"},{name:"Orchestral Harp"},{name:"Timpani"},{name:"String Ensemble 1"},{name:"String Ensemble 2"},{name:"SynthStrings 1"},{name:"SynthStrings 2"},{name:"Choir Aahs"},{name:"Voice Oohs"},{name:"Synth Voice"},{name:"Orchestra Hit"},{name:"Trumpet"},{name:"Trombone"},{name:"Tuba"},{name:"Muted Trumpet"},{name:"French Horn"},{name:"Brass Section"},{name:"SynthBrass 1"},{name:"SynthBrass 2"},{name:"Soprano Sax"},{name:"Alto Sax"},{name:"Tenor Sax"},{name:"Baritone Sax"},{name:"Oboe"},{name:"English Horn"},{name:"Bassoon"},{name:"Clarinet"},{name:"Piccolo"},{name:"Flute"},{name:"Recorder"},{name:"Pan Flute"},{name:"Blown Bottle"},{name:"Shakuhachi"},{name:"Whistle"},{name:"Ocarina"},{name:"Lead 1 (square)"},{name:"Lead 2 (sawtooth)"},{name:"Lead 3 (calliope)"},{name:"Lead 4 (chiff)"},{name:"Lead 5 (charang)"},{name:"Lead 6 (voice)"},{name:"Lead 7 (fifths)"},{name:"Lead 8 (bass + lead)"},{name:"Pad 1 (new age)"},{name:"Pad 2 (warm)"},{name:"Pad 3 (polysynth)"},{name:"Pad 4 (choir)"},{name:"Pad 5 (bowed)"},{name:"Pad 6 (metallic)"},{name:"Pad 7 (halo)"},{name:"Pad 8 (sweep)"},{name:"FX 1 (rain)"},{name:"FX 2 (soundtrack)"},{name:"FX 3 (crystal)"},{name:"FX 4 (atmosphere)"},{name:"FX 5 (brightness)"},{name:"FX 6 (goblins)"},{name:"FX 7 (echoes)"},{name:"FX 8 (sci-fi)"},{name:"Sitar"},{name:"Banjo"},{name:"Shamisen"},{name:"Koto"},{name:"Kalimba"},{name:"Bag pipe"},{name:"Fiddle"},{name:"Shanai"},{name:"Tinkle Bell"},{name:"Agogo"},{name:"Steel Drums"},{name:"Woodblock"},{name:"Taiko Drum"},{name:"Melodic Tom"},{name:"Synth Drum"},{name:"Reverse Cymbal"},{name:"Guitar Fret Noise"},{name:"Breath Noise"},{name:"Seashore"},{name:"Bird Tweet"},{name:"Telephone Ring"},{name:"Helicopter"},{name:"Applause"},{name:"Gunshot"}],drummap:[{name:"Acoustic Bass Drum"},{name:"Bass Drum 1"},{name:"Side Stick"},{name:"Acoustic Snare"},{name:"Hand Clap"},{name:"Electric Snare"},{name:"Low Floor Tom"},{name:"Closed Hi Hat"},{name:"High Floor Tom"},{name:"Pedal Hi-Hat"},{name:"Low Tom"},{name:"Open Hi-Hat"},{name:"Low-Mid Tom"},{name:"Hi-Mid Tom"},{name:"Crash Cymbal 1"},{name:"High Tom"},{name:"Ride Cymbal 1"},{name:"Chinese Cymbal"},{name:"Ride Bell"},{name:"Tambourine"},{name:"Splash Cymbal"},{name:"Cowbell"},{name:"Crash Cymbal 2"},{name:"Vibraslap"},{name:"Ride Cymbal 2"},{name:"Hi Bongo"},{name:"Low Bongo"},{name:"Mute Hi Conga"},{name:"Open Hi Conga"},{name:"Low Conga"},{name:"High Timbale"},{name:"Low Timbale"},{name:"High Agogo"},{name:"Low Agogo"},{name:"Cabasa"},{name:"Maracas"},{name:"Short Whistle"},{name:"Long Whistle"},{name:"Short Guiro"},{name:"Long Guiro"},{name:"Claves"},{name:"Hi Wood Block"},{name:"Low Wood Block"},{name:"Mute Cuica"},{name:"Open Cuica"},{name:"Mute Triangle"},{name:"Open Triangle"}],program1:[[{w:"sine",v:.4,d:.7,r:.1},{w:"triangle",v:3,d:.7,s:.1,g:1,a:.01,k:-1.2}],[{w:"triangle",v:.4,d:.7,r:.1},{w:"triangle",v:4,t:3,d:.4,s:.1,g:1,k:-1,a:.01}],[{w:"sine",d:.7,r:.1},{w:"triangle",v:4,f:2,d:.5,s:.5,g:1,k:-1}],[{w:"sine",d:.7,v:.2},{w:"triangle",v:4,t:3,f:2,d:.3,g:1,k:-1,a:.01,s:.5}],[{w:"sine",v:.35,d:.7},{w:"sine",v:3,t:7,f:1,d:1,s:1,g:1,k:-.7}],[{w:"sine",v:.35,d:.7},{w:"sine",v:8,t:7,f:1,d:.5,s:1,g:1,k:-.7}],[{w:"sawtooth",v:.34,d:2},{w:"sine",v:8,f:.1,d:2,s:1,r:2,g:1}],[{w:"triangle",v:.34,d:1.5},{w:"square",v:6,f:.1,d:1.5,s:.5,r:2,g:1}],[{w:"sine",d:.3,r:.3},{w:"sine",v:7,t:11,d:.03,g:1}],[{w:"sine",d:.3,r:.3},{w:"sine",v:11,t:6,d:.2,s:.4,g:1}],[{w:"sine",v:.2,d:.3,r:.3},{w:"sine",v:11,t:5,d:.1,s:.4,g:1}],[{w:"sine",v:.2,d:.6,r:.6},{w:"triangle",v:11,t:5,f:1,s:.5,g:1}],[{w:"sine",v:.3,d:.2,r:.2},{w:"sine",v:6,t:5,d:.02,g:1}],[{w:"sine",v:.3,d:.2,r:.2},{w:"sine",v:7,t:11,d:.03,g:1}],[{w:"sine",v:.2,d:1,r:1},{w:"sine",v:11,t:3.5,d:1,r:1,g:1}],[{w:"triangle",v:.2,d:.5,r:.2},{w:"sine",v:6,t:2.5,d:.2,s:.1,r:.2,g:1}],[{w:"w9999",v:.22,s:.9},{w:"w9999",v:.22,t:2,f:2,s:.9}],[{w:"w9999",v:.2,s:1},{w:"sine",v:11,t:6,f:2,s:.1,g:1,h:.006,r:.002,d:.002},{w:"w9999",v:.2,t:2,f:1,h:0,s:1}],[{w:"w9999",v:.2,d:.1,s:.9},{w:"w9999",v:.25,t:4,f:2,s:.5}],[{w:"w9999",v:.3,a:.04,s:.9},{w:"w9999",v:.2,t:8,f:2,a:.04,s:.9}],[{w:"sine",v:.2,a:.02,d:.05,s:1},{w:"sine",v:6,t:3,f:1,a:.02,d:.05,s:1,g:1}],[{w:"triangle",v:.2,a:.02,d:.05,s:.8},{w:"square",v:7,t:3,f:1,d:.05,s:1.5,g:1}],[{w:"square",v:.2,a:.02,d:.2,s:.5},{w:"square",v:1,d:.03,s:2,g:1}],[{w:"square",v:.2,a:.02,d:.1,s:.8},{w:"square",v:1,a:.3,d:.1,s:2,g:1}],[{w:"sine",v:.3,d:.5,f:1},{w:"triangle",v:5,t:3,f:-1,d:1,s:.1,g:1}],[{w:"sine",v:.4,d:.6,f:1},{w:"triangle",v:12,t:3,d:.6,s:.1,g:1,f:-1}],[{w:"triangle",v:.3,d:1,f:1},{w:"triangle",v:6,f:-1,d:.4,s:.5,g:1,t:3}],[{w:"sine",v:.3,d:1,f:-1},{w:"triangle",v:11,f:1,d:.4,s:.5,g:1,t:3}],[{w:"sine",v:.4,d:.1,r:.01},{w:"sine",v:7,g:1}],[{w:"triangle",v:.4,d:1,f:1},{w:"square",v:4,f:-1,d:1,s:.7,g:1}],[{w:"triangle",v:.35,d:1,f:1},{w:"square",v:7,f:-1,d:.3,s:.5,g:1}],[{w:"sine",v:.2,t:1.5,a:.005,h:.2,d:.6},{w:"sine",v:11,t:5,f:2,d:1,s:.5,g:1}],[{w:"sine",d:.3},{w:"sine",v:4,t:3,d:1,s:1,g:1}],[{w:"sine",d:.3},{w:"sine",v:4,t:3,d:1,s:1,g:1}],[{w:"w9999",d:.3,v:.7,s:.5},{w:"sawtooth",v:1.2,d:.02,s:.5,g:1,h:0,r:.02}],[{w:"sine",d:.3},{w:"sine",v:4,t:3,d:1,s:1,g:1}],[{w:"triangle",v:.3,t:2,d:1},{w:"triangle",v:15,t:2.5,d:.04,s:.1,g:1}],[{w:"triangle",v:.3,t:2,d:1},{w:"triangle",v:15,t:2.5,d:.04,s:.1,g:1}],[{w:"triangle",d:.7},{w:"square",v:.4,t:.5,f:1,d:.2,s:10,g:1}],[{w:"triangle",d:.7},{w:"square",v:.4,t:.5,f:1,d:.2,s:10,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,d:11,s:.2,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,d:11,s:.2,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,t:.5,d:11,s:.2,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,t:.5,d:11,s:.2,g:1}],[{w:"sine",v:.4,a:.1,d:11},{w:"sine",v:6,f:2.5,d:.05,s:1.1,g:1}],[{w:"sine",v:.3,d:.1,r:.1},{w:"square",v:4,t:3,d:1,s:.2,g:1}],[{w:"sine",v:.3,d:.5,r:.5},{w:"sine",v:7,t:2,f:2,d:1,r:1,g:1}],[{w:"triangle",v:.6,h:.03,d:.3,r:.3,t:.5},{w:"n0",v:8,t:1.5,d:.08,r:.08,g:1}],[{w:"sawtooth",v:.3,a:.03,s:.5},{w:"sawtooth",v:.2,t:2,f:2,d:1,s:2}],[{w:"sawtooth",v:.3,f:-2,a:.03,s:.5},{w:"sawtooth",v:.2,t:2,f:2,d:1,s:2}],[{w:"sawtooth",v:.2,a:.02,s:1},{w:"sawtooth",v:.2,t:2,f:2,a:1,d:1,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1},{w:"sawtooth",v:.2,f:2,a:.02,d:1,s:1}],[{w:"triangle",v:.3,a:.03,s:1},{w:"sine",v:3,t:5,f:1,d:1,s:1,g:1}],[{w:"sine",v:.4,a:.03,s:.9},{w:"sine",v:1,t:2,f:3,d:.03,s:.2,g:1}],[{w:"triangle",v:.6,a:.05,s:.5},{w:"sine",v:1,f:.8,d:.2,s:.2,g:1}],[{w:"square",v:.15,a:.01,d:.2,r:.2,t:.5,h:.03},{w:"square",v:4,f:.5,d:.2,r:11,a:.01,g:1,h:.02},{w:"square",v:.15,t:4,f:1,a:.02,d:.15,r:.15,h:.03},{g:3,w:"square",v:4,f:-.5,a:.01,h:.02,d:.15,r:11}],[{w:"square",v:.2,a:.01,d:1,s:.6,r:.04},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.5,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.04,d:1,s:.4,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.15,a:.04,s:1},{w:"sine",v:2,d:.1,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.5,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.6,r:.08},{w:"sine",v:1,f:.2,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:.5,s:.7,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.5,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:2,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"square",v:.2,a:.02,d:2,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"sine",v:.4,a:.02,d:.7,s:.5},{w:"square",v:5,t:2,d:.2,s:.5,g:1}],[{w:"sine",v:.3,a:.05,d:.2,s:.8},{w:"sawtooth",v:6,f:.1,d:.1,s:.3,g:1}],[{w:"sine",v:.3,a:.03,d:.2,s:.4},{w:"square",v:7,f:.2,d:1,s:.1,g:1}],[{w:"square",v:.2,a:.05,d:.1,s:.8},{w:"square",v:4,d:.1,s:1.1,g:1}],[{w:"sine",a:.02,d:2},{w:"sine",v:6,t:2,d:.04,g:1}],[{w:"sine",v:.7,a:.03,d:.4,s:.4},{w:"sine",v:4,t:2,f:.2,d:.4,g:1}],[{w:"sine",v:.7,a:.02,d:.4,s:.6},{w:"sine",v:3,t:2,d:0,s:1,g:1}],[{w:"sine",v:.4,a:.06,d:.3,s:.3},{w:"sine",v:7,t:2,d:.2,s:.2,g:1}],[{w:"sine",a:.02,d:.3,s:.3},{w:"sawtooth",v:3,t:2,d:.3,g:1}],[{w:"sine",v:.4,a:.02,d:2,s:.1},{w:"sawtooth",v:8,t:2,f:1,d:.5,g:1}],[{w:"sine",v:.7,a:.03,d:.5,s:.3},{w:"sine",v:.003,t:0,f:4,d:.1,s:.002,g:1}],[{w:"sine",v:.7,a:.02,d:2},{w:"sine",v:1,t:2,f:1,d:.02,g:1}],[{w:"square",v:.3,d:1,s:.5},{w:"square",v:1,f:.2,d:1,s:.5,g:1}],[{w:"sawtooth",v:.3,d:2,s:.5},{w:"square",v:2,f:.1,s:.5,g:1}],[{w:"triangle",v:.5,a:.05,d:2,s:.6},{w:"sine",v:4,t:2,g:1}],[{w:"triangle",v:.3,a:.01,d:2,s:.3},{w:"sine",v:22,t:2,f:1,d:.03,s:.2,g:1}],[{w:"sawtooth",v:.3,d:1,s:.5},{w:"sine",v:11,t:11,a:.2,d:.05,s:.3,g:1}],[{w:"sine",v:.3,a:.06,d:1,s:.5},{w:"sine",v:7,f:1,d:1,s:.2,g:1}],[{w:"sawtooth",v:.3,a:.03,d:.7,s:.3,r:.2},{w:"sawtooth",v:.3,t:.75,d:.7,a:.1,s:.3,r:.2}],[{w:"triangle",v:.3,a:.01,d:.7,s:.5},{w:"square",v:5,t:.5,d:.7,s:.5,g:1}],[{w:"triangle",v:.3,a:.02,d:.3,s:.3,r:.3},{w:"square",v:3,t:4,f:1,a:.02,d:.1,s:1,g:1},{w:"triangle",v:.08,t:.5,a:.1,h:0,d:.1,s:.5,r:.1,b:0,c:0}],[{w:"sine",v:.3,a:.05,d:1,s:.7,r:.3},{w:"sine",v:2,f:1,d:.3,s:1,g:1}],[{w:"square",v:.3,a:.03,d:.5,s:.3,r:.1},{w:"square",v:4,f:1,a:.03,d:.1,g:1}],[{w:"triangle",v:.3,a:.08,d:1,s:.3,r:.1},{w:"square",v:2,f:1,d:.3,s:.3,g:1,t:4,a:.08}],[{w:"sine",v:.3,a:.05,d:1,s:.3,r:.1},{w:"sine",v:.1,t:2.001,f:1,d:1,s:50,g:1}],[{w:"triangle",v:.3,a:.03,d:.7,s:.3,r:.2},{w:"sine",v:12,t:7,f:1,d:.5,s:1.7,g:1}],[{w:"sine",v:.3,a:.05,d:1,s:.3,r:.1},{w:"sawtooth",v:22,t:6,d:.06,s:.3,g:1}],[{w:"triangle",v:.3,a:.05,d:11,r:.3},{w:"triangle",v:1,d:1,s:8,g:1}],[{w:"sawtooth",v:.3,d:4,s:.8,r:.1},{w:"square",v:1,t:2,f:8,a:1,d:1,s:1,r:.1,g:1}],[{w:"triangle",v:.3,d:1,s:.5,t:.8,a:.2,p:1.25,q:.2},{w:"sawtooth",v:.2,a:.2,d:.3,s:1,t:1.2,p:1.25,q:.2}],[{w:"sine",v:.3,d:1,s:.3},{w:"square",v:22,t:11,d:.5,s:.1,g:1}],[{w:"sawtooth",v:.3,a:.04,d:1,s:.8,r:.1},{w:"square",v:1,t:.5,d:1,s:2,g:1}],[{w:"triangle",v:.3,d:1,s:.3},{w:"sine",v:22,t:6,d:.6,s:.05,g:1}],[{w:"sine",v:.6,a:.1,d:.05,s:.4},{w:"sine",v:5,t:5,f:1,d:.05,s:.3,g:1}],[{w:"sine",a:.1,d:.05,s:.4,v:.8},{w:"sine",v:5,t:5,f:1,d:.05,s:.3,g:1}],[{w:"square",v:.3,a:.1,d:.1,s:.4},{w:"square",v:1,f:1,d:.3,s:.1,g:1}],[{w:"sawtooth",v:.3,d:.5,r:.5},{w:"sawtooth",v:11,t:5,d:.05,g:1}],[{w:"square",v:.3,d:.2,r:.2},{w:"square",v:7,t:3,d:.05,g:1}],[{w:"triangle",d:.2,r:.2},{w:"square",v:9,t:3,d:.1,r:.1,g:1}],[{w:"triangle",d:.3,r:.3},{w:"square",v:6,t:3,d:1,r:1,g:1}],[{w:"triangle",v:.4,d:.2,r:.2},{w:"square",v:22,t:12,d:.1,r:.1,g:1}],[{w:"sine",v:.25,a:.02,d:.05,s:.8},{w:"square",v:1,t:2,d:.03,s:11,g:1}],[{w:"sine",v:.3,a:.05,d:11},{w:"square",v:7,t:3,f:1,s:.7,g:1}],[{w:"square",v:.3,a:.05,d:.1,s:.8},{w:"square",v:4,d:.1,s:1.1,g:1}],[{w:"sine",v:.4,d:.3,r:.3},{w:"sine",v:7,t:9,d:.1,r:.1,g:1}],[{w:"sine",v:.7,d:.1,r:.1},{w:"sine",v:22,t:7,d:.05,g:1}],[{w:"sine",v:.6,d:.15,r:.15},{w:"square",v:11,t:3.2,d:.1,r:.1,g:1}],[{w:"sine",v:.8,d:.07,r:.07},{w:"square",v:11,t:7,r:.01,g:1}],[{w:"triangle",v:.7,t:.5,d:.2,r:.2,p:.95},{w:"n0",v:9,g:1,d:.2,r:.2}],[{w:"sine",v:.7,d:.1,r:.1,p:.9},{w:"square",v:14,t:2,d:.005,r:.005,g:1}],[{w:"square",d:.15,r:.15,p:.5},{w:"square",v:4,t:5,d:.001,r:.001,g:1}],[{w:"n1",v:.3,a:1,s:1,d:.15,r:0,t:.5}],[{w:"sine",t:12.5,d:0,r:0,p:.5,v:.3,h:.2,q:.5},{g:1,w:"sine",v:1,t:2,d:0,r:0,s:1},{g:1,w:"n0",v:.2,t:2,a:.6,h:0,d:.1,r:.1,b:0,c:0}],[{w:"n0",v:.2,a:.05,h:.02,d:.02,r:.02}],[{w:"n0",v:.4,a:1,d:1,t:.25}],[{w:"sine",v:.3,a:.1,d:1,s:.5},{w:"sine",v:4,t:0,f:1.5,d:1,s:1,r:.1,g:1},{g:1,w:"sine",v:4,t:0,f:2,a:.6,h:0,d:.1,s:1,r:.1,b:0,c:0}],[{w:"square",v:.3,t:.25,d:11,s:1},{w:"square",v:12,t:0,f:8,d:1,s:1,r:11,g:1}],[{w:"n0",v:.4,t:.5,a:1,d:11,s:1,r:.5},{w:"square",v:1,t:0,f:14,d:1,s:1,r:11,g:1}],[{w:"sine",t:0,f:1221,a:.2,d:1,r:.25,s:1},{g:1,w:"n0",v:3,t:.5,d:1,s:1,r:1}],[{w:"sine",d:.4,r:.4,p:.1,t:2.5,v:1},{w:"n0",v:12,t:2,d:1,r:1,g:1}]],program0:[[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"sawtooth",v:.3,d:.7}],[{w:"sawtooth",v:.3,d:.7}],[{w:"sine",v:.5,d:.3,r:.3}],[{w:"triangle",v:.5,d:.3,r:.3}],[{w:"square",v:.2,d:.3,r:.3}],[{w:"square",v:.2,d:.3,r:.3}],[{w:"sine",v:.5,d:.1,r:.1}],[{w:"sine",v:.5,d:.1,r:.1}],[{w:"square",v:.2,d:1,r:1}],[{w:"sawtooth",v:.3,d:.7,r:.7}],[{w:"sine",v:.5,a:.01,s:1}],[{w:"sine",v:.7,d:.02,s:.7}],[{w:"square",v:.2,s:1}],[{w:"triangle",v:.5,a:.01,s:1}],[{w:"square",v:.2,a:.02,s:1}],[{w:"square",v:.2,a:.02,s:1}],[{w:"square",v:.2,a:.02,s:1}],[{w:"square",v:.2,a:.05,s:1}],[{w:"triangle",v:.5,d:.5}],[{w:"square",v:.2,d:.6}],[{w:"square",v:.2,d:.6}],[{w:"triangle",v:.8,d:.6}],[{w:"triangle",v:.4,d:.05}],[{w:"square",v:.2,d:1}],[{w:"square",v:.2,d:1}],[{w:"sine",v:.4,d:.6}],[{w:"triangle",v:.7,d:.4}],[{w:"triangle",v:.7,d:.7}],[{w:"triangle",v:.7,d:.7}],[{w:"triangle",v:.7,d:.7}],[{w:"square",v:.3,d:.2}],[{w:"square",v:.3,d:.2}],[{w:"square",v:.3,d:.1,s:.2}],[{w:"sawtooth",v:.4,d:.1,s:.2}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.3,d:.1}],[{w:"sawtooth",v:.3,d:.5,r:.5}],[{w:"triangle",v:.6,d:.1,r:.1,h:.03,p:.8}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"triangle",v:.3,a:.03,s:1}],[{w:"sine",v:.3,a:.03,s:1}],[{w:"triangle",v:.3,a:.05,s:1}],[{w:"sawtooth",v:.5,a:.01,d:.1}],[{w:"square",v:.3,a:.05,d:.2,s:.6}],[{w:"square",v:.3,a:.05,d:.2,s:.6}],[{w:"square",v:.3,a:.05,d:.2,s:.6}],[{w:"square",v:.2,a:.05,d:.01,s:1}],[{w:"square",v:.3,a:.05,s:1}],[{w:"square",v:.3,s:.7}],[{w:"square",v:.3,s:.7}],[{w:"square",v:.3,s:.7}],[{w:"square",v:.3,a:.02,d:2}],[{w:"square",v:.3,a:.02,d:2}],[{w:"square",v:.3,a:.03,d:2}],[{w:"square",v:.3,a:.04,d:2}],[{w:"square",v:.3,a:.02,d:2}],[{w:"square",v:.3,a:.05,d:2}],[{w:"square",v:.3,a:.03,d:2}],[{w:"square",v:.3,a:.03,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"square",v:.3,s:.7}],[{w:"sawtooth",v:.4,s:.7}],[{w:"triangle",v:.5,s:.7}],[{w:"sawtooth",v:.4,s:.7}],[{w:"sawtooth",v:.4,d:12}],[{w:"sine",v:.4,a:.06,d:12}],[{w:"sawtooth",v:.4,d:12}],[{w:"sawtooth",v:.4,d:12}],[{w:"sawtooth",v:.3,d:12}],[{w:"triangle",v:.5,d:12}],[{w:"square",v:.3,d:12}],[{w:"triangle",v:.5,a:.08,d:11}],[{w:"sawtooth",v:.5,a:.05,d:11}],[{w:"sawtooth",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"square",v:.3,d:11}],[{w:"sawtooth",v:.5,a:.04,d:11}],[{w:"sawtooth",v:.5,d:11}],[{w:"triangle",v:.5,a:.8,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"square",v:.3,d:11}],[{w:"sawtooth",v:.3,d:1,r:1}],[{w:"sawtooth",v:.5,d:.3}],[{w:"sawtooth",v:.5,d:.3,r:.3}],[{w:"sawtooth",v:.5,d:.3,r:.3}],[{w:"square",v:.3,d:.2,r:.2}],[{w:"square",v:.3,a:.02,d:2}],[{w:"sawtooth",v:.2,a:.02,d:.7}],[{w:"triangle",v:.5,d:1}],[{w:"sawtooth",v:.3,d:.3,r:.3}],[{w:"sine",v:.8,d:.1,r:.1}],[{w:"square",v:.2,d:.1,r:.1,p:1.05}],[{w:"sine",v:.8,d:.05,r:.05}],[{w:"triangle",v:.5,d:.1,r:.1,p:.96}],[{w:"triangle",v:.5,d:.1,r:.1,p:.97}],[{w:"square",v:.3,d:.1,r:.1}],[{w:"n1",v:.3,a:1,s:1,d:.15,r:0,t:.5}],[{w:"triangle",v:.5,d:.03,t:0,f:1332,r:.001,p:1.1}],[{w:"n0",v:.2,t:.1,d:.02,a:.05,h:.02,r:.02}],[{w:"n0",v:.4,a:1,d:1,t:.25}],[{w:"sine",v:.3,a:.8,d:1,t:0,f:1832}],[{w:"triangle",d:.5,t:0,f:444,s:1}],[{w:"n0",v:.4,d:1,t:0,f:22,s:1}],[{w:"n0",v:.5,a:.2,d:11,t:0,f:44}],[{w:"n0",v:.5,t:.25,d:.4,r:.4}]],drummap1:[[{w:"triangle",t:0,f:70,v:1,d:.05,h:.03,p:.9,q:.1},{w:"n0",g:1,t:6,v:17,r:.01,h:0,p:0}],[{w:"triangle",t:0,f:88,v:1,d:.05,h:.03,p:.5,q:.1},{w:"n0",g:1,t:5,v:42,r:.01,h:0,p:0}],[{w:"n0",f:222,p:0,t:0,r:.01,h:0}],[{w:"triangle",v:.3,f:180,d:.05,t:0,h:.03,p:.9,q:.1},{w:"n0",v:.6,t:0,f:70,h:.02,r:.01,p:0},{g:1,w:"square",v:2,t:0,f:360,r:.01,b:0,c:0}],[{w:"square",f:1150,v:.34,t:0,r:.03,h:.025,d:.03},{g:1,w:"n0",t:0,f:13,h:.025,d:.1,s:1,r:.1,v:1}],[{w:"triangle",f:200,v:1,d:.06,t:0,r:.06},{w:"n0",g:1,t:0,f:400,v:12,r:.02,d:.02}],[{w:"triangle",f:100,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.4,h:.015,d:.005,r:.005}],[{w:"n1",f:390,v:.25,r:.01,t:0}],[{w:"triangle",f:120,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.5,h:.015,d:.005,r:.005}],[{w:"n1",v:.25,f:390,r:.03,t:0,h:.005,d:.03}],[{w:"triangle",f:140,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"n1",v:.25,f:390,t:0,d:.2,r:.2},{w:"n0",v:.3,t:0,c:0,f:440,h:.005,d:.05}],[{w:"triangle",f:155,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"triangle",f:180,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"n1",v:.3,f:1200,d:.2,r:.2,h:.05,t:0},{w:"n1",t:0,v:1,d:.1,r:.1,p:1.2,f:440}],[{w:"triangle",f:220,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"n1",f:500,v:.15,d:.4,r:.4,h:0,t:0},{w:"n0",v:.1,t:0,r:.01,f:440}],[{w:"n1",v:.3,f:800,d:.2,r:.2,h:.05,t:0},{w:"square",t:0,v:1,d:.1,r:.1,p:.1,f:220,g:1}],[{w:"sine",f:1651,v:.15,d:.2,r:.2,h:0,t:0},{w:"sawtooth",g:1,t:1.21,v:7.2,d:.1,r:11,h:1},{g:1,w:"n0",v:3.1,t:.152,d:.002,r:.002}],null,[{w:"n1",v:.3,f:1200,d:.2,r:.2,h:.05,t:0},{w:"n1",t:0,v:1,d:.1,r:.1,p:1.2,f:440}],null,[{w:"n1",v:.3,f:555,d:.25,r:.25,h:.05,t:0},{w:"n1",t:0,v:1,d:.1,r:.1,f:440,a:.005,h:.02}],[{w:"sawtooth",f:776,v:.2,d:.3,t:0,r:.3},{g:1,w:"n0",v:2,t:0,f:776,a:.005,h:.02,d:.1,s:1,r:.1,c:0},{g:11,w:"sine",v:.1,t:0,f:22,d:.3,r:.3,b:0,c:0}],[{w:"n1",f:440,v:.15,d:.4,r:.4,h:0,t:0},{w:"n0",v:.4,t:0,r:.01,f:440}],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[{w:"sine",f:1720,v:.3,d:.02,t:0,r:.02},{w:"square",g:1,t:0,f:2876,v:6,d:.2,s:1,r:.2}],[{w:"sine",f:1720,v:.3,d:.25,t:0,r:.25},{w:"square",g:1,t:0,f:2876,v:6,d:.2,s:1,r:.2}]],drummap0:[[{w:"triangle",t:0,f:110,v:1,d:.05,h:.02,p:.1}],[{w:"triangle",t:0,f:150,v:.8,d:.1,p:.1,h:.02,r:.01}],[{w:"n0",f:392,v:.5,d:.01,p:0,t:0,r:.05}],[{w:"n0",f:33,d:.05,t:0}],[{w:"n0",f:100,v:.7,d:.03,t:0,r:.03,h:.02}],[{w:"n0",f:44,v:.7,d:.02,p:.1,t:0,h:.02}],[{w:"triangle",f:240,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:440,v:.2,r:.01,t:0}],[{w:"triangle",f:270,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:440,v:.2,d:.04,r:.04,t:0}],[{w:"triangle",f:300,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:440,v:.2,d:.1,r:.1,h:.02,t:0}],[{w:"triangle",f:320,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"triangle",f:360,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:150,v:.2,d:.1,r:.1,h:.05,t:0,p:.1}],[{w:"triangle",f:400,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:150,v:.2,d:.1,r:.01,h:.05,t:0,p:.1}],[{w:"n0",f:150,v:.2,d:.1,r:.01,h:.05,t:0,p:.1}],[{w:"n0",f:440,v:.3,d:.1,p:.9,t:0,r:.1}],[{w:"n0",f:200,v:.2,d:.05,p:.9,t:0}],[{w:"n0",f:440,v:.3,d:.12,p:.9,t:0}],[{w:"sine",f:800,v:.4,d:.06,t:0}],[{w:"n0",f:150,v:.2,d:.1,r:.01,h:.05,t:0,p:.1}],[{w:"n0",f:33,v:.3,d:.2,p:.9,t:0}],[{w:"n0",f:300,v:.3,d:.14,p:.9,t:0}],[{w:"sine",f:200,d:.06,t:0}],[{w:"sine",f:150,d:.06,t:0}],[{w:"sine",f:300,t:0}],[{w:"sine",f:300,d:.06,t:0}],[{w:"sine",f:250,d:.06,t:0}],[{w:"square",f:300,v:.3,d:.06,p:.8,t:0}],[{w:"square",f:260,v:.3,d:.06,p:.8,t:0}],[{w:"sine",f:850,v:.5,d:.07,t:0}],[{w:"sine",f:790,v:.5,d:.07,t:0}],[{w:"n0",f:440,v:.3,a:.05,t:0}],[{w:"n0",f:440,v:.3,a:.05,t:0}],[{w:"triangle",f:1800,v:.4,p:.9,t:0,h:.03}],[{w:"triangle",f:1800,v:.3,p:.9,t:0,h:.13}],[{w:"n0",f:330,v:.3,a:.02,t:0,r:.01}],[{w:"n0",f:330,v:.3,a:.02,t:0,h:.04,r:.01}],[{w:"n0",f:440,v:.3,t:0}],[{w:"sine",f:800,t:0}],[{w:"sine",f:700,t:0}],[{w:"n0",f:330,v:.3,t:0}],[{w:"n0",f:330,v:.3,t:0,h:.1,r:.01,p:.7}],[{w:"sine",t:0,f:1200,v:.3,r:.01}],[{w:"sine",t:0,f:1200,v:.3,d:.2,r:.2}]],init:()=>{const t=this;t.pg=[],t.vol=[],t.ex=[],t.bend=[],t.rpnidx=[],t.brange=[],t.sustain=[],t.notetab=[],t.rhythm=[],t.masterTuningC=0,t.masterTuningF=0,t.tuningC=[],t.tuningF=[],t.maxTick=0,t.playTick=0,t.playing=0,t.releaseRatio=3.5;for(let r=0;r<16;++r)t.pg[r]=0,t.vol[r]=3*100*100/(127*127),t.bend[r]=0,t.brange[r]=256,t.tuningC[r]=0,t.tuningF[r]=0,t.rhythm[r]=0;t.rhythm[9]=1,t.preroll=.2,t.relcnt=0;const n=()=>{if(++t.relcnt>=3){t.relcnt=0;for(let r=t.notetab.length-1;r>=0;--r){const i=t.notetab[r];t.audioContext.currentTime>i.e&&(t._pruneNote(i),t.notetab.splice(r,1))}}if(t.playing&&t.song.ev.length>0){let r=t.song.ev[t.playIndex];for(;t.audioContext.currentTime+t.preroll>t.playTime;)if(r.m[0]==65361?(t.song.tempo=r.m[1],t.tick2Time=4*60/t.song.tempo/t.song.timebase):t.send(r.m,t.playTime),++t.playIndex,t.playIndex>=t.song.ev.length)if(t.loop)r=t.song.ev[t.playIndex=0],t.playTick=r.t;else{t.playTick=t.maxTick,t.playing=0;break}else r=t.song.ev[t.playIndex],t.playTime+=(r.t-t.playTick)*t.tick2Time,t.playTick=r.t}requestAnimationFrame(n)};requestAnimationFrame(n),t.internalcontext&&t.setAudioContext(new AudioContext),t.isReady=1},setMasterVol:t=>{const n=this;t!=null&&(n.masterVol=t),n.out&&(n.out.gain.value=n.masterVol)},setReverbLev:t=>{const n=this;t!=null&&(n.reverbLev=t);const r=parseFloat(n.reverbLev);n.rev&&!isNaN(r)&&(n.rev.gain.value=r*8)},setLoop:t=>{const n=this;n.loop=t},setVoices:t=>{const n=this;n.voices=t},getPlayStatus:()=>{const t=this;return{play:t.playing,maxTick:t.maxTick,curTick:t.playTick}},locateMIDI:t=>{const n=this;let r,i=n.playing;for(n.pause(),r=0;rn.song.ev[r].t;++r){const o=n.song.ev[r],s=o.m[0]&15;switch(o.m[0]&240){case 176:switch(o.m[1]){case 1:n.setModulation(s,o.m[2]);break;case 7:n.setChVol(s,o.m[2]);break;case 10:n.setPan(s,o.m[2]);break;case 11:n.setExpression(s,o.m[2]);break;case 64:n.setSustain(s,o.m[2]);break}break;case 192:n.pg[o.m[0]&15]=o.m[1];break}o.m[0]==65361&&(n.song.tempo=o.m[1])}n.song.ev[r]?(n.playIndex=r,n.playTick=n.song.ev[r].t):(n.playIndex=0,n.playTick=n.maxTick),i&&n.playMIDI()},getTimbreName:(t,n)=>{const r=this;return t==0?r.program[n].name:r.drummap[n-35].name},reset:()=>{const t=this;for(let n=0;n<16;++n)t.setProgram(n,0),t.setBendRange(n,256),t.setModulation(n,0),t.setChVol(n,100),t.setPan(n,64),t.resetAllControllers(n),t.allSoundOff(n),t.rhythm[n]=0,t.tuningC[n]=0,t.tuningF[n]=0;t.masterTuningC=0,t.masterTuningF=0,t.rhythm[9]=1},pause:()=>{const t=this;t.playing=0;for(let n=0;n<16;++n)t.allSoundOff(n)},resume:()=>{const t=this;if(!t.song)return;const n=t.audioContext.createOscillator();n.connect(t.audioContext.destination),n.frequency.value=0,n.start(0),n.stop(t.audioContext.currentTime+.001),t.playTick>=t.maxTick&&(t.playTick=0,t.playIndex=0),t.playTime=t.audioContext.currentTime+.1,t.tick2Time=4*60/t.song.tempo/t.song.timebase,t.playing=1},play:({data:t,masterVolume:n=.1})=>{const r=this;r.setMasterVol(n);function i(p,A){return(p[A]<<8)+p[A+1]}function o(p,A){return(p[A]<<16)+(p[A+1]<<8)+p[A+2]}function s(p,A){return(p[A]<<24)+(p[A+1]<<16)+(p[A+2]<<8)+p[A+3]}function l(p,A,g){return String.fromCharCode.apply(null,p.slice(A,A+g))}function a(p,A){let g=0,L;for(_=1;(L=p[A])&128;)g=(g<<7)+(L&127),++_,++A;return(g<<7)+L}function c(p,A,g,L){let v=g[L];_=1,v&128||(v=O,_=0),O=v;let T,S,y;switch(v&240){case 192:case 208:p.ev.push({t:A,m:[v,g[L+_]]}),_+=1;break;case 240:switch(v){case 240:case 247:T=a(g,L+1),E=1+_,S=Array.from(g.slice(L+E,L+E+T)),S.unshift(240),p.ev.push({t:A,m:S}),_+=T+1;break;case 255:switch(T=a(g,L+2),E=2+_,_=T+_+2,g[L+1]){case 2:p.copyright+=l(g,L+E,_-3);break;case 1:case 3:case 4:case 9:p.text=l(g,L+E,_-E);break;case 47:return 1;case 81:y=Math.floor(6e7/o(g,L+3)),p.ev.push({t:A,m:[65361,y]});break}break}break;default:p.ev.push({t:A,m:[v,g[L+_],g[L+_+1]]}),_+=2}return 0}r.pause();const f=new Uint8Array(t);let _=0,E=0,O=144,w=0,h=f.slice(0,4);if(h.toString()!="77,84,104,100")return;let m=s(f,4);const u=i(f,10);r.maxTick=0;const d=i(f,12)*4;w=m+8,r.song={copyright:"",text:"",tempo:120,timebase:d,ev:[]};for(let p=0;pr.maxTick&&(r.maxTick=A)}w+=m+8}r.song.ev.sort((p,A)=>p.t-A.t),r.reset(),r.locateMIDI(0),r.resume()},setQuality:t=>{const n=this;t!=null&&(n.quality=t);for(let r=0;r<128;++r)n.setTimbre(0,r,n.program0[r]);for(let r=0;r{const i=this,o={g:0,w:"sine",t:1,f:0,v:.5,a:0,h:.01,d:.01,s:0,r:.05,p:1,q:1,k:0};function s(l){for(n=0;n"u")&&(l[n][a]=o[a]);return l}t&&n>=35&&n<=81&&(i.drummap[n-35].p=s(r)),t==0&&n>=0&&n<=127&&(i.program[n].p=s(r))},_pruneNote:t=>{const n=this;for(let r=t.o.length-1;r>=0;--r){if(t.o[r].frequency?t.o[r].frequency.cancelScheduledValues(0):t.o[r].playbackRate.cancelScheduledValues(0),t.g[r].gain.cancelScheduledValues(0),t.o[r].stop(),t.o[r].detune)try{n.chmod[t.ch].disconnect(t.o[r].detune)}catch{}t.g[r].gain.value=0}},_limitVoices:()=>{const t=this;t.notetab.sort((n,r)=>n.f!=r.f?n.f-r.f:n.e!=r.e?r.e-n.e:r.t-n.t);for(let n=t.notetab.length-1;n>=0;--n){const r=t.notetab[n];(t.audioContext.currentTime>r.e||n>=t.voices-1)&&(t._pruneNote(r),t.notetab.splice(n,1))}},_note:(t,n,r,i,o)=>{const s=this;let l,a,c;const f=[],_=[],E=[],O=[],w=[],h=440*Math.pow(2,(r-69+s.masterTuningC+s.tuningC[n]+(s.masterTuningF+s.tuningF[n])/8192)/12);s._limitVoices(n,r);for(let m=0;m10?(l=_[c.g-11].gain,a=1,O[m]=O[c.g-11]*c.t+c.f):f[c.g-1].frequency?(l=f[c.g-1].frequency,a=O[c.g-1],O[m]=O[c.g-1]*c.t+c.f):(l=f[c.g-1].playbackRate,a=O[c.g-1]/440,O[m]=O[c.g-1]*c.t+c.f),c.w[0]){case"n":f[m]=s.audioContext.createBufferSource(),f[m].buffer=s.noiseBuf[c.w],f[m].loop=!0,f[m].playbackRate.value=O[m]/440,c.p!=1&&s._setParamTarget(f[m].playbackRate,O[m]/440*c.p,t,c.q),f[m].detune&&(s.chmod[n].connect(f[m].detune),f[m].detune.value=s.bend[n]);break;default:f[m]=s.audioContext.createOscillator(),f[m].frequency.value=O[m],c.p!=1&&s._setParamTarget(f[m].frequency,O[m]*c.p,t,c.q),c.w[0]=="w"?f[m].setPeriodicWave(s.wave[c.w]):f[m].type=c.w,f[m].detune&&(s.chmod[n].connect(f[m].detune),f[m].detune.value=s.bend[n]);break}_[m]=s.audioContext.createGain(),w[m]=c.r,f[m].connect(_[m]),_[m].connect(l),E[m]=a*c.v,c.k&&(E[m]*=Math.pow(2,(r-60)/12*c.k)),c.a?(_[m].gain.value=0,_[m].gain.setValueAtTime(0,t),_[m].gain.linearRampToValueAtTime(E[m],t+c.a)):_[m].gain.setValueAtTime(E[m],t),s._setParamTarget(_[m].gain,c.s*E[m],u,c.d),f[m].start(t),s.rhythm[n]&&(f[m].onended=()=>{try{f[m].detune&&s.chmod[n].disconnect(f[m].detune)}catch{}},f[m].stop(t+o[0].d*s.releaseRatio))}s.rhythm[n]||s.notetab.push({t,e:99999,ch:n,n:r,o:f,g:_,t2:t+c.a,v:E,r:w,f:0})},_setParamTarget:(t,n,r,i)=>{i!=0?t.setTargetAtTime(n,r,i):t.setValueAtTime(n,r)},_releaseNote:(t,n)=>{const r=this;if(t.ch!=9)for(let i=t.g.length-1;i>=0;--i)t.g[i].gain.cancelScheduledValues(n),n==t.t2?t.g[i].gain.setValueAtTime(t.v[i],n):n{const i=this;i.chmod[t].gain.setValueAtTime(n*100/127,i._tsConv(r))},setChVol:(t,n,r)=>{const i=this;i.vol[t]=3*n*n/(127*127),i.chvol[t].gain.setValueAtTime(i.vol[t]*i.ex[t],i._tsConv(r))},setPan:(t,n,r)=>{const i=this;i.chpan[t]&&i.chpan[t].pan.setValueAtTime((n-64)/64,i._tsConv(r))},setExpression:(t,n,r)=>{const i=this;i.ex[t]=n*n/(127*127),i.chvol[t].gain.setValueAtTime(i.vol[t]*i.ex[t],i._tsConv(r))},setSustain:(t,n,r)=>{const i=this;if(i.sustain[t]=n,r=i._tsConv(r),n<64)for(let o=i.notetab.length-1;o>=0;--o){const s=i.notetab[o];r>=s.t&&s.ch==t&&s.f==1&&i._releaseNote(s,r)}},allSoundOff:t=>{const n=this;for(let r=n.notetab.length-1;r>=0;--r){const i=n.notetab[r];i.ch==t&&(n._pruneNote(i),n.notetab.splice(r,1))}},resetAllControllers:t=>{const n=this;n.bend[t]=0,n.ex[t]=1,n.rpnidx[t]=16383,n.sustain[t]=0,n.chvol[t]&&(n.chvol[t].gain.value=n.vol[t]*n.ex[t],n.chmod[t].gain.value=0)},setBendRange:(t,n)=>{const r=this;r.brange[t]=n},setProgram:(t,n)=>{const r=this;r.pg[t]=n},_tsConv:t=>{const n=this;return t==null||t<=0?(t=0,n.audioContext&&(t=n.audioContext.currentTime)):n.tsmode&&(t=t*.001-n.tsdiff),t},setBend:(t,n,r)=>{const i=this;r=i._tsConv(r);const o=i.brange[t]*100/127;i.bend[t]=(n-8192)*o/8192;for(let s=i.notetab.length-1;s>=0;--s){const l=i.notetab[s];if(l.ch==t)for(let a=l.o.length-1;a>=0;--a)l.o[a].frequency&&l.o[a].detune&&l.o[a].detune.setValueAtTime(i.bend[t],r)}},noteOff:(t,n,r)=>{const i=this;if(!i.rhythm[t]){r=i._tsConv(r);for(let o=i.notetab.length-1;o>=0;--o){const s=i.notetab[o];r>=s.t&&s.ch==t&&s.n==n&&s.f==0&&(s.f=1,i.sustain[t]<64&&i._releaseNote(s,r))}}},noteOn:(t,n,r,i)=>{const o=this;if(r==0){o.noteOff(t,n,i);return}if(i=o._tsConv(i),o.rhythm[t]){n>=35&&n<=81&&o._note(i,t,n,r,o.drummap[n-35].p);return}o._note(i,t,n,r,o.program[o.pg[t]].p)},setTsMode:t=>{const n=this;n.tsmode=t},send:(t,n)=>{const r=this,i=t[0]&15,o=t[0]&-16;if(!(o<128||o>=256))switch(r.audioContext.state=="suspended"&&r.audioContext.resume(),o){case 176:switch(t[1]){case 1:r.setModulation(i,t[2],n);break;case 7:r.setChVol(i,t[2],n);break;case 10:r.setPan(i,t[2],n);break;case 11:r.setExpression(i,t[2],n);break;case 64:r.setSustain(i,t[2],n);break;case 98:case 99:r.rpnidx[i]=16383;break;case 100:r.rpnidx[i]=r.rpnidx[i]&16256|t[2];break;case 101:r.rpnidx[i]=r.rpnidx[i]&127|t[2]<<7;break;case 6:switch(r.rpnidx[i]){case 0:r.brange[i]=(t[2]<<7)+(r.brange[i]&127);break;case 1:r.tuningF[i]=(t[2]<<7)+(r.tuningF[i]+8192&127)-8192;break;case 2:r.tuningC[i]=t[2]-64;break}break;case 38:switch(r.rpnidx[i]){case 0:r.brange[i]=r.brange[i]&16256|t[2];break;case 1:r.tuningF[i]=r.tuningF[i]+8192&16256|t[2]-8192;break}break;case 120:case 123:case 124:case 125:case 126:case 127:r.allSoundOff(i);break;case 121:r.resetAllControllers(i);break}break;case 192:r.setProgram(i,t[1]);break;case 224:r.setBend(i,t[1]+(t[2]<<7),n);break;case 144:r.noteOn(i,t[1],t[2],n);break;case 128:r.noteOff(i,t[1],n);break;case 240:if(t[0]==255){r.reset();break}if(t[0]==240&&(t[1]==127&&t[3]==4&&(t[4]==3&&t.length>=8&&(r.masterTuningF=t[6]*128+t[5]-8192),t[4]==4&&t.length>=8&&(r.masterTuningC=t[6]-64)),t[1]==65&&t[3]==66&&t[4]==18&&t[5]==64&&(t[6]&240)==16&&t[7]==21)){const s=[9,0,1,2,3,4,5,6,7,8,10,11,12,13,14,15][t[6]&15];r.rhythm[s]=t[8]}break}},_createWave:t=>{const n=this,r=new Float32Array(t.length),i=new Float32Array(t.length);for(let o=1;othis.audioContext,setAudioContext:(t,n)=>{const r=this;r.audioContext=r.audioContext=t,r.dest=n,n||(r.dest=t.destination),r.out=r.audioContext.createGain(),r.comp=r.audioContext.createDynamicsCompressor();const i=r.audioContext.sampleRate*.5|0;r.convBuf=r.audioContext.createBuffer(2,i,r.audioContext.sampleRate),r.noiseBuf={},r.noiseBuf.n0=r.audioContext.createBuffer(1,i,r.audioContext.sampleRate),r.noiseBuf.n1=r.audioContext.createBuffer(1,i,r.audioContext.sampleRate);const o=r.convBuf.getChannelData(0),s=r.convBuf.getChannelData(1),l=r.noiseBuf.n0.getChannelData(0),a=r.noiseBuf.n1.getChannelData(0);for(let c=0;c0;)Q.preInit.pop()();Q.init=async function(){await r2(),uf()};function Kv(e){return Q.locateFile?Q.locateFile(e,al):al+e}function Wv(e,t,n){switch(t=t||"i8",t.charAt(t.length-1)==="*"&&(t="i32"),t){case"i1":return ll[e>>0];case"i8":return ll[e>>0];case"i16":return wm[e>>1];case"i32":return Zu[e>>2];case"i64":return Zu[e>>2];case"float":return xm[e>>2];case"double":return ym[e>>3];default:Dl("invalid type for getValue: "+t)}return null}function Zv(e,t){ll.set(e,t)}function Vv(e){Q.HEAP8=ll=new Int8Array(e),Q.HEAP16=wm=new Int16Array(e),Q.HEAP32=Zu=new Int32Array(e),Q.HEAPU8=vm=new Uint8Array(e),Q.HEAPU16=new Uint16Array(e),Q.HEAPU32=new Uint32Array(e),Q.HEAPF32=xm=new Float32Array(e),Q.HEAPF64=ym=new Float64Array(e)}function Yv(){if(Q.preRun)for(typeof Q.preRun=="function"&&(Q.preRun=[Q.preRun]);Q.preRun.length;)Jv(Q.preRun.shift());kl(Sm)}function qv(){kl(Nm)}function Xv(){kl(Gv)}function Qv(){if(Q.postRun)for(typeof Q.postRun=="function"&&(Q.postRun=[Q.postRun]);Q.postRun.length;)e2(Q.postRun.shift());kl(Im)}function Jv(e){Sm.unshift(e)}function e2(e){Im.unshift(e)}function t2(){cs++}function n2(){if(cs--,cs==0&&ya){var e=ya;ya=null,e()}}function Dl(e){Q.onAbort&&Q.onAbort(e),e+="",Am(e),gm=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw t}async function r2(){var e={a:zv};t2();try{const n=await fetch(b_);if(!n.ok)throw"failed to load wasm binary file at '"+b_+"'";const r=await n.arrayBuffer();var t=(await WebAssembly.instantiate(r,e)).instance.exports;Q.asm=t,k_=Q.asm.d,Vv(k_.buffer),Vu=Q.asm.H,n2()}catch(n){Am("failed to asynchronously prepare wasm: "+n),Dl(n)}}function kl(e){for(;e.length>0;){var t=e.shift();if(typeof t=="function"){t(Q);continue}var n=t.func;typeof n=="number"?t.arg===void 0?Vu.get(n)():Vu.get(n)(t.arg):n(t.arg===void 0?null:t.arg)}}function i2(e,t,n){vm.copyWithin(e,t,t+n)}function o2(e){Dl("OOM ("+e+")")}function s2(e){o2(e)}function a2(e){}function uf(e){if(cs>0||(Yv(),cs>0))return;function t(){cl||(cl=!0,Q.calledRun=!0,!gm&&(qv(),Xv(),Q.onRuntimeInitialized&&Q.onRuntimeInitialized(),Qv()))}Q.setStatus?(Q.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Q.setStatus("")},1),t()},1)):t()}const si=4096,Sa=256,us=48e3,Ao=[],U_=1;let Na,Yu,wn,fs,Bm,qu,Vr;function Pm(e){if(Ao.length>0){Ao.push(e);return}for(Ao.push(e);Ao.length>0;)Ao.shift()()}function l2(e){Pm(()=>{Vr!==void 0&&(Q._xm_free_context(Vr),Vr=void 0);const t=new Int8Array(e),n=Q._malloc(t.length);Q.writeArrayToMemory(t,n);const r=Q._xm_create_context(Yu,n,us);if(Q._free(n),r!==0)throw Vr=void 0,new Error("Module context not defined");Vr=Q.getValue(Yu,"*")})}function c2(e){const t=e.getChannelData(0),n=e.getChannelData(1);for(let r=0;r1||n[i]<-1||n[i]>1)&&(qu=!0)}}function u2(){const e=us*wn.currentTime+si;fs=wn.createGain(),fs.gain.value=0,Xu(0,e)(),Xu(1,e+si)()}function Xu(e,t){return()=>{const n=wn.createBufferSource();if(n.buffer=Bm[e],n.onended=Xu(e,t+2*si),Vr!==void 0)Pm(()=>c2(n.buffer));else{const r=n.buffer.getChannelData(0),i=n.buffer.getChannelData(1);for(let o=0;osetTimeout(()=>fs.gain.value=t,500))}const p2=Object.freeze(Object.defineProperty({__proto__:null,get audioContext(){return wn},init:Cm,get out(){return fs},pause:f2,play:_2,resume:d2},Symbol.toStringTag,{value:"Module"}));var Dm,ds,$o,na,go,ra,Bc,ia,Pc,vo,Cc;function E2(e,t){var n,r;this.author="Hermit",this.sourcecode="http://hermit.uw.hu",this.version="0.9.1.7",this.year="2019",typeof AudioContext<"u"?ds=n=new AudioContext:ds=n=new webkitAudioContext;var i=n.sampleRate;typeof n.createJavaScriptNode=="function"?r=n.createJavaScriptNode(e,0,1):r=n.createScriptProcessor(e,0,1),$o=n.createGain(),r.onaudioprocess=function(z){for(var ve=z.outputBuffer,K=ve.getChannelData(0),ze=0;ze>3)]&Math.pow(2,7-K%8);for(K=0;K=32?8580:6581,g[1]=(z[119]&192)>=128?8580:6581,g[2]=(z[118]&3)>=3?8580:6581,v[1]=z[122]>=66&&(z[122]<128||z[122]>=224)?53248+z[122]*16:0,v[2]=z[123]>=66&&(z[123]<128||z[123]>=224)?53248+z[123]*16:0,D=1+(v[1]>0)+(v[2]>0),S=1,C!==null&&C(),Y(d),vo=1},this.start=function(z){Y(z),R!==null&&R(),this.playcont()},this.playcont=function(){r.connect($o).connect(n.destination),n.state=="suspended"&&n.resume()},this.pause=function(){S&&y&&r.disconnect($o)},this.stop=function(){this.pause(),Y(d)},this.gettitle=function(){return String.fromCharCode.apply(null,f)},this.getauthor=function(){return String.fromCharCode.apply(null,_)},this.getinfo=function(){return String.fromCharCode.apply(null,E)},this.getsubtunes=function(){return p},this.getprefmodel=function(){return g[0]},this.getmodel=function(){return L},this.getoutput=function(){return qn/a*(T[54296]&15)},this.getplaytime=function(){return parseInt(go)},this.getcia=function(){return T[56324]+T[56325]*256},this.getSIDAddress=function(z){return v[z]},this.readregister=function(z){return T[z]},this.enableVoices=function(z){X=z},this.setmodel=function(z){L=z},this.setvolume=function(z){ee=z},this.setloadcallback=function(z){C=z},this.setstartcallback=function(z){R=z},this.setendcallback=function(z,ve){na=z,A=ve},this.setbuffercallback=function(z){Cc=z},this.setSpeedMultiplier=function(z){Te(z)},this.issuspended=function(){return n.state=="suspended"};var o=985248,s=50,l=3,a=65536*l*16,c=[0,1,.6,.4],f=new Uint8Array(32),_=new Uint8Array(32),E=new Uint8Array(32),O=new Uint8Array(32),w=4096,h=4096,m=4099,u=4099,d=0,p=1,A=0,g=[8580,8580,8580],L=8580,v=[54272,0,0],T=new Uint8Array(65536),S=0,y=0,I=0,C=null,R=null;na=null,go=0,ra=0;var k=o/i,M=i/s,F=1,ee=.5,N=0,q,D=1,se=0,X=511;function Y(z){if(S){y=0,d=z,X=511,Le(h),xs(),$=d,T[1]=55,T[56325]=0;for(var ve=1e5;ve>=0&&!pe();ve--);O[d]||T[56325]?(T[56325]||(T[56324]=36,T[56325]=64),M=(T[56324]+T[56325]*256)/k):M=i/s,m==0?u=(T[1]&3)<2?T[65534]+T[65535]*256:T[788]+T[789]*256:(u=m,u>=57344&&T[1]==55&&(T[1]=53)),Le(u),F=1,I=0,N=0,go=0,ra=0,y=1}}function de(){if(S&&y&&(F--,go+=1/(i/vo),F<=0&&(F=M,I=0,ne=u,W=255),I==0)){for(;N<=k;){if(q=ne,pe()>=254){I=1;break}else N+=J;if((T[1]&3)>1&&q<57344&&(ne==59953||ne==60033)){I=1;break}(j==56325||j==56324)&&T[1]&3&&O[d]&&(M=(T[56324]+T[56325]*256)/k),fe>=54304&&fe<55296&&T[1]&3&&!(v[1]<=fe&&fe0&&parseInt(go)==parseInt(A)&&na!==null&&ra==0&&(ra=1,na()),se=io(0,54272),v[1]&&(se+=io(1,v[1])),v[2]&&(se+=io(2,v[2])),se*ee*c[D]+(Math.random()*t-t/2)}function Te(z){vo=z,O[d]||T[56325]?(k=o*vo/i,M=(T[56324]+T[56325]*256)/k):M=i/(s*vo)}var _e=[1,33,4,36,0,64,8,40],Ne=[128,64,1,2],ne=0,$=0,ie=0,ce=0,V=0,W=255,ue=0,j=0,P=0,J=0,fe=0;function Le(z){ne=z,$=0,ce=0,V=0,P=0,W=255}function pe(){if(ue=T[ne],J=2,fe=0,ue&1){switch(ue&31){case 1:case 3:j=T[T[++ne]+ce]+T[T[ne]+ce+1]*256,J=6;break;case 17:case 19:j=T[T[++ne]]+T[T[ne]+1]*256+V,J=6;break;case 25:case 31:j=T[++ne]+T[++ne]*256+V,J=5;break;case 29:j=T[++ne]+T[++ne]*256+ce,J=5;break;case 13:case 15:j=T[++ne]+T[++ne]*256,J=4;break;case 21:j=T[++ne]+ce,J=4;break;case 5:case 7:j=T[++ne],J=3;break;case 23:j=T[++ne]+V,J=4;break;case 9:case 11:j=++ne,J=2}switch(j&=65535,ue&224){case 96:ie=$,$+=T[j]+(P&1),P&=20,P|=$&128|$>255,$&=255,P|=!$<<1|(!((ie^T[j])&128)&&(ie^$)&128)>>1;break;case 224:ie=$,$-=T[j]+!(P&1),P&=20,P|=$&128|$>=0,$&=255,P|=!$<<1|((ie^T[j])&128&&(ie^$)&128)>>1;break;case 192:ie=$-T[j],P&=124,P|=!(ie&255)<<1|ie&128|ie>=0;break;case 0:$|=T[j],P&=125,P|=!$<<1|$&128;break;case 32:$&=T[j],P&=125,P|=!$<<1|$&128;break;case 64:$^=T[j],P&=125,P|=!$<<1|$&128;break;case 160:$=T[j],P&=125,P|=!$<<1|$&128,(ue&3)==3&&(ce=$);break;case 128:T[j]=$&((ue&3)==3?ce:255),fe=j}}else if(ue&2){switch(ue&31){case 30:j=T[++ne]+T[++ne]*256+((ue&192)!=128?ce:V),J=5;break;case 14:j=T[++ne]+T[++ne]*256,J=4;break;case 22:j=T[++ne]+((ue&192)!=128?ce:V),J=4;break;case 6:j=T[++ne],J=3;break;case 2:j=++ne,J=2}switch(j&=65535,ue&224){case 0:P&=254;case 32:(ue&15)==10?($=($<<1)+(P&1),P&=60,P|=$&128|$>255,$&=255,P|=!$<<1):(ie=(T[j]<<1)+(P&1),P&=60,P|=ie&128|ie>255,ie&=255,P|=!ie<<1,T[j]=ie,J+=2);break;case 64:P&=254;case 96:(ue&15)==10?(ie=$,$=($>>1)+(P&1)*128,P&=60,P|=$&128|ie&1,$&=255,P|=!$<<1):(ie=(T[j]>>1)+(P&1)*128,P&=60,P|=ie&128|T[j]&1,ie&=255,P|=!ie<<1,T[j]=ie,J+=2);break;case 192:ue&4?(T[j]--,T[j]&=255,P&=125,P|=!T[j]<<1|T[j]&128,J+=2):(ce--,ce&=255,P&=125,P|=!ce<<1|ce&128);break;case 160:if((ue&15)!=10)ce=T[j];else if(ue&16){ce=W;break}else ce=$;P&=125,P|=!ce<<1|ce&128;break;case 128:ue&4?(T[j]=ce,fe=j):ue&16?W=ce:($=ce,P&=125,P|=!$<<1|$&128);break;case 224:ue&4&&(T[j]++,T[j]&=255,P&=125,P|=!T[j]<<1|T[j]&128,J+=2)}}else if((ue&12)==8)switch(ue&240){case 96:W++,W&=255,$=T[256+W],P&=125,P|=!$<<1|$&128,J=4;break;case 192:V++,V&=255,P&=125,P|=!V<<1|V&128;break;case 224:ce++,ce&=255,P&=125,P|=!ce<<1|ce&128;break;case 128:V--,V&=255,P&=125,P|=!V<<1|V&128;break;case 0:T[256+W]=P,W--,W&=255,J=3;break;case 32:W++,W&=255,P=T[256+W],J=4;break;case 64:T[256+W]=$,W--,W&=255,J=3;break;case 144:$=V,P&=125,P|=!$<<1|$&128;break;case 160:V=$,P&=125,P|=!V<<1|V&128;break;default:_e[ue>>5]&32?P|=_e[ue>>5]&223:P&=255-(_e[ue>>5]&223)}else if((ue&31)==16)ne++,ie=T[ne],ie&128&&(ie-=256),ue&32?P&Ne[ue>>6]&&(ne+=ie,J=3):P&Ne[ue>>6]||(ne+=ie,J=3);else{switch(ue&31){case 0:j=++ne,J=2;break;case 28:j=T[++ne]+T[++ne]*256+ce,J=5;break;case 12:j=T[++ne]+T[++ne]*256,J=4;break;case 20:j=T[++ne]+ce,J=4;break;case 4:j=T[++ne],J=3}switch(j&=65535,ue&224){case 0:T[256+W]=ne%256,W--,W&=255,T[256+W]=ne/256,W--,W&=255,T[256+W]=P,W--,W&=255,ne=T[65534]+T[65535]*256-1,J=7;break;case 32:ue&15?(P&=61,P|=T[j]&192|!($&T[j])<<1):(T[256+W]=(ne+2)%256,W--,W&=255,T[256+W]=(ne+2)/256,W--,W&=255,ne=T[j]+T[j+1]*256-1,J=6);break;case 64:if(ue&15)ne=j-1,J=3;else{if(W>=255)return 254;W++,W&=255,P=T[256+W],W++,W&=255,ie=T[256+W],W++,W&=255,ne=T[256+W]+ie*256-1,J=6}break;case 96:if(ue&15)ne=T[j]+T[j+1]*256-1,J=5;else{if(W>=255)return 255;W++,W&=255,ie=T[256+W],W++,W&=255,ne=T[256+W]+ie*256-1,J=6}break;case 192:ie=V-T[j],P&=124,P|=!(ie&255)<<1|ie&128|ie>=0;break;case 224:ie=ce-T[j],P&=124,P|=!(ie&255)<<1|ie&128|ie>=0;break;case 160:V=T[j],P&=125,P|=!V<<1|V&128;break;case 128:T[j]=V,fe=j}}return ne++,ne&=65535,0}var Ee=1,Pe=2,Ce=4,De=8,et=16,rt=32,mt=64,Dn=128,Wn=16,on=64,sn=128,U=[1,2,4,1,2,4,1,2,4],oe=16,B=32,H=64,b=128,G=[0,0,0,0,0,0,0,0,0],re=[0,0,0,0,0,0,0,0,0],le=[0,0,0,0,0,0,0,0,0],he=[0,0,0,0,0,0,0,0,0],qe=[0,0,0,0,0,0,0,0,0],be=[0,0,0,0,0,0,0,0,0],Zn=[0,0,0,0,0,0,0,0,0],jr=[0,0,0],fr=[0,0,0],Os=[8388600,8388600,8388600,8388600,8388600,8388600,8388600,8388600,8388600],As=[0,0,0,0,0,0,0,0,0],gs=[0,0,0,0,0,0,0,0,0],vs,Qi=[0,0,0],Ji=[0,0,0],ws=-2*3.14*(12500/256)/i,Fl=-2*3.14*(2e4/256)/i,eo,Zt,Vn,Nt,Hr,dr,Ge,_r,Yn,to,me,It,kn,Se,mn,no,ro,qn;function xs(){var z;for(z=54272;z<=55295;z++)T[z]=0;for(z=56832;z<=57343;z++)T[z]=0;for(z=0;z<9;z++)G[z]=Wn,re[z]=le[z]=he[z]=qe[z]=0}function io(z,ve){ro=0,qn=0;for(var K=z*l;K<(z+1)*l;K++)eo=G[K]&Ee,Zt=ve+(K-z*l)*7,Vn=T[Zt+4],Nt=Vn&240,Hr=Vn&De,_r=T[Zt+6],me=0,eo!=(Vn&Ee)&&(eo?G[K]&=255-(Ee|sn|on):(G[K]=Ee|sn|on,(_r&15)>(qe[K]&15)&&(me=1))),qe[K]=_r,re[K]+=k,re[K]>=32768&&(re[K]-=32768),G[K]&sn?(Ge=T[Zt+5]>>4,dr=so[Ge]):G[K]&on?(Ge=T[Zt+5]&15,dr=so[Ge]):(Ge=_r&15,dr=so[Ge]),Ge=Ml[Ge],re[K]>=dr&&re[K]=255&&(le[K]=255,G[K]&=255-sn)):(!(G[K]&on)||le[K]>(_r>>4)+(_r&240))&&(le[K]-=Ge,le[K]<=0&&le[K]+Ge!=0&&(le[K]=0,G[K]|=Wn))),he[K]=0)),le[K]&=255,Yn=(T[Zt]+T[Zt+1]*256)*k,Hr||Vn&Pe&&jr[z]?be[K]=0:(be[K]+=Yn,be[K]>16777215&&(be[K]-=16777216)),to=be[K]&8388608,jr[z]=to>(Zn[K]&8388608)?1:0,Nt&Dn?(me=Os[K],((be[K]&1048576)!=(Zn[K]&1048576)||Yn>=1048576)&&(Ge=me&4194304^(me&131072)<<5,me=(me<<1)+(Ge>0||Hr)&8388607,Os[K]=me),Se=Nt&112?0:((me&1048576)>>5)+((me&262144)>>4)+((me&16384)>>1)+((me&2048)<<1)+((me&512)<<2)+((me&32)<<5)+((me&4)<<7)+((me&1)<<8)):Nt&mt?(It=(T[Zt+2]+(T[Zt+3]&15)*256)*16,me=Yn>>9,0me&&(It=me),me=be[K]>>8,Nt==mt?(Ge=256/(Yn>>16),Hr?Se=65535:me65535&&(kn=65535),Se=kn-(It-me)*Ge,Se<0&&(Se=0)):(kn=It*Ge,kn>65535&&(kn=65535),Se=(65535-me)*Ge-kn,Se>=0&&(Se=65535),Se&=65535)):(Se=me>=It||Hr?65535:0,Nt&et?Nt&rt?Se=Se?ci(K,Pc,me>>4,1):0:(me=be[K]^(Vn&Ce?fr[z]:0),Se=Se?ci(K,ia,(me^(me&8388608?16777215:0))>>11,0):0):Nt&rt&&(Se=Se?ci(K,ia,me>>4,1):0))):Nt&rt?(Se=be[K]>>8,Nt&et?Se=ci(K,Bc,Se>>4,1):(Ge=Yn/18874368,Se+=Se*Ge,Se>65535&&(Se=65535-(Se-65536)/Ge))):Nt&et&&(me=be[K]^(Vn&Ce?fr[z]:0),Se=(me^(me&8388608?16777215:0))>>7),Nt?As[K]=Se:Se=As[K],Zn[K]=be[K],fr[z]=to,X&1<>8),T[ve+28]=le[3],mn=(T[ve+21]&7)/8+T[ve+22]+.2,L==8580?(mn=1-Math.exp(mn*ws),no=Math.pow(2,(4-(T[ve+23]>>4))/8)):(mn<24?mn=.035:mn=1-1.263*Math.exp(mn*Fl),no=T[ve+23]>95?8/(T[ve+23]>>4):1.41),me=ro+Ji[z]*no+Qi[z],T[ve+24]&H&&(qn-=me),me=Ji[z]-me*mn,Ji[z]=me,T[ve+24]&B&&(qn-=me),me=Qi[z]+me*mn,Qi[z]=me,T[ve+24]&oe&&(qn+=me),qn/a*(T[ve+24]&15)}function ci(z,ve,K,ze){return ze&&L==6581&&(K&=2047),vs=(ve[K]+gs[z])/2,gs[z]=ve[K],vs}function oo(z,ve,K,ze){for(var Rt=0;Rt<4096;Rt++){z[Rt]=0;for(var ui=0;ui<12;ui++){for(var Ss=0,fi=0;fi<12;fi++)Ss+=ve/Math.pow(K,Math.abs(fi-ui))*((Rt>>fi&1)-.5);z[Rt]+=Ss>=ze?Math.pow(2,ui):0}z[Rt]*=12}}Bc=new Array(4096),oo(Bc,.8,2.4,.64),ia=new Array(4096),oo(ia,1.4,1.9,.68),Pc=new Array(4096),oo(Pc,.8,2.5,.64);var ys=Math.max(k,9),so=[ys,32*1,63*1,95*1,149*1,220*1,267*1,313*1,392*1,977*1,1954*1,3126*1,3907*1,11720*1,19532*1,31251*1],Ml=[Math.ceil(ys/9),1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],$l=[1,30,30,30,30,30,30,16,16,16,16,16,16,16,16,8,8,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}async function km(){Dm=new E2(16384,5e-4)}function m2(){ds.suspend()}function T2(){ds.resume()}function h2({data:e,track:t,masterVolume:n=.4}){Dm.play(e,t),$o.gain.value=n}const L2=Object.freeze(Object.defineProperty({__proto__:null,get audioContext(){return ds},init:km,get out(){return $o},pause:m2,play:h2,resume:T2},Symbol.toStringTag,{value:"Module"})),O2="audio/midi",A2="audio/xm",g2="audio/prs.sid",v2="music-track-",w2="./"+v2,Qu=[{masterVolume:.1},{masterVolume:.7},{masterVolume:.4},{masterVolume:.1},{masterVolume:1.2,track:1},{masterVolume:1.8},{masterVolume:.6},{masterVolume:.8},{masterVolume:1.1},{masterVolume:.5},{masterVolume:.7},{masterVolume:.7}];let oa=Math.floor(Math.random()*Qu.length),Xn,Dc,$t,bl,Ri,Ju,e0,bm=128;document.onvisibilitychange=()=>{$t&&bl&&(document.hidden?$t.pause():($t.resume(),requestAnimationFrame(ff)))};async function x2({data:e,contentType:t,masterVolume:n,track:r}){$t=null,t===O2?y2():t===A2?await S2():t===g2&&N2(),$t&&($t.play({data:e,masterVolume:n,track:r}),Um())}function y2(){Xn||(Xn=new Hv({quality:1,useReverb:1}),Xn.setLoop(!0),Xn.setTimbre(1,49,[{w:"n0",f:150,v:.2,d:.1,r:.1,h:.05,t:0,p:.1}]),Xn.setTimbre(1,53,[{w:"n0",f:440,v:.3,d:.1,p:.9,t:0,r:.1}]),Xn.setTimbre(0,28,[{w:"sine",v:.8,d:1,f:-1},{w:"triangle",v:4,f:1,d:.4,s:.5,g:1,t:3}]),Xn.setTimbre(0,38,[{w:"sine",v:.6,d:.3},{w:"triangle",v:4,f:1,d:.4,s:.5,g:1,t:3},{w:"sawtooth",v:.1,a:.03,d:.5,s:.3,r:.2}]),Xn.setTimbre(0,39,[{w:"sine",v:.5,d:.3},{w:"square",v:3,f:-1,d:1,s:.7,g:1},{w:"sawtooth",v:.1,a:.03,d:.6,s:.3,r:.2}])),$t=Xn}async function S2(){Dc||(await Cm(),Dc=p2),$t=Dc}function N2(){km(),$t=L2}function Um(){Ri=$t.audioContext.createAnalyser(),$t.out.connect(Ri),Ri.fftSize=bm,Ju=new Uint8Array(Ri.frequencyBinCount)}async function I2({onSetFrequencyData:e}){const n=await(await fetch(w2+(oa+1))).blob(),r=n.type,i=await n.arrayBuffer(),{masterVolume:o,track:s}=Qu[oa];return oa=(oa+1)%Qu.length,await x2({data:i,contentType:r,masterVolume:o,track:s}),bl=!0,e0=e,$t&&requestAnimationFrame(ff),{}}function ff(){Ri.getByteFrequencyData(Ju),e0&&e0(Array.from(Ju)),bl&&!document.hidden&&requestAnimationFrame(ff)}function R2(){bl=!1,$t&&$t.pause()}function B2(e){bm=e,Ri&&Um()}const P2=Object.freeze(Object.defineProperty({__proto__:null,play:I2,setFftSize:B2,stop:R2},Symbol.toStringTag,{value:"Module"})),C2=" ",D2="Enter",k2="Tab",b2="x",U2="c",F2="Enter",M2="r",$2="v",j2="d",H2="f",G2="i",z2="e",K2="a",W2=["Backspace","Delete"],Z2="ArrowDown",V2="ArrowUp",Y2="ArrowLeft",q2="ArrowRight",X2="PageUp",Q2="PageDown",J2="Home",ew="End",tw="ArrowLeft",nw="ArrowRight",rw="application/octet-stream",Ul="skin-default",df="skin-dos",iw={accentColor:"#FF672E",skin:Ul,hideNavigationBar:!1,hideDownloadManager:!1,hideInfobar:!1,bufferedWrite:!0,checkSignature:!1,keepOrder:!0,maxWorkers:2,chunkSize:512*1024,promptForExportPassword:!0,defaultExportPassword:"",zoomFactor:100},_f=".zip",Fm=[_f,".docx",".epub",".jar",".odp",".ods",".odt",".pptx",".xlsx",".key",".pages",".numbers",".apk",".ipa"],ow={"application/zip":[_f],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/epub+zip":[".epub"],"application/java-archive":[".jar"],"application/vnd.oasis.opendocument.presentation":[".odp"],"application/vnd.oasis.opendocument.spreadsheet":[".ods"],"application/vnd.oasis.opendocument.text":[".odt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[".pptx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[".xlsx"],"application/vnd.apple.keynote":[".key"],"application/vnd.apple.pages":[".pages"],"application/vnd.apple.numbers":[".numbers"],"application/vnd.android.package-archive":[".apk"],"application/x-ios-app":[".ipa"]},sw=Fm.join(","),aw=750,lw="create-folder-button",cw="add-files-button",uw="import-zip-button",fw="export-zip-button",dw="copy-button",_w="cut-button",pw="paste-button",Ew="extract-button",mw="select-all",Tw="rename-button",hw="delete-entry-button",Lw="back-button",Ow="forward-button",Aw="options",gw="font-size",vw="--message-drag-and-drop-entries",ww="--folder-separator",xw="/",yw="main-container",Sw="hidden-footer",Nw="hidden-downloads",Iw="app-loading",Rw=32,Bw=128,Pw={[Ul]:Bw,[df]:Rw},Yt=Object.freeze(Object.defineProperty({__proto__:null,ACTION_KEY:C2,ADD_FILES_BUTTON_NAME:cw,ADD_FILES_KEY:H2,APP_CLASSNAME:yw,APP_LOADING_ATTRIBUTE_NAME:Iw,BACK_BUTTON_NAME:Lw,BACK_KEY:tw,COPY_BUTTON_NAME:dw,COPY_KEY:U2,CREATE_FOLDER_BUTTON_NAME:lw,CREATE_FOLDER_KEY:j2,CUT_BUTTON_NAME:_w,CUT_KEY:b2,DEFAULT_MIME_TYPE:rw,DEFAULT_OPTIONS:iw,DELETE_BUTTON_NAME:hw,DELETE_KEYS:W2,DOWNLOAD_MANAGER_HIDDEN_CLASSNAME:Nw,DOWN_KEY:Z2,END_KEY:ew,ENTER_KEY:D2,EXPORT_ZIP_BUTTON_NAME:fw,EXPORT_ZIP_KEY:z2,EXTRACT_BUTTON_NAME:Ew,EXTRACT_KEY:F2,FFT_RESOLUTIONS:Pw,FOLDER_SEPARATOR:xw,FOLDER_SEPARATOR_CUSTOM_PROPERTY_NAME:ww,FONT_SIZE_PROPERTY_NAME:gw,FORWARD_BUTTON_NAME:Ow,FORWARD_KEY:nw,HIGHLIGHT_ALL_BUTTON_NAME:mw,HIGHLIGHT_ALL_KEY:K2,HOME_KEY:J2,IMPORT_ZIP_BUTTON_NAME:uw,IMPORT_ZIP_KEY:G2,INFOBAR_HIDDEN_CLASSNAME:Sw,LEFT_KEY:Y2,LONG_TOUCH_DELAY:aw,NO_ENTRIES_CUSTOM_PROPERTY_NAME:vw,OPTIONS_DEFAULT_SKIN:Ul,OPTIONS_DOS_SKIN:df,OPTIONS_KEY_NAME:Aw,PAGE_DOWN_KEY:Q2,PAGE_UP_KEY:X2,PASTE_BUTTON_NAME:pw,PASTE_KEY:$2,RENAME_BUTTON_NAME:Tw,RENAME_KEY:M2,RIGHT_KEY:q2,TAB_KEY:k2,UP_KEY:V2,ZIP_EXTENSION:_f,ZIP_EXTENSIONS:Fm,ZIP_EXTENSIONS_ACCEPT:ow,ZIP_EXTENSIONS_ACCEPT_STRING:sw},Symbol.toStringTag,{value:"Module"}));function Cw({entries:e,highlightedIds:t,selectedFolder:n,clipboardData:r,history:i,dialogs:o,getOptions:s,filesystemService:l}){const a=!e.length,c=!t.length||n.parent&&t.includes(n.parent.id),f=t.find(D=>{const se=n.children.find(X=>X.id===D);return se?se.directory:!1}),_=!r,E=e.filter(D=>D!==n.parent),O=a||!E.length,w=a,h=a,m=!i.index,u=i.index===i.path.length-1,d=c,p=c,A=_||r.cut&&r.entries.find(D=>n==D||n.isDescendantOf(D)),g=_,L=c||!t.length||!l.savePickersSupported()&&f,v=!n||!E.length||E.length===t.length&&E.every(D=>t.includes(D.id)),T=t.length!==1||c,S=c,y=t.length!==1,I=o.exportZip||o.extract||o.rename||o.createFolder||o.deleteEntries||o.reset||o.displayError||o.enterImportPassword||o.chooseAction||o.options,C=s(),R=C.hideNavigationBar,k=C.hideDownloadManager,M=C.hideInfobar,F=!C.promptForExportPassword,ee=n&&n.children.filter(D=>t.includes(D.id))||[],N=t.length===1&&n&&n.children.find(D=>D.id===t[0]),q=Dw(n);return{disabledExportZip:O,disabledReset:w,disabledNavigation:h,disabledBack:m,disabledForward:u,disabledCopy:d,disabledCut:p,disabledPaste:A,disabledResetClipboardData:g,disabledExtract:L,disabledHighlightAll:v,disabledRename:T,disabledDelete:S,disabledEnterEntry:y,dialogDisplayed:I,hiddenNavigationBar:R,hiddenDownloadManager:k,hiddenInfobar:M,hiddenExportPassword:F,highlightedEntries:ee,highlightedEntry:N,selectedFolderEntries:E,ancestorFolders:q}}function Dw(e){const t=[];for(;e&&e.parent;)t.unshift(e),e=e.parent;return e&&t.unshift(e),t}function kw({entries:e,downloads:t,dialogDisplayed:n,onEntriesKeyUp:r,onFoldersKeyUp:i,onHighlightedEntriesKeyUp:o,onAppKeyUp:s,onEntriesKeyDown:l,onHighlightedEntriesKeyDown:a,onSelectedFolderKeyDown:c}){function f(O){n||(r(O),i(O),o(O),s(O))}function _(O){n||(l(O),a(O),c(O))}function E(O){(e.length||t.length)&&(O.preventDefault(),O.returnValue="")}return{handlePageUnload:E,handleKeyUp:f,handleKeyDown:_}}function bw({dialogs:e,setDownloads:t,setDialogs:n,removeDownload:r,downloadService:i,filesystemService:o,environmentService:s}){const l=s.isMacOSPlatform();async function a(p,A,g,L){if(o.savePickersSupported())try{!L&&(p.length>1||p[0].directory)&&(L=await O())}catch(v){if(i.downloadAborted(v))return;throw v}await Promise.all(p.map(async v=>c(v,A,g,L)))}async function c(p,A,g,L){!L&&p.directory&&(L=await O());const v=A||p.name;let T;try{p.directory?await f(v,p,g,L):(T={name:v,controller:i.createAbortController(),progressValue:null,progressMax:null},await _(v,p,g,T,L))}catch(S){if(!i.downloadAborted(S))throw S}finally{T&&r(T)}}async function f(p,A,g,L){const v=await L.getDirectoryHandle(p,{create:!0});await a(A.children,null,g,v)}async function _(p,A,g,L,v){const{signal:T}=L.controller,S=(R,k)=>h(L.id,R,k);let y,I,C;o.savePickersSupported()?(v?y=await v.getFileHandle(p,{create:!0}):(y=await w(p),L.name=y.name),I=await y.createWritable()):{writable:I,blob:C}=E(),t(R=>{let{nextId:k}=R;return L.id=k,k=k+1,{nextId:k,queue:[L,...R.queue]}}),await A.getWritable(I,{signal:T,onprogress:S,...g}),!o.savePickersSupported()&&!T.aborted&&o.saveBlob(await C,L.name)}function E(){const{readable:p,writable:A}=new TransformStream({});return{blob:new Response(p).blob(),writable:A}}function O(){return o.showDirectoryPicker({mode:"readwrite",startIn:"downloads"})}function w(p){return o.showSaveFilePicker({suggestedName:p,mode:"readwrite",startIn:"downloads"})}function h(p,A,g){t(L=>({...L,queue:L.queue.map(v=>(v.id===p&&(v={...v,progressValue:A,progressMax:g}),v))}))}function m(p){n({...e,displayError:{message:p}})}function u(){n({...e,displayError:null})}function d(p){return l?p.metaKey:p.ctrlKey}return{modifierKeyPressed:d,saveZipFile:c,saveEntries:a,openDisplayError:m,closeDisplayError:u}}function Uw({disabledNavigation:e,disabledHighlightAll:t,entries:n,selectedFolderEntries:r,highlightedIds:i,navigation:o,dialogDisplayed:s,entriesElementHeight:l,entriesDeltaHeight:a,entriesElement:c,setHighlightedIds:f,resetHighlightedEntryElement:_,setNavigation:E,setOptions:O,setEntriesHeight:w,setEntriesElementHeight:h,setEntriesDeltaHeight:m,setClickedButtonName:u,getEntriesHeight:d,getHighlightedEntryElement:p,getOptions:A,modifierKeyPressed:g,documentService:L,windowService:v,constants:T}){const{ACTION_KEY:S,DOWN_KEY:y,UP_KEY:I,PAGE_UP_KEY:C,PAGE_DOWN_KEY:R,HOME_KEY:k,END_KEY:M,HIGHLIGHT_ALL_KEY:F,HIGHLIGHT_ALL_BUTTON_NAME:ee}=T;function N(){return L.getHeight(c)}function q(){const U=p();if(U)return L.getRowHeight(U)}function D(){const U=Ce(),oe=n[(U-1+n.length)%n.length];ce(oe)}function se(){const U=Ce(),oe=n[(U+1)%n.length];ce(oe)}function X(){const U=Ce(),oe=pe(U);ce(oe)}function Y(){const U=Ce(),oe=Ee(U);ce(oe)}function de(){ce(n[0])}function Te(){ce(n[n.length-1])}function _e(U){const oe=n.filter(B=>B.name&&B.name.toLocaleLowerCase().startsWith(U.toLocaleLowerCase()));if(oe.length){const B=oe[0];oe.length===1?ce(B):(E(()=>({previousHighlight:B,direction:0})),f(oe.reverse().map(H=>H.id)))}}function Ne(U){ce(U)}function ne(U){E(()=>({previousHighlight:U[U.length-1],direction:0})),f(U.map(oe=>oe.id))}function $(){const U=i.filter(oe=>r.find(B=>B.id===oe));f(n.filter(oe=>!U.includes(oe.id)).filter(oe=>r.includes(oe)).map(oe=>oe.id).concat(...U))}function ie(U){let oe=W(i,U);E(()=>({previousHighlight:U,direction:0})),oe.length({previousHighlight:U,direction:0})),f([U.id])}function V(U,oe=Pe()){const B=n.findIndex(b=>b.id===U.id);let H=[...i];if(oeB)for(let b=oe-1;b>=B;b--)H=W(H,n[b]);E(()=>({previousHighlight:U,direction:0})),f(H)}function W(U,oe){if(U.includes(oe.id)){if(U.length>1)return U.filter(B=>B!==oe.id)}else return[...U,oe.id];return U}function ue(){if(o.previousHighlight){const U=Pe();if(o.direction===1)ie(o.previousHighlight);else if(U>0){const oe=n[U-1];i.length===1&&i.includes(oe.id)?U>1&&ie(n[U-2]):ie(oe)}E(oe=>({...oe,direction:-1}))}}function j(){if(o.previousHighlight){const U=Pe();if(o.direction===-1)ie(o.previousHighlight);else if(U({...oe,direction:1}))}}function P(){if(o.previousHighlight){const U=Pe(),oe=pe(U);o.direction!==1?V(oe):V(oe,U+1),E(B=>({...B,direction:-1}))}}function J(){if(o.previousHighlight){const U=Pe(),oe=Ee(U);o.direction!==-1?V(oe):V(oe,U-1),E(B=>({...B,direction:1}))}}function fe(){if(o.previousHighlight){const U=Pe(),oe=n[0];o.direction!==1?V(oe):V(oe,U+1),E(B=>({...B,direction:-1}))}}function Le(){if(o.previousHighlight){const U=Pe(),oe=n[n.length-1];o.direction!==-1?V(oe):V(oe,U-1),E(B=>({...B,direction:1}))}}function pe(U){return n[Math.max(U-d(),0)]}function Ee(U){return n[Math.min(U+d(),n.length-1)]}function Pe(){return n.findIndex(U=>U===o.previousHighlight)}function Ce(){const U=i[i.length-1];return n.findIndex(oe=>oe.id===U)}function De(U){m(U)}function et(){c&&p()&&w(Math.max(Math.ceil(N()/q()),1))}function rt(){if(!s){let U=l;const oe=A();!U&&oe.entriesHeight&&(U=oe.entriesHeight),U&&h(U)}}function mt(){const U=N();h(Math.max(Math.min(U+a,U),U)),m(0)}function Dn(){if(c){const U=L.addResizeObserver(c,()=>{const oe=N(),B=A();oe!==B.entriesHeight&&(B.entriesHeight=oe,O(B),et())});return v.addResizeListener(rt),()=>{U.disconnect(),v.removeResizeListener(rt)}}}function Wn(){p()&&L.scrollIntoView(p())}function on(U){e||!U.altKey&&!g(U)&&U.key.length===1&&U.key!==S&&_e(U.key)}function sn(U){g(U)&&U.key===F&&(U.preventDefault(),t||u(ee)),e||(U.shiftKey&&(U.key===y&&j(),U.key===I&&ue(),U.key===C&&P(),U.key===R&&J(),U.key===k&&fe(),U.key===M&&Le(),U.preventDefault()),!U.altKey&&!g(U)&&!U.shiftKey&&(U.key===y&&se(),U.key===I&&D(),U.key===k&&de(),U.key===M&&Te(),U.key===C&&X(),U.key===R&&Y(),U.preventDefault()))}return{highlight:Ne,highlightEntries:ne,highlightAll:$,toggle:ie,toggleRange:V,resizeEntries:De,updateEntriesHeight:et,updateEntriesElementHeight:rt,updateEntriesElementHeightEnd:mt,updateHighlightedEntries:Wn,registerResizeEntriesHandler:Dn,onEntriesKeyUp:on,onEntriesKeyDown:sn}}function Fw({disabledBack:e,disabledForward:t,history:n,highlightedEntry:r,highlightedEntries:i,selectedFolder:o,setSelectedFolder:s,setEntries:l,setHistory:a,setHighlightedIds:c,setClickedButtonName:f,modifierKeyPressed:_,constants:E}){const{LEFT_KEY:O,RIGHT_KEY:w,BACK_KEY:h,FORWARD_KEY:m,BACK_BUTTON_NAME:u,FORWARD_BUTTON_NAME:d}=E;function p(C){const R=[...n.path],k=n.index+1;C.isDescendantOf(o)&&(R.length=k+1),R[k]=C,a({index:k,path:R}),v(o,C),s(C),S(C)}function A(){L(-1)}function g(){L(1)}function L(C){const R=n.index+C;a({...n,index:R});const k=n.path[R];v(o,k),s(k),S(k)}function v(C,R){if(C.children.includes(R)||R.children.includes(C))c([C.id]);else{const k=R.children.find(M=>C.isDescendantOf(M));c(k?[k.id]:[R.parent.id])}}function T(){let C=0,R;const k=n.path.filter((F,ee)=>{const N=R===F||i.includes(F)||i.find(q=>F.isDescendantOf(q));return N?ee<=n.index&&C++:R=F,!N}),M=n.index-C;a({path:k,index:M})}function S(C=o){if(C){const{parent:R,children:k}=C,M=y(k,!0),F=y(k,!1),ee=[];R&&ee.push(R),l([...ee,...M,...F])}}function y(C,R){return C.filter(k=>!!k.directory===R).sort((k,M)=>k.name.localeCompare(M.name))}function I(C){C.altKey&&(C.key===h&&!e&&f(u),C.key===m&&!t&&f(d)),!C.altKey&&!_(C)&&!C.shiftKey&&(C.key===O&&o.parent&&p(o.parent),C.key===w&&r&&r.directory&&p(r))}return{goIntoFolder:p,navigateBack:A,navigateForward:g,refreshSelectedFolder:S,updateHistoryData:T,onFoldersKeyUp:I}}function Mw({disabledPaste:e,disabledExportZip:t,zipFilesystem:n,selectedFolder:r,rootZipFilename:i,clipboardData:o,dialogs:s,setHighlightedIds:l,setClipboardData:a,setDialogs:c,setClickedButtonName:f,refreshSelectedFolder:_,highlightEntries:E,saveZipFile:O,getOptions:w,openDisplayError:h,filesystemService:m,fileHandlersService:u,shareTargetService:d,modifierKeyPressed:p,constants:A}){const{ZIP_EXTENSION:g,ZIP_EXTENSIONS:L,ZIP_EXTENSIONS_ACCEPT:v,CREATE_FOLDER_KEY:T,ADD_FILES_KEY:S,IMPORT_ZIP_KEY:y,EXPORT_ZIP_KEY:I,PASTE_KEY:C,CREATE_FOLDER_BUTTON_NAME:R,ADD_FILES_BUTTON_NAME:k,IMPORT_ZIP_BUTTON_NAME:M,EXPORT_ZIP_BUTTON_NAME:F,PASTE_BUTTON_NAME:ee}=A;function N(){d.onShareFiles(X),u.onOpenWith(_e)}function q(){c({...s,createFolder:{}})}function D({folderName:P}){try{const J=r.addDirectory(P);E([J]),_()}catch(J){h(J.message)}}function se(){c({...s,createFolder:null})}function X(P,J={}){if(!de(P,X,J)){const Le=[];try{P.forEach(pe=>{try{Le.push(r.addFile(pe,J))}catch(Ee){const Pe=Ee.message+(pe?" ("+pe.name+")":"");throw new Error(Pe)}})}catch(pe){h(pe.message)}finally{Le.length&&Ne(Le),_()}}}function Y(P,J={}){async function fe(){let Le=[];const pe=P[0];P=Array.from(P);try{if(!(pe.kind===m.FILESYSTEM_FILE_KIND&&P.length===1&&de([await pe.getAsFile()],fe,J))){const Ce=(await Promise.allSettled(P.map(async De=>{const et=await r.addFileSystemHandle(De.getAsFileSystemHandle?await De.getAsFileSystemHandle():De.webkitGetAsEntry(),J);Le=Le.concat(et)}))).find(De=>De.status==="rejected");if(Ce)throw Ce.reason}}catch(Ee){h(Ee.message)}finally{const Ee=r.children.filter(Pe=>Le.includes(Pe));Ee.length&&Ne(Ee),_()}}fe()}function de(P,J,{forceAddFiles:fe}){const Le=P.length===1&&L.find(pe=>P[0].name.endsWith(pe))&&!fe;return Le&&(s.chooseAction?J(P,{forceAddFiles:!0}):c({...s,chooseAction:{files:P}})),Le}function Te(){c({...s,chooseAction:null})}function _e(P,J={}){async function fe(){var Pe;let pe=[],Ee=[];try{if(pe=await r.importBlob(P,J),(await Promise.all(pe.map(De=>!De.directory&&De.isPasswordProtected()))).includes(!0)&&!J.password){Le(pe);const{password:De}=await new Promise(rt=>c({...s,enterImportPassword:{onSetImportPassword:rt}})),et=!(await Promise.all(pe.map(rt=>rt.directory||rt.checkPassword(De)))).includes(!1);_e(P,et?{password:De}:{})}}catch(Ce){Le(pe);const De=(Pe=Ce==null?void 0:Ce.cause)==null?void 0:Pe.entry,et=De&&De.filename.split("/"),rt=Ce.message+(et&&et.length?" ("+et.pop()+")":"");h(rt)}finally{Ee=r.children.filter(Ce=>pe.includes(Ce)),Ee.length&&Ne(Ee),_()}}function Le(pe){pe.forEach(Ee=>!Ee.directory&&n.remove(Ee)),pe.forEach(Ee=>Ee.directory&&!Ee.children.length&&n.remove(Ee))}fe()}function Ne(P){E(P.sort((J,fe)=>fe.name.localeCompare(J.name)))}function ne(){const P=r.name?r.name+g:i,J=w(),fe=J.defaultExportPassword;!m.savePickersSupported()||J.promptForExportPassword?c({...s,exportZip:{filename:P,filenameHidden:m.savePickersSupported(),password:fe}}):V({filename:P,password:fe})}function $(){async function P(){const J=await m.showOpenFilePicker({multiple:!0});X(J)}P()}function ie({description:P}){async function J(){const fe=await m.showOpenFilePicker({multiple:!1,description:P,accept:v});fe.length&&_e(fe[0])}J()}function ce(){c({...s,exportZip:null})}function V({filename:P,password:J}){function fe(pe,Ee){return r.exportWritable(pe,Ee)}async function Le(){try{const pe=w();await O({filename:P,getWritable:fe},P,{...pe,password:J,readerOptions:{checkSignature:pe.checkSignature}})}catch(pe){h(pe.message)}}Le()}function W(){let P=[];try{const{entries:fe,cut:Le}=o;if(Le)fe.forEach(pe=>J(pe));else{const pe=fe.map(Ee=>{let Pe=Ee.clone(!0);return J(Ee),Pe});a({entries:pe})}}catch(fe){h(fe.message)}finally{P.length&&l(P.map(fe=>fe.id)),_()}function J(fe){try{n.move(fe,r),P.push(fe)}catch(Le){const pe=Le.message+(" ("+fe.name+")");throw new Error(pe)}}}function ue(){c({...s,enterImportPassword:null})}function j(P){p(P)&&(P.key===T&&(f(R),P.preventDefault()),P.key===S&&(f(k),P.preventDefault()),P.key===y&&(f(M),P.preventDefault()),P.key===I&&!t&&(f(F),P.preventDefault()),P.key===C&&!e&&(f(ee),P.preventDefault()))}return{initSelectedFolderFeatures:N,openPromptCreateFolder:q,createFolder:D,closePromptCreateFolder:se,addFiles:X,dropFiles:Y,closeChooseAction:Te,importZipFile:_e,openPromptExportZip:ne,exportZip:V,paste:W,closePromptExportZip:ce,closePromptImportPassword:ue,showAddFilesPicker:$,showImportZipFilePicker:ie,onSelectedFolderKeyDown:j}}function $w({disabledCopy:e,disabledCut:t,disabledExtract:n,disabledRename:r,disabledDelete:i,zipFilesystem:o,entries:s,highlightedIds:l,highlightedEntry:a,highlightedEntries:c,navigation:f,dialogs:_,setClipboardData:E,setHighlightedIds:O,setNavigation:w,setDialogs:h,setClickedButtonName:m,refreshSelectedFolder:u,updateHistoryData:d,saveEntries:p,getOptions:A,openDisplayError:g,filesystemService:L,modifierKeyPressed:v,constants:T}){const{CUT_KEY:S,COPY_KEY:y,EXTRACT_KEY:I,RENAME_KEY:C,CUT_BUTTON_NAME:R,COPY_BUTTON_NAME:k,EXTRACT_BUTTON_NAME:M,RENAME_BUTTON_NAME:F,DELETE_KEYS:ee,DELETE_BUTTON_NAME:N}=T;function q(){E({entries:c.map(V=>V.clone(!0))})}function D(){E({entries:c,cut:!0})}function se(){h({..._,rename:{filename:a.name}})}function X({filename:V}){try{V!==a.name&&(a.rename(V),u())}catch(W){g(W.message)}}function Y(){h({..._,rename:null})}function de(){h({..._,deleteEntries:{}})}function Te(){if(c.forEach(V=>o.remove(V)),s.length){const V=Math.max(...s.map((ue,j)=>({entry:ue,index:j})).filter(({entry:ue})=>l.includes(ue.id)).map(({index:ue})=>ue));let W=V;for(;W=0&&l.includes(s[W].id);)W--;s[W]?(w({...f,previousHighlight:s[W]}),O([s[W].id])):(w({...f,previousHighlight:null}),O([]))}d(),u()}function _e(){h({..._,deleteEntries:null})}function Ne(V=a){const W={entries:[V],filename:V.name};L.savePickersSupported()?ne(W):h({..._,extract:W})}function ne({entries:V=c,filename:W}={}){async function ue(){try{const j=A();W=V.length===1?W:null,await p(V,W,j)}catch(j){g(j.message)}}ue()}function $(){h({..._,extract:null})}function ie(V){!V.altKey&&!v(V)&&!V.shiftKey&&ee.includes(V.key)&&!i&&m(N)}function ce(V){v(V)&&(V.key===y&&!e&&(m(k),V.preventDefault()),V.key===S&&!t&&(m(R),V.preventDefault()),V.key===I&&!n&&(m(M),V.preventDefault()),V.key===C&&!r&&(m(F),V.preventDefault()))}return{copy:q,cut:D,openPromptRename:se,rename:X,closePromptRename:Y,openConfirmDeleteEntries:de,deleteEntries:Te,closeConfirmDeleteEntries:_e,openPromptExtract:Ne,extract:ne,closePromptExtract:$,onHighlightedEntriesKeyUp:ie,onHighlightedEntriesKeyDown:ce}}function jw({disabledEnterEntry:e,zipFilesystem:t,highlightedEntry:n,selectedFolder:r,hiddenInfobar:i,hiddenDownloadManager:o,setNavigation:s,setSelectedFolder:l,setHighlightedIds:a,setHistory:c,setClickedButtonName:f,goIntoFolder:_,openPromptExtract:E,refreshSelectedFolder:O,modifierKeyPressed:w,stylesheetService:h,documentService:m,i18nService:u,constants:d,messages:p}){const{NO_ENTRIES_CUSTOM_PROPERTY_NAME:A,FOLDER_SEPARATOR_CUSTOM_PROPERTY_NAME:g,FOLDER_SEPARATOR:L,APP_LOADING_ATTRIBUTE_NAME:v,APP_CLASSNAME:T,INFOBAR_HIDDEN_CLASSNAME:S,DOWNLOAD_MANAGER_HIDDEN_CLASSNAME:y,ACTION_KEY:I}=d;function C(){h.setStyle(A,JSON.stringify(p.NO_ENTRIES_LABEL)),h.setStyle(g,JSON.stringify(L)),m.setDocumentLanguage(u.getLanguageId()),m.removeDocumentAttribute(v)}function R(){const{root:N}=t;l(N),a([]),s({previousHighlight:null,direction:0}),c({path:[N],index:0}),O(N)}function k(N){N.directory?_(N):E(N)}function M(){f(null)}function F(){const N=[T];return i&&N.push(S),o&&N.push(y),N.join(" ")}function ee(N){!N.altKey&&!w(N)&&!N.shiftKey&&N.key===I&&!e&&(k(n||r.parent),N.preventDefault())}return{enterEntry:k,initAppFeatures:C,updateZipFilesystem:R,resetClickedButtonName:M,getAppClassName:F,onAppKeyUp:ee}}function Hw({dialogs:e,setZipFilesystem:t,setDialogs:n,zipService:r}){function i(){n({...e,reset:{}})}function o(){t(r.createZipFileSystem())}function s(){n({...e,reset:null})}return{openConfirmReset:i,reset:o,closeConfirmReset:s}}function Gw({setDownloads:e,downloadService:t}){function n(i){r(i),t.abortDownload(i.controller)}function r(i){e(o=>({...o,queue:o.queue.filter(s=>s.id!==i.id)}))}return{removeDownload:r,abortDownload:n}}function zw({setClipboardData:e}){function t(){e(null)}return{resetClipboardData:t}}function Kw({dialogs:e,setDialogs:t,setTheme:n,zipService:r,storageService:i,stylesheetService:o,environmentService:s,themeService:l,constants:a}){const{DEFAULT_OPTIONS:c,OPTIONS_KEY_NAME:f,FONT_SIZE_PROPERTY_NAME:_}=a;function E(){O(d())}function O(L){p(L),A(L),g(L)}function w(){t({...e,options:d()})}function h(){t({...e,options:null})}function m(){const L={...c};L.maxWorkers=s.getMaximumWorkers(),t({...e,options:L})}function u(L){L={...d(),...L},O(L),i.set(f,L)}function d(){let L=i.get(f);return L||(L={...c},L.maxWorkers=s.getMaximumWorkers()),L.hideNavigationBar===void 0&&(L.hideNavigationBar=c.hideNavigationBar),L.hideDownloadManager===void 0&&(L.hideDownloadManager=c.hideDownloadManager),L.hideInfobar===void 0&&(L.hideInfobar=c.hideInfobar),L.promptForExportPassword===void 0&&(L.promptForExportPassword=c.promptForExportPassword),L.defaultExportPassword===void 0&&(L.defaultExportPassword=c.defaultExportPassword),L.checkSignature===void 0&&(L.checkSignature=c.checkSignature),L.accentColor===void 0&&(L.accentColor=c.accentColor),L.zoomFactor===void 0&&(L.zoomFactor=c.zoomFactor),L.skin===void 0&&(L.skin=c.skin),L}function p(L){const{maxWorkers:v,chunkSize:T}=L;r.configure({maxWorkers:v,chunkSize:T})}function A({zoomFactor:L}){o.setStyle(_,L/100+"rem")}function g({accentColor:L,skin:v}){n({accentColor:L,skin:v}),l.setTheme({accentColor:L,skin:v})}return{initOptionsFeatures:E,getOptions:d,setOptions:u,openOptions:w,closeOptions:h,resetOptions:m}}function Ww({theme:e,setOptions:t,setTheme:n,setMusicData:r,setPlayerActive:i,getOptions:o,stylesheetService:s,themeService:l,musicService:a,constants:c}){const{ACCENT_COLOR_CUSTOM_PROPERTY_NAME:f}=l;function _(){const m=o(),{accentColor:u,skin:d}=m;n({accentColor:u,skin:d})}function E(){i(!0),O(),a.play({onSetFrequencyData:m=>{r(()=>({frequencyData:m}))}})}function O(){e.skin&&a.setFftSize(c.FFT_RESOLUTIONS[e.skin])}function w(){i(!1),a.stop()}function h(){const{accentColor:m,skin:u}=e;if(m){s.setStyle(f,e.accentColor),l.setTheme({accentColor:m,skin:u});const d=o();t({...d,accentColor:m})}}return{playMusic:E,stopMusic:w,updateAccentColor:h,updateSkin:O,initMiscFeatures:_}}const Zw=Object.freeze(Object.defineProperty({__proto__:null,getAppFeatures:jw,getClipboardFeatures:zw,getCommonFeatures:bw,getDownloadsFeatures:Gw,getEntriesFeatures:Uw,getFilesystemFeatures:Hw,getFoldersFeatures:Fw,getHighlightedEntriesFeatures:$w,getMiscFeatures:Ww,getOptionsFeatures:Kw,getSelectedFolderFeatures:Mw},Symbol.toStringTag,{value:"Module"}));function Vw({disabled:e,clickedButtonName:t,onCopy:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.COPY_BUTTON_NAME,title:o.COPY_BUTTON_TOOLTIP,label:o.COPY_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function Yw({disabled:e,clickedButtonName:t,onCut:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.CUT_BUTTON_NAME,title:o.CUT_BUTTON_TOOLTIP,label:o.CUT_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function qw({disabled:e,clickedButtonName:t,onPaste:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.PASTE_BUTTON_NAME,title:o.PASTE_BUTTON_TOOLTIP,label:o.PASTE_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function Xw({disabled:e,onResetClipboardData:t,messages:n}){return x.jsx(gt,{label:n.RESET_CLIPBOARD_BUTTON_LABEL,disabled:e,onClick:t})}function Qw({disabled:e,clickedButtonName:t,onHighlightAll:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.HIGHLIGHT_ALL_BUTTON_NAME,title:o.HIGHLIGHT_ALL_BUTTON_TOOLTIP,label:o.HIGHLIGHT_ALL_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function Jw({disabled:e,clickedButtonName:t,onExtract:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.EXTRACT_BUTTON_NAME,title:o.EXTRACT_BUTTON_TOOLTIP,label:o.EXTRACT_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function ex({disabled:e,clickedButtonName:t,onRename:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.RENAME_BUTTON_NAME,title:o.RENAME_BUTTON_TOOLTIP,label:o.RENAME_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function tx({disabled:e,clickedButtonName:t,onRemove:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.DELETE_BUTTON_NAME,title:o.DELETE_BUTTON_TOOLTIP,label:o.DELETE_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function nx({clickedButtonName:e,onCreateFolder:t,onClickedButton:n,constants:r,messages:i}){return x.jsx(gt,{name:r.CREATE_FOLDER_BUTTON_NAME,title:i.CREATE_FOLDER_BUTTON_TOOLTIP,label:i.CREATE_FOLDER_BUTTON_LABEL,clickedButtonName:e,onClick:t,onClickedButton:n})}function rx({clickedButtonName:e,onShowAddFilesPicker:t,onClickedButton:n,constants:r,messages:i}){return x.jsx(gt,{name:r.ADD_FILES_BUTTON_NAME,title:i.ADD_FILES_BUTTON_TOOLTIP,label:i.ADD_FILES_BUTTON_LABEL,clickedButtonName:e,onClick:t,onClickedButton:n})}function ix({clickedButtonName:e,onShowImportZipFilePicker:t,onClickedButton:n,constants:r,messages:i}){const{IMPORT_ZIP_BUTTON_NAME:o}=r;function s(){t({description:i.ZIP_FILE_DESCRIPTION_LABEL})}return x.jsx(gt,{name:o,title:i.IMPORT_ZIP_BUTTON_TOOLTIP,label:i.IMPORT_ZIP_BUTTON_LABEL,clickedButtonName:e,onClick:s,onClickedButton:n})}function ox({disabled:e,clickedButtonName:t,onExportZip:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.EXPORT_ZIP_BUTTON_NAME,title:o.EXPORT_ZIP_BUTTON_TOOLTIP,label:o.EXPORT_ZIP_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function sx({disabled:e,onReset:t,messages:n}){return x.jsx(gt,{label:n.RESET_BUTTON_LABEL,disabled:e,onClick:t})}function ax({onOpenOptions:e,messages:t}){return x.jsx(gt,{label:t.OPTIONS_BUTTON_LABEL,onClick:e})}function lx({disabled:e,clickedButtonName:t,onNavigateBack:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.BACK_BUTTON_NAME,title:o.BACK_BUTTON_TOOLTIP,label:o.BACK_BUTTON_LABEL,ariaLabel:o.GO_BACK_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function cx({disabled:e,clickedButtonName:t,onNavigateForward:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.FORWARD_BUTTON_NAME,title:o.FORWARD_BUTTON_TOOLTIP,label:o.FORWARD_BUTTON_LABEL,ariaLabel:o.GO_FORWARD_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function gt({name:e,title:t,label:n,disabled:r,ariaLabel:i,clickedButtonName:o,onClick:s,onClickedButton:l}){let a;function c(){a=null,l(),s()}return o&&o===e&&(a="flashing-button"),x.jsx("button",{className:a,title:t,disabled:r,"aria-label":i,onClick:s,onAnimationEnd:c,children:n})}function ux({disabledExportZipButton:e,disabledResetButton:t,clickedButtonName:n,onCreateFolder:r,onImportZipFile:i,onExportZip:o,onReset:s,onOpenOptions:l,onShowImportZipFilePicker:a,onShowAddFilesPicker:c,onClickedButton:f,constants:_,messages:E}){function O(h){h.preventDefault()}function w(h){h.dataTransfer.files&&h.dataTransfer.files[0]&&(h.preventDefault(),i(h.dataTransfer.files[0]))}return x.jsxs("div",{className:"button-bar button-bar-top",role:"toolbar","aria-label":E.SELECTED_FOLDER_LABEL,onDragOver:O,onDrop:w,children:[x.jsxs("div",{className:"button-group",children:[x.jsx(rx,{clickedButtonName:n,onShowAddFilesPicker:c,onClickedButton:f,constants:_,messages:E}),x.jsx(nx,{clickedButtonName:n,onCreateFolder:r,onClickedButton:f,constants:_,messages:E})]}),x.jsxs("div",{className:"button-group",children:[x.jsx(ix,{clickedButtonName:n,onShowImportZipFilePicker:a,onClickedButton:f,constants:_,messages:E}),x.jsx(ox,{disabled:e,clickedButtonName:n,onExportZip:o,onClickedButton:f,constants:_,messages:E})]}),x.jsxs("div",{className:"button-group",children:[x.jsx(sx,{disabled:t,onReset:s,messages:E}),x.jsx(ax,{onOpenOptions:l,messages:E})]})]})}function fx({disabledBackButton:e,disabledForwardButton:t,clickedButtonName:n,onNavigateBack:r,onNavigateForward:i,onClickedButton:o,constants:s,messages:l}){return x.jsxs("span",{className:"history-buttons",children:[x.jsx(lx,{disabled:e,clickedButtonName:n,onNavigateBack:r,onClickedButton:o,constants:s,messages:l}),x.jsx(cx,{disabled:t,clickedButtonName:n,onNavigateForward:i,onClickedButton:o,constants:s,messages:l})]})}function dx({folder:e,ancestorFolders:t,onGoIntoFolder:n,constants:r,messages:i}){return x.jsx("nav",{className:"breadcrumb",children:x.jsx("ol",{children:t.map(o=>{const s=o===e;return x.jsx("li",{children:x.jsx(_x,{folder:o,disabled:!t.length||s,isSelectedFolder:s,onGoIntoFolder:n,constants:r,messages:i})},o.id)})})})}function _x({folder:e,onGoIntoFolder:t,disabled:n,isSelectedFolder:r,constants:i,messages:o}){function s(){const c=["breadcrumb-item"];return n||c.push("breadcrumb-item-active"),c.join(" ")}function l(){n||t(e)}function a({event:c,folder:f}){c.key===i.ENTER_KEY&&l()}return x.jsx("span",{className:s(),role:"button","aria-current":r?"location":null,"aria-label":r?null:o.GO_INTO_FOLDER_LABEL,onClick:l,onKeyUp:c=>a({event:c,folder:e}),tabIndex:n?null:0,children:e.parent?e.name:o.ROOT_FOLDER_LABEL})}function px({hidden:e,selectedFolder:t,ancestorFolders:n,disabledBackButton:r,disabledForwardButton:i,clickedButtonName:o,onNavigateBack:s,onNavigateForward:l,onGoIntoFolder:a,onClickedButton:c,constants:f,messages:_}){if(!e)return x.jsxs("div",{className:"navigation-bar",role:"toolbar","aria-label":_.FOLDERS_LABEL,children:[x.jsx(fx,{disabledBackButton:r,disabledForwardButton:i,clickedButtonName:o,onNavigateBack:s,onNavigateForward:l,onClickedButton:c,constants:f,messages:_}),x.jsx(dx,{folder:t,ancestorFolders:n,onGoIntoFolder:a,constants:f,messages:_})]})}function Ex({entries:e,selectedFolder:t,highlightedIds:n,deltaEntriesHeight:r,entriesElementHeight:i,hiddenDownloadManager:o,onDropFiles:s,onHighlight:l,onToggle:a,onToggleRange:c,onEnter:f,onUpdateEntriesHeight:_,onUpdateEntriesElementHeight:E,onRegisterResizeEntriesHandler:O,entriesElementRef:w,highlightedEntryElementRef:h,i18n:m,constants:u,messages:d}){const[p,A]=te.useState(!1),[g,L]=te.useState(!1),v=te.useRef(null),T=te.useRef(0),S=te.useRef(0);function y(Y){const de=[];return Y.directory&&de.push("directory"),n.includes(Y.id)&&de.push("entry-highlighted"),de.join(" ")}function I(Y){Y.key!==u.TAB_KEY&&Y.preventDefault()}function C(){if(!o&&i)return{height:i+r+"px"}}function R(){k(),v.current=setTimeout(()=>{v.current=null,A(!p)},u.LONG_TOUCH_DELAY)}function k(){v.current&&(clearTimeout(v.current),v.current=null)}function M(Y){const{clientX:de,clientY:Te}=Y.changedTouches[0];if(S.current&&T.current){const _e=Math.abs(Te-S.current);Math.abs(de-T.current)>1&&_e>1&&k()}else T.current=de,S.current=Te}function F(){T.current=0,S.current=0,k()}function ee(Y){Y.preventDefault()}function N(Y){Y.preventDefault(),L(g),Y.dataTransfer.items&&L(!0)}function q(Y){Y.preventDefault(),L(!1)}async function D(Y){Y.dataTransfer.items&&(Y.preventDefault(),L(!1),s(Y.dataTransfer.items))}function se({event:Y,entry:de}){Y.metaKey?a(de):Y.shiftKey?c(de):p?a(de):l(de)}function X(){const Y=["entries","scrollable"];return g&&Y.push("dragging-items"),Y.join(" ")}return te.useEffect(_),te.useEffect(O),te.useEffect(E,[]),x.jsx("div",{className:X(),"aria-label":d.ENTRIES_LABEL,role:"navigation",ref:w,style:C(),onDragOver:N,onDragLeave:q,onDrop:D,children:x.jsx("ol",{onKeyDown:I,onTouchStart:R,onTouchMove:M,onTouchEnd:F,onContextMenu:ee,children:e.map(Y=>n.includes(Y.id)?x.jsx("li",{ref:n[n.length-1]===Y.id?h:null,className:y(Y),tabIndex:0,onClick:de=>se({event:de,entry:Y}),children:x.jsx(F_,{entry:Y,selectedFolder:t,highlighted:!0,selectModeEnabled:p,onToggle:a,onEnter:f,i18n:m,messages:d})},Y.id):x.jsx("li",{className:y(Y),onClick:de=>se({event:de,entry:Y}),children:x.jsx(F_,{entry:Y,selectedFolder:t,highlighted:!1,selectModeEnabled:p,onHighlight:l,onToggle:a,onToggleRange:c,onEnter:f,i18n:m,messages:d})},Y.id))})})}function F_({entry:e,selectedFolder:t,highlighted:n,selectModeEnabled:r,onToggle:i,onEnter:o,i18n:s,messages:l}){return x.jsxs(x.Fragment,{children:[r&&x.jsx("input",{className:"entry-select",type:"checkbox",checked:n,onChange:()=>i(e)}),x.jsx(mx,{entry:e,selectedFolder:t,selectModeEnabled:r,onEnter:o,i18n:s,messages:l}),x.jsx(hx,{entry:e,i18n:s}),x.jsx(Lx,{entry:e,selectedFolder:t,onEnter:o,messages:l})]})}function Mm(e){if(!e.directory)return e.uncompressedSize}function mx({entry:e,selectedFolder:t,selectModeEnabled:n,onEnter:r,i18n:i,messages:o}){const{PARENT_FOLDER_TOOLTIP:s,LAST_MOD_DATE_LABEL:l,SIZE_LABEL:a,COMPRESSED_SIZE_LABEL:c,UNCOMPRESSED_SIZE_LABEL:f}=o,_=e===t.parent;function E(){const w=[_?s:e.name];if(e.data){const{compressedSize:h,lastModified:m,lastModDate:u}=e.data,d=Mm(e);w.push(l+" "+i.formatDate(m===void 0?u:new Date(m))),d&&h&&w.push(c+" "+i.formatSize(h)),d&&w.push((h?f:a)+" "+i.formatSize(d))}return w.join(` +`)}function O(w){!n&&!w.metaKey&&r(e)}return x.jsx("span",{className:"entry-name",title:E(),onDoubleClick:O,children:x.jsx("span",{className:"list-item-name",children:_?o.PARENT_FOLDER_LABEL:e.name})})}function Tx({entry:e,i18n:t}){const n=Mm(e);if(n!==void 0)return t.formatSize(n)}function hx({entry:e,i18n:t}){return x.jsx("span",{className:"entry-size",children:Tx({entry:e,i18n:t})})}function Lx({entry:e,selectedFolder:t,onEnter:n,messages:r}){function i(){const s=[r.SPACE_KEY_LABEL];return e===t.parent?s.push(r.ARROW_LEFT_KEY_LABEL):e.directory&&s.push(r.ARROW_RIGHT_KEY_LABEL),r.SHORTCUT_LABEL+s.join(r.KEYS_SEPARATOR_LABEL)}function o(s){s.stopPropagation(),n(e)}return x.jsx("span",{className:"list-item-button",onClick:o,title:i(),children:e.directory?r.DOWNLOAD_BUTTON_LABEL:r.ENTER_FOLDER_BUTTON_LABEL})}function Ox({disabledCopyButton:e,disabledCutButton:t,disabledPasteButton:n,disabledResetClipboardDataButton:r,disabledExtractButton:i,disabledHighlightAllButton:o,disabledRenameButton:s,disabledDeleteButton:l,clickedButtonName:a,onCopy:c,onCut:f,onPaste:_,onResetClipboardData:E,onExtract:O,onHighlightAll:w,onRename:h,onRemove:m,onMove:u,onUpdateElementHeight:d,onClickedButton:p,constants:A,messages:g}){const L=te.useRef(0);function v(S){const{clientY:y}=S.changedTouches[0];if(L.current){const I=y-L.current;u(I)}else L.current=y}function T(){L.current=0,d()}return x.jsxs("div",{className:"button-bar button-bar-bottom",role:"toolbar","aria-label":g.HIGHLIGHTED_ENTRIES_LABEL,onTouchMove:v,onTouchEnd:T,onContextMenu:S=>S.preventDefault(),children:[x.jsxs("div",{className:"button-group",children:[x.jsx(Qw,{disabled:o,clickedButtonName:a,onHighlightAll:w,onClickedButton:p,constants:A,messages:g}),x.jsx(Jw,{disabled:i,clickedButtonName:a,onExtract:O,onClickedButton:p,constants:A,messages:g}),x.jsx(ex,{disabled:s,clickedButtonName:a,onRename:h,onClickedButton:p,constants:A,messages:g}),x.jsx(tx,{disabled:l,clickedButtonName:a,onRemove:m,onClickedButton:p,constants:A,messages:g})]}),x.jsxs("div",{className:"button-group",children:[x.jsx(Vw,{disabled:e,clickedButtonName:a,onCopy:c,onClickedButton:p,constants:A,messages:g}),x.jsx(Yw,{disabled:t,clickedButtonName:a,onCut:f,onClickedButton:p,constants:A,messages:g}),x.jsx(qw,{disabled:n,clickedButtonName:a,onPaste:_,onClickedButton:p,constants:A,messages:g}),x.jsx(Xw,{disabled:r,onResetClipboardData:E,messages:g})]})]})}function Ax({hidden:e,downloads:t,onAbortDownload:n,i18n:r,constants:i,messages:o}){if(!e)return x.jsx("div",{className:"downloads scrollable","aria-label":o.DOWNLOADS_LABEL,role:"navigation",children:x.jsx("ol",{children:t.queue.map(s=>x.jsx("li",{children:x.jsx(gx,{download:s,onAbortDownload:n,i18n:r,constants:i,messages:o})},s.id))})})}function gx({download:e,onAbortDownload:t,i18n:n,constants:r,messages:i}){return x.jsxs(x.Fragment,{children:[x.jsx(vx,{download:e,onAbortDownload:t,constants:r,messages:i}),x.jsx(xx,{download:e,i18n:n})]})}function vx({download:e,onAbortDownload:t,constants:n,messages:r}){return x.jsxs("div",{className:"download-entry",children:[x.jsx("span",{className:"list-item-name download-entry-name",children:e.name}),x.jsx(wx,{download:e,onAbortDownload:t,constants:n,messages:r})]})}function wx({download:e,onAbortDownload:t,constants:n,messages:r}){function i(){t(e)}function o(s){s.key===n.ENTER_KEY&&i()}return x.jsx("span",{className:"list-item-button download-entry-abort-button",role:"button",onClick:i,onKeyUp:o,tabIndex:0,children:r.ABORT_DOWNLOAD_BUTTON_LABEL})}function xx({download:e,i18n:t}){return x.jsx("progress",{value:e.progressValue&&Math.floor(e.progressValue/1e3),max:e.progressMax&&Math.floor(e.progressMax/1e3),title:e.progressValue&&t.formatPercentValue(100*e.progressValue/e.progressMax)})}function yx({hidden:e,theme:t,musicData:n,playMusic:r,stopMusic:i,onSetTheme:o,musicPlayerActive:s,constants:l,messages:a}){const c="icon icon-music-player",_={label:a.PAUSED_MUSIC_ICON,className:c+" paused"},E={label:a.PLAYING_MUSIC_ICON,className:c},[O,w]=te.useState(_);function h(u){o({accentColor:u})}function m(u){w(u?_:E)}if(!e)return x.jsx("footer",{className:"info-bar",children:x.jsxs("div",{className:"source-link"+(s?" player-active":""),children:[x.jsxs("span",{className:"label",children:[a.INFO_LABEL[0],x.jsx("a",{href:"https://github.com/gildas-lormeau/zip-manager",target:"_blank",rel:"noreferrer",children:x.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("g",{children:x.jsx("path",{id:"Vector",d:"M10.0002 5H8.2002C7.08009 5 6.51962 5 6.0918 5.21799C5.71547 5.40973 5.40973 5.71547 5.21799 6.0918C5 6.51962 5 7.08009 5 8.2002V15.8002C5 16.9203 5 17.4801 5.21799 17.9079C5.40973 18.2842 5.71547 18.5905 6.0918 18.7822C6.5192 19 7.07899 19 8.19691 19H15.8031C16.921 19 17.48 19 17.9074 18.7822C18.2837 18.5905 18.5905 18.2839 18.7822 17.9076C19 17.4802 19 16.921 19 15.8031V14M20 9V4M20 4H15M20 4L13 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),a.INFO_LABEL[1]]}),x.jsx("span",{children:x.jsx(Nx,{playMusic:r,stopMusic:i,musicPlayerActive:s,iconPlayer:O,onSetIconPlayer:m})}),x.jsxs("span",{className:"label",children:[a.INFO_LABEL[2],x.jsx(Sx,{accentColor:t.accentColor,onSetAccentColor:h,messages:a,children:a.INFO_LABEL[3]}),a.INFO_LABEL[4],x.jsx("a",{href:a.CITY_URL,target:"_blank",rel:"noreferrer",children:a.INFO_LABEL[5]})]}),x.jsx(Ix,{skin:t.skin,musicData:n,accentColor:t.accentColor,musicPlayerActive:s,constants:l})]})})}function Sx({accentColor:e,onSetAccentColor:t,children:n,messages:r}){const i=te.useRef(null);function o(){t(i.current.value)}return te.useEffect(()=>{e&&(i.current.value=e)},[e]),x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"icon",children:n}),x.jsx("input",{type:"color","aria-label":r.ACCENT_COLOR_LABEL,onChange:o,ref:i,tabIndex:-1})]})}function Nx({playMusic:e,stopMusic:t,musicPlayerActive:n,iconPlayer:r,onSetIconPlayer:i}){function o(){n?(t(),i(!0)):(e(),i())}return x.jsx(x.Fragment,{children:x.jsx("span",{className:r.className,onClick:o,tabIndex:0,children:r.label})})}function Ix({skin:e,musicData:t,accentColor:n,musicPlayerActive:r,constants:i}){const c=te.useRef(null),f=te.useRef(null);let _;if(O(),c.current){f.current||(f.current=c.current.getContext("2d"),E(),O());const w=f.current;w.clearRect(0,0,128,64),r&&t.frequencyData.forEach((h,m)=>{const u=(8-h)/4;w.fillRect(m*_,64,_,u),w.fillRect(128-m*_-_,64,_,u)})}function E(){const w=f.current,h=w.createLinearGradient(0,0,0,64);h.addColorStop(0,n),h.addColorStop(.7,n),h.addColorStop(1,"transparent"),w.fillStyle=h}function O(){e&&(_=128/(i.FFT_RESOLUTIONS[e]/2))}return te.useEffect(()=>{f.current&&E()},[n]),te.useEffect(O,[e]),x.jsx("canvas",{ref:c,width:128,height:64})}function ur({className:e,data:t,title:n,resetLabel:r,cancelLabel:i,submitLabel:o,children:s,onOpen:l,onSubmit:a,onReset:c,onClose:f}){const _=te.useRef(null);function E(w){w.preventDefault(),c()}function O(){_.current.close()}return te.useEffect(()=>{!_.current.open&&t&&(l&&l(),_.current.showModal())},[t]),x.jsx("dialog",{className:e,ref:_,onClose:f,children:x.jsxs("form",{method:"dialog",onSubmit:a,onReset:O,children:[x.jsx("div",{className:"dialog-title",children:n}),x.jsx("p",{children:s}),x.jsxs("div",{className:"button-bar",children:[x.jsx("div",{className:"button-group",children:r&&x.jsx("button",{type:"reset",onClick:E,children:r})}),x.jsxs("div",{className:"button-group",children:[i&&x.jsx("button",{type:"reset",children:i}),x.jsx("button",{type:"submit",children:o})]})]})]})})}function Rx({data:e,hiddenPassword:t,onExportZip:n,onClose:r,messages:i}){const o=te.useRef(null),s=te.useRef(!1),[l,a]=te.useState(""),[c,f]=te.useState(""),_=e==null?void 0:e.filenameHidden;function E(u){a(u.target.value)}function O(u){f(u.target.value)}function w(){const{filename:u,password:d}=e;a(u),f(d)}function h(){n({filename:l,password:c})}function m(){s.current=!1,r()}return te.useEffect(()=>{if(!s.current&&l&&o&&o.current){s.current=!0;let u=l.lastIndexOf(".");o.current.setSelectionRange(0,u===-1?l.length:u)}},[l]),x.jsxs(ur,{data:e,title:i.EXPORT_ZIP_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.EXPORT_ZIP_DIALOG_BUTTON_LABEL,onOpen:w,onClose:m,onSubmit:h,children:[x.jsxs("label",{style:{display:_?"none":null},children:[i.EXPORT_ZIP_FILENAME_LABEL,!_&&x.jsx("input",{spellCheck:"false",type:"text",value:l,required:!0,onChange:E,ref:o})]}),t||x.jsxs("label",{children:[i.EXPORT_ZIP_PASSWORD_LABEL,x.jsx("input",{type:"password",autoComplete:"off",value:c,onChange:O})]})]})}function Bx({data:e,onExtract:t,onClose:n,messages:r}){const i=te.useRef(null),o=te.useRef(!1),[s,l]=te.useState("");function a(E){l(E.target.value)}function c(){l(e.filename)}function f(){t({filename:s,entries:e.entries})}function _(){l(""),o.current=!1,n()}return te.useEffect(()=>{!o.current&&s&&(o.current=!0,i.current.select())},[s]),x.jsx(ur,{data:e,title:r.EXTRACT_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.EXTRACT_DIALOG_BUTTON_LABEL,onOpen:c,onClose:_,onSubmit:f,children:x.jsxs("label",{children:[r.EXTRACT_FILENAME_LABEL,x.jsx("input",{spellCheck:"false",type:"text",value:s,required:!0,onChange:a,ref:i})]})})}function Px({data:e,onRename:t,onClose:n,messages:r}){const i=te.useRef(null),o=te.useRef(!1),[s,l]=te.useState("");function a(E){l(E.target.value)}function c(){l(e.filename)}function f(){t({filename:s})}function _(){l(""),o.current=!1,n()}return te.useEffect(()=>{!o.current&&s&&(o.current=!0,i.current.select())},[s]),x.jsx(ur,{data:e,title:r.RENAME_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.RENAME_DIALOG_BUTTON_LABEL,onOpen:c,onClose:_,onSubmit:f,children:x.jsxs("label",{children:[r.RENAME_FILENAME_LABEL,x.jsx("input",{spellCheck:"false",type:"text",value:s,required:!0,onChange:a,ref:i})]})})}function Cx({data:e,onCreateFolder:t,onClose:n,messages:r}){const[i,o]=te.useState("");function s(c){o(c.target.value)}function l(){t({folderName:i})}function a(){o(""),n()}return x.jsx(ur,{data:e,title:r.CREATE_FOLDER_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.CREATE_FOLDER_DIALOG_BUTTON_LABEL,onClose:a,onSubmit:l,children:x.jsxs("label",{children:[r.CREATE_FOLDER_NAME_LABEL,x.jsx("input",{spellCheck:"false",type:"text",value:i,required:!0,onChange:s})]})})}function Dx({data:e,onReset:t,onClose:n,messages:r}){return x.jsx(ur,{data:e,title:r.RESET_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.RESET_DIALOG_BUTTON_LABEL,onClose:n,onSubmit:t,children:r.RESET_MESSAGE})}function kx({data:e,onDeleteEntries:t,onClose:n,messages:r}){return x.jsx(ur,{data:e,title:r.DELETE_ENTRIES_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.DELETE_ENTRIES_DIALOG_BUTTON_LABEL,onClose:n,onSubmit:t,children:r.DELETE_ENTRIES_MESSAGE})}function bx({data:e,onClose:t,messages:n}){return x.jsx(ur,{data:e,title:n.ERROR_TITLE,submitLabel:n.DIALOG_OK_BUTTON_LABEL,onClose:t,children:e==null?void 0:e.message})}function Ux({data:e,onClose:t,messages:n}){const[r,i]=te.useState("");function o(l){i(l.target.value)}function s(){i(""),e.onSetImportPassword({password:r}),t()}return x.jsx(ur,{data:e,title:n.IMPORT_PASSWORD_TITLE,cancelLabel:n.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:n.DIALOG_OK_BUTTON_LABEL,onClose:s,children:x.jsxs("label",{children:[n.IMPORT_PASSWORD_LABEL,x.jsx("input",{type:"password",autoComplete:"off",value:r,required:!0,onChange:o})]})})}function Fx({data:e,onSetOptions:t,onResetOptions:n,onClose:r,messages:i}){const[o,s]=te.useState(""),[l,a]=te.useState(!1),[c,f]=te.useState(!1),[_,E]=te.useState(!1),[O,w]=te.useState("default"),[h,m]=te.useState(""),[u,d]=te.useState(!1),[p,A]=te.useState(!1),[g,L]=te.useState(!1),[v,T]=te.useState(!1),[S,y]=te.useState("0"),[I,C]=te.useState("0"),R=te.useRef(null);function k($){s($.target.value)}function M($){a($.target.checked)}function F($){f($.target.checked)}function ee($){E($.target.checked)}function N($){w($.target.value)}function q($){d($.target.checked)}function D(){R.current.select()}function se($){m($.target.value)}function X($){A($.target.checked)}function Y($){T($.target.checked)}function de($){L($.target.checked)}function Te($){y($.target.value)}function _e($){C($.target.value)}function Ne(){t({zoomFactor:Number(o),hideNavigationBar:l,hideDownloadManager:c,hideInfobar:_,skin:O,promptForExportPassword:u,defaultExportPassword:h,keepOrder:p,checkSignature:g,bufferedWrite:v,maxWorkers:Number(S),chunkSize:Number(I)*1024})}function ne(){if(e){const{zoomFactor:$,hideNavigationBar:ie,hideDownloadManager:ce,hideInfobar:V,skin:W,promptForExportPassword:ue,defaultExportPassword:j,keepOrder:P,checkSignature:J,bufferedWrite:fe,maxWorkers:Le,chunkSize:pe}=e;s($),a(ie),f(ce),E(V),w(W),d(ue),m(j),A(P),L(J),T(fe),y(Le),C(pe/1024)}}return te.useEffect(ne,[e]),x.jsxs(ur,{className:"options-dialog",data:e,title:i.OPTIONS_TITLE,onOpen:ne,onSubmit:Ne,onReset:n,onClose:r,resetLabel:i.DIALOG_RESET_BUTTON_LABEL,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.OPTIONS_DIALOG_BUTTON_LABEL,children:[x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_ZOOM_FACTOR_LABEL}),x.jsx("input",{value:o,type:"number",required:!0,min:20,max:500,step:5,onChange:k})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_HIDE_NAVIGATION_BAR_LABEL}),x.jsx("input",{checked:l,type:"checkbox",onChange:M})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL}),x.jsx("input",{checked:c,type:"checkbox",onChange:F})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_HIDE_INFOBAR_LABEL}),x.jsx("input",{checked:_,type:"checkbox",onChange:ee})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_SELECT_SKIN_LABEL}),x.jsxs("select",{value:O,onChange:N,children:[x.jsx("option",{value:Ul,children:i.OPTIONS_DEFAULT_SKIN_LABEL}),x.jsx("option",{value:df,children:i.OPTIONS_DOS_SKIN_LABEL})]})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_EXPORT_ZIP_PASSWORD_LABEL}),x.jsx("input",{checked:u,type:"checkbox",onChange:q})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_DEFAULT_PASSWORD_LABEL}),x.jsx("input",{type:"password",autoComplete:"off",value:h,onFocus:D,onChange:se,ref:R})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_CHECK_SIGNATURE_LABEL}),x.jsx("input",{checked:g,type:"checkbox",onChange:de})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_BUFFERED_WRITE_LABEL}),x.jsx("input",{checked:v,type:"checkbox",onChange:Y})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_MAX_WORKERS_LABEL}),x.jsx("input",{value:S,type:"number",required:!0,disabled:!v,min:1,onChange:Te})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_KEEP_ORDER_LABEL}),x.jsx("input",{checked:p,type:"checkbox",onChange:X})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_CHUNK_SIZE_LABEL}),x.jsx("input",{value:I,type:"number",required:!0,min:1,onChange:_e})]})]})}function Mx({data:e,onImportZipFile:t,onAddFiles:n,onClose:r,messages:i}){const o=te.useRef(null);function s(){r()}function l(){t(e.files[0])}function a(){n(e.files)}function c(){o.current.close()}return te.useEffect(()=>{!o.current.open&&e&&o.current.showModal()},[e]),x.jsx("dialog",{ref:o,onClose:s,children:x.jsx("form",{method:"dialog",onReset:c,children:x.jsxs("div",{children:[x.jsx("div",{className:"dialog-title",children:x.jsx("label",{children:i.CHOOSE_ACTION_TITLE})}),x.jsx("p",{children:i.CHOOSE_ACTION_LABEL}),x.jsxs("div",{className:"button-bar",children:[x.jsx("div",{className:"button-group"}),x.jsxs("div",{className:"button-group",children:[x.jsx("button",{type:"reset",children:i.DIALOG_CANCEL_BUTTON_LABEL}),x.jsx("button",{type:"submit",onClick:a,children:i.CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL}),x.jsx("button",{type:"submit",onClick:l,children:i.IMPORT_ZIP_BUTTON_LABEL})]})]})]})})})}const $x="..",jx="",Hx="Téléchargement.zip",$m=", ",Gx="Répertoire parent",jt="Raccourci : ",Nn="⌘/ctrl-",jm="alt-",zx="espace",Hm="gauche",Gm="droite",Kx="Taille :",Wx="Taille non compressée :",Zx="Taille compressée :",Vx="Date de dernière modification :",Yx=jt+Nn+"c",qx=jt+Nn+"x",Xx=jt+Nn+"v",Qx=jt+Nn+"Entrée",Jx=jt+Nn+"a",ey=jt+Nn+"r",ty=jt+["retour arrière","suppr"].join($m),ny=jt+Nn+"d",ry=jt+Nn+"f",iy=jt+Nn+"i",oy=jt+Nn+"e",sy=jt+jm+Hm,ay=jt+jm+Gm,ly="Créer répertoire",cy="Ajouter fichiers",uy="Importer zip",fy="Exporter zip",dy="Réinitialiser",_y="Options",py="<",Ey=">",my="↵",Ty="↓",hy="Copier",Ly="Couper",Oy="Coller",Ay="Réinitialiser presse-papier",gy="Extraire",vy="Selectionner tout",wy="Renommer",xy="Supprimer",yy="✕",Sy="Réinitialiser",Ny="Annuler",Iy="OK",Ry="Erreur",By="Exporter fichier zip",Py="Nom du fichier :",Cy="Mot de passe :",Dy="Export",ky="Extraire fichier",by="Nom du fichier :",Uy="Extraire",Fy="Renommer entrée",My="Nouveau nom de l'entrée :",$y="Renommer",jy="Créer répertoire",Hy="Nom du repertoire :",Gy="Créer",zy="Réinitialiser système de fichiers",Ky="Veuillez confirmer la réinitialisation du système de fichiers.",Wy="Réinitialiser",Zy="Supprimer les entrées",Vy="Veuillez confirmer la suppression des entrées en surbrillance.",Yy="Supprimer",qy="Zipper fichier",Xy="Entrer le mot de passse",Qy="Mot de passe :",Jy="Sauver",eS="Options",tS="Facteur de zoom (%) :",nS="Cacher la barre de navigation :",rS="Cacher le panneau de téléchargements :",iS="Cacher la barre du bas :",oS="Thème :",sS="Défaut",aS="DOS",lS="Demander un mot de passe :",cS="Mot de passe par défaut :",uS="Préserver l'ordre des entrées :",fS="Vérifier la signature des données :",dS="Utiliser plusieurs cœurs :",_S="Nombre de cœurs :",pS="Taille des paquets (ko) :",ES="Ajouter fichier",mS="Choisir l'action",TS="Un fichier zip a été selectionné, veuillez choisir l'action appropriée.",hS="Glissez et déposez des fichiers et des répertoires ici",LS=["Code source sur "," GitHub "," Fait avec ","♡"," à ","Rennes"],OS="https://fr.wikipedia.org/wiki/Rennes",AS="Commandes des entrées en surbrillance",gS="Panneau de téléchargements",vS="Entrées du répertoire",wS="Historique de navigation",xS="Commandes du répertoire selectionné",yS="Naviguer dans le répertoire",SS="Naviguer en arrière",NS="Naviguer en avant",IS="Couleur d'accentuation",RS="▶",BS="II",PS=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:yy,ACCENT_COLOR_LABEL:IS,ADD_FILES_BUTTON_LABEL:cy,ADD_FILES_BUTTON_TOOLTIP:ry,ARROW_LEFT_KEY_LABEL:Hm,ARROW_RIGHT_KEY_LABEL:Gm,BACK_BUTTON_LABEL:py,BACK_BUTTON_TOOLTIP:sy,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:ES,CHOOSE_ACTION_LABEL:TS,CHOOSE_ACTION_TITLE:mS,CITY_URL:OS,COMPRESSED_SIZE_LABEL:Zx,COPY_BUTTON_LABEL:hy,COPY_BUTTON_TOOLTIP:Yx,CREATE_FOLDER_BUTTON_LABEL:ly,CREATE_FOLDER_BUTTON_TOOLTIP:ny,CREATE_FOLDER_DIALOG_BUTTON_LABEL:Gy,CREATE_FOLDER_NAME_LABEL:Hy,CREATE_FOLDER_TITLE:jy,CTRL_KEY_LABEL:Nn,CUT_BUTTON_LABEL:Ly,CUT_BUTTON_TOOLTIP:qx,DELETE_BUTTON_LABEL:xy,DELETE_BUTTON_TOOLTIP:ty,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:Yy,DELETE_ENTRIES_MESSAGE:Vy,DELETE_ENTRIES_TITLE:Zy,DIALOG_CANCEL_BUTTON_LABEL:Ny,DIALOG_OK_BUTTON_LABEL:Iy,DIALOG_RESET_BUTTON_LABEL:Sy,DOWNLOADS_LABEL:gS,DOWNLOAD_BUTTON_LABEL:my,ENTER_FOLDER_BUTTON_LABEL:Ty,ENTRIES_LABEL:vS,ERROR_TITLE:Ry,EXPORT_ZIP_BUTTON_LABEL:fy,EXPORT_ZIP_BUTTON_TOOLTIP:oy,EXPORT_ZIP_DIALOG_BUTTON_LABEL:Dy,EXPORT_ZIP_FILENAME_LABEL:Py,EXPORT_ZIP_PASSWORD_LABEL:Cy,EXPORT_ZIP_TITLE:By,EXTRACT_BUTTON_LABEL:gy,EXTRACT_BUTTON_TOOLTIP:Qx,EXTRACT_DIALOG_BUTTON_LABEL:Uy,EXTRACT_FILENAME_LABEL:by,EXTRACT_TITLE:ky,FOLDERS_LABEL:wS,FORWARD_BUTTON_LABEL:Ey,FORWARD_BUTTON_TOOLTIP:ay,GO_BACK_LABEL:SS,GO_FORWARD_LABEL:NS,GO_INTO_FOLDER_LABEL:yS,HIGHLIGHTED_ENTRIES_LABEL:AS,HIGHLIGHT_ALL_BUTTON_LABEL:vy,HIGHLIGHT_ALL_BUTTON_TOOLTIP:Jx,IMPORT_PASSWORD_LABEL:Qy,IMPORT_PASSWORD_TITLE:Xy,IMPORT_ZIP_BUTTON_LABEL:uy,IMPORT_ZIP_BUTTON_TOOLTIP:iy,INFO_LABEL:LS,KEYS_SEPARATOR_LABEL:$m,LAST_MOD_DATE_LABEL:Vx,NO_ENTRIES_LABEL:hS,OPTIONS_BUFFERED_WRITE_LABEL:dS,OPTIONS_BUTTON_LABEL:_y,OPTIONS_CHECK_SIGNATURE_LABEL:fS,OPTIONS_CHUNK_SIZE_LABEL:pS,OPTIONS_DEFAULT_PASSWORD_LABEL:cS,OPTIONS_DEFAULT_SKIN_LABEL:sS,OPTIONS_DIALOG_BUTTON_LABEL:Jy,OPTIONS_DOS_SKIN_LABEL:aS,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:lS,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:rS,OPTIONS_HIDE_INFOBAR_LABEL:iS,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:nS,OPTIONS_KEEP_ORDER_LABEL:uS,OPTIONS_MAX_WORKERS_LABEL:_S,OPTIONS_SELECT_SKIN_LABEL:oS,OPTIONS_TITLE:eS,OPTIONS_ZOOM_FACTOR_LABEL:tS,PARENT_FOLDER_LABEL:$x,PARENT_FOLDER_TOOLTIP:Gx,PASTE_BUTTON_LABEL:Oy,PASTE_BUTTON_TOOLTIP:Xx,PAUSED_MUSIC_ICON:BS,PLAYING_MUSIC_ICON:RS,RENAME_BUTTON_LABEL:wy,RENAME_BUTTON_TOOLTIP:ey,RENAME_DIALOG_BUTTON_LABEL:$y,RENAME_FILENAME_LABEL:My,RENAME_TITLE:Fy,RESET_BUTTON_LABEL:dy,RESET_CLIPBOARD_BUTTON_LABEL:Ay,RESET_DIALOG_BUTTON_LABEL:Wy,RESET_MESSAGE:Ky,RESET_TITLE:zy,ROOT_FOLDER_LABEL:jx,ROOT_ZIP_FILENAME:Hx,SELECTED_FOLDER_LABEL:xS,SHORTCUT_LABEL:jt,SIZE_LABEL:Kx,SPACE_KEY_LABEL:zx,UNCOMPRESSED_SIZE_LABEL:Wx,ZIP_FILE_DESCRIPTION_LABEL:qy},Symbol.toStringTag,{value:"Module"})),CS="..",DS="",kS="Download.zip",zm=", ",bS="Parent directory",Ht="Shortcut: ",In="⌘/ctrl-",Km="alt-",US="space",Wm="left",Zm="right",FS="Size:",MS="Uncompressed size:",$S="Compressed size:",jS="Last mod. date:",HS=Ht+In+"c",GS=Ht+In+"x",zS=Ht+In+"v",KS=Ht+In+"Enter",WS=Ht+In+"a",ZS=Ht+In+"r",VS=Ht+["backspace","delete"].join(zm),YS=Ht+In+"d",qS=Ht+In+"f",XS=Ht+In+"i",QS=Ht+In+"e",JS=Ht+Km+Wm,e8=Ht+Km+Zm,t8="Create directory",n8="Add files",r8="Import zip",i8="Export zip",o8="Reset",s8="Options",a8="<",l8=">",c8="↵",u8="↓",f8="Copy",d8="Cut",_8="Paste",p8="Reset clipboard",E8="Extract",m8="Select all",T8="Rename",h8="Delete",L8="✕",O8="Reset",A8="Cancel",g8="OK",v8="Error",w8="Export zip file",x8="Filename:",y8="Password:",S8="Export",N8="Extract file",I8="Filename:",R8="Extract",B8="Rename entry",P8="New entry name:",C8="Rename",D8="Create directory",k8="Directory name:",b8="Create",U8="Reset filesystem",F8="Please confirm the reset of the filesystem.",M8="Reset",$8="Delete entries",j8="Please confirm the deletion of the highlighted entries.",H8="Delete",G8="Zip file",z8="Enter password",K8="Password:",W8="Save",Z8="Options",V8="Zoom factor (%):",Y8="Hide navigation bar:",q8="Hide downloads panel:",X8="Hide bottom bar:",Q8="Theme:",J8="Default",eN="DOS",tN="Prompt for password:",nN="Default password:",rN="Keep entries order:",iN="Check data signature:",oN="Use multiple cores:",sN="Number of cores:",aN="Chunk size (kB):",lN="Add file",cN="Choose action",uN="A zip file has been selected, please choose the proper action.",fN="Drag and drop files and directories here",dN=["Source code on "," GitHub "," Made with ","♡"," in ","Rennes"],_N="https://en.wikipedia.org/wiki/Rennes",pN="Highlighted entries commands",EN="Downloads panel",mN="Directory entries",TN="Navigation history",hN="Selected directory commands",LN="Go into folder",ON="Go back",AN="Go forward",gN="Accent color",vN="▶",wN="II",xN=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:L8,ACCENT_COLOR_LABEL:gN,ADD_FILES_BUTTON_LABEL:n8,ADD_FILES_BUTTON_TOOLTIP:qS,ARROW_LEFT_KEY_LABEL:Wm,ARROW_RIGHT_KEY_LABEL:Zm,BACK_BUTTON_LABEL:a8,BACK_BUTTON_TOOLTIP:JS,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:lN,CHOOSE_ACTION_LABEL:uN,CHOOSE_ACTION_TITLE:cN,CITY_URL:_N,COMPRESSED_SIZE_LABEL:$S,COPY_BUTTON_LABEL:f8,COPY_BUTTON_TOOLTIP:HS,CREATE_FOLDER_BUTTON_LABEL:t8,CREATE_FOLDER_BUTTON_TOOLTIP:YS,CREATE_FOLDER_DIALOG_BUTTON_LABEL:b8,CREATE_FOLDER_NAME_LABEL:k8,CREATE_FOLDER_TITLE:D8,CTRL_KEY_LABEL:In,CUT_BUTTON_LABEL:d8,CUT_BUTTON_TOOLTIP:GS,DELETE_BUTTON_LABEL:h8,DELETE_BUTTON_TOOLTIP:VS,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:H8,DELETE_ENTRIES_MESSAGE:j8,DELETE_ENTRIES_TITLE:$8,DIALOG_CANCEL_BUTTON_LABEL:A8,DIALOG_OK_BUTTON_LABEL:g8,DIALOG_RESET_BUTTON_LABEL:O8,DOWNLOADS_LABEL:EN,DOWNLOAD_BUTTON_LABEL:c8,ENTER_FOLDER_BUTTON_LABEL:u8,ENTRIES_LABEL:mN,ERROR_TITLE:v8,EXPORT_ZIP_BUTTON_LABEL:i8,EXPORT_ZIP_BUTTON_TOOLTIP:QS,EXPORT_ZIP_DIALOG_BUTTON_LABEL:S8,EXPORT_ZIP_FILENAME_LABEL:x8,EXPORT_ZIP_PASSWORD_LABEL:y8,EXPORT_ZIP_TITLE:w8,EXTRACT_BUTTON_LABEL:E8,EXTRACT_BUTTON_TOOLTIP:KS,EXTRACT_DIALOG_BUTTON_LABEL:R8,EXTRACT_FILENAME_LABEL:I8,EXTRACT_TITLE:N8,FOLDERS_LABEL:TN,FORWARD_BUTTON_LABEL:l8,FORWARD_BUTTON_TOOLTIP:e8,GO_BACK_LABEL:ON,GO_FORWARD_LABEL:AN,GO_INTO_FOLDER_LABEL:LN,HIGHLIGHTED_ENTRIES_LABEL:pN,HIGHLIGHT_ALL_BUTTON_LABEL:m8,HIGHLIGHT_ALL_BUTTON_TOOLTIP:WS,IMPORT_PASSWORD_LABEL:K8,IMPORT_PASSWORD_TITLE:z8,IMPORT_ZIP_BUTTON_LABEL:r8,IMPORT_ZIP_BUTTON_TOOLTIP:XS,INFO_LABEL:dN,KEYS_SEPARATOR_LABEL:zm,LAST_MOD_DATE_LABEL:jS,NO_ENTRIES_LABEL:fN,OPTIONS_BUFFERED_WRITE_LABEL:oN,OPTIONS_BUTTON_LABEL:s8,OPTIONS_CHECK_SIGNATURE_LABEL:iN,OPTIONS_CHUNK_SIZE_LABEL:aN,OPTIONS_DEFAULT_PASSWORD_LABEL:nN,OPTIONS_DEFAULT_SKIN_LABEL:J8,OPTIONS_DIALOG_BUTTON_LABEL:W8,OPTIONS_DOS_SKIN_LABEL:eN,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:tN,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:q8,OPTIONS_HIDE_INFOBAR_LABEL:X8,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:Y8,OPTIONS_KEEP_ORDER_LABEL:rN,OPTIONS_MAX_WORKERS_LABEL:sN,OPTIONS_SELECT_SKIN_LABEL:Q8,OPTIONS_TITLE:Z8,OPTIONS_ZOOM_FACTOR_LABEL:V8,PARENT_FOLDER_LABEL:CS,PARENT_FOLDER_TOOLTIP:bS,PASTE_BUTTON_LABEL:_8,PASTE_BUTTON_TOOLTIP:zS,PAUSED_MUSIC_ICON:wN,PLAYING_MUSIC_ICON:vN,RENAME_BUTTON_LABEL:T8,RENAME_BUTTON_TOOLTIP:ZS,RENAME_DIALOG_BUTTON_LABEL:C8,RENAME_FILENAME_LABEL:P8,RENAME_TITLE:B8,RESET_BUTTON_LABEL:o8,RESET_CLIPBOARD_BUTTON_LABEL:p8,RESET_DIALOG_BUTTON_LABEL:M8,RESET_MESSAGE:F8,RESET_TITLE:U8,ROOT_FOLDER_LABEL:DS,ROOT_ZIP_FILENAME:kS,SELECTED_FOLDER_LABEL:hN,SHORTCUT_LABEL:Ht,SIZE_LABEL:FS,SPACE_KEY_LABEL:US,UNCOMPRESSED_SIZE_LABEL:MS,ZIP_FILE_DESCRIPTION_LABEL:G8},Symbol.toStringTag,{value:"Module"})),yN="..",SN="",NN="Download.zip",Vm=", ",IN="Übergeordneter Ordner",Gt="Verknüpfung: ",Rn="⌘/ctrl-",Ym="alt-",RN="Leertaste",qm="links",Xm="rechts",BN="Größe:",PN="Unkomprimierte Größe:",CN="Komprimierte Größe:",DN="Letzte Änderung:",kN=Gt+Rn+"c",bN=Gt+Rn+"x",UN=Gt+Rn+"v",FN=Gt+Rn+"Enter",MN=Gt+Rn+"a",$N=Gt+Rn+"r",jN=Gt+["Rücktaste","Entf"].join(Vm),HN=Gt+Rn+"d",GN=Gt+Rn+"f",zN=Gt+Rn+"i",KN=Gt+Rn+"e",WN=Gt+Ym+qm,ZN=Gt+Ym+Xm,VN="Verzeichnis erstellen",YN="Dateien hinzufügen",qN="Zip importieren",XN="Zip exportieren",QN="Zurücksetzen",JN="Optionen",eI="<",tI=">",nI="↵",rI="↓",iI="Kopieren",oI="Ausschneiden",sI="Einfügen",aI="Zwischenablage zurücksetzen",lI="Extrahieren",cI="Alles auswählen",uI="Umbenennen",fI="Löschen",dI="✕",_I="Zurücksetzen",pI="Abbrechen",EI="OK",mI="Fehler",TI="Zip-Datei exportieren",hI="Dateiname:",LI="Passwort:",OI="Exportieren",AI="Datei extrahieren",gI="Dateiname:",vI="Extrahieren",wI="Eintrag umbenennen",xI="Neuer Eintragsname:",yI="Umbenennen",SI="Verzeichnis erstellen",NI="Verzeichnisname:",II="Erstellen",RI="Dateisystem zurücksetzen",BI="Bitte bestätigen Sie das Zurücksetzen des Dateisystems.",PI="Zurücksetzen",CI="Einträge löschen",DI="Bitte bestätigen Sie das Löschen der markierten Einträge.",kI="Löschen",bI="Zip-Datei",UI="Passwort eingeben",FI="Passwort:",MI="Speichern",$I="Optionen",jI="Zoomfaktor (%):",HI="Navigationsleiste ausblenden:",GI="Download-Manager ausblenden:",zI="Untere Leiste ausblenden:",KI="Thema:",WI="Standard",ZI="DOS",VI="Nach Passwort fragen:",YI="Standardpasswort:",qI="Einträge sortieren:",XI="Daten-Signatur prüfen:",QI="Mehrere Kerne verwenden:",JI="Anzahl der Kerne:",eR="Chunk-Größe (kB):",tR="Datei hinzufügen",nR="Aktion auswählen",rR="Eine Zip-Datei wurde ausgewählt. Bitte wählen Sie die entsprechende Aktion.",iR="Dateien und Verzeichnisse hierher ziehen",oR=["Quellcode auf "," GitHub "," Mit ","♡"," gemacht in ","Rennes"],sR="https://de.wikipedia.org/wiki/Rennes",aR="Befehle für markierte Einträge",lR="Download-Manager",cR="Verzeichniseinträge",uR="Navigationsverlauf",fR="Befehle für ausgewähltes Verzeichnis",dR="In Verzeichnis wechseln",_R="Zurück",pR="Vorwärts",ER="Akzentfarbe",mR="▶",TR="II",hR=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:dI,ACCENT_COLOR_LABEL:ER,ADD_FILES_BUTTON_LABEL:YN,ADD_FILES_BUTTON_TOOLTIP:GN,ARROW_LEFT_KEY_LABEL:qm,ARROW_RIGHT_KEY_LABEL:Xm,BACK_BUTTON_LABEL:eI,BACK_BUTTON_TOOLTIP:WN,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:tR,CHOOSE_ACTION_LABEL:rR,CHOOSE_ACTION_TITLE:nR,CITY_URL:sR,COMPRESSED_SIZE_LABEL:CN,COPY_BUTTON_LABEL:iI,COPY_BUTTON_TOOLTIP:kN,CREATE_FOLDER_BUTTON_LABEL:VN,CREATE_FOLDER_BUTTON_TOOLTIP:HN,CREATE_FOLDER_DIALOG_BUTTON_LABEL:II,CREATE_FOLDER_NAME_LABEL:NI,CREATE_FOLDER_TITLE:SI,CTRL_KEY_LABEL:Rn,CUT_BUTTON_LABEL:oI,CUT_BUTTON_TOOLTIP:bN,DELETE_BUTTON_LABEL:fI,DELETE_BUTTON_TOOLTIP:jN,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:kI,DELETE_ENTRIES_MESSAGE:DI,DELETE_ENTRIES_TITLE:CI,DIALOG_CANCEL_BUTTON_LABEL:pI,DIALOG_OK_BUTTON_LABEL:EI,DIALOG_RESET_BUTTON_LABEL:_I,DOWNLOADS_LABEL:lR,DOWNLOAD_BUTTON_LABEL:nI,ENTER_FOLDER_BUTTON_LABEL:rI,ENTRIES_LABEL:cR,ERROR_TITLE:mI,EXPORT_ZIP_BUTTON_LABEL:XN,EXPORT_ZIP_BUTTON_TOOLTIP:KN,EXPORT_ZIP_DIALOG_BUTTON_LABEL:OI,EXPORT_ZIP_FILENAME_LABEL:hI,EXPORT_ZIP_PASSWORD_LABEL:LI,EXPORT_ZIP_TITLE:TI,EXTRACT_BUTTON_LABEL:lI,EXTRACT_BUTTON_TOOLTIP:FN,EXTRACT_DIALOG_BUTTON_LABEL:vI,EXTRACT_FILENAME_LABEL:gI,EXTRACT_TITLE:AI,FOLDERS_LABEL:uR,FORWARD_BUTTON_LABEL:tI,FORWARD_BUTTON_TOOLTIP:ZN,GO_BACK_LABEL:_R,GO_FORWARD_LABEL:pR,GO_INTO_FOLDER_LABEL:dR,HIGHLIGHTED_ENTRIES_LABEL:aR,HIGHLIGHT_ALL_BUTTON_LABEL:cI,HIGHLIGHT_ALL_BUTTON_TOOLTIP:MN,IMPORT_PASSWORD_LABEL:FI,IMPORT_PASSWORD_TITLE:UI,IMPORT_ZIP_BUTTON_LABEL:qN,IMPORT_ZIP_BUTTON_TOOLTIP:zN,INFO_LABEL:oR,KEYS_SEPARATOR_LABEL:Vm,LAST_MOD_DATE_LABEL:DN,NO_ENTRIES_LABEL:iR,OPTIONS_BUFFERED_WRITE_LABEL:QI,OPTIONS_BUTTON_LABEL:JN,OPTIONS_CHECK_SIGNATURE_LABEL:XI,OPTIONS_CHUNK_SIZE_LABEL:eR,OPTIONS_DEFAULT_PASSWORD_LABEL:YI,OPTIONS_DEFAULT_SKIN_LABEL:WI,OPTIONS_DIALOG_BUTTON_LABEL:MI,OPTIONS_DOS_SKIN_LABEL:ZI,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:VI,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:GI,OPTIONS_HIDE_INFOBAR_LABEL:zI,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:HI,OPTIONS_KEEP_ORDER_LABEL:qI,OPTIONS_MAX_WORKERS_LABEL:JI,OPTIONS_SELECT_SKIN_LABEL:KI,OPTIONS_TITLE:$I,OPTIONS_ZOOM_FACTOR_LABEL:jI,PARENT_FOLDER_LABEL:yN,PARENT_FOLDER_TOOLTIP:IN,PASTE_BUTTON_LABEL:sI,PASTE_BUTTON_TOOLTIP:UN,PAUSED_MUSIC_ICON:TR,PLAYING_MUSIC_ICON:mR,RENAME_BUTTON_LABEL:uI,RENAME_BUTTON_TOOLTIP:$N,RENAME_DIALOG_BUTTON_LABEL:yI,RENAME_FILENAME_LABEL:xI,RENAME_TITLE:wI,RESET_BUTTON_LABEL:QN,RESET_CLIPBOARD_BUTTON_LABEL:aI,RESET_DIALOG_BUTTON_LABEL:PI,RESET_MESSAGE:BI,RESET_TITLE:RI,ROOT_FOLDER_LABEL:SN,ROOT_ZIP_FILENAME:NN,SELECTED_FOLDER_LABEL:fR,SHORTCUT_LABEL:Gt,SIZE_LABEL:BN,SPACE_KEY_LABEL:RN,UNCOMPRESSED_SIZE_LABEL:PN,ZIP_FILE_DESCRIPTION_LABEL:bI},Symbol.toStringTag,{value:"Module"})),LR="..",OR="",AR="Descarga.zip",Qm=", ",gR="Directorio padre",zt="Atajo: ",Bn="⌘/ctrl-",Jm="alt-",vR="espacio",eT="izquierda",tT="derecha",wR="Tamaño:",xR="Tamaño sin comprimir:",yR="Tamaño comprimido:",SR="Fecha de última modificación:",NR=zt+Bn+"c",IR=zt+Bn+"x",RR=zt+Bn+"v",BR=zt+Bn+"Enter",PR=zt+Bn+"a",CR=zt+Bn+"r",DR=zt+["backspace","delete"].join(Qm),kR=zt+Bn+"d",bR=zt+Bn+"f",UR=zt+Bn+"i",FR=zt+Bn+"e",MR=zt+Jm+eT,$R=zt+Jm+tT,jR="Crear directorio",HR="Agregar archivos",GR="Importar zip",zR="Exportar zip",KR="Reiniciar",WR="Opciones",ZR="<",VR=">",YR="↵",qR="↓",XR="Copiar",QR="Cortar",JR="Pegar",e3="Reiniciar portapapeles",t3="Extraer",n3="Seleccionar todo",r3="Renombrar",i3="Eliminar",o3="✕",s3="Reiniciar",a3="Cancelar",l3="OK",c3="Error",u3="Exportar archivo zip",f3="Nombre de archivo:",d3="Contraseña:",_3="Exportar",p3="Extraer archivo",E3="Nombre de archivo:",m3="Extraer",T3="Renombrar entrada",h3="Nuevo nombre de entrada:",L3="Renombrar",O3="Crear directorio",A3="Nombre del directorio:",g3="Crear",v3="Reiniciar sistema de archivos",w3="Por favor, confirme el reinicio del sistema de archivos.",x3="Reiniciar",y3="Eliminar entradas",S3="Por favor, confirme la eliminación de las entradas resaltadas.",N3="Eliminar",I3="Archivo zip",R3="Introducir contraseña",B3="Contraseña:",P3="Guardar",C3="Opciones",D3="Factor de zoom (%):",k3="Ocultar barra de navegación:",b3="Ocultar panel de descargas:",U3="Ocultar barra inferior:",F3="Tema:",M3="Predeterminado",$3="DOS",j3="Solicitar contraseña:",H3="Contraseña predeterminada:",G3="Mantener orden de entradas:",z3="Verificar firma de datos:",K3="Usar múltiples núcleos:",W3="Número de núcleos:",Z3="Tamaño de fragmento (kB):",V3="Agregar archivo",Y3="Elegir acción",q3="Se ha seleccionado un archivo zip, por favor elija la acción adecuada.",X3="Arrastre y suelte archivos y directorios aquí",Q3=["Código fuente en "," GitHub "," Hecho con ","♡"," en ","Rennes"],J3="https://es.wikipedia.org/wiki/Rennes",eB="Comandos de entradas resaltadas",tB="Panel de descargas",nB="Entradas de directorio",rB="Historial de navegación",iB="Comandos de directorio seleccionado",oB="Ir al directorio",sB="Retroceder",aB="Avanzar",lB="Color de acento",cB="▶",uB="II",fB=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:o3,ACCENT_COLOR_LABEL:lB,ADD_FILES_BUTTON_LABEL:HR,ADD_FILES_BUTTON_TOOLTIP:bR,ARROW_LEFT_KEY_LABEL:eT,ARROW_RIGHT_KEY_LABEL:tT,BACK_BUTTON_LABEL:ZR,BACK_BUTTON_TOOLTIP:MR,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:V3,CHOOSE_ACTION_LABEL:q3,CHOOSE_ACTION_TITLE:Y3,CITY_URL:J3,COMPRESSED_SIZE_LABEL:yR,COPY_BUTTON_LABEL:XR,COPY_BUTTON_TOOLTIP:NR,CREATE_FOLDER_BUTTON_LABEL:jR,CREATE_FOLDER_BUTTON_TOOLTIP:kR,CREATE_FOLDER_DIALOG_BUTTON_LABEL:g3,CREATE_FOLDER_NAME_LABEL:A3,CREATE_FOLDER_TITLE:O3,CTRL_KEY_LABEL:Bn,CUT_BUTTON_LABEL:QR,CUT_BUTTON_TOOLTIP:IR,DELETE_BUTTON_LABEL:i3,DELETE_BUTTON_TOOLTIP:DR,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:N3,DELETE_ENTRIES_MESSAGE:S3,DELETE_ENTRIES_TITLE:y3,DIALOG_CANCEL_BUTTON_LABEL:a3,DIALOG_OK_BUTTON_LABEL:l3,DIALOG_RESET_BUTTON_LABEL:s3,DOWNLOADS_LABEL:tB,DOWNLOAD_BUTTON_LABEL:YR,ENTER_FOLDER_BUTTON_LABEL:qR,ENTRIES_LABEL:nB,ERROR_TITLE:c3,EXPORT_ZIP_BUTTON_LABEL:zR,EXPORT_ZIP_BUTTON_TOOLTIP:FR,EXPORT_ZIP_DIALOG_BUTTON_LABEL:_3,EXPORT_ZIP_FILENAME_LABEL:f3,EXPORT_ZIP_PASSWORD_LABEL:d3,EXPORT_ZIP_TITLE:u3,EXTRACT_BUTTON_LABEL:t3,EXTRACT_BUTTON_TOOLTIP:BR,EXTRACT_DIALOG_BUTTON_LABEL:m3,EXTRACT_FILENAME_LABEL:E3,EXTRACT_TITLE:p3,FOLDERS_LABEL:rB,FORWARD_BUTTON_LABEL:VR,FORWARD_BUTTON_TOOLTIP:$R,GO_BACK_LABEL:sB,GO_FORWARD_LABEL:aB,GO_INTO_FOLDER_LABEL:oB,HIGHLIGHTED_ENTRIES_LABEL:eB,HIGHLIGHT_ALL_BUTTON_LABEL:n3,HIGHLIGHT_ALL_BUTTON_TOOLTIP:PR,IMPORT_PASSWORD_LABEL:B3,IMPORT_PASSWORD_TITLE:R3,IMPORT_ZIP_BUTTON_LABEL:GR,IMPORT_ZIP_BUTTON_TOOLTIP:UR,INFO_LABEL:Q3,KEYS_SEPARATOR_LABEL:Qm,LAST_MOD_DATE_LABEL:SR,NO_ENTRIES_LABEL:X3,OPTIONS_BUFFERED_WRITE_LABEL:K3,OPTIONS_BUTTON_LABEL:WR,OPTIONS_CHECK_SIGNATURE_LABEL:z3,OPTIONS_CHUNK_SIZE_LABEL:Z3,OPTIONS_DEFAULT_PASSWORD_LABEL:H3,OPTIONS_DEFAULT_SKIN_LABEL:M3,OPTIONS_DIALOG_BUTTON_LABEL:P3,OPTIONS_DOS_SKIN_LABEL:$3,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:j3,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:b3,OPTIONS_HIDE_INFOBAR_LABEL:U3,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:k3,OPTIONS_KEEP_ORDER_LABEL:G3,OPTIONS_MAX_WORKERS_LABEL:W3,OPTIONS_SELECT_SKIN_LABEL:F3,OPTIONS_TITLE:C3,OPTIONS_ZOOM_FACTOR_LABEL:D3,PARENT_FOLDER_LABEL:LR,PARENT_FOLDER_TOOLTIP:gR,PASTE_BUTTON_LABEL:JR,PASTE_BUTTON_TOOLTIP:RR,PAUSED_MUSIC_ICON:uB,PLAYING_MUSIC_ICON:cB,RENAME_BUTTON_LABEL:r3,RENAME_BUTTON_TOOLTIP:CR,RENAME_DIALOG_BUTTON_LABEL:L3,RENAME_FILENAME_LABEL:h3,RENAME_TITLE:T3,RESET_BUTTON_LABEL:KR,RESET_CLIPBOARD_BUTTON_LABEL:e3,RESET_DIALOG_BUTTON_LABEL:x3,RESET_MESSAGE:w3,RESET_TITLE:v3,ROOT_FOLDER_LABEL:OR,ROOT_ZIP_FILENAME:AR,SELECTED_FOLDER_LABEL:iB,SHORTCUT_LABEL:zt,SIZE_LABEL:wR,SPACE_KEY_LABEL:vR,UNCOMPRESSED_SIZE_LABEL:xR,ZIP_FILE_DESCRIPTION_LABEL:I3},Symbol.toStringTag,{value:"Module"})),dB="..",_B="",pB="Download.zip",nT=", ",EB="Cartella padre",Kt="Scorciatoia: ",Pn="⌘/ctrl-",rT="alt-",mB="spazio",iT="sinistra",oT="destra",TB="Dimensioni:",hB="Dimensioni non compressa:",LB="Dimensioni compressa:",OB="Data ultima modifica:",AB=Kt+Pn+"c",gB=Kt+Pn+"x",vB=Kt+Pn+"v",wB=Kt+Pn+"Invio",xB=Kt+Pn+"a",yB=Kt+Pn+"r",SB=Kt+["backspace","delete"].join(nT),NB=Kt+Pn+"d",IB=Kt+Pn+"f",RB=Kt+Pn+"i",BB=Kt+Pn+"e",PB=Kt+rT+iT,CB=Kt+rT+oT,DB="Crea cartella",kB="Aggiungi file",bB="Importa zip",UB="Esporta zip",FB="Resetta",MB="Opzioni",$B="<",jB=">",HB="↵",GB="↓",zB="Copia",KB="Taglia",WB="Incolla",ZB="Resetta clipboard",VB="Estrai",YB="Seleziona tutto",qB="Rinomina",XB="Elimina",QB="✕",JB="Resetta",e5="Annulla",t5="OK",n5="Errore",r5="Esporta file zip",i5="Nome file:",o5="Password:",s5="Esporta",a5="Estrai file",l5="Nome file:",c5="Estrai",u5="Rinomina voce",f5="Nuovo nome voce:",d5="Rinomina",_5="Crea cartella",p5="Nome cartella:",E5="Crea",m5="Resetta file system",T5="Confermi il reset del file system?",h5="Resetta",L5="Elimina voci",O5="Confermi l'eliminazione delle voci evidenziate?",A5="Elimina",g5="File zip",v5="Inserisci password",w5="Password:",x5="Salva",y5="Opzioni",S5="Fattore di zoom (%):",N5="Nascondi barra di navigazione:",I5="Nascondi pannello download:",R5="Nascondi barra inferiore:",B5="Tema:",P5="Predefinito",C5="DOS",D5="Richiedi password:",k5="Password predefinita:",b5="Mantieni ordine voci:",U5="Verifica firma dati:",F5="Usa multi-core:",M5="Numero core:",$5="Dimensione frammento (kB):",j5="Aggiungi file",H5="Scegli azione",G5="È stato selezionato un file zip, scegli l'azione appropriata.",z5="Trascina qui file e cartelle",K5=["Codice sorgente su "," GitHub "," Creato con ","♡"," a ","Rennes"],W5="https://it.wikipedia.org/wiki/Rennes",Z5="Comandi voci evidenziate",V5="Pannello download",Y5="Voci directory",q5="Cronologia navigazione",X5="Comandi cartella selezionata",Q5="Entra nella cartella",J5="Indietro",e4="Avanti",t4="Colore accentuazione",n4="▶",r4="II",i4=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:QB,ACCENT_COLOR_LABEL:t4,ADD_FILES_BUTTON_LABEL:kB,ADD_FILES_BUTTON_TOOLTIP:IB,ARROW_LEFT_KEY_LABEL:iT,ARROW_RIGHT_KEY_LABEL:oT,BACK_BUTTON_LABEL:$B,BACK_BUTTON_TOOLTIP:PB,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:j5,CHOOSE_ACTION_LABEL:G5,CHOOSE_ACTION_TITLE:H5,CITY_URL:W5,COMPRESSED_SIZE_LABEL:LB,COPY_BUTTON_LABEL:zB,COPY_BUTTON_TOOLTIP:AB,CREATE_FOLDER_BUTTON_LABEL:DB,CREATE_FOLDER_BUTTON_TOOLTIP:NB,CREATE_FOLDER_DIALOG_BUTTON_LABEL:E5,CREATE_FOLDER_NAME_LABEL:p5,CREATE_FOLDER_TITLE:_5,CTRL_KEY_LABEL:Pn,CUT_BUTTON_LABEL:KB,CUT_BUTTON_TOOLTIP:gB,DELETE_BUTTON_LABEL:XB,DELETE_BUTTON_TOOLTIP:SB,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:A5,DELETE_ENTRIES_MESSAGE:O5,DELETE_ENTRIES_TITLE:L5,DIALOG_CANCEL_BUTTON_LABEL:e5,DIALOG_OK_BUTTON_LABEL:t5,DIALOG_RESET_BUTTON_LABEL:JB,DOWNLOADS_LABEL:V5,DOWNLOAD_BUTTON_LABEL:HB,ENTER_FOLDER_BUTTON_LABEL:GB,ENTRIES_LABEL:Y5,ERROR_TITLE:n5,EXPORT_ZIP_BUTTON_LABEL:UB,EXPORT_ZIP_BUTTON_TOOLTIP:BB,EXPORT_ZIP_DIALOG_BUTTON_LABEL:s5,EXPORT_ZIP_FILENAME_LABEL:i5,EXPORT_ZIP_PASSWORD_LABEL:o5,EXPORT_ZIP_TITLE:r5,EXTRACT_BUTTON_LABEL:VB,EXTRACT_BUTTON_TOOLTIP:wB,EXTRACT_DIALOG_BUTTON_LABEL:c5,EXTRACT_FILENAME_LABEL:l5,EXTRACT_TITLE:a5,FOLDERS_LABEL:q5,FORWARD_BUTTON_LABEL:jB,FORWARD_BUTTON_TOOLTIP:CB,GO_BACK_LABEL:J5,GO_FORWARD_LABEL:e4,GO_INTO_FOLDER_LABEL:Q5,HIGHLIGHTED_ENTRIES_LABEL:Z5,HIGHLIGHT_ALL_BUTTON_LABEL:YB,HIGHLIGHT_ALL_BUTTON_TOOLTIP:xB,IMPORT_PASSWORD_LABEL:w5,IMPORT_PASSWORD_TITLE:v5,IMPORT_ZIP_BUTTON_LABEL:bB,IMPORT_ZIP_BUTTON_TOOLTIP:RB,INFO_LABEL:K5,KEYS_SEPARATOR_LABEL:nT,LAST_MOD_DATE_LABEL:OB,NO_ENTRIES_LABEL:z5,OPTIONS_BUFFERED_WRITE_LABEL:F5,OPTIONS_BUTTON_LABEL:MB,OPTIONS_CHECK_SIGNATURE_LABEL:U5,OPTIONS_CHUNK_SIZE_LABEL:$5,OPTIONS_DEFAULT_PASSWORD_LABEL:k5,OPTIONS_DEFAULT_SKIN_LABEL:P5,OPTIONS_DIALOG_BUTTON_LABEL:x5,OPTIONS_DOS_SKIN_LABEL:C5,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:D5,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:I5,OPTIONS_HIDE_INFOBAR_LABEL:R5,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:N5,OPTIONS_KEEP_ORDER_LABEL:b5,OPTIONS_MAX_WORKERS_LABEL:M5,OPTIONS_SELECT_SKIN_LABEL:B5,OPTIONS_TITLE:y5,OPTIONS_ZOOM_FACTOR_LABEL:S5,PARENT_FOLDER_LABEL:dB,PARENT_FOLDER_TOOLTIP:EB,PASTE_BUTTON_LABEL:WB,PASTE_BUTTON_TOOLTIP:vB,PAUSED_MUSIC_ICON:r4,PLAYING_MUSIC_ICON:n4,RENAME_BUTTON_LABEL:qB,RENAME_BUTTON_TOOLTIP:yB,RENAME_DIALOG_BUTTON_LABEL:d5,RENAME_FILENAME_LABEL:f5,RENAME_TITLE:u5,RESET_BUTTON_LABEL:FB,RESET_CLIPBOARD_BUTTON_LABEL:ZB,RESET_DIALOG_BUTTON_LABEL:h5,RESET_MESSAGE:T5,RESET_TITLE:m5,ROOT_FOLDER_LABEL:_B,ROOT_ZIP_FILENAME:pB,SELECTED_FOLDER_LABEL:X5,SHORTCUT_LABEL:Kt,SIZE_LABEL:TB,SPACE_KEY_LABEL:mB,UNCOMPRESSED_SIZE_LABEL:hB,ZIP_FILE_DESCRIPTION_LABEL:g5},Symbol.toStringTag,{value:"Module"})),o4="..",s4="",a4="Download.zip",sT=", ",l4="Diretório pai",Wt="Atalho: ",Cn="⌘/ctrl-",aT="alt-",c4="espaço",lT="esquerda",cT="direita",u4="Tamanho:",f4="Tamanho descompactado:",d4="Tamanho compactado:",_4="Data da última modificação:",p4=Wt+Cn+"c",E4=Wt+Cn+"x",m4=Wt+Cn+"v",T4=Wt+Cn+"Enter",h4=Wt+Cn+"a",L4=Wt+Cn+"r",O4=Wt+["backspace","delete"].join(sT),A4=Wt+Cn+"d",g4=Wt+Cn+"f",v4=Wt+Cn+"i",w4=Wt+Cn+"e",x4=Wt+aT+lT,y4=Wt+aT+cT,S4="Criar diretório",N4="Adicionar ficheiros",I4="Importar zip",R4="Exportar zip",B4="Repor",P4="Opções",C4="<",D4=">",k4="↵",b4="↓",U4="Copiar",F4="Cortar",M4="Colar",$4="Repor área de transferência",j4="Extrair",H4="Selecionar tudo",G4="Renomear",z4="Eliminar",K4="✕",W4="Repor",Z4="Cancelar",V4="OK",Y4="Erro",q4="Exportar ficheiro zip",X4="Nome do ficheiro:",Q4="Palavra-passe:",J4="Exportar",eP="Extrair ficheiro",tP="Nome do ficheiro:",nP="Extrair",rP="Renomear entrada",iP="Novo nome da entrada:",oP="Renomear",sP="Criar diretório",aP="Nome do diretório:",lP="Criar",cP="Repor sistema de ficheiros",uP="Por favor confirme a reposição do sistema de ficheiros.",fP="Repor",dP="Eliminar entradas",_P="Por favor confirme a eliminação das entradas selecionadas.",pP="Eliminar",EP="Ficheiro zip",mP="Introduzir palavra-passe",TP="Palavra-passe:",hP="Guardar",LP="Opções",OP="Fator de zoom (%):",AP="Esconder barra de navegação:",gP="Esconder painel de downloads:",vP="Esconder barra inferior:",wP="Tema:",xP="Padrão",yP="DOS",SP="Pedir palavra-passe:",NP="Palavra-passe padrão:",IP="Manter ordem das entradas:",RP="Verificar assinatura dos dados:",BP="Usar múltiplos núcleos:",PP="Número de núcleos:",CP="Tamanho do bloco (kB):",DP="Adicionar ficheiro",kP="Escolher ação",bP="Foi selecionado um ficheiro zip, por favor escolha a ação apropriada.",UP="Arraste e solte ficheiros e diretórios aqui",FP=["Código-fonte em "," GitHub"," Criado com ","♡"," em ","Rennes"],MP="https://pt.wikipedia.org/wiki/Rennes",$P="Comandos para entradas selecionadas",jP="Painel de downloads",HP="Entradas do diretório",GP="Histórico de navegação",zP="Comandos para diretório selecionado",KP="Entrar no diretório",WP="Voltar",ZP="Avançar",VP="Cor de destaque",YP="▶",qP="II",XP=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:K4,ACCENT_COLOR_LABEL:VP,ADD_FILES_BUTTON_LABEL:N4,ADD_FILES_BUTTON_TOOLTIP:g4,ARROW_LEFT_KEY_LABEL:lT,ARROW_RIGHT_KEY_LABEL:cT,BACK_BUTTON_LABEL:C4,BACK_BUTTON_TOOLTIP:x4,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:DP,CHOOSE_ACTION_LABEL:bP,CHOOSE_ACTION_TITLE:kP,CITY_URL:MP,COMPRESSED_SIZE_LABEL:d4,COPY_BUTTON_LABEL:U4,COPY_BUTTON_TOOLTIP:p4,CREATE_FOLDER_BUTTON_LABEL:S4,CREATE_FOLDER_BUTTON_TOOLTIP:A4,CREATE_FOLDER_DIALOG_BUTTON_LABEL:lP,CREATE_FOLDER_NAME_LABEL:aP,CREATE_FOLDER_TITLE:sP,CTRL_KEY_LABEL:Cn,CUT_BUTTON_LABEL:F4,CUT_BUTTON_TOOLTIP:E4,DELETE_BUTTON_LABEL:z4,DELETE_BUTTON_TOOLTIP:O4,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:pP,DELETE_ENTRIES_MESSAGE:_P,DELETE_ENTRIES_TITLE:dP,DIALOG_CANCEL_BUTTON_LABEL:Z4,DIALOG_OK_BUTTON_LABEL:V4,DIALOG_RESET_BUTTON_LABEL:W4,DOWNLOADS_LABEL:jP,DOWNLOAD_BUTTON_LABEL:k4,ENTER_FOLDER_BUTTON_LABEL:b4,ENTRIES_LABEL:HP,ERROR_TITLE:Y4,EXPORT_ZIP_BUTTON_LABEL:R4,EXPORT_ZIP_BUTTON_TOOLTIP:w4,EXPORT_ZIP_DIALOG_BUTTON_LABEL:J4,EXPORT_ZIP_FILENAME_LABEL:X4,EXPORT_ZIP_PASSWORD_LABEL:Q4,EXPORT_ZIP_TITLE:q4,EXTRACT_BUTTON_LABEL:j4,EXTRACT_BUTTON_TOOLTIP:T4,EXTRACT_DIALOG_BUTTON_LABEL:nP,EXTRACT_FILENAME_LABEL:tP,EXTRACT_TITLE:eP,FOLDERS_LABEL:GP,FORWARD_BUTTON_LABEL:D4,FORWARD_BUTTON_TOOLTIP:y4,GO_BACK_LABEL:WP,GO_FORWARD_LABEL:ZP,GO_INTO_FOLDER_LABEL:KP,HIGHLIGHTED_ENTRIES_LABEL:$P,HIGHLIGHT_ALL_BUTTON_LABEL:H4,HIGHLIGHT_ALL_BUTTON_TOOLTIP:h4,IMPORT_PASSWORD_LABEL:TP,IMPORT_PASSWORD_TITLE:mP,IMPORT_ZIP_BUTTON_LABEL:I4,IMPORT_ZIP_BUTTON_TOOLTIP:v4,INFO_LABEL:FP,KEYS_SEPARATOR_LABEL:sT,LAST_MOD_DATE_LABEL:_4,NO_ENTRIES_LABEL:UP,OPTIONS_BUFFERED_WRITE_LABEL:BP,OPTIONS_BUTTON_LABEL:P4,OPTIONS_CHECK_SIGNATURE_LABEL:RP,OPTIONS_CHUNK_SIZE_LABEL:CP,OPTIONS_DEFAULT_PASSWORD_LABEL:NP,OPTIONS_DEFAULT_SKIN_LABEL:xP,OPTIONS_DIALOG_BUTTON_LABEL:hP,OPTIONS_DOS_SKIN_LABEL:yP,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:SP,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:gP,OPTIONS_HIDE_INFOBAR_LABEL:vP,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:AP,OPTIONS_KEEP_ORDER_LABEL:IP,OPTIONS_MAX_WORKERS_LABEL:PP,OPTIONS_SELECT_SKIN_LABEL:wP,OPTIONS_TITLE:LP,OPTIONS_ZOOM_FACTOR_LABEL:OP,PARENT_FOLDER_LABEL:o4,PARENT_FOLDER_TOOLTIP:l4,PASTE_BUTTON_LABEL:M4,PASTE_BUTTON_TOOLTIP:m4,PAUSED_MUSIC_ICON:qP,PLAYING_MUSIC_ICON:YP,RENAME_BUTTON_LABEL:G4,RENAME_BUTTON_TOOLTIP:L4,RENAME_DIALOG_BUTTON_LABEL:oP,RENAME_FILENAME_LABEL:iP,RENAME_TITLE:rP,RESET_BUTTON_LABEL:B4,RESET_CLIPBOARD_BUTTON_LABEL:$4,RESET_DIALOG_BUTTON_LABEL:fP,RESET_MESSAGE:uP,RESET_TITLE:cP,ROOT_FOLDER_LABEL:s4,ROOT_ZIP_FILENAME:a4,SELECTED_FOLDER_LABEL:zP,SHORTCUT_LABEL:Wt,SIZE_LABEL:u4,SPACE_KEY_LABEL:c4,UNCOMPRESSED_SIZE_LABEL:f4,ZIP_FILE_DESCRIPTION_LABEL:EP},Symbol.toStringTag,{value:"Module"})),QP={"fr-FR":PS,"en-US":xN,"de-DE":hR,"es-ES":fB,"it-IT":i4,"pt-PT":XP};function JP({i18nService:e}){return QP[e.getLanguageId()]}function eC({keyboardService:e,windowService:t}){function n(o){te.useEffect(s);function s(){return e.addKeyUpListener(o),()=>e.removeKeyUpListener(o)}}function r(o){te.useEffect(s);function s(){return e.addKeyDownListener(o),()=>e.removeKeyDownListener(o)}}function i(o){te.useEffect(s);function s(){return t.addUnloadListener(o),()=>t.removeUnloadListener(o)}}return{useKeyUp:n,useKeyDown:r,usePageUnload:i}}const{getCommonFeatures:tC,getEntriesFeatures:nC,getFoldersFeatures:rC,getSelectedFolderFeatures:iC,getHighlightedEntriesFeatures:oC,getFilesystemFeatures:sC,getDownloadsFeatures:aC,getClipboardFeatures:lC,getOptionsFeatures:cC,getAppFeatures:uC,getMiscFeatures:fC}=Zw,st=JP({i18nService:ha}),uT=Em(),{root:M_}=uT,dC=st.ROOT_ZIP_FILENAME;function _C(){const[e,t]=te.useState(uT),[n,r]=te.useState(M_),[i,o]=te.useState([]),[s,l]=te.useState(0),[a,c]=te.useState(0),[f,_]=te.useState([]),[E,O]=te.useState({previousHighlight:null,direction:0}),[w,h]=te.useState({queue:[],nextId:0}),[m,u]=te.useState(null),[d,p]=te.useState({path:[M_],index:0}),[A,g]=te.useState({}),[L,v]=te.useState(null),[T,S]=te.useState({}),[y,I]=te.useState({frequencyData:[]}),C=te.useRef(null),R=te.useRef(null),k=te.useRef(1),M=te.useRef(!1),F=R.current,ee=M.current,N=()=>C.current,q=()=>C.current=null,D=()=>k.current,se=Hl=>k.current=Hl,X=Hl=>M.current=Hl,{abortDownload:Y,removeDownload:de}=aC({setDownloads:h,downloadService:vd}),{modifierKeyPressed:Te,saveZipFile:_e,saveEntries:Ne,openDisplayError:ne,closeDisplayError:$}=tC({dialogs:A,setDownloads:h,setDialogs:g,removeDownload:de,downloadService:vd,filesystemService:Ks,environmentService:B_}),{initOptionsFeatures:ie,setOptions:ce,getOptions:V,openOptions:W,closeOptions:ue,resetOptions:j}=cC({dialogs:A,setDialogs:g,setTheme:S,zipService:R_,storageService:wO,stylesheetService:Rc,environmentService:B_,themeService:P_,constants:Yt}),{disabledExportZip:P,disabledReset:J,disabledNavigation:fe,disabledBack:Le,disabledForward:pe,disabledCopy:Ee,disabledCut:Pe,disabledPaste:Ce,disabledResetClipboardData:De,disabledHighlightAll:et,disabledExtract:rt,disabledRename:mt,disabledDelete:Dn,disabledEnterEntry:Wn,dialogDisplayed:on,hiddenNavigationBar:sn,hiddenDownloadManager:U,hiddenInfobar:oe,hiddenExportPassword:B,highlightedEntry:H,highlightedEntries:b,selectedFolderEntries:G,ancestorFolders:re}=Cw({entries:i,highlightedIds:f,selectedFolder:n,clipboardData:m,history:d,getOptions:V,dialogs:A,filesystemService:Ks}),{highlight:le,highlightEntries:he,highlightAll:qe,toggle:be,toggleRange:Zn,resizeEntries:jr,updateEntriesHeight:fr,updateEntriesElementHeight:Os,updateEntriesElementHeightEnd:As,updateHighlightedEntries:gs,registerResizeEntriesHandler:vs,onEntriesKeyUp:Qi,onEntriesKeyDown:Ji}=nC({disabledNavigation:fe,disabledHighlightAll:et,entries:i,selectedFolderEntries:G,highlightedIds:f,navigation:E,dialogDisplayed:on,entriesElementHeight:s,entriesDeltaHeight:a,entriesElement:F,setHighlightedIds:_,resetHighlightedEntryElement:q,setNavigation:O,setOptions:ce,setEntriesHeight:se,setEntriesElementHeight:l,setEntriesDeltaHeight:c,setClickedButtonName:v,getEntriesHeight:D,getHighlightedEntryElement:N,getOptions:V,modifierKeyPressed:Te,documentService:C_,windowService:D_,constants:Yt}),{goIntoFolder:ws,navigateBack:Fl,navigateForward:eo,refreshSelectedFolder:Zt,updateHistoryData:Vn,onFoldersKeyUp:Nt}=rC({disabledBack:Le,disabledForward:pe,history:d,highlightedEntry:H,highlightedEntries:b,selectedFolder:n,setSelectedFolder:r,setEntries:o,setHistory:p,setHighlightedIds:_,setClickedButtonName:v,modifierKeyPressed:Te,constants:Yt}),{initSelectedFolderFeatures:Hr,openPromptCreateFolder:dr,createFolder:Ge,closePromptCreateFolder:_r,addFiles:Yn,dropFiles:to,closeChooseAction:me,importZipFile:It,openPromptExportZip:kn,exportZip:Se,paste:mn,closePromptExportZip:no,closePromptImportPassword:ro,showAddFilesPicker:qn,showImportZipFilePicker:xs,onSelectedFolderKeyDown:io}=iC({disabledPaste:Ce,disabledExportZip:P,zipFilesystem:e,selectedFolder:n,rootZipFilename:dC,clipboardData:m,dialogs:A,setHighlightedIds:_,setClipboardData:u,setDialogs:g,setClickedButtonName:v,refreshSelectedFolder:Zt,highlightEntries:he,saveZipFile:_e,getOptions:V,openDisplayError:ne,filesystemService:Ks,fileHandlersService:Lv,shareTargetService:mv,modifierKeyPressed:Te,constants:Yt}),{copy:ci,cut:oo,openPromptRename:ys,rename:so,closePromptRename:Ml,openConfirmDeleteEntries:$l,deleteEntries:z,closeConfirmDeleteEntries:ve,openPromptExtract:K,extract:ze,closePromptExtract:Rt,onHighlightedEntriesKeyUp:ui,onHighlightedEntriesKeyDown:Ss}=oC({disabledCopy:Ee,disabledCut:Pe,disabledExtract:rt,disabledRename:mt,disabledDelete:Dn,zipFilesystem:e,entries:i,highlightedIds:f,highlightedEntry:H,highlightedEntries:b,navigation:E,dialogs:A,setClipboardData:u,setHighlightedIds:_,setNavigation:O,setDialogs:g,setClickedButtonName:v,refreshSelectedFolder:Zt,updateHistoryData:Vn,saveEntries:Ne,getOptions:V,openDisplayError:ne,filesystemService:Ks,modifierKeyPressed:Te,constants:Yt}),{openConfirmReset:fi,reset:fT,closeConfirmReset:dT}=sC({dialogs:A,setZipFilesystem:t,setDialogs:g,zipService:R_}),{resetClipboardData:_T}=lC({setClipboardData:u}),{playMusic:pT,stopMusic:ET,updateAccentColor:mT,updateSkin:TT,initMiscFeatures:hT}=fC({theme:T,setOptions:ce,setTheme:S,setMusicData:I,setPlayerActive:X,getOptions:V,stylesheetService:Rc,themeService:P_,musicService:P2,constants:Yt}),{enterEntry:LT,initAppFeatures:OT,updateZipFilesystem:AT,resetClickedButtonName:jl,getAppClassName:gT,onAppKeyUp:vT}=uC({disabledEnterEntry:Wn,zipFilesystem:e,highlightedEntry:H,selectedFolder:n,hiddenInfobar:oe,hiddenDownloadManager:U,setNavigation:O,setSelectedFolder:r,setHighlightedIds:_,setHistory:p,setClickedButtonName:v,goIntoFolder:ws,openPromptExtract:K,refreshSelectedFolder:Zt,modifierKeyPressed:Te,stylesheetService:Rc,documentService:C_,i18nService:ha,constants:Yt,messages:st}),{useKeyUp:wT,useKeyDown:xT,usePageUnload:yT}=eC({keyboardService:Nv,windowService:D_}),{handleKeyUp:ST,handleKeyDown:NT,handlePageUnload:IT}=kw({entries:i,downloads:w,dialogDisplayed:on,onEntriesKeyUp:Qi,onFoldersKeyUp:Nt,onHighlightedEntriesKeyUp:ui,onAppKeyUp:vT,onEntriesKeyDown:Ji,onHighlightedEntriesKeyDown:Ss,onSelectedFolderKeyDown:io}),RT=gT();return wT(ST),xT(NT),yT(IT),te.useEffect(AT,[e]),te.useEffect(gs,[f]),te.useEffect(mT,[T.accentColor]),te.useEffect(TT,[T.skin]),te.useEffect(()=>{Hr(),hT(),ie(),OT()},[]),x.jsxs("div",{className:RT,children:[x.jsxs("main",{role:"application",children:[x.jsx(ux,{disabledExportZipButton:P,disabledResetButton:J,clickedButtonName:L,onCreateFolder:dr,onAddFiles:Yn,onImportZipFile:It,onExportZip:kn,onReset:fi,onOpenOptions:W,onShowImportZipFilePicker:xs,onShowAddFilesPicker:qn,onClickedButton:jl,constants:Yt,messages:st}),x.jsx(px,{selectedFolder:n,ancestorFolders:re,disabledBackButton:Le,disabledForwardButton:pe,clickedButtonName:L,hidden:sn,onNavigateBack:Fl,onNavigateForward:eo,onGoIntoFolder:ws,onClickedButton:jl,constants:Yt,messages:st}),x.jsx(Ex,{entries:i,selectedFolder:n,highlightedIds:f,entriesElementHeight:s,deltaEntriesHeight:a,hiddenDownloadManager:U,onDropFiles:to,onHighlight:le,onToggle:be,onToggleRange:Zn,onEnter:LT,onUpdateEntriesHeight:fr,onUpdateEntriesElementHeight:Os,onRegisterResizeEntriesHandler:vs,entriesElementRef:R,highlightedEntryElementRef:C,i18n:ha,constants:Yt,messages:st}),x.jsx(Ox,{disabledCopyButton:Ee,disabledCutButton:Pe,disabledPasteButton:Ce,disabledResetClipboardDataButton:De,disabledExtractButton:rt,disabledHighlightAllButton:et,disabledRenameButton:mt,disabledDeleteButton:Dn,clickedButtonName:L,onCopy:ci,onCut:oo,onPaste:mn,onResetClipboardData:_T,onExtract:ze,onHighlightAll:qe,onRename:ys,onRemove:$l,onMove:jr,onUpdateElementHeight:As,onClickedButton:jl,constants:Yt,messages:st}),x.jsx(Ax,{downloads:w,hidden:U,onAbortDownload:Y,i18n:ha,constants:Yt,messages:st})]}),x.jsx(yx,{hidden:oe,theme:T,musicData:y,playMusic:pT,stopMusic:ET,onSetTheme:S,musicPlayerActive:ee,constants:Yt,messages:st}),x.jsx(Cx,{data:A.createFolder,onCreateFolder:Ge,onClose:_r,messages:st}),x.jsx(Rx,{data:A.exportZip,hiddenPassword:B,onExportZip:Se,onClose:no,messages:st}),x.jsx(Bx,{data:A.extract,onExtract:ze,onClose:Rt,messages:st}),x.jsx(Px,{data:A.rename,onRename:so,onClose:Ml,messages:st}),x.jsx(Dx,{data:A.reset,onReset:fT,onClose:dT,messages:st}),x.jsx(kx,{data:A.deleteEntries,onDeleteEntries:z,onClose:ve,messages:st}),x.jsx(bx,{data:A.displayError,onClose:$,messages:st}),x.jsx(Ux,{data:A.enterImportPassword,onClose:ro,messages:st}),x.jsx(Fx,{data:A.options,onSetOptions:ce,onResetOptions:j,onClose:ue,messages:st}),x.jsx(Mx,{data:A.chooseAction,onImportZipFile:It,onAddFiles:Yn,onClose:me,messages:st})]})}const pC=kc.createRoot(document.body);pC.render(x.jsx(ZT.StrictMode,{children:x.jsx(_C,{})})); diff --git a/assets/index-vCN7MQWP.js b/assets/index-vCN7MQWP.js deleted file mode 100644 index 50a55b01..00000000 --- a/assets/index-vCN7MQWP.js +++ /dev/null @@ -1,42 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function BT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $_={exports:{}},ul={},j_={exports:{}},Oe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var _s=Symbol.for("react.element"),PT=Symbol.for("react.portal"),CT=Symbol.for("react.fragment"),DT=Symbol.for("react.strict_mode"),kT=Symbol.for("react.profiler"),bT=Symbol.for("react.provider"),UT=Symbol.for("react.context"),FT=Symbol.for("react.forward_ref"),MT=Symbol.for("react.suspense"),$T=Symbol.for("react.memo"),jT=Symbol.for("react.lazy"),pf=Symbol.iterator;function HT(e){return e===null||typeof e!="object"?null:(e=pf&&e[pf]||e["@@iterator"],typeof e=="function"?e:null)}var H_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G_=Object.assign,z_={};function Yi(e,t,n){this.props=e,this.context=t,this.refs=z_,this.updater=n||H_}Yi.prototype.isReactComponent={};Yi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K_(){}K_.prototype=Yi.prototype;function t0(e,t,n){this.props=e,this.context=t,this.refs=z_,this.updater=n||H_}var n0=t0.prototype=new K_;n0.constructor=t0;G_(n0,Yi.prototype);n0.isPureReactComponent=!0;var Ef=Array.isArray,W_=Object.prototype.hasOwnProperty,r0={current:null},Z_={key:!0,ref:!0,__self:!0,__source:!0};function V_(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)W_.call(t,r)&&!Z_.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,Q=I[le];if(0>>1;lei(Te,D))pei(Se,Te)?(I[le]=Se,I[pe]=D,le=pe):(I[le]=Te,I[de]=D,le=de);else if(pei(Se,D))I[le]=Se,I[pe]=D,le=pe;else break e}}return q}function i(I,q){var D=I.sortIndex-q.sortIndex;return D!==0?D:I.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],f=1,_=null,E=3,O=!1,w=!1,h=!1,m=typeof setTimeout=="function"?setTimeout:null,u=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(I){for(var q=n(c);q!==null;){if(q.callback===null)r(c);else if(q.startTime<=I)r(c),q.sortIndex=q.expirationTime,t(a,q);else break;q=n(c)}}function A(I){if(h=!1,p(I),!w)if(n(a)!==null)w=!0,z(g);else{var q=n(c);q!==null&&X(A,q.startTime-I)}}function g(I,q){w=!1,h&&(h=!1,u(T),T=-1),O=!0;var D=E;try{for(p(q),_=n(a);_!==null&&(!(_.expirationTime>q)||I&&!N());){var le=_.callback;if(typeof le=="function"){_.callback=null,E=_.priorityLevel;var Q=le(_.expirationTime<=q);q=e.unstable_now(),typeof Q=="function"?_.callback=Q:_===n(a)&&r(a),p(q)}else r(a);_=n(a)}if(_!==null)var V=!0;else{var de=n(c);de!==null&&X(A,de.startTime-q),V=!1}return V}finally{_=null,E=D,O=!1}}var L=!1,v=null,T=-1,S=5,y=-1;function N(){return!(e.unstable_now()-yI||125le?(I.sortIndex=D,t(c,I),n(a)===null&&I===n(c)&&(h?(u(T),T=-1):h=!0,X(A,D-le))):(I.sortIndex=Q,t(a,I),w||O||(w=!0,z(g))),I},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(I){var q=E;return function(){var D=E;E=q;try{return I.apply(this,arguments)}finally{E=D}}}})(J_);Q_.exports=J_;var eh=Q_.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var th=te,en=eh;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=Object.prototype.hasOwnProperty,nh=/^[: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]*$/,Tf={},hf={};function rh(e){return bc.call(hf,e)?!0:bc.call(Tf,e)?!1:nh.test(e)?hf[e]=!0:(Tf[e]=!0,!1)}function ih(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oh(e,t,n,r){if(t===null||typeof t>"u"||ih(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function St(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Et[e]=new St(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Et[t]=new St(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Et[e]=new St(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Et[e]=new St(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Et[e]=new St(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Et[e]=new St(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Et[e]=new St(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Et[e]=new St(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Et[e]=new St(e,5,!1,e.toLowerCase(),null,!1,!1)});var o0=/[\-:]([a-z])/g;function s0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(o0,s0);Et[t]=new St(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(o0,s0);Et[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(o0,s0);Et[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Et[e]=new St(e,1,!1,e.toLowerCase(),null,!1,!1)});Et.xlinkHref=new St("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Et[e]=new St(e,1,!1,e.toLowerCase(),null,!0,!0)});function a0(e,t,n,r){var i=Et.hasOwnProperty(t)?Et[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Kl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wo(e):""}function sh(e){switch(e.tag){case 5:return wo(e.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 2:case 15:return e=Wl(e.type,!1),e;case 11:return e=Wl(e.type.render,!1),e;case 1:return e=Wl(e.type,!0),e;default:return""}}function $c(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hi:return"Fragment";case Ti:return"Portal";case Uc:return"Profiler";case l0:return"StrictMode";case Fc:return"Suspense";case Mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n1:return(e.displayName||"Context")+".Consumer";case t1:return(e._context.displayName||"Context")+".Provider";case c0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u0:return t=e.displayName||null,t!==null?t:$c(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return $c(e(t))}catch{}}return null}function ah(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $c(t);case 8:return t===l0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lh(e){var t=i1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rs(e){e._valueTracker||(e._valueTracker=lh(e))}function o1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ia(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jc(e,t){var n=t.checked;return Ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Of(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function s1(e,t){t=t.checked,t!=null&&a0(e,"checked",t,!1)}function Hc(e,t){s1(e,t);var n=Dr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gc(e,t.type,Dr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Af(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Gc(e,t,n){(t!=="number"||Ia(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xo=Array.isArray;function Bi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Bs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ho(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var No={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ch=["Webkit","ms","Moz","O"];Object.keys(No).forEach(function(e){ch.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),No[t]=No[e]})});function u1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||No.hasOwnProperty(e)&&No[e]?(""+t).trim():t+"px"}function f1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=u1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uh=Ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wc(e,t){if(t){if(uh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function Zc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vc=null;function f0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yc=null,Pi=null,Ci=null;function wf(e){if(e=ms(e)){if(typeof Yc!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=El(t),Yc(e.stateNode,e.type,t))}}function d1(e){Pi?Ci?Ci.push(e):Ci=[e]:Pi=e}function _1(){if(Pi){var e=Pi,t=Ci;if(Ci=Pi=null,wf(e),t)for(e=0;e>>=0,e===0?32:31-(Ah(e)/gh|0)|0}var Ps=64,Cs=4194304;function yo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=yo(l):(o&=s,o!==0&&(r=yo(o)))}else s=n&~i,s!==0?r=yo(s):o!==0&&(r=yo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ps(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function yh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ro),Cf=" ",Df=!1;function C1(e,t){switch(e){case"keyup":return eL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Li=!1;function nL(e,t){switch(e){case"compositionend":return D1(t);case"keypress":return t.which!==32?null:(Df=!0,Cf);case"textInput":return e=t.data,e===Cf&&Df?null:e;default:return null}}function rL(e,t){if(Li)return e==="compositionend"||!L0&&C1(e,t)?(e=B1(),ca=m0=wr=null,Li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ff(n)}}function F1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?F1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function M1(){for(var e=window,t=Ia();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ia(e.document)}return t}function O0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dL(e){var t=M1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&F1(n.ownerDocument.documentElement,n)){if(r!==null&&O0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Mf(n,o);var s=Mf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Oi=null,tu=null,Po=null,nu=!1;function $f(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nu||Oi==null||Oi!==Ia(r)||(r=Oi,"selectionStart"in r&&O0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Po&&Vo(Po,r)||(Po=r,r=ba(tu,"onSelect"),0vi||(e.current=lu[vi],lu[vi]=null,vi--)}function ke(e,t){vi++,lu[vi]=e.current,e.current=t}var kr={},At=Fr(kr),Ut=Fr(!1),ei=kr;function $i(e,t){var n=e.type.contextTypes;if(!n)return kr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ft(e){return e=e.childContextTypes,e!=null}function Fa(){$e(Ut),$e(At)}function Zf(e,t,n){if(At.current!==kr)throw Error(Z(168));ke(At,t),ke(Ut,n)}function V1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,ah(e)||"Unknown",i));return Ze({},n,r)}function Ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kr,ei=At.current,ke(At,e),ke(Ut,Ut.current),!0}function Vf(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=V1(e,t,ei),r.__reactInternalMemoizedMergedChildContext=e,$e(Ut),$e(At),ke(At,e)):$e(Ut),ke(Ut,n)}var Jn=null,ml=!1,sc=!1;function Y1(e){Jn===null?Jn=[e]:Jn.push(e)}function wL(e){ml=!0,Y1(e)}function Mr(){if(!sc&&Jn!==null){sc=!0;var e=0,t=Re;try{var n=Jn;for(Re=1;e>=s,i-=s,er=1<<32-xn(t)+i|n<T?(S=v,v=null):S=v.sibling;var y=E(u,v,p[T],A);if(y===null){v===null&&(v=S);break}e&&v&&y.alternate===null&&t(u,v),d=o(y,d,T),L===null?g=y:L.sibling=y,L=y,v=S}if(T===p.length)return n(u,v),He&&zr(u,T),g;if(v===null){for(;TT?(S=v,v=null):S=v.sibling;var N=E(u,v,y.value,A);if(N===null){v===null&&(v=S);break}e&&v&&N.alternate===null&&t(u,v),d=o(N,d,T),L===null?g=N:L.sibling=N,L=N,v=S}if(y.done)return n(u,v),He&&zr(u,T),g;if(v===null){for(;!y.done;T++,y=p.next())y=_(u,y.value,A),y!==null&&(d=o(y,d,T),L===null?g=y:L.sibling=y,L=y);return He&&zr(u,T),g}for(v=r(u,v);!y.done;T++,y=p.next())y=O(v,u,T,y.value,A),y!==null&&(e&&y.alternate!==null&&v.delete(y.key===null?T:y.key),d=o(y,d,T),L===null?g=y:L.sibling=y,L=y);return e&&v.forEach(function(P){return t(u,P)}),He&&zr(u,T),g}function m(u,d,p,A){if(typeof p=="object"&&p!==null&&p.type===hi&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Is:e:{for(var g=p.key,L=d;L!==null;){if(L.key===g){if(g=p.type,g===hi){if(L.tag===7){n(u,L.sibling),d=i(L,p.props.children),d.return=u,u=d;break e}}else if(L.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===Lr&&Xf(g)===L.type){n(u,L.sibling),d=i(L,p.props),d.ref=_o(u,L,p),d.return=u,u=d;break e}n(u,L);break}else t(u,L);L=L.sibling}p.type===hi?(d=Jr(p.props.children,u.mode,A,p.key),d.return=u,u=d):(A=Ta(p.type,p.key,p.props,null,u.mode,A),A.ref=_o(u,d,p),A.return=u,u=A)}return s(u);case Ti:e:{for(L=p.key;d!==null;){if(d.key===L)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(u,d.sibling),d=i(d,p.children||[]),d.return=u,u=d;break e}else{n(u,d);break}else t(u,d);d=d.sibling}d=pc(p,u.mode,A),d.return=u,u=d}return s(u);case Lr:return L=p._init,m(u,d,L(p._payload),A)}if(xo(p))return w(u,d,p,A);if(ao(p))return h(u,d,p,A);$s(u,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(u,d.sibling),d=i(d,p),d.return=u,u=d):(n(u,d),d=_c(p,u.mode,A),d.return=u,u=d),s(u)):n(u,d)}return m}var Hi=J1(!0),ep=J1(!1),Ha=Fr(null),Ga=null,yi=null,w0=null;function x0(){w0=yi=Ga=null}function y0(e){var t=Ha.current;$e(Ha),e._currentValue=t}function fu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ki(e,t){Ga=e,w0=yi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function pn(e){var t=e._currentValue;if(w0!==e)if(e={context:e,memoizedValue:t,next:null},yi===null){if(Ga===null)throw Error(Z(308));yi=e,Ga.dependencies={lanes:0,firstContext:e}}else yi=yi.next=e;return t}var qr=null;function S0(e){qr===null?qr=[e]:qr.push(e)}function tp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,S0(t)):(n.next=i.next,i.next=n),t.interleaved=n,ar(e,r)}function ar(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Or=!1;function N0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function np(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ye&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ar(e,n)}return i=r.interleaved,i===null?(t.next=t,S0(r)):(t.next=i.next,i.next=t),r.interleaved=t,ar(e,n)}function fa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_0(e,n)}}function Qf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function za(e,t,n,r){var i=e.updateQueue;Or=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=a))}if(o!==null){var _=i.baseState;s=0,f=c=a=null,l=o;do{var E=l.lane,O=l.eventTime;if((r&E)===E){f!==null&&(f=f.next={eventTime:O,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,h=l;switch(E=t,O=n,h.tag){case 1:if(w=h.payload,typeof w=="function"){_=w.call(O,_,E);break e}_=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=h.payload,E=typeof w=="function"?w.call(O,_,E):w,E==null)break e;_=Ze({},_,E);break e;case 2:Or=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,E=i.effects,E===null?i.effects=[l]:E.push(l))}else O={eventTime:O,lane:E,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=O,a=_):f=f.next=O,s|=E;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;E=l,l=E.next,E.next=null,i.lastBaseUpdate=E,i.shared.pending=null}}while(!0);if(f===null&&(a=_),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ri|=s,e.lanes=s,e.memoizedState=_}}function Jf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lc.transition;lc.transition={};try{e(!1),t()}finally{Re=n,lc.transition=r}}function Lp(){return En().memoizedState}function NL(e,t,n){var r=Pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Op(e))Ap(t,n);else if(n=tp(e,t,n,r),n!==null){var i=xt();yn(n,e,r,i),gp(n,t,r)}}function IL(e,t,n){var r=Pr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Op(e))Ap(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Sn(l,s)){var a=t.interleaved;a===null?(i.next=i,S0(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=tp(e,t,i,r),n!==null&&(i=xt(),yn(n,e,r,i),gp(n,t,r))}}function Op(e){var t=e.alternate;return e===We||t!==null&&t===We}function Ap(e,t){Co=Wa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_0(e,n)}}var Za={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},RL={readContext:pn,useCallback:function(e,t){return Mn().memoizedState=[e,t===void 0?null:t],e},useContext:pn,useEffect:td,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_a(4194308,4,pp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _a(4194308,4,e,t)},useInsertionEffect:function(e,t){return _a(4,2,e,t)},useMemo:function(e,t){var n=Mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=NL.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=Mn();return e={current:e},t.memoizedState=e},useState:ed,useDebugValue:b0,useDeferredValue:function(e){return Mn().memoizedState=e},useTransition:function(){var e=ed(!1),t=e[0];return e=SL.bind(null,e[1]),Mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=We,i=Mn();if(He){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),ut===null)throw Error(Z(349));ni&30||sp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,td(lp.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,ap.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mn(),t=ut.identifierPrefix;if(He){var n=tr,r=er;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=es++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$n]=t,e[Xo]=r,Pp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zc(n,r),n){case"dialog":Ue("cancel",e),Ue("close",e),i=r;break;case"iframe":case"object":case"embed":Ue("load",e),i=r;break;case"video":case"audio":for(i=0;iKi&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ka(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!He)return ht(t),null}else 2*Qe()-o.renderingStartTime>Ki&&n!==1073741824&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Qe(),t.sibling=null,n=Ke.current,ke(Ke,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return H0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xt&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function FL(e,t){switch(g0(t),t.tag){case 1:return Ft(t.type)&&Fa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(),$e(Ut),$e(At),B0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R0(t),null;case 13:if($e(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Ke),null;case 4:return Gi(),null;case 10:return y0(t.type._context),null;case 22:case 23:return H0(),null;case 24:return null;default:return null}}var Hs=!1,Ot=!1,ML=typeof WeakSet=="function"?WeakSet:Set,se=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Ou(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var dd=!1;function $L(e,t){if(ru=Da,e=M1(),O0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,f=0,_=e,E=null;t:for(;;){for(var O;_!==n||i!==0&&_.nodeType!==3||(l=s+i),_!==o||r!==0&&_.nodeType!==3||(a=s+r),_.nodeType===3&&(s+=_.nodeValue.length),(O=_.firstChild)!==null;)E=_,_=O;for(;;){if(_===e)break t;if(E===n&&++c===i&&(l=s),E===o&&++f===r&&(a=s),(O=_.nextSibling)!==null)break;_=E,E=_.parentNode}_=O}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},Da=!1,se=t;se!==null;)if(t=se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,se=e;else for(;se!==null;){t=se;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var h=w.memoizedProps,m=w.memoizedState,u=t.stateNode,d=u.getSnapshotBeforeUpdate(t.elementType===t.type?h:On(t.type,h),m);u.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(A){Ve(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,se=e;break}se=t.return}return w=dd,dd=!1,w}function Do(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ou(t,n,o)}i=i.next}while(i!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Au(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[Xo],delete t[au],delete t[gL],delete t[vL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bp(e){return e.tag===5||e.tag===3||e.tag===4}function _d(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ua));else if(r!==4&&(e=e.child,e!==null))for(gu(e,t,n),e=e.sibling;e!==null;)gu(e,t,n),e=e.sibling}function vu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vu(e,t,n),e=e.sibling;e!==null;)vu(e,t,n),e=e.sibling}var ft=null,An=!1;function pr(e,t,n){for(n=n.child;n!==null;)Up(e,t,n),n=n.sibling}function Up(e,t,n){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(fl,n)}catch{}switch(n.tag){case 5:Ot||Si(n,t);case 6:var r=ft,i=An;ft=null,pr(e,t,n),ft=r,An=i,ft!==null&&(An?(e=ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ft.removeChild(n.stateNode));break;case 18:ft!==null&&(An?(e=ft,n=n.stateNode,e.nodeType===8?oc(e.parentNode,n):e.nodeType===1&&oc(e,n),Wo(e)):oc(ft,n.stateNode));break;case 4:r=ft,i=An,ft=n.stateNode.containerInfo,An=!0,pr(e,t,n),ft=r,An=i;break;case 0:case 11:case 14:case 15:if(!Ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ou(n,t,s),i=i.next}while(i!==r)}pr(e,t,n);break;case 1:if(!Ot&&(Si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ve(n,t,l)}pr(e,t,n);break;case 21:pr(e,t,n);break;case 22:n.mode&1?(Ot=(r=Ot)||n.memoizedState!==null,pr(e,t,n),Ot=r):pr(e,t,n);break;default:pr(e,t,n)}}function pd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ML),t.forEach(function(r){var i=YL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HL(r/1960))-r,10e?16:e,xr===null)var r=!1;else{if(e=xr,xr=null,qa=0,ye&6)throw Error(Z(331));var i=ye;for(ye|=4,se=e.current;se!==null;){var o=se,s=o.child;if(se.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aQe()-$0?Qr(e,0):M0|=n),Mt(e,t)}function Kp(e,t){t===0&&(e.mode&1?(t=Cs,Cs<<=1,!(Cs&130023424)&&(Cs=4194304)):t=1);var n=xt();e=ar(e,t),e!==null&&(ps(e,t,n),Mt(e,n))}function VL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kp(e,n)}function YL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),Kp(e,n)}var Wp;Wp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ut.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,bL(e,t,n);bt=!!(e.flags&131072)}else bt=!1,He&&t.flags&1048576&&q1(t,ja,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pa(e,t),e=t.pendingProps;var i=$i(t,At.current);ki(t,n),i=C0(null,t,r,e,i,n);var o=D0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ft(r)?(o=!0,Ma(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,N0(t),i.updater=hl,t.stateNode=i,i._reactInternals=t,_u(t,r,e,n),t=mu(null,t,r,!0,o,n)):(t.tag=0,He&&o&&A0(t),vt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=XL(r),e=On(r,e),i){case 0:t=Eu(null,t,r,e,n);break e;case 1:t=cd(null,t,r,e,n);break e;case 11:t=ad(null,t,r,e,n);break e;case 14:t=ld(null,t,r,On(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),Eu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),cd(e,t,r,i,n);case 3:e:{if(Ip(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,np(e,t),za(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zi(Error(Z(423)),t),t=ud(e,t,r,n,i);break e}else if(r!==i){i=zi(Error(Z(424)),t),t=ud(e,t,r,n,i);break e}else for(Qt=Ir(t.stateNode.containerInfo.firstChild),Jt=t,He=!0,vn=null,n=ep(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),r===i){t=lr(e,t,n);break e}vt(e,t,r,n)}t=t.child}return t;case 5:return rp(t),e===null&&uu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ou(r,i)?s=null:o!==null&&ou(r,o)&&(t.flags|=32),Np(e,t),vt(e,t,s,n),t.child;case 6:return e===null&&uu(t),null;case 13:return Rp(e,t,n);case 4:return I0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hi(t,null,r,n):vt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),ad(e,t,r,i,n);case 7:return vt(e,t,t.pendingProps,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ke(Ha,r._currentValue),r._currentValue=s,o!==null)if(Sn(o.value,s)){if(o.children===i.children&&!Ut.current){t=lr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=nr(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),fu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Z(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}vt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ki(t,n),i=pn(i),r=r(i),t.flags|=1,vt(e,t,r,n),t.child;case 14:return r=t.type,i=On(r,t.pendingProps),i=On(r.type,i),ld(e,t,r,i,n);case 15:return yp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),pa(e,t),t.tag=1,Ft(r)?(e=!0,Ma(t)):e=!1,ki(t,n),vp(t,r,i),_u(t,r,i,n),mu(null,t,r,!0,e,n);case 19:return Bp(e,t,n);case 22:return Sp(e,t,n)}throw Error(Z(156,t.tag))};function Zp(e,t){return O1(e,t)}function qL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(e,t,n,r){return new qL(e,t,n,r)}function z0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XL(e){if(typeof e=="function")return z0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c0)return 11;if(e===u0)return 14}return 2}function Cr(e,t){var n=e.alternate;return n===null?(n=dn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ta(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")z0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case hi:return Jr(n.children,i,o,t);case l0:s=8,i|=8;break;case Uc:return e=dn(12,n,t,i|2),e.elementType=Uc,e.lanes=o,e;case Fc:return e=dn(13,n,t,i),e.elementType=Fc,e.lanes=o,e;case Mc:return e=dn(19,n,t,i),e.elementType=Mc,e.lanes=o,e;case r1:return Al(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case t1:s=10;break e;case n1:s=9;break e;case c0:s=11;break e;case u0:s=14;break e;case Lr:s=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=dn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Jr(e,t,n,r){return e=dn(7,e,r,t),e.lanes=n,e}function Al(e,t,n,r){return e=dn(22,e,r,t),e.elementType=r1,e.lanes=n,e.stateNode={isHidden:!1},e}function _c(e,t,n){return e=dn(6,e,null,t),e.lanes=n,e}function pc(e,t,n){return t=dn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QL(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function K0(e,t,n,r,i,o,s,l,a){return e=new QL(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=dn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},N0(o),e}function JL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xp)}catch(e){console.error(e)}}Xp(),X_.exports=nn;var iO=X_.exports,gd=iO;kc.createRoot=gd.createRoot,kc.hydrateRoot=gd.hydrateRoot;const oO="file",sO="AbortError";async function aO({multiple:e,description:t,accept:n}={}){const r=!!n;if("showOpenFilePicker"in window)try{const i={excludeAcceptAllOption:r,multiple:e};r&&Object.assign(i,{types:[{description:t,accept:n}]});const o=await window.showOpenFilePicker(i);return Promise.all(o.map(s=>s.getFile()))}catch(i){if(i.name===sO)return[];throw i}else{const i=document.createElement("input");return Object.assign(i,{type:"file",accept:n?Object.keys(n).join(","):"",multiple:e}),new Promise(o=>{i.onchange=({target:s})=>{s.files.length&&o(Array.from(s.files))},i.click()})}}function lO(e){return window.showDirectoryPicker(e)}function cO(e){return window.showSaveFilePicker(e)}function uO(){return"showSaveFilePicker"in window&&"showDirectoryPicker"in window}function fO(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");Object.assign(r,{href:n,download:t}),r.click(),URL.revokeObjectURL(n)}const Ks=Object.freeze(Object.defineProperty({__proto__:null,FILESYSTEM_FILE_KIND:oO,saveBlob:fO,savePickersSupported:uO,showDirectoryPicker:lO,showOpenFilePicker:aO,showSaveFilePicker:cO},Symbol.toStringTag,{value:"Module"})),dO="AbortError",Qp="download cancelled";function _O(){return new AbortController}function pO(e){e.abort(new Error(Qp))}function EO(e){return(e.message||e)===Qp||e.name===dO}const vd=Object.freeze(Object.defineProperty({__proto__:null,abortDownload:pO,createAbortController:_O,downloadAborted:EO},Symbol.toStringTag,{value:"Module"})),Jp="en-US",mO=[Jp,"de-DE","es-ES","fr-FR","it-IT","pt-PT"],wd=["kilobyte","megabyte","gigabyte","terabyte","petabyte"].map(e=>new Intl.NumberFormat(yl(),{style:"unit",maximumFractionDigits:1,unit:e})),TO=new Intl.DateTimeFormat(yl(),{dateStyle:"short",timeStyle:"short"}),hO=new Intl.NumberFormat(yl(),{style:"unit",maximumFractionDigits:0,unit:"percent"});function LO(e){let t=0;for(e=e/1e3;e>1e3&&tnew Array(t).fill(n,0,t)))}function Nl(e){return e.reduce((t,n)=>t.concat(Array.isArray(n)?Nl(n):n),[])}const Rd=[0,1,2,3].concat(...Sl([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(i){const o=e.dyn_tree,s=e.stat_desc.static_tree,l=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,c=e.stat_desc.max_length;let f,_,E,O,w,h,m=0;for(O=0;O<=is;O++)i.bl_count[O]=0;for(o[i.heap[i.heap_max]*2+1]=0,f=i.heap_max+1;fc&&(O=c,m++),o[_*2+1]=O,!(_>e.max_code)&&(i.bl_count[O]++,w=0,_>=a&&(w=l[_-a]),h=o[_*2],i.opt_len+=h*(O+w),s&&(i.static_len+=h*(s[_*2+1]+w)));if(m!==0){do{for(O=c-1;i.bl_count[O]===0;)O--;i.bl_count[O]--,i.bl_count[O+1]+=2,i.bl_count[c]--,m-=2}while(m>0);for(O=c;O!==0;O--)for(_=i.bl_count[O];_!==0;)E=i.heap[--f],!(E>e.max_code)&&(o[E*2+1]!=O&&(i.opt_len+=(O-o[E*2+1])*o[E*2],o[E*2+1]=O),_--)}}function n(i,o){let s=0;do s|=i&1,i>>>=1,s<<=1;while(--o>0);return s>>>1}function r(i,o,s){const l=[];let a=0,c,f,_;for(c=1;c<=is;c++)l[c]=a=a+s[c-1]<<1;for(f=0;f<=o;f++)_=i[f*2+1],_!==0&&(i[f*2]=n(l[_]++,_))}e.build_tree=function(i){const o=e.dyn_tree,s=e.stat_desc.static_tree,l=e.stat_desc.elems;let a,c,f=-1,_;for(i.heap_len=0,i.heap_max=xd,a=0;a=1;a--)i.pqdownheap(o,a);_=l;do a=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(o,1),c=i.heap[1],i.heap[--i.heap_max]=a,i.heap[--i.heap_max]=c,o[_*2]=o[a*2]+o[c*2],i.depth[_]=Math.max(i.depth[a],i.depth[c])+1,o[a*2+1]=o[c*2+1]=_,i.heap[1]=_++,i.pqdownheap(o,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],t(i),r(o,e.max_code,i.bl_count)}}Fe._length_code=[0,1,2,3,4,5,6,7].concat(...Sl([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Fe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Fe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Fe.d_code=function(e){return e<256?Rd[e]:Rd[256+(e>>>7)]};Fe.extra_lbits=[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];Fe.extra_dbits=[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];Fe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Fe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function dt(e,t,n,r,i){const o=this;o.static_tree=e,o.extra_bits=t,o.extra_base=n,o.elems=r,o.max_length=i}const BO=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],PO=Sl([[144,8],[112,9],[24,7],[8,8]]);dt.static_ltree=Nl(BO.map((e,t)=>[e,PO[t]]));const CO=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],DO=Sl([[30,5]]);dt.static_dtree=Nl(CO.map((e,t)=>[e,DO[t]]));dt.static_l_desc=new dt(dt.static_ltree,Fe.extra_lbits,Ja+1,Y0,is);dt.static_d_desc=new dt(dt.static_dtree,Fe.extra_dbits,0,Nu,is);dt.static_bl_desc=new dt(null,Fe.extra_blbits,0,Iu,yO);const kO=9,bO=8;function Un(e,t,n,r,i){const o=this;o.good_length=e,o.max_lazy=t,o.nice_length=n,o.max_chain=r,o.func=i}const tE=0,La=1,Wr=2,hn=[new Un(0,0,0,0,tE),new Un(4,4,8,4,La),new Un(4,5,16,8,La),new Un(4,6,32,32,La),new Un(4,4,16,16,Wr),new Un(8,16,32,32,Wr),new Un(8,16,128,128,Wr),new Un(8,32,128,256,Wr),new Un(32,128,258,1024,Wr),new Un(32,258,258,4096,Wr)],Vs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],an=0,Ys=1,To=2,qs=3,UO=32,mc=42,Xs=113,ho=666,Tc=8,FO=0,hc=1,MO=2,je=3,Oa=258,Vt=Oa+je+1;function Bd(e,t,n,r){const i=e[t*2],o=e[n*2];return i=3&&X[Fe.bl_order[B]*2+1]===0;B--);return e.opt_len+=3*(B+1)+5+5+4,B}function Y(B){e.pending_buf[e.pending++]=B}function W(B){Y(B&255),Y(B>>>8&255)}function ce(B){Y(B>>8&255),Y(B&255&255)}function K(B,$){let b;const j=$;pe>Ec-j?(b=B,Te|=b<>>Ec-pe,pe+=j-Ec):(Te|=B<=8&&(Y(Te&255),Te>>>=8,pe-=8)}function _e(){K(hc<<1,3),C(mo,dt.static_ltree),Le(),1+de+10-pe<9&&(K(hc<<1,3),C(mo,dt.static_ltree),Le()),de=7}function Ee(B,$){let b,j,re;if(e.dist_buf[Q]=B,e.lc_buf[Q]=$&255,Q++,B===0?F[$*2]++:(V++,B--,F[(Fe._length_code[$]+Ja+1)*2]++,z[Fe.d_code(B)*2]++),!(Q&8191)&&N>2){for(b=Q*8,j=g-u,re=0;re>>=3,V8?W(Te):pe>0&&Y(Te&255),Te=0,pe=0}function De(B,$,b){Ce(),de=8,W($),W(~$),e.pending_buf.set(a.subarray(B,B+$),e.pending),e.pending+=$}function et(B,$,b){K((FO<<1)+(b?1:0),3),De(B,$)}function rt(B,$,b){let j,re,ae=0;N>0?(I.build_tree(e),q.build_tree(e),ae=ue(),j=e.opt_len+3+7>>>3,re=e.static_len+3+7>>>3,re<=j&&(j=re)):j=re=$+5,$+4<=j&&B!=-1?et(B,$,b):re==j?(K((hc<<1)+(b?1:0),3),Be(dt.static_ltree,dt.static_dtree)):(K((MO<<1)+(b?1:0),3),fe(I.max_code+1,q.max_code+1,ae+1),Be(F,z)),ne(),b&&Ce()}function mt(B){rt(u>=0?u:-1,g-u,B),u=g,t.flush_pending()}function Dn(){let B,$,b,j;do{if(j=c-v-g,j===0&&g===0&&v===0)j=o;else if(j==-1)j--;else if(g>=o+o-Vt){a.set(a.subarray(o,o+o),0),L-=o,g-=o,u-=o,B=O,b=B;do $=_[--b]&65535,_[b]=$>=o?$-o:0;while(--B!==0);B=o,b=B;do $=f[--b]&65535,f[b]=$>=o?$-o:0;while(--B!==0);j+=o}if(t.avail_in===0)return;B=t.read_buf(a,g+v,j),v+=B,v>=je&&(E=a[g]&255,E=(E<r-5&&($=r-5);;){if(v<=1){if(Dn(),v===0&&B==mi)return an;if(v===0)break}if(g+=v,v=0,b=u+$,(g===0||g>=b)&&(v=g-b,g=b,mt(!1),t.avail_out===0)||g-u>=o-Vt&&(mt(!1),t.avail_out===0))return an}return mt(B==Bt),t.avail_out===0?B==Bt?To:an:B==Bt?qs:Ys}function on(B){let $=S,b=g,j,re,ae=T;const he=g>o-Vt?g-(o-Vt):0;let qe=k;const be=l,Zn=g+Oa;let jr=a[b+ae-1],fr=a[b+ae];T>=R&&($>>=2),qe>v&&(qe=v);do if(j=B,!(a[j+ae]!=fr||a[j+ae-1]!=jr||a[j]!=a[b]||a[++j]!=a[b+1])){b+=2,j++;do;while(a[++b]==a[++j]&&a[++b]==a[++j]&&a[++b]==a[++j]&&a[++b]==a[++j]&&a[++b]==a[++j]&&a[++b]==a[++j]&&a[++b]==a[++j]&&a[++b]==a[++j]&&bae){if(L=B,ae=re,re>=qe)break;jr=a[b+ae-1],fr=a[b+ae]}}while((B=f[B&be]&65535)>he&&--$!==0);return ae<=v?ae:v}function sn(B){let $=0,b;for(;;){if(v=je&&(E=(E<=je)if(b=Ee(g-L,d-je),v-=d,d<=y&&v>=je){d--;do g++,E=(E<=je&&(E=(E<4096)&&(d=je-1)),T>=je&&d<=T){j=g+v-je,b=Ee(g-1-p,T-je),v-=T-1,T-=2;do++g<=j&&(E=(E<kO||j!=Tc||b<9||b>15||$<0||$>9||ae<0||ae>Ws?gn:(B.dstate=e,s=b,o=1<9||b<0||b>Ws?gn:(hn[N].func!=hn[$].func&&B.total_in!==0&&(j=B.deflate(Id)),N!=$&&(N=$,y=hn[N].max_lazy,R=hn[N].good_length,k=hn[N].nice_length,S=hn[N].max_chain),P=b,j)},e.deflateSetDictionary=function(B,$,b){let j=b,re,ae=0;if(!$||n!=mc)return gn;if(jo-Vt&&(j=o-Vt,ae=b-j),a.set($.subarray(ae,ae+j),0),g=j,u=j,E=a[0]&255,E=(E<Bt||$<0)return gn;if(!B.next_out||!B.next_in&&B.avail_in!==0||n==ho&&$!=Bt)return B.msg=Vs[Zs-gn],gn;if(B.avail_out===0)return B.msg=Vs[Zs-_i],_i;if(t=B,ae=i,i=$,n==mc&&(j=Tc+(s-8<<4)<<8,re=(N-1&255)>>1,re>3&&(re=3),j|=re<<6,g!==0&&(j|=UO),j+=31-j%31,n=Xs,ce(j)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return i=-1,Ln}else if(t.avail_in===0&&$<=ae&&$!=Bt)return t.msg=Vs[Zs-_i],_i;if(n==ho&&t.avail_in!==0)return B.msg=Vs[Zs-_i],_i;if(t.avail_in!==0||v!==0||$!=mi&&n!=ho){switch(he=-1,hn[N].func){case tE:he=Wn($);break;case La:he=sn($);break;case Wr:he=U($);break}if((he==To||he==qs)&&(n=ho),he==an||he==To)return t.avail_out===0&&(i=-1),Ln;if(he==Ys){if($==Id)_e();else if(et(0,0,!1),$==IO)for(b=0;bn&&(i=n),i===0?0:(r.avail_in-=i,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),t),r.next_in_index+=i,r.total_in+=i,i)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function jO(e){const t=this,n=new nE,r=HO(e&&e.chunkSize?e.chunkSize:64*1024),i=mi,o=new Uint8Array(r);let s=e?e.level:el;typeof s>"u"&&(s=el),n.deflateInit(s),n.next_out=o,t.append=function(l,a){let c,f,_=0,E=0,O=0;const w=[];if(l.length){n.next_in_index=0,n.next_in=l,n.avail_in=l.length;do{if(n.next_out_index=0,n.avail_out=r,c=n.deflate(i),c!=Ln)throw new Error("deflating: "+n.msg);n.next_out_index&&(n.next_out_index==r?w.push(new Uint8Array(o)):w.push(o.subarray(0,n.next_out_index))),O+=n.next_out_index,a&&n.next_in_index>0&&n.next_in_index!=_&&(a(n.next_in_index),_=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return w.length>1?(f=new Uint8Array(O),w.forEach(function(h){f.set(h,E),E+=h.length})):f=w[0]?new Uint8Array(w[0]):new Uint8Array,f}},t.flush=function(){let l,a,c=0,f=0;const _=[];do{if(n.next_out_index=0,n.avail_out=r,l=n.deflate(Bt),l!=eE&&l!=Ln)throw new Error("deflating: "+n.msg);r-n.avail_out>0&&_.push(o.slice(0,n.next_out_index)),f+=n.next_out_index}while(n.avail_in>0||n.avail_out===0);return n.deflateEnd(),a=new Uint8Array(f),_.forEach(function(E){a.set(E,c),c+=E.length}),a}}function HO(e){return e+5*(Math.floor(e/16383)+1)}const GO=15,xe=0,rr=1,zO=2,Ct=-2,Me=-3,Pd=-4,ir=-5,qt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],rE=1440,KO=0,WO=4,ZO=9,VO=5,YO=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],qO=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],XO=[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],QO=[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,112,112],JO=[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],eA=[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],Er=15;function Ru(){const e=this;let t,n,r,i,o,s;function l(c,f,_,E,O,w,h,m,u,d,p){let A,g,L,v,T,S,y,N,P,R,k,F,z,X,I;R=0,T=_;do r[c[f+R]]++,R++,T--;while(T!==0);if(r[0]==_)return h[0]=-1,m[0]=0,xe;for(N=m[0],S=1;S<=Er&&r[S]===0;S++);for(y=S,NT&&(N=T),m[0]=N,X=1<F+N;){if(v++,F+=N,I=L-F,I=I>N?N:I,(g=1<<(S=y-F))>A+1&&(g-=A+1,z=y,SrE)return Me;o[v]=k=d[0],d[0]+=I,v!==0?(s[v]=T,i[0]=S,i[1]=N,S=T>>>F-N,i[2]=k-o[v-1]-S,u.set(i,(o[v-1]+S)*3)):h[0]=k}for(i[1]=y-F,R>=_?i[0]=192:p[R]>>F;S>>=1)T^=S;for(T^=S,P=(1<257?(d==Me?u.msg="oversubscribed distance tree":d==ir?(u.msg="incomplete distance tree",d=Me):d!=Pd&&(u.msg="empty distance tree with lengths",d=Me),d):xe)}}Ru.inflate_trees_fixed=function(e,t,n,r){return e[0]=ZO,t[0]=VO,n[0]=YO,r[0]=qO,xe};const Qs=0,Cd=1,Dd=2,kd=3,bd=4,Ud=5,Fd=6,Lc=7,Md=8,Js=9;function tA(){const e=this;let t,n=0,r,i=0,o=0,s=0,l=0,a=0,c=0,f=0,_,E=0,O,w=0;function h(m,u,d,p,A,g,L,v){let T,S,y,N,P,R,k,F,z,X,I,q,D,le,Q,V;k=v.next_in_index,F=v.avail_in,P=L.bitb,R=L.bitk,z=L.write,X=z>=S[V+1],R-=S[V+1],L.win[z++]=S[V+2],X--;continue}do{if(P>>=S[V+1],R-=S[V+1],N&16){for(N&=15,D=S[V+2]+(P&qt[N]),P>>=N,R-=N;R<15;)F--,P|=(v.read_byte(k++)&255)<>=S[V+1],R-=S[V+1],N&16){for(N&=15;R>=N,R-=N,X-=D,z>=le)Q=z-le,z-Q>0&&2>z-Q?(L.win[z++]=L.win[Q++],L.win[z++]=L.win[Q++],D-=2):(L.win.set(L.win.subarray(Q,Q+2),z),z+=2,Q+=2,D-=2);else{Q=z-le;do Q+=L.end;while(Q<0);if(N=L.end-Q,D>N){if(D-=N,z-Q>0&&N>z-Q)do L.win[z++]=L.win[Q++];while(--N!==0);else L.win.set(L.win.subarray(Q,Q+N),z),z+=N,Q+=N,N=0;Q=0}}if(z-Q>0&&D>z-Q)do L.win[z++]=L.win[Q++];while(--D!==0);else L.win.set(L.win.subarray(Q,Q+D),z),z+=D,Q+=D,D=0;break}else if(!(N&64))T+=S[V+2],T+=P&qt[N],V=(y+T)*3,N=S[V];else return v.msg="invalid distance code",D=v.avail_in-F,D=R>>3>3:D,F+=D,k-=D,R-=D<<3,L.bitb=P,L.bitk=R,v.avail_in=F,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=z,Me;while(!0);break}if(N&64)return N&32?(D=v.avail_in-F,D=R>>3>3:D,F+=D,k-=D,R-=D<<3,L.bitb=P,L.bitk=R,v.avail_in=F,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=z,rr):(v.msg="invalid literal/length code",D=v.avail_in-F,D=R>>3>3:D,F+=D,k-=D,R-=D<<3,L.bitb=P,L.bitk=R,v.avail_in=F,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=z,Me);if(T+=S[V+2],T+=P&qt[N],V=(y+T)*3,(N=S[V])===0){P>>=S[V+1],R-=S[V+1],L.win[z++]=S[V+2],X--;break}}while(!0)}while(X>=258&&F>=10);return D=v.avail_in-F,D=R>>3>3:D,F+=D,k-=D,R-=D<<3,L.bitb=P,L.bitk=R,v.avail_in=F,v.total_in+=k-v.next_in_index,v.next_in_index=k,L.write=z,xe}e.init=function(m,u,d,p,A,g){t=Qs,c=m,f=u,_=d,E=p,O=A,w=g,r=null},e.proc=function(m,u,d){let p,A,g,L=0,v=0,T=0,S,y,N,P;for(T=u.next_in_index,S=u.avail_in,L=m.bitb,v=m.bitk,y=m.write,N=y=258&&S>=10&&(m.bitb=L,m.bitk=v,u.avail_in=S,u.total_in+=T-u.next_in_index,u.next_in_index=T,m.write=y,d=h(c,f,_,E,O,w,m,u),T=u.next_in_index,S=u.avail_in,L=m.bitb,v=m.bitk,y=m.write,N=y>>=r[A+1],v-=r[A+1],g=r[A],g===0){s=r[A+2],t=Fd;break}if(g&16){l=g&15,n=r[A+2],t=Dd;break}if(!(g&64)){o=g,i=A/3+r[A+2];break}if(g&32){t=Lc;break}return t=Js,u.msg="invalid literal/length code",d=Me,m.bitb=L,m.bitk=v,u.avail_in=S,u.total_in+=T-u.next_in_index,u.next_in_index=T,m.write=y,m.inflate_flush(u,d);case Dd:for(p=l;v>=p,v-=p,o=f,r=O,i=w,t=kd;case kd:for(p=o;v>=r[A+1],v-=r[A+1],g=r[A],g&16){l=g&15,a=r[A+2],t=bd;break}if(!(g&64)){o=g,i=A/3+r[A+2];break}return t=Js,u.msg="invalid distance code",d=Me,m.bitb=L,m.bitk=v,u.avail_in=S,u.total_in+=T-u.next_in_index,u.next_in_index=T,m.write=y,m.inflate_flush(u,d);case bd:for(p=l;v>=p,v-=p,t=Ud;case Ud:for(P=y-a;P<0;)P+=m.end;for(;n!==0;){if(N===0&&(y==m.end&&m.read!==0&&(y=0,N=y7&&(v-=8,S++,T--),m.write=y,d=m.inflate_flush(u,d),y=m.write,N=yh.avail_out&&(u=h.avail_out),u!==0&&m==ir&&(m=xe),h.avail_out-=u,h.total_out+=u,h.next_out.set(n.win.subarray(p,p+u),d),d+=u,p+=u,p==n.end&&(p=0,n.write==n.end&&(n.write=0),u=n.write-p,u>h.avail_out&&(u=h.avail_out),u!==0&&m==ir&&(m=xe),h.avail_out-=u,h.total_out+=u,h.next_out.set(n.win.subarray(p,p+u),d),d+=u,p+=u),h.next_out_index=d,n.read=p,m},n.proc=function(h,m){let u,d,p,A,g,L,v,T;for(A=h.next_in_index,g=h.avail_in,d=n.bitb,p=n.bitk,L=n.write,v=L>>1){case 0:d>>>=3,p-=3,u=p&7,d>>>=u,p-=u,r=Oc;break;case 1:S=[],y=[],N=[[]],P=[[]],Ru.inflate_trees_fixed(S,y,N,P),f.init(S[0],y[0],N[0],0,P[0],0),d>>>=3,p-=3,r=ea;break;case 2:d>>>=3,p-=3,r=Hd;break;case 3:return d>>>=3,p-=3,r=Gr,h.msg="invalid block type",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m)}break;case Oc:for(;p<32;){if(g!==0)m=xe;else return n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);g--,d|=(h.read_byte(A++)&255)<>>16&65535)!=(d&65535))return r=Gr,h.msg="invalid stored block lengths",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);i=d&65535,d=p=0,r=i!==0?jd:_!==0?ta:pi;break;case jd:if(g===0||v===0&&(L==n.end&&n.read!==0&&(L=0,v=Lg&&(u=g),u>v&&(u=v),n.win.set(h.read_buf(A,u),L),A+=u,g-=u,L+=u,v-=u,(i-=u)!==0)break;r=_!==0?ta:pi;break;case Hd:for(;p<14;){if(g!==0)m=xe;else return n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);g--,d|=(h.read_byte(A++)&255)<29||(u>>5&31)>29)return r=Gr,h.msg="too many length or distance symbols",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);if(u=258+(u&31)+(u>>5&31),!l||l.length>>=14,p-=14,s=0,r=Gd;case Gd:for(;s<4+(o>>>10);){for(;p<3;){if(g!==0)m=xe;else return n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);g--,d|=(h.read_byte(A++)&255)<>>=3,p-=3}for(;s<19;)l[$d[s++]]=0;if(a[0]=7,u=w.inflate_trees_bits(l,a,c,E,h),u!=xe)return m=u,m==Me&&(l=null,r=Gr),n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);s=0,r=zd;case zd:for(;u=o,!(s>=258+(u&31)+(u>>5&31));){let X,I;for(u=a[0];p>>=u,p-=u,l[s++]=I;else{for(T=I==18?7:I-14,X=I==18?11:3;p>>=u,p-=u,X+=d&qt[T],d>>>=T,p-=T,T=s,u=o,T+X>258+(u&31)+(u>>5&31)||I==16&&T<1)return l=null,r=Gr,h.msg="invalid bit length repeat",m=Me,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);I=I==16?l[T-1]:0;do l[T++]=I;while(--X!==0);s=T}}if(c[0]=-1,R=[],k=[],F=[],z=[],R[0]=9,k[0]=6,u=o,u=w.inflate_trees_dynamic(257+(u&31),1+(u>>5&31),l,R,k,F,z,E,h),u!=xe)return u==Me&&(l=null,r=Gr),m=u,n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,n.inflate_flush(h,m);f.init(R[0],k[0],E,F[0],E,z[0]),r=ea;case ea:if(n.bitb=d,n.bitk=p,h.avail_in=g,h.total_in+=A-h.next_in_index,h.next_in_index=A,n.write=L,(m=f.proc(n,h,m))!=rr)return n.inflate_flush(h,m);if(m=xe,f.free(h),A=h.next_in_index,g=h.avail_in,d=n.bitb,p=n.bitk,L=n.write,v=L15?(e.inflateEnd(n),Ct):(e.wbits=r,n.istate.blocks=new nA(n,1<>4)+8>s.wbits){s.mode=mr,n.msg="invalid win size",s.marker=5;break}s.mode=Wd;case Wd:if(n.avail_in===0)return i;if(i=r,n.avail_in--,n.total_in++,o=n.read_byte(n.next_in_index++)&255,((s.method<<8)+o)%31!==0){s.mode=mr,n.msg="incorrect header check",s.marker=5;break}if(!(o&rA)){s.mode=Lo;break}s.mode=Zd;case Zd:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,s.need=(n.read_byte(n.next_in_index++)&255)<<24&4278190080,s.mode=Vd;case Vd:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,s.need+=(n.read_byte(n.next_in_index++)&255)<<16&16711680,s.mode=Yd;case Yd:if(n.avail_in===0)return i;i=r,n.avail_in--,n.total_in++,s.need+=(n.read_byte(n.next_in_index++)&255)<<8&65280,s.mode=qd;case qd:return n.avail_in===0?i:(i=r,n.avail_in--,n.total_in++,s.need+=n.read_byte(n.next_in_index++)&255,s.mode=Ac,zO);case Ac:return s.mode=mr,n.msg="need dictionary",s.marker=0,Ct;case Lo:if(i=s.blocks.proc(n,i),i==Me){s.mode=mr,s.marker=0;break}if(i==xe&&(i=r),i!=rr)return i;i=r,s.blocks.reset(n,s.was),s.mode=Xd;case Xd:return n.avail_in=0,rr;case mr:return Me;default:return Ct}},e.inflateSetDictionary=function(n,r,i){let o=0,s=i;if(!n||!n.istate||n.istate.mode!=Ac)return Ct;const l=n.istate;return s>=1<0&&n.next_in_index!=E&&(a(n.next_in_index),E=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return c.length>1?(_=new Uint8Array(w),c.forEach(function(h){_.set(h,O),O+=h.length})):_=c[0]?new Uint8Array(c[0]):new Uint8Array,_}},t.flush=function(){n.inflateEnd()}}const Je=4294967295,Ye=65535,Bu=8,oE=0,sE=99,aE=67324752,q0=134695760,cA=q0,Pu=33639248,lE=101010256,Cu=101075792,cE=117853008,un=22,Uo=20,Fo=56,uA=un+Uo+Fo,uE=1,fE=39169,dE=10,_E=1,X0=21589,fA=28789,dA=25461,pE=6534,Du=1,_A=6,ku=8,bu=2048,Uu=16,pA=20,Qd=45,Jd=51,Aa="/",e_=new Date(2107,11,31),t_=new Date(1980,0,1),Ie=void 0,br="undefined",hs="function";class n_{constructor(t){return class extends TransformStream{constructor(n,r){const i=new t(r);super({transform(o,s){s.enqueue(i.append(o))},flush(o){const s=i.flush();s&&o.enqueue(s)}})}}}}const EA=64;let EE=2;try{typeof navigator!=br&&navigator.hardwareConcurrency&&(EE=navigator.hardwareConcurrency)}catch{}const mA={chunkSize:512*1024,maxWorkers:EE,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:Ie,CompressionStreamNative:typeof CompressionStream!=br&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=br&&DecompressionStream},Ar=Object.assign({},mA);function Q0(){return Ar}function mE(e){return Math.max(e.chunkSize,EA)}function Il(e){const{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:o,useWebWorkers:s,Deflate:l,Inflate:a,CompressionStream:c,DecompressionStream:f,workerScripts:_}=e;if(Tr("baseURL",t),Tr("chunkSize",n),Tr("maxWorkers",r),Tr("terminateWorkerTimeout",i),Tr("useCompressionStream",o),Tr("useWebWorkers",s),l&&(Ar.CompressionStream=new n_(l)),a&&(Ar.DecompressionStream=new n_(a)),Tr("CompressionStream",c),Tr("DecompressionStream",f),_!==Ie){const{deflate:E,inflate:O}=_;if((E||O)&&(Ar.workerScripts||(Ar.workerScripts={})),E){if(!Array.isArray(E))throw new Error("workerScripts.deflate must be an array");Ar.workerScripts.deflate=E}if(O){if(!Array.isArray(O))throw new Error("workerScripts.inflate must be an array");Ar.workerScripts.inflate=O}}}function Tr(e,t){t!==Ie&&(Ar[e]=t)}const gc={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t of Object.keys(gc))for(const n of Object.keys(gc[t])){const r=gc[t][n];if(typeof r=="string")e[r]=t+"/"+n;else for(let i=0;i>>1^3988292384:t=t>>>1;TE[e]=t}class tl{constructor(t){this.crc=t||-1}append(t){let n=this.crc|0;for(let r=0,i=t.length|0;r>>8^TE[(n^t[r])&255];this.crc=n}get(){return~this.crc}}class hE extends TransformStream{constructor(){let t;const n=new tl;super({transform(r,i){n.append(r),i.enqueue(r)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,n.get()),t.value=r}}),t=this}}function ga(e){if(typeof TextEncoder==br){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n0&&t&&(e[n-1]=wt.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial(e,t,n){return e===32?t:(n?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,n,r){for(r===void 0&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(t===0)return r.concat(e);for(let s=0;s>>t),n=e[s]<<32-t;const i=e.length?e[e.length-1]:0,o=wt.getPartial(i);return r.push(wt.partial(t+o&31,t+o>32?n:r.pop(),1)),r}},nl={bytes:{fromBits(e){const n=wt.bitLength(e)/8,r=new Uint8Array(n);let i;for(let o=0;o>>24,i<<=8;return r},toBits(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(n);let s=0;for(let l=t.blockSize+r-(t.blockSize+r&t.blockSize-1);l<=i;l+=t.blockSize)t._block(o.subarray(16*s,16*(s+1))),s+=1;return n.splice(0,16*s),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=wt.concat(t,[wt.partial(1,1)]);for(let r=t.length+2;r&15;r++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){if(e<=19)return t&n|~t&r;if(e<=39)return t^n^r;if(e<=59)return t&n|t&r|n&r;if(e<=79)return t^n^r}_S(e,t){return t<>>32-e}_block(e){const t=this,n=t._h,r=Array(80);for(let c=0;c<16;c++)r[c]=e[c];let i=n[0],o=n[1],s=n[2],l=n[3],a=n[4];for(let c=0;c<=79;c++){c>=16&&(r[c]=t._S(1,r[c-3]^r[c-8]^r[c-14]^r[c-16]));const f=t._S(5,i)+t._f(c,o,s,l)+a+r[c]+t._key[Math.floor(c/20)]|0;a=l,l=s,s=t._S(30,o),o=i,i=f}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+l|0,n[4]=n[4]+a|0}};const OE={};OE.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let o,s,l,a=1;if(i!==4&&i!==6&&i!==8)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),l=[]],o=i;o<4*i+28;o++){let c=s[o-1];(o%i===0||i===8&&o%i===4)&&(c=n[c>>>24]<<24^n[c>>16&255]<<16^n[c>>8&255]<<8^n[c&255],o%i===0&&(c=c<<8^c>>>24^a<<24,a=a<<1^(a>>7)*283)),s[o]=s[o-i]^c}for(let c=0;o;c++,o--){const f=s[c&3?o:o-4];o<=4||c<4?l[c]=f:l[c]=r[0][n[f>>>24]]^r[1][n[f>>16&255]]^r[2][n[f>>8&255]]^r[3][n[f&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],o=[];let s,l,a,c;for(let f=0;f<256;f++)o[(i[f]=f<<1^(f>>7)*283)^f]=f;for(let f=s=0;!n[f];f^=l||1,s=o[s]||1){let _=s^s<<1^s<<2^s<<3^s<<4;_=_>>8^_&255^99,n[f]=_,r[_]=f,c=i[a=i[l=i[f]]];let E=c*16843009^a*65537^l*257^f*16843008,O=i[_]*257^_*16843008;for(let w=0;w<4;w++)e[w][f]=O=O<<24^O>>>8,t[w][_]=E=E<<24^E>>>8}for(let f=0;f<5;f++)e[f]=e[f].slice(0),t[f]=t[f].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],o=this._tables[t],s=o[0],l=o[1],a=o[2],c=o[3],f=o[4];let _=e[0]^n[0],E=e[t?3:1]^n[1],O=e[2]^n[2],w=e[t?1:3]^n[3],h=4,m,u,d;for(let p=0;p>>24]^l[E>>16&255]^a[O>>8&255]^c[w&255]^n[h],u=s[E>>>24]^l[O>>16&255]^a[w>>8&255]^c[_&255]^n[h+1],d=s[O>>>24]^l[w>>16&255]^a[_>>8&255]^c[E&255]^n[h+2],w=s[w>>>24]^l[_>>16&255]^a[E>>8&255]^c[O&255]^n[h+3],h+=4,_=m,E=u,O=d;for(let p=0;p<4;p++)i[t?3&-p:p]=f[_>>>24]<<24^f[E>>16&255]<<16^f[O>>8&255]<<8^f[w&255]^n[h++],m=_,_=E,E=O,O=w,w=m;return i}};const TA={getRandomValues(e){const t=new Uint32Array(e.buffer),n=r=>{let i=987654321;const o=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&o,r=18e3*(r&65535)+(r>>16)&o,(((i<<16)+r&o)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r>24&255)===255){let t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=wt.bitLength(t);for(let o=0;o>5)+1<<2;let o,s,l,a,c;const f=new ArrayBuffer(i),_=new DataView(f);let E=0;const O=wt;for(t=nl.bytes.toBits(t),c=1;E<(i||1);c++){for(o=s=e.encrypt(O.concat(t,[c])),l=1;li&&(e=new n().update(e).finalize());for(let o=0;othis.resolveReady=s),password:NE(t,n),signed:r,strength:i-1,pending:new Uint8Array})},async transform(s,l){const a=this,{password:c,strength:f,resolveReady:_,ready:E}=a;c?(await RA(a,f,c,fn(s,0,os[f]+2)),s=fn(s,os[f]+2),o?l.error(new Error(ef)):_()):await E;const O=new Uint8Array(s.length-hr-(s.length-hr)%Ii);l.enqueue(yE(a,s,O,0,hr,!0))},async flush(s){const{signed:l,ctr:a,hmac:c,pending:f,ready:_}=this;if(c&&a){await _;const E=fn(f,0,f.length-hr),O=fn(f,f.length-hr);let w=new Uint8Array;if(E.length){const h=as(zn,E);c.update(h);const m=a.update(h);w=ss(zn,m)}if(l){const h=fn(ss(zn,c.digest()),0,hr);for(let m=0;mthis.resolveReady=o),password:NE(t,n),strength:r-1,pending:new Uint8Array})},async transform(o,s){const l=this,{password:a,strength:c,resolveReady:f,ready:_}=l;let E=new Uint8Array;a?(E=await BA(l,c,a),f()):await _;const O=new Uint8Array(E.length+o.length-o.length%Ii);O.set(E,0),s.enqueue(yE(l,o,O,E.length,0))},async flush(o){const{ctr:s,hmac:l,pending:a,ready:c}=this;if(l&&s){await c;let f=new Uint8Array;if(a.length){const _=s.update(as(zn,a));l.update(_),f=ss(zn,_)}i.signature=ss(zn,l.digest()).slice(0,hr),o.enqueue(tf(f,i.signature))}}}),i=this}}function yE(e,t,n,r,i,o){const{ctr:s,hmac:l,pending:a}=e,c=t.length-i;a.length&&(t=tf(a,t),n=DA(n,c-c%Ii));let f;for(f=0;f<=c-Ii;f+=Ii){const _=as(zn,fn(t,f,f+Ii));o&&l.update(_);const E=s.update(_);o||l.update(E),n.set(ss(zn,E),f+r)}return e.pending=fn(t,f),n}async function RA(e,t,n,r){const i=await SE(e,t,n,fn(r,0,os[t])),o=fn(r,os[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new Error(J0)}async function BA(e,t,n){const r=vE(new Uint8Array(os[t])),i=await SE(e,t,n,r);return tf(r,i)}async function SE(e,t,n,r){e.password=null;const i=await PA(LA,n,gA,!1,vA),o=await CA(Object.assign({salt:r},Fu),i,8*(Oo[t]*2+2)),s=new Uint8Array(o),l=as(zn,fn(s,0,Oo[t])),a=as(zn,fn(s,Oo[t],Oo[t]*2)),c=fn(s,Oo[t]*2);return Object.assign(e,{keys:{key:l,authentication:a,passwordVerification:c},ctr:new yA(new xA(l),Array.from(wA)),hmac:new SA(a)}),c}async function PA(e,t,n,r,i){if(r_)try{return await Ls.importKey(e,t,n,r,i)}catch{return r_=!1,oi.importKey(t)}else return oi.importKey(t)}async function CA(e,t,n){if(i_)try{return await Ls.deriveBits(e,t,n)}catch{return i_=!1,oi.pbkdf2(t,e.salt,Fu.iterations,n)}else return oi.pbkdf2(t,e.salt,Fu.iterations,n)}function NE(e,t){return t===Ie?ga(e):t}function tf(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function DA(e,t){if(t&&t>e.length){const n=e;e=new Uint8Array(t),e.set(n,0)}return e}function fn(e,t,n){return e.subarray(t,n)}function ss(e,t){return e.fromBits(t)}function as(e,t){return e.toBits(t)}const Ui=12;class kA extends TransformStream{constructor({password:t,passwordVerification:n,checkPasswordOnly:r}){super({start(){Object.assign(this,{password:t,passwordVerification:n}),IE(this,t)},transform(i,o){const s=this;if(s.password){const l=o_(s,i.subarray(0,Ui));if(s.password=null,l[Ui-1]!=s.passwordVerification)throw new Error(J0);i=i.subarray(Ui)}r?o.error(new Error(ef)):o.enqueue(o_(s,i))}})}}class bA extends TransformStream{constructor({password:t,passwordVerification:n}){super({start(){Object.assign(this,{password:t,passwordVerification:n}),IE(this,t)},transform(r,i){const o=this;let s,l;if(o.password){o.password=null;const a=vE(new Uint8Array(Ui));a[Ui-1]=o.passwordVerification,s=new Uint8Array(r.length+a.length),s.set(s_(o,a),0),l=Ui}else s=new Uint8Array(r.length),l=0;s.set(s_(o,r),l),i.enqueue(s)}})}}function o_(e,t){const n=new Uint8Array(t.length);for(let r=0;r>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function RE(e){const t=e.keys[2]|2;return BE(Math.imul(t,t^1)>>>8)}function BE(e){return e&255}function a_(e){return e&4294967295}const l_="deflate-raw";class UA extends TransformStream{constructor(t,{chunkSize:n,CompressionStream:r,CompressionStreamNative:i}){super({});const{compressed:o,encrypted:s,useCompressionStream:l,zipCrypto:a,signed:c,level:f}=t,_=this;let E,O,w=PE(super.readable);(!s||a)&&c&&(E=new hE,w=Kn(w,E)),o&&(w=DE(w,l,{level:f,chunkSize:n},i,r)),s&&(a?w=Kn(w,new bA(t)):(O=new IA(t),w=Kn(w,O))),CE(_,w,()=>{let h;s&&!a&&(h=O.signature),(!s||a)&&c&&(h=new DataView(E.value.buffer).getUint32(0)),_.signature=h})}}class FA extends TransformStream{constructor(t,{chunkSize:n,DecompressionStream:r,DecompressionStreamNative:i}){super({});const{zipCrypto:o,encrypted:s,signed:l,signature:a,compressed:c,useCompressionStream:f}=t;let _,E,O=PE(super.readable);s&&(o?O=Kn(O,new kA(t)):(E=new NA(t),O=Kn(O,E))),c&&(O=DE(O,f,{chunkSize:n},i,r)),(!s||o)&&l&&(_=new hE,O=Kn(O,_)),CE(this,O,()=>{if((!s||o)&&l){const w=new DataView(_.value.buffer);if(a!=w.getUint32(0,!1))throw new Error(gE)}})}}function PE(e){return Kn(e,new TransformStream({transform(t,n){t&&t.length&&n.enqueue(t)}}))}function CE(e,t,n){t=Kn(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get(){return t}})}function DE(e,t,n,r,i){try{const o=t&&r?r:i;e=Kn(e,new o(l_,n))}catch{if(t)try{e=Kn(e,new i(l_,n))}catch{return e}else return e}return e}function Kn(e,t){return e.pipeThrough(t)}const MA="message",$A="start",jA="pull",c_="data",HA="ack",u_="close",kE="deflate",bE="inflate";class GA extends TransformStream{constructor(t,n){super({});const r=this,{codecType:i}=t;let o;i.startsWith(kE)?o=UA:i.startsWith(bE)&&(o=FA);let s=0,l=0;const a=new o(t,n),c=super.readable,f=new TransformStream({transform(E,O){E&&E.length&&(l+=E.length,O.enqueue(E))},flush(){Object.assign(r,{inputSize:l})}}),_=new TransformStream({transform(E,O){E&&E.length&&(s+=E.length,O.enqueue(E))},flush(){const{signature:E}=a;Object.assign(r,{signature:E,outputSize:s,inputSize:l})}});Object.defineProperty(r,"readable",{get(){return c.pipeThrough(f).pipeThrough(a).pipeThrough(_)}})}}class zA extends TransformStream{constructor(t){let n;super({transform:r,flush(i){n&&n.length&&i.enqueue(n)}});function r(i,o){if(n){const s=new Uint8Array(n.length+i.length);s.set(n),s.set(i,n.length),i=s,n=null}i.length>t?(o.enqueue(i.slice(0,t)),r(i.slice(t),o)):n=i}}}let UE=typeof Worker!=br;class vc{constructor(t,{readable:n,writable:r},{options:i,config:o,streamOptions:s,useWebWorkers:l,transferStreams:a,scripts:c},f){const{signal:_}=s;return Object.assign(t,{busy:!0,readable:n.pipeThrough(new zA(o.chunkSize)).pipeThrough(new KA(n,s),{signal:_}),writable:r,options:Object.assign({},i),scripts:c,transferStreams:a,terminate(){return new Promise(E=>{const{worker:O,busy:w}=t;O?(w?t.resolveTerminated=E:(O.terminate(),E()),t.interface=null):E()})},onTaskFinished(){const{resolveTerminated:E}=t;E&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),E()),t.busy=!1,f(t)}}),(l&&UE?WA:FE)(t,o)}}class KA extends TransformStream{constructor(t,{onstart:n,onprogress:r,size:i,onend:o}){let s=0;super({async start(){n&&await wc(n,i)},async transform(l,a){s+=l.length,r&&await wc(r,s,i),a.enqueue(l)},async flush(){t.size=s,o&&await wc(o,s)}})}}async function wc(e,...t){try{await e(...t)}catch{}}function FE(e,t){return{run:()=>ZA(e,t)}}function WA(e,t){const{baseURL:n,chunkSize:r}=t;if(!e.interface){let i;try{i=qA(e.scripts[0],n,e)}catch{return UE=!1,FE(e,t)}Object.assign(e,{worker:i,interface:{run:()=>VA(e,{chunkSize:r})}})}return e.interface}async function ZA({options:e,readable:t,writable:n,onTaskFinished:r},i){try{const o=new GA(e,i);await t.pipeThrough(o).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:s,inputSize:l,outputSize:a}=o;return{signature:s,inputSize:l,outputSize:a}}finally{r()}}async function VA(e,t){let n,r;const i=new Promise((E,O)=>{n=E,r=O});Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});const{readable:o,options:s,scripts:l}=e,{writable:a,closed:c}=YA(e.writable),f=va({type:$A,scripts:l.slice(1),options:s,config:t,readable:o,writable:a},e);f||Object.assign(e,{reader:o.getReader(),writer:a.getWriter()});const _=await i;return f||await a.getWriter().close(),await c,_}function YA(e){let t;const n=new Promise(i=>t=i);return{writable:new WritableStream({async write(i){const o=e.getWriter();await o.ready,await o.write(i),o.releaseLock()},close(){t()},abort(i){return e.getWriter().abort(i)}}),closed:n}}let f_=!0,d_=!0;function qA(e,t,n){const r={type:"module"};let i,o;typeof e==hs&&(e=e());try{i=new URL(e,t)}catch{i=e}if(f_)try{o=new Worker(i)}catch{f_=!1,o=new Worker(i,r)}else o=new Worker(i,r);return o.addEventListener(MA,s=>XA(s,n)),o}function va(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:o,readable:s,writable:l}=e;const a=[];if(o&&(o.byteLength!u.busy);if(m)return p_(m),new vc(m,e,t,h);if(Zr.lengthxc.push({resolve:u,stream:e,workerOptions:t}))}function h(m){if(xc.length){const[{resolve:u,stream:d,workerOptions:p}]=xc.splice(0,1);u(new vc(m,d,p,h))}else m.worker?(p_(m),QA(m,t)):Zr=Zr.filter(u=>u!=m)}}function QA(e,t){const{config:n}=t,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Zr=Zr.filter(i=>i!=e);try{await e.terminate()}catch{}},r))}function p_(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function JA(e){const t=()=>URL.createObjectURL(new Blob([`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;inew V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;ad&&fs&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=15,Te=573,We=-2;function je(t){return He(t.map((([t,n])=>new e(t).fill(n,0,t))))}function He(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?He(n):n)),[])}const Le=[0,1,2,3].concat(...je([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=Te,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;Oe>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;Te>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;Oe>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function qe(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}Fe.ke=[0,1,2,3,4,5,6,7].concat(...je([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Fe.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Fe.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Fe.ze=e=>256>e?Le[e]:Le[256+(e>>>7)],Fe.Ce=[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],Fe.xe=[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],Fe.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fe._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ge=je([[144,8],[112,9],[24,7],[8,8]]);qe.Ie=He([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ge[t]])));const Je=je([[30,5]]);function Qe(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}qe.Ee=He([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Je[t]]))),qe.Me=new qe(qe.Ie,Fe.Ce,257,286,Oe),qe.Ue=new qe(qe.Ee,Fe.xe,0,30,Oe),qe.Ke=new qe(null,Fe.Ae,0,19,7);const Xe=[new Qe(0,0,0,0,0),new Qe(4,4,8,4,1),new Qe(4,5,16,8,1),new Qe(4,6,32,32,1),new Qe(4,4,16,16,2),new Qe(8,16,32,32,2),new Qe(8,16,128,128,2),new Qe(8,32,128,256,2),new Qe(32,128,258,1024,2),new Qe(32,258,258,4096,2)],Ye=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Ze=113,$e=666,et=262;function tt(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function nt(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new Fe,N=new Fe,O=new Fe;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++ii?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<>>16-F,F+=r-16):(L|=e<=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Fe.ke[n]+256+1)]++,M[2*Fe.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Fe.xe[o]);if(s>>>=3,jc);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*Fe._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(qe.Ie,qe.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*Fe._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-et){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-et?C-(f-et):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?We:(t.qe=e,a=x,f=1<(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Ze,c=0,K.se=E,K.oe=qe.Me,N.se=M,N.oe=qe.Ue,O.se=U,O.oe=qe.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Ze&&n!=$e?We:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Ze?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?We:(Xe[D].Be!=Xe[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return We;if(3>i)return 0;for(i>f-et&&(i=f-et,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<=s;s++)p=(p<{let o,w,m,I,R;if(i>4||0>i)return We;if(!r.et||!r.tt&&0!==r.je||n==$e&&4!=i)return r.Fe=Ye[4],We;if(0===r.nt)return r.Fe=Ye[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Ze,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Ye[7],-5;if(n==$e&&0!==t.je)return r.Fe=Ye[7],-5;if(0!==t.je||0!==A||0!=i&&n!=$e){switch(R=-1,Xe[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-et&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<f-et||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<{let n,r,s=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<_&&f-et>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<1+H+10-F&&(X(2,3),Y(256,qe.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function rt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function st(e){const t=new rt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}rt.prototype={Le(e,t){const n=this;return n.qe=new nt,t||(t=Oe),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):We},Xe(){const e=this;if(!e.qe)return We;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):We},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):We},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const it=0,ot=1,ct=-2,ft=-3,at=-4,lt=-5,ut=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=1440,ht=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],dt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],pt=[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],yt=[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,112,112],mt=[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],bt=[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],gt=15;function kt(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,it;for(S=u[0],k=1;gt>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=gt;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<k;k++,I<<=1)if(0>(I-=n[k]))return ft;if(0>(I-=n[g]))return ft;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++kn[++_];)y-=n[_];if(P=1<wt)return ft;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<>>=1)g^=k;for(g^=k,z=(1<c;c++)t[c]=0;for(c=0;gt+1>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,gt),0),i.set(n.subarray(0,gt+1),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==ft?f.Fe="oversubscribed dynamic bit lengths tree":a!=lt&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=ft),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,pt,yt,a,i,u,e,t),h!=it||0===i[0]?(h==ft?w.Fe="oversubscribed literal/length tree":h!=at&&(w.Fe="incomplete literal/length tree",h=ft),h):(c(288),h=o(s,n,r,0,mt,bt,l,f,u,e,t),h!=it||0===f[0]&&n>257?(h==ft?w.Fe="oversubscribed distance tree":h==lt?(w.Fe="incomplete distance tree",h=ft):h!=at&&(w.Fe="empty distance tree with lengths",h=ft),h):it)}}kt.ct=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ht,r[0]=dt,it);const vt=0,St=1,zt=2,Ct=3,xt=4,At=5,_t=6,It=7,Pt=8,Dt=9;function Vt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ft,h=o.lt,y=o.write,m=yh;)p--,w|=(255&c.ut(d++))<>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ut[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ut(d++))<>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ut(d++))<>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--u);else o.wt.set(o.wt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.wt[y++]=o.wt[S++],o.wt[y++]=o.wt[S++],k-=2):(o.wt.set(o.wt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--k);else o.wt.set(o.wt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft;f+=a[z+2],f+=w&ut[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ot):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft);if(f+=a[z+2],f+=w&ut[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,it}e.init=(e,i,o,c,f,a)=>{t=vt,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ht=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S=258&&v>=10&&(e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=SA;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=_t;break}if(16&k){a=15&k,i=n[g+2],t=zt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=It;break}return t=Dt,y.Fe="invalid literal/length code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case zt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=b,A-=b,c=w,n=s,o=d,t=Ct;case Ct:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=xt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=Dt,y.Fe="invalid distance code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case xt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<>=b,A-=b,t=At;case At:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S7&&(A-=8,v++,_--),e.write=S,m=e.dt(y,m),S=e.write,z=S{}}const Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=0,Et=1,Mt=2,Ut=3,Kt=4,Nt=5,Ot=6,Tt=7,Wt=8,jt=9;function Ht(e,t){const n=this;let r,s=Bt,o=0,c=0,a=0;const l=[0],u=[0],w=new Vt;let h=0,d=new f(3*wt);const p=new kt;n.lt=0,n.ft=0,n.wt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),s==Ot&&w.yt(e),s=Bt,n.lt=0,n.ft=0,n.read=n.write=0},n.reset(e,null),n.dt=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.ht=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=gy;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=Et;break;case 1:S=[],z=[],C=[[]],x=[[]],kt.ct(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=Ot;break;case 2:f>>>=3,y-=3,s=Ut;break;case 3:return f>>>=3,y-=3,s=jt,e.Fe="invalid block type",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}break;case Et:for(;32>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>16&65535)!=(65535&f))return s=jt,e.Fe="invalid stored block lengths",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);o=65535&f,f=y=0,s=0!==o?Mt:0!==h?Tt:Bt;break;case Mt:if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=gb&&(i=b),i>k&&(i=k),n.wt.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?Tt:Bt;break;case Ut:for(;14>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<29||(i>>5&31)>29)return s=jt,e.Fe="too many length or distance symbols",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.lengthv;v++)r[v]=0;f>>>=14,y-=14,a=0,s=Kt;case Kt:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>=3,y-=3}for(;19>a;)r[Rt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),i!=it)return(t=i)==ft&&(r=null,s=jt),n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);a=0,s=Nt;case Nt:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<>>=i,y-=i,o+=f&ut[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=jt,e.Fe="invalid bit length repeat",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),i!=it)return i==ft&&(r=null,s=jt),t=i,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=Ot;case Ot:if(n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,(t=w.ht(n,e,t))!=ot)return n.dt(e,t);if(t=it,w.yt(e),m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g{n.reset(e,null),n.wt=null,d=null},n.bt=(e,t,r)=>{n.wt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>s==Et?1:0}const Lt=13,Ft=[0,0,255,255];function qt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),it):ct}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.yt(t),e.vt=null,it),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),ct):(e.Ct=r,n.kt.vt=new Ht(n,1<{let n,r;if(!e||!e.kt||!e.tt)return ct;const s=e.kt;for(t=4==t?lt:it,n=lt;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.ut(e.rt++)))){s.mode=Lt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=Lt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.ut(e.rt++),((s.method<<8)+r)%31!=0){s.mode=Lt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.ut(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.ut(e.rt++),s.mode=6,2);case 6:return s.mode=Lt,e.Fe="need dictionary",s.marker=0,ct;case 7:if(n=s.vt.ht(e,n),n==ft){s.mode=Lt,s.marker=0;break}if(n==it&&(n=t),n!=ot)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,ot;case Lt:return ft;default:return ct}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return ct;const i=e.kt;return s<1<{let n,r,s,i,o;if(!e||!e.kt)return ct;const c=e.kt;if(c.mode!=Lt&&(c.mode=Lt,c.marker=0),0===(n=e.je))return lt;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.ut(r)==Ft[s]?s++:s=0!==e.ut(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?ft:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,it)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():ct}function Gt(){}function Jt(e){const t=new Gt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===lt){if(0!==t.je)throw new s("inflating: bad input")}else if(a!==it&&a!==ot)throw new s("inflating: "+t.Fe);if((c||a===ot)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}Gt.prototype={At(e){const t=this;return t.kt=new qt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):ct},xt(){const e=this;if(!e.kt)return ct;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):ct},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):ct},ut(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=st,self.Inflate=Jt}; -`],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}const $E="HTTP error ",Bl="HTTP Range not supported",eg="Writer iterator completed too soon",tg="text/plain",ng="Content-Length",rg="Content-Range",ig="Accept-Ranges",og="Range",sg="Content-Type",ag="HEAD",rf="GET",jE="bytes",lg=64*1024,of="writable";class Pl{constructor(){this.size=0}init(){this.initialized=!0}}class $r extends Pl{get readable(){const t=this,{chunkSize:n=lg}=t,r=new ReadableStream({start(){this.chunkOffset=0},async pull(i){const{offset:o=0,size:s,diskNumberStart:l}=r,{chunkOffset:a}=this;i.enqueue(await Lt(t,o+a,Math.min(n,s-a),l)),a+n>s?i.close():this.chunkOffset+=n}});return r}}class HE extends Pl{constructor(){super();const t=this,n=new WritableStream({write(r){return t.writeUint8Array(r)}});Object.defineProperty(t,of,{get(){return n}})}writeUint8Array(){}}class Mu extends $r{constructor(t){super();let n=t.length;for(;t.charAt(n-1)=="=";)n--;const r=t.indexOf(",")+1;Object.assign(this,{dataURI:t,dataStart:r,size:Math.floor((n-r)*.75)})}readUint8Array(t,n){const{dataStart:r,dataURI:i}=this,o=new Uint8Array(n),s=Math.floor(t/3)*4,l=atob(i.substring(s+r,Math.ceil((t+n)/3)*4+r)),a=t-Math.floor(s/4)*3;for(let c=a;c2?n.data+=btoa(i):n.pending=i}getData(){return this.data+btoa(this.pending)}}class Wi extends $r{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,n){const r=this,i=t+n;let s=await(t||in&&(s=s.slice(t,i)),new Uint8Array(s)}}class Zi extends Pl{constructor(t){super();const n=this,r=new TransformStream,i=[];t&&i.push([sg,t]),Object.defineProperty(n,of,{get(){return r.writable}}),n.blob=new Response(r.readable,{headers:i}).blob()}getData(){return this.blob}}class GE extends Wi{constructor(t){super(new Blob([t],{type:tg}))}}class $u extends Zi{constructor(t){super(t),Object.assign(this,{encoding:t,utf8:!t||t.toLowerCase()=="utf-8"})}async getData(){const{encoding:t,utf8:n}=this,r=await super.getData();if(r.text&&n)return r.text();{const i=new FileReader;return new Promise((o,s)=>{Object.assign(i,{onload:({target:l})=>o(l.result),onerror:()=>s(i.error)}),i.readAsText(r,t)})}}}class cg extends $r{constructor(t,n){super(),zE(this,t,n)}async init(){await KE(this,ju,E_),super.init()}readUint8Array(t,n){return WE(this,t,n,ju,E_)}}class ug extends $r{constructor(t,n){super(),zE(this,t,n)}async init(){await KE(this,Hu,m_),super.init()}readUint8Array(t,n){return WE(this,t,n,Hu,m_)}}function zE(e,t,n){const{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:o,combineSizeEocd:s}=n;n=Object.assign({},n),delete n.preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.combineSizeEocd,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:o,combineSizeEocd:s})}async function KE(e,t,n){const{url:r,preventHeadRequest:i,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:l}=e;if(dg(r)&&(o||s)&&(typeof i>"u"||i)){const a=await t(rf,e,ZE(e,l?-un:void 0));if(!s&&a.headers.get(ig)!=jE)throw new Error(Bl);{l&&(e.eocdCache=new Uint8Array(await a.arrayBuffer()));let c;const f=a.headers.get(rg);if(f){const _=f.trim().split(/\s*\/\s*/);if(_.length){const E=_[1];E&&E!="*"&&(c=Number(E))}}c===Ie?await T_(e,t,n):e.size=c}}else await T_(e,t,n)}async function WE(e,t,n,r,i){const{useRangeHeader:o,forceRangeRequests:s,eocdCache:l,size:a,options:c}=e;if(o||s){if(l&&t==a-un&&n==un)return l;const f=await r(rf,e,ZE(e,t,n));if(f.status!=206)throw new Error(Bl);return new Uint8Array(await f.arrayBuffer())}else{const{data:f}=e;return f||await i(e,c),new Uint8Array(e.data.subarray(t,t+n))}}function ZE(e,t=0,n=1){return Object.assign({},sf(e),{[og]:jE+"="+(t<0?t:t+"-"+(t+n-1))})}function sf({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function E_(e){await VE(e,ju)}async function m_(e){await VE(e,Hu)}async function VE(e,t){const n=await t(rf,e,sf(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function T_(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const i=(await t(ag,e,sf(e))).headers.get(ng);i?e.size=Number(i):await n(e,e.options)}}async function ju(e,{options:t,url:n},r){const i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(i.status<400)return i;throw i.status==416?new Error(Bl):new Error($E+(i.statusText||i.status))}function Hu(e,{url:t},n){return new Promise((r,i)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status<400){const s=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(l=>{const a=l.trim().split(/\s*:\s*/);a[0]=a[0].trim().replace(/^[a-z]|-[a-z]/g,c=>c.toUpperCase()),s.push(a)}),r({status:o.status,arrayBuffer:()=>o.response,headers:new Map(s)})}else i(o.status==416?new Error(Bl):new Error($E+(o.statusText||o.status)))},!1),o.addEventListener("error",s=>i(s.detail?s.detail.error:new Error("Network error")),!1),o.open(e,t),n)for(const s of Object.entries(n))o.setRequestHeader(s[0],s[1]);o.responseType="arraybuffer",o.send()})}class h_ extends $r{constructor(t,n={}){super(),Object.assign(this,{url:t,reader:n.useXHR?new ug(t,n):new cg(t,n)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(t,n){return this.reader.readUint8Array(t,n)}}class Gu extends $r{constructor(t){super(),Object.assign(this,{array:t,size:t.length})}readUint8Array(t,n){return this.array.slice(t,t+n)}}class il extends HE{init(t=0){Object.assign(this,{offset:0,array:new Uint8Array(t)}),super.init()}writeUint8Array(t){const n=this;if(n.offset+t.length>n.array.length){const r=n.array;n.array=new Uint8Array(r.length+t.length),n.array.set(r)}n.array.set(t,n.offset),n.offset+=t.length}getData(){return this.array}}class fg extends $r{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:n}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(n.map(async(r,i)=>{await r.init(),i!=n.length-1&&(t.lastDiskOffset+=r.size),t.size+=r.size})),super.init()}async readUint8Array(t,n,r=0){const i=this,{readers:o}=this;let s,l=r;l==-1&&(l=o.length-1);let a=t;for(;a>=o[l].size;)a-=o[l].size,l++;const c=o[l],f=c.size;if(a+n<=f)s=await Lt(c,a,n);else{const _=f-a;s=new Uint8Array(n),s.set(await Lt(c,a,_)),s.set(await i.readUint8Array(t+_,n-_,r),_)}return i.lastDiskNumber=Math.max(l,i.lastDiskNumber),s}}class L_ extends Pl{constructor(t,n=4294967295){super();const r=this;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:n,availableSize:n});let i,o,s;const l=new WritableStream({async write(f){const{availableSize:_}=r;if(s)f.length>=_?(await a(f.slice(0,_)),await c(),r.diskOffset+=i.size,r.diskNumber++,s=null,await this.write(f.slice(_))):await a(f);else{const{value:E,done:O}=await t.next();if(O&&!E)throw new Error(eg);i=E,i.size=0,i.maxSize&&(r.maxSize=i.maxSize),r.availableSize=r.maxSize,await tn(i),o=E.writable,s=o.getWriter(),await this.write(f)}},async close(){await s.ready,await c()}});Object.defineProperty(r,of,{get(){return l}});async function a(f){const _=f.length;_&&(await s.ready,await s.write(f),i.size+=_,r.size+=_,r.availableSize-=_)}async function c(){o.size=i.size,await s.close()}}}function dg(e){const{baseURL:t}=Q0(),{protocol:n}=new URL(e,t);return n=="http:"||n=="https:"}async function tn(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function YE(e){return Array.isArray(e)&&(e=new fg(e)),e instanceof ReadableStream&&(e={readable:e}),e}function qE(e){e.writable===Ie&&typeof e.next==hs&&(e=new L_(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===Ie&&(t.size=0),e instanceof L_||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Lt(e,t,n,r){return e.readUint8Array(t,n,r)}const XE="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),_g=XE.length==256;function pg(e){if(_g){let t="";for(let n=0;nthis[n]=t[n])}};const yc="File format is not recognized",hg="End of central directory not found",Lg="End of Zip64 central directory locator not found",Og="Central directory header not found",Ag="Local file header not found",gg="Zip64 extra field not found",vg="File contains encrypted entry",wg="Encryption method not supported",O_="Compression method not supported",A_="Split zip file",g_="utf-8",v_="cp437",xg=[[nm,Je],[rm,Je],[im,Je],[zu,Ye]],yg={[Ye]:{getValue:Xe,bytes:4},[Je]:{getValue:xa,bytes:8}};class Sg{constructor(t,n={}){Object.assign(this,{reader:YE(t),options:n,config:Q0()})}async*getEntriesGenerator(t={}){const n=this;let{reader:r}=n;const{config:i}=n;if(await tn(r),(r.size===Ie||!r.readUint8Array)&&(r=new Wi(await new Response(r.readable).blob()),await tn(r)),r.size=r.size&&(m=r.size-a-l-un,a=r.size-l-un),O!=E)throw new Error(A_);if(a<0)throw new Error(yc);let d=0,p=await Lt(r,a,l,w),A=ct(p);if(l){const y=o.offset-l;if(Xe(A,d)!=Pu&&a!=y){const N=a;a=y,m+=a-N,p=await Lt(r,a,l,w),A=ct(p)}}const g=o.offset-a-(r.lastDiskOffset||0);if(l!=g&&g>=0&&(l=g,p=await Lt(r,a,l,w),A=ct(p)),a<0||a>=r.size)throw new Error(yc);const L=Pt(n,t,"filenameEncoding"),v=Pt(n,t,"commentEncoding");for(let y=0;yN.getData(W,ue,ce),d=D;const{onprogress:Y}=t;if(Y)try{await Y(y+1,h,new ls(N))}catch{}yield ue}const T=Pt(n,t,"extractPrependedData"),S=Pt(n,t,"extractAppendedData");return T&&(n.prependedData=u>0?await Lt(r,0,u):new Uint8Array),n.comment=f?await Lt(r,c+un,f):new Uint8Array,S&&(n.appendedData=_>>8&255:E>>>24&255),signature:E,compressed:c!=0,encrypted:g,useWebWorkers:Pt(i,r,"useWebWorkers"),useCompressionStream:Pt(i,r,"useCompressionStream"),transferStreams:Pt(i,r,"transferStreams"),checkPasswordOnly:N},config:f,streamOptions:{signal:y,size:T,onstart:R,onprogress:k,onend:F}};let X=0;try{({outputSize:X}=await ME({readable:S,writable:P},z))}catch(I){if(!N||I.message!=ef)throw I}finally{const I=Pt(i,r,"preventClose");P.size+=X,!I&&!P.locked&&await P.getWriter().close()}return N?Ie:t.getData?t.getData():P}};function cm(e,t,n){const r=e.rawBitFlag=lt(t,n+2),i=(r&Du)==Du,o=Xe(t,n+6);Object.assign(e,{encrypted:i,version:lt(t,n),bitFlag:{level:(r&_A)>>1,dataDescriptor:(r&ku)==ku,languageEncodingFlag:(r&bu)==bu},rawLastModDate:o,lastModDate:Dg(o),filenameLength:lt(t,n+22),extraFieldLength:lt(t,n+24)})}async function um(e,t,n,r,i){const{rawExtraField:o}=t,s=t.extraField=new Map,l=ct(new Uint8Array(o));let a=0;try{for(;at[i]==o);for(let i=0,o=0;i=5&&(o.push(ol),s.push(Ku));let l=1;o.forEach((a,c)=>{if(e.data.length>=l+4){const f=Xe(r,l);t[a]=e[a]=new Date(f*1e3);const _=s[c];e[_]=f}l+=4})}async function Cg(e,t,n,r,i){const o=new Uint8Array(4),s=ct(o);kg(s,0,t);const l=r+i;return await a(r)||await a(Math.min(l,n));async function a(c){const f=n-c,_=await Lt(e,f,c);for(let E=_.length-r;E>=0;E--)if(_[E]==o[0]&&_[E+1]==o[1]&&_[E+2]==o[2]&&_[E+3]==o[3])return{offset:f+E,buffer:_.slice(E,E+r).buffer}}}function Pt(e,t,n){return t[n]===Ie?e.options[n]:t[n]}function Dg(e){const t=(e&4294901760)>>16,n=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(n&63488)>>11,(n&2016)>>5,(n&31)*2,0)}catch{}}function Sc(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function Fi(e,t){return e.getUint8(t)}function lt(e,t){return e.getUint16(t,!0)}function Xe(e,t){return e.getUint32(t,!0)}function xa(e,t){return Number(e.getBigUint64(t,!0))}function kg(e,t,n){e.setUint32(t,n,!0)}function ct(e){return new DataView(e.buffer)}const bg="File already exists",Ug="Zip file comment exceeds 64KB",Fg="File entry comment exceeds 64KB",Mg="File entry name exceeds 64KB",x_="Version exceeds 65535",$g="The strength must equal 1, 2, or 3",jg="Extra field type exceeds 65535",Hg="Extra field data exceeds 64KB",cf="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",y_=new Uint8Array([7,0,2,0,65,69,3,0,0]);let Nc=0;const S_=[];class Gg{constructor(t,n={}){t=qE(t);const r=t.availableSize!==Ie&&t.availableSize>0&&t.availableSize!==1/0&&t.maxSize!==Ie&&t.maxSize>0&&t.maxSize!==1/0;Object.assign(this,{writer:t,addSplitZipSignature:r,options:n,config:Q0(),files:new Map,filenames:new Set,offset:t.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(t="",n,r={}){const i=this,{pendingAddFileCalls:o,config:s}=i;NcS_.push(a));let l;try{if(t=t.trim(),i.filenames.has(t))throw new Error(bg);return i.filenames.add(t),l=zg(i,t,n,r),o.add(l),await l}catch(a){throw i.filenames.delete(t),a}finally{o.delete(l);const a=S_.shift();a?a():Nc--}}async close(t=new Uint8Array,n={}){const r=this,{pendingAddFileCalls:i,writer:o}=this,{writable:s}=o;for(;i.size;)await Promise.allSettled(Array.from(i));return await Jg(this,t,n),Pe(r,n,"preventClose")||await s.getWriter().close(),o.getData?o.getData():s}}async function zg(e,t,n,r){t=t.trim(),r.directory&&!t.endsWith(Aa)?t+=Aa:r.directory=t.endsWith(Aa);const i=Pe(e,r,"encodeText",ga);let o=i(t);if(o===Ie&&(o=ga(t)),ge(o)>Ye)throw new Error(Mg);const s=r.comment||"";let l=i(s);if(l===Ie&&(l=ga(s)),ge(l)>Ye)throw new Error(Fg);const a=Pe(e,r,"version",pA);if(a>Ye)throw new Error(x_);const c=Pe(e,r,"versionMadeBy",20);if(c>Ye)throw new Error(x_);const f=Pe(e,r,ol,new Date),_=Pe(e,r,af),E=Pe(e,r,lf),O=Pe(e,r,am,!0),w=Pe(e,r,om,0),h=Pe(e,r,sm,0),m=Pe(e,r,"password"),u=Pe(e,r,"rawPassword"),d=Pe(e,r,"encryptionStrength",3),p=Pe(e,r,"zipCrypto"),A=Pe(e,r,"extendedTimestamp",!0),g=Pe(e,r,"keepOrder",!0),L=Pe(e,r,"level"),v=Pe(e,r,"useWebWorkers"),T=Pe(e,r,"bufferedWrite"),S=Pe(e,r,"dataDescriptorSignature",!1),y=Pe(e,r,"signal"),N=Pe(e,r,"useCompressionStream");let P=Pe(e,r,"dataDescriptor",!0),R=Pe(e,r,lm);if(m!==Ie&&d!==Ie&&(d<1||d>3))throw new Error($g);let k=new Uint8Array;const{extraField:F}=r;if(F){let Y=0,W=0;F.forEach(ce=>Y+=4+ge(ce)),k=new Uint8Array(Y),F.forEach((ce,K)=>{if(K>Ye)throw new Error(jg);if(ge(ce)>Ye)throw new Error(Hg);tt(k,new Uint16Array([K]),W),tt(k,new Uint16Array([ge(ce)]),W+2),tt(k,ce,W+4),W+=4+ge(ce)})}let z=0,X=0,I=0;const q=R===!0;n&&(n=YE(n),await tn(n),n.size===Ie?(P=!0,(R||R===Ie)&&(R=!0,I=z=Je+1)):(I=n.size,z=ev(I)));const{diskOffset:D,diskNumber:le,maxSize:Q}=e.writer,V=q||I>Je,de=q||z>Je,Te=q||e.offset+e.pendingEntriesSize-D>Je,Se=Pe(e,r,"supportZip64SplitFile",!0)&&q||le+Math.ceil(e.pendingEntriesSize/Q)>Ye;if(Te||V||de||Se){if(R===!1||!g)throw new Error(cf);R=!0}R=R||!1,r=Object.assign({},r,{rawFilename:o,rawComment:l,version:a,versionMadeBy:c,lastModDate:f,lastAccessDate:_,creationDate:E,rawExtraField:k,zip64:R,zip64UncompressedSize:V,zip64CompressedSize:de,zip64Offset:Te,zip64DiskNumberStart:Se,password:m,rawPassword:u,level:!N&&e.config.CompressionStream===Ie?0:L,useWebWorkers:v,encryptionStrength:d,extendedTimestamp:A,zipCrypto:p,bufferedWrite:T,keepOrder:g,dataDescriptor:P,dataDescriptorSignature:S,signal:y,msDosCompatible:O,internalFileAttribute:w,externalFileAttribute:h,useCompressionStream:N});const ne=Zg(r),M=Yg(r),ie=ge(ne.localHeaderArray,M.dataDescriptorArray);X=ie+z,e.options.usdz&&(X+=X+64),e.pendingEntriesSize+=X;let ue;try{ue=await Kg(e,t,n,{headerInfo:ne,dataDescriptorInfo:M,metadataSize:ie},r)}finally{e.pendingEntriesSize-=X}return Object.assign(ue,{name:t,comment:s,extraField:F}),new ls(ue)}async function Kg(e,t,n,r,i){const{files:o,writer:s}=e,{keepOrder:l,dataDescriptor:a,signal:c}=i,{headerInfo:f}=r,{usdz:_}=e.options,E=Array.from(o.values()).pop();let O={},w,h,m,u,d,p,A;o.set(t,O);try{let T;l&&(T=E&&E.lock,g()),(i.bufferedWrite||e.writerLocked||e.bufferedWrites&&l||!a)&&!_?(p=new TransformStream,A=new Response(p.readable).blob(),p.writable.size=0,w=!0,e.bufferedWrites++,await tn(s)):(p=s,await L()),await tn(p);const{writable:S}=s;let{diskOffset:y}=s;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const P=new Uint8Array(4),R=_t(P);Ae(R,0,q0),await jn(S,P),e.offset+=4}_&&Vg(r,e.offset-y),w||(await T,await v(S));const{diskNumber:N}=s;if(d=!0,O.diskNumberStart=N,O=await Wg(n,p,O,r,e.config,i),d=!1,o.set(t,O),O.filename=t,w){await p.writable.getWriter().close();let P=await A;await T,await L(),u=!0,a||(P=await Xg(O,P,S,i)),await v(S),O.diskNumberStart=s.diskNumber,y=s.diskOffset,await P.stream().pipeTo(S,{preventClose:!0,preventAbort:!0,signal:c}),S.size+=P.size,u=!1}if(O.offset=e.offset-y,O.zip64)Qg(O,i);else if(O.offset>Je)throw new Error(cf);return e.offset+=O.size,O}catch(T){if(w&&u||!w&&d){if(e.hasCorruptedEntries=!0,T)try{T.corruptedEntry=!0}catch{}w?e.offset+=p.writable.size:e.offset=p.writable.size}throw o.delete(t),T}finally{w&&e.bufferedWrites--,m&&m(),h&&h()}function g(){O.lock=new Promise(T=>m=T)}async function L(){e.writerLocked=!0;const{lockWriter:T}=e;e.lockWriter=new Promise(S=>h=()=>{e.writerLocked=!1,S()}),await T}async function v(T){ge(f.localHeaderArray)>s.availableSize&&(s.availableSize=0,await jn(T,new Uint8Array))}}async function Wg(e,t,{diskNumberStart:n,lock:r},i,o,s){const{headerInfo:l,dataDescriptorInfo:a,metadataSize:c}=i,{localHeaderArray:f,headerArray:_,lastModDate:E,rawLastModDate:O,encrypted:w,compressed:h,version:m,compressionMethod:u,rawExtraFieldExtendedTimestamp:d,extraFieldExtendedTimestampFlag:p,rawExtraFieldNTFS:A,rawExtraFieldAES:g}=l,{dataDescriptorArray:L}=a,{rawFilename:v,lastAccessDate:T,creationDate:S,password:y,rawPassword:N,level:P,zip64:R,zip64UncompressedSize:k,zip64CompressedSize:F,zip64Offset:z,zip64DiskNumberStart:X,zipCrypto:I,dataDescriptor:q,directory:D,versionMadeBy:le,rawComment:Q,rawExtraField:V,useWebWorkers:de,onstart:Te,onprogress:pe,onend:Se,signal:ne,encryptionStrength:M,extendedTimestamp:ie,msDosCompatible:ue,internalFileAttribute:Y,externalFileAttribute:W,useCompressionStream:ce}=s,K={lock:r,versionMadeBy:le,zip64:R,directory:!!D,filenameUTF8:!0,rawFilename:v,commentUTF8:!0,rawComment:Q,rawExtraFieldExtendedTimestamp:d,rawExtraFieldNTFS:A,rawExtraFieldAES:g,rawExtraField:V,extendedTimestamp:ie,msDosCompatible:ue,internalFileAttribute:Y,externalFileAttribute:W,diskNumberStart:n};let C=0,ee=0,fe;const{writable:Le}=t;if(e){e.chunkSize=mE(o),await jn(Le,f);const Ee=e.readable,Be=Ee.size=e.size,Ce={options:{codecType:kE,level:P,rawPassword:N,password:y,encryptionStrength:M,zipCrypto:w&&I,passwordVerification:w&&I&&O>>8&255,signed:!0,compressed:h,encrypted:w,useWebWorkers:de,useCompressionStream:ce,transferStreams:!1},config:o,streamOptions:{signal:ne,size:Be,onstart:Te,onprogress:pe,onend:Se}},De=await ME({readable:Ee,writable:Le},Ce);ee=De.inputSize,C=De.outputSize,fe=De.signature,Le.size+=ee}else await jn(Le,f);let _e;if(R){let Ee=4;k&&(Ee+=8),F&&(Ee+=8),z&&(Ee+=8),X&&(Ee+=4),_e=new Uint8Array(Ee)}else _e=new Uint8Array;return qg({signature:fe,rawExtraFieldZip64:_e,compressedSize:C,uncompressedSize:ee,headerInfo:l,dataDescriptorInfo:a},s),q&&await jn(Le,L),Object.assign(K,{uncompressedSize:ee,compressedSize:C,lastModDate:E,rawLastModDate:O,creationDate:S,lastAccessDate:T,encrypted:w,size:c+C,compressionMethod:u,version:m,headerArray:_,signature:fe,rawExtraFieldZip64:_e,extraFieldExtendedTimestampFlag:p,zip64UncompressedSize:k,zip64CompressedSize:F,zip64Offset:z,zip64DiskNumberStart:X}),K}function Zg(e){const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:i,rawPassword:o,password:s,level:l,zip64:a,zipCrypto:c,dataDescriptor:f,directory:_,rawExtraField:E,encryptionStrength:O,extendedTimestamp:w}=e,h=l!==0&&!_,m=!!(s&&ge(s)||o&&ge(o));let u=e.version,d;if(m&&!c){d=new Uint8Array(ge(y_)+2);const X=_t(d);we(X,0,fE),tt(d,y_,2),sl(X,8,O)}else d=new Uint8Array;let p,A,g;if(w){A=new Uint8Array(9+(r?4:0)+(i?4:0));const X=_t(A);we(X,0,X0),we(X,2,ge(A)-4),g=1+(r?2:0)+(i?4:0),sl(X,4,g);let I=5;Ae(X,I,Math.floor(n.getTime()/1e3)),I+=4,r&&(Ae(X,I,Math.floor(r.getTime()/1e3)),I+=4),i&&Ae(X,I,Math.floor(i.getTime()/1e3));try{p=new Uint8Array(36);const q=_t(p),D=Ic(n);we(q,0,dE),we(q,2,32),we(q,8,_E),we(q,10,24),kt(q,12,D),kt(q,20,Ic(r)||D),kt(q,28,Ic(i)||D)}catch{p=new Uint8Array}}else p=A=new Uint8Array;let L=bu;f&&(L=L|ku);let v=oE;h&&(v=Bu),a&&(u=u>Qd?u:Qd),m&&(L=L|Du,c||(u=u>Jd?u:Jd,v=sE,h&&(d[9]=Bu)));const T=new Uint8Array(26),S=_t(T);we(S,0,u),we(S,2,L),we(S,4,v);const y=new Uint32Array(1),N=_t(y);let P;ne_?P=e_:P=n,we(N,0,(P.getHours()<<6|P.getMinutes())<<5|P.getSeconds()/2),we(N,2,(P.getFullYear()-1980<<4|P.getMonth()+1)<<5|P.getDate());const R=y[0];Ae(S,6,R),we(S,22,ge(t));const k=ge(d,A,p,E);we(S,24,k);const F=new Uint8Array(30+ge(t)+k),z=_t(F);return Ae(z,0,aE),tt(F,T,4),tt(F,t,30),tt(F,d,30+ge(t)),tt(F,A,30+ge(t,d)),tt(F,p,30+ge(t,d,A)),tt(F,E,30+ge(t,d,A,p)),{localHeaderArray:F,headerArray:T,headerView:S,lastModDate:n,rawLastModDate:R,encrypted:m,compressed:h,version:u,compressionMethod:v,extraFieldExtendedTimestampFlag:g,rawExtraFieldExtendedTimestamp:A,rawExtraFieldNTFS:p,rawExtraFieldAES:d,extraFieldLength:k}}function Vg(e,t){const{headerInfo:n}=e;let{localHeaderArray:r,extraFieldLength:i}=n,o=_t(r),s=64-(t+ge(r))%64;s<4&&(s+=64);const l=new Uint8Array(s),a=_t(l);we(a,0,pE),we(a,2,s-2);const c=r;n.localHeaderArray=r=new Uint8Array(ge(c)+s),tt(r,c),tt(r,l,ge(c)),o=_t(r),we(o,28,i+s),e.metadataSize+=s}function Yg(e){const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let i=new Uint8Array,o,s=0;return n&&(i=new Uint8Array(t?r?24:20:r?16:12),o=_t(i),r&&(s=4,Ae(o,0,cA))),{dataDescriptorArray:i,dataDescriptorView:o,dataDescriptorOffset:s}}function qg(e,t){const{signature:n,rawExtraFieldZip64:r,compressedSize:i,uncompressedSize:o,headerInfo:s,dataDescriptorInfo:l}=e,{headerView:a,encrypted:c}=s,{dataDescriptorView:f,dataDescriptorOffset:_}=l,{zip64:E,zip64UncompressedSize:O,zip64CompressedSize:w,zipCrypto:h,dataDescriptor:m}=t;if((!c||h)&&n!==Ie&&(Ae(a,10,n),m&&Ae(f,_,n)),E){const u=_t(r);we(u,0,uE),we(u,2,ge(r)-4);let d=4;O&&(Ae(a,18,Je),kt(u,d,BigInt(o)),d+=8),w&&(Ae(a,14,Je),kt(u,d,BigInt(i))),m&&(kt(f,_+4,BigInt(i)),kt(f,_+12,BigInt(o)))}else Ae(a,14,i),Ae(a,18,o),m&&(Ae(f,_+4,i),Ae(f,_+8,o))}async function Xg(e,t,n,{zipCrypto:r}){let i;i=await t.slice(0,26).arrayBuffer(),i.byteLength!=26&&(i=i.slice(0,26));const o=new DataView(i);return(!e.encrypted||r)&&Ae(o,14,e.signature),e.zip64?(Ae(o,18,Je),Ae(o,22,Je)):(Ae(o,18,e.compressedSize),Ae(o,22,e.uncompressedSize)),await jn(n,new Uint8Array(i)),t.slice(i.byteLength)}function Qg(e,t){const{rawExtraFieldZip64:n,offset:r,diskNumberStart:i}=e,{zip64UncompressedSize:o,zip64CompressedSize:s,zip64Offset:l,zip64DiskNumberStart:a}=t,c=_t(n);let f=4;o&&(f+=8),s&&(f+=8),l&&(kt(c,f,BigInt(r)),f+=8),a&&Ae(c,f,i)}async function Jg(e,t,n){const{files:r,writer:i}=e,{diskOffset:o,writable:s}=i;let{diskNumber:l}=i,a=0,c=0,f=e.offset-o,_=r.size;for(const[,g]of r){const{rawFilename:L,rawExtraFieldZip64:v,rawExtraFieldAES:T,rawComment:S,rawExtraFieldNTFS:y,rawExtraField:N,extendedTimestamp:P,extraFieldExtendedTimestampFlag:R,lastModDate:k}=g;let F;if(P){F=new Uint8Array(9);const z=_t(F);we(z,0,X0),we(z,2,5),sl(z,4,R),Ae(z,5,Math.floor(k.getTime()/1e3))}else F=new Uint8Array;g.rawExtraFieldCDExtendedTimestamp=F,c+=46+ge(L,S,v,T,y,F,N)}const E=new Uint8Array(c),O=_t(E);await tn(i);let w=0;for(const[g,L]of Array.from(r.values()).entries()){const{offset:v,rawFilename:T,rawExtraFieldZip64:S,rawExtraFieldAES:y,rawExtraFieldCDExtendedTimestamp:N,rawExtraFieldNTFS:P,rawExtraField:R,rawComment:k,versionMadeBy:F,headerArray:z,directory:X,zip64:I,zip64UncompressedSize:q,zip64CompressedSize:D,zip64DiskNumberStart:le,zip64Offset:Q,msDosCompatible:V,internalFileAttribute:de,externalFileAttribute:Te,diskNumberStart:pe,uncompressedSize:Se,compressedSize:ne}=L,M=ge(S,y,N,P,R);Ae(O,a,Pu),we(O,a+4,F);const ie=_t(z);q||Ae(ie,18,Se),D||Ae(ie,14,ne),tt(E,z,a+6),we(O,a+30,M),we(O,a+32,ge(k)),we(O,a+34,I&&le?Ye:pe),we(O,a+36,de),Te?Ae(O,a+38,Te):X&&V&&sl(O,a+38,Uu),Ae(O,a+42,I&&Q?Je:v),tt(E,T,a+46),tt(E,S,a+46+ge(T)),tt(E,y,a+46+ge(T,S)),tt(E,N,a+46+ge(T,S,y)),tt(E,P,a+46+ge(T,S,y,N)),tt(E,R,a+46+ge(T,S,y,N,P)),tt(E,k,a+46+ge(T)+M);const ue=46+ge(T,k)+M;if(a-w>i.availableSize&&(i.availableSize=0,await jn(s,E.slice(w,a)),w=a),a+=ue,n.onprogress)try{await n.onprogress(g+1,r.size,new ls(L))}catch{}}await jn(s,w?E.slice(w):E);let h=i.diskNumber;const{availableSize:m}=i;mJe||c>Je||_>Ye||h>Ye){if(u===!1)throw new Error(cf);u=!0}const d=new Uint8Array(u?uA:un),p=_t(d);a=0,u&&(Ae(p,0,Cu),kt(p,4,BigInt(44)),we(p,12,45),we(p,14,45),Ae(p,16,h),Ae(p,20,l),kt(p,24,BigInt(_)),kt(p,32,BigInt(_)),kt(p,40,BigInt(c)),kt(p,48,BigInt(f)),Ae(p,56,cE),kt(p,64,BigInt(f)+BigInt(c)),Ae(p,72,h+1),Pe(e,n,"supportZip64SplitFile",!0)&&(h=Ye,l=Ye),_=Ye,f=Je,c=Je,a+=Fo+Uo),Ae(p,a,lE),we(p,a+4,h),we(p,a+6,l),we(p,a+8,_),we(p,a+10,_),Ae(p,a+12,c),Ae(p,a+16,f);const A=ge(t);if(A)if(A<=Ye)we(p,a+20,A);else throw new Error(Ug);await jn(s,d),A&&await jn(s,t)}async function jn(e,t){const n=e.getWriter();try{await n.ready,e.size+=ge(t),await n.write(t)}finally{n.releaseLock()}}function Ic(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function Pe(e,t,n,r){const i=t[n]===Ie?e.options[n]:t[n];return i===Ie?r:i}function ev(e){return e+5*(Math.floor(e/16383)+1)}function sl(e,t,n){e.setUint8(t,n)}function we(e,t,n){e.setUint16(t,n,!0)}function Ae(e,t,n){e.setUint32(t,n,!0)}function kt(e,t,n){e.setBigUint64(t,n,!0)}function tt(e,t,n){e.set(t,n)}function _t(e){return new DataView(e.buffer)}function ge(...e){let t=0;return e.forEach(n=>n&&(t+=n.length)),t}class fm{constructor(t,n,r,i){const o=this;if(t.root&&i&&i.getChildByName(n))throw new Error("Entry filename already exists");r||(r={}),Object.assign(o,{fs:t,name:n,data:r.data,options:r.options,id:t.entries.length,parent:i,children:[],uncompressedSize:r.uncompressedSize||0}),t.entries.push(o),i&&o.parent.children.push(o)}moveTo(t){const n=this;n.fs.move(n,t)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){const n=this;let r=n.name,i=n.parent;for(;i&&i!=t;)r=(i.name?i.name+"/":"")+r,i=i.parent;return r}isDescendantOf(t){let n=this.parent;for(;n&&n.id!=t.id;)n=n.parent;return!!n}rename(t){const n=this.parent;if(n&&n.getChildByName(t))throw new Error("Entry filename already exists");this.name=t}}class Cl extends fm{constructor(t,n,r,i){super(t,n,r,i);const o=this;o.Reader=r.Reader,o.Writer=r.Writer,r.getData&&(o.getData=r.getData)}clone(){return new Cl(this.fs,this.name,this)}async getData(t,n={}){const r=this;if(!t||t.constructor==r.Writer&&r.data)return r.data;{const i=r.reader=new r.Reader(r.data,n),o=r.data?r.data.uncompressedSize:i.size;await Promise.all([tn(i),tn(t,o)]);const s=i.readable;return s.size=r.uncompressedSize=i.size,await s.pipeTo(t.writable),t.getData?t.getData():t.writable}}isPasswordProtected(){return this.data.encrypted}async checkPassword(t,n={}){const r=this;if(r.isPasswordProtected()){n.password=t,n.checkPasswordOnly=!0;try{return await r.data.getData(null,n),!0}catch(i){if(i.message==J0)return!1;throw i}}else return!0}getText(t,n){return this.getData(new $u(t),n)}getBlob(t,n){return this.getData(new Zi(t),n)}getData64URI(t,n){return this.getData(new rl(t),n)}getUint8Array(t){return this.getData(new il,t)}getWritable(t=new WritableStream,n){return this.getData({writable:t},n)}replaceBlob(t){Object.assign(this,{data:t,Reader:Wi,Writer:Zi,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:GE,Writer:$u,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:Mu,Writer:rl,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Gu,Writer:il,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:function(){return{readable:t}},Writer:null,reader:null})}}class Vi extends fm{constructor(t,n,r,i){super(t,n,r,i),this.directory=!0}clone(t){const n=this,r=new Vi(n.fs,n.name);return t&&(r.children=n.children.map(i=>{const o=i.clone(t);return o.parent=r,o})),r}addDirectory(t,n){return Fn(this,t,{options:n},!0)}addText(t,n,r={}){return Fn(this,t,{data:n,Reader:GE,Writer:$u,options:r,uncompressedSize:n.length})}addBlob(t,n,r={}){return Fn(this,t,{data:n,Reader:Wi,Writer:Zi,options:r,uncompressedSize:n.size})}addData64URI(t,n,r={}){let i=n.length;for(;n.charAt(i-1)=="=";)i--;const o=n.indexOf(",")+1;return Fn(this,t,{data:n,Reader:Mu,Writer:rl,options:r,uncompressedSize:Math.floor((i-o)*.75)})}addUint8Array(t,n,r={}){return Fn(this,t,{data:n,Reader:Gu,Writer:il,options:r,uncompressedSize:n.length})}addHttpContent(t,n,r={}){return Fn(this,t,{data:n,Reader:class extends h_{constructor(i){super(i,r)}},options:r})}addReadable(t,n,r={}){return Fn(this,t,{Reader:function(){return{readable:n}},options:r})}addFileSystemEntry(t,n={}){return I_(this,t,n)}addFileSystemHandle(t,n={}){return I_(this,t,n)}addFile(t,n={}){return n.lastModDate||(n.lastModDate=new Date(t.lastModified)),Fn(this,t.name,{data:t,Reader:function(){const r=t.stream(),i=t.size;return{readable:r,size:i}},options:n,uncompressedSize:t.size})}addData(t,n){return Fn(this,t,n)}importBlob(t,n){return this.importZip(new Wi(t),n)}importData64URI(t,n){return this.importZip(new Mu(t),n)}importUint8Array(t,n){return this.importZip(new Gu(t),n)}importHttpContent(t,n){return this.importZip(new h_(t,n),n)}importReadable(t,n){return this.importZip({readable:t},n)}exportBlob(t={}){return this.exportZip(new Zi(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new rl(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new il,t)}async exportWritable(t=new WritableStream,n={}){return await this.exportZip({writable:t},n),t}async importZip(t,n={}){await tn(t);const r=new Sg(t,n),i=[],o=await r.getEntries();for(const s of o){let l=this;try{const a=s.filename.split("/"),c=a.pop();a.forEach((f,_)=>{const E=l;l=l.getChildByName(f),l||(l=new Vi(this.fs,f,{data:_==a.length-1?s:null},E),i.push(l))}),s.directory||i.push(Fn(l,c,{data:s,Reader:iv(Object.assign({},n)),uncompressedSize:s.uncompressedSize}))}catch(a){try{a.cause={entry:s}}catch{}throw a}}return i}async exportZip(t,n){const r=this;n.bufferedWrite===Ie&&(n.bufferedWrite=!0),await Promise.all([dm(r,n.readerOptions),tn(t)]);const i=new Gg(t,n);return await ov(i,r,rv([r],"uncompressedSize"),n),await i.close(),t.getData?t.getData():t.writable}getChildByName(t){const n=this.children;for(let r=0;ro.checkPassword(t,n)))).includes(!1)}}let tv=class{constructor(){Ei(this)}get children(){return this.root.children}remove(t){N_(t),this.entries[t.id]=null}move(t,n){if(t==this.root)throw new Error("Root directory cannot be moved");if(n.directory){if(n.isDescendantOf(t))throw new Error("Entry is a ancestor of target entry");if(t!=n){if(n.getChildByName(t.name))throw new Error("Entry filename already exists");N_(t),t.parent=n,n.children.push(t)}}else throw new Error("Target entry is not a directory")}find(t){const n=t.split("/");let r=this.root;for(let i=0;r&&i{if(n.directory)await dm(n,t);else{const r=n.reader=new n.Reader(n.data,t);try{await tn(r)}catch(i){try{i.entryId=n.id,i.cause={entry:n}}catch{}throw i}n.uncompressedSize=r.size}}))}function N_(e){if(e.parent){const t=e.parent.children;t.forEach((n,r)=>{n.id==e.id&&t.splice(r,1)})}}async function ov(e,t,n,r){const i=t,o=new Map;await s(e,t);async function s(l,a){await c();async function c(){if(r.bufferedWrite)await Promise.allSettled(a.children.map(f));else for(const _ of a.children)await f(_)}async function f(_){const E=r.relativePath?_.getRelativeName(i):_.getFullname();let O=_.options||{},w={};if(_.data instanceof ls){const{externalFileAttribute:h,versionMadeBy:m,comment:u,lastModDate:d,creationDate:p,lastAccessDate:A}=_.data;w={externalFileAttribute:h,versionMadeBy:m,comment:u,lastModDate:d,creationDate:p,lastAccessDate:A}}await l.add(E,_.reader,Object.assign({directory:_.directory},Object.assign({},r,w,O,{onprogress:async h=>{if(r.onprogress){o.set(E,h);try{await r.onprogress(Array.from(o.values()).reduce((m,u)=>m+u),n)}catch{}}}}))),await s(l,_)}}}async function I_(e,t,n){return r(e,t,[]);async function r(i,o,s){if(o)try{if((o.isFile||o.isDirectory)&&(o=await _m(o)),o.kind=="file"){const l=await o.getFile();s.push(i.addData(l.name,{Reader:function(){const a=l.stream(),c=l.size;return{readable:a,size:c}},options:Object.assign({},{lastModDate:new Date(l.lastModified)},n),uncompressedSize:l.size}))}else if(o.kind=="directory"){const l=i.addDirectory(o.name);s.push(l);for await(const a of o.values())await r(l,a,s)}}catch(l){const a=l.message+(o?" ("+o.name+")":"");throw new Error(a)}return s}}async function _m(e){const t={name:e.name};if(e.isFile&&(t.kind="file",t.getFile=()=>new Promise((n,r)=>e.file(n,r))),e.isDirectory){t.kind="directory";const n=await sv(e);t.values=()=>n}return t}async function sv(e){const t=[];function n(r,i,o){r.readEntries(async s=>{if(!s.length)i(t);else{for(const l of s)t.push(await _m(l));n(r,i,o)}},o)}return await new Promise((r,i)=>n(e.createReader(),r,i)),{[Symbol.iterator](){let r=0;return{next(){const i={value:t[r],done:r===t.length};return r++,i}}}}}function Ei(e){e.entries=[],e.root=new Vi(e)}function Fn(e,t,n,r){if(e.directory)return r?new Vi(e.fs,t,n,e):new Cl(e.fs,t,n,e);throw new Error("Parent entry is not a directory")}let pm;try{pm=import.meta.url}catch{}Il({baseURL:pm});JA(Il);Il({Deflate:jO,Inflate:lA});const{FS:av}=nv;function Em(){return new av}const R_=Object.freeze(Object.defineProperty({__proto__:null,configure:Il,createZipFileSystem:Em},Symbol.toStringTag,{value:"Module"})),lv=".",cv="?shared-files",uv="/shared-files",fv=lv+uv,dv="shared-files";async function _v(e){const t=pv();if(t&&(Ev(),t===cv)){const i=await(await fetch(fv)).formData();e(i.getAll(dv))}}function pv(){return location.search}function Ev(){return history.replaceState(null,null,location.pathname)}const mv=Object.freeze(Object.defineProperty({__proto__:null,onShareFiles:_v},Symbol.toStringTag,{value:"Module"}));function Tv(e){"launchQueue"in window&&launchQueue.setConsumer(t=>{hv(t,e)})}async function hv(e,t){e.files.length&&await Promise.all(e.files.map(async n=>t(await n.getFile())))}const Lv=Object.freeze(Object.defineProperty({__proto__:null,onOpenWith:Tv},Symbol.toStringTag,{value:"Module"})),Wu=document.createElement("style");document.head.appendChild(Wu);function Ov(e,t){const n=Array.from(Wu.sheet.rules).find(r=>r.style.getPropertyValue(e));n?n.style.setProperty(e,t):Wu.sheet.insertRule(":root { "+e+": "+t+"}")}const Rc=Object.freeze(Object.defineProperty({__proto__:null,setStyle:Ov},Symbol.toStringTag,{value:"Module"})),Av=["Macintosh","MacIntel","MacPPC","Mac68K"];function gv(){return navigator.hardwareConcurrency}function vv(){const{platform:e}=navigator;return e!==void 0&&Av.includes(e)}const B_=Object.freeze(Object.defineProperty({__proto__:null,getMaximumWorkers:gv,isMacOSPlatform:vv},Symbol.toStringTag,{value:"Module"})),mm="keyup",Tm="keydown";function wv(e){addEventListener(mm,e)}function xv(e){removeEventListener(mm,e)}function yv(e){addEventListener(Tm,e)}function Sv(e){removeEventListener(Tm,e)}const Nv=Object.freeze(Object.defineProperty({__proto__:null,addKeyDownListener:yv,addKeyUpListener:wv,removeKeyDownListener:Sv,removeKeyUpListener:xv},Symbol.toStringTag,{value:"Module"})),Iv="--accent-color";function Rv({accentColor:e,skin:t}){const n=[t],r=Bv(e);r>224?n.push("dark"):r<32&&n.push("light"),document.documentElement.className=n.join(" ")}function Bv(e){const t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16);return Math.round((t*299+n*587+r*114)/1e3)}const P_=Object.freeze(Object.defineProperty({__proto__:null,ACCENT_COLOR_CUSTOM_PROPERTY_NAME:Iv,setTheme:Rv},Symbol.toStringTag,{value:"Module"}));function Pv(e){e.scrollIntoView({block:"nearest"})}function hm(e){return e.offsetHeight}function Cv(e){const t=parseInt(getComputedStyle(e.parentElement).rowGap,10);return hm(e)+(Number.isNaN(t)?0:t)}function Dv(e){document.documentElement.removeAttribute(e)}function kv(e,t){const n=new ResizeObserver(t);return n.observe(e,{attributes:!0}),n}function bv(e){document.documentElement.lang=e}const C_=Object.freeze(Object.defineProperty({__proto__:null,addResizeObserver:kv,getHeight:hm,getRowHeight:Cv,removeDocumentAttribute:Dv,scrollIntoView:Pv,setDocumentLanguage:bv},Symbol.toStringTag,{value:"Module"})),Lm="resize",Om="beforeunload";function Uv(e){addEventListener(Om,e)}function Fv(e){removeEventListener(Om,e)}function Mv(e){addEventListener(Lm,e)}function $v(e){removeEventListener(Lm,e)}const D_=Object.freeze(Object.defineProperty({__proto__:null,addResizeListener:Mv,addUnloadListener:Uv,removeResizeListener:$v,removeUnloadListener:Fv},Symbol.toStringTag,{value:"Module"}));function jv(e){Object.assign(e,{properties:{masterVol:{type:Number,value:.5,observer:"setMasterVol"},reverbLev:{type:Number,value:.3,observer:"setReverbLev"},quality:{type:Number,value:1,observer:"setQuality"},loop:{type:Number,value:0},internalcontext:{type:Number,value:1},tsmode:{type:Number,value:0},voices:{type:Number,value:64},useReverb:{type:Number,value:1}},program:[{name:"Acoustic Grand Piano"},{name:"Bright Acoustic Piano"},{name:"Electric Grand Piano"},{name:"Honky-tonk Piano"},{name:"Electric Piano 1"},{name:"Electric Piano 2"},{name:"Harpsichord"},{name:"Clavi"},{name:"Celesta"},{name:"Glockenspiel"},{name:"Music Box"},{name:"Vibraphone"},{name:"Marimba"},{name:"Xylophone"},{name:"Tubular Bells"},{name:"Dulcimer"},{name:"Drawbar Organ"},{name:"Percussive Organ"},{name:"Rock Organ"},{name:"Church Organ"},{name:"Reed Organ"},{name:"Accordion"},{name:"Harmonica"},{name:"Tango Accordion"},{name:"Acoustic Guitar (nylon)"},{name:"Acoustic Guitar (steel)"},{name:"Electric Guitar (jazz)"},{name:"Electric Guitar (clean)"},{name:"Electric Guitar (muted)"},{name:"Overdriven Guitar"},{name:"Distortion Guitar"},{name:"Guitar harmonics"},{name:"Acoustic Bass"},{name:"Electric Bass (finger)"},{name:"Electric Bass (pick)"},{name:"Fretless Bass"},{name:"Slap Bass 1"},{name:"Slap Bass 2"},{name:"Synth Bass 1"},{name:"Synth Bass 2"},{name:"Violin"},{name:"Viola"},{name:"Cello"},{name:"Contrabass"},{name:"Tremolo Strings"},{name:"Pizzicato Strings"},{name:"Orchestral Harp"},{name:"Timpani"},{name:"String Ensemble 1"},{name:"String Ensemble 2"},{name:"SynthStrings 1"},{name:"SynthStrings 2"},{name:"Choir Aahs"},{name:"Voice Oohs"},{name:"Synth Voice"},{name:"Orchestra Hit"},{name:"Trumpet"},{name:"Trombone"},{name:"Tuba"},{name:"Muted Trumpet"},{name:"French Horn"},{name:"Brass Section"},{name:"SynthBrass 1"},{name:"SynthBrass 2"},{name:"Soprano Sax"},{name:"Alto Sax"},{name:"Tenor Sax"},{name:"Baritone Sax"},{name:"Oboe"},{name:"English Horn"},{name:"Bassoon"},{name:"Clarinet"},{name:"Piccolo"},{name:"Flute"},{name:"Recorder"},{name:"Pan Flute"},{name:"Blown Bottle"},{name:"Shakuhachi"},{name:"Whistle"},{name:"Ocarina"},{name:"Lead 1 (square)"},{name:"Lead 2 (sawtooth)"},{name:"Lead 3 (calliope)"},{name:"Lead 4 (chiff)"},{name:"Lead 5 (charang)"},{name:"Lead 6 (voice)"},{name:"Lead 7 (fifths)"},{name:"Lead 8 (bass + lead)"},{name:"Pad 1 (new age)"},{name:"Pad 2 (warm)"},{name:"Pad 3 (polysynth)"},{name:"Pad 4 (choir)"},{name:"Pad 5 (bowed)"},{name:"Pad 6 (metallic)"},{name:"Pad 7 (halo)"},{name:"Pad 8 (sweep)"},{name:"FX 1 (rain)"},{name:"FX 2 (soundtrack)"},{name:"FX 3 (crystal)"},{name:"FX 4 (atmosphere)"},{name:"FX 5 (brightness)"},{name:"FX 6 (goblins)"},{name:"FX 7 (echoes)"},{name:"FX 8 (sci-fi)"},{name:"Sitar"},{name:"Banjo"},{name:"Shamisen"},{name:"Koto"},{name:"Kalimba"},{name:"Bag pipe"},{name:"Fiddle"},{name:"Shanai"},{name:"Tinkle Bell"},{name:"Agogo"},{name:"Steel Drums"},{name:"Woodblock"},{name:"Taiko Drum"},{name:"Melodic Tom"},{name:"Synth Drum"},{name:"Reverse Cymbal"},{name:"Guitar Fret Noise"},{name:"Breath Noise"},{name:"Seashore"},{name:"Bird Tweet"},{name:"Telephone Ring"},{name:"Helicopter"},{name:"Applause"},{name:"Gunshot"}],drummap:[{name:"Acoustic Bass Drum"},{name:"Bass Drum 1"},{name:"Side Stick"},{name:"Acoustic Snare"},{name:"Hand Clap"},{name:"Electric Snare"},{name:"Low Floor Tom"},{name:"Closed Hi Hat"},{name:"High Floor Tom"},{name:"Pedal Hi-Hat"},{name:"Low Tom"},{name:"Open Hi-Hat"},{name:"Low-Mid Tom"},{name:"Hi-Mid Tom"},{name:"Crash Cymbal 1"},{name:"High Tom"},{name:"Ride Cymbal 1"},{name:"Chinese Cymbal"},{name:"Ride Bell"},{name:"Tambourine"},{name:"Splash Cymbal"},{name:"Cowbell"},{name:"Crash Cymbal 2"},{name:"Vibraslap"},{name:"Ride Cymbal 2"},{name:"Hi Bongo"},{name:"Low Bongo"},{name:"Mute Hi Conga"},{name:"Open Hi Conga"},{name:"Low Conga"},{name:"High Timbale"},{name:"Low Timbale"},{name:"High Agogo"},{name:"Low Agogo"},{name:"Cabasa"},{name:"Maracas"},{name:"Short Whistle"},{name:"Long Whistle"},{name:"Short Guiro"},{name:"Long Guiro"},{name:"Claves"},{name:"Hi Wood Block"},{name:"Low Wood Block"},{name:"Mute Cuica"},{name:"Open Cuica"},{name:"Mute Triangle"},{name:"Open Triangle"}],program1:[[{w:"sine",v:.4,d:.7,r:.1},{w:"triangle",v:3,d:.7,s:.1,g:1,a:.01,k:-1.2}],[{w:"triangle",v:.4,d:.7,r:.1},{w:"triangle",v:4,t:3,d:.4,s:.1,g:1,k:-1,a:.01}],[{w:"sine",d:.7,r:.1},{w:"triangle",v:4,f:2,d:.5,s:.5,g:1,k:-1}],[{w:"sine",d:.7,v:.2},{w:"triangle",v:4,t:3,f:2,d:.3,g:1,k:-1,a:.01,s:.5}],[{w:"sine",v:.35,d:.7},{w:"sine",v:3,t:7,f:1,d:1,s:1,g:1,k:-.7}],[{w:"sine",v:.35,d:.7},{w:"sine",v:8,t:7,f:1,d:.5,s:1,g:1,k:-.7}],[{w:"sawtooth",v:.34,d:2},{w:"sine",v:8,f:.1,d:2,s:1,r:2,g:1}],[{w:"triangle",v:.34,d:1.5},{w:"square",v:6,f:.1,d:1.5,s:.5,r:2,g:1}],[{w:"sine",d:.3,r:.3},{w:"sine",v:7,t:11,d:.03,g:1}],[{w:"sine",d:.3,r:.3},{w:"sine",v:11,t:6,d:.2,s:.4,g:1}],[{w:"sine",v:.2,d:.3,r:.3},{w:"sine",v:11,t:5,d:.1,s:.4,g:1}],[{w:"sine",v:.2,d:.6,r:.6},{w:"triangle",v:11,t:5,f:1,s:.5,g:1}],[{w:"sine",v:.3,d:.2,r:.2},{w:"sine",v:6,t:5,d:.02,g:1}],[{w:"sine",v:.3,d:.2,r:.2},{w:"sine",v:7,t:11,d:.03,g:1}],[{w:"sine",v:.2,d:1,r:1},{w:"sine",v:11,t:3.5,d:1,r:1,g:1}],[{w:"triangle",v:.2,d:.5,r:.2},{w:"sine",v:6,t:2.5,d:.2,s:.1,r:.2,g:1}],[{w:"w9999",v:.22,s:.9},{w:"w9999",v:.22,t:2,f:2,s:.9}],[{w:"w9999",v:.2,s:1},{w:"sine",v:11,t:6,f:2,s:.1,g:1,h:.006,r:.002,d:.002},{w:"w9999",v:.2,t:2,f:1,h:0,s:1}],[{w:"w9999",v:.2,d:.1,s:.9},{w:"w9999",v:.25,t:4,f:2,s:.5}],[{w:"w9999",v:.3,a:.04,s:.9},{w:"w9999",v:.2,t:8,f:2,a:.04,s:.9}],[{w:"sine",v:.2,a:.02,d:.05,s:1},{w:"sine",v:6,t:3,f:1,a:.02,d:.05,s:1,g:1}],[{w:"triangle",v:.2,a:.02,d:.05,s:.8},{w:"square",v:7,t:3,f:1,d:.05,s:1.5,g:1}],[{w:"square",v:.2,a:.02,d:.2,s:.5},{w:"square",v:1,d:.03,s:2,g:1}],[{w:"square",v:.2,a:.02,d:.1,s:.8},{w:"square",v:1,a:.3,d:.1,s:2,g:1}],[{w:"sine",v:.3,d:.5,f:1},{w:"triangle",v:5,t:3,f:-1,d:1,s:.1,g:1}],[{w:"sine",v:.4,d:.6,f:1},{w:"triangle",v:12,t:3,d:.6,s:.1,g:1,f:-1}],[{w:"triangle",v:.3,d:1,f:1},{w:"triangle",v:6,f:-1,d:.4,s:.5,g:1,t:3}],[{w:"sine",v:.3,d:1,f:-1},{w:"triangle",v:11,f:1,d:.4,s:.5,g:1,t:3}],[{w:"sine",v:.4,d:.1,r:.01},{w:"sine",v:7,g:1}],[{w:"triangle",v:.4,d:1,f:1},{w:"square",v:4,f:-1,d:1,s:.7,g:1}],[{w:"triangle",v:.35,d:1,f:1},{w:"square",v:7,f:-1,d:.3,s:.5,g:1}],[{w:"sine",v:.2,t:1.5,a:.005,h:.2,d:.6},{w:"sine",v:11,t:5,f:2,d:1,s:.5,g:1}],[{w:"sine",d:.3},{w:"sine",v:4,t:3,d:1,s:1,g:1}],[{w:"sine",d:.3},{w:"sine",v:4,t:3,d:1,s:1,g:1}],[{w:"w9999",d:.3,v:.7,s:.5},{w:"sawtooth",v:1.2,d:.02,s:.5,g:1,h:0,r:.02}],[{w:"sine",d:.3},{w:"sine",v:4,t:3,d:1,s:1,g:1}],[{w:"triangle",v:.3,t:2,d:1},{w:"triangle",v:15,t:2.5,d:.04,s:.1,g:1}],[{w:"triangle",v:.3,t:2,d:1},{w:"triangle",v:15,t:2.5,d:.04,s:.1,g:1}],[{w:"triangle",d:.7},{w:"square",v:.4,t:.5,f:1,d:.2,s:10,g:1}],[{w:"triangle",d:.7},{w:"square",v:.4,t:.5,f:1,d:.2,s:10,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,d:11,s:.2,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,d:11,s:.2,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,t:.5,d:11,s:.2,g:1}],[{w:"sawtooth",v:.4,a:.1,d:11},{w:"sine",v:5,t:.5,d:11,s:.2,g:1}],[{w:"sine",v:.4,a:.1,d:11},{w:"sine",v:6,f:2.5,d:.05,s:1.1,g:1}],[{w:"sine",v:.3,d:.1,r:.1},{w:"square",v:4,t:3,d:1,s:.2,g:1}],[{w:"sine",v:.3,d:.5,r:.5},{w:"sine",v:7,t:2,f:2,d:1,r:1,g:1}],[{w:"triangle",v:.6,h:.03,d:.3,r:.3,t:.5},{w:"n0",v:8,t:1.5,d:.08,r:.08,g:1}],[{w:"sawtooth",v:.3,a:.03,s:.5},{w:"sawtooth",v:.2,t:2,f:2,d:1,s:2}],[{w:"sawtooth",v:.3,f:-2,a:.03,s:.5},{w:"sawtooth",v:.2,t:2,f:2,d:1,s:2}],[{w:"sawtooth",v:.2,a:.02,s:1},{w:"sawtooth",v:.2,t:2,f:2,a:1,d:1,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1},{w:"sawtooth",v:.2,f:2,a:.02,d:1,s:1}],[{w:"triangle",v:.3,a:.03,s:1},{w:"sine",v:3,t:5,f:1,d:1,s:1,g:1}],[{w:"sine",v:.4,a:.03,s:.9},{w:"sine",v:1,t:2,f:3,d:.03,s:.2,g:1}],[{w:"triangle",v:.6,a:.05,s:.5},{w:"sine",v:1,f:.8,d:.2,s:.2,g:1}],[{w:"square",v:.15,a:.01,d:.2,r:.2,t:.5,h:.03},{w:"square",v:4,f:.5,d:.2,r:11,a:.01,g:1,h:.02},{w:"square",v:.15,t:4,f:1,a:.02,d:.15,r:.15,h:.03},{g:3,w:"square",v:4,f:-.5,a:.01,h:.02,d:.15,r:11}],[{w:"square",v:.2,a:.01,d:1,s:.6,r:.04},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.5,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.04,d:1,s:.4,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.15,a:.04,s:1},{w:"sine",v:2,d:.1,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.5,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.6,r:.08},{w:"sine",v:1,f:.2,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:.5,s:.7,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.5,r:.08},{w:"sine",v:1,d:.1,s:4,g:1}],[{w:"square",v:.2,a:.02,d:2,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"square",v:.2,a:.02,d:2,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"square",v:.2,a:.02,d:1,s:.6},{w:"sine",v:2,d:1,g:1}],[{w:"sine",v:.4,a:.02,d:.7,s:.5},{w:"square",v:5,t:2,d:.2,s:.5,g:1}],[{w:"sine",v:.3,a:.05,d:.2,s:.8},{w:"sawtooth",v:6,f:.1,d:.1,s:.3,g:1}],[{w:"sine",v:.3,a:.03,d:.2,s:.4},{w:"square",v:7,f:.2,d:1,s:.1,g:1}],[{w:"square",v:.2,a:.05,d:.1,s:.8},{w:"square",v:4,d:.1,s:1.1,g:1}],[{w:"sine",a:.02,d:2},{w:"sine",v:6,t:2,d:.04,g:1}],[{w:"sine",v:.7,a:.03,d:.4,s:.4},{w:"sine",v:4,t:2,f:.2,d:.4,g:1}],[{w:"sine",v:.7,a:.02,d:.4,s:.6},{w:"sine",v:3,t:2,d:0,s:1,g:1}],[{w:"sine",v:.4,a:.06,d:.3,s:.3},{w:"sine",v:7,t:2,d:.2,s:.2,g:1}],[{w:"sine",a:.02,d:.3,s:.3},{w:"sawtooth",v:3,t:2,d:.3,g:1}],[{w:"sine",v:.4,a:.02,d:2,s:.1},{w:"sawtooth",v:8,t:2,f:1,d:.5,g:1}],[{w:"sine",v:.7,a:.03,d:.5,s:.3},{w:"sine",v:.003,t:0,f:4,d:.1,s:.002,g:1}],[{w:"sine",v:.7,a:.02,d:2},{w:"sine",v:1,t:2,f:1,d:.02,g:1}],[{w:"square",v:.3,d:1,s:.5},{w:"square",v:1,f:.2,d:1,s:.5,g:1}],[{w:"sawtooth",v:.3,d:2,s:.5},{w:"square",v:2,f:.1,s:.5,g:1}],[{w:"triangle",v:.5,a:.05,d:2,s:.6},{w:"sine",v:4,t:2,g:1}],[{w:"triangle",v:.3,a:.01,d:2,s:.3},{w:"sine",v:22,t:2,f:1,d:.03,s:.2,g:1}],[{w:"sawtooth",v:.3,d:1,s:.5},{w:"sine",v:11,t:11,a:.2,d:.05,s:.3,g:1}],[{w:"sine",v:.3,a:.06,d:1,s:.5},{w:"sine",v:7,f:1,d:1,s:.2,g:1}],[{w:"sawtooth",v:.3,a:.03,d:.7,s:.3,r:.2},{w:"sawtooth",v:.3,t:.75,d:.7,a:.1,s:.3,r:.2}],[{w:"triangle",v:.3,a:.01,d:.7,s:.5},{w:"square",v:5,t:.5,d:.7,s:.5,g:1}],[{w:"triangle",v:.3,a:.02,d:.3,s:.3,r:.3},{w:"square",v:3,t:4,f:1,a:.02,d:.1,s:1,g:1},{w:"triangle",v:.08,t:.5,a:.1,h:0,d:.1,s:.5,r:.1,b:0,c:0}],[{w:"sine",v:.3,a:.05,d:1,s:.7,r:.3},{w:"sine",v:2,f:1,d:.3,s:1,g:1}],[{w:"square",v:.3,a:.03,d:.5,s:.3,r:.1},{w:"square",v:4,f:1,a:.03,d:.1,g:1}],[{w:"triangle",v:.3,a:.08,d:1,s:.3,r:.1},{w:"square",v:2,f:1,d:.3,s:.3,g:1,t:4,a:.08}],[{w:"sine",v:.3,a:.05,d:1,s:.3,r:.1},{w:"sine",v:.1,t:2.001,f:1,d:1,s:50,g:1}],[{w:"triangle",v:.3,a:.03,d:.7,s:.3,r:.2},{w:"sine",v:12,t:7,f:1,d:.5,s:1.7,g:1}],[{w:"sine",v:.3,a:.05,d:1,s:.3,r:.1},{w:"sawtooth",v:22,t:6,d:.06,s:.3,g:1}],[{w:"triangle",v:.3,a:.05,d:11,r:.3},{w:"triangle",v:1,d:1,s:8,g:1}],[{w:"sawtooth",v:.3,d:4,s:.8,r:.1},{w:"square",v:1,t:2,f:8,a:1,d:1,s:1,r:.1,g:1}],[{w:"triangle",v:.3,d:1,s:.5,t:.8,a:.2,p:1.25,q:.2},{w:"sawtooth",v:.2,a:.2,d:.3,s:1,t:1.2,p:1.25,q:.2}],[{w:"sine",v:.3,d:1,s:.3},{w:"square",v:22,t:11,d:.5,s:.1,g:1}],[{w:"sawtooth",v:.3,a:.04,d:1,s:.8,r:.1},{w:"square",v:1,t:.5,d:1,s:2,g:1}],[{w:"triangle",v:.3,d:1,s:.3},{w:"sine",v:22,t:6,d:.6,s:.05,g:1}],[{w:"sine",v:.6,a:.1,d:.05,s:.4},{w:"sine",v:5,t:5,f:1,d:.05,s:.3,g:1}],[{w:"sine",a:.1,d:.05,s:.4,v:.8},{w:"sine",v:5,t:5,f:1,d:.05,s:.3,g:1}],[{w:"square",v:.3,a:.1,d:.1,s:.4},{w:"square",v:1,f:1,d:.3,s:.1,g:1}],[{w:"sawtooth",v:.3,d:.5,r:.5},{w:"sawtooth",v:11,t:5,d:.05,g:1}],[{w:"square",v:.3,d:.2,r:.2},{w:"square",v:7,t:3,d:.05,g:1}],[{w:"triangle",d:.2,r:.2},{w:"square",v:9,t:3,d:.1,r:.1,g:1}],[{w:"triangle",d:.3,r:.3},{w:"square",v:6,t:3,d:1,r:1,g:1}],[{w:"triangle",v:.4,d:.2,r:.2},{w:"square",v:22,t:12,d:.1,r:.1,g:1}],[{w:"sine",v:.25,a:.02,d:.05,s:.8},{w:"square",v:1,t:2,d:.03,s:11,g:1}],[{w:"sine",v:.3,a:.05,d:11},{w:"square",v:7,t:3,f:1,s:.7,g:1}],[{w:"square",v:.3,a:.05,d:.1,s:.8},{w:"square",v:4,d:.1,s:1.1,g:1}],[{w:"sine",v:.4,d:.3,r:.3},{w:"sine",v:7,t:9,d:.1,r:.1,g:1}],[{w:"sine",v:.7,d:.1,r:.1},{w:"sine",v:22,t:7,d:.05,g:1}],[{w:"sine",v:.6,d:.15,r:.15},{w:"square",v:11,t:3.2,d:.1,r:.1,g:1}],[{w:"sine",v:.8,d:.07,r:.07},{w:"square",v:11,t:7,r:.01,g:1}],[{w:"triangle",v:.7,t:.5,d:.2,r:.2,p:.95},{w:"n0",v:9,g:1,d:.2,r:.2}],[{w:"sine",v:.7,d:.1,r:.1,p:.9},{w:"square",v:14,t:2,d:.005,r:.005,g:1}],[{w:"square",d:.15,r:.15,p:.5},{w:"square",v:4,t:5,d:.001,r:.001,g:1}],[{w:"n1",v:.3,a:1,s:1,d:.15,r:0,t:.5}],[{w:"sine",t:12.5,d:0,r:0,p:.5,v:.3,h:.2,q:.5},{g:1,w:"sine",v:1,t:2,d:0,r:0,s:1},{g:1,w:"n0",v:.2,t:2,a:.6,h:0,d:.1,r:.1,b:0,c:0}],[{w:"n0",v:.2,a:.05,h:.02,d:.02,r:.02}],[{w:"n0",v:.4,a:1,d:1,t:.25}],[{w:"sine",v:.3,a:.1,d:1,s:.5},{w:"sine",v:4,t:0,f:1.5,d:1,s:1,r:.1,g:1},{g:1,w:"sine",v:4,t:0,f:2,a:.6,h:0,d:.1,s:1,r:.1,b:0,c:0}],[{w:"square",v:.3,t:.25,d:11,s:1},{w:"square",v:12,t:0,f:8,d:1,s:1,r:11,g:1}],[{w:"n0",v:.4,t:.5,a:1,d:11,s:1,r:.5},{w:"square",v:1,t:0,f:14,d:1,s:1,r:11,g:1}],[{w:"sine",t:0,f:1221,a:.2,d:1,r:.25,s:1},{g:1,w:"n0",v:3,t:.5,d:1,s:1,r:1}],[{w:"sine",d:.4,r:.4,p:.1,t:2.5,v:1},{w:"n0",v:12,t:2,d:1,r:1,g:1}]],program0:[[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"triangle",v:.5,d:.7}],[{w:"sawtooth",v:.3,d:.7}],[{w:"sawtooth",v:.3,d:.7}],[{w:"sine",v:.5,d:.3,r:.3}],[{w:"triangle",v:.5,d:.3,r:.3}],[{w:"square",v:.2,d:.3,r:.3}],[{w:"square",v:.2,d:.3,r:.3}],[{w:"sine",v:.5,d:.1,r:.1}],[{w:"sine",v:.5,d:.1,r:.1}],[{w:"square",v:.2,d:1,r:1}],[{w:"sawtooth",v:.3,d:.7,r:.7}],[{w:"sine",v:.5,a:.01,s:1}],[{w:"sine",v:.7,d:.02,s:.7}],[{w:"square",v:.2,s:1}],[{w:"triangle",v:.5,a:.01,s:1}],[{w:"square",v:.2,a:.02,s:1}],[{w:"square",v:.2,a:.02,s:1}],[{w:"square",v:.2,a:.02,s:1}],[{w:"square",v:.2,a:.05,s:1}],[{w:"triangle",v:.5,d:.5}],[{w:"square",v:.2,d:.6}],[{w:"square",v:.2,d:.6}],[{w:"triangle",v:.8,d:.6}],[{w:"triangle",v:.4,d:.05}],[{w:"square",v:.2,d:1}],[{w:"square",v:.2,d:1}],[{w:"sine",v:.4,d:.6}],[{w:"triangle",v:.7,d:.4}],[{w:"triangle",v:.7,d:.7}],[{w:"triangle",v:.7,d:.7}],[{w:"triangle",v:.7,d:.7}],[{w:"square",v:.3,d:.2}],[{w:"square",v:.3,d:.2}],[{w:"square",v:.3,d:.1,s:.2}],[{w:"sawtooth",v:.4,d:.1,s:.2}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.3,d:.1}],[{w:"sawtooth",v:.3,d:.5,r:.5}],[{w:"triangle",v:.6,d:.1,r:.1,h:.03,p:.8}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"sawtooth",v:.2,a:.02,s:1}],[{w:"triangle",v:.3,a:.03,s:1}],[{w:"sine",v:.3,a:.03,s:1}],[{w:"triangle",v:.3,a:.05,s:1}],[{w:"sawtooth",v:.5,a:.01,d:.1}],[{w:"square",v:.3,a:.05,d:.2,s:.6}],[{w:"square",v:.3,a:.05,d:.2,s:.6}],[{w:"square",v:.3,a:.05,d:.2,s:.6}],[{w:"square",v:.2,a:.05,d:.01,s:1}],[{w:"square",v:.3,a:.05,s:1}],[{w:"square",v:.3,s:.7}],[{w:"square",v:.3,s:.7}],[{w:"square",v:.3,s:.7}],[{w:"square",v:.3,a:.02,d:2}],[{w:"square",v:.3,a:.02,d:2}],[{w:"square",v:.3,a:.03,d:2}],[{w:"square",v:.3,a:.04,d:2}],[{w:"square",v:.3,a:.02,d:2}],[{w:"square",v:.3,a:.05,d:2}],[{w:"square",v:.3,a:.03,d:2}],[{w:"square",v:.3,a:.03,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"sine",v:.7,a:.02,d:2}],[{w:"square",v:.3,s:.7}],[{w:"sawtooth",v:.4,s:.7}],[{w:"triangle",v:.5,s:.7}],[{w:"sawtooth",v:.4,s:.7}],[{w:"sawtooth",v:.4,d:12}],[{w:"sine",v:.4,a:.06,d:12}],[{w:"sawtooth",v:.4,d:12}],[{w:"sawtooth",v:.4,d:12}],[{w:"sawtooth",v:.3,d:12}],[{w:"triangle",v:.5,d:12}],[{w:"square",v:.3,d:12}],[{w:"triangle",v:.5,a:.08,d:11}],[{w:"sawtooth",v:.5,a:.05,d:11}],[{w:"sawtooth",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"square",v:.3,d:11}],[{w:"sawtooth",v:.5,a:.04,d:11}],[{w:"sawtooth",v:.5,d:11}],[{w:"triangle",v:.5,a:.8,d:11}],[{w:"triangle",v:.5,d:11}],[{w:"square",v:.3,d:11}],[{w:"sawtooth",v:.3,d:1,r:1}],[{w:"sawtooth",v:.5,d:.3}],[{w:"sawtooth",v:.5,d:.3,r:.3}],[{w:"sawtooth",v:.5,d:.3,r:.3}],[{w:"square",v:.3,d:.2,r:.2}],[{w:"square",v:.3,a:.02,d:2}],[{w:"sawtooth",v:.2,a:.02,d:.7}],[{w:"triangle",v:.5,d:1}],[{w:"sawtooth",v:.3,d:.3,r:.3}],[{w:"sine",v:.8,d:.1,r:.1}],[{w:"square",v:.2,d:.1,r:.1,p:1.05}],[{w:"sine",v:.8,d:.05,r:.05}],[{w:"triangle",v:.5,d:.1,r:.1,p:.96}],[{w:"triangle",v:.5,d:.1,r:.1,p:.97}],[{w:"square",v:.3,d:.1,r:.1}],[{w:"n1",v:.3,a:1,s:1,d:.15,r:0,t:.5}],[{w:"triangle",v:.5,d:.03,t:0,f:1332,r:.001,p:1.1}],[{w:"n0",v:.2,t:.1,d:.02,a:.05,h:.02,r:.02}],[{w:"n0",v:.4,a:1,d:1,t:.25}],[{w:"sine",v:.3,a:.8,d:1,t:0,f:1832}],[{w:"triangle",d:.5,t:0,f:444,s:1}],[{w:"n0",v:.4,d:1,t:0,f:22,s:1}],[{w:"n0",v:.5,a:.2,d:11,t:0,f:44}],[{w:"n0",v:.5,t:.25,d:.4,r:.4}]],drummap1:[[{w:"triangle",t:0,f:70,v:1,d:.05,h:.03,p:.9,q:.1},{w:"n0",g:1,t:6,v:17,r:.01,h:0,p:0}],[{w:"triangle",t:0,f:88,v:1,d:.05,h:.03,p:.5,q:.1},{w:"n0",g:1,t:5,v:42,r:.01,h:0,p:0}],[{w:"n0",f:222,p:0,t:0,r:.01,h:0}],[{w:"triangle",v:.3,f:180,d:.05,t:0,h:.03,p:.9,q:.1},{w:"n0",v:.6,t:0,f:70,h:.02,r:.01,p:0},{g:1,w:"square",v:2,t:0,f:360,r:.01,b:0,c:0}],[{w:"square",f:1150,v:.34,t:0,r:.03,h:.025,d:.03},{g:1,w:"n0",t:0,f:13,h:.025,d:.1,s:1,r:.1,v:1}],[{w:"triangle",f:200,v:1,d:.06,t:0,r:.06},{w:"n0",g:1,t:0,f:400,v:12,r:.02,d:.02}],[{w:"triangle",f:100,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.4,h:.015,d:.005,r:.005}],[{w:"n1",f:390,v:.25,r:.01,t:0}],[{w:"triangle",f:120,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.5,h:.015,d:.005,r:.005}],[{w:"n1",v:.25,f:390,r:.03,t:0,h:.005,d:.03}],[{w:"triangle",f:140,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"n1",v:.25,f:390,t:0,d:.2,r:.2},{w:"n0",v:.3,t:0,c:0,f:440,h:.005,d:.05}],[{w:"triangle",f:155,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"triangle",f:180,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"n1",v:.3,f:1200,d:.2,r:.2,h:.05,t:0},{w:"n1",t:0,v:1,d:.1,r:.1,p:1.2,f:440}],[{w:"triangle",f:220,v:.9,d:.12,h:.02,p:.5,t:0,r:.12},{g:1,w:"n0",v:5,t:.3,h:.015,d:.005,r:.005}],[{w:"n1",f:500,v:.15,d:.4,r:.4,h:0,t:0},{w:"n0",v:.1,t:0,r:.01,f:440}],[{w:"n1",v:.3,f:800,d:.2,r:.2,h:.05,t:0},{w:"square",t:0,v:1,d:.1,r:.1,p:.1,f:220,g:1}],[{w:"sine",f:1651,v:.15,d:.2,r:.2,h:0,t:0},{w:"sawtooth",g:1,t:1.21,v:7.2,d:.1,r:11,h:1},{g:1,w:"n0",v:3.1,t:.152,d:.002,r:.002}],null,[{w:"n1",v:.3,f:1200,d:.2,r:.2,h:.05,t:0},{w:"n1",t:0,v:1,d:.1,r:.1,p:1.2,f:440}],null,[{w:"n1",v:.3,f:555,d:.25,r:.25,h:.05,t:0},{w:"n1",t:0,v:1,d:.1,r:.1,f:440,a:.005,h:.02}],[{w:"sawtooth",f:776,v:.2,d:.3,t:0,r:.3},{g:1,w:"n0",v:2,t:0,f:776,a:.005,h:.02,d:.1,s:1,r:.1,c:0},{g:11,w:"sine",v:.1,t:0,f:22,d:.3,r:.3,b:0,c:0}],[{w:"n1",f:440,v:.15,d:.4,r:.4,h:0,t:0},{w:"n0",v:.4,t:0,r:.01,f:440}],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[{w:"sine",f:1720,v:.3,d:.02,t:0,r:.02},{w:"square",g:1,t:0,f:2876,v:6,d:.2,s:1,r:.2}],[{w:"sine",f:1720,v:.3,d:.25,t:0,r:.25},{w:"square",g:1,t:0,f:2876,v:6,d:.2,s:1,r:.2}]],drummap0:[[{w:"triangle",t:0,f:110,v:1,d:.05,h:.02,p:.1}],[{w:"triangle",t:0,f:150,v:.8,d:.1,p:.1,h:.02,r:.01}],[{w:"n0",f:392,v:.5,d:.01,p:0,t:0,r:.05}],[{w:"n0",f:33,d:.05,t:0}],[{w:"n0",f:100,v:.7,d:.03,t:0,r:.03,h:.02}],[{w:"n0",f:44,v:.7,d:.02,p:.1,t:0,h:.02}],[{w:"triangle",f:240,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:440,v:.2,r:.01,t:0}],[{w:"triangle",f:270,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:440,v:.2,d:.04,r:.04,t:0}],[{w:"triangle",f:300,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:440,v:.2,d:.1,r:.1,h:.02,t:0}],[{w:"triangle",f:320,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"triangle",f:360,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:150,v:.2,d:.1,r:.1,h:.05,t:0,p:.1}],[{w:"triangle",f:400,v:.9,d:.1,h:.02,p:.1,t:0}],[{w:"n0",f:150,v:.2,d:.1,r:.01,h:.05,t:0,p:.1}],[{w:"n0",f:150,v:.2,d:.1,r:.01,h:.05,t:0,p:.1}],[{w:"n0",f:440,v:.3,d:.1,p:.9,t:0,r:.1}],[{w:"n0",f:200,v:.2,d:.05,p:.9,t:0}],[{w:"n0",f:440,v:.3,d:.12,p:.9,t:0}],[{w:"sine",f:800,v:.4,d:.06,t:0}],[{w:"n0",f:150,v:.2,d:.1,r:.01,h:.05,t:0,p:.1}],[{w:"n0",f:33,v:.3,d:.2,p:.9,t:0}],[{w:"n0",f:300,v:.3,d:.14,p:.9,t:0}],[{w:"sine",f:200,d:.06,t:0}],[{w:"sine",f:150,d:.06,t:0}],[{w:"sine",f:300,t:0}],[{w:"sine",f:300,d:.06,t:0}],[{w:"sine",f:250,d:.06,t:0}],[{w:"square",f:300,v:.3,d:.06,p:.8,t:0}],[{w:"square",f:260,v:.3,d:.06,p:.8,t:0}],[{w:"sine",f:850,v:.5,d:.07,t:0}],[{w:"sine",f:790,v:.5,d:.07,t:0}],[{w:"n0",f:440,v:.3,a:.05,t:0}],[{w:"n0",f:440,v:.3,a:.05,t:0}],[{w:"triangle",f:1800,v:.4,p:.9,t:0,h:.03}],[{w:"triangle",f:1800,v:.3,p:.9,t:0,h:.13}],[{w:"n0",f:330,v:.3,a:.02,t:0,r:.01}],[{w:"n0",f:330,v:.3,a:.02,t:0,h:.04,r:.01}],[{w:"n0",f:440,v:.3,t:0}],[{w:"sine",f:800,t:0}],[{w:"sine",f:700,t:0}],[{w:"n0",f:330,v:.3,t:0}],[{w:"n0",f:330,v:.3,t:0,h:.1,r:.01,p:.7}],[{w:"sine",t:0,f:1200,v:.3,r:.01}],[{w:"sine",t:0,f:1200,v:.3,d:.2,r:.2}]],init:()=>{const t=this;t.pg=[],t.vol=[],t.ex=[],t.bend=[],t.rpnidx=[],t.brange=[],t.sustain=[],t.notetab=[],t.rhythm=[],t.masterTuningC=0,t.masterTuningF=0,t.tuningC=[],t.tuningF=[],t.maxTick=0,t.playTick=0,t.playing=0,t.releaseRatio=3.5;for(let r=0;r<16;++r)t.pg[r]=0,t.vol[r]=3*100*100/(127*127),t.bend[r]=0,t.brange[r]=256,t.tuningC[r]=0,t.tuningF[r]=0,t.rhythm[r]=0;t.rhythm[9]=1,t.preroll=.2,t.relcnt=0;const n=()=>{if(++t.relcnt>=3){t.relcnt=0;for(let r=t.notetab.length-1;r>=0;--r){const i=t.notetab[r];t.audioContext.currentTime>i.e&&(t._pruneNote(i),t.notetab.splice(r,1))}}if(t.playing&&t.song.ev.length>0){let r=t.song.ev[t.playIndex];for(;t.audioContext.currentTime+t.preroll>t.playTime;)if(r.m[0]==65361?(t.song.tempo=r.m[1],t.tick2Time=4*60/t.song.tempo/t.song.timebase):t.send(r.m,t.playTime),++t.playIndex,t.playIndex>=t.song.ev.length)if(t.loop)r=t.song.ev[t.playIndex=0],t.playTick=r.t;else{t.playTick=t.maxTick,t.playing=0;break}else r=t.song.ev[t.playIndex],t.playTime+=(r.t-t.playTick)*t.tick2Time,t.playTick=r.t}requestAnimationFrame(n)};requestAnimationFrame(n),t.internalcontext&&t.setAudioContext(new AudioContext),t.isReady=1},setMasterVol:t=>{const n=this;t!=null&&(n.masterVol=t),n.out&&(n.out.gain.value=n.masterVol)},setReverbLev:t=>{const n=this;t!=null&&(n.reverbLev=t);const r=parseFloat(n.reverbLev);n.rev&&!isNaN(r)&&(n.rev.gain.value=r*8)},setLoop:t=>{const n=this;n.loop=t},setVoices:t=>{const n=this;n.voices=t},getPlayStatus:()=>{const t=this;return{play:t.playing,maxTick:t.maxTick,curTick:t.playTick}},locateMIDI:t=>{const n=this;let r,i=n.playing;for(n.pause(),r=0;rn.song.ev[r].t;++r){const o=n.song.ev[r],s=o.m[0]&15;switch(o.m[0]&240){case 176:switch(o.m[1]){case 1:n.setModulation(s,o.m[2]);break;case 7:n.setChVol(s,o.m[2]);break;case 10:n.setPan(s,o.m[2]);break;case 11:n.setExpression(s,o.m[2]);break;case 64:n.setSustain(s,o.m[2]);break}break;case 192:n.pg[o.m[0]&15]=o.m[1];break}o.m[0]==65361&&(n.song.tempo=o.m[1])}n.song.ev[r]?(n.playIndex=r,n.playTick=n.song.ev[r].t):(n.playIndex=0,n.playTick=n.maxTick),i&&n.playMIDI()},getTimbreName:(t,n)=>{const r=this;return t==0?r.program[n].name:r.drummap[n-35].name},reset:()=>{const t=this;for(let n=0;n<16;++n)t.setProgram(n,0),t.setBendRange(n,256),t.setModulation(n,0),t.setChVol(n,100),t.setPan(n,64),t.resetAllControllers(n),t.allSoundOff(n),t.rhythm[n]=0,t.tuningC[n]=0,t.tuningF[n]=0;t.masterTuningC=0,t.masterTuningF=0,t.rhythm[9]=1},pause:()=>{const t=this;t.playing=0;for(let n=0;n<16;++n)t.allSoundOff(n)},resume:()=>{const t=this;if(!t.song)return;const n=t.audioContext.createOscillator();n.connect(t.audioContext.destination),n.frequency.value=0,n.start(0),n.stop(t.audioContext.currentTime+.001),t.playTick>=t.maxTick&&(t.playTick=0,t.playIndex=0),t.playTime=t.audioContext.currentTime+.1,t.tick2Time=4*60/t.song.tempo/t.song.timebase,t.playing=1},play:({data:t,masterVolume:n=.1})=>{const r=this;r.setMasterVol(n);function i(p,A){return(p[A]<<8)+p[A+1]}function o(p,A){return(p[A]<<16)+(p[A+1]<<8)+p[A+2]}function s(p,A){return(p[A]<<24)+(p[A+1]<<16)+(p[A+2]<<8)+p[A+3]}function l(p,A,g){return String.fromCharCode.apply(null,p.slice(A,A+g))}function a(p,A){let g=0,L;for(_=1;(L=p[A])&128;)g=(g<<7)+(L&127),++_,++A;return(g<<7)+L}function c(p,A,g,L){let v=g[L];_=1,v&128||(v=O,_=0),O=v;let T,S,y;switch(v&240){case 192:case 208:p.ev.push({t:A,m:[v,g[L+_]]}),_+=1;break;case 240:switch(v){case 240:case 247:T=a(g,L+1),E=1+_,S=Array.from(g.slice(L+E,L+E+T)),S.unshift(240),p.ev.push({t:A,m:S}),_+=T+1;break;case 255:switch(T=a(g,L+2),E=2+_,_=T+_+2,g[L+1]){case 2:p.copyright+=l(g,L+E,_-3);break;case 1:case 3:case 4:case 9:p.text=l(g,L+E,_-E);break;case 47:return 1;case 81:y=Math.floor(6e7/o(g,L+3)),p.ev.push({t:A,m:[65361,y]});break}break}break;default:p.ev.push({t:A,m:[v,g[L+_],g[L+_+1]]}),_+=2}return 0}r.pause();const f=new Uint8Array(t);let _=0,E=0,O=144,w=0,h=f.slice(0,4);if(h.toString()!="77,84,104,100")return;let m=s(f,4);const u=i(f,10);r.maxTick=0;const d=i(f,12)*4;w=m+8,r.song={copyright:"",text:"",tempo:120,timebase:d,ev:[]};for(let p=0;pr.maxTick&&(r.maxTick=A)}w+=m+8}r.song.ev.sort((p,A)=>p.t-A.t),r.reset(),r.locateMIDI(0),r.resume()},setQuality:t=>{const n=this;t!=null&&(n.quality=t);for(let r=0;r<128;++r)n.setTimbre(0,r,n.program0[r]);for(let r=0;r{const i=this,o={g:0,w:"sine",t:1,f:0,v:.5,a:0,h:.01,d:.01,s:0,r:.05,p:1,q:1,k:0};function s(l){for(n=0;n"u")&&(l[n][a]=o[a]);return l}t&&n>=35&&n<=81&&(i.drummap[n-35].p=s(r)),t==0&&n>=0&&n<=127&&(i.program[n].p=s(r))},_pruneNote:t=>{const n=this;for(let r=t.o.length-1;r>=0;--r){if(t.o[r].frequency?t.o[r].frequency.cancelScheduledValues(0):t.o[r].playbackRate.cancelScheduledValues(0),t.g[r].gain.cancelScheduledValues(0),t.o[r].stop(),t.o[r].detune)try{n.chmod[t.ch].disconnect(t.o[r].detune)}catch{}t.g[r].gain.value=0}},_limitVoices:()=>{const t=this;t.notetab.sort((n,r)=>n.f!=r.f?n.f-r.f:n.e!=r.e?r.e-n.e:r.t-n.t);for(let n=t.notetab.length-1;n>=0;--n){const r=t.notetab[n];(t.audioContext.currentTime>r.e||n>=t.voices-1)&&(t._pruneNote(r),t.notetab.splice(n,1))}},_note:(t,n,r,i,o)=>{const s=this;let l,a,c;const f=[],_=[],E=[],O=[],w=[],h=440*Math.pow(2,(r-69+s.masterTuningC+s.tuningC[n]+(s.masterTuningF+s.tuningF[n])/8192)/12);s._limitVoices(n,r);for(let m=0;m10?(l=_[c.g-11].gain,a=1,O[m]=O[c.g-11]*c.t+c.f):f[c.g-1].frequency?(l=f[c.g-1].frequency,a=O[c.g-1],O[m]=O[c.g-1]*c.t+c.f):(l=f[c.g-1].playbackRate,a=O[c.g-1]/440,O[m]=O[c.g-1]*c.t+c.f),c.w[0]){case"n":f[m]=s.audioContext.createBufferSource(),f[m].buffer=s.noiseBuf[c.w],f[m].loop=!0,f[m].playbackRate.value=O[m]/440,c.p!=1&&s._setParamTarget(f[m].playbackRate,O[m]/440*c.p,t,c.q),f[m].detune&&(s.chmod[n].connect(f[m].detune),f[m].detune.value=s.bend[n]);break;default:f[m]=s.audioContext.createOscillator(),f[m].frequency.value=O[m],c.p!=1&&s._setParamTarget(f[m].frequency,O[m]*c.p,t,c.q),c.w[0]=="w"?f[m].setPeriodicWave(s.wave[c.w]):f[m].type=c.w,f[m].detune&&(s.chmod[n].connect(f[m].detune),f[m].detune.value=s.bend[n]);break}_[m]=s.audioContext.createGain(),w[m]=c.r,f[m].connect(_[m]),_[m].connect(l),E[m]=a*c.v,c.k&&(E[m]*=Math.pow(2,(r-60)/12*c.k)),c.a?(_[m].gain.value=0,_[m].gain.setValueAtTime(0,t),_[m].gain.linearRampToValueAtTime(E[m],t+c.a)):_[m].gain.setValueAtTime(E[m],t),s._setParamTarget(_[m].gain,c.s*E[m],u,c.d),f[m].start(t),s.rhythm[n]&&(f[m].onended=()=>{try{f[m].detune&&s.chmod[n].disconnect(f[m].detune)}catch{}},f[m].stop(t+o[0].d*s.releaseRatio))}s.rhythm[n]||s.notetab.push({t,e:99999,ch:n,n:r,o:f,g:_,t2:t+c.a,v:E,r:w,f:0})},_setParamTarget:(t,n,r,i)=>{i!=0?t.setTargetAtTime(n,r,i):t.setValueAtTime(n,r)},_releaseNote:(t,n)=>{const r=this;if(t.ch!=9)for(let i=t.g.length-1;i>=0;--i)t.g[i].gain.cancelScheduledValues(n),n==t.t2?t.g[i].gain.setValueAtTime(t.v[i],n):n{const i=this;i.chmod[t].gain.setValueAtTime(n*100/127,i._tsConv(r))},setChVol:(t,n,r)=>{const i=this;i.vol[t]=3*n*n/(127*127),i.chvol[t].gain.setValueAtTime(i.vol[t]*i.ex[t],i._tsConv(r))},setPan:(t,n,r)=>{const i=this;i.chpan[t]&&i.chpan[t].pan.setValueAtTime((n-64)/64,i._tsConv(r))},setExpression:(t,n,r)=>{const i=this;i.ex[t]=n*n/(127*127),i.chvol[t].gain.setValueAtTime(i.vol[t]*i.ex[t],i._tsConv(r))},setSustain:(t,n,r)=>{const i=this;if(i.sustain[t]=n,r=i._tsConv(r),n<64)for(let o=i.notetab.length-1;o>=0;--o){const s=i.notetab[o];r>=s.t&&s.ch==t&&s.f==1&&i._releaseNote(s,r)}},allSoundOff:t=>{const n=this;for(let r=n.notetab.length-1;r>=0;--r){const i=n.notetab[r];i.ch==t&&(n._pruneNote(i),n.notetab.splice(r,1))}},resetAllControllers:t=>{const n=this;n.bend[t]=0,n.ex[t]=1,n.rpnidx[t]=16383,n.sustain[t]=0,n.chvol[t]&&(n.chvol[t].gain.value=n.vol[t]*n.ex[t],n.chmod[t].gain.value=0)},setBendRange:(t,n)=>{const r=this;r.brange[t]=n},setProgram:(t,n)=>{const r=this;r.pg[t]=n},_tsConv:t=>{const n=this;return t==null||t<=0?(t=0,n.audioContext&&(t=n.audioContext.currentTime)):n.tsmode&&(t=t*.001-n.tsdiff),t},setBend:(t,n,r)=>{const i=this;r=i._tsConv(r);const o=i.brange[t]*100/127;i.bend[t]=(n-8192)*o/8192;for(let s=i.notetab.length-1;s>=0;--s){const l=i.notetab[s];if(l.ch==t)for(let a=l.o.length-1;a>=0;--a)l.o[a].frequency&&l.o[a].detune&&l.o[a].detune.setValueAtTime(i.bend[t],r)}},noteOff:(t,n,r)=>{const i=this;if(!i.rhythm[t]){r=i._tsConv(r);for(let o=i.notetab.length-1;o>=0;--o){const s=i.notetab[o];r>=s.t&&s.ch==t&&s.n==n&&s.f==0&&(s.f=1,i.sustain[t]<64&&i._releaseNote(s,r))}}},noteOn:(t,n,r,i)=>{const o=this;if(r==0){o.noteOff(t,n,i);return}if(i=o._tsConv(i),o.rhythm[t]){n>=35&&n<=81&&o._note(i,t,n,r,o.drummap[n-35].p);return}o._note(i,t,n,r,o.program[o.pg[t]].p)},setTsMode:t=>{const n=this;n.tsmode=t},send:(t,n)=>{const r=this,i=t[0]&15,o=t[0]&-16;if(!(o<128||o>=256))switch(r.audioContext.state=="suspended"&&r.audioContext.resume(),o){case 176:switch(t[1]){case 1:r.setModulation(i,t[2],n);break;case 7:r.setChVol(i,t[2],n);break;case 10:r.setPan(i,t[2],n);break;case 11:r.setExpression(i,t[2],n);break;case 64:r.setSustain(i,t[2],n);break;case 98:case 99:r.rpnidx[i]=16383;break;case 100:r.rpnidx[i]=r.rpnidx[i]&16256|t[2];break;case 101:r.rpnidx[i]=r.rpnidx[i]&127|t[2]<<7;break;case 6:switch(r.rpnidx[i]){case 0:r.brange[i]=(t[2]<<7)+(r.brange[i]&127);break;case 1:r.tuningF[i]=(t[2]<<7)+(r.tuningF[i]+8192&127)-8192;break;case 2:r.tuningC[i]=t[2]-64;break}break;case 38:switch(r.rpnidx[i]){case 0:r.brange[i]=r.brange[i]&16256|t[2];break;case 1:r.tuningF[i]=r.tuningF[i]+8192&16256|t[2]-8192;break}break;case 120:case 123:case 124:case 125:case 126:case 127:r.allSoundOff(i);break;case 121:r.resetAllControllers(i);break}break;case 192:r.setProgram(i,t[1]);break;case 224:r.setBend(i,t[1]+(t[2]<<7),n);break;case 144:r.noteOn(i,t[1],t[2],n);break;case 128:r.noteOff(i,t[1],n);break;case 240:if(t[0]==255){r.reset();break}if(t[0]==240&&(t[1]==127&&t[3]==4&&(t[4]==3&&t.length>=8&&(r.masterTuningF=t[6]*128+t[5]-8192),t[4]==4&&t.length>=8&&(r.masterTuningC=t[6]-64)),t[1]==65&&t[3]==66&&t[4]==18&&t[5]==64&&(t[6]&240)==16&&t[7]==21)){const s=[9,0,1,2,3,4,5,6,7,8,10,11,12,13,14,15][t[6]&15];r.rhythm[s]=t[8]}break}},_createWave:t=>{const n=this,r=new Float32Array(t.length),i=new Float32Array(t.length);for(let o=1;othis.audioContext,setAudioContext:(t,n)=>{const r=this;r.audioContext=r.audioContext=t,r.dest=n,n||(r.dest=t.destination),r.out=r.audioContext.createGain(),r.comp=r.audioContext.createDynamicsCompressor();const i=r.audioContext.sampleRate*.5|0;r.convBuf=r.audioContext.createBuffer(2,i,r.audioContext.sampleRate),r.noiseBuf={},r.noiseBuf.n0=r.audioContext.createBuffer(1,i,r.audioContext.sampleRate),r.noiseBuf.n1=r.audioContext.createBuffer(1,i,r.audioContext.sampleRate);const o=r.convBuf.getChannelData(0),s=r.convBuf.getChannelData(1),l=r.noiseBuf.n0.getChannelData(0),a=r.noiseBuf.n1.getChannelData(0);for(let c=0;c0;)J.preInit.pop()();J.init=async function(){await r2(),uf()};function Kv(e){return J.locateFile?J.locateFile(e,al):al+e}function Wv(e,t,n){switch(t=t||"i8",t.charAt(t.length-1)==="*"&&(t="i32"),t){case"i1":return ll[e>>0];case"i8":return ll[e>>0];case"i16":return wm[e>>1];case"i32":return Zu[e>>2];case"i64":return Zu[e>>2];case"float":return xm[e>>2];case"double":return ym[e>>3];default:Dl("invalid type for getValue: "+t)}return null}function Zv(e,t){ll.set(e,t)}function Vv(e){J.HEAP8=ll=new Int8Array(e),J.HEAP16=wm=new Int16Array(e),J.HEAP32=Zu=new Int32Array(e),J.HEAPU8=vm=new Uint8Array(e),J.HEAPU16=new Uint16Array(e),J.HEAPU32=new Uint32Array(e),J.HEAPF32=xm=new Float32Array(e),J.HEAPF64=ym=new Float64Array(e)}function Yv(){if(J.preRun)for(typeof J.preRun=="function"&&(J.preRun=[J.preRun]);J.preRun.length;)Jv(J.preRun.shift());kl(Sm)}function qv(){kl(Nm)}function Xv(){kl(Gv)}function Qv(){if(J.postRun)for(typeof J.postRun=="function"&&(J.postRun=[J.postRun]);J.postRun.length;)e2(J.postRun.shift());kl(Im)}function Jv(e){Sm.unshift(e)}function e2(e){Im.unshift(e)}function t2(){cs++}function n2(){if(cs--,cs==0&&ya){var e=ya;ya=null,e()}}function Dl(e){J.onAbort&&J.onAbort(e),e+="",Am(e),gm=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw t}async function r2(){var e={a:zv};t2();try{const n=await fetch(b_);if(!n.ok)throw"failed to load wasm binary file at '"+b_+"'";const r=await n.arrayBuffer();var t=(await WebAssembly.instantiate(r,e)).instance.exports;J.asm=t,k_=J.asm.d,Vv(k_.buffer),Vu=J.asm.H,n2()}catch(n){Am("failed to asynchronously prepare wasm: "+n),Dl(n)}}function kl(e){for(;e.length>0;){var t=e.shift();if(typeof t=="function"){t(J);continue}var n=t.func;typeof n=="number"?t.arg===void 0?Vu.get(n)():Vu.get(n)(t.arg):n(t.arg===void 0?null:t.arg)}}function i2(e,t,n){vm.copyWithin(e,t,t+n)}function o2(e){Dl("OOM ("+e+")")}function s2(e){o2(e)}function a2(e){}function uf(e){if(cs>0||(Yv(),cs>0))return;function t(){cl||(cl=!0,J.calledRun=!0,!gm&&(qv(),Xv(),J.onRuntimeInitialized&&J.onRuntimeInitialized(),Qv()))}J.setStatus?(J.setStatus("Running..."),setTimeout(function(){setTimeout(function(){J.setStatus("")},1),t()},1)):t()}const si=4096,Sa=256,us=48e3,Ao=[],U_=1;let Na,Yu,wn,fs,Bm,qu,Vr;function Pm(e){if(Ao.length>0){Ao.push(e);return}for(Ao.push(e);Ao.length>0;)Ao.shift()()}function l2(e){Pm(()=>{Vr!==void 0&&(J._xm_free_context(Vr),Vr=void 0);const t=new Int8Array(e),n=J._malloc(t.length);J.writeArrayToMemory(t,n);const r=J._xm_create_context(Yu,n,us);if(J._free(n),r!==0)throw Vr=void 0,new Error("Module context not defined");Vr=J.getValue(Yu,"*")})}function c2(e){const t=e.getChannelData(0),n=e.getChannelData(1);for(let r=0;r1||n[i]<-1||n[i]>1)&&(qu=!0)}}function u2(){const e=us*wn.currentTime+si;fs=wn.createGain(),fs.gain.value=0,Xu(0,e)(),Xu(1,e+si)()}function Xu(e,t){return()=>{const n=wn.createBufferSource();if(n.buffer=Bm[e],n.onended=Xu(e,t+2*si),Vr!==void 0)Pm(()=>c2(n.buffer));else{const r=n.buffer.getChannelData(0),i=n.buffer.getChannelData(1);for(let o=0;osetTimeout(()=>fs.gain.value=t,500))}const p2=Object.freeze(Object.defineProperty({__proto__:null,get audioContext(){return wn},init:Cm,get out(){return fs},pause:f2,play:_2,resume:d2},Symbol.toStringTag,{value:"Module"}));var Dm,ds,$o,na,go,ra,Bc,ia,Pc,vo,Cc;function E2(e,t){var n,r;this.author="Hermit",this.sourcecode="http://hermit.uw.hu",this.version="0.9.1.7",this.year="2019",typeof AudioContext<"u"?ds=n=new AudioContext:ds=n=new webkitAudioContext;var i=n.sampleRate;typeof n.createJavaScriptNode=="function"?r=n.createJavaScriptNode(e,0,1):r=n.createScriptProcessor(e,0,1),$o=n.createGain(),r.onaudioprocess=function(H){for(var ve=H.outputBuffer,G=ve.getChannelData(0),ze=0;ze>3)]&Math.pow(2,7-G%8);for(G=0;G=32?8580:6581,g[1]=(H[119]&192)>=128?8580:6581,g[2]=(H[118]&3)>=3?8580:6581,v[1]=H[122]>=66&&(H[122]<128||H[122]>=224)?53248+H[122]*16:0,v[2]=H[123]>=66&&(H[123]<128||H[123]>=224)?53248+H[123]*16:0,D=1+(v[1]>0)+(v[2]>0),S=1,P!==null&&P(),V(d),vo=1},this.start=function(H){V(H),R!==null&&R(),this.playcont()},this.playcont=function(){r.connect($o).connect(n.destination),n.state=="suspended"&&n.resume()},this.pause=function(){S&&y&&r.disconnect($o)},this.stop=function(){this.pause(),V(d)},this.gettitle=function(){return String.fromCharCode.apply(null,f)},this.getauthor=function(){return String.fromCharCode.apply(null,_)},this.getinfo=function(){return String.fromCharCode.apply(null,E)},this.getsubtunes=function(){return p},this.getprefmodel=function(){return g[0]},this.getmodel=function(){return L},this.getoutput=function(){return qn/a*(T[54296]&15)},this.getplaytime=function(){return parseInt(go)},this.getcia=function(){return T[56324]+T[56325]*256},this.getSIDAddress=function(H){return v[H]},this.readregister=function(H){return T[H]},this.enableVoices=function(H){Q=H},this.setmodel=function(H){L=H},this.setvolume=function(H){X=H},this.setloadcallback=function(H){P=H},this.setstartcallback=function(H){R=H},this.setendcallback=function(H,ve){na=H,A=ve},this.setbuffercallback=function(H){Cc=H},this.setSpeedMultiplier=function(H){Te(H)},this.issuspended=function(){return n.state=="suspended"};var o=985248,s=50,l=3,a=65536*l*16,c=[0,1,.6,.4],f=new Uint8Array(32),_=new Uint8Array(32),E=new Uint8Array(32),O=new Uint8Array(32),w=4096,h=4096,m=4099,u=4099,d=0,p=1,A=0,g=[8580,8580,8580],L=8580,v=[54272,0,0],T=new Uint8Array(65536),S=0,y=0,N=0,P=null,R=null;na=null,go=0,ra=0;var k=o/i,F=i/s,z=1,X=.5,I=0,q,D=1,le=0,Q=511;function V(H){if(S){y=0,d=H,Q=511,Le(h),xs(),M=d,T[1]=55,T[56325]=0;for(var ve=1e5;ve>=0&&!_e();ve--);O[d]||T[56325]?(T[56325]||(T[56324]=36,T[56325]=64),F=(T[56324]+T[56325]*256)/k):F=i/s,m==0?u=(T[1]&3)<2?T[65534]+T[65535]*256:T[788]+T[789]*256:(u=m,u>=57344&&T[1]==55&&(T[1]=53)),Le(u),z=1,N=0,I=0,go=0,ra=0,y=1}}function de(){if(S&&y&&(z--,go+=1/(i/vo),z<=0&&(z=F,N=0,ne=u,W=255),N==0)){for(;I<=k;){if(q=ne,_e()>=254){N=1;break}else I+=ee;if((T[1]&3)>1&&q<57344&&(ne==59953||ne==60033)){N=1;break}(K==56325||K==56324)&&T[1]&3&&O[d]&&(F=(T[56324]+T[56325]*256)/k),fe>=54304&&fe<55296&&T[1]&3&&!(v[1]<=fe&&fe0&&parseInt(go)==parseInt(A)&&na!==null&&ra==0&&(ra=1,na()),le=io(0,54272),v[1]&&(le+=io(1,v[1])),v[2]&&(le+=io(2,v[2])),le*X*c[D]+(Math.random()*t-t/2)}function Te(H){vo=H,O[d]||T[56325]?(k=o*vo/i,F=(T[56324]+T[56325]*256)/k):F=i/(s*vo)}var pe=[1,33,4,36,0,64,8,40],Se=[128,64,1,2],ne=0,M=0,ie=0,ue=0,Y=0,W=255,ce=0,K=0,C=0,ee=0,fe=0;function Le(H){ne=H,M=0,ue=0,Y=0,C=0,W=255}function _e(){if(ce=T[ne],ee=2,fe=0,ce&1){switch(ce&31){case 1:case 3:K=T[T[++ne]+ue]+T[T[ne]+ue+1]*256,ee=6;break;case 17:case 19:K=T[T[++ne]]+T[T[ne]+1]*256+Y,ee=6;break;case 25:case 31:K=T[++ne]+T[++ne]*256+Y,ee=5;break;case 29:K=T[++ne]+T[++ne]*256+ue,ee=5;break;case 13:case 15:K=T[++ne]+T[++ne]*256,ee=4;break;case 21:K=T[++ne]+ue,ee=4;break;case 5:case 7:K=T[++ne],ee=3;break;case 23:K=T[++ne]+Y,ee=4;break;case 9:case 11:K=++ne,ee=2}switch(K&=65535,ce&224){case 96:ie=M,M+=T[K]+(C&1),C&=20,C|=M&128|M>255,M&=255,C|=!M<<1|(!((ie^T[K])&128)&&(ie^M)&128)>>1;break;case 224:ie=M,M-=T[K]+!(C&1),C&=20,C|=M&128|M>=0,M&=255,C|=!M<<1|((ie^T[K])&128&&(ie^M)&128)>>1;break;case 192:ie=M-T[K],C&=124,C|=!(ie&255)<<1|ie&128|ie>=0;break;case 0:M|=T[K],C&=125,C|=!M<<1|M&128;break;case 32:M&=T[K],C&=125,C|=!M<<1|M&128;break;case 64:M^=T[K],C&=125,C|=!M<<1|M&128;break;case 160:M=T[K],C&=125,C|=!M<<1|M&128,(ce&3)==3&&(ue=M);break;case 128:T[K]=M&((ce&3)==3?ue:255),fe=K}}else if(ce&2){switch(ce&31){case 30:K=T[++ne]+T[++ne]*256+((ce&192)!=128?ue:Y),ee=5;break;case 14:K=T[++ne]+T[++ne]*256,ee=4;break;case 22:K=T[++ne]+((ce&192)!=128?ue:Y),ee=4;break;case 6:K=T[++ne],ee=3;break;case 2:K=++ne,ee=2}switch(K&=65535,ce&224){case 0:C&=254;case 32:(ce&15)==10?(M=(M<<1)+(C&1),C&=60,C|=M&128|M>255,M&=255,C|=!M<<1):(ie=(T[K]<<1)+(C&1),C&=60,C|=ie&128|ie>255,ie&=255,C|=!ie<<1,T[K]=ie,ee+=2);break;case 64:C&=254;case 96:(ce&15)==10?(ie=M,M=(M>>1)+(C&1)*128,C&=60,C|=M&128|ie&1,M&=255,C|=!M<<1):(ie=(T[K]>>1)+(C&1)*128,C&=60,C|=ie&128|T[K]&1,ie&=255,C|=!ie<<1,T[K]=ie,ee+=2);break;case 192:ce&4?(T[K]--,T[K]&=255,C&=125,C|=!T[K]<<1|T[K]&128,ee+=2):(ue--,ue&=255,C&=125,C|=!ue<<1|ue&128);break;case 160:if((ce&15)!=10)ue=T[K];else if(ce&16){ue=W;break}else ue=M;C&=125,C|=!ue<<1|ue&128;break;case 128:ce&4?(T[K]=ue,fe=K):ce&16?W=ue:(M=ue,C&=125,C|=!M<<1|M&128);break;case 224:ce&4&&(T[K]++,T[K]&=255,C&=125,C|=!T[K]<<1|T[K]&128,ee+=2)}}else if((ce&12)==8)switch(ce&240){case 96:W++,W&=255,M=T[256+W],C&=125,C|=!M<<1|M&128,ee=4;break;case 192:Y++,Y&=255,C&=125,C|=!Y<<1|Y&128;break;case 224:ue++,ue&=255,C&=125,C|=!ue<<1|ue&128;break;case 128:Y--,Y&=255,C&=125,C|=!Y<<1|Y&128;break;case 0:T[256+W]=C,W--,W&=255,ee=3;break;case 32:W++,W&=255,C=T[256+W],ee=4;break;case 64:T[256+W]=M,W--,W&=255,ee=3;break;case 144:M=Y,C&=125,C|=!M<<1|M&128;break;case 160:Y=M,C&=125,C|=!Y<<1|Y&128;break;default:pe[ce>>5]&32?C|=pe[ce>>5]&223:C&=255-(pe[ce>>5]&223)}else if((ce&31)==16)ne++,ie=T[ne],ie&128&&(ie-=256),ce&32?C&Se[ce>>6]&&(ne+=ie,ee=3):C&Se[ce>>6]||(ne+=ie,ee=3);else{switch(ce&31){case 0:K=++ne,ee=2;break;case 28:K=T[++ne]+T[++ne]*256+ue,ee=5;break;case 12:K=T[++ne]+T[++ne]*256,ee=4;break;case 20:K=T[++ne]+ue,ee=4;break;case 4:K=T[++ne],ee=3}switch(K&=65535,ce&224){case 0:T[256+W]=ne%256,W--,W&=255,T[256+W]=ne/256,W--,W&=255,T[256+W]=C,W--,W&=255,ne=T[65534]+T[65535]*256-1,ee=7;break;case 32:ce&15?(C&=61,C|=T[K]&192|!(M&T[K])<<1):(T[256+W]=(ne+2)%256,W--,W&=255,T[256+W]=(ne+2)/256,W--,W&=255,ne=T[K]+T[K+1]*256-1,ee=6);break;case 64:if(ce&15)ne=K-1,ee=3;else{if(W>=255)return 254;W++,W&=255,C=T[256+W],W++,W&=255,ie=T[256+W],W++,W&=255,ne=T[256+W]+ie*256-1,ee=6}break;case 96:if(ce&15)ne=T[K]+T[K+1]*256-1,ee=5;else{if(W>=255)return 255;W++,W&=255,ie=T[256+W],W++,W&=255,ne=T[256+W]+ie*256-1,ee=6}break;case 192:ie=Y-T[K],C&=124,C|=!(ie&255)<<1|ie&128|ie>=0;break;case 224:ie=ue-T[K],C&=124,C|=!(ie&255)<<1|ie&128|ie>=0;break;case 160:Y=T[K],C&=125,C|=!Y<<1|Y&128;break;case 128:T[K]=Y,fe=K}}return ne++,ne&=65535,0}var Ee=1,Be=2,Ce=4,De=8,et=16,rt=32,mt=64,Dn=128,Wn=16,on=64,sn=128,U=[1,2,4,1,2,4,1,2,4],oe=16,B=32,$=64,b=128,j=[0,0,0,0,0,0,0,0,0],re=[0,0,0,0,0,0,0,0,0],ae=[0,0,0,0,0,0,0,0,0],he=[0,0,0,0,0,0,0,0,0],qe=[0,0,0,0,0,0,0,0,0],be=[0,0,0,0,0,0,0,0,0],Zn=[0,0,0,0,0,0,0,0,0],jr=[0,0,0],fr=[0,0,0],Os=[8388600,8388600,8388600,8388600,8388600,8388600,8388600,8388600,8388600],As=[0,0,0,0,0,0,0,0,0],gs=[0,0,0,0,0,0,0,0,0],vs,Qi=[0,0,0],Ji=[0,0,0],ws=-2*3.14*(12500/256)/i,Fl=-2*3.14*(2e4/256)/i,eo,Zt,Vn,Nt,Hr,dr,Ge,_r,Yn,to,me,It,kn,Ne,mn,no,ro,qn;function xs(){var H;for(H=54272;H<=55295;H++)T[H]=0;for(H=56832;H<=57343;H++)T[H]=0;for(H=0;H<9;H++)j[H]=Wn,re[H]=ae[H]=he[H]=qe[H]=0}function io(H,ve){ro=0,qn=0;for(var G=H*l;G<(H+1)*l;G++)eo=j[G]&Ee,Zt=ve+(G-H*l)*7,Vn=T[Zt+4],Nt=Vn&240,Hr=Vn&De,_r=T[Zt+6],me=0,eo!=(Vn&Ee)&&(eo?j[G]&=255-(Ee|sn|on):(j[G]=Ee|sn|on,(_r&15)>(qe[G]&15)&&(me=1))),qe[G]=_r,re[G]+=k,re[G]>=32768&&(re[G]-=32768),j[G]&sn?(Ge=T[Zt+5]>>4,dr=so[Ge]):j[G]&on?(Ge=T[Zt+5]&15,dr=so[Ge]):(Ge=_r&15,dr=so[Ge]),Ge=Ml[Ge],re[G]>=dr&&re[G]=255&&(ae[G]=255,j[G]&=255-sn)):(!(j[G]&on)||ae[G]>(_r>>4)+(_r&240))&&(ae[G]-=Ge,ae[G]<=0&&ae[G]+Ge!=0&&(ae[G]=0,j[G]|=Wn))),he[G]=0)),ae[G]&=255,Yn=(T[Zt]+T[Zt+1]*256)*k,Hr||Vn&Be&&jr[H]?be[G]=0:(be[G]+=Yn,be[G]>16777215&&(be[G]-=16777216)),to=be[G]&8388608,jr[H]=to>(Zn[G]&8388608)?1:0,Nt&Dn?(me=Os[G],((be[G]&1048576)!=(Zn[G]&1048576)||Yn>=1048576)&&(Ge=me&4194304^(me&131072)<<5,me=(me<<1)+(Ge>0||Hr)&8388607,Os[G]=me),Ne=Nt&112?0:((me&1048576)>>5)+((me&262144)>>4)+((me&16384)>>1)+((me&2048)<<1)+((me&512)<<2)+((me&32)<<5)+((me&4)<<7)+((me&1)<<8)):Nt&mt?(It=(T[Zt+2]+(T[Zt+3]&15)*256)*16,me=Yn>>9,0me&&(It=me),me=be[G]>>8,Nt==mt?(Ge=256/(Yn>>16),Hr?Ne=65535:me65535&&(kn=65535),Ne=kn-(It-me)*Ge,Ne<0&&(Ne=0)):(kn=It*Ge,kn>65535&&(kn=65535),Ne=(65535-me)*Ge-kn,Ne>=0&&(Ne=65535),Ne&=65535)):(Ne=me>=It||Hr?65535:0,Nt&et?Nt&rt?Ne=Ne?ci(G,Pc,me>>4,1):0:(me=be[G]^(Vn&Ce?fr[H]:0),Ne=Ne?ci(G,ia,(me^(me&8388608?16777215:0))>>11,0):0):Nt&rt&&(Ne=Ne?ci(G,ia,me>>4,1):0))):Nt&rt?(Ne=be[G]>>8,Nt&et?Ne=ci(G,Bc,Ne>>4,1):(Ge=Yn/18874368,Ne+=Ne*Ge,Ne>65535&&(Ne=65535-(Ne-65536)/Ge))):Nt&et&&(me=be[G]^(Vn&Ce?fr[H]:0),Ne=(me^(me&8388608?16777215:0))>>7),Nt?As[G]=Ne:Ne=As[G],Zn[G]=be[G],fr[H]=to,Q&1<>8),T[ve+28]=ae[3],mn=(T[ve+21]&7)/8+T[ve+22]+.2,L==8580?(mn=1-Math.exp(mn*ws),no=Math.pow(2,(4-(T[ve+23]>>4))/8)):(mn<24?mn=.035:mn=1-1.263*Math.exp(mn*Fl),no=T[ve+23]>95?8/(T[ve+23]>>4):1.41),me=ro+Ji[H]*no+Qi[H],T[ve+24]&$&&(qn-=me),me=Ji[H]-me*mn,Ji[H]=me,T[ve+24]&B&&(qn-=me),me=Qi[H]+me*mn,Qi[H]=me,T[ve+24]&oe&&(qn+=me),qn/a*(T[ve+24]&15)}function ci(H,ve,G,ze){return ze&&L==6581&&(G&=2047),vs=(ve[G]+gs[H])/2,gs[H]=ve[G],vs}function oo(H,ve,G,ze){for(var Rt=0;Rt<4096;Rt++){H[Rt]=0;for(var ui=0;ui<12;ui++){for(var Ss=0,fi=0;fi<12;fi++)Ss+=ve/Math.pow(G,Math.abs(fi-ui))*((Rt>>fi&1)-.5);H[Rt]+=Ss>=ze?Math.pow(2,ui):0}H[Rt]*=12}}Bc=new Array(4096),oo(Bc,.8,2.4,.64),ia=new Array(4096),oo(ia,1.4,1.9,.68),Pc=new Array(4096),oo(Pc,.8,2.5,.64);var ys=Math.max(k,9),so=[ys,32*1,63*1,95*1,149*1,220*1,267*1,313*1,392*1,977*1,1954*1,3126*1,3907*1,11720*1,19532*1,31251*1],Ml=[Math.ceil(ys/9),1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],$l=[1,30,30,30,30,30,30,16,16,16,16,16,16,16,16,8,8,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}async function km(){Dm=new E2(16384,5e-4)}function m2(){ds.suspend()}function T2(){ds.resume()}function h2({data:e,track:t,masterVolume:n=.4}){Dm.play(e,t),$o.gain.value=n}const L2=Object.freeze(Object.defineProperty({__proto__:null,get audioContext(){return ds},init:km,get out(){return $o},pause:m2,play:h2,resume:T2},Symbol.toStringTag,{value:"Module"})),O2="audio/midi",A2="audio/xm",g2="audio/prs.sid",v2="music-track-",w2="./"+v2,Qu=[{masterVolume:.1},{masterVolume:.7},{masterVolume:.4},{masterVolume:.1},{masterVolume:1.2,track:1},{masterVolume:1.8},{masterVolume:.6},{masterVolume:.8},{masterVolume:1.1},{masterVolume:.5},{masterVolume:.7},{masterVolume:.7}];let oa=Math.floor(Math.random()*Qu.length),Xn,Dc,$t,bl,Ri,Ju,e0,bm=128;document.onvisibilitychange=()=>{$t&&bl&&(document.hidden?$t.pause():($t.resume(),requestAnimationFrame(ff)))};async function x2({data:e,contentType:t,masterVolume:n,track:r}){$t=null,t===O2?y2():t===A2?await S2():t===g2&&N2(),$t&&($t.play({data:e,masterVolume:n,track:r}),Um())}function y2(){Xn||(Xn=new Hv({quality:1,useReverb:1}),Xn.setLoop(!0),Xn.setTimbre(1,49,[{w:"n0",f:150,v:.2,d:.1,r:.1,h:.05,t:0,p:.1}]),Xn.setTimbre(1,53,[{w:"n0",f:440,v:.3,d:.1,p:.9,t:0,r:.1}]),Xn.setTimbre(0,28,[{w:"sine",v:.8,d:1,f:-1},{w:"triangle",v:4,f:1,d:.4,s:.5,g:1,t:3}]),Xn.setTimbre(0,38,[{w:"sine",v:.6,d:.3},{w:"triangle",v:4,f:1,d:.4,s:.5,g:1,t:3},{w:"sawtooth",v:.1,a:.03,d:.5,s:.3,r:.2}]),Xn.setTimbre(0,39,[{w:"sine",v:.5,d:.3},{w:"square",v:3,f:-1,d:1,s:.7,g:1},{w:"sawtooth",v:.1,a:.03,d:.6,s:.3,r:.2}])),$t=Xn}async function S2(){Dc||(await Cm(),Dc=p2),$t=Dc}function N2(){km(),$t=L2}function Um(){Ri=$t.audioContext.createAnalyser(),$t.out.connect(Ri),Ri.fftSize=bm,Ju=new Uint8Array(Ri.frequencyBinCount)}async function I2({onSetFrequencyData:e}){const n=await(await fetch(w2+(oa+1))).blob(),r=n.type,i=await n.arrayBuffer(),{masterVolume:o,track:s}=Qu[oa];return oa=(oa+1)%Qu.length,await x2({data:i,contentType:r,masterVolume:o,track:s}),bl=!0,e0=e,$t&&requestAnimationFrame(ff),{}}function ff(){Ri.getByteFrequencyData(Ju),e0&&e0(Array.from(Ju)),bl&&!document.hidden&&requestAnimationFrame(ff)}function R2(){bl=!1,$t&&$t.pause()}function B2(e){bm=e,Ri&&Um()}const P2=Object.freeze(Object.defineProperty({__proto__:null,play:I2,setFftSize:B2,stop:R2},Symbol.toStringTag,{value:"Module"})),C2=" ",D2="Enter",k2="Tab",b2="x",U2="c",F2="Enter",M2="r",$2="v",j2="d",H2="f",G2="i",z2="e",K2="a",W2=["Backspace","Delete"],Z2="ArrowDown",V2="ArrowUp",Y2="ArrowLeft",q2="ArrowRight",X2="PageUp",Q2="PageDown",J2="Home",ew="End",tw="ArrowLeft",nw="ArrowRight",rw="application/octet-stream",Ul="skin-default",df="skin-dos",iw={accentColor:"#FF672E",skin:Ul,hideNavigationBar:!1,hideDownloadManager:!1,hideInfobar:!1,bufferedWrite:!0,checkSignature:!1,keepOrder:!0,maxWorkers:2,chunkSize:512*1024,promptForExportPassword:!0,defaultExportPassword:"",zoomFactor:100},_f=".zip",Fm=[_f,".docx",".epub",".jar",".odp",".ods",".odt",".pptx",".xlsx",".key",".pages",".numbers",".apk",".ipa"],ow={"application/zip":[_f],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/epub+zip":[".epub"],"application/java-archive":[".jar"],"application/vnd.oasis.opendocument.presentation":[".odp"],"application/vnd.oasis.opendocument.spreadsheet":[".ods"],"application/vnd.oasis.opendocument.text":[".odt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[".pptx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[".xlsx"],"application/vnd.apple.keynote":[".key"],"application/vnd.apple.pages":[".pages"],"application/vnd.apple.numbers":[".numbers"],"application/vnd.android.package-archive":[".apk"],"application/x-ios-app":[".ipa"]},sw=Fm.join(","),aw=750,lw="create-folder-button",cw="add-files-button",uw="import-zip-button",fw="export-zip-button",dw="copy-button",_w="cut-button",pw="paste-button",Ew="extract-button",mw="select-all",Tw="rename-button",hw="delete-entry-button",Lw="back-button",Ow="forward-button",Aw="options",gw="font-size",vw="--message-drag-and-drop-entries",ww="--folder-separator",xw="/",yw="main-container",Sw="hidden-footer",Nw="hidden-downloads",Iw="app-loading",Rw=32,Bw=128,Pw={[Ul]:Bw,[df]:Rw},Yt=Object.freeze(Object.defineProperty({__proto__:null,ACTION_KEY:C2,ADD_FILES_BUTTON_NAME:cw,ADD_FILES_KEY:H2,APP_CLASSNAME:yw,APP_LOADING_ATTRIBUTE_NAME:Iw,BACK_BUTTON_NAME:Lw,BACK_KEY:tw,COPY_BUTTON_NAME:dw,COPY_KEY:U2,CREATE_FOLDER_BUTTON_NAME:lw,CREATE_FOLDER_KEY:j2,CUT_BUTTON_NAME:_w,CUT_KEY:b2,DEFAULT_MIME_TYPE:rw,DEFAULT_OPTIONS:iw,DELETE_BUTTON_NAME:hw,DELETE_KEYS:W2,DOWNLOAD_MANAGER_HIDDEN_CLASSNAME:Nw,DOWN_KEY:Z2,END_KEY:ew,ENTER_KEY:D2,EXPORT_ZIP_BUTTON_NAME:fw,EXPORT_ZIP_KEY:z2,EXTRACT_BUTTON_NAME:Ew,EXTRACT_KEY:F2,FFT_RESOLUTIONS:Pw,FOLDER_SEPARATOR:xw,FOLDER_SEPARATOR_CUSTOM_PROPERTY_NAME:ww,FONT_SIZE_PROPERTY_NAME:gw,FORWARD_BUTTON_NAME:Ow,FORWARD_KEY:nw,HIGHLIGHT_ALL_BUTTON_NAME:mw,HIGHLIGHT_ALL_KEY:K2,HOME_KEY:J2,IMPORT_ZIP_BUTTON_NAME:uw,IMPORT_ZIP_KEY:G2,INFOBAR_HIDDEN_CLASSNAME:Sw,LEFT_KEY:Y2,LONG_TOUCH_DELAY:aw,NO_ENTRIES_CUSTOM_PROPERTY_NAME:vw,OPTIONS_DEFAULT_SKIN:Ul,OPTIONS_DOS_SKIN:df,OPTIONS_KEY_NAME:Aw,PAGE_DOWN_KEY:Q2,PAGE_UP_KEY:X2,PASTE_BUTTON_NAME:pw,PASTE_KEY:$2,RENAME_BUTTON_NAME:Tw,RENAME_KEY:M2,RIGHT_KEY:q2,TAB_KEY:k2,UP_KEY:V2,ZIP_EXTENSION:_f,ZIP_EXTENSIONS:Fm,ZIP_EXTENSIONS_ACCEPT:ow,ZIP_EXTENSIONS_ACCEPT_STRING:sw},Symbol.toStringTag,{value:"Module"}));function Cw({entries:e,highlightedIds:t,selectedFolder:n,clipboardData:r,history:i,dialogs:o,getOptions:s,filesystemService:l}){const a=!e.length,c=!t.length||n.parent&&t.includes(n.parent.id),f=t.find(D=>{const le=n.children.find(Q=>Q.id===D);return le?le.directory:!1}),_=!r,E=e.filter(D=>D!==n.parent),O=a||!E.length,w=a,h=a,m=!i.index,u=i.index===i.path.length-1,d=c,p=c,A=_||r.cut&&r.entries.find(D=>n==D||n.isDescendantOf(D)),g=_,L=c||!t.length||!l.savePickersSupported()&&f,v=!n||!E.length||E.length===t.length&&E.every(D=>t.includes(D.id)),T=t.length!==1||c,S=c,y=t.length!==1,N=o.exportZip||o.extract||o.rename||o.createFolder||o.deleteEntries||o.reset||o.displayError||o.enterImportPassword||o.chooseAction||o.options,P=s(),R=P.hideNavigationBar,k=P.hideDownloadManager,F=P.hideInfobar,z=!P.promptForExportPassword,X=n&&n.children.filter(D=>t.includes(D.id))||[],I=t.length===1&&n&&n.children.find(D=>D.id===t[0]),q=Dw(n);return{disabledExportZip:O,disabledReset:w,disabledNavigation:h,disabledBack:m,disabledForward:u,disabledCopy:d,disabledCut:p,disabledPaste:A,disabledResetClipboardData:g,disabledExtract:L,disabledHighlightAll:v,disabledRename:T,disabledDelete:S,disabledEnterEntry:y,dialogDisplayed:N,hiddenNavigationBar:R,hiddenDownloadManager:k,hiddenInfobar:F,hiddenExportPassword:z,highlightedEntries:X,highlightedEntry:I,selectedFolderEntries:E,ancestorFolders:q}}function Dw(e){const t=[];for(;e&&e.parent;)t.unshift(e),e=e.parent;return e&&t.unshift(e),t}function kw({entries:e,downloads:t,dialogDisplayed:n,onEntriesKeyUp:r,onFoldersKeyUp:i,onHighlightedEntriesKeyUp:o,onAppKeyUp:s,onEntriesKeyDown:l,onHighlightedEntriesKeyDown:a,onSelectedFolderKeyDown:c}){function f(O){n||(r(O),i(O),o(O),s(O))}function _(O){n||(l(O),a(O),c(O))}function E(O){(e.length||t.length)&&(O.preventDefault(),O.returnValue="")}return{handlePageUnload:E,handleKeyUp:f,handleKeyDown:_}}function bw({dialogs:e,setDownloads:t,setDialogs:n,removeDownload:r,downloadService:i,filesystemService:o,environmentService:s}){const l=s.isMacOSPlatform();async function a(p,A,g,L){if(o.savePickersSupported())try{!L&&(p.length>1||p[0].directory)&&(L=await O())}catch(v){if(i.downloadAborted(v))return;throw v}await Promise.all(p.map(async v=>c(v,A,g,L)))}async function c(p,A,g,L){!L&&p.directory&&(L=await O());const v=A||p.name;let T;try{p.directory?await f(v,p,g,L):(T={name:v,controller:i.createAbortController(),progressValue:null,progressMax:null},await _(v,p,g,T,L))}catch(S){if(!i.downloadAborted(S))throw S}finally{T&&r(T)}}async function f(p,A,g,L){const v=await L.getDirectoryHandle(p,{create:!0});await a(A.children,null,g,v)}async function _(p,A,g,L,v){const{signal:T}=L.controller,S=(R,k)=>h(L.id,R,k);let y,N,P;o.savePickersSupported()?(v?y=await v.getFileHandle(p,{create:!0}):(y=await w(p),L.name=y.name),N=await y.createWritable()):{writable:N,blob:P}=E(),t(R=>{let{nextId:k}=R;return L.id=k,k=k+1,{nextId:k,queue:[L,...R.queue]}}),await A.getWritable(N,{signal:T,onprogress:S,...g}),!o.savePickersSupported()&&!T.aborted&&o.saveBlob(await P,L.name)}function E(){const{readable:p,writable:A}=new TransformStream({});return{blob:new Response(p).blob(),writable:A}}function O(){return o.showDirectoryPicker({mode:"readwrite",startIn:"downloads"})}function w(p){return o.showSaveFilePicker({suggestedName:p,mode:"readwrite",startIn:"downloads"})}function h(p,A,g){t(L=>({...L,queue:L.queue.map(v=>(v.id===p&&(v={...v,progressValue:A,progressMax:g}),v))}))}function m(p){n({...e,displayError:{message:p}})}function u(){n({...e,displayError:null})}function d(p){return l?p.metaKey:p.ctrlKey}return{modifierKeyPressed:d,saveZipFile:c,saveEntries:a,openDisplayError:m,closeDisplayError:u}}function Uw({disabledNavigation:e,disabledHighlightAll:t,entries:n,selectedFolderEntries:r,highlightedIds:i,navigation:o,dialogDisplayed:s,entriesElementHeight:l,entriesDeltaHeight:a,entriesElement:c,setHighlightedIds:f,resetHighlightedEntryElement:_,setNavigation:E,setOptions:O,setEntriesHeight:w,setEntriesElementHeight:h,setEntriesDeltaHeight:m,setClickedButtonName:u,getEntriesHeight:d,getHighlightedEntryElement:p,getOptions:A,modifierKeyPressed:g,documentService:L,windowService:v,constants:T}){const{ACTION_KEY:S,DOWN_KEY:y,UP_KEY:N,PAGE_UP_KEY:P,PAGE_DOWN_KEY:R,HOME_KEY:k,END_KEY:F,HIGHLIGHT_ALL_KEY:z,HIGHLIGHT_ALL_BUTTON_NAME:X}=T;function I(){return L.getHeight(c)}function q(){const U=p();if(U)return L.getRowHeight(U)}function D(){const U=Ce(),oe=n[(U-1+n.length)%n.length];ue(oe)}function le(){const U=Ce(),oe=n[(U+1)%n.length];ue(oe)}function Q(){const U=Ce(),oe=_e(U);ue(oe)}function V(){const U=Ce(),oe=Ee(U);ue(oe)}function de(){ue(n[0])}function Te(){ue(n[n.length-1])}function pe(U){const oe=n.filter(B=>B.name&&B.name.toLocaleLowerCase().startsWith(U.toLocaleLowerCase()));if(oe.length){const B=oe[0];oe.length===1?ue(B):(E(()=>({previousHighlight:B,direction:0})),f(oe.reverse().map($=>$.id)))}}function Se(U){ue(U)}function ne(U){E(()=>({previousHighlight:U[U.length-1],direction:0})),f(U.map(oe=>oe.id))}function M(){const U=i.filter(oe=>r.find(B=>B.id===oe));f(n.filter(oe=>!U.includes(oe.id)).filter(oe=>r.includes(oe)).map(oe=>oe.id).concat(...U))}function ie(U){let oe=W(i,U);E(()=>({previousHighlight:U,direction:0})),oe.length({previousHighlight:U,direction:0})),f([U.id])}function Y(U,oe=Be()){const B=n.findIndex(b=>b.id===U.id);let $=[...i];if(oeB)for(let b=oe-1;b>=B;b--)$=W($,n[b]);E(()=>({previousHighlight:U,direction:0})),f($)}function W(U,oe){if(U.includes(oe.id)){if(U.length>1)return U.filter(B=>B!==oe.id)}else return[...U,oe.id];return U}function ce(){if(o.previousHighlight){const U=Be();if(o.direction===1)ie(o.previousHighlight);else if(U>0){const oe=n[U-1];i.length===1&&i.includes(oe.id)?U>1&&ie(n[U-2]):ie(oe)}E(oe=>({...oe,direction:-1}))}}function K(){if(o.previousHighlight){const U=Be();if(o.direction===-1)ie(o.previousHighlight);else if(U({...oe,direction:1}))}}function C(){if(o.previousHighlight){const U=Be(),oe=_e(U);o.direction!==1?Y(oe):Y(oe,U+1),E(B=>({...B,direction:-1}))}}function ee(){if(o.previousHighlight){const U=Be(),oe=Ee(U);o.direction!==-1?Y(oe):Y(oe,U-1),E(B=>({...B,direction:1}))}}function fe(){if(o.previousHighlight){const U=Be(),oe=n[0];o.direction!==1?Y(oe):Y(oe,U+1),E(B=>({...B,direction:-1}))}}function Le(){if(o.previousHighlight){const U=Be(),oe=n[n.length-1];o.direction!==-1?Y(oe):Y(oe,U-1),E(B=>({...B,direction:1}))}}function _e(U){return n[Math.max(U-d(),0)]}function Ee(U){return n[Math.min(U+d(),n.length-1)]}function Be(){return n.findIndex(U=>U===o.previousHighlight)}function Ce(){const U=i[i.length-1];return n.findIndex(oe=>oe.id===U)}function De(U){m(U)}function et(){c&&p()&&w(Math.max(Math.ceil(I()/q()),1))}function rt(){if(!s){let U=l;const oe=A();!U&&oe.entriesHeight&&(U=oe.entriesHeight),U&&h(U)}}function mt(){const U=I();h(Math.max(Math.min(U+a,U),U)),m(0)}function Dn(){if(c){const U=L.addResizeObserver(c,()=>{const oe=I(),B=A();oe!==B.entriesHeight&&(B.entriesHeight=oe,O(B),et())});return v.addResizeListener(rt),()=>{U.disconnect(),v.removeResizeListener(rt)}}}function Wn(){p()&&L.scrollIntoView(p())}function on(U){e||!U.altKey&&!g(U)&&U.key.length===1&&U.key!==S&&pe(U.key)}function sn(U){g(U)&&U.key===z&&(U.preventDefault(),t||u(X)),e||(U.shiftKey&&(U.key===y&&K(),U.key===N&&ce(),U.key===P&&C(),U.key===R&&ee(),U.key===k&&fe(),U.key===F&&Le(),U.preventDefault()),!U.altKey&&!g(U)&&!U.shiftKey&&(U.key===y&&le(),U.key===N&&D(),U.key===k&&de(),U.key===F&&Te(),U.key===P&&Q(),U.key===R&&V(),U.preventDefault()))}return{highlight:Se,highlightEntries:ne,highlightAll:M,toggle:ie,toggleRange:Y,resizeEntries:De,updateEntriesHeight:et,updateEntriesElementHeight:rt,updateEntriesElementHeightEnd:mt,updateHighlightedEntries:Wn,registerResizeEntriesHandler:Dn,onEntriesKeyUp:on,onEntriesKeyDown:sn}}function Fw({disabledBack:e,disabledForward:t,history:n,highlightedEntry:r,highlightedEntries:i,selectedFolder:o,setSelectedFolder:s,setEntries:l,setHistory:a,setHighlightedIds:c,setClickedButtonName:f,modifierKeyPressed:_,constants:E}){const{LEFT_KEY:O,RIGHT_KEY:w,BACK_KEY:h,FORWARD_KEY:m,BACK_BUTTON_NAME:u,FORWARD_BUTTON_NAME:d}=E;function p(P){const R=[...n.path],k=n.index+1;P.isDescendantOf(o)&&(R.length=k+1),R[k]=P,a({index:k,path:R}),v(o,P),s(P),S(P)}function A(){L(-1)}function g(){L(1)}function L(P){const R=n.index+P;a({...n,index:R});const k=n.path[R];v(o,k),s(k),S(k)}function v(P,R){if(P.children.includes(R)||R.children.includes(P))c([P.id]);else{const k=R.children.find(F=>P.isDescendantOf(F));c(k?[k.id]:[R.parent.id])}}function T(){let P=0,R;const k=n.path.filter((z,X)=>{const I=R===z||i.includes(z)||i.find(q=>z.isDescendantOf(q));return I?X<=n.index&&P++:R=z,!I}),F=n.index-P;a({path:k,index:F})}function S(P=o){if(P){const{parent:R,children:k}=P,F=y(k,!0),z=y(k,!1),X=[];R&&X.push(R),l([...X,...F,...z])}}function y(P,R){return P.filter(k=>!!k.directory===R).sort((k,F)=>k.name.localeCompare(F.name))}function N(P){P.altKey&&(P.key===h&&!e&&f(u),P.key===m&&!t&&f(d)),!P.altKey&&!_(P)&&!P.shiftKey&&(P.key===O&&o.parent&&p(o.parent),P.key===w&&r&&r.directory&&p(r))}return{goIntoFolder:p,navigateBack:A,navigateForward:g,refreshSelectedFolder:S,updateHistoryData:T,onFoldersKeyUp:N}}function Mw({disabledPaste:e,disabledExportZip:t,zipFilesystem:n,selectedFolder:r,rootZipFilename:i,clipboardData:o,dialogs:s,setHighlightedIds:l,setClipboardData:a,setDialogs:c,setClickedButtonName:f,refreshSelectedFolder:_,highlightEntries:E,saveZipFile:O,getOptions:w,openDisplayError:h,filesystemService:m,fileHandlersService:u,shareTargetService:d,modifierKeyPressed:p,constants:A}){const{ZIP_EXTENSION:g,ZIP_EXTENSIONS:L,ZIP_EXTENSIONS_ACCEPT:v,CREATE_FOLDER_KEY:T,ADD_FILES_KEY:S,IMPORT_ZIP_KEY:y,EXPORT_ZIP_KEY:N,PASTE_KEY:P,CREATE_FOLDER_BUTTON_NAME:R,ADD_FILES_BUTTON_NAME:k,IMPORT_ZIP_BUTTON_NAME:F,EXPORT_ZIP_BUTTON_NAME:z,PASTE_BUTTON_NAME:X}=A;function I(){d.onShareFiles(Q),u.onOpenWith(pe)}function q(){c({...s,createFolder:{}})}function D({folderName:C}){try{const ee=r.addDirectory(C);E([ee]),_()}catch(ee){h(ee.message)}}function le(){c({...s,createFolder:null})}function Q(C,ee={}){if(!de(C,Q,ee)){const Le=[];try{C.forEach(_e=>{try{Le.push(r.addFile(_e,ee))}catch(Ee){const Be=Ee.message+(_e?" ("+_e.name+")":"");throw new Error(Be)}})}catch(_e){h(_e.message)}finally{Le.length&&Se(Le),_()}}}function V(C,ee={}){async function fe(){let Le=[];const _e=C[0];C=Array.from(C);try{if(!(_e.kind===m.FILESYSTEM_FILE_KIND&&C.length===1&&de([await _e.getAsFile()],fe,ee))){const Ce=(await Promise.allSettled(C.map(async De=>{const et=await r.addFileSystemHandle(De.getAsFileSystemHandle?await De.getAsFileSystemHandle():De.webkitGetAsEntry(),ee);Le=Le.concat(et)}))).find(De=>De.status==="rejected");if(Ce)throw Ce.reason}}catch(Ee){h(Ee.message)}finally{const Ee=r.children.filter(Be=>Le.includes(Be));Ee.length&&Se(Ee),_()}}fe()}function de(C,ee,{forceAddFiles:fe}){const Le=C.length===1&&L.find(_e=>C[0].name.endsWith(_e))&&!fe;return Le&&(s.chooseAction?ee(C,{forceAddFiles:!0}):c({...s,chooseAction:{files:C}})),Le}function Te(){c({...s,chooseAction:null})}function pe(C,ee={}){async function fe(){var Be;let _e=[],Ee=[];try{if(_e=await r.importBlob(C,ee),(await Promise.all(_e.map(De=>!De.directory&&De.isPasswordProtected()))).includes(!0)&&!ee.password){Le(_e);const{password:De}=await new Promise(rt=>c({...s,enterImportPassword:{onSetImportPassword:rt}})),et=!(await Promise.all(_e.map(rt=>rt.directory||rt.checkPassword(De)))).includes(!1);pe(C,et?{password:De}:{})}}catch(Ce){Le(_e);const De=(Be=Ce==null?void 0:Ce.cause)==null?void 0:Be.entry,et=De&&De.filename.split("/"),rt=Ce.message+(et&&et.length?" ("+et.pop()+")":"");h(rt)}finally{Ee=r.children.filter(Ce=>_e.includes(Ce)),Ee.length&&Se(Ee),_()}}function Le(_e){_e.forEach(Ee=>!Ee.directory&&n.remove(Ee)),_e.forEach(Ee=>Ee.directory&&!Ee.children.length&&n.remove(Ee))}fe()}function Se(C){E(C.sort((ee,fe)=>fe.name.localeCompare(ee.name)))}function ne(){const C=r.name?r.name+g:i,ee=w(),fe=ee.defaultExportPassword;!m.savePickersSupported()||ee.promptForExportPassword?c({...s,exportZip:{filename:C,filenameHidden:m.savePickersSupported(),password:fe}}):Y({filename:C,password:fe})}function M(){async function C(){const ee=await m.showOpenFilePicker({multiple:!0});Q(ee)}C()}function ie({description:C}){async function ee(){const fe=await m.showOpenFilePicker({multiple:!1,description:C,accept:v});fe.length&&pe(fe[0])}ee()}function ue(){c({...s,exportZip:null})}function Y({filename:C,password:ee}){function fe(_e,Ee){return r.exportWritable(_e,Ee)}async function Le(){try{const _e=w();await O({filename:C,getWritable:fe},C,{..._e,password:ee,readerOptions:{checkSignature:_e.checkSignature}})}catch(_e){h(_e.message)}}Le()}function W(){let C=[];try{const{entries:fe,cut:Le}=o;if(Le)fe.forEach(_e=>ee(_e));else{const _e=fe.map(Ee=>{let Be=Ee.clone(!0);return ee(Ee),Be});a({entries:_e})}}catch(fe){h(fe.message)}finally{C.length&&l(C.map(fe=>fe.id)),_()}function ee(fe){try{n.move(fe,r),C.push(fe)}catch(Le){const _e=Le.message+(" ("+fe.name+")");throw new Error(_e)}}}function ce(){c({...s,enterImportPassword:null})}function K(C){p(C)&&(C.key===T&&(f(R),C.preventDefault()),C.key===S&&(f(k),C.preventDefault()),C.key===y&&(f(F),C.preventDefault()),C.key===N&&!t&&(f(z),C.preventDefault()),C.key===P&&!e&&(f(X),C.preventDefault()))}return{initSelectedFolderFeatures:I,openPromptCreateFolder:q,createFolder:D,closePromptCreateFolder:le,addFiles:Q,dropFiles:V,closeChooseAction:Te,importZipFile:pe,openPromptExportZip:ne,exportZip:Y,paste:W,closePromptExportZip:ue,closePromptImportPassword:ce,showAddFilesPicker:M,showImportZipFilePicker:ie,onSelectedFolderKeyDown:K}}function $w({disabledCopy:e,disabledCut:t,disabledExtract:n,disabledRename:r,disabledDelete:i,zipFilesystem:o,entries:s,highlightedIds:l,highlightedEntry:a,highlightedEntries:c,navigation:f,dialogs:_,setClipboardData:E,setHighlightedIds:O,setNavigation:w,setDialogs:h,setClickedButtonName:m,refreshSelectedFolder:u,updateHistoryData:d,saveEntries:p,getOptions:A,openDisplayError:g,filesystemService:L,modifierKeyPressed:v,constants:T}){const{CUT_KEY:S,COPY_KEY:y,EXTRACT_KEY:N,RENAME_KEY:P,CUT_BUTTON_NAME:R,COPY_BUTTON_NAME:k,EXTRACT_BUTTON_NAME:F,RENAME_BUTTON_NAME:z,DELETE_KEYS:X,DELETE_BUTTON_NAME:I}=T;function q(){E({entries:c.map(Y=>Y.clone(!0))})}function D(){E({entries:c,cut:!0})}function le(){h({..._,rename:{filename:a.name}})}function Q({filename:Y}){try{Y!==a.name&&(a.rename(Y),u())}catch(W){g(W.message)}}function V(){h({..._,rename:null})}function de(){h({..._,deleteEntries:{}})}function Te(){if(c.forEach(Y=>o.remove(Y)),s.length){const Y=Math.max(...s.map((ce,K)=>({entry:ce,index:K})).filter(({entry:ce})=>l.includes(ce.id)).map(({index:ce})=>ce));let W=Y;for(;W=0&&l.includes(s[W].id);)W--;s[W]?(w({...f,previousHighlight:s[W]}),O([s[W].id])):(w({...f,previousHighlight:null}),O([]))}d(),u()}function pe(){h({..._,deleteEntries:null})}function Se(Y=a){const W={entries:[Y],filename:Y.name};L.savePickersSupported()?ne(W):h({..._,extract:W})}function ne({entries:Y=c,filename:W}={}){async function ce(){try{const K=A();W=Y.length===1?W:null,await p(Y,W,K)}catch(K){g(K.message)}}ce()}function M(){h({..._,extract:null})}function ie(Y){!Y.altKey&&!v(Y)&&!Y.shiftKey&&X.includes(Y.key)&&!i&&m(I)}function ue(Y){v(Y)&&(Y.key===y&&!e&&(m(k),Y.preventDefault()),Y.key===S&&!t&&(m(R),Y.preventDefault()),Y.key===N&&!n&&(m(F),Y.preventDefault()),Y.key===P&&!r&&(m(z),Y.preventDefault()))}return{copy:q,cut:D,openPromptRename:le,rename:Q,closePromptRename:V,openConfirmDeleteEntries:de,deleteEntries:Te,closeConfirmDeleteEntries:pe,openPromptExtract:Se,extract:ne,closePromptExtract:M,onHighlightedEntriesKeyUp:ie,onHighlightedEntriesKeyDown:ue}}function jw({disabledEnterEntry:e,zipFilesystem:t,highlightedEntry:n,selectedFolder:r,hiddenInfobar:i,hiddenDownloadManager:o,setNavigation:s,setSelectedFolder:l,setHighlightedIds:a,setHistory:c,setClickedButtonName:f,goIntoFolder:_,openPromptExtract:E,refreshSelectedFolder:O,modifierKeyPressed:w,stylesheetService:h,documentService:m,i18nService:u,constants:d,messages:p}){const{NO_ENTRIES_CUSTOM_PROPERTY_NAME:A,FOLDER_SEPARATOR_CUSTOM_PROPERTY_NAME:g,FOLDER_SEPARATOR:L,APP_LOADING_ATTRIBUTE_NAME:v,APP_CLASSNAME:T,INFOBAR_HIDDEN_CLASSNAME:S,DOWNLOAD_MANAGER_HIDDEN_CLASSNAME:y,ACTION_KEY:N}=d;function P(){h.setStyle(A,JSON.stringify(p.NO_ENTRIES_LABEL)),h.setStyle(g,JSON.stringify(L)),m.setDocumentLanguage(u.getLanguageId()),m.removeDocumentAttribute(v)}function R(){const{root:I}=t;l(I),a([]),s({previousHighlight:null,direction:0}),c({path:[I],index:0}),O(I)}function k(I){I.directory?_(I):E(I)}function F(){f(null)}function z(){const I=[T];return i&&I.push(S),o&&I.push(y),I.join(" ")}function X(I){!I.altKey&&!w(I)&&!I.shiftKey&&I.key===N&&!e&&(k(n||r.parent),I.preventDefault())}return{enterEntry:k,initAppFeatures:P,updateZipFilesystem:R,resetClickedButtonName:F,getAppClassName:z,onAppKeyUp:X}}function Hw({dialogs:e,setZipFilesystem:t,setDialogs:n,zipService:r}){function i(){n({...e,reset:{}})}function o(){t(r.createZipFileSystem())}function s(){n({...e,reset:null})}return{openConfirmReset:i,reset:o,closeConfirmReset:s}}function Gw({setDownloads:e,downloadService:t}){function n(i){r(i),t.abortDownload(i.controller)}function r(i){e(o=>({...o,queue:o.queue.filter(s=>s.id!==i.id)}))}return{removeDownload:r,abortDownload:n}}function zw({setClipboardData:e}){function t(){e(null)}return{resetClipboardData:t}}function Kw({dialogs:e,setDialogs:t,setTheme:n,zipService:r,storageService:i,stylesheetService:o,environmentService:s,themeService:l,constants:a}){const{DEFAULT_OPTIONS:c,OPTIONS_KEY_NAME:f,FONT_SIZE_PROPERTY_NAME:_}=a;function E(){O(d())}function O(L){p(L),A(L),g(L)}function w(){t({...e,options:d()})}function h(){t({...e,options:null})}function m(){const L={...c};L.maxWorkers=s.getMaximumWorkers(),t({...e,options:L})}function u(L){L={...d(),...L},O(L),i.set(f,L)}function d(){let L=i.get(f);return L||(L={...c},L.maxWorkers=s.getMaximumWorkers()),L.hideNavigationBar===void 0&&(L.hideNavigationBar=c.hideNavigationBar),L.hideDownloadManager===void 0&&(L.hideDownloadManager=c.hideDownloadManager),L.hideInfobar===void 0&&(L.hideInfobar=c.hideInfobar),L.promptForExportPassword===void 0&&(L.promptForExportPassword=c.promptForExportPassword),L.defaultExportPassword===void 0&&(L.defaultExportPassword=c.defaultExportPassword),L.checkSignature===void 0&&(L.checkSignature=c.checkSignature),L.accentColor===void 0&&(L.accentColor=c.accentColor),L.zoomFactor===void 0&&(L.zoomFactor=c.zoomFactor),L.skin===void 0&&(L.skin=c.skin),L}function p(L){const{maxWorkers:v,chunkSize:T}=L;r.configure({maxWorkers:v,chunkSize:T})}function A({zoomFactor:L}){o.setStyle(_,L/100+"rem")}function g({accentColor:L,skin:v}){n({accentColor:L,skin:v}),l.setTheme({accentColor:L,skin:v})}return{initOptionsFeatures:E,getOptions:d,setOptions:u,openOptions:w,closeOptions:h,resetOptions:m}}function Ww({theme:e,setOptions:t,setTheme:n,setMusicData:r,setPlayerActive:i,getOptions:o,stylesheetService:s,themeService:l,musicService:a,constants:c}){const{ACCENT_COLOR_CUSTOM_PROPERTY_NAME:f}=l;function _(){const m=o(),{accentColor:u,skin:d}=m;n({accentColor:u,skin:d})}function E(){i(!0),O(),a.play({onSetFrequencyData:m=>{r(()=>({frequencyData:m}))}})}function O(){e.skin&&a.setFftSize(c.FFT_RESOLUTIONS[e.skin])}function w(){i(!1),a.stop()}function h(){const{accentColor:m,skin:u}=e;if(m){s.setStyle(f,e.accentColor),l.setTheme({accentColor:m,skin:u});const d=o();t({...d,accentColor:m})}}return{playMusic:E,stopMusic:w,updateAccentColor:h,updateSkin:O,initMiscFeatures:_}}const Zw=Object.freeze(Object.defineProperty({__proto__:null,getAppFeatures:jw,getClipboardFeatures:zw,getCommonFeatures:bw,getDownloadsFeatures:Gw,getEntriesFeatures:Uw,getFilesystemFeatures:Hw,getFoldersFeatures:Fw,getHighlightedEntriesFeatures:$w,getMiscFeatures:Ww,getOptionsFeatures:Kw,getSelectedFolderFeatures:Mw},Symbol.toStringTag,{value:"Module"}));function Vw({disabled:e,clickedButtonName:t,onCopy:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.COPY_BUTTON_NAME,title:o.COPY_BUTTON_TOOLTIP,label:o.COPY_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function Yw({disabled:e,clickedButtonName:t,onCut:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.CUT_BUTTON_NAME,title:o.CUT_BUTTON_TOOLTIP,label:o.CUT_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function qw({disabled:e,clickedButtonName:t,onPaste:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.PASTE_BUTTON_NAME,title:o.PASTE_BUTTON_TOOLTIP,label:o.PASTE_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function Xw({disabled:e,onResetClipboardData:t,messages:n}){return x.jsx(gt,{label:n.RESET_CLIPBOARD_BUTTON_LABEL,disabled:e,onClick:t})}function Qw({disabled:e,clickedButtonName:t,onHighlightAll:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.HIGHLIGHT_ALL_BUTTON_NAME,title:o.HIGHLIGHT_ALL_BUTTON_TOOLTIP,label:o.HIGHLIGHT_ALL_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function Jw({disabled:e,clickedButtonName:t,onExtract:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.EXTRACT_BUTTON_NAME,title:o.EXTRACT_BUTTON_TOOLTIP,label:o.EXTRACT_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function ex({disabled:e,clickedButtonName:t,onRename:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.RENAME_BUTTON_NAME,title:o.RENAME_BUTTON_TOOLTIP,label:o.RENAME_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function tx({disabled:e,clickedButtonName:t,onRemove:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.DELETE_BUTTON_NAME,title:o.DELETE_BUTTON_TOOLTIP,label:o.DELETE_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function nx({clickedButtonName:e,onCreateFolder:t,onClickedButton:n,constants:r,messages:i}){return x.jsx(gt,{name:r.CREATE_FOLDER_BUTTON_NAME,title:i.CREATE_FOLDER_BUTTON_TOOLTIP,label:i.CREATE_FOLDER_BUTTON_LABEL,clickedButtonName:e,onClick:t,onClickedButton:n})}function rx({clickedButtonName:e,onShowAddFilesPicker:t,onClickedButton:n,constants:r,messages:i}){return x.jsx(gt,{name:r.ADD_FILES_BUTTON_NAME,title:i.ADD_FILES_BUTTON_TOOLTIP,label:i.ADD_FILES_BUTTON_LABEL,clickedButtonName:e,onClick:t,onClickedButton:n})}function ix({clickedButtonName:e,onShowImportZipFilePicker:t,onClickedButton:n,constants:r,messages:i}){const{IMPORT_ZIP_BUTTON_NAME:o}=r;function s(){t({description:i.ZIP_FILE_DESCRIPTION_LABEL})}return x.jsx(gt,{name:o,title:i.IMPORT_ZIP_BUTTON_TOOLTIP,label:i.IMPORT_ZIP_BUTTON_LABEL,clickedButtonName:e,onClick:s,onClickedButton:n})}function ox({disabled:e,clickedButtonName:t,onExportZip:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.EXPORT_ZIP_BUTTON_NAME,title:o.EXPORT_ZIP_BUTTON_TOOLTIP,label:o.EXPORT_ZIP_BUTTON_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function sx({disabled:e,onReset:t,messages:n}){return x.jsx(gt,{label:n.RESET_BUTTON_LABEL,disabled:e,onClick:t})}function ax({onOpenOptions:e,messages:t}){return x.jsx(gt,{label:t.OPTIONS_BUTTON_LABEL,onClick:e})}function lx({disabled:e,clickedButtonName:t,onNavigateBack:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.BACK_BUTTON_NAME,title:o.BACK_BUTTON_TOOLTIP,label:o.BACK_BUTTON_LABEL,ariaLabel:o.GO_BACK_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function cx({disabled:e,clickedButtonName:t,onNavigateForward:n,onClickedButton:r,constants:i,messages:o}){return x.jsx(gt,{name:i.FORWARD_BUTTON_NAME,title:o.FORWARD_BUTTON_TOOLTIP,label:o.FORWARD_BUTTON_LABEL,ariaLabel:o.GO_FORWARD_LABEL,disabled:e,clickedButtonName:t,onClick:n,onClickedButton:r})}function gt({name:e,title:t,label:n,disabled:r,ariaLabel:i,clickedButtonName:o,onClick:s,onClickedButton:l}){let a;function c(){a=null,l(),s()}return o&&o===e&&(a="flashing-button"),x.jsx("button",{className:a,title:t,disabled:r,"aria-label":i,onClick:s,onAnimationEnd:c,children:n})}function ux({disabledExportZipButton:e,disabledResetButton:t,clickedButtonName:n,onCreateFolder:r,onImportZipFile:i,onExportZip:o,onReset:s,onOpenOptions:l,onShowImportZipFilePicker:a,onShowAddFilesPicker:c,onClickedButton:f,constants:_,messages:E}){function O(h){h.preventDefault()}function w(h){h.dataTransfer.files&&h.dataTransfer.files[0]&&(h.preventDefault(),i(h.dataTransfer.files[0]))}return x.jsxs("div",{className:"button-bar button-bar-top",role:"toolbar","aria-label":E.SELECTED_FOLDER_LABEL,onDragOver:O,onDrop:w,children:[x.jsxs("div",{className:"button-group",children:[x.jsx(rx,{clickedButtonName:n,onShowAddFilesPicker:c,onClickedButton:f,constants:_,messages:E}),x.jsx(nx,{clickedButtonName:n,onCreateFolder:r,onClickedButton:f,constants:_,messages:E})]}),x.jsxs("div",{className:"button-group",children:[x.jsx(ix,{clickedButtonName:n,onShowImportZipFilePicker:a,onClickedButton:f,constants:_,messages:E}),x.jsx(ox,{disabled:e,clickedButtonName:n,onExportZip:o,onClickedButton:f,constants:_,messages:E})]}),x.jsxs("div",{className:"button-group",children:[x.jsx(sx,{disabled:t,onReset:s,messages:E}),x.jsx(ax,{onOpenOptions:l,messages:E})]})]})}function fx({disabledBackButton:e,disabledForwardButton:t,clickedButtonName:n,onNavigateBack:r,onNavigateForward:i,onClickedButton:o,constants:s,messages:l}){return x.jsxs("span",{className:"history-buttons",children:[x.jsx(lx,{disabled:e,clickedButtonName:n,onNavigateBack:r,onClickedButton:o,constants:s,messages:l}),x.jsx(cx,{disabled:t,clickedButtonName:n,onNavigateForward:i,onClickedButton:o,constants:s,messages:l})]})}function dx({folder:e,ancestorFolders:t,onGoIntoFolder:n,constants:r,messages:i}){return x.jsx("nav",{className:"breadcrumb",children:x.jsx("ol",{children:t.map(o=>{const s=o===e;return x.jsx("li",{children:x.jsx(_x,{folder:o,disabled:!t.length||s,isSelectedFolder:s,onGoIntoFolder:n,constants:r,messages:i})},o.id)})})})}function _x({folder:e,onGoIntoFolder:t,disabled:n,isSelectedFolder:r,constants:i,messages:o}){function s(){const c=["breadcrumb-item"];return n||c.push("breadcrumb-item-active"),c.join(" ")}function l(){n||t(e)}function a({event:c,folder:f}){c.key===i.ENTER_KEY&&l()}return x.jsx("span",{className:s(),role:"button","aria-current":r?"location":null,"aria-label":r?null:o.GO_INTO_FOLDER_LABEL,onClick:l,onKeyUp:c=>a({event:c,folder:e}),tabIndex:n?null:0,children:e.parent?e.name:o.ROOT_FOLDER_LABEL})}function px({hidden:e,selectedFolder:t,ancestorFolders:n,disabledBackButton:r,disabledForwardButton:i,clickedButtonName:o,onNavigateBack:s,onNavigateForward:l,onGoIntoFolder:a,onClickedButton:c,constants:f,messages:_}){if(!e)return x.jsxs("div",{className:"navigation-bar",role:"toolbar","aria-label":_.FOLDERS_LABEL,children:[x.jsx(fx,{disabledBackButton:r,disabledForwardButton:i,clickedButtonName:o,onNavigateBack:s,onNavigateForward:l,onClickedButton:c,constants:f,messages:_}),x.jsx(dx,{folder:t,ancestorFolders:n,onGoIntoFolder:a,constants:f,messages:_})]})}function Ex({entries:e,selectedFolder:t,highlightedIds:n,deltaEntriesHeight:r,entriesElementHeight:i,hiddenDownloadManager:o,onDropFiles:s,onHighlight:l,onToggle:a,onToggleRange:c,onEnter:f,onUpdateEntriesHeight:_,onUpdateEntriesElementHeight:E,onRegisterResizeEntriesHandler:O,entriesElementRef:w,highlightedEntryElementRef:h,i18n:m,constants:u,messages:d}){const[p,A]=te.useState(!1),[g,L]=te.useState(!1),v=te.useRef(null),T=te.useRef(0),S=te.useRef(0);function y(V){const de=[];return V.directory&&de.push("directory"),n.includes(V.id)&&de.push("entry-highlighted"),de.join(" ")}function N(V){V.key!==u.TAB_KEY&&V.preventDefault()}function P(){if(!o&&i)return{height:i+r+"px"}}function R(){k(),v.current=setTimeout(()=>{v.current=null,A(!p)},u.LONG_TOUCH_DELAY)}function k(){v.current&&(clearTimeout(v.current),v.current=null)}function F(V){const{clientX:de,clientY:Te}=V.changedTouches[0];if(S.current&&T.current){const pe=Math.abs(Te-S.current);Math.abs(de-T.current)>1&&pe>1&&k()}else T.current=de,S.current=Te}function z(){T.current=0,S.current=0,k()}function X(V){V.preventDefault()}function I(V){V.preventDefault(),L(g),V.dataTransfer.items&&L(!0)}function q(V){V.preventDefault(),L(!1)}async function D(V){V.dataTransfer.items&&(V.preventDefault(),L(!1),s(V.dataTransfer.items))}function le({event:V,entry:de}){V.metaKey?a(de):V.shiftKey?c(de):p?a(de):l(de)}function Q(){const V=["entries","scrollable"];return g&&V.push("dragging-items"),V.join(" ")}return te.useEffect(_),te.useEffect(O),te.useEffect(E,[]),x.jsx("div",{className:Q(),"aria-label":d.ENTRIES_LABEL,role:"navigation",ref:w,style:P(),onDragOver:I,onDragLeave:q,onDrop:D,children:x.jsx("ol",{onKeyDown:N,onTouchStart:R,onTouchMove:F,onTouchEnd:z,onContextMenu:X,children:e.map(V=>n.includes(V.id)?x.jsx("li",{ref:n[n.length-1]===V.id?h:null,className:y(V),tabIndex:0,onClick:de=>le({event:de,entry:V}),children:x.jsx(F_,{entry:V,selectedFolder:t,highlighted:!0,selectModeEnabled:p,onToggle:a,onEnter:f,i18n:m,messages:d})},V.id):x.jsx("li",{className:y(V),onClick:de=>le({event:de,entry:V}),children:x.jsx(F_,{entry:V,selectedFolder:t,highlighted:!1,selectModeEnabled:p,onHighlight:l,onToggle:a,onToggleRange:c,onEnter:f,i18n:m,messages:d})},V.id))})})}function F_({entry:e,selectedFolder:t,highlighted:n,selectModeEnabled:r,onToggle:i,onEnter:o,i18n:s,messages:l}){return x.jsxs(x.Fragment,{children:[r&&x.jsx("input",{className:"entry-select",type:"checkbox",checked:n,onChange:()=>i(e)}),x.jsx(mx,{entry:e,selectedFolder:t,selectModeEnabled:r,onEnter:o,i18n:s,messages:l}),x.jsx(hx,{entry:e,i18n:s}),x.jsx(Lx,{entry:e,selectedFolder:t,onEnter:o,messages:l})]})}function Mm(e){if(!e.directory)return e.uncompressedSize}function mx({entry:e,selectedFolder:t,selectModeEnabled:n,onEnter:r,i18n:i,messages:o}){const{PARENT_FOLDER_TOOLTIP:s,LAST_MOD_DATE_LABEL:l,SIZE_LABEL:a,COMPRESSED_SIZE_LABEL:c,UNCOMPRESSED_SIZE_LABEL:f}=o,_=e===t.parent;function E(){const w=[_?s:e.name];if(e.data){const{compressedSize:h,lastModified:m,lastModDate:u}=e.data,d=Mm(e);w.push(l+" "+i.formatDate(m===void 0?u:new Date(m))),d&&h&&w.push(c+" "+i.formatSize(h)),d&&w.push((h?f:a)+" "+i.formatSize(d))}return w.join(` -`)}function O(w){!n&&!w.metaKey&&r(e)}return x.jsx("span",{className:"entry-name",title:E(),onDoubleClick:O,children:x.jsx("span",{className:"list-item-name",children:_?o.PARENT_FOLDER_LABEL:e.name})})}function Tx({entry:e,i18n:t}){const n=Mm(e);if(n!==void 0)return t.formatSize(n)}function hx({entry:e,i18n:t}){return x.jsx("span",{className:"entry-size",children:Tx({entry:e,i18n:t})})}function Lx({entry:e,selectedFolder:t,onEnter:n,messages:r}){function i(){const s=[r.SPACE_KEY_LABEL];return e===t.parent?s.push(r.ARROW_LEFT_KEY_LABEL):e.directory&&s.push(r.ARROW_RIGHT_KEY_LABEL),r.SHORTCUT_LABEL+s.join(r.KEYS_SEPARATOR_LABEL)}function o(s){s.stopPropagation(),n(e)}return x.jsx("span",{className:"list-item-button",onClick:o,title:i(),children:e.directory?r.DOWNLOAD_BUTTON_LABEL:r.ENTER_FOLDER_BUTTON_LABEL})}function Ox({disabledCopyButton:e,disabledCutButton:t,disabledPasteButton:n,disabledResetClipboardDataButton:r,disabledExtractButton:i,disabledHighlightAllButton:o,disabledRenameButton:s,disabledDeleteButton:l,clickedButtonName:a,onCopy:c,onCut:f,onPaste:_,onResetClipboardData:E,onExtract:O,onHighlightAll:w,onRename:h,onRemove:m,onMove:u,onUpdateElementHeight:d,onClickedButton:p,constants:A,messages:g}){const L=te.useRef(0);function v(S){const{clientY:y}=S.changedTouches[0];if(L.current){const N=y-L.current;u(N)}else L.current=y}function T(){L.current=0,d()}return x.jsxs("div",{className:"button-bar button-bar-bottom",role:"toolbar","aria-label":g.HIGHLIGHTED_ENTRIES_LABEL,onTouchMove:v,onTouchEnd:T,onContextMenu:S=>S.preventDefault(),children:[x.jsxs("div",{className:"button-group",children:[x.jsx(Qw,{disabled:o,clickedButtonName:a,onHighlightAll:w,onClickedButton:p,constants:A,messages:g}),x.jsx(Jw,{disabled:i,clickedButtonName:a,onExtract:O,onClickedButton:p,constants:A,messages:g}),x.jsx(ex,{disabled:s,clickedButtonName:a,onRename:h,onClickedButton:p,constants:A,messages:g}),x.jsx(tx,{disabled:l,clickedButtonName:a,onRemove:m,onClickedButton:p,constants:A,messages:g})]}),x.jsxs("div",{className:"button-group",children:[x.jsx(Vw,{disabled:e,clickedButtonName:a,onCopy:c,onClickedButton:p,constants:A,messages:g}),x.jsx(Yw,{disabled:t,clickedButtonName:a,onCut:f,onClickedButton:p,constants:A,messages:g}),x.jsx(qw,{disabled:n,clickedButtonName:a,onPaste:_,onClickedButton:p,constants:A,messages:g}),x.jsx(Xw,{disabled:r,onResetClipboardData:E,messages:g})]})]})}function Ax({hidden:e,downloads:t,onAbortDownload:n,i18n:r,constants:i,messages:o}){if(!e)return x.jsx("div",{className:"downloads scrollable","aria-label":o.DOWNLOADS_LABEL,role:"navigation",children:x.jsx("ol",{children:t.queue.map(s=>x.jsx("li",{children:x.jsx(gx,{download:s,onAbortDownload:n,i18n:r,constants:i,messages:o})},s.id))})})}function gx({download:e,onAbortDownload:t,i18n:n,constants:r,messages:i}){return x.jsxs(x.Fragment,{children:[x.jsx(vx,{download:e,onAbortDownload:t,constants:r,messages:i}),x.jsx(xx,{download:e,i18n:n})]})}function vx({download:e,onAbortDownload:t,constants:n,messages:r}){return x.jsxs("div",{className:"download-entry",children:[x.jsx("span",{className:"list-item-name download-entry-name",children:e.name}),x.jsx(wx,{download:e,onAbortDownload:t,constants:n,messages:r})]})}function wx({download:e,onAbortDownload:t,constants:n,messages:r}){function i(){t(e)}function o(s){s.key===n.ENTER_KEY&&i()}return x.jsx("span",{className:"list-item-button download-entry-abort-button",role:"button",onClick:i,onKeyUp:o,tabIndex:0,children:r.ABORT_DOWNLOAD_BUTTON_LABEL})}function xx({download:e,i18n:t}){return x.jsx("progress",{value:e.progressValue&&Math.floor(e.progressValue/1e3),max:e.progressMax&&Math.floor(e.progressMax/1e3),title:e.progressValue&&t.formatPercentValue(100*e.progressValue/e.progressMax)})}function yx({hidden:e,theme:t,musicData:n,playMusic:r,stopMusic:i,onSetTheme:o,musicPlayerActive:s,constants:l,messages:a}){const c="icon icon-music-player",_={label:a.PAUSED_MUSIC_ICON,className:c+" paused"},E={label:a.PLAYING_MUSIC_ICON,className:c},[O,w]=te.useState(_);function h(u){o({accentColor:u})}function m(u){w(u?_:E)}if(!e)return x.jsx("footer",{className:"info-bar",children:x.jsxs("div",{className:"source-link"+(s?" player-active":""),children:[x.jsxs("span",{className:"label",children:[a.INFO_LABEL[0],x.jsx("a",{href:"https://github.com/gildas-lormeau/zip-manager",target:"_blank",rel:"noreferrer",children:x.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("g",{children:x.jsx("path",{id:"Vector",d:"M10.0002 5H8.2002C7.08009 5 6.51962 5 6.0918 5.21799C5.71547 5.40973 5.40973 5.71547 5.21799 6.0918C5 6.51962 5 7.08009 5 8.2002V15.8002C5 16.9203 5 17.4801 5.21799 17.9079C5.40973 18.2842 5.71547 18.5905 6.0918 18.7822C6.5192 19 7.07899 19 8.19691 19H15.8031C16.921 19 17.48 19 17.9074 18.7822C18.2837 18.5905 18.5905 18.2839 18.7822 17.9076C19 17.4802 19 16.921 19 15.8031V14M20 9V4M20 4H15M20 4L13 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),a.INFO_LABEL[1]]}),x.jsx("span",{children:x.jsx(Nx,{playMusic:r,stopMusic:i,musicPlayerActive:s,iconPlayer:O,onSetIconPlayer:m})}),x.jsxs("span",{className:"label",children:[a.INFO_LABEL[2],x.jsx(Sx,{accentColor:t.accentColor,onSetAccentColor:h,messages:a,children:a.INFO_LABEL[3]}),a.INFO_LABEL[4],x.jsx("a",{href:a.CITY_URL,target:"_blank",rel:"noreferrer",children:a.INFO_LABEL[5]})]}),x.jsx(Ix,{skin:t.skin,musicData:n,accentColor:t.accentColor,musicPlayerActive:s,constants:l})]})})}function Sx({accentColor:e,onSetAccentColor:t,children:n,messages:r}){const i=te.useRef(null);function o(){t(i.current.value)}return te.useEffect(()=>{e&&(i.current.value=e)},[e]),x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"icon",children:n}),x.jsx("input",{type:"color","aria-label":r.ACCENT_COLOR_LABEL,onChange:o,ref:i,tabIndex:-1})]})}function Nx({playMusic:e,stopMusic:t,musicPlayerActive:n,iconPlayer:r,onSetIconPlayer:i}){function o(){n?(t(),i(!0)):(e(),i())}return x.jsx(x.Fragment,{children:x.jsx("span",{className:r.className,onClick:o,tabIndex:0,children:r.label})})}function Ix({skin:e,musicData:t,accentColor:n,musicPlayerActive:r,constants:i}){const c=te.useRef(null),f=te.useRef(null);let _;if(O(),c.current){f.current||(f.current=c.current.getContext("2d"),E(),O());const w=f.current;w.clearRect(0,0,128,64),r&&t.frequencyData.forEach((h,m)=>{const u=(8-h)/4;w.fillRect(m*_,64,_,u),w.fillRect(128-m*_-_,64,_,u)})}function E(){const w=f.current,h=w.createLinearGradient(0,0,0,64);h.addColorStop(0,n),h.addColorStop(.7,n),h.addColorStop(1,"transparent"),w.fillStyle=h}function O(){e&&(_=128/(i.FFT_RESOLUTIONS[e]/2))}return te.useEffect(()=>{f.current&&E()},[n]),te.useEffect(O,[e]),x.jsx("canvas",{ref:c,width:128,height:64})}function ur({className:e,data:t,title:n,resetLabel:r,cancelLabel:i,submitLabel:o,children:s,onOpen:l,onSubmit:a,onReset:c,onClose:f}){const _=te.useRef(null);function E(w){w.preventDefault(),c()}function O(){_.current.close()}return te.useEffect(()=>{!_.current.open&&t&&(l&&l(),_.current.showModal())},[t]),x.jsx("dialog",{className:e,ref:_,onClose:f,children:x.jsxs("form",{method:"dialog",onSubmit:a,onReset:O,children:[x.jsx("div",{className:"dialog-title",children:n}),x.jsx("p",{children:s}),x.jsxs("div",{className:"button-bar",children:[x.jsx("div",{className:"button-group",children:r&&x.jsx("button",{type:"reset",onClick:E,children:r})}),x.jsxs("div",{className:"button-group",children:[i&&x.jsx("button",{type:"reset",children:i}),x.jsx("button",{type:"submit",children:o})]})]})]})})}function Rx({data:e,hiddenPassword:t,onExportZip:n,onClose:r,messages:i}){const o=te.useRef(null),s=te.useRef(!1),[l,a]=te.useState(""),[c,f]=te.useState(""),_=e==null?void 0:e.filenameHidden;function E(u){a(u.target.value)}function O(u){f(u.target.value)}function w(){const{filename:u,password:d}=e;a(u),f(d)}function h(){n({filename:l,password:c})}function m(){s.current=!1,r()}return te.useEffect(()=>{if(!s.current&&l&&o&&o.current){s.current=!0;let u=l.lastIndexOf(".");o.current.setSelectionRange(0,u===-1?l.length:u)}},[l]),x.jsxs(ur,{data:e,title:i.EXPORT_ZIP_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.EXPORT_ZIP_DIALOG_BUTTON_LABEL,onOpen:w,onClose:m,onSubmit:h,children:[x.jsxs("label",{style:{display:_?"none":null},children:[i.EXPORT_ZIP_FILENAME_LABEL,!_&&x.jsx("input",{spellCheck:"false",type:"text",value:l,required:!0,onChange:E,ref:o})]}),t||x.jsxs("label",{children:[i.EXPORT_ZIP_PASSWORD_LABEL,x.jsx("input",{type:"password",autoComplete:"off",value:c,onChange:O})]})]})}function Bx({data:e,onExtract:t,onClose:n,messages:r}){const i=te.useRef(null),o=te.useRef(!1),[s,l]=te.useState("");function a(E){l(E.target.value)}function c(){l(e.filename)}function f(){t({filename:s,entries:e.entries})}function _(){l(""),o.current=!1,n()}return te.useEffect(()=>{!o.current&&s&&(o.current=!0,i.current.select())},[s]),x.jsx(ur,{data:e,title:r.EXTRACT_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.EXTRACT_DIALOG_BUTTON_LABEL,onOpen:c,onClose:_,onSubmit:f,children:x.jsxs("label",{children:[r.EXTRACT_FILENAME_LABEL,x.jsx("input",{spellCheck:"false",type:"text",value:s,required:!0,onChange:a,ref:i})]})})}function Px({data:e,onRename:t,onClose:n,messages:r}){const i=te.useRef(null),o=te.useRef(!1),[s,l]=te.useState("");function a(E){l(E.target.value)}function c(){l(e.filename)}function f(){t({filename:s})}function _(){l(""),o.current=!1,n()}return te.useEffect(()=>{!o.current&&s&&(o.current=!0,i.current.select())},[s]),x.jsx(ur,{data:e,title:r.RENAME_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.RENAME_DIALOG_BUTTON_LABEL,onOpen:c,onClose:_,onSubmit:f,children:x.jsxs("label",{children:[r.RENAME_FILENAME_LABEL,x.jsx("input",{spellCheck:"false",type:"text",value:s,required:!0,onChange:a,ref:i})]})})}function Cx({data:e,onCreateFolder:t,onClose:n,messages:r}){const[i,o]=te.useState("");function s(c){o(c.target.value)}function l(){t({folderName:i})}function a(){o(""),n()}return x.jsx(ur,{data:e,title:r.CREATE_FOLDER_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.CREATE_FOLDER_DIALOG_BUTTON_LABEL,onClose:a,onSubmit:l,children:x.jsxs("label",{children:[r.CREATE_FOLDER_NAME_LABEL,x.jsx("input",{spellCheck:"false",type:"text",value:i,required:!0,onChange:s})]})})}function Dx({data:e,onReset:t,onClose:n,messages:r}){return x.jsx(ur,{data:e,title:r.RESET_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.RESET_DIALOG_BUTTON_LABEL,onClose:n,onSubmit:t,children:r.RESET_MESSAGE})}function kx({data:e,onDeleteEntries:t,onClose:n,messages:r}){return x.jsx(ur,{data:e,title:r.DELETE_ENTRIES_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.DELETE_ENTRIES_DIALOG_BUTTON_LABEL,onClose:n,onSubmit:t,children:r.DELETE_ENTRIES_MESSAGE})}function bx({data:e,onClose:t,messages:n}){return x.jsx(ur,{data:e,title:n.ERROR_TITLE,submitLabel:n.DIALOG_OK_BUTTON_LABEL,onClose:t,children:e==null?void 0:e.message})}function Ux({data:e,onClose:t,messages:n}){const[r,i]=te.useState("");function o(l){i(l.target.value)}function s(){i(""),e.onSetImportPassword({password:r}),t()}return x.jsx(ur,{data:e,title:n.IMPORT_PASSWORD_TITLE,cancelLabel:n.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:n.DIALOG_OK_BUTTON_LABEL,onClose:s,children:x.jsxs("label",{children:[n.IMPORT_PASSWORD_LABEL,x.jsx("input",{type:"password",autoComplete:"off",value:r,required:!0,onChange:o})]})})}function Fx({data:e,onSetOptions:t,onResetOptions:n,onClose:r,messages:i}){const[o,s]=te.useState(""),[l,a]=te.useState(!1),[c,f]=te.useState(!1),[_,E]=te.useState(!1),[O,w]=te.useState("default"),[h,m]=te.useState(""),[u,d]=te.useState(!1),[p,A]=te.useState(!1),[g,L]=te.useState(!1),[v,T]=te.useState(!1),[S,y]=te.useState("0"),[N,P]=te.useState("0"),R=te.useRef(null);function k(M){s(M.target.value)}function F(M){a(M.target.checked)}function z(M){f(M.target.checked)}function X(M){E(M.target.checked)}function I(M){w(M.target.value)}function q(M){d(M.target.checked)}function D(){R.current.select()}function le(M){m(M.target.value)}function Q(M){A(M.target.checked)}function V(M){T(M.target.checked)}function de(M){L(M.target.checked)}function Te(M){y(M.target.value)}function pe(M){P(M.target.value)}function Se(){t({zoomFactor:Number(o),hideNavigationBar:l,hideDownloadManager:c,hideInfobar:_,skin:O,promptForExportPassword:u,defaultExportPassword:h,keepOrder:p,checkSignature:g,bufferedWrite:v,maxWorkers:Number(S),chunkSize:Number(N)*1024})}function ne(){if(e){const{zoomFactor:M,hideNavigationBar:ie,hideDownloadManager:ue,hideInfobar:Y,skin:W,promptForExportPassword:ce,defaultExportPassword:K,keepOrder:C,checkSignature:ee,bufferedWrite:fe,maxWorkers:Le,chunkSize:_e}=e;s(M),a(ie),f(ue),E(Y),w(W),d(ce),m(K),A(C),L(ee),T(fe),y(Le),P(_e/1024)}}return te.useEffect(ne,[e]),x.jsxs(ur,{className:"options-dialog",data:e,title:i.OPTIONS_TITLE,onOpen:ne,onSubmit:Se,onReset:n,onClose:r,resetLabel:i.DIALOG_RESET_BUTTON_LABEL,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.OPTIONS_DIALOG_BUTTON_LABEL,children:[x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_ZOOM_FACTOR_LABEL}),x.jsx("input",{value:o,type:"number",required:!0,min:20,max:500,step:5,onChange:k})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_HIDE_NAVIGATION_BAR_LABEL}),x.jsx("input",{checked:l,type:"checkbox",onChange:F})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL}),x.jsx("input",{checked:c,type:"checkbox",onChange:z})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_HIDE_INFOBAR_LABEL}),x.jsx("input",{checked:_,type:"checkbox",onChange:X})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_SELECT_SKIN_LABEL}),x.jsxs("select",{value:O,onChange:I,children:[x.jsx("option",{value:Ul,children:i.OPTIONS_DEFAULT_SKIN_LABEL}),x.jsx("option",{value:df,children:i.OPTIONS_DOS_SKIN_LABEL})]})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_EXPORT_ZIP_PASSWORD_LABEL}),x.jsx("input",{checked:u,type:"checkbox",onChange:q})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_DEFAULT_PASSWORD_LABEL}),x.jsx("input",{type:"password",autoComplete:"off",value:h,onFocus:D,onChange:le,ref:R})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_CHECK_SIGNATURE_LABEL}),x.jsx("input",{checked:g,type:"checkbox",onChange:de})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_BUFFERED_WRITE_LABEL}),x.jsx("input",{checked:v,type:"checkbox",onChange:V})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_MAX_WORKERS_LABEL}),x.jsx("input",{value:S,type:"number",required:!0,disabled:!v,min:1,onChange:Te})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_KEEP_ORDER_LABEL}),x.jsx("input",{checked:p,type:"checkbox",onChange:Q})]}),x.jsxs("label",{children:[x.jsx("span",{children:i.OPTIONS_CHUNK_SIZE_LABEL}),x.jsx("input",{value:N,type:"number",required:!0,min:1,onChange:pe})]})]})}function Mx({data:e,onImportZipFile:t,onAddFiles:n,onClose:r,messages:i}){const o=te.useRef(null);function s(){r()}function l(){t(e.files[0])}function a(){n(e.files)}function c(){o.current.close()}return te.useEffect(()=>{!o.current.open&&e&&o.current.showModal()},[e]),x.jsx("dialog",{ref:o,onClose:s,children:x.jsx("form",{method:"dialog",onReset:c,children:x.jsxs("div",{children:[x.jsx("div",{className:"dialog-title",children:x.jsx("label",{children:i.CHOOSE_ACTION_TITLE})}),x.jsx("p",{children:i.CHOOSE_ACTION_LABEL}),x.jsxs("div",{className:"button-bar",children:[x.jsx("div",{className:"button-group"}),x.jsxs("div",{className:"button-group",children:[x.jsx("button",{type:"reset",children:i.DIALOG_CANCEL_BUTTON_LABEL}),x.jsx("button",{type:"submit",onClick:a,children:i.CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL}),x.jsx("button",{type:"submit",onClick:l,children:i.IMPORT_ZIP_BUTTON_LABEL})]})]})]})})})}const $x="..",jx="",Hx="Téléchargement.zip",$m=", ",Gx="Répertoire parent",jt="Raccourci : ",Nn="⌘/ctrl-",jm="alt-",zx="espace",Hm="gauche",Gm="droite",Kx="Taille :",Wx="Taille non compressée :",Zx="Taille compressée :",Vx="Date de dernière modification :",Yx=jt+Nn+"c",qx=jt+Nn+"x",Xx=jt+Nn+"v",Qx=jt+Nn+"Entrée",Jx=jt+Nn+"a",ey=jt+Nn+"r",ty=jt+["retour arrière","suppr"].join($m),ny=jt+Nn+"d",ry=jt+Nn+"f",iy=jt+Nn+"i",oy=jt+Nn+"e",sy=jt+jm+Hm,ay=jt+jm+Gm,ly="Créer répertoire",cy="Ajouter fichiers",uy="Importer zip",fy="Exporter zip",dy="Réinitialiser",_y="Options",py="<",Ey=">",my="↵",Ty="↓",hy="Copier",Ly="Couper",Oy="Coller",Ay="Réinitialiser presse-papier",gy="Extraire",vy="Selectionner tout",wy="Renommer",xy="Supprimer",yy="✕",Sy="Réinitialiser",Ny="Annuler",Iy="OK",Ry="Erreur",By="Exporter fichier zip",Py="Nom du fichier :",Cy="Mot de passe :",Dy="Export",ky="Extraire fichier",by="Nom du fichier :",Uy="Extraire",Fy="Renommer entrée",My="Nouveau nom de l'entrée :",$y="Renommer",jy="Créer répertoire",Hy="Nom du repertoire :",Gy="Créer",zy="Réinitialiser système de fichiers",Ky="Veuillez confirmer la réinitialisation du système de fichiers.",Wy="Réinitialiser",Zy="Supprimer les entrées",Vy="Veuillez confirmer la suppression des entrées en surbrillance.",Yy="Supprimer",qy="Zipper fichier",Xy="Entrer le mot de passse",Qy="Mot de passe :",Jy="Sauver",eS="Options",tS="Facteur de zoom (%) :",nS="Cacher la barre de navigation :",rS="Cacher le panneau de téléchargements :",iS="Cacher la barre du bas :",oS="Thème :",sS="Défaut",aS="DOS",lS="Demander un mot de passe :",cS="Mot de passe par défaut :",uS="Préserver l'ordre des entrées :",fS="Vérifier la signature des données :",dS="Utiliser plusieurs cœurs :",_S="Nombre de cœurs :",pS="Taille des paquets (ko) :",ES="Ajouter fichier",mS="Choisir l'action",TS="Un fichier zip a été selectionné, veuillez choisir l'action appropriée.",hS="Glissez et déposez des fichiers et des répertoires ici",LS=["Code source sur "," GitHub "," Fait avec ","♡"," à ","Rennes"],OS="https://fr.wikipedia.org/wiki/Rennes",AS="Commandes des entrées en surbrillance",gS="Panneau de téléchargements",vS="Entrées du répertoire",wS="Historique de navigation",xS="Commandes du répertoire selectionné",yS="Naviguer dans le répertoire",SS="Naviguer en arrière",NS="Naviguer en avant",IS="Couleur d'accentuation",RS="▶",BS="II",PS=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:yy,ACCENT_COLOR_LABEL:IS,ADD_FILES_BUTTON_LABEL:cy,ADD_FILES_BUTTON_TOOLTIP:ry,ARROW_LEFT_KEY_LABEL:Hm,ARROW_RIGHT_KEY_LABEL:Gm,BACK_BUTTON_LABEL:py,BACK_BUTTON_TOOLTIP:sy,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:ES,CHOOSE_ACTION_LABEL:TS,CHOOSE_ACTION_TITLE:mS,CITY_URL:OS,COMPRESSED_SIZE_LABEL:Zx,COPY_BUTTON_LABEL:hy,COPY_BUTTON_TOOLTIP:Yx,CREATE_FOLDER_BUTTON_LABEL:ly,CREATE_FOLDER_BUTTON_TOOLTIP:ny,CREATE_FOLDER_DIALOG_BUTTON_LABEL:Gy,CREATE_FOLDER_NAME_LABEL:Hy,CREATE_FOLDER_TITLE:jy,CTRL_KEY_LABEL:Nn,CUT_BUTTON_LABEL:Ly,CUT_BUTTON_TOOLTIP:qx,DELETE_BUTTON_LABEL:xy,DELETE_BUTTON_TOOLTIP:ty,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:Yy,DELETE_ENTRIES_MESSAGE:Vy,DELETE_ENTRIES_TITLE:Zy,DIALOG_CANCEL_BUTTON_LABEL:Ny,DIALOG_OK_BUTTON_LABEL:Iy,DIALOG_RESET_BUTTON_LABEL:Sy,DOWNLOADS_LABEL:gS,DOWNLOAD_BUTTON_LABEL:my,ENTER_FOLDER_BUTTON_LABEL:Ty,ENTRIES_LABEL:vS,ERROR_TITLE:Ry,EXPORT_ZIP_BUTTON_LABEL:fy,EXPORT_ZIP_BUTTON_TOOLTIP:oy,EXPORT_ZIP_DIALOG_BUTTON_LABEL:Dy,EXPORT_ZIP_FILENAME_LABEL:Py,EXPORT_ZIP_PASSWORD_LABEL:Cy,EXPORT_ZIP_TITLE:By,EXTRACT_BUTTON_LABEL:gy,EXTRACT_BUTTON_TOOLTIP:Qx,EXTRACT_DIALOG_BUTTON_LABEL:Uy,EXTRACT_FILENAME_LABEL:by,EXTRACT_TITLE:ky,FOLDERS_LABEL:wS,FORWARD_BUTTON_LABEL:Ey,FORWARD_BUTTON_TOOLTIP:ay,GO_BACK_LABEL:SS,GO_FORWARD_LABEL:NS,GO_INTO_FOLDER_LABEL:yS,HIGHLIGHTED_ENTRIES_LABEL:AS,HIGHLIGHT_ALL_BUTTON_LABEL:vy,HIGHLIGHT_ALL_BUTTON_TOOLTIP:Jx,IMPORT_PASSWORD_LABEL:Qy,IMPORT_PASSWORD_TITLE:Xy,IMPORT_ZIP_BUTTON_LABEL:uy,IMPORT_ZIP_BUTTON_TOOLTIP:iy,INFO_LABEL:LS,KEYS_SEPARATOR_LABEL:$m,LAST_MOD_DATE_LABEL:Vx,NO_ENTRIES_LABEL:hS,OPTIONS_BUFFERED_WRITE_LABEL:dS,OPTIONS_BUTTON_LABEL:_y,OPTIONS_CHECK_SIGNATURE_LABEL:fS,OPTIONS_CHUNK_SIZE_LABEL:pS,OPTIONS_DEFAULT_PASSWORD_LABEL:cS,OPTIONS_DEFAULT_SKIN_LABEL:sS,OPTIONS_DIALOG_BUTTON_LABEL:Jy,OPTIONS_DOS_SKIN_LABEL:aS,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:lS,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:rS,OPTIONS_HIDE_INFOBAR_LABEL:iS,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:nS,OPTIONS_KEEP_ORDER_LABEL:uS,OPTIONS_MAX_WORKERS_LABEL:_S,OPTIONS_SELECT_SKIN_LABEL:oS,OPTIONS_TITLE:eS,OPTIONS_ZOOM_FACTOR_LABEL:tS,PARENT_FOLDER_LABEL:$x,PARENT_FOLDER_TOOLTIP:Gx,PASTE_BUTTON_LABEL:Oy,PASTE_BUTTON_TOOLTIP:Xx,PAUSED_MUSIC_ICON:BS,PLAYING_MUSIC_ICON:RS,RENAME_BUTTON_LABEL:wy,RENAME_BUTTON_TOOLTIP:ey,RENAME_DIALOG_BUTTON_LABEL:$y,RENAME_FILENAME_LABEL:My,RENAME_TITLE:Fy,RESET_BUTTON_LABEL:dy,RESET_CLIPBOARD_BUTTON_LABEL:Ay,RESET_DIALOG_BUTTON_LABEL:Wy,RESET_MESSAGE:Ky,RESET_TITLE:zy,ROOT_FOLDER_LABEL:jx,ROOT_ZIP_FILENAME:Hx,SELECTED_FOLDER_LABEL:xS,SHORTCUT_LABEL:jt,SIZE_LABEL:Kx,SPACE_KEY_LABEL:zx,UNCOMPRESSED_SIZE_LABEL:Wx,ZIP_FILE_DESCRIPTION_LABEL:qy},Symbol.toStringTag,{value:"Module"})),CS="..",DS="",kS="Download.zip",zm=", ",bS="Parent directory",Ht="Shortcut: ",In="⌘/ctrl-",Km="alt-",US="space",Wm="left",Zm="right",FS="Size:",MS="Uncompressed size:",$S="Compressed size:",jS="Last mod. date:",HS=Ht+In+"c",GS=Ht+In+"x",zS=Ht+In+"v",KS=Ht+In+"Enter",WS=Ht+In+"a",ZS=Ht+In+"r",VS=Ht+["backspace","delete"].join(zm),YS=Ht+In+"d",qS=Ht+In+"f",XS=Ht+In+"i",QS=Ht+In+"e",JS=Ht+Km+Wm,e8=Ht+Km+Zm,t8="Create directory",n8="Add files",r8="Import zip",i8="Export zip",o8="Reset",s8="Options",a8="<",l8=">",c8="↵",u8="↓",f8="Copy",d8="Cut",_8="Paste",p8="Reset clipboard",E8="Extract",m8="Select all",T8="Rename",h8="Delete",L8="✕",O8="Reset",A8="Cancel",g8="OK",v8="Error",w8="Export zip file",x8="Filename:",y8="Password:",S8="Export",N8="Extract file",I8="Filename:",R8="Extract",B8="Rename entry",P8="New entry name:",C8="Rename",D8="Create directory",k8="Directory name:",b8="Create",U8="Reset filesystem",F8="Please confirm the reset of the filesystem.",M8="Reset",$8="Delete entries",j8="Please confirm the deletion of the highlighted entries.",H8="Delete",G8="Zip file",z8="Enter password",K8="Password:",W8="Save",Z8="Options",V8="Zoom factor (%):",Y8="Hide navigation bar:",q8="Hide downloads panel:",X8="Hide bottom bar:",Q8="Theme:",J8="Default",eN="DOS",tN="Prompt for password:",nN="Default password:",rN="Keep entries order:",iN="Check data signature:",oN="Use multiple cores:",sN="Number of cores:",aN="Chunk size (kB):",lN="Add file",cN="Choose action",uN="A zip file has been selected, please choose the proper action.",fN="Drag and drop files and directories here",dN=["Source code on "," GitHub "," Made with ","♡"," in ","Rennes"],_N="https://en.wikipedia.org/wiki/Rennes",pN="Highlighted entries commands",EN="Downloads panel",mN="Directory entries",TN="Navigation history",hN="Selected directory commands",LN="Go into folder",ON="Go back",AN="Go forward",gN="Accent color",vN="▶",wN="II",xN=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:L8,ACCENT_COLOR_LABEL:gN,ADD_FILES_BUTTON_LABEL:n8,ADD_FILES_BUTTON_TOOLTIP:qS,ARROW_LEFT_KEY_LABEL:Wm,ARROW_RIGHT_KEY_LABEL:Zm,BACK_BUTTON_LABEL:a8,BACK_BUTTON_TOOLTIP:JS,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:lN,CHOOSE_ACTION_LABEL:uN,CHOOSE_ACTION_TITLE:cN,CITY_URL:_N,COMPRESSED_SIZE_LABEL:$S,COPY_BUTTON_LABEL:f8,COPY_BUTTON_TOOLTIP:HS,CREATE_FOLDER_BUTTON_LABEL:t8,CREATE_FOLDER_BUTTON_TOOLTIP:YS,CREATE_FOLDER_DIALOG_BUTTON_LABEL:b8,CREATE_FOLDER_NAME_LABEL:k8,CREATE_FOLDER_TITLE:D8,CTRL_KEY_LABEL:In,CUT_BUTTON_LABEL:d8,CUT_BUTTON_TOOLTIP:GS,DELETE_BUTTON_LABEL:h8,DELETE_BUTTON_TOOLTIP:VS,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:H8,DELETE_ENTRIES_MESSAGE:j8,DELETE_ENTRIES_TITLE:$8,DIALOG_CANCEL_BUTTON_LABEL:A8,DIALOG_OK_BUTTON_LABEL:g8,DIALOG_RESET_BUTTON_LABEL:O8,DOWNLOADS_LABEL:EN,DOWNLOAD_BUTTON_LABEL:c8,ENTER_FOLDER_BUTTON_LABEL:u8,ENTRIES_LABEL:mN,ERROR_TITLE:v8,EXPORT_ZIP_BUTTON_LABEL:i8,EXPORT_ZIP_BUTTON_TOOLTIP:QS,EXPORT_ZIP_DIALOG_BUTTON_LABEL:S8,EXPORT_ZIP_FILENAME_LABEL:x8,EXPORT_ZIP_PASSWORD_LABEL:y8,EXPORT_ZIP_TITLE:w8,EXTRACT_BUTTON_LABEL:E8,EXTRACT_BUTTON_TOOLTIP:KS,EXTRACT_DIALOG_BUTTON_LABEL:R8,EXTRACT_FILENAME_LABEL:I8,EXTRACT_TITLE:N8,FOLDERS_LABEL:TN,FORWARD_BUTTON_LABEL:l8,FORWARD_BUTTON_TOOLTIP:e8,GO_BACK_LABEL:ON,GO_FORWARD_LABEL:AN,GO_INTO_FOLDER_LABEL:LN,HIGHLIGHTED_ENTRIES_LABEL:pN,HIGHLIGHT_ALL_BUTTON_LABEL:m8,HIGHLIGHT_ALL_BUTTON_TOOLTIP:WS,IMPORT_PASSWORD_LABEL:K8,IMPORT_PASSWORD_TITLE:z8,IMPORT_ZIP_BUTTON_LABEL:r8,IMPORT_ZIP_BUTTON_TOOLTIP:XS,INFO_LABEL:dN,KEYS_SEPARATOR_LABEL:zm,LAST_MOD_DATE_LABEL:jS,NO_ENTRIES_LABEL:fN,OPTIONS_BUFFERED_WRITE_LABEL:oN,OPTIONS_BUTTON_LABEL:s8,OPTIONS_CHECK_SIGNATURE_LABEL:iN,OPTIONS_CHUNK_SIZE_LABEL:aN,OPTIONS_DEFAULT_PASSWORD_LABEL:nN,OPTIONS_DEFAULT_SKIN_LABEL:J8,OPTIONS_DIALOG_BUTTON_LABEL:W8,OPTIONS_DOS_SKIN_LABEL:eN,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:tN,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:q8,OPTIONS_HIDE_INFOBAR_LABEL:X8,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:Y8,OPTIONS_KEEP_ORDER_LABEL:rN,OPTIONS_MAX_WORKERS_LABEL:sN,OPTIONS_SELECT_SKIN_LABEL:Q8,OPTIONS_TITLE:Z8,OPTIONS_ZOOM_FACTOR_LABEL:V8,PARENT_FOLDER_LABEL:CS,PARENT_FOLDER_TOOLTIP:bS,PASTE_BUTTON_LABEL:_8,PASTE_BUTTON_TOOLTIP:zS,PAUSED_MUSIC_ICON:wN,PLAYING_MUSIC_ICON:vN,RENAME_BUTTON_LABEL:T8,RENAME_BUTTON_TOOLTIP:ZS,RENAME_DIALOG_BUTTON_LABEL:C8,RENAME_FILENAME_LABEL:P8,RENAME_TITLE:B8,RESET_BUTTON_LABEL:o8,RESET_CLIPBOARD_BUTTON_LABEL:p8,RESET_DIALOG_BUTTON_LABEL:M8,RESET_MESSAGE:F8,RESET_TITLE:U8,ROOT_FOLDER_LABEL:DS,ROOT_ZIP_FILENAME:kS,SELECTED_FOLDER_LABEL:hN,SHORTCUT_LABEL:Ht,SIZE_LABEL:FS,SPACE_KEY_LABEL:US,UNCOMPRESSED_SIZE_LABEL:MS,ZIP_FILE_DESCRIPTION_LABEL:G8},Symbol.toStringTag,{value:"Module"})),yN="..",SN="",NN="Download.zip",Vm=", ",IN="Übergeordneter Ordner",Gt="Verknüpfung: ",Rn="⌘/ctrl-",Ym="alt-",RN="Leertaste",qm="links",Xm="rechts",BN="Größe:",PN="Unkomprimierte Größe:",CN="Komprimierte Größe:",DN="Letzte Änderung:",kN=Gt+Rn+"c",bN=Gt+Rn+"x",UN=Gt+Rn+"v",FN=Gt+Rn+"Enter",MN=Gt+Rn+"a",$N=Gt+Rn+"r",jN=Gt+["Rücktaste","Entf"].join(Vm),HN=Gt+Rn+"d",GN=Gt+Rn+"f",zN=Gt+Rn+"i",KN=Gt+Rn+"e",WN=Gt+Ym+qm,ZN=Gt+Ym+Xm,VN="Verzeichnis erstellen",YN="Dateien hinzufügen",qN="Zip importieren",XN="Zip exportieren",QN="Zurücksetzen",JN="Optionen",eI="<",tI=">",nI="↵",rI="↓",iI="Kopieren",oI="Ausschneiden",sI="Einfügen",aI="Zwischenablage zurücksetzen",lI="Extrahieren",cI="Alles auswählen",uI="Umbenennen",fI="Löschen",dI="✕",_I="Zurücksetzen",pI="Abbrechen",EI="OK",mI="Fehler",TI="Zip-Datei exportieren",hI="Dateiname:",LI="Passwort:",OI="Exportieren",AI="Datei extrahieren",gI="Dateiname:",vI="Extrahieren",wI="Eintrag umbenennen",xI="Neuer Eintragsname:",yI="Umbenennen",SI="Verzeichnis erstellen",NI="Verzeichnisname:",II="Erstellen",RI="Dateisystem zurücksetzen",BI="Bitte bestätigen Sie das Zurücksetzen des Dateisystems.",PI="Zurücksetzen",CI="Einträge löschen",DI="Bitte bestätigen Sie das Löschen der markierten Einträge.",kI="Löschen",bI="Zip-Datei",UI="Passwort eingeben",FI="Passwort:",MI="Speichern",$I="Optionen",jI="Zoomfaktor (%):",HI="Navigationsleiste ausblenden:",GI="Download-Manager ausblenden:",zI="Untere Leiste ausblenden:",KI="Thema:",WI="Standard",ZI="DOS",VI="Nach Passwort fragen:",YI="Standardpasswort:",qI="Einträge sortieren:",XI="Daten-Signatur prüfen:",QI="Mehrere Kerne verwenden:",JI="Anzahl der Kerne:",eR="Chunk-Größe (kB):",tR="Datei hinzufügen",nR="Aktion auswählen",rR="Eine Zip-Datei wurde ausgewählt. Bitte wählen Sie die entsprechende Aktion.",iR="Dateien und Verzeichnisse hierher ziehen",oR=["Quellcode auf "," GitHub "," Mit ","♡"," gemacht in ","Rennes"],sR="https://de.wikipedia.org/wiki/Rennes",aR="Befehle für markierte Einträge",lR="Download-Manager",cR="Verzeichniseinträge",uR="Navigationsverlauf",fR="Befehle für ausgewähltes Verzeichnis",dR="In Verzeichnis wechseln",_R="Zurück",pR="Vorwärts",ER="Akzentfarbe",mR="▶",TR="II",hR=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:dI,ACCENT_COLOR_LABEL:ER,ADD_FILES_BUTTON_LABEL:YN,ADD_FILES_BUTTON_TOOLTIP:GN,ARROW_LEFT_KEY_LABEL:qm,ARROW_RIGHT_KEY_LABEL:Xm,BACK_BUTTON_LABEL:eI,BACK_BUTTON_TOOLTIP:WN,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:tR,CHOOSE_ACTION_LABEL:rR,CHOOSE_ACTION_TITLE:nR,CITY_URL:sR,COMPRESSED_SIZE_LABEL:CN,COPY_BUTTON_LABEL:iI,COPY_BUTTON_TOOLTIP:kN,CREATE_FOLDER_BUTTON_LABEL:VN,CREATE_FOLDER_BUTTON_TOOLTIP:HN,CREATE_FOLDER_DIALOG_BUTTON_LABEL:II,CREATE_FOLDER_NAME_LABEL:NI,CREATE_FOLDER_TITLE:SI,CTRL_KEY_LABEL:Rn,CUT_BUTTON_LABEL:oI,CUT_BUTTON_TOOLTIP:bN,DELETE_BUTTON_LABEL:fI,DELETE_BUTTON_TOOLTIP:jN,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:kI,DELETE_ENTRIES_MESSAGE:DI,DELETE_ENTRIES_TITLE:CI,DIALOG_CANCEL_BUTTON_LABEL:pI,DIALOG_OK_BUTTON_LABEL:EI,DIALOG_RESET_BUTTON_LABEL:_I,DOWNLOADS_LABEL:lR,DOWNLOAD_BUTTON_LABEL:nI,ENTER_FOLDER_BUTTON_LABEL:rI,ENTRIES_LABEL:cR,ERROR_TITLE:mI,EXPORT_ZIP_BUTTON_LABEL:XN,EXPORT_ZIP_BUTTON_TOOLTIP:KN,EXPORT_ZIP_DIALOG_BUTTON_LABEL:OI,EXPORT_ZIP_FILENAME_LABEL:hI,EXPORT_ZIP_PASSWORD_LABEL:LI,EXPORT_ZIP_TITLE:TI,EXTRACT_BUTTON_LABEL:lI,EXTRACT_BUTTON_TOOLTIP:FN,EXTRACT_DIALOG_BUTTON_LABEL:vI,EXTRACT_FILENAME_LABEL:gI,EXTRACT_TITLE:AI,FOLDERS_LABEL:uR,FORWARD_BUTTON_LABEL:tI,FORWARD_BUTTON_TOOLTIP:ZN,GO_BACK_LABEL:_R,GO_FORWARD_LABEL:pR,GO_INTO_FOLDER_LABEL:dR,HIGHLIGHTED_ENTRIES_LABEL:aR,HIGHLIGHT_ALL_BUTTON_LABEL:cI,HIGHLIGHT_ALL_BUTTON_TOOLTIP:MN,IMPORT_PASSWORD_LABEL:FI,IMPORT_PASSWORD_TITLE:UI,IMPORT_ZIP_BUTTON_LABEL:qN,IMPORT_ZIP_BUTTON_TOOLTIP:zN,INFO_LABEL:oR,KEYS_SEPARATOR_LABEL:Vm,LAST_MOD_DATE_LABEL:DN,NO_ENTRIES_LABEL:iR,OPTIONS_BUFFERED_WRITE_LABEL:QI,OPTIONS_BUTTON_LABEL:JN,OPTIONS_CHECK_SIGNATURE_LABEL:XI,OPTIONS_CHUNK_SIZE_LABEL:eR,OPTIONS_DEFAULT_PASSWORD_LABEL:YI,OPTIONS_DEFAULT_SKIN_LABEL:WI,OPTIONS_DIALOG_BUTTON_LABEL:MI,OPTIONS_DOS_SKIN_LABEL:ZI,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:VI,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:GI,OPTIONS_HIDE_INFOBAR_LABEL:zI,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:HI,OPTIONS_KEEP_ORDER_LABEL:qI,OPTIONS_MAX_WORKERS_LABEL:JI,OPTIONS_SELECT_SKIN_LABEL:KI,OPTIONS_TITLE:$I,OPTIONS_ZOOM_FACTOR_LABEL:jI,PARENT_FOLDER_LABEL:yN,PARENT_FOLDER_TOOLTIP:IN,PASTE_BUTTON_LABEL:sI,PASTE_BUTTON_TOOLTIP:UN,PAUSED_MUSIC_ICON:TR,PLAYING_MUSIC_ICON:mR,RENAME_BUTTON_LABEL:uI,RENAME_BUTTON_TOOLTIP:$N,RENAME_DIALOG_BUTTON_LABEL:yI,RENAME_FILENAME_LABEL:xI,RENAME_TITLE:wI,RESET_BUTTON_LABEL:QN,RESET_CLIPBOARD_BUTTON_LABEL:aI,RESET_DIALOG_BUTTON_LABEL:PI,RESET_MESSAGE:BI,RESET_TITLE:RI,ROOT_FOLDER_LABEL:SN,ROOT_ZIP_FILENAME:NN,SELECTED_FOLDER_LABEL:fR,SHORTCUT_LABEL:Gt,SIZE_LABEL:BN,SPACE_KEY_LABEL:RN,UNCOMPRESSED_SIZE_LABEL:PN,ZIP_FILE_DESCRIPTION_LABEL:bI},Symbol.toStringTag,{value:"Module"})),LR="..",OR="",AR="Descarga.zip",Qm=", ",gR="Directorio padre",zt="Atajo: ",Bn="⌘/ctrl-",Jm="alt-",vR="espacio",eT="izquierda",tT="derecha",wR="Tamaño:",xR="Tamaño sin comprimir:",yR="Tamaño comprimido:",SR="Fecha de última modificación:",NR=zt+Bn+"c",IR=zt+Bn+"x",RR=zt+Bn+"v",BR=zt+Bn+"Enter",PR=zt+Bn+"a",CR=zt+Bn+"r",DR=zt+["backspace","delete"].join(Qm),kR=zt+Bn+"d",bR=zt+Bn+"f",UR=zt+Bn+"i",FR=zt+Bn+"e",MR=zt+Jm+eT,$R=zt+Jm+tT,jR="Crear directorio",HR="Agregar archivos",GR="Importar zip",zR="Exportar zip",KR="Reiniciar",WR="Opciones",ZR="<",VR=">",YR="↵",qR="↓",XR="Copiar",QR="Cortar",JR="Pegar",e3="Reiniciar portapapeles",t3="Extraer",n3="Seleccionar todo",r3="Renombrar",i3="Eliminar",o3="✕",s3="Reiniciar",a3="Cancelar",l3="OK",c3="Error",u3="Exportar archivo zip",f3="Nombre de archivo:",d3="Contraseña:",_3="Exportar",p3="Extraer archivo",E3="Nombre de archivo:",m3="Extraer",T3="Renombrar entrada",h3="Nuevo nombre de entrada:",L3="Renombrar",O3="Crear directorio",A3="Nombre del directorio:",g3="Crear",v3="Reiniciar sistema de archivos",w3="Por favor, confirme el reinicio del sistema de archivos.",x3="Reiniciar",y3="Eliminar entradas",S3="Por favor, confirme la eliminación de las entradas resaltadas.",N3="Eliminar",I3="Archivo zip",R3="Introducir contraseña",B3="Contraseña:",P3="Guardar",C3="Opciones",D3="Factor de zoom (%):",k3="Ocultar barra de navegación:",b3="Ocultar panel de descargas:",U3="Ocultar barra inferior:",F3="Tema:",M3="Predeterminado",$3="DOS",j3="Solicitar contraseña:",H3="Contraseña predeterminada:",G3="Mantener orden de entradas:",z3="Verificar firma de datos:",K3="Usar múltiples núcleos:",W3="Número de núcleos:",Z3="Tamaño de fragmento (kB):",V3="Agregar archivo",Y3="Elegir acción",q3="Se ha seleccionado un archivo zip, por favor elija la acción adecuada.",X3="Arrastre y suelte archivos y directorios aquí",Q3=["Código fuente en "," GitHub "," Hecho con ","♡"," en ","Rennes"],J3="https://es.wikipedia.org/wiki/Rennes",eB="Comandos de entradas resaltadas",tB="Panel de descargas",nB="Entradas de directorio",rB="Historial de navegación",iB="Comandos de directorio seleccionado",oB="Ir al directorio",sB="Retroceder",aB="Avanzar",lB="Color de acento",cB="▶",uB="II",fB=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:o3,ACCENT_COLOR_LABEL:lB,ADD_FILES_BUTTON_LABEL:HR,ADD_FILES_BUTTON_TOOLTIP:bR,ARROW_LEFT_KEY_LABEL:eT,ARROW_RIGHT_KEY_LABEL:tT,BACK_BUTTON_LABEL:ZR,BACK_BUTTON_TOOLTIP:MR,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:V3,CHOOSE_ACTION_LABEL:q3,CHOOSE_ACTION_TITLE:Y3,CITY_URL:J3,COMPRESSED_SIZE_LABEL:yR,COPY_BUTTON_LABEL:XR,COPY_BUTTON_TOOLTIP:NR,CREATE_FOLDER_BUTTON_LABEL:jR,CREATE_FOLDER_BUTTON_TOOLTIP:kR,CREATE_FOLDER_DIALOG_BUTTON_LABEL:g3,CREATE_FOLDER_NAME_LABEL:A3,CREATE_FOLDER_TITLE:O3,CTRL_KEY_LABEL:Bn,CUT_BUTTON_LABEL:QR,CUT_BUTTON_TOOLTIP:IR,DELETE_BUTTON_LABEL:i3,DELETE_BUTTON_TOOLTIP:DR,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:N3,DELETE_ENTRIES_MESSAGE:S3,DELETE_ENTRIES_TITLE:y3,DIALOG_CANCEL_BUTTON_LABEL:a3,DIALOG_OK_BUTTON_LABEL:l3,DIALOG_RESET_BUTTON_LABEL:s3,DOWNLOADS_LABEL:tB,DOWNLOAD_BUTTON_LABEL:YR,ENTER_FOLDER_BUTTON_LABEL:qR,ENTRIES_LABEL:nB,ERROR_TITLE:c3,EXPORT_ZIP_BUTTON_LABEL:zR,EXPORT_ZIP_BUTTON_TOOLTIP:FR,EXPORT_ZIP_DIALOG_BUTTON_LABEL:_3,EXPORT_ZIP_FILENAME_LABEL:f3,EXPORT_ZIP_PASSWORD_LABEL:d3,EXPORT_ZIP_TITLE:u3,EXTRACT_BUTTON_LABEL:t3,EXTRACT_BUTTON_TOOLTIP:BR,EXTRACT_DIALOG_BUTTON_LABEL:m3,EXTRACT_FILENAME_LABEL:E3,EXTRACT_TITLE:p3,FOLDERS_LABEL:rB,FORWARD_BUTTON_LABEL:VR,FORWARD_BUTTON_TOOLTIP:$R,GO_BACK_LABEL:sB,GO_FORWARD_LABEL:aB,GO_INTO_FOLDER_LABEL:oB,HIGHLIGHTED_ENTRIES_LABEL:eB,HIGHLIGHT_ALL_BUTTON_LABEL:n3,HIGHLIGHT_ALL_BUTTON_TOOLTIP:PR,IMPORT_PASSWORD_LABEL:B3,IMPORT_PASSWORD_TITLE:R3,IMPORT_ZIP_BUTTON_LABEL:GR,IMPORT_ZIP_BUTTON_TOOLTIP:UR,INFO_LABEL:Q3,KEYS_SEPARATOR_LABEL:Qm,LAST_MOD_DATE_LABEL:SR,NO_ENTRIES_LABEL:X3,OPTIONS_BUFFERED_WRITE_LABEL:K3,OPTIONS_BUTTON_LABEL:WR,OPTIONS_CHECK_SIGNATURE_LABEL:z3,OPTIONS_CHUNK_SIZE_LABEL:Z3,OPTIONS_DEFAULT_PASSWORD_LABEL:H3,OPTIONS_DEFAULT_SKIN_LABEL:M3,OPTIONS_DIALOG_BUTTON_LABEL:P3,OPTIONS_DOS_SKIN_LABEL:$3,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:j3,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:b3,OPTIONS_HIDE_INFOBAR_LABEL:U3,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:k3,OPTIONS_KEEP_ORDER_LABEL:G3,OPTIONS_MAX_WORKERS_LABEL:W3,OPTIONS_SELECT_SKIN_LABEL:F3,OPTIONS_TITLE:C3,OPTIONS_ZOOM_FACTOR_LABEL:D3,PARENT_FOLDER_LABEL:LR,PARENT_FOLDER_TOOLTIP:gR,PASTE_BUTTON_LABEL:JR,PASTE_BUTTON_TOOLTIP:RR,PAUSED_MUSIC_ICON:uB,PLAYING_MUSIC_ICON:cB,RENAME_BUTTON_LABEL:r3,RENAME_BUTTON_TOOLTIP:CR,RENAME_DIALOG_BUTTON_LABEL:L3,RENAME_FILENAME_LABEL:h3,RENAME_TITLE:T3,RESET_BUTTON_LABEL:KR,RESET_CLIPBOARD_BUTTON_LABEL:e3,RESET_DIALOG_BUTTON_LABEL:x3,RESET_MESSAGE:w3,RESET_TITLE:v3,ROOT_FOLDER_LABEL:OR,ROOT_ZIP_FILENAME:AR,SELECTED_FOLDER_LABEL:iB,SHORTCUT_LABEL:zt,SIZE_LABEL:wR,SPACE_KEY_LABEL:vR,UNCOMPRESSED_SIZE_LABEL:xR,ZIP_FILE_DESCRIPTION_LABEL:I3},Symbol.toStringTag,{value:"Module"})),dB="..",_B="",pB="Download.zip",nT=", ",EB="Cartella padre",Kt="Scorciatoia: ",Pn="⌘/ctrl-",rT="alt-",mB="spazio",iT="sinistra",oT="destra",TB="Dimensioni:",hB="Dimensioni non compressa:",LB="Dimensioni compressa:",OB="Data ultima modifica:",AB=Kt+Pn+"c",gB=Kt+Pn+"x",vB=Kt+Pn+"v",wB=Kt+Pn+"Invio",xB=Kt+Pn+"a",yB=Kt+Pn+"r",SB=Kt+["backspace","delete"].join(nT),NB=Kt+Pn+"d",IB=Kt+Pn+"f",RB=Kt+Pn+"i",BB=Kt+Pn+"e",PB=Kt+rT+iT,CB=Kt+rT+oT,DB="Crea cartella",kB="Aggiungi file",bB="Importa zip",UB="Esporta zip",FB="Resetta",MB="Opzioni",$B="<",jB=">",HB="↵",GB="↓",zB="Copia",KB="Taglia",WB="Incolla",ZB="Resetta clipboard",VB="Estrai",YB="Seleziona tutto",qB="Rinomina",XB="Elimina",QB="✕",JB="Resetta",e5="Annulla",t5="OK",n5="Errore",r5="Esporta file zip",i5="Nome file:",o5="Password:",s5="Esporta",a5="Estrai file",l5="Nome file:",c5="Estrai",u5="Rinomina voce",f5="Nuovo nome voce:",d5="Rinomina",_5="Crea cartella",p5="Nome cartella:",E5="Crea",m5="Resetta file system",T5="Confermi il reset del file system?",h5="Resetta",L5="Elimina voci",O5="Confermi l'eliminazione delle voci evidenziate?",A5="Elimina",g5="File zip",v5="Inserisci password",w5="Password:",x5="Salva",y5="Opzioni",S5="Fattore di zoom (%):",N5="Nascondi barra di navigazione:",I5="Nascondi pannello download:",R5="Nascondi barra inferiore:",B5="Tema:",P5="Predefinito",C5="DOS",D5="Richiedi password:",k5="Password predefinita:",b5="Mantieni ordine voci:",U5="Verifica firma dati:",F5="Usa multi-core:",M5="Numero core:",$5="Dimensione frammento (kB):",j5="Aggiungi file",H5="Scegli azione",G5="È stato selezionato un file zip, scegli l'azione appropriata.",z5="Trascina qui file e cartelle",K5=["Codice sorgente su "," GitHub "," Creato con ","♡"," a ","Rennes"],W5="https://it.wikipedia.org/wiki/Rennes",Z5="Comandi voci evidenziate",V5="Pannello download",Y5="Voci directory",q5="Cronologia navigazione",X5="Comandi cartella selezionata",Q5="Entra nella cartella",J5="Indietro",e4="Avanti",t4="Colore accentuazione",n4="▶",r4="II",i4=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:QB,ACCENT_COLOR_LABEL:t4,ADD_FILES_BUTTON_LABEL:kB,ADD_FILES_BUTTON_TOOLTIP:IB,ARROW_LEFT_KEY_LABEL:iT,ARROW_RIGHT_KEY_LABEL:oT,BACK_BUTTON_LABEL:$B,BACK_BUTTON_TOOLTIP:PB,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:j5,CHOOSE_ACTION_LABEL:G5,CHOOSE_ACTION_TITLE:H5,CITY_URL:W5,COMPRESSED_SIZE_LABEL:LB,COPY_BUTTON_LABEL:zB,COPY_BUTTON_TOOLTIP:AB,CREATE_FOLDER_BUTTON_LABEL:DB,CREATE_FOLDER_BUTTON_TOOLTIP:NB,CREATE_FOLDER_DIALOG_BUTTON_LABEL:E5,CREATE_FOLDER_NAME_LABEL:p5,CREATE_FOLDER_TITLE:_5,CTRL_KEY_LABEL:Pn,CUT_BUTTON_LABEL:KB,CUT_BUTTON_TOOLTIP:gB,DELETE_BUTTON_LABEL:XB,DELETE_BUTTON_TOOLTIP:SB,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:A5,DELETE_ENTRIES_MESSAGE:O5,DELETE_ENTRIES_TITLE:L5,DIALOG_CANCEL_BUTTON_LABEL:e5,DIALOG_OK_BUTTON_LABEL:t5,DIALOG_RESET_BUTTON_LABEL:JB,DOWNLOADS_LABEL:V5,DOWNLOAD_BUTTON_LABEL:HB,ENTER_FOLDER_BUTTON_LABEL:GB,ENTRIES_LABEL:Y5,ERROR_TITLE:n5,EXPORT_ZIP_BUTTON_LABEL:UB,EXPORT_ZIP_BUTTON_TOOLTIP:BB,EXPORT_ZIP_DIALOG_BUTTON_LABEL:s5,EXPORT_ZIP_FILENAME_LABEL:i5,EXPORT_ZIP_PASSWORD_LABEL:o5,EXPORT_ZIP_TITLE:r5,EXTRACT_BUTTON_LABEL:VB,EXTRACT_BUTTON_TOOLTIP:wB,EXTRACT_DIALOG_BUTTON_LABEL:c5,EXTRACT_FILENAME_LABEL:l5,EXTRACT_TITLE:a5,FOLDERS_LABEL:q5,FORWARD_BUTTON_LABEL:jB,FORWARD_BUTTON_TOOLTIP:CB,GO_BACK_LABEL:J5,GO_FORWARD_LABEL:e4,GO_INTO_FOLDER_LABEL:Q5,HIGHLIGHTED_ENTRIES_LABEL:Z5,HIGHLIGHT_ALL_BUTTON_LABEL:YB,HIGHLIGHT_ALL_BUTTON_TOOLTIP:xB,IMPORT_PASSWORD_LABEL:w5,IMPORT_PASSWORD_TITLE:v5,IMPORT_ZIP_BUTTON_LABEL:bB,IMPORT_ZIP_BUTTON_TOOLTIP:RB,INFO_LABEL:K5,KEYS_SEPARATOR_LABEL:nT,LAST_MOD_DATE_LABEL:OB,NO_ENTRIES_LABEL:z5,OPTIONS_BUFFERED_WRITE_LABEL:F5,OPTIONS_BUTTON_LABEL:MB,OPTIONS_CHECK_SIGNATURE_LABEL:U5,OPTIONS_CHUNK_SIZE_LABEL:$5,OPTIONS_DEFAULT_PASSWORD_LABEL:k5,OPTIONS_DEFAULT_SKIN_LABEL:P5,OPTIONS_DIALOG_BUTTON_LABEL:x5,OPTIONS_DOS_SKIN_LABEL:C5,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:D5,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:I5,OPTIONS_HIDE_INFOBAR_LABEL:R5,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:N5,OPTIONS_KEEP_ORDER_LABEL:b5,OPTIONS_MAX_WORKERS_LABEL:M5,OPTIONS_SELECT_SKIN_LABEL:B5,OPTIONS_TITLE:y5,OPTIONS_ZOOM_FACTOR_LABEL:S5,PARENT_FOLDER_LABEL:dB,PARENT_FOLDER_TOOLTIP:EB,PASTE_BUTTON_LABEL:WB,PASTE_BUTTON_TOOLTIP:vB,PAUSED_MUSIC_ICON:r4,PLAYING_MUSIC_ICON:n4,RENAME_BUTTON_LABEL:qB,RENAME_BUTTON_TOOLTIP:yB,RENAME_DIALOG_BUTTON_LABEL:d5,RENAME_FILENAME_LABEL:f5,RENAME_TITLE:u5,RESET_BUTTON_LABEL:FB,RESET_CLIPBOARD_BUTTON_LABEL:ZB,RESET_DIALOG_BUTTON_LABEL:h5,RESET_MESSAGE:T5,RESET_TITLE:m5,ROOT_FOLDER_LABEL:_B,ROOT_ZIP_FILENAME:pB,SELECTED_FOLDER_LABEL:X5,SHORTCUT_LABEL:Kt,SIZE_LABEL:TB,SPACE_KEY_LABEL:mB,UNCOMPRESSED_SIZE_LABEL:hB,ZIP_FILE_DESCRIPTION_LABEL:g5},Symbol.toStringTag,{value:"Module"})),o4="..",s4="",a4="Download.zip",sT=", ",l4="Diretório pai",Wt="Atalho: ",Cn="⌘/ctrl-",aT="alt-",c4="espaço",lT="esquerda",cT="direita",u4="Tamanho:",f4="Tamanho descompactado:",d4="Tamanho compactado:",_4="Data da última modificação:",p4=Wt+Cn+"c",E4=Wt+Cn+"x",m4=Wt+Cn+"v",T4=Wt+Cn+"Enter",h4=Wt+Cn+"a",L4=Wt+Cn+"r",O4=Wt+["backspace","delete"].join(sT),A4=Wt+Cn+"d",g4=Wt+Cn+"f",v4=Wt+Cn+"i",w4=Wt+Cn+"e",x4=Wt+aT+lT,y4=Wt+aT+cT,S4="Criar diretório",N4="Adicionar ficheiros",I4="Importar zip",R4="Exportar zip",B4="Repor",P4="Opções",C4="<",D4=">",k4="↵",b4="↓",U4="Copiar",F4="Cortar",M4="Colar",$4="Repor área de transferência",j4="Extrair",H4="Selecionar tudo",G4="Renomear",z4="Eliminar",K4="✕",W4="Repor",Z4="Cancelar",V4="OK",Y4="Erro",q4="Exportar ficheiro zip",X4="Nome do ficheiro:",Q4="Palavra-passe:",J4="Exportar",eP="Extrair ficheiro",tP="Nome do ficheiro:",nP="Extrair",rP="Renomear entrada",iP="Novo nome da entrada:",oP="Renomear",sP="Criar diretório",aP="Nome do diretório:",lP="Criar",cP="Repor sistema de ficheiros",uP="Por favor confirme a reposição do sistema de ficheiros.",fP="Repor",dP="Eliminar entradas",_P="Por favor confirme a eliminação das entradas selecionadas.",pP="Eliminar",EP="Ficheiro zip",mP="Introduzir palavra-passe",TP="Palavra-passe:",hP="Guardar",LP="Opções",OP="Fator de zoom (%):",AP="Esconder barra de navegação:",gP="Esconder painel de downloads:",vP="Esconder barra inferior:",wP="Tema:",xP="Padrão",yP="DOS",SP="Pedir palavra-passe:",NP="Palavra-passe padrão:",IP="Manter ordem das entradas:",RP="Verificar assinatura dos dados:",BP="Usar múltiplos núcleos:",PP="Número de núcleos:",CP="Tamanho do bloco (kB):",DP="Adicionar ficheiro",kP="Escolher ação",bP="Foi selecionado um ficheiro zip, por favor escolha a ação apropriada.",UP="Arraste e solte ficheiros e diretórios aqui",FP=["Código-fonte em "," GitHub"," Criado com ","♡"," em ","Rennes"],MP="https://pt.wikipedia.org/wiki/Rennes",$P="Comandos para entradas selecionadas",jP="Painel de downloads",HP="Entradas do diretório",GP="Histórico de navegação",zP="Comandos para diretório selecionado",KP="Entrar no diretório",WP="Voltar",ZP="Avançar",VP="Cor de destaque",YP="▶",qP="II",XP=Object.freeze(Object.defineProperty({__proto__:null,ABORT_DOWNLOAD_BUTTON_LABEL:K4,ACCENT_COLOR_LABEL:VP,ADD_FILES_BUTTON_LABEL:N4,ADD_FILES_BUTTON_TOOLTIP:g4,ARROW_LEFT_KEY_LABEL:lT,ARROW_RIGHT_KEY_LABEL:cT,BACK_BUTTON_LABEL:C4,BACK_BUTTON_TOOLTIP:x4,CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:DP,CHOOSE_ACTION_LABEL:bP,CHOOSE_ACTION_TITLE:kP,CITY_URL:MP,COMPRESSED_SIZE_LABEL:d4,COPY_BUTTON_LABEL:U4,COPY_BUTTON_TOOLTIP:p4,CREATE_FOLDER_BUTTON_LABEL:S4,CREATE_FOLDER_BUTTON_TOOLTIP:A4,CREATE_FOLDER_DIALOG_BUTTON_LABEL:lP,CREATE_FOLDER_NAME_LABEL:aP,CREATE_FOLDER_TITLE:sP,CTRL_KEY_LABEL:Cn,CUT_BUTTON_LABEL:F4,CUT_BUTTON_TOOLTIP:E4,DELETE_BUTTON_LABEL:z4,DELETE_BUTTON_TOOLTIP:O4,DELETE_ENTRIES_DIALOG_BUTTON_LABEL:pP,DELETE_ENTRIES_MESSAGE:_P,DELETE_ENTRIES_TITLE:dP,DIALOG_CANCEL_BUTTON_LABEL:Z4,DIALOG_OK_BUTTON_LABEL:V4,DIALOG_RESET_BUTTON_LABEL:W4,DOWNLOADS_LABEL:jP,DOWNLOAD_BUTTON_LABEL:k4,ENTER_FOLDER_BUTTON_LABEL:b4,ENTRIES_LABEL:HP,ERROR_TITLE:Y4,EXPORT_ZIP_BUTTON_LABEL:R4,EXPORT_ZIP_BUTTON_TOOLTIP:w4,EXPORT_ZIP_DIALOG_BUTTON_LABEL:J4,EXPORT_ZIP_FILENAME_LABEL:X4,EXPORT_ZIP_PASSWORD_LABEL:Q4,EXPORT_ZIP_TITLE:q4,EXTRACT_BUTTON_LABEL:j4,EXTRACT_BUTTON_TOOLTIP:T4,EXTRACT_DIALOG_BUTTON_LABEL:nP,EXTRACT_FILENAME_LABEL:tP,EXTRACT_TITLE:eP,FOLDERS_LABEL:GP,FORWARD_BUTTON_LABEL:D4,FORWARD_BUTTON_TOOLTIP:y4,GO_BACK_LABEL:WP,GO_FORWARD_LABEL:ZP,GO_INTO_FOLDER_LABEL:KP,HIGHLIGHTED_ENTRIES_LABEL:$P,HIGHLIGHT_ALL_BUTTON_LABEL:H4,HIGHLIGHT_ALL_BUTTON_TOOLTIP:h4,IMPORT_PASSWORD_LABEL:TP,IMPORT_PASSWORD_TITLE:mP,IMPORT_ZIP_BUTTON_LABEL:I4,IMPORT_ZIP_BUTTON_TOOLTIP:v4,INFO_LABEL:FP,KEYS_SEPARATOR_LABEL:sT,LAST_MOD_DATE_LABEL:_4,NO_ENTRIES_LABEL:UP,OPTIONS_BUFFERED_WRITE_LABEL:BP,OPTIONS_BUTTON_LABEL:P4,OPTIONS_CHECK_SIGNATURE_LABEL:RP,OPTIONS_CHUNK_SIZE_LABEL:CP,OPTIONS_DEFAULT_PASSWORD_LABEL:NP,OPTIONS_DEFAULT_SKIN_LABEL:xP,OPTIONS_DIALOG_BUTTON_LABEL:hP,OPTIONS_DOS_SKIN_LABEL:yP,OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:SP,OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:gP,OPTIONS_HIDE_INFOBAR_LABEL:vP,OPTIONS_HIDE_NAVIGATION_BAR_LABEL:AP,OPTIONS_KEEP_ORDER_LABEL:IP,OPTIONS_MAX_WORKERS_LABEL:PP,OPTIONS_SELECT_SKIN_LABEL:wP,OPTIONS_TITLE:LP,OPTIONS_ZOOM_FACTOR_LABEL:OP,PARENT_FOLDER_LABEL:o4,PARENT_FOLDER_TOOLTIP:l4,PASTE_BUTTON_LABEL:M4,PASTE_BUTTON_TOOLTIP:m4,PAUSED_MUSIC_ICON:qP,PLAYING_MUSIC_ICON:YP,RENAME_BUTTON_LABEL:G4,RENAME_BUTTON_TOOLTIP:L4,RENAME_DIALOG_BUTTON_LABEL:oP,RENAME_FILENAME_LABEL:iP,RENAME_TITLE:rP,RESET_BUTTON_LABEL:B4,RESET_CLIPBOARD_BUTTON_LABEL:$4,RESET_DIALOG_BUTTON_LABEL:fP,RESET_MESSAGE:uP,RESET_TITLE:cP,ROOT_FOLDER_LABEL:s4,ROOT_ZIP_FILENAME:a4,SELECTED_FOLDER_LABEL:zP,SHORTCUT_LABEL:Wt,SIZE_LABEL:u4,SPACE_KEY_LABEL:c4,UNCOMPRESSED_SIZE_LABEL:f4,ZIP_FILE_DESCRIPTION_LABEL:EP},Symbol.toStringTag,{value:"Module"})),QP={"fr-FR":PS,"en-US":xN,"de-DE":hR,"es-ES":fB,"it-IT":i4,"pt-PT":XP};function JP({i18nService:e}){return QP[e.getLanguageId()]}function eC({keyboardService:e,windowService:t}){function n(o){te.useEffect(s);function s(){return e.addKeyUpListener(o),()=>e.removeKeyUpListener(o)}}function r(o){te.useEffect(s);function s(){return e.addKeyDownListener(o),()=>e.removeKeyDownListener(o)}}function i(o){te.useEffect(s);function s(){return t.addUnloadListener(o),()=>t.removeUnloadListener(o)}}return{useKeyUp:n,useKeyDown:r,usePageUnload:i}}const{getCommonFeatures:tC,getEntriesFeatures:nC,getFoldersFeatures:rC,getSelectedFolderFeatures:iC,getHighlightedEntriesFeatures:oC,getFilesystemFeatures:sC,getDownloadsFeatures:aC,getClipboardFeatures:lC,getOptionsFeatures:cC,getAppFeatures:uC,getMiscFeatures:fC}=Zw,st=JP({i18nService:ha}),uT=Em(),{root:M_}=uT,dC=st.ROOT_ZIP_FILENAME;function _C(){const[e,t]=te.useState(uT),[n,r]=te.useState(M_),[i,o]=te.useState([]),[s,l]=te.useState(0),[a,c]=te.useState(0),[f,_]=te.useState([]),[E,O]=te.useState({previousHighlight:null,direction:0}),[w,h]=te.useState({queue:[],nextId:0}),[m,u]=te.useState(null),[d,p]=te.useState({path:[M_],index:0}),[A,g]=te.useState({}),[L,v]=te.useState(null),[T,S]=te.useState({}),[y,N]=te.useState({frequencyData:[]}),P=te.useRef(null),R=te.useRef(null),k=te.useRef(1),F=te.useRef(!1),z=R.current,X=F.current,I=()=>P.current,q=()=>P.current=null,D=()=>k.current,le=Hl=>k.current=Hl,Q=Hl=>F.current=Hl,{abortDownload:V,removeDownload:de}=aC({setDownloads:h,downloadService:vd}),{modifierKeyPressed:Te,saveZipFile:pe,saveEntries:Se,openDisplayError:ne,closeDisplayError:M}=tC({dialogs:A,setDownloads:h,setDialogs:g,removeDownload:de,downloadService:vd,filesystemService:Ks,environmentService:B_}),{initOptionsFeatures:ie,setOptions:ue,getOptions:Y,openOptions:W,closeOptions:ce,resetOptions:K}=cC({dialogs:A,setDialogs:g,setTheme:S,zipService:R_,storageService:wO,stylesheetService:Rc,environmentService:B_,themeService:P_,constants:Yt}),{disabledExportZip:C,disabledReset:ee,disabledNavigation:fe,disabledBack:Le,disabledForward:_e,disabledCopy:Ee,disabledCut:Be,disabledPaste:Ce,disabledResetClipboardData:De,disabledHighlightAll:et,disabledExtract:rt,disabledRename:mt,disabledDelete:Dn,disabledEnterEntry:Wn,dialogDisplayed:on,hiddenNavigationBar:sn,hiddenDownloadManager:U,hiddenInfobar:oe,hiddenExportPassword:B,highlightedEntry:$,highlightedEntries:b,selectedFolderEntries:j,ancestorFolders:re}=Cw({entries:i,highlightedIds:f,selectedFolder:n,clipboardData:m,history:d,getOptions:Y,dialogs:A,filesystemService:Ks}),{highlight:ae,highlightEntries:he,highlightAll:qe,toggle:be,toggleRange:Zn,resizeEntries:jr,updateEntriesHeight:fr,updateEntriesElementHeight:Os,updateEntriesElementHeightEnd:As,updateHighlightedEntries:gs,registerResizeEntriesHandler:vs,onEntriesKeyUp:Qi,onEntriesKeyDown:Ji}=nC({disabledNavigation:fe,disabledHighlightAll:et,entries:i,selectedFolderEntries:j,highlightedIds:f,navigation:E,dialogDisplayed:on,entriesElementHeight:s,entriesDeltaHeight:a,entriesElement:z,setHighlightedIds:_,resetHighlightedEntryElement:q,setNavigation:O,setOptions:ue,setEntriesHeight:le,setEntriesElementHeight:l,setEntriesDeltaHeight:c,setClickedButtonName:v,getEntriesHeight:D,getHighlightedEntryElement:I,getOptions:Y,modifierKeyPressed:Te,documentService:C_,windowService:D_,constants:Yt}),{goIntoFolder:ws,navigateBack:Fl,navigateForward:eo,refreshSelectedFolder:Zt,updateHistoryData:Vn,onFoldersKeyUp:Nt}=rC({disabledBack:Le,disabledForward:_e,history:d,highlightedEntry:$,highlightedEntries:b,selectedFolder:n,setSelectedFolder:r,setEntries:o,setHistory:p,setHighlightedIds:_,setClickedButtonName:v,modifierKeyPressed:Te,constants:Yt}),{initSelectedFolderFeatures:Hr,openPromptCreateFolder:dr,createFolder:Ge,closePromptCreateFolder:_r,addFiles:Yn,dropFiles:to,closeChooseAction:me,importZipFile:It,openPromptExportZip:kn,exportZip:Ne,paste:mn,closePromptExportZip:no,closePromptImportPassword:ro,showAddFilesPicker:qn,showImportZipFilePicker:xs,onSelectedFolderKeyDown:io}=iC({disabledPaste:Ce,disabledExportZip:C,zipFilesystem:e,selectedFolder:n,rootZipFilename:dC,clipboardData:m,dialogs:A,setHighlightedIds:_,setClipboardData:u,setDialogs:g,setClickedButtonName:v,refreshSelectedFolder:Zt,highlightEntries:he,saveZipFile:pe,getOptions:Y,openDisplayError:ne,filesystemService:Ks,fileHandlersService:Lv,shareTargetService:mv,modifierKeyPressed:Te,constants:Yt}),{copy:ci,cut:oo,openPromptRename:ys,rename:so,closePromptRename:Ml,openConfirmDeleteEntries:$l,deleteEntries:H,closeConfirmDeleteEntries:ve,openPromptExtract:G,extract:ze,closePromptExtract:Rt,onHighlightedEntriesKeyUp:ui,onHighlightedEntriesKeyDown:Ss}=oC({disabledCopy:Ee,disabledCut:Be,disabledExtract:rt,disabledRename:mt,disabledDelete:Dn,zipFilesystem:e,entries:i,highlightedIds:f,highlightedEntry:$,highlightedEntries:b,navigation:E,dialogs:A,setClipboardData:u,setHighlightedIds:_,setNavigation:O,setDialogs:g,setClickedButtonName:v,refreshSelectedFolder:Zt,updateHistoryData:Vn,saveEntries:Se,getOptions:Y,openDisplayError:ne,filesystemService:Ks,modifierKeyPressed:Te,constants:Yt}),{openConfirmReset:fi,reset:fT,closeConfirmReset:dT}=sC({dialogs:A,setZipFilesystem:t,setDialogs:g,zipService:R_}),{resetClipboardData:_T}=lC({setClipboardData:u}),{playMusic:pT,stopMusic:ET,updateAccentColor:mT,updateSkin:TT,initMiscFeatures:hT}=fC({theme:T,setOptions:ue,setTheme:S,setMusicData:N,setPlayerActive:Q,getOptions:Y,stylesheetService:Rc,themeService:P_,musicService:P2,constants:Yt}),{enterEntry:LT,initAppFeatures:OT,updateZipFilesystem:AT,resetClickedButtonName:jl,getAppClassName:gT,onAppKeyUp:vT}=uC({disabledEnterEntry:Wn,zipFilesystem:e,highlightedEntry:$,selectedFolder:n,hiddenInfobar:oe,hiddenDownloadManager:U,setNavigation:O,setSelectedFolder:r,setHighlightedIds:_,setHistory:p,setClickedButtonName:v,goIntoFolder:ws,openPromptExtract:G,refreshSelectedFolder:Zt,modifierKeyPressed:Te,stylesheetService:Rc,documentService:C_,i18nService:ha,constants:Yt,messages:st}),{useKeyUp:wT,useKeyDown:xT,usePageUnload:yT}=eC({keyboardService:Nv,windowService:D_}),{handleKeyUp:ST,handleKeyDown:NT,handlePageUnload:IT}=kw({entries:i,downloads:w,dialogDisplayed:on,onEntriesKeyUp:Qi,onFoldersKeyUp:Nt,onHighlightedEntriesKeyUp:ui,onAppKeyUp:vT,onEntriesKeyDown:Ji,onHighlightedEntriesKeyDown:Ss,onSelectedFolderKeyDown:io}),RT=gT();return wT(ST),xT(NT),yT(IT),te.useEffect(AT,[e]),te.useEffect(gs,[f]),te.useEffect(mT,[T.accentColor]),te.useEffect(TT,[T.skin]),te.useEffect(()=>{Hr(),hT(),ie(),OT()},[]),x.jsxs("div",{className:RT,children:[x.jsxs("main",{role:"application",children:[x.jsx(ux,{disabledExportZipButton:C,disabledResetButton:ee,clickedButtonName:L,onCreateFolder:dr,onAddFiles:Yn,onImportZipFile:It,onExportZip:kn,onReset:fi,onOpenOptions:W,onShowImportZipFilePicker:xs,onShowAddFilesPicker:qn,onClickedButton:jl,constants:Yt,messages:st}),x.jsx(px,{selectedFolder:n,ancestorFolders:re,disabledBackButton:Le,disabledForwardButton:_e,clickedButtonName:L,hidden:sn,onNavigateBack:Fl,onNavigateForward:eo,onGoIntoFolder:ws,onClickedButton:jl,constants:Yt,messages:st}),x.jsx(Ex,{entries:i,selectedFolder:n,highlightedIds:f,entriesElementHeight:s,deltaEntriesHeight:a,hiddenDownloadManager:U,onDropFiles:to,onHighlight:ae,onToggle:be,onToggleRange:Zn,onEnter:LT,onUpdateEntriesHeight:fr,onUpdateEntriesElementHeight:Os,onRegisterResizeEntriesHandler:vs,entriesElementRef:R,highlightedEntryElementRef:P,i18n:ha,constants:Yt,messages:st}),x.jsx(Ox,{disabledCopyButton:Ee,disabledCutButton:Be,disabledPasteButton:Ce,disabledResetClipboardDataButton:De,disabledExtractButton:rt,disabledHighlightAllButton:et,disabledRenameButton:mt,disabledDeleteButton:Dn,clickedButtonName:L,onCopy:ci,onCut:oo,onPaste:mn,onResetClipboardData:_T,onExtract:ze,onHighlightAll:qe,onRename:ys,onRemove:$l,onMove:jr,onUpdateElementHeight:As,onClickedButton:jl,constants:Yt,messages:st}),x.jsx(Ax,{downloads:w,hidden:U,onAbortDownload:V,i18n:ha,constants:Yt,messages:st})]}),x.jsx(yx,{hidden:oe,theme:T,musicData:y,playMusic:pT,stopMusic:ET,onSetTheme:S,musicPlayerActive:X,constants:Yt,messages:st}),x.jsx(Cx,{data:A.createFolder,onCreateFolder:Ge,onClose:_r,messages:st}),x.jsx(Rx,{data:A.exportZip,hiddenPassword:B,onExportZip:Ne,onClose:no,messages:st}),x.jsx(Bx,{data:A.extract,onExtract:ze,onClose:Rt,messages:st}),x.jsx(Px,{data:A.rename,onRename:so,onClose:Ml,messages:st}),x.jsx(Dx,{data:A.reset,onReset:fT,onClose:dT,messages:st}),x.jsx(kx,{data:A.deleteEntries,onDeleteEntries:H,onClose:ve,messages:st}),x.jsx(bx,{data:A.displayError,onClose:M,messages:st}),x.jsx(Ux,{data:A.enterImportPassword,onClose:ro,messages:st}),x.jsx(Fx,{data:A.options,onSetOptions:ue,onResetOptions:K,onClose:ce,messages:st}),x.jsx(Mx,{data:A.chooseAction,onImportZipFile:It,onAddFiles:Yn,onClose:me,messages:st})]})}const pC=kc.createRoot(document.body);pC.render(x.jsx(ZT.StrictMode,{children:x.jsx(_C,{})})); diff --git a/index.html b/index.html index d411801a..341c4f0b 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@ display: none; } - + diff --git a/sw.js b/sw.js index ca9facf2..036ec2ea 100644 --- a/sw.js +++ b/sw.js @@ -1,2 +1,2 @@ (function(){"use strict";try{self["workbox:core:7.0.0"]&&_()}catch{}const Ie=null,v=(a,...e)=>{let t=a;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t};class l extends Error{constructor(e,t){const s=v(e,t);super(s),this.name=e,this.details=t}}const O=new Set,f={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},b=a=>[f.prefix,a,f.suffix].filter(e=>e&&e.length>0).join("-"),D=a=>{for(const e of Object.keys(f))a(e)},d={updateDetails:a=>{D(e=>{typeof a[e]=="string"&&(f[e]=a[e])})},getGoogleAnalyticsName:a=>a||b(f.googleAnalytics),getPrecacheName:a=>a||b(f.precache),getPrefix:()=>f.prefix,getRuntimeName:a=>a||b(f.runtime),getSuffix:()=>f.suffix};function U(a,e){const t=new URL(a);for(const s of e)t.searchParams.delete(s);return t.href}async function F(a,e,t,s){const n=U(e.url,t);if(e.url===n)return a.match(e,s);const c=Object.assign(Object.assign({},s),{ignoreSearch:!0}),r=await a.keys(e,c);for(const i of r){const o=U(i.url,t);if(n===o)return a.match(i,s)}}let g;function H(){if(g===void 0){const a=new Response("");if("body"in a)try{new Response(a.body),g=!0}catch{g=!1}g=!1}return g}class W{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}async function q(){for(const a of O)await a()}const j=a=>new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),"");function G(a){return new Promise(e=>setTimeout(e,a))}function I(a,e){const t=e();return a.waitUntil(t),t}const X={get googleAnalytics(){return d.getGoogleAnalyticsName()},get precache(){return d.getPrecacheName()},get prefix(){return d.getPrefix()},get runtime(){return d.getRuntimeName()},get suffix(){return d.getSuffix()}};async function B(a,e){let t=null;if(a.url&&(t=new URL(a.url).origin),t!==self.location.origin)throw new l("cross-origin-copy-response",{origin:t});const s=a.clone(),c={headers:new Headers(s.headers),status:s.status,statusText:s.statusText},r=H()?s.body:await s.blob();return new Response(r,c)}function $(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const V="__WB_REVISION__";function z(a){if(!a)throw new l("add-to-cache-list-unexpected-type",{entry:a});if(typeof a=="string"){const c=new URL(a,location.href);return{cacheKey:c.href,url:c.href}}const{revision:e,url:t}=a;if(!t)throw new l("add-to-cache-list-unexpected-type",{entry:a});if(!e){const c=new URL(t,location.href);return{cacheKey:c.href,url:c.href}}const s=new URL(t,location.href),n=new URL(t,location.href);return s.searchParams.set(V,e),{cacheKey:s.href,url:n.href}}class Q{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const n=t.originalRequest.url;s?this.notUpdatedURLs.push(n):this.updatedURLs.push(n)}return s}}}class Y{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:s})=>{const n=(s==null?void 0:s.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=e}}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function m(a){return typeof a=="string"?new Request(a):a}class J{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new W,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const s of this._plugins)this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=m(e);if(s.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const r=await t.preloadResponse;if(r)return r}const n=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const r of this.iterateCallbacks("requestWillFetch"))s=await r({request:s.clone(),event:t})}catch(r){if(r instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:r.message})}const c=s.clone();try{let r;r=await fetch(s,s.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const i of this.iterateCallbacks("fetchDidSucceed"))r=await i({event:t,request:c,response:r});return r}catch(r){throw n&&await this.runCallbacks("fetchDidFail",{error:r,event:t,originalRequest:n.clone(),request:c.clone()}),r}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=m(e);let s;const{cacheName:n,matchOptions:c}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},c),{cacheName:n});s=await caches.match(r,i);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await o({cacheName:n,matchOptions:c,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=m(e);await G(0);const n=await this.getCacheKey(s,"write");if(!t)throw new l("cache-put-with-no-response",{url:j(n.url)});const c=await this._ensureResponseSafeToCache(t);if(!c)return!1;const{cacheName:r,matchOptions:i}=this._strategy,o=await self.caches.open(r),h=this.hasCallback("cacheDidUpdate"),R=h?await F(o,n.clone(),["__WB_REVISION__"],i):null;try{await o.put(n,h?c.clone():c)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await q(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:r,oldResponse:R,newResponse:c.clone(),request:n,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const c of this.iterateCallbacks("cacheKeyWillBeUsed"))n=m(await c({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const s=this._pluginStateMap.get(t);yield c=>{const r=Object.assign(Object.assign({},c),{state:s});return t[e](r)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&t.status!==200&&(t=void 0),t}}class Z{constructor(e={}){this.cacheName=d.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s=typeof e.request=="string"?new Request(e.request):e.request,n="params"in e?e.params:void 0,c=new J(this,{event:t,request:s,params:n}),r=this._getResponse(c,s,t),i=this._awaitComplete(r,c,s,t);return[r,i]}async _getResponse(e,t,s){await e.runCallbacks("handlerWillStart",{event:s,request:t});let n;try{if(n=await this._handle(t,e),!n||n.type==="error")throw new l("no-response",{url:t.url})}catch(c){if(c instanceof Error){for(const r of e.iterateCallbacks("handlerDidError"))if(n=await r({error:c,event:s,request:t}),n)break}if(!n)throw c}for(const c of e.iterateCallbacks("handlerWillRespond"))n=await c({event:s,request:t,response:n});return n}async _awaitComplete(e,t,s,n){let c,r;try{c=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:c}),await t.doneWaiting()}catch(i){i instanceof Error&&(r=i)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:c,error:r}),t.destroy(),r)throw r}}class p extends Z{constructor(e={}){e.cacheName=d.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const n=t.params||{};if(this._fallbackToNetwork){const c=n.integrity,r=e.integrity,i=!r||r===c;s=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?r||c:void 0})),c&&i&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,s.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new l("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==p.copyRedirectedCacheableResponsesPlugin&&(n===p.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:a}){return!a||a.status>=400?null:a}},p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:a}){return a.redirected?await B(a):a}};class ee{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:d.getPrecacheName(e),plugins:[...t,new Y({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const s of e){typeof s=="string"?t.push(s):s&&s.revision===void 0&&t.push(s.url);const{cacheKey:n,url:c}=z(s),r=typeof s!="string"&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(c)&&this._urlsToCacheKeys.get(c)!==n)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(c),secondEntry:n});if(typeof s!="string"&&s.integrity){if(this._cacheKeysToIntegrities.has(n)&&this._cacheKeysToIntegrities.get(n)!==s.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:c});this._cacheKeysToIntegrities.set(n,s.integrity)}if(this._urlsToCacheKeys.set(c,n),this._urlsToCacheModes.set(c,r),t.length>0){const i=`Workbox is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(i)}}}install(e){return I(e,async()=>{const t=new Q;this.strategy.plugins.push(t);for(const[c,r]of this._urlsToCacheKeys){const i=this._cacheKeysToIntegrities.get(r),o=this._urlsToCacheModes.get(c),h=new Request(c,{integrity:i,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:h,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}})}activate(e){return I(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),s=await t.keys(),n=new Set(this._urlsToCacheKeys.values()),c=[];for(const r of s)n.has(r.url)||(await t.delete(r),c.push(r.url));return{deletedURLs:c}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s)return(await self.caches.open(this.strategy.cacheName)).match(s)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let T;const P=()=>(T||(T=new ee),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const N="GET",C=a=>a&&typeof a=="object"?a:{handle:a};class y{constructor(e,t,s=N){this.handler=C(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=C(e)}}class te extends y{constructor(e,t,s){const n=({url:c})=>{const r=e.exec(c.href);if(r&&!(c.origin!==location.origin&&r.index!==0))return r.slice(1)};super(n,t,s)}}class se{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,s=Promise.all(t.urlsToCache.map(n=>{typeof n=="string"&&(n=[n]);const c=new Request(...n);return this.handleRequest({request:c,event:e})}));e.waitUntil(s),e.ports&&e.ports[0]&&s.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:c,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return;let h;try{h=i.handle({url:s,request:e,event:t,params:c})}catch(u){h=Promise.reject(u)}const R=r&&r.catchHandler;return h instanceof Promise&&(this._catchHandler||R)&&(h=h.catch(async u=>{if(R)try{return await R.handle({url:s,request:e,event:t,params:c})}catch(M){M instanceof Error&&(u=M)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const c=this._routes.get(s.method)||[];for(const r of c){let i;const o=r.match({url:e,sameOrigin:t,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&i.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(e,t=N){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let w;const ae=()=>(w||(w=new se,w.addFetchListener(),w.addCacheListener()),w);function E(a,e,t){let s;if(typeof a=="string"){const c=new URL(a,location.href),r=({url:i})=>i.href===c.href;s=new y(r,e,t)}else if(a instanceof RegExp)s=new te(a,e,t);else if(typeof a=="function")s=new y(a,e,t);else if(a instanceof y)s=a;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return ae().registerRoute(s),s}function ne(a,e=[]){for(const t of[...a.searchParams.keys()])e.some(s=>s.test(t))&&a.searchParams.delete(t);return a}function*ce(a,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:s=!0,urlManipulation:n}={}){const c=new URL(a,location.href);c.hash="",yield c.href;const r=ne(c,e);if(yield r.href,t&&r.pathname.endsWith("/")){const i=new URL(r.href);i.pathname+=t,yield i.href}if(s){const i=new URL(r.href);i.pathname+=".html",yield i.href}if(n){const i=n({url:c});for(const o of i)yield o.href}}class re extends y{constructor(e,t){const s=({request:n})=>{const c=e.getURLsToCacheKeys();for(const r of ce(n.url,t)){const i=c.get(r);if(i){const o=e.getIntegrityForCacheKey(i);return{cacheKey:i,integrity:o}}}};super(s,e.strategy)}}function ie(a){const e=P(),t=new re(e,a);E(t)}const oe="-precache-",le=async(a,e=oe)=>{const s=(await self.caches.keys()).filter(n=>n.includes(e)&&n.includes(self.registration.scope)&&n!==a);return await Promise.all(s.map(n=>self.caches.delete(n))),s};function he(){self.addEventListener("activate",a=>{const e=d.getPrecacheName();a.waitUntil(le(e).then(t=>{}))})}function ue(a){return P().getCacheKeyForURL(a)}function fe(a){P().precache(a)}function de(a,e){fe(a),ie(e)}const A=".",pe=A+"/index.html"+"?shared-files",k="/shared-files",S=A+k,L=k+"/form",K="shared-files",ge="audio/midi",ye="audio/xm",we="audio/prs.sid",Re="music-track-",_e=new RegExp(Re+".*"),me=/\d+$/,Ce="./assets/music/tracks.zip",Ee=[{extension:".mid",type:ge},{extension:".xm",type:ye},{extension:".sid",type:we}],x="GET",be="POST";importScripts("./assets/lib/zip-no-worker-inflate.min.js"),he(),de([{"revision":null,"url":"assets/fonts/dos-vga-9x16.ttf"},{"revision":null,"url":"assets/fonts/Exo-VariableFont_wght.ttf"},{"revision":null,"url":"assets/icons/icon-192x192-mono.png"},{"revision":null,"url":"assets/icons/icon-192x192.png"},{"revision":null,"url":"assets/icons/icon-512x512-mono.png"},{"revision":null,"url":"assets/icons/icon-512x512.png"},{"revision":null,"url":"assets/index-s5VAeSOc.css"},{"revision":null,"url":"assets/index-vCN7MQWP.js"},{"revision":null,"url":"assets/lib/libxm.wasm"},{"revision":null,"url":"assets/lib/zip-no-worker-inflate.min.js"},{"revision":null,"url":"assets/music/tracks.zip"},{"revision":"3e76e40d16d498573c9fde269e0a5c53","url":"apple-touch-icon-120x120.png"},{"revision":"36214ecbb8e9c0a5458e25a3f45825b7","url":"apple-touch-icon.png"},{"revision":"7b73e896ae23da88f3fe219e766dfd81","url":"favicon.ico"},{"revision":"dc1401b65086e1a1631f9bb89dce0e04","url":"index.html"},{"revision":"402b66900e731ca748771b6fc5e7a068","url":"registerSW.js"},{"revision":"93f1499272a612fb20b7f5d5ea7335be","url":"sw.js"},{"revision":"00cbe2ae543ecbf085af04d8820231e6","url":"./assets/icons/icon-512x512.png"},{"revision":"bf17ade91c7f634ef921b7828aea012b","url":"./assets/icons/icon-192x192.png"},{"revision":"fa4fcb83b66b7d6f7e39d22a453811b0","url":"./assets/icons/icon-512x512-mono.png"},{"revision":"98ad0558f8d53bf2e20f4ce1a9a0a55c","url":"./assets/icons/icon-192x192-mono.png"},{"revision":"f25bd2eefe4957ff8d5ff18ca7fce28a","url":"manifest.webmanifest"}]),self.skipWaiting(),E(S,Pe,x),E(S,Te,be),E(_e,Ue,x),$();async function Te({event:a}){const e=await a.request.formData();return await(await caches.open(K)).put(new URL(L,self.location).href,new Response(e)),Response.redirect(pe,303)}function Pe({event:a}){a.respondWith(Le())}async function Le(){const a=await caches.open(K),e=await a.match(L);if(e)return await a.delete(L),e}async function Ue({event:a}){const t=await(await caches.open(X.precache)).match(ue(Ce)),s=new zip.ZipReader(t.body),n=await s.getEntries(),c=Number(a.request.url.match(me)[0]),r=n[c],i=Ee.find(h=>r.filename.endsWith(h.extension)).type,o=await r.getData(new zip.BlobWriter(i));return await s.close(),new Response(o)}})(); +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(i)}}}install(e){return I(e,async()=>{const t=new Q;this.strategy.plugins.push(t);for(const[c,r]of this._urlsToCacheKeys){const i=this._cacheKeysToIntegrities.get(r),o=this._urlsToCacheModes.get(c),h=new Request(c,{integrity:i,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:h,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}})}activate(e){return I(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),s=await t.keys(),n=new Set(this._urlsToCacheKeys.values()),c=[];for(const r of s)n.has(r.url)||(await t.delete(r),c.push(r.url));return{deletedURLs:c}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s)return(await self.caches.open(this.strategy.cacheName)).match(s)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let T;const P=()=>(T||(T=new ee),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const N="GET",C=a=>a&&typeof a=="object"?a:{handle:a};class y{constructor(e,t,s=N){this.handler=C(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=C(e)}}class te extends y{constructor(e,t,s){const n=({url:c})=>{const r=e.exec(c.href);if(r&&!(c.origin!==location.origin&&r.index!==0))return r.slice(1)};super(n,t,s)}}class se{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,s=Promise.all(t.urlsToCache.map(n=>{typeof n=="string"&&(n=[n]);const c=new Request(...n);return this.handleRequest({request:c,event:e})}));e.waitUntil(s),e.ports&&e.ports[0]&&s.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:c,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return;let h;try{h=i.handle({url:s,request:e,event:t,params:c})}catch(u){h=Promise.reject(u)}const R=r&&r.catchHandler;return h instanceof Promise&&(this._catchHandler||R)&&(h=h.catch(async u=>{if(R)try{return await R.handle({url:s,request:e,event:t,params:c})}catch(M){M instanceof Error&&(u=M)}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const c=this._routes.get(s.method)||[];for(const r of c){let i;const o=r.match({url:e,sameOrigin:t,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&i.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(e,t=N){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let w;const ae=()=>(w||(w=new se,w.addFetchListener(),w.addCacheListener()),w);function E(a,e,t){let s;if(typeof a=="string"){const c=new URL(a,location.href),r=({url:i})=>i.href===c.href;s=new y(r,e,t)}else if(a instanceof RegExp)s=new te(a,e,t);else if(typeof a=="function")s=new y(a,e,t);else if(a instanceof y)s=a;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return ae().registerRoute(s),s}function ne(a,e=[]){for(const t of[...a.searchParams.keys()])e.some(s=>s.test(t))&&a.searchParams.delete(t);return a}function*ce(a,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:s=!0,urlManipulation:n}={}){const c=new URL(a,location.href);c.hash="",yield c.href;const r=ne(c,e);if(yield r.href,t&&r.pathname.endsWith("/")){const i=new URL(r.href);i.pathname+=t,yield i.href}if(s){const i=new URL(r.href);i.pathname+=".html",yield i.href}if(n){const i=n({url:c});for(const o of i)yield o.href}}class re extends y{constructor(e,t){const s=({request:n})=>{const c=e.getURLsToCacheKeys();for(const r of ce(n.url,t)){const i=c.get(r);if(i){const o=e.getIntegrityForCacheKey(i);return{cacheKey:i,integrity:o}}}};super(s,e.strategy)}}function ie(a){const e=P(),t=new re(e,a);E(t)}const oe="-precache-",le=async(a,e=oe)=>{const s=(await self.caches.keys()).filter(n=>n.includes(e)&&n.includes(self.registration.scope)&&n!==a);return await Promise.all(s.map(n=>self.caches.delete(n))),s};function he(){self.addEventListener("activate",a=>{const e=d.getPrecacheName();a.waitUntil(le(e).then(t=>{}))})}function ue(a){return P().getCacheKeyForURL(a)}function fe(a){P().precache(a)}function de(a,e){fe(a),ie(e)}const A=".",pe=A+"/index.html"+"?shared-files",k="/shared-files",S=A+k,L=k+"/form",K="shared-files",ge="audio/midi",ye="audio/xm",we="audio/prs.sid",Re="music-track-",_e=new RegExp(Re+".*"),me=/\d+$/,Ce="./assets/music/tracks.zip",Ee=[{extension:".mid",type:ge},{extension:".xm",type:ye},{extension:".sid",type:we}],x="GET",be="POST";importScripts("./assets/lib/zip-no-worker-inflate.min.js"),he(),de([{"revision":null,"url":"assets/fonts/dos-vga-9x16.ttf"},{"revision":null,"url":"assets/fonts/Exo-VariableFont_wght.ttf"},{"revision":null,"url":"assets/icons/icon-192x192-mono.png"},{"revision":null,"url":"assets/icons/icon-192x192.png"},{"revision":null,"url":"assets/icons/icon-512x512-mono.png"},{"revision":null,"url":"assets/icons/icon-512x512.png"},{"revision":null,"url":"assets/index-BHCGsR3M.js"},{"revision":null,"url":"assets/index-s5VAeSOc.css"},{"revision":null,"url":"assets/lib/libxm.wasm"},{"revision":null,"url":"assets/lib/zip-no-worker-inflate.min.js"},{"revision":null,"url":"assets/music/tracks.zip"},{"revision":"3e76e40d16d498573c9fde269e0a5c53","url":"apple-touch-icon-120x120.png"},{"revision":"36214ecbb8e9c0a5458e25a3f45825b7","url":"apple-touch-icon.png"},{"revision":"7b73e896ae23da88f3fe219e766dfd81","url":"favicon.ico"},{"revision":"0e3c76228e3fb9c10931e2db7d733c1f","url":"index.html"},{"revision":"402b66900e731ca748771b6fc5e7a068","url":"registerSW.js"},{"revision":"93f1499272a612fb20b7f5d5ea7335be","url":"sw.js"},{"revision":"98ad0558f8d53bf2e20f4ce1a9a0a55c","url":"assets/icons/icon-192x192-mono.png"},{"revision":"bf17ade91c7f634ef921b7828aea012b","url":"assets/icons/icon-192x192.png"},{"revision":"fa4fcb83b66b7d6f7e39d22a453811b0","url":"assets/icons/icon-512x512-mono.png"},{"revision":"00cbe2ae543ecbf085af04d8820231e6","url":"assets/icons/icon-512x512.png"},{"revision":"f25bd2eefe4957ff8d5ff18ca7fce28a","url":"manifest.webmanifest"}]),self.skipWaiting(),E(S,Pe,x),E(S,Te,be),E(_e,Ue,x),$();async function Te({event:a}){const e=await a.request.formData();return await(await caches.open(K)).put(new URL(L,self.location).href,new Response(e)),Response.redirect(pe,303)}function Pe({event:a}){a.respondWith(Le())}async function Le(){const a=await caches.open(K),e=await a.match(L);if(e)return await a.delete(L),e}async function Ue({event:a}){const t=await(await caches.open(X.precache)).match(ue(Ce)),s=new zip.ZipReader(t.body),n=await s.getEntries(),c=Number(a.request.url.match(me)[0]),r=n[c],i=Ee.find(h=>r.filename.endsWith(h.extension)).type,o=await r.getData(new zip.BlobWriter(i));return await s.close(),new Response(o)}})();