import{d as Ne}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{j as io,u as ao}from"./index-1dbedb0f-1782729249161v=1.0.0.js";var sn={},Je={exports:{}};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */(function(d){var u,i,o,p,l,y,r,f,w,E,x,k,g,O,b,C,n,_,m,a,R,P,L;(function(q){var I=typeof Ne=="object"?Ne:typeof self=="object"?self:typeof this=="object"?this:{};q(U(I,U(d.exports)));function U(J,T){return J!==I&&(typeof Object.create=="function"?Object.defineProperty(J,"__esModule",{value:!0}):J.__esModule=!0),function(B,s){return J[B]=T?T(B,s):s}}})(function(q){var I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,J){U.__proto__=J}||function(U,J){for(var T in J)J.hasOwnProperty(T)&&(U[T]=J[T])};u=function(U,J){I(U,J);function T(){this.constructor=U}U.prototype=J===null?Object.create(J):(T.prototype=J.prototype,new T)},i=Object.assign||function(U){for(var J,T=1,B=arguments.length;T<B;T++){J=arguments[T];for(var s in J)Object.prototype.hasOwnProperty.call(J,s)&&(U[s]=J[s])}return U},o=function(U,J){var T={};for(var B in U)Object.prototype.hasOwnProperty.call(U,B)&&J.indexOf(B)<0&&(T[B]=U[B]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,B=Object.getOwnPropertySymbols(U);s<B.length;s++)J.indexOf(B[s])<0&&Object.prototype.propertyIsEnumerable.call(U,B[s])&&(T[B[s]]=U[B[s]]);return T},p=function(U,J,T,B){var s=arguments.length,z=s<3?J:B===null?B=Object.getOwnPropertyDescriptor(J,T):B,Y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(U,J,T,B);else for(var W=U.length-1;W>=0;W--)(Y=U[W])&&(z=(s<3?Y(z):s>3?Y(J,T,z):Y(J,T))||z);return s>3&&z&&Object.defineProperty(J,T,z),z},l=function(U,J){return function(T,B){J(T,B,U)}},y=function(U,J){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(U,J)},r=function(U,J,T,B){function s(z){return z instanceof T?z:new T(function(Y){Y(z)})}return new(T||(T=Promise))(function(z,Y){function W(se){try{Z(B.next(se))}catch($){Y($)}}function ne(se){try{Z(B.throw(se))}catch($){Y($)}}function Z(se){se.done?z(se.value):s(se.value).then(W,ne)}Z((B=B.apply(U,J||[])).next())})},f=function(U,J){var T={label:0,sent:function(){if(z[0]&1)throw z[1];return z[1]},trys:[],ops:[]},B,s,z,Y;return Y={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function W(Z){return function(se){return ne([Z,se])}}function ne(Z){if(B)throw new TypeError("Generator is already executing.");for(;T;)try{if(B=1,s&&(z=Z[0]&2?s.return:Z[0]?s.throw||((z=s.return)&&z.call(s),0):s.next)&&!(z=z.call(s,Z[1])).done)return z;switch(s=0,z&&(Z=[Z[0]&2,z.value]),Z[0]){case 0:case 1:z=Z;break;case 4:return T.label++,{value:Z[1],done:!1};case 5:T.label++,s=Z[1],Z=[0];continue;case 7:Z=T.ops.pop(),T.trys.pop();continue;default:if(z=T.trys,!(z=z.length>0&&z[z.length-1])&&(Z[0]===6||Z[0]===2)){T=0;continue}if(Z[0]===3&&(!z||Z[1]>z[0]&&Z[1]<z[3])){T.label=Z[1];break}if(Z[0]===6&&T.label<z[1]){T.label=z[1],z=Z;break}if(z&&T.label<z[2]){T.label=z[2],T.ops.push(Z);break}z[2]&&T.ops.pop(),T.trys.pop();continue}Z=J.call(U,T)}catch(se){Z=[6,se],s=0}finally{B=z=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}},L=function(U,J,T,B){B===void 0&&(B=T),U[B]=J[T]},w=function(U,J){for(var T in U)T!=="default"&&!J.hasOwnProperty(T)&&(J[T]=U[T])},E=function(U){var J=typeof Symbol=="function"&&Symbol.iterator,T=J&&U[J],B=0;if(T)return T.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&B>=U.length&&(U=void 0),{value:U&&U[B++],done:!U}}};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(U,J){var T=typeof Symbol=="function"&&U[Symbol.iterator];if(!T)return U;var B=T.call(U),s,z=[],Y;try{for(;(J===void 0||J-- >0)&&!(s=B.next()).done;)z.push(s.value)}catch(W){Y={error:W}}finally{try{s&&!s.done&&(T=B.return)&&T.call(B)}finally{if(Y)throw Y.error}}return z},k=function(){for(var U=[],J=0;J<arguments.length;J++)U=U.concat(x(arguments[J]));return U},g=function(){for(var U=0,J=0,T=arguments.length;J<T;J++)U+=arguments[J].length;for(var B=Array(U),s=0,J=0;J<T;J++)for(var z=arguments[J],Y=0,W=z.length;Y<W;Y++,s++)B[s]=z[Y];return B},O=function(U){return this instanceof O?(this.v=U,this):new O(U)},b=function(U,J,T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B=T.apply(U,J||[]),s,z=[];return s={},Y("next"),Y("throw"),Y("return"),s[Symbol.asyncIterator]=function(){return this},s;function Y(D){B[D]&&(s[D]=function(X){return new Promise(function(Q,re){z.push([D,X,Q,re])>1||W(D,X)})})}function W(D,X){try{ne(B[D](X))}catch(Q){$(z[0][3],Q)}}function ne(D){D.value instanceof O?Promise.resolve(D.value.v).then(Z,se):$(z[0][2],D)}function Z(D){W("next",D)}function se(D){W("throw",D)}function $(D,X){D(X),z.shift(),z.length&&W(z[0][0],z[0][1])}},C=function(U){var J,T;return J={},B("next"),B("throw",function(s){throw s}),B("return"),J[Symbol.iterator]=function(){return this},J;function B(s,z){J[s]=U[s]?function(Y){return(T=!T)?{value:O(U[s](Y)),done:s==="return"}:z?z(Y):Y}:z}},n=function(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J=U[Symbol.asyncIterator],T;return J?J.call(U):(U=typeof E=="function"?E(U):U[Symbol.iterator](),T={},B("next"),B("throw"),B("return"),T[Symbol.asyncIterator]=function(){return this},T);function B(z){T[z]=U[z]&&function(Y){return new Promise(function(W,ne){Y=U[z](Y),s(W,ne,Y.done,Y.value)})}}function s(z,Y,W,ne){Promise.resolve(ne).then(function(Z){z({value:Z,done:W})},Y)}},_=function(U,J){return Object.defineProperty?Object.defineProperty(U,"raw",{value:J}):U.raw=J,U},m=function(U){if(U&&U.__esModule)return U;var J={};if(U!=null)for(var T in U)Object.hasOwnProperty.call(U,T)&&(J[T]=U[T]);return J.default=U,J},a=function(U){return U&&U.__esModule?U:{default:U}},R=function(U,J){if(!J.has(U))throw new TypeError("attempted to get private field on non-instance");return J.get(U)},P=function(U,J,T){if(!J.has(U))throw new TypeError("attempted to set private field on non-instance");return J.set(U,T),T},q("__extends",u),q("__assign",i),q("__rest",o),q("__decorate",p),q("__param",l),q("__metadata",y),q("__awaiter",r),q("__generator",f),q("__exportStar",w),q("__createBinding",L),q("__values",E),q("__read",x),q("__spread",k),q("__spreadArrays",g),q("__await",O),q("__asyncGenerator",b),q("__asyncDelegator",C),q("__asyncValues",n),q("__makeTemplateObject",_),q("__importStar",m),q("__importDefault",a),q("__classPrivateFieldGet",R),q("__classPrivateFieldSet",P)})})(Je);var Me={},dt={},un={},Ce={},_n;function oo(){return _n||(_n=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.documentTemplate=Ce.defaultMargins=void 0,Ce.defaultMargins={top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0},Ce.documentTemplate=function(d,u,i,o){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document
  xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
  xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
  xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
  xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
  xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
  xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"
  xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
  xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
  xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"
  xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"
  xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
  xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"
  xmlns:ns13="urn:schemas-microsoft-com:office:excel"
  xmlns:o="urn:schemas-microsoft-com:office:office"
  xmlns:v="urn:schemas-microsoft-com:vml"
  xmlns:w10="urn:schemas-microsoft-com:office:word"
  xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"
  xmlns:odx="http://opendope.org/xpaths"
  xmlns:odc="http://opendope.org/conditions"
  xmlns:odq="http://opendope.org/questions"
  xmlns:odi="http://opendope.org/components"
  xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"
  xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"
  xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"
  xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">
  <w:body>
    <w:altChunk r:id="htmlChunk" />
    <w:sectPr>
      <w:pgSz w:w="`+d+'" w:h="'+u+'" w:orient="'+i+`" />
      <w:pgMar w:top="`+o.top+`"
               w:right="`+o.right+`"
               w:bottom="`+o.bottom+`"
               w:left="`+o.left+`"
               w:header="`+o.header+`"
               w:footer="`+o.footer+`"
               w:gutter="`+o.gutter+`"/>
    </w:sectPr>
  </w:body>
</w:document>
`}),Ce}var He={},bn;function so(){return bn||(bn=1,Object.defineProperty(He,"__esModule",{value:!0}),He.mhtDocumentTemplate=void 0,He.mhtDocumentTemplate=function(d,u){return`MIME-Version: 1.0
Content-Type: multipart/related;
    type="text/html";
    boundary="----=mhtDocumentPart"


------=mhtDocumentPart
Content-Type: text/html;
    charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/fake/document.html

`+d+`

`+u+`

------=mhtDocumentPart--
`}),He}var Ge={},wn;function uo(){return wn||(wn=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.mhtPartTemplate=void 0,Ge.mhtPartTemplate=function(d,u,i,o){return`------=mhtDocumentPart
Content-Type: `+d+`
Content-Transfer-Encoding: `+u+`
Content-Location: `+i+`

`+o+`
`}),Ge}(function(d){Object.defineProperty(d,"__esModule",{value:!0});var u=Je.exports;u.__exportStar(oo(),d),u.__exportStar(so(),d),u.__exportStar(uo(),d)})(un);Object.defineProperty(dt,"__esModule",{value:!0});dt.getMHTdocument=void 0;var ba=un;function fo(d){var u=lo(d),i=u.imageContentParts.join(`
`);return d=u.htmlSource.replace(/\=/g,"=3D"),ba.mhtDocumentTemplate(d,i)}dt.getMHTdocument=fo;function lo(d){var u=[],i=/"data:(\w+\/\w+);(\w+),(\S+)"/g,o=function(p,l,y,r){var f=u.length,w=l.split("/")[1],E="file:///C:/fake/image"+f+"."+w;return u.push(ba.mhtPartTemplate(l,y,E,r)),'"'+E+'"'};return/<img/g.test(d)?(d=d.replace(i,o),{htmlSource:d,imageContentParts:u}):{htmlSource:d,imageContentParts:u}}var wa={},Ke={},En;function co(){return En||(En=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.contentTypesXml=void 0,Ke.contentTypesXml=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
  <Default Extension="rels" ContentType=
    "application/vnd.openxmlformats-package.relationships+xml" />
  <Override PartName="/word/document.xml" ContentType=
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
  <Override PartName="/word/afchunk.mht" ContentType="message/rfc822"/>
</Types>
`),Ke}var Ve={},An;function ho(){return An||(An=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.documentXmlRels=void 0,Ve.documentXmlRels=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
  <Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"
    Target="/word/afchunk.mht" Id="htmlChunk" />
</Relationships>
`),Ve}var $e={},Sn;function po(){return Sn||(Sn=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.relsXml=void 0,$e.relsXml=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
  <Relationship
      Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
      Target="/word/document.xml" Id="R09c83fafc067488e" />
</Relationships>
`),$e}(function(d){Object.defineProperty(d,"__esModule",{value:!0});var u=Je.exports;u.__exportStar(co(),d),u.__exportStar(ho(),d),u.__exportStar(po(),d)})(wa);var je={};Object.defineProperty(je,"__esModule",{value:!0});var mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},yo=typeof window<"u"&&typeof window.document<"u",go=(typeof self>"u"?"undefined":mo(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",vo=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,_o=function(){return typeof window<"u"&&window.name==="nodejs"||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")};je.isBrowser=yo;je.isWebWorker=go;je.isNode=vo;je.isJsDom=_o;Object.defineProperty(Me,"__esModule",{value:!0});Me.addFiles=Me.generateDocument=void 0;var ht=Je.exports,bo=dt,gt=wa,Tn=un,Ea=je,wo={orientation:"portrait",margins:{}};function Aa(d,u){return ht.__assign(ht.__assign({},d),u)}function Eo(d){return ht.__awaiter(this,void 0,void 0,function(){var u;return ht.__generator(this,function(i){switch(i.label){case 0:return[4,d.generateAsync({type:"arraybuffer"})];case 1:return u=i.sent(),Ea.isBrowser?[2,new Blob([u],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"})]:[2,new Buffer(new Uint8Array(u))]}})})}Me.generateDocument=Eo;function vt(d){return Ea.isBrowser?new Blob([d]):new Buffer(d,"utf-8")}function Ao(d){var u=d.orientation,i=d.margins,o=Aa(Tn.defaultMargins,i),p=0,l=0;return u==="landscape"?(l=12240,p=15840):(p=12240,l=15840),Tn.documentTemplate(p,l,u,o)}function So(d,u,i){var o=Aa(wo,i);return d.file("[Content_Types].xml",vt(gt.contentTypesXml),{createFolders:!1}),d.folder("_rels").file(".rels",vt(gt.relsXml),{createFolders:!1}),d.folder("word").file("document.xml",Ao(o),{createFolders:!1}).file("afchunk.mht",bo.getMHTdocument(u),{createFolders:!1}).folder("_rels").file("document.xml.rels",vt(gt.documentXmlRels),{createFolders:!1})}Me.addFiles=So;Object.defineProperty(sn,"__esModule",{value:!0});var Sa=sn.asBlob=void 0,Rn=Je.exports,On=Me,To=io.exports;function Ro(d,u){return u===void 0&&(u={}),Rn.__awaiter(this,void 0,void 0,function(){var i;return Rn.__generator(this,function(o){switch(o.label){case 0:return i=new To,On.addFiles(i,d,u),[4,On.generateDocument(i)];case 1:return[2,o.sent()]}})})}Sa=sn.asBlob=Ro;var Ta={exports:{}};(function(d,u){(function(i,o){o()})(Ne,function(){function i(w,E){return typeof E>"u"?E={autoBom:!1}:typeof E!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),E={autoBom:!E}),E.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type)?new Blob(["\uFEFF",w],{type:w.type}):w}function o(w,E,x){var k=new XMLHttpRequest;k.open("GET",w),k.responseType="blob",k.onload=function(){f(k.response,E,x)},k.onerror=function(){console.error("could not download file")},k.send()}function p(w){var E=new XMLHttpRequest;E.open("HEAD",w,!1);try{E.send()}catch{}return 200<=E.status&&299>=E.status}function l(w){try{w.dispatchEvent(new MouseEvent("click"))}catch{var E=document.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),w.dispatchEvent(E)}}var y=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ne=="object"&&Ne.global===Ne?Ne:void 0,r=y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=y.saveAs||(typeof window!="object"||window!==y?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(w,E,x){var k=y.URL||y.webkitURL,g=document.createElement("a");E=E||w.name||"download",g.download=E,g.rel="noopener",typeof w=="string"?(g.href=w,g.origin===location.origin?l(g):p(g.href)?o(w,E,x):l(g,g.target="_blank")):(g.href=k.createObjectURL(w),setTimeout(function(){k.revokeObjectURL(g.href)},4e4),setTimeout(function(){l(g)},0))}:"msSaveOrOpenBlob"in navigator?function(w,E,x){if(E=E||w.name||"download",typeof w!="string")navigator.msSaveOrOpenBlob(i(w,x),E);else if(p(w))o(w,E,x);else{var k=document.createElement("a");k.href=w,k.target="_blank",setTimeout(function(){l(k)})}}:function(w,E,x,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof w=="string")return o(w,E,x);var g=w.type==="application/octet-stream",O=/constructor/i.test(y.HTMLElement)||y.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||g&&O||r)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var m=C.result;m=b?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=m:location=m,k=null},C.readAsDataURL(w)}else{var n=y.URL||y.webkitURL,_=n.createObjectURL(w);k?k.location=_:location.href=_,k=null,setTimeout(function(){n.revokeObjectURL(_)},4e4)}});y.saveAs=f.saveAs=f,d.exports=f})})(Ta);var Oo=Object.defineProperty,ko=Object.defineProperties,xo=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,tn=(d,u,i)=>u in d?Oo(d,u,{enumerable:!0,configurable:!0,writable:!0,value:i}):d[u]=i,No=(d,u)=>{for(var i in u||(u={}))Co.call(u,i)&&tn(d,i,u[i]);if(kn)for(var i of kn(u))Io.call(u,i)&&tn(d,i,u[i]);return d},Do=(d,u)=>ko(d,xo(u)),Re=(d,u,i)=>tn(d,typeof u!="symbol"?u+"":u,i),Fo=(d,u,i)=>new Promise((o,p)=>{var l=f=>{try{r(i.next(f))}catch(w){p(w)}},y=f=>{try{r(i.throw(f))}catch(w){p(w)}},r=f=>f.done?o(f.value):Promise.resolve(f.value).then(l,y);r((i=i.apply(d,u)).next())});class rn{constructor(u){Re(this,"rootKey"),this.rootKey=u}}const Bo=Object.seal({});class Ra extends rn{constructor(u){super(u),Re(this,"root"),this.root=new Array}prepForXml(u){var i;u.stack.push(this);const o=this.root.map(p=>p instanceof rn?p.prepForXml(u):p).filter(p=>p!==void 0);return u.stack.pop(),{[this.rootKey]:o.length?o.length===1&&((i=o[0])==null?void 0:i._attr)?o[0]:o:Bo}}addChildElement(u){return this.root.push(u),this}}class Po extends rn{constructor(u){super("_attr"),Re(this,"xmlKeys"),this.root=u}prepForXml(u){const i={};return Object.entries(this.root).forEach(([o,p])=>{if(p!==void 0){const l=this.xmlKeys&&this.xmlKeys[o]||o;i[l]=p}}),{_attr:i}}}var Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oa(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var _t={},ot={exports:{}},xn;function fn(){if(xn)return ot.exports;xn=1;var d=typeof Reflect=="object"?Reflect:null,u=d&&typeof d.apply=="function"?d.apply:function(R,P,L){return Function.prototype.apply.call(R,P,L)},i;d&&typeof d.ownKeys=="function"?i=d.ownKeys:Object.getOwnPropertySymbols?i=function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:i=function(R){return Object.getOwnPropertyNames(R)};function o(a){console&&console.warn&&console.warn(a)}var p=Number.isNaN||function(R){return R!==R};function l(){l.init.call(this)}ot.exports=l,ot.exports.once=n,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var y=10;function r(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return y},set:function(a){if(typeof a!="number"||a<0||p(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");y=a}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(R){if(typeof R!="number"||R<0||p(R))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+R+".");return this._maxListeners=R,this};function f(a){return a._maxListeners===void 0?l.defaultMaxListeners:a._maxListeners}l.prototype.getMaxListeners=function(){return f(this)},l.prototype.emit=function(R){for(var P=[],L=1;L<arguments.length;L++)P.push(arguments[L]);var q=R==="error",I=this._events;if(I!==void 0)q=q&&I.error===void 0;else if(!q)return!1;if(q){var U;if(P.length>0&&(U=P[0]),U instanceof Error)throw U;var J=new Error("Unhandled error."+(U?" ("+U.message+")":""));throw J.context=U,J}var T=I[R];if(T===void 0)return!1;if(typeof T=="function")u(T,this,P);else for(var B=T.length,s=O(T,B),L=0;L<B;++L)u(s[L],this,P);return!0};function w(a,R,P,L){var q,I,U;if(r(P),I=a._events,I===void 0?(I=a._events=Object.create(null),a._eventsCount=0):(I.newListener!==void 0&&(a.emit("newListener",R,P.listener?P.listener:P),I=a._events),U=I[R]),U===void 0)U=I[R]=P,++a._eventsCount;else if(typeof U=="function"?U=I[R]=L?[P,U]:[U,P]:L?U.unshift(P):U.push(P),q=f(a),q>0&&U.length>q&&!U.warned){U.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+U.length+" "+String(R)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=a,J.type=R,J.count=U.length,o(J)}return a}l.prototype.addListener=function(R,P){return w(this,R,P,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(R,P){return w(this,R,P,!0)};function E(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(a,R,P){var L={fired:!1,wrapFn:void 0,target:a,type:R,listener:P},q=E.bind(L);return q.listener=P,L.wrapFn=q,q}l.prototype.once=function(R,P){return r(P),this.on(R,x(this,R,P)),this},l.prototype.prependOnceListener=function(R,P){return r(P),this.prependListener(R,x(this,R,P)),this},l.prototype.removeListener=function(R,P){var L,q,I,U,J;if(r(P),q=this._events,q===void 0)return this;if(L=q[R],L===void 0)return this;if(L===P||L.listener===P)--this._eventsCount===0?this._events=Object.create(null):(delete q[R],q.removeListener&&this.emit("removeListener",R,L.listener||P));else if(typeof L!="function"){for(I=-1,U=L.length-1;U>=0;U--)if(L[U]===P||L[U].listener===P){J=L[U].listener,I=U;break}if(I<0)return this;I===0?L.shift():b(L,I),L.length===1&&(q[R]=L[0]),q.removeListener!==void 0&&this.emit("removeListener",R,J||P)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(R){var P,L,q;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[R]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete L[R]),this;if(arguments.length===0){var I=Object.keys(L),U;for(q=0;q<I.length;++q)U=I[q],U!=="removeListener"&&this.removeAllListeners(U);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(P=L[R],typeof P=="function")this.removeListener(R,P);else if(P!==void 0)for(q=P.length-1;q>=0;q--)this.removeListener(R,P[q]);return this};function k(a,R,P){var L=a._events;if(L===void 0)return[];var q=L[R];return q===void 0?[]:typeof q=="function"?P?[q.listener||q]:[q]:P?C(q):O(q,q.length)}l.prototype.listeners=function(R){return k(this,R,!0)},l.prototype.rawListeners=function(R){return k(this,R,!1)},l.listenerCount=function(a,R){return typeof a.listenerCount=="function"?a.listenerCount(R):g.call(a,R)},l.prototype.listenerCount=g;function g(a){var R=this._events;if(R!==void 0){var P=R[a];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function O(a,R){for(var P=new Array(R),L=0;L<R;++L)P[L]=a[L];return P}function b(a,R){for(;R+1<a.length;R++)a[R]=a[R+1];a.pop()}function C(a){for(var R=new Array(a.length),P=0;P<R.length;++P)R[P]=a[P].listener||a[P];return R}function n(a,R){return new Promise(function(P,L){function q(U){a.removeListener(R,I),L(U)}function I(){typeof a.removeListener=="function"&&a.removeListener("error",q),P([].slice.call(arguments))}m(a,R,I,{once:!0}),R!=="error"&&_(a,q,{once:!0})})}function _(a,R,P){typeof a.on=="function"&&m(a,"error",R,P)}function m(a,R,P,L){if(typeof a.on=="function")L.once?a.once(R,P):a.on(R,P);else if(typeof a.addEventListener=="function")a.addEventListener(R,function q(I){L.once&&a.removeEventListener(R,q),P(I)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}return ot.exports}var st={exports:{}},Cn;function xe(){return Cn||(Cn=1,typeof Object.create=="function"?st.exports=function(u,i){i&&(u.super_=i,u.prototype=Object.create(i.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:st.exports=function(u,i){if(i){u.super_=i;var o=function(){};o.prototype=i.prototype,u.prototype=new o,u.prototype.constructor=u}}),st.exports}function Lo(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var ka={exports:{}},me=ka.exports={},be,we;function nn(){throw new Error("setTimeout has not been defined")}function an(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?be=setTimeout:be=nn}catch{be=nn}try{typeof clearTimeout=="function"?we=clearTimeout:we=an}catch{we=an}})();function xa(d){if(be===setTimeout)return setTimeout(d,0);if((be===nn||!be)&&setTimeout)return be=setTimeout,setTimeout(d,0);try{return be(d,0)}catch{try{return be.call(null,d,0)}catch{return be.call(this,d,0)}}}function Mo(d){if(we===clearTimeout)return clearTimeout(d);if((we===an||!we)&&clearTimeout)return we=clearTimeout,clearTimeout(d);try{return we(d)}catch{try{return we.call(null,d)}catch{return we.call(this,d)}}}var Te=[],Le=!1,De,ct=-1;function Uo(){!Le||!De||(Le=!1,De.length?Te=De.concat(Te):ct=-1,Te.length&&Ca())}function Ca(){if(!Le){var d=xa(Uo);Le=!0;for(var u=Te.length;u;){for(De=Te,Te=[];++ct<u;)De&&De[ct].run();ct=-1,u=Te.length}De=null,Le=!1,Mo(d)}}me.nextTick=function(d){var u=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)u[i-1]=arguments[i];Te.push(new Ia(d,u)),Te.length===1&&!Le&&xa(Ca)};function Ia(d,u){this.fun=d,this.array=u}Ia.prototype.run=function(){this.fun.apply(null,this.array)};me.title="browser";me.browser=!0;me.env={};me.argv=[];me.version="";me.versions={};function Oe(){}me.on=Oe;me.addListener=Oe;me.once=Oe;me.off=Oe;me.removeListener=Oe;me.removeAllListeners=Oe;me.emit=Oe;me.prependListener=Oe;me.prependOnceListener=Oe;me.listeners=function(d){return[]};me.binding=function(d){throw new Error("process.binding is not supported")};me.cwd=function(){return"/"};me.chdir=function(d){throw new Error("process.chdir is not supported")};me.umask=function(){return 0};var jo=ka.exports;const ce=Lo(jo);var bt,In;function Na(){return In||(In=1,bt=fn().EventEmitter),bt}var wt={},Xe={},Nn;function zo(){if(Nn)return Xe;Nn=1,Xe.byteLength=r,Xe.toByteArray=w,Xe.fromByteArray=k;for(var d=[],u=[],i=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,l=o.length;p<l;++p)d[p]=o[p],u[o.charCodeAt(p)]=p;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63;function y(g){var O=g.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=g.indexOf("=");b===-1&&(b=O);var C=b===O?0:4-b%4;return[b,C]}function r(g){var O=y(g),b=O[0],C=O[1];return(b+C)*3/4-C}function f(g,O,b){return(O+b)*3/4-b}function w(g){var O,b=y(g),C=b[0],n=b[1],_=new i(f(g,C,n)),m=0,a=n>0?C-4:C,R;for(R=0;R<a;R+=4)O=u[g.charCodeAt(R)]<<18|u[g.charCodeAt(R+1)]<<12|u[g.charCodeAt(R+2)]<<6|u[g.charCodeAt(R+3)],_[m++]=O>>16&255,_[m++]=O>>8&255,_[m++]=O&255;return n===2&&(O=u[g.charCodeAt(R)]<<2|u[g.charCodeAt(R+1)]>>4,_[m++]=O&255),n===1&&(O=u[g.charCodeAt(R)]<<10|u[g.charCodeAt(R+1)]<<4|u[g.charCodeAt(R+2)]>>2,_[m++]=O>>8&255,_[m++]=O&255),_}function E(g){return d[g>>18&63]+d[g>>12&63]+d[g>>6&63]+d[g&63]}function x(g,O,b){for(var C,n=[],_=O;_<b;_+=3)C=(g[_]<<16&16711680)+(g[_+1]<<8&65280)+(g[_+2]&255),n.push(E(C));return n.join("")}function k(g){for(var O,b=g.length,C=b%3,n=[],_=16383,m=0,a=b-C;m<a;m+=_)n.push(x(g,m,m+_>a?a:m+_));return C===1?(O=g[b-1],n.push(d[O>>2]+d[O<<4&63]+"==")):C===2&&(O=(g[b-2]<<8)+g[b-1],n.push(d[O>>10]+d[O>>4&63]+d[O<<2&63]+"=")),n.join("")}return Xe}var ut={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Dn;function qo(){return Dn||(Dn=1,ut.read=function(d,u,i,o,p){var l,y,r=p*8-o-1,f=(1<<r)-1,w=f>>1,E=-7,x=i?p-1:0,k=i?-1:1,g=d[u+x];for(x+=k,l=g&(1<<-E)-1,g>>=-E,E+=r;E>0;l=l*256+d[u+x],x+=k,E-=8);for(y=l&(1<<-E)-1,l>>=-E,E+=o;E>0;y=y*256+d[u+x],x+=k,E-=8);if(l===0)l=1-w;else{if(l===f)return y?NaN:(g?-1:1)*(1/0);y=y+Math.pow(2,o),l=l-w}return(g?-1:1)*y*Math.pow(2,l-o)},ut.write=function(d,u,i,o,p,l){var y,r,f,w=l*8-p-1,E=(1<<w)-1,x=E>>1,k=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:l-1,O=o?1:-1,b=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(r=isNaN(u)?1:0,y=E):(y=Math.floor(Math.log(u)/Math.LN2),u*(f=Math.pow(2,-y))<1&&(y--,f*=2),y+x>=1?u+=k/f:u+=k*Math.pow(2,1-x),u*f>=2&&(y++,f/=2),y+x>=E?(r=0,y=E):y+x>=1?(r=(u*f-1)*Math.pow(2,p),y=y+x):(r=u*Math.pow(2,x-1)*Math.pow(2,p),y=0));p>=8;d[i+g]=r&255,g+=O,r/=256,p-=8);for(y=y<<p|r,w+=p;w>0;d[i+g]=y&255,g+=O,y/=256,w-=8);d[i+g-O]|=b*128}),ut}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var Fn;function pt(){return Fn||(Fn=1,function(d){var u=zo(),i=qo(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=r,d.SlowBuffer=_,d.INSPECT_MAX_BYTES=50;var p=2147483647;d.kMaxLength=p,r.TYPED_ARRAY_SUPPORT=l(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{var S=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(S,e),S.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(!!r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(!!r.isBuffer(this))return this.byteOffset}});function y(S){if(S>p)throw new RangeError('The value "'+S+'" is invalid for option "size"');var e=new Uint8Array(S);return Object.setPrototypeOf(e,r.prototype),e}function r(S,e,t){if(typeof S=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(S)}return f(S,e,t)}r.poolSize=8192;function f(S,e,t){if(typeof S=="string")return k(S,e);if(ArrayBuffer.isView(S))return O(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(te(S,ArrayBuffer)||S&&te(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(te(S,SharedArrayBuffer)||S&&te(S.buffer,SharedArrayBuffer)))return b(S,e,t);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var h=S.valueOf&&S.valueOf();if(h!=null&&h!==S)return r.from(h,e,t);var M=C(S);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return r.from(S[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}r.from=function(S,e,t){return f(S,e,t)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function w(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function E(S,e,t){return w(S),S<=0?y(S):e!==void 0?typeof t=="string"?y(S).fill(e,t):y(S).fill(e):y(S)}r.alloc=function(S,e,t){return E(S,e,t)};function x(S){return w(S),y(S<0?0:n(S)|0)}r.allocUnsafe=function(S){return x(S)},r.allocUnsafeSlow=function(S){return x(S)};function k(S,e){if((typeof e!="string"||e==="")&&(e="utf8"),!r.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=m(S,e)|0,h=y(t),M=h.write(S,e);return M!==t&&(h=h.slice(0,M)),h}function g(S){for(var e=S.length<0?0:n(S.length)|0,t=y(e),h=0;h<e;h+=1)t[h]=S[h]&255;return t}function O(S){if(te(S,Uint8Array)){var e=new Uint8Array(S);return b(e.buffer,e.byteOffset,e.byteLength)}return g(S)}function b(S,e,t){if(e<0||S.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var h;return e===void 0&&t===void 0?h=new Uint8Array(S):t===void 0?h=new Uint8Array(S,e):h=new Uint8Array(S,e,t),Object.setPrototypeOf(h,r.prototype),h}function C(S){if(r.isBuffer(S)){var e=n(S.length)|0,t=y(e);return t.length===0||S.copy(t,0,0,e),t}if(S.length!==void 0)return typeof S.length!="number"||c(S.length)?y(0):g(S);if(S.type==="Buffer"&&Array.isArray(S.data))return g(S.data)}function n(S){if(S>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return S|0}function _(S){return+S!=S&&(S=0),r.alloc(+S)}r.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==r.prototype},r.compare=function(e,t){if(te(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),te(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var h=e.length,M=t.length,K=0,H=Math.min(h,M);K<H;++K)if(e[K]!==t[K]){h=e[K],M=t[K];break}return h<M?-1:M<h?1:0},r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return r.alloc(0);var h;if(t===void 0)for(t=0,h=0;h<e.length;++h)t+=e[h].length;var M=r.allocUnsafe(t),K=0;for(h=0;h<e.length;++h){var H=e[h];if(te(H,Uint8Array))K+H.length>M.length?r.from(H).copy(M,K):Uint8Array.prototype.set.call(M,H,K);else if(r.isBuffer(H))H.copy(M,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=H.length}return M};function m(S,e){if(r.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||te(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);var t=S.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&t===0)return 0;for(var M=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return v(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return N(S).length;default:if(M)return h?-1:v(S).length;e=(""+e).toLowerCase(),M=!0}}r.byteLength=m;function a(S,e,t){var h=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(S||(S="utf8");;)switch(S){case"hex":return Z(this,e,t);case"utf8":case"utf-8":return s(this,e,t);case"ascii":return W(this,e,t);case"latin1":case"binary":return ne(this,e,t);case"base64":return B(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,e,t);default:if(h)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),h=!0}}r.prototype._isBuffer=!0;function R(S,e,t){var h=S[e];S[e]=S[t],S[t]=h}r.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)R(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)R(this,t,t+3),R(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)R(this,t,t+7),R(this,t+1,t+6),R(this,t+2,t+5),R(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?s(this,0,e):a.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:r.compare(this,e)===0},r.prototype.inspect=function(){var e="",t=d.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o&&(r.prototype[o]=r.prototype.inspect),r.prototype.compare=function(e,t,h,M,K){if(te(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),h===void 0&&(h=e?e.length:0),M===void 0&&(M=0),K===void 0&&(K=this.length),t<0||h>e.length||M<0||K>this.length)throw new RangeError("out of range index");if(M>=K&&t>=h)return 0;if(M>=K)return-1;if(t>=h)return 1;if(t>>>=0,h>>>=0,M>>>=0,K>>>=0,this===e)return 0;for(var H=K-M,ie=h-t,oe=Math.min(H,ie),ae=this.slice(M,K),ue=e.slice(t,h),fe=0;fe<oe;++fe)if(ae[fe]!==ue[fe]){H=ae[fe],ie=ue[fe];break}return H<ie?-1:ie<H?1:0};function P(S,e,t,h,M){if(S.length===0)return-1;if(typeof t=="string"?(h=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,c(t)&&(t=M?0:S.length-1),t<0&&(t=S.length+t),t>=S.length){if(M)return-1;t=S.length-1}else if(t<0)if(M)t=0;else return-1;if(typeof e=="string"&&(e=r.from(e,h)),r.isBuffer(e))return e.length===0?-1:L(S,e,t,h,M);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(S,e,t):Uint8Array.prototype.lastIndexOf.call(S,e,t):L(S,[e],t,h,M);throw new TypeError("val must be string, number or Buffer")}function L(S,e,t,h,M){var K=1,H=S.length,ie=e.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(S.length<2||e.length<2)return-1;K=2,H/=2,ie/=2,t/=2}function oe(ye,ke){return K===1?ye[ke]:ye.readUInt16BE(ke*K)}var ae;if(M){var ue=-1;for(ae=t;ae<H;ae++)if(oe(S,ae)===oe(e,ue===-1?0:ae-ue)){if(ue===-1&&(ue=ae),ae-ue+1===ie)return ue*K}else ue!==-1&&(ae-=ae-ue),ue=-1}else for(t+ie>H&&(t=H-ie),ae=t;ae>=0;ae--){for(var fe=!0,le=0;le<ie;le++)if(oe(S,ae+le)!==oe(e,le)){fe=!1;break}if(fe)return ae}return-1}r.prototype.includes=function(e,t,h){return this.indexOf(e,t,h)!==-1},r.prototype.indexOf=function(e,t,h){return P(this,e,t,h,!0)},r.prototype.lastIndexOf=function(e,t,h){return P(this,e,t,h,!1)};function q(S,e,t,h){t=Number(t)||0;var M=S.length-t;h?(h=Number(h),h>M&&(h=M)):h=M;var K=e.length;h>K/2&&(h=K/2);for(var H=0;H<h;++H){var ie=parseInt(e.substr(H*2,2),16);if(c(ie))return H;S[t+H]=ie}return H}function I(S,e,t,h){return F(v(e,S.length-t),S,t,h)}function U(S,e,t,h){return F(G(e),S,t,h)}function J(S,e,t,h){return F(N(e),S,t,h)}function T(S,e,t,h){return F(j(e,S.length-t),S,t,h)}r.prototype.write=function(e,t,h,M){if(t===void 0)M="utf8",h=this.length,t=0;else if(h===void 0&&typeof t=="string")M=t,h=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(h)?(h=h>>>0,M===void 0&&(M="utf8")):(M=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-t;if((h===void 0||h>K)&&(h=K),e.length>0&&(h<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var H=!1;;)switch(M){case"hex":return q(this,e,t,h);case"utf8":case"utf-8":return I(this,e,t,h);case"ascii":case"latin1":case"binary":return U(this,e,t,h);case"base64":return J(this,e,t,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,h);default:if(H)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),H=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(S,e,t){return e===0&&t===S.length?u.fromByteArray(S):u.fromByteArray(S.slice(e,t))}function s(S,e,t){t=Math.min(S.length,t);for(var h=[],M=e;M<t;){var K=S[M],H=null,ie=K>239?4:K>223?3:K>191?2:1;if(M+ie<=t){var oe,ae,ue,fe;switch(ie){case 1:K<128&&(H=K);break;case 2:oe=S[M+1],(oe&192)===128&&(fe=(K&31)<<6|oe&63,fe>127&&(H=fe));break;case 3:oe=S[M+1],ae=S[M+2],(oe&192)===128&&(ae&192)===128&&(fe=(K&15)<<12|(oe&63)<<6|ae&63,fe>2047&&(fe<55296||fe>57343)&&(H=fe));break;case 4:oe=S[M+1],ae=S[M+2],ue=S[M+3],(oe&192)===128&&(ae&192)===128&&(ue&192)===128&&(fe=(K&15)<<18|(oe&63)<<12|(ae&63)<<6|ue&63,fe>65535&&fe<1114112&&(H=fe))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,h.push(H>>>10&1023|55296),H=56320|H&1023),h.push(H),M+=ie}return Y(h)}var z=4096;function Y(S){var e=S.length;if(e<=z)return String.fromCharCode.apply(String,S);for(var t="",h=0;h<e;)t+=String.fromCharCode.apply(String,S.slice(h,h+=z));return t}function W(S,e,t){var h="";t=Math.min(S.length,t);for(var M=e;M<t;++M)h+=String.fromCharCode(S[M]&127);return h}function ne(S,e,t){var h="";t=Math.min(S.length,t);for(var M=e;M<t;++M)h+=String.fromCharCode(S[M]);return h}function Z(S,e,t){var h=S.length;(!e||e<0)&&(e=0),(!t||t<0||t>h)&&(t=h);for(var M="",K=e;K<t;++K)M+=ee[S[K]];return M}function se(S,e,t){for(var h=S.slice(e,t),M="",K=0;K<h.length-1;K+=2)M+=String.fromCharCode(h[K]+h[K+1]*256);return M}r.prototype.slice=function(e,t){var h=this.length;e=~~e,t=t===void 0?h:~~t,e<0?(e+=h,e<0&&(e=0)):e>h&&(e=h),t<0?(t+=h,t<0&&(t=0)):t>h&&(t=h),t<e&&(t=e);var M=this.subarray(e,t);return Object.setPrototypeOf(M,r.prototype),M};function $(S,e,t){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+e>t)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(e,t,h){e=e>>>0,t=t>>>0,h||$(e,t,this.length);for(var M=this[e],K=1,H=0;++H<t&&(K*=256);)M+=this[e+H]*K;return M},r.prototype.readUintBE=r.prototype.readUIntBE=function(e,t,h){e=e>>>0,t=t>>>0,h||$(e,t,this.length);for(var M=this[e+--t],K=1;t>0&&(K*=256);)M+=this[e+--t]*K;return M},r.prototype.readUint8=r.prototype.readUInt8=function(e,t){return e=e>>>0,t||$(e,1,this.length),this[e]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||$(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||$(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||$(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||$(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,h){e=e>>>0,t=t>>>0,h||$(e,t,this.length);for(var M=this[e],K=1,H=0;++H<t&&(K*=256);)M+=this[e+H]*K;return K*=128,M>=K&&(M-=Math.pow(2,8*t)),M},r.prototype.readIntBE=function(e,t,h){e=e>>>0,t=t>>>0,h||$(e,t,this.length);for(var M=t,K=1,H=this[e+--M];M>0&&(K*=256);)H+=this[e+--M]*K;return K*=128,H>=K&&(H-=Math.pow(2,8*t)),H},r.prototype.readInt8=function(e,t){return e=e>>>0,t||$(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},r.prototype.readInt16LE=function(e,t){e=e>>>0,t||$(e,2,this.length);var h=this[e]|this[e+1]<<8;return h&32768?h|4294901760:h},r.prototype.readInt16BE=function(e,t){e=e>>>0,t||$(e,2,this.length);var h=this[e+1]|this[e]<<8;return h&32768?h|4294901760:h},r.prototype.readInt32LE=function(e,t){return e=e>>>0,t||$(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e=e>>>0,t||$(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e=e>>>0,t||$(e,4,this.length),i.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e=e>>>0,t||$(e,4,this.length),i.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||$(e,8,this.length),i.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||$(e,8,this.length),i.read(this,e,!1,52,8)};function D(S,e,t,h,M,K){if(!r.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>M||e<K)throw new RangeError('"value" argument is out of bounds');if(t+h>S.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(e,t,h,M){if(e=+e,t=t>>>0,h=h>>>0,!M){var K=Math.pow(2,8*h)-1;D(this,e,t,h,K,0)}var H=1,ie=0;for(this[t]=e&255;++ie<h&&(H*=256);)this[t+ie]=e/H&255;return t+h},r.prototype.writeUintBE=r.prototype.writeUIntBE=function(e,t,h,M){if(e=+e,t=t>>>0,h=h>>>0,!M){var K=Math.pow(2,8*h)-1;D(this,e,t,h,K,0)}var H=h-1,ie=1;for(this[t+H]=e&255;--H>=0&&(ie*=256);)this[t+H]=e/ie&255;return t+h},r.prototype.writeUint8=r.prototype.writeUInt8=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,1,255,0),this[t]=e&255,t+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},r.prototype.writeIntLE=function(e,t,h,M){if(e=+e,t=t>>>0,!M){var K=Math.pow(2,8*h-1);D(this,e,t,h,K-1,-K)}var H=0,ie=1,oe=0;for(this[t]=e&255;++H<h&&(ie*=256);)e<0&&oe===0&&this[t+H-1]!==0&&(oe=1),this[t+H]=(e/ie>>0)-oe&255;return t+h},r.prototype.writeIntBE=function(e,t,h,M){if(e=+e,t=t>>>0,!M){var K=Math.pow(2,8*h-1);D(this,e,t,h,K-1,-K)}var H=h-1,ie=1,oe=0;for(this[t+H]=e&255;--H>=0&&(ie*=256);)e<0&&oe===0&&this[t+H+1]!==0&&(oe=1),this[t+H]=(e/ie>>0)-oe&255;return t+h},r.prototype.writeInt8=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},r.prototype.writeInt16LE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},r.prototype.writeInt32LE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,h){return e=+e,t=t>>>0,h||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function X(S,e,t,h,M,K){if(t+h>S.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Q(S,e,t,h,M){return e=+e,t=t>>>0,M||X(S,e,t,4),i.write(S,e,t,h,23,4),t+4}r.prototype.writeFloatLE=function(e,t,h){return Q(this,e,t,!0,h)},r.prototype.writeFloatBE=function(e,t,h){return Q(this,e,t,!1,h)};function re(S,e,t,h,M){return e=+e,t=t>>>0,M||X(S,e,t,8),i.write(S,e,t,h,52,8),t+8}r.prototype.writeDoubleLE=function(e,t,h){return re(this,e,t,!0,h)},r.prototype.writeDoubleBE=function(e,t,h){return re(this,e,t,!1,h)},r.prototype.copy=function(e,t,h,M){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(h||(h=0),!M&&M!==0&&(M=this.length),t>=e.length&&(t=e.length),t||(t=0),M>0&&M<h&&(M=h),M===h||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),e.length-t<M-h&&(M=e.length-t+h);var K=M-h;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,h,M):Uint8Array.prototype.set.call(e,this.subarray(h,M),t),K},r.prototype.fill=function(e,t,h,M){if(typeof e=="string"){if(typeof t=="string"?(M=t,t=0,h=this.length):typeof h=="string"&&(M=h,h=this.length),M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!r.isEncoding(M))throw new TypeError("Unknown encoding: "+M);if(e.length===1){var K=e.charCodeAt(0);(M==="utf8"&&K<128||M==="latin1")&&(e=K)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<h)throw new RangeError("Out of range index");if(h<=t)return this;t=t>>>0,h=h===void 0?this.length:h>>>0,e||(e=0);var H;if(typeof e=="number")for(H=t;H<h;++H)this[H]=e;else{var ie=r.isBuffer(e)?e:r.from(e,M),oe=ie.length;if(oe===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(H=0;H<h-t;++H)this[H+t]=ie[H%oe]}return this};var V=/[^+/0-9A-Za-z-_]/g;function A(S){if(S=S.split("=")[0],S=S.trim().replace(V,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function v(S,e){e=e||1/0;for(var t,h=S.length,M=null,K=[],H=0;H<h;++H){if(t=S.charCodeAt(H),t>55295&&t<57344){if(!M){if(t>56319){(e-=3)>-1&&K.push(239,191,189);continue}else if(H+1===h){(e-=3)>-1&&K.push(239,191,189);continue}M=t;continue}if(t<56320){(e-=3)>-1&&K.push(239,191,189),M=t;continue}t=(M-55296<<10|t-56320)+65536}else M&&(e-=3)>-1&&K.push(239,191,189);if(M=null,t<128){if((e-=1)<0)break;K.push(t)}else if(t<2048){if((e-=2)<0)break;K.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;K.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;K.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return K}function G(S){for(var e=[],t=0;t<S.length;++t)e.push(S.charCodeAt(t)&255);return e}function j(S,e){for(var t,h,M,K=[],H=0;H<S.length&&!((e-=2)<0);++H)t=S.charCodeAt(H),h=t>>8,M=t%256,K.push(M),K.push(h);return K}function N(S){return u.toByteArray(A(S))}function F(S,e,t,h){for(var M=0;M<h&&!(M+t>=e.length||M>=S.length);++M)e[M+t]=S[M];return M}function te(S,e){return S instanceof e||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===e.name}function c(S){return S!==S}var ee=function(){for(var S="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var h=t*16,M=0;M<16;++M)e[h+M]=S[t]+S[M];return e}()}(wt)),wt}var Et={},At={},St,Bn;function Da(){return Bn||(Bn=1,St=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var u={},i=Symbol("test"),o=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var p=42;u[i]=p;for(var l in u)return!1;if(typeof Object.keys=="function"&&Object.keys(u).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(u).length!==0)return!1;var y=Object.getOwnPropertySymbols(u);if(y.length!==1||y[0]!==i||!Object.prototype.propertyIsEnumerable.call(u,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var r=Object.getOwnPropertyDescriptor(u,i);if(r.value!==p||r.enumerable!==!0)return!1}return!0}),St}var Tt,Pn;function ln(){if(Pn)return Tt;Pn=1;var d=Da();return Tt=function(){return d()&&!!Symbol.toStringTag},Tt}var Rt,Ln;function Fa(){return Ln||(Ln=1,Rt=Object),Rt}var Ot,Mn;function Wo(){return Mn||(Mn=1,Ot=Error),Ot}var kt,Un;function Ho(){return Un||(Un=1,kt=EvalError),kt}var xt,jn;function Go(){return jn||(jn=1,xt=RangeError),xt}var Ct,zn;function Ko(){return zn||(zn=1,Ct=ReferenceError),Ct}var It,qn;function Ba(){return qn||(qn=1,It=SyntaxError),It}var Nt,Wn;function Qe(){return Wn||(Wn=1,Nt=TypeError),Nt}var Dt,Hn;function Vo(){return Hn||(Hn=1,Dt=URIError),Dt}var Ft,Gn;function $o(){return Gn||(Gn=1,Ft=Math.abs),Ft}var Bt,Kn;function Xo(){return Kn||(Kn=1,Bt=Math.floor),Bt}var Pt,Vn;function Zo(){return Vn||(Vn=1,Pt=Math.max),Pt}var Lt,$n;function Yo(){return $n||($n=1,Lt=Math.min),Lt}var Mt,Xn;function Jo(){return Xn||(Xn=1,Mt=Math.pow),Mt}var Ut,Zn;function Qo(){return Zn||(Zn=1,Ut=Math.round),Ut}var jt,Yn;function es(){return Yn||(Yn=1,jt=Number.isNaN||function(u){return u!==u}),jt}var zt,Jn;function ts(){if(Jn)return zt;Jn=1;var d=es();return zt=function(i){return d(i)||i===0?i:i<0?-1:1},zt}var qt,Qn;function rs(){return Qn||(Qn=1,qt=Object.getOwnPropertyDescriptor),qt}var Wt,ei;function et(){if(ei)return Wt;ei=1;var d=rs();if(d)try{d([],"length")}catch{d=null}return Wt=d,Wt}var Ht,ti;function mt(){if(ti)return Ht;ti=1;var d=Object.defineProperty||!1;if(d)try{d({},"a",{value:1})}catch{d=!1}return Ht=d,Ht}var Gt,ri;function ns(){if(ri)return Gt;ri=1;var d=typeof Symbol<"u"&&Symbol,u=Da();return Gt=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:u()},Gt}var Kt,ni;function Pa(){return ni||(ni=1,Kt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Kt}var Vt,ii;function La(){if(ii)return Vt;ii=1;var d=Fa();return Vt=d.getPrototypeOf||null,Vt}var $t,ai;function is(){if(ai)return $t;ai=1;var d="Function.prototype.bind called on incompatible ",u=Object.prototype.toString,i=Math.max,o="[object Function]",p=function(f,w){for(var E=[],x=0;x<f.length;x+=1)E[x]=f[x];for(var k=0;k<w.length;k+=1)E[k+f.length]=w[k];return E},l=function(f,w){for(var E=[],x=w,k=0;x<f.length;x+=1,k+=1)E[k]=f[x];return E},y=function(r,f){for(var w="",E=0;E<r.length;E+=1)w+=r[E],E+1<r.length&&(w+=f);return w};return $t=function(f){var w=this;if(typeof w!="function"||u.apply(w)!==o)throw new TypeError(d+w);for(var E=l(arguments,1),x,k=function(){if(this instanceof x){var n=w.apply(this,p(E,arguments));return Object(n)===n?n:this}return w.apply(f,p(E,arguments))},g=i(0,w.length-E.length),O=[],b=0;b<g;b++)O[b]="$"+b;if(x=Function("binder","return function ("+y(O,",")+"){ return binder.apply(this,arguments); }")(k),w.prototype){var C=function(){};C.prototype=w.prototype,x.prototype=new C,C.prototype=null}return x},$t}var Xt,oi;function tt(){if(oi)return Xt;oi=1;var d=is();return Xt=Function.prototype.bind||d,Xt}var Zt,si;function cn(){return si||(si=1,Zt=Function.prototype.call),Zt}var Yt,ui;function Ma(){return ui||(ui=1,Yt=Function.prototype.apply),Yt}var Jt,fi;function as(){return fi||(fi=1,Jt=typeof Reflect<"u"&&Reflect&&Reflect.apply),Jt}var Qt,li;function os(){if(li)return Qt;li=1;var d=tt(),u=Ma(),i=cn(),o=as();return Qt=o||d.call(i,u),Qt}var er,ci;function ss(){if(ci)return er;ci=1;var d=tt(),u=Qe(),i=cn(),o=os();return er=function(l){if(l.length<1||typeof l[0]!="function")throw new u("a function is required");return o(d,i,l)},er}var tr,hi;function us(){if(hi)return tr;hi=1;var d=ss(),u=et(),i;try{i=[].__proto__===Array.prototype}catch(y){if(!y||typeof y!="object"||!("code"in y)||y.code!=="ERR_PROTO_ACCESS")throw y}var o=!!i&&u&&u(Object.prototype,"__proto__"),p=Object,l=p.getPrototypeOf;return tr=o&&typeof o.get=="function"?d([o.get]):typeof l=="function"?function(r){return l(r==null?r:p(r))}:!1,tr}var rr,di;function fs(){if(di)return rr;di=1;var d=Pa(),u=La(),i=us();return rr=d?function(p){return d(p)}:u?function(p){if(!p||typeof p!="object"&&typeof p!="function")throw new TypeError("getProto: not an object");return u(p)}:i?function(p){return i(p)}:null,rr}var nr,pi;function ls(){if(pi)return nr;pi=1;var d=Function.prototype.call,u=Object.prototype.hasOwnProperty,i=tt();return nr=i.call(d,u),nr}var ir,mi;function hn(){if(mi)return ir;mi=1;var d,u=Fa(),i=Wo(),o=Ho(),p=Go(),l=Ko(),y=Ba(),r=Qe(),f=Vo(),w=$o(),E=Xo(),x=Zo(),k=Yo(),g=Jo(),O=Qo(),b=ts(),C=Function,n=function(G){try{return C('"use strict"; return ('+G+").constructor;")()}catch{}},_=et(),m=mt(),a=function(){throw new r},R=_?function(){try{return arguments.callee,a}catch{try{return _(arguments,"callee").get}catch{return a}}}():a,P=ns()(),L=fs(),q=La(),I=Pa(),U=Ma(),J=cn(),T={},B=typeof Uint8Array>"u"||!L?d:L(Uint8Array),s={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":P&&L?L([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?d:Float16Array,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":T,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&L?L(L([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!L?d:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":u,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":p,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!L?d:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&L?L(""[Symbol.iterator]()):d,"%Symbol%":P?Symbol:d,"%SyntaxError%":y,"%ThrowTypeError%":R,"%TypedArray%":B,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet,"%Function.prototype.call%":J,"%Function.prototype.apply%":U,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":q,"%Math.abs%":w,"%Math.floor%":E,"%Math.max%":x,"%Math.min%":k,"%Math.pow%":g,"%Math.round%":O,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(L)try{null.error}catch(G){var z=L(L(G));s["%Error.prototype%"]=z}var Y=function G(j){var N;if(j==="%AsyncFunction%")N=n("async function () {}");else if(j==="%GeneratorFunction%")N=n("function* () {}");else if(j==="%AsyncGeneratorFunction%")N=n("async function* () {}");else if(j==="%AsyncGenerator%"){var F=G("%AsyncGeneratorFunction%");F&&(N=F.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=G("%AsyncGenerator%");te&&L&&(N=L(te.prototype))}return s[j]=N,N},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ne=tt(),Z=ls(),se=ne.call(J,Array.prototype.concat),$=ne.call(U,Array.prototype.splice),D=ne.call(J,String.prototype.replace),X=ne.call(J,String.prototype.slice),Q=ne.call(J,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,A=function(j){var N=X(j,0,1),F=X(j,-1);if(N==="%"&&F!=="%")throw new y("invalid intrinsic syntax, expected closing `%`");if(F==="%"&&N!=="%")throw new y("invalid intrinsic syntax, expected opening `%`");var te=[];return D(j,re,function(c,ee,S,e){te[te.length]=S?D(e,V,"$1"):ee||c}),te},v=function(j,N){var F=j,te;if(Z(W,F)&&(te=W[F],F="%"+te[0]+"%"),Z(s,F)){var c=s[F];if(c===T&&(c=Y(F)),typeof c>"u"&&!N)throw new r("intrinsic "+j+" exists, but is not available. Please file an issue!");return{alias:te,name:F,value:c}}throw new y("intrinsic "+j+" does not exist!")};return ir=function(j,N){if(typeof j!="string"||j.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof N!="boolean")throw new r('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,j)===null)throw new y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var F=A(j),te=F.length>0?F[0]:"",c=v("%"+te+"%",N),ee=c.name,S=c.value,e=!1,t=c.alias;t&&(te=t[0],$(F,se([0,1],t)));for(var h=1,M=!0;h<F.length;h+=1){var K=F[h],H=X(K,0,1),ie=X(K,-1);if((H==='"'||H==="'"||H==="`"||ie==='"'||ie==="'"||ie==="`")&&H!==ie)throw new y("property names with quotes must have matching quotes");if((K==="constructor"||!M)&&(e=!0),te+="."+K,ee="%"+te+"%",Z(s,ee))S=s[ee];else if(S!=null){if(!(K in S)){if(!N)throw new r("base intrinsic for "+j+" exists, but the property is not available.");return}if(_&&h+1>=F.length){var oe=_(S,K);M=!!oe,M&&"get"in oe&&!("originalValue"in oe.get)?S=oe.get:S=S[K]}else M=Z(S,K),S=S[K];M&&!e&&(s[ee]=S)}}return S},ir}var ar={exports:{}},or,yi;function cs(){if(yi)return or;yi=1;var d=mt(),u=Ba(),i=Qe(),o=et();return or=function(l,y,r){if(!l||typeof l!="object"&&typeof l!="function")throw new i("`obj` must be an object or a function`");if(typeof y!="string"&&typeof y!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,w=arguments.length>4?arguments[4]:null,E=arguments.length>5?arguments[5]:null,x=arguments.length>6?arguments[6]:!1,k=!!o&&o(l,y);if(d)d(l,y,{configurable:E===null&&k?k.configurable:!E,enumerable:f===null&&k?k.enumerable:!f,value:r,writable:w===null&&k?k.writable:!w});else if(x||!f&&!w&&!E)l[y]=r;else throw new u("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},or}var sr,gi;function hs(){if(gi)return sr;gi=1;var d=mt(),u=function(){return!!d};return u.hasArrayLengthDefineBug=function(){if(!d)return null;try{return d([],"length",{value:1}).length!==1}catch{return!0}},sr=u,sr}var ur,vi;function ds(){if(vi)return ur;vi=1;var d=hn(),u=cs(),i=hs()(),o=et(),p=Qe(),l=d("%Math.floor%");return ur=function(r,f){if(typeof r!="function")throw new p("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||l(f)!==f)throw new p("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],E=!0,x=!0;if("length"in r&&o){var k=o(r,"length");k&&!k.configurable&&(E=!1),k&&!k.writable&&(x=!1)}return(E||x||!w)&&(i?u(r,"length",f,!0,!0):u(r,"length",f)),r},ur}var _i;function Ua(){return _i||(_i=1,function(d){var u=tt(),i=hn(),o=ds(),p=Qe(),l=i("%Function.prototype.apply%"),y=i("%Function.prototype.call%"),r=i("%Reflect.apply%",!0)||u.call(y,l),f=mt(),w=i("%Math.max%");d.exports=function(k){if(typeof k!="function")throw new p("a function is required");var g=r(u,y,arguments);return o(g,1+w(0,k.length-(arguments.length-1)),!0)};var E=function(){return r(u,l,arguments)};f?f(d.exports,"apply",{value:E}):d.exports.apply=E}(ar)),ar.exports}var fr,bi;function ja(){if(bi)return fr;bi=1;var d=hn(),u=Ua(),i=u(d("String.prototype.indexOf"));return fr=function(p,l){var y=d(p,!!l);return typeof y=="function"&&i(p,".prototype.")>-1?u(y):y},fr}var lr,wi;function ps(){if(wi)return lr;wi=1;var d=ln()(),u=ja(),i=u("Object.prototype.toString"),o=function(r){return d&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:i(r)==="[object Arguments]"},p=function(r){return o(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&i(r)!=="[object Array]"&&i(r.callee)==="[object Function]"},l=function(){return o(arguments)}();return o.isLegacyArguments=p,lr=l?o:p,lr}var cr,Ei;function ms(){if(Ei)return cr;Ei=1;var d=Object.prototype.toString,u=Function.prototype.toString,i=/^\s*(?:function)?\*/,o=ln()(),p=Object.getPrototypeOf,l=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},y;return cr=function(f){if(typeof f!="function")return!1;if(i.test(u.call(f)))return!0;if(!o){var w=d.call(f);return w==="[object GeneratorFunction]"}if(!p)return!1;if(typeof y>"u"){var E=l();y=E?p(E):!1}return p(f)===y},cr}var hr,Ai;function ys(){if(Ai)return hr;Ai=1;var d=Function.prototype.toString,u=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,o;if(typeof u=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw o}}),o={},u(function(){throw 42},null,i)}catch(_){_!==o&&(u=null)}else u=null;var p=/^\s*class\b/,l=function(m){try{var a=d.call(m);return p.test(a)}catch{return!1}},y=function(m){try{return l(m)?!1:(d.call(m),!0)}catch{return!1}},r=Object.prototype.toString,f="[object Object]",w="[object Function]",E="[object GeneratorFunction]",x="[object HTMLAllCollection]",k="[object HTML document.all class]",g="[object HTMLCollection]",O=typeof Symbol=="function"&&!!Symbol.toStringTag,b=!(0 in[,]),C=function(){return!1};if(typeof document=="object"){var n=document.all;r.call(n)===r.call(document.all)&&(C=function(m){if((b||!m)&&(typeof m>"u"||typeof m=="object"))try{var a=r.call(m);return(a===x||a===k||a===g||a===f)&&m("")==null}catch{}return!1})}return hr=u?function(m){if(C(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{u(m,null,i)}catch(a){if(a!==o)return!1}return!l(m)&&y(m)}:function(m){if(C(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(O)return y(m);if(l(m))return!1;var a=r.call(m);return a!==w&&a!==E&&!/^\[object HTML/.test(a)?!1:y(m)},hr}var dr,Si;function gs(){if(Si)return dr;Si=1;var d=ys(),u=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=function(f,w,E){for(var x=0,k=f.length;x<k;x++)i.call(f,x)&&(E==null?w(f[x],x,f):w.call(E,f[x],x,f))},p=function(f,w,E){for(var x=0,k=f.length;x<k;x++)E==null?w(f.charAt(x),x,f):w.call(E,f.charAt(x),x,f)},l=function(f,w,E){for(var x in f)i.call(f,x)&&(E==null?w(f[x],x,f):w.call(E,f[x],x,f))},y=function(f,w,E){if(!d(w))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=E),u.call(f)==="[object Array]"?o(f,w,x):typeof f=="string"?p(f,w,x):l(f,w,x)};return dr=y,dr}var pr,Ti;function vs(){return Ti||(Ti=1,pr=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),pr}var mr,Ri;function _s(){if(Ri)return mr;Ri=1;var d=vs(),u=typeof globalThis>"u"?Ee:globalThis;return mr=function(){for(var o=[],p=0;p<d.length;p++)typeof u[d[p]]=="function"&&(o[o.length]=d[p]);return o},mr}var yr,Oi;function za(){if(Oi)return yr;Oi=1;var d=gs(),u=_s(),i=Ua(),o=ja(),p=et(),l=o("Object.prototype.toString"),y=ln()(),r=typeof globalThis>"u"?Ee:globalThis,f=u(),w=o("String.prototype.slice"),E=Object.getPrototypeOf,x=o("Array.prototype.indexOf",!0)||function(C,n){for(var _=0;_<C.length;_+=1)if(C[_]===n)return _;return-1},k={__proto__:null};y&&p&&E?d(f,function(b){var C=new r[b];if(Symbol.toStringTag in C){var n=E(C),_=p(n,Symbol.toStringTag);if(!_){var m=E(n);_=p(m,Symbol.toStringTag)}k["$"+b]=i(_.get)}}):d(f,function(b){var C=new r[b],n=C.slice||C.set;n&&(k["$"+b]=i(n))});var g=function(C){var n=!1;return d(k,function(_,m){if(!n)try{"$"+_(C)===m&&(n=w(m,1))}catch{}}),n},O=function(C){var n=!1;return d(k,function(_,m){if(!n)try{_(C),n=w(m,1)}catch{}}),n};return yr=function(C){if(!C||typeof C!="object")return!1;if(!y){var n=w(l(C),8,-1);return x(f,n)>-1?n:n!=="Object"?!1:O(C)}return p?g(C):null},yr}var gr,ki;function bs(){if(ki)return gr;ki=1;var d=za();return gr=function(i){return!!d(i)},gr}var xi;function ws(){return xi||(xi=1,function(d){var u=ps(),i=ms(),o=za(),p=bs();function l(h){return h.call.bind(h)}var y=typeof BigInt<"u",r=typeof Symbol<"u",f=l(Object.prototype.toString),w=l(Number.prototype.valueOf),E=l(String.prototype.valueOf),x=l(Boolean.prototype.valueOf);if(y)var k=l(BigInt.prototype.valueOf);if(r)var g=l(Symbol.prototype.valueOf);function O(h,M){if(typeof h!="object")return!1;try{return M(h),!0}catch{return!1}}d.isArgumentsObject=u,d.isGeneratorFunction=i,d.isTypedArray=p;function b(h){return typeof Promise<"u"&&h instanceof Promise||h!==null&&typeof h=="object"&&typeof h.then=="function"&&typeof h.catch=="function"}d.isPromise=b;function C(h){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(h):p(h)||X(h)}d.isArrayBufferView=C;function n(h){return o(h)==="Uint8Array"}d.isUint8Array=n;function _(h){return o(h)==="Uint8ClampedArray"}d.isUint8ClampedArray=_;function m(h){return o(h)==="Uint16Array"}d.isUint16Array=m;function a(h){return o(h)==="Uint32Array"}d.isUint32Array=a;function R(h){return o(h)==="Int8Array"}d.isInt8Array=R;function P(h){return o(h)==="Int16Array"}d.isInt16Array=P;function L(h){return o(h)==="Int32Array"}d.isInt32Array=L;function q(h){return o(h)==="Float32Array"}d.isFloat32Array=q;function I(h){return o(h)==="Float64Array"}d.isFloat64Array=I;function U(h){return o(h)==="BigInt64Array"}d.isBigInt64Array=U;function J(h){return o(h)==="BigUint64Array"}d.isBigUint64Array=J;function T(h){return f(h)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function B(h){return typeof Map>"u"?!1:T.working?T(h):h instanceof Map}d.isMap=B;function s(h){return f(h)==="[object Set]"}s.working=typeof Set<"u"&&s(new Set);function z(h){return typeof Set>"u"?!1:s.working?s(h):h instanceof Set}d.isSet=z;function Y(h){return f(h)==="[object WeakMap]"}Y.working=typeof WeakMap<"u"&&Y(new WeakMap);function W(h){return typeof WeakMap>"u"?!1:Y.working?Y(h):h instanceof WeakMap}d.isWeakMap=W;function ne(h){return f(h)==="[object WeakSet]"}ne.working=typeof WeakSet<"u"&&ne(new WeakSet);function Z(h){return ne(h)}d.isWeakSet=Z;function se(h){return f(h)==="[object ArrayBuffer]"}se.working=typeof ArrayBuffer<"u"&&se(new ArrayBuffer);function $(h){return typeof ArrayBuffer>"u"?!1:se.working?se(h):h instanceof ArrayBuffer}d.isArrayBuffer=$;function D(h){return f(h)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function X(h){return typeof DataView>"u"?!1:D.working?D(h):h instanceof DataView}d.isDataView=X;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function re(h){return f(h)==="[object SharedArrayBuffer]"}function V(h){return typeof Q>"u"?!1:(typeof re.working>"u"&&(re.working=re(new Q)),re.working?re(h):h instanceof Q)}d.isSharedArrayBuffer=V;function A(h){return f(h)==="[object AsyncFunction]"}d.isAsyncFunction=A;function v(h){return f(h)==="[object Map Iterator]"}d.isMapIterator=v;function G(h){return f(h)==="[object Set Iterator]"}d.isSetIterator=G;function j(h){return f(h)==="[object Generator]"}d.isGeneratorObject=j;function N(h){return f(h)==="[object WebAssembly.Module]"}d.isWebAssemblyCompiledModule=N;function F(h){return O(h,w)}d.isNumberObject=F;function te(h){return O(h,E)}d.isStringObject=te;function c(h){return O(h,x)}d.isBooleanObject=c;function ee(h){return y&&O(h,k)}d.isBigIntObject=ee;function S(h){return r&&O(h,g)}d.isSymbolObject=S;function e(h){return F(h)||te(h)||c(h)||ee(h)||S(h)}d.isBoxedPrimitive=e;function t(h){return typeof Uint8Array<"u"&&($(h)||V(h))}d.isAnyArrayBuffer=t,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(h){Object.defineProperty(d,h,{enumerable:!1,value:function(){throw new Error(h+" is not supported in userland")}})})}(At)),At}var vr,Ci;function Es(){return Ci||(Ci=1,vr=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}),vr}var Ii;function qa(){return Ii||(Ii=1,function(d){var u=Object.getOwnPropertyDescriptors||function(X){for(var Q=Object.keys(X),re={},V=0;V<Q.length;V++)re[Q[V]]=Object.getOwnPropertyDescriptor(X,Q[V]);return re},i=/%[sdj%]/g;d.format=function(D){if(!R(D)){for(var X=[],Q=0;Q<arguments.length;Q++)X.push(y(arguments[Q]));return X.join(" ")}for(var Q=1,re=arguments,V=re.length,A=String(D).replace(i,function(G){if(G==="%%")return"%";if(Q>=V)return G;switch(G){case"%s":return String(re[Q++]);case"%d":return Number(re[Q++]);case"%j":try{return JSON.stringify(re[Q++])}catch{return"[Circular]"}default:return G}}),v=re[Q];Q<V;v=re[++Q])_(v)||!I(v)?A+=" "+v:A+=" "+y(v);return A},d.deprecate=function(D,X){if(typeof ce<"u"&&ce.noDeprecation===!0)return D;if(typeof ce>"u")return function(){return d.deprecate(D,X).apply(this,arguments)};var Q=!1;function re(){if(!Q){if(ce.throwDeprecation)throw new Error(X);ce.traceDeprecation?console.trace(X):console.error(X),Q=!0}return D.apply(this,arguments)}return re};var o={},p=/^$/;if(ce.env.NODE_DEBUG){var l=ce.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+l+"$","i")}d.debuglog=function(D){if(D=D.toUpperCase(),!o[D])if(p.test(D)){var X=ce.pid;o[D]=function(){var Q=d.format.apply(d,arguments);console.error("%s %d: %s",D,X,Q)}}else o[D]=function(){};return o[D]};function y(D,X){var Q={seen:[],stylize:f};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),n(X)?Q.showHidden=X:X&&d._extend(Q,X),L(Q.showHidden)&&(Q.showHidden=!1),L(Q.depth)&&(Q.depth=2),L(Q.colors)&&(Q.colors=!1),L(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=r),E(Q,D,Q.depth)}d.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(D,X){var Q=y.styles[X];return Q?"\x1B["+y.colors[Q][0]+"m"+D+"\x1B["+y.colors[Q][1]+"m":D}function f(D,X){return D}function w(D){var X={};return D.forEach(function(Q,re){X[Q]=!0}),X}function E(D,X,Q){if(D.customInspect&&X&&T(X.inspect)&&X.inspect!==d.inspect&&!(X.constructor&&X.constructor.prototype===X)){var re=X.inspect(Q,D);return R(re)||(re=E(D,re,Q)),re}var V=x(D,X);if(V)return V;var A=Object.keys(X),v=w(A);if(D.showHidden&&(A=Object.getOwnPropertyNames(X)),J(X)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return k(X);if(A.length===0){if(T(X)){var G=X.name?": "+X.name:"";return D.stylize("[Function"+G+"]","special")}if(q(X))return D.stylize(RegExp.prototype.toString.call(X),"regexp");if(U(X))return D.stylize(Date.prototype.toString.call(X),"date");if(J(X))return k(X)}var j="",N=!1,F=["{","}"];if(C(X)&&(N=!0,F=["[","]"]),T(X)){var te=X.name?": "+X.name:"";j=" [Function"+te+"]"}if(q(X)&&(j=" "+RegExp.prototype.toString.call(X)),U(X)&&(j=" "+Date.prototype.toUTCString.call(X)),J(X)&&(j=" "+k(X)),A.length===0&&(!N||X.length==0))return F[0]+j+F[1];if(Q<0)return q(X)?D.stylize(RegExp.prototype.toString.call(X),"regexp"):D.stylize("[Object]","special");D.seen.push(X);var c;return N?c=g(D,X,Q,v,A):c=A.map(function(ee){return O(D,X,Q,v,ee,N)}),D.seen.pop(),b(c,j,F)}function x(D,X){if(L(X))return D.stylize("undefined","undefined");if(R(X)){var Q="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Q,"string")}if(a(X))return D.stylize(""+X,"number");if(n(X))return D.stylize(""+X,"boolean");if(_(X))return D.stylize("null","null")}function k(D){return"["+Error.prototype.toString.call(D)+"]"}function g(D,X,Q,re,V){for(var A=[],v=0,G=X.length;v<G;++v)ne(X,String(v))?A.push(O(D,X,Q,re,String(v),!0)):A.push("");return V.forEach(function(j){j.match(/^\d+$/)||A.push(O(D,X,Q,re,j,!0))}),A}function O(D,X,Q,re,V,A){var v,G,j;if(j=Object.getOwnPropertyDescriptor(X,V)||{value:X[V]},j.get?j.set?G=D.stylize("[Getter/Setter]","special"):G=D.stylize("[Getter]","special"):j.set&&(G=D.stylize("[Setter]","special")),ne(re,V)||(v="["+V+"]"),G||(D.seen.indexOf(j.value)<0?(_(Q)?G=E(D,j.value,null):G=E(D,j.value,Q-1),G.indexOf(`
`)>-1&&(A?G=G.split(`
`).map(function(N){return"  "+N}).join(`
`).slice(2):G=`
`+G.split(`
`).map(function(N){return"   "+N}).join(`
`))):G=D.stylize("[Circular]","special")),L(v)){if(A&&V.match(/^\d+$/))return G;v=JSON.stringify(""+V),v.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(v=v.slice(1,-1),v=D.stylize(v,"name")):(v=v.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),v=D.stylize(v,"string"))}return v+": "+G}function b(D,X,Q){var re=D.reduce(function(V,A){return A.indexOf(`
`)>=0,V+A.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?Q[0]+(X===""?"":X+`
 `)+" "+D.join(`,
  `)+" "+Q[1]:Q[0]+X+" "+D.join(", ")+" "+Q[1]}d.types=ws();function C(D){return Array.isArray(D)}d.isArray=C;function n(D){return typeof D=="boolean"}d.isBoolean=n;function _(D){return D===null}d.isNull=_;function m(D){return D==null}d.isNullOrUndefined=m;function a(D){return typeof D=="number"}d.isNumber=a;function R(D){return typeof D=="string"}d.isString=R;function P(D){return typeof D=="symbol"}d.isSymbol=P;function L(D){return D===void 0}d.isUndefined=L;function q(D){return I(D)&&s(D)==="[object RegExp]"}d.isRegExp=q,d.types.isRegExp=q;function I(D){return typeof D=="object"&&D!==null}d.isObject=I;function U(D){return I(D)&&s(D)==="[object Date]"}d.isDate=U,d.types.isDate=U;function J(D){return I(D)&&(s(D)==="[object Error]"||D instanceof Error)}d.isError=J,d.types.isNativeError=J;function T(D){return typeof D=="function"}d.isFunction=T;function B(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}d.isPrimitive=B,d.isBuffer=Es();function s(D){return Object.prototype.toString.call(D)}function z(D){return D<10?"0"+D.toString(10):D.toString(10)}var Y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var D=new Date,X=[z(D.getHours()),z(D.getMinutes()),z(D.getSeconds())].join(":");return[D.getDate(),Y[D.getMonth()],X].join(" ")}d.log=function(){W(),d.format.apply(d,arguments)},d.inherits=xe(),d._extend=function(D,X){if(!X||!I(X))return D;for(var Q=Object.keys(X),re=Q.length;re--;)D[Q[re]]=X[Q[re]];return D};function ne(D,X){return Object.prototype.hasOwnProperty.call(D,X)}var Z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;d.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(Z&&X[Z]){var Q=X[Z];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,Z,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var re,V,A=new Promise(function(j,N){re=j,V=N}),v=[],G=0;G<arguments.length;G++)v.push(arguments[G]);v.push(function(j,N){j?V(j):re(N)});try{X.apply(this,v)}catch(j){V(j)}return A}return Object.setPrototypeOf(Q,Object.getPrototypeOf(X)),Z&&Object.defineProperty(Q,Z,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,u(X))},d.promisify.custom=Z;function se(D,X){if(!D){var Q=new Error("Promise was rejected with a falsy value");Q.reason=D,D=Q}return X(D)}function $(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function X(){for(var Q=[],re=0;re<arguments.length;re++)Q.push(arguments[re]);var V=Q.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var A=this,v=function(){return V.apply(A,arguments)};D.apply(this,Q).then(function(G){ce.nextTick(v.bind(null,null,G))},function(G){ce.nextTick(se.bind(null,G,v))})}return Object.setPrototypeOf(X,Object.getPrototypeOf(D)),Object.defineProperties(X,u(D)),X}d.callbackify=$}(Et)),Et}var _r,Ni;function As(){if(Ni)return _r;Ni=1;function d(k,g){var O=Object.keys(k);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(k);g&&(b=b.filter(function(C){return Object.getOwnPropertyDescriptor(k,C).enumerable})),O.push.apply(O,b)}return O}function u(k){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{};g%2?d(Object(O),!0).forEach(function(b){i(k,b,O[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(O)):d(Object(O)).forEach(function(b){Object.defineProperty(k,b,Object.getOwnPropertyDescriptor(O,b))})}return k}function i(k,g,O){return g in k?Object.defineProperty(k,g,{value:O,enumerable:!0,configurable:!0,writable:!0}):k[g]=O,k}function o(k,g){if(!(k instanceof g))throw new TypeError("Cannot call a class as a function")}function p(k,g){for(var O=0;O<g.length;O++){var b=g[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(k,b.key,b)}}function l(k,g,O){return g&&p(k.prototype,g),k}var y=pt(),r=y.Buffer,f=qa(),w=f.inspect,E=w&&w.custom||"inspect";function x(k,g,O){r.prototype.copy.call(k,g,O)}return _r=function(){function k(){o(this,k),this.head=null,this.tail=null,this.length=0}return l(k,[{key:"push",value:function(O){var b={data:O,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(O){var b={data:O,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(O){if(this.length===0)return"";for(var b=this.head,C=""+b.data;b=b.next;)C+=O+b.data;return C}},{key:"concat",value:function(O){if(this.length===0)return r.alloc(0);for(var b=r.allocUnsafe(O>>>0),C=this.head,n=0;C;)x(C.data,b,n),n+=C.data.length,C=C.next;return b}},{key:"consume",value:function(O,b){var C;return O<this.head.data.length?(C=this.head.data.slice(0,O),this.head.data=this.head.data.slice(O)):O===this.head.data.length?C=this.shift():C=b?this._getString(O):this._getBuffer(O),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(O){var b=this.head,C=1,n=b.data;for(O-=n.length;b=b.next;){var _=b.data,m=O>_.length?_.length:O;if(m===_.length?n+=_:n+=_.slice(0,O),O-=m,O===0){m===_.length?(++C,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(m));break}++C}return this.length-=C,n}},{key:"_getBuffer",value:function(O){var b=r.allocUnsafe(O),C=this.head,n=1;for(C.data.copy(b),O-=C.data.length;C=C.next;){var _=C.data,m=O>_.length?_.length:O;if(_.copy(b,b.length-O,0,m),O-=m,O===0){m===_.length?(++n,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=_.slice(m));break}++n}return this.length-=n,b}},{key:E,value:function(O,b){return w(this,u({},b,{depth:0,customInspect:!1}))}}]),k}(),_r}var br,Di;function Wa(){if(Di)return br;Di=1;function d(y,r){var f=this,w=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return w||E?(r?r(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ce.nextTick(p,this,y)):ce.nextTick(p,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(x){!r&&x?f._writableState?f._writableState.errorEmitted?ce.nextTick(i,f):(f._writableState.errorEmitted=!0,ce.nextTick(u,f,x)):ce.nextTick(u,f,x):r?(ce.nextTick(i,f),r(x)):ce.nextTick(i,f)}),this)}function u(y,r){p(y,r),i(y)}function i(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function p(y,r){y.emit("error",r)}function l(y,r){var f=y._readableState,w=y._writableState;f&&f.autoDestroy||w&&w.autoDestroy?y.destroy(r):y.emit("error",r)}return br={destroy:d,undestroy:o,errorOrDestroy:l},br}var wr={},Fi;function ze(){if(Fi)return wr;Fi=1;function d(r,f){r.prototype=Object.create(f.prototype),r.prototype.constructor=r,r.__proto__=f}var u={};function i(r,f,w){w||(w=Error);function E(k,g,O){return typeof f=="string"?f:f(k,g,O)}var x=function(k){d(g,k);function g(O,b,C){return k.call(this,E(O,b,C))||this}return g}(w);x.prototype.name=w.name,x.prototype.code=r,u[r]=x}function o(r,f){if(Array.isArray(r)){var w=r.length;return r=r.map(function(E){return String(E)}),w>2?"one of ".concat(f," ").concat(r.slice(0,w-1).join(", "),", or ")+r[w-1]:w===2?"one of ".concat(f," ").concat(r[0]," or ").concat(r[1]):"of ".concat(f," ").concat(r[0])}else return"of ".concat(f," ").concat(String(r))}function p(r,f,w){return r.substr(0,f.length)===f}function l(r,f,w){return(w===void 0||w>r.length)&&(w=r.length),r.substring(w-f.length,w)===f}function y(r,f,w){return typeof w!="number"&&(w=0),w+f.length>r.length?!1:r.indexOf(f,w)!==-1}return i("ERR_INVALID_OPT_VALUE",function(r,f){return'The value "'+f+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,f,w){var E;typeof f=="string"&&p(f,"not ")?(E="must not be",f=f.replace(/^not /,"")):E="must be";var x;if(l(r," argument"))x="The ".concat(r," ").concat(E," ").concat(o(f,"type"));else{var k=y(r,".")?"property":"argument";x='The "'.concat(r,'" ').concat(k," ").concat(E," ").concat(o(f,"type"))}return x+=". Received type ".concat(typeof w),x},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),wr.codes=u,wr}var Er,Bi;function Ha(){if(Bi)return Er;Bi=1;var d=ze().codes.ERR_INVALID_OPT_VALUE;function u(o,p,l){return o.highWaterMark!=null?o.highWaterMark:p?o[l]:null}function i(o,p,l,y){var r=u(p,y,l);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var f=y?l:"highWaterMark";throw new d(f,r)}return Math.floor(r)}return o.objectMode?16:16*1024}return Er={getHighWaterMark:i},Er}var Ar,Pi;function Ss(){if(Pi)return Ar;Pi=1,Ar=d;function d(i,o){if(u("noDeprecation"))return i;var p=!1;function l(){if(!p){if(u("throwDeprecation"))throw new Error(o);u("traceDeprecation")?console.trace(o):console.warn(o),p=!0}return i.apply(this,arguments)}return l}function u(i){try{if(!Ee.localStorage)return!1}catch{return!1}var o=Ee.localStorage[i];return o==null?!1:String(o).toLowerCase()==="true"}return Ar}var Sr,Li;function Ga(){if(Li)return Sr;Li=1,Sr=q;function d(V){var A=this;this.next=null,this.entry=null,this.finish=function(){re(A,V)}}var u;q.WritableState=P;var i={deprecate:Ss()},o=Na(),p=pt().Buffer,l=Ee.Uint8Array||function(){};function y(V){return p.from(V)}function r(V){return p.isBuffer(V)||V instanceof l}var f=Wa(),w=Ha(),E=w.getHighWaterMark,x=ze().codes,k=x.ERR_INVALID_ARG_TYPE,g=x.ERR_METHOD_NOT_IMPLEMENTED,O=x.ERR_MULTIPLE_CALLBACK,b=x.ERR_STREAM_CANNOT_PIPE,C=x.ERR_STREAM_DESTROYED,n=x.ERR_STREAM_NULL_VALUES,_=x.ERR_STREAM_WRITE_AFTER_END,m=x.ERR_UNKNOWN_ENCODING,a=f.errorOrDestroy;xe()(q,o);function R(){}function P(V,A,v){u=u||Ue(),V=V||{},typeof v!="boolean"&&(v=A instanceof u),this.objectMode=!!V.objectMode,v&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=E(this,V,"writableHighWaterMark",v),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var G=V.decodeStrings===!1;this.decodeStrings=!G,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){Y(A,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}P.prototype.getBuffer=function(){for(var A=this.bufferedRequest,v=[];A;)v.push(A),A=A.next;return v},function(){try{Object.defineProperty(P.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(A){return L.call(this,A)?!0:this!==q?!1:A&&A._writableState instanceof P}})):L=function(A){return A instanceof this};function q(V){u=u||Ue();var A=this instanceof u;if(!A&&!L.call(q,this))return new q(V);this._writableState=new P(V,this,A),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),o.call(this)}q.prototype.pipe=function(){a(this,new b)};function I(V,A){var v=new _;a(V,v),ce.nextTick(A,v)}function U(V,A,v,G){var j;return v===null?j=new n:typeof v!="string"&&!A.objectMode&&(j=new k("chunk",["string","Buffer"],v)),j?(a(V,j),ce.nextTick(G,j),!1):!0}q.prototype.write=function(V,A,v){var G=this._writableState,j=!1,N=!G.objectMode&&r(V);return N&&!p.isBuffer(V)&&(V=y(V)),typeof A=="function"&&(v=A,A=null),N?A="buffer":A||(A=G.defaultEncoding),typeof v!="function"&&(v=R),G.ending?I(this,v):(N||U(this,G,V,v))&&(G.pendingcb++,j=T(this,G,N,V,A,v)),j},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&Z(this,V))},q.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new m(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function J(V,A,v){return!V.objectMode&&V.decodeStrings!==!1&&typeof A=="string"&&(A=p.from(A,v)),A}Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(V,A,v,G,j,N){if(!v){var F=J(A,G,j);G!==F&&(v=!0,j="buffer",G=F)}var te=A.objectMode?1:G.length;A.length+=te;var c=A.length<A.highWaterMark;if(c||(A.needDrain=!0),A.writing||A.corked){var ee=A.lastBufferedRequest;A.lastBufferedRequest={chunk:G,encoding:j,isBuf:v,callback:N,next:null},ee?ee.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else B(V,A,!1,te,G,j,N);return c}function B(V,A,v,G,j,N,F){A.writelen=G,A.writecb=F,A.writing=!0,A.sync=!0,A.destroyed?A.onwrite(new C("write")):v?V._writev(j,A.onwrite):V._write(j,N,A.onwrite),A.sync=!1}function s(V,A,v,G,j){--A.pendingcb,v?(ce.nextTick(j,G),ce.nextTick(X,V,A),V._writableState.errorEmitted=!0,a(V,G)):(j(G),V._writableState.errorEmitted=!0,a(V,G),X(V,A))}function z(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function Y(V,A){var v=V._writableState,G=v.sync,j=v.writecb;if(typeof j!="function")throw new O;if(z(v),A)s(V,v,G,A,j);else{var N=se(v)||V.destroyed;!N&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&Z(V,v),G?ce.nextTick(W,V,v,N,j):W(V,v,N,j)}}function W(V,A,v,G){v||ne(V,A),A.pendingcb--,G(),X(V,A)}function ne(V,A){A.length===0&&A.needDrain&&(A.needDrain=!1,V.emit("drain"))}function Z(V,A){A.bufferProcessing=!0;var v=A.bufferedRequest;if(V._writev&&v&&v.next){var G=A.bufferedRequestCount,j=new Array(G),N=A.corkedRequestsFree;N.entry=v;for(var F=0,te=!0;v;)j[F]=v,v.isBuf||(te=!1),v=v.next,F+=1;j.allBuffers=te,B(V,A,!0,A.length,j,"",N.finish),A.pendingcb++,A.lastBufferedRequest=null,N.next?(A.corkedRequestsFree=N.next,N.next=null):A.corkedRequestsFree=new d(A),A.bufferedRequestCount=0}else{for(;v;){var c=v.chunk,ee=v.encoding,S=v.callback,e=A.objectMode?1:c.length;if(B(V,A,!1,e,c,ee,S),v=v.next,A.bufferedRequestCount--,A.writing)break}v===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=v,A.bufferProcessing=!1}q.prototype._write=function(V,A,v){v(new g("_write()"))},q.prototype._writev=null,q.prototype.end=function(V,A,v){var G=this._writableState;return typeof V=="function"?(v=V,V=null,A=null):typeof A=="function"&&(v=A,A=null),V!=null&&this.write(V,A),G.corked&&(G.corked=1,this.uncork()),G.ending||Q(this,G,v),this},Object.defineProperty(q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function se(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function $(V,A){V._final(function(v){A.pendingcb--,v&&a(V,v),A.prefinished=!0,V.emit("prefinish"),X(V,A)})}function D(V,A){!A.prefinished&&!A.finalCalled&&(typeof V._final=="function"&&!A.destroyed?(A.pendingcb++,A.finalCalled=!0,ce.nextTick($,V,A)):(A.prefinished=!0,V.emit("prefinish")))}function X(V,A){var v=se(A);if(v&&(D(V,A),A.pendingcb===0&&(A.finished=!0,V.emit("finish"),A.autoDestroy))){var G=V._readableState;(!G||G.autoDestroy&&G.endEmitted)&&V.destroy()}return v}function Q(V,A,v){A.ending=!0,X(V,A),v&&(A.finished?ce.nextTick(v):V.once("finish",v)),A.ended=!0,V.writable=!1}function re(V,A,v){var G=V.entry;for(V.entry=null;G;){var j=G.callback;A.pendingcb--,j(v),G=G.next}A.corkedRequestsFree.next=V}return Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(A){!this._writableState||(this._writableState.destroyed=A)}}),q.prototype.destroy=f.destroy,q.prototype._undestroy=f.undestroy,q.prototype._destroy=function(V,A){A(V)},Sr}var Tr,Mi;function Ue(){if(Mi)return Tr;Mi=1;var d=Object.keys||function(w){var E=[];for(var x in w)E.push(x);return E};Tr=y;var u=Ka(),i=Ga();xe()(y,u);for(var o=d(i.prototype),p=0;p<o.length;p++){var l=o[p];y.prototype[l]||(y.prototype[l]=i.prototype[l])}function y(w){if(!(this instanceof y))return new y(w);u.call(this,w),i.call(this,w),this.allowHalfOpen=!0,w&&(w.readable===!1&&(this.readable=!1),w.writable===!1&&(this.writable=!1),w.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",r)))}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function r(){this._writableState.ended||ce.nextTick(f,this)}function f(w){w.end()}return Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}}),Tr}var Rr={},ft={exports:{}},Ui;function Ts(){return Ui||(Ui=1,function(d,u){var i=pt(),o=i.Buffer;function p(y,r){for(var f in y)r[f]=y[f]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?d.exports=i:(p(i,u),u.Buffer=l);function l(y,r,f){return o(y,r,f)}p(o,l),l.from=function(y,r,f){if(typeof y=="number")throw new TypeError("Argument must not be a number");return o(y,r,f)},l.alloc=function(y,r,f){if(typeof y!="number")throw new TypeError("Argument must be a number");var w=o(y);return r!==void 0?typeof f=="string"?w.fill(r,f):w.fill(r):w.fill(0),w},l.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return o(y)},l.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(y)}}(ft,ft.exports)),ft.exports}var ji;function on(){if(ji)return Rr;ji=1;var d=Ts().Buffer,u=d.isEncoding||function(n){switch(n=""+n,n&&n.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(n){if(!n)return"utf8";for(var _;;)switch(n){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return n;default:if(_)return;n=(""+n).toLowerCase(),_=!0}}function o(n){var _=i(n);if(typeof _!="string"&&(d.isEncoding===u||!u(n)))throw new Error("Unknown encoding: "+n);return _||n}Rr.StringDecoder=p;function p(n){this.encoding=o(n);var _;switch(this.encoding){case"utf16le":this.text=x,this.end=k,_=4;break;case"utf8":this.fillLast=f,_=4;break;case"base64":this.text=g,this.end=O,_=3;break;default:this.write=b,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(_)}p.prototype.write=function(n){if(n.length===0)return"";var _,m;if(this.lastNeed){if(_=this.fillLast(n),_===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<n.length?_?_+this.text(n,m):this.text(n,m):_||""},p.prototype.end=E,p.prototype.text=w,p.prototype.fillLast=function(n){if(this.lastNeed<=n.length)return n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,n.length),this.lastNeed-=n.length};function l(n){return n<=127?0:n>>5===6?2:n>>4===14?3:n>>3===30?4:n>>6===2?-1:-2}function y(n,_,m){var a=_.length-1;if(a<m)return 0;var R=l(_[a]);return R>=0?(R>0&&(n.lastNeed=R-1),R):--a<m||R===-2?0:(R=l(_[a]),R>=0?(R>0&&(n.lastNeed=R-2),R):--a<m||R===-2?0:(R=l(_[a]),R>=0?(R>0&&(R===2?R=0:n.lastNeed=R-3),R):0))}function r(n,_,m){if((_[0]&192)!==128)return n.lastNeed=0,"\uFFFD";if(n.lastNeed>1&&_.length>1){if((_[1]&192)!==128)return n.lastNeed=1,"\uFFFD";if(n.lastNeed>2&&_.length>2&&(_[2]&192)!==128)return n.lastNeed=2,"\uFFFD"}}function f(n){var _=this.lastTotal-this.lastNeed,m=r(this,n);if(m!==void 0)return m;if(this.lastNeed<=n.length)return n.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,_,0,n.length),this.lastNeed-=n.length}function w(n,_){var m=y(this,n,_);if(!this.lastNeed)return n.toString("utf8",_);this.lastTotal=m;var a=n.length-(m-this.lastNeed);return n.copy(this.lastChar,0,a),n.toString("utf8",_,a)}function E(n){var _=n&&n.length?this.write(n):"";return this.lastNeed?_+"\uFFFD":_}function x(n,_){if((n.length-_)%2===0){var m=n.toString("utf16le",_);if(m){var a=m.charCodeAt(m.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",_,n.length-1)}function k(n){var _=n&&n.length?this.write(n):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,m)}return _}function g(n,_){var m=(n.length-_)%3;return m===0?n.toString("base64",_):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",_,n.length-m))}function O(n){var _=n&&n.length?this.write(n):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function b(n){return n.toString(this.encoding)}function C(n){return n&&n.length?this.write(n):""}return Rr}var Or,zi;function dn(){if(zi)return Or;zi=1;var d=ze().codes.ERR_STREAM_PREMATURE_CLOSE;function u(l){var y=!1;return function(){if(!y){y=!0;for(var r=arguments.length,f=new Array(r),w=0;w<r;w++)f[w]=arguments[w];l.apply(this,f)}}}function i(){}function o(l){return l.setHeader&&typeof l.abort=="function"}function p(l,y,r){if(typeof y=="function")return p(l,null,y);y||(y={}),r=u(r||i);var f=y.readable||y.readable!==!1&&l.readable,w=y.writable||y.writable!==!1&&l.writable,E=function(){l.writable||k()},x=l._writableState&&l._writableState.finished,k=function(){w=!1,x=!0,f||r.call(l)},g=l._readableState&&l._readableState.endEmitted,O=function(){f=!1,g=!0,w||r.call(l)},b=function(m){r.call(l,m)},C=function(){var m;if(f&&!g)return(!l._readableState||!l._readableState.ended)&&(m=new d),r.call(l,m);if(w&&!x)return(!l._writableState||!l._writableState.ended)&&(m=new d),r.call(l,m)},n=function(){l.req.on("finish",k)};return o(l)?(l.on("complete",k),l.on("abort",C),l.req?n():l.on("request",n)):w&&!l._writableState&&(l.on("end",E),l.on("close",E)),l.on("end",O),l.on("finish",k),y.error!==!1&&l.on("error",b),l.on("close",C),function(){l.removeListener("complete",k),l.removeListener("abort",C),l.removeListener("request",n),l.req&&l.req.removeListener("finish",k),l.removeListener("end",E),l.removeListener("close",E),l.removeListener("finish",k),l.removeListener("end",O),l.removeListener("error",b),l.removeListener("close",C)}}return Or=p,Or}var kr,qi;function Rs(){if(qi)return kr;qi=1;var d;function u(n,_,m){return _ in n?Object.defineProperty(n,_,{value:m,enumerable:!0,configurable:!0,writable:!0}):n[_]=m,n}var i=dn(),o=Symbol("lastResolve"),p=Symbol("lastReject"),l=Symbol("error"),y=Symbol("ended"),r=Symbol("lastPromise"),f=Symbol("handlePromise"),w=Symbol("stream");function E(n,_){return{value:n,done:_}}function x(n){var _=n[o];if(_!==null){var m=n[w].read();m!==null&&(n[r]=null,n[o]=null,n[p]=null,_(E(m,!1)))}}function k(n){ce.nextTick(x,n)}function g(n,_){return function(m,a){n.then(function(){if(_[y]){m(E(void 0,!0));return}_[f](m,a)},a)}}var O=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((d={get stream(){return this[w]},next:function(){var _=this,m=this[l];if(m!==null)return Promise.reject(m);if(this[y])return Promise.resolve(E(void 0,!0));if(this[w].destroyed)return new Promise(function(L,q){ce.nextTick(function(){_[l]?q(_[l]):L(E(void 0,!0))})});var a=this[r],R;if(a)R=new Promise(g(a,this));else{var P=this[w].read();if(P!==null)return Promise.resolve(E(P,!1));R=new Promise(this[f])}return this[r]=R,R}},u(d,Symbol.asyncIterator,function(){return this}),u(d,"return",function(){var _=this;return new Promise(function(m,a){_[w].destroy(null,function(R){if(R){a(R);return}m(E(void 0,!0))})})}),d),O),C=function(_){var m,a=Object.create(b,(m={},u(m,w,{value:_,writable:!0}),u(m,o,{value:null,writable:!0}),u(m,p,{value:null,writable:!0}),u(m,l,{value:null,writable:!0}),u(m,y,{value:_._readableState.endEmitted,writable:!0}),u(m,f,{value:function(P,L){var q=a[w].read();q?(a[r]=null,a[o]=null,a[p]=null,P(E(q,!1))):(a[o]=P,a[p]=L)},writable:!0}),m));return a[r]=null,i(_,function(R){if(R&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=a[p];P!==null&&(a[r]=null,a[o]=null,a[p]=null,P(R)),a[l]=R;return}var L=a[o];L!==null&&(a[r]=null,a[o]=null,a[p]=null,L(E(void 0,!0))),a[y]=!0}),_.on("readable",k.bind(null,a)),a};return kr=C,kr}var xr,Wi;function Os(){return Wi||(Wi=1,xr=function(){throw new Error("Readable.from is not available in the browser")}),xr}var Cr,Hi;function Ka(){if(Hi)return Cr;Hi=1,Cr=I;var d;I.ReadableState=q,fn().EventEmitter;var u=function(F,te){return F.listeners(te).length},i=Na(),o=pt().Buffer,p=Ee.Uint8Array||function(){};function l(N){return o.from(N)}function y(N){return o.isBuffer(N)||N instanceof p}var r=qa(),f;r&&r.debuglog?f=r.debuglog("stream"):f=function(){};var w=As(),E=Wa(),x=Ha(),k=x.getHighWaterMark,g=ze().codes,O=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,C=g.ERR_METHOD_NOT_IMPLEMENTED,n=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_,m,a;xe()(I,i);var R=E.errorOrDestroy,P=["error","close","destroy","pause","resume"];function L(N,F,te){if(typeof N.prependListener=="function")return N.prependListener(F,te);!N._events||!N._events[F]?N.on(F,te):Array.isArray(N._events[F])?N._events[F].unshift(te):N._events[F]=[te,N._events[F]]}function q(N,F,te){d=d||Ue(),N=N||{},typeof te!="boolean"&&(te=F instanceof d),this.objectMode=!!N.objectMode,te&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=k(this,N,"readableHighWaterMark",te),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(_||(_=on().StringDecoder),this.decoder=new _(N.encoding),this.encoding=N.encoding)}function I(N){if(d=d||Ue(),!(this instanceof I))return new I(N);var F=this instanceof d;this._readableState=new q(N,this,F),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),i.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(F){!this._readableState||(this._readableState.destroyed=F)}}),I.prototype.destroy=E.destroy,I.prototype._undestroy=E.undestroy,I.prototype._destroy=function(N,F){F(N)},I.prototype.push=function(N,F){var te=this._readableState,c;return te.objectMode?c=!0:typeof N=="string"&&(F=F||te.defaultEncoding,F!==te.encoding&&(N=o.from(N,F),F=""),c=!0),U(this,N,F,!1,c)},I.prototype.unshift=function(N){return U(this,N,null,!0,!1)};function U(N,F,te,c,ee){f("readableAddChunk",F);var S=N._readableState;if(F===null)S.reading=!1,Y(N,S);else{var e;if(ee||(e=T(S,F)),e)R(N,e);else if(S.objectMode||F&&F.length>0)if(typeof F!="string"&&!S.objectMode&&Object.getPrototypeOf(F)!==o.prototype&&(F=l(F)),c)S.endEmitted?R(N,new n):J(N,S,F,!0);else if(S.ended)R(N,new b);else{if(S.destroyed)return!1;S.reading=!1,S.decoder&&!te?(F=S.decoder.write(F),S.objectMode||F.length!==0?J(N,S,F,!1):Z(N,S)):J(N,S,F,!1)}else c||(S.reading=!1,Z(N,S))}return!S.ended&&(S.length<S.highWaterMark||S.length===0)}function J(N,F,te,c){F.flowing&&F.length===0&&!F.sync?(F.awaitDrain=0,N.emit("data",te)):(F.length+=F.objectMode?1:te.length,c?F.buffer.unshift(te):F.buffer.push(te),F.needReadable&&W(N)),Z(N,F)}function T(N,F){var te;return!y(F)&&typeof F!="string"&&F!==void 0&&!N.objectMode&&(te=new O("chunk",["string","Buffer","Uint8Array"],F)),te}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(N){_||(_=on().StringDecoder);var F=new _(N);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,c="";te!==null;)c+=F.write(te.data),te=te.next;return this._readableState.buffer.clear(),c!==""&&this._readableState.buffer.push(c),this._readableState.length=c.length,this};var B=1073741824;function s(N){return N>=B?N=B:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function z(N,F){return N<=0||F.length===0&&F.ended?0:F.objectMode?1:N!==N?F.flowing&&F.length?F.buffer.head.data.length:F.length:(N>F.highWaterMark&&(F.highWaterMark=s(N)),N<=F.length?N:F.ended?F.length:(F.needReadable=!0,0))}I.prototype.read=function(N){f("read",N),N=parseInt(N,10);var F=this._readableState,te=N;if(N!==0&&(F.emittedReadable=!1),N===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return f("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?v(this):W(this),null;if(N=z(N,F),N===0&&F.ended)return F.length===0&&v(this),null;var c=F.needReadable;f("need readable",c),(F.length===0||F.length-N<F.highWaterMark)&&(c=!0,f("length less than watermark",c)),F.ended||F.reading?(c=!1,f("reading or ended",c)):c&&(f("do read"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(N=z(te,F)));var ee;return N>0?ee=A(N,F):ee=null,ee===null?(F.needReadable=F.length<=F.highWaterMark,N=0):(F.length-=N,F.awaitDrain=0),F.length===0&&(F.ended||(F.needReadable=!0),te!==N&&F.ended&&v(this)),ee!==null&&this.emit("data",ee),ee};function Y(N,F){if(f("onEofChunk"),!F.ended){if(F.decoder){var te=F.decoder.end();te&&te.length&&(F.buffer.push(te),F.length+=F.objectMode?1:te.length)}F.ended=!0,F.sync?W(N):(F.needReadable=!1,F.emittedReadable||(F.emittedReadable=!0,ne(N)))}}function W(N){var F=N._readableState;f("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(f("emitReadable",F.flowing),F.emittedReadable=!0,ce.nextTick(ne,N))}function ne(N){var F=N._readableState;f("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&(F.length||F.ended)&&(N.emit("readable"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,V(N)}function Z(N,F){F.readingMore||(F.readingMore=!0,ce.nextTick(se,N,F))}function se(N,F){for(;!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0);){var te=F.length;if(f("maybeReadMore read 0"),N.read(0),te===F.length)break}F.readingMore=!1}I.prototype._read=function(N){R(this,new C("_read()"))},I.prototype.pipe=function(N,F){var te=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=N;break;case 1:c.pipes=[c.pipes,N];break;default:c.pipes.push(N);break}c.pipesCount+=1,f("pipe count=%d opts=%j",c.pipesCount,F);var ee=(!F||F.end!==!1)&&N!==ce.stdout&&N!==ce.stderr,S=ee?t:ue;c.endEmitted?ce.nextTick(S):te.once("end",S),N.on("unpipe",e);function e(fe,le){f("onunpipe"),fe===te&&le&&le.hasUnpiped===!1&&(le.hasUnpiped=!0,K())}function t(){f("onend"),N.end()}var h=$(te);N.on("drain",h);var M=!1;function K(){f("cleanup"),N.removeListener("close",oe),N.removeListener("finish",ae),N.removeListener("drain",h),N.removeListener("error",ie),N.removeListener("unpipe",e),te.removeListener("end",t),te.removeListener("end",ue),te.removeListener("data",H),M=!0,c.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&h()}te.on("data",H);function H(fe){f("ondata");var le=N.write(fe);f("dest.write",le),le===!1&&((c.pipesCount===1&&c.pipes===N||c.pipesCount>1&&j(c.pipes,N)!==-1)&&!M&&(f("false write response, pause",c.awaitDrain),c.awaitDrain++),te.pause())}function ie(fe){f("onerror",fe),ue(),N.removeListener("error",ie),u(N,"error")===0&&R(N,fe)}L(N,"error",ie);function oe(){N.removeListener("finish",ae),ue()}N.once("close",oe);function ae(){f("onfinish"),N.removeListener("close",oe),ue()}N.once("finish",ae);function ue(){f("unpipe"),te.unpipe(N)}return N.emit("pipe",te),c.flowing||(f("pipe resume"),te.resume()),N};function $(N){return function(){var te=N._readableState;f("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&u(N,"data")&&(te.flowing=!0,V(N))}}I.prototype.unpipe=function(N){var F=this._readableState,te={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return N&&N!==F.pipes?this:(N||(N=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,N&&N.emit("unpipe",this,te),this);if(!N){var c=F.pipes,ee=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var S=0;S<ee;S++)c[S].emit("unpipe",this,{hasUnpiped:!1});return this}var e=j(F.pipes,N);return e===-1?this:(F.pipes.splice(e,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),N.emit("unpipe",this,te),this)},I.prototype.on=function(N,F){var te=i.prototype.on.call(this,N,F),c=this._readableState;return N==="data"?(c.readableListening=this.listenerCount("readable")>0,c.flowing!==!1&&this.resume()):N==="readable"&&!c.endEmitted&&!c.readableListening&&(c.readableListening=c.needReadable=!0,c.flowing=!1,c.emittedReadable=!1,f("on readable",c.length,c.reading),c.length?W(this):c.reading||ce.nextTick(X,this)),te},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(N,F){var te=i.prototype.removeListener.call(this,N,F);return N==="readable"&&ce.nextTick(D,this),te},I.prototype.removeAllListeners=function(N){var F=i.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&ce.nextTick(D,this),F};function D(N){var F=N._readableState;F.readableListening=N.listenerCount("readable")>0,F.resumeScheduled&&!F.paused?F.flowing=!0:N.listenerCount("data")>0&&N.resume()}function X(N){f("readable nexttick read 0"),N.read(0)}I.prototype.resume=function(){var N=this._readableState;return N.flowing||(f("resume"),N.flowing=!N.readableListening,Q(this,N)),N.paused=!1,this};function Q(N,F){F.resumeScheduled||(F.resumeScheduled=!0,ce.nextTick(re,N,F))}function re(N,F){f("resume",F.reading),F.reading||N.read(0),F.resumeScheduled=!1,N.emit("resume"),V(N),F.flowing&&!F.reading&&N.read(0)}I.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(N){var F=N._readableState;for(f("flow",F.flowing);F.flowing&&N.read()!==null;);}I.prototype.wrap=function(N){var F=this,te=this._readableState,c=!1;N.on("end",function(){if(f("wrapped end"),te.decoder&&!te.ended){var e=te.decoder.end();e&&e.length&&F.push(e)}F.push(null)}),N.on("data",function(e){if(f("wrapped data"),te.decoder&&(e=te.decoder.write(e)),!(te.objectMode&&e==null)&&!(!te.objectMode&&(!e||!e.length))){var t=F.push(e);t||(c=!0,N.pause())}});for(var ee in N)this[ee]===void 0&&typeof N[ee]=="function"&&(this[ee]=function(t){return function(){return N[t].apply(N,arguments)}}(ee));for(var S=0;S<P.length;S++)N.on(P[S],this.emit.bind(this,P[S]));return this._read=function(e){f("wrapped _read",e),c&&(c=!1,N.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=Rs()),m(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(F){this._readableState&&(this._readableState.flowing=F)}}),I._fromList=A,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function A(N,F){if(F.length===0)return null;var te;return F.objectMode?te=F.buffer.shift():!N||N>=F.length?(F.decoder?te=F.buffer.join(""):F.buffer.length===1?te=F.buffer.first():te=F.buffer.concat(F.length),F.buffer.clear()):te=F.buffer.consume(N,F.decoder),te}function v(N){var F=N._readableState;f("endReadable",F.endEmitted),F.endEmitted||(F.ended=!0,ce.nextTick(G,F,N))}function G(N,F){if(f("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,F.readable=!1,F.emit("end"),N.autoDestroy)){var te=F._writableState;(!te||te.autoDestroy&&te.finished)&&F.destroy()}}typeof Symbol=="function"&&(I.from=function(N,F){return a===void 0&&(a=Os()),a(I,N,F)});function j(N,F){for(var te=0,c=N.length;te<c;te++)if(N[te]===F)return te;return-1}return Cr}var Ir,Gi;function Va(){if(Gi)return Ir;Gi=1,Ir=r;var d=ze().codes,u=d.ERR_METHOD_NOT_IMPLEMENTED,i=d.ERR_MULTIPLE_CALLBACK,o=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,p=d.ERR_TRANSFORM_WITH_LENGTH_0,l=Ue();xe()(r,l);function y(E,x){var k=this._transformState;k.transforming=!1;var g=k.writecb;if(g===null)return this.emit("error",new i);k.writechunk=null,k.writecb=null,x!=null&&this.push(x),g(E);var O=this._readableState;O.reading=!1,(O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}function r(E){if(!(this instanceof r))return new r(E);l.call(this,E),this._transformState={afterTransform:y.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",f)}function f(){var E=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(x,k){w(E,x,k)}):w(this,null,null)}r.prototype.push=function(E,x){return this._transformState.needTransform=!1,l.prototype.push.call(this,E,x)},r.prototype._transform=function(E,x,k){k(new u("_transform()"))},r.prototype._write=function(E,x,k){var g=this._transformState;if(g.writecb=k,g.writechunk=E,g.writeencoding=x,!g.transforming){var O=this._readableState;(g.needTransform||O.needReadable||O.length<O.highWaterMark)&&this._read(O.highWaterMark)}},r.prototype._read=function(E){var x=this._transformState;x.writechunk!==null&&!x.transforming?(x.transforming=!0,this._transform(x.writechunk,x.writeencoding,x.afterTransform)):x.needTransform=!0},r.prototype._destroy=function(E,x){l.prototype._destroy.call(this,E,function(k){x(k)})};function w(E,x,k){if(x)return E.emit("error",x);if(k!=null&&E.push(k),E._writableState.length)throw new p;if(E._transformState.transforming)throw new o;return E.push(null)}return Ir}var Nr,Ki;function ks(){if(Ki)return Nr;Ki=1,Nr=u;var d=Va();xe()(u,d);function u(i){if(!(this instanceof u))return new u(i);d.call(this,i)}return u.prototype._transform=function(i,o,p){p(null,i)},Nr}var Dr,Vi;function xs(){if(Vi)return Dr;Vi=1;var d;function u(k){var g=!1;return function(){g||(g=!0,k.apply(void 0,arguments))}}var i=ze().codes,o=i.ERR_MISSING_ARGS,p=i.ERR_STREAM_DESTROYED;function l(k){if(k)throw k}function y(k){return k.setHeader&&typeof k.abort=="function"}function r(k,g,O,b){b=u(b);var C=!1;k.on("close",function(){C=!0}),d===void 0&&(d=dn()),d(k,{readable:g,writable:O},function(_){if(_)return b(_);C=!0,b()});var n=!1;return function(_){if(!C&&!n){if(n=!0,y(k))return k.abort();if(typeof k.destroy=="function")return k.destroy();b(_||new p("pipe"))}}}function f(k){k()}function w(k,g){return k.pipe(g)}function E(k){return!k.length||typeof k[k.length-1]!="function"?l:k.pop()}function x(){for(var k=arguments.length,g=new Array(k),O=0;O<k;O++)g[O]=arguments[O];var b=E(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new o("streams");var C,n=g.map(function(_,m){var a=m<g.length-1,R=m>0;return r(_,a,R,function(P){C||(C=P),P&&n.forEach(f),!a&&(n.forEach(f),b(C))})});return g.reduce(w)}return Dr=x,Dr}var Fr,$i;function pn(){if($i)return Fr;$i=1,Fr=i;var d=fn().EventEmitter,u=xe();u(i,d),i.Readable=Ka(),i.Writable=Ga(),i.Duplex=Ue(),i.Transform=Va(),i.PassThrough=ks(),i.finished=dn(),i.pipeline=xs(),i.Stream=i;function i(){d.call(this)}return i.prototype.pipe=function(o,p){var l=this;function y(g){o.writable&&o.write(g)===!1&&l.pause&&l.pause()}l.on("data",y);function r(){l.readable&&l.resume&&l.resume()}o.on("drain",r),!o._isStdio&&(!p||p.end!==!1)&&(l.on("end",w),l.on("close",E));var f=!1;function w(){f||(f=!0,o.end())}function E(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function x(g){if(k(),d.listenerCount(this,"error")===0)throw g}l.on("error",x),o.on("error",x);function k(){l.removeListener("data",y),o.removeListener("drain",r),l.removeListener("end",w),l.removeListener("close",E),l.removeListener("error",x),o.removeListener("error",x),l.removeListener("end",k),l.removeListener("close",k),o.removeListener("close",k)}return l.on("end",k),l.on("close",k),o.on("close",k),o.emit("pipe",l),o},Fr}var Xi;function Cs(){return Xi||(Xi=1,function(d){(function(u){u.parser=function(A,v){return new o(A,v)},u.SAXParser=o,u.SAXStream=E,u.createStream=w,u.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];u.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function o(A,v){if(!(this instanceof o))return new o(A,v);var G=this;l(G),G.q=G.c="",G.bufferCheckPosition=u.MAX_BUFFER_LENGTH,G.opt=v||{},G.opt.lowercase=G.opt.lowercase||G.opt.lowercasetags,G.looseCase=G.opt.lowercase?"toLowerCase":"toUpperCase",G.tags=[],G.closed=G.closedRoot=G.sawRoot=!1,G.tag=G.error=null,G.strict=!!A,G.noscript=!!(A||G.opt.noscript),G.state=I.BEGIN,G.strictEntities=G.opt.strictEntities,G.ENTITIES=G.strictEntities?Object.create(u.XML_ENTITIES):Object.create(u.ENTITIES),G.attribList=[],G.opt.xmlns&&(G.ns=Object.create(b)),G.trackPosition=G.opt.position!==!1,G.trackPosition&&(G.position=G.line=G.column=0),J(G,"onready")}Object.create||(Object.create=function(A){function v(){}v.prototype=A;var G=new v;return G}),Object.keys||(Object.keys=function(A){var v=[];for(var G in A)A.hasOwnProperty(G)&&v.push(G);return v});function p(A){for(var v=Math.max(u.MAX_BUFFER_LENGTH,10),G=0,j=0,N=i.length;j<N;j++){var F=A[i[j]].length;if(F>v)switch(i[j]){case"textNode":B(A);break;case"cdata":T(A,"oncdata",A.cdata),A.cdata="";break;case"script":T(A,"onscript",A.script),A.script="";break;default:z(A,"Max buffer length exceeded: "+i[j])}G=Math.max(G,F)}var te=u.MAX_BUFFER_LENGTH-G;A.bufferCheckPosition=te+A.position}function l(A){for(var v=0,G=i.length;v<G;v++)A[i[v]]=""}function y(A){B(A),A.cdata!==""&&(T(A,"oncdata",A.cdata),A.cdata=""),A.script!==""&&(T(A,"onscript",A.script),A.script="")}o.prototype={end:function(){Y(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){y(this)}};var r;try{r=pn().Stream}catch{r=function(){}}var f=u.EVENTS.filter(function(A){return A!=="error"&&A!=="end"});function w(A,v){return new E(A,v)}function E(A,v){if(!(this instanceof E))return new E(A,v);r.apply(this),this._parser=new o(A,v),this.writable=!0,this.readable=!0;var G=this;this._parser.onend=function(){G.emit("end")},this._parser.onerror=function(j){G.emit("error",j),G._parser.error=null},this._decoder=null,f.forEach(function(j){Object.defineProperty(G,"on"+j,{get:function(){return G._parser["on"+j]},set:function(N){if(!N)return G.removeAllListeners(j),G._parser["on"+j]=N,N;G.on(j,N)},enumerable:!0,configurable:!1})})}E.prototype=Object.create(r.prototype,{constructor:{value:E}}),E.prototype.write=function(A){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(A)){if(!this._decoder){var v=on().StringDecoder;this._decoder=new v("utf8")}A=this._decoder.write(A)}return this._parser.write(A.toString()),this.emit("data",A),!0},E.prototype.end=function(A){return A&&A.length&&this.write(A),this._parser.end(),!0},E.prototype.on=function(A,v){var G=this;return!G._parser["on"+A]&&f.indexOf(A)!==-1&&(G._parser["on"+A]=function(){var j=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);j.splice(0,0,A),G.emit.apply(G,j)}),r.prototype.on.call(G,A,v)};var x="[CDATA[",k="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",b={xml:g,xmlns:O},C=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function a(A){return A===" "||A===`
`||A==="\r"||A==="	"}function R(A){return A==='"'||A==="'"}function P(A){return A===">"||a(A)}function L(A,v){return A.test(v)}function q(A,v){return!L(A,v)}var I=0;u.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},u.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},u.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(u.ENTITIES).forEach(function(A){var v=u.ENTITIES[A],G=typeof v=="number"?String.fromCharCode(v):v;u.ENTITIES[A]=G});for(var U in u.STATE)u.STATE[u.STATE[U]]=U;I=u.STATE;function J(A,v,G){A[v]&&A[v](G)}function T(A,v,G){A.textNode&&B(A),J(A,v,G)}function B(A){A.textNode=s(A.opt,A.textNode),A.textNode&&J(A,"ontext",A.textNode),A.textNode=""}function s(A,v){return A.trim&&(v=v.trim()),A.normalize&&(v=v.replace(/\s+/g," ")),v}function z(A,v){return B(A),A.trackPosition&&(v+=`
Line: `+A.line+`
Column: `+A.column+`
Char: `+A.c),v=new Error(v),A.error=v,J(A,"onerror",v),A}function Y(A){return A.sawRoot&&!A.closedRoot&&W(A,"Unclosed root tag"),A.state!==I.BEGIN&&A.state!==I.BEGIN_WHITESPACE&&A.state!==I.TEXT&&z(A,"Unexpected end"),B(A),A.c="",A.closed=!0,J(A,"onend"),o.call(A,A.strict,A.opt),A}function W(A,v){if(typeof A!="object"||!(A instanceof o))throw new Error("bad call to strictFail");A.strict&&z(A,v)}function ne(A){A.strict||(A.tagName=A.tagName[A.looseCase]());var v=A.tags[A.tags.length-1]||A,G=A.tag={name:A.tagName,attributes:{}};A.opt.xmlns&&(G.ns=v.ns),A.attribList.length=0,T(A,"onopentagstart",G)}function Z(A,v){var G=A.indexOf(":"),j=G<0?["",A]:A.split(":"),N=j[0],F=j[1];return v&&A==="xmlns"&&(N="xmlns",F=""),{prefix:N,local:F}}function se(A){if(A.strict||(A.attribName=A.attribName[A.looseCase]()),A.attribList.indexOf(A.attribName)!==-1||A.tag.attributes.hasOwnProperty(A.attribName)){A.attribName=A.attribValue="";return}if(A.opt.xmlns){var v=Z(A.attribName,!0),G=v.prefix,j=v.local;if(G==="xmlns")if(j==="xml"&&A.attribValue!==g)W(A,"xml: prefix must be bound to "+g+`
Actual: `+A.attribValue);else if(j==="xmlns"&&A.attribValue!==O)W(A,"xmlns: prefix must be bound to "+O+`
Actual: `+A.attribValue);else{var N=A.tag,F=A.tags[A.tags.length-1]||A;N.ns===F.ns&&(N.ns=Object.create(F.ns)),N.ns[j]=A.attribValue}A.attribList.push([A.attribName,A.attribValue])}else A.tag.attributes[A.attribName]=A.attribValue,T(A,"onattribute",{name:A.attribName,value:A.attribValue});A.attribName=A.attribValue=""}function $(A,v){if(A.opt.xmlns){var G=A.tag,j=Z(A.tagName);G.prefix=j.prefix,G.local=j.local,G.uri=G.ns[j.prefix]||"",G.prefix&&!G.uri&&(W(A,"Unbound namespace prefix: "+JSON.stringify(A.tagName)),G.uri=j.prefix);var N=A.tags[A.tags.length-1]||A;G.ns&&N.ns!==G.ns&&Object.keys(G.ns).forEach(function(H){T(A,"onopennamespace",{prefix:H,uri:G.ns[H]})});for(var F=0,te=A.attribList.length;F<te;F++){var c=A.attribList[F],ee=c[0],S=c[1],e=Z(ee,!0),t=e.prefix,h=e.local,M=t===""?"":G.ns[t]||"",K={name:ee,value:S,prefix:t,local:h,uri:M};t&&t!=="xmlns"&&!M&&(W(A,"Unbound namespace prefix: "+JSON.stringify(t)),K.uri=t),A.tag.attributes[ee]=K,T(A,"onattribute",K)}A.attribList.length=0}A.tag.isSelfClosing=!!v,A.sawRoot=!0,A.tags.push(A.tag),T(A,"onopentag",A.tag),v||(!A.noscript&&A.tagName.toLowerCase()==="script"?A.state=I.SCRIPT:A.state=I.TEXT,A.tag=null,A.tagName=""),A.attribName=A.attribValue="",A.attribList.length=0}function D(A){if(!A.tagName){W(A,"Weird empty close tag."),A.textNode+="</>",A.state=I.TEXT;return}if(A.script){if(A.tagName!=="script"){A.script+="</"+A.tagName+">",A.tagName="",A.state=I.SCRIPT;return}T(A,"onscript",A.script),A.script=""}var v=A.tags.length,G=A.tagName;A.strict||(G=G[A.looseCase]());for(var j=G;v--;){var N=A.tags[v];if(N.name!==j)W(A,"Unexpected close tag");else break}if(v<0){W(A,"Unmatched closing tag: "+A.tagName),A.textNode+="</"+A.tagName+">",A.state=I.TEXT;return}A.tagName=G;for(var F=A.tags.length;F-- >v;){var te=A.tag=A.tags.pop();A.tagName=A.tag.name,T(A,"onclosetag",A.tagName);var c={};for(var ee in te.ns)c[ee]=te.ns[ee];var S=A.tags[A.tags.length-1]||A;A.opt.xmlns&&te.ns!==S.ns&&Object.keys(te.ns).forEach(function(e){var t=te.ns[e];T(A,"onclosenamespace",{prefix:e,uri:t})})}v===0&&(A.closedRoot=!0),A.tagName=A.attribValue=A.attribName="",A.attribList.length=0,A.state=I.TEXT}function X(A){var v=A.entity,G=v.toLowerCase(),j,N="";return A.ENTITIES[v]?A.ENTITIES[v]:A.ENTITIES[G]?A.ENTITIES[G]:(v=G,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),j=parseInt(v,16),N=j.toString(16)):(v=v.slice(1),j=parseInt(v,10),N=j.toString(10))),v=v.replace(/^0+/,""),isNaN(j)||N.toLowerCase()!==v?(W(A,"Invalid character entity"),"&"+A.entity+";"):String.fromCodePoint(j))}function Q(A,v){v==="<"?(A.state=I.OPEN_WAKA,A.startTagPosition=A.position):a(v)||(W(A,"Non-whitespace before first tag."),A.textNode=v,A.state=I.TEXT)}function re(A,v){var G="";return v<A.length&&(G=A.charAt(v)),G}function V(A){var v=this;if(this.error)throw this.error;if(v.closed)return z(v,"Cannot write after close. Assign an onready handler.");if(A===null)return Y(v);typeof A=="object"&&(A=A.toString());for(var G=0,j="";j=re(A,G++),v.c=j,!!j;)switch(v.trackPosition&&(v.position++,j===`
`?(v.line++,v.column=0):v.column++),v.state){case I.BEGIN:if(v.state=I.BEGIN_WHITESPACE,j==="\uFEFF")continue;Q(v,j);continue;case I.BEGIN_WHITESPACE:Q(v,j);continue;case I.TEXT:if(v.sawRoot&&!v.closedRoot){for(var N=G-1;j&&j!=="<"&&j!=="&";)j=re(A,G++),j&&v.trackPosition&&(v.position++,j===`
`?(v.line++,v.column=0):v.column++);v.textNode+=A.substring(N,G-1)}j==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=I.OPEN_WAKA,v.startTagPosition=v.position):(!a(j)&&(!v.sawRoot||v.closedRoot)&&W(v,"Text data outside of root node."),j==="&"?v.state=I.TEXT_ENTITY:v.textNode+=j);continue;case I.SCRIPT:j==="<"?v.state=I.SCRIPT_ENDING:v.script+=j;continue;case I.SCRIPT_ENDING:j==="/"?v.state=I.CLOSE_TAG:(v.script+="<"+j,v.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(j==="!")v.state=I.SGML_DECL,v.sgmlDecl="";else if(!a(j))if(L(C,j))v.state=I.OPEN_TAG,v.tagName=j;else if(j==="/")v.state=I.CLOSE_TAG,v.tagName="";else if(j==="?")v.state=I.PROC_INST,v.procInstName=v.procInstBody="";else{if(W(v,"Unencoded <"),v.startTagPosition+1<v.position){var F=v.position-v.startTagPosition;j=new Array(F).join(" ")+j}v.textNode+="<"+j,v.state=I.TEXT}continue;case I.SGML_DECL:(v.sgmlDecl+j).toUpperCase()===x?(T(v,"onopencdata"),v.state=I.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+j==="--"?(v.state=I.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+j).toUpperCase()===k?(v.state=I.DOCTYPE,(v.doctype||v.sawRoot)&&W(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):j===">"?(T(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=I.TEXT):(R(j)&&(v.state=I.SGML_DECL_QUOTED),v.sgmlDecl+=j);continue;case I.SGML_DECL_QUOTED:j===v.q&&(v.state=I.SGML_DECL,v.q=""),v.sgmlDecl+=j;continue;case I.DOCTYPE:j===">"?(v.state=I.TEXT,T(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=j,j==="["?v.state=I.DOCTYPE_DTD:R(j)&&(v.state=I.DOCTYPE_QUOTED,v.q=j));continue;case I.DOCTYPE_QUOTED:v.doctype+=j,j===v.q&&(v.q="",v.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:v.doctype+=j,j==="]"?v.state=I.DOCTYPE:R(j)&&(v.state=I.DOCTYPE_DTD_QUOTED,v.q=j);continue;case I.DOCTYPE_DTD_QUOTED:v.doctype+=j,j===v.q&&(v.state=I.DOCTYPE_DTD,v.q="");continue;case I.COMMENT:j==="-"?v.state=I.COMMENT_ENDING:v.comment+=j;continue;case I.COMMENT_ENDING:j==="-"?(v.state=I.COMMENT_ENDED,v.comment=s(v.opt,v.comment),v.comment&&T(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+j,v.state=I.COMMENT);continue;case I.COMMENT_ENDED:j!==">"?(W(v,"Malformed comment"),v.comment+="--"+j,v.state=I.COMMENT):v.state=I.TEXT;continue;case I.CDATA:j==="]"?v.state=I.CDATA_ENDING:v.cdata+=j;continue;case I.CDATA_ENDING:j==="]"?v.state=I.CDATA_ENDING_2:(v.cdata+="]"+j,v.state=I.CDATA);continue;case I.CDATA_ENDING_2:j===">"?(v.cdata&&T(v,"oncdata",v.cdata),T(v,"onclosecdata"),v.cdata="",v.state=I.TEXT):j==="]"?v.cdata+="]":(v.cdata+="]]"+j,v.state=I.CDATA);continue;case I.PROC_INST:j==="?"?v.state=I.PROC_INST_ENDING:a(j)?v.state=I.PROC_INST_BODY:v.procInstName+=j;continue;case I.PROC_INST_BODY:if(!v.procInstBody&&a(j))continue;j==="?"?v.state=I.PROC_INST_ENDING:v.procInstBody+=j;continue;case I.PROC_INST_ENDING:j===">"?(T(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=I.TEXT):(v.procInstBody+="?"+j,v.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:L(n,j)?v.tagName+=j:(ne(v),j===">"?$(v):j==="/"?v.state=I.OPEN_TAG_SLASH:(a(j)||W(v,"Invalid character in tag name"),v.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:j===">"?($(v,!0),D(v)):(W(v,"Forward-slash in opening tag not followed by >"),v.state=I.ATTRIB);continue;case I.ATTRIB:if(a(j))continue;j===">"?$(v):j==="/"?v.state=I.OPEN_TAG_SLASH:L(C,j)?(v.attribName=j,v.attribValue="",v.state=I.ATTRIB_NAME):W(v,"Invalid attribute name");continue;case I.ATTRIB_NAME:j==="="?v.state=I.ATTRIB_VALUE:j===">"?(W(v,"Attribute without value"),v.attribValue=v.attribName,se(v),$(v)):a(j)?v.state=I.ATTRIB_NAME_SAW_WHITE:L(n,j)?v.attribName+=j:W(v,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(j==="=")v.state=I.ATTRIB_VALUE;else{if(a(j))continue;W(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",T(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",j===">"?$(v):L(C,j)?(v.attribName=j,v.state=I.ATTRIB_NAME):(W(v,"Invalid attribute name"),v.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(a(j))continue;R(j)?(v.q=j,v.state=I.ATTRIB_VALUE_QUOTED):(W(v,"Unquoted attribute value"),v.state=I.ATTRIB_VALUE_UNQUOTED,v.attribValue=j);continue;case I.ATTRIB_VALUE_QUOTED:if(j!==v.q){j==="&"?v.state=I.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=j;continue}se(v),v.q="",v.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:a(j)?v.state=I.ATTRIB:j===">"?$(v):j==="/"?v.state=I.OPEN_TAG_SLASH:L(C,j)?(W(v,"No whitespace between attributes"),v.attribName=j,v.attribValue="",v.state=I.ATTRIB_NAME):W(v,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!P(j)){j==="&"?v.state=I.ATTRIB_VALUE_ENTITY_U:v.attribValue+=j;continue}se(v),j===">"?$(v):v.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(v.tagName)j===">"?D(v):L(n,j)?v.tagName+=j:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=I.SCRIPT):(a(j)||W(v,"Invalid tagname in closing tag"),v.state=I.CLOSE_TAG_SAW_WHITE);else{if(a(j))continue;q(C,j)?v.script?(v.script+="</"+j,v.state=I.SCRIPT):W(v,"Invalid tagname in closing tag."):v.tagName=j}continue;case I.CLOSE_TAG_SAW_WHITE:if(a(j))continue;j===">"?D(v):W(v,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var te,c;switch(v.state){case I.TEXT_ENTITY:te=I.TEXT,c="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:te=I.ATTRIB_VALUE_QUOTED,c="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:te=I.ATTRIB_VALUE_UNQUOTED,c="attribValue";break}j===";"?(v[c]+=X(v),v.entity="",v.state=te):L(v.entity.length?m:_,j)?v.entity+=j:(W(v,"Invalid character in entity name"),v[c]+="&"+v.entity+j,v.entity="",v.state=te);continue;default:throw new Error(v,"Unknown state: "+v.state)}return v.position>=v.bufferCheckPosition&&p(v),v}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var A=String.fromCharCode,v=Math.floor,G=function(){var j=16384,N=[],F,te,c=-1,ee=arguments.length;if(!ee)return"";for(var S="";++c<ee;){var e=Number(arguments[c]);if(!isFinite(e)||e<0||e>1114111||v(e)!==e)throw RangeError("Invalid code point: "+e);e<=65535?N.push(e):(e-=65536,F=(e>>10)+55296,te=e%1024+56320,N.push(F,te)),(c+1===ee||N.length>j)&&(S+=A.apply(null,N),N.length=0)}return S};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:G,configurable:!0,writable:!0}):String.fromCodePoint=G}()})(d)}(_t)),_t}var Br,Zi;function mn(){return Zi||(Zi=1,Br={isArray:function(d){return Array.isArray?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"}}),Br}var Pr,Yi;function yn(){if(Yi)return Pr;Yi=1;var d=mn().isArray;return Pr={copyOptions:function(u){var i,o={};for(i in u)u.hasOwnProperty(i)&&(o[i]=u[i]);return o},ensureFlagExists:function(u,i){(!(u in i)||typeof i[u]!="boolean")&&(i[u]=!1)},ensureSpacesExists:function(u){(!("spaces"in u)||typeof u.spaces!="number"&&typeof u.spaces!="string")&&(u.spaces=0)},ensureAlwaysArrayExists:function(u){(!("alwaysArray"in u)||typeof u.alwaysArray!="boolean"&&!d(u.alwaysArray))&&(u.alwaysArray=!1)},ensureKeyExists:function(u,i){(!(u+"Key"in i)||typeof i[u+"Key"]!="string")&&(i[u+"Key"]=i.compact?"_"+u:u)},checkFnExists:function(u,i){return u+"Fn"in i}},Pr}var Lr,Ji;function $a(){if(Ji)return Lr;Ji=1;var d=Cs(),u=yn(),i=mn().isArray,o,p;function l(n){return o=u.copyOptions(n),u.ensureFlagExists("ignoreDeclaration",o),u.ensureFlagExists("ignoreInstruction",o),u.ensureFlagExists("ignoreAttributes",o),u.ensureFlagExists("ignoreText",o),u.ensureFlagExists("ignoreComment",o),u.ensureFlagExists("ignoreCdata",o),u.ensureFlagExists("ignoreDoctype",o),u.ensureFlagExists("compact",o),u.ensureFlagExists("alwaysChildren",o),u.ensureFlagExists("addParent",o),u.ensureFlagExists("trim",o),u.ensureFlagExists("nativeType",o),u.ensureFlagExists("nativeTypeAttributes",o),u.ensureFlagExists("sanitize",o),u.ensureFlagExists("instructionHasAttributes",o),u.ensureFlagExists("captureSpacesBetweenElements",o),u.ensureAlwaysArrayExists(o),u.ensureKeyExists("declaration",o),u.ensureKeyExists("instruction",o),u.ensureKeyExists("attributes",o),u.ensureKeyExists("text",o),u.ensureKeyExists("comment",o),u.ensureKeyExists("cdata",o),u.ensureKeyExists("doctype",o),u.ensureKeyExists("type",o),u.ensureKeyExists("name",o),u.ensureKeyExists("elements",o),u.ensureKeyExists("parent",o),u.checkFnExists("doctype",o),u.checkFnExists("instruction",o),u.checkFnExists("cdata",o),u.checkFnExists("comment",o),u.checkFnExists("text",o),u.checkFnExists("instructionName",o),u.checkFnExists("elementName",o),u.checkFnExists("attributeName",o),u.checkFnExists("attributeValue",o),u.checkFnExists("attributes",o),o}function y(n){var _=Number(n);if(!isNaN(_))return _;var m=n.toLowerCase();return m==="true"?!0:m==="false"?!1:n}function r(n,_){var m;if(o.compact){if(!p[o[n+"Key"]]&&(i(o.alwaysArray)?o.alwaysArray.indexOf(o[n+"Key"])!==-1:o.alwaysArray)&&(p[o[n+"Key"]]=[]),p[o[n+"Key"]]&&!i(p[o[n+"Key"]])&&(p[o[n+"Key"]]=[p[o[n+"Key"]]]),n+"Fn"in o&&typeof _=="string"&&(_=o[n+"Fn"](_,p)),n==="instruction"&&("instructionFn"in o||"instructionNameFn"in o)){for(m in _)if(_.hasOwnProperty(m))if("instructionFn"in o)_[m]=o.instructionFn(_[m],m,p);else{var a=_[m];delete _[m],_[o.instructionNameFn(m,a,p)]=a}}i(p[o[n+"Key"]])?p[o[n+"Key"]].push(_):p[o[n+"Key"]]=_}else{p[o.elementsKey]||(p[o.elementsKey]=[]);var R={};if(R[o.typeKey]=n,n==="instruction"){for(m in _)if(_.hasOwnProperty(m))break;R[o.nameKey]="instructionNameFn"in o?o.instructionNameFn(m,_,p):m,o.instructionHasAttributes?(R[o.attributesKey]=_[m][o.attributesKey],"instructionFn"in o&&(R[o.attributesKey]=o.instructionFn(R[o.attributesKey],m,p))):("instructionFn"in o&&(_[m]=o.instructionFn(_[m],m,p)),R[o.instructionKey]=_[m])}else n+"Fn"in o&&(_=o[n+"Fn"](_,p)),R[o[n+"Key"]]=_;o.addParent&&(R[o.parentKey]=p),p[o.elementsKey].push(R)}}function f(n){if("attributesFn"in o&&n&&(n=o.attributesFn(n,p)),(o.trim||"attributeValueFn"in o||"attributeNameFn"in o||o.nativeTypeAttributes)&&n){var _;for(_ in n)if(n.hasOwnProperty(_)&&(o.trim&&(n[_]=n[_].trim()),o.nativeTypeAttributes&&(n[_]=y(n[_])),"attributeValueFn"in o&&(n[_]=o.attributeValueFn(n[_],_,p)),"attributeNameFn"in o)){var m=n[_];delete n[_],n[o.attributeNameFn(_,n[_],p)]=m}}return n}function w(n){var _={};if(n.body&&(n.name.toLowerCase()==="xml"||o.instructionHasAttributes)){for(var m=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=m.exec(n.body))!==null;)_[a[1]]=a[2]||a[3]||a[4];_=f(_)}if(n.name.toLowerCase()==="xml"){if(o.ignoreDeclaration)return;p[o.declarationKey]={},Object.keys(_).length&&(p[o.declarationKey][o.attributesKey]=_),o.addParent&&(p[o.declarationKey][o.parentKey]=p)}else{if(o.ignoreInstruction)return;o.trim&&(n.body=n.body.trim());var R={};o.instructionHasAttributes&&Object.keys(_).length?(R[n.name]={},R[n.name][o.attributesKey]=_):R[n.name]=n.body,r("instruction",R)}}function E(n,_){var m;if(typeof n=="object"&&(_=n.attributes,n=n.name),_=f(_),"elementNameFn"in o&&(n=o.elementNameFn(n,p)),o.compact){if(m={},!o.ignoreAttributes&&_&&Object.keys(_).length){m[o.attributesKey]={};var a;for(a in _)_.hasOwnProperty(a)&&(m[o.attributesKey][a]=_[a])}!(n in p)&&(i(o.alwaysArray)?o.alwaysArray.indexOf(n)!==-1:o.alwaysArray)&&(p[n]=[]),p[n]&&!i(p[n])&&(p[n]=[p[n]]),i(p[n])?p[n].push(m):p[n]=m}else p[o.elementsKey]||(p[o.elementsKey]=[]),m={},m[o.typeKey]="element",m[o.nameKey]=n,!o.ignoreAttributes&&_&&Object.keys(_).length&&(m[o.attributesKey]=_),o.alwaysChildren&&(m[o.elementsKey]=[]),p[o.elementsKey].push(m);m[o.parentKey]=p,p=m}function x(n){o.ignoreText||!n.trim()&&!o.captureSpacesBetweenElements||(o.trim&&(n=n.trim()),o.nativeType&&(n=y(n)),o.sanitize&&(n=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),r("text",n))}function k(n){o.ignoreComment||(o.trim&&(n=n.trim()),r("comment",n))}function g(n){var _=p[o.parentKey];o.addParent||delete p[o.parentKey],p=_}function O(n){o.ignoreCdata||(o.trim&&(n=n.trim()),r("cdata",n))}function b(n){o.ignoreDoctype||(n=n.replace(/^ /,""),o.trim&&(n=n.trim()),r("doctype",n))}function C(n){n.note=n}return Lr=function(n,_){var m=d.parser(!0,{}),a={};if(p=a,o=l(_),m.opt={strictEntities:!0},m.onopentag=E,m.ontext=x,m.oncomment=k,m.onclosetag=g,m.onerror=C,m.oncdata=O,m.ondoctype=b,m.onprocessinginstruction=w,m.write(n).close(),a[o.elementsKey]){var R=a[o.elementsKey];delete a[o.elementsKey],a[o.elementsKey]=R,delete a.text}return a},Lr}var Mr,Qi;function Is(){if(Qi)return Mr;Qi=1;var d=yn(),u=$a();function i(o){var p=d.copyOptions(o);return d.ensureSpacesExists(p),p}return Mr=function(o,p){var l,y,r,f;return l=i(p),y=u(o,l),f="compact"in l&&l.compact?"_parent":"parent","addParent"in l&&l.addParent?r=JSON.stringify(y,function(w,E){return w===f?"_":E},l.spaces):r=JSON.stringify(y,null,l.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Mr}var Ur,ea;function Xa(){if(ea)return Ur;ea=1;var d=yn(),u=mn().isArray,i,o;function p(m){var a=d.copyOptions(m);return d.ensureFlagExists("ignoreDeclaration",a),d.ensureFlagExists("ignoreInstruction",a),d.ensureFlagExists("ignoreAttributes",a),d.ensureFlagExists("ignoreText",a),d.ensureFlagExists("ignoreComment",a),d.ensureFlagExists("ignoreCdata",a),d.ensureFlagExists("ignoreDoctype",a),d.ensureFlagExists("compact",a),d.ensureFlagExists("indentText",a),d.ensureFlagExists("indentCdata",a),d.ensureFlagExists("indentAttributes",a),d.ensureFlagExists("indentInstruction",a),d.ensureFlagExists("fullTagEmptyElement",a),d.ensureFlagExists("noQuotesForNativeAttributes",a),d.ensureSpacesExists(a),typeof a.spaces=="number"&&(a.spaces=Array(a.spaces+1).join(" ")),d.ensureKeyExists("declaration",a),d.ensureKeyExists("instruction",a),d.ensureKeyExists("attributes",a),d.ensureKeyExists("text",a),d.ensureKeyExists("comment",a),d.ensureKeyExists("cdata",a),d.ensureKeyExists("doctype",a),d.ensureKeyExists("type",a),d.ensureKeyExists("name",a),d.ensureKeyExists("elements",a),d.checkFnExists("doctype",a),d.checkFnExists("instruction",a),d.checkFnExists("cdata",a),d.checkFnExists("comment",a),d.checkFnExists("text",a),d.checkFnExists("instructionName",a),d.checkFnExists("elementName",a),d.checkFnExists("attributeName",a),d.checkFnExists("attributeValue",a),d.checkFnExists("attributes",a),d.checkFnExists("fullTagEmptyElement",a),a}function l(m,a,R){return(!R&&m.spaces?`
`:"")+Array(a+1).join(m.spaces)}function y(m,a,R){if(a.ignoreAttributes)return"";"attributesFn"in a&&(m=a.attributesFn(m,o,i));var P,L,q,I,U=[];for(P in m)m.hasOwnProperty(P)&&m[P]!==null&&m[P]!==void 0&&(I=a.noQuotesForNativeAttributes&&typeof m[P]!="string"?"":'"',L=""+m[P],L=L.replace(/"/g,"&quot;"),q="attributeNameFn"in a?a.attributeNameFn(P,L,o,i):P,U.push(a.spaces&&a.indentAttributes?l(a,R+1,!1):" "),U.push(q+"="+I+("attributeValueFn"in a?a.attributeValueFn(L,P,o,i):L)+I));return m&&Object.keys(m).length&&a.spaces&&a.indentAttributes&&U.push(l(a,R,!1)),U.join("")}function r(m,a,R){return i=m,o="xml",a.ignoreDeclaration?"":"<?xml"+y(m[a.attributesKey],a,R)+"?>"}function f(m,a,R){if(a.ignoreInstruction)return"";var P;for(P in m)if(m.hasOwnProperty(P))break;var L="instructionNameFn"in a?a.instructionNameFn(P,m[P],o,i):P;if(typeof m[P]=="object")return i=m,o=L,"<?"+L+y(m[P][a.attributesKey],a,R)+"?>";var q=m[P]?m[P]:"";return"instructionFn"in a&&(q=a.instructionFn(q,P,o,i)),"<?"+L+(q?" "+q:"")+"?>"}function w(m,a){return a.ignoreComment?"":"<!--"+("commentFn"in a?a.commentFn(m,o,i):m)+"-->"}function E(m,a){return a.ignoreCdata?"":"<![CDATA["+("cdataFn"in a?a.cdataFn(m,o,i):m.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function x(m,a){return a.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in a?a.doctypeFn(m,o,i):m)+">"}function k(m,a){return a.ignoreText?"":(m=""+m,m=m.replace(/&amp;/g,"&"),m=m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in a?a.textFn(m,o,i):m)}function g(m,a){var R;if(m.elements&&m.elements.length)for(R=0;R<m.elements.length;++R)switch(m.elements[R][a.typeKey]){case"text":if(a.indentText)return!0;break;case"cdata":if(a.indentCdata)return!0;break;case"instruction":if(a.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function O(m,a,R){i=m,o=m.name;var P=[],L="elementNameFn"in a?a.elementNameFn(m.name,m):m.name;P.push("<"+L),m[a.attributesKey]&&P.push(y(m[a.attributesKey],a,R));var q=m[a.elementsKey]&&m[a.elementsKey].length||m[a.attributesKey]&&m[a.attributesKey]["xml:space"]==="preserve";return q||("fullTagEmptyElementFn"in a?q=a.fullTagEmptyElementFn(m.name,m):q=a.fullTagEmptyElement),q?(P.push(">"),m[a.elementsKey]&&m[a.elementsKey].length&&(P.push(b(m[a.elementsKey],a,R+1)),i=m,o=m.name),P.push(a.spaces&&g(m,a)?`
`+Array(R+1).join(a.spaces):""),P.push("</"+L+">")):P.push("/>"),P.join("")}function b(m,a,R,P){return m.reduce(function(L,q){var I=l(a,R,P&&!L);switch(q.type){case"element":return L+I+O(q,a,R);case"comment":return L+I+w(q[a.commentKey],a);case"doctype":return L+I+x(q[a.doctypeKey],a);case"cdata":return L+(a.indentCdata?I:"")+E(q[a.cdataKey],a);case"text":return L+(a.indentText?I:"")+k(q[a.textKey],a);case"instruction":var U={};return U[q[a.nameKey]]=q[a.attributesKey]?q:q[a.instructionKey],L+(a.indentInstruction?I:"")+f(U,a,R)}},"")}function C(m,a,R){var P;for(P in m)if(m.hasOwnProperty(P))switch(P){case a.parentKey:case a.attributesKey:break;case a.textKey:if(a.indentText||R)return!0;break;case a.cdataKey:if(a.indentCdata||R)return!0;break;case a.instructionKey:if(a.indentInstruction||R)return!0;break;case a.doctypeKey:case a.commentKey:return!0;default:return!0}return!1}function n(m,a,R,P,L){i=m,o=a;var q="elementNameFn"in R?R.elementNameFn(a,m):a;if(typeof m>"u"||m===null||m==="")return"fullTagEmptyElementFn"in R&&R.fullTagEmptyElementFn(a,m)||R.fullTagEmptyElement?"<"+q+"></"+q+">":"<"+q+"/>";var I=[];if(a){if(I.push("<"+q),typeof m!="object")return I.push(">"+k(m,R)+"</"+q+">"),I.join("");m[R.attributesKey]&&I.push(y(m[R.attributesKey],R,P));var U=C(m,R,!0)||m[R.attributesKey]&&m[R.attributesKey]["xml:space"]==="preserve";if(U||("fullTagEmptyElementFn"in R?U=R.fullTagEmptyElementFn(a,m):U=R.fullTagEmptyElement),U)I.push(">");else return I.push("/>"),I.join("")}return I.push(_(m,R,P+1,!1)),i=m,o=a,a&&I.push((L?l(R,P,!1):"")+"</"+q+">"),I.join("")}function _(m,a,R,P){var L,q,I,U=[];for(q in m)if(m.hasOwnProperty(q))for(I=u(m[q])?m[q]:[m[q]],L=0;L<I.length;++L){switch(q){case a.declarationKey:U.push(r(I[L],a,R));break;case a.instructionKey:U.push((a.indentInstruction?l(a,R,P):"")+f(I[L],a,R));break;case a.attributesKey:case a.parentKey:break;case a.textKey:U.push((a.indentText?l(a,R,P):"")+k(I[L],a));break;case a.cdataKey:U.push((a.indentCdata?l(a,R,P):"")+E(I[L],a));break;case a.doctypeKey:U.push(l(a,R,P)+x(I[L],a));break;case a.commentKey:U.push(l(a,R,P)+w(I[L],a));break;default:U.push(l(a,R,P)+n(I[L],q,a,R,C(I[L],a)))}P=P&&!U.length}return U.join("")}return Ur=function(m,a){a=p(a);var R=[];return i=m,o="_root_",a.compact?R.push(_(m,a,0,!0)):(m[a.declarationKey]&&R.push(r(m[a.declarationKey],a,0)),m[a.elementsKey]&&m[a.elementsKey].length&&R.push(b(m[a.elementsKey],a,0,!R.length))),R.join("")},Ur}var jr,ta;function Ns(){if(ta)return jr;ta=1;var d=Xa();return jr=function(u,i){u instanceof Buffer&&(u=u.toString());var o=null;if(typeof u=="string")try{o=JSON.parse(u)}catch{throw new Error("The JSON structure is invalid")}else o=u;return d(o,i)},jr}var zr,ra;function Ds(){if(ra)return zr;ra=1;var d=$a(),u=Is(),i=Xa(),o=Ns();return zr={xml2js:d,xml2json:u,js2xml:i,json2xml:o},zr}Ds();const Fs=d=>{if(isNaN(d))throw new Error(`Invalid value '${d}' specified. Must be an integer.`);return Math.floor(d)},Za=d=>{const u=Fs(d);if(u<0)throw new Error(`Invalid value '${d}' specified. Must be a positive integer.`);return u},Bs=(d,u)=>{const i=u*2;if(d.length!==i||isNaN(Number(`0x${d}`)))throw new Error(`Invalid hex value '${d}'. Expected ${i} digit hex value`);return d},Ps=d=>{if(d==="auto")return d;const u=d.charAt(0)==="#"?d.substring(1):d;return Bs(u,3)},Ls=Za,Ms=Za;class ge extends Ra{constructor(u,{color:i,size:o,space:p,style:l}){super(u),this.root.push(new Us({style:l,color:i===void 0?void 0:Ps(i),size:o===void 0?void 0:Ls(o),space:p===void 0?void 0:Ms(p)}))}}class Us extends Po{constructor(){super(...arguments),Re(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Ya={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};var qr={},he={},Wr,na;function rt(){if(na)return Wr;na=1,Wr=d;function d(u,i){if(!u)throw new Error(i||"Assertion failed")}return d.equal=function(i,o,p){if(i!=o)throw new Error(p||"Assertion failed: "+i+" != "+o)},Wr}var ia;function Ae(){if(ia)return he;ia=1;var d=rt(),u=xe();he.inherits=u;function i(T,B){return(T.charCodeAt(B)&64512)!==55296||B<0||B+1>=T.length?!1:(T.charCodeAt(B+1)&64512)===56320}function o(T,B){if(Array.isArray(T))return T.slice();if(!T)return[];var s=[];if(typeof T=="string")if(B){if(B==="hex")for(T=T.replace(/[^a-z0-9]+/ig,""),T.length%2!==0&&(T="0"+T),Y=0;Y<T.length;Y+=2)s.push(parseInt(T[Y]+T[Y+1],16))}else for(var z=0,Y=0;Y<T.length;Y++){var W=T.charCodeAt(Y);W<128?s[z++]=W:W<2048?(s[z++]=W>>6|192,s[z++]=W&63|128):i(T,Y)?(W=65536+((W&1023)<<10)+(T.charCodeAt(++Y)&1023),s[z++]=W>>18|240,s[z++]=W>>12&63|128,s[z++]=W>>6&63|128,s[z++]=W&63|128):(s[z++]=W>>12|224,s[z++]=W>>6&63|128,s[z++]=W&63|128)}else for(Y=0;Y<T.length;Y++)s[Y]=T[Y]|0;return s}he.toArray=o;function p(T){for(var B="",s=0;s<T.length;s++)B+=r(T[s].toString(16));return B}he.toHex=p;function l(T){var B=T>>>24|T>>>8&65280|T<<8&16711680|(T&255)<<24;return B>>>0}he.htonl=l;function y(T,B){for(var s="",z=0;z<T.length;z++){var Y=T[z];B==="little"&&(Y=l(Y)),s+=f(Y.toString(16))}return s}he.toHex32=y;function r(T){return T.length===1?"0"+T:T}he.zero2=r;function f(T){return T.length===7?"0"+T:T.length===6?"00"+T:T.length===5?"000"+T:T.length===4?"0000"+T:T.length===3?"00000"+T:T.length===2?"000000"+T:T.length===1?"0000000"+T:T}he.zero8=f;function w(T,B,s,z){var Y=s-B;d(Y%4===0);for(var W=new Array(Y/4),ne=0,Z=B;ne<W.length;ne++,Z+=4){var se;z==="big"?se=T[Z]<<24|T[Z+1]<<16|T[Z+2]<<8|T[Z+3]:se=T[Z+3]<<24|T[Z+2]<<16|T[Z+1]<<8|T[Z],W[ne]=se>>>0}return W}he.join32=w;function E(T,B){for(var s=new Array(T.length*4),z=0,Y=0;z<T.length;z++,Y+=4){var W=T[z];B==="big"?(s[Y]=W>>>24,s[Y+1]=W>>>16&255,s[Y+2]=W>>>8&255,s[Y+3]=W&255):(s[Y+3]=W>>>24,s[Y+2]=W>>>16&255,s[Y+1]=W>>>8&255,s[Y]=W&255)}return s}he.split32=E;function x(T,B){return T>>>B|T<<32-B}he.rotr32=x;function k(T,B){return T<<B|T>>>32-B}he.rotl32=k;function g(T,B){return T+B>>>0}he.sum32=g;function O(T,B,s){return T+B+s>>>0}he.sum32_3=O;function b(T,B,s,z){return T+B+s+z>>>0}he.sum32_4=b;function C(T,B,s,z,Y){return T+B+s+z+Y>>>0}he.sum32_5=C;function n(T,B,s,z){var Y=T[B],W=T[B+1],ne=z+W>>>0,Z=(ne<z?1:0)+s+Y;T[B]=Z>>>0,T[B+1]=ne}he.sum64=n;function _(T,B,s,z){var Y=B+z>>>0,W=(Y<B?1:0)+T+s;return W>>>0}he.sum64_hi=_;function m(T,B,s,z){var Y=B+z;return Y>>>0}he.sum64_lo=m;function a(T,B,s,z,Y,W,ne,Z){var se=0,$=B;$=$+z>>>0,se+=$<B?1:0,$=$+W>>>0,se+=$<W?1:0,$=$+Z>>>0,se+=$<Z?1:0;var D=T+s+Y+ne+se;return D>>>0}he.sum64_4_hi=a;function R(T,B,s,z,Y,W,ne,Z){var se=B+z+W+Z;return se>>>0}he.sum64_4_lo=R;function P(T,B,s,z,Y,W,ne,Z,se,$){var D=0,X=B;X=X+z>>>0,D+=X<B?1:0,X=X+W>>>0,D+=X<W?1:0,X=X+Z>>>0,D+=X<Z?1:0,X=X+$>>>0,D+=X<$?1:0;var Q=T+s+Y+ne+se+D;return Q>>>0}he.sum64_5_hi=P;function L(T,B,s,z,Y,W,ne,Z,se,$){var D=B+z+W+Z+$;return D>>>0}he.sum64_5_lo=L;function q(T,B,s){var z=B<<32-s|T>>>s;return z>>>0}he.rotr64_hi=q;function I(T,B,s){var z=T<<32-s|B>>>s;return z>>>0}he.rotr64_lo=I;function U(T,B,s){return T>>>s}he.shr64_hi=U;function J(T,B,s){var z=T<<32-s|B>>>s;return z>>>0}return he.shr64_lo=J,he}var Hr={},aa;function nt(){if(aa)return Hr;aa=1;var d=Ae(),u=rt();function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Hr.BlockHash=i,i.prototype.update=function(p,l){if(p=d.toArray(p,l),this.pending?this.pending=this.pending.concat(p):this.pending=p,this.pendingTotal+=p.length,this.pending.length>=this._delta8){p=this.pending;var y=p.length%this._delta8;this.pending=p.slice(p.length-y,p.length),this.pending.length===0&&(this.pending=null),p=d.join32(p,0,p.length-y,this.endian);for(var r=0;r<p.length;r+=this._delta32)this._update(p,r,r+this._delta32)}return this},i.prototype.digest=function(p){return this.update(this._pad()),u(this.pending===null),this._digest(p)},i.prototype._pad=function(){var p=this.pendingTotal,l=this._delta8,y=l-(p+this.padLength)%l,r=new Array(y+this.padLength);r[0]=128;for(var f=1;f<y;f++)r[f]=0;if(p<<=3,this.endian==="big"){for(var w=8;w<this.padLength;w++)r[f++]=0;r[f++]=0,r[f++]=0,r[f++]=0,r[f++]=0,r[f++]=p>>>24&255,r[f++]=p>>>16&255,r[f++]=p>>>8&255,r[f++]=p&255}else for(r[f++]=p&255,r[f++]=p>>>8&255,r[f++]=p>>>16&255,r[f++]=p>>>24&255,r[f++]=0,r[f++]=0,r[f++]=0,r[f++]=0,w=8;w<this.padLength;w++)r[f++]=0;return r},Hr}var Ie={},_e={},oa;function Ja(){if(oa)return _e;oa=1;var d=Ae(),u=d.rotr32;function i(E,x,k,g){if(E===0)return o(x,k,g);if(E===1||E===3)return l(x,k,g);if(E===2)return p(x,k,g)}_e.ft_1=i;function o(E,x,k){return E&x^~E&k}_e.ch32=o;function p(E,x,k){return E&x^E&k^x&k}_e.maj32=p;function l(E,x,k){return E^x^k}_e.p32=l;function y(E){return u(E,2)^u(E,13)^u(E,22)}_e.s0_256=y;function r(E){return u(E,6)^u(E,11)^u(E,25)}_e.s1_256=r;function f(E){return u(E,7)^u(E,18)^E>>>3}_e.g0_256=f;function w(E){return u(E,17)^u(E,19)^E>>>10}return _e.g1_256=w,_e}var Gr,sa;function js(){if(sa)return Gr;sa=1;var d=Ae(),u=nt(),i=Ja(),o=d.rotl32,p=d.sum32,l=d.sum32_5,y=i.ft_1,r=u.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function w(){if(!(this instanceof w))return new w;r.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return d.inherits(w,r),Gr=w,w.blockSize=512,w.outSize=160,w.hmacStrength=80,w.padLength=64,w.prototype._update=function(x,k){for(var g=this.W,O=0;O<16;O++)g[O]=x[k+O];for(;O<g.length;O++)g[O]=o(g[O-3]^g[O-8]^g[O-14]^g[O-16],1);var b=this.h[0],C=this.h[1],n=this.h[2],_=this.h[3],m=this.h[4];for(O=0;O<g.length;O++){var a=~~(O/20),R=l(o(b,5),y(a,C,n,_),m,g[O],f[a]);m=_,_=n,n=o(C,30),C=b,b=R}this.h[0]=p(this.h[0],b),this.h[1]=p(this.h[1],C),this.h[2]=p(this.h[2],n),this.h[3]=p(this.h[3],_),this.h[4]=p(this.h[4],m)},w.prototype._digest=function(x){return x==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")},Gr}var Kr,ua;function Qa(){if(ua)return Kr;ua=1;var d=Ae(),u=nt(),i=Ja(),o=rt(),p=d.sum32,l=d.sum32_4,y=d.sum32_5,r=i.ch32,f=i.maj32,w=i.s0_256,E=i.s1_256,x=i.g0_256,k=i.g1_256,g=u.BlockHash,O=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=O,this.W=new Array(64)}return d.inherits(b,g),Kr=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(n,_){for(var m=this.W,a=0;a<16;a++)m[a]=n[_+a];for(;a<m.length;a++)m[a]=l(k(m[a-2]),m[a-7],x(m[a-15]),m[a-16]);var R=this.h[0],P=this.h[1],L=this.h[2],q=this.h[3],I=this.h[4],U=this.h[5],J=this.h[6],T=this.h[7];for(o(this.k.length===m.length),a=0;a<m.length;a++){var B=y(T,E(I),r(I,U,J),this.k[a],m[a]),s=p(w(R),f(R,P,L));T=J,J=U,U=I,I=p(q,B),q=L,L=P,P=R,R=p(B,s)}this.h[0]=p(this.h[0],R),this.h[1]=p(this.h[1],P),this.h[2]=p(this.h[2],L),this.h[3]=p(this.h[3],q),this.h[4]=p(this.h[4],I),this.h[5]=p(this.h[5],U),this.h[6]=p(this.h[6],J),this.h[7]=p(this.h[7],T)},b.prototype._digest=function(n){return n==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")},Kr}var Vr,fa;function zs(){if(fa)return Vr;fa=1;var d=Ae(),u=Qa();function i(){if(!(this instanceof i))return new i;u.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return d.inherits(i,u),Vr=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(p){return p==="hex"?d.toHex32(this.h.slice(0,7),"big"):d.split32(this.h.slice(0,7),"big")},Vr}var $r,la;function eo(){if(la)return $r;la=1;var d=Ae(),u=nt(),i=rt(),o=d.rotr64_hi,p=d.rotr64_lo,l=d.shr64_hi,y=d.shr64_lo,r=d.sum64,f=d.sum64_hi,w=d.sum64_lo,E=d.sum64_4_hi,x=d.sum64_4_lo,k=d.sum64_5_hi,g=d.sum64_5_lo,O=u.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function C(){if(!(this instanceof C))return new C;O.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}d.inherits(C,O),$r=C,C.blockSize=1024,C.outSize=512,C.hmacStrength=192,C.padLength=128,C.prototype._prepareBlock=function(s,z){for(var Y=this.W,W=0;W<32;W++)Y[W]=s[z+W];for(;W<Y.length;W+=2){var ne=J(Y[W-4],Y[W-3]),Z=T(Y[W-4],Y[W-3]),se=Y[W-14],$=Y[W-13],D=I(Y[W-30],Y[W-29]),X=U(Y[W-30],Y[W-29]),Q=Y[W-32],re=Y[W-31];Y[W]=E(ne,Z,se,$,D,X,Q,re),Y[W+1]=x(ne,Z,se,$,D,X,Q,re)}},C.prototype._update=function(s,z){this._prepareBlock(s,z);var Y=this.W,W=this.h[0],ne=this.h[1],Z=this.h[2],se=this.h[3],$=this.h[4],D=this.h[5],X=this.h[6],Q=this.h[7],re=this.h[8],V=this.h[9],A=this.h[10],v=this.h[11],G=this.h[12],j=this.h[13],N=this.h[14],F=this.h[15];i(this.k.length===Y.length);for(var te=0;te<Y.length;te+=2){var c=N,ee=F,S=L(re,V),e=q(re,V),t=n(re,V,A,v,G),h=_(re,V,A,v,G,j),M=this.k[te],K=this.k[te+1],H=Y[te],ie=Y[te+1],oe=k(c,ee,S,e,t,h,M,K,H,ie),ae=g(c,ee,S,e,t,h,M,K,H,ie);c=R(W,ne),ee=P(W,ne),S=m(W,ne,Z,se,$),e=a(W,ne,Z,se,$,D);var ue=f(c,ee,S,e),fe=w(c,ee,S,e);N=G,F=j,G=A,j=v,A=re,v=V,re=f(X,Q,oe,ae),V=w(Q,Q,oe,ae),X=$,Q=D,$=Z,D=se,Z=W,se=ne,W=f(oe,ae,ue,fe),ne=w(oe,ae,ue,fe)}r(this.h,0,W,ne),r(this.h,2,Z,se),r(this.h,4,$,D),r(this.h,6,X,Q),r(this.h,8,re,V),r(this.h,10,A,v),r(this.h,12,G,j),r(this.h,14,N,F)},C.prototype._digest=function(s){return s==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")};function n(B,s,z,Y,W){var ne=B&z^~B&W;return ne<0&&(ne+=4294967296),ne}function _(B,s,z,Y,W,ne){var Z=s&Y^~s&ne;return Z<0&&(Z+=4294967296),Z}function m(B,s,z,Y,W){var ne=B&z^B&W^z&W;return ne<0&&(ne+=4294967296),ne}function a(B,s,z,Y,W,ne){var Z=s&Y^s&ne^Y&ne;return Z<0&&(Z+=4294967296),Z}function R(B,s){var z=o(B,s,28),Y=o(s,B,2),W=o(s,B,7),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function P(B,s){var z=p(B,s,28),Y=p(s,B,2),W=p(s,B,7),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function L(B,s){var z=o(B,s,14),Y=o(B,s,18),W=o(s,B,9),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function q(B,s){var z=p(B,s,14),Y=p(B,s,18),W=p(s,B,9),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function I(B,s){var z=o(B,s,1),Y=o(B,s,8),W=l(B,s,7),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function U(B,s){var z=p(B,s,1),Y=p(B,s,8),W=y(B,s,7),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function J(B,s){var z=o(B,s,19),Y=o(s,B,29),W=l(B,s,6),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}function T(B,s){var z=p(B,s,19),Y=p(s,B,29),W=y(B,s,6),ne=z^Y^W;return ne<0&&(ne+=4294967296),ne}return $r}var Xr,ca;function qs(){if(ca)return Xr;ca=1;var d=Ae(),u=eo();function i(){if(!(this instanceof i))return new i;u.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return d.inherits(i,u),Xr=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(p){return p==="hex"?d.toHex32(this.h.slice(0,12),"big"):d.split32(this.h.slice(0,12),"big")},Xr}var ha;function Ws(){return ha||(ha=1,Ie.sha1=js(),Ie.sha224=zs(),Ie.sha256=Qa(),Ie.sha384=qs(),Ie.sha512=eo()),Ie}var Zr={},da;function Hs(){if(da)return Zr;da=1;var d=Ae(),u=nt(),i=d.rotl32,o=d.sum32,p=d.sum32_3,l=d.sum32_4,y=u.BlockHash;function r(){if(!(this instanceof r))return new r;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}d.inherits(r,y),Zr.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(C,n){for(var _=this.h[0],m=this.h[1],a=this.h[2],R=this.h[3],P=this.h[4],L=_,q=m,I=a,U=R,J=P,T=0;T<80;T++){var B=o(i(l(_,f(T,m,a,R),C[x[T]+n],w(T)),g[T]),P);_=P,P=R,R=i(a,10),a=m,m=B,B=o(i(l(L,f(79-T,q,I,U),C[k[T]+n],E(T)),O[T]),J),L=J,J=U,U=i(I,10),I=q,q=B}B=p(this.h[1],a,U),this.h[1]=p(this.h[2],R,J),this.h[2]=p(this.h[3],P,L),this.h[3]=p(this.h[4],_,q),this.h[4]=p(this.h[0],m,I),this.h[0]=B},r.prototype._digest=function(C){return C==="hex"?d.toHex32(this.h,"little"):d.split32(this.h,"little")};function f(b,C,n,_){return b<=15?C^n^_:b<=31?C&n|~C&_:b<=47?(C|~n)^_:b<=63?C&_|n&~_:C^(n|~_)}function w(b){return b<=15?0:b<=31?1518500249:b<=47?1859775393:b<=63?2400959708:2840853838}function E(b){return b<=15?1352829926:b<=31?1548603684:b<=47?1836072691:b<=63?2053994217:0}var x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],k=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],O=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Zr}var Yr,pa;function Gs(){if(pa)return Yr;pa=1;var d=Ae(),u=rt();function i(o,p,l){if(!(this instanceof i))return new i(o,p,l);this.Hash=o,this.blockSize=o.blockSize/8,this.outSize=o.outSize/8,this.inner=null,this.outer=null,this._init(d.toArray(p,l))}return Yr=i,i.prototype._init=function(p){p.length>this.blockSize&&(p=new this.Hash().update(p).digest()),u(p.length<=this.blockSize);for(var l=p.length;l<this.blockSize;l++)p.push(0);for(l=0;l<p.length;l++)p[l]^=54;for(this.inner=new this.Hash().update(p),l=0;l<p.length;l++)p[l]^=106;this.outer=new this.Hash().update(p)},i.prototype.update=function(p,l){return this.inner.update(p,l),this},i.prototype.digest=function(p){return this.outer.update(this.inner.digest()),this.outer.digest(p)},Yr}var ma;function Ks(){return ma||(ma=1,function(d){var u=d;u.utils=Ae(),u.common=nt(),u.sha=Ws(),u.ripemd=Hs(),u.hmac=Gs(),u.sha1=u.sha.sha1,u.sha256=u.sha.sha256,u.sha224=u.sha.sha224,u.sha384=u.sha.sha384,u.sha512=u.sha.sha512,u.ripemd160=u.ripemd.ripemd160}(qr)),qr}Ks();const Vs={TOP:"top",CENTER:"center",BOTTOM:"bottom"};Do(No({},Vs),{BOTH:"both"});const Fe={style:Ya.NONE,size:0,color:"auto"},Be={style:Ya.SINGLE,size:4,color:"auto"};class $s extends Ra{constructor(u){super("w:tblBorders"),u.top?this.root.push(new ge("w:top",u.top)):this.root.push(new ge("w:top",Be)),u.left?this.root.push(new ge("w:left",u.left)):this.root.push(new ge("w:left",Be)),u.bottom?this.root.push(new ge("w:bottom",u.bottom)):this.root.push(new ge("w:bottom",Be)),u.right?this.root.push(new ge("w:right",u.right)):this.root.push(new ge("w:right",Be)),u.insideHorizontal?this.root.push(new ge("w:insideH",u.insideHorizontal)):this.root.push(new ge("w:insideH",Be)),u.insideVertical?this.root.push(new ge("w:insideV",u.insideVertical)):this.root.push(new ge("w:insideV",Be))}}Re($s,"NONE",{top:Fe,bottom:Fe,left:Fe,right:Fe,insideHorizontal:Fe,insideVertical:Fe});var Xs=pn();function lt(d){throw new Error('Could not dynamically require "'+d+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jr={exports:{}},ya;function Zs(){return ya||(ya=1,function(d,u){(function(i){d.exports=i()})(function(){return function i(o,p,l){function y(w,E){if(!p[w]){if(!o[w]){var x=typeof lt=="function"&&lt;if(!E&&x)return x(w,!0);if(r)return r(w,!0);var k=new Error("Cannot find module '"+w+"'");throw k.code="MODULE_NOT_FOUND",k}var g=p[w]={exports:{}};o[w][0].call(g.exports,function(O){var b=o[w][1][O];return y(b||O)},g,g.exports,i,o,p,l)}return p[w].exports}for(var r=typeof lt=="function"&&lt,f=0;f<l.length;f++)y(l[f]);return y}({1:[function(i,o,p){var l=i("./utils"),y=i("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";p.encode=function(f){for(var w,E,x,k,g,O,b,C=[],n=0,_=f.length,m=_,a=l.getTypeOf(f)!=="string";n<f.length;)m=_-n,x=a?(w=f[n++],E=n<_?f[n++]:0,n<_?f[n++]:0):(w=f.charCodeAt(n++),E=n<_?f.charCodeAt(n++):0,n<_?f.charCodeAt(n++):0),k=w>>2,g=(3&w)<<4|E>>4,O=1<m?(15&E)<<2|x>>6:64,b=2<m?63&x:64,C.push(r.charAt(k)+r.charAt(g)+r.charAt(O)+r.charAt(b));return C.join("")},p.decode=function(f){var w,E,x,k,g,O,b=0,C=0,n="data:";if(f.substr(0,n.length)===n)throw new Error("Invalid base64 input, it looks like a data url.");var _,m=3*(f=f.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(f.charAt(f.length-1)===r.charAt(64)&&m--,f.charAt(f.length-2)===r.charAt(64)&&m--,m%1!=0)throw new Error("Invalid base64 input, bad content length.");for(_=y.uint8array?new Uint8Array(0|m):new Array(0|m);b<f.length;)w=r.indexOf(f.charAt(b++))<<2|(k=r.indexOf(f.charAt(b++)))>>4,E=(15&k)<<4|(g=r.indexOf(f.charAt(b++)))>>2,x=(3&g)<<6|(O=r.indexOf(f.charAt(b++))),_[C++]=w,g!==64&&(_[C++]=E),O!==64&&(_[C++]=x);return _}},{"./support":30,"./utils":32}],2:[function(i,o,p){var l=i("./external"),y=i("./stream/DataWorker"),r=i("./stream/Crc32Probe"),f=i("./stream/DataLengthProbe");function w(E,x,k,g,O){this.compressedSize=E,this.uncompressedSize=x,this.crc32=k,this.compression=g,this.compressedContent=O}w.prototype={getContentWorker:function(){var E=new y(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),x=this;return E.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),E},getCompressedWorker:function(){return new y(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(E,x,k){return E.pipe(new r).pipe(new f("uncompressedSize")).pipe(x.compressWorker(k)).pipe(new f("compressedSize")).withStreamInfo("compression",x)},o.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(i,o,p){var l=i("./stream/GenericWorker");p.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},p.DEFLATE=i("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(i,o,p){var l=i("./utils"),y=function(){for(var r,f=[],w=0;w<256;w++){r=w;for(var E=0;E<8;E++)r=1&r?3988292384^r>>>1:r>>>1;f[w]=r}return f}();o.exports=function(r,f){return r!==void 0&&r.length?l.getTypeOf(r)!=="string"?function(w,E,x,k){var g=y,O=k+x;w^=-1;for(var b=k;b<O;b++)w=w>>>8^g[255&(w^E[b])];return-1^w}(0|f,r,r.length,0):function(w,E,x,k){var g=y,O=k+x;w^=-1;for(var b=k;b<O;b++)w=w>>>8^g[255&(w^E.charCodeAt(b))];return-1^w}(0|f,r,r.length,0):0}},{"./utils":32}],5:[function(i,o,p){p.base64=!1,p.binary=!1,p.dir=!1,p.createFolders=!0,p.date=null,p.compression=null,p.compressionOptions=null,p.comment=null,p.unixPermissions=null,p.dosPermissions=null},{}],6:[function(i,o,p){var l=null;l=typeof Promise<"u"?Promise:i("lie"),o.exports={Promise:l}},{lie:37}],7:[function(i,o,p){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",y=i("pako"),r=i("./utils"),f=i("./stream/GenericWorker"),w=l?"uint8array":"array";function E(x,k){f.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=k,this.meta={}}p.magic="\b\0",r.inherits(E,f),E.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(w,x.data),!1)},E.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},E.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},E.prototype._createPako=function(){this._pako=new y[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(k){x.push({data:k,meta:x.meta})}},p.compressWorker=function(x){return new E("Deflate",x)},p.uncompressWorker=function(){return new E("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(i,o,p){function l(g,O){var b,C="";for(b=0;b<O;b++)C+=String.fromCharCode(255&g),g>>>=8;return C}function y(g,O,b,C,n,_){var m,a,R=g.file,P=g.compression,L=_!==w.utf8encode,q=r.transformTo("string",_(R.name)),I=r.transformTo("string",w.utf8encode(R.name)),U=R.comment,J=r.transformTo("string",_(U)),T=r.transformTo("string",w.utf8encode(U)),B=I.length!==R.name.length,s=T.length!==U.length,z="",Y="",W="",ne=R.dir,Z=R.date,se={crc32:0,compressedSize:0,uncompressedSize:0};O&&!b||(se.crc32=g.crc32,se.compressedSize=g.compressedSize,se.uncompressedSize=g.uncompressedSize);var $=0;O&&($|=8),L||!B&&!s||($|=2048);var D=0,X=0;ne&&(D|=16),n==="UNIX"?(X=798,D|=function(re,V){var A=re;return re||(A=V?16893:33204),(65535&A)<<16}(R.unixPermissions,ne)):(X=20,D|=function(re){return 63&(re||0)}(R.dosPermissions)),m=Z.getUTCHours(),m<<=6,m|=Z.getUTCMinutes(),m<<=5,m|=Z.getUTCSeconds()/2,a=Z.getUTCFullYear()-1980,a<<=4,a|=Z.getUTCMonth()+1,a<<=5,a|=Z.getUTCDate(),B&&(Y=l(1,1)+l(E(q),4)+I,z+="up"+l(Y.length,2)+Y),s&&(W=l(1,1)+l(E(J),4)+T,z+="uc"+l(W.length,2)+W);var Q="";return Q+=`
\0`,Q+=l($,2),Q+=P.magic,Q+=l(m,2),Q+=l(a,2),Q+=l(se.crc32,4),Q+=l(se.compressedSize,4),Q+=l(se.uncompressedSize,4),Q+=l(q.length,2),Q+=l(z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+Q+q+z,dirRecord:x.CENTRAL_FILE_HEADER+l(X,2)+Q+l(J.length,2)+"\0\0\0\0"+l(D,4)+l(C,4)+q+z+J}}var r=i("../utils"),f=i("../stream/GenericWorker"),w=i("../utf8"),E=i("../crc32"),x=i("../signature");function k(g,O,b,C){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=O,this.zipPlatform=b,this.encodeFileName=C,this.streamFiles=g,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(k,f),k.prototype.push=function(g){var O=g.meta.percent||0,b=this.entriesCount,C=this._sources.length;this.accumulate?this.contentBuffer.push(g):(this.bytesWritten+=g.data.length,f.prototype.push.call(this,{data:g.data,meta:{currentFile:this.currentFile,percent:b?(O+100*(b-C-1))/b:100}}))},k.prototype.openedSource=function(g){this.currentSourceOffset=this.bytesWritten,this.currentFile=g.file.name;var O=this.streamFiles&&!g.file.dir;if(O){var b=y(g,O,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(g){this.accumulate=!1;var O=this.streamFiles&&!g.file.dir,b=y(g,O,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),O)this.push({data:function(C){return x.DATA_DESCRIPTOR+l(C.crc32,4)+l(C.compressedSize,4)+l(C.uncompressedSize,4)}(g),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var g=this.bytesWritten,O=0;O<this.dirRecords.length;O++)this.push({data:this.dirRecords[O],meta:{percent:100}});var b=this.bytesWritten-g,C=function(n,_,m,a,R){var P=r.transformTo("string",R(a));return x.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(n,2)+l(n,2)+l(_,4)+l(m,4)+l(P.length,2)+P}(this.dirRecords.length,b,g,this.zipComment,this.encodeFileName);this.push({data:C,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(g){this._sources.push(g);var O=this;return g.on("data",function(b){O.processChunk(b)}),g.on("end",function(){O.closedSource(O.previous.streamInfo),O._sources.length?O.prepareNextSource():O.end()}),g.on("error",function(b){O.error(b)}),this},k.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(g){var O=this._sources;if(!f.prototype.error.call(this,g))return!1;for(var b=0;b<O.length;b++)try{O[b].error(g)}catch{}return!0},k.prototype.lock=function(){f.prototype.lock.call(this);for(var g=this._sources,O=0;O<g.length;O++)g[O].lock()},o.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(i,o,p){var l=i("../compressions"),y=i("./ZipFileWorker");p.generateWorker=function(r,f,w){var E=new y(f.streamFiles,w,f.platform,f.encodeFileName),x=0;try{r.forEach(function(k,g){x++;var O=function(_,m){var a=_||m,R=l[a];if(!R)throw new Error(a+" is not a valid compression method !");return R}(g.options.compression,f.compression),b=g.options.compressionOptions||f.compressionOptions||{},C=g.dir,n=g.date;g._compressWorker(O,b).withStreamInfo("file",{name:k,dir:C,date:n,comment:g.comment||"",unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions}).pipe(E)}),E.entriesCount=x}catch(k){E.error(k)}return E}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(i,o,p){function l(){if(!(this instanceof l))return new l;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var y=new l;for(var r in this)typeof this[r]!="function"&&(y[r]=this[r]);return y}}(l.prototype=i("./object")).loadAsync=i("./load"),l.support=i("./support"),l.defaults=i("./defaults"),l.version="3.10.1",l.loadAsync=function(y,r){return new l().loadAsync(y,r)},l.external=i("./external"),o.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(i,o,p){var l=i("./utils"),y=i("./external"),r=i("./utf8"),f=i("./zipEntries"),w=i("./stream/Crc32Probe"),E=i("./nodejsUtils");function x(k){return new y.Promise(function(g,O){var b=k.decompressed.getContentWorker().pipe(new w);b.on("error",function(C){O(C)}).on("end",function(){b.streamInfo.crc32!==k.decompressed.crc32?O(new Error("Corrupted zip : CRC32 mismatch")):g()}).resume()})}o.exports=function(k,g){var O=this;return g=l.extend(g||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),E.isNode&&E.isStream(k)?y.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",k,!0,g.optimizedBinaryString,g.base64).then(function(b){var C=new f(g);return C.load(b),C}).then(function(b){var C=[y.Promise.resolve(b)],n=b.files;if(g.checkCRC32)for(var _=0;_<n.length;_++)C.push(x(n[_]));return y.Promise.all(C)}).then(function(b){for(var C=b.shift(),n=C.files,_=0;_<n.length;_++){var m=n[_],a=m.fileNameStr,R=l.resolve(m.fileNameStr);O.file(R,m.decompressed,{binary:!0,optimizedBinaryString:!0,date:m.date,dir:m.dir,comment:m.fileCommentStr.length?m.fileCommentStr:null,unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions,createFolders:g.createFolders}),m.dir||(O.file(R).unsafeOriginalName=a)}return C.zipComment.length&&(O.comment=C.zipComment),O})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(i,o,p){var l=i("../utils"),y=i("../stream/GenericWorker");function r(f,w){y.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(w)}l.inherits(r,y),r.prototype._bindStream=function(f){var w=this;(this._stream=f).pause(),f.on("data",function(E){w.push({data:E,meta:{percent:0}})}).on("error",function(E){w.isPaused?this.generatedError=E:w.error(E)}).on("end",function(){w.isPaused?w._upstreamEnded=!0:w.end()})},r.prototype.pause=function(){return!!y.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(i,o,p){var l=i("readable-stream").Readable;function y(r,f,w){l.call(this,f),this._helper=r;var E=this;r.on("data",function(x,k){E.push(x)||E._helper.pause(),w&&w(k)}).on("error",function(x){E.emit("error",x)}).on("end",function(){E.push(null)})}i("../utils").inherits(y,l),y.prototype._read=function(){this._helper.resume()},o.exports=y},{"../utils":32,"readable-stream":16}],14:[function(i,o,p){o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,y){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,y);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,y)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var y=new Buffer(l);return y.fill(0),y},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(i,o,p){function l(R,P,L){var q,I=r.getTypeOf(P),U=r.extend(L||{},E);U.date=U.date||new Date,U.compression!==null&&(U.compression=U.compression.toUpperCase()),typeof U.unixPermissions=="string"&&(U.unixPermissions=parseInt(U.unixPermissions,8)),U.unixPermissions&&16384&U.unixPermissions&&(U.dir=!0),U.dosPermissions&&16&U.dosPermissions&&(U.dir=!0),U.dir&&(R=n(R)),U.createFolders&&(q=C(R))&&_.call(this,q,!0);var J=I==="string"&&U.binary===!1&&U.base64===!1;L&&L.binary!==void 0||(U.binary=!J),(P instanceof x&&P.uncompressedSize===0||U.dir||!P||P.length===0)&&(U.base64=!1,U.binary=!0,P="",U.compression="STORE",I="string");var T=null;T=P instanceof x||P instanceof f?P:O.isNode&&O.isStream(P)?new b(R,P):r.prepareContent(R,P,U.binary,U.optimizedBinaryString,U.base64);var B=new k(R,T,U);this.files[R]=B}var y=i("./utf8"),r=i("./utils"),f=i("./stream/GenericWorker"),w=i("./stream/StreamHelper"),E=i("./defaults"),x=i("./compressedObject"),k=i("./zipObject"),g=i("./generate"),O=i("./nodejsUtils"),b=i("./nodejs/NodejsStreamInputAdapter"),C=function(R){R.slice(-1)==="/"&&(R=R.substring(0,R.length-1));var P=R.lastIndexOf("/");return 0<P?R.substring(0,P):""},n=function(R){return R.slice(-1)!=="/"&&(R+="/"),R},_=function(R,P){return P=P!==void 0?P:E.createFolders,R=n(R),this.files[R]||l.call(this,R,null,{dir:!0,createFolders:P}),this.files[R]};function m(R){return Object.prototype.toString.call(R)==="[object RegExp]"}var a={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(R){var P,L,q;for(P in this.files)q=this.files[P],(L=P.slice(this.root.length,P.length))&&P.slice(0,this.root.length)===this.root&&R(L,q)},filter:function(R){var P=[];return this.forEach(function(L,q){R(L,q)&&P.push(q)}),P},file:function(R,P,L){if(arguments.length!==1)return R=this.root+R,l.call(this,R,P,L),this;if(m(R)){var q=R;return this.filter(function(U,J){return!J.dir&&q.test(U)})}var I=this.files[this.root+R];return I&&!I.dir?I:null},folder:function(R){if(!R)return this;if(m(R))return this.filter(function(I,U){return U.dir&&R.test(I)});var P=this.root+R,L=_.call(this,P),q=this.clone();return q.root=L.name,q},remove:function(R){R=this.root+R;var P=this.files[R];if(P||(R.slice(-1)!=="/"&&(R+="/"),P=this.files[R]),P&&!P.dir)delete this.files[R];else for(var L=this.filter(function(I,U){return U.name.slice(0,R.length)===R}),q=0;q<L.length;q++)delete this.files[L[q].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(R){var P,L={};try{if((L=r.extend(R||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:y.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");r.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var q=L.comment||this.comment||"";P=g.generateWorker(this,L,q)}catch(I){(P=new f("error")).error(I)}return new w(P,L.type||"string",L.mimeType)},generateAsync:function(R,P){return this.generateInternalStream(R).accumulate(P)},generateNodeStream:function(R,P){return(R=R||{}).type||(R.type="nodebuffer"),this.generateInternalStream(R).toNodejsStream(P)}};o.exports=a},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(i,o,p){o.exports=i("stream")},{stream:void 0}],17:[function(i,o,p){var l=i("./DataReader");function y(r){l.call(this,r);for(var f=0;f<this.data.length;f++)r[f]=255&r[f]}i("../utils").inherits(y,l),y.prototype.byteAt=function(r){return this.data[this.zero+r]},y.prototype.lastIndexOfSignature=function(r){for(var f=r.charCodeAt(0),w=r.charCodeAt(1),E=r.charCodeAt(2),x=r.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===f&&this.data[k+1]===w&&this.data[k+2]===E&&this.data[k+3]===x)return k-this.zero;return-1},y.prototype.readAndCheckSignature=function(r){var f=r.charCodeAt(0),w=r.charCodeAt(1),E=r.charCodeAt(2),x=r.charCodeAt(3),k=this.readData(4);return f===k[0]&&w===k[1]&&E===k[2]&&x===k[3]},y.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,f},o.exports=y},{"../utils":32,"./DataReader":18}],18:[function(i,o,p){var l=i("../utils");function y(r){this.data=r,this.length=r.length,this.index=0,this.zero=0}y.prototype={checkOffset:function(r){this.checkIndex(this.index+r)},checkIndex:function(r){if(this.length<this.zero+r||r<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+r+"). Corrupted zip ?")},setIndex:function(r){this.checkIndex(r),this.index=r},skip:function(r){this.setIndex(this.index+r)},byteAt:function(){},readInt:function(r){var f,w=0;for(this.checkOffset(r),f=this.index+r-1;f>=this.index;f--)w=(w<<8)+this.byteAt(f);return this.index+=r,w},readString:function(r){return l.transformTo("string",this.readData(r))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var r=this.readInt(4);return new Date(Date.UTC(1980+(r>>25&127),(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(31&r)<<1))}},o.exports=y},{"../utils":32}],19:[function(i,o,p){var l=i("./Uint8ArrayReader");function y(r){l.call(this,r)}i("../utils").inherits(y,l),y.prototype.readData=function(r){this.checkOffset(r);var f=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,f},o.exports=y},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(i,o,p){var l=i("./DataReader");function y(r){l.call(this,r)}i("../utils").inherits(y,l),y.prototype.byteAt=function(r){return this.data.charCodeAt(this.zero+r)},y.prototype.lastIndexOfSignature=function(r){return this.data.lastIndexOf(r)-this.zero},y.prototype.readAndCheckSignature=function(r){return r===this.readData(4)},y.prototype.readData=function(r){this.checkOffset(r);var f=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,f},o.exports=y},{"../utils":32,"./DataReader":18}],21:[function(i,o,p){var l=i("./ArrayReader");function y(r){l.call(this,r)}i("../utils").inherits(y,l),y.prototype.readData=function(r){if(this.checkOffset(r),r===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+r);return this.index+=r,f},o.exports=y},{"../utils":32,"./ArrayReader":17}],22:[function(i,o,p){var l=i("../utils"),y=i("../support"),r=i("./ArrayReader"),f=i("./StringReader"),w=i("./NodeBufferReader"),E=i("./Uint8ArrayReader");o.exports=function(x){var k=l.getTypeOf(x);return l.checkSupport(k),k!=="string"||y.uint8array?k==="nodebuffer"?new w(x):y.uint8array?new E(l.transformTo("uint8array",x)):new r(l.transformTo("array",x)):new f(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(i,o,p){p.LOCAL_FILE_HEADER="PK",p.CENTRAL_FILE_HEADER="PK",p.CENTRAL_DIRECTORY_END="PK",p.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",p.ZIP64_CENTRAL_DIRECTORY_END="PK",p.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(i,o,p){var l=i("./GenericWorker"),y=i("../utils");function r(f){l.call(this,"ConvertWorker to "+f),this.destType=f}y.inherits(r,l),r.prototype.processChunk=function(f){this.push({data:y.transformTo(this.destType,f.data),meta:f.meta})},o.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(i,o,p){var l=i("./GenericWorker"),y=i("../crc32");function r(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}i("../utils").inherits(r,l),r.prototype.processChunk=function(f){this.streamInfo.crc32=y(f.data,this.streamInfo.crc32||0),this.push(f)},o.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(i,o,p){var l=i("../utils"),y=i("./GenericWorker");function r(f){y.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}l.inherits(r,y),r.prototype.processChunk=function(f){if(f){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+f.data.length}y.prototype.processChunk.call(this,f)},o.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(i,o,p){var l=i("../utils"),y=i("./GenericWorker");function r(f){y.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(E){w.dataIsReady=!0,w.data=E,w.max=E&&E.length||0,w.type=l.getTypeOf(E),w.isPaused||w._tickAndRepeat()},function(E){w.error(E)})}l.inherits(r,y),r.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,w);break;case"uint8array":f=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":f=this.data.slice(this.index,w)}return this.index=w,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(i,o,p){function l(y){this.name=y||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(y){this.emit("data",y)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(y){this.emit("error",y)}return!0},error:function(y){return!this.isFinished&&(this.isPaused?this.generatedError=y:(this.isFinished=!0,this.emit("error",y),this.previous&&this.previous.error(y),this.cleanUp()),!0)},on:function(y,r){return this._listeners[y].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(y,r){if(this._listeners[y])for(var f=0;f<this._listeners[y].length;f++)this._listeners[y][f].call(this,r)},pipe:function(y){return y.registerPrevious(this)},registerPrevious:function(y){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=y.streamInfo,this.mergeStreamInfo(),this.previous=y;var r=this;return y.on("data",function(f){r.processChunk(f)}),y.on("end",function(){r.end()}),y.on("error",function(f){r.error(f)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var y=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),y=!0),this.previous&&this.previous.resume(),!y},flush:function(){},processChunk:function(y){this.push(y)},withStreamInfo:function(y,r){return this.extraStreamInfo[y]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var y in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,y)&&(this.streamInfo[y]=this.extraStreamInfo[y])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var y="Worker "+this.name;return this.previous?this.previous+" -> "+y:y}},o.exports=l},{}],29:[function(i,o,p){var l=i("../utils"),y=i("./ConvertWorker"),r=i("./GenericWorker"),f=i("../base64"),w=i("../support"),E=i("../external"),x=null;if(w.nodestream)try{x=i("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(O,b){return new E.Promise(function(C,n){var _=[],m=O._internalType,a=O._outputType,R=O._mimeType;O.on("data",function(P,L){_.push(P),b&&b(L)}).on("error",function(P){_=[],n(P)}).on("end",function(){try{var P=function(L,q,I){switch(L){case"blob":return l.newBlob(l.transformTo("arraybuffer",q),I);case"base64":return f.encode(q);default:return l.transformTo(L,q)}}(a,function(L,q){var I,U=0,J=null,T=0;for(I=0;I<q.length;I++)T+=q[I].length;switch(L){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(J=new Uint8Array(T),I=0;I<q.length;I++)J.set(q[I],U),U+=q[I].length;return J;case"nodebuffer":return Buffer.concat(q);default:throw new Error("concat : unsupported type '"+L+"'")}}(m,_),R);C(P)}catch(L){n(L)}_=[]}).resume()})}function g(O,b,C){var n=b;switch(b){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=b,this._mimeType=C,l.checkSupport(n),this._worker=O.pipe(new y(n)),O.lock()}catch(_){this._worker=new r("error"),this._worker.error(_)}}g.prototype={accumulate:function(O){return k(this,O)},on:function(O,b){var C=this;return O==="data"?this._worker.on(O,function(n){b.call(C,n.data,n.meta)}):this._worker.on(O,function(){l.delay(b,arguments,C)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(O){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new x(this,{objectMode:this._outputType!=="nodebuffer"},O)}},o.exports=g},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(i,o,p){if(p.base64=!0,p.array=!0,p.string=!0,p.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",p.nodebuffer=typeof Buffer<"u",p.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")p.blob=!1;else{var l=new ArrayBuffer(0);try{p.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);y.append(l),p.blob=y.getBlob("application/zip").size===0}catch{p.blob=!1}}}try{p.nodestream=!!i("readable-stream").Readable}catch{p.nodestream=!1}},{"readable-stream":16}],31:[function(i,o,p){for(var l=i("./utils"),y=i("./support"),r=i("./nodejsUtils"),f=i("./stream/GenericWorker"),w=new Array(256),E=0;E<256;E++)w[E]=252<=E?6:248<=E?5:240<=E?4:224<=E?3:192<=E?2:1;w[254]=w[254]=1;function x(){f.call(this,"utf-8 decode"),this.leftOver=null}function k(){f.call(this,"utf-8 encode")}p.utf8encode=function(g){return y.nodebuffer?r.newBufferFrom(g,"utf-8"):function(O){var b,C,n,_,m,a=O.length,R=0;for(_=0;_<a;_++)(64512&(C=O.charCodeAt(_)))==55296&&_+1<a&&(64512&(n=O.charCodeAt(_+1)))==56320&&(C=65536+(C-55296<<10)+(n-56320),_++),R+=C<128?1:C<2048?2:C<65536?3:4;for(b=y.uint8array?new Uint8Array(R):new Array(R),_=m=0;m<R;_++)(64512&(C=O.charCodeAt(_)))==55296&&_+1<a&&(64512&(n=O.charCodeAt(_+1)))==56320&&(C=65536+(C-55296<<10)+(n-56320),_++),C<128?b[m++]=C:(C<2048?b[m++]=192|C>>>6:(C<65536?b[m++]=224|C>>>12:(b[m++]=240|C>>>18,b[m++]=128|C>>>12&63),b[m++]=128|C>>>6&63),b[m++]=128|63&C);return b}(g)},p.utf8decode=function(g){return y.nodebuffer?l.transformTo("nodebuffer",g).toString("utf-8"):function(O){var b,C,n,_,m=O.length,a=new Array(2*m);for(b=C=0;b<m;)if((n=O[b++])<128)a[C++]=n;else if(4<(_=w[n]))a[C++]=65533,b+=_-1;else{for(n&=_===2?31:_===3?15:7;1<_&&b<m;)n=n<<6|63&O[b++],_--;1<_?a[C++]=65533:n<65536?a[C++]=n:(n-=65536,a[C++]=55296|n>>10&1023,a[C++]=56320|1023&n)}return a.length!==C&&(a.subarray?a=a.subarray(0,C):a.length=C),l.applyFromCharCode(a)}(g=l.transformTo(y.uint8array?"uint8array":"array",g))},l.inherits(x,f),x.prototype.processChunk=function(g){var O=l.transformTo(y.uint8array?"uint8array":"array",g.data);if(this.leftOver&&this.leftOver.length){if(y.uint8array){var b=O;(O=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),O.set(b,this.leftOver.length)}else O=this.leftOver.concat(O);this.leftOver=null}var C=function(_,m){var a;for((m=m||_.length)>_.length&&(m=_.length),a=m-1;0<=a&&(192&_[a])==128;)a--;return a<0||a===0?m:a+w[_[a]]>m?a:m}(O),n=O;C!==O.length&&(y.uint8array?(n=O.subarray(0,C),this.leftOver=O.subarray(C,O.length)):(n=O.slice(0,C),this.leftOver=O.slice(C,O.length))),this.push({data:p.utf8decode(n),meta:g.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:p.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},p.Utf8DecodeWorker=x,l.inherits(k,f),k.prototype.processChunk=function(g){this.push({data:p.utf8encode(g.data),meta:g.meta})},p.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(i,o,p){var l=i("./support"),y=i("./base64"),r=i("./nodejsUtils"),f=i("./external");function w(b){return b}function E(b,C){for(var n=0;n<b.length;++n)C[n]=255&b.charCodeAt(n);return C}i("setimmediate"),p.newBlob=function(b,C){p.checkSupport("blob");try{return new Blob([b],{type:C})}catch{try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(b),n.getBlob(C)}catch{throw new Error("Bug : can't construct the Blob.")}}};var x={stringifyByChunk:function(b,C,n){var _=[],m=0,a=b.length;if(a<=n)return String.fromCharCode.apply(null,b);for(;m<a;)C==="array"||C==="nodebuffer"?_.push(String.fromCharCode.apply(null,b.slice(m,Math.min(m+n,a)))):_.push(String.fromCharCode.apply(null,b.subarray(m,Math.min(m+n,a)))),m+=n;return _.join("")},stringifyByChar:function(b){for(var C="",n=0;n<b.length;n++)C+=String.fromCharCode(b[n]);return C},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch{return!1}}()}};function k(b){var C=65536,n=p.getTypeOf(b),_=!0;if(n==="uint8array"?_=x.applyCanBeUsed.uint8array:n==="nodebuffer"&&(_=x.applyCanBeUsed.nodebuffer),_)for(;1<C;)try{return x.stringifyByChunk(b,n,C)}catch{C=Math.floor(C/2)}return x.stringifyByChar(b)}function g(b,C){for(var n=0;n<b.length;n++)C[n]=b[n];return C}p.applyFromCharCode=k;var O={};O.string={string:w,array:function(b){return E(b,new Array(b.length))},arraybuffer:function(b){return O.string.uint8array(b).buffer},uint8array:function(b){return E(b,new Uint8Array(b.length))},nodebuffer:function(b){return E(b,r.allocBuffer(b.length))}},O.array={string:k,array:w,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return r.newBufferFrom(b)}},O.arraybuffer={string:function(b){return k(new Uint8Array(b))},array:function(b){return g(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:w,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return r.newBufferFrom(new Uint8Array(b))}},O.uint8array={string:k,array:function(b){return g(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:w,nodebuffer:function(b){return r.newBufferFrom(b)}},O.nodebuffer={string:k,array:function(b){return g(b,new Array(b.length))},arraybuffer:function(b){return O.nodebuffer.uint8array(b).buffer},uint8array:function(b){return g(b,new Uint8Array(b.length))},nodebuffer:w},p.transformTo=function(b,C){if(C=C||"",!b)return C;p.checkSupport(b);var n=p.getTypeOf(C);return O[n][b](C)},p.resolve=function(b){for(var C=b.split("/"),n=[],_=0;_<C.length;_++){var m=C[_];m==="."||m===""&&_!==0&&_!==C.length-1||(m===".."?n.pop():n.push(m))}return n.join("/")},p.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":l.nodebuffer&&r.isBuffer(b)?"nodebuffer":l.uint8array&&b instanceof Uint8Array?"uint8array":l.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},p.checkSupport=function(b){if(!l[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},p.MAX_VALUE_16BITS=65535,p.MAX_VALUE_32BITS=-1,p.pretty=function(b){var C,n,_="";for(n=0;n<(b||"").length;n++)_+="\\x"+((C=b.charCodeAt(n))<16?"0":"")+C.toString(16).toUpperCase();return _},p.delay=function(b,C,n){setImmediate(function(){b.apply(n||null,C||[])})},p.inherits=function(b,C){function n(){}n.prototype=C.prototype,b.prototype=new n},p.extend=function(){var b,C,n={};for(b=0;b<arguments.length;b++)for(C in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],C)&&n[C]===void 0&&(n[C]=arguments[b][C]);return n},p.prepareContent=function(b,C,n,_,m){return f.Promise.resolve(C).then(function(a){return l.blob&&(a instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(a))!==-1)&&typeof FileReader<"u"?new f.Promise(function(R,P){var L=new FileReader;L.onload=function(q){R(q.target.result)},L.onerror=function(q){P(q.target.error)},L.readAsArrayBuffer(a)}):a}).then(function(a){var R=p.getTypeOf(a);return R?(R==="arraybuffer"?a=p.transformTo("uint8array",a):R==="string"&&(m?a=y.decode(a):n&&_!==!0&&(a=function(P){return E(P,l.uint8array?new Uint8Array(P.length):new Array(P.length))}(a))),a):f.Promise.reject(new Error("Can't read the data of '"+b+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(i,o,p){var l=i("./reader/readerFor"),y=i("./utils"),r=i("./signature"),f=i("./zipEntry"),w=i("./support");function E(x){this.files=[],this.loadOptions=x}E.prototype={checkSignature:function(x){if(!this.reader.readAndCheckSignature(x)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+y.pretty(k)+", expected "+y.pretty(x)+")")}},isSignature:function(x,k){var g=this.reader.index;this.reader.setIndex(x);var O=this.reader.readString(4)===k;return this.reader.setIndex(g),O},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var x=this.reader.readData(this.zipCommentLength),k=w.uint8array?"uint8array":"array",g=y.transformTo(k,x);this.zipComment=this.loadOptions.decodeFileName(g)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var x,k,g,O=this.zip64EndOfCentralSize-44;0<O;)x=this.reader.readInt(2),k=this.reader.readInt(4),g=this.reader.readData(k),this.zip64ExtensibleData[x]={id:x,length:k,value:g}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var x,k;for(x=0;x<this.files.length;x++)k=this.files[x],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var x;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(x=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(x);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var x=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(x<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(x);var k=x;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===y.MAX_VALUE_16BITS||this.diskWithCentralDirStart===y.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===y.MAX_VALUE_16BITS||this.centralDirRecords===y.MAX_VALUE_16BITS||this.centralDirSize===y.MAX_VALUE_32BITS||this.centralDirOffset===y.MAX_VALUE_32BITS){if(this.zip64=!0,(x=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(x),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var g=this.centralDirOffset+this.centralDirSize;this.zip64&&(g+=20,g+=12+this.zip64EndOfCentralSize);var O=k-g;if(0<O)this.isSignature(k,r.CENTRAL_FILE_HEADER)||(this.reader.zero=O);else if(O<0)throw new Error("Corrupted zip: missing "+Math.abs(O)+" bytes.")},prepareReader:function(x){this.reader=l(x)},load:function(x){this.prepareReader(x),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=E},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(i,o,p){var l=i("./reader/readerFor"),y=i("./utils"),r=i("./compressedObject"),f=i("./crc32"),w=i("./utf8"),E=i("./compressions"),x=i("./support");function k(g,O){this.options=g,this.loadOptions=O}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(g){var O,b;if(g.skip(22),this.fileNameLength=g.readInt(2),b=g.readInt(2),this.fileName=g.readData(this.fileNameLength),g.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((O=function(C){for(var n in E)if(Object.prototype.hasOwnProperty.call(E,n)&&E[n].magic===C)return E[n];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+y.pretty(this.compressionMethod)+" unknown (inner file : "+y.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,O,g.readData(this.compressedSize))},readCentralPart:function(g){this.versionMadeBy=g.readInt(2),g.skip(2),this.bitFlag=g.readInt(2),this.compressionMethod=g.readString(2),this.date=g.readDate(),this.crc32=g.readInt(4),this.compressedSize=g.readInt(4),this.uncompressedSize=g.readInt(4);var O=g.readInt(2);if(this.extraFieldsLength=g.readInt(2),this.fileCommentLength=g.readInt(2),this.diskNumberStart=g.readInt(2),this.internalFileAttributes=g.readInt(2),this.externalFileAttributes=g.readInt(4),this.localHeaderOffset=g.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");g.skip(O),this.readExtraFields(g),this.parseZIP64ExtraField(g),this.fileComment=g.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var g=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),g==0&&(this.dosPermissions=63&this.externalFileAttributes),g==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var g=l(this.extraFields[1].value);this.uncompressedSize===y.MAX_VALUE_32BITS&&(this.uncompressedSize=g.readInt(8)),this.compressedSize===y.MAX_VALUE_32BITS&&(this.compressedSize=g.readInt(8)),this.localHeaderOffset===y.MAX_VALUE_32BITS&&(this.localHeaderOffset=g.readInt(8)),this.diskNumberStart===y.MAX_VALUE_32BITS&&(this.diskNumberStart=g.readInt(4))}},readExtraFields:function(g){var O,b,C,n=g.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});g.index+4<n;)O=g.readInt(2),b=g.readInt(2),C=g.readData(b),this.extraFields[O]={id:O,length:b,value:C};g.setIndex(n)},handleUTF8:function(){var g=x.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=w.utf8decode(this.fileName),this.fileCommentStr=w.utf8decode(this.fileComment);else{var O=this.findExtraFieldUnicodePath();if(O!==null)this.fileNameStr=O;else{var b=y.transformTo(g,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var C=this.findExtraFieldUnicodeComment();if(C!==null)this.fileCommentStr=C;else{var n=y.transformTo(g,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var g=this.extraFields[28789];if(g){var O=l(g.value);return O.readInt(1)!==1||f(this.fileName)!==O.readInt(4)?null:w.utf8decode(O.readData(g.length-5))}return null},findExtraFieldUnicodeComment:function(){var g=this.extraFields[25461];if(g){var O=l(g.value);return O.readInt(1)!==1||f(this.fileComment)!==O.readInt(4)?null:w.utf8decode(O.readData(g.length-5))}return null}},o.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(i,o,p){function l(O,b,C){this.name=O,this.dir=C.dir,this.date=C.date,this.comment=C.comment,this.unixPermissions=C.unixPermissions,this.dosPermissions=C.dosPermissions,this._data=b,this._dataBinary=C.binary,this.options={compression:C.compression,compressionOptions:C.compressionOptions}}var y=i("./stream/StreamHelper"),r=i("./stream/DataWorker"),f=i("./utf8"),w=i("./compressedObject"),E=i("./stream/GenericWorker");l.prototype={internalStream:function(O){var b=null,C="string";try{if(!O)throw new Error("No output type specified.");var n=(C=O.toLowerCase())==="string"||C==="text";C!=="binarystring"&&C!=="text"||(C="string"),b=this._decompressWorker();var _=!this._dataBinary;_&&!n&&(b=b.pipe(new f.Utf8EncodeWorker)),!_&&n&&(b=b.pipe(new f.Utf8DecodeWorker))}catch(m){(b=new E("error")).error(m)}return new y(b,C,"")},async:function(O,b){return this.internalStream(O).accumulate(b)},nodeStream:function(O,b){return this.internalStream(O||"nodebuffer").toNodejsStream(b)},_compressWorker:function(O,b){if(this._data instanceof w&&this._data.compression.magic===O.magic)return this._data.getCompressedWorker();var C=this._decompressWorker();return this._dataBinary||(C=C.pipe(new f.Utf8EncodeWorker)),w.createWorkerFrom(C,O,b)},_decompressWorker:function(){return this._data instanceof w?this._data.getContentWorker():this._data instanceof E?this._data:new r(this._data)}};for(var x=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},g=0;g<x.length;g++)l.prototype[x[g]]=k;o.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,o,p){(function(l){var y,r,f=l.MutationObserver||l.WebKitMutationObserver;if(f){var w=0,E=new f(O),x=l.document.createTextNode("");E.observe(x,{characterData:!0}),y=function(){x.data=w=++w%2}}else if(l.setImmediate||l.MessageChannel===void 0)y="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var b=l.document.createElement("script");b.onreadystatechange=function(){O(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},l.document.documentElement.appendChild(b)}:function(){setTimeout(O,0)};else{var k=new l.MessageChannel;k.port1.onmessage=O,y=function(){k.port2.postMessage(0)}}var g=[];function O(){var b,C;r=!0;for(var n=g.length;n;){for(C=g,g=[],b=-1;++b<n;)C[b]();n=g.length}r=!1}o.exports=function(b){g.push(b)!==1||r||y()}}).call(this,typeof Ee<"u"?Ee:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(i,o,p){var l=i("immediate");function y(){}var r={},f=["REJECTED"],w=["FULFILLED"],E=["PENDING"];function x(n){if(typeof n!="function")throw new TypeError("resolver must be a function");this.state=E,this.queue=[],this.outcome=void 0,n!==y&&b(this,n)}function k(n,_,m){this.promise=n,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}function g(n,_,m){l(function(){var a;try{a=_(m)}catch(R){return r.reject(n,R)}a===n?r.reject(n,new TypeError("Cannot resolve promise with itself")):r.resolve(n,a)})}function O(n){var _=n&&n.then;if(n&&(typeof n=="object"||typeof n=="function")&&typeof _=="function")return function(){_.apply(n,arguments)}}function b(n,_){var m=!1;function a(L){m||(m=!0,r.reject(n,L))}function R(L){m||(m=!0,r.resolve(n,L))}var P=C(function(){_(R,a)});P.status==="error"&&a(P.value)}function C(n,_){var m={};try{m.value=n(_),m.status="success"}catch(a){m.status="error",m.value=a}return m}(o.exports=x).prototype.finally=function(n){if(typeof n!="function")return this;var _=this.constructor;return this.then(function(m){return _.resolve(n()).then(function(){return m})},function(m){return _.resolve(n()).then(function(){throw m})})},x.prototype.catch=function(n){return this.then(null,n)},x.prototype.then=function(n,_){if(typeof n!="function"&&this.state===w||typeof _!="function"&&this.state===f)return this;var m=new this.constructor(y);return this.state!==E?g(m,this.state===w?n:_,this.outcome):this.queue.push(new k(m,n,_)),m},k.prototype.callFulfilled=function(n){r.resolve(this.promise,n)},k.prototype.otherCallFulfilled=function(n){g(this.promise,this.onFulfilled,n)},k.prototype.callRejected=function(n){r.reject(this.promise,n)},k.prototype.otherCallRejected=function(n){g(this.promise,this.onRejected,n)},r.resolve=function(n,_){var m=C(O,_);if(m.status==="error")return r.reject(n,m.value);var a=m.value;if(a)b(n,a);else{n.state=w,n.outcome=_;for(var R=-1,P=n.queue.length;++R<P;)n.queue[R].callFulfilled(_)}return n},r.reject=function(n,_){n.state=f,n.outcome=_;for(var m=-1,a=n.queue.length;++m<a;)n.queue[m].callRejected(_);return n},x.resolve=function(n){return n instanceof this?n:r.resolve(new this(y),n)},x.reject=function(n){var _=new this(y);return r.reject(_,n)},x.all=function(n){var _=this;if(Object.prototype.toString.call(n)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=n.length,a=!1;if(!m)return this.resolve([]);for(var R=new Array(m),P=0,L=-1,q=new this(y);++L<m;)I(n[L],L);return q;function I(U,J){_.resolve(U).then(function(T){R[J]=T,++P!==m||a||(a=!0,r.resolve(q,R))},function(T){a||(a=!0,r.reject(q,T))})}},x.race=function(n){var _=this;if(Object.prototype.toString.call(n)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=n.length,a=!1;if(!m)return this.resolve([]);for(var R=-1,P=new this(y);++R<m;)L=n[R],_.resolve(L).then(function(q){a||(a=!0,r.resolve(P,q))},function(q){a||(a=!0,r.reject(P,q))});var L;return P}},{immediate:36}],38:[function(i,o,p){var l={};(0,i("./lib/utils/common").assign)(l,i("./lib/deflate"),i("./lib/inflate"),i("./lib/zlib/constants")),o.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(i,o,p){var l=i("./zlib/deflate"),y=i("./utils/common"),r=i("./utils/strings"),f=i("./zlib/messages"),w=i("./zlib/zstream"),E=Object.prototype.toString,x=0,k=-1,g=0,O=8;function b(n){if(!(this instanceof b))return new b(n);this.options=y.assign({level:k,method:O,chunkSize:16384,windowBits:15,memLevel:8,strategy:g,to:""},n||{});var _=this.options;_.raw&&0<_.windowBits?_.windowBits=-_.windowBits:_.gzip&&0<_.windowBits&&_.windowBits<16&&(_.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var m=l.deflateInit2(this.strm,_.level,_.method,_.windowBits,_.memLevel,_.strategy);if(m!==x)throw new Error(f[m]);if(_.header&&l.deflateSetHeader(this.strm,_.header),_.dictionary){var a;if(a=typeof _.dictionary=="string"?r.string2buf(_.dictionary):E.call(_.dictionary)==="[object ArrayBuffer]"?new Uint8Array(_.dictionary):_.dictionary,(m=l.deflateSetDictionary(this.strm,a))!==x)throw new Error(f[m]);this._dict_set=!0}}function C(n,_){var m=new b(_);if(m.push(n,!0),m.err)throw m.msg||f[m.err];return m.result}b.prototype.push=function(n,_){var m,a,R=this.strm,P=this.options.chunkSize;if(this.ended)return!1;a=_===~~_?_:_===!0?4:0,typeof n=="string"?R.input=r.string2buf(n):E.call(n)==="[object ArrayBuffer]"?R.input=new Uint8Array(n):R.input=n,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new y.Buf8(P),R.next_out=0,R.avail_out=P),(m=l.deflate(R,a))!==1&&m!==x)return this.onEnd(m),!(this.ended=!0);R.avail_out!==0&&(R.avail_in!==0||a!==4&&a!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(y.shrinkBuf(R.output,R.next_out))):this.onData(y.shrinkBuf(R.output,R.next_out)))}while((0<R.avail_in||R.avail_out===0)&&m!==1);return a===4?(m=l.deflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===x):a!==2||(this.onEnd(x),!(R.avail_out=0))},b.prototype.onData=function(n){this.chunks.push(n)},b.prototype.onEnd=function(n){n===x&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=y.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg},p.Deflate=b,p.deflate=C,p.deflateRaw=function(n,_){return(_=_||{}).raw=!0,C(n,_)},p.gzip=function(n,_){return(_=_||{}).gzip=!0,C(n,_)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(i,o,p){var l=i("./zlib/inflate"),y=i("./utils/common"),r=i("./utils/strings"),f=i("./zlib/constants"),w=i("./zlib/messages"),E=i("./zlib/zstream"),x=i("./zlib/gzheader"),k=Object.prototype.toString;function g(b){if(!(this instanceof g))return new g(b);this.options=y.assign({chunkSize:16384,windowBits:0,to:""},b||{});var C=this.options;C.raw&&0<=C.windowBits&&C.windowBits<16&&(C.windowBits=-C.windowBits,C.windowBits===0&&(C.windowBits=-15)),!(0<=C.windowBits&&C.windowBits<16)||b&&b.windowBits||(C.windowBits+=32),15<C.windowBits&&C.windowBits<48&&(15&C.windowBits)==0&&(C.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new E,this.strm.avail_out=0;var n=l.inflateInit2(this.strm,C.windowBits);if(n!==f.Z_OK)throw new Error(w[n]);this.header=new x,l.inflateGetHeader(this.strm,this.header)}function O(b,C){var n=new g(C);if(n.push(b,!0),n.err)throw n.msg||w[n.err];return n.result}g.prototype.push=function(b,C){var n,_,m,a,R,P,L=this.strm,q=this.options.chunkSize,I=this.options.dictionary,U=!1;if(this.ended)return!1;_=C===~~C?C:C===!0?f.Z_FINISH:f.Z_NO_FLUSH,typeof b=="string"?L.input=r.binstring2buf(b):k.call(b)==="[object ArrayBuffer]"?L.input=new Uint8Array(b):L.input=b,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new y.Buf8(q),L.next_out=0,L.avail_out=q),(n=l.inflate(L,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&I&&(P=typeof I=="string"?r.string2buf(I):k.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,n=l.inflateSetDictionary(this.strm,P)),n===f.Z_BUF_ERROR&&U===!0&&(n=f.Z_OK,U=!1),n!==f.Z_STREAM_END&&n!==f.Z_OK)return this.onEnd(n),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&n!==f.Z_STREAM_END&&(L.avail_in!==0||_!==f.Z_FINISH&&_!==f.Z_SYNC_FLUSH)||(this.options.to==="string"?(m=r.utf8border(L.output,L.next_out),a=L.next_out-m,R=r.buf2string(L.output,m),L.next_out=a,L.avail_out=q-a,a&&y.arraySet(L.output,L.output,m,a,0),this.onData(R)):this.onData(y.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(U=!0)}while((0<L.avail_in||L.avail_out===0)&&n!==f.Z_STREAM_END);return n===f.Z_STREAM_END&&(_=f.Z_FINISH),_===f.Z_FINISH?(n=l.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===f.Z_OK):_!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),!(L.avail_out=0))},g.prototype.onData=function(b){this.chunks.push(b)},g.prototype.onEnd=function(b){b===f.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=y.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},p.Inflate=g,p.inflate=O,p.inflateRaw=function(b,C){return(C=C||{}).raw=!0,O(b,C)},p.ungzip=O},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(i,o,p){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";p.assign=function(f){for(var w=Array.prototype.slice.call(arguments,1);w.length;){var E=w.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(var x in E)E.hasOwnProperty(x)&&(f[x]=E[x])}}return f},p.shrinkBuf=function(f,w){return f.length===w?f:f.subarray?f.subarray(0,w):(f.length=w,f)};var y={arraySet:function(f,w,E,x,k){if(w.subarray&&f.subarray)f.set(w.subarray(E,E+x),k);else for(var g=0;g<x;g++)f[k+g]=w[E+g]},flattenChunks:function(f){var w,E,x,k,g,O;for(w=x=0,E=f.length;w<E;w++)x+=f[w].length;for(O=new Uint8Array(x),w=k=0,E=f.length;w<E;w++)g=f[w],O.set(g,k),k+=g.length;return O}},r={arraySet:function(f,w,E,x,k){for(var g=0;g<x;g++)f[k+g]=w[E+g]},flattenChunks:function(f){return[].concat.apply([],f)}};p.setTyped=function(f){f?(p.Buf8=Uint8Array,p.Buf16=Uint16Array,p.Buf32=Int32Array,p.assign(p,y)):(p.Buf8=Array,p.Buf16=Array,p.Buf32=Array,p.assign(p,r))},p.setTyped(l)},{}],42:[function(i,o,p){var l=i("./common"),y=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{y=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var f=new l.Buf8(256),w=0;w<256;w++)f[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;function E(x,k){if(k<65537&&(x.subarray&&r||!x.subarray&&y))return String.fromCharCode.apply(null,l.shrinkBuf(x,k));for(var g="",O=0;O<k;O++)g+=String.fromCharCode(x[O]);return g}f[254]=f[254]=1,p.string2buf=function(x){var k,g,O,b,C,n=x.length,_=0;for(b=0;b<n;b++)(64512&(g=x.charCodeAt(b)))==55296&&b+1<n&&(64512&(O=x.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(O-56320),b++),_+=g<128?1:g<2048?2:g<65536?3:4;for(k=new l.Buf8(_),b=C=0;C<_;b++)(64512&(g=x.charCodeAt(b)))==55296&&b+1<n&&(64512&(O=x.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(O-56320),b++),g<128?k[C++]=g:(g<2048?k[C++]=192|g>>>6:(g<65536?k[C++]=224|g>>>12:(k[C++]=240|g>>>18,k[C++]=128|g>>>12&63),k[C++]=128|g>>>6&63),k[C++]=128|63&g);return k},p.buf2binstring=function(x){return E(x,x.length)},p.binstring2buf=function(x){for(var k=new l.Buf8(x.length),g=0,O=k.length;g<O;g++)k[g]=x.charCodeAt(g);return k},p.buf2string=function(x,k){var g,O,b,C,n=k||x.length,_=new Array(2*n);for(g=O=0;g<n;)if((b=x[g++])<128)_[O++]=b;else if(4<(C=f[b]))_[O++]=65533,g+=C-1;else{for(b&=C===2?31:C===3?15:7;1<C&&g<n;)b=b<<6|63&x[g++],C--;1<C?_[O++]=65533:b<65536?_[O++]=b:(b-=65536,_[O++]=55296|b>>10&1023,_[O++]=56320|1023&b)}return E(_,O)},p.utf8border=function(x,k){var g;for((k=k||x.length)>x.length&&(k=x.length),g=k-1;0<=g&&(192&x[g])==128;)g--;return g<0||g===0?k:g+f[x[g]]>k?g:k}},{"./common":41}],43:[function(i,o,p){o.exports=function(l,y,r,f){for(var w=65535&l|0,E=l>>>16&65535|0,x=0;r!==0;){for(r-=x=2e3<r?2e3:r;E=E+(w=w+y[f++]|0)|0,--x;);w%=65521,E%=65521}return w|E<<16|0}},{}],44:[function(i,o,p){o.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(i,o,p){var l=function(){for(var y,r=[],f=0;f<256;f++){y=f;for(var w=0;w<8;w++)y=1&y?3988292384^y>>>1:y>>>1;r[f]=y}return r}();o.exports=function(y,r,f,w){var E=l,x=w+f;y^=-1;for(var k=w;k<x;k++)y=y>>>8^E[255&(y^r[k])];return-1^y}},{}],46:[function(i,o,p){var l,y=i("../utils/common"),r=i("./trees"),f=i("./adler32"),w=i("./crc32"),E=i("./messages"),x=0,k=4,g=0,O=-2,b=-1,C=4,n=2,_=8,m=9,a=286,R=30,P=19,L=2*a+1,q=15,I=3,U=258,J=U+I+1,T=42,B=113,s=1,z=2,Y=3,W=4;function ne(c,ee){return c.msg=E[ee],ee}function Z(c){return(c<<1)-(4<c?9:0)}function se(c){for(var ee=c.length;0<=--ee;)c[ee]=0}function $(c){var ee=c.state,S=ee.pending;S>c.avail_out&&(S=c.avail_out),S!==0&&(y.arraySet(c.output,ee.pending_buf,ee.pending_out,S,c.next_out),c.next_out+=S,ee.pending_out+=S,c.total_out+=S,c.avail_out-=S,ee.pending-=S,ee.pending===0&&(ee.pending_out=0))}function D(c,ee){r._tr_flush_block(c,0<=c.block_start?c.block_start:-1,c.strstart-c.block_start,ee),c.block_start=c.strstart,$(c.strm)}function X(c,ee){c.pending_buf[c.pending++]=ee}function Q(c,ee){c.pending_buf[c.pending++]=ee>>>8&255,c.pending_buf[c.pending++]=255&ee}function re(c,ee){var S,e,t=c.max_chain_length,h=c.strstart,M=c.prev_length,K=c.nice_match,H=c.strstart>c.w_size-J?c.strstart-(c.w_size-J):0,ie=c.window,oe=c.w_mask,ae=c.prev,ue=c.strstart+U,fe=ie[h+M-1],le=ie[h+M];c.prev_length>=c.good_match&&(t>>=2),K>c.lookahead&&(K=c.lookahead);do if(ie[(S=ee)+M]===le&&ie[S+M-1]===fe&&ie[S]===ie[h]&&ie[++S]===ie[h+1]){h+=2,S++;do;while(ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&ie[++h]===ie[++S]&&h<ue);if(e=U-(ue-h),h=ue-U,M<e){if(c.match_start=ee,K<=(M=e))break;fe=ie[h+M-1],le=ie[h+M]}}while((ee=ae[ee&oe])>H&&--t!=0);return M<=c.lookahead?M:c.lookahead}function V(c){var ee,S,e,t,h,M,K,H,ie,oe,ae=c.w_size;do{if(t=c.window_size-c.lookahead-c.strstart,c.strstart>=ae+(ae-J)){for(y.arraySet(c.window,c.window,ae,ae,0),c.match_start-=ae,c.strstart-=ae,c.block_start-=ae,ee=S=c.hash_size;e=c.head[--ee],c.head[ee]=ae<=e?e-ae:0,--S;);for(ee=S=ae;e=c.prev[--ee],c.prev[ee]=ae<=e?e-ae:0,--S;);t+=ae}if(c.strm.avail_in===0)break;if(M=c.strm,K=c.window,H=c.strstart+c.lookahead,ie=t,oe=void 0,oe=M.avail_in,ie<oe&&(oe=ie),S=oe===0?0:(M.avail_in-=oe,y.arraySet(K,M.input,M.next_in,oe,H),M.state.wrap===1?M.adler=f(M.adler,K,oe,H):M.state.wrap===2&&(M.adler=w(M.adler,K,oe,H)),M.next_in+=oe,M.total_in+=oe,oe),c.lookahead+=S,c.lookahead+c.insert>=I)for(h=c.strstart-c.insert,c.ins_h=c.window[h],c.ins_h=(c.ins_h<<c.hash_shift^c.window[h+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[h+I-1])&c.hash_mask,c.prev[h&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=h,h++,c.insert--,!(c.lookahead+c.insert<I)););}while(c.lookahead<J&&c.strm.avail_in!==0)}function A(c,ee){for(var S,e;;){if(c.lookahead<J){if(V(c),c.lookahead<J&&ee===x)return s;if(c.lookahead===0)break}if(S=0,c.lookahead>=I&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,S=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),S!==0&&c.strstart-S<=c.w_size-J&&(c.match_length=re(c,S)),c.match_length>=I)if(e=r._tr_tally(c,c.strstart-c.match_start,c.match_length-I),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=I){for(c.match_length--;c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,S=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart,--c.match_length!=0;);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else e=r._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(e&&(D(c,!1),c.strm.avail_out===0))return s}return c.insert=c.strstart<I-1?c.strstart:I-1,ee===k?(D(c,!0),c.strm.avail_out===0?Y:W):c.last_lit&&(D(c,!1),c.strm.avail_out===0)?s:z}function v(c,ee){for(var S,e,t;;){if(c.lookahead<J){if(V(c),c.lookahead<J&&ee===x)return s;if(c.lookahead===0)break}if(S=0,c.lookahead>=I&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,S=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=I-1,S!==0&&c.prev_length<c.max_lazy_match&&c.strstart-S<=c.w_size-J&&(c.match_length=re(c,S),c.match_length<=5&&(c.strategy===1||c.match_length===I&&4096<c.strstart-c.match_start)&&(c.match_length=I-1)),c.prev_length>=I&&c.match_length<=c.prev_length){for(t=c.strstart+c.lookahead-I,e=r._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-I),c.lookahead-=c.prev_length-1,c.prev_length-=2;++c.strstart<=t&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,S=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),--c.prev_length!=0;);if(c.match_available=0,c.match_length=I-1,c.strstart++,e&&(D(c,!1),c.strm.avail_out===0))return s}else if(c.match_available){if((e=r._tr_tally(c,0,c.window[c.strstart-1]))&&D(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return s}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(e=r._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<I-1?c.strstart:I-1,ee===k?(D(c,!0),c.strm.avail_out===0?Y:W):c.last_lit&&(D(c,!1),c.strm.avail_out===0)?s:z}function G(c,ee,S,e,t){this.good_length=c,this.max_lazy=ee,this.nice_length=S,this.max_chain=e,this.func=t}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y.Buf16(2*L),this.dyn_dtree=new y.Buf16(2*(2*R+1)),this.bl_tree=new y.Buf16(2*(2*P+1)),se(this.dyn_ltree),se(this.dyn_dtree),se(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(q+1),this.heap=new y.Buf16(2*a+1),se(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(2*a+1),se(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N(c){var ee;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=n,(ee=c.state).pending=0,ee.pending_out=0,ee.wrap<0&&(ee.wrap=-ee.wrap),ee.status=ee.wrap?T:B,c.adler=ee.wrap===2?0:1,ee.last_flush=x,r._tr_init(ee),g):ne(c,O)}function F(c){var ee=N(c);return ee===g&&function(S){S.window_size=2*S.w_size,se(S.head),S.max_lazy_match=l[S.level].max_lazy,S.good_match=l[S.level].good_length,S.nice_match=l[S.level].nice_length,S.max_chain_length=l[S.level].max_chain,S.strstart=0,S.block_start=0,S.lookahead=0,S.insert=0,S.match_length=S.prev_length=I-1,S.match_available=0,S.ins_h=0}(c.state),ee}function te(c,ee,S,e,t,h){if(!c)return O;var M=1;if(ee===b&&(ee=6),e<0?(M=0,e=-e):15<e&&(M=2,e-=16),t<1||m<t||S!==_||e<8||15<e||ee<0||9<ee||h<0||C<h)return ne(c,O);e===8&&(e=9);var K=new j;return(c.state=K).strm=c,K.wrap=M,K.gzhead=null,K.w_bits=e,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=t+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+I-1)/I),K.window=new y.Buf8(2*K.w_size),K.head=new y.Buf16(K.hash_size),K.prev=new y.Buf16(K.w_size),K.lit_bufsize=1<<t+6,K.pending_buf_size=4*K.lit_bufsize,K.pending_buf=new y.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=ee,K.strategy=h,K.method=S,F(c)}l=[new G(0,0,0,0,function(c,ee){var S=65535;for(S>c.pending_buf_size-5&&(S=c.pending_buf_size-5);;){if(c.lookahead<=1){if(V(c),c.lookahead===0&&ee===x)return s;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var e=c.block_start+S;if((c.strstart===0||c.strstart>=e)&&(c.lookahead=c.strstart-e,c.strstart=e,D(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-J&&(D(c,!1),c.strm.avail_out===0))return s}return c.insert=0,ee===k?(D(c,!0),c.strm.avail_out===0?Y:W):(c.strstart>c.block_start&&(D(c,!1),c.strm.avail_out),s)}),new G(4,4,8,4,A),new G(4,5,16,8,A),new G(4,6,32,32,A),new G(4,4,16,16,v),new G(8,16,32,32,v),new G(8,16,128,128,v),new G(8,32,128,256,v),new G(32,128,258,1024,v),new G(32,258,258,4096,v)],p.deflateInit=function(c,ee){return te(c,ee,_,15,8,0)},p.deflateInit2=te,p.deflateReset=F,p.deflateResetKeep=N,p.deflateSetHeader=function(c,ee){return c&&c.state?c.state.wrap!==2?O:(c.state.gzhead=ee,g):O},p.deflate=function(c,ee){var S,e,t,h;if(!c||!c.state||5<ee||ee<0)return c?ne(c,O):O;if(e=c.state,!c.output||!c.input&&c.avail_in!==0||e.status===666&&ee!==k)return ne(c,c.avail_out===0?-5:O);if(e.strm=c,S=e.last_flush,e.last_flush=ee,e.status===T)if(e.wrap===2)c.adler=0,X(e,31),X(e,139),X(e,8),e.gzhead?(X(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),X(e,255&e.gzhead.time),X(e,e.gzhead.time>>8&255),X(e,e.gzhead.time>>16&255),X(e,e.gzhead.time>>24&255),X(e,e.level===9?2:2<=e.strategy||e.level<2?4:0),X(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(X(e,255&e.gzhead.extra.length),X(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(c.adler=w(c.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(X(e,0),X(e,0),X(e,0),X(e,0),X(e,0),X(e,e.level===9?2:2<=e.strategy||e.level<2?4:0),X(e,3),e.status=B);else{var M=_+(e.w_bits-8<<4)<<8;M|=(2<=e.strategy||e.level<2?0:e.level<6?1:e.level===6?2:3)<<6,e.strstart!==0&&(M|=32),M+=31-M%31,e.status=B,Q(e,M),e.strstart!==0&&(Q(e,c.adler>>>16),Q(e,65535&c.adler)),c.adler=1}if(e.status===69)if(e.gzhead.extra){for(t=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>t&&(c.adler=w(c.adler,e.pending_buf,e.pending-t,t)),$(c),t=e.pending,e.pending!==e.pending_buf_size));)X(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>t&&(c.adler=w(c.adler,e.pending_buf,e.pending-t,t)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(e.status===73)if(e.gzhead.name){t=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>t&&(c.adler=w(c.adler,e.pending_buf,e.pending-t,t)),$(c),t=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,X(e,h)}while(h!==0);e.gzhead.hcrc&&e.pending>t&&(c.adler=w(c.adler,e.pending_buf,e.pending-t,t)),h===0&&(e.gzindex=0,e.status=91)}else e.status=91;if(e.status===91)if(e.gzhead.comment){t=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>t&&(c.adler=w(c.adler,e.pending_buf,e.pending-t,t)),$(c),t=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,X(e,h)}while(h!==0);e.gzhead.hcrc&&e.pending>t&&(c.adler=w(c.adler,e.pending_buf,e.pending-t,t)),h===0&&(e.status=103)}else e.status=103;if(e.status===103&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&$(c),e.pending+2<=e.pending_buf_size&&(X(e,255&c.adler),X(e,c.adler>>8&255),c.adler=0,e.status=B)):e.status=B),e.pending!==0){if($(c),c.avail_out===0)return e.last_flush=-1,g}else if(c.avail_in===0&&Z(ee)<=Z(S)&&ee!==k)return ne(c,-5);if(e.status===666&&c.avail_in!==0)return ne(c,-5);if(c.avail_in!==0||e.lookahead!==0||ee!==x&&e.status!==666){var K=e.strategy===2?function(H,ie){for(var oe;;){if(H.lookahead===0&&(V(H),H.lookahead===0)){if(ie===x)return s;break}if(H.match_length=0,oe=r._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,oe&&(D(H,!1),H.strm.avail_out===0))return s}return H.insert=0,ie===k?(D(H,!0),H.strm.avail_out===0?Y:W):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?s:z}(e,ee):e.strategy===3?function(H,ie){for(var oe,ae,ue,fe,le=H.window;;){if(H.lookahead<=U){if(V(H),H.lookahead<=U&&ie===x)return s;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=I&&0<H.strstart&&(ae=le[ue=H.strstart-1])===le[++ue]&&ae===le[++ue]&&ae===le[++ue]){fe=H.strstart+U;do;while(ae===le[++ue]&&ae===le[++ue]&&ae===le[++ue]&&ae===le[++ue]&&ae===le[++ue]&&ae===le[++ue]&&ae===le[++ue]&&ae===le[++ue]&&ue<fe);H.match_length=U-(fe-ue),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=I?(oe=r._tr_tally(H,1,H.match_length-I),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(oe=r._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),oe&&(D(H,!1),H.strm.avail_out===0))return s}return H.insert=0,ie===k?(D(H,!0),H.strm.avail_out===0?Y:W):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?s:z}(e,ee):l[e.level].func(e,ee);if(K!==Y&&K!==W||(e.status=666),K===s||K===Y)return c.avail_out===0&&(e.last_flush=-1),g;if(K===z&&(ee===1?r._tr_align(e):ee!==5&&(r._tr_stored_block(e,0,0,!1),ee===3&&(se(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),$(c),c.avail_out===0))return e.last_flush=-1,g}return ee!==k?g:e.wrap<=0?1:(e.wrap===2?(X(e,255&c.adler),X(e,c.adler>>8&255),X(e,c.adler>>16&255),X(e,c.adler>>24&255),X(e,255&c.total_in),X(e,c.total_in>>8&255),X(e,c.total_in>>16&255),X(e,c.total_in>>24&255)):(Q(e,c.adler>>>16),Q(e,65535&c.adler)),$(c),0<e.wrap&&(e.wrap=-e.wrap),e.pending!==0?g:1)},p.deflateEnd=function(c){var ee;return c&&c.state?(ee=c.state.status)!==T&&ee!==69&&ee!==73&&ee!==91&&ee!==103&&ee!==B&&ee!==666?ne(c,O):(c.state=null,ee===B?ne(c,-3):g):O},p.deflateSetDictionary=function(c,ee){var S,e,t,h,M,K,H,ie,oe=ee.length;if(!c||!c.state||(h=(S=c.state).wrap)===2||h===1&&S.status!==T||S.lookahead)return O;for(h===1&&(c.adler=f(c.adler,ee,oe,0)),S.wrap=0,oe>=S.w_size&&(h===0&&(se(S.head),S.strstart=0,S.block_start=0,S.insert=0),ie=new y.Buf8(S.w_size),y.arraySet(ie,ee,oe-S.w_size,S.w_size,0),ee=ie,oe=S.w_size),M=c.avail_in,K=c.next_in,H=c.input,c.avail_in=oe,c.next_in=0,c.input=ee,V(S);S.lookahead>=I;){for(e=S.strstart,t=S.lookahead-(I-1);S.ins_h=(S.ins_h<<S.hash_shift^S.window[e+I-1])&S.hash_mask,S.prev[e&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=e,e++,--t;);S.strstart=e,S.lookahead=I-1,V(S)}return S.strstart+=S.lookahead,S.block_start=S.strstart,S.insert=S.lookahead,S.lookahead=0,S.match_length=S.prev_length=I-1,S.match_available=0,c.next_in=K,c.input=H,c.avail_in=M,S.wrap=h,g},p.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(i,o,p){o.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(i,o,p){o.exports=function(l,y){var r,f,w,E,x,k,g,O,b,C,n,_,m,a,R,P,L,q,I,U,J,T,B,s,z;r=l.state,f=l.next_in,s=l.input,w=f+(l.avail_in-5),E=l.next_out,z=l.output,x=E-(y-l.avail_out),k=E+(l.avail_out-257),g=r.dmax,O=r.wsize,b=r.whave,C=r.wnext,n=r.window,_=r.hold,m=r.bits,a=r.lencode,R=r.distcode,P=(1<<r.lenbits)-1,L=(1<<r.distbits)-1;e:do{m<15&&(_+=s[f++]<<m,m+=8,_+=s[f++]<<m,m+=8),q=a[_&P];t:for(;;){if(_>>>=I=q>>>24,m-=I,(I=q>>>16&255)===0)z[E++]=65535&q;else{if(!(16&I)){if((64&I)==0){q=a[(65535&q)+(_&(1<<I)-1)];continue t}if(32&I){r.mode=12;break e}l.msg="invalid literal/length code",r.mode=30;break e}U=65535&q,(I&=15)&&(m<I&&(_+=s[f++]<<m,m+=8),U+=_&(1<<I)-1,_>>>=I,m-=I),m<15&&(_+=s[f++]<<m,m+=8,_+=s[f++]<<m,m+=8),q=R[_&L];r:for(;;){if(_>>>=I=q>>>24,m-=I,!(16&(I=q>>>16&255))){if((64&I)==0){q=R[(65535&q)+(_&(1<<I)-1)];continue r}l.msg="invalid distance code",r.mode=30;break e}if(J=65535&q,m<(I&=15)&&(_+=s[f++]<<m,(m+=8)<I&&(_+=s[f++]<<m,m+=8)),g<(J+=_&(1<<I)-1)){l.msg="invalid distance too far back",r.mode=30;break e}if(_>>>=I,m-=I,(I=E-x)<J){if(b<(I=J-I)&&r.sane){l.msg="invalid distance too far back",r.mode=30;break e}if(B=n,(T=0)===C){if(T+=O-I,I<U){for(U-=I;z[E++]=n[T++],--I;);T=E-J,B=z}}else if(C<I){if(T+=O+C-I,(I-=C)<U){for(U-=I;z[E++]=n[T++],--I;);if(T=0,C<U){for(U-=I=C;z[E++]=n[T++],--I;);T=E-J,B=z}}}else if(T+=C-I,I<U){for(U-=I;z[E++]=n[T++],--I;);T=E-J,B=z}for(;2<U;)z[E++]=B[T++],z[E++]=B[T++],z[E++]=B[T++],U-=3;U&&(z[E++]=B[T++],1<U&&(z[E++]=B[T++]))}else{for(T=E-J;z[E++]=z[T++],z[E++]=z[T++],z[E++]=z[T++],2<(U-=3););U&&(z[E++]=z[T++],1<U&&(z[E++]=z[T++]))}break}}break}}while(f<w&&E<k);f-=U=m>>3,_&=(1<<(m-=U<<3))-1,l.next_in=f,l.next_out=E,l.avail_in=f<w?w-f+5:5-(f-w),l.avail_out=E<k?k-E+257:257-(E-k),r.hold=_,r.bits=m}},{}],49:[function(i,o,p){var l=i("../utils/common"),y=i("./adler32"),r=i("./crc32"),f=i("./inffast"),w=i("./inftrees"),E=1,x=2,k=0,g=-2,O=1,b=852,C=592;function n(T){return(T>>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function _(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(T){var B;return T&&T.state?(B=T.state,T.total_in=T.total_out=B.total=0,T.msg="",B.wrap&&(T.adler=1&B.wrap),B.mode=O,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new l.Buf32(b),B.distcode=B.distdyn=new l.Buf32(C),B.sane=1,B.back=-1,k):g}function a(T){var B;return T&&T.state?((B=T.state).wsize=0,B.whave=0,B.wnext=0,m(T)):g}function R(T,B){var s,z;return T&&T.state?(z=T.state,B<0?(s=0,B=-B):(s=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?g:(z.window!==null&&z.wbits!==B&&(z.window=null),z.wrap=s,z.wbits=B,a(T))):g}function P(T,B){var s,z;return T?(z=new _,(T.state=z).window=null,(s=R(T,B))!==k&&(T.state=null),s):g}var L,q,I=!0;function U(T){if(I){var B;for(L=new l.Buf32(512),q=new l.Buf32(32),B=0;B<144;)T.lens[B++]=8;for(;B<256;)T.lens[B++]=9;for(;B<280;)T.lens[B++]=7;for(;B<288;)T.lens[B++]=8;for(w(E,T.lens,0,288,L,0,T.work,{bits:9}),B=0;B<32;)T.lens[B++]=5;w(x,T.lens,0,32,q,0,T.work,{bits:5}),I=!1}T.lencode=L,T.lenbits=9,T.distcode=q,T.distbits=5}function J(T,B,s,z){var Y,W=T.state;return W.window===null&&(W.wsize=1<<W.wbits,W.wnext=0,W.whave=0,W.window=new l.Buf8(W.wsize)),z>=W.wsize?(l.arraySet(W.window,B,s-W.wsize,W.wsize,0),W.wnext=0,W.whave=W.wsize):(z<(Y=W.wsize-W.wnext)&&(Y=z),l.arraySet(W.window,B,s-z,Y,W.wnext),(z-=Y)?(l.arraySet(W.window,B,s-z,z,0),W.wnext=z,W.whave=W.wsize):(W.wnext+=Y,W.wnext===W.wsize&&(W.wnext=0),W.whave<W.wsize&&(W.whave+=Y))),0}p.inflateReset=a,p.inflateReset2=R,p.inflateResetKeep=m,p.inflateInit=function(T){return P(T,15)},p.inflateInit2=P,p.inflate=function(T,B){var s,z,Y,W,ne,Z,se,$,D,X,Q,re,V,A,v,G,j,N,F,te,c,ee,S,e,t=0,h=new l.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return g;(s=T.state).mode===12&&(s.mode=13),ne=T.next_out,Y=T.output,se=T.avail_out,W=T.next_in,z=T.input,Z=T.avail_in,$=s.hold,D=s.bits,X=Z,Q=se,ee=k;e:for(;;)switch(s.mode){case O:if(s.wrap===0){s.mode=13;break}for(;D<16;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if(2&s.wrap&&$===35615){h[s.check=0]=255&$,h[1]=$>>>8&255,s.check=r(s.check,h,2,0),D=$=0,s.mode=2;break}if(s.flags=0,s.head&&(s.head.done=!1),!(1&s.wrap)||(((255&$)<<8)+($>>8))%31){T.msg="incorrect header check",s.mode=30;break}if((15&$)!=8){T.msg="unknown compression method",s.mode=30;break}if(D-=4,c=8+(15&($>>>=4)),s.wbits===0)s.wbits=c;else if(c>s.wbits){T.msg="invalid window size",s.mode=30;break}s.dmax=1<<c,T.adler=s.check=1,s.mode=512&$?10:12,D=$=0;break;case 2:for(;D<16;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if(s.flags=$,(255&s.flags)!=8){T.msg="unknown compression method",s.mode=30;break}if(57344&s.flags){T.msg="unknown header flags set",s.mode=30;break}s.head&&(s.head.text=$>>8&1),512&s.flags&&(h[0]=255&$,h[1]=$>>>8&255,s.check=r(s.check,h,2,0)),D=$=0,s.mode=3;case 3:for(;D<32;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}s.head&&(s.head.time=$),512&s.flags&&(h[0]=255&$,h[1]=$>>>8&255,h[2]=$>>>16&255,h[3]=$>>>24&255,s.check=r(s.check,h,4,0)),D=$=0,s.mode=4;case 4:for(;D<16;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}s.head&&(s.head.xflags=255&$,s.head.os=$>>8),512&s.flags&&(h[0]=255&$,h[1]=$>>>8&255,s.check=r(s.check,h,2,0)),D=$=0,s.mode=5;case 5:if(1024&s.flags){for(;D<16;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}s.length=$,s.head&&(s.head.extra_len=$),512&s.flags&&(h[0]=255&$,h[1]=$>>>8&255,s.check=r(s.check,h,2,0)),D=$=0}else s.head&&(s.head.extra=null);s.mode=6;case 6:if(1024&s.flags&&(Z<(re=s.length)&&(re=Z),re&&(s.head&&(c=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Array(s.head.extra_len)),l.arraySet(s.head.extra,z,W,re,c)),512&s.flags&&(s.check=r(s.check,z,re,W)),Z-=re,W+=re,s.length-=re),s.length))break e;s.length=0,s.mode=7;case 7:if(2048&s.flags){if(Z===0)break e;for(re=0;c=z[W+re++],s.head&&c&&s.length<65536&&(s.head.name+=String.fromCharCode(c)),c&&re<Z;);if(512&s.flags&&(s.check=r(s.check,z,re,W)),Z-=re,W+=re,c)break e}else s.head&&(s.head.name=null);s.length=0,s.mode=8;case 8:if(4096&s.flags){if(Z===0)break e;for(re=0;c=z[W+re++],s.head&&c&&s.length<65536&&(s.head.comment+=String.fromCharCode(c)),c&&re<Z;);if(512&s.flags&&(s.check=r(s.check,z,re,W)),Z-=re,W+=re,c)break e}else s.head&&(s.head.comment=null);s.mode=9;case 9:if(512&s.flags){for(;D<16;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if($!==(65535&s.check)){T.msg="header crc mismatch",s.mode=30;break}D=$=0}s.head&&(s.head.hcrc=s.flags>>9&1,s.head.done=!0),T.adler=s.check=0,s.mode=12;break;case 10:for(;D<32;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}T.adler=s.check=n($),D=$=0,s.mode=11;case 11:if(s.havedict===0)return T.next_out=ne,T.avail_out=se,T.next_in=W,T.avail_in=Z,s.hold=$,s.bits=D,2;T.adler=s.check=1,s.mode=12;case 12:if(B===5||B===6)break e;case 13:if(s.last){$>>>=7&D,D-=7&D,s.mode=27;break}for(;D<3;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}switch(s.last=1&$,D-=1,3&($>>>=1)){case 0:s.mode=14;break;case 1:if(U(s),s.mode=20,B!==6)break;$>>>=2,D-=2;break e;case 2:s.mode=17;break;case 3:T.msg="invalid block type",s.mode=30}$>>>=2,D-=2;break;case 14:for($>>>=7&D,D-=7&D;D<32;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if((65535&$)!=($>>>16^65535)){T.msg="invalid stored block lengths",s.mode=30;break}if(s.length=65535&$,D=$=0,s.mode=15,B===6)break e;case 15:s.mode=16;case 16:if(re=s.length){if(Z<re&&(re=Z),se<re&&(re=se),re===0)break e;l.arraySet(Y,z,W,re,ne),Z-=re,W+=re,se-=re,ne+=re,s.length-=re;break}s.mode=12;break;case 17:for(;D<14;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if(s.nlen=257+(31&$),$>>>=5,D-=5,s.ndist=1+(31&$),$>>>=5,D-=5,s.ncode=4+(15&$),$>>>=4,D-=4,286<s.nlen||30<s.ndist){T.msg="too many length or distance symbols",s.mode=30;break}s.have=0,s.mode=18;case 18:for(;s.have<s.ncode;){for(;D<3;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}s.lens[M[s.have++]]=7&$,$>>>=3,D-=3}for(;s.have<19;)s.lens[M[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,S={bits:s.lenbits},ee=w(0,s.lens,0,19,s.lencode,0,s.work,S),s.lenbits=S.bits,ee){T.msg="invalid code lengths set",s.mode=30;break}s.have=0,s.mode=19;case 19:for(;s.have<s.nlen+s.ndist;){for(;G=(t=s.lencode[$&(1<<s.lenbits)-1])>>>16&255,j=65535&t,!((v=t>>>24)<=D);){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if(j<16)$>>>=v,D-=v,s.lens[s.have++]=j;else{if(j===16){for(e=v+2;D<e;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if($>>>=v,D-=v,s.have===0){T.msg="invalid bit length repeat",s.mode=30;break}c=s.lens[s.have-1],re=3+(3&$),$>>>=2,D-=2}else if(j===17){for(e=v+3;D<e;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}D-=v,c=0,re=3+(7&($>>>=v)),$>>>=3,D-=3}else{for(e=v+7;D<e;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}D-=v,c=0,re=11+(127&($>>>=v)),$>>>=7,D-=7}if(s.have+re>s.nlen+s.ndist){T.msg="invalid bit length repeat",s.mode=30;break}for(;re--;)s.lens[s.have++]=c}}if(s.mode===30)break;if(s.lens[256]===0){T.msg="invalid code -- missing end-of-block",s.mode=30;break}if(s.lenbits=9,S={bits:s.lenbits},ee=w(E,s.lens,0,s.nlen,s.lencode,0,s.work,S),s.lenbits=S.bits,ee){T.msg="invalid literal/lengths set",s.mode=30;break}if(s.distbits=6,s.distcode=s.distdyn,S={bits:s.distbits},ee=w(x,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,S),s.distbits=S.bits,ee){T.msg="invalid distances set",s.mode=30;break}if(s.mode=20,B===6)break e;case 20:s.mode=21;case 21:if(6<=Z&&258<=se){T.next_out=ne,T.avail_out=se,T.next_in=W,T.avail_in=Z,s.hold=$,s.bits=D,f(T,Q),ne=T.next_out,Y=T.output,se=T.avail_out,W=T.next_in,z=T.input,Z=T.avail_in,$=s.hold,D=s.bits,s.mode===12&&(s.back=-1);break}for(s.back=0;G=(t=s.lencode[$&(1<<s.lenbits)-1])>>>16&255,j=65535&t,!((v=t>>>24)<=D);){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if(G&&(240&G)==0){for(N=v,F=G,te=j;G=(t=s.lencode[te+(($&(1<<N+F)-1)>>N)])>>>16&255,j=65535&t,!(N+(v=t>>>24)<=D);){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}$>>>=N,D-=N,s.back+=N}if($>>>=v,D-=v,s.back+=v,s.length=j,G===0){s.mode=26;break}if(32&G){s.back=-1,s.mode=12;break}if(64&G){T.msg="invalid literal/length code",s.mode=30;break}s.extra=15&G,s.mode=22;case 22:if(s.extra){for(e=s.extra;D<e;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}s.length+=$&(1<<s.extra)-1,$>>>=s.extra,D-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=23;case 23:for(;G=(t=s.distcode[$&(1<<s.distbits)-1])>>>16&255,j=65535&t,!((v=t>>>24)<=D);){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if((240&G)==0){for(N=v,F=G,te=j;G=(t=s.distcode[te+(($&(1<<N+F)-1)>>N)])>>>16&255,j=65535&t,!(N+(v=t>>>24)<=D);){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}$>>>=N,D-=N,s.back+=N}if($>>>=v,D-=v,s.back+=v,64&G){T.msg="invalid distance code",s.mode=30;break}s.offset=j,s.extra=15&G,s.mode=24;case 24:if(s.extra){for(e=s.extra;D<e;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}s.offset+=$&(1<<s.extra)-1,$>>>=s.extra,D-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){T.msg="invalid distance too far back",s.mode=30;break}s.mode=25;case 25:if(se===0)break e;if(re=Q-se,s.offset>re){if((re=s.offset-re)>s.whave&&s.sane){T.msg="invalid distance too far back",s.mode=30;break}V=re>s.wnext?(re-=s.wnext,s.wsize-re):s.wnext-re,re>s.length&&(re=s.length),A=s.window}else A=Y,V=ne-s.offset,re=s.length;for(se<re&&(re=se),se-=re,s.length-=re;Y[ne++]=A[V++],--re;);s.length===0&&(s.mode=21);break;case 26:if(se===0)break e;Y[ne++]=s.length,se--,s.mode=21;break;case 27:if(s.wrap){for(;D<32;){if(Z===0)break e;Z--,$|=z[W++]<<D,D+=8}if(Q-=se,T.total_out+=Q,s.total+=Q,Q&&(T.adler=s.check=s.flags?r(s.check,Y,Q,ne-Q):y(s.check,Y,Q,ne-Q)),Q=se,(s.flags?$:n($))!==s.check){T.msg="incorrect data check",s.mode=30;break}D=$=0}s.mode=28;case 28:if(s.wrap&&s.flags){for(;D<32;){if(Z===0)break e;Z--,$+=z[W++]<<D,D+=8}if($!==(4294967295&s.total)){T.msg="incorrect length check",s.mode=30;break}D=$=0}s.mode=29;case 29:ee=1;break e;case 30:ee=-3;break e;case 31:return-4;case 32:default:return g}return T.next_out=ne,T.avail_out=se,T.next_in=W,T.avail_in=Z,s.hold=$,s.bits=D,(s.wsize||Q!==T.avail_out&&s.mode<30&&(s.mode<27||B!==4))&&J(T,T.output,T.next_out,Q-T.avail_out)?(s.mode=31,-4):(X-=T.avail_in,Q-=T.avail_out,T.total_in+=X,T.total_out+=Q,s.total+=Q,s.wrap&&Q&&(T.adler=s.check=s.flags?r(s.check,Y,Q,T.next_out-Q):y(s.check,Y,Q,T.next_out-Q)),T.data_type=s.bits+(s.last?64:0)+(s.mode===12?128:0)+(s.mode===20||s.mode===15?256:0),(X==0&&Q===0||B===4)&&ee===k&&(ee=-5),ee)},p.inflateEnd=function(T){if(!T||!T.state)return g;var B=T.state;return B.window&&(B.window=null),T.state=null,k},p.inflateGetHeader=function(T,B){var s;return T&&T.state?(2&(s=T.state).wrap)==0?g:((s.head=B).done=!1,k):g},p.inflateSetDictionary=function(T,B){var s,z=B.length;return T&&T.state?(s=T.state).wrap!==0&&s.mode!==11?g:s.mode===11&&y(1,B,z,0)!==s.check?-3:J(T,B,z,z)?(s.mode=31,-4):(s.havedict=1,k):g},p.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(i,o,p){var l=i("../utils/common"),y=[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],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],w=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];o.exports=function(E,x,k,g,O,b,C,n){var _,m,a,R,P,L,q,I,U,J=n.bits,T=0,B=0,s=0,z=0,Y=0,W=0,ne=0,Z=0,se=0,$=0,D=null,X=0,Q=new l.Buf16(16),re=new l.Buf16(16),V=null,A=0;for(T=0;T<=15;T++)Q[T]=0;for(B=0;B<g;B++)Q[x[k+B]]++;for(Y=J,z=15;1<=z&&Q[z]===0;z--);if(z<Y&&(Y=z),z===0)return O[b++]=20971520,O[b++]=20971520,n.bits=1,0;for(s=1;s<z&&Q[s]===0;s++);for(Y<s&&(Y=s),T=Z=1;T<=15;T++)if(Z<<=1,(Z-=Q[T])<0)return-1;if(0<Z&&(E===0||z!==1))return-1;for(re[1]=0,T=1;T<15;T++)re[T+1]=re[T]+Q[T];for(B=0;B<g;B++)x[k+B]!==0&&(C[re[x[k+B]]++]=B);if(L=E===0?(D=V=C,19):E===1?(D=y,X-=257,V=r,A-=257,256):(D=f,V=w,-1),T=s,P=b,ne=B=$=0,a=-1,R=(se=1<<(W=Y))-1,E===1&&852<se||E===2&&592<se)return 1;for(;;){for(q=T-ne,U=C[B]<L?(I=0,C[B]):C[B]>L?(I=V[A+C[B]],D[X+C[B]]):(I=96,0),_=1<<T-ne,s=m=1<<W;O[P+($>>ne)+(m-=_)]=q<<24|I<<16|U|0,m!==0;);for(_=1<<T-1;$&_;)_>>=1;if(_!==0?($&=_-1,$+=_):$=0,B++,--Q[T]==0){if(T===z)break;T=x[k+C[B]]}if(Y<T&&($&R)!==a){for(ne===0&&(ne=Y),P+=s,Z=1<<(W=T-ne);W+ne<z&&!((Z-=Q[W+ne])<=0);)W++,Z<<=1;if(se+=1<<W,E===1&&852<se||E===2&&592<se)return 1;O[a=$&R]=Y<<24|W<<16|P-b|0}}return $!==0&&(O[P+$]=T-ne<<24|64<<16|0),n.bits=Y,0}},{"../utils/common":41}],51:[function(i,o,p){o.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(i,o,p){var l=i("../utils/common"),y=0,r=1;function f(t){for(var h=t.length;0<=--h;)t[h]=0}var w=0,E=29,x=256,k=x+1+E,g=30,O=19,b=2*k+1,C=15,n=16,_=7,m=256,a=16,R=17,P=18,L=[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],q=[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],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=new Array(2*(k+2));f(J);var T=new Array(2*g);f(T);var B=new Array(512);f(B);var s=new Array(256);f(s);var z=new Array(E);f(z);var Y,W,ne,Z=new Array(g);function se(t,h,M,K,H){this.static_tree=t,this.extra_bits=h,this.extra_base=M,this.elems=K,this.max_length=H,this.has_stree=t&&t.length}function $(t,h){this.dyn_tree=t,this.max_code=0,this.stat_desc=h}function D(t){return t<256?B[t]:B[256+(t>>>7)]}function X(t,h){t.pending_buf[t.pending++]=255&h,t.pending_buf[t.pending++]=h>>>8&255}function Q(t,h,M){t.bi_valid>n-M?(t.bi_buf|=h<<t.bi_valid&65535,X(t,t.bi_buf),t.bi_buf=h>>n-t.bi_valid,t.bi_valid+=M-n):(t.bi_buf|=h<<t.bi_valid&65535,t.bi_valid+=M)}function re(t,h,M){Q(t,M[2*h],M[2*h+1])}function V(t,h){for(var M=0;M|=1&t,t>>>=1,M<<=1,0<--h;);return M>>>1}function A(t,h,M){var K,H,ie=new Array(C+1),oe=0;for(K=1;K<=C;K++)ie[K]=oe=oe+M[K-1]<<1;for(H=0;H<=h;H++){var ae=t[2*H+1];ae!==0&&(t[2*H]=V(ie[ae]++,ae))}}function v(t){var h;for(h=0;h<k;h++)t.dyn_ltree[2*h]=0;for(h=0;h<g;h++)t.dyn_dtree[2*h]=0;for(h=0;h<O;h++)t.bl_tree[2*h]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?X(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function j(t,h,M,K){var H=2*h,ie=2*M;return t[H]<t[ie]||t[H]===t[ie]&&K[h]<=K[M]}function N(t,h,M){for(var K=t.heap[M],H=M<<1;H<=t.heap_len&&(H<t.heap_len&&j(h,t.heap[H+1],t.heap[H],t.depth)&&H++,!j(h,K,t.heap[H],t.depth));)t.heap[M]=t.heap[H],M=H,H<<=1;t.heap[M]=K}function F(t,h,M){var K,H,ie,oe,ae=0;if(t.last_lit!==0)for(;K=t.pending_buf[t.d_buf+2*ae]<<8|t.pending_buf[t.d_buf+2*ae+1],H=t.pending_buf[t.l_buf+ae],ae++,K===0?re(t,H,h):(re(t,(ie=s[H])+x+1,h),(oe=L[ie])!==0&&Q(t,H-=z[ie],oe),re(t,ie=D(--K),M),(oe=q[ie])!==0&&Q(t,K-=Z[ie],oe)),ae<t.last_lit;);re(t,m,h)}function te(t,h){var M,K,H,ie=h.dyn_tree,oe=h.stat_desc.static_tree,ae=h.stat_desc.has_stree,ue=h.stat_desc.elems,fe=-1;for(t.heap_len=0,t.heap_max=b,M=0;M<ue;M++)ie[2*M]!==0?(t.heap[++t.heap_len]=fe=M,t.depth[M]=0):ie[2*M+1]=0;for(;t.heap_len<2;)ie[2*(H=t.heap[++t.heap_len]=fe<2?++fe:0)]=1,t.depth[H]=0,t.opt_len--,ae&&(t.static_len-=oe[2*H+1]);for(h.max_code=fe,M=t.heap_len>>1;1<=M;M--)N(t,ie,M);for(H=ue;M=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,ie,1),K=t.heap[1],t.heap[--t.heap_max]=M,t.heap[--t.heap_max]=K,ie[2*H]=ie[2*M]+ie[2*K],t.depth[H]=(t.depth[M]>=t.depth[K]?t.depth[M]:t.depth[K])+1,ie[2*M+1]=ie[2*K+1]=H,t.heap[1]=H++,N(t,ie,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(le,ye){var ke,ve,qe,pe,it,yt,Se=ye.dyn_tree,gn=ye.max_code,to=ye.stat_desc.static_tree,ro=ye.stat_desc.has_stree,no=ye.stat_desc.extra_bits,vn=ye.stat_desc.extra_base,We=ye.stat_desc.max_length,at=0;for(pe=0;pe<=C;pe++)le.bl_count[pe]=0;for(Se[2*le.heap[le.heap_max]+1]=0,ke=le.heap_max+1;ke<b;ke++)We<(pe=Se[2*Se[2*(ve=le.heap[ke])+1]+1]+1)&&(pe=We,at++),Se[2*ve+1]=pe,gn<ve||(le.bl_count[pe]++,it=0,vn<=ve&&(it=no[ve-vn]),yt=Se[2*ve],le.opt_len+=yt*(pe+it),ro&&(le.static_len+=yt*(to[2*ve+1]+it)));if(at!==0){do{for(pe=We-1;le.bl_count[pe]===0;)pe--;le.bl_count[pe]--,le.bl_count[pe+1]+=2,le.bl_count[We]--,at-=2}while(0<at);for(pe=We;pe!==0;pe--)for(ve=le.bl_count[pe];ve!==0;)gn<(qe=le.heap[--ke])||(Se[2*qe+1]!==pe&&(le.opt_len+=(pe-Se[2*qe+1])*Se[2*qe],Se[2*qe+1]=pe),ve--)}}(t,h),A(ie,fe,t.bl_count)}function c(t,h,M){var K,H,ie=-1,oe=h[1],ae=0,ue=7,fe=4;for(oe===0&&(ue=138,fe=3),h[2*(M+1)+1]=65535,K=0;K<=M;K++)H=oe,oe=h[2*(K+1)+1],++ae<ue&&H===oe||(ae<fe?t.bl_tree[2*H]+=ae:H!==0?(H!==ie&&t.bl_tree[2*H]++,t.bl_tree[2*a]++):ae<=10?t.bl_tree[2*R]++:t.bl_tree[2*P]++,ie=H,fe=(ae=0)===oe?(ue=138,3):H===oe?(ue=6,3):(ue=7,4))}function ee(t,h,M){var K,H,ie=-1,oe=h[1],ae=0,ue=7,fe=4;for(oe===0&&(ue=138,fe=3),K=0;K<=M;K++)if(H=oe,oe=h[2*(K+1)+1],!(++ae<ue&&H===oe)){if(ae<fe)for(;re(t,H,t.bl_tree),--ae!=0;);else H!==0?(H!==ie&&(re(t,H,t.bl_tree),ae--),re(t,a,t.bl_tree),Q(t,ae-3,2)):ae<=10?(re(t,R,t.bl_tree),Q(t,ae-3,3)):(re(t,P,t.bl_tree),Q(t,ae-11,7));ie=H,fe=(ae=0)===oe?(ue=138,3):H===oe?(ue=6,3):(ue=7,4)}}f(Z);var S=!1;function e(t,h,M,K){Q(t,(w<<1)+(K?1:0),3),function(H,ie,oe,ae){G(H),X(H,oe),X(H,~oe),l.arraySet(H.pending_buf,H.window,ie,oe,H.pending),H.pending+=oe}(t,h,M)}p._tr_init=function(t){S||(function(){var h,M,K,H,ie,oe=new Array(C+1);for(H=K=0;H<E-1;H++)for(z[H]=K,h=0;h<1<<L[H];h++)s[K++]=H;for(s[K-1]=H,H=ie=0;H<16;H++)for(Z[H]=ie,h=0;h<1<<q[H];h++)B[ie++]=H;for(ie>>=7;H<g;H++)for(Z[H]=ie<<7,h=0;h<1<<q[H]-7;h++)B[256+ie++]=H;for(M=0;M<=C;M++)oe[M]=0;for(h=0;h<=143;)J[2*h+1]=8,h++,oe[8]++;for(;h<=255;)J[2*h+1]=9,h++,oe[9]++;for(;h<=279;)J[2*h+1]=7,h++,oe[7]++;for(;h<=287;)J[2*h+1]=8,h++,oe[8]++;for(A(J,k+1,oe),h=0;h<g;h++)T[2*h+1]=5,T[2*h]=V(h,5);Y=new se(J,L,x+1,k,C),W=new se(T,q,0,g,C),ne=new se(new Array(0),I,0,O,_)}(),S=!0),t.l_desc=new $(t.dyn_ltree,Y),t.d_desc=new $(t.dyn_dtree,W),t.bl_desc=new $(t.bl_tree,ne),t.bi_buf=0,t.bi_valid=0,v(t)},p._tr_stored_block=e,p._tr_flush_block=function(t,h,M,K){var H,ie,oe=0;0<t.level?(t.strm.data_type===2&&(t.strm.data_type=function(ae){var ue,fe=4093624447;for(ue=0;ue<=31;ue++,fe>>>=1)if(1&fe&&ae.dyn_ltree[2*ue]!==0)return y;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return r;for(ue=32;ue<x;ue++)if(ae.dyn_ltree[2*ue]!==0)return r;return y}(t)),te(t,t.l_desc),te(t,t.d_desc),oe=function(ae){var ue;for(c(ae,ae.dyn_ltree,ae.l_desc.max_code),c(ae,ae.dyn_dtree,ae.d_desc.max_code),te(ae,ae.bl_desc),ue=O-1;3<=ue&&ae.bl_tree[2*U[ue]+1]===0;ue--);return ae.opt_len+=3*(ue+1)+5+5+4,ue}(t),H=t.opt_len+3+7>>>3,(ie=t.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=M+5,M+4<=H&&h!==-1?e(t,h,M,K):t.strategy===4||ie===H?(Q(t,2+(K?1:0),3),F(t,J,T)):(Q(t,4+(K?1:0),3),function(ae,ue,fe,le){var ye;for(Q(ae,ue-257,5),Q(ae,fe-1,5),Q(ae,le-4,4),ye=0;ye<le;ye++)Q(ae,ae.bl_tree[2*U[ye]+1],3);ee(ae,ae.dyn_ltree,ue-1),ee(ae,ae.dyn_dtree,fe-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,oe+1),F(t,t.dyn_ltree,t.dyn_dtree)),v(t),K&&G(t)},p._tr_tally=function(t,h,M){return t.pending_buf[t.d_buf+2*t.last_lit]=h>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&h,t.pending_buf[t.l_buf+t.last_lit]=255&M,t.last_lit++,h===0?t.dyn_ltree[2*M]++:(t.matches++,h--,t.dyn_ltree[2*(s[M]+x+1)]++,t.dyn_dtree[2*D(h)]++),t.last_lit===t.lit_bufsize-1},p._tr_align=function(t){Q(t,2,3),re(t,m,J),function(h){h.bi_valid===16?(X(h,h.bi_buf),h.bi_buf=0,h.bi_valid=0):8<=h.bi_valid&&(h.pending_buf[h.pending++]=255&h.bi_buf,h.bi_buf>>=8,h.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(i,o,p){o.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(i,o,p){(function(l){(function(y,r){if(!y.setImmediate){var f,w,E,x,k=1,g={},O=!1,b=y.document,C=Object.getPrototypeOf&&Object.getPrototypeOf(y);C=C&&C.setTimeout?C:y,f={}.toString.call(y.process)==="[object process]"?function(a){ce.nextTick(function(){_(a)})}:function(){if(y.postMessage&&!y.importScripts){var a=!0,R=y.onmessage;return y.onmessage=function(){a=!1},y.postMessage("","*"),y.onmessage=R,a}}()?(x="setImmediate$"+Math.random()+"$",y.addEventListener?y.addEventListener("message",m,!1):y.attachEvent("onmessage",m),function(a){y.postMessage(x+a,"*")}):y.MessageChannel?((E=new MessageChannel).port1.onmessage=function(a){_(a.data)},function(a){E.port2.postMessage(a)}):b&&"onreadystatechange"in b.createElement("script")?(w=b.documentElement,function(a){var R=b.createElement("script");R.onreadystatechange=function(){_(a),R.onreadystatechange=null,w.removeChild(R),R=null},w.appendChild(R)}):function(a){setTimeout(_,0,a)},C.setImmediate=function(a){typeof a!="function"&&(a=new Function(""+a));for(var R=new Array(arguments.length-1),P=0;P<R.length;P++)R[P]=arguments[P+1];var L={callback:a,args:R};return g[k]=L,f(k),k++},C.clearImmediate=n}function n(a){delete g[a]}function _(a){if(O)setTimeout(_,0,a);else{var R=g[a];if(R){O=!0;try{(function(P){var L=P.callback,q=P.args;switch(q.length){case 0:L();break;case 1:L(q[0]);break;case 2:L(q[0],q[1]);break;case 3:L(q[0],q[1],q[2]);break;default:L.apply(r,q)}})(R)}finally{n(a),O=!1}}}}function m(a){a.source===y&&typeof a.data=="string"&&a.data.indexOf(x)===0&&_(+a.data.slice(x.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof Ee<"u"?Ee:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Jr)),Jr.exports}var Ys=Zs();const Js=Oa(Ys);var Ze={exports:{}},Qr,ga;function Qs(){if(ga)return Qr;ga=1;var d={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function u(i){return i&&i.replace?i.replace(/([&"<>'])/g,function(o,p){return d[p]}):i}return Qr=u,Qr}var va;function eu(){if(va)return Ze.exports;va=1;var d=Qs(),u=pn().Stream,i="    ";function o(w,E){typeof E!="object"&&(E={indent:E});var x=E.stream?new u:null,k="",g=!1,O=E.indent?E.indent===!0?i:E.indent:"",b=!0;function C(R){b?ce.nextTick(R):R()}function n(R,P){if(P!==void 0&&(k+=P),R&&!g&&(x=x||new u,g=!0),R&&g){var L=k;C(function(){x.emit("data",L)}),k=""}}function _(R,P){r(n,y(R,O,O?1:0),P)}function m(){if(x){var R=k;C(function(){x.emit("data",R),x.emit("end"),x.readable=!1,x.emit("close")})}}function a(R){var P=R.encoding||"UTF-8",L={version:"1.0",encoding:P};R.standalone&&(L.standalone=R.standalone),_({"?xml":{_attr:L}}),k=k.replace("/>","?>")}return C(function(){b=!1}),E.declaration&&a(E.declaration),w&&w.forEach?w.forEach(function(R,P){var L;P+1===w.length&&(L=m),_(R,L)}):_(w,m),x?(x.readable=!0,x):k}function p(){var w=Array.prototype.slice.call(arguments),E={_elem:y(w)};return E.push=function(x){if(!this.append)throw new Error("not assigned to a parent!");var k=this,g=this._elem.indent;r(this.append,y(x,g,this._elem.icount+(g?1:0)),function(){k.append(!0)})},E.close=function(x){x!==void 0&&this.push(x),this.end&&this.end()},E}function l(w,E){return new Array(E||0).join(w||"")}function y(w,E,x){x=x||0;var k=l(E,x),g,O=w,b=!1;if(typeof w=="object"){var C=Object.keys(w);if(g=C[0],O=w[g],O&&O._elem)return O._elem.name=g,O._elem.icount=x,O._elem.indent=E,O._elem.indents=k,O._elem.interrupt=O,O._elem}var n=[],_=[],m;function a(R){var P=Object.keys(R);P.forEach(function(L){n.push(f(L,R[L]))})}switch(typeof O){case"object":if(O===null)break;O._attr&&a(O._attr),O._cdata&&_.push(("<![CDATA["+O._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),O.forEach&&(m=!1,_.push(""),O.forEach(function(R){if(typeof R=="object"){var P=Object.keys(R)[0];P=="_attr"?a(R._attr):_.push(y(R,E,x+1))}else _.pop(),m=!0,_.push(d(R))}),m||_.push(""));break;default:_.push(d(O))}return{name:g,interrupt:b,attributes:n,content:_,icount:x,indents:k,indent:E}}function r(w,E,x){if(typeof E!="object")return w(!1,E);var k=E.interrupt?1:E.content.length;function g(){for(;E.content.length;){var b=E.content.shift();if(b!==void 0){if(O(b))return;r(w,b)}}w(!1,(k>1?E.indents:"")+(E.name?"</"+E.name+">":"")+(E.indent&&!x?`
`:"")),x&&x()}function O(b){return b.interrupt?(b.interrupt.append=w,b.interrupt.end=g,b.interrupt=!1,w(!0),!0):!1}if(w(!1,E.indents+(E.name?"<"+E.name:"")+(E.attributes.length?" "+E.attributes.join(" "):"")+(k?E.name?">":"":E.name?"/>":"")+(E.indent&&k>1?`
`:"")),!k)return w(!1,E.indent?`
`:"");O(E)||g()}function f(w,E){return w+'="'+d(E)+'"'}return Ze.exports=o,Ze.exports.element=Ze.exports.Element=p,Ze.exports}var tu=eu();const de=Oa(tu),Ye=0,en=32,ru=32,nu=(d,u)=>{const i=u.replace(/-/g,"");if(i.length!==ru)throw new Error(`Error: Cannot extract GUID from font filename: ${u}`);const p=i.replace(/(..)/g,"$1 ").trim().split(" ").map(f=>parseInt(f,16));p.reverse();const y=d.slice(Ye,en).map((f,w)=>f^p[w%p.length]),r=new Uint8Array(Ye+y.length+Math.max(0,d.length-en));return r.set(d.slice(0,Ye)),r.set(y,Ye),r.set(d.slice(en),Ye+y.length),r};class iu{format(u,i={stack:[]}){const o=u.prepForXml(i);if(o)return o;throw Error("XMLComponent did not format correctly")}}class au{replace(u,i,o){let p=u;return i.forEach((l,y)=>{p=p.replace(new RegExp(`{${l.fileName}}`,"g"),(o+y).toString())}),p}getMediaData(u,i){return i.Array.filter(o=>u.search(`{${o.fileName}}`)>0)}}class ou{replace(u,i){let o=u;for(const p of i)o=o.replace(new RegExp(`{${p.reference}-${p.instance}}`,"g"),p.numId.toString());return o}}class su{constructor(){Re(this,"formatter"),Re(this,"imageReplacer"),Re(this,"numberingReplacer"),this.formatter=new iu,this.imageReplacer=new au,this.numberingReplacer=new ou}compile(u,i,o=[]){const p=new Js,l=this.xmlifyFile(u,i),y=new Map(Object.entries(l));for(const[,r]of y)if(Array.isArray(r))for(const f of r)p.file(f.path,f.data);else p.file(r.path,r.data);for(const r of o)p.file(r.path,r.data);for(const r of u.Media.Array)r.type!=="svg"?p.file(`word/media/${r.fileName}`,r.data):(p.file(`word/media/${r.fileName}`,r.data),p.file(`word/media/${r.fallback.fileName}`,r.fallback.data));for(const{data:r,name:f,fontKey:w}of u.FontTable.fontOptionsWithKey){const[E]=f.split(".");p.file(`word/fonts/${E}.odttf`,nu(r,w))}return p}xmlifyFile(u,i){const o=u.Document.Relationships.RelationshipCount+1,p=de(this.formatter.format(u.Document.View,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=u.Comments.Relationships.RelationshipCount+1,y=de(this.formatter.format(u.Comments,{viewWrapper:{View:u.Comments,Relationships:u.Comments.Relationships},file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),r=this.imageReplacer.getMediaData(p,u.Media),f=this.imageReplacer.getMediaData(y,u.Media);return{Relationships:{data:(()=>(r.forEach((w,E)=>{u.Document.Relationships.createRelationship(o+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${w.fileName}`)}),u.Document.Relationships.createRelationship(u.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),de(this.formatter.format(u.Document.Relationships,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const w=this.imageReplacer.replace(p,r,o);return this.numberingReplacer.replace(w,u.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const w=de(this.formatter.format(u.Styles,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(w,u.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:de(this.formatter.format(u.CoreProperties,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:de(this.formatter.format(u.Numbering,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:de(this.formatter.format(u.FileRelationships,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:u.Headers.map((w,E)=>{const x=de(this.formatter.format(w.View,{viewWrapper:w,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(x,u.Media).forEach((g,O)=>{w.Relationships.createRelationship(O,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),{data:de(this.formatter.format(w.Relationships,{viewWrapper:w,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${E+1}.xml.rels`}}),FooterRelationships:u.Footers.map((w,E)=>{const x=de(this.formatter.format(w.View,{viewWrapper:w,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(x,u.Media).forEach((g,O)=>{w.Relationships.createRelationship(O,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),{data:de(this.formatter.format(w.Relationships,{viewWrapper:w,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${E+1}.xml.rels`}}),Headers:u.Headers.map((w,E)=>{const x=de(this.formatter.format(w.View,{viewWrapper:w,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),k=this.imageReplacer.getMediaData(x,u.Media),g=this.imageReplacer.replace(x,k,0);return{data:this.numberingReplacer.replace(g,u.Numbering.ConcreteNumbering),path:`word/header${E+1}.xml`}}),Footers:u.Footers.map((w,E)=>{const x=de(this.formatter.format(w.View,{viewWrapper:w,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),k=this.imageReplacer.getMediaData(x,u.Media),g=this.imageReplacer.replace(x,k,0);return{data:this.numberingReplacer.replace(g,u.Numbering.ConcreteNumbering),path:`word/footer${E+1}.xml`}}),ContentTypes:{data:de(this.formatter.format(u.ContentTypes,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:de(this.formatter.format(u.CustomProperties,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:de(this.formatter.format(u.AppProperties,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:de(this.formatter.format(u.FootNotes.View,{viewWrapper:u.FootNotes,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:de(this.formatter.format(u.FootNotes.Relationships,{viewWrapper:u.FootNotes,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:de(this.formatter.format(u.Settings,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const w=this.imageReplacer.replace(y,f,l);return this.numberingReplacer.replace(w,u.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(()=>(f.forEach((w,E)=>{u.Comments.Relationships.createRelationship(l+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${w.fileName}`)}),de(this.formatter.format(u.Comments.Relationships,{viewWrapper:{View:u.Comments,Relationships:u.Comments.Relationships},file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/comments.xml.rels"},FontTable:{data:de(this.formatter.format(u.FontTable.View,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(()=>de(this.formatter.format(u.FontTable.Relationships,{viewWrapper:u.Document,file:u,stack:[]}),{indent:i,declaration:{encoding:"UTF-8"}}))(),path:"word/_rels/fontTable.xml.rels"}}}}const uu={NONE:"",WITH_2_BLANKS:"  ",WITH_4_BLANKS:"    ",WITH_TAB:"	"},_a=d=>d===!0?uu.WITH_2_BLANKS:d===!1?void 0:d,fu=class Pe{static pack(u,i,o){return Fo(this,arguments,function*(p,l,y,r=[]){return this.compiler.compile(p,_a(y),r).generateAsync({type:l,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(u,i,o=[]){return Pe.pack(u,"string",i,o)}static toBuffer(u,i,o=[]){return Pe.pack(u,"nodebuffer",i,o)}static toBase64String(u,i,o=[]){return Pe.pack(u,"base64",i,o)}static toBlob(u,i,o=[]){return Pe.pack(u,"blob",i,o)}static toArrayBuffer(u,i,o=[]){return Pe.pack(u,"arraybuffer",i,o)}static toStream(u,i,o=[]){const p=new Xs.Stream;return this.compiler.compile(u,_a(i),o).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(y=>{p.emit("data",y),p.emit("end")}),p}};Re(fu,"compiler",new su);const lu=()=>{const{handleImportWord:d,files:u,loading:i,htmlContent:o}=ao();return{handleExport:(y,r="\u5BFC\u51FA\u6587\u6863")=>{const f=`
	          <html xmlns:o='urn:schemas-microsoft-com:office:office'
	                xmlns:w='urn:schemas-microsoft-com:office:word'
	                xmlns='http://www.w3.org/TR/REC-html40'>
	          <head>
	              <meta charset='utf-8'>
	              <title>\u5BFC\u51FA\u6587\u6863</title>
	                  <style>
	                body {
	                  font-family: 'Microsoft YaHei', Arial, sans-serif;
	                  line-height: 1.6;
	                  margin: 20px;
	                }
	                h1 {
	                  color: #2c3e50;
	                  border-bottom: 3px solid #3498db;
	                  padding-bottom: 10px;
	                  margin-bottom: 20px;
	                }
	                h2 {
	                  color: #34495e;
	                  margin-top: 25px;
	                  margin-bottom: 15px;
	                }
	                h3 {
	                  color: #34495e;
	                  margin-top: 20px;
	                  margin-bottom: 10px;
	                }
	                p {
	                  margin-bottom: 15px;
	                  text-align: justify;
	                }
	                table {
	                  width: 100%;
	                  border-collapse: collapse;
	                  margin: 20px 0;
	                }
	                table th, table td {
	                  border: 1px solid #ddd;
	                  padding: 12px;
	                  text-align: left;
	                }
	                table th {
	                  background: #f8f9fa;
	                  font-weight: bold;
	                }
	                ul, ol {
	                  margin: 15px 0;
	                  padding-left: 30px;
	                }
	                li {
	                  margin-bottom: 8px;
	                }
	                blockquote {
	                  border-left: 4px solid #3498db;
	                  padding-left: 20px;
	                  margin: 20px 0;
	                  background: #f8f9fa;
	                  padding: 15px 20px;
	                  border-radius: 0 5px 5px 0;
	                }
	              </style>
	          </head>
	          <body>${y}</body>
	          </html>
	        `;Sa(f).then(w=>{Ta.exports.saveAs(w,`${r}.docx`)})},handleImport:()=>{d()},importHtmlContent:o}},du=lu;export{du as u};
