@deephaven/code-studio 0.35.1-beta.1 → 0.35.1-react-spectrum-provider.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1311,4 +1311,4 @@ You can debug this error by doing:
1311
1311
  myDatabase.on('error', function (err) { debugger; });
1312
1312
  Please double-check your map/reduce function.`),Q5("error",t)}}function n9e(e,t,r,n){function i(M,G,Z){try{G(Z)}catch(ee){i9(M,ee)}}function a(M,G,Z,ee,R){try{return{output:G(Z,ee,R)}}catch(re){return i9(M,re),{error:re}}}function o(M,G){var Z=fa(M.key,G.key);return Z!==0?Z:fa(M.value,G.value)}function u(M,G,Z){return Z=Z||0,typeof G=="number"?M.slice(Z,G+Z):Z>0?M.slice(Z):M}function s(M){var G=M.value,Z=G&&typeof G=="object"&&G._id||M.id;return Z}function l(M){M.rows.forEach(function(G){var Z=G.doc&&G.doc._attachments;Z&&Object.keys(Z).forEach(function(ee){var R=Z[ee];Z[ee].data=O7e(R.data,R.content_type)})})}function f(M){return function(G){return M.include_docs&&M.attachments&&M.binary&&l(G),G}}function d(M,G,Z,ee){var R=G[M];typeof R<"u"&&(ee&&(R=encodeURIComponent(JSON.stringify(R))),Z.push(M+"="+R))}function h(M){if(typeof M<"u"){var G=Number(M);return!isNaN(G)&&G===parseInt(M,10)?G:M}}function p(M){return M.group_level=h(M.group_level),M.limit=h(M.limit),M.skip=h(M.skip),M}function v(M){if(M){if(typeof M!="number")return new wh('Invalid value for integer: "'+M+'"');if(M<0)return new wh('Invalid value for positive integer: "'+M+'"')}}function S(M,G){var Z=M.descending?"endkey":"startkey",ee=M.descending?"startkey":"endkey";if(typeof M[Z]<"u"&&typeof M[ee]<"u"&&fa(M[Z],M[ee])>0)throw new wh("No rows can match your key range, reverse your start_key and end_key or set {descending : true}");if(G.reduce&&M.reduce!==!1){if(M.include_docs)throw new wh("{include_docs:true} is invalid for reduce");if(M.keys&&M.keys.length>1&&!M.group&&!M.group_level)throw new wh("Multi-key fetches for reduce views must use {group: true}")}["group_level","limit","skip"].forEach(function(R){var re=v(M[R]);if(re)throw re})}function y(M,G,Z){var ee=[],R,re="GET",se,ge;if(d("reduce",Z,ee),d("include_docs",Z,ee),d("attachments",Z,ee),d("limit",Z,ee),d("descending",Z,ee),d("group",Z,ee),d("group_level",Z,ee),d("skip",Z,ee),d("stale",Z,ee),d("conflicts",Z,ee),d("startkey",Z,ee,!0),d("start_key",Z,ee,!0),d("endkey",Z,ee,!0),d("end_key",Z,ee,!0),d("inclusive_end",Z,ee),d("key",Z,ee,!0),d("update_seq",Z,ee),ee=ee.join("&"),ee=ee===""?"":"?"+ee,typeof Z.keys<"u"){var Ce=2e3,ke="keys="+encodeURIComponent(JSON.stringify(Z.keys));ke.length+ee.length+1<=Ce?ee+=(ee[0]==="?"?"&":"?")+ke:(re="POST",typeof G=="string"?R={keys:Z.keys}:G.keys=Z.keys)}if(typeof G=="string"){var Ke=E3(G);return M.fetch("_design/"+Ke[0]+"/_view/"+Ke[1]+ee,{headers:new T_({"Content-Type":"application/json"}),method:re,body:JSON.stringify(R)}).then(function(Ee){return se=Ee.ok,ge=Ee.status,Ee.json()}).then(function(Ee){if(!se)throw Ee.status=ge,G5(Ee);return Ee.rows.forEach(function(Se){if(Se.value&&Se.value.error&&Se.value.error==="builtin_reduce_error")throw new Error(Se.reason)}),Ee}).then(f(Z))}return R=R||{},Object.keys(G).forEach(function(Ee){Array.isArray(G[Ee])?R[Ee]=G[Ee]:R[Ee]=G[Ee].toString()}),M.fetch("_temp_view"+ee,{headers:new T_({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify(R)}).then(function(Ee){return se=Ee.ok,ge=Ee.status,Ee.json()}).then(function(Ee){if(!se)throw Ee.status=ge,G5(Ee);return Ee}).then(f(Z))}function m(M,G,Z){return new Promise(function(ee,R){M._query(G,Z,function(re,se){if(re)return R(re);ee(se)})})}function x(M){return new Promise(function(G,Z){M._viewCleanup(function(ee,R){if(ee)return Z(ee);G(R)})})}function w(M){return function(G){if(G.status===404)return M;throw G}}function E(M,G,Z){var ee="_local/doc_"+M,R={_id:ee,keys:[]},re=Z.get(M),se=re[0],ge=re[1];function Ce(){return r9e(ge)?Promise.resolve(R):G.db.get(ee).catch(w(R))}function ke(Ee){return Ee.keys.length?G.db.allDocs({keys:Ee.keys,include_docs:!0}):Promise.resolve({rows:[]})}function Ke(Ee,Se){for(var We=[],bt=new N1,Ae=0,X=Se.rows.length;Ae<X;Ae++){var oe=Se.rows[Ae],B=oe.doc;if(B&&(We.push(B),bt.add(B._id),B._deleted=!se.has(B._id),!B._deleted)){var D=se.get(B._id);"value"in D&&(B.value=D.value)}}var j=S3(se);return j.forEach(function(te){if(!bt.has(te)){var Me={_id:te},tt=se.get(te);"value"in tt&&(Me.value=tt.value),We.push(Me)}}),Ee.keys=J7(j.concat(Ee.keys)),We.push(Ee),We}return Ce().then(function(Ee){return ke(Ee).then(function(Se){return Ke(Ee,Se)})})}function A(M,G,Z){var ee="_local/lastSeq";return M.db.get(ee).catch(w({_id:ee,seq:0})).then(function(R){var re=S3(G);return Promise.all(re.map(function(se){return E(se,M,G)})).then(function(se){var ge=Q7(se);return R.seq=Z,ge.push(R),M.db.bulkDocs({docs:ge})})})}function g(M){var G=typeof M=="string"?M:M.name,Z=r9[G];return Z||(Z=r9[G]=new F1),Z}function F(M,G){return _3(g(M),function(){return P(M,G)})()}function P(M,G){var Z,ee;function R(Ae,X){var oe={id:ee._id,key:op(Ae)};typeof X<"u"&&X!==null&&(oe.value=op(X)),Z.push(oe)}var re=t(M.mapFun,R),se=M.seq||0;function ge(Ae,X){return function(){return A(M,Ae,X)}}let Ce=0,ke={view:M.name,indexed_docs:Ce};M.sourceDB.emit("indexing",ke);var Ke=new F1;function Ee(){return M.sourceDB.changes({return_docs:!0,conflicts:!0,include_docs:!0,style:"all_docs",since:se,limit:G.changes_batch_size}).then(Se)}function Se(Ae){var X=Ae.results;if(!X.length)return;var oe=We(X);Ke.add(ge(oe,se)),Ce=Ce+X.length;let B={view:M.name,last_seq:Ae.last_seq,results_count:X.length,indexed_docs:Ce};if(M.sourceDB.emit("indexing",B),!(X.length<G.changes_batch_size))return Ee()}function We(Ae){for(var X=new Hv,oe=0,B=Ae.length;oe<B;oe++){var D=Ae[oe];if(D.doc._id[0]!=="_"){Z=[],ee=D.doc,ee._deleted||i(M.sourceDB,re,ee),Z.sort(o);var j=bt(Z);X.set(D.doc._id,[j,D.changes])}se=D.seq}return X}function bt(Ae){for(var X=new Hv,oe,B=0,D=Ae.length;B<D;B++){var j=Ae[B],te=[j.key,j.id];B>0&&fa(j.key,oe)===0&&te.push(B),X.set(el(te),j),oe=j.key}return X}return Ee().then(function(){return Ke.finish()}).then(function(){M.seq=se})}function N(M,G,Z){Z.group_level===0&&delete Z.group_level;var ee=Z.group||Z.group_level,R=r(M.reduceFun),re=[],se=isNaN(Z.group_level)?Number.POSITIVE_INFINITY:Z.group_level;G.forEach(function(Ee){var Se=re[re.length-1],We=ee?Ee.key:null;if(ee&&Array.isArray(We)&&(We=We.slice(0,se)),Se&&fa(Se.groupKey,We)===0){Se.keys.push([Ee.key,Ee.id]),Se.values.push(Ee.value);return}re.push({keys:[[Ee.key,Ee.id]],values:[Ee.value],groupKey:We})}),G=[];for(var ge=0,Ce=re.length;ge<Ce;ge++){var ke=re[ge],Ke=a(M.sourceDB,R,ke.keys,ke.values,!1);if(Ke.error&&Ke.error instanceof w4)throw Ke.error;G.push({value:Ke.error?null:Ke.output,key:ke.groupKey})}return{rows:u(G,Z.limit,Z.skip)}}function V(M,G){return _3(g(M),function(){return H(M,G)})()}function H(M,G){var Z,ee=M.reduceFun&&G.reduce!==!1,R=G.skip||0;typeof G.keys<"u"&&!G.keys.length&&(G.limit=0,delete G.keys);function re(Ae){return Ae.include_docs=!0,M.db.allDocs(Ae).then(function(X){return Z=X.total_rows,X.rows.map(function(oe){if("value"in oe.doc&&typeof oe.doc.value=="object"&&oe.doc.value!==null){var B=Object.keys(oe.doc.value).sort(),D=["id","key","value"];if(!(B<D||B>D))return oe.doc.value}var j=M7e(oe.doc._id);return{key:j[0],id:j[1],value:"value"in oe.doc?oe.doc.value:null}})})}function se(Ae){var X;if(ee?X=N(M,Ae,G):typeof G.keys>"u"?X={total_rows:Z,offset:R,rows:Ae}:X={total_rows:Z,offset:R,rows:u(Ae,G.limit,G.skip)},G.update_seq&&(X.update_seq=M.seq),G.include_docs){var oe=J7(Ae.map(s));return M.sourceDB.allDocs({keys:oe,include_docs:!0,conflicts:G.conflicts,attachments:G.attachments,binary:G.binary}).then(function(B){var D=new Hv;return B.rows.forEach(function(j){D.set(j.id,j.doc)}),Ae.forEach(function(j){var te=s(j),Me=D.get(te);Me&&(j.doc=Me)}),X})}else return X}if(typeof G.keys<"u"){var ge=G.keys,Ce=ge.map(function(Ae){var X={startkey:el([Ae]),endkey:el([Ae,{}])};return G.update_seq&&(X.update_seq=!0),re(X)});return Promise.all(Ce).then(Q7).then(se)}else{var ke={descending:G.descending};G.update_seq&&(ke.update_seq=!0);var Ke,Ee;if("start_key"in G&&(Ke=G.start_key),"startkey"in G&&(Ke=G.startkey),"end_key"in G&&(Ee=G.end_key),"endkey"in G&&(Ee=G.endkey),typeof Ke<"u"&&(ke.startkey=G.descending?el([Ke,{}]):el([Ke])),typeof Ee<"u"){var Se=G.inclusive_end!==!1;G.descending&&(Se=!Se),ke.endkey=el(Se?[Ee,{}]:[Ee])}if(typeof G.key<"u"){var We=el([G.key]),bt=el([G.key,{}]);ke.descending?(ke.endkey=We,ke.startkey=bt):(ke.startkey=We,ke.endkey=bt)}return ee||(typeof G.limit=="number"&&(ke.limit=G.limit),ke.skip=R),re(ke).then(se)}}function ie(M){return M.fetch("_view_cleanup",{headers:new T_({"Content-Type":"application/json"}),method:"POST"}).then(function(G){return G.json()})}function pe(M){return M.get("_local/"+e).then(function(G){var Z=new Hv;Object.keys(G.views).forEach(function(R){var re=E3(R),se="_design/"+re[0],ge=re[1],Ce=Z.get(se);Ce||(Ce=new N1,Z.set(se,Ce)),Ce.add(ge)});var ee={keys:S3(Z),include_docs:!0};return M.allDocs(ee).then(function(R){var re={};R.rows.forEach(function(Ce){var ke=Ce.key.substring(8);Z.get(Ce.key).forEach(function(Ke){var Ee=ke+"/"+Ke;G.views[Ee]||(Ee=Ke);var Se=Object.keys(G.views[Ee]),We=Ce.doc&&Ce.doc.views&&Ce.doc.views[Ke];Se.forEach(function(bt){re[bt]=re[bt]||We})})});var se=Object.keys(re).filter(function(Ce){return!re[Ce]}),ge=se.map(function(Ce){return _3(g(Ce),function(){return new M.constructor(Ce,M.__opts).destroy()})()});return Promise.all(ge).then(function(){return{ok:!0}})})},w({ok:!0}))}function de(M,G,Z){if(typeof M._query=="function")return m(M,G,Z);if(up(M))return y(M,G,Z);var ee={changes_batch_size:M.__opts.view_update_changes_batch_size||t9e};if(typeof G!="string")return S(Z,G),n9.add(function(){var Ce=t9(M,"temp_view/temp_view",G.map,G.reduce,!0,e);return Ce.then(function(ke){return J7e(F(ke,ee).then(function(){return V(ke,Z)}),function(){return ke.db.destroy()})})}),n9.finish();var R=G,re=E3(R),se=re[0],ge=re[1];return M.get("_design/"+se).then(function(Ce){var ke=Ce.views&&Ce.views[ge];if(!ke)throw new b4("ddoc "+Ce._id+" has no view named "+ge);n(Ce,ge),S(Z,ke);var Ke=t9(M,R,ke.map,ke.reduce,!1,e);return Ke.then(function(Ee){return Z.stale==="ok"||Z.stale==="update_after"?(Z.stale==="update_after"&&Hg(function(){F(Ee,ee)}),V(Ee,Z)):F(Ee,ee).then(function(){return V(Ee,Z)})})})}function Be(M,G,Z){var ee=this;typeof G=="function"&&(Z=G,G={}),G=G?p(G):{},typeof M=="function"&&(M={map:M});var R=Promise.resolve().then(function(){return de(ee,M,G)});return nte(R,Z),R}var Fe=Q7e(function(){var M=this;return typeof M._viewCleanup=="function"?x(M):up(M)?ie(M):pe(M)});return{query:Be,viewCleanup:Fe}}function NC(e,t){for(var r=e,n=0,i=t.length;n<i;n++){var a=t[n];if(r=r[a],!r)break}return r}function i9e(e,t,r){for(var n=0,i=t.length;n<i-1;n++){var a=t[n];e=e[a]=e[a]||{}}e[t[i-1]]=r}function x4(e,t){return e<t?-1:e>t?1:0}function gm(e){for(var t=[],r="",n=0,i=e.length;n<i;n++){var a=e[n];n>0&&e[n-1]==="\\"&&(a==="$"||a===".")?r=r.substring(0,r.length-1)+a:a==="."?(t.push(r),r=""):r+=a}return t.push(r),t}var a9e=["$or","$nor","$not"];function ite(e){return a9e.indexOf(e)>-1}function Wu(e){return Object.keys(e)[0]}function _4(e){return e[Wu(e)]}function L1(e){var t={},r={$or:!0,$nor:!0};return e.forEach(function(n){Object.keys(n).forEach(function(i){var a=n[i];if(typeof a!="object"&&(a={$eq:a}),ite(i))if(a instanceof Array){if(r[i]){r[i]=!1,t[i]=a;return}var o=[];t[i].forEach(function(s){Object.keys(a).forEach(function(l){var f=a[l],d=Math.max(Object.keys(s).length,Object.keys(f).length),h=L1([s,f]);Object.keys(h).length<=d||o.push(h)})}),t[i]=o}else t[i]=L1([a]);else{var u=t[i]=t[i]||{};Object.keys(a).forEach(function(s){var l=a[s];if(s==="$gt"||s==="$gte")return o9e(s,l,u);if(s==="$lt"||s==="$lte")return u9e(s,l,u);if(s==="$ne")return s9e(l,u);if(s==="$eq")return l9e(l,u);if(s==="$regex")return f9e(l,u);u[s]=l})}})}),t}function o9e(e,t,r){typeof r.$eq<"u"||(typeof r.$gte<"u"?e==="$gte"?t>r.$gte&&(r.$gte=t):t>=r.$gte&&(delete r.$gte,r.$gt=t):typeof r.$gt<"u"?e==="$gte"?t>r.$gt&&(delete r.$gt,r.$gte=t):t>r.$gt&&(r.$gt=t):r[e]=t)}function u9e(e,t,r){typeof r.$eq<"u"||(typeof r.$lte<"u"?e==="$lte"?t<r.$lte&&(r.$lte=t):t<=r.$lte&&(delete r.$lte,r.$lt=t):typeof r.$lt<"u"?e==="$lte"?t<r.$lt&&(delete r.$lt,r.$lte=t):t<r.$lt&&(r.$lt=t):r[e]=t)}function s9e(e,t){"$ne"in t?t.$ne.push(e):t.$ne=[e]}function l9e(e,t){delete t.$gt,delete t.$gte,delete t.$lt,delete t.$lte,delete t.$ne,t.$eq=e}function f9e(e,t){"$regex"in t?t.$regex.push(e):t.$regex=[e]}function ate(e){for(var t in e){if(Array.isArray(e))for(var r in e)e[r].$and&&(e[r]=L1(e[r].$and));var n=e[t];typeof n=="object"&&ate(n)}return e}function ote(e,t){for(var r in e){r==="$and"&&(t=!0);var n=e[r];typeof n=="object"&&(t=ote(n,t))}return t}function ute(e){var t=Cd(e),r=!1;ote(t,!1)&&(t=ate(t),"$and"in t&&(t=L1(t.$and)),r=!0),["$or","$nor"].forEach(function(u){u in t&&t[u].forEach(function(s){for(var l=Object.keys(s),f=0;f<l.length;f++){var d=l[f],h=s[d];(typeof h!="object"||h===null)&&(s[d]={$eq:h})}})}),"$not"in t&&(t.$not=L1([t.$not]));for(var n=Object.keys(t),i=0;i<n.length;i++){var a=n[i],o=t[a];typeof o!="object"||o===null?o={$eq:o}:r||("$ne"in o&&(o.$ne=[o.$ne]),"$regex"in o&&(o.$regex=[o.$regex])),t[a]=o}return t}function c9e(e){function t(r){return e.map(function(n){var i=Wu(n),a=gm(i),o=NC(r,a);return o})}return function(r,n){var i=t(r.doc),a=t(n.doc),o=fa(i,a);return o!==0?o:x4(r.doc._id,n.doc._id)}}function ste(e,t,r){if(e=e.filter(function(o){return vg(o.doc,t.selector,r)}),t.sort){var n=c9e(t.sort);e=e.sort(n),typeof t.sort[0]!="string"&&_4(t.sort[0])==="desc"&&(e=e.reverse())}if("limit"in t||"skip"in t){var i=t.skip||0,a=("limit"in t?t.limit:e.length)+i;e=e.slice(i,a)}return e}function vg(e,t,r){return r.every(function(n){var i=t[n],a=gm(n),o=NC(e,a);return ite(n)?d9e(n,i,e):MS(i,e,a,o)})}function MS(e,t,r,n){return e?typeof e=="object"?Object.keys(e).every(function(i){var a=e[i];if(i.indexOf("$")===0)return a9(i,t,a,r,n);var o=gm(i);if(n===void 0&&typeof a!="object"&&o.length>0)return!1;var u=NC(n,o);return typeof a=="object"?MS(a,t,r,u):a9("$eq",t,a,o,u)}):e===n:!0}function d9e(e,t,r){return e==="$or"?t.some(function(n){return vg(r,n,Object.keys(n))}):e==="$not"?!vg(r,t,Object.keys(t)):!t.find(function(n){return vg(r,n,Object.keys(n))})}function a9(e,t,r,n,i){if(!u9[e])throw new Error('unknown operator "'+e+'" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all');return u9[e](t,r,n,i)}function j0(e){return typeof e<"u"&&e!==null}function sh(e){return typeof e<"u"}function h9e(e,t){if(typeof e!="number"||parseInt(e,10)!==e)return!1;var r=t[0],n=t[1];return e%r===n}function o9(e,t){return t.some(function(r){return e instanceof Array?e.some(function(n){return fa(r,n)===0}):fa(r,e)===0})}function p9e(e,t){return t.every(function(r){return e.some(function(n){return fa(r,n)===0})})}function v9e(e,t){return e.length===t}function g9e(e,t){var r=new RegExp(t);return r.test(e)}function m9e(e,t){switch(t){case"null":return e===null;case"boolean":return typeof e=="boolean";case"number":return typeof e=="number";case"string":return typeof e=="string";case"array":return e instanceof Array;case"object":return{}.toString.call(e)==="[object Object]"}}var u9={$elemMatch:function(e,t,r,n){return!Array.isArray(n)||n.length===0?!1:typeof n[0]=="object"?n.some(function(i){return vg(i,t,Object.keys(t))}):n.some(function(i){return MS(t,e,r,i)})},$allMatch:function(e,t,r,n){return!Array.isArray(n)||n.length===0?!1:typeof n[0]=="object"?n.every(function(i){return vg(i,t,Object.keys(t))}):n.every(function(i){return MS(t,e,r,i)})},$eq:function(e,t,r,n){return sh(n)&&fa(n,t)===0},$gte:function(e,t,r,n){return sh(n)&&fa(n,t)>=0},$gt:function(e,t,r,n){return sh(n)&&fa(n,t)>0},$lte:function(e,t,r,n){return sh(n)&&fa(n,t)<=0},$lt:function(e,t,r,n){return sh(n)&&fa(n,t)<0},$exists:function(e,t,r,n){return t?sh(n):!sh(n)},$mod:function(e,t,r,n){return j0(n)&&h9e(n,t)},$ne:function(e,t,r,n){return t.every(function(i){return fa(n,i)!==0})},$in:function(e,t,r,n){return j0(n)&&o9(n,t)},$nin:function(e,t,r,n){return j0(n)&&!o9(n,t)},$size:function(e,t,r,n){return j0(n)&&Array.isArray(n)&&v9e(n,t)},$all:function(e,t,r,n){return Array.isArray(n)&&p9e(n,t)},$regex:function(e,t,r,n){return j0(n)&&typeof n=="string"&&t.every(function(i){return g9e(n,i)})},$type:function(e,t,r,n){return m9e(n,t)}};function FC(e,t){if(typeof t!="object")throw new Error("Selector error: expected a JSON object");t=ute(t);var r={doc:e},n=ste([r],{selector:t},Object.keys(t));return n&&n.length===1}function lte(e){return e=Cd(e),e.index||(e.index={}),["type","name","ddoc"].forEach(function(t){e.index[t]&&(e[t]=e.index[t],delete e.index[t])}),e.fields&&(e.index.fields=e.fields,delete e.fields),e.type||(e.type="json"),e}function y9e(e,t,r){var n="",i=t,a=!0;if(["$in","$nin","$or","$and","$mod","$nor","$all"].indexOf(e)!==-1&&(Array.isArray(t)||(n="Query operator "+e+" must be an array.")),["$not","$elemMatch","$allMatch"].indexOf(e)!==-1&&(!Array.isArray(t)&&typeof t=="object"&&t!==null||(n="Query operator "+e+" must be an object.")),e==="$mod"&&Array.isArray(t))if(t.length!==2)n="Query operator $mod must be in the format [divisor, remainder], where divisor and remainder are both integers.";else{var o=t[0],u=t[1];o===0&&(n="Query operator $mod's divisor cannot be 0, cannot divide by zero.",a=!1),(typeof o!="number"||parseInt(o,10)!==o)&&(n="Query operator $mod's divisor is not an integer.",i=o),parseInt(u,10)!==u&&(n="Query operator $mod's remainder is not an integer.",i=u)}if(e==="$exists"&&typeof t!="boolean"&&(n="Query operator $exists must be a boolean."),e==="$type"){var s=["null","boolean","number","string","array","object"],l='"'+s.slice(0,s.length-1).join('", "')+'", or "'+s[s.length-1]+'"';(typeof t!="string"||s.indexOf(t)==-1)&&(n="Query operator $type must be a string. Supported values: "+l+".")}if(e==="$size"&&parseInt(t,10)!==t&&(n="Query operator $size must be a integer."),e==="$regex"&&typeof t!="string"&&(console.log("here",r),r?n="Query operator $regex must be a string.":t instanceof RegExp||(n="Query operator $regex must be a string or an instance of a javascript regular expression.")),n){if(a){var f=i===null?" ":Array.isArray(i)?" array":" "+typeof i,d=typeof i=="object"&&i!==null?JSON.stringify(i,null," "):i;n+=" Received"+f+": "+d}throw new Error(n)}}var b9e=["$all","$allMatch","$and","$elemMatch","$exists","$in","$mod","$nin","$nor","$not","$or","$regex","$size","$type"],w9e=["$in","$nin","$mod","$all"],x9e=["$eq","$gt","$gte","$lt","$lte"];function NS(e,t){if(Array.isArray(e))for(var r of e)typeof r=="object"&&o!==null&&NS(r,t);else for(var n=Object.keys(e),i=0;i<n.length;i++){var a=n[i],o=e[a];b9e.indexOf(a)!==-1&&y9e(a,o,t),x9e.indexOf(a)===-1&&w9e.indexOf(a)===-1&&typeof o=="object"&&o!==null&&NS(o,t)}}function Xb(e,t,r,n){var i,a;r.headers=new T_({"Content-type":"application/json"}),e.fetch(t,r).then(function(o){return i=o.status,a=o.ok,o.json()}).then(function(o){if(a)n(null,o);else{o.status=i;var u=G5(o);n(u)}}).catch(n)}function _9e(e,t,r){t=lte(t),Xb(e,"_index",{method:"POST",body:JSON.stringify(t)},r)}function S9e(e,t,r){NS(t.selector,!0),Xb(e,"_find",{method:"POST",body:JSON.stringify(t)},r)}function E9e(e,t,r){Xb(e,"_explain",{method:"POST",body:JSON.stringify(t)},r)}function C9e(e,t){Xb(e,"_index",{method:"GET"},t)}function A9e(e,t,r){var n=t.ddoc,i=t.type||"json",a=t.name;if(!n)return r(new Error("you must provide an index's ddoc"));if(!a)return r(new Error("you must provide an index's name"));var o="_index/"+[n,i,a].map(encodeURIComponent).join("/");Xb(e,o,{method:"DELETE"},r)}function fte(e){return function(){for(var t=arguments.length,r=new Array(t),n=-1;++n<t;)r[n]=arguments[n];return e.call(this,r)}}function Kb(e){return fte(function(t){var r=t.pop(),n=e.apply(this,t);return k9e(n,r),n})}function k9e(e,t){return e.then(function(r){Hg(function(){t(null,r)})},function(r){Hg(function(){t(r)})}),e}var S4=fte(function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?t=t.concat(S4.apply(null,i)):t.push(i)}return t});function E4(e){for(var t={},r=0,n=e.length;r<n;r++)t=y4(t,e[r]);return t}function T9e(e,t){for(var r={},n=0,i=t.length;n<i;n++){var a=gm(t[n]),o=NC(e,a);typeof o<"u"&&i9e(r,a,o)}return r}function cte(e,t){for(var r=0,n=Math.min(e.length,t.length);r<n;r++)if(e[r]!==t[r])return!1;return!0}function O9e(e,t){return e.length>t.length?!1:cte(e,t)}function I9e(e,t){e=e.slice();for(var r=0,n=t.length;r<n;r++){var i=t[r];if(!e.length)break;var a=e.indexOf(i);if(a===-1)return!1;e.splice(a,1)}return!0}function R9e(e){for(var t={},r=0,n=e.length;r<n;r++)t[e[r]]=!0;return t}function D9e(e,t){for(var r=null,n=-1,i=0,a=e.length;i<a;i++){var o=e[i],u=t(o);u>n&&(n=u,r=o)}return r}function s9(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function P9e(e){for(var t={},r=0;r<e.length;r++)t["$"+e[r]]=!0;return Object.keys(t).map(function(n){return n.substring(1)})}function $9e(e,t,r){return function(n){if(!(r&&!FC(n,r))){for(var i=[],a=0,o=e.length;a<o;a++){for(var u=gm(e[a]),s=n,l=0,f=u.length;l<f;l++){var d=u[l];if(s=s[d],typeof s>"u")return}i.push(s)}t(i)}}}function M9e(e,t,r){var n=gm(e);return function(i){if(!(r&&!FC(i,r))){for(var a=i,o=0,u=n.length;o<u;o++){var s=n[o];if(a=a[s],typeof a>"u")return}t(a)}}}function N9e(e,t,r){return function(n){r&&!FC(n,r)||t(n[e])}}function F9e(e,t,r){return function(n){if(!(r&&!FC(n,r))){for(var i=[],a=0,o=e.length;a<o;a++)i.push(n[e[a]]);t(i)}}}function L9e(e){for(var t=0,r=e.length;t<r;t++){var n=e[t];if(n.indexOf(".")!==-1)return!1}return!0}function B9e(e,t,r){var n=L9e(e),i=e.length===1;return n?i?N9e(e[0],t,r):F9e(e,t,r):i?M9e(e[0],t,r):$9e(e,t,r)}function z9e(e,t){const r=Object.keys(e.fields),n=e.partial_filter_selector;return B9e(r,t,n)}function j9e(){throw new Error("reduce not supported")}function U9e(e,t){var r=e.views[t];if(!r.map||!r.map.fields)throw new Error("ddoc "+e._id+" with view "+t+" doesn't have map.fields defined. maybe it wasn't created by this plugin?")}var q9e=n9e("indexes",z9e,j9e,U9e);function C4(e){return e._customFindAbstractMapper||q9e}function H9e(e){if(!Array.isArray(e))throw new Error("invalid sort json - should be an array");return e.map(function(t){if(typeof t=="string"){var r={};return r[t]="asc",r}else return t})}function W9e(e){var t=[];return typeof e=="string"?t.push(e):t=e,t.map(function(r){return r.replace("_design/","")})}function dte(e){return e.fields=e.fields.map(function(t){if(typeof t=="string"){var r={};return r[t]="asc",r}return t}),e}function G9e(e,t){for(var r=[],n=0;n<t.def.fields.length;n++){var i=Wu(t.def.fields[n]);r.push(e[i])}return r}function V9e(e,t,r){for(var n=r.def.fields,i=0,a=e.length;i<a;i++){var o=e[i],u=G9e(o.doc,r);if(n.length===1)u=u[0];else for(;u.length>t.length;)u.pop();if(Math.abs(fa(u,t))>0)break}return i>0?e.slice(i):e}function Y9e(e){var t=Cd(e);return delete t.startkey,delete t.endkey,delete t.inclusive_start,delete t.inclusive_end,"endkey"in e&&(t.startkey=e.endkey),"startkey"in e&&(t.endkey=e.startkey),"inclusive_start"in e&&(t.inclusive_end=e.inclusive_start),"inclusive_end"in e&&(t.inclusive_start=e.inclusive_end),t}function X9e(e){var t=e.fields.filter(function(r){return _4(r)==="asc"});if(t.length!==0&&t.length!==e.fields.length)throw new Error("unsupported mixed sorting")}function K9e(e,t){if(t.defaultUsed&&e.sort){var r=e.sort.filter(function(n){return Object.keys(n)[0]!=="_id"}).map(function(n){return Object.keys(n)[0]});if(r.length>0)throw new Error('Cannot sort on field(s) "'+r.join(",")+'" when using the default index')}t.defaultUsed}function Z9e(e){if(typeof e.selector!="object")throw new Error("you must provide a selector when you find()")}function Q9e(e,t){var r=Object.keys(e),n=t?t.map(Wu):[],i;return r.length>=n.length?i=r:i=n,n.length===0?{fields:i}:(i=i.sort(function(a,o){var u=n.indexOf(a);u===-1&&(u=Number.MAX_VALUE);var s=n.indexOf(o);return s===-1&&(s=Number.MAX_VALUE),u<s?-1:u>s?1:0}),{fields:i,sortOrder:t.map(Wu)})}function J9e(e,t){t=lte(t);var r=Cd(t.index);t.index=dte(t.index),X9e(t.index);var n;function i(){return n||(n=ete(JSON.stringify(t)))}var a=t.name||"idx-"+i(),o=t.ddoc||"idx-"+i(),u="_design/"+o,s=!1,l=!1;function f(d){return d._rev&&d.language!=="query"&&(s=!0),d.language="query",d.views=d.views||{},l=!!d.views[a],l?!1:(d.views[a]={map:{fields:E4(t.index.fields)},reduce:"_count",options:{def:r}},d)}return e.constructor.emit("debug",["find","creating index",u]),MC(e,u,f).then(function(){if(s)throw new Error('invalid language for ddoc with id "'+u+'" (should be "query")')}).then(function(){var d=o+"/"+a;return C4(e).query.call(e,d,{limit:0,reduce:!1}).then(function(){return{id:u,name:a,result:l?"exists":"created"}})})}function hte(e){return e.allDocs({startkey:"_design/",endkey:"_design/￿",include_docs:!0}).then(function(t){var r={indexes:[{ddoc:null,name:"_all_docs",type:"special",def:{fields:[{_id:"asc"}]}}]};return r.indexes=S4(r.indexes,t.rows.filter(function(n){return n.doc.language==="query"}).map(function(n){var i=n.doc.views!==void 0?Object.keys(n.doc.views):[];return i.map(function(a){var o=n.doc.views[a];return{ddoc:n.id,name:a,type:"json",def:dte(o.options.def)}})})),r.indexes.sort(function(n,i){return x4(n.name,i.name)}),r.total_rows=r.indexes.length,r})}var FS=null,eD={"￿":{}};const eqe={queryOpts:{limit:0,startkey:eD,endkey:FS},inMemoryFields:[]};function tqe(e,t){for(var r=e.def.fields.map(Wu),n=0,i=r.length;n<i;n++){var a=r[n];if(t===a)return!0}return!1}function rqe(e,t){var r=e[t],n=Wu(r);return n!=="$eq"}function pte(e,t){var r=t.def.fields.map(Wu);return e.slice().sort(function(n,i){var a=r.indexOf(n),o=r.indexOf(i);return a===-1&&(a=Number.MAX_VALUE),o===-1&&(o=Number.MAX_VALUE),x4(a,o)})}function nqe(e,t,r){r=pte(r,e);for(var n=!1,i=0,a=r.length;i<a;i++){var o=r[i];if(n||!tqe(e,o))return r.slice(i);i<a-1&&rqe(t,o)&&(n=!0)}return[]}function iqe(e){var t=[];return Object.keys(e).forEach(function(r){var n=e[r];Object.keys(n).forEach(function(i){i==="$ne"&&t.push(r)})}),t}function aqe(e,t,r,n){var i=S4(e,nqe(t,r,n),iqe(r));return pte(P9e(i),t)}function oqe(e,t,r){if(t){var n=O9e(t,e),i=cte(r,e);return n&&i}return I9e(r,e)}var uqe=["$eq","$gt","$gte","$lt","$lte"];function vte(e){return uqe.indexOf(e)===-1}function sqe(e,t){var r=e[0],n=t[r];if(typeof n>"u")return!0;var i=Object.keys(n).length===1&&Wu(n)==="$ne";return!i}function lqe(e,t,r,n){var i=e.def.fields.map(Wu),a=oqe(i,t,r);return a?sqe(i,n):!1}function fqe(e,t,r,n){return n.filter(function(i){return lqe(i,r,t,e)})}function cqe(e,t,r,n,i){var a=fqe(e,t,r,n);if(a.length===0){if(i)throw{error:"no_usable_index",message:"There is no index available for this selector."};var o=n[0];return o.defaultUsed=!0,o}if(a.length===1&&!i)return a[0];var u=R9e(t);function s(h){for(var p=h.def.fields.map(Wu),v=0,S=0,y=p.length;S<y;S++){var m=p[S];u[m]&&v++}return v}if(i){var l="_design/"+i[0],f=i.length===2?i[1]:!1,d=a.find(function(h){return!!(f&&h.ddoc===l&&f===h.name||h.ddoc===l)});if(!d)throw{error:"unknown_error",message:"Could not find that index or could not use that index for the query"};return d}return D9e(a,s)}function dqe(e,t){switch(e){case"$eq":return{key:t};case"$lte":return{endkey:t};case"$gte":return{startkey:t};case"$lt":return{endkey:t,inclusive_end:!1};case"$gt":return{startkey:t,inclusive_start:!1}}return{startkey:FS}}function hqe(e,t){var r=Wu(t.def.fields[0]),n=e[r]||{},i=[],a=Object.keys(n),o;return a.forEach(function(u){vte(u)&&i.push(r);var s=n[u],l=dqe(u,s);o?o=E4([o,l]):o=l}),{queryOpts:o,inMemoryFields:i}}function pqe(e,t){switch(e){case"$eq":return{startkey:t,endkey:t};case"$lte":return{endkey:t};case"$gte":return{startkey:t};case"$lt":return{endkey:t,inclusive_end:!1};case"$gt":return{startkey:t,inclusive_start:!1}}}function vqe(e,t){var r=t.def.fields.map(Wu),n=[],i=[],a=[],o,u;function s(N){o!==!1&&i.push(FS),u!==!1&&a.push(eD),n=r.slice(N)}for(var l=0,f=r.length;l<f;l++){var d=r[l],h=e[d];if(!h||!Object.keys(h).length){s(l);break}else if(Object.keys(h).some(vte)){s(l);break}else if(l>0){var p="$gt"in h||"$gte"in h||"$lt"in h||"$lte"in h,v=Object.keys(e[r[l-1]]),S=s9(v,["$eq"]),y=s9(v,Object.keys(h)),m=p&&!S&&!y;if(m){s(l);break}}for(var x=Object.keys(h),w=null,E=0;E<x.length;E++){var A=x[E],g=h[A],F=pqe(A,g);w?w=E4([w,F]):w=F}i.push("startkey"in w?w.startkey:FS),a.push("endkey"in w?w.endkey:eD),"inclusive_start"in w&&(o=w.inclusive_start),"inclusive_end"in w&&(u=w.inclusive_end)}var P={startkey:i,endkey:a};return typeof o<"u"&&(P.inclusive_start=o),typeof u<"u"&&(P.inclusive_end=u),{queryOpts:P,inMemoryFields:n}}function gqe(e){return Object.keys(e).map(function(r){return e[r]}).some(function(r){return typeof r=="object"&&Object.keys(r).length===0})}function mqe(e){return{queryOpts:{startkey:null},inMemoryFields:[Object.keys(e)]}}function yqe(e,t){return t.defaultUsed?mqe(e):t.def.fields.length===1?hqe(e,t):vqe(e,t)}function bqe(e,t){var r=e.selector,n=e.sort;if(gqe(r))return y4({},eqe,{index:t[0]});var i=Q9e(r,n),a=i.fields,o=i.sortOrder,u=cqe(r,a,o,t,e.use_index),s=yqe(r,u),l=s.queryOpts,f=s.inMemoryFields,d=aqe(f,u,r,a),h={queryOpts:l,index:u,inMemoryFields:d};return h}function wqe(e){return e.ddoc.substring(8)+"/"+e.name}function xqe(e,t){var r=Cd(t);return r.descending?("endkey"in r&&typeof r.endkey!="string"&&(r.endkey=""),"startkey"in r&&typeof r.startkey!="string"&&(r.limit=0)):("startkey"in r&&typeof r.startkey!="string"&&(r.startkey=""),"endkey"in r&&typeof r.endkey!="string"&&(r.limit=0)),"key"in r&&typeof r.key!="string"&&(r.limit=0),r.limit>0&&r.indexes_count&&(r.original_limit=r.limit,r.limit+=r.indexes_count),e.allDocs(r).then(function(n){return n.rows=n.rows.filter(function(i){return!/^_design\//.test(i.id)}),r.original_limit&&(r.limit=r.original_limit),n.rows=n.rows.slice(0,r.limit),n})}function gte(e,t,r){return t.selector&&(NS(t.selector,!1),t.selector=ute(t.selector)),t.sort&&(t.sort=H9e(t.sort)),t.use_index&&(t.use_index=W9e(t.use_index)),Z9e(t),hte(e).then(function(n){e.constructor.emit("debug",["find","planning query",t]);var i=bqe(t,n.indexes);e.constructor.emit("debug",["find","query plan",i]);var a=i.index;K9e(t,a);var o=y4({include_docs:!0,reduce:!1,indexes_count:n.total_rows},i.queryOpts);if("startkey"in o&&"endkey"in o&&fa(o.startkey,o.endkey)>0)return{docs:[]};var u=t.sort&&typeof t.sort[0]!="string"&&_4(t.sort[0])==="desc";return u&&(o.descending=!0,o=Y9e(o)),i.inMemoryFields.length||("limit"in t&&(o.limit=t.limit),"skip"in t&&(o.skip=t.skip)),r?Promise.resolve(i,o):Promise.resolve().then(function(){if(a.name==="_all_docs")return xqe(e,o);var s=wqe(a);return C4(e).query.call(e,s,o)}).then(function(s){o.inclusive_start===!1&&(s.rows=V9e(s.rows,o.startkey,a)),i.inMemoryFields.length&&(s.rows=ste(s.rows,t,i.inMemoryFields));var l={docs:s.rows.map(function(f){var d=f.doc;return t.fields?T9e(d,t.fields):d})};return a.defaultUsed&&(l.warning="No matching index found, create an index to optimize query time."),l})})}function _qe(e,t){return gte(e,t,!0).then(function(r){return{dbname:e.name,index:r.index,selector:t.selector,range:{start_key:r.queryOpts.startkey,end_key:r.queryOpts.endkey},opts:{use_index:t.use_index||[],bookmark:"nil",limit:t.limit,skip:t.skip,sort:t.sort||{},fields:t.fields,conflicts:!1,r:[49]},limit:t.limit,skip:t.skip||0,fields:t.fields}})}function Sqe(e,t){if(!t.ddoc)throw new Error("you must supply an index.ddoc when deleting");if(!t.name)throw new Error("you must supply an index.name when deleting");var r=t.ddoc,n=t.name;function i(a){return Object.keys(a.views).length===1&&a.views[n]?{_id:r,_deleted:!0}:(delete a.views[n],a)}return MC(e,r,i).then(function(){return C4(e).viewCleanup.apply(e)}).then(function(){return{ok:!0}})}var Eqe=Kb(J9e),Cqe=Kb(gte),Aqe=Kb(_qe),kqe=Kb(hte),Tqe=Kb(Sqe),Zb={};Zb.createIndex=Vb(function(e,t){if(typeof e!="object")return t(new Error("you must provide an index to create"));var r=up(this)?_9e:Eqe;r(this,e,t)});Zb.find=Vb(function(e,t){if(typeof t>"u"&&(t=e,e=void 0),typeof e!="object")return t(new Error("you must provide search parameters to find()"));var r=up(this)?S9e:Cqe;r(this,e,t)});Zb.explain=Vb(function(e,t){if(typeof t>"u"&&(t=e,e=void 0),typeof e!="object")return t(new Error("you must provide search parameters to explain()"));var r=up(this)?E9e:Aqe;r(this,e,t)});Zb.getIndexes=Vb(function(e){var t=up(this)?C9e:kqe;t(this,e)});Zb.deleteIndex=Vb(function(e,t){if(typeof e!="object")return t(new Error("you must provide an index to delete"));var r=up(this)?A9e:Tqe;r(this,e,t)});var mm={},C3={},ca={},LS={},Oqe={get exports(){return LS},set exports(e){LS=e}},l9;function mte(){return l9||(l9=1,function(e){e.exports=wd}(Oqe)),LS}var f9,qx;ca.base64=!0;ca.array=!0;ca.string=!0;ca.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ca.nodebuffer=typeof Buffer<"u";ca.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")qx=ca.blob=!1;else{var c9=new ArrayBuffer(0);try{qx=ca.blob=new Blob([c9],{type:"application/zip"}).size===0}catch{try{var Iqe=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,d9=new Iqe;d9.append(c9),qx=ca.blob=d9.getBlob("application/zip").size===0}catch{qx=ca.blob=!1}}}try{f9=ca.nodestream=!!mte().Readable}catch{f9=ca.nodestream=!1}var Hx={},h9;function yte(){if(h9)return Hx;h9=1;var e=Ui(),t=ca,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return Hx.encode=function(n){for(var i=[],a,o,u,s,l,f,d,h=0,p=n.length,v=p,S=e.getTypeOf(n)!=="string";h<n.length;)v=p-h,S?(a=n[h++],o=h<p?n[h++]:0,u=h<p?n[h++]:0):(a=n.charCodeAt(h++),o=h<p?n.charCodeAt(h++):0,u=h<p?n.charCodeAt(h++):0),s=a>>2,l=(a&3)<<4|o>>4,f=v>1?(o&15)<<2|u>>6:64,d=v>2?u&63:64,i.push(r.charAt(s)+r.charAt(l)+r.charAt(f)+r.charAt(d));return i.join("")},Hx.decode=function(n){var i,a,o,u,s,l,f,d=0,h=0,p="data:";if(n.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");var v=n.length*3/4;if(n.charAt(n.length-1)===r.charAt(64)&&v--,n.charAt(n.length-2)===r.charAt(64)&&v--,v%1!==0)throw new Error("Invalid base64 input, bad content length.");var S;for(t.uint8array?S=new Uint8Array(v|0):S=new Array(v|0);d<n.length;)u=r.indexOf(n.charAt(d++)),s=r.indexOf(n.charAt(d++)),l=r.indexOf(n.charAt(d++)),f=r.indexOf(n.charAt(d++)),i=u<<2|s>>4,a=(s&15)<<4|l>>2,o=(l&3)<<6|f,S[h++]=i,l!==64&&(S[h++]=a),f!==64&&(S[h++]=o);return S},Hx}var LC={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}},Rqe=typeof setImmediate=="function"?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)},A3,p9;function Dqe(){if(p9)return A3;p9=1;var e=er.MutationObserver||er.WebKitMutationObserver,t;if(e){var r=0,n=new e(s),i=er.document.createTextNode("");n.observe(i,{characterData:!0}),t=function(){i.data=r=++r%2}}else if(!er.setImmediate&&typeof er.MessageChannel<"u"){var a=new er.MessageChannel;a.port1.onmessage=s,t=function(){a.port2.postMessage(0)}}else"document"in er&&"onreadystatechange"in er.document.createElement("script")?t=function(){var f=er.document.createElement("script");f.onreadystatechange=function(){s(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},er.document.documentElement.appendChild(f)}:t=function(){setTimeout(s,0)};var o,u=[];function s(){o=!0;for(var f,d,h=u.length;h;){for(d=u,u=[],f=-1;++f<h;)d[f]();h=u.length}o=!1}A3=l;function l(f){u.push(f)===1&&!o&&t()}return A3}var k3,v9;function Pqe(){if(v9)return k3;v9=1;var e=Dqe();function t(){}var r={},n=["REJECTED"],i=["FULFILLED"],a=["PENDING"];k3=o;function o(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,y!==t&&f(this,y)}o.prototype.finally=function(y){if(typeof y!="function")return this;var m=this.constructor;return this.then(x,w);function x(E){function A(){return E}return m.resolve(y()).then(A)}function w(E){function A(){throw E}return m.resolve(y()).then(A)}},o.prototype.catch=function(y){return this.then(null,y)},o.prototype.then=function(y,m){if(typeof y!="function"&&this.state===i||typeof m!="function"&&this.state===n)return this;var x=new this.constructor(t);if(this.state!==a){var w=this.state===i?y:m;s(x,w,this.outcome)}else this.queue.push(new u(x,y,m));return x};function u(y,m,x){this.promise=y,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}u.prototype.callFulfilled=function(y){r.resolve(this.promise,y)},u.prototype.otherCallFulfilled=function(y){s(this.promise,this.onFulfilled,y)},u.prototype.callRejected=function(y){r.reject(this.promise,y)},u.prototype.otherCallRejected=function(y){s(this.promise,this.onRejected,y)};function s(y,m,x){e(function(){var w;try{w=m(x)}catch(E){return r.reject(y,E)}w===y?r.reject(y,new TypeError("Cannot resolve promise with itself")):r.resolve(y,w)})}r.resolve=function(y,m){var x=d(l,m);if(x.status==="error")return r.reject(y,x.value);var w=x.value;if(w)f(y,w);else{y.state=i,y.outcome=m;for(var E=-1,A=y.queue.length;++E<A;)y.queue[E].callFulfilled(m)}return y},r.reject=function(y,m){y.state=n,y.outcome=m;for(var x=-1,w=y.queue.length;++x<w;)y.queue[x].callRejected(m);return y};function l(y){var m=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof m=="function")return function(){m.apply(y,arguments)}}function f(y,m){var x=!1;function w(F){x||(x=!0,r.reject(y,F))}function E(F){x||(x=!0,r.resolve(y,F))}function A(){m(E,w)}var g=d(A);g.status==="error"&&w(g.value)}function d(y,m){var x={};try{x.value=y(m),x.status="success"}catch(w){x.status="error",x.value=w}return x}o.resolve=h;function h(y){return y instanceof this?y:r.resolve(new this(t),y)}o.reject=p;function p(y){var m=new this(t);return r.reject(m,y)}o.all=v;function v(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=y.length,w=!1;if(!x)return this.resolve([]);for(var E=new Array(x),A=0,g=-1,F=new this(t);++g<x;)P(y[g],g);return F;function P(N,V){m.resolve(N).then(H,function(ie){w||(w=!0,r.reject(F,ie))});function H(ie){E[V]=ie,++A===x&&!w&&(w=!0,r.resolve(F,E))}}}o.race=S;function S(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=y.length,w=!1;if(!x)return this.resolve([]);for(var E=-1,A=new this(t);++E<x;)g(y[E]);return A;function g(F){m.resolve(F).then(function(P){w||(w=!0,r.resolve(A,P))},function(P){w||(w=!0,r.reject(A,P))})}}return k3}var tD=null;typeof Promise<"u"?tD=Promise:tD=Pqe();var Qb={Promise:tD},g9;function Ui(){return g9||(g9=1,function(e){var t=ca,r=yte(),n=LC,i=Rqe,a=Qb;function o(p){var v=null;return t.uint8array?v=new Uint8Array(p.length):v=new Array(p.length),s(p,v)}e.newBlob=function(p,v){e.checkSupport("blob");try{return new Blob([p],{type:v})}catch{try{var S=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,y=new S;return y.append(p),y.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};function u(p){return p}function s(p,v){for(var S=0;S<p.length;++S)v[S]=p.charCodeAt(S)&255;return v}var l={stringifyByChunk:function(p,v,S){var y=[],m=0,x=p.length;if(x<=S)return String.fromCharCode.apply(null,p);for(;m<x;)v==="array"||v==="nodebuffer"?y.push(String.fromCharCode.apply(null,p.slice(m,Math.min(m+S,x)))):y.push(String.fromCharCode.apply(null,p.subarray(m,Math.min(m+S,x)))),m+=S;return y.join("")},stringifyByChar:function(p){for(var v="",S=0;S<p.length;S++)v+=String.fromCharCode(p[S]);return v},applyCanBeUsed:{uint8array:function(){try{return t.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return t.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function f(p){var v=65536,S=e.getTypeOf(p),y=!0;if(S==="uint8array"?y=l.applyCanBeUsed.uint8array:S==="nodebuffer"&&(y=l.applyCanBeUsed.nodebuffer),y)for(;v>1;)try{return l.stringifyByChunk(p,S,v)}catch{v=Math.floor(v/2)}return l.stringifyByChar(p)}e.applyFromCharCode=f;function d(p,v){for(var S=0;S<p.length;S++)v[S]=p[S];return v}var h={};h.string={string:u,array:function(p){return s(p,new Array(p.length))},arraybuffer:function(p){return h.string.uint8array(p).buffer},uint8array:function(p){return s(p,new Uint8Array(p.length))},nodebuffer:function(p){return s(p,n.allocBuffer(p.length))}},h.array={string:f,array:u,arraybuffer:function(p){return new Uint8Array(p).buffer},uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return n.newBufferFrom(p)}},h.arraybuffer={string:function(p){return f(new Uint8Array(p))},array:function(p){return d(new Uint8Array(p),new Array(p.byteLength))},arraybuffer:u,uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return n.newBufferFrom(new Uint8Array(p))}},h.uint8array={string:f,array:function(p){return d(p,new Array(p.length))},arraybuffer:function(p){return p.buffer},uint8array:u,nodebuffer:function(p){return n.newBufferFrom(p)}},h.nodebuffer={string:f,array:function(p){return d(p,new Array(p.length))},arraybuffer:function(p){return h.nodebuffer.uint8array(p).buffer},uint8array:function(p){return d(p,new Uint8Array(p.length))},nodebuffer:u},e.transformTo=function(p,v){if(v||(v=""),!p)return v;e.checkSupport(p);var S=e.getTypeOf(v),y=h[S][p](v);return y},e.getTypeOf=function(p){if(typeof p=="string")return"string";if(Object.prototype.toString.call(p)==="[object Array]")return"array";if(t.nodebuffer&&n.isBuffer(p))return"nodebuffer";if(t.uint8array&&p instanceof Uint8Array)return"uint8array";if(t.arraybuffer&&p instanceof ArrayBuffer)return"arraybuffer"},e.checkSupport=function(p){var v=t[p.toLowerCase()];if(!v)throw new Error(p+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(p){var v="",S,y;for(y=0;y<(p||"").length;y++)S=p.charCodeAt(y),v+="\\x"+(S<16?"0":"")+S.toString(16).toUpperCase();return v},e.delay=function(p,v,S){i(function(){p.apply(S||null,v||[])})},e.inherits=function(p,v){var S=function(){};S.prototype=v.prototype,p.prototype=new S},e.extend=function(){var p={},v,S;for(v=0;v<arguments.length;v++)for(S in arguments[v])arguments[v].hasOwnProperty(S)&&typeof p[S]>"u"&&(p[S]=arguments[v][S]);return p},e.prepareContent=function(p,v,S,y,m){var x=a.Promise.resolve(v).then(function(w){var E=t.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1);return E&&typeof FileReader<"u"?new a.Promise(function(A,g){var F=new FileReader;F.onload=function(P){A(P.target.result)},F.onerror=function(P){g(P.target.error)},F.readAsArrayBuffer(w)}):w});return x.then(function(w){var E=e.getTypeOf(w);return E?(E==="arraybuffer"?w=e.transformTo("uint8array",w):E==="string"&&(m?w=r.decode(w):S&&y!==!0&&(w=o(w))),w):a.Promise.reject(new Error("Can't read the data of '"+p+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}}(C3)),C3}function bte(e){this.name=e||"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}bte.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};var $s=bte;(function(e){for(var t=Ui(),r=ca,n=LC,i=$s,a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;var u=function(h){var p,v,S,y,m,x=h.length,w=0;for(y=0;y<x;y++)v=h.charCodeAt(y),(v&64512)===55296&&y+1<x&&(S=h.charCodeAt(y+1),(S&64512)===56320&&(v=65536+(v-55296<<10)+(S-56320),y++)),w+=v<128?1:v<2048?2:v<65536?3:4;for(r.uint8array?p=new Uint8Array(w):p=new Array(w),m=0,y=0;m<w;y++)v=h.charCodeAt(y),(v&64512)===55296&&y+1<x&&(S=h.charCodeAt(y+1),(S&64512)===56320&&(v=65536+(v-55296<<10)+(S-56320),y++)),v<128?p[m++]=v:v<2048?(p[m++]=192|v>>>6,p[m++]=128|v&63):v<65536?(p[m++]=224|v>>>12,p[m++]=128|v>>>6&63,p[m++]=128|v&63):(p[m++]=240|v>>>18,p[m++]=128|v>>>12&63,p[m++]=128|v>>>6&63,p[m++]=128|v&63);return p},s=function(h,p){var v;for(p=p||h.length,p>h.length&&(p=h.length),v=p-1;v>=0&&(h[v]&192)===128;)v--;return v<0||v===0?p:v+a[h[v]]>p?v:p},l=function(h){var p,v,S,y,m=h.length,x=new Array(m*2);for(v=0,p=0;p<m;){if(S=h[p++],S<128){x[v++]=S;continue}if(y=a[S],y>4){x[v++]=65533,p+=y-1;continue}for(S&=y===2?31:y===3?15:7;y>1&&p<m;)S=S<<6|h[p++]&63,y--;if(y>1){x[v++]=65533;continue}S<65536?x[v++]=S:(S-=65536,x[v++]=55296|S>>10&1023,x[v++]=56320|S&1023)}return x.length!==v&&(x.subarray?x=x.subarray(0,v):x.length=v),t.applyFromCharCode(x)};e.utf8encode=function(p){return r.nodebuffer?n.newBufferFrom(p,"utf-8"):u(p)},e.utf8decode=function(p){return r.nodebuffer?t.transformTo("nodebuffer",p).toString("utf-8"):(p=t.transformTo(r.uint8array?"uint8array":"array",p),l(p))};function f(){i.call(this,"utf-8 decode"),this.leftOver=null}t.inherits(f,i),f.prototype.processChunk=function(h){var p=t.transformTo(r.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var v=p;p=new Uint8Array(v.length+this.leftOver.length),p.set(this.leftOver,0),p.set(v,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var S=s(p),y=p;S!==p.length&&(r.uint8array?(y=p.subarray(0,S),this.leftOver=p.subarray(S,p.length)):(y=p.slice(0,S),this.leftOver=p.slice(S,p.length))),this.push({data:e.utf8decode(y),meta:h.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=f;function d(){i.call(this,"utf-8 encode")}t.inherits(d,i),d.prototype.processChunk=function(h){this.push({data:e.utf8encode(h.data),meta:h.meta})},e.Utf8EncodeWorker=d})(mm);var wte=$s,xte=Ui();function A4(e){wte.call(this,"ConvertWorker to "+e),this.destType=e}xte.inherits(A4,wte);A4.prototype.processChunk=function(e){this.push({data:xte.transformTo(this.destType,e.data),meta:e.meta})};var $qe=A4,T3,m9;function Mqe(){if(m9)return T3;m9=1;var e=mte().Readable,t=Ui();t.inherits(r,e);function r(n,i,a){e.call(this,i),this._helper=n;var o=this;n.on("data",function(u,s){o.push(u)||o._helper.pause(),a&&a(s)}).on("error",function(u){o.emit("error",u)}).on("end",function(){o.push(null)})}return r.prototype._read=function(){this._helper.resume()},T3=r,T3}var qh=Ui(),Nqe=$qe,Fqe=$s,Lqe=yte(),Bqe=ca,zqe=Qb,_te=null;if(Bqe.nodestream)try{_te=Mqe()}catch{}function jqe(e,t,r){switch(e){case"blob":return qh.newBlob(qh.transformTo("arraybuffer",t),r);case"base64":return Lqe.encode(t);default:return qh.transformTo(e,t)}}function Uqe(e,t){var r,n=0,i=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function qqe(e,t){return new zqe.Promise(function(r,n){var i=[],a=e._internalType,o=e._outputType,u=e._mimeType;e.on("data",function(s,l){i.push(s),t&&t(l)}).on("error",function(s){i=[],n(s)}).on("end",function(){try{var s=jqe(o,Uqe(a,i),u);r(s)}catch(l){n(l)}i=[]}).resume()})}function Ste(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string";break}try{this._internalType=n,this._outputType=t,this._mimeType=r,qh.checkSupport(n),this._worker=e.pipe(new Nqe(n)),e.lock()}catch(i){this._worker=new Fqe("error"),this._worker.error(i)}}Ste.prototype={accumulate:function(e){return qqe(this,e)},on:function(e,t){var r=this;return e==="data"?this._worker.on(e,function(n){t.call(r,n.data,n.meta)}):this._worker.on(e,function(){qh.delay(t,arguments,r)}),this},resume:function(){return qh.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(qh.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _te(this,{objectMode:this._outputType!=="nodebuffer"},e)}};var Ete=Ste,Ms={};Ms.base64=!1;Ms.binary=!1;Ms.dir=!1;Ms.createFolders=!0;Ms.date=null;Ms.compression=null;Ms.compressionOptions=null;Ms.comment=null;Ms.unixPermissions=null;Ms.dosPermissions=null;var BC=Ui(),zC=$s,Hqe=16*1024;function ym(e){zC.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=BC.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}BC.inherits(ym,zC);ym.prototype.cleanUp=function(){zC.prototype.cleanUp.call(this),this.data=null};ym.prototype.resume=function(){return zC.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,BC.delay(this._tickAndRepeat,[],this)),!0):!1};ym.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(BC.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};ym.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Hqe,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};var Cte=ym,Wqe=Ui(),k4=$s;function T4(e){k4.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}Wqe.inherits(T4,k4);T4.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}k4.prototype.processChunk.call(this,e)};var Ate=T4,Gqe=Ui();function Vqe(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var kte=Vqe();function Yqe(e,t,r,n){var i=kte,a=n+r;e=e^-1;for(var o=n;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1}function Xqe(e,t,r,n){var i=kte,a=n+r;e=e^-1;for(var o=n;o<a;o++)e=e>>>8^i[(e^t.charCodeAt(o))&255];return e^-1}var O4=function(t,r){if(typeof t>"u"||!t.length)return 0;var n=Gqe.getTypeOf(t)!=="string";return n?Yqe(r|0,t,t.length,0):Xqe(r|0,t,t.length,0)},Tte=$s,Kqe=O4,Zqe=Ui();function I4(){Tte.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Zqe.inherits(I4,Tte);I4.prototype.processChunk=function(e){this.streamInfo.crc32=Kqe(e.data,this.streamInfo.crc32||0),this.push(e)};var Ote=I4,y9=Qb,b9=Cte,BS=Ate,Qqe=Ote,BS=Ate;function R4(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}R4.prototype={getContentWorker:function(){var e=new b9(y9.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new BS("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new b9(y9.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};R4.createWorkerFrom=function(e,t,r){return e.pipe(new Qqe).pipe(new BS("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new BS("compressedSize")).withStreamInfo("compression",t)};var D4=R4,Jqe=Ete,eHe=Cte,O3=mm,I3=D4,w9=$s,P4=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};P4.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var n=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new O3.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new O3.Utf8DecodeWorker))}catch(a){t=new w9("error"),t.error(a)}return new Jqe(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof I3&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new O3.Utf8EncodeWorker)),I3.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof I3?this._data.getContentWorker():this._data instanceof w9?this._data:new eHe(this._data)}};var x9=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],tHe=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(var R3=0;R3<x9.length;R3++)P4.prototype[x9[R3]]=tHe;var rHe=P4,Ite={},jC={},UC={},nc={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var u=o.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var s in u)r(u,s)&&(a[s]=u[s])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var n={arraySet:function(a,o,u,s,l){if(o.subarray&&a.subarray){a.set(o.subarray(u,u+s),l);return}for(var f=0;f<s;f++)a[l+f]=o[u+f]},flattenChunks:function(a){var o,u,s,l,f,d;for(s=0,o=0,u=a.length;o<u;o++)s+=a[o].length;for(d=new Uint8Array(s),l=0,o=0,u=a.length;o<u;o++)f=a[o],d.set(f,l),l+=f.length;return d}},i={arraySet:function(a,o,u,s,l){for(var f=0;f<s;f++)a[l+f]=o[u+f]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(nc);var Jb={},af={},bm={},nHe=nc,iHe=4,_9=0,S9=1,aHe=2;function wm(e){for(var t=e.length;--t>=0;)e[t]=0}var oHe=0,Rte=1,uHe=2,sHe=3,lHe=258,$4=29,ew=256,B1=ew+1+$4,gg=30,M4=19,Dte=2*B1+1,Nh=15,D3=16,fHe=7,N4=256,Pte=16,$te=17,Mte=18,rD=[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],O_=[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],cHe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Nte=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],dHe=512,If=new Array((B1+2)*2);wm(If);var zy=new Array(gg*2);wm(zy);var z1=new Array(dHe);wm(z1);var j1=new Array(lHe-sHe+1);wm(j1);var F4=new Array($4);wm(F4);var zS=new Array(gg);wm(zS);function P3(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}var Fte,Lte,Bte;function $3(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function zte(e){return e<256?z1[e]:z1[256+(e>>>7)]}function U1(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function mu(e,t,r){e.bi_valid>D3-r?(e.bi_buf|=t<<e.bi_valid&65535,U1(e,e.bi_buf),e.bi_buf=t>>D3-e.bi_valid,e.bi_valid+=r-D3):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Ll(e,t,r){mu(e,r[t*2],r[t*2+1])}function jte(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function hHe(e){e.bi_valid===16?(U1(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function pHe(e,t){var r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,s=t.stat_desc.max_length,l,f,d,h,p,v,S=0;for(h=0;h<=Nh;h++)e.bl_count[h]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Dte;l++)f=e.heap[l],h=r[r[f*2+1]*2+1]+1,h>s&&(h=s,S++),r[f*2+1]=h,!(f>n)&&(e.bl_count[h]++,p=0,f>=u&&(p=o[f-u]),v=r[f*2],e.opt_len+=v*(h+p),a&&(e.static_len+=v*(i[f*2+1]+p)));if(S!==0){do{for(h=s-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[s]--,S-=2}while(S>0);for(h=s;h!==0;h--)for(f=e.bl_count[h];f!==0;)d=e.heap[--l],!(d>n)&&(r[d*2+1]!==h&&(e.opt_len+=(h-r[d*2+1])*r[d*2],r[d*2+1]=h),f--)}}function Ute(e,t,r){var n=new Array(Nh+1),i=0,a,o;for(a=1;a<=Nh;a++)n[a]=i=i+r[a-1]<<1;for(o=0;o<=t;o++){var u=e[o*2+1];u!==0&&(e[o*2]=jte(n[u]++,u))}}function vHe(){var e,t,r,n,i,a=new Array(Nh+1);for(r=0,n=0;n<$4-1;n++)for(F4[n]=r,e=0;e<1<<rD[n];e++)j1[r++]=n;for(j1[r-1]=n,i=0,n=0;n<16;n++)for(zS[n]=i,e=0;e<1<<O_[n];e++)z1[i++]=n;for(i>>=7;n<gg;n++)for(zS[n]=i<<7,e=0;e<1<<O_[n]-7;e++)z1[256+i++]=n;for(t=0;t<=Nh;t++)a[t]=0;for(e=0;e<=143;)If[e*2+1]=8,e++,a[8]++;for(;e<=255;)If[e*2+1]=9,e++,a[9]++;for(;e<=279;)If[e*2+1]=7,e++,a[7]++;for(;e<=287;)If[e*2+1]=8,e++,a[8]++;for(Ute(If,B1+1,a),e=0;e<gg;e++)zy[e*2+1]=5,zy[e*2]=jte(e,5);Fte=new P3(If,rD,ew+1,B1,Nh),Lte=new P3(zy,O_,0,gg,Nh),Bte=new P3(new Array(0),cHe,0,M4,fHe)}function qte(e){var t;for(t=0;t<B1;t++)e.dyn_ltree[t*2]=0;for(t=0;t<gg;t++)e.dyn_dtree[t*2]=0;for(t=0;t<M4;t++)e.bl_tree[t*2]=0;e.dyn_ltree[N4*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Hte(e){e.bi_valid>8?U1(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function gHe(e,t,r,n){Hte(e),n&&(U1(e,r),U1(e,~r)),nHe.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function E9(e,t,r,n){var i=t*2,a=r*2;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function M3(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&E9(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!E9(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function C9(e,t,r){var n,i,a=0,o,u;if(e.last_lit!==0)do n=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,n===0?Ll(e,i,t):(o=j1[i],Ll(e,o+ew+1,t),u=rD[o],u!==0&&(i-=F4[o],mu(e,i,u)),n--,o=zte(n),Ll(e,o,r),u=O_[o],u!==0&&(n-=zS[o],mu(e,n,u)));while(a<e.last_lit);Ll(e,N4,t)}function nD(e,t){var r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,u,s=-1,l;for(e.heap_len=0,e.heap_max=Dte,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=s=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=s<2?++s:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=n[l*2+1]);for(t.max_code=s,o=e.heap_len>>1;o>=1;o--)M3(e,r,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M3(e,r,1),u=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=u,r[l*2]=r[o*2]+r[u*2],e.depth[l]=(e.depth[o]>=e.depth[u]?e.depth[o]:e.depth[u])+1,r[o*2+1]=r[u*2+1]=l,e.heap[1]=l++,M3(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],pHe(e,t),Ute(r,s,e.bl_count)}function A9(e,t,r){var n,i=-1,a,o=t[0*2+1],u=0,s=7,l=4;for(o===0&&(s=138,l=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)a=o,o=t[(n+1)*2+1],!(++u<s&&a===o)&&(u<l?e.bl_tree[a*2]+=u:a!==0?(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Pte*2]++):u<=10?e.bl_tree[$te*2]++:e.bl_tree[Mte*2]++,u=0,i=a,o===0?(s=138,l=3):a===o?(s=6,l=3):(s=7,l=4))}function k9(e,t,r){var n,i=-1,a,o=t[0*2+1],u=0,s=7,l=4;for(o===0&&(s=138,l=3),n=0;n<=r;n++)if(a=o,o=t[(n+1)*2+1],!(++u<s&&a===o)){if(u<l)do Ll(e,a,e.bl_tree);while(--u!==0);else a!==0?(a!==i&&(Ll(e,a,e.bl_tree),u--),Ll(e,Pte,e.bl_tree),mu(e,u-3,2)):u<=10?(Ll(e,$te,e.bl_tree),mu(e,u-3,3)):(Ll(e,Mte,e.bl_tree),mu(e,u-11,7));u=0,i=a,o===0?(s=138,l=3):a===o?(s=6,l=3):(s=7,l=4)}}function mHe(e){var t;for(A9(e,e.dyn_ltree,e.l_desc.max_code),A9(e,e.dyn_dtree,e.d_desc.max_code),nD(e,e.bl_desc),t=M4-1;t>=3&&e.bl_tree[Nte[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function yHe(e,t,r,n){var i;for(mu(e,t-257,5),mu(e,r-1,5),mu(e,n-4,4),i=0;i<n;i++)mu(e,e.bl_tree[Nte[i]*2+1],3);k9(e,e.dyn_ltree,t-1),k9(e,e.dyn_dtree,r-1)}function bHe(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return _9;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return S9;for(r=32;r<ew;r++)if(e.dyn_ltree[r*2]!==0)return S9;return _9}var T9=!1;function wHe(e){T9||(vHe(),T9=!0),e.l_desc=new $3(e.dyn_ltree,Fte),e.d_desc=new $3(e.dyn_dtree,Lte),e.bl_desc=new $3(e.bl_tree,Bte),e.bi_buf=0,e.bi_valid=0,qte(e)}function Wte(e,t,r,n){mu(e,(oHe<<1)+(n?1:0),3),gHe(e,t,r,!0)}function xHe(e){mu(e,Rte<<1,3),Ll(e,N4,If),hHe(e)}function _He(e,t,r,n){var i,a,o=0;e.level>0?(e.strm.data_type===aHe&&(e.strm.data_type=bHe(e)),nD(e,e.l_desc),nD(e,e.d_desc),o=mHe(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=r+5,r+4<=i&&t!==-1?Wte(e,t,r,n):e.strategy===iHe||a===i?(mu(e,(Rte<<1)+(n?1:0),3),C9(e,If,zy)):(mu(e,(uHe<<1)+(n?1:0),3),yHe(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),C9(e,e.dyn_ltree,e.dyn_dtree)),qte(e),n&&Hte(e)}function SHe(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(j1[r]+ew+1)*2]++,e.dyn_dtree[zte(t)*2]++),e.last_lit===e.lit_bufsize-1}bm._tr_init=wHe;bm._tr_stored_block=Wte;bm._tr_flush_block=_He;bm._tr_tally=SHe;bm._tr_align=xHe;function EHe(e,t,r,n){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do i=i+t[n++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}var Gte=EHe;function CHe(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var AHe=CHe();function kHe(e,t,r,n){var i=AHe,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1}var Vte=kHe,L4={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"},Xo=nc,_s=bm,Yte=Gte,Tc=Vte,THe=L4,Rp=0,OHe=1,IHe=3,ud=4,O9=5,Bl=0,I9=1,Ss=-2,RHe=-3,N3=-5,DHe=-1,PHe=1,Wx=2,$He=3,MHe=4,NHe=0,FHe=2,qC=8,LHe=9,BHe=15,zHe=8,jHe=29,UHe=256,iD=UHe+1+jHe,qHe=30,HHe=19,WHe=2*iD+1,GHe=15,In=3,Yc=258,sl=Yc+In+1,VHe=32,HC=42,aD=69,I_=73,R_=91,D_=103,Fh=113,oy=666,Ia=1,tw=2,sp=3,xm=4,YHe=3;function Xc(e,t){return e.msg=THe[t],t}function R9(e){return(e<<1)-(e>4?9:0)}function Bc(e){for(var t=e.length;--t>=0;)e[t]=0}function Oc(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Xo.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function wo(e,t){_s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Oc(e.strm)}function qn(e,t){e.pending_buf[e.pending++]=t}function U0(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function XHe(e,t,r,n){var i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,Xo.arraySet(t,e.input,e.next_in,i,r),e.state.wrap===1?e.adler=Yte(e.adler,t,i,r):e.state.wrap===2&&(e.adler=Tc(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function Xte(e,t){var r=e.max_chain_length,n=e.strstart,i,a,o=e.prev_length,u=e.nice_match,s=e.strstart>e.w_size-sl?e.strstart-(e.w_size-sl):0,l=e.window,f=e.w_mask,d=e.prev,h=e.strstart+Yc,p=l[n+o-1],v=l[n+o];e.prev_length>=e.good_match&&(r>>=2),u>e.lookahead&&(u=e.lookahead);do if(i=t,!(l[i+o]!==v||l[i+o-1]!==p||l[i]!==l[n]||l[++i]!==l[n+1])){n+=2,i++;do;while(l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&n<h);if(a=Yc-(h-n),n=h-Yc,a>o){if(e.match_start=t,o=a,a>=u)break;p=l[n+o-1],v=l[n+o]}}while((t=d[t&f])>s&&--r!==0);return o<=e.lookahead?o:e.lookahead}function lp(e){var t=e.w_size,r,n,i,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-sl)){Xo.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do i=e.head[--r],e.head[r]=i>=t?i-t:0;while(--n);n=t,r=n;do i=e.prev[--r],e.prev[r]=i>=t?i-t:0;while(--n);a+=t}if(e.strm.avail_in===0)break;if(n=XHe(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=In)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+In-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<In)););}while(e.lookahead<sl&&e.strm.avail_in!==0)}function KHe(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(lp(e),e.lookahead===0&&t===Rp)return Ia;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((e.strstart===0||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,wo(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-sl&&(wo(e,!1),e.strm.avail_out===0))return Ia}return e.insert=0,t===ud?(wo(e,!0),e.strm.avail_out===0?sp:xm):(e.strstart>e.block_start&&(wo(e,!1),e.strm.avail_out===0),Ia)}function F3(e,t){for(var r,n;;){if(e.lookahead<sl){if(lp(e),e.lookahead<sl&&t===Rp)return Ia;if(e.lookahead===0)break}if(r=0,e.lookahead>=In&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+In-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-sl&&(e.match_length=Xte(e,r)),e.match_length>=In)if(n=_s._tr_tally(e,e.strstart-e.match_start,e.match_length-In),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=In){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+In-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=_s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(wo(e,!1),e.strm.avail_out===0))return Ia}return e.insert=e.strstart<In-1?e.strstart:In-1,t===ud?(wo(e,!0),e.strm.avail_out===0?sp:xm):e.last_lit&&(wo(e,!1),e.strm.avail_out===0)?Ia:tw}function _v(e,t){for(var r,n,i;;){if(e.lookahead<sl){if(lp(e),e.lookahead<sl&&t===Rp)return Ia;if(e.lookahead===0)break}if(r=0,e.lookahead>=In&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+In-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=In-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-sl&&(e.match_length=Xte(e,r),e.match_length<=5&&(e.strategy===PHe||e.match_length===In&&e.strstart-e.match_start>4096)&&(e.match_length=In-1)),e.prev_length>=In&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-In,n=_s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-In),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+In-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=In-1,e.strstart++,n&&(wo(e,!1),e.strm.avail_out===0))return Ia}else if(e.match_available){if(n=_s._tr_tally(e,0,e.window[e.strstart-1]),n&&wo(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ia}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=_s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<In-1?e.strstart:In-1,t===ud?(wo(e,!0),e.strm.avail_out===0?sp:xm):e.last_lit&&(wo(e,!1),e.strm.avail_out===0)?Ia:tw}function ZHe(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=Yc){if(lp(e),e.lookahead<=Yc&&t===Rp)return Ia;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=In&&e.strstart>0&&(i=e.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){a=e.strstart+Yc;do;while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);e.match_length=Yc-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=In?(r=_s._tr_tally(e,1,e.match_length-In),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=_s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(wo(e,!1),e.strm.avail_out===0))return Ia}return e.insert=0,t===ud?(wo(e,!0),e.strm.avail_out===0?sp:xm):e.last_lit&&(wo(e,!1),e.strm.avail_out===0)?Ia:tw}function QHe(e,t){for(var r;;){if(e.lookahead===0&&(lp(e),e.lookahead===0)){if(t===Rp)return Ia;break}if(e.match_length=0,r=_s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(wo(e,!1),e.strm.avail_out===0))return Ia}return e.insert=0,t===ud?(wo(e,!0),e.strm.avail_out===0?sp:xm):e.last_lit&&(wo(e,!1),e.strm.avail_out===0)?Ia:tw}function Tl(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}var Wv;Wv=[new Tl(0,0,0,0,KHe),new Tl(4,4,8,4,F3),new Tl(4,5,16,8,F3),new Tl(4,6,32,32,F3),new Tl(4,4,16,16,_v),new Tl(8,16,32,32,_v),new Tl(8,16,128,128,_v),new Tl(8,32,128,256,_v),new Tl(32,128,258,1024,_v),new Tl(32,258,258,4096,_v)];function JHe(e){e.window_size=2*e.w_size,Bc(e.head),e.max_lazy_match=Wv[e.level].max_lazy,e.good_match=Wv[e.level].good_length,e.nice_match=Wv[e.level].nice_length,e.max_chain_length=Wv[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=In-1,e.match_available=0,e.ins_h=0}function eWe(){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=qC,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 Xo.Buf16(WHe*2),this.dyn_dtree=new Xo.Buf16((2*qHe+1)*2),this.bl_tree=new Xo.Buf16((2*HHe+1)*2),Bc(this.dyn_ltree),Bc(this.dyn_dtree),Bc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Xo.Buf16(GHe+1),this.heap=new Xo.Buf16(2*iD+1),Bc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Xo.Buf16(2*iD+1),Bc(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 Kte(e){var t;return!e||!e.state?Xc(e,Ss):(e.total_in=e.total_out=0,e.data_type=FHe,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?HC:Fh,e.adler=t.wrap===2?0:1,t.last_flush=Rp,_s._tr_init(t),Bl)}function Zte(e){var t=Kte(e);return t===Bl&&JHe(e.state),t}function tWe(e,t){return!e||!e.state||e.state.wrap!==2?Ss:(e.state.gzhead=t,Bl)}function Qte(e,t,r,n,i,a){if(!e)return Ss;var o=1;if(t===DHe&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>LHe||r!==qC||n<8||n>15||t<0||t>9||a<0||a>MHe)return Xc(e,Ss);n===8&&(n=9);var u=new eWe;return e.state=u,u.strm=e,u.wrap=o,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+In-1)/In),u.window=new Xo.Buf8(u.w_size*2),u.head=new Xo.Buf16(u.hash_size),u.prev=new Xo.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=u.lit_bufsize*4,u.pending_buf=new Xo.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=(1+2)*u.lit_bufsize,u.level=t,u.strategy=a,u.method=r,Zte(e)}function rWe(e,t){return Qte(e,t,qC,BHe,zHe,NHe)}function nWe(e,t){var r,n,i,a;if(!e||!e.state||t>O9||t<0)return e?Xc(e,Ss):Ss;if(n=e.state,!e.output||!e.input&&e.avail_in!==0||n.status===oy&&t!==ud)return Xc(e,e.avail_out===0?N3:Ss);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===HC)if(n.wrap===2)e.adler=0,qn(n,31),qn(n,139),qn(n,8),n.gzhead?(qn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),qn(n,n.gzhead.time&255),qn(n,n.gzhead.time>>8&255),qn(n,n.gzhead.time>>16&255),qn(n,n.gzhead.time>>24&255),qn(n,n.level===9?2:n.strategy>=Wx||n.level<2?4:0),qn(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(qn(n,n.gzhead.extra.length&255),qn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Tc(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=aD):(qn(n,0),qn(n,0),qn(n,0),qn(n,0),qn(n,0),qn(n,n.level===9?2:n.strategy>=Wx||n.level<2?4:0),qn(n,YHe),n.status=Fh);else{var o=qC+(n.w_bits-8<<4)<<8,u=-1;n.strategy>=Wx||n.level<2?u=0:n.level<6?u=1:n.level===6?u=2:u=3,o|=u<<6,n.strstart!==0&&(o|=VHe),o+=31-o%31,n.status=Fh,U0(n,o),n.strstart!==0&&(U0(n,e.adler>>>16),U0(n,e.adler&65535)),e.adler=1}if(n.status===aD)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Tc(e.adler,n.pending_buf,n.pending-i,i)),Oc(e),i=n.pending,n.pending===n.pending_buf_size));)qn(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=Tc(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=I_)}else n.status=I_;if(n.status===I_)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Tc(e.adler,n.pending_buf,n.pending-i,i)),Oc(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}n.gzindex<n.gzhead.name.length?a=n.gzhead.name.charCodeAt(n.gzindex++)&255:a=0,qn(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Tc(e.adler,n.pending_buf,n.pending-i,i)),a===0&&(n.gzindex=0,n.status=R_)}else n.status=R_;if(n.status===R_)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Tc(e.adler,n.pending_buf,n.pending-i,i)),Oc(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}n.gzindex<n.gzhead.comment.length?a=n.gzhead.comment.charCodeAt(n.gzindex++)&255:a=0,qn(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Tc(e.adler,n.pending_buf,n.pending-i,i)),a===0&&(n.status=D_)}else n.status=D_;if(n.status===D_&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Oc(e),n.pending+2<=n.pending_buf_size&&(qn(n,e.adler&255),qn(n,e.adler>>8&255),e.adler=0,n.status=Fh)):n.status=Fh),n.pending!==0){if(Oc(e),e.avail_out===0)return n.last_flush=-1,Bl}else if(e.avail_in===0&&R9(t)<=R9(r)&&t!==ud)return Xc(e,N3);if(n.status===oy&&e.avail_in!==0)return Xc(e,N3);if(e.avail_in!==0||n.lookahead!==0||t!==Rp&&n.status!==oy){var s=n.strategy===Wx?QHe(n,t):n.strategy===$He?ZHe(n,t):Wv[n.level].func(n,t);if((s===sp||s===xm)&&(n.status=oy),s===Ia||s===sp)return e.avail_out===0&&(n.last_flush=-1),Bl;if(s===tw&&(t===OHe?_s._tr_align(n):t!==O9&&(_s._tr_stored_block(n,0,0,!1),t===IHe&&(Bc(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Oc(e),e.avail_out===0))return n.last_flush=-1,Bl}return t!==ud?Bl:n.wrap<=0?I9:(n.wrap===2?(qn(n,e.adler&255),qn(n,e.adler>>8&255),qn(n,e.adler>>16&255),qn(n,e.adler>>24&255),qn(n,e.total_in&255),qn(n,e.total_in>>8&255),qn(n,e.total_in>>16&255),qn(n,e.total_in>>24&255)):(U0(n,e.adler>>>16),U0(n,e.adler&65535)),Oc(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Bl:I9)}function iWe(e){var t;return!e||!e.state?Ss:(t=e.state.status,t!==HC&&t!==aD&&t!==I_&&t!==R_&&t!==D_&&t!==Fh&&t!==oy?Xc(e,Ss):(e.state=null,t===Fh?Xc(e,RHe):Bl))}function aWe(e,t){var r=t.length,n,i,a,o,u,s,l,f;if(!e||!e.state||(n=e.state,o=n.wrap,o===2||o===1&&n.status!==HC||n.lookahead))return Ss;for(o===1&&(e.adler=Yte(e.adler,t,r,0)),n.wrap=0,r>=n.w_size&&(o===0&&(Bc(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new Xo.Buf8(n.w_size),Xo.arraySet(f,t,r-n.w_size,n.w_size,0),t=f,r=n.w_size),u=e.avail_in,s=e.next_in,l=e.input,e.avail_in=r,e.next_in=0,e.input=t,lp(n);n.lookahead>=In;){i=n.strstart,a=n.lookahead-(In-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+In-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++;while(--a);n.strstart=i,n.lookahead=In-1,lp(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=In-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=u,n.wrap=o,Bl}af.deflateInit=rWe;af.deflateInit2=Qte;af.deflateReset=Zte;af.deflateResetKeep=Kte;af.deflateSetHeader=tWe;af.deflate=nWe;af.deflateEnd=iWe;af.deflateSetDictionary=aWe;af.deflateInfo="pako deflate (from Nodeca project)";var Dp={},WC=nc,Jte=!0,ere=!0;try{String.fromCharCode.apply(null,[0])}catch{Jte=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ere=!1}var q1=new WC.Buf8(256);for(var Ac=0;Ac<256;Ac++)q1[Ac]=Ac>=252?6:Ac>=248?5:Ac>=240?4:Ac>=224?3:Ac>=192?2:1;q1[254]=q1[254]=1;Dp.string2buf=function(e){var t,r,n,i,a,o=e.length,u=0;for(i=0;i<o;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<o&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),u+=r<128?1:r<2048?2:r<65536?3:4;for(t=new WC.Buf8(u),a=0,i=0;a<u;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<o&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function tre(e,t){if(t<65534&&(e.subarray&&ere||!e.subarray&&Jte))return String.fromCharCode.apply(null,WC.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}Dp.buf2binstring=function(e){return tre(e,e.length)};Dp.binstring2buf=function(e){for(var t=new WC.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t};Dp.buf2string=function(e,t){var r,n,i,a,o=t||e.length,u=new Array(o*2);for(n=0,r=0;r<o;){if(i=e[r++],i<128){u[n++]=i;continue}if(a=q1[i],a>4){u[n++]=65533,r+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&r<o;)i=i<<6|e[r++]&63,a--;if(a>1){u[n++]=65533;continue}i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|i&1023)}return tre(u,n)};Dp.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+q1[e[r]]>t?r:t};function oWe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var rre=oWe,jy=af,Uy=nc,oD=Dp,uD=L4,uWe=rre,nre=Object.prototype.toString,sWe=0,L3=4,mg=0,D9=1,P9=2,lWe=-1,fWe=0,cWe=8;function fp(e){if(!(this instanceof fp))return new fp(e);this.options=Uy.assign({level:lWe,method:cWe,chunkSize:16384,windowBits:15,memLevel:8,strategy:fWe,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new uWe,this.strm.avail_out=0;var r=jy.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==mg)throw new Error(uD[r]);if(t.header&&jy.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(typeof t.dictionary=="string"?n=oD.string2buf(t.dictionary):nre.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=jy.deflateSetDictionary(this.strm,n),r!==mg)throw new Error(uD[r]);this._dict_set=!0}}fp.prototype.push=function(e,t){var r=this.strm,n=this.options.chunkSize,i,a;if(this.ended)return!1;a=t===~~t?t:t===!0?L3:sWe,typeof e=="string"?r.input=oD.string2buf(e):nre.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Uy.Buf8(n),r.next_out=0,r.avail_out=n),i=jy.deflate(r,a),i!==D9&&i!==mg)return this.onEnd(i),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===L3||a===P9))&&(this.options.to==="string"?this.onData(oD.buf2binstring(Uy.shrinkBuf(r.output,r.next_out))):this.onData(Uy.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&i!==D9);return a===L3?(i=jy.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===mg):(a===P9&&(this.onEnd(mg),r.avail_out=0),!0)};fp.prototype.onData=function(e){this.chunks.push(e)};fp.prototype.onEnd=function(e){e===mg&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Uy.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function B4(e,t){var r=new fp(t);if(r.push(e,!0),r.err)throw r.msg||uD[r.err];return r.result}function dWe(e,t){return t=t||{},t.raw=!0,B4(e,t)}function hWe(e,t){return t=t||{},t.gzip=!0,B4(e,t)}Jb.Deflate=fp;Jb.deflate=B4;Jb.deflateRaw=dWe;Jb.gzip=hWe;var rw={},pl={},Gx=30,pWe=12,vWe=function(t,r){var n,i,a,o,u,s,l,f,d,h,p,v,S,y,m,x,w,E,A,g,F,P,N,V,H;n=t.state,i=t.next_in,V=t.input,a=i+(t.avail_in-5),o=t.next_out,H=t.output,u=o-(r-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,f=n.wsize,d=n.whave,h=n.wnext,p=n.window,v=n.hold,S=n.bits,y=n.lencode,m=n.distcode,x=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{S<15&&(v+=V[i++]<<S,S+=8,v+=V[i++]<<S,S+=8),E=y[v&x];t:for(;;){if(A=E>>>24,v>>>=A,S-=A,A=E>>>16&255,A===0)H[o++]=E&65535;else if(A&16){g=E&65535,A&=15,A&&(S<A&&(v+=V[i++]<<S,S+=8),g+=v&(1<<A)-1,v>>>=A,S-=A),S<15&&(v+=V[i++]<<S,S+=8,v+=V[i++]<<S,S+=8),E=m[v&w];r:for(;;){if(A=E>>>24,v>>>=A,S-=A,A=E>>>16&255,A&16){if(F=E&65535,A&=15,S<A&&(v+=V[i++]<<S,S+=8,S<A&&(v+=V[i++]<<S,S+=8)),F+=v&(1<<A)-1,F>l){t.msg="invalid distance too far back",n.mode=Gx;break e}if(v>>>=A,S-=A,A=o-u,F>A){if(A=F-A,A>d&&n.sane){t.msg="invalid distance too far back",n.mode=Gx;break e}if(P=0,N=p,h===0){if(P+=f-A,A<g){g-=A;do H[o++]=p[P++];while(--A);P=o-F,N=H}}else if(h<A){if(P+=f+h-A,A-=h,A<g){g-=A;do H[o++]=p[P++];while(--A);if(P=0,h<g){A=h,g-=A;do H[o++]=p[P++];while(--A);P=o-F,N=H}}}else if(P+=h-A,A<g){g-=A;do H[o++]=p[P++];while(--A);P=o-F,N=H}for(;g>2;)H[o++]=N[P++],H[o++]=N[P++],H[o++]=N[P++],g-=3;g&&(H[o++]=N[P++],g>1&&(H[o++]=N[P++]))}else{P=o-F;do H[o++]=H[P++],H[o++]=H[P++],H[o++]=H[P++],g-=3;while(g>2);g&&(H[o++]=H[P++],g>1&&(H[o++]=H[P++]))}}else if(A&64){t.msg="invalid distance code",n.mode=Gx;break e}else{E=m[(E&65535)+(v&(1<<A)-1)];continue r}break}}else if(A&64)if(A&32){n.mode=pWe;break e}else{t.msg="invalid literal/length code",n.mode=Gx;break e}else{E=y[(E&65535)+(v&(1<<A)-1)];continue t}break}}while(i<a&&o<s);g=S>>3,i-=g,S-=g<<3,v&=(1<<S)-1,t.next_in=i,t.next_out=o,t.avail_in=i<a?5+(a-i):5-(i-a),t.avail_out=o<s?257+(s-o):257-(o-s),n.hold=v,n.bits=S},$9=nc,Sv=15,M9=852,N9=592,F9=0,B3=1,L9=2,gWe=[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],mWe=[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],yWe=[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],bWe=[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],wWe=function(t,r,n,i,a,o,u,s){var l=s.bits,f=0,d=0,h=0,p=0,v=0,S=0,y=0,m=0,x=0,w=0,E,A,g,F,P,N=null,V=0,H,ie=new $9.Buf16(Sv+1),pe=new $9.Buf16(Sv+1),de=null,Be=0,Fe,M,G;for(f=0;f<=Sv;f++)ie[f]=0;for(d=0;d<i;d++)ie[r[n+d]]++;for(v=l,p=Sv;p>=1&&ie[p]===0;p--);if(v>p&&(v=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(h=1;h<p&&ie[h]===0;h++);for(v<h&&(v=h),m=1,f=1;f<=Sv;f++)if(m<<=1,m-=ie[f],m<0)return-1;if(m>0&&(t===F9||p!==1))return-1;for(pe[1]=0,f=1;f<Sv;f++)pe[f+1]=pe[f]+ie[f];for(d=0;d<i;d++)r[n+d]!==0&&(u[pe[r[n+d]]++]=d);if(t===F9?(N=de=u,H=19):t===B3?(N=gWe,V-=257,de=mWe,Be-=257,H=256):(N=yWe,de=bWe,H=-1),w=0,d=0,f=h,P=o,S=v,y=0,g=-1,x=1<<v,F=x-1,t===B3&&x>M9||t===L9&&x>N9)return 1;for(;;){Fe=f-y,u[d]<H?(M=0,G=u[d]):u[d]>H?(M=de[Be+u[d]],G=N[V+u[d]]):(M=32+64,G=0),E=1<<f-y,A=1<<S,h=A;do A-=E,a[P+(w>>y)+A]=Fe<<24|M<<16|G|0;while(A!==0);for(E=1<<f-1;w&E;)E>>=1;if(E!==0?(w&=E-1,w+=E):w=0,d++,--ie[f]===0){if(f===p)break;f=r[n+u[d]]}if(f>v&&(w&F)!==g){for(y===0&&(y=v),P+=h,S=f-y,m=1<<S;S+y<p&&(m-=ie[S+y],!(m<=0));)S++,m<<=1;if(x+=1<<S,t===B3&&x>M9||t===L9&&x>N9)return 1;g=w&F,a[g]=v<<24|S<<16|P-o|0}}return w!==0&&(a[P+w]=f-y<<24|64<<16|0),s.bits=v,0},zu=nc,sD=Gte,Ol=Vte,xWe=vWe,qy=wWe,_We=0,ire=1,are=2,B9=4,SWe=5,Vx=6,cp=0,EWe=1,CWe=2,Is=-2,ore=-3,ure=-4,AWe=-5,z9=8,sre=1,j9=2,U9=3,q9=4,H9=5,W9=6,G9=7,V9=8,Y9=9,X9=10,jS=11,Cf=12,z3=13,K9=14,j3=15,Z9=16,Q9=17,J9=18,eq=19,Yx=20,Xx=21,tq=22,rq=23,nq=24,iq=25,aq=26,U3=27,oq=28,uq=29,Mi=30,lre=31,kWe=32,TWe=852,OWe=592,IWe=15,RWe=IWe;function sq(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function DWe(){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 zu.Buf16(320),this.work=new zu.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function fre(e){var t;return!e||!e.state?Is:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=sre,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new zu.Buf32(TWe),t.distcode=t.distdyn=new zu.Buf32(OWe),t.sane=1,t.back=-1,cp)}function cre(e){var t;return!e||!e.state?Is:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,fre(e))}function dre(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Is:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,cre(e))}function hre(e,t){var r,n;return e?(n=new DWe,e.state=n,n.window=null,r=dre(e,t),r!==cp&&(e.state=null),r):Is}function PWe(e){return hre(e,RWe)}var lq=!0,q3,H3;function $We(e){if(lq){var t;for(q3=new zu.Buf32(512),H3=new zu.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(qy(ire,e.lens,0,288,q3,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;qy(are,e.lens,0,32,H3,0,e.work,{bits:5}),lq=!1}e.lencode=q3,e.lenbits=9,e.distcode=H3,e.distbits=5}function pre(e,t,r,n){var i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new zu.Buf8(a.wsize)),n>=a.wsize?(zu.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),zu.arraySet(a.window,t,r-n,i,a.wnext),n-=i,n?(zu.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function MWe(e,t){var r,n,i,a,o,u,s,l,f,d,h,p,v,S,y=0,m,x,w,E,A,g,F,P,N=new zu.Buf8(4),V,H,ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Is;r=e.state,r.mode===Cf&&(r.mode=z3),o=e.next_out,i=e.output,s=e.avail_out,a=e.next_in,n=e.input,u=e.avail_in,l=r.hold,f=r.bits,d=u,h=s,P=cp;e:for(;;)switch(r.mode){case sre:if(r.wrap===0){r.mode=z3;break}for(;f<16;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(r.wrap&2&&l===35615){r.check=0,N[0]=l&255,N[1]=l>>>8&255,r.check=Ol(r.check,N,2,0),l=0,f=0,r.mode=j9;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Mi;break}if((l&15)!==z9){e.msg="unknown compression method",r.mode=Mi;break}if(l>>>=4,f-=4,F=(l&15)+8,r.wbits===0)r.wbits=F;else if(F>r.wbits){e.msg="invalid window size",r.mode=Mi;break}r.dmax=1<<F,e.adler=r.check=1,r.mode=l&512?X9:Cf,l=0,f=0;break;case j9:for(;f<16;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(r.flags=l,(r.flags&255)!==z9){e.msg="unknown compression method",r.mode=Mi;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Mi;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&(N[0]=l&255,N[1]=l>>>8&255,r.check=Ol(r.check,N,2,0)),l=0,f=0,r.mode=U9;case U9:for(;f<32;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}r.head&&(r.head.time=l),r.flags&512&&(N[0]=l&255,N[1]=l>>>8&255,N[2]=l>>>16&255,N[3]=l>>>24&255,r.check=Ol(r.check,N,4,0)),l=0,f=0,r.mode=q9;case q9:for(;f<16;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&(N[0]=l&255,N[1]=l>>>8&255,r.check=Ol(r.check,N,2,0)),l=0,f=0,r.mode=H9;case H9:if(r.flags&1024){for(;f<16;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&(N[0]=l&255,N[1]=l>>>8&255,r.check=Ol(r.check,N,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=W9;case W9:if(r.flags&1024&&(p=r.length,p>u&&(p=u),p&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),zu.arraySet(r.head.extra,n,a,p,F)),r.flags&512&&(r.check=Ol(r.check,n,p,a)),u-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=G9;case G9:if(r.flags&2048){if(u===0)break e;p=0;do F=n[a+p++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F));while(F&&p<u);if(r.flags&512&&(r.check=Ol(r.check,n,p,a)),u-=p,a+=p,F)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=V9;case V9:if(r.flags&4096){if(u===0)break e;p=0;do F=n[a+p++],r.head&&F&&r.length<65536&&(r.head.comment+=String.fromCharCode(F));while(F&&p<u);if(r.flags&512&&(r.check=Ol(r.check,n,p,a)),u-=p,a+=p,F)break e}else r.head&&(r.head.comment=null);r.mode=Y9;case Y9:if(r.flags&512){for(;f<16;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Mi;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Cf;break;case X9:for(;f<32;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}e.adler=r.check=sq(l),l=0,f=0,r.mode=jS;case jS:if(r.havedict===0)return e.next_out=o,e.avail_out=s,e.next_in=a,e.avail_in=u,r.hold=l,r.bits=f,CWe;e.adler=r.check=1,r.mode=Cf;case Cf:if(t===SWe||t===Vx)break e;case z3:if(r.last){l>>>=f&7,f-=f&7,r.mode=U3;break}for(;f<3;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}switch(r.last=l&1,l>>>=1,f-=1,l&3){case 0:r.mode=K9;break;case 1:if($We(r),r.mode=Yx,t===Vx){l>>>=2,f-=2;break e}break;case 2:r.mode=Q9;break;case 3:e.msg="invalid block type",r.mode=Mi}l>>>=2,f-=2;break;case K9:for(l>>>=f&7,f-=f&7;f<32;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Mi;break}if(r.length=l&65535,l=0,f=0,r.mode=j3,t===Vx)break e;case j3:r.mode=Z9;case Z9:if(p=r.length,p){if(p>u&&(p=u),p>s&&(p=s),p===0)break e;zu.arraySet(i,n,a,p,o),u-=p,a+=p,s-=p,o+=p,r.length-=p;break}r.mode=Cf;break;case Q9:for(;f<14;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(r.nlen=(l&31)+257,l>>>=5,f-=5,r.ndist=(l&31)+1,l>>>=5,f-=5,r.ncode=(l&15)+4,l>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Mi;break}r.have=0,r.mode=J9;case J9:for(;r.have<r.ncode;){for(;f<3;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}r.lens[ie[r.have++]]=l&7,l>>>=3,f-=3}for(;r.have<19;)r.lens[ie[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,V={bits:r.lenbits},P=qy(_We,r.lens,0,19,r.lencode,0,r.work,V),r.lenbits=V.bits,P){e.msg="invalid code lengths set",r.mode=Mi;break}r.have=0,r.mode=eq;case eq:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[l&(1<<r.lenbits)-1],m=y>>>24,x=y>>>16&255,w=y&65535,!(m<=f);){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(w<16)l>>>=m,f-=m,r.lens[r.have++]=w;else{if(w===16){for(H=m+2;f<H;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(l>>>=m,f-=m,r.have===0){e.msg="invalid bit length repeat",r.mode=Mi;break}F=r.lens[r.have-1],p=3+(l&3),l>>>=2,f-=2}else if(w===17){for(H=m+3;f<H;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}l>>>=m,f-=m,F=0,p=3+(l&7),l>>>=3,f-=3}else{for(H=m+7;f<H;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}l>>>=m,f-=m,F=0,p=11+(l&127),l>>>=7,f-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Mi;break}for(;p--;)r.lens[r.have++]=F}}if(r.mode===Mi)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Mi;break}if(r.lenbits=9,V={bits:r.lenbits},P=qy(ire,r.lens,0,r.nlen,r.lencode,0,r.work,V),r.lenbits=V.bits,P){e.msg="invalid literal/lengths set",r.mode=Mi;break}if(r.distbits=6,r.distcode=r.distdyn,V={bits:r.distbits},P=qy(are,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,V),r.distbits=V.bits,P){e.msg="invalid distances set",r.mode=Mi;break}if(r.mode=Yx,t===Vx)break e;case Yx:r.mode=Xx;case Xx:if(u>=6&&s>=258){e.next_out=o,e.avail_out=s,e.next_in=a,e.avail_in=u,r.hold=l,r.bits=f,xWe(e,h),o=e.next_out,i=e.output,s=e.avail_out,a=e.next_in,n=e.input,u=e.avail_in,l=r.hold,f=r.bits,r.mode===Cf&&(r.back=-1);break}for(r.back=0;y=r.lencode[l&(1<<r.lenbits)-1],m=y>>>24,x=y>>>16&255,w=y&65535,!(m<=f);){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(x&&!(x&240)){for(E=m,A=x,g=w;y=r.lencode[g+((l&(1<<E+A)-1)>>E)],m=y>>>24,x=y>>>16&255,w=y&65535,!(E+m<=f);){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}l>>>=E,f-=E,r.back+=E}if(l>>>=m,f-=m,r.back+=m,r.length=w,x===0){r.mode=aq;break}if(x&32){r.back=-1,r.mode=Cf;break}if(x&64){e.msg="invalid literal/length code",r.mode=Mi;break}r.extra=x&15,r.mode=tq;case tq:if(r.extra){for(H=r.extra;f<H;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=rq;case rq:for(;y=r.distcode[l&(1<<r.distbits)-1],m=y>>>24,x=y>>>16&255,w=y&65535,!(m<=f);){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(!(x&240)){for(E=m,A=x,g=w;y=r.distcode[g+((l&(1<<E+A)-1)>>E)],m=y>>>24,x=y>>>16&255,w=y&65535,!(E+m<=f);){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}l>>>=E,f-=E,r.back+=E}if(l>>>=m,f-=m,r.back+=m,x&64){e.msg="invalid distance code",r.mode=Mi;break}r.offset=w,r.extra=x&15,r.mode=nq;case nq:if(r.extra){for(H=r.extra;f<H;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Mi;break}r.mode=iq;case iq:if(s===0)break e;if(p=h-s,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Mi;break}p>r.wnext?(p-=r.wnext,v=r.wsize-p):v=r.wnext-p,p>r.length&&(p=r.length),S=r.window}else S=i,v=o-r.offset,p=r.length;p>s&&(p=s),s-=p,r.length-=p;do i[o++]=S[v++];while(--p);r.length===0&&(r.mode=Xx);break;case aq:if(s===0)break e;i[o++]=r.length,s--,r.mode=Xx;break;case U3:if(r.wrap){for(;f<32;){if(u===0)break e;u--,l|=n[a++]<<f,f+=8}if(h-=s,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?Ol(r.check,i,h,o-h):sD(r.check,i,h,o-h)),h=s,(r.flags?l:sq(l))!==r.check){e.msg="incorrect data check",r.mode=Mi;break}l=0,f=0}r.mode=oq;case oq:if(r.wrap&&r.flags){for(;f<32;){if(u===0)break e;u--,l+=n[a++]<<f,f+=8}if(l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Mi;break}l=0,f=0}r.mode=uq;case uq:P=EWe;break e;case Mi:P=ore;break e;case lre:return ure;case kWe:default:return Is}return e.next_out=o,e.avail_out=s,e.next_in=a,e.avail_in=u,r.hold=l,r.bits=f,(r.wsize||h!==e.avail_out&&r.mode<Mi&&(r.mode<U3||t!==B9))&&pre(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,r.total+=h,r.wrap&&h&&(e.adler=r.check=r.flags?Ol(r.check,i,h,e.next_out-h):sD(r.check,i,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Cf?128:0)+(r.mode===Yx||r.mode===j3?256:0),(d===0&&h===0||t===B9)&&P===cp&&(P=AWe),P}function NWe(e){if(!e||!e.state)return Is;var t=e.state;return t.window&&(t.window=null),e.state=null,cp}function FWe(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Is:(r.head=t,t.done=!1,cp)}function LWe(e,t){var r=t.length,n,i,a;return!e||!e.state||(n=e.state,n.wrap!==0&&n.mode!==jS)?Is:n.mode===jS&&(i=1,i=sD(i,t,r,0),i!==n.check)?ore:(a=pre(e,t,r,r),a?(n.mode=lre,ure):(n.havedict=1,cp))}pl.inflateReset=cre;pl.inflateReset2=dre;pl.inflateResetKeep=fre;pl.inflateInit=PWe;pl.inflateInit2=hre;pl.inflate=MWe;pl.inflateEnd=NWe;pl.inflateGetHeader=FWe;pl.inflateSetDictionary=LWe;pl.inflateInfo="pako inflate (from Nodeca project)";var vre={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};function BWe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var zWe=BWe,yg=pl,Hy=nc,P_=Dp,Ji=vre,lD=L4,jWe=rre,UWe=zWe,gre=Object.prototype.toString;function dp(e){if(!(this instanceof dp))return new dp(e);this.options=Hy.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new jWe,this.strm.avail_out=0;var r=yg.inflateInit2(this.strm,t.windowBits);if(r!==Ji.Z_OK)throw new Error(lD[r]);if(this.header=new UWe,yg.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=P_.string2buf(t.dictionary):gre.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=yg.inflateSetDictionary(this.strm,t.dictionary),r!==Ji.Z_OK)))throw new Error(lD[r])}dp.prototype.push=function(e,t){var r=this.strm,n=this.options.chunkSize,i=this.options.dictionary,a,o,u,s,l,f=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?Ji.Z_FINISH:Ji.Z_NO_FLUSH,typeof e=="string"?r.input=P_.binstring2buf(e):gre.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Hy.Buf8(n),r.next_out=0,r.avail_out=n),a=yg.inflate(r,Ji.Z_NO_FLUSH),a===Ji.Z_NEED_DICT&&i&&(a=yg.inflateSetDictionary(this.strm,i)),a===Ji.Z_BUF_ERROR&&f===!0&&(a=Ji.Z_OK,f=!1),a!==Ji.Z_STREAM_END&&a!==Ji.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===Ji.Z_STREAM_END||r.avail_in===0&&(o===Ji.Z_FINISH||o===Ji.Z_SYNC_FLUSH))&&(this.options.to==="string"?(u=P_.utf8border(r.output,r.next_out),s=r.next_out-u,l=P_.buf2string(r.output,u),r.next_out=s,r.avail_out=n-s,s&&Hy.arraySet(r.output,r.output,u,s,0),this.onData(l)):this.onData(Hy.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(f=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==Ji.Z_STREAM_END);return a===Ji.Z_STREAM_END&&(o=Ji.Z_FINISH),o===Ji.Z_FINISH?(a=yg.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Ji.Z_OK):(o===Ji.Z_SYNC_FLUSH&&(this.onEnd(Ji.Z_OK),r.avail_out=0),!0)};dp.prototype.onData=function(e){this.chunks.push(e)};dp.prototype.onEnd=function(e){e===Ji.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Hy.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function z4(e,t){var r=new dp(t);if(r.push(e,!0),r.err)throw r.msg||lD[r.err];return r.result}function qWe(e,t){return t=t||{},t.raw=!0,z4(e,t)}rw.Inflate=dp;rw.inflate=z4;rw.inflateRaw=qWe;rw.ungzip=z4;var HWe=nc.assign,WWe=Jb,GWe=rw,VWe=vre,mre={};HWe(mre,WWe,GWe,VWe);var YWe=mre,XWe=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",KWe=YWe,yre=Ui(),GC=$s,ZWe=XWe?"uint8array":"array";UC.magic="\b\0";function Pp(e,t){GC.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}yre.inherits(Pp,GC);Pp.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(yre.transformTo(ZWe,e.data),!1)};Pp.prototype.flush=function(){GC.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Pp.prototype.cleanUp=function(){GC.prototype.cleanUp.call(this),this._pako=null};Pp.prototype._createPako=function(){this._pako=new KWe[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};UC.compressWorker=function(e){return new Pp("Deflate",e)};UC.uncompressWorker=function(){return new Pp("Inflate",{})};var fq=$s;jC.STORE={magic:"\0\0",compressWorker:function(e){return new fq("STORE compression")},uncompressWorker:function(){return new fq("STORE decompression")}};jC.DEFLATE=UC;var Fd={};Fd.LOCAL_FILE_HEADER="PK";Fd.CENTRAL_FILE_HEADER="PK";Fd.CENTRAL_DIRECTORY_END="PK";Fd.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Fd.ZIP64_CENTRAL_DIRECTORY_END="PK";Fd.DATA_DESCRIPTOR="PK\x07\b";var Gv=Ui(),_m=$s,W3=mm,cq=O4,US=Fd,mi=function(e,t){var r="",n;for(n=0;n<t;n++)r+=String.fromCharCode(e&255),e=e>>>8;return r},QWe=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},JWe=function(e,t){return(e||0)&63},bre=function(e,t,r,n,i,a){var o=e.file,u=e.compression,s=a!==W3.utf8encode,l=Gv.transformTo("string",a(o.name)),f=Gv.transformTo("string",W3.utf8encode(o.name)),d=o.comment,h=Gv.transformTo("string",a(d)),p=Gv.transformTo("string",W3.utf8encode(d)),v=f.length!==o.name.length,S=p.length!==d.length,y,m,x="",w="",E="",A=o.dir,g=o.date,F={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(F.crc32=e.crc32,F.compressedSize=e.compressedSize,F.uncompressedSize=e.uncompressedSize);var P=0;t&&(P|=8),!s&&(v||S)&&(P|=2048);var N=0,V=0;A&&(N|=16),i==="UNIX"?(V=798,N|=QWe(o.unixPermissions,A)):(V=20,N|=JWe(o.dosPermissions)),y=g.getUTCHours(),y=y<<6,y=y|g.getUTCMinutes(),y=y<<5,y=y|g.getUTCSeconds()/2,m=g.getUTCFullYear()-1980,m=m<<4,m=m|g.getUTCMonth()+1,m=m<<5,m=m|g.getUTCDate(),v&&(w=mi(1,1)+mi(cq(l),4)+f,x+="up"+mi(w.length,2)+w),S&&(E=mi(1,1)+mi(cq(h),4)+p,x+="uc"+mi(E.length,2)+E);var H="";H+=`
1313
1313
  \0`,H+=mi(P,2),H+=u.magic,H+=mi(y,2),H+=mi(m,2),H+=mi(F.crc32,4),H+=mi(F.compressedSize,4),H+=mi(F.uncompressedSize,4),H+=mi(l.length,2),H+=mi(x.length,2);var ie=US.LOCAL_FILE_HEADER+H+l+x,pe=US.CENTRAL_FILE_HEADER+mi(V,2)+H+mi(h.length,2)+"\0\0\0\0"+mi(N,4)+mi(n,4)+l+x+h;return{fileRecord:ie,dirRecord:pe}},eGe=function(e,t,r,n,i){var a="",o=Gv.transformTo("string",i(n));return a=US.CENTRAL_DIRECTORY_END+"\0\0\0\0"+mi(e,2)+mi(e,2)+mi(t,4)+mi(r,4)+mi(o.length,2)+o,a},tGe=function(e){var t="";return t=US.DATA_DESCRIPTOR+mi(e.crc32,4)+mi(e.compressedSize,4)+mi(e.uncompressedSize,4),t};function vl(e,t,r,n){_m.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Gv.inherits(vl,_m);vl.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,_m.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))};vl.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=bre(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};vl.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=bre(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:tGe(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};vl.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,n=eGe(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})};vl.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};vl.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};vl.prototype.resume=function(){if(!_m.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};vl.prototype.error=function(e){var t=this._sources;if(!_m.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};vl.prototype.lock=function(){_m.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};var rGe=vl,nGe=jC,iGe=rGe,aGe=function(e,t){var r=e||t,n=nGe[r];if(!n)throw new Error(r+" is not a valid compression method !");return n};Ite.generateWorker=function(e,t,r){var n=new iGe(t.streamFiles,r,t.platform,t.encodeFileName),i=0;try{e.forEach(function(a,o){i++;var u=aGe(o.options.compression,t.compression),s=o.options.compressionOptions||t.compressionOptions||{},l=o.dir,f=o.date;o._compressWorker(u,s).withStreamInfo("file",{name:a,dir:l,date:f,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(n)}),n.entriesCount=i}catch(a){n.error(a)}return n};var oGe=Ui(),VC=$s;function nw(e,t){VC.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}oGe.inherits(nw,VC);nw.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};nw.prototype.pause=function(){return VC.prototype.pause.call(this)?(this._stream.pause(),!0):!1};nw.prototype.resume=function(){return VC.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};var uGe=nw,sGe=mm,Wy=Ui(),wre=$s,lGe=Ete,xre=Ms,dq=D4,fGe=rHe,cGe=Ite,hq=LC,dGe=uGe,_re=function(e,t,r){var n=Wy.getTypeOf(t),i,a=Wy.extend(r||{},xre);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=Sre(e)),a.createFolders&&(i=hGe(e))&&Ere.call(this,i,!0);var o=n==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!o);var u=t instanceof dq&&t.uncompressedSize===0;(u||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",n="string");var s=null;t instanceof dq||t instanceof wre?s=t:hq.isNode&&hq.isStream(t)?s=new dGe(e,t):s=Wy.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var l=new fGe(e,s,a);this.files[e]=l},hGe=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},Sre=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},Ere=function(e,t){return t=typeof t<"u"?t:xre.createFolders,e=Sre(e),this.files[e]||_re.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function pq(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var pGe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(arguments.length===1)if(pq(e)){var n=e;return this.filter(function(a,o){return!o.dir&&n.test(a)})}else{var i=this.files[this.root+e];return i&&!i.dir?i:null}else e=this.root+e,_re.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(pq(e))return this.filter(function(i,a){return a.dir&&e.test(i)});var t=this.root+e,r=Ere.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(i,a){return a.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=Wy.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:sGe.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");Wy.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var n=r.comment||this.comment||"";t=cGe.generateWorker(this,r,n)}catch(i){t=new wre("error"),t.error(i)}return new lGe(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}},vGe=pGe,gGe=Ui();function Cre(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}Cre.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return gGe.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};var Are=Cre,kre=Are,mGe=Ui();function Sm(e){kre.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}mGe.inherits(Sm,kre);Sm.prototype.byteAt=function(e){return this.data[this.zero+e]};Sm.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1};Sm.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]};Sm.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var Tre=Sm,Ore=Are,yGe=Ui();function Em(e){Ore.call(this,e)}yGe.inherits(Em,Ore);Em.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Em.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Em.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Em.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var bGe=Em,Ire=Tre,wGe=Ui();function j4(e){Ire.call(this,e)}wGe.inherits(j4,Ire);j4.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var Rre=j4,Dre=Rre,xGe=Ui();function U4(e){Dre.call(this,e)}xGe.inherits(U4,Dre);U4.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var _Ge=U4,Kx=Ui(),vq=ca,SGe=Tre,EGe=bGe,CGe=_Ge,AGe=Rre,Pre=function(e){var t=Kx.getTypeOf(e);return Kx.checkSupport(t),t==="string"&&!vq.uint8array?new EGe(e):t==="nodebuffer"?new CGe(e):vq.uint8array?new AGe(Kx.transformTo("uint8array",e)):new SGe(Kx.transformTo("array",e))},G3=Pre,kc=Ui(),kGe=D4,gq=O4,Zx=mm,Qx=jC,TGe=ca,OGe=0,IGe=3,RGe=function(e){for(var t in Qx)if(Qx.hasOwnProperty(t)&&Qx[t].magic===e)return Qx[t];return null};function $re(e,t){this.options=e,this.loadOptions=t}$re.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=RGe(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+kc.pretty(this.compressionMethod)+" unknown (inner file : "+kc.transformTo("string",this.fileName)+")");this.decompressed=new kGe(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===OGe&&(this.dosPermissions=this.externalFileAttributes&63),e===IGe&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=G3(this.extraFields[1].value);this.uncompressedSize===kc.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===kc.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===kc.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===kc.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,n,i;for(this.extraFields||(this.extraFields={});e.index<t;)r=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[r]={id:r,length:n,value:i}},handleUTF8:function(){var e=TGe.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Zx.utf8decode(this.fileName),this.fileCommentStr=Zx.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=kc.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(n!==null)this.fileCommentStr=n;else{var i=kc.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=G3(e.value);return t.readInt(1)!==1||gq(this.fileName)!==t.readInt(4)?null:Zx.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=G3(e.value);return t.readInt(1)!==1||gq(this.fileComment)!==t.readInt(4)?null:Zx.utf8decode(t.readData(e.length-5))}return null}};var DGe=$re,PGe=Pre,Af=Ui(),Ks=Fd,$Ge=DGe,MGe=ca;function Mre(e){this.files=[],this.loadOptions=e}Mre.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Af.pretty(t)+", expected "+Af.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4),i=n===t;return this.reader.setIndex(r),i},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 e=this.reader.readData(this.zipCommentLength),t=MGe.uint8array?"uint8array":"array",r=Af.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},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 e=this.zip64EndOfCentralSize-44,t=0,r,n,i;t<e;)r=this.reader.readInt(2),n=this.reader.readInt(4),i=this.reader.readData(n),this.zip64ExtensibleData[r]={id:r,length:n,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Ks.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Ks.CENTRAL_FILE_HEADER);)e=new $Ge({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(Ks.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Ks.LOCAL_FILE_HEADER);throw t?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Ks.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Af.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Af.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Af.MAX_VALUE_16BITS||this.centralDirRecords===Af.MAX_VALUE_16BITS||this.centralDirSize===Af.MAX_VALUE_32BITS||this.centralDirOffset===Af.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Ks.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Ks.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ks.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ks.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(Ks.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=r-n;if(i>0)this.isSignature(r,Ks.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=PGe(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var NGe=Mre,fD=Ui(),$_=Qb,FGe=mm,fD=Ui(),LGe=NGe,BGe=Ote,mq=LC;function zGe(e){return new $_.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new BGe);n.on("error",function(i){r(i)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}var jGe=function(e,t){var r=this;return t=fD.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:FGe.utf8decode}),mq.isNode&&mq.isStream(e)?$_.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):fD.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(n){var i=new LGe(t);return i.load(n),i}).then(function(i){var a=[$_.Promise.resolve(i)],o=i.files;if(t.checkCRC32)for(var u=0;u<o.length;u++)a.push(zGe(o[u]));return $_.Promise.all(a)}).then(function(i){for(var a=i.shift(),o=a.files,u=0;u<o.length;u++){var s=o[u];r.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders})}return a.zipComment.length&&(r.comment=a.zipComment),r})};function Es(){if(!(this instanceof Es))return new Es;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new Es;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}Es.prototype=vGe;Es.prototype.loadAsync=jGe;Es.support=ca;Es.defaults=Ms;Es.version="3.2.0";Es.loadAsync=function(e,t){return new Es().loadAsync(e,t)};Es.external=Qb;var hYe=Es,YC={},Nre={},XC={},Fre={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(Fre);var Lre={},sd={};sd.__esModule=!0;sd.DONE=sd.OPENED=sd.UNSENT=void 0;sd.UNSENT=0;sd.OPENED=1;sd.DONE=4;var Wg={};Wg.__esModule=!0;Wg.InternalServerError=Wg.OK=void 0;Wg.OK=200;Wg.InternalServerError=500;(function(e){e.__esModule=!0;var t=sd,r=Wg,n=function(i){return new Promise(function(a,o){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===t.DONE&&(u.status===r.OK?a(u.responseText):o(u.status+" "+u.statusText))},u.open("GET",i,!0),u.send()})};e.default=n})(Lre);var Bre={};(function(e){var t=er&&er.__spreadArrays||function(){for(var o=0,u=0,s=arguments.length;u<s;u++)o+=arguments[u].length;for(var l=Array(o),f=0,u=0;u<s;u++)for(var d=arguments[u],h=0,p=d.length;h<p;h++,f++)l[f]=d[h];return l};e.__esModule=!0;var r=wd,n=wd,i=function(o){for(var u=[],s=1;s<arguments.length;s++)u[s-1]=arguments[s];return typeof o!="string"?{on:function(l,f){f(new Error("URL must be a string."))}}:o.indexOf("https://")===0?n.get.apply(n,t([o],u)):r.get.apply(r,t([o],u))},a=function(o){return new Promise(function(u,s){i(o,function(l){var f=null;l.on("data",function(d){if(f===null){f=d;return}f+=d}),l.on("end",function(){return u(f)})}).on("error",s)})};e.default=a})(Bre);XC.__esModule=!0;XC.createLoadRemoteModule=void 0;var UGe=Fre,qGe=Lre,HGe=Bre,WGe=typeof window<"u"&&typeof window.document<"u",GGe=WGe?qGe.default:HGe.default,VGe=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},YGe=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||VGe,a=n||GGe;return UGe.default(function(o){return a(o).then(function(u){var s={},l={exports:s},f=new Function("require","module","exports",u);return f(i,l,s),l.exports})})};XC.createLoadRemoteModule=YGe;var KC={};KC.__esModule=!0;KC.createRequires=void 0;var XGe=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};KC.createRequires=XGe;(function(e){var t=er&&er.__createBinding||(Object.create?function(i,a,o,u){u===void 0&&(u=o),Object.defineProperty(i,u,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,u){u===void 0&&(u=o),i[u]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=XC;t(e,r,"createLoadRemoteModule","default");var n=KC;t(e,n,"createRequires")})(Nre);YC.__esModule=!0;YC.createUseRemoteComponent=void 0;var yq=Le,KGe=ZGe(Nre);function ZGe(e){return e&&e.__esModule?e:{default:e}}const QGe=e=>{const t=(0,KGe.default)(e);return n=>{const[{loading:i,err:a,component:o},u]=(0,yq.useState)({loading:!0});return(0,yq.useEffect)(()=>{t(n).then(s=>u({loading:!1,component:s.default})).catch(s=>u({loading:!1,err:s}))},[n]),[i,a,o]}};YC.createUseRemoteComponent=QGe;var JGe=void 0,bq=tVe(Le),eVe=YC;function tVe(e){return e&&e.__esModule?e:{default:e}}const rVe=e=>{const t=(0,eVe.createUseRemoteComponent)(e),r=({url:n,fallback:i,render:a,...o})=>{const[u,s,l]=t(n);return u?i:a?a({err:s,Component:l}):s||!l?bq.default.createElement("div",null,"Unknown Error: ",(s||"UNKNOWN").toString()):bq.default.createElement(l,o)};return r.defaultProps={fallback:null},r};JGe=rVe;var nVe=void 0;const iVe=e=>typeof e=="function"?e():e||{},aVe=e=>{let t=!1;return r=>{if(t||(e=iVe(e),t=!0),!(r in e))throw new Error(`Could not require '${r}'. '${r}' does not exist in dependencies.`);return e[r]}};nVe=aVe;var zre={},ZC={},jre={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(jre);var Ure={},hp={};hp.__esModule=!0;hp.InternalServerError=hp.OK=void 0;hp.OK=200;hp.InternalServerError=500;(function(e){var t=er&&er.__spreadArray||function(u,s,l){if(l||arguments.length===2)for(var f=0,d=s.length,h;f<d;f++)(h||!(f in s))&&(h||(h=Array.prototype.slice.call(s,0,f)),h[f]=s[f]);return u.concat(h||Array.prototype.slice.call(s))};e.__esModule=!0;var r=wd,n=wd,i=hp,a=function(u){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];return typeof u!="string"?{on:function(f,d){d(new Error("URL must be a string."))}}:u.indexOf("https://")===0?n.get.apply(n,t([u],s,!1)):r.get.apply(r,t([u],s,!1))},o=function(u){return new Promise(function(s,l){a(u,function(f){if(f.statusCode!==i.OK)return l(new Error("HTTP Error Response: "+f.statusCode+" "+f.statusMessage+" ("+u+")"));var d=null;f.on("data",function(h){if(d===null){d=h;return}d+=h}),f.on("end",function(){return s(d)})}).on("error",l)})};e.default=o})(Ure);var qre={},ld={};ld.__esModule=!0;ld.DONE=ld.OPENED=ld.UNSENT=void 0;ld.UNSENT=0;ld.OPENED=1;ld.DONE=4;(function(e){e.__esModule=!0;var t=hp,r=ld,n=function(i){return new Promise(function(a,o){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===r.DONE&&(u.status===t.OK?a(u.responseText):o(new Error("HTTP Error Response: "+u.status+" "+u.statusText+" ("+i+")")))},u.open("GET",i,!0),u.send()})};e.default=n})(qre);ZC.__esModule=!0;ZC.createLoadRemoteModule=void 0;var oVe=jre,uVe=Ure,sVe=qre,lVe=typeof window<"u"&&typeof window.document<"u",fVe=lVe?sVe.default:uVe.default,cVe=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},dVe=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||cVe,a=n||fVe;return(0,oVe.default)(function(o){return a(o).then(function(u){var s={},l={exports:s},f=new Function("require","module","exports",u);return f(i,l,s),l.exports})})};ZC.createLoadRemoteModule=dVe;var QC={};QC.__esModule=!0;QC.createRequires=void 0;var hVe=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};QC.createRequires=hVe;(function(e){var t=er&&er.__createBinding||(Object.create?function(i,a,o,u){u===void 0&&(u=o),Object.defineProperty(i,u,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,u){u===void 0&&(u=o),i[u]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=ZC;t(e,r,"createLoadRemoteModule","default");var n=QC;t(e,n,"createRequires")})(zre);const pYe=qS(zre);export{mE as $,Le as A,un as B,q4 as C,mVe as D,_P as E,wL as F,gE as G,zt as H,wVe as I,vVe as J,gVe as K,Wge as L,CVe as M,EVe as N,Dge as O,bVe as P,AVe as Q,Y0 as R,XV as S,OVe as T,na as U,xB as V,TVe as W,YVe as X,IVe as Y,nce as Z,XVe as _,DVe as a,RG as a0,FP as a1,qj as a2,s5 as a3,ude as a4,fde as a5,WG as a6,PG as a7,kVe as a8,tYe as a9,yVe as aA,xVe as aB,_Ve as aC,nVe as aD,JGe as aE,zre as aF,pYe as aG,JVe as aH,eYe as aI,QVe as aJ,ZVe as aK,KVe as aL,SVe as aa,oQ as ab,Vn as ac,aYe as ad,O3e as ae,JZ as af,fYe as ag,tp as ah,aQ as ai,rl as aj,uYe as ak,FIe as al,nYe as am,rYe as an,oYe as ao,iYe as ap,lYe as aq,sYe as ar,P1 as as,QZ as at,GP as au,cYe as av,dYe as aw,sn as ax,Zb as ay,hYe as az,FVe as b,LVe as c,O8 as d,da as e,PVe as f,$Ve as g,MVe as h,uS as i,M_e as j,zVe as k,qE as l,NVe as m,BVe as n,HR as o,LX as p,ZR as q,RVe as r,jVe as s,Z8 as t,UVe as u,qVe as v,HVe as w,WVe as x,GVe as y,VVe as z};
1314
- //# sourceMappingURL=vendor-44bb27a6.js.map
1314
+ //# sourceMappingURL=vendor-494e0592.js.map