zb-admin/docs/assets/index.8284d589.js

13 lines
100 KiB
JavaScript
Raw Normal View History

2023-02-27 11:43:11 +00:00
import{Q as mt,g as Pt,i as St,r as _t,o as It,c as Ot,a as Bt,b as gt,w as zt,d as jt,F as Wt,D as Zt,_ as Mt}from"./index.8ab1f836.js";import{c as xt,e as Ht}from"./exceljs.min.e0455df8.js";var Rt={exports:{}};(function(Q,rt){(function(_,T){T()})(mt,function(){function _(c,v){return typeof v>"u"?v={autoBom:!1}:typeof v!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),v={autoBom:!v}),v.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function T(c,v,g){var m=new XMLHttpRequest;m.open("GET",c),m.responseType="blob",m.onload=function(){h(m.response,v,g)},m.onerror=function(){console.error("could not download file")},m.send()}function w(c){var v=new XMLHttpRequest;v.open("HEAD",c,!1);try{v.send()}catch{}return 200<=v.status&&299>=v.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var v=document.createEvent("MouseEvents");v.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(v)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof mt=="object"&&mt.global===mt?mt:void 0,r=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(c,v,g){var m=a.URL||a.webkitURL,i=document.createElement("a");v=v||c.name||"download",i.download=v,i.rel="noopener",typeof c=="string"?(i.href=c,i.origin===location.origin?u(i):w(i.href)?T(c,v,g):u(i,i.target="_blank")):(i.href=m.createObjectURL(c),setTimeout(function(){m.revokeObjectURL(i.href)},4e4),setTimeout(function(){u(i)},0))}:"msSaveOrOpenBlob"in navigator?function(c,v,g){if(v=v||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(_(c,g),v);else if(w(c))T(c,v,g);else{var m=document.createElement("a");m.href=c,m.target="_blank",setTimeout(function(){u(m)})}}:function(c,v,g,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof c=="string")return T(c,v,g);var i=c.type==="application/octet-stream",d=/constructor/i.test(a.HTMLElement)||a.safari,n=/CriOS\/[\d]+/.test(navigator.userAgent);if((n||i&&d||r)&&typeof FileReader<"u"){var l=new FileReader;l.onloadend=function(){var y=l.result;y=n?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=y:location=y,m=null},l.readAsDataURL(c)}else{var s=a.URL||a.webkitURL,p=s.createObjectURL(c);m?m.location=p:location.href=p,m=null,setTimeout(function(){s.revokeObjectURL(p)},4e4)}});a.saveAs=h.saveAs=h,Q.exports=h})})(Rt);var Dt={exports:{}};/*!
2022-11-25 04:42:25 +00:00
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(Q,rt){(function(_){Q.exports=_()})(function(){return function _(T,w,u){function a(c,v){if(!w[c]){if(!T[c]){var g=typeof xt=="function"&&xt;if(!v&&g)return g(c,!0);if(r)return r(c,!0);var m=new Error("Cannot find module '"+c+"'");throw m.code="MODULE_NOT_FOUND",m}var i=w[c]={exports:{}};T[c][0].call(i.exports,function(d){var n=T[c][1][d];return a(n||d)},i,i.exports,_,T,w,u)}return w[c].exports}for(var r=typeof xt=="function"&&xt,h=0;h<u.length;h++)a(u[h]);return a}({1:[function(_,T,w){var u=_("./utils"),a=_("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";w.encode=function(h){for(var c,v,g,m,i,d,n,l=[],s=0,p=h.length,y=p,E=u.getTypeOf(h)!=="string";s<h.length;)y=p-s,g=E?(c=h[s++],v=s<p?h[s++]:0,s<p?h[s++]:0):(c=h.charCodeAt(s++),v=s<p?h.charCodeAt(s++):0,s<p?h.charCodeAt(s++):0),m=c>>2,i=(3&c)<<4|v>>4,d=1<y?(15&v)<<2|g>>6:64,n=2<y?63&g:64,l.push(r.charAt(m)+r.charAt(i)+r.charAt(d)+r.charAt(n));return l.join("")},w.decode=function(h){var c,v,g,m,i,d,n=0,l=0,s="data:";if(h.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var p,y=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===r.charAt(64)&&y--,h.charAt(h.length-2)===r.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=a.uint8array?new Uint8Array(0|y):new Array(0|y);n<h.length;)c=r.indexOf(h.charAt(n++))<<2|(m=r.indexOf(h.charAt(n++)))>>4,v=(15&m)<<4|(i=r.indexOf(h.charAt(n++)))>>2,g=(3&i)<<6|(d=r.indexOf(h.charAt(n++))),p[l++]=c,i!==64&&(p[l++]=v),d!==64&&(p[l++]=g);return p}},{"./support":30,"./utils":32}],2:[function(_,T,w){var u=_("./external"),a=_("./stream/DataWorker"),r=_("./stream/Crc32Probe"),h=_("./stream/DataLengthProbe");function c(v,g,m,i,d){this.compressedSize=v,this.uncompressedSize=g,this.crc32=m,this.compression=i,this.compressedContent=d}c.prototype={getContentWorker:function(){var v=new a(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),g=this;return v.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),v},getCompressedWorker:function(){return new a(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(v,g,m){return v.pipe(new r).pipe(new h("uncompressedSize")).pipe(g.compressWorker(m)).pipe(new h("compressedSize")).withStreamInfo("compression",g)},T.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(_,T,w){var u=_("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},w.DEFLATE=_("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(_,T,w){var u=_("./utils"),a=function(){for(var r,h=[],c=0;c<256;c++){r=c;for(var v=0;v<8;v++)r=1&r?3988292384^r>>>1:r>>>1;h[c]=r}return h}();T.exports=function(r,h){return r!==void 0&&r.length?u.getTypeOf(r)!=="string"?function(c,v,g,m){var i=a,d=m+g;c^=-1;for(var n=m;n<d;n++)c=c>>>8^i[255&(c^v[n])];return-1^c}(0|h,r,r.length,0):function(c,v,g,m){var i=a,d=m+g;c^=-1;for(var n=m;n<d;n++)c=c>>>8^i[255&(c^v.charCodeAt(n))];return-1^c}(0|h,r,r.length,0):0}},{"./utils":32}],5:[function(_,T,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(_,T,w){var u=null;u=typeof Promise<"u"?Promise:_("lie"),T.exports={Promise:u}},{lie:37}],7:[function(_,T,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=_("pako"),r=_("./utils"),h=_("./stream/GenericWorker"),c=u?"uint8array":"array";function v(g,m){h.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=m,t
\0`,G+=u(A,2),G+=F.magic,G+=u(y,2),G+=u(E,2),G+=u(q.crc32,4),G+=u(q.compressedSize,4),G+=u(q.uncompressedSize,4),G+=u(P.length,2),G+=u(D.length,2),{fileRecord:g.LOCAL_FILE_HEADER+G+P+D,dirRecord:g.CENTRAL_FILE_HEADER+u(Y,2)+G+u(X.length,2)+"\0\0\0\0"+u(z,4)+u(l,4)+P+D+X}}var r=_("../utils"),h=_("../stream/GenericWorker"),c=_("../utf8"),v=_("../crc32"),g=_("../signature");function m(i,d,n,l){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=n,this.encodeFileName=l,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(m,h),m.prototype.push=function(i){var d=i.meta.percent||0,n=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,h.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:n?(d+100*(n-l-1))/n:100}}))},m.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var n=a(i,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(i){this.accumulate=!1;var d=this.streamFiles&&!i.file.dir,n=a(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),d)this.push({data:function(l){return g.DATA_DESCRIPTOR+u(l.crc32,4)+u(l.compressedSize,4)+u(l.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var i=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var n=this.bytesWritten-i,l=function(s,p,y,E,x){var F=r.transformTo("string",x(E));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(s,2)+u(s,2)+u(p,4)+u(y,4)+u(F.length,2)+F}(this.dirRecords.length,n,i,this.zipComment,this.encodeFileName);this.push({data:l,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(i){this._sources.push(i);var d=this;return i.on("data",function(n){d.processChunk(n)}),i.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),i.on("error",function(n){d.error(n)}),this},m.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(i){var d=this._sources;if(!h.prototype.error.call(this,i))return!1;for(var n=0;n<d.length;n++)try{d[n].error(i)}catch{}return!0},m.prototype.lock=function(){h.prototype.lock.call(this);for(var i=this._sources,d=0;d<i.length;d++)i[d].lock()},T.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(_,T,w){var u=_("../compressions"),a=_("./ZipFileWorker");w.generateWorker=function(r,h,c){var v=new a(h.streamFiles,c,h.platform,h.encodeFileName),g=0;try{r.forEach(function(m,i){g++;var d=function(p,y){var E=p||y,x=u[E];if(!x)throw new Error(E+" is not a valid compression method !");return x}(i.options.compression,h.compression),n=i.options.compressionOptions||h.compressionOptions||{},l=i.dir,s=i.date;i._compressWorker(d,n).withStreamInfo("file",{name:m,dir:l,date:s,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(v)}),v.entriesCount=g}catch(m){v.error(m)}return v}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(_,T,w){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrad