2017-06-06 15:37:03 +00:00
/ *
JSZip v3 . 1.3 - 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/master/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https : //github.com/nodeca/pako/blob/master/LICENSE
* /
2017-06-20 11:05:40 +00:00
! function ( w ) { "object" == typeof exports && "undefined" != typeof module ? module . exports = w ( ) : "function" == typeof define && define . amd ? define ( [ ] , w ) : ( "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this ) . JSZip = w ( ) } ( function ( ) { return function b ( f , d , a ) { function e ( g , h ) { if ( ! d [ g ] ) { if ( ! f [ g ] ) { var l = "function" == typeof require && require ; if ( ! h && l ) return l ( g , ! 0 ) ; if ( c ) return c ( g , ! 0 ) ; l = Error ( "Cannot find module '" + g + "'" ) ; throw l . code = "MODULE_NOT_FOUND" , l ; } l = d [ g ] = { exports : { } } ;
f [ g ] [ 0 ] . call ( l . exports , function ( a ) { var c = f [ g ] [ 1 ] [ a ] ; return e ( c ? c : a ) } , l , l . exports , b , f , d , a ) } return d [ g ] . exports } for ( var c = "function" == typeof require && require , g = 0 ; g < a . length ; g ++ ) e ( a [ g ] ) ; return e } ( { 1 : [ function ( b , f , d ) { var a = b ( "./utils" ) , e = b ( "./support" ) ; d . encode = function ( c ) { for ( var b , e , d , n , q , x , z , E = [ ] , f = 0 , v = c . length , p = "string" !== a . getTypeOf ( c ) ; f < c . length ; ) z = v - f , p ? ( b = c [ f ++ ] , e = f < v ? c [ f ++ ] : 0 , d = f < v ? c [ f ++ ] : 0 ) : ( b = c . charCodeAt ( f ++ ) , e = f < v ? c . charCodeAt ( f ++ ) : 0 , d = f < v ? c . charCodeAt ( f ++ ) : 0 ) , n = b >> 2 , q = ( 3 & b ) << 4 | e >> 4 , x = 1 <
z ? ( 15 & e ) << 2 | d >> 6 : 64 , z = 2 < z ? 63 & d : 64 , E . push ( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( n ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( q ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( x ) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . charAt ( z ) ) ; return E . join ( "" ) } ; d . decode = function ( a ) { var c , b , d , n , q , x = 0 , z = 0 ; if ( "data:" === a . substr ( 0 , 5 ) ) throw Error ( "Invalid base64 input, it looks like a data url." ) ;
a = a . replace ( /[^A-Za-z0-9\+\/\=]/g , "" ) ; n = 3 * a . length / 4 ; if ( "=" === a . charAt ( a . length - 1 ) && n -- , "=" === a . charAt ( a . length - 2 ) && n -- , 0 !== n % 1 ) throw Error ( "Invalid base64 input, bad content length." ) ; var E ; for ( E = e . uint8array ? new Uint8Array ( 0 | n ) : Array ( 0 | n ) ; x < a . length ; ) c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . indexOf ( a . charAt ( x ++ ) ) , b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . indexOf ( a . charAt ( x ++ ) ) , n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . indexOf ( a . charAt ( x ++ ) ) ,
q = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" . indexOf ( a . charAt ( x ++ ) ) , c = c << 2 | b >> 4 , b = ( 15 & b ) << 4 | n >> 2 , d = ( 3 & n ) << 6 | q , E [ z ++ ] = c , 64 !== n && ( E [ z ++ ] = b ) , 64 !== q && ( E [ z ++ ] = d ) ; return E } } , { "./support" : 30 , "./utils" : 32 } ] , 2 : [ function ( b , f , d ) { function a ( a , c , b , e , g ) { this . compressedSize = a ; this . uncompressedSize = c ; this . crc32 = b ; this . compression = e ; this . compressedContent = g } var e = b ( "./external" ) , c = b ( "./stream/DataWorker" ) , g = b ( "./stream/DataLengthProbe" ) , l = b ( "./stream/Crc32Probe" ) , g = b ( "./stream/DataLengthProbe" ) ;
2017-06-12 13:14:07 +00:00
a . prototype = { getContentWorker : function ( ) { var a = ( new c ( e . Promise . resolve ( this . compressedContent ) ) ) . pipe ( this . compression . uncompressWorker ( ) ) . pipe ( new g ( "data_length" ) ) , b = this ; return a . on ( "end" , function ( ) { if ( this . streamInfo . data _length !== b . uncompressedSize ) throw Error ( "Bug : uncompressed data size mismatch" ) ; } ) , a } , getCompressedWorker : function ( ) { return ( new c ( e . Promise . resolve ( this . compressedContent ) ) ) . withStreamInfo ( "compressedSize" , this . compressedSize ) . withStreamInfo ( "uncompressedSize" , this . uncompressedSize ) . withStreamInfo ( "crc32" ,
this . crc32 ) . withStreamInfo ( "compression" , this . compression ) } } ; a . createWorkerFrom = function ( a , c , b ) { return a . pipe ( new l ) . pipe ( new g ( "uncompressedSize" ) ) . pipe ( c . compressWorker ( b ) ) . pipe ( new g ( "compressedSize" ) ) . withStreamInfo ( "compression" , c ) } ; f . exports = a } , { "./external" : 6 , "./stream/Crc32Probe" : 25 , "./stream/DataLengthProbe" : 26 , "./stream/DataWorker" : 27 } ] , 3 : [ function ( b , f , d ) { var a = b ( "./stream/GenericWorker" ) ; d . STORE = { magic : "\x00\x00" , compressWorker : function ( b ) { return new a ( "STORE compression" ) } , uncompressWorker : function ( ) { return new a ( "STORE decompression" ) } } ;
2017-06-20 11:05:40 +00:00
d . DEFLATE = b ( "./flate" ) } , { "./flate" : 7 , "./stream/GenericWorker" : 28 } ] , 4 : [ function ( b , f , d ) { var a = b ( "./utils" ) , e = function ( ) { for ( var a , b = [ ] , e = 0 ; 256 > e ; e ++ ) { a = e ; for ( var d = 0 ; 8 > d ; d ++ ) a = 1 & a ? 3988292384 ^ a >>> 1 : a >>> 1 ; b [ e ] = a } return b } ( ) ; f . exports = function ( c , b ) { if ( "undefined" == typeof c || ! c . length ) return 0 ; var d ; if ( "string" !== a . getTypeOf ( c ) ) { var g = 0 + c . length ; d = ( 0 | b ) ^ - 1 ; for ( var n = 0 ; n < g ; n ++ ) d = d >>> 8 ^ e [ 255 & ( d ^ c [ n ] ) ] } else for ( g = 0 + c . length , d = ( 0 | b ) ^ - 1 , n = 0 ; n < g ; n ++ ) d = d >>> 8 ^ e [ 255 & ( d ^ c . charCodeAt ( n ) ) ] ; return d ^= - 1 } } , { "./utils" : 32 } ] ,
2017-06-12 13:14:07 +00:00
5 : [ function ( b , f , d ) { d . base64 = ! 1 ; d . binary = ! 1 ; d . dir = ! 1 ; d . createFolders = ! 0 ; d . date = null ; d . compression = null ; d . compressionOptions = null ; d . comment = null ; d . unixPermissions = null ; d . dosPermissions = null } , { } ] , 6 : [ function ( b , f , d ) { b = "undefined" != typeof Promise ? Promise : b ( "lie" ) ; f . exports = { Promise : b } } , { lie : 58 } ] , 7 : [ function ( b , f , d ) { function a ( a , c ) { g . call ( this , "FlateWorker/" + a ) ; this . _pako = new e [ a ] ( { raw : ! 0 , level : c . level || - 1 } ) ; this . meta = { } ; var b = this ; this . _pako . onData = function ( a ) { b . push ( { data : a , meta : b . meta } ) } } f = "undefined" !=
typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array ; var e = b ( "pako" ) , c = b ( "./utils" ) , g = b ( "./stream/GenericWorker" ) , l = f ? "uint8array" : "array" ; d . magic = "\b\x00" ; c . inherits ( a , g ) ; a . prototype . processChunk = function ( a ) { this . meta = a . meta ; this . _pako . push ( c . transformTo ( l , a . data ) , ! 1 ) } ; a . prototype . flush = function ( ) { g . prototype . flush . call ( this ) ; this . _pako . push ( [ ] , ! 0 ) } ; a . prototype . cleanUp = function ( ) { g . prototype . cleanUp . call ( this ) ; this . _pako = null } ; d . compressWorker = function ( c ) { return new a ( "Deflate" ,
2017-06-20 11:05:40 +00:00
c ) } ; d . uncompressWorker = function ( ) { return new a ( "Inflate" , { } ) } } , { "./stream/GenericWorker" : 28 , "./utils" : 32 , pako : 59 } ] , 8 : [ function ( b , f , d ) { function a ( a , b , e , d ) { c . call ( this , "ZipFileWorker" ) ; this . bytesWritten = 0 ; this . zipComment = b ; this . zipPlatform = e ; this . encodeFileName = d ; this . streamFiles = a ; this . accumulate = ! 1 ; this . contentBuffer = [ ] ; this . dirRecords = [ ] ; this . entriesCount = this . currentSourceOffset = 0 ; this . currentFile = null ; this . _sources = [ ] } var e = b ( "../utils" ) , c = b ( "../stream/GenericWorker" ) , g = b ( "../utf8" ) , l = b ( "../crc32" ) ,
h = b ( "../signature" ) , n = function ( a , c ) { var b , e = "" ; for ( b = 0 ; b < c ; b ++ ) e += String . fromCharCode ( 255 & a ) , a >>>= 8 ; return e } , q = function ( a , c , b , d , p , t ) { var B , z ; B = a . file ; var v = a . compression , x = t !== g . utf8encode , q = e . transformTo ( "string" , t ( B . name ) ) , r = e . transformTo ( "string" , g . utf8encode ( B . name ) ) , f = B . comment ; t = e . transformTo ( "string" , t ( f ) ) ; var y = e . transformTo ( "string" , g . utf8encode ( f ) ) , E = r . length !== B . name . length , F = y . length !== f . length , I = f = "" , X = "" ; z = B . dir ; var T = B . date , aa = 0 , V = 0 , u = 0 ; c && ! b || ( aa = a . crc32 , V = a . compressedSize , u = a . uncompressedSize ) ;
a = 0 ; c && ( a |= 8 ) ; x || ! E && ! F || ( a |= 2048 ) ; c = 0 ; z && ( c |= 16 ) ; "UNIX" === p ? ( p = 798 , B = x = B . unixPermissions , z = ( x || ( B = z ? 16893 : 33204 ) , ( 65535 & B ) << 16 ) , c |= z ) : ( p = 20 , c |= 63 & ( B . dosPermissions || 0 ) ) ; B = T . getUTCHours ( ) ; B = B << 6 | T . getUTCMinutes ( ) ; B = B << 5 | T . getUTCSeconds ( ) / 2 ; z = T . getUTCFullYear ( ) - 1980 ; z = z << 4 | T . getUTCMonth ( ) + 1 ; z = z << 5 | T . getUTCDate ( ) ; E && ( I = n ( 1 , 1 ) + n ( l ( q ) , 4 ) + r , f += "up" + n ( I . length , 2 ) + I ) ; F && ( X = n ( 1 , 1 ) + n ( l ( t ) , 4 ) + y , f += "uc" + n ( X . length , 2 ) + X ) ; r = "\n\x00" + n ( a , 2 ) ; r += v . magic ; r += n ( B , 2 ) ; r += n ( z , 2 ) ; r += n ( aa , 4 ) ; r += n ( V , 4 ) ; r += n ( u , 4 ) ; r += n ( q . length ,
2 ) ; r += n ( f . length , 2 ) ; v = h . LOCAL _FILE _HEADER + r + q + f ; d = h . CENTRAL _FILE _HEADER + n ( p , 2 ) + r + n ( t . length , 2 ) + "\x00\x00\x00\x00" + n ( c , 4 ) + n ( d , 4 ) + q + f + t ; return { fileRecord : v , dirRecord : d } } , x = function ( a ) { return h . DATA _DESCRIPTOR + n ( a . crc32 , 4 ) + n ( a . compressedSize , 4 ) + n ( a . uncompressedSize , 4 ) } ; e . inherits ( a , c ) ; a . prototype . push = function ( a ) { var b = a . meta . percent || 0 , e = this . entriesCount , d = this . _sources . length ; this . accumulate ? this . contentBuffer . push ( a ) : ( this . bytesWritten += a . data . length , c . prototype . push . call ( this , { data : a . data , meta : { currentFile : this . currentFile ,
percent : e ? ( b + 100 * ( e - d - 1 ) ) / e : 100 } } ) ) } ; a . prototype . openedSource = function ( a ) { this . currentSourceOffset = this . bytesWritten ; this . currentFile = a . file . name ; var c = this . streamFiles && ! a . file . dir ; c ? ( a = q ( a , c , ! 1 , this . currentSourceOffset , this . zipPlatform , this . encodeFileName ) , this . push ( { data : a . fileRecord , meta : { percent : 0 } } ) ) : this . accumulate = ! 0 } ; a . prototype . closedSource = function ( a ) { this . accumulate = ! 1 ; var c = this . streamFiles && ! a . file . dir , b = q ( a , c , ! 0 , this . currentSourceOffset , this . zipPlatform , this . encodeFileName ) ; if ( this . dirRecords . push ( b . dirRecord ) ,
c ) this . push ( { data : x ( a ) , meta : { percent : 100 } } ) ; else for ( this . push ( { data : b . fileRecord , meta : { percent : 0 } } ) ; this . contentBuffer . length ; ) this . push ( this . contentBuffer . shift ( ) ) ; this . currentFile = null } ; a . prototype . flush = function ( ) { for ( var a = this . bytesWritten , c = 0 ; c < this . dirRecords . length ; c ++ ) this . push ( { data : this . dirRecords [ c ] , meta : { percent : 100 } } ) ; var c = this . dirRecords . length , b = this . bytesWritten - a , d = e . transformTo ( "string" , ( 0 , this . encodeFileName ) ( this . zipComment ) ) , a = h . CENTRAL _DIRECTORY _END + "\x00\x00\x00\x00" + n ( c ,
2 ) + n ( c , 2 ) + n ( b , 4 ) + n ( a , 4 ) + n ( d . length , 2 ) + d ; this . push ( { data : a , meta : { percent : 100 } } ) } ; a . prototype . prepareNextSource = function ( ) { this . previous = this . _sources . shift ( ) ; this . openedSource ( this . previous . streamInfo ) ; this . isPaused ? this . previous . pause ( ) : this . previous . resume ( ) } ; a . prototype . registerPrevious = function ( a ) { this . _sources . push ( a ) ; var c = this ; return a . on ( "data" , function ( a ) { c . processChunk ( a ) } ) , a . on ( "end" , function ( ) { c . closedSource ( c . previous . streamInfo ) ; c . _sources . length ? c . prepareNextSource ( ) : c . end ( ) } ) , a . on ( "error" ,
function ( a ) { c . error ( a ) } ) , this } ; a . prototype . resume = function ( ) { return ! ! c . prototype . resume . call ( this ) && ( ! this . previous && this . _sources . length ? ( this . prepareNextSource ( ) , ! 0 ) : this . previous || this . _sources . length || this . generatedError ? void 0 : ( this . end ( ) , ! 0 ) ) } ; a . prototype . error = function ( a ) { var b = this . _sources ; if ( ! c . prototype . error . call ( this , a ) ) return ! 1 ; for ( var e = 0 ; e < b . length ; e ++ ) try { b [ e ] . error ( a ) } catch ( v ) { } return ! 0 } ; a . prototype . lock = function ( ) { c . prototype . lock . call ( this ) ; for ( var a = this . _sources , b = 0 ; b < a . length ; b ++ ) a [ b ] . lock ( ) } ;
f . exports = a } , { "../crc32" : 4 , "../signature" : 23 , "../stream/GenericWorker" : 28 , "../utf8" : 31 , "../utils" : 32 } ] , 9 : [ function ( b , f , d ) { var a = b ( "../compressions" ) , e = b ( "./ZipFileWorker" ) ; d . generateWorker = function ( c , b , d ) { var g = new e ( b . streamFiles , d , b . platform , b . encodeFileName ) , l = 0 ; try { c . forEach ( function ( c , e ) { l ++ ; var d = e . options . compression || b . compression , x = a [ d ] ; if ( ! x ) throw Error ( d + " is not a valid compression method !" ) ; var d = e . dir , n = e . date ; e . _compressWorker ( x , e . options . compressionOptions || b . compressionOptions ||
2017-06-12 13:14:07 +00:00
{ } ) . withStreamInfo ( "file" , { name : c , dir : d , date : n , comment : e . comment || "" , unixPermissions : e . unixPermissions , dosPermissions : e . dosPermissions } ) . pipe ( g ) } ) , g . entriesCount = l } catch ( q ) { g . error ( q ) } return g } } , { "../compressions" : 3 , "./ZipFileWorker" : 8 } ] , 10 : [ function ( b , f , d ) { function a ( ) { if ( ! ( this instanceof a ) ) return new a ; if ( arguments . length ) throw 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 b =
new a , c ; for ( c in this ) "function" != typeof this [ c ] && ( b [ c ] = this [ c ] ) ; return b } } a . prototype = b ( "./object" ) ; a . prototype . loadAsync = b ( "./load" ) ; a . support = b ( "./support" ) ; a . defaults = b ( "./defaults" ) ; a . version = "3.1.3" ; a . loadAsync = function ( b , c ) { return ( new a ) . loadAsync ( b , c ) } ; a . external = b ( "./external" ) ; f . exports = a } , { "./defaults" : 5 , "./external" : 6 , "./load" : 11 , "./object" : 15 , "./support" : 30 } ] , 11 : [ function ( b , f , d ) { function a ( a ) { return new c . Promise ( function ( c , b ) { var e = a . decompressed . getContentWorker ( ) . pipe ( new h ) ; e . on ( "error" ,
2017-06-20 11:05:40 +00:00
function ( a ) { b ( a ) } ) . on ( "end" , function ( ) { e . streamInfo . crc32 !== a . decompressed . crc32 ? b ( Error ( "Corrupted zip : CRC32 mismatch" ) ) : c ( ) } ) . resume ( ) } ) } var e = b ( "./utils" ) , c = b ( "./external" ) , g = b ( "./utf8" ) , e = b ( "./utils" ) , l = b ( "./zipEntries" ) , h = b ( "./stream/Crc32Probe" ) , n = b ( "./nodejsUtils" ) ; f . exports = function ( b , d ) { var z = this ; return d = e . extend ( d || { } , { base64 : ! 1 , checkCRC32 : ! 1 , optimizedBinaryString : ! 1 , createFolders : ! 1 , decodeFileName : g . utf8decode } ) , n . isNode && n . isStream ( b ) ? c . Promise . reject ( Error ( "JSZip can't accept a stream when loading a zip file." ) ) :
e . prepareContent ( "the loaded zip file" , b , ! 0 , d . optimizedBinaryString , d . base64 ) . then ( function ( a ) { var c = new l ( d ) ; return c . load ( a ) , c } ) . then ( function ( b ) { var e = [ c . Promise . resolve ( b ) ] ; b = b . files ; if ( d . checkCRC32 ) for ( var g = 0 ; g < b . length ; g ++ ) e . push ( a ( b [ g ] ) ) ; return c . Promise . all ( e ) } ) . then ( function ( a ) { a = a . shift ( ) ; for ( var c = a . files , b = 0 ; b < c . length ; b ++ ) { var p = c [ b ] ; z . file ( p . fileNameStr , p . decompressed , { binary : ! 0 , optimizedBinaryString : ! 0 , date : p . date , dir : p . dir , comment : p . fileCommentStr . length ? p . fileCommentStr : null , unixPermissions : p . unixPermissions ,
dosPermissions : p . dosPermissions , createFolders : d . createFolders } ) } return a . zipComment . length && ( z . comment = a . zipComment ) , z } ) } } , { "./external" : 6 , "./nodejsUtils" : 14 , "./stream/Crc32Probe" : 25 , "./utf8" : 31 , "./utils" : 32 , "./zipEntries" : 33 } ] , 12 : [ function ( b , f , d ) { function a ( a , b ) { e . call ( this , "Nodejs stream input adapter for " + a ) ; this . _upstreamEnded = ! 1 ; this . _bindStream ( b ) } d = b ( "../utils" ) ; var e = b ( "../stream/GenericWorker" ) ; d . inherits ( a , e ) ; a . prototype . _bindStream = function ( a ) { var b = this ; this . _stream = a ; a . pause ( ) ; a . on ( "data" ,
function ( a ) { b . push ( { data : a , meta : { percent : 0 } } ) } ) . on ( "error" , function ( a ) { b . isPaused ? this . generatedError = a : b . error ( a ) } ) . on ( "end" , function ( ) { b . isPaused ? b . _upstreamEnded = ! 0 : b . end ( ) } ) } ; a . prototype . pause = function ( ) { return ! ! e . prototype . pause . call ( this ) && ( this . _stream . pause ( ) , ! 0 ) } ; a . prototype . resume = function ( ) { return ! ! e . prototype . resume . call ( this ) && ( this . _upstreamEnded ? this . end ( ) : this . _stream . resume ( ) , ! 0 ) } ; f . exports = a } , { "../stream/GenericWorker" : 28 , "../utils" : 32 } ] , 13 : [ function ( b , f , d ) { function a ( a , b , d ) { e . call ( this ,
2017-06-12 13:14:07 +00:00
b ) ; this . _helper = a ; var c = this ; a . on ( "data" , function ( a , b ) { c . push ( a ) || c . _helper . pause ( ) ; d && d ( b ) } ) . on ( "error" , function ( a ) { c . emit ( "error" , a ) } ) . on ( "end" , function ( ) { c . push ( null ) } ) } var e = b ( "readable-stream" ) . Readable ; b ( "util" ) . inherits ( a , e ) ; a . prototype . _read = function ( ) { this . _helper . resume ( ) } ; f . exports = a } , { "readable-stream" : 16 , util : void 0 } ] , 14 : [ function ( b , f , d ) { f . exports = { isNode : "undefined" != typeof Buffer , newBuffer : function ( a , b ) { return new Buffer ( a , b ) } , isBuffer : function ( a ) { return Buffer . isBuffer ( a ) } , isStream : function ( a ) { return a &&
2017-06-20 11:05:40 +00:00
"function" == typeof a . on && "function" == typeof a . pause && "function" == typeof a . resume } } } , { } ] , 15 : [ function ( b , f , d ) { var a = b ( "./utf8" ) , e = b ( "./utils" ) , c = b ( "./stream/GenericWorker" ) , g = b ( "./stream/StreamHelper" ) , l = b ( "./defaults" ) , h = b ( "./compressedObject" ) , n = b ( "./zipObject" ) , q = b ( "./generate" ) , x = b ( "./nodejsUtils" ) , z = b ( "./nodejs/NodejsStreamInputAdapter" ) , E = function ( a , b , d ) { var p , t = e . getTypeOf ( b ) , g = e . extend ( d || { } , l ) ; g . date = g . date || new Date ; null !== g . compression && ( g . compression = g . compression . toUpperCase ( ) ) ; "string" ==
typeof g . unixPermissions && ( g . unixPermissions = parseInt ( g . unixPermissions , 8 ) ) ; g . unixPermissions && 16384 & g . unixPermissions && ( g . dir = ! 0 ) ; g . dosPermissions && 16 & g . dosPermissions && ( g . dir = ! 0 ) ; g . dir && ( a = F ( a ) ) ; var B ; if ( B = g . createFolders ) p = a , "/" === p . slice ( - 1 ) && ( p = p . substring ( 0 , p . length - 1 ) ) , B = p . lastIndexOf ( "/" ) , B = p = 0 < B ? p . substring ( 0 , B ) : "" ; B && v . call ( this , p , ! 0 ) ; t = "string" === t && ! 1 === g . binary && ! 1 === g . base64 ; d && "undefined" != typeof d . binary || ( g . binary = ! t ) ; ( b instanceof h && 0 === b . uncompressedSize || g . dir || ! b || 0 === b . length ) &&
( g . base64 = ! 1 , g . binary = ! 0 , b = "" , g . compression = "STORE" ) ; b = b instanceof h || b instanceof c ? b : x . isNode && x . isStream ( b ) ? new z ( a , b ) : e . prepareContent ( a , b , g . binary , g . optimizedBinaryString , g . base64 ) ; g = new n ( a , b , g ) ; this . files [ a ] = g } , F = function ( a ) { return "/" !== a . slice ( - 1 ) && ( a += "/" ) , a } , v = function ( a , b ) { return b = "undefined" != typeof b ? b : l . createFolders , a = F ( a ) , this . files [ a ] || E . call ( this , a , null , { dir : ! 0 , createFolders : b } ) , this . files [ a ] } ; f . exports = { load : function ( ) { throw Error ( "This method has been removed in JSZip 3.0, please check the upgrade guide." ) ;
} , forEach : function ( a ) { var b , c , d ; for ( b in this . files ) this . files . hasOwnProperty ( b ) && ( d = this . files [ b ] , c = b . slice ( this . root . length , b . length ) , c && b . slice ( 0 , this . root . length ) === this . root && a ( c , d ) ) } , filter : function ( a ) { var b = [ ] ; return this . forEach ( function ( c , d ) { a ( c , d ) && b . push ( d ) } ) , b } , file : function ( a , b , c ) { if ( 1 === arguments . length ) { if ( "[object RegExp]" === Object . prototype . toString . call ( a ) ) { var d = a ; return this . filter ( function ( a , b ) { return ! b . dir && d . test ( a ) } ) } var e = this . files [ this . root + a ] ; return e && ! e . dir ? e : null } return a =
this . root + a , E . call ( this , a , b , c ) , this } , folder : function ( a ) { if ( ! a ) return this ; if ( "[object RegExp]" === Object . prototype . toString . call ( a ) ) return this . filter ( function ( b , c ) { return c . dir && a . test ( b ) } ) ; var b = v . call ( this , this . root + a ) , c = this . clone ( ) ; return c . root = b . name , c } , remove : function ( a ) { a = this . root + a ; var b = this . files [ a ] ; if ( b || ( "/" !== a . slice ( - 1 ) && ( a += "/" ) , b = this . files [ a ] ) , b && ! b . dir ) delete this . files [ a ] ; else for ( var b = this . filter ( function ( b , c ) { return c . name . slice ( 0 , a . length ) === a } ) , c = 0 ; c < b . length ; c ++ ) delete this . files [ b [ c ] . name ] ;
2017-06-12 13:14:07 +00:00
return this } , generate : function ( a ) { throw Error ( "This method has been removed in JSZip 3.0, please check the upgrade guide." ) ; } , generateInternalStream : function ( b ) { var d , p = { } ; try { if ( p = e . extend ( b || { } , { streamFiles : ! 1 , compression : "STORE" , compressionOptions : null , type : "" , platform : "DOS" , comment : null , mimeType : "application/zip" , encodeFileName : a . utf8encode } ) , p . type = p . type . toLowerCase ( ) , p . compression = p . compression . toUpperCase ( ) , "binarystring" === p . type && ( p . type = "string" ) , ! p . type ) throw Error ( "No output type specified." ) ;
2017-06-20 11:05:40 +00:00
e . checkSupport ( p . type ) ; "darwin" !== p . platform && "freebsd" !== p . platform && "linux" !== p . platform && "sunos" !== p . platform || ( p . platform = "UNIX" ) ; "win32" === p . platform && ( p . platform = "DOS" ) ; d = q . generateWorker ( this , p , p . comment || this . comment || "" ) } catch ( A ) { d = new c ( "error" ) , d . error ( A ) } return new g ( d , p . type || "string" , p . mimeType ) } , generateAsync : function ( a , b ) { return this . generateInternalStream ( a ) . accumulate ( b ) } , generateNodeStream : function ( a , b ) { return a = a || { } , a . type || ( a . type = "nodebuffer" ) , this . generateInternalStream ( a ) . toNodejsStream ( b ) } } } ,
2017-06-12 13:14:07 +00:00
{ "./compressedObject" : 2 , "./defaults" : 5 , "./generate" : 9 , "./nodejs/NodejsStreamInputAdapter" : 12 , "./nodejsUtils" : 14 , "./stream/GenericWorker" : 28 , "./stream/StreamHelper" : 29 , "./utf8" : 31 , "./utils" : 32 , "./zipObject" : 35 } ] , 16 : [ function ( b , f , d ) { f . exports = b ( "stream" ) } , { stream : void 0 } ] , 17 : [ function ( b , f , d ) { function a ( a ) { e . call ( this , a ) ; for ( var b = 0 ; b < this . data . length ; b ++ ) a [ b ] &= 255 } var e = b ( "./DataReader" ) ; b ( "../utils" ) . inherits ( a , e ) ; a . prototype . byteAt = function ( a ) { return this . data [ this . zero + a ] } ; a . prototype . lastIndexOfSignature =
2017-06-20 11:05:40 +00:00
function ( a ) { var b = a . charCodeAt ( 0 ) , c = a . charCodeAt ( 1 ) , d = a . charCodeAt ( 2 ) ; a = a . charCodeAt ( 3 ) ; for ( var e = this . length - 4 ; 0 <= e ; -- e ) if ( this . data [ e ] === b && this . data [ e + 1 ] === c && this . data [ e + 2 ] === d && this . data [ e + 3 ] === a ) return e - this . zero ; return - 1 } ; a . prototype . readAndCheckSignature = function ( a ) { var b = a . charCodeAt ( 0 ) , c = a . charCodeAt ( 1 ) , d = a . charCodeAt ( 2 ) ; a = a . charCodeAt ( 3 ) ; var e = this . readData ( 4 ) ; return b === e [ 0 ] && c === e [ 1 ] && d === e [ 2 ] && a === e [ 3 ] } ; a . prototype . readData = function ( a ) { if ( this . checkOffset ( a ) , 0 === a ) return [ ] ; var b = this . data . slice ( this . zero +
2017-06-12 13:14:07 +00:00
this . index , this . zero + this . index + a ) ; return this . index += a , b } ; f . exports = a } , { "../utils" : 32 , "./DataReader" : 18 } ] , 18 : [ function ( b , f , d ) { function a ( a ) { this . data = a ; this . length = a . length ; this . zero = this . index = 0 } var e = b ( "../utils" ) ; a . prototype = { checkOffset : function ( a ) { this . checkIndex ( this . index + a ) } , checkIndex : function ( a ) { if ( this . length < this . zero + a || 0 > a ) throw Error ( "End of data reached (data length = " + this . length + ", asked index = " + a + "). Corrupted zip ?" ) ; } , setIndex : function ( a ) { this . checkIndex ( a ) ; this . index = a } ,
skip : function ( a ) { this . setIndex ( this . index + a ) } , byteAt : function ( a ) { } , readInt : function ( a ) { var b , c = 0 ; this . checkOffset ( a ) ; for ( b = this . index + a - 1 ; b >= this . index ; b -- ) c = ( c << 8 ) + this . byteAt ( b ) ; return this . index += a , c } , readString : function ( a ) { return e . transformTo ( "string" , this . readData ( a ) ) } , readData : function ( a ) { } , lastIndexOfSignature : function ( a ) { } , readAndCheckSignature : function ( a ) { } , readDate : function ( ) { var a = this . readInt ( 4 ) ; return new Date ( Date . UTC ( ( a >> 25 & 127 ) + 1980 , ( a >> 21 & 15 ) - 1 , a >> 16 & 31 , a >> 11 & 31 , a >> 5 & 63 , ( 31 & a ) <<
1 ) ) } } ; f . exports = a } , { "../utils" : 32 } ] , 19 : [ function ( b , f , d ) { function a ( a ) { e . call ( this , a ) } var e = b ( "./Uint8ArrayReader" ) ; b ( "../utils" ) . inherits ( a , e ) ; a . prototype . readData = function ( a ) { this . checkOffset ( a ) ; var b = this . data . slice ( this . zero + this . index , this . zero + this . index + a ) ; return this . index += a , b } ; f . exports = a } , { "../utils" : 32 , "./Uint8ArrayReader" : 21 } ] , 20 : [ function ( b , f , d ) { function a ( a ) { e . call ( this , a ) } var e = b ( "./DataReader" ) ; b ( "../utils" ) . inherits ( a , e ) ; a . prototype . byteAt = function ( a ) { return this . data . charCodeAt ( this . zero +
a ) } ; a . prototype . lastIndexOfSignature = function ( a ) { return this . data . lastIndexOf ( a ) - this . zero } ; a . prototype . readAndCheckSignature = function ( a ) { var b = this . readData ( 4 ) ; return a === b } ; a . prototype . readData = function ( a ) { this . checkOffset ( a ) ; var b = this . data . slice ( this . zero + this . index , this . zero + this . index + a ) ; return this . index += a , b } ; f . exports = a } , { "../utils" : 32 , "./DataReader" : 18 } ] , 21 : [ function ( b , f , d ) { function a ( a ) { e . call ( this , a ) } var e = b ( "./ArrayReader" ) ; b ( "../utils" ) . inherits ( a , e ) ; a . prototype . readData = function ( a ) { if ( this . checkOffset ( a ) ,
0 === a ) return new Uint8Array ( 0 ) ; var b = this . data . subarray ( this . zero + this . index , this . zero + this . index + a ) ; return this . index += a , b } ; f . exports = a } , { "../utils" : 32 , "./ArrayReader" : 17 } ] , 22 : [ function ( b , f , d ) { var a = b ( "../utils" ) , e = b ( "../support" ) , c = b ( "./ArrayReader" ) , g = b ( "./StringReader" ) , l = b ( "./NodeBufferReader" ) , h = b ( "./Uint8ArrayReader" ) ; f . exports = function ( b ) { var d = a . getTypeOf ( b ) ; return a . checkSupport ( d ) , "string" !== d || e . uint8array ? "nodebuffer" === d ? new l ( b ) : e . uint8array ? new h ( a . transformTo ( "uint8array" , b ) ) : new c ( a . transformTo ( "array" ,
b ) ) : new g ( b ) } } , { "../support" : 30 , "../utils" : 32 , "./ArrayReader" : 17 , "./NodeBufferReader" : 19 , "./StringReader" : 20 , "./Uint8ArrayReader" : 21 } ] , 23 : [ function ( b , f , d ) { d . LOCAL _FILE _HEADER = "PK " ; d . CENTRAL _FILE _HEADER = "PK " ; d . CENTRAL _DIRECTORY _END = "PK " ; d . ZIP64 _CENTRAL _DIRECTORY _LOCATOR = "PK " ; d . ZIP64 _CENTRAL _DIRECTORY _END = "PK " ; d . DATA _DESCRIPTOR = "PK \b" } , { } ] , 24 : [ function ( b , f , d ) { function a ( a ) { e . call ( this , "ConvertWorker to " + a ) ; this . destType = a } var e = b ( "./GenericWorker" ) , c = b ( "../utils" ) ; c . inherits ( a , e ) ; a . prototype . processChunk =
function ( a ) { this . push ( { data : c . transformTo ( this . destType , a . data ) , meta : a . meta } ) } ; f . exports = a } , { "../utils" : 32 , "./GenericWorker" : 28 } ] , 25 : [ function ( b , f , d ) { function a ( ) { e . call ( this , "Crc32Probe" ) ; this . withStreamInfo ( "crc32" , 0 ) } var e = b ( "./GenericWorker" ) , c = b ( "../crc32" ) ; b ( "../utils" ) . inherits ( a , e ) ; a . prototype . processChunk = function ( a ) { this . streamInfo . crc32 = c ( a . data , this . streamInfo . crc32 || 0 ) ; this . push ( a ) } ; f . exports = a } , { "../crc32" : 4 , "../utils" : 32 , "./GenericWorker" : 28 } ] , 26 : [ function ( b , f , d ) { function a ( a ) { e . call ( this ,
"DataLengthProbe for " + a ) ; this . propName = a ; this . withStreamInfo ( a , 0 ) } d = b ( "../utils" ) ; var e = b ( "./GenericWorker" ) ; d . inherits ( a , e ) ; a . prototype . processChunk = function ( a ) { a && ( this . streamInfo [ this . propName ] = ( this . streamInfo [ this . propName ] || 0 ) + a . data . length ) ; e . prototype . processChunk . call ( this , a ) } ; f . exports = a } , { "../utils" : 32 , "./GenericWorker" : 28 } ] , 27 : [ function ( b , f , d ) { function a ( a ) { c . call ( this , "DataWorker" ) ; var b = this ; this . dataIsReady = ! 1 ; this . max = this . index = 0 ; this . data = null ; this . type = "" ; this . _tickScheduled = ! 1 ;
a . then ( function ( a ) { b . dataIsReady = ! 0 ; b . data = a ; b . max = a && a . length || 0 ; b . type = e . getTypeOf ( a ) ; b . isPaused || b . _tickAndRepeat ( ) } , function ( a ) { b . error ( a ) } ) } var e = b ( "../utils" ) , c = b ( "./GenericWorker" ) ; e . inherits ( a , c ) ; a . prototype . cleanUp = function ( ) { c . prototype . cleanUp . call ( this ) ; this . data = null } ; a . prototype . resume = function ( ) { return ! ! c . prototype . resume . call ( this ) && ( ! this . _tickScheduled && this . dataIsReady && ( this . _tickScheduled = ! 0 , e . delay ( this . _tickAndRepeat , [ ] , this ) ) , ! 0 ) } ; a . prototype . _tickAndRepeat = function ( ) { this . _tickScheduled =
2017-06-06 15:37:03 +00:00
! 1 ; this . isPaused || this . isFinished || ( this . _tick ( ) , this . isFinished || ( e . delay ( this . _tickAndRepeat , [ ] , this ) , this . _tickScheduled = ! 0 ) ) } ; a . prototype . _tick = function ( ) { if ( this . isPaused || this . isFinished ) return ! 1 ; var a = null , b = Math . min ( this . max , this . index + 16384 ) ; if ( this . index >= this . max ) return this . end ( ) ; switch ( this . type ) { case "string" : a = this . data . substring ( this . index , b ) ; break ; case "uint8array" : a = this . data . subarray ( this . index , b ) ; break ; case "array" : case "nodebuffer" : a = this . data . slice ( this . index , b ) } return this . index =
2017-06-12 13:14:07 +00:00
b , this . push ( { data : a , meta : { percent : this . max ? this . index / this . max * 100 : 0 } } ) } ; f . exports = a } , { "../utils" : 32 , "./GenericWorker" : 28 } ] , 28 : [ function ( b , f , d ) { function a ( a ) { this . name = a || "default" ; this . streamInfo = { } ; this . generatedError = null ; this . extraStreamInfo = { } ; this . isPaused = ! 0 ; this . isLocked = this . isFinished = ! 1 ; this . _listeners = { data : [ ] , end : [ ] , error : [ ] } ; this . previous = null } a . prototype = { push : function ( a ) { this . emit ( "data" , a ) } , end : function ( ) { if ( this . isFinished ) return ! 1 ; this . flush ( ) ; try { this . emit ( "end" ) , this . cleanUp ( ) ,
2017-06-20 11:05:40 +00:00
this . isFinished = ! 0 } catch ( e ) { this . emit ( "error" , e ) } return ! 0 } , error : function ( a ) { return ! this . isFinished && ( this . isPaused ? this . generatedError = a : ( this . isFinished = ! 0 , this . emit ( "error" , a ) , this . previous && this . previous . error ( a ) , this . cleanUp ( ) ) , ! 0 ) } , on : function ( a , b ) { return this . _listeners [ a ] . push ( b ) , this } , cleanUp : function ( ) { this . streamInfo = this . generatedError = this . extraStreamInfo = null ; this . _listeners = [ ] } , emit : function ( a , b ) { if ( this . _listeners [ a ] ) for ( var c = 0 ; c < this . _listeners [ a ] . length ; c ++ ) this . _listeners [ a ] [ c ] . call ( this ,
2017-06-06 15:37:03 +00:00
b ) } , pipe : function ( a ) { return a . registerPrevious ( this ) } , registerPrevious : function ( a ) { if ( this . isLocked ) throw Error ( "The stream '" + this + "' has already been used." ) ; this . streamInfo = a . streamInfo ; this . mergeStreamInfo ( ) ; this . previous = a ; var b = this ; return a . on ( "data" , function ( a ) { b . processChunk ( a ) } ) , a . on ( "end" , function ( ) { b . end ( ) } ) , a . on ( "error" , function ( a ) { b . error ( a ) } ) , this } , pause : function ( ) { return ! this . isPaused && ! this . isFinished && ( this . isPaused = ! 0 , this . previous && this . previous . pause ( ) , ! 0 ) } , resume : function ( ) { if ( ! this . isPaused ||
this . isFinished ) return ! 1 ; var a = this . isPaused = ! 1 ; return this . generatedError && ( this . error ( this . generatedError ) , a = ! 0 ) , this . previous && this . previous . resume ( ) , ! a } , flush : function ( ) { } , processChunk : function ( a ) { this . push ( a ) } , withStreamInfo : function ( a , b ) { return this . extraStreamInfo [ a ] = b , this . mergeStreamInfo ( ) , this } , mergeStreamInfo : function ( ) { for ( var a in this . extraStreamInfo ) this . extraStreamInfo . hasOwnProperty ( a ) && ( this . streamInfo [ a ] = this . extraStreamInfo [ a ] ) } , lock : function ( ) { if ( this . isLocked ) throw Error ( "The stream '" +
2017-06-20 11:05:40 +00:00
this + "' has already been used." ) ; this . isLocked = ! 0 ; this . previous && this . previous . lock ( ) } , toString : function ( ) { var a = "Worker " + this . name ; return this . previous ? this . previous + " -> " + a : a } } ; f . exports = a } , { } ] , 29 : [ function ( b , f , d ) { function a ( a , b ) { var c , d = 0 , e ; for ( c = e = 0 ; c < b . length ; c ++ ) e += b [ c ] . length ; switch ( a ) { case "string" : return b . join ( "" ) ; case "array" : return Array . prototype . concat . apply ( [ ] , b ) ; case "uint8array" : e = new Uint8Array ( e ) ; for ( c = 0 ; c < b . length ; c ++ ) e . set ( b [ c ] , d ) , d += b [ c ] . length ; return e ; case "nodebuffer" : return Buffer . concat ( b ) ;
default : throw Error ( "concat : unsupported type '" + a + "'" ) ; } } function e ( b , c ) { return new q . Promise ( function ( d , e ) { var p = [ ] , t = b . _internalType , B = b . _outputType , x = b . _mimeType ; b . on ( "data" , function ( a , b ) { p . push ( a ) ; c && c ( b ) } ) . on ( "error" , function ( a ) { p = [ ] ; e ( a ) } ) . on ( "end" , function ( ) { try { var b ; a : { var c = p , v = null ; switch ( B ) { case "blob" : b = g . newBlob ( c , x ) ; break a ; case "base64" : b = ( v = a ( t , c ) , n . encode ( v ) ) ; break a ; default : b = ( v = a ( t , c ) , g . transformTo ( B , v ) ) } } d ( b ) } catch ( r ) { e ( r ) } p = [ ] } ) . resume ( ) } ) } function c ( a , b , c ) { var d = b ; switch ( b ) { case "blob" : d =
"arraybuffer" ; break ; case "arraybuffer" : d = "uint8array" ; break ; case "base64" : d = "string" } try { this . _internalType = d , this . _outputType = b , this . _mimeType = c , g . checkSupport ( d ) , this . _worker = a . pipe ( new l ( d ) ) , a . lock ( ) } catch ( p ) { this . _worker = new h ( "error" ) , this . _worker . error ( p ) } } var g = b ( "../utils" ) , l = b ( "./ConvertWorker" ) , h = b ( "./GenericWorker" ) , n = b ( "../base64" ) ; d = b ( "../support" ) ; var q = b ( "../external" ) , x = null ; if ( d . nodestream ) try { x = b ( "../nodejs/NodejsStreamOutputAdapter" ) } catch ( z ) { } c . prototype = { accumulate : function ( a ) { return e ( this ,
a ) } , on : function ( a , b ) { var c = this ; return "data" === a ? this . _worker . on ( a , function ( a ) { b . call ( c , a . data , a . meta ) } ) : this . _worker . on ( a , function ( ) { g . delay ( b , arguments , c ) } ) , this } , resume : function ( ) { return g . delay ( this . _worker . resume , [ ] , this . _worker ) , this } , pause : function ( ) { return this . _worker . pause ( ) , this } , toNodejsStream : function ( a ) { if ( g . checkSupport ( "nodestream" ) , "nodebuffer" !== this . _outputType ) throw Error ( this . _outputType + " is not supported by this method" ) ; return new x ( this , { objectMode : "nodebuffer" !== this . _outputType } ,
2017-06-12 13:14:07 +00:00
a ) } } ; f . exports = c } , { "../base64" : 1 , "../external" : 6 , "../nodejs/NodejsStreamOutputAdapter" : 13 , "../support" : 30 , "../utils" : 32 , "./ConvertWorker" : 24 , "./GenericWorker" : 28 } ] , 30 : [ function ( b , f , d ) { if ( d . base64 = ! 0 , d . array = ! 0 , d . string = ! 0 , d . arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array , d . nodebuffer = "undefined" != typeof Buffer , d . uint8array = "undefined" != typeof Uint8Array , "undefined" == typeof ArrayBuffer ) d . blob = ! 1 ; else { f = new ArrayBuffer ( 0 ) ; try { d . blob = 0 === ( new Blob ( [ f ] , { type : "application/zip" } ) ) . size } catch ( e ) { try { var a =
new ( window . BlobBuilder || window . WebKitBlobBuilder || window . MozBlobBuilder || window . MSBlobBuilder ) ; a . append ( f ) ; d . blob = 0 === a . getBlob ( "application/zip" ) . size } catch ( c ) { d . blob = ! 1 } } } try { d . nodestream = ! ! b ( "readable-stream" ) . Readable } catch ( e ) { d . nodestream = ! 1 } } , { "readable-stream" : 16 } ] , 31 : [ function ( b , f , d ) { function a ( ) { h . call ( this , "utf-8 decode" ) ; this . leftOver = null } function e ( ) { h . call ( this , "utf-8 encode" ) } var c = b ( "./utils" ) , g = b ( "./support" ) , l = b ( "./nodejsUtils" ) , h = b ( "./stream/GenericWorker" ) , n = Array ( 256 ) ; for ( b =
2017-06-20 11:05:40 +00:00
0 ; 256 > b ; b ++ ) n [ b ] = 252 <= b ? 6 : 248 <= b ? 5 : 240 <= b ? 4 : 224 <= b ? 3 : 192 <= b ? 2 : 1 ; n [ 254 ] = n [ 254 ] = 1 ; d . utf8encode = function ( a ) { if ( g . nodebuffer ) a = l . newBuffer ( a , "utf-8" ) ; else { var b , c , d , e , v , p = a . length , t = 0 ; for ( e = 0 ; e < p ; e ++ ) c = a . charCodeAt ( e ) , 55296 === ( 64512 & c ) && e + 1 < p && ( d = a . charCodeAt ( e + 1 ) , 56320 === ( 64512 & d ) && ( c = 65536 + ( c - 55296 << 10 ) + ( d - 56320 ) , e ++ ) ) , t += 128 > c ? 1 : 2048 > c ? 2 : 65536 > c ? 3 : 4 ; b = g . uint8array ? new Uint8Array ( t ) : Array ( t ) ; for ( e = v = 0 ; v < t ; e ++ ) c = a . charCodeAt ( e ) , 55296 === ( 64512 & c ) && e + 1 < p && ( d = a . charCodeAt ( e + 1 ) , 56320 === ( 64512 & d ) && ( c = 65536 +
( c - 55296 << 10 ) + ( d - 56320 ) , e ++ ) ) , 128 > c ? b [ v ++ ] = c : 2048 > c ? ( b [ v ++ ] = 192 | c >>> 6 , b [ v ++ ] = 128 | 63 & c ) : 65536 > c ? ( b [ v ++ ] = 224 | c >>> 12 , b [ v ++ ] = 128 | c >>> 6 & 63 , b [ v ++ ] = 128 | 63 & c ) : ( b [ v ++ ] = 240 | c >>> 18 , b [ v ++ ] = 128 | c >>> 12 & 63 , b [ v ++ ] = 128 | c >>> 6 & 63 , b [ v ++ ] = 128 | 63 & c ) ; a = b } return a } ; d . utf8decode = function ( a ) { var b ; if ( g . nodebuffer ) b = c . transformTo ( "nodebuffer" , a ) . toString ( "utf-8" ) ; else { var d = a = c . transformTo ( g . uint8array ? "uint8array" : "array" , a ) , e , f , v , p = d . length ; a = Array ( 2 * p ) ; for ( e = f = 0 ; e < p ; ) if ( b = d [ e ++ ] , 128 > b ) a [ f ++ ] = b ; else if ( v = n [ b ] , 4 < v ) a [ f ++ ] =
65533 , e += v - 1 ; else { for ( b &= 2 === v ? 31 : 3 === v ? 15 : 7 ; 1 < v && e < p ; ) b = b << 6 | 63 & d [ e ++ ] , v -- ; 1 < v ? a [ f ++ ] = 65533 : 65536 > b ? a [ f ++ ] = b : ( b -= 65536 , a [ f ++ ] = 55296 | b >> 10 & 1023 , a [ f ++ ] = 56320 | 1023 & b ) } b = ( a . length !== f && ( a . subarray ? a = a . subarray ( 0 , f ) : a . length = f ) , c . applyFromCharCode ( a ) ) } return b } ; c . inherits ( a , h ) ; a . prototype . processChunk = function ( a ) { var b = c . transformTo ( g . uint8array ? "uint8array" : "array" , a . data ) ; if ( this . leftOver && this . leftOver . length ) { if ( g . uint8array ) { var e = b , b = new Uint8Array ( e . length + this . leftOver . length ) ; b . set ( this . leftOver ,
0 ) ; b . set ( e , this . leftOver . length ) } else b = this . leftOver . concat ( b ) ; this . leftOver = null } var f , e = b . length ; e > b . length && ( e = b . length ) ; for ( f = e - 1 ; 0 <= f && 128 === ( 192 & b [ f ] ) ; ) f -- ; e = 0 > f ? e : 0 === f ? e : f + n [ b [ f ] ] > e ? f : e ; f = b ; e !== b . length && ( g . uint8array ? ( f = b . subarray ( 0 , e ) , this . leftOver = b . subarray ( e , b . length ) ) : ( f = b . slice ( 0 , e ) , this . leftOver = b . slice ( e , b . length ) ) ) ; this . push ( { data : d . utf8decode ( f ) , meta : a . meta } ) } ; a . prototype . flush = function ( ) { this . leftOver && this . leftOver . length && ( this . push ( { data : d . utf8decode ( this . leftOver ) , meta : { } } ) ,
2017-06-15 18:43:34 +00:00
this . leftOver = null ) } ; d . Utf8DecodeWorker = a ; c . inherits ( e , h ) ; e . prototype . processChunk = function ( a ) { this . push ( { data : d . utf8encode ( a . data ) , meta : a . meta } ) } ; d . Utf8EncodeWorker = e } , { "./nodejsUtils" : 14 , "./stream/GenericWorker" : 28 , "./support" : 30 , "./utils" : 32 } ] , 32 : [ function ( b , f , d ) { function a ( a ) { return a } function e ( a , b ) { for ( var c = 0 ; c < a . length ; ++ c ) b [ c ] = 255 & a . charCodeAt ( c ) ; return b } function c ( a ) { var b = 65536 , c = d . getTypeOf ( a ) , e = ! 0 ; if ( "uint8array" === c ? e = F . applyCanBeUsed . uint8array : "nodebuffer" === c && ( e = F . applyCanBeUsed . nodebuffer ) ,
2017-06-20 11:05:40 +00:00
e ) for ( ; 1 < b ; ) try { return F . stringifyByChunk ( a , c , b ) } catch ( m ) { b = Math . floor ( b / 2 ) } return F . stringifyByChar ( a ) } function g ( a , b ) { for ( var c = 0 ; c < a . length ; c ++ ) b [ c ] = a [ c ] ; return b } var l = b ( "./support" ) , h = b ( "./base64" ) , n = b ( "./nodejsUtils" ) , q = b ( "core-js/library/fn/set-immediate" ) , x = b ( "./external" ) ; d . newBlob = function ( a , b ) { d . checkSupport ( "blob" ) ; try { return new Blob ( a , { type : b } ) } catch ( m ) { try { for ( var c = new ( window . BlobBuilder || window . WebKitBlobBuilder || window . MozBlobBuilder || window . MSBlobBuilder ) , e = 0 ; e < a . length ; e ++ ) c . append ( a [ e ] ) ;
return c . getBlob ( b ) } catch ( P ) { throw Error ( "Bug : can't construct the Blob." ) ; } } } ; var z ; try { z = l . uint8array && 1 === String . fromCharCode . apply ( null , new Uint8Array ( 1 ) ) . length } catch ( p ) { z = ! 1 } b = z ; var E ; try { E = l . nodebuffer && 1 === String . fromCharCode . apply ( null , n . newBuffer ( 1 ) ) . length } catch ( p ) { E = ! 1 } var F = { stringifyByChunk : function ( a , b , c ) { var d = [ ] , e = 0 , p = a . length ; if ( p <= c ) return String . fromCharCode . apply ( null , a ) ; for ( ; e < p ; ) "array" === b || "nodebuffer" === b ? d . push ( String . fromCharCode . apply ( null , a . slice ( e , Math . min ( e + c , p ) ) ) ) :
d . push ( String . fromCharCode . apply ( null , a . subarray ( e , Math . min ( e + c , p ) ) ) ) , e += c ; return d . join ( "" ) } , stringifyByChar : function ( a ) { for ( var b = "" , c = 0 ; c < a . length ; c ++ ) b += String . fromCharCode ( a [ c ] ) ; return b } , applyCanBeUsed : { uint8array : b , nodebuffer : E } } ; d . applyFromCharCode = c ; var v = { } ; v . string = { string : a , array : function ( a ) { return e ( a , Array ( a . length ) ) } , arraybuffer : function ( a ) { return v . string . uint8array ( a ) . buffer } , uint8array : function ( a ) { return e ( a , new Uint8Array ( a . length ) ) } , nodebuffer : function ( a ) { return e ( a , n . newBuffer ( a . length ) ) } } ;
v . array = { string : c , array : a , arraybuffer : function ( a ) { return ( new Uint8Array ( a ) ) . buffer } , uint8array : function ( a ) { return new Uint8Array ( a ) } , nodebuffer : function ( a ) { return n . newBuffer ( a ) } } ; v . arraybuffer = { string : function ( a ) { return c ( new Uint8Array ( a ) ) } , array : function ( a ) { return g ( new Uint8Array ( a ) , Array ( a . byteLength ) ) } , arraybuffer : a , uint8array : function ( a ) { return new Uint8Array ( a ) } , nodebuffer : function ( a ) { return n . newBuffer ( new Uint8Array ( a ) ) } } ; v . uint8array = { string : c , array : function ( a ) { return g ( a , Array ( a . length ) ) } ,
arraybuffer : function ( a ) { var b = new Uint8Array ( a . length ) ; return a . length && b . set ( a , 0 ) , b . buffer } , uint8array : a , nodebuffer : function ( a ) { return n . newBuffer ( a ) } } ; v . nodebuffer = { string : c , array : function ( a ) { return g ( a , Array ( a . length ) ) } , arraybuffer : function ( a ) { return v . nodebuffer . uint8array ( a ) . buffer } , uint8array : function ( a ) { return g ( a , new Uint8Array ( a . length ) ) } , nodebuffer : a } ; d . transformTo = function ( a , b ) { if ( b || ( b = "" ) , ! a ) return b ; d . checkSupport ( a ) ; var c = d . getTypeOf ( b ) ; return v [ c ] [ a ] ( b ) } ; d . getTypeOf = function ( a ) { return "string" ==
typeof a ? "string" : "[object Array]" === Object . prototype . toString . call ( a ) ? "array" : l . nodebuffer && n . isBuffer ( a ) ? "nodebuffer" : l . uint8array && a instanceof Uint8Array ? "uint8array" : l . arraybuffer && a instanceof ArrayBuffer ? "arraybuffer" : void 0 } ; d . checkSupport = function ( a ) { if ( ! l [ a . toLowerCase ( ) ] ) throw Error ( a + " is not supported by this platform" ) ; } ; d . MAX _VALUE _16BITS = 65535 ; d . MAX _VALUE _32BITS = - 1 ; d . pretty = function ( a ) { var b , c , d = "" ; for ( c = 0 ; c < ( a || "" ) . length ; c ++ ) b = a . charCodeAt ( c ) , d += "\\x" + ( 16 > b ? "0" : "" ) + b . toString ( 16 ) . toUpperCase ( ) ;
return d } ; d . delay = function ( a , b , c ) { q ( function ( ) { a . apply ( c || null , b || [ ] ) } ) } ; d . inherits = function ( a , b ) { var c = function ( ) { } ; c . prototype = b . prototype ; a . prototype = new c } ; d . extend = function ( ) { var a , b , c = { } ; for ( a = 0 ; a < arguments . length ; a ++ ) for ( b in arguments [ a ] ) arguments [ a ] . hasOwnProperty ( b ) && "undefined" == typeof c [ b ] && ( c [ b ] = arguments [ a ] [ b ] ) ; return c } ; d . prepareContent = function ( a , b , c , g , f ) { return x . Promise . resolve ( b ) . then ( function ( a ) { return l . blob && ( a instanceof Blob || - 1 !== [ "[object File]" , "[object Blob]" ] . indexOf ( Object . prototype . toString . call ( a ) ) ) &&
"undefined" != typeof FileReader ? new x . Promise ( function ( b , c ) { var d = new FileReader ; d . onload = function ( a ) { b ( a . target . result ) } ; d . onerror = function ( a ) { c ( a . target . error ) } ; d . readAsArrayBuffer ( a ) } ) : a } ) . then ( function ( b ) { var t = d . getTypeOf ( b ) ; t ? "arraybuffer" === t ? b = d . transformTo ( "uint8array" , b ) : "string" === t && ( f ? b = h . decode ( b ) : c && ! 0 !== g && ( t = null , b = ( t = l . uint8array ? new Uint8Array ( b . length ) : Array ( b . length ) , e ( b , t ) ) ) ) : b = x . Promise . reject ( Error ( "The data of '" + a + "' is in an unsupported format !" ) ) ; return b } ) } } , { "./base64" : 1 ,
2017-06-12 13:14:07 +00:00
"./external" : 6 , "./nodejsUtils" : 14 , "./support" : 30 , "core-js/library/fn/set-immediate" : 36 } ] , 33 : [ function ( b , f , d ) { function a ( a ) { this . files = [ ] ; this . loadOptions = a } var e = b ( "./reader/readerFor" ) , c = b ( "./utils" ) , g = b ( "./signature" ) , l = b ( "./zipEntry" ) , h = ( b ( "./utf8" ) , b ( "./support" ) ) ; a . prototype = { checkSignature : function ( a ) { if ( ! this . reader . readAndCheckSignature ( a ) ) { this . reader . index -= 4 ; var b = this . reader . readString ( 4 ) ; throw Error ( "Corrupted zip or bug : unexpected signature (" + c . pretty ( b ) + ", expected " + c . pretty ( a ) +
2017-06-20 11:05:40 +00:00
")" ) ; } } , isSignature : function ( a , b ) { var c = this . reader . index ; this . reader . setIndex ( a ) ; var d = this . reader . readString ( 4 ) === b ; return this . reader . setIndex ( c ) , d } , 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 ) ;
2017-06-12 13:14:07 +00:00
var a = this . reader . readData ( this . zipCommentLength ) , a = c . transformTo ( h . uint8array ? "uint8array" : "array" , a ) ; this . zipComment = this . loadOptions . decodeFileName ( a ) } , 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 =
2017-06-20 11:05:40 +00:00
this . reader . readInt ( 8 ) ; this . zip64ExtensibleData = { } ; for ( var a , b , c , d = this . zip64EndOfCentralSize - 44 ; 0 < d ; ) a = this . reader . readInt ( 2 ) , b = this . reader . readInt ( 4 ) , c = this . reader . readData ( b ) , this . zip64ExtensibleData [ a ] = { id : a , length : b , value : c } } , readBlockZip64EndOfCentralLocator : function ( ) { if ( this . diskWithZip64CentralDirStart = this . reader . readInt ( 4 ) , this . relativeOffsetEndOfZip64CentralDir = this . reader . readInt ( 8 ) , this . disksCount = this . reader . readInt ( 4 ) , 1 < this . disksCount ) throw Error ( "Multi-volumes zip are not supported" ) ;
2017-06-12 13:14:07 +00:00
} , readLocalFiles : function ( ) { var a , b ; for ( a = 0 ; a < this . files . length ; a ++ ) b = this . files [ a ] , this . reader . setIndex ( b . localHeaderOffset ) , this . checkSignature ( g . LOCAL _FILE _HEADER ) , b . readLocalPart ( this . reader ) , b . handleUTF8 ( ) , b . processAttributes ( ) } , readCentralDir : function ( ) { var a ; for ( this . reader . setIndex ( this . centralDirOffset ) ; this . reader . readAndCheckSignature ( g . CENTRAL _FILE _HEADER ) ; ) a = new l ( { zip64 : this . zip64 } , this . loadOptions ) , a . readCentralPart ( this . reader ) , this . files . push ( a ) ; if ( this . centralDirRecords !== this . files . length &&
2017-06-06 15:37:03 +00:00
0 !== this . centralDirRecords && 0 === this . files . length ) throw Error ( "Corrupted zip or bug: expected " + this . centralDirRecords + " records in central dir, got " + this . files . length ) ; } , readEndOfCentral : function ( ) { var a = this . reader . lastIndexOfSignature ( g . CENTRAL _DIRECTORY _END ) ; if ( 0 > a ) throw this . isSignature ( 0 , g . LOCAL _FILE _HEADER ) ? Error ( "Corrupted zip : can't find end of central directory" ) : Error ( "Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html" ) ;
2017-06-12 13:14:07 +00:00
this . reader . setIndex ( a ) ; var b = a ; if ( this . checkSignature ( g . CENTRAL _DIRECTORY _END ) , this . readBlockEndOfCentral ( ) , this . diskNumber === c . MAX _VALUE _16BITS || this . diskWithCentralDirStart === c . MAX _VALUE _16BITS || this . centralDirRecordsOnThisDisk === c . MAX _VALUE _16BITS || this . centralDirRecords === c . MAX _VALUE _16BITS || this . centralDirSize === c . MAX _VALUE _32BITS || this . centralDirOffset === c . MAX _VALUE _32BITS ) { if ( this . zip64 = ! 0 , a = this . reader . lastIndexOfSignature ( g . ZIP64 _CENTRAL _DIRECTORY _LOCATOR ) , 0 > a ) throw Error ( "Corrupted zip : can't find the ZIP64 end of central directory locator" ) ;
2017-06-06 15:37:03 +00:00
if ( this . reader . setIndex ( a ) , this . checkSignature ( g . ZIP64 _CENTRAL _DIRECTORY _LOCATOR ) , this . readBlockZip64EndOfCentralLocator ( ) , ! this . isSignature ( this . relativeOffsetEndOfZip64CentralDir , g . ZIP64 _CENTRAL _DIRECTORY _END ) && ( this . relativeOffsetEndOfZip64CentralDir = this . reader . lastIndexOfSignature ( g . ZIP64 _CENTRAL _DIRECTORY _END ) , 0 > this . relativeOffsetEndOfZip64CentralDir ) ) throw Error ( "Corrupted zip : can't find the ZIP64 end of central directory" ) ; this . reader . setIndex ( this . relativeOffsetEndOfZip64CentralDir ) ; this . checkSignature ( g . ZIP64 _CENTRAL _DIRECTORY _END ) ;
this . readBlockZip64EndOfCentral ( ) } a = this . centralDirOffset + this . centralDirSize ; this . zip64 && ( a += 20 , a += 12 + this . zip64EndOfCentralSize ) ; a = b - a ; if ( 0 < a ) this . isSignature ( b , g . CENTRAL _FILE _HEADER ) || ( this . reader . zero = a ) ; else if ( 0 > a ) throw Error ( "Corrupted zip: missing " + Math . abs ( a ) + " bytes." ) ; } , prepareReader : function ( a ) { this . reader = e ( a ) } , load : function ( a ) { this . prepareReader ( a ) ; this . readEndOfCentral ( ) ; this . readCentralDir ( ) ; this . readLocalFiles ( ) } } ; f . exports = a } , { "./reader/readerFor" : 22 , "./signature" : 23 , "./support" : 30 ,
2017-06-20 11:05:40 +00:00
"./utf8" : 31 , "./utils" : 32 , "./zipEntry" : 34 } ] , 34 : [ function ( b , f , d ) { function a ( a , b ) { this . options = a ; this . loadOptions = b } var e = b ( "./reader/readerFor" ) , c = b ( "./utils" ) , g = b ( "./compressedObject" ) , l = b ( "./crc32" ) , h = b ( "./utf8" ) , n = b ( "./compressions" ) , q = b ( "./support" ) ; a . prototype = { isEncrypted : function ( ) { return 1 === ( 1 & this . bitFlag ) } , useUTF8 : function ( ) { return 2048 === ( 2048 & this . bitFlag ) } , readLocalPart : function ( a ) { var b , d ; if ( a . skip ( 22 ) , this . fileNameLength = a . readInt ( 2 ) , d = a . readInt ( 2 ) , this . fileName = a . readData ( this . fileNameLength ) ,
a . skip ( d ) , - 1 === this . compressedSize || - 1 === this . uncompressedSize ) throw Error ( "Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)" ) ; var e ; a : { d = this . compressionMethod ; for ( e in n ) if ( n . hasOwnProperty ( e ) && n [ e ] . magic === d ) { e = n [ e ] ; break a } e = null } if ( b = e , null === b ) throw Error ( "Corrupted zip : compression " + c . pretty ( this . compressionMethod ) + " unknown (inner file : " + c . transformTo ( "string" , this . fileName ) + ")" ) ; this . decompressed = new g ( this . compressedSize ,
2017-06-06 15:37:03 +00:00
this . uncompressedSize , this . crc32 , b , a . readData ( this . compressedSize ) ) } , readCentralPart : function ( a ) { this . versionMadeBy = a . readInt ( 2 ) ; a . skip ( 2 ) ; this . bitFlag = a . readInt ( 2 ) ; this . compressionMethod = a . readString ( 2 ) ; this . date = a . readDate ( ) ; this . crc32 = a . readInt ( 4 ) ; this . compressedSize = a . readInt ( 4 ) ; this . uncompressedSize = a . readInt ( 4 ) ; var b = a . readInt ( 2 ) ; if ( this . extraFieldsLength = a . readInt ( 2 ) , this . fileCommentLength = a . readInt ( 2 ) , this . diskNumberStart = a . readInt ( 2 ) , this . internalFileAttributes = a . readInt ( 2 ) , this . externalFileAttributes =
a . readInt ( 4 ) , this . localHeaderOffset = a . readInt ( 4 ) , this . isEncrypted ( ) ) throw Error ( "Encrypted zip are not supported" ) ; a . skip ( b ) ; this . readExtraFields ( a ) ; this . parseZIP64ExtraField ( a ) ; this . fileComment = a . readData ( this . fileCommentLength ) } , processAttributes : function ( ) { this . dosPermissions = this . unixPermissions = null ; var a = this . versionMadeBy >> 8 ; this . dir = ! ! ( 16 & this . externalFileAttributes ) ; 0 === a && ( this . dosPermissions = 63 & this . externalFileAttributes ) ; 3 === a && ( this . unixPermissions = this . externalFileAttributes >> 16 & 65535 ) ;
2017-06-12 13:14:07 +00:00
this . dir || "/" !== this . fileNameStr . slice ( - 1 ) || ( this . dir = ! 0 ) } , parseZIP64ExtraField : function ( a ) { this . extraFields [ 1 ] && ( a = e ( this . extraFields [ 1 ] . value ) , this . uncompressedSize === c . MAX _VALUE _32BITS && ( this . uncompressedSize = a . readInt ( 8 ) ) , this . compressedSize === c . MAX _VALUE _32BITS && ( this . compressedSize = a . readInt ( 8 ) ) , this . localHeaderOffset === c . MAX _VALUE _32BITS && ( this . localHeaderOffset = a . readInt ( 8 ) ) , this . diskNumberStart === c . MAX _VALUE _32BITS && ( this . diskNumberStart = a . readInt ( 4 ) ) ) } , readExtraFields : function ( a ) { var b ,
2017-06-20 11:05:40 +00:00
c , d , e = a . index + this . extraFieldsLength ; for ( this . extraFields || ( this . extraFields = { } ) ; a . index < e ; ) b = a . readInt ( 2 ) , c = a . readInt ( 2 ) , d = a . readData ( c ) , this . extraFields [ b ] = { id : b , length : c , value : d } } , handleUTF8 : function ( ) { var a = q . uint8array ? "uint8array" : "array" ; if ( this . useUTF8 ( ) ) this . fileNameStr = h . utf8decode ( this . fileName ) , this . fileCommentStr = h . utf8decode ( this . fileComment ) ; else { var b = this . findExtraFieldUnicodePath ( ) ; null !== b ? this . fileNameStr = b : ( b = c . transformTo ( a , this . fileName ) , this . fileNameStr = this . loadOptions . decodeFileName ( b ) ) ;
2017-06-12 13:14:07 +00:00
b = this . findExtraFieldUnicodeComment ( ) ; null !== b ? this . fileCommentStr = b : ( a = c . transformTo ( a , this . fileComment ) , this . fileCommentStr = this . loadOptions . decodeFileName ( a ) ) } } , findExtraFieldUnicodePath : function ( ) { var a = this . extraFields [ 28789 ] ; if ( a ) { var b = e ( a . value ) ; return 1 !== b . readInt ( 1 ) ? null : l ( this . fileName ) !== b . readInt ( 4 ) ? null : h . utf8decode ( b . readData ( a . length - 5 ) ) } return null } , findExtraFieldUnicodeComment : function ( ) { var a = this . extraFields [ 25461 ] ; if ( a ) { var b = e ( a . value ) ; return 1 !== b . readInt ( 1 ) ? null : l ( this . fileComment ) !==
b . readInt ( 4 ) ? null : h . utf8decode ( b . readData ( a . length - 5 ) ) } return null } } ; f . exports = a } , { "./compressedObject" : 2 , "./compressions" : 3 , "./crc32" : 4 , "./reader/readerFor" : 22 , "./support" : 30 , "./utf8" : 31 , "./utils" : 32 } ] , 35 : [ function ( b , f , d ) { var a = b ( "./stream/StreamHelper" ) , e = b ( "./stream/DataWorker" ) , c = b ( "./utf8" ) , g = b ( "./compressedObject" ) , l = b ( "./stream/GenericWorker" ) ; b = function ( a , b , c ) { this . name = a ; this . dir = c . dir ; this . date = c . date ; this . comment = c . comment ; this . unixPermissions = c . unixPermissions ; this . dosPermissions = c . dosPermissions ;
2017-06-20 11:05:40 +00:00
this . _data = b ; this . _dataBinary = c . binary ; this . options = { compression : c . compression , compressionOptions : c . compressionOptions } } ; b . prototype = { internalStream : function ( b ) { b = b . toLowerCase ( ) ; var d = "string" === b || "text" === b ; "binarystring" !== b && "text" !== b || ( b = "string" ) ; var e = this . _decompressWorker ( ) , g = ! this . _dataBinary ; return g && ! d && ( e = e . pipe ( new c . Utf8EncodeWorker ) ) , ! g && d && ( e = e . pipe ( new c . Utf8DecodeWorker ) ) , new a ( e , b , "" ) } , async : function ( a , b ) { return this . internalStream ( a ) . accumulate ( b ) } , nodeStream : function ( a , b ) { return this . internalStream ( a ||
"nodebuffer" ) . toNodejsStream ( b ) } , _compressWorker : function ( a , b ) { if ( this . _data instanceof g && this . _data . compression . magic === a . magic ) return this . _data . getCompressedWorker ( ) ; var d = this . _decompressWorker ( ) ; return this . _dataBinary || ( d = d . pipe ( new c . Utf8EncodeWorker ) ) , g . createWorkerFrom ( d , a , b ) } , _decompressWorker : function ( ) { return this . _data instanceof g ? this . _data . getContentWorker ( ) : this . _data instanceof l ? this . _data : new e ( this . _data ) } } ; d = [ "asText" , "asBinary" , "asNodeBuffer" , "asUint8Array" , "asArrayBuffer" ] ;
2017-06-12 13:14:07 +00:00
for ( var h = function ( ) { throw Error ( "This method has been removed in JSZip 3.0, please check the upgrade guide." ) ; } , n = 0 ; n < d . length ; n ++ ) b . prototype [ d [ n ] ] = h ; f . exports = b } , { "./compressedObject" : 2 , "./stream/DataWorker" : 27 , "./stream/GenericWorker" : 28 , "./stream/StreamHelper" : 29 , "./utf8" : 31 } ] , 36 : [ function ( b , f , d ) { b ( "../modules/web.immediate" ) ; f . exports = b ( "../modules/_core" ) . setImmediate } , { "../modules/_core" : 40 , "../modules/web.immediate" : 56 } ] , 37 : [ function ( b , f , d ) { f . exports = function ( a ) { if ( "function" != typeof a ) throw TypeError ( a +
" is not a function!" ) ; return a } } , { } ] , 38 : [ function ( b , f , d ) { var a = b ( "./_is-object" ) ; f . exports = function ( b ) { if ( ! a ( b ) ) throw TypeError ( b + " is not an object!" ) ; return b } } , { "./_is-object" : 51 } ] , 39 : [ function ( b , f , d ) { var a = { } . toString ; f . exports = function ( b ) { return a . call ( b ) . slice ( 8 , - 1 ) } } , { } ] , 40 : [ function ( b , f , d ) { b = f . exports = { version : "2.3.0" } ; "number" == typeof _ _e && ( _ _e = b ) } , { } ] , 41 : [ function ( b , f , d ) { var a = b ( "./_a-function" ) ; f . exports = function ( b , c , d ) { if ( a ( b ) , void 0 === c ) return b ; switch ( d ) { case 1 : return function ( a ) { return b . call ( c ,
2017-06-20 11:05:40 +00:00
a ) } ; case 2 : return function ( a , d ) { return b . call ( c , a , d ) } ; case 3 : return function ( a , d , e ) { return b . call ( c , a , d , e ) } } return function ( ) { return b . apply ( c , arguments ) } } } , { "./_a-function" : 37 } ] , 42 : [ function ( b , f , d ) { f . exports = ! b ( "./_fails" ) ( function ( ) { return 7 != Object . defineProperty ( { } , "a" , { get : function ( ) { return 7 } } ) . a } ) } , { "./_fails" : 45 } ] , 43 : [ function ( b , f , d ) { d = b ( "./_is-object" ) ; var a = b ( "./_global" ) . document , e = d ( a ) && d ( a . createElement ) ; f . exports = function ( b ) { return e ? a . createElement ( b ) : { } } } , { "./_global" : 46 , "./_is-object" : 51 } ] ,
44 : [ function ( b , f , d ) { var a = b ( "./_global" ) , e = b ( "./_core" ) , c = b ( "./_ctx" ) , g = b ( "./_hide" ) , l = function ( b , d , f ) { var h , n , q = b & l . F , F = b & l . G , v = b & l . S , p = b & l . P , t = b & l . B , B = b & l . W , A = F ? e : e [ d ] || ( e [ d ] = { } ) , m = A . prototype , v = F ? a : v ? a [ d ] : ( a [ d ] || { } ) . prototype ; F && ( f = d ) ; for ( h in f ) ( d = ! q && v && void 0 !== v [ h ] ) && h in A || ( n = d ? v [ h ] : f [ h ] , A [ h ] = F && "function" != typeof v [ h ] ? f [ h ] : t && d ? c ( n , a ) : B && v [ h ] == n ? function ( a ) { var b = function ( b , c , d ) { if ( this instanceof a ) { switch ( arguments . length ) { case 0 : return new a ; case 1 : return new a ( b ) ; case 2 : return new a ( b ,
c ) } return new a ( b , c , d ) } return a . apply ( this , arguments ) } ; return b . prototype = a . prototype , b } ( n ) : p && "function" == typeof n ? c ( Function . call , n ) : n , p && ( ( A . virtual || ( A . virtual = { } ) ) [ h ] = n , b & l . R && m && ! m [ h ] && g ( m , h , n ) ) ) } ; l . F = 1 ; l . G = 2 ; l . S = 4 ; l . P = 8 ; l . B = 16 ; l . W = 32 ; l . U = 64 ; l . R = 128 ; f . exports = l } , { "./_core" : 40 , "./_ctx" : 41 , "./_global" : 46 , "./_hide" : 47 } ] , 45 : [ function ( b , f , d ) { f . exports = function ( a ) { try { return ! ! a ( ) } catch ( e ) { return ! 0 } } } , { } ] , 46 : [ function ( b , f , d ) { b = f . exports = "undefined" != typeof window && Math == Math ? window : "undefined" != typeof self &&
self . Math == Math ? self : Function ( "return this" ) ( ) ; "number" == typeof _ _g && ( _ _g = b ) } , { } ] , 47 : [ function ( b , f , d ) { var a = b ( "./_object-dp" ) , e = b ( "./_property-desc" ) ; f . exports = b ( "./_descriptors" ) ? function ( b , d , f ) { return a . f ( b , d , e ( 1 , f ) ) } : function ( a , b , d ) { return a [ b ] = d , a } } , { "./_descriptors" : 42 , "./_object-dp" : 52 , "./_property-desc" : 53 } ] , 48 : [ function ( b , f , d ) { f . exports = b ( "./_global" ) . document && document . documentElement } , { "./_global" : 46 } ] , 49 : [ function ( b , f , d ) { f . exports = ! b ( "./_descriptors" ) && ! b ( "./_fails" ) ( function ( ) { return 7 !=
2017-06-12 13:14:07 +00:00
Object . defineProperty ( b ( "./_dom-create" ) ( "div" ) , "a" , { get : function ( ) { return 7 } } ) . a } ) } , { "./_descriptors" : 42 , "./_dom-create" : 43 , "./_fails" : 45 } ] , 50 : [ function ( b , f , d ) { f . exports = function ( a , b , c ) { var d = void 0 === c ; switch ( b . length ) { case 0 : return d ? a ( ) : a . call ( c ) ; case 1 : return d ? a ( b [ 0 ] ) : a . call ( c , b [ 0 ] ) ; case 2 : return d ? a ( b [ 0 ] , b [ 1 ] ) : a . call ( c , b [ 0 ] , b [ 1 ] ) ; case 3 : return d ? a ( b [ 0 ] , b [ 1 ] , b [ 2 ] ) : a . call ( c , b [ 0 ] , b [ 1 ] , b [ 2 ] ) ; case 4 : return d ? a ( b [ 0 ] , b [ 1 ] , b [ 2 ] , b [ 3 ] ) : a . call ( c , b [ 0 ] , b [ 1 ] , b [ 2 ] , b [ 3 ] ) } return a . apply ( c , b ) } } , { } ] , 51 : [ function ( b ,
f , d ) { f . exports = function ( a ) { return "object" == typeof a ? null !== a : "function" == typeof a } } , { } ] , 52 : [ function ( b , f , d ) { var a = b ( "./_an-object" ) , e = b ( "./_ie8-dom-define" ) , c = b ( "./_to-primitive" ) , g = Object . defineProperty ; d . f = b ( "./_descriptors" ) ? Object . defineProperty : function ( b , d , f ) { if ( a ( b ) , d = c ( d , ! 0 ) , a ( f ) , e ) try { return g ( b , d , f ) } catch ( q ) { } if ( "get" in f || "set" in f ) throw TypeError ( "Accessors not supported!" ) ; return "value" in f && ( b [ d ] = f . value ) , b } } , { "./_an-object" : 38 , "./_descriptors" : 42 , "./_ie8-dom-define" : 49 , "./_to-primitive" : 55 } ] ,
2017-06-20 11:05:40 +00:00
53 : [ function ( b , f , d ) { f . exports = function ( a , b ) { return { enumerable : ! ( 1 & a ) , configurable : ! ( 2 & a ) , writable : ! ( 4 & a ) , value : b } } } , { } ] , 54 : [ function ( b , f , d ) { var a , e , c , g = b ( "./_ctx" ) , l = b ( "./_invoke" ) , h = b ( "./_html" ) , n = b ( "./_dom-create" ) , q = b ( "./_global" ) , x = q . process ; d = q . setImmediate ; var z = q . clearImmediate , E = q . MessageChannel , F = 0 , v = { } , p = function ( ) { var a = + this ; if ( v . hasOwnProperty ( a ) ) { var b = v [ a ] ; delete v [ a ] ; b ( ) } } , t = function ( a ) { p . call ( a . data ) } ; d && z || ( d = function ( b ) { for ( var c = [ ] , d = 1 ; arguments . length > d ; ) c . push ( arguments [ d ++ ] ) ;
return v [ ++ F ] = function ( ) { l ( "function" == typeof b ? b : Function ( b ) , c ) } , a ( F ) , F } , z = function ( a ) { delete v [ a ] } , "process" == b ( "./_cof" ) ( x ) ? a = function ( a ) { x . nextTick ( g ( p , a , 1 ) ) } : E ? ( e = new E , c = e . port2 , e . port1 . onmessage = t , a = g ( c . postMessage , c , 1 ) ) : q . addEventListener && "function" == typeof postMessage && ! q . importScripts ? ( a = function ( a ) { q . postMessage ( a + "" , "*" ) } , q . addEventListener ( "message" , t , ! 1 ) ) : a = "onreadystatechange" in n ( "script" ) ? function ( a ) { h . appendChild ( n ( "script" ) ) . onreadystatechange = function ( ) { h . removeChild ( this ) ; p . call ( a ) } } :
function ( a ) { setTimeout ( g ( p , a , 1 ) , 0 ) } ) ; f . exports = { set : d , clear : z } } , { "./_cof" : 39 , "./_ctx" : 41 , "./_dom-create" : 43 , "./_global" : 46 , "./_html" : 48 , "./_invoke" : 50 } ] , 55 : [ function ( b , f , d ) { var a = b ( "./_is-object" ) ; f . exports = function ( b , c ) { if ( ! a ( b ) ) return b ; var d , e ; if ( c && "function" == typeof ( d = b . toString ) && ! a ( e = d . call ( b ) ) || "function" == typeof ( d = b . valueOf ) && ! a ( e = d . call ( b ) ) || ! c && "function" == typeof ( d = b . toString ) && ! a ( e = d . call ( b ) ) ) return e ; throw TypeError ( "Can't convert object to primitive value" ) ; } } , { "./_is-object" : 51 } ] , 56 : [ function ( b ,
f , d ) { f = b ( "./_export" ) ; b = b ( "./_task" ) ; f ( f . G + f . B , { setImmediate : b . set , clearImmediate : b . clear } ) } , { "./_export" : 44 , "./_task" : 54 } ] , 57 : [ function ( b , f , d ) { ( function ( a ) { function b ( ) { q = ! 0 ; for ( var a , b , c = x . length ; c ; ) { b = x ; x = [ ] ; for ( a = - 1 ; ++ a < c ; ) b [ a ] ( ) ; c = x . length } q = ! 1 } var c , d = a . MutationObserver || a . WebKitMutationObserver ; if ( d ) { var l = 0 , d = new d ( b ) , h = a . document . createTextNode ( "" ) ; d . observe ( h , { characterData : ! 0 } ) ; c = function ( ) { h . data = l = ++ l % 2 } } else if ( a . setImmediate || "undefined" == typeof a . MessageChannel ) c = "document" in a && "onreadystatechange" in
a . document . createElement ( "script" ) ? function ( ) { var c = a . document . createElement ( "script" ) ; c . onreadystatechange = function ( ) { b ( ) ; c . onreadystatechange = null ; c . parentNode . removeChild ( c ) ; c = null } ; a . document . documentElement . appendChild ( c ) } : function ( ) { setTimeout ( b , 0 ) } ; else { var n = new a . MessageChannel ; n . port1 . onmessage = b ; c = function ( ) { n . port2 . postMessage ( 0 ) } } var q , x = [ ] ; f . exports = function ( a ) { 1 !== x . push ( a ) || q || c ( ) } } ) . call ( this , "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ?
window : { } ) } , { } ] , 58 : [ function ( b , f , d ) { function a ( ) { } function e ( b ) { if ( "function" != typeof b ) throw new TypeError ( "resolver must be a function" ) ; this . state = F ; this . queue = [ ] ; this . outcome = void 0 ; b !== a && h ( this , b ) } function c ( a , b , c ) { this . promise = a ; "function" == typeof b && ( this . onFulfilled = b , this . callFulfilled = this . otherCallFulfilled ) ; "function" == typeof c && ( this . onRejected = c , this . callRejected = this . otherCallRejected ) } function g ( a , b , c ) { q ( function ( ) { var d ; try { d = b ( c ) } catch ( A ) { return x . reject ( a , A ) } d === a ? x . reject ( a , new TypeError ( "Cannot resolve promise with itself" ) ) :
x . resolve ( a , d ) } ) } function l ( a ) { var b = a && a . then ; if ( a && "object" == typeof a && "function" == typeof b ) return function ( ) { b . apply ( a , arguments ) } } function h ( a , b ) { function c ( b ) { e || ( e = ! 0 , x . reject ( a , b ) ) } function d ( b ) { e || ( e = ! 0 , x . resolve ( a , b ) ) } var e = ! 1 , f = n ( function ( ) { b ( d , c ) } ) ; "error" === f . status && c ( f . value ) } function n ( a , b ) { var c = { } ; try { c . value = a ( b ) , c . status = "success" } catch ( B ) { c . status = "error" , c . value = B } return c } var q = b ( "immediate" ) , x = { } , z = [ "REJECTED" ] , E = [ "FULFILLED" ] , F = [ "PENDING" ] ; f . exports = e ; e . prototype [ "catch" ] =
function ( a ) { return this . then ( null , a ) } ; e . prototype . then = function ( b , d ) { if ( "function" != typeof b && this . state === E || "function" != typeof d && this . state === z ) return this ; var e = new this . constructor ( a ) ; this . state !== F ? g ( e , this . state === E ? b : d , this . outcome ) : this . queue . push ( new c ( e , b , d ) ) ; return e } ; c . prototype . callFulfilled = function ( a ) { x . resolve ( this . promise , a ) } ; c . prototype . otherCallFulfilled = function ( a ) { g ( this . promise , this . onFulfilled , a ) } ; c . prototype . callRejected = function ( a ) { x . reject ( this . promise , a ) } ; c . prototype . otherCallRejected =
function ( a ) { g ( this . promise , this . onRejected , a ) } ; x . resolve = function ( a , b ) { var c = n ( l , b ) ; if ( "error" === c . status ) return x . reject ( a , c . value ) ; if ( c = c . value ) h ( a , c ) ; else { a . state = E ; a . outcome = b ; for ( var c = - 1 , d = a . queue . length ; ++ c < d ; ) a . queue [ c ] . callFulfilled ( b ) } return a } ; x . reject = function ( a , b ) { a . state = z ; a . outcome = b ; for ( var c = - 1 , d = a . queue . length ; ++ c < d ; ) a . queue [ c ] . callRejected ( b ) ; return a } ; e . resolve = function ( b ) { return b instanceof this ? b : x . resolve ( new this ( a ) , b ) } ; e . reject = function ( b ) { var c = new this ( a ) ; return x . reject ( c ,
b ) } ; e . all = function ( b ) { function c ( a , b ) { d . resolve ( a ) . then ( function ( a ) { g [ b ] = a ; ++ h !== e || f || ( f = ! 0 , x . resolve ( r , g ) ) } , function ( a ) { f || ( f = ! 0 , x . reject ( r , a ) ) } ) } var d = this ; if ( "[object Array]" !== Object . prototype . toString . call ( b ) ) return this . reject ( new TypeError ( "must be an array" ) ) ; var e = b . length , f = ! 1 ; if ( ! e ) return this . resolve ( [ ] ) ; for ( var g = Array ( e ) , h = 0 , l = - 1 , r = new this ( a ) ; ++ l < e ; ) c ( b [ l ] , l ) ; return r } ; e . race = function ( b ) { function c ( a ) { d . resolve ( a ) . then ( function ( a ) { f || ( f = ! 0 , x . resolve ( h , a ) ) } , function ( a ) { f || ( f = ! 0 , x . reject ( h ,
a ) ) } ) } var d = this ; if ( "[object Array]" !== Object . prototype . toString . call ( b ) ) return this . reject ( new TypeError ( "must be an array" ) ) ; var e = b . length , f = ! 1 ; if ( ! e ) return this . resolve ( [ ] ) ; for ( var g = - 1 , h = new this ( a ) ; ++ g < e ; ) c ( b [ g ] ) ; return h } } , { immediate : 57 } ] , 59 : [ function ( b , f , d ) { d = b ( "./lib/utils/common" ) . assign ; var a = b ( "./lib/deflate" ) , e = b ( "./lib/inflate" ) ; b = b ( "./lib/zlib/constants" ) ; var c = { } ; d ( c , a , e , b ) ; f . exports = c } , { "./lib/deflate" : 60 , "./lib/inflate" : 61 , "./lib/utils/common" : 62 , "./lib/zlib/constants" : 65 } ] , 60 : [ function ( b ,
f , d ) { function a ( b ) { if ( ! ( this instanceof a ) ) return new a ( b ) ; b = this . options = g . assign ( { level : z , method : F , chunkSize : 16384 , windowBits : 15 , memLevel : 8 , strategy : E , to : "" } , b || { } ) ; b . raw && 0 < b . windowBits ? b . windowBits = - b . windowBits : b . gzip && 0 < b . windowBits && 16 > b . windowBits && ( b . windowBits += 16 ) ; this . err = 0 ; this . msg = "" ; this . ended = ! 1 ; this . chunks = [ ] ; this . strm = new n ; this . strm . avail _out = 0 ; var d = c . deflateInit2 ( this . strm , b . level , b . method , b . windowBits , b . memLevel , b . strategy ) ; if ( d !== x ) throw Error ( h [ d ] ) ; if ( b . header && c . deflateSetHeader ( this . strm ,
b . header ) , b . dictionary ) { var e ; if ( e = "string" == typeof b . dictionary ? l . string2buf ( b . dictionary ) : "[object ArrayBuffer]" === q . call ( b . dictionary ) ? new Uint8Array ( b . dictionary ) : b . dictionary , d = c . deflateSetDictionary ( this . strm , e ) , d !== x ) throw Error ( h [ d ] ) ; this . _dict _set = ! 0 } } function e ( b , c ) { var d = new a ( c ) ; if ( d . push ( b , ! 0 ) , d . err ) throw d . msg ; return d . result } var c = b ( "./zlib/deflate" ) , g = b ( "./utils/common" ) , l = b ( "./utils/strings" ) , h = b ( "./zlib/messages" ) , n = b ( "./zlib/zstream" ) , q = Object . prototype . toString , x = 0 , z = - 1 , E = 0 , F =
8 ; a . prototype . push = function ( a , b ) { var d , e , f = this . strm , h = this . options . chunkSize ; if ( this . ended ) return ! 1 ; e = b === ~ ~ b ? b : ! 0 === b ? 4 : 0 ; "string" == typeof a ? f . input = l . string2buf ( a ) : "[object ArrayBuffer]" === q . call ( a ) ? f . input = new Uint8Array ( a ) : f . input = a ; f . next _in = 0 ; f . avail _in = f . input . length ; do { if ( 0 === f . avail _out && ( f . output = new g . Buf8 ( h ) , f . next _out = 0 , f . avail _out = h ) , d = c . deflate ( f , e ) , 1 !== d && d !== x ) return this . onEnd ( d ) , this . ended = ! 0 , ! 1 ; 0 !== f . avail _out && ( 0 !== f . avail _in || 4 !== e && 2 !== e ) || ( "string" === this . options . to ? this . onData ( l . buf2binstring ( g . shrinkBuf ( f . output ,
f . next _out ) ) ) : this . onData ( g . shrinkBuf ( f . output , f . next _out ) ) ) } while ( ( 0 < f . avail _in || 0 === f . avail _out ) && 1 !== d ) ; return 4 === e ? ( d = c . deflateEnd ( this . strm ) , this . onEnd ( d ) , this . ended = ! 0 , d === x ) : 2 !== e || ( this . onEnd ( x ) , f . avail _out = 0 , ! 0 ) } ; a . prototype . onData = function ( a ) { this . chunks . push ( a ) } ; a . prototype . onEnd = function ( a ) { a === x && ( "string" === this . options . to ? this . result = this . chunks . join ( "" ) : this . result = g . flattenChunks ( this . chunks ) ) ; this . chunks = [ ] ; this . err = a ; this . msg = this . strm . msg } ; d . Deflate = a ; d . deflate = e ; d . deflateRaw =
2017-06-12 13:14:07 +00:00
function ( a , b ) { return b = b || { } , b . raw = ! 0 , e ( a , b ) } ; d . gzip = function ( a , b ) { return b = b || { } , b . gzip = ! 0 , e ( a , b ) } } , { "./utils/common" : 62 , "./utils/strings" : 63 , "./zlib/deflate" : 67 , "./zlib/messages" : 72 , "./zlib/zstream" : 74 } ] , 61 : [ function ( b , f , d ) { function a ( b ) { if ( ! ( this instanceof a ) ) return new a ( b ) ; var d = this . options = g . assign ( { chunkSize : 16384 , windowBits : 0 , to : "" } , b || { } ) ; d . raw && 0 <= d . windowBits && 16 > d . windowBits && ( d . windowBits = - d . windowBits , 0 === d . windowBits && ( d . windowBits = - 15 ) ) ; ! ( 0 <= d . windowBits && 16 > d . windowBits ) || b && b . windowBits ||
2017-06-20 11:05:40 +00:00
( d . windowBits += 32 ) ; 15 < d . windowBits && 48 > d . windowBits && 0 === ( 15 & d . windowBits ) && ( d . windowBits |= 15 ) ; this . err = 0 ; this . msg = "" ; this . ended = ! 1 ; this . chunks = [ ] ; this . strm = new q ; this . strm . avail _out = 0 ; b = c . inflateInit2 ( this . strm , d . windowBits ) ; if ( b !== h . Z _OK ) throw Error ( n [ b ] ) ; this . header = new x ; c . inflateGetHeader ( this . strm , this . header ) } function e ( b , c ) { var d = new a ( c ) ; if ( d . push ( b , ! 0 ) , d . err ) throw d . msg ; return d . result } var c = b ( "./zlib/inflate" ) , g = b ( "./utils/common" ) , l = b ( "./utils/strings" ) , h = b ( "./zlib/constants" ) , n = b ( "./zlib/messages" ) ,
q = b ( "./zlib/zstream" ) , x = b ( "./zlib/gzheader" ) , z = Object . prototype . toString ; a . prototype . push = function ( a , b ) { var d , e , f , n , A , m , q = this . strm , G = this . options . chunkSize , r = this . options . dictionary , H = ! 1 ; if ( this . ended ) return ! 1 ; e = b === ~ ~ b ? b : ! 0 === b ? h . Z _FINISH : h . Z _NO _FLUSH ; "string" == typeof a ? q . input = l . binstring2buf ( a ) : "[object ArrayBuffer]" === z . call ( a ) ? q . input = new Uint8Array ( a ) : q . input = a ; q . next _in = 0 ; q . avail _in = q . input . length ; do { if ( 0 === q . avail _out && ( q . output = new g . Buf8 ( G ) , q . next _out = 0 , q . avail _out = G ) , d = c . inflate ( q , h . Z _NO _FLUSH ) ,
d === h . Z _NEED _DICT && r && ( m = "string" == typeof r ? l . string2buf ( r ) : "[object ArrayBuffer]" === z . call ( r ) ? new Uint8Array ( r ) : r , d = c . inflateSetDictionary ( this . strm , m ) ) , d === h . Z _BUF _ERROR && ! 0 === H && ( d = h . Z _OK , H = ! 1 ) , d !== h . Z _STREAM _END && d !== h . Z _OK ) return this . onEnd ( d ) , this . ended = ! 0 , ! 1 ; q . next _out && ( 0 !== q . avail _out && d !== h . Z _STREAM _END && ( 0 !== q . avail _in || e !== h . Z _FINISH && e !== h . Z _SYNC _FLUSH ) || ( "string" === this . options . to ? ( f = l . utf8border ( q . output , q . next _out ) , n = q . next _out - f , A = l . buf2string ( q . output , f ) , q . next _out = n , q . avail _out =
G - n , n && g . arraySet ( q . output , q . output , f , n , 0 ) , this . onData ( A ) ) : this . onData ( g . shrinkBuf ( q . output , q . next _out ) ) ) ) ; 0 === q . avail _in && 0 === q . avail _out && ( H = ! 0 ) } while ( ( 0 < q . avail _in || 0 === q . avail _out ) && d !== h . Z _STREAM _END ) ; return d === h . Z _STREAM _END && ( e = h . Z _FINISH ) , e === h . Z _FINISH ? ( d = c . inflateEnd ( this . strm ) , this . onEnd ( d ) , this . ended = ! 0 , d === h . Z _OK ) : e !== h . Z _SYNC _FLUSH || ( this . onEnd ( h . Z _OK ) , q . avail _out = 0 , ! 0 ) } ; a . prototype . onData = function ( a ) { this . chunks . push ( a ) } ; a . prototype . onEnd = function ( a ) { a === h . Z _OK && ( "string" === this . options . to ?
2017-06-12 13:14:07 +00:00
this . result = this . chunks . join ( "" ) : this . result = g . flattenChunks ( this . chunks ) ) ; this . chunks = [ ] ; this . err = a ; this . msg = this . strm . msg } ; d . Inflate = a ; d . inflate = e ; d . inflateRaw = function ( a , b ) { return b = b || { } , b . raw = ! 0 , e ( a , b ) } ; d . ungzip = e } , { "./utils/common" : 62 , "./utils/strings" : 63 , "./zlib/constants" : 65 , "./zlib/gzheader" : 68 , "./zlib/inflate" : 70 , "./zlib/messages" : 72 , "./zlib/zstream" : 74 } ] , 62 : [ function ( b , f , d ) { b = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array ; d . assign = function ( a ) { for ( var b =
Array . prototype . slice . call ( arguments , 1 ) ; b . length ; ) { var d = b . shift ( ) ; if ( d ) { if ( "object" != typeof d ) throw new TypeError ( d + "must be non-object" ) ; for ( var c in d ) d . hasOwnProperty ( c ) && ( a [ c ] = d [ c ] ) } } return a } ; d . shrinkBuf = function ( a , b ) { return a . length === b ? a : a . subarray ? a . subarray ( 0 , b ) : ( a . length = b , a ) } ; var a = { arraySet : function ( a , b , d , e , f ) { if ( b . subarray && a . subarray ) return void a . set ( b . subarray ( d , d + e ) , f ) ; for ( var c = 0 ; c < e ; c ++ ) a [ f + c ] = b [ d + c ] } , flattenChunks : function ( a ) { var b , d , c , e , f ; b = c = 0 ; for ( d = a . length ; b < d ; b ++ ) c += a [ b ] . length ;
f = new Uint8Array ( c ) ; b = c = 0 ; for ( d = a . length ; b < d ; b ++ ) e = a [ b ] , f . set ( e , c ) , c += e . length ; return f } } , e = { arraySet : function ( a , b , d , e , f ) { for ( var c = 0 ; c < e ; c ++ ) a [ f + c ] = b [ d + c ] } , flattenChunks : function ( a ) { return [ ] . concat . apply ( [ ] , a ) } } ; d . setTyped = function ( b ) { b ? ( d . Buf8 = Uint8Array , d . Buf16 = Uint16Array , d . Buf32 = Int32Array , d . assign ( d , a ) ) : ( d . Buf8 = Array , d . Buf16 = Array , d . Buf32 = Array , d . assign ( d , e ) ) } ; d . setTyped ( b ) } , { } ] , 63 : [ function ( b , f , d ) { function a ( a , b ) { if ( 65537 > b && ( a . subarray && g || ! a . subarray && c ) ) return String . fromCharCode . apply ( null ,
2017-06-20 11:05:40 +00:00
e . shrinkBuf ( a , b ) ) ; for ( var d = "" , f = 0 ; f < b ; f ++ ) d += String . fromCharCode ( a [ f ] ) ; return d } var e = b ( "./common" ) , c = ! 0 , g = ! 0 ; try { String . fromCharCode . apply ( null , [ 0 ] ) } catch ( h ) { c = ! 1 } try { String . fromCharCode . apply ( null , new Uint8Array ( 1 ) ) } catch ( h ) { g = ! 1 } var l = new e . Buf8 ( 256 ) ; for ( b = 0 ; 256 > b ; b ++ ) l [ b ] = 252 <= b ? 6 : 248 <= b ? 5 : 240 <= b ? 4 : 224 <= b ? 3 : 192 <= b ? 2 : 1 ; l [ 254 ] = l [ 254 ] = 1 ; d . string2buf = function ( a ) { var b , d , c , f , g , h = a . length , l = 0 ; for ( f = 0 ; f < h ; f ++ ) d = a . charCodeAt ( f ) , 55296 === ( 64512 & d ) && f + 1 < h && ( c = a . charCodeAt ( f + 1 ) , 56320 === ( 64512 & c ) && ( d = 65536 +
( d - 55296 << 10 ) + ( c - 56320 ) , f ++ ) ) , l += 128 > d ? 1 : 2048 > d ? 2 : 65536 > d ? 3 : 4 ; b = new e . Buf8 ( l ) ; for ( f = g = 0 ; g < l ; f ++ ) d = a . charCodeAt ( f ) , 55296 === ( 64512 & d ) && f + 1 < h && ( c = a . charCodeAt ( f + 1 ) , 56320 === ( 64512 & c ) && ( d = 65536 + ( d - 55296 << 10 ) + ( c - 56320 ) , f ++ ) ) , 128 > d ? b [ g ++ ] = d : 2048 > d ? ( b [ g ++ ] = 192 | d >>> 6 , b [ g ++ ] = 128 | 63 & d ) : 65536 > d ? ( b [ g ++ ] = 224 | d >>> 12 , b [ g ++ ] = 128 | d >>> 6 & 63 , b [ g ++ ] = 128 | 63 & d ) : ( b [ g ++ ] = 240 | d >>> 18 , b [ g ++ ] = 128 | d >>> 12 & 63 , b [ g ++ ] = 128 | d >>> 6 & 63 , b [ g ++ ] = 128 | 63 & d ) ; return b } ; d . buf2binstring = function ( b ) { return a ( b , b . length ) } ; d . binstring2buf = function ( a ) { for ( var b =
2017-06-12 13:14:07 +00:00
new e . Buf8 ( a . length ) , d = 0 , c = b . length ; d < c ; d ++ ) b [ d ] = a . charCodeAt ( d ) ; return b } ; d . buf2string = function ( b , d ) { var c , e , f , g , h = d || b . length , n = Array ( 2 * h ) ; for ( c = e = 0 ; c < h ; ) if ( f = b [ c ++ ] , 128 > f ) n [ e ++ ] = f ; else if ( g = l [ f ] , 4 < g ) n [ e ++ ] = 65533 , c += g - 1 ; else { for ( f &= 2 === g ? 31 : 3 === g ? 15 : 7 ; 1 < g && c < h ; ) f = f << 6 | 63 & b [ c ++ ] , g -- ; 1 < g ? n [ e ++ ] = 65533 : 65536 > f ? n [ e ++ ] = f : ( f -= 65536 , n [ e ++ ] = 55296 | f >> 10 & 1023 , n [ e ++ ] = 56320 | 1023 & f ) } return a ( n , e ) } ; d . utf8border = function ( a , b ) { var d ; b = b || a . length ; b > a . length && ( b = a . length ) ; for ( d = b - 1 ; 0 <= d && 128 === ( 192 & a [ d ] ) ; ) d -- ; return 0 >
d ? b : 0 === d ? b : d + l [ a [ d ] ] > b ? d : b } } , { "./common" : 62 } ] , 64 : [ function ( b , f , d ) { f . exports = function ( a , b , d , f ) { var c = 65535 & a | 0 ; a = a >>> 16 & 65535 | 0 ; for ( var e ; 0 !== d ; ) { e = 2E3 < d ? 2E3 : d ; d -= e ; do c = c + b [ f ++ ] | 0 , a = a + c | 0 ; while ( -- e ) ; c %= 65521 ; a %= 65521 } return c | a << 16 | 0 } } , { } ] , 65 : [ function ( b , f , d ) { f . exports = { Z _NO _FLUSH : 0 , Z _PARTIAL _FLUSH : 1 , Z _SYNC _FLUSH : 2 , Z _FULL _FLUSH : 3 , Z _FINISH : 4 , Z _BLOCK : 5 , Z _TREES : 6 , Z _OK : 0 , Z _STREAM _END : 1 , Z _NEED _DICT : 2 , Z _ERRNO : - 1 , Z _STREAM _ERROR : - 2 , Z _DATA _ERROR : - 3 , Z _BUF _ERROR : - 5 , Z _NO _COMPRESSION : 0 , Z _BEST _SPEED : 1 , Z _BEST _COMPRESSION : 9 ,
2017-06-20 11:05:40 +00:00
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 } } , { } ] , 66 : [ function ( b , f , d ) { var a = function ( ) { for ( var a , b = [ ] , d = 0 ; 256 > d ; d ++ ) { a = d ; for ( var f = 0 ; 8 > f ; f ++ ) a = 1 & a ? 3988292384 ^ a >>> 1 : a >>> 1 ; b [ d ] = a } return b } ( ) ; f . exports = function ( b , d , f , l ) { f = l + f ; for ( b ^= - 1 ; l < f ; l ++ ) b = b >>> 8 ^ a [ 255 & ( b ^ d [ l ] ) ] ; return b ^ - 1 } } , { } ] , 67 : [ function ( b , f , d ) { function a ( a , b ) { return a . msg = r [ b ] , b } function e ( a ) { for ( var b = a . length ; 0 <= -- b ; ) a [ b ] = 0 } function c ( a ) { var b =
a . state , d = b . pending ; d > a . avail _out && ( d = a . avail _out ) ; 0 !== d && ( A . arraySet ( a . output , b . pending _buf , b . pending _out , d , a . next _out ) , a . next _out += d , b . pending _out += d , a . total _out += d , a . avail _out -= d , b . pending -= d , 0 === b . pending && ( b . pending _out = 0 ) ) } function g ( a , b ) { m . _tr _flush _block ( a , 0 <= a . block _start ? a . block _start : - 1 , a . strstart - a . block _start , b ) ; a . block _start = a . strstart ; c ( a . strm ) } function l ( a , b ) { a . pending _buf [ a . pending ++ ] = b } function h ( a , b ) { a . pending _buf [ a . pending ++ ] = b >>> 8 & 255 ; a . pending _buf [ a . pending ++ ] = 255 & b } function n ( a ,
b ) { var d , c , y = a . max _chain _length , L = a . strstart , e = a . prev _length , f = a . nice _match , r = a . strstart > a . w _size - Q ? a . strstart - ( a . w _size - Q ) : 0 , g = a . window , t = a . w _mask , l = a . prev , h = a . strstart + J , B = g [ L + e - 1 ] , H = g [ L + e ] ; a . prev _length >= a . good _match && ( y >>= 2 ) ; f > a . lookahead && ( f = a . lookahead ) ; do if ( d = b , g [ d + e ] === H && g [ d + e - 1 ] === B && g [ d ] === g [ L ] && g [ ++ d ] === g [ L + 1 ] ) { L += 2 ; for ( d ++ ; g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && g [ ++ L ] === g [ ++ d ] && L < h ; ) ; if ( c = J - ( h - L ) , L = h - J , c >
e ) { if ( a . match _start = b , e = c , c >= f ) break ; B = g [ L + e - 1 ] ; H = g [ L + e ] } } while ( ( b = l [ b & t ] ) > r && 0 !== -- y ) ; return e <= a . lookahead ? e : a . lookahead } function q ( a ) { var b , d , c , y , e = a . w _size ; do { if ( y = a . window _size - a . lookahead - a . strstart , a . strstart >= e + ( e - Q ) ) { A . arraySet ( a . window , a . window , e , e , 0 ) ; a . match _start -= e ; a . strstart -= e ; a . block _start -= e ; b = d = a . hash _size ; do c = a . head [ -- b ] , a . head [ b ] = c >= e ? c - e : 0 ; while ( -- d ) ; b = d = e ; do c = a . prev [ -- b ] , a . prev [ b ] = c >= e ? c - e : 0 ; while ( -- d ) ; y += e } if ( 0 === a . strm . avail _in ) break ; b = a . strm ; c = a . window ; var L = a . strstart +
a . lookahead , f = b . avail _in ; if ( d = ( f > y && ( f = y ) , 0 === f ? 0 : ( b . avail _in -= f , A . arraySet ( c , b . input , b . next _in , f , L ) , 1 === b . state . wrap ? b . adler = P ( b . adler , c , f , L ) : 2 === b . state . wrap && ( b . adler = G ( b . adler , c , f , L ) ) , b . next _in += f , b . total _in += f , f ) ) , a . lookahead += d , a . lookahead + a . insert >= C ) for ( y = a . strstart - a . insert , a . ins _h = a . window [ y ] , a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ y + 1 ] ) & a . hash _mask ; a . insert && ( a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ y + C - 1 ] ) & a . hash _mask , a . prev [ y & a . w _mask ] = a . head [ a . ins _h ] , a . head [ a . ins _h ] = y , y ++ , a . insert -- ,
! ( a . lookahead + a . insert < C ) ) ; ) ; } while ( a . lookahead < Q && 0 !== a . strm . avail _in ) } function x ( a , b ) { for ( var d , c ; ; ) { if ( a . lookahead < Q ) { if ( q ( a ) , a . lookahead < Q && b === H ) return M ; if ( 0 === a . lookahead ) break } if ( d = 0 , a . lookahead >= C && ( a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ a . strstart + C - 1 ] ) & a . hash _mask , d = a . prev [ a . strstart & a . w _mask ] = a . head [ a . ins _h ] , a . head [ a . ins _h ] = a . strstart ) , 0 !== d && a . strstart - d <= a . w _size - Q && ( a . match _length = n ( a , d ) ) , a . match _length >= C ) if ( c = m . _tr _tally ( a , a . strstart - a . match _start , a . match _length - C ) , a . lookahead -=
2017-06-12 13:14:07 +00:00
a . match _length , a . match _length <= a . max _lazy _match && a . lookahead >= C ) { a . match _length -- ; do a . strstart ++ , a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ a . strstart + C - 1 ] ) & a . hash _mask , d = a . prev [ a . strstart & a . w _mask ] = a . head [ a . ins _h ] , a . head [ a . ins _h ] = a . strstart ; while ( 0 !== -- a . match _length ) ; a . strstart ++ } else a . strstart += a . match _length , a . match _length = 0 , a . ins _h = a . window [ a . strstart ] , a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ a . strstart + 1 ] ) & a . hash _mask ; else c = m . _tr _tally ( a , 0 , a . window [ a . strstart ] ) , a . lookahead -- , a . strstart ++ ; if ( c &&
2017-06-20 11:05:40 +00:00
( g ( a , ! 1 ) , 0 === a . strm . avail _out ) ) return M } return a . insert = a . strstart < C - 1 ? a . strstart : C - 1 , b === y ? ( g ( a , ! 0 ) , 0 === a . strm . avail _out ? W : R ) : a . last _lit && ( g ( a , ! 1 ) , 0 === a . strm . avail _out ) ? M : U } function z ( a , b ) { for ( var d , c , e ; ; ) { if ( a . lookahead < Q ) { if ( q ( a ) , a . lookahead < Q && b === H ) return M ; if ( 0 === a . lookahead ) break } if ( d = 0 , a . lookahead >= C && ( a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ a . strstart + C - 1 ] ) & a . hash _mask , d = a . prev [ a . strstart & a . w _mask ] = a . head [ a . ins _h ] , a . head [ a . ins _h ] = a . strstart ) , a . prev _length = a . match _length , a . prev _match = a . match _start ,
2017-06-12 13:14:07 +00:00
a . match _length = C - 1 , 0 !== d && a . prev _length < a . max _lazy _match && a . strstart - d <= a . w _size - Q && ( a . match _length = n ( a , d ) , 5 >= a . match _length && ( a . strategy === X || a . match _length === C && 4096 < a . strstart - a . match _start ) && ( a . match _length = C - 1 ) ) , a . prev _length >= C && a . match _length <= a . prev _length ) { e = a . strstart + a . lookahead - C ; c = m . _tr _tally ( a , a . strstart - 1 - a . prev _match , a . prev _length - C ) ; a . lookahead -= a . prev _length - 1 ; a . prev _length -= 2 ; do ++ a . strstart <= e && ( a . ins _h = ( a . ins _h << a . hash _shift ^ a . window [ a . strstart + C - 1 ] ) & a . hash _mask , d = a . prev [ a . strstart &
a . w _mask ] = a . head [ a . ins _h ] , a . head [ a . ins _h ] = a . strstart ) ; while ( 0 !== -- a . prev _length ) ; if ( a . match _available = 0 , a . match _length = C - 1 , a . strstart ++ , c && ( g ( a , ! 1 ) , 0 === a . strm . avail _out ) ) return M } else if ( a . match _available ) { if ( c = m . _tr _tally ( a , 0 , a . window [ a . strstart - 1 ] ) , c && g ( a , ! 1 ) , a . strstart ++ , a . lookahead -- , 0 === a . strm . avail _out ) return M } else a . match _available = 1 , a . strstart ++ , a . lookahead -- } return a . match _available && ( m . _tr _tally ( a , 0 , a . window [ a . strstart - 1 ] ) , a . match _available = 0 ) , a . insert = a . strstart < C - 1 ? a . strstart : C - 1 , b ===
2017-06-20 11:05:40 +00:00
y ? ( g ( a , ! 0 ) , 0 === a . strm . avail _out ? W : R ) : a . last _lit && ( g ( a , ! 1 ) , 0 === a . strm . avail _out ) ? M : U } function E ( a , b , d , c , y ) { this . good _length = a ; this . max _lazy = b ; this . nice _length = d ; this . max _chain = c ; this . func = y } function F ( ) { this . strm = null ; this . status = 0 ; this . pending _buf = null ; this . wrap = this . pending = this . pending _out = this . pending _buf _size = 0 ; this . gzhead = null ; this . gzindex = 0 ; this . method = V ; this . last _flush = - 1 ; this . w _mask = this . w _bits = this . w _size = 0 ; this . window = null ; this . window _size = 0 ; this . head = this . prev = null ; this . nice _match = this . good _match =
this . strategy = this . level = this . max _lazy _match = this . max _chain _length = this . prev _length = this . lookahead = this . match _start = this . strstart = this . match _available = this . prev _match = this . match _length = this . block _start = this . hash _shift = this . hash _mask = this . hash _bits = this . hash _size = this . ins _h = 0 ; this . dyn _ltree = new A . Buf16 ( 2 * ba ) ; this . dyn _dtree = new A . Buf16 ( 2 * ( 2 * ca + 1 ) ) ; this . bl _tree = new A . Buf16 ( 2 * ( 2 * D + 1 ) ) ; e ( this . dyn _ltree ) ; e ( this . dyn _dtree ) ; e ( this . bl _tree ) ; this . bl _desc = this . d _desc = this . l _desc = null ; this . bl _count = new A . Buf16 ( K +
1 ) ; this . heap = new A . Buf16 ( 2 * da + 1 ) ; e ( this . heap ) ; this . heap _max = this . heap _len = 0 ; this . depth = new A . Buf16 ( 2 * da + 1 ) ; e ( this . depth ) ; this . bi _valid = this . bi _buf = this . insert = this . matches = this . static _len = this . opt _len = this . d _buf = this . last _lit = this . lit _bufsize = this . l _buf = 0 } function v ( b ) { var d ; return b && b . state ? ( b . total _in = b . total _out = 0 , b . data _type = aa , d = b . state , d . pending = 0 , d . pending _out = 0 , 0 > d . wrap && ( d . wrap = - d . wrap ) , d . status = d . wrap ? Z : Y , b . adler = 2 === d . wrap ? 0 : 1 , d . last _flush = H , m . _tr _init ( d ) , S ) : a ( b , N ) } function p ( a ) { var b =
v ( a ) ; b === S && ( a = a . state , a . window _size = 2 * a . w _size , e ( a . head ) , a . max _lazy _match = B [ a . level ] . max _lazy , a . good _match = B [ a . level ] . good _length , a . nice _match = B [ a . level ] . nice _length , a . max _chain _length = B [ a . level ] . max _chain , a . strstart = 0 , a . block _start = 0 , a . lookahead = 0 , a . insert = 0 , a . match _length = a . prev _length = C - 1 , a . match _available = 0 , a . ins _h = 0 ) ; return b } function t ( b , d , c , y , e , f ) { if ( ! b ) return N ; var k = 1 ; if ( d === I && ( d = 6 ) , 0 > y ? ( k = 0 , y = - y ) : 15 < y && ( k = 2 , y -= 16 ) , 1 > e || e > u || c !== V || 8 > y || 15 < y || 0 > d || 9 < d || 0 > f || f > T ) return a ( b , N ) ; 8 === y && ( y =
9 ) ; var O = new F ; return b . state = O , O . strm = b , O . wrap = k , O . gzhead = null , O . w _bits = y , O . w _size = 1 << O . w _bits , O . w _mask = O . w _size - 1 , O . hash _bits = e + 7 , O . hash _size = 1 << O . hash _bits , O . hash _mask = O . hash _size - 1 , O . hash _shift = ~ ~ ( ( O . hash _bits + C - 1 ) / C ) , O . window = new A . Buf8 ( 2 * O . w _size ) , O . head = new A . Buf16 ( O . hash _size ) , O . prev = new A . Buf16 ( O . w _size ) , O . lit _bufsize = 1 << e + 6 , O . pending _buf _size = 4 * O . lit _bufsize , O . pending _buf = new A . Buf8 ( O . pending _buf _size ) , O . d _buf = 1 * O . lit _bufsize , O . l _buf = 3 * O . lit _bufsize , O . level = d , O . strategy = f , O . method = c , p ( b ) }
var B , A = b ( "../utils/common" ) , m = b ( "./trees" ) , P = b ( "./adler32" ) , G = b ( "./crc32" ) , r = b ( "./messages" ) , H = 0 , y = 4 , S = 0 , N = - 2 , I = - 1 , X = 1 , T = 4 , aa = 2 , V = 8 , u = 9 , da = 286 , ca = 30 , D = 19 , ba = 2 * da + 1 , K = 15 , C = 3 , J = 258 , Q = J + C + 1 , Z = 42 , Y = 113 , M = 1 , U = 2 , W = 3 , R = 4 ; B = [ new E ( 0 , 0 , 0 , 0 , function ( a , b ) { var d = 65535 ; for ( d > a . pending _buf _size - 5 && ( d = a . pending _buf _size - 5 ) ; ; ) { if ( 1 >= a . lookahead ) { if ( q ( a ) , 0 === a . lookahead && b === H ) return M ; if ( 0 === a . lookahead ) break } a . strstart += a . lookahead ; a . lookahead = 0 ; var c = a . block _start + d ; if ( ( 0 === a . strstart || a . strstart >= c ) && ( a . lookahead =
a . strstart - c , a . strstart = c , g ( a , ! 1 ) , 0 === a . strm . avail _out ) || a . strstart - a . block _start >= a . w _size - Q && ( g ( a , ! 1 ) , 0 === a . strm . avail _out ) ) return M } return a . insert = 0 , b === y ? ( g ( a , ! 0 ) , 0 === a . strm . avail _out ? W : R ) : ( a . strstart > a . block _start && g ( a , ! 1 ) , M ) } ) , new E ( 4 , 4 , 8 , 4 , x ) , new E ( 4 , 5 , 16 , 8 , x ) , new E ( 4 , 6 , 32 , 32 , x ) , new E ( 4 , 4 , 16 , 16 , z ) , new E ( 8 , 16 , 32 , 32 , z ) , new E ( 8 , 16 , 128 , 128 , z ) , new E ( 8 , 32 , 128 , 256 , z ) , new E ( 32 , 128 , 258 , 1024 , z ) , new E ( 32 , 258 , 258 , 4096 , z ) ] ; d . deflateInit = function ( a , b ) { return t ( a , b , V , 15 , 8 , 0 ) } ; d . deflateInit2 = t ; d . deflateReset =
p ; d . deflateResetKeep = v ; d . deflateSetHeader = function ( a , b ) { return a && a . state ? 2 !== a . state . wrap ? N : ( a . state . gzhead = b , S ) : N } ; d . deflate = function ( b , d ) { var f , k , r , t ; if ( ! b || ! b . state || 5 < d || 0 > d ) return b ? a ( b , N ) : N ; if ( k = b . state , ! b . output || ! b . input && 0 !== b . avail _in || 666 === k . status && d !== y ) return a ( b , 0 === b . avail _out ? - 5 : N ) ; if ( k . strm = b , f = k . last _flush , k . last _flush = d , k . status === Z ) 2 === k . wrap ? ( b . adler = 0 , l ( k , 31 ) , l ( k , 139 ) , l ( k , 8 ) , k . gzhead ? ( l ( k , ( k . gzhead . text ? 1 : 0 ) + ( k . gzhead . hcrc ? 2 : 0 ) + ( k . gzhead . extra ? 4 : 0 ) + ( k . gzhead . name ? 8 : 0 ) + ( k . gzhead . comment ?
16 : 0 ) ) , l ( k , 255 & k . gzhead . time ) , l ( k , k . gzhead . time >> 8 & 255 ) , l ( k , k . gzhead . time >> 16 & 255 ) , l ( k , k . gzhead . time >> 24 & 255 ) , l ( k , 9 === k . level ? 2 : 2 <= k . strategy || 2 > k . level ? 4 : 0 ) , l ( k , 255 & k . gzhead . os ) , k . gzhead . extra && k . gzhead . extra . length && ( l ( k , 255 & k . gzhead . extra . length ) , l ( k , k . gzhead . extra . length >> 8 & 255 ) ) , k . gzhead . hcrc && ( b . adler = G ( b . adler , k . pending _buf , k . pending , 0 ) ) , k . gzindex = 0 , k . status = 69 ) : ( l ( k , 0 ) , l ( k , 0 ) , l ( k , 0 ) , l ( k , 0 ) , l ( k , 0 ) , l ( k , 9 === k . level ? 2 : 2 <= k . strategy || 2 > k . level ? 4 : 0 ) , l ( k , 3 ) , k . status = Y ) ) : ( r = V + ( k . w _bits - 8 << 4 ) << 8 , r |=
( 2 <= k . strategy || 2 > k . level ? 0 : 6 > k . level ? 1 : 6 === k . level ? 2 : 3 ) << 6 , 0 !== k . strstart && ( r |= 32 ) , k . status = Y , h ( k , r + ( 31 - r % 31 ) ) , 0 !== k . strstart && ( h ( k , b . adler >>> 16 ) , h ( k , 65535 & b . adler ) ) , b . adler = 1 ) ; if ( 69 === k . status ) if ( k . gzhead . extra ) { for ( r = k . pending ; k . gzindex < ( 65535 & k . gzhead . extra . length ) && ( k . pending !== k . pending _buf _size || ( k . gzhead . hcrc && k . pending > r && ( b . adler = G ( b . adler , k . pending _buf , k . pending - r , r ) ) , c ( b ) , r = k . pending , k . pending !== k . pending _buf _size ) ) ; ) l ( k , 255 & k . gzhead . extra [ k . gzindex ] ) , k . gzindex ++ ; k . gzhead . hcrc && k . pending >
r && ( b . adler = G ( b . adler , k . pending _buf , k . pending - r , r ) ) ; k . gzindex === k . gzhead . extra . length && ( k . gzindex = 0 , k . status = 73 ) } else k . status = 73 ; if ( 73 === k . status ) if ( k . gzhead . name ) { r = k . pending ; do { if ( k . pending === k . pending _buf _size && ( k . gzhead . hcrc && k . pending > r && ( b . adler = G ( b . adler , k . pending _buf , k . pending - r , r ) ) , c ( b ) , r = k . pending , k . pending === k . pending _buf _size ) ) { t = 1 ; break } t = k . gzindex < k . gzhead . name . length ? 255 & k . gzhead . name . charCodeAt ( k . gzindex ++ ) : 0 ; l ( k , t ) } while ( 0 !== t ) ; k . gzhead . hcrc && k . pending > r && ( b . adler = G ( b . adler , k . pending _buf ,
k . pending - r , r ) ) ; 0 === t && ( k . gzindex = 0 , k . status = 91 ) } else k . status = 91 ; if ( 91 === k . status ) if ( k . gzhead . comment ) { r = k . pending ; do { if ( k . pending === k . pending _buf _size && ( k . gzhead . hcrc && k . pending > r && ( b . adler = G ( b . adler , k . pending _buf , k . pending - r , r ) ) , c ( b ) , r = k . pending , k . pending === k . pending _buf _size ) ) { t = 1 ; break } t = k . gzindex < k . gzhead . comment . length ? 255 & k . gzhead . comment . charCodeAt ( k . gzindex ++ ) : 0 ; l ( k , t ) } while ( 0 !== t ) ; k . gzhead . hcrc && k . pending > r && ( b . adler = G ( b . adler , k . pending _buf , k . pending - r , r ) ) ; 0 === t && ( k . status = 103 ) } else k . status =
103 ; if ( 103 === k . status && ( k . gzhead . hcrc ? ( k . pending + 2 > k . pending _buf _size && c ( b ) , k . pending + 2 <= k . pending _buf _size && ( l ( k , 255 & b . adler ) , l ( k , b . adler >> 8 & 255 ) , b . adler = 0 , k . status = Y ) ) : k . status = Y ) , 0 !== k . pending ) { if ( c ( b ) , 0 === b . avail _out ) return k . last _flush = - 1 , S } else if ( 0 === b . avail _in && ( d << 1 ) - ( 4 < d ? 9 : 0 ) <= ( f << 1 ) - ( 4 < f ? 9 : 0 ) && d !== y ) return a ( b , - 5 ) ; if ( 666 === k . status && 0 !== b . avail _in ) return a ( b , - 5 ) ; if ( 0 !== b . avail _in || 0 !== k . lookahead || d !== H && 666 !== k . status ) { var p ; if ( 2 === k . strategy ) a : { for ( var A ; ; ) { if ( 0 === k . lookahead && ( q ( k ) ,
0 === k . lookahead ) ) { if ( d === H ) { p = M ; break a } break } if ( k . match _length = 0 , A = m . _tr _tally ( k , 0 , k . window [ k . strstart ] ) , k . lookahead -- , k . strstart ++ , A && ( g ( k , ! 1 ) , 0 === k . strm . avail _out ) ) { p = M ; break a } } p = ( k . insert = 0 , d === y ? ( g ( k , ! 0 ) , 0 === k . strm . avail _out ? W : R ) : k . last _lit && ( g ( k , ! 1 ) , 0 === k . strm . avail _out ) ? M : U ) } else if ( 3 === k . strategy ) a : { var n , u ; for ( A = k . window ; ; ) { if ( k . lookahead <= J ) { if ( q ( k ) , k . lookahead <= J && d === H ) { p = M ; break a } if ( 0 === k . lookahead ) break } if ( k . match _length = 0 , k . lookahead >= C && 0 < k . strstart && ( u = k . strstart - 1 , n = A [ u ] , n === A [ ++ u ] &&
n === A [ ++ u ] && n === A [ ++ u ] ) ) { for ( f = k . strstart + J ; n === A [ ++ u ] && n === A [ ++ u ] && n === A [ ++ u ] && n === A [ ++ u ] && n === A [ ++ u ] && n === A [ ++ u ] && n === A [ ++ u ] && n === A [ ++ u ] && u < f ; ) ; k . match _length = J - ( f - u ) ; k . match _length > k . lookahead && ( k . match _length = k . lookahead ) } if ( k . match _length >= C ? ( p = m . _tr _tally ( k , 1 , k . match _length - C ) , k . lookahead -= k . match _length , k . strstart += k . match _length , k . match _length = 0 ) : ( p = m . _tr _tally ( k , 0 , k . window [ k . strstart ] ) , k . lookahead -- , k . strstart ++ ) , p && ( g ( k , ! 1 ) , 0 === k . strm . avail _out ) ) { p = M ; break a } } p = ( k . insert = 0 , d === y ? ( g ( k , ! 0 ) ,
0 === k . strm . avail _out ? W : R ) : k . last _lit && ( g ( k , ! 1 ) , 0 === k . strm . avail _out ) ? M : U ) } else p = B [ k . level ] . func ( k , d ) ; if ( p !== W && p !== R || ( k . status = 666 ) , p === M || p === W ) return 0 === b . avail _out && ( k . last _flush = - 1 ) , S ; if ( p === U && ( 1 === d ? m . _tr _align ( k ) : 5 !== d && ( m . _tr _stored _block ( k , 0 , 0 , ! 1 ) , 3 === d && ( e ( k . head ) , 0 === k . lookahead && ( k . strstart = 0 , k . block _start = 0 , k . insert = 0 ) ) ) , c ( b ) , 0 === b . avail _out ) ) return k . last _flush = - 1 , S } return d !== y ? S : 0 >= k . wrap ? 1 : ( 2 === k . wrap ? ( l ( k , 255 & b . adler ) , l ( k , b . adler >> 8 & 255 ) , l ( k , b . adler >> 16 & 255 ) , l ( k , b . adler >> 24 & 255 ) ,
l ( k , 255 & b . total _in ) , l ( k , b . total _in >> 8 & 255 ) , l ( k , b . total _in >> 16 & 255 ) , l ( k , b . total _in >> 24 & 255 ) ) : ( h ( k , b . adler >>> 16 ) , h ( k , 65535 & b . adler ) ) , c ( b ) , 0 < k . wrap && ( k . wrap = - k . wrap ) , 0 !== k . pending ? S : 1 ) } ; d . deflateEnd = function ( b ) { var d ; return b && b . state ? ( d = b . state . status , d !== Z && 69 !== d && 73 !== d && 91 !== d && 103 !== d && d !== Y && 666 !== d ? a ( b , N ) : ( b . state = null , d === Y ? a ( b , - 3 ) : S ) ) : N } ; d . deflateSetDictionary = function ( a , b ) { var d , c , y , f , r , g , t ; c = b . length ; if ( ! a || ! a . state || ( d = a . state , f = d . wrap , 2 === f || 1 === f && d . status !== Z || d . lookahead ) ) return N ; 1 ===
f && ( a . adler = P ( a . adler , b , c , 0 ) ) ; d . wrap = 0 ; c >= d . w _size && ( 0 === f && ( e ( d . head ) , d . strstart = 0 , d . block _start = 0 , d . insert = 0 ) , r = new A . Buf8 ( d . w _size ) , A . arraySet ( r , b , c - d . w _size , d . w _size , 0 ) , b = r , c = d . w _size ) ; r = a . avail _in ; g = a . next _in ; t = a . input ; a . avail _in = c ; a . next _in = 0 ; a . input = b ; for ( q ( d ) ; d . lookahead >= C ; ) { c = d . strstart ; y = d . lookahead - ( C - 1 ) ; do d . ins _h = ( d . ins _h << d . hash _shift ^ d . window [ c + C - 1 ] ) & d . hash _mask , d . prev [ c & d . w _mask ] = d . head [ d . ins _h ] , d . head [ d . ins _h ] = c , c ++ ; while ( -- y ) ; d . strstart = c ; d . lookahead = C - 1 ; q ( d ) } return d . strstart +=
d . lookahead , d . block _start = d . strstart , d . insert = d . lookahead , d . lookahead = 0 , d . match _length = d . prev _length = C - 1 , d . match _available = 0 , a . next _in = g , a . input = t , a . avail _in = r , d . wrap = f , S } ; d . deflateInfo = "pako deflate (from Nodeca project)" } , { "../utils/common" : 62 , "./adler32" : 64 , "./crc32" : 66 , "./messages" : 72 , "./trees" : 73 } ] , 68 : [ function ( b , f , d ) { f . exports = function ( ) { this . os = this . xflags = this . time = this . text = 0 ; this . extra = null ; this . extra _len = 0 ; this . comment = this . name = "" ; this . hcrc = 0 ; this . done = ! 1 } } , { } ] , 69 : [ function ( b , f , d ) { f . exports =
function ( a , b ) { var d , e , f , h , n , q , x , z , E , F , v , p , t , B , A , m , P , G , r , H , y , S , N , I ; d = a . state ; e = a . next _in ; N = a . input ; f = e + ( a . avail _in - 5 ) ; h = a . next _out ; I = a . output ; n = h - ( b - a . avail _out ) ; q = h + ( a . avail _out - 257 ) ; x = d . dmax ; z = d . wsize ; E = d . whave ; F = d . wnext ; v = d . window ; p = d . hold ; t = d . bits ; B = d . lencode ; A = d . distcode ; m = ( 1 << d . lenbits ) - 1 ; P = ( 1 << d . distbits ) - 1 ; a : do b : for ( 15 > t && ( p += N [ e ++ ] << t , t += 8 , p += N [ e ++ ] << t , t += 8 ) , G = B [ p & m ] ; ; ) { if ( r = G >>> 24 , p >>>= r , t -= r , r = G >>> 16 & 255 , 0 === r ) I [ h ++ ] = 65535 & G ; else { if ( ! ( 16 & r ) ) { if ( 0 === ( 64 & r ) ) { G = B [ ( 65535 & G ) + ( p & ( 1 << r ) - 1 ) ] ; continue b } if ( 32 &
r ) { d . mode = 12 ; break a } a . msg = "invalid literal/length code" ; d . mode = 30 ; break a } H = 65535 & G ; ( r &= 15 ) && ( t < r && ( p += N [ e ++ ] << t , t += 8 ) , H += p & ( 1 << r ) - 1 , p >>>= r , t -= r ) ; 15 > t && ( p += N [ e ++ ] << t , t += 8 , p += N [ e ++ ] << t , t += 8 ) ; G = A [ p & P ] ; c : for ( ; ; ) { if ( r = G >>> 24 , p >>>= r , t -= r , r = G >>> 16 & 255 , ! ( 16 & r ) ) { if ( 0 === ( 64 & r ) ) { G = A [ ( 65535 & G ) + ( p & ( 1 << r ) - 1 ) ] ; continue c } a . msg = "invalid distance code" ; d . mode = 30 ; break a } if ( y = 65535 & G , r &= 15 , t < r && ( p += N [ e ++ ] << t , t += 8 , t < r && ( p += N [ e ++ ] << t , t += 8 ) ) , y += p & ( 1 << r ) - 1 , y > x ) { a . msg = "invalid distance too far back" ; d . mode = 30 ; break a } if ( p >>>=
r , t -= r , r = h - n , y > r ) { if ( r = y - r , r > E && d . sane ) { a . msg = "invalid distance too far back" ; d . mode = 30 ; break a } if ( G = 0 , S = v , 0 === F ) { if ( G += z - r , r < H ) { H -= r ; do I [ h ++ ] = v [ G ++ ] ; while ( -- r ) ; G = h - y ; S = I } } else if ( F < r ) { if ( G += z + F - r , r -= F , r < H ) { H -= r ; do I [ h ++ ] = v [ G ++ ] ; while ( -- r ) ; if ( G = 0 , F < H ) { r = F ; H -= r ; do I [ h ++ ] = v [ G ++ ] ; while ( -- r ) ; G = h - y ; S = I } } } else if ( G += F - r , r < H ) { H -= r ; do I [ h ++ ] = v [ G ++ ] ; while ( -- r ) ; G = h - y ; S = I } for ( ; 2 < H ; ) I [ h ++ ] = S [ G ++ ] , I [ h ++ ] = S [ G ++ ] , I [ h ++ ] = S [ G ++ ] , H -= 3 ; H && ( I [ h ++ ] = S [ G ++ ] , 1 < H && ( I [ h ++ ] = S [ G ++ ] ) ) } else { G = h - y ; do I [ h ++ ] = I [ G ++ ] , I [ h ++ ] = I [ G ++ ] ,
I [ h ++ ] = I [ G ++ ] , H -= 3 ; while ( 2 < H ) ; H && ( I [ h ++ ] = I [ G ++ ] , 1 < H && ( I [ h ++ ] = I [ G ++ ] ) ) } break } } break } while ( e < f && h < q ) ; H = t >> 3 ; e -= H ; t -= H << 3 ; a . next _in = e ; a . next _out = h ; a . avail _in = e < f ? 5 + ( f - e ) : 5 - ( e - f ) ; a . avail _out = h < q ? 257 + ( q - h ) : 257 - ( h - q ) ; d . hold = p & ( 1 << t ) - 1 ; d . bits = t } } , { } ] , 70 : [ function ( b , f , d ) { function a ( a ) { return ( a >>> 24 & 255 ) + ( a >>> 8 & 65280 ) + ( ( 65280 & a ) << 8 ) + ( ( 255 & a ) << 24 ) } function e ( ) { this . mode = 0 ; this . last = ! 1 ; this . wrap = 0 ; this . havedict = ! 1 ; this . total = this . check = this . dmax = this . flags = 0 ; this . head = null ; this . wnext = this . whave = this . wsize = this . wbits =
0 ; this . window = null ; this . extra = this . offset = this . length = this . bits = this . hold = 0 ; this . distcode = this . lencode = null ; this . have = this . ndist = this . nlen = this . ncode = this . distbits = this . lenbits = 0 ; this . next = null ; this . lens = new z . Buf16 ( 320 ) ; this . work = new z . Buf16 ( 288 ) ; this . distdyn = this . lendyn = null ; this . was = this . back = this . sane = 0 } function c ( a ) { var b ; return a && a . state ? ( b = a . state , a . total _in = a . total _out = b . total = 0 , a . msg = "" , b . wrap && ( a . adler = 1 & b . wrap ) , b . mode = A , b . last = 0 , b . havedict = 0 , b . dmax = 32768 , b . head = null , b . hold = 0 , b . bits = 0 ,
b . lencode = b . lendyn = new z . Buf32 ( m ) , b . distcode = b . distdyn = new z . Buf32 ( P ) , b . sane = 1 , b . back = - 1 , t ) : B } function g ( a ) { var b ; return a && a . state ? ( b = a . state , b . wsize = 0 , b . whave = 0 , b . wnext = 0 , c ( a ) ) : B } function l ( a , b ) { var d , c ; return a && a . state ? ( c = a . state , 0 > b ? ( d = 0 , b = - b ) : ( d = ( b >> 4 ) + 1 , 48 > b && ( b &= 15 ) ) , b && ( 8 > b || 15 < b ) ? B : ( null !== c . window && c . wbits !== b && ( c . window = null ) , c . wrap = d , c . wbits = b , g ( a ) ) ) : B } function h ( a , b ) { var d , c ; return a ? ( c = new e , a . state = c , c . window = null , d = l ( a , b ) , d !== t && ( a . state = null ) , d ) : B } function n ( a , b , d , c ) { var e ; a = a . state ;
return null === a . window && ( a . wsize = 1 << a . wbits , a . wnext = 0 , a . whave = 0 , a . window = new z . Buf8 ( a . wsize ) ) , c >= a . wsize ? ( z . arraySet ( a . window , b , d - a . wsize , a . wsize , 0 ) , a . wnext = 0 , a . whave = a . wsize ) : ( e = a . wsize - a . wnext , e > c && ( e = c ) , z . arraySet ( a . window , b , d - c , e , a . wnext ) , c -= e , c ? ( z . arraySet ( a . window , b , d - c , c , 0 ) , a . wnext = c , a . whave = a . wsize ) : ( a . wnext += e , a . wnext === a . wsize && ( a . wnext = 0 ) , a . whave < a . wsize && ( a . whave += e ) ) ) , 0 } var q , x , z = b ( "../utils/common" ) , E = b ( "./adler32" ) , F = b ( "./crc32" ) , v = b ( "./inffast" ) , p = b ( "./inftrees" ) , t = 0 , B = - 2 , A = 1 , m = 852 ,
P = 592 , G = ! 0 ; d . inflateReset = g ; d . inflateReset2 = l ; d . inflateResetKeep = c ; d . inflateInit = function ( a ) { return h ( a , 15 ) } ; d . inflateInit2 = h ; d . inflate = function ( b , d ) { var c , e , f , g , r , h , l , m , u , H , P , D , ba , K , C , J , Q , Z , Y , M , U , W , R = 0 , L = new z . Buf8 ( 4 ) , ea = [ 16 , 17 , 18 , 0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15 ] ; if ( ! b || ! b . state || ! b . output || ! b . input && 0 !== b . avail _in ) return B ; c = b . state ; 12 === c . mode && ( c . mode = 13 ) ; r = b . next _out ; f = b . output ; l = b . avail _out ; g = b . next _in ; e = b . input ; h = b . avail _in ; m = c . hold ; u = c . bits ; H = h ; P = l ; U = t ; a : for ( ; ; ) switch ( c . mode ) { case A : if ( 0 ===
c . wrap ) { c . mode = 13 ; break } for ( ; 16 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( 2 & c . wrap && 35615 === m ) { c . check = 0 ; L [ 0 ] = 255 & m ; L [ 1 ] = m >>> 8 & 255 ; c . check = F ( c . check , L , 2 , 0 ) ; u = m = 0 ; c . mode = 2 ; break } if ( c . flags = 0 , c . head && ( c . head . done = ! 1 ) , ! ( 1 & c . wrap ) || ( ( ( 255 & m ) << 8 ) + ( m >> 8 ) ) % 31 ) { b . msg = "incorrect header check" ; c . mode = 30 ; break } if ( 8 !== ( 15 & m ) ) { b . msg = "unknown compression method" ; c . mode = 30 ; break } if ( m >>>= 4 , u -= 4 , M = ( 15 & m ) + 8 , 0 === c . wbits ) c . wbits = M ; else if ( M > c . wbits ) { b . msg = "invalid window size" ; c . mode = 30 ; break } c . dmax = 1 << M ; b . adler =
c . check = 1 ; c . mode = 512 & m ? 10 : 12 ; u = m = 0 ; break ; case 2 : for ( ; 16 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( c . flags = m , 8 !== ( 255 & c . flags ) ) { b . msg = "unknown compression method" ; c . mode = 30 ; break } if ( 57344 & c . flags ) { b . msg = "unknown header flags set" ; c . mode = 30 ; break } c . head && ( c . head . text = m >> 8 & 1 ) ; 512 & c . flags && ( L [ 0 ] = 255 & m , L [ 1 ] = m >>> 8 & 255 , c . check = F ( c . check , L , 2 , 0 ) ) ; u = m = 0 ; c . mode = 3 ; case 3 : for ( ; 32 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } c . head && ( c . head . time = m ) ; 512 & c . flags && ( L [ 0 ] = 255 & m , L [ 1 ] = m >>> 8 & 255 , L [ 2 ] = m >>> 16 & 255 , L [ 3 ] =
m >>> 24 & 255 , c . check = F ( c . check , L , 4 , 0 ) ) ; u = m = 0 ; c . mode = 4 ; case 4 : for ( ; 16 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } c . head && ( c . head . xflags = 255 & m , c . head . os = m >> 8 ) ; 512 & c . flags && ( L [ 0 ] = 255 & m , L [ 1 ] = m >>> 8 & 255 , c . check = F ( c . check , L , 2 , 0 ) ) ; u = m = 0 ; c . mode = 5 ; case 5 : if ( 1024 & c . flags ) { for ( ; 16 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } c . length = m ; c . head && ( c . head . extra _len = m ) ; 512 & c . flags && ( L [ 0 ] = 255 & m , L [ 1 ] = m >>> 8 & 255 , c . check = F ( c . check , L , 2 , 0 ) ) ; u = m = 0 } else c . head && ( c . head . extra = null ) ; c . mode = 6 ; case 6 : if ( 1024 & c . flags && ( D = c . length ,
D > h && ( D = h ) , D && ( c . head && ( M = c . head . extra _len - c . length , c . head . extra || ( c . head . extra = Array ( c . head . extra _len ) ) , z . arraySet ( c . head . extra , e , g , D , M ) ) , 512 & c . flags && ( c . check = F ( c . check , e , D , g ) ) , h -= D , g += D , c . length -= D ) , c . length ) ) break a ; c . length = 0 ; c . mode = 7 ; case 7 : if ( 2048 & c . flags ) { if ( 0 === h ) break a ; D = 0 ; do M = e [ g + D ++ ] , c . head && M && 65536 > c . length && ( c . head . name += String . fromCharCode ( M ) ) ; while ( M && D < h ) ; if ( 512 & c . flags && ( c . check = F ( c . check , e , D , g ) ) , h -= D , g += D , M ) break a } else c . head && ( c . head . name = null ) ; c . length = 0 ; c . mode = 8 ; case 8 : if ( 4096 &
c . flags ) { if ( 0 === h ) break a ; D = 0 ; do M = e [ g + D ++ ] , c . head && M && 65536 > c . length && ( c . head . comment += String . fromCharCode ( M ) ) ; while ( M && D < h ) ; if ( 512 & c . flags && ( c . check = F ( c . check , e , D , g ) ) , h -= D , g += D , M ) break a } else c . head && ( c . head . comment = null ) ; c . mode = 9 ; case 9 : if ( 512 & c . flags ) { for ( ; 16 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( m !== ( 65535 & c . check ) ) { b . msg = "header crc mismatch" ; c . mode = 30 ; break } u = m = 0 } c . head && ( c . head . hcrc = c . flags >> 9 & 1 , c . head . done = ! 0 ) ; b . adler = c . check = 0 ; c . mode = 12 ; break ; case 10 : for ( ; 32 > u ; ) { if ( 0 === h ) break a ;
h -- ; m += e [ g ++ ] << u ; u += 8 } b . adler = c . check = a ( m ) ; u = m = 0 ; c . mode = 11 ; case 11 : if ( 0 === c . havedict ) return b . next _out = r , b . avail _out = l , b . next _in = g , b . avail _in = h , c . hold = m , c . bits = u , 2 ; b . adler = c . check = 1 ; c . mode = 12 ; case 12 : if ( 5 === d || 6 === d ) break a ; case 13 : if ( c . last ) { m >>>= 7 & u ; u -= 7 & u ; c . mode = 27 ; break } for ( ; 3 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } switch ( c . last = 1 & m , m >>>= 1 , -- u , 3 & m ) { case 0 : c . mode = 14 ; break ; case 1 : J = c ; if ( G ) { q = new z . Buf32 ( 512 ) ; x = new z . Buf32 ( 32 ) ; for ( K = 0 ; 144 > K ; ) J . lens [ K ++ ] = 8 ; for ( ; 256 > K ; ) J . lens [ K ++ ] = 9 ; for ( ; 280 > K ; ) J . lens [ K ++ ] =
7 ; for ( ; 288 > K ; ) J . lens [ K ++ ] = 8 ; p ( 1 , J . lens , 0 , 288 , q , 0 , J . work , { bits : 9 } ) ; for ( K = 0 ; 32 > K ; ) J . lens [ K ++ ] = 5 ; p ( 2 , J . lens , 0 , 32 , x , 0 , J . work , { bits : 5 } ) ; G = ! 1 } J . lencode = q ; J . lenbits = 9 ; J . distcode = x ; J . distbits = 5 ; if ( c . mode = 20 , 6 === d ) { m >>>= 2 ; u -= 2 ; break a } break ; case 2 : c . mode = 17 ; break ; case 3 : b . msg = "invalid block type" , c . mode = 30 } m >>>= 2 ; u -= 2 ; break ; case 14 : m >>>= 7 & u ; for ( u -= 7 & u ; 32 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( ( 65535 & m ) !== ( m >>> 16 ^ 65535 ) ) { b . msg = "invalid stored block lengths" ; c . mode = 30 ; break } if ( c . length = 65535 & m , m = 0 , u =
0 , c . mode = 15 , 6 === d ) break a ; case 15 : c . mode = 16 ; case 16 : if ( D = c . length ) { if ( D > h && ( D = h ) , D > l && ( D = l ) , 0 === D ) break a ; z . arraySet ( f , e , g , D , r ) ; h -= D ; g += D ; l -= D ; r += D ; c . length -= D ; break } c . mode = 12 ; break ; case 17 : for ( ; 14 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( c . nlen = ( 31 & m ) + 257 , m >>>= 5 , u -= 5 , c . ndist = ( 31 & m ) + 1 , m >>>= 5 , u -= 5 , c . ncode = ( 15 & m ) + 4 , m >>>= 4 , u -= 4 , 286 < c . nlen || 30 < c . ndist ) { b . msg = "too many length or distance symbols" ; c . mode = 30 ; break } c . have = 0 ; c . mode = 18 ; case 18 : for ( ; c . have < c . ncode ; ) { for ( ; 3 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] <<
u ; u += 8 } c . lens [ ea [ c . have ++ ] ] = 7 & m ; m >>>= 3 ; u -= 3 } for ( ; 19 > c . have ; ) c . lens [ ea [ c . have ++ ] ] = 0 ; if ( c . lencode = c . lendyn , c . lenbits = 7 , W = { bits : c . lenbits } , U = p ( 0 , c . lens , 0 , 19 , c . lencode , 0 , c . work , W ) , c . lenbits = W . bits , U ) { b . msg = "invalid code lengths set" ; c . mode = 30 ; break } c . have = 0 ; c . mode = 19 ; case 19 : for ( ; c . have < c . nlen + c . ndist ; ) { for ( ; R = c . lencode [ m & ( 1 << c . lenbits ) - 1 ] , C = R >>> 24 , J = 65535 & R , ! ( C <= u ) ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( 16 > J ) m >>>= C , u -= C , c . lens [ c . have ++ ] = J ; else { if ( 16 === J ) { for ( K = C + 2 ; u < K ; ) { if ( 0 === h ) break a ; h -- ; m +=
e [ g ++ ] << u ; u += 8 } if ( m >>>= C , u -= C , 0 === c . have ) { b . msg = "invalid bit length repeat" ; c . mode = 30 ; break } M = c . lens [ c . have - 1 ] ; D = 3 + ( 3 & m ) ; m >>>= 2 ; u -= 2 } else if ( 17 === J ) { for ( K = C + 3 ; u < K ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } m >>>= C ; u -= C ; M = 0 ; D = 3 + ( 7 & m ) ; m >>>= 3 ; u -= 3 } else { for ( K = C + 7 ; u < K ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } m >>>= C ; u -= C ; M = 0 ; D = 11 + ( 127 & m ) ; m >>>= 7 ; u -= 7 } if ( c . have + D > c . nlen + c . ndist ) { b . msg = "invalid bit length repeat" ; c . mode = 30 ; break } for ( ; D -- ; ) c . lens [ c . have ++ ] = M } } if ( 30 === c . mode ) break ; if ( 0 === c . lens [ 256 ] ) { b . msg = "invalid code -- missing end-of-block" ;
c . mode = 30 ; break } if ( c . lenbits = 9 , W = { bits : c . lenbits } , U = p ( 1 , c . lens , 0 , c . nlen , c . lencode , 0 , c . work , W ) , c . lenbits = W . bits , U ) { b . msg = "invalid literal/lengths set" ; c . mode = 30 ; break } if ( c . distbits = 6 , c . distcode = c . distdyn , W = { bits : c . distbits } , U = p ( 2 , c . lens , c . nlen , c . ndist , c . distcode , 0 , c . work , W ) , c . distbits = W . bits , U ) { b . msg = "invalid distances set" ; c . mode = 30 ; break } if ( c . mode = 20 , 6 === d ) break a ; case 20 : c . mode = 21 ; case 21 : if ( 6 <= h && 258 <= l ) { b . next _out = r ; b . avail _out = l ; b . next _in = g ; b . avail _in = h ; c . hold = m ; c . bits = u ; v ( b , P ) ; r = b . next _out ;
f = b . output ; l = b . avail _out ; g = b . next _in ; e = b . input ; h = b . avail _in ; m = c . hold ; u = c . bits ; 12 === c . mode && ( c . back = - 1 ) ; break } for ( c . back = 0 ; R = c . lencode [ m & ( 1 << c . lenbits ) - 1 ] , C = R >>> 24 , K = R >>> 16 & 255 , J = 65535 & R , ! ( C <= u ) ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( K && 0 === ( 240 & K ) ) { Q = C ; Z = K ; for ( Y = J ; R = c . lencode [ Y + ( ( m & ( 1 << Q + Z ) - 1 ) >> Q ) ] , C = R >>> 24 , K = R >>> 16 & 255 , J = 65535 & R , ! ( Q + C <= u ) ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } m >>>= Q ; u -= Q ; c . back += Q } if ( m >>>= C , u -= C , c . back += C , c . length = J , 0 === K ) { c . mode = 26 ; break } if ( 32 & K ) { c . back = - 1 ; c . mode = 12 ; break } if ( 64 &
K ) { b . msg = "invalid literal/length code" ; c . mode = 30 ; break } c . extra = 15 & K ; c . mode = 22 ; case 22 : if ( c . extra ) { for ( K = c . extra ; u < K ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } c . length += m & ( 1 << c . extra ) - 1 ; m >>>= c . extra ; u -= c . extra ; c . back += c . extra } c . was = c . length ; c . mode = 23 ; case 23 : for ( ; R = c . distcode [ m & ( 1 << c . distbits ) - 1 ] , C = R >>> 24 , K = R >>> 16 & 255 , J = 65535 & R , ! ( C <= u ) ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( 0 === ( 240 & K ) ) { Q = C ; Z = K ; for ( Y = J ; R = c . distcode [ Y + ( ( m & ( 1 << Q + Z ) - 1 ) >> Q ) ] , C = R >>> 24 , K = R >>> 16 & 255 , J = 65535 & R , ! ( Q + C <= u ) ; ) { if ( 0 === h ) break a ;
h -- ; m += e [ g ++ ] << u ; u += 8 } m >>>= Q ; u -= Q ; c . back += Q } if ( m >>>= C , u -= C , c . back += C , 64 & K ) { b . msg = "invalid distance code" ; c . mode = 30 ; break } c . offset = J ; c . extra = 15 & K ; c . mode = 24 ; case 24 : if ( c . extra ) { for ( K = c . extra ; u < K ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } c . offset += m & ( 1 << c . extra ) - 1 ; m >>>= c . extra ; u -= c . extra ; c . back += c . extra } if ( c . offset > c . dmax ) { b . msg = "invalid distance too far back" ; c . mode = 30 ; break } c . mode = 25 ; case 25 : if ( 0 === l ) break a ; if ( D = P - l , c . offset > D ) { if ( D = c . offset - D , D > c . whave && c . sane ) { b . msg = "invalid distance too far back" ;
c . mode = 30 ; break } D > c . wnext ? ( D -= c . wnext , ba = c . wsize - D ) : ba = c . wnext - D ; D > c . length && ( D = c . length ) ; K = c . window } else K = f , ba = r - c . offset , D = c . length ; D > l && ( D = l ) ; l -= D ; c . length -= D ; do f [ r ++ ] = K [ ba ++ ] ; while ( -- D ) ; 0 === c . length && ( c . mode = 21 ) ; break ; case 26 : if ( 0 === l ) break a ; f [ r ++ ] = c . length ; l -- ; c . mode = 21 ; break ; case 27 : if ( c . wrap ) { for ( ; 32 > u ; ) { if ( 0 === h ) break a ; h -- ; m |= e [ g ++ ] << u ; u += 8 } if ( P -= l , b . total _out += P , c . total += P , P && ( b . adler = c . check = c . flags ? F ( c . check , f , P , r - P ) : E ( c . check , f , P , r - P ) ) , P = l , ( c . flags ? m : a ( m ) ) !== c . check ) { b . msg = "incorrect data check" ;
c . mode = 30 ; break } u = m = 0 } c . mode = 28 ; case 28 : if ( c . wrap && c . flags ) { for ( ; 32 > u ; ) { if ( 0 === h ) break a ; h -- ; m += e [ g ++ ] << u ; u += 8 } if ( m !== ( 4294967295 & c . total ) ) { b . msg = "incorrect length check" ; c . mode = 30 ; break } u = m = 0 } c . mode = 29 ; case 29 : U = 1 ; break a ; case 30 : U = - 3 ; break a ; case 31 : return - 4 ; default : return B } return b . next _out = r , b . avail _out = l , b . next _in = g , b . avail _in = h , c . hold = m , c . bits = u , ( c . wsize || P !== b . avail _out && 30 > c . mode && ( 27 > c . mode || 4 !== d ) ) && n ( b , b . output , b . next _out , P - b . avail _out ) ? ( c . mode = 31 , - 4 ) : ( H -= b . avail _in , P -= b . avail _out , b . total _in +=
H , b . total _out += P , c . total += P , c . wrap && P && ( b . adler = c . check = c . flags ? F ( c . check , f , P , b . next _out - P ) : E ( c . check , f , P , b . next _out - P ) ) , b . data _type = c . bits + ( c . last ? 64 : 0 ) + ( 12 === c . mode ? 128 : 0 ) + ( 20 === c . mode || 15 === c . mode ? 256 : 0 ) , ( 0 === H && 0 === P || 4 === d ) && U === t && ( U = - 5 ) , U ) } ; d . inflateEnd = function ( a ) { if ( ! a || ! a . state ) return B ; var b = a . state ; return b . window && ( b . window = null ) , a . state = null , t } ; d . inflateGetHeader = function ( a , b ) { var c ; return a && a . state ? ( c = a . state , 0 === ( 2 & c . wrap ) ? B : ( c . head = b , b . done = ! 1 , t ) ) : B } ; d . inflateSetDictionary = function ( a ,
b ) { var c , d , e = b . length ; return a && a . state ? ( c = a . state , 0 !== c . wrap && 11 !== c . mode ? B : 11 === c . mode && ( d = 1 , d = E ( d , b , e , 0 ) , d !== c . check ) ? - 3 : n ( a , b , e , e ) ? ( c . mode = 31 , - 4 ) : ( c . havedict = 1 , t ) ) : B } ; d . inflateInfo = "pako inflate (from Nodeca project)" } , { "../utils/common" : 62 , "./adler32" : 64 , "./crc32" : 66 , "./inffast" : 69 , "./inftrees" : 71 } ] , 71 : [ function ( b , f , d ) { var a = b ( "../utils/common" ) , e = [ 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 ] , c = [ 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 ] , g = [ 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 ] , l = [ 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 ] ; f . exports = function ( b , d , f , x , z , E , F , v ) { var h , t , B , A , m , n , G , r , H = v . bits , y , q , N , I , X , T , aa = 0 , V , u = null , da = 0 , ca = new a . Buf16 ( 16 ) ; A = new a . Buf16 ( 16 ) ; var D = null , ba = 0 ; for ( y = 0 ; 15 >= y ; y ++ ) ca [ y ] = 0 ; for ( q = 0 ; q < x ; q ++ ) ca [ d [ f + q ] ] ++ ; I = H ; for ( N = 15 ; 1 <= N && 0 === ca [ N ] ; N -- ) ;
if ( I > N && ( I = N ) , 0 === N ) return z [ E ++ ] = 20971520 , z [ E ++ ] = 20971520 , v . bits = 1 , 0 ; for ( H = 1 ; H < N && 0 === ca [ H ] ; H ++ ) ; I < H && ( I = H ) ; for ( y = h = 1 ; 15 >= y ; y ++ ) if ( h <<= 1 , h -= ca [ y ] , 0 > h ) return - 1 ; if ( 0 < h && ( 0 === b || 1 !== N ) ) return - 1 ; A [ 1 ] = 0 ; for ( y = 1 ; 15 > y ; y ++ ) A [ y + 1 ] = A [ y ] + ca [ y ] ; for ( q = 0 ; q < x ; q ++ ) 0 !== d [ f + q ] && ( F [ A [ d [ f + q ] ] ++ ] = q ) ; if ( 0 === b ? ( u = D = F , m = 19 ) : 1 === b ? ( u = e , da -= 257 , D = c , ba -= 257 , m = 256 ) : ( u = g , D = l , m = - 1 ) , V = 0 , q = 0 , y = H , A = E , X = I , T = 0 , B = - 1 , aa = 1 << I , x = aa - 1 , 1 === b && 852 < aa || 2 === b && 592 < aa ) return 1 ; for ( var K = 0 ; ; ) { K ++ ; n = y - T ; F [ q ] < m ? ( G = 0 , r = F [ q ] ) : F [ q ] > m ? ( G = D [ ba + F [ q ] ] ,
r = u [ da + F [ q ] ] ) : ( G = 96 , r = 0 ) ; h = 1 << y - T ; H = t = 1 << X ; do t -= h , z [ A + ( V >> T ) + t ] = n << 24 | G << 16 | r | 0 ; while ( 0 !== t ) ; for ( h = 1 << y - 1 ; V & h ; ) h >>= 1 ; if ( 0 !== h ? ( V &= h - 1 , V += h ) : V = 0 , q ++ , 0 === -- ca [ y ] ) { if ( y === N ) break ; y = d [ f + F [ q ] ] } if ( y > I && ( V & x ) !== B ) { 0 === T && ( T = I ) ; A += H ; X = y - T ; for ( h = 1 << X ; X + T < N && ( h -= ca [ X + T ] , ! ( 0 >= h ) ) ; ) X ++ , h <<= 1 ; if ( aa += 1 << X , 1 === b && 852 < aa || 2 === b && 592 < aa ) return 1 ; B = V & x ; z [ B ] = I << 24 | X << 16 | A - E | 0 } } return 0 !== V && ( z [ A + V ] = y - T << 24 | 4194304 ) , v . bits = I , 0 } } , { "../utils/common" : 62 } ] , 72 : [ function ( b , f , d ) { f . exports = { 2 : "need dictionary" , 1 : "stream end" ,
2017-06-12 13:14:07 +00:00
0 : "" , "-1" : "file error" , "-2" : "stream error" , "-3" : "data error" , "-4" : "insufficient memory" , "-5" : "buffer error" , "-6" : "incompatible version" } } , { } ] , 73 : [ function ( b , f , d ) { function a ( a ) { for ( var b = a . length ; 0 <= -- b ; ) a [ b ] = 0 } function e ( a , b , c , d , e ) { this . static _tree = a ; this . extra _bits = b ; this . extra _base = c ; this . elems = d ; this . max _length = e ; this . has _stree = a && a . length } function c ( a , b ) { this . dyn _tree = a ; this . max _code = 0 ; this . stat _desc = b } function g ( a , b ) { a . pending _buf [ a . pending ++ ] = 255 & b ; a . pending _buf [ a . pending ++ ] = b >>> 8 & 255 } function l ( a ,
2017-06-20 11:05:40 +00:00
b , c ) { a . bi _valid > aa - c ? ( a . bi _buf |= b << a . bi _valid & 65535 , g ( a , a . bi _buf ) , a . bi _buf = b >> aa - a . bi _valid , a . bi _valid += c - aa ) : ( a . bi _buf |= b << a . bi _valid & 65535 , a . bi _valid += c ) } function h ( a , b , c ) { l ( a , c [ 2 * b ] , c [ 2 * b + 1 ] ) } function n ( a , b ) { var c = 0 ; do c |= 1 & a , a >>>= 1 , c <<= 1 ; while ( 0 < -- b ) ; return c >>> 1 } function q ( a , b , c ) { var d , e = Array ( T + 1 ) , f = 0 ; for ( d = 1 ; d <= T ; d ++ ) e [ d ] = f = f + c [ d - 1 ] << 1 ; for ( c = 0 ; c <= b ; c ++ ) d = a [ 2 * c + 1 ] , 0 !== d && ( a [ 2 * c ] = n ( e [ d ] ++ , d ) ) } function x ( a ) { var b ; for ( b = 0 ; b < S ; b ++ ) a . dyn _ltree [ 2 * b ] = 0 ; for ( b = 0 ; b < N ; b ++ ) a . dyn _dtree [ 2 * b ] = 0 ; for ( b = 0 ; b <
I ; b ++ ) a . bl _tree [ 2 * b ] = 0 ; a . dyn _ltree [ 2 * V ] = 1 ; a . opt _len = a . static _len = 0 ; a . last _lit = a . matches = 0 } function z ( a ) { 8 < a . bi _valid ? g ( a , a . bi _buf ) : 0 < a . bi _valid && ( a . pending _buf [ a . pending ++ ] = a . bi _buf ) ; a . bi _buf = 0 ; a . bi _valid = 0 } function E ( a , b , c , d ) { var e = 2 * b , f = 2 * c ; return a [ e ] < a [ f ] || a [ e ] === a [ f ] && d [ b ] <= d [ c ] } function F ( a , b , c ) { for ( var d = a . heap [ c ] , e = c << 1 ; e <= a . heap _len && ( e < a . heap _len && E ( b , a . heap [ e + 1 ] , a . heap [ e ] , a . depth ) && e ++ , ! E ( b , d , a . heap [ e ] , a . depth ) ) ; ) a . heap [ c ] = a . heap [ e ] , c = e , e <<= 1 ; a . heap [ c ] = d } function v ( a , b , c ) { var d , e , f , k , g =
0 ; if ( 0 !== a . last _lit ) { do d = a . pending _buf [ a . d _buf + 2 * g ] << 8 | a . pending _buf [ a . d _buf + 2 * g + 1 ] , e = a . pending _buf [ a . l _buf + g ] , g ++ , 0 === d ? h ( a , e , b ) : ( f = Y [ e ] , h ( a , f + y + 1 , b ) , k = D [ f ] , 0 !== k && ( e -= M [ f ] , l ( a , e , k ) ) , d -- , f = 256 > d ? Z [ d ] : Z [ 256 + ( d >>> 7 ) ] , h ( a , f , c ) , k = ba [ f ] , 0 !== k && ( d -= U [ f ] , l ( a , d , k ) ) ) ; while ( g < a . last _lit ) } h ( a , V , b ) } function p ( a , b ) { var c , d , e , f = b . dyn _tree ; d = b . stat _desc . static _tree ; var k = b . stat _desc . has _stree , g = b . stat _desc . elems , m = - 1 ; a . heap _len = 0 ; a . heap _max = X ; for ( c = 0 ; c < g ; c ++ ) 0 !== f [ 2 * c ] ? ( a . heap [ ++ a . heap _len ] = m = c , a . depth [ c ] = 0 ) :
f [ 2 * c + 1 ] = 0 ; for ( ; 2 > a . heap _len ; ) e = a . heap [ ++ a . heap _len ] = 2 > m ? ++ m : 0 , f [ 2 * e ] = 1 , a . depth [ e ] = 0 , a . opt _len -- , k && ( a . static _len -= d [ 2 * e + 1 ] ) ; b . max _code = m ; for ( c = a . heap _len >> 1 ; 1 <= c ; c -- ) F ( a , f , c ) ; e = g ; do c = a . heap [ 1 ] , a . heap [ 1 ] = a . heap [ a . heap _len -- ] , F ( a , f , 1 ) , d = a . heap [ 1 ] , a . heap [ -- a . heap _max ] = c , a . heap [ -- a . heap _max ] = d , f [ 2 * e ] = f [ 2 * c ] + f [ 2 * d ] , a . depth [ e ] = ( a . depth [ c ] >= a . depth [ d ] ? a . depth [ c ] : a . depth [ d ] ) + 1 , f [ 2 * c + 1 ] = f [ 2 * d + 1 ] = e , a . heap [ 1 ] = e ++ , F ( a , f , 1 ) ; while ( 2 <= a . heap _len ) ; a . heap [ -- a . heap _max ] = a . heap [ 1 ] ; var h , t , k = b . dyn _tree , g = b . max _code ,
l = b . stat _desc . static _tree , r = b . stat _desc . has _stree , A = b . stat _desc . extra _bits , B = b . stat _desc . extra _base , p = b . stat _desc . max _length , O = 0 ; for ( d = 0 ; d <= T ; d ++ ) a . bl _count [ d ] = 0 ; k [ 2 * a . heap [ a . heap _max ] + 1 ] = 0 ; for ( c = a . heap _max + 1 ; c < X ; c ++ ) e = a . heap [ c ] , d = k [ 2 * k [ 2 * e + 1 ] + 1 ] + 1 , d > p && ( d = p , O ++ ) , k [ 2 * e + 1 ] = d , e > g || ( a . bl _count [ d ] ++ , h = 0 , e >= B && ( h = A [ e - B ] ) , t = k [ 2 * e ] , a . opt _len += t * ( d + h ) , r && ( a . static _len += t * ( l [ 2 * e + 1 ] + h ) ) ) ; if ( 0 !== O ) { do { for ( d = p - 1 ; 0 === a . bl _count [ d ] ; ) d -- ; a . bl _count [ d ] -- ; a . bl _count [ d + 1 ] += 2 ; a . bl _count [ p ] -- ; O -= 2 } while ( 0 < O ) ; for ( d = p ; 0 !==
d ; d -- ) for ( e = a . bl _count [ d ] ; 0 !== e ; ) h = a . heap [ -- c ] , h > g || ( k [ 2 * h + 1 ] !== d && ( a . opt _len += ( d - k [ 2 * h + 1 ] ) * k [ 2 * h ] , k [ 2 * h + 1 ] = d ) , e -- ) } q ( f , m , a . bl _count ) } function t ( a , b , c ) { var d , e , f = - 1 , k = b [ 1 ] , g = 0 , h = 7 , m = 4 ; 0 === k && ( h = 138 , m = 3 ) ; b [ 2 * ( c + 1 ) + 1 ] = 65535 ; for ( d = 0 ; d <= c ; d ++ ) e = k , k = b [ 2 * ( d + 1 ) + 1 ] , ++ g < h && e === k || ( g < m ? a . bl _tree [ 2 * e ] += g : 0 !== e ? ( e !== f && a . bl _tree [ 2 * e ] ++ , a . bl _tree [ 2 * u ] ++ ) : 10 >= g ? a . bl _tree [ 2 * da ] ++ : a . bl _tree [ 2 * ca ] ++ , g = 0 , f = e , 0 === k ? ( h = 138 , m = 3 ) : e === k ? ( h = 6 , m = 3 ) : ( h = 7 , m = 4 ) ) } function B ( a , b , c ) { var d , e , f = - 1 , k = b [ 1 ] , g = 0 , m = 7 , t = 4 ; 0 === k && ( m = 138 ,
t = 3 ) ; for ( d = 0 ; d <= c ; d ++ ) if ( e = k , k = b [ 2 * ( d + 1 ) + 1 ] , ! ( ++ g < m && e === k ) ) { if ( g < t ) { do h ( a , e , a . bl _tree ) ; while ( 0 !== -- g ) } else 0 !== e ? ( e !== f && ( h ( a , e , a . bl _tree ) , g -- ) , h ( a , u , a . bl _tree ) , l ( a , g - 3 , 2 ) ) : 10 >= g ? ( h ( a , da , a . bl _tree ) , l ( a , g - 3 , 3 ) ) : ( h ( a , ca , a . bl _tree ) , l ( a , g - 11 , 7 ) ) ; g = 0 ; f = e ; 0 === k ? ( m = 138 , t = 3 ) : e === k ? ( m = 6 , t = 3 ) : ( m = 7 , t = 4 ) } } function A ( a ) { var b , c = 4093624447 ; for ( b = 0 ; 31 >= b ; b ++ , c >>>= 1 ) if ( 1 & c && 0 !== a . dyn _ltree [ 2 * b ] ) return G ; if ( 0 !== a . dyn _ltree [ 18 ] || 0 !== a . dyn _ltree [ 20 ] || 0 !== a . dyn _ltree [ 26 ] ) return r ; for ( b = 32 ; b < y ; b ++ ) if ( 0 !== a . dyn _ltree [ 2 *
b ] ) return r ; return G } function m ( a , b , c , d ) { l ( a , ( H << 1 ) + ( d ? 1 : 0 ) , 3 ) ; z ( a ) ; g ( a , c ) ; g ( a , ~ c ) ; P . arraySet ( a . pending _buf , a . window , b , c , a . pending ) ; a . pending += c } var P = b ( "../utils/common" ) , G = 0 , r = 1 , H = 0 , y = 256 , S = y + 1 + 29 , N = 30 , I = 19 , X = 2 * S + 1 , T = 15 , aa = 16 , V = 256 , u = 16 , da = 17 , ca = 18 , D = [ 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 ] , ba = [ 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 ] , K = [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 3 , 7 ] , C = [ 16 , 17 , 18 , 0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15 ] , J = Array ( 2 * ( S + 2 ) ) ; a ( J ) ;
var Q = Array ( 2 * N ) ; a ( Q ) ; var Z = Array ( 512 ) ; a ( Z ) ; var Y = Array ( 256 ) ; a ( Y ) ; var M = Array ( 29 ) ; a ( M ) ; var U = Array ( N ) ; a ( U ) ; var W , R , L , ea = ! 1 ; d . _tr _init = function ( a ) { if ( ! ea ) { var b , d , f , g = Array ( T + 1 ) ; for ( f = d = 0 ; 28 > f ; f ++ ) for ( M [ f ] = d , b = 0 ; b < 1 << D [ f ] ; b ++ ) Y [ d ++ ] = f ; Y [ d - 1 ] = f ; for ( f = d = 0 ; 16 > f ; f ++ ) for ( U [ f ] = d , b = 0 ; b < 1 << ba [ f ] ; b ++ ) Z [ d ++ ] = f ; for ( d >>= 7 ; f < N ; f ++ ) for ( U [ f ] = d << 7 , b = 0 ; b < 1 << ba [ f ] - 7 ; b ++ ) Z [ 256 + d ++ ] = f ; for ( b = 0 ; b <= T ; b ++ ) g [ b ] = 0 ; for ( b = 0 ; 143 >= b ; ) J [ 2 * b + 1 ] = 8 , b ++ , g [ 8 ] ++ ; for ( ; 255 >= b ; ) J [ 2 * b + 1 ] = 9 , b ++ , g [ 9 ] ++ ; for ( ; 279 >= b ; ) J [ 2 * b + 1 ] = 7 , b ++ , g [ 7 ] ++ ; for ( ; 287 >=
b ; ) J [ 2 * b + 1 ] = 8 , b ++ , g [ 8 ] ++ ; q ( J , S + 1 , g ) ; for ( b = 0 ; b < N ; b ++ ) Q [ 2 * b + 1 ] = 5 , Q [ 2 * b ] = n ( b , 5 ) ; W = new e ( J , D , y + 1 , S , T ) ; R = new e ( Q , ba , 0 , N , T ) ; L = new e ( [ ] , K , 0 , I , 7 ) ; ea = ! 0 } a . l _desc = new c ( a . dyn _ltree , W ) ; a . d _desc = new c ( a . dyn _dtree , R ) ; a . bl _desc = new c ( a . bl _tree , L ) ; a . bi _buf = 0 ; a . bi _valid = 0 ; x ( a ) } ; d . _tr _stored _block = m ; d . _tr _flush _block = function ( a , b , c , d ) { var e , f , g = 0 ; if ( 0 < a . level ) { 2 === a . strm . data _type && ( a . strm . data _type = A ( a ) ) ; p ( a , a . l _desc ) ; p ( a , a . d _desc ) ; t ( a , a . dyn _ltree , a . l _desc . max _code ) ; t ( a , a . dyn _dtree , a . d _desc . max _code ) ; p ( a , a . bl _desc ) ;
for ( g = I - 1 ; 3 <= g && 0 === a . bl _tree [ 2 * C [ g ] + 1 ] ; g -- ) ; g = ( a . opt _len += 3 * ( g + 1 ) + 14 , g ) ; e = a . opt _len + 3 + 7 >>> 3 ; f = a . static _len + 3 + 7 >>> 3 ; f <= e && ( e = f ) } else e = f = c + 5 ; if ( c + 4 <= e && - 1 !== b ) m ( a , b , c , d ) ; else if ( 4 === a . strategy || f === e ) l ( a , 2 + ( d ? 1 : 0 ) , 3 ) , v ( a , J , Q ) ; else { l ( a , 4 + ( d ? 1 : 0 ) , 3 ) ; b = a . l _desc . max _code + 1 ; c = a . d _desc . max _code + 1 ; g += 1 ; l ( a , b - 257 , 5 ) ; l ( a , c - 1 , 5 ) ; l ( a , g - 4 , 4 ) ; for ( e = 0 ; e < g ; e ++ ) l ( a , a . bl _tree [ 2 * C [ e ] + 1 ] , 3 ) ; B ( a , a . dyn _ltree , b - 1 ) ; B ( a , a . dyn _dtree , c - 1 ) ; v ( a , a . dyn _ltree , a . dyn _dtree ) } x ( a ) ; d && z ( a ) } ; d . _tr _tally = function ( a , b , c ) { return a . pending _buf [ a . d _buf +
2 * a . last _lit ] = b >>> 8 & 255 , a . pending _buf [ a . d _buf + 2 * a . last _lit + 1 ] = 255 & b , a . pending _buf [ a . l _buf + a . last _lit ] = 255 & c , a . last _lit ++ , 0 === b ? a . dyn _ltree [ 2 * c ] ++ : ( a . matches ++ , b -- , a . dyn _ltree [ 2 * ( Y [ c ] + y + 1 ) ] ++ , a . dyn _dtree [ 2 * ( 256 > b ? Z [ b ] : Z [ 256 + ( b >>> 7 ) ] ) ] ++ ) , a . last _lit === a . lit _bufsize - 1 } ; d . _tr _align = function ( a ) { l ( a , 2 , 3 ) ; h ( a , V , J ) ; 16 === a . bi _valid ? ( g ( a , a . bi _buf ) , a . bi _buf = 0 , a . bi _valid = 0 ) : 8 <= a . bi _valid && ( a . pending _buf [ a . pending ++ ] = 255 & a . bi _buf , a . bi _buf >>= 8 , a . bi _valid -= 8 ) } } , { "../utils/common" : 62 } ] , 74 : [ function ( b , f , d ) { f . exports =
function ( ) { this . input = null ; this . total _in = this . avail _in = this . next _in = 0 ; this . output = null ; this . total _out = this . avail _out = this . next _out = 0 ; this . msg = "" ; this . state = null ; this . data _type = 2 ; this . adler = 0 } } , { } ] } , { } , [ 10 ] ) ( 10 ) } ) ; function VsdxExport ( w ) { function b ( a , b ) { var c = { "[Content_Types].xml" : "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='png' ContentType='image/png'/><Default Extension='jpg' ContentType='image/jpeg'/><Default Extension='jpeg' ContentType='image/jpeg'/><Default Extension='svg' ContentType='image/svg+xml'/><Default Extension='bmp' ContentType='image/bmp'/><Default Extension='gif' ContentType='image/gif'/><Default Extension='emf' ContentType='image/x-emf' /><Default Extension='rels' ContentType='application/vnd.openxmlformats-package.relationships+xml' /><Default Extension='xml' ContentType='application/xml' /><Override PartName='/docProps/app.xml' ContentType='application/vnd.openxmlformats-officedocument.extended-properties+xml' /><Override PartName='/docProps/core.xml' ContentType='application/vnd.openxmlformats-package.core-properties+xml' /><Override PartName='/docProps/custom.xml' ContentType='application/vnd.openxmlformats-officedocument.custom-properties+xml' /><Override PartName='/visio/document.xml' ContentType='application/vnd.ms-visio.drawing.main+xml' /><Override PartName='/visio/masters/masters.xml' ContentType='application/vnd.ms-visio.masters+xml' /><Override PartName='/visio/masters/master1.xml' ContentType='application/vnd.ms-visio.master+xml'/><Override PartName='/visio/pages/page1.xml' ContentType='application/vnd.ms-visio.page+xml' /><Override PartName='/visio/pages/pages.xml' ContentType='application/vnd.ms-visio.pages+xml' /><Override PartName='/visio/windows.xml' ContentType='application/vnd.ms-visio.windows+xml' /></Types>" ,
"_rels/.rels" : "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' Target='docProps/core.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/document' Target='visio/document.xml' /><Relationship Id='rId3' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties' Target='docProps/custom.xml' /><Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties' Target='docProps/app.xml' /></Relationships>" ,
"docProps/app.xml" : '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\'><Application>Microsoft Visio</Application><AppVersion>15.0000</AppVersion><Template /><Manager /><Company /><HyperlinkBase /></Properties>' , "docProps/core.xml" : "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><cp:coreProperties xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><dc:title /><dc:subject /><dc:creator /><cp:keywords /><dc:description /><cp:category /><dc:language>en-US</dc:language></cp:coreProperties>" ,
"docProps/custom.xml" : '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns=\'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\' xmlns:vt=\'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\' />' , "visio/document.xml" : " < ? xml version = '1.0' encoding = 'utf-8' ? > < VisioDocument xmlns = 'http://schemas.microsoft.com/office/visio/2012/main' xmlns : r = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml : space = 'preserve' > < DocumentSettings TopPage = '0' DefaultTextStyle = '3' DefaultLineStyle = '3' DefaultFillStyle = '3' DefaultGuideStyle = '4' > < GlueSettings > 9 < / G l u e S e t t i n g s > < S n a p S e t t i n g s > 6 5 8 4 7 < / S n a p S e t t i n g s > < S n a p E x t e n s i o n s > 3 4 < / S n a p E x t e n s i o n s > < S n a p A n g l e s / > < D y n a m i c G r i d E n a b l e d > 1 < / D y n a m i c G r i d E n a b l e d > < P r o t e c t S t y l e s > 0 < / P r o t e c t S t y l e s > < P r o t e c t S h a p e s > 0 < / P r o t e c t S h a p e s > < P r o t e c t M a s t e r s > 0 < / P r o t e c t M a s t e r s > < P r o t e c t B k g n d s > 0 < / P r o t e c t B k g n d s > < / D o c u m e n t S e t t i n g s > < C o l o r s > < C o l o r E n t r y I X = ' 2 4 ' R G B = ' # 0 0 0 0 0 0 ' / > < C o l o r E n t r y I X = ' 2 5 ' R G B = ' # F F F F F F ' / > < C o l o r E n t r y I X = ' 2 6 ' R G B = ' # F F 0 0 0 0 ' / > < C o l o r E n t r y I X = ' 2 7 ' R G B = ' # 0 0 F F 0 0 ' / > < C o l o r E n t r y I X = ' 2 8 ' R G B = ' # 0 0 0 0 F F ' / > < C o l o r E n t r y I X = ' 2 9 ' R G B = ' # F F F F 0 0 ' / > < C o l o r E n t r y I X = ' 3 0 ' R G B = ' # F F 0 0 F F ' / > < C o l o r E n t r y I X = ' 3 1 ' R G B = ' # 0 0 F F F F ' / > < C o l o r E n t r y I X = ' 3 2 ' R G B = ' # 8 0 0 0 0 0 ' / > < C o l o r E n t r y I X = ' 3 3 ' R G B = ' # 0 0 8 0 0 0 ' / > < C o l o r E n t r y I X = ' 3 4 ' R G B = ' # 0 0 0 0 8 0 ' / > < C o l o r E n t r y I X = ' 3 5 ' R G B = ' # 8 0 8 0 0 0 ' / > < C o l o r E n t r y I X = ' 3 6 ' R G B = ' # 8 0 0 0 8 0 ' / > < C o l o r E n t r y I X = ' 3 7 ' R G B = ' # 0 0 8 0 8 0 ' / > < C o l o r E n t r y I X = ' 3 8 ' R G B = ' # C 0 C 0 C 0 ' / > < C o l o r E n t r y I X = ' 3 9 ' R G B = ' # E 6 E 6 E 6 ' / > < C o l o r E n t r y I X = ' 4 0 ' R G B = ' # C D C D C D ' / > < C o l o r E n t r y I X = ' 4 1 ' R G B = ' # B 3 B 3 B 3 ' / > < C o l o r E n t r y I X = ' 4 2 ' R G B = ' # 9 A 9 A 9 A ' / > < C o l o r E n t r y I X = ' 4 3 ' R G B = ' # 8 0 8 0 8 0 ' / > < C o l o r E n t r y I X = ' 4 4 ' R G B = ' # 6 6 6 6 6 6 ' / > < C o l o r E n t r y I X = ' 4 5 ' R G B = ' # 4 D 4 D 4 D ' / > < C o l o r E n t r y I X = ' 4 6 ' R G B = ' # 3 3 3 3 3 3 ' / > < C o l o r E n t r y I X = ' 4 7 ' R G B = ' # 1 A 1 A 1 A ' / > < C o l o r E n t r y I X = ' 4 8 ' R G B = ' # 7 F 7 F 7 F ' / > < C o l o r E n t r y I X = ' 4 9 ' R G B = ' # 9 9 0 0 4 D ' / > < C o l o r E n t r y I X = ' 5 0 ' R G B = ' # F F 0 0 8 0 ' / > < C o l o r E n t r y I X = ' 5 1 ' R G B = ' # C C 0 0 6 6 ' / > < / C o l o r s > < F a c e N a m e s > < F a c e N a m e N a m e U = ' C a l i b r i ' U n i c o d e R a n g e s = ' - 5 3 6 8 5 9 9 0 5 - 1 0 7 3 7 3 2 4 8 5 9 0 ' C h a r S e t s = ' 5 3 6 8 7 1 4 2 3 0 ' P a n o s e = ' 2 1 5 5 2 2 2 4 3 2 4 ' F l a g s = ' 3 2 5 ' / > < / F a c e N a m e s > < S t y l e S h e e t s > < S t y l e S h e e t I D = ' 0 ' N a m e U = ' N o S t y l e ' I s C u s t o m N a m e U = ' 1 ' N a m e = ' N o S t y l e ' I s C u s t o m N a m e = ' 1 ' > < C e l l N = ' E n a b l e L i n e P r o p s ' V = ' 1 ' / > < C e l l N = ' E n a b l e F i l l P r o p s ' V = ' 1 ' / > < C e l l N = ' E n a b l e T e x t P r o p s ' V = ' 1 ' / > < C e l l N = ' H i d e F o r A p p l y ' V = ' 0 ' / > < C e l l N = ' L i n e W e i g h t ' V = ' 0 . 0 1 0 4 1 6 6 6 6 6 6 6 6 6 6 6 7 ' / > < C e l l N = ' L i n e C o l o r ' V = ' 0 ' / > < C e l l N = ' L i n e P a t t e r n ' V = ' 1 ' / > < C e l l N = ' R o u n d i n g ' V = ' 0 ' / > < C e l l N = ' E n d A r r o w S i z e ' V = ' 2 ' / > < C e l l N = ' B e g i n A r r o w ' V = ' 0 ' / > < C e l l N = ' E n d A r r o w ' V = ' 0 ' / > < C e l l N = ' L i n e C a p ' V = ' 0 ' / > < C e l l N = ' B e g i n A r r o w S i z e ' V = ' 2 ' / > < C e l l N = ' L i n e C o l o r T r a n s ' V = ' 0 ' / > < C e l l N = ' C o m p o u n d T y p e ' V = ' 0 ' / > < C e l l N = ' F i l l F o r e g n d ' V = ' 1 ' / > < C e l l N = ' F i l l B k g n d ' V = ' 0 ' / > < C e l l N = ' F i l l P a t t e r n ' V = ' 1 ' / > < C e l l N = ' S h d w F o r e g n d ' V = ' 0 ' / > < C e l l N = ' S h d w P a t t e r n ' V = ' 0 ' / > < C e l l N = ' F i l l F o r e g n d T r a n s ' V = ' 0 ' / > < C e l l N = ' F i l l B k g n d T r a n s ' V = ' 0 ' / > < C e l l N = ' S h d w F o r e g n d T r a n s ' V = ' 0 ' / > < C e l l N = ' S h a p e S h d w T y p e ' V = ' 0 ' / > < C e l l N = ' S h a p e S h d w O f f s e t X ' V = ' 0 ' / > < C e l l N = ' S h a p e S h d w O f f s e t Y ' V = ' 0 ' / > < C e l l N = ' S h a p e S h d w O b l i q u e A n g l e ' V = ' 0 ' / > < C e l l N = ' S h a p e S h d w S c a l e F a c t o r ' V = ' 1 ' / > < C e l l N = ' S h a p e S h d w B l u r ' V = ' 0 ' / > < C e l l N = ' S h a p e S h d w S h o w ' V = ' 0 ' / > < C e l l N = ' L e f t M a r g i n ' V = ' 0 ' / > < C e l l N = ' R i g h t M a r g i n ' V = ' 0 ' / > < C e l l N = ' T o p M a r g i n ' V = ' 0 ' / > < C e l l N = ' B o t t o m M a r g i n ' V = ' 0 ' / > < C e l l N = ' V e r t i c a l A l i g n ' V = ' 1 ' / > < C e l l N = ' T e x t B k g n d ' V = ' 0 ' / > < C e l l N = ' D e f a u l t T a b S t o p ' V = ' 0 . 5 ' / > < C e l l N = ' T e x t D i r e c t i o n ' V = ' 0 ' / > < C e l l N = ' T e x t B k g n d T r a n s ' V = ' 0 ' / > < C e l l N = ' L o c k W i d t h ' V = ' 0 ' / > < C e l l N = ' L o c k H e i g h t ' V = ' 0 ' / > < C e l l N = ' L o c k M o v e X ' V = ' 0 ' / > < C e l l N = ' L o c k M o v e Y ' V = ' 0 ' / > < C e l l N = ' L o c k A s p e c t ' V = ' 0 ' / > < C e l l N = ' L o c k D e l e t e ' V = ' 0 ' / > < C e l l N = ' L o c k B e g i n ' V = ' 0 ' / > < C e l l N = ' L o c k E n d ' V = ' 0 ' / > < C e l l N = ' L o c k R o t a t e ' V = ' 0 ' / > < C e l l N = ' L o c k C r o p ' V = ' 0 ' / > < C e l l N = ' L o c k V t x E d i t ' V = ' 0 ' / > < C e l l N = ' L o c k T e x t E d i t ' V = ' 0 ' / > < C e l l N = ' L o c k F o r m a t ' V = ' 0 ' / > < C e l l N = ' L o c k G r o u p ' V = ' 0 ' / > < C e l l N = ' L o c k C a l c W H ' V = ' 0 ' / > < C e l l N = ' L o c k S e l e c t ' V = ' 0 ' / > < C e l l N = ' L o c k C u s t P r o p ' V = ' 0 ' / > < C e l l N = ' L o c k F r o m G r o u p F o r m a t ' V = ' 0 ' / > < C e l l N = ' L o c k T h e m e C o l o r s ' V = ' 0 ' / > < C e l l N = ' L o c k T h e m e E f f e c t s ' V = ' 0 ' / > < C e l l N = ' L o c k T h e m e C o n n e c t o r s ' V = ' 0 ' / > < C e l l N = ' L o c k T h e m e F o n t s ' V = ' 0 ' / > < C e l l N = ' L o c k T h e m e I n d e x ' V = ' 0 ' / > < C e l l N = ' L o c k R e p l a c e ' V = ' 0 ' / > < C e l l N = ' L o c k V
"visio/windows.xml" : "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />" , "visio/_rels/document.xml.rels" : "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>" ,
"visio/masters/_rels/masters.xml.rels" : '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>' , "visio/masters/masters.xml" : "<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>" ,
"visio/masters/master1.xml" : "<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>" } ,
d ; for ( d in c ) if ( 1 < b && d == v . CONTENT _TYPES _XML ) { for ( var e = mxUtils . parseXml ( c [ d ] ) , f = e . documentElement , g = f . children , h = null , t = 0 ; t < g . length ; t ++ ) { var l = g [ t ] ; "/visio/pages/page1.xml" == l . getAttribute ( v . PART _NAME ) && ( h = l ) } for ( t = 2 ; t <= b ; t ++ ) g = h . cloneNode ( ) , g . setAttribute ( v . PART _NAME , "/visio/pages/page" + t + ".xml" ) , f . appendChild ( g ) ; z ( a , d , e , ! 0 ) } else a . file ( d , c [ d ] ) } function f ( a ) { var b = { } ; try { var c = a . getGraphBounds ( ) . clone ( ) , d = a . view . scale , e = a . view . translate , f = Math . round ( c . x / d ) - e . x , g = Math . round ( c . y / d ) - e . y , h = a . pageFormat . width ,
t = a . pageFormat . height ; 0 > f && ( f += Math . ceil ( ( e . x - c . x / d ) / h ) * h ) ; 0 > g && ( g += Math . ceil ( ( e . y - c . y / d ) / t ) * t ) ; var l = Math . max ( 1 , Math . ceil ( ( c . width / d + f ) / h ) ) , p = Math . max ( 1 , Math . ceil ( ( c . height / d + g ) / t ) ) ; b . gridEnabled = a . gridEnabled ; b . gridSize = a . gridSize ; b . guidesEnabled = a . graphHandler . guidesEnabled ; b . pageVisible = a . pageVisible ; b . pageScale = a . pageScale ; b . pageWidth = a . pageFormat . width * l ; b . pageHeight = a . pageFormat . height * p ; b . backgroundClr = a . background ; b . mathEnabled = a . mathEnabled ; b . shadowVisible = a . shadowVisible } catch ( I ) { } return b }
function d ( b , c , d , e ) { return a ( b , c / v . CONVERSION _FACTOR , d , e ) } function a ( a , b , c , d ) { c = c . createElement ( "Cell" ) ; c . setAttribute ( "N" , a ) ; c . setAttribute ( "V" , b ) ; d && c . setAttribute ( "F" , d ) ; return c } function e ( a , b , c , e , f ) { var g = f . createElement ( "Row" ) ; g . setAttribute ( "T" , a ) ; g . setAttribute ( "IX" , b ) ; g . appendChild ( d ( "X" , c , f ) ) ; g . appendChild ( d ( "Y" , e , f ) ) ; return g } function c ( b , c , e ) { var f = b . style [ mxConstants . STYLE _FILLCOLOR ] ; if ( f && "none" != f ) { if ( c . appendChild ( a ( "FillForegnd" , f , e ) ) , ( f = b . style [ mxConstants . STYLE _GRADIENTCOLOR ] ) &&
"none" != f ) { c . appendChild ( a ( "FillBkgnd" , f , e ) ) ; var f = b . style [ mxConstants . STYLE _GRADIENT _DIRECTION ] , g = 28 ; if ( f ) switch ( f ) { case mxConstants . DIRECTION _EAST : g = 25 ; break ; case mxConstants . DIRECTION _WEST : g = 27 ; break ; case mxConstants . DIRECTION _NORTH : g = 30 } c . appendChild ( a ( "FillPattern" , g , e ) ) } } else c . appendChild ( a ( "FillPattern" , 0 , e ) ) ; ( f = b . style [ mxConstants . STYLE _STROKECOLOR ] ) && "none" != f ? c . appendChild ( a ( "LineColor" , f , e ) ) : c . appendChild ( a ( "LinePattern" , 0 , e ) ) ; ( f = b . style [ mxConstants . STYLE _STROKEWIDTH ] ) && c . appendChild ( d ( "LineWeight" ,
f , e ) ) ; ( g = b . style [ mxConstants . STYLE _OPACITY ] ) ? f = g : ( f = b . style [ mxConstants . STYLE _FILL _OPACITY ] , g = b . style [ mxConstants . STYLE _STROKE _OPACITY ] ) ; f && c . appendChild ( a ( "FillForegndTrans" , 1 - parseInt ( f ) / 100 , e ) ) ; g && c . appendChild ( a ( "LineColorTrans" , 1 - parseInt ( g ) / 100 , e ) ) ; if ( 1 == b . style [ mxConstants . STYLE _DASHED ] ) { f = b . style [ mxConstants . STYLE _DASH _PATTERN ] ; g = 9 ; if ( f ) switch ( f ) { case "1 1" : g = 10 ; break ; case "1 2" : g = 3 ; break ; case "1 4" : g = 17 } c . appendChild ( a ( "LinePattern" , g , e ) ) } 1 == b . style [ mxConstants . STYLE _SHADOW ] && ( c . appendChild ( a ( "ShdwPattern" ,
1 , e ) ) , c . appendChild ( a ( "ShdwForegnd" , "#000000" , e ) ) , c . appendChild ( a ( "ShdwForegndTrans" , . 6 , e ) ) , c . appendChild ( a ( "ShapeShdwType" , 1 , e ) ) , c . appendChild ( a ( "ShapeShdwOffsetX" , "0.02946278254943948" , e ) ) , c . appendChild ( a ( "ShapeShdwOffsetY" , "-0.02946278254943948" , e ) ) , c . appendChild ( a ( "ShapeShdwScaleFactor" , "1" , e ) ) , c . appendChild ( a ( "ShapeShdwBlur" , "0.05555555555555555" , e ) ) , c . appendChild ( a ( "ShapeShdwShow" , 2 , e ) ) ) ; 1 == b . style [ mxConstants . STYLE _FLIPH ] && c . appendChild ( a ( "FlipX" , 1 , e ) ) ; 1 == b . style [ mxConstants . STYLE _FLIPV ] &&
c . appendChild ( a ( "FlipY" , 1 , e ) ) ; 1 == b . style [ mxConstants . STYLE _ROUNDED ] && c . appendChild ( d ( "Rounding" , . 1 * b . cell . geometry . width , e ) ) ; ( b = b . style [ mxConstants . STYLE _LABEL _BACKGROUNDCOLOR ] ) && c . appendChild ( a ( "TextBkgnd" , b , e ) ) } function g ( a , b , c , e ) { var f = c . createElement ( "Shape" ) ; f . setAttribute ( "ID" , a ) ; f . setAttribute ( "NameU" , "Shape" + a ) ; f . setAttribute ( "LineStyle" , "0" ) ; f . setAttribute ( "FillStyle" , "0" ) ; f . setAttribute ( "TextStyle" , "0" ) ; a = b . width / 2 ; var g = b . height / 2 ; f . appendChild ( d ( "PinX" , b . x + a + p . shiftX , c ) ) ; f . appendChild ( d ( "PinY" ,
e - b . y - g - p . shiftY , c ) ) ; f . appendChild ( d ( "Width" , b . width , c ) ) ; f . appendChild ( d ( "Height" , b . height , c ) ) ; f . appendChild ( d ( "LocPinX" , a , c ) ) ; f . appendChild ( d ( "LocPinY" , g , c ) ) ; return f } function l ( a , b ) { var c = v . ARROWS _MAP [ ( null == a ? "none" : a ) + "|" + ( null == b ? "1" : b ) ] ; return null != c ? c : 1 } function h ( a ) { return null == a ? 2 : 2 >= a ? 0 : 3 >= a ? 1 : 5 >= a ? 2 : 7 >= a ? 3 : 9 >= a ? 4 : 22 >= a ? 5 : 6 } function n ( b , f , g , m ) { var t = f . view . getState ( b ) ; f = g . createElement ( "Shape" ) ; f . setAttribute ( "ID" , b . id ) ; f . setAttribute ( "NameU" , "Dynamic connector." + b . id ) ; f . setAttribute ( "Name" ,
"Dynamic connector." + b . id ) ; f . setAttribute ( "Type" , "Shape" ) ; f . setAttribute ( "Master" , "4" ) ; var n = p . state , r = t . absolutePoints , q = t . cellBounds , y = q . width / 2 , v = q . height / 2 ; f . appendChild ( d ( "PinX" , q . x + y , g ) ) ; f . appendChild ( d ( "PinY" , m - q . y - v , g ) ) ; f . appendChild ( d ( "Width" , q . width , g ) ) ; f . appendChild ( d ( "Height" , q . height , g ) ) ; f . appendChild ( d ( "LocPinX" , y , g ) ) ; f . appendChild ( d ( "LocPinY" , v , g ) ) ; p . newEdge ( f , t , g ) ; y = function ( a , b ) { var c = a . x , d = a . y , c = c * n . scale - q . x + n . dx + p . shiftX , d = ( b ? 0 : q . height ) - d * n . scale + q . y - n . dy - p . shiftY ; return { x : c ,
2017-06-21 12:46:47 +00:00
y : d } } ; v = y ( r [ 0 ] , ! 0 ) ; f . appendChild ( d ( "BeginX" , q . x + v . x , g , "_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)" ) ) ; f . appendChild ( d ( "BeginY" , m - q . y + v . y , g , "_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)" ) ) ; v = y ( r [ r . length - 1 ] , ! 0 ) ; f . appendChild ( d ( "EndX" , q . x + v . x , g , "_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)" ) ) ; f . appendChild ( d ( "EndY" , m - q . y + v . y , g , "_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)" ) ) ; f . appendChild ( a ( "BegTrigger" , "2" , g , b . source ? "_XFTRIGGER(Sheet." + b . source . id + "!EventXFMod)" : null ) ) ; f . appendChild ( a ( "EndTrigger" ,
"2" , g , b . target ? "_XFTRIGGER(Sheet." + b . target . id + "!EventXFMod)" : null ) ) ; f . appendChild ( a ( "ConFixedCode" , "6" , g ) ) ; f . appendChild ( a ( "LayerMember" , "0" , g ) ) ; c ( t , f , g ) ; m = t . style [ mxConstants . STYLE _STARTSIZE ] ; b = l ( t . style [ mxConstants . STYLE _STARTARROW ] , t . style [ mxConstants . STYLE _STARTFILL ] ) ; f . appendChild ( a ( "BeginArrow" , b , g ) ) ; f . appendChild ( a ( "BeginArrowSize" , h ( m ) , g ) ) ; m = t . style [ mxConstants . STYLE _ENDSIZE ] ; b = l ( t . style [ mxConstants . STYLE _ENDARROW ] , t . style [ mxConstants . STYLE _ENDFILL ] ) ; f . appendChild ( a ( "EndArrow" , b , g ) ) ; f . appendChild ( a ( "EndArrowSize" ,
2017-06-20 11:05:40 +00:00
h ( m ) , g ) ) ; null != t . text && t . text . checkBounds ( ) && ( p . save ( ) , t . text . paint ( p ) , p . restore ( ) ) ; t = g . createElement ( "Section" ) ; t . setAttribute ( "N" , "Geometry" ) ; t . setAttribute ( "IX" , "0" ) ; for ( b = 0 ; b < r . length ; b ++ ) m = y ( r [ b ] ) , t . appendChild ( e ( 0 == b ? "MoveTo" : "LineTo" , b + 1 , m . x , m . y , g ) ) ; t . appendChild ( a ( "NoFill" , "1" , g ) ) ; t . appendChild ( a ( "NoLine" , "0" , g ) ) ; f . appendChild ( t ) ; return f } function q ( a , b , d , e , f ) { var h = a . geometry ; if ( null != h ) { h . relative && f && ( h = h . clone ( ) , h . x *= f . width , h . y *= f . height , h . relative = 0 ) ; if ( ! a . treatAsSingle && 0 < a . getChildCount ( ) ) { e =
g ( a . id + "10000" , h , d , e ) ; e . setAttribute ( "Type" , "Group" ) ; f = d . createElement ( "Shapes" ) ; p . save ( ) ; p . translate ( - h . x , - h . y ) ; var m = h . clone ( ) ; m . x = 0 ; m . y = 0 ; a . setGeometry ( m ) ; a . treatAsSingle = ! 0 ; m = q ( a , b , d , h . height , h ) ; a . treatAsSingle = ! 1 ; a . setGeometry ( h ) ; f . appendChild ( m ) ; for ( var l = 0 ; l < a . children . length ; l ++ ) m = q ( a . children [ l ] , b , d , h . height , h ) , f . appendChild ( m ) ; e . appendChild ( f ) ; p . restore ( ) ; return e } return a . vertex ? ( e = g ( a . id , h , d , e ) , a = b . view . getState ( a ) , c ( a , e , d ) , p . newShape ( e , a , d ) , null != a . text && a . text . checkBounds ( ) && ( p . save ( ) ,
a . text . paint ( p ) , p . restore ( ) ) , null != a . shape && a . shape . checkBounds ( ) && ( p . save ( ) , a . shape . paint ( p ) , p . restore ( ) ) , e . appendChild ( p . getShapeGeo ( ) ) , p . endShape ( ) , e . setAttribute ( "Type" , p . getShapeType ( ) ) , e ) : n ( a , b , d , e ) } return null } function x ( a , b ) { var c = mxUtils . createXmlDocument ( ) , d = c . createElement ( "PageContents" ) ; d . setAttribute ( "xmlns" , v . XMLNS ) ; d . setAttribute ( "xmlns:r" , v . XMLNS _R ) ; d . setAttribute ( "xml:space" , v . XML _SPACE ) ; var e = c . createElement ( "Shapes" ) ; d . appendChild ( e ) ; var f = a . model , g = a . view . translate , h = a . view . scale ,
l = a . getGraphBounds ( ) ; p . shiftX = 0 ; p . shiftY = 0 ; if ( l . x / h < g . x || l . y / h < g . y ) p . shiftX = Math . ceil ( ( g . x - l . x / h ) / a . pageFormat . width ) * a . pageFormat . width , p . shiftY = Math . ceil ( ( g . y - l . y / h ) / a . pageFormat . height ) * a . pageFormat . height ; p . save ( ) ; p . translate ( - g . x , - g . y ) ; p . scale ( 1 / h ) ; p . newPage ( ) ; var h = a . getDefaultParent ( ) , n ; for ( n in f . cells ) g = f . cells [ n ] , g . parent == h && ( g = q ( g , a , c , b . pageHeight ) , null != g && e . appendChild ( g ) ) ; e = c . createElement ( "Connects" ) ; d . appendChild ( e ) ; for ( n in f . cells ) g = f . cells [ n ] , g . edge && ( g . source && ( h = c . createElement ( "Connect" ) ,
h . setAttribute ( "FromSheet" , g . id ) , h . setAttribute ( "FromCell" , "BeginX" ) , h . setAttribute ( "ToSheet" , g . source . id ) , e . appendChild ( h ) ) , g . target && ( h = c . createElement ( "Connect" ) , h . setAttribute ( "FromSheet" , g . id ) , h . setAttribute ( "FromCell" , "EndX" ) , h . setAttribute ( "ToSheet" , g . target . id ) , e . appendChild ( h ) ) ) ; c . appendChild ( d ) ; p . restore ( ) ; return c } function z ( a , b , c , d ) { a . file ( b , ( d ? "" : '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ) + mxUtils . getXml ( c ) ) } function E ( b , c , e ) { var f = mxUtils . createXmlDocument ( ) , g = mxUtils . createXmlDocument ( ) ,
h = f . createElement ( "Pages" ) ; h . setAttribute ( "xmlns" , v . XMLNS ) ; h . setAttribute ( "xmlns:r" , v . XMLNS _R ) ; h . setAttribute ( "xml:space" , v . XML _SPACE ) ; var l = g . createElement ( "Relationships" ) ; l . setAttribute ( "xmlns" , v . RELS _XMLNS ) ; var p = 1 , n ; for ( n in c ) { var t = "page" + p + ".xml" , q = f . createElement ( "Page" ) ; q . setAttribute ( "ID" , p - 1 ) ; q . setAttribute ( "NameU" , n ) ; q . setAttribute ( "Name" , n ) ; var w = f . createElement ( "PageSheet" ) , x = e [ n ] ; w . appendChild ( d ( "PageWidth" , x . pageWidth , f ) ) ; w . appendChild ( d ( "PageHeight" , x . pageHeight , f ) ) ; w . appendChild ( a ( "PageScale" ,
x . pageScale , f ) ) ; w . appendChild ( a ( "DrawingScale" , 1 , f ) ) ; x = f . createElement ( "Rel" ) ; x . setAttribute ( "r:id" , "rId" + p ) ; var B = f . createElement ( "Section" ) ; B . setAttribute ( "N" , "Layer" ) ; var A = f . createElement ( "Row" ) ; A . setAttribute ( "IX" , "0" ) ; B . appendChild ( A ) ; A . appendChild ( a ( "Name" , "Connector" , f ) ) ; A . appendChild ( a ( "Color" , "255" , f ) ) ; A . appendChild ( a ( "Status" , "0" , f ) ) ; A . appendChild ( a ( "Visible" , "1" , f ) ) ; A . appendChild ( a ( "Print" , "1" , f ) ) ; A . appendChild ( a ( "Active" , "0" , f ) ) ; A . appendChild ( a ( "Lock" , "0" , f ) ) ; A . appendChild ( a ( "Snap" , "1" ,
f ) ) ; A . appendChild ( a ( "Glue" , "1" , f ) ) ; A . appendChild ( a ( "NameUniv" , "Connector" , f ) ) ; A . appendChild ( a ( "ColorTrans" , "0" , f ) ) ; w . appendChild ( B ) ; q . appendChild ( w ) ; q . appendChild ( x ) ; h . appendChild ( q ) ; q = g . createElement ( "Relationship" ) ; q . setAttribute ( "Id" , "rId" + p ) ; q . setAttribute ( "Type" , v . PAGES _TYPE ) ; q . setAttribute ( "Target" , t ) ; l . appendChild ( q ) ; z ( b , v . VISIO _PAGES + t , c [ n ] ) ; p ++ } f . appendChild ( h ) ; g . appendChild ( l ) ; z ( b , v . VISIO _PAGES + "pages.xml" , f ) ; z ( b , v . VISIO _PAGES + "_rels/pages.xml.rels" , g ) } function F ( a , b ) { var c = v . VISIO _PAGES _RELS +
"page" + b + ".xml.rels" , d = mxUtils . createXmlDocument ( ) , e = d . createElement ( "Relationships" ) ; e . setAttribute ( "xmlns" , v . RELS _XMLNS ) ; var f = d . createElement ( "Relationship" ) ; f . setAttribute ( "Type" , "http://schemas.microsoft.com/visio/2010/relationships/master" ) ; f . setAttribute ( "Id" , "rId1" ) ; f . setAttribute ( "Target" , "../masters/master1.xml" ) ; e . appendChild ( f ) ; var g = p . images ; if ( 0 < g . length ) for ( var h = 0 ; h < g . length ; h ++ ) f = d . createElement ( "Relationship" ) , f . setAttribute ( "Type" , v . XMLNS _R + "/image" ) , f . setAttribute ( "Id" , "rId" + ( h +
2 ) ) , f . setAttribute ( "Target" , "../media/" + g [ h ] ) , e . appendChild ( f ) ; d . appendChild ( e ) ; z ( a , c , d ) } var v = this , p = new mxVsdxCanvas2D ; this . exportCurrentDiagrams = function ( ) { try { var a = new JSZip ; p . init ( a ) ; pages = { } ; modelsAttr = { } ; var c = null != w . pages ? w . pages . length : 1 ; if ( null != w . pages ) { for ( var d = w . currentPage , e = 0 ; e < w . pages . length ; e ++ ) { var g = w . pages [ e ] ; w . selectPage ( g ) ; var h = g . getName ( ) , l = w . editor . graph , n = f ( l ) ; pages [ h ] = x ( l , n ) ; F ( a , e + 1 ) ; modelsAttr [ h ] = n } w . selectPage ( d ) } else l = w . editor . graph , n = f ( l ) , h = "Page1" , pages [ h ] = x ( l ,
n ) , F ( a , 1 ) , modelsAttr [ h ] = n ; b ( a , c ) ; E ( a , pages , modelsAttr ) ; var q = function ( ) { 0 < p . filesLoading ? setTimeout ( q , 200 * p . filesLoading ) : a . generateAsync ( { type : "base64" } ) . then ( function ( a ) { var b = w . getBaseFilename ( ) ; w . saveData ( b + ".vsdx" , "vsdx" , a , "application/vnd.visio2013" , ! 0 ) } ) } ; q ( ) ; return ! 0 } catch ( S ) { return console . log ( S ) , ! 1 } } } VsdxExport . prototype . CONVERSION _FACTOR = 101.6 ; VsdxExport . prototype . PAGES _TYPE = "http://schemas.microsoft.com/visio/2010/relationships/page" ; VsdxExport . prototype . RELS _XMLNS = "http://schemas.openxmlformats.org/package/2006/relationships" ;
VsdxExport . prototype . XML _SPACE = "preserve" ; VsdxExport . prototype . XMLNS _R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" ; VsdxExport . prototype . XMLNS = "http://schemas.microsoft.com/office/visio/2012/main" ; VsdxExport . prototype . VISIO _PAGES = "visio/pages/" ; VsdxExport . prototype . PREFEX = "com/mxgraph/io/vsdx/resources/export/" ; VsdxExport . prototype . VSDX _ENC = "ISO-8859-1" ; VsdxExport . prototype . PART _NAME = "PartName" ; VsdxExport . prototype . CONTENT _TYPES _XML = "[Content_Types].xml" ;
VsdxExport . prototype . VISIO _PAGES _RELS = "visio/pages/_rels/" ;
VsdxExport . prototype . ARROWS _MAP = { "none|1" : 0 , "none|0" : 0 , "open|1" : 1 , "open|0" : 1 , "block|1" : 4 , "block|0" : 14 , "classic|1" : 5 , "classic|0" : 17 , "oval|1" : 10 , "oval|0" : 20 , "diamond|1" : 11 , "diamond|0" : 22 , "blockThin|1" : 2 , "blockThin|0" : 15 , "dash|1" : 23 , "dash|0" : 23 , "ERone|1" : 24 , "ERone|0" : 24 , "ERmandOne|1" : 25 , "ERmandOne|0" : 25 , "ERmany|1" : 27 , "ERmany|0" : 27 , "ERoneToMany|1" : 28 , "ERoneToMany|0" : 28 , "ERzeroToMany|1" : 29 , "ERzeroToMany|0" : 29 , "ERzeroToOne|1" : 30 , "ERzeroToOne|0" : 30 , "openAsync|1" : 9 , "openAsync|0" : 9 } ; function mxVsdxCanvas2D ( w ) { mxAbstractCanvas2D . call ( this ) } mxUtils . extend ( mxVsdxCanvas2D , mxAbstractCanvas2D ) ; mxVsdxCanvas2D . prototype . textEnabled = ! 0 ; mxVsdxCanvas2D . prototype . init = function ( w ) { this . filesLoading = 0 ; this . zip = w } ;
mxVsdxCanvas2D . prototype . createGeoSec = function ( ) { null != this . geoSec && this . shape . appendChild ( this . geoSec ) ; var w = this . xmlDoc . createElement ( "Section" ) ; w . setAttribute ( "N" , "Geometry" ) ; w . setAttribute ( "IX" , this . geoIndex ++ ) ; this . geoSec = w ; this . geoStepIndex = 1 ; this . lastMoveToY = this . lastMoveToX = this . lastY = this . lastX = 0 } ; mxVsdxCanvas2D . prototype . newShape = function ( w , b , f ) { this . geoIndex = 0 ; this . shape = w ; this . cellState = b ; this . xmGeo = b . cell . geometry ; this . xmlDoc = f ; this . shapeImg = this . geoSec = null ; this . shapeType = "Shape" ; this . createGeoSec ( ) } ;
mxVsdxCanvas2D . prototype . newEdge = function ( w , b , f ) { this . shape = w ; this . cellState = b ; this . xmGeo = b . cellBounds ; this . xmlDoc = f } ; mxVsdxCanvas2D . prototype . endShape = function ( ) { null != this . shapeImg && this . addForeignData ( this . shapeImg . type , this . shapeImg . id ) } ; mxVsdxCanvas2D . prototype . newPage = function ( ) { this . images = [ ] } ; mxVsdxCanvas2D . prototype . getShapeType = function ( ) { return this . shapeType } ; mxVsdxCanvas2D . prototype . getShapeGeo = function ( ) { return this . geoSec } ;
mxVsdxCanvas2D . prototype . createCellElemScaled = function ( w , b , f ) { return this . createCellElem ( w , b / VsdxExport . prototype . CONVERSION _FACTOR , f ) } ; mxVsdxCanvas2D . prototype . createCellElem = function ( w , b , f ) { var d = this . xmlDoc . createElement ( "Cell" ) ; d . setAttribute ( "N" , w ) ; d . setAttribute ( "V" , b ) ; f && d . setAttribute ( "F" , f ) ; return d } ;
mxVsdxCanvas2D . prototype . createRowRel = function ( w , b , f , d , a , e , c , g ) { var l = this . xmlDoc . createElement ( "Row" ) ; l . setAttribute ( "T" , w ) ; l . setAttribute ( "IX" , b ) ; l . appendChild ( this . createCellElem ( "X" , f ) ) ; l . appendChild ( this . createCellElem ( "Y" , d ) ) ; null != a && l . appendChild ( this . createCellElem ( "A" , a ) ) ; null != e && l . appendChild ( this . createCellElem ( "B" , e ) ) ; null != c && l . appendChild ( this . createCellElem ( "C" , c ) ) ; null != g && l . appendChild ( this . createCellElem ( "D" , g ) ) ; return l } ;
2017-06-06 15:37:03 +00:00
mxVsdxCanvas2D . prototype . begin = function ( ) { 1 < this . geoStepIndex && this . createGeoSec ( ) } ;
2017-06-20 11:05:40 +00:00
mxVsdxCanvas2D . prototype . rect = function ( w , b , f , d ) { 1 < this . geoStepIndex && this . createGeoSec ( ) ; var a = this . state ; f *= a . scale ; d *= a . scale ; var e = this . xmGeo ; w = ( w - e . x + a . dx ) * a . scale / f ; b = ( e . height - b + e . y - a . dy ) * a . scale / d ; this . geoSec . appendChild ( this . createRowRel ( "RelMoveTo" , this . geoStepIndex ++ , w , b ) ) ; this . geoSec . appendChild ( this . createRowRel ( "RelLineTo" , this . geoStepIndex ++ , w + 1 , b ) ) ; this . geoSec . appendChild ( this . createRowRel ( "RelLineTo" , this . geoStepIndex ++ , w + 1 , b - 1 ) ) ; this . geoSec . appendChild ( this . createRowRel ( "RelLineTo" ,
this . geoStepIndex ++ , w , b - 1 ) ) ; this . geoSec . appendChild ( this . createRowRel ( "RelLineTo" , this . geoStepIndex ++ , w , b ) ) } ; mxVsdxCanvas2D . prototype . roundrect = function ( w , b , f , d , a , e ) { this . rect ( w , b , f , d ) ; this . shape . appendChild ( this . createCellElemScaled ( "Rounding" , a ) ) } ;
mxVsdxCanvas2D . prototype . ellipse = function ( w , b , f , d ) { 1 < this . geoStepIndex && this . createGeoSec ( ) ; var a = this . state ; f *= a . scale ; d *= a . scale ; var e = this . xmGeo , c = e . height * a . scale , g = e . width * a . scale ; w = ( w - e . x + a . dx ) * a . scale ; b = c + ( - b + e . y - a . dy ) * a . scale ; a = d / c ; e = f / g ; this . geoSec . appendChild ( this . createRowRel ( "RelMoveTo" , this . geoStepIndex ++ , w / g , b / c - . 5 * a ) ) ; w = this . createRowRel ( "RelEllipticalArcTo" , this . geoStepIndex ++ , w / g , b / c - . 5001 * a , . 5 * e + w / g , b / c - a , 0 ) ; w . appendChild ( this . createCellElem ( "D" , f / d , "Width/Height*" + e / a ) ) ; this . geoSec . appendChild ( w ) } ;
mxVsdxCanvas2D . prototype . moveTo = function ( w , b ) { 1 < this . geoStepIndex && this . createGeoSec ( ) ; this . lastMoveToX = w ; this . lastMoveToY = b ; this . lastX = w ; this . lastY = b ; var f = this . xmGeo , d = this . state ; w = ( w - f . x + d . dx ) * d . scale ; b = ( f . height - b + f . y - d . dy ) * d . scale ; var a = f . height * d . scale , f = f . width * d . scale ; this . geoSec . appendChild ( this . createRowRel ( "RelMoveTo" , this . geoStepIndex ++ , w / f , b / a ) ) } ;
mxVsdxCanvas2D . prototype . lineTo = function ( w , b ) { this . lastX = w ; this . lastY = b ; var f = this . xmGeo , d = this . state ; w = ( w - f . x + d . dx ) * d . scale ; b = ( f . height - b + f . y - d . dy ) * d . scale ; var a = f . height * d . scale , f = f . width * d . scale ; this . geoSec . appendChild ( this . createRowRel ( "RelLineTo" , this . geoStepIndex ++ , w / f , b / a ) ) } ;
mxVsdxCanvas2D . prototype . quadTo = function ( w , b , f , d ) { this . lastX = f ; this . lastY = d ; var a = this . state , e = this . xmGeo , c = e . height * a . scale , g = e . width * a . scale ; w = ( w - e . x + a . dx ) * a . scale ; b = ( e . height - b + e . y - a . dy ) * a . scale ; f = ( f - e . x + a . dx ) * a . scale ; d = ( e . height - d + e . y - a . dy ) * a . scale ; this . geoSec . appendChild ( this . createRowRel ( "RelQuadBezTo" , this . geoStepIndex ++ , f / g , d / c , w / g , b / c ) ) } ;
mxVsdxCanvas2D . prototype . curveTo = function ( w , b , f , d , a , e ) { this . lastX = a ; this . lastY = e ; var c = this . state , g = this . xmGeo , l = g . height * c . scale , h = g . width * c . scale ; w = ( w - g . x + c . dx ) * c . scale ; b = ( g . height - b + g . y - c . dy ) * c . scale ; f = ( f - g . x + c . dx ) * c . scale ; d = ( g . height - d + g . y - c . dy ) * c . scale ; a = ( a - g . x + c . dx ) * c . scale ; e = ( g . height - e + g . y - c . dy ) * c . scale ; this . geoSec . appendChild ( this . createRowRel ( "RelCubBezTo" , this . geoStepIndex ++ , a / h , e / l , w / h , b / l , f / h , d / l ) ) } ;
mxVsdxCanvas2D . prototype . close = function ( ) { this . lastMoveToX == this . lastX && this . lastMoveToY == this . lastY || this . lineTo ( this . lastMoveToX , this . lastMoveToY ) } ; mxVsdxCanvas2D . prototype . addForeignData = function ( w , b ) { var f = this . xmlDoc . createElement ( "ForeignData" ) ; f . setAttribute ( "ForeignType" , "Bitmap" ) ; w = w . toUpperCase ( ) ; "BMP" != w && f . setAttribute ( "CompressionType" , w ) ; var d = this . xmlDoc . createElement ( "Rel" ) ; d . setAttribute ( "r:id" , "rId" + b ) ; f . appendChild ( d ) ; this . shape . appendChild ( f ) ; this . shapeType = "Foreign" } ;
mxVsdxCanvas2D . prototype . image = function ( w , b , f , d , a , e , c , g ) { var l = "image" + ( this . images . length + 1 ) + "." , h ; if ( 0 == a . indexOf ( "data:" ) ) h = a . indexOf ( "base64," ) , e = a . substring ( h + 7 ) , h = a . substring ( 11 , h - 1 ) , l += h , this . zip . file ( "visio/media/" + l , e , { base64 : ! 0 } ) ; else if ( window . XMLHttpRequest ) { a = this . converter . convert ( a ) ; this . filesLoading ++ ; var n = this ; h = a . lastIndexOf ( "." ) ; h = a . substring ( h + 1 ) ; l += h ; e = new XMLHttpRequest ; e . open ( "GET" , a , ! 0 ) ; e . responseType = "arraybuffer" ; e . onreadystatechange = function ( a ) { 4 == this . readyState && 200 ==
this . status && ( n . zip . file ( "visio/media/" + l , this . response ) , n . filesLoading -- ) } ; e . send ( ) } this . images . push ( l ) ; this . shapeImg = { type : h , id : this . images . length + 1 } ; a = this . state ; f *= a . scale ; d *= a . scale ; h = this . xmGeo ; w = ( w - h . x + a . dx ) * a . scale ; b = ( h . height - b + h . y - a . dy ) * a . scale ; this . shape . appendChild ( this . createCellElemScaled ( "ImgOffsetX" , w ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "ImgOffsetY" , b - d ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "ImgWidth" , f ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "ImgHeight" ,
2017-06-12 13:14:07 +00:00
d ) ) } ;
2017-06-20 11:05:40 +00:00
mxVsdxCanvas2D . prototype . text = function ( w , b , f , d , a , e , c , g , l , h , n , q , x ) { if ( this . textEnabled && null != a ) { mxUtils . isNode ( a ) && ( a = mxUtils . getOuterHtml ( a ) ) ; "html" == l && ( "0" != mxUtils . getValue ( this . cellState . style , "nl2Br" , "1" ) && ( a = a . replace ( /\n/g , "" ) . replace ( /<br\s*.?>/g , "\n" ) ) , null == this . html2txtDiv && ( this . html2txtDiv = document . createElement ( "div" ) ) , this . html2txtDiv . innerHTML = a , a = mxUtils . extractTextWithWhitespace ( this . html2txtDiv . childNodes ) ) ; x = this . state ; var z = this . xmGeo ; g = this . cellState . style . fontSize ; l = this . cellState . style . fontFamily ; var E =
mxUtils . getSizeForString ( a , g , l ) ; n = h = 0 ; switch ( e ) { case "right" : h = E . width / 2 ; break ; case "left" : h = - E . width / 2 } switch ( c ) { case "top" : n = E . height / 2 ; break ; case "bottom" : n = - E . height / 2 } f *= x . scale ; d *= x . scale ; d = Math . max ( d , E . height ) ; f = Math . max ( f , E . width ) ; w = ( w - z . x + x . dx ) * x . scale ; b = ( z . height - b + z . y - x . dy ) * x . scale ; e = f / 2 ; c = d / 2 ; this . shape . appendChild ( this . createCellElemScaled ( "TxtPinX" , w ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "TxtPinY" , b ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "TxtWidth" , f ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "TxtHeight" ,
d ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "TxtLocPinX" , e + h ) ) ; this . shape . appendChild ( this . createCellElemScaled ( "TxtLocPinY" , c + n ) ) ; 0 != q && this . shape . appendChild ( this . createCellElemScaled ( "TxtAngle" , ( 360 - q ) * Math . PI / 180 ) ) ; w = this . xmlDoc . createElement ( "Section" ) ; w . setAttribute ( "N" , "Character" ) ; b = this . xmlDoc . createElement ( "Row" ) ; b . setAttribute ( "IX" , 0 ) ; ( f = this . cellState . style . fontColor ) && b . appendChild ( this . createCellElem ( "Color" , f ) ) ; g && b . appendChild ( this . createCellElemScaled ( "Size" , . 97 * g ) ) ; l && b . appendChild ( this . createCellElem ( "Font" ,
l ) ) ; w . appendChild ( b ) ; this . shape . appendChild ( w ) ; w = this . xmlDoc . createElement ( "Text" ) ; b = this . xmlDoc . createElement ( "cp" ) ; b . setAttribute ( "IX" , 0 ) ; w . appendChild ( b ) ; w . textContent = a ; this . shape . appendChild ( w ) } } ; mxVsdxCanvas2D . prototype . rotate = function ( w , b , f , d , a ) { 0 != w && ( b = this . state , d += b . dx , a += b . dy , d *= b . scale , a *= b . scale , this . shape . appendChild ( this . createCellElem ( "Angle" , ( 360 - w ) * Math . PI / 180 ) ) , b . rotation += w , b . rotationCx = d , b . rotationCy = a ) } ;
2017-06-12 13:14:07 +00:00
mxVsdxCanvas2D . prototype . stroke = function ( ) { this . geoSec . appendChild ( this . createCellElem ( "NoFill" , "1" ) ) ; this . geoSec . appendChild ( this . createCellElem ( "NoLine" , "0" ) ) } ; mxVsdxCanvas2D . prototype . fill = function ( ) { this . geoSec . appendChild ( this . createCellElem ( "NoFill" , "0" ) ) ; this . geoSec . appendChild ( this . createCellElem ( "NoLine" , "1" ) ) } ; mxVsdxCanvas2D . prototype . fillAndStroke = function ( ) { this . geoSec . appendChild ( this . createCellElem ( "NoFill" , "0" ) ) ; this . geoSec . appendChild ( this . createCellElem ( "NoLine" , "0" ) ) } ;