2021-01-01 23:13:07 +00:00
import Tn from "process" ; var Un = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : { } ; function createCommonjsModule ( Tn ) { var Un = { exports : { } } ; return Tn ( Un , Un . exports ) , Un . exports } var check = function ( Tn ) { return Tn && Tn . Math == Math && Tn } , Dn = check ( "object" == typeof globalThis && globalThis ) || check ( "object" == typeof window && window ) || check ( "object" == typeof self && self ) || check ( "object" == typeof Un && Un ) || function ( ) { return this } ( ) || Function ( "return this" ) ( ) , fails = function ( Tn ) { try { return ! ! Tn ( ) } catch ( Tn ) { return ! 0 } } , Qn = ! fails ( ( function ( ) { return 7 != Object . defineProperty ( { } , 1 , { get : function ( ) { return 7 } } ) [ 1 ] } ) ) , Hn = { } . propertyIsEnumerable , Gn = Object . getOwnPropertyDescriptor , Vn = { f : Gn && ! Hn . call ( { 1 : 2 } , 1 ) ? function propertyIsEnumerable ( Tn ) { var Un = Gn ( this , Tn ) ; return ! ! Un && Un . enumerable } : Hn } , createPropertyDescriptor = function ( Tn , Un ) { return { enumerable : ! ( 1 & Tn ) , configurable : ! ( 2 & Tn ) , writable : ! ( 4 & Tn ) , value : Un } } , zn = { } . toString , classofRaw = function ( Tn ) { return zn . call ( Tn ) . slice ( 8 , - 1 ) } , Kn = "" . split , $n = fails ( ( function ( ) { return ! Object ( "z" ) . propertyIsEnumerable ( 0 ) } ) ) ? function ( Tn ) { return "String" == classofRaw ( Tn ) ? Kn . call ( Tn , "" ) : Object ( Tn ) } : Object , requireObjectCoercible = function ( Tn ) { if ( null == Tn ) throw TypeError ( "Can't call method on " + Tn ) ; return Tn } , toIndexedObject = function ( Tn ) { return $n ( requireObjectCoercible ( Tn ) ) } , isObject = function ( Tn ) { return "object" == typeof Tn ? null !== Tn : "function" == typeof Tn } , toPrimitive = function ( Tn , Un ) { if ( ! isObject ( Tn ) ) return Tn ; var Dn , Qn ; if ( Un && "function" == typeof ( Dn = Tn . toString ) && ! isObject ( Qn = Dn . call ( Tn ) ) ) return Qn ; if ( "function" == typeof ( Dn = Tn . valueOf ) && ! isObject ( Qn = Dn . call ( Tn ) ) ) return Qn ; if ( ! Un && "function" == typeof ( Dn = Tn . toString ) && ! isObject ( Qn = Dn . call ( Tn ) ) ) return Qn ; throw TypeError ( "Can't convert object to primitive value" ) } , Wn = { } . hasOwnProperty , has = function ( Tn , Un ) { return Wn . call ( Tn , Un ) } , Xn = Dn . document , Yn = isObject ( Xn ) && isObject ( Xn . createElement ) , documentCreateElement = function ( Tn ) { return Yn ? Xn . createElement ( Tn ) : { } } , Jn = ! Qn && ! fails ( ( function ( ) { return 7 != Object . defineProperty ( documentCreateElement ( "div" ) , "a" , { get : function ( ) { return 7 } } ) . a } ) ) , Zn = Object . getOwnPropertyDescriptor , er = { f : Qn ? Zn : function getOwnPropertyDescriptor ( Tn , Un ) { if ( Tn = toIndexedObject ( Tn ) , Un = toPrimitive ( Un , ! 0 ) , Jn ) try { return Zn ( Tn , Un ) } catch ( Tn ) { } if ( has ( Tn , Un ) ) return createPropertyDescriptor ( ! Vn . f . call ( Tn , Un ) , Tn [ Un ] ) } } , anObject = function ( Tn ) { if ( ! isObject ( Tn ) ) throw TypeError ( String ( Tn ) + " is not an object" ) ; return Tn } , tr = Object . defineProperty , nr = { f : Qn ? tr : function defineProperty ( Tn , Un , Dn ) { if ( anObject ( Tn ) , Un = toPrimitive ( Un , ! 0 ) , anObject ( Dn ) , Jn ) try { return tr ( Tn , Un , Dn ) } catch ( Tn ) { } if ( "get" in Dn || "set" in Dn ) throw TypeError ( "Accessors not supported" ) ; return "value" in Dn && ( Tn [ Un ] = Dn . value ) , Tn } } , rr = Qn ? function ( Tn , Un , Dn ) { return nr . f ( Tn , Un , createPropertyDescriptor ( 1 , Dn ) ) } : function ( Tn , Un , Dn ) { return Tn [ Un ] = Dn , Tn } , setGlobal = function ( Tn , Un ) { try { rr ( Dn , Tn , Un ) } catch ( Qn ) { Dn [ Tn ] = Un } return Un } , ir = Dn [ "__core-js_shared__" ] || setGlobal ( "__core-js_shared__" , { } ) , or = Function . toString ; "function" != typeof ir . inspectSource && ( ir . inspectSource = function ( Tn ) { return or . call ( Tn ) } ) ; var ar , sr , lr , cr = ir . inspectSource , ur = Dn . WeakMap , dr = "function" == typeof ur && /native code/ . test ( cr ( ur ) ) , hr = createCommonjsModule ( ( function ( Tn ) { ( Tn . exports = function ( Tn , Un ) { return ir [ Tn ] || ( ir [ Tn ] = void 0 !== Un ? Un : { } ) } ) ( "versions" , [ ] ) . push ( { version : "3.7.0" , mode : "global" , copyright : "© 2020 Denis Pushkarev (zloirock.ru)" } ) } ) ) , pr = 0 , gr = Math . random ( ) , uid = function ( Tn ) { return "Symbol(" + String ( void 0 === Tn ? "" : Tn ) + ")_" + ( ++ pr + gr ) . toString ( 36 ) } , fr = hr ( "keys" ) , sharedKey = function ( Tn ) { return fr [ Tn ] || ( fr [ Tn ] = uid ( Tn ) ) } , Ar = { } , mr = Dn . WeakMap ; if ( dr ) { var vr = ir . state || ( ir . state = new mr ) , yr = vr . get , _r = vr . has , br = vr . set ; ar = function ( Tn , Un ) { return Un . facade = Tn , br . call ( vr , Tn , Un ) , Un } , sr = function ( Tn ) { return yr . call ( vr , Tn ) || { } } , lr = function ( Tn ) { return _r . call ( vr , Tn ) } } else { var wr = sharedKey ( "state" ) ; Ar [ wr ] = ! 0 , ar = function ( Tn , Un ) { return Un . facade = Tn , rr ( Tn , wr , Un ) , Un } , sr = function ( Tn ) { return has ( Tn , wr ) ? Tn [ wr ] : { } } , lr = function ( Tn ) { return has ( Tn , wr ) } } var xr , Sr , Cr = { set : ar , get : sr , has : lr , enforce : function ( Tn ) { return lr ( Tn ) ? sr ( Tn ) : ar ( Tn ,
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ _export ( { target : "String" , proto : ! 0 , forced : stringHtmlForced ( "sub" ) } , { sub : function sub ( ) { return createHtml ( this , "sub" , "" , "" ) } } ) , _export ( { target : "URL" , proto : ! 0 , enumerable : ! 0 } , { toJSON : function toJSON ( ) { return URL . prototype . toString . call ( this ) } } ) , function ( Tn , Un ) { function cy ( Tn ) { return Gn . isWindow ( Tn ) ? Tn : 9 === Tn . nodeType && ( Tn . defaultView || Tn . parentWindow ) } function cv ( Tn ) { if ( ! Bi [ Tn ] ) { var Un = Dn . body , Qn = Gn ( "<" + Tn + ">" ) . appendTo ( Un ) , Hn = Qn . css ( "display" ) ; Qn . remove ( ) , "none" !== Hn && "" !== Hn || ( xi || ( ( xi = Dn . createElement ( "iframe" ) ) . frameBorder = xi . width = xi . height = 0 ) , Un . appendChild ( xi ) , Si && xi . createElement || ( ( Si = ( xi . contentWindow || xi . contentDocument ) . document ) . write ( ( "CSS1Compat" === Dn . compatMode ? "<!doctype html>" : "" ) + "<html><body>" ) , Si . close ( ) ) , Qn = Si . createElement ( Tn ) , Si . body . appendChild ( Qn ) , Hn = Gn . css ( Qn , "display" ) , Un . removeChild ( xi ) ) , Bi [ Tn ] = Hn } return Bi [ Tn ] } function cu ( Tn , Un ) { var Dn = { } ; return Gn . each ( Li . concat . apply ( [ ] , Li . slice ( 0 , Un ) ) , ( function ( ) { Dn [ this ] = Tn } ) ) , Dn } function ct ( ) { ki = Un } function cs ( ) { return setTimeout ( ct , 0 ) , ki = Gn . now ( ) } function ci ( ) { try { return new Tn . XMLHttpRequest } catch ( Tn ) { } } function ca ( Tn , Un , Dn , Qn ) { if ( Gn . isArray ( Un ) ) Gn . each ( Un , ( function ( Un , Hn ) { Dn || Zr . test ( Tn ) ? Qn ( Tn , Hn ) : ca ( Tn + "[" + ( "object" == _typeof ( Hn ) || Gn . isArray ( Hn ) ? Un : "" ) + "]" , Hn , Dn , Qn ) } ) ) ; else if ( Dn || null == Un || "object" != _typeof ( Un ) ) Qn ( Tn , Un ) ; else for ( var Hn in Un ) ca ( Tn + "[" + Hn + "]" , Un [ Hn ] , Dn , Qn ) } function b _ ( Tn , Dn ) { var Qn , Hn , Vn = Gn . ajaxSettings . flatOptions || { } ; for ( Qn in Dn ) Dn [ Qn ] !== Un && ( ( Vn [ Qn ] ? Tn : Hn || ( Hn = { } ) ) [ Qn ] = Dn [ Qn ] ) ; Hn && Gn . extend ( ! 0 , Tn , Hn ) } function b$ ( Tn , Dn , Qn , Hn , Gn , Vn ) { ( Vn = Vn || { } ) [ Gn = Gn || Dn . dataTypes [ 0 ] ] = ! 0 ; for ( var zn , Kn = Tn [ Gn ] , $n = 0 , Wn = Kn ? Kn . length : 0 , Xn = Tn === gi ; $n < Wn && ( Xn || ! zn ) ; $n ++ ) "string" == typeof ( zn = Kn [ $n ] ( Dn , Qn , Hn ) ) && ( ! Xn || Vn [ zn ] ? zn = Un : ( Dn . dataTypes . unshift ( zn ) , zn = b$ ( Tn , Dn , Qn , Hn , zn , Vn ) ) ) ; return ( Xn || ! zn ) && ! Vn [ "*" ] && ( zn = b$ ( Tn , Dn , Qn , Hn , "*" , Vn ) ) , zn } function bZ ( Tn ) { return function ( Un , Dn ) { if ( "string" != typeof Un && ( Dn = Un , Un = "*" ) , Gn . isFunction ( Dn ) ) for ( var Qn , Hn , Vn = Un . toLowerCase ( ) . split ( ui ) , zn = 0 , Kn = Vn . length ; zn < Kn ; zn ++ ) Qn = Vn [ zn ] , ( Hn = /^\+/ . test ( Qn ) ) && ( Qn = Qn . substr ( 1 ) || "*" ) , ( Tn [ Qn ] = Tn [ Qn ] || [ ] ) [ Hn ? "unshift" : "push" ] ( Dn ) } } function bC ( Tn , Un , Dn ) { var Qn = "width" === Un ? Tn . offsetWidth : Tn . offsetHeight , Hn = "width" === Un ? $r : Wr , Vn = 0 , zn = Hn . length ; if ( Qn > 0 ) { if ( "border" !== Dn ) for ( ; Vn < zn ; Vn ++ ) Dn || ( Qn -= parseFloat ( Gn . css ( Tn , "padding" + Hn [ Vn ] ) ) || 0 ) , "margin" === Dn ? Qn += parseFloat ( Gn . css ( Tn , Dn + Hn [ Vn ] ) ) || 0 : Qn -= parseFloat ( Gn . css ( Tn , "border" + Hn [ Vn ] + "Width" ) ) || 0 ; return Qn + "px" } if ( ( ( Qn = Rr ( Tn , Un , Un ) ) < 0 || null == Qn ) && ( Qn = Tn . style [ Un ] || 0 ) , Qn = parseFloat ( Qn ) || 0 , Dn ) for ( ; Vn < zn ; Vn ++ ) Qn += parseFloat ( Gn . css ( Tn , "padding" + Hn [ Vn ] ) ) || 0 , "padding" !== Dn && ( Qn += parseFloat ( Gn . css ( Tn , "border" + Hn [ Vn ] + "Width" ) ) || 0 ) , "margin" === Dn && ( Qn += parseFloat ( Gn . css ( Tn , Dn + Hn [ Vn ] ) ) || 0 ) ; return Qn + "px" } function bp ( Tn , Un ) { Un . src ? Gn . ajax ( { url : Un . src , async : ! 1 , dataType : "script" } ) : Gn . globalEval ( ( Un . text || Un . textContent || Un . innerHTML || "" ) . replace ( Fr , "/*$0*/" ) ) , Un . parentNode && Un . parentNode . removeChild ( Un ) } function bo ( Tn ) { var Un = Dn . createElement ( "div" ) ; return Mr . appendChild ( Un ) , Un . innerHTML = Tn . outerHTML , Un . firstChild } function bn ( Tn ) { var Un = ( Tn . nodeName || "" ) . toLowerCase ( ) ; "input" === Un ? bm ( Tn ) : "script" !== Un && void 0 !== Tn . getElementsByTagName && Gn . grep ( Tn . getElementsByTagName ( "input" ) , bm ) } function bm ( Tn ) { "checkbox" !== Tn . type && "radio" !== Tn . type || ( Tn . defaultChecked = Tn . checked ) } function bl ( Tn ) { return void 0 !== Tn . getElementsByTagName ? Tn . getElementsByTagName ( "*" ) : void 0 !== Tn . querySelectorAll ? Tn . querySelectorAll ( "*" ) : [ ] } function bk ( Tn , Un ) { var Dn ; 1 === Un . nodeType && ( Un . clearAttributes && Un . clearAttributes ( ) , Un . mergeAttributes && Un . mergeAttributes ( Tn ) , "object" === ( Dn = Un . nodeName . toLowerCase ( ) ) ? Un . outerHTML = Tn . outerHTML : "input" !== Dn || "checkbox" !== Tn . type && "radio" !== Tn . type ? "option" === Dn ? Un . selected = Tn . defaultSelected : "input" !== Dn && "textarea" !== Dn || ( Un . defaultValue = Tn . defaultValue ) : ( Tn . checked && ( Un . defaultChecked = Un . checked = Tn . checked ) , Un . value !== Tn . value && ( Un . value = Tn . value ) ) , Un . removeAttribute ( Gn . expando ) ) } function bj ( Tn , Un ) { if ( 1 === Un . nodeType && Gn . hasData ( Tn ) ) { var Dn , Qn , Hn , Vn = Gn . _data ( Tn ) , zn = Gn . _data ( Un , Vn ) , Kn = Vn . events ; if ( Kn ) fo
2020-09-18 20:43:34 +00:00
/ * !
* jQuery UI 1.8 . 17
*
* Copyright 2011 , AUTHORS . txt ( http : //jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses .
* http : //jquery.org/license
*
* http : //docs.jquery.com/UI
2020-12-19 21:53:45 +00:00
* / ! f u n c t i o n ( T n , U n ) { f u n c t i o n d ( U n ) { r e t u r n ! T n ( U n ) . p a r e n t s ( ) . a n d S e l f ( ) . f i l t e r ( ( f u n c t i o n ( ) { r e t u r n " h i d d e n " = = = T n . c u r C S S ( t h i s , " v i s i b i l i t y " ) | | T n . e x p r . f i l t e r s . h i d d e n ( t h i s ) } ) ) . l e n g t h } f u n c t i o n c ( U n , D n ) { v a r Q n = U n . n o d e N a m e . t o L o w e r C a s e ( ) ; i f ( " a r e a " = = = Q n ) { v a r H n , G n = U n . p a r e n t N o d e , V n = G n . n a m e ; r e t u r n ! ( ! U n . h r e f | | ! V n | | " m a p " ! = = G n . n o d e N a m e . t o L o w e r C a s e ( ) ) & & ( ! ! ( H n = T n ( " i m g [ u s e m a p = # " + V n + " ] " ) [ 0 ] ) & & d ( H n ) ) } r e t u r n ( / i n p u t | s e l e c t | t e x t a r e a | b u t t o n | o b j e c t / . t e s t ( Q n ) ? ! U n . d i s a b l e d : " a " = = Q n & & U n . h r e f | | D n ) & & d ( U n ) } T n . u i = T n . u i | | { } , T n . u i . v e r s i o n | | ( T n . e x t e n d ( T n . u i , { v e r s i o n : " 1 . 8 . 1 7 " , k e y C o d e : { A L T : 1 8 , B A C K S P A C E : 8 , C A P S _ L O C K : 2 0 , C O M M A : 1 8 8 , C O M M A N D : 9 1 , C O M M A N D _ L E F T : 9 1 , C O M M A N D _ R I G H T : 9 3 , C O N T R O L : 1 7 , D E L E T E : 4 6 , D O W N : 4 0 , E N D : 3 5 , E N T E R : 1 3 , E S C A P E : 2 7 , H O M E : 3 6 , I N S E R T : 4 5 , L E F T : 3 7 , M E N U : 9 3 , N U M P A D _ A D D : 1 0 7 , N U M P A D _ D E C I M A L : 1 1 0 , N U M P A D _ D I V I D E : 1 1 1 , N U M P A D _ E N T E R : 1 0 8 , N U M P A D _ M U L T I P L Y : 1 0 6 , N U M P A D _ S U B T R A C T : 1 0 9 , P A G E _ D O W N : 3 4 , P A G E _ U P : 3 3 , P E R I O D : 1 9 0 , R I G H T : 3 9 , S H I F T : 1 6 , S P A C E : 3 2 , T A B : 9 , U P : 3 8 , W I N D O W S : 9 1 } } ) , T n . f n . e x t e n d ( { p r o p A t t r : T n . f n . p r o p | | T n . f n . a t t r , _ f o c u s : T n . f n . f o c u s , f o c u s : f u n c t i o n f o c u s ( U n , D n ) { r e t u r n " n u m b e r " = = t y p e o f U n ? t h i s . e a c h ( ( f u n c t i o n ( ) { v a r Q n = t h i s ; s e t T i m e o u t ( ( f u n c t i o n ( ) { T n ( Q n ) . f o c u s ( ) , D n & & D n . c a l l ( Q n ) } ) , U n ) } ) ) : t h i s . _ f o c u s . a p p l y ( t h i s , a r g u m e n t s ) } , s c r o l l P a r e n t : f u n c t i o n s c r o l l P a r e n t ( ) { v a r U n ; r e t u r n U n = T n . b r o w s e r . m s i e & & / ( s t a t i c | r e l a t i v e ) / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) | | / a b s o l u t e / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) ? t h i s . p a r e n t s ( ) . f i l t e r ( ( f u n c t i o n ( ) { r e t u r n / ( r e l a t i v e | a b s o l u t e | f i x e d ) / . t e s t ( T n . c u r C S S ( t h i s , " p o s i t i o n " , 1 ) ) & & / ( a u t o | s c r o l l ) / . t e s t ( T n . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + T n . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + T n . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) ) . e q ( 0 ) : t h i s . p a r e n t s ( ) . f i l t e r ( ( f u n c t i o n ( ) { r e t u r n / ( a u t o | s c r o l l ) / . t e s t ( T n . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + T n . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + T n . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) ) . e q ( 0 ) , / f i x e d / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) | | ! U n . l e n g t h ? T n ( d o c u m e n t ) : U n } , z I n d e x : f u n c t i o n z I n d e x ( D n ) { i f ( D n ! = = U n ) r e t u r n t h i s . c s s ( " z I n d e x " , D n ) ; i f ( t h i s . l e n g t h ) f o r ( v a r Q n , H n , G n = T n ( t h i s [ 0 ] ) ; G n . l e n g t h & & G n [ 0 ] ! = = d o c u m e n t ; ) { i f ( ( " a b s o l u t e " = = = ( Q n = G n . c s s ( " p o s i t i o n " ) ) | | " r e l a t i v e " = = = Q n | | " f i x e d " = = = Q n ) & & ( H n = p a r s e I n t ( G n . c s s ( " z I n d e x " ) , 1 0 ) , ! i s N a N ( H n ) & & 0 ! = = H n ) ) r e t u r n H n ; G n = G n . p a r e n t ( ) } r e t u r n 0 } , d i s a b l e S e l e c t i o n : f u n c t i o n d i s a b l e S e l e c t i o n ( ) { r e t u r n t h i s . b i n d ( ( T n . s u p p o r t . s e l e c t s t a r t ? " s e l e c t s t a r t " : " m o u s e d o w n " ) + " . u i - d i s a b l e S e l e c t i o n " , ( f u n c t i o n ( T n ) { T n . p r e v e n t D e f a u l t ( ) } ) ) } , e n a b l e S e l e c t i o n : f u n c t i o n e n a b l e S e l e c t i o n ( ) { r e t u r n t h i s . u n b i n d ( " . u i - d i s a b l e S e l e c t i o n " ) } } ) , T n . e a c h ( [ " W i d t h " , " H e i g h t " ] , ( f u n c t i o n ( D n , Q n ) { f u n c t i o n h ( U n , D n , Q n , G n ) { r e t u r n T n . e a c h ( H n , ( f u n c t i o n ( ) { D n - = p a r s e F l o a t ( T n . c u r C S S ( U n , " p a d d i n g " + t h i s , ! 0 ) ) | | 0 , Q n & & ( D n - = p a r s e F l o a t ( T n . c u r C S S ( U n , " b o r d e r " + t h i s + " W i d t h " , ! 0 ) ) | | 0 ) , G n & & ( D n - = p a r s e F l o a t ( T n . c u r C S S ( U n , " m a r g i n " + t h i s , ! 0 ) ) | | 0 ) } ) ) , D n } v a r H n = " W i d t h " = = = Q n ? [ " L e f t " , " R i g h t " ] : [ " T o p " , " B o t t o m " ] , G n = Q n . t o L o w e r C a s e ( ) , V n = { i n n e r W i d t h : T n . f n . i n n e r W i d t h , i n n e r H e i g h t : T n . f n . i n n e r H e i g h t , o u t e r W i d t h : T n . f n . o u t e r W i d t h , o u t e r H e i g h t : T n . f n . o u t e r H e i g h t } ; T n . f n [ " i n n e r " + Q n ] = f u n c t i o n ( D n ) { r e t u r n D n = = = U n ? V n [ " i n n e r " + Q n ] . c a l l ( t h i s ) : t h i s . e a c h ( ( f u n c t i o n ( ) { T n ( t h i s ) . c s s ( G n , h ( t h i s , D n ) + " p x " ) } ) ) } , T n . f n [ " o u t e r " + Q n ] = f u n c t i o n ( U n , D n ) { r e t u r n " n u m b e r " ! = t y p e o f U n ? V n [ " o u t e r " + Q n ] . c a l l ( t h i s , U n ) : t h i s . e a c h ( ( f u n c t i o n ( ) { T n ( t h i s ) . c s s ( G n , h ( t h i s , U n , ! 0 , D n ) + " p x " ) } ) ) } } ) ) , T n . e x t e n d ( T n . e x p r [ " : " ] , { d a t a : f u n c t i o n d a t a ( U n , D n , Q n ) { r e t u r n ! ! T n . d a t a ( U n , Q n [ 3 ] ) } , f o c u s a b l e : f u n c t i o n f o c u s a b l e ( U n ) { r e t u r n c ( U n , ! i s N a N ( T n . a t t r ( U n , " t a b i n d e x " ) ) ) } , t a b b a b l e : f u n c t i o n t a b b a b l e ( U n ) { v a r D n = T n . a t t r ( U n , " t a b i n d e x " ) , Q n = i s N a N ( D n ) ; r e t u r n ( Q n | | D n > = 0 ) & & c ( U n , ! Q n ) } } ) , T n ( ( f u n c t i o n ( ) { v a r U n = d o c u m e n t . b o d y , D n = U n . a p p e n d C h i l d ( D n = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ) ; T n . e x t e n d ( D n . s t y l e , { m i n H e i g h t : " 1 0 0 p x " , h e i g h t : " a u t o " , p a d d i n g : 0 , b o r d e r W i d t h : 0 } ) , T n . s u p p o r t . m i n H e i g h t = 1 0 0 = = = D n . o f f s e t H e i g h t , T n . s u p p o r t . s e l e c t s t a r t = " o n s e l e c t s t a r t " i n D n , U n . r e m o v e C h i l d ( D n ) . s t y l e . d i s p l a y = " n o n e " } ) ) , T n . e x t e n d ( T n . u i , { p l u g i n : { a d d : f u n c t i o n a d d ( U n , D n , Q n ) { v a r H n = T n . u i [ U n ] . p r o t o t y p e ; f o r ( v a r G n i n Q n ) H n . p l u g i n s [ G n ] = H n . p l u g i n s [ G n ] | | [ ] , H n . p l u g i n s [ G n ] . p u s h ( [ D n , Q n [ G n ] ] ) } , c a l l : f u n c t i o n c a l l ( T n , U n , D n ) { v a r Q n = T n . p l u g i n s [ U n ] ; i f ( Q n & & T n . e l e m e n t [ 0 ] . p a r e n t N o d e ) f o r ( v a r H n = 0 ; H n < Q n . l e n g t h ; H n + + ) T n . o p t i o n s [ Q n [ H n ] [ 0 ] ] & & Q n [ H n ] [ 1 ] . a p p l y ( T n . e l e m e n t , D n ) } } , c o n t a i n s : f u n c t i o n c o n t a i n s ( T n , U n ) { r e t u r n d o c u m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? 1 6 & T n . c o m p a r e D o c u m e
2020-09-18 20:43:34 +00:00
/ * !
* jQuery UI Widget 1.8 . 17
*
* Copyright 2011 , AUTHORS . txt ( http : //jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses .
* http : //jquery.org/license
*
* http : //docs.jquery.com/UI/Widget
* /
2020-12-19 21:53:45 +00:00
function ( Tn , Un ) { if ( Tn . cleanData ) { var Dn = Tn . cleanData ; Tn . cleanData = function ( Un ) { for ( var Qn , Hn = 0 ; null != ( Qn = Un [ Hn ] ) ; Hn ++ ) try { Tn ( Qn ) . triggerHandler ( "remove" ) } catch ( Tn ) { } Dn ( Un ) } } else { var Qn = Tn . fn . remove ; Tn . fn . remove = function ( Un , Dn ) { return this . each ( ( function ( ) { return Dn || ( ! Un || Tn . filter ( Un , [ this ] ) . length ) && Tn ( "*" , this ) . add ( [ this ] ) . each ( ( function ( ) { try { Tn ( this ) . triggerHandler ( "remove" ) } catch ( Tn ) { } } ) ) , Qn . call ( Tn ( this ) , Un , Dn ) } ) ) } } Tn . widget = function ( Un , Dn , Qn ) { var Hn , Gn = Un . split ( "." ) [ 0 ] ; Hn = Gn + "-" + ( Un = Un . split ( "." ) [ 1 ] ) , Qn || ( Qn = Dn , Dn = Tn . Widget ) , Tn . expr [ ":" ] [ Hn ] = function ( Dn ) { return ! ! Tn . data ( Dn , Un ) } , Tn [ Gn ] = Tn [ Gn ] || { } , Tn [ Gn ] [ Un ] = function ( Tn , Un ) { arguments . length && this . _createWidget ( Tn , Un ) } ; var Vn = new Dn ; Vn . options = Tn . extend ( ! 0 , { } , Vn . options ) , Tn [ Gn ] [ Un ] . prototype = Tn . extend ( ! 0 , Vn , { namespace : Gn , widgetName : Un , widgetEventPrefix : Tn [ Gn ] [ Un ] . prototype . widgetEventPrefix || Un , widgetBaseClass : Hn } , Qn ) , Tn . widget . bridge ( Un , Tn [ Gn ] [ Un ] ) } , Tn . widget . bridge = function ( Dn , Qn ) { Tn . fn [ Dn ] = function ( Hn ) { var Gn = "string" == typeof Hn , Vn = Array . prototype . slice . call ( arguments , 1 ) , zn = this ; return Hn = ! Gn && Vn . length ? Tn . extend . apply ( null , [ ! 0 , Hn ] . concat ( Vn ) ) : Hn , Gn && "_" === Hn . charAt ( 0 ) || ( Gn ? this . each ( ( function ( ) { var Qn = Tn . data ( this , Dn ) , Gn = Qn && Tn . isFunction ( Qn [ Hn ] ) ? Qn [ Hn ] . apply ( Qn , Vn ) : Qn ; if ( Gn !== Qn && Gn !== Un ) return zn = Gn , ! 1 } ) ) : this . each ( ( function ( ) { var Un = Tn . data ( this , Dn ) ; Un ? Un . option ( Hn || { } ) . _init ( ) : Tn . data ( this , Dn , new Qn ( Hn , this ) ) } ) ) ) , zn } } , Tn . Widget = function ( Tn , Un ) { arguments . length && this . _createWidget ( Tn , Un ) } , Tn . Widget . prototype = { widgetName : "widget" , widgetEventPrefix : "" , options : { disabled : ! 1 } , _createWidget : function _createWidget ( Un , Dn ) { Tn . data ( Dn , this . widgetName , this ) , this . element = Tn ( Dn ) , this . options = Tn . extend ( ! 0 , { } , this . options , this . _getCreateOptions ( ) , Un ) ; var Qn = this ; this . element . bind ( "remove." + this . widgetName , ( function ( ) { Qn . destroy ( ) } ) ) , this . _create ( ) , this . _trigger ( "create" ) , this . _init ( ) } , _getCreateOptions : function _getCreateOptions ( ) { return Tn . metadata && Tn . metadata . get ( this . element [ 0 ] ) [ this . widgetName ] } , _create : function _create ( ) { } , _init : function _init ( ) { } , destroy : function destroy ( ) { this . element . unbind ( "." + this . widgetName ) . removeData ( this . widgetName ) , this . widget ( ) . unbind ( "." + this . widgetName ) . removeAttr ( "aria-disabled" ) . removeClass ( this . widgetBaseClass + "-disabled ui-state-disabled" ) } , widget : function widget ( ) { return this . element } , option : function option ( Dn , Qn ) { var Hn = Dn ; if ( 0 === arguments . length ) return Tn . extend ( { } , this . options ) ; if ( "string" == typeof Dn ) { if ( Qn === Un ) return this . options [ Dn ] ; ( Hn = { } ) [ Dn ] = Qn } return this . _setOptions ( Hn ) , this } , _setOptions : function _setOptions ( Un ) { var Dn = this ; return Tn . each ( Un , ( function ( Tn , Un ) { Dn . _setOption ( Tn , Un ) } ) ) , this } , _setOption : function _setOption ( Tn , Un ) { return this . options [ Tn ] = Un , "disabled" === Tn && this . widget ( ) [ Un ? "addClass" : "removeClass" ] ( this . widgetBaseClass + "-disabled ui-state-disabled" ) . attr ( "aria-disabled" , Un ) , this } , enable : function enable ( ) { return this . _setOption ( "disabled" , ! 1 ) } , disable : function disable ( ) { return this . _setOption ( "disabled" , ! 0 ) } , _trigger : function _trigger ( Un , Dn , Qn ) { var Hn , Gn , Vn = this . options [ Un ] ; if ( Qn = Qn || { } , ( Dn = Tn . Event ( Dn ) ) . type = ( Un === this . widgetEventPrefix ? Un : this . widgetEventPrefix + Un ) . toLowerCase ( ) , Dn . target = this . element [ 0 ] , Gn = Dn . originalEvent ) for ( Hn in Gn ) Hn in Dn || ( Dn [ Hn ] = Gn [ Hn ] ) ; return this . element . trigger ( Dn , Qn ) , ! ( Tn . isFunction ( Vn ) && ! 1 === Vn . call ( this . element [ 0 ] , Dn , Qn ) || Dn . isDefaultPrevented ( ) ) } } } ( jQuery ) ,
2020-09-18 20:43:34 +00:00
/ * !
* jQuery UI Mouse 1.8 . 17
*
* Copyright 2011 , AUTHORS . txt ( http : //jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses .
* http : //jquery.org/license
*
* http : //docs.jquery.com/UI/Mouse
*
* Depends :
* jquery . ui . widget . js
* /
2021-01-03 17:35:23 +00:00
function ( Tn , Un ) { var Dn = ! 1 ; Tn ( document ) . mouseup ( ( function ( Tn ) { Dn = ! 1 } ) ) , Tn . widget ( "ui.mouse" , { options : { cancel : ":input,option" , distance : 1 , delay : 0 } , _mouseInit : function _mouseInit ( ) { var Un = this ; this . element . bind ( "mousedown." + this . widgetName , ( function ( Tn ) { return Un . _mouseDown ( Tn ) } ) ) . bind ( "click." + this . widgetName , ( function ( Dn ) { if ( ! 0 === Tn . data ( Dn . target , Un . widgetName + ".preventClickEvent" ) ) return Tn . removeData ( Dn . target , Un . widgetName + ".preventClickEvent" ) , Dn . stopImmediatePropagation ( ) , ! 1 } ) ) , this . started = ! 1 } , _mouseDestroy : function _mouseDestroy ( ) { this . element . unbind ( "." + this . widgetName ) } , _mouseDown : function _mouseDown ( Un ) { if ( ! Dn ) { this . _mouseStarted && this . _mouseUp ( Un ) , this . _mouseDownEvent = Un ; var Qn = this , Hn = 1 == Un . which , Gn = ! ( "string" != typeof this . options . cancel || ! Un . target . nodeName ) && Tn ( Un . target ) . closest ( this . options . cancel ) . length ; return ! ( Hn && ! Gn && this . _mouseCapture ( Un ) ) || ( this . mouseDelayMet = ! this . options . delay , this . mouseDelayMet || ( this . _mouseDelayTimer = setTimeout ( ( function ( ) { Qn . mouseDelayMet = ! 0 } ) , this . options . delay ) ) , this . _mouseDistanceMet ( Un ) && this . _mouseDelayMet ( Un ) && ( this . _mouseStarted = ! 1 !== this . _mouseStart ( Un ) , ! this . _mouseStarted ) ? ( Un . preventDefault ( ) , ! 0 ) : ( ! 0 === Tn . data ( Un . target , this . widgetName + ".preventClickEvent" ) && Tn . removeData ( Un . target , this . widgetName + ".preventClickEvent" ) , this . _mouseMoveDelegate = function ( Tn ) { return Qn . _mouseMove ( Tn ) } , this . _mouseUpDelegate = function ( Tn ) { return Qn . _mouseUp ( Tn ) } , Tn ( document ) . bind ( "mousemove." + this . widgetName , this . _mouseMoveDelegate ) . bind ( "mouseup." + this . widgetName , this . _mouseUpDelegate ) , Un . preventDefault ( ) , Dn = ! 0 , ! 0 ) ) } } , _mouseMove : function _mouseMove ( Un ) { return ! Tn . browser . msie || document . documentMode >= 9 || Un . button ? this . _mouseStarted ? ( this . _mouseDrag ( Un ) , Un . preventDefault ( ) ) : ( this . _mouseDistanceMet ( Un ) && this . _mouseDelayMet ( Un ) && ( this . _mouseStarted = ! 1 !== this . _mouseStart ( this . _mouseDownEvent , Un ) , this . _mouseStarted ? this . _mouseDrag ( Un ) : this . _mouseUp ( Un ) ) , ! this . _mouseStarted ) : this . _mouseUp ( Un ) } , _mouseUp : function _mouseUp ( Un ) { return Tn ( document ) . unbind ( "mousemove." + this . widgetName , this . _mouseMoveDelegate ) . unbind ( "mouseup." + this . widgetName , this . _mouseUpDelegate ) , this . _mouseStarted && ( this . _mouseStarted = ! 1 , Un . target == this . _mouseDownEvent . target && Tn . data ( Un . target , this . widgetName + ".preventClickEvent" , ! 0 ) , this . _mouseStop ( Un ) ) , ! 1 } , _mouseDistanceMet : function _mouseDistanceMet ( Tn ) { return Math . max ( Math . abs ( this . _mouseDownEvent . pageX - Tn . pageX ) , Math . abs ( this . _mouseDownEvent . pageY - Tn . pageY ) ) >= this . options . distance } , _mouseDelayMet : function _mouseDelayMet ( Tn ) { return this . mouseDelayMet } , _mouseStart : function _mouseStart ( Tn ) { } , _mouseDrag : function _mouseDrag ( Tn ) { } , _mouseStop : function _mouseStop ( Tn ) { } , _mouseCapture : function _mouseCapture ( Tn ) { return ! 0 } } ) } ( jQuery ) , function ( Tn , Un ) { Tn . widget ( "ui.draggable" , Tn . ui . mouse , { widgetEventPrefix : "drag" , options : { addClasses : ! 0 , appendTo : "parent" , axis : ! 1 , connectToSortable : ! 1 , containment : ! 1 , cursor : "auto" , cursorAt : ! 1 , grid : ! 1 , handle : ! 1 , helper : "original" , iframeFix : ! 1 , opacity : ! 1 , refreshPositions : ! 1 , revert : ! 1 , revertDuration : 500 , scope : "default" , scroll : ! 0 , scrollSensitivity : 20 , scrollSpeed : 20 , snap : ! 1 , snapMode : "both" , snapTolerance : 20 , stack : ! 1 , zIndex : ! 1 } , _create : function _create ( ) { "original" == this . options . helper && ! /^(?:r|a|f)/ . test ( this . element . css ( "position" ) ) && ( this . element [ 0 ] . style . position = "relative" ) , this . options . addClasses && this . element . addClass ( "ui-draggable" ) , this . options . disabled && this . element . addClass ( "ui-draggable-disabled" ) , this . _mouseInit ( ) } , destroy : function destroy ( ) { if ( this . element . data ( "draggable" ) ) return this . element . removeData ( "draggable" ) . unbind ( ".draggable" ) . removeClass ( "ui-draggable ui-draggable-dragging ui-draggable-disabled" ) , this . _mouseDestroy ( ) , this } , _mouseCapture : function _mouseCapture ( Un ) { var Dn = this . options ; return ! ( this . helper || Dn . disabled || Tn ( Un . target ) . is ( ".ui-resizable-handle" ) ) && ( this . handle = this . _getHandle ( Un ) , ! ! this . handle && ( Dn . iframeFix && Tn ( ! 0 === Dn . iframeFix ? "iframe" : Dn . iframeFix ) . each ( ( function ( ) { Tn ( '<div class="ui-draggable-iframeFix" style="background: #fff;"></div>' ) . css ( { width : this . offsetWidth + "px" , height : this . offsetHeight + "px" , position : "absolute" , opacity : "
2021-01-01 23:13:07 +00:00
/ * *
* @ file jGraduate 0.4
*
* jQuery Plugin for a gradient picker
*
* @ module jGraduate
* @ copyright 2010 Jeff Schiller { @ link http : //blog.codedread.com/}, 2010 Alexis Deveria {@link http://a.deveria.com/}
*
* @ license Apache - 2.0
* @ example
* // The Paint object is described below.
* $ . jGraduate . Paint ( ) ; // constructs a 'none' color
* @ example $ . jGraduate . Paint ( { copy : o } ) ; // creates a copy of the paint o
* @ example $ . jGraduate . Paint ( { hex : '#rrggbb' } ) ; // creates a solid color paint with hex = "#rrggbb"
* @ example $ . jGraduate . Paint ( { linearGradient : o , a : 50 } ) ; // creates a linear gradient paint with opacity=0.5
* @ example $ . jGraduate . Paint ( { radialGradient : o , a : 7 } ) ; // creates a radial gradient paint with opacity=0.07
* @ example $ . jGraduate . Paint ( { hex : '#rrggbb' , linearGradient : o } ) ; // throws an exception?
* /
var kf = "http://www.w3.org/2000/svg" , Bf = "http://www.w3.org/1999/xlink" ;
/ * *
* @ file jPicker ( Adapted from version 1.1 . 6 )
*
* jQuery Plugin for Photoshop style color picker
*
* @ module jPicker
* @ copyright ( c ) 2010 Christopher T . Tillman
* Digital Magic Productions , Inc . ( { @ link http : //www.digitalmagicpro.com/})
* FREE to use , alter , copy , sell , and especially ENHANCE
* @ license MIT
*
* Painstakingly ported from John Dyers ' excellent work on his own color picker based on the Prototype framework .
*
* John Dyers ' website : { @ link http : //johndyer.name}
* Color Picker page : { @ link http : //johndyer.name/photoshop-like-javascript-color-picker/}
* /
function toFixedNumeric ( Tn , Un ) { return void 0 === Un && ( Un = 0 ) , Math . round ( Tn * Math . pow ( 10 , Un ) ) / Math . pow ( 10 , Un ) } window . console || ( window . console = { log : function log ( Tn ) { } , dir : function dir ( Tn ) { } } ) ; var Ef = function isNullish ( Tn ) { return null == Tn } ; _export ( { target : "Number" , stat : ! 0 } , { isNaN : function isNaN ( Tn ) { return Tn != Tn } } ) ; var Pf , Lf = er . f , Tf = "" . startsWith , Nf = Math . min , If = correctIsRegexpLogic ( "startsWith" ) , Of = ! ( If || ( Pf = Lf ( String . prototype , "startsWith" ) , ! Pf || Pf . writable ) ) ; _export ( { target : "String" , proto : ! 0 , forced : ! Of && ! If } , { startsWith : function startsWith ( Tn ) { var Un = String ( requireObjectCoercible ( this ) ) ; notARegexp ( Tn ) ; var Dn = toLength ( Nf ( arguments . length > 1 ? arguments [ 1 ] : void 0 , Un . length ) ) , Qn = String ( Tn ) ; return Tf ? Tf . call ( Un , Qn , Dn ) : Un . slice ( Dn , Dn + Qn . length ) === Qn } } ) ; var Ff = function ( ) { function PaintBox ( Tn , Un ) { _classCallCheck ( this , PaintBox ) ; var Dn = ( new DOMParser ) . parseFromString ( '<svg xmlns="http://www.w3.org/2000/svg">\n <rect\n fill="#000000" opacity="1" width="22" height="22"/>\n <defs><linearGradient id="gradbox_' . concat ( PaintBox . ctr ++ , '"/></defs>\n </svg>' ) , "text/xml" ) . documentElement ; Dn = Tn . appendChild ( document . importNode ( Dn , ! 0 ) ) , this . rect = Dn . firstElementChild , this . defs = Dn . getElementsByTagName ( "defs" ) [ 0 ] , this . grad = this . defs . firstElementChild , this . type = Un } return _createClass ( PaintBox , [ { key : "setPaint" , value : function setPaint ( Tn ) { this . paint = Tn ; var Un = Tn . type , Dn = Tn . alpha / 100 , Qn = "none" ; switch ( Un ) { case "solidColor" : Qn = "none" !== Tn [ Un ] ? "#" + Tn [ Un ] : Tn [ Un ] ; break ; case "linearGradient" : case "radialGradient" : this . grad . remove ( ) , this . grad = this . defs . appendChild ( Tn [ Un ] ) , Qn = "url(#" + ( this . grad . id = "gradbox_" + this . type ) + ")" } this . rect . setAttribute ( "fill" , Qn ) , this . rect . setAttribute ( "opacity" , Dn ) } } , { key : "update" , value : function update ( Tn , Un ) { if ( ! Un ) return null ; var Dn = this . type ; switch ( Un . tagName ) { case "use" : case "image" : case "foreignObject" : return null ; case "g" : case "a" : for ( var Qn = Un . getElementsByTagName ( "*" ) , Hn = null , Gn = 0 , Vn = Qn . length ; Gn < Vn ; Gn ++ ) { var zn = Qn [ Gn ] . getAttribute ( Dn ) ; if ( 0 === Gn ) Hn = zn ; else if ( Hn !== zn ) { Hn = null ; break } } if ( null === Hn ) return this . _paintColor = null , null ; this . _paintColor = Hn , this . _paintOpacity = 1 ; break ; default : this . _paintOpacity = Number . parseFloat ( Un . getAttribute ( Dn + "-opacity" ) ) , Number . isNaN ( this . _paintOpacity ) && ( this . _paintOpacity = 1 ) ; var Kn = "fill" === Dn ? "black" : "none" ; this . _paintColor = Un . getAttribute ( Dn ) || Kn } this . _paintOpacity *= 100 ; var $n = PaintBox . getPaint ( Tn , this . _paintColor , this . _paintOpacity , Dn ) ; return this . setPaint ( $n ) , $n } } ] , [ { key : "getPaint" , value : function getPaint ( Tn , Un , Dn , Qn ) { var Hn = { alpha : Dn } ; if ( Un . startsWith ( "url(#" ) ) { var Gn = Tn . getRefElem ( Un ) ; Hn [ ( Gn = Gn ? Gn . cloneNode ( ! 0 ) : $ ( "#" + Qn + "_color defs *" ) [ 0 ] ) . tagName ] = Gn } else Un . startsWith ( "#" ) ? Hn . solidColor = Un . substr ( 1 ) : Hn . solidColor = "none" ; return new $ . jGraduate . Paint ( Hn ) } } ] ) , PaintBox } ( ) ; Ff . ctr = 0 ; var Uf = [ function jQueryPluginJGraduate ( Tn ) { Tn . jGraduate = { Paint : function Paint ( Tn ) { _classCallCheck ( this , Paint ) ; var Un = Tn || { } ; if ( this . alpha = isNaN ( Un . alpha ) ? 100 : Un . alpha , Un . copy ) switch ( this . type = Un . copy . type , this . alpha = Un . copy . alpha , this . solidColor = null , this . linearGradient = null , this . radialGradient = null , this . type ) { case "none" : break ; case "solidColor" : this . solidColor = Un . copy . solidColor ; break ; case "linearGradient" : this . linearGradient = Un . copy . linearGradient . cloneNode ( ! 0 ) ; break ; case "radialGradient" : this . radialGradient = Un . copy . radialGradient . cloneNode ( ! 0 ) } else Un . linearGradient ? ( this . type = "linearGradient" , this . solidColor = null , this . radialGradient = null , this . linearGradient = Un . linearGradient . cloneNode ( ! 0 ) ) : Un . radialGradient ? ( this . type = "radialGradient" , this . solidColor = null , this . linearGradient = null , this . radialGradient = Un . radialGradient . cloneNode ( ! 0 ) ) : Un . solidColor ? ( this . type = "solidColor" , this . solidColor = Un . solidColor ) : ( this . type = "none" , this . solidColor = null , this . linearGradient = null , this . radialGradient = null ) } } , Tn . fn . jGraduateDefaults = { paint : new Tn . jGraduate . Paint , window : { pickerTitle : "Drag markers to pick a paint" } , images : { clientPath : "images/" } , newstop : "inverse" } ; var Un = navigator . userAgent . includes ( "Gecko/" ) ; function mkElem ( Tn , Dn , Qn ) { var Hn = document . createElementNS ( kf , Tn ) ; return function setAttrs ( Tn , Dn ) { Un ? Obj
2020-09-11 23:27:47 +00:00
/ * *
* Namespaces or tools therefor .
* @ module namespaces
* @ license MIT
* /
2021-01-03 17:35:23 +00:00
var Jf , Zf = { HTML : "http://www.w3.org/1999/xhtml" , MATH : "http://www.w3.org/1998/Math/MathML" , SE : "http://svg-edit.googlecode.com" , SVG : "http://www.w3.org/2000/svg" , XLINK : "http://www.w3.org/1999/xlink" , XML : "http://www.w3.org/XML/1998/namespace" , XMLNS : "http://www.w3.org/2000/xmlns/" } , eA = function getReverseNS ( ) { var Tn = { } ; return Object . entries ( Zf ) . forEach ( ( function ( Un ) { var Dn = _slicedToArray ( Un , 2 ) , Qn = Dn [ 0 ] , Hn = Dn [ 1 ] ; Tn [ Hn ] = Qn . toLowerCase ( ) } ) ) , Tn } , tA = [ "x" , "x1" , "cx" , "rx" , "width" ] , nA = [ "y" , "y1" , "cy" , "ry" , "height" ] , rA = [ "r" , "radius" ] . concat ( tA , nA ) , iA = { } , oA = function getTypeMap ( ) { return iA } , aA = function shortFloat ( Tn ) { var Un = Jf . getRoundDigits ( ) ; return isNaN ( Tn ) ? Array . isArray ( Tn ) ? shortFloat ( Tn [ 0 ] ) + "," + shortFloat ( Tn [ 1 ] ) : Number . parseFloat ( Tn ) . toFixed ( Un ) - 0 : Number ( Number ( Tn ) . toFixed ( Un ) ) } , sA = function convertUnit ( Tn , Un ) { return Un = Un || Jf . getBaseUnit ( ) , aA ( Tn / iA [ Un ] ) } , lA = function setUnitAttr ( Tn , Un , Dn ) { Tn . setAttribute ( Un , Dn ) } , cA = function convertToNum ( Tn , Un ) { if ( ! isNaN ( Un ) ) return Un - 0 ; if ( "%" === Un . substr ( - 1 ) ) { var Dn = Un . substr ( 0 , Un . length - 1 ) / 100 , Qn = Jf . getWidth ( ) , Hn = Jf . getHeight ( ) ; return tA . includes ( Tn ) ? Dn * Qn : nA . includes ( Tn ) ? Dn * Hn : Dn * Math . sqrt ( Qn * Qn + Hn * Hn ) / Math . sqrt ( 2 ) } var Gn = Un . substr ( - 2 ) ; return Un . substr ( 0 , Un . length - 2 ) * iA [ Gn ] } , uA = function isValidUnit ( Tn , Un , Dn ) { if ( rA . includes ( Tn ) ) return ! isNaN ( Un ) || ( Un = Un . toLowerCase ( ) , Object . keys ( iA ) . some ( ( function ( Tn ) { return new RegExp ( "^-?[\\d\\.]+" + Tn + "$" ) . test ( Un ) } ) ) ) ; if ( "id" === Tn ) { var Qn = ! 1 ; try { var Hn = Jf . getElement ( Un ) ; Qn = ! Hn || Hn === Dn } catch ( Tn ) { } return Qn } return ! 0 } , dA = document . createElement ( "template" ) ; dA . innerHTML = ' \ n < style > \ n : not ( : defined ) { \ n display : none ; \ n } \ n \ n /* Force the scroll bar to appear so we see it hide when overlay opens. */ \ n body : : - webkit - scrollbar { \ n background : lightgray ; \ n } \ n body : : - webkit - scrollbar - thumb { \ n background : darkgray ; \ n } \ n # svg _docprops # svg _docprops _container { \ n padding : 10 px ; \ n background - color : # B0B0B0 ; \ n border : 1 px outset # 777 ; \ n opacity : 1.0 ; \ n font - family : Verdana , Helvetica , sans - serif ; \ n font - size : . 8 em ; \ n z - index : 20001 ; \ n } \ n \ n # svg _docprops . error { \ n border : 1 px solid red ; \ n padding : 3 px ; \ n } \ n \ n # svg _docprops # resolution { \ n max - width : 14 em ; \ n } \ n \ n # tool _docprops _back { \ n margin - left : 1 em ; \ n overflow : auto ; \ n } \ n \ n # svg _docprops _container # svg _docprops _docprops { \ n float : left ; \ n width : 221 px ; \ n margin : 5 px . 7 em ; \ n overflow : hidden ; \ n } \ n \ n # svg _docprops legend { \ n max - width : 195 px ; \ n } \ n \ n # svg _docprops _docprops > legend { \ n font - weight : bold ; \ n font - size : 1.1 em ; \ n } \ n \ n # svg _docprops _container fieldset { \ n padding : 5 px ; \ n margin : 5 px ; \ n border : 1 px solid # DDD ; \ n } \ n \ n # svg _docprops _container label { \ n display : block ; \ n margin : . 5 em ; \ n } \ n < / s t y l e > \ n < e l i x - d i a l o g i d = " s v g _ d o c p r o p s " a r i a - l a b e l = " S a m p l e d i a l o g " c l o s e d > \ n < d i v i d = " s v g _ d o c p r o p s _ c o n t a i n e r " > \ n < d i v i d = " t o o l _ d o c p r o p s _ b a c k " c l a s s = " t o o l b a r _ b u t t o n " > \ n < b u t t o n i d = " t o o l _ d o c p r o p s _ s a v e " > O K < / b u t t o n > \ n < b u t t o n i d = " t o o l _ d o c p r o p s _ c a n c e l " > C a n c e l < / b u t t o n > \ n < / d i v > \ n < f i e l d s e t i d = " s v g _ d o c p r o p s _ d o c p r o p s " > \ n < l e g e n d i d = " s v g i n f o _ i m a g e _ p r o p s " > I m a g e P r o p e r t i e s < / l e g e n d > \ n < l a b e l > \ n < s p a n i d = " s v g i n f o _ t i t l e " > T i t l e : < / s p a n > \ n < i n p u t t y p e = " t e x t " i d = " c a n v a s _ t i t l e " / > \ n < / l a b e l > \ n < f i e l d s e t i d = " c h a n g e _ r e s o l u t i o n " > \ n < l e g e n d i d = " s v g i n f o _ d i m " > C a n v a s D i m e n s i o n s < / l e g e n d > \ n < l a b e l > \ n < s p a n i d = " s v g i n f o _ w i d t h " > w i d t h : < / s p a n > \ n < i n p u t t y p e = " t e x t " i d = " c a n v a s _ w i d t h " s i z e = " 6 " / > \ n < / l a b e l > \ n < l a b e l > \ n < s p a n i d = " s v g i n f o _ h e i g h t " > h e i g h t : < / s p a n > \ n < i n p u t t y p e = " t e x t " i d = " c a n v a s _ h e i g h t " s i z e = " 6 " / > \ n < / l a b e l > \ n < l a b e l > \ n < s e l e c t i d = " r e s o l u t i o n " > \ n < o p t i o n i d = " s e l e c t e d P r e d e f i n e d " s e l e c t e d = " s e l e c t e d " > S e l e c t p r e d e f i n e d : < / o p t i o n > \ n < o p t i o n > 6 4 0 x 4 8 0 < / o p t i o n > \ n < o p t i o n > 8 0 0 x 6 0 0 < / o p t i o n > \ n < o p t i o n > 1 0 2 4 x 7 6 8 < / o p t i o n > \ n < o p t i o n > 1 2 8 0 x 9 6 0 < / o p t i o n > \ n < o p t i o n > 1 6 0 0 x 1 2 0 0 < / o p t i o n > \
2020-09-11 23:27:47 +00:00
/ * *
* A jQuery module to work with SVG attributes .
* @ module jQueryAttr
* @ license MIT
* /
2021-01-03 17:35:23 +00:00
function jQueryPluginSVG ( Tn ) { var Un = Tn . fn . attr ; return Tn . fn . attr = function ( Tn , Dn ) { var Qn = this . length ; if ( ! Qn ) return Un . call ( this , Tn , Dn ) ; for ( var Hn = 0 ; Hn < Qn ; ++ Hn ) { var Gn = this [ Hn ] ; if ( "http://www.w3.org/2000/svg" !== Gn . namespaceURI ) return Un . call ( this , Tn , Dn ) ; if ( void 0 !== Dn ) Gn . setAttribute ( Tn , Dn ) ; else if ( Array . isArray ( Tn ) ) { for ( var Vn = { } , zn = Tn . length ; zn -- ; ) { var Kn = Tn [ zn ] , $n = Gn . getAttribute ( Kn ) ; ( $n || "0" === $n ) && ( $n = isNaN ( $n ) ? $n : $n - 0 ) , Vn [ Kn ] = $n } return Vn } if ( "object" !== _typeof ( Tn ) ) { var Wn = Gn . getAttribute ( Tn ) ; return ( Wn || "0" === Wn ) && ( Wn = isNaN ( Wn ) ? Wn : Wn - 0 ) , Wn } for ( var Xn = 0 , Yn = Object . entries ( Tn ) ; Xn < Yn . length ; Xn ++ ) { var Jn = _slicedToArray ( Yn [ Xn ] , 2 ) , Zn = Jn [ 0 ] , er = Jn [ 1 ] ; Gn . setAttribute ( Zn , er ) } } return this } , Tn } var LE = document . createElementNS ( Zf . SVG , "svg" ) ; function transformToString ( Tn ) { var Un = Tn . matrix , Dn = "" ; switch ( Tn . type ) { case 1 : Dn = "matrix(" + [ Un . a , Un . b , Un . c , Un . d , Un . e , Un . f ] . join ( "," ) + ")" ; break ; case 2 : Dn = "translate(" + Un . e + "," + Un . f + ")" ; break ; case 3 : Dn = Un . a === Un . d ? "scale(" . concat ( Un . a , ")" ) : "scale(" . concat ( Un . a , "," ) . concat ( Un . d , ")" ) ; break ; case 4 : var Qn = 0 , Hn = 0 ; if ( 0 !== Tn . angle ) { var Gn = 1 - Un . a ; Hn = ( Gn * Un . f + Un . b * Un . e ) / ( Gn * Gn + Un . b * Un . b ) , Qn = ( Un . e - Un . b * Hn ) / Gn } Dn = "rotate(" + Tn . angle + " " + Qn + "," + Hn + ")" } return Dn } var TE = { } , NE = function ( ) { function SVGTransformList ( Tn ) { _classCallCheck ( this , SVGTransformList ) , this . _elem = Tn || null , this . _xforms = [ ] , this . _update = function ( ) { for ( var Tn = "" , Un = 0 ; Un < this . numberOfItems ; ++ Un ) { Tn += transformToString ( this . _list . getItem ( Un ) ) + " " } this . _elem . setAttribute ( "transform" , Tn ) } , this . _list = this , this . _init = function ( ) { var Tn = this , Un = this . _elem . getAttribute ( "transform" ) ; if ( Un ) for ( var Dn = /\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/ , Qn = ! 0 ; Qn ; ) Qn = Un . match ( Dn ) , Un = Un . replace ( Dn , "" ) , Qn && Qn [ 1 ] && function ( ) { var Un = Qn [ 1 ] . split ( /\s*\(/ ) , Dn = Un [ 0 ] , Hn = Un [ 1 ] . match ( /\s*(.*?)\s*\)/ ) ; Hn [ 1 ] = Hn [ 1 ] . replace ( /(\d)-/g , "$1 -" ) ; var Gn = Hn [ 1 ] . split ( /[, ]+/ ) , Vn = "abcdef" . split ( "" ) , zn = LE . createSVGMatrix ( ) ; Object . values ( Gn ) . forEach ( ( function ( Tn , Un ) { Gn [ Un ] = Number . parseFloat ( Tn ) , "matrix" === Dn && ( zn [ Vn [ Un ] ] = Gn [ Un ] ) } ) ) ; var Kn = LE . createSVGTransform ( ) , $n = "set" + Dn . charAt ( 0 ) . toUpperCase ( ) + Dn . slice ( 1 ) , Wn = "matrix" === Dn ? [ zn ] : Gn ; "scale" === Dn && 1 === Wn . length ? Wn . push ( Wn [ 0 ] ) : "translate" === Dn && 1 === Wn . length ? Wn . push ( 0 ) : "rotate" === Dn && 1 === Wn . length && Wn . push ( 0 , 0 ) , Kn [ $n ] . apply ( Kn , _toConsumableArray ( Wn ) ) , Tn . _list . appendItem ( Kn ) } ( ) } , this . _removeFromOtherLists = function ( Tn ) { Tn && Object . values ( TE ) . some ( ( function ( Un ) { for ( var Dn = 0 , Qn = Un . _xforms . length ; Dn < Qn ; ++ Dn ) if ( Un . _xforms [ Dn ] === Tn ) return Un . removeItem ( Dn ) , ! 0 ; return ! 1 } ) ) } , this . numberOfItems = 0 } return _createClass ( SVGTransformList , [ { key : "clear" , value : function clear ( ) { this . numberOfItems = 0 , this . _xforms = [ ] } } , { key : "initialize" , value : function initialize ( Tn ) { this . numberOfItems = 1 , this . _removeFromOtherLists ( Tn ) , this . _xforms = [ Tn ] } } , { key : "getItem" , value : function getItem ( Tn ) { if ( Tn < this . numberOfItems && Tn >= 0 ) return this . _xforms [ Tn ] ; var Un = new Error ( "DOMException with code=INDEX_SIZE_ERR" ) ; throw Un . code = 1 , Un } } , { key : "insertItemBefore" , value : function insertItemBefore ( Tn , Un ) { var Dn = null ; if ( Un >= 0 ) if ( Un < this . numberOfItems ) { this . _removeFromOtherLists ( Tn ) ; var Qn , Hn = new Array ( this . numberOfItems + 1 ) ; for ( Qn = 0 ; Qn < Un ; ++ Qn ) Hn [ Qn ] = this . _xforms [ Qn ] ; Hn [ Qn ] = Tn ; for ( var Gn = Qn + 1 ; Qn < this . numberOfItems ; ++ Gn , ++ Qn ) Hn [ Gn ] = this . _xforms [ Qn ] ; this . numberOfItems ++ , this . _xforms = Hn , Dn = Tn , this . _list . _update ( ) } else Dn = this . _list . appendItem ( Tn ) ; return Dn } } , { key : "replaceItem" , value : function replaceItem ( Tn , Un ) { var Dn = null ; return Un < this . numberOfItems && Un >= 0 && ( this . _removeFromOtherLists ( Tn ) , this . _xforms [ Un ] = Tn , Dn = Tn , this . _list . _update ( ) ) , Dn } } , { key : "removeItem" , value : function removeItem ( Tn ) { if ( Tn < this . numberOfItems && Tn >= 0 ) { var Un , Dn = this . _xforms [ Tn ] , Qn = new Array ( this . numberOfItems - 1 ) ; for ( Un = 0 ; Un < Tn ; ++ Un ) Qn [ Un ] = this . _xforms [ Un ] ; for ( var Hn = Un ; Hn < this . numberOfItems - 1 ; ++ Hn , ++ Un ) Qn [ Hn ] = this . _xforms [ Un + 1 ] ; return this . numberOfItems -- , this . _xforms = Qn , this . _list . _update ( ) , Dn } var Gn = new Error ( "DOMException with code=INDEX_SIZE_ERR" ) ; throw Gn . code = 1 , Gn } } , { key : "appendItem" , value : function appendItem ( Tn ) { return this . _removeFromOtherLists ( Tn ) , this . _xforms . push ( Tn ) , this . numberOfItems ++ , this . _list . _update ( ) , Tn } } ] )
2020-09-11 23:27:47 +00:00
/ * * @ l i c e n s e
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.1 . 1 Built on 2020 - 09 - 07 T12 : 58 : 19.950 Z
* CommitID 00000000
*
* Copyright ( c ) 2010 - 2020 James Hall < james @ parall . ax > , https : //github.com/MrRio/jsPDF
* 2015 - 2020 yWorks GmbH , http : //www.yworks.com
* 2015 - 2020 Lukas Holländer < lukas . hollaender @ yworks . com > , https : //github.com/HackbrettXXX
* 2016 - 2018 Aras Abbasi < aras . abbasi @ gmail . com >
* 2010 Aaron Spike , https : //github.com/acspike
* 2012 Willow Systems Corporation , willow - systems . com
* 2012 Pablo Hess , https : //github.com/pablohess
* 2012 Florian Jenett , https : //github.com/fjenett
* 2013 Warren Weckesser , https : //github.com/warrenweckesser
* 2013 Youssef Beddad , https : //github.com/lifof
* 2013 Lee Driscoll , https : //github.com/lsdriscoll
* 2013 Stefan Slonevskiy , https : //github.com/stefslon
* 2013 Jeremy Morel , https : //github.com/jmorel
* 2013 Christoph Hartmann , https : //github.com/chris-rock
* 2014 Juan Pablo Gaviria , https : //github.com/juanpgaviria
* 2014 James Makes , https : //github.com/dollaruw
* 2014 Diego Casorran , https : //github.com/diegocr
* 2014 Steven Spungin , https : //github.com/Flamenco
* 2014 Kenneth Glassey , https : //github.com/Gavvers
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
*
* Contributor ( s ) :
* siefkenj , ahwolf , rickygu , Midnith , saintclair , eaparango ,
* kim3er , mfo , alnorth , Flamenco
* /
2021-01-03 17:35:23 +00:00
var OF = function ( ) { return "undefined" != typeof window ? window : void 0 !== LF ? LF : "undefined" != typeof self ? self : this } ( ) ; function e$1 ( ) { OF . console && "function" == typeof OF . console . log && OF . console . log . apply ( OF . console , arguments ) } var FF = { log : e$1 , warn : function warn ( Tn ) { OF . console && ( "function" == typeof OF . console . warn ? OF . console . warn . apply ( OF . console , arguments ) : e$1 . call ( null , arguments ) ) } , error : function error ( Tn ) { OF . console && ( "function" == typeof OF . console . error ? OF . console . error . apply ( OF . console , arguments ) : e$1 ( Tn ) ) } } ;
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* FileSaver . js
* A saveAs ( ) FileSaver implementation .
*
* By Eli Grey , http : //eligrey.com
*
* License : https : //github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
* source : http : //purl.eligrey.com/github/FileSaver.js
2021-01-03 17:35:23 +00:00
* /function r$1(Tn,Un,Dn){var Qn=new XMLHttpRequest;Qn.open("GET",Tn),Qn.responseType="blob",Qn.onload=function(){RF(Qn.response,Un,Dn)},Qn.onerror=function(){FF.error("could not download file")},Qn.send()}function i$2(Tn){var Un=new XMLHttpRequest;Un.open("HEAD",Tn,!1);try{Un.send()}catch(Tn){}return Un.status>=200&&Un.status<=299}function a$1(Tn){try{Tn.dispatchEvent(new MouseEvent("click"))}catch(Dn){var Un=document.createEvent("MouseEvents");Un.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Tn.dispatchEvent(Un)}}var UF,MF,RF=OF.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==OF?function(){}:"download"in HTMLAnchorElement.prototype?function(Tn,Un,Dn){var Qn=OF.URL||OF.webkitURL,Hn=document.createElement("a");Un=Un||Tn.name||"download",Hn.download=Un,Hn.rel="noopener","string"==typeof Tn?(Hn.href=Tn,Hn.origin!==location.origin?i$2(Hn.href)?r$1(Tn,Un,Dn):a$1(Hn,Hn.target="_blank"):a$1(Hn)):(Hn.href=Qn.createObjectURL(Tn),setTimeout((function(){Qn.revokeObjectURL(Hn.href)}),4e4),setTimeout((function(){a$1(Hn)}),0))}:"msSaveOrOpenBlob"in navigator?function(Tn,Un,Dn){if(Un=Un||Tn.name||"download","string"==typeof Tn)if(i$2(Tn))r$1(Tn,Un,Dn);else{var Qn=document.createElement("a");Qn.href=Tn,Qn.target="_blank",setTimeout((function(){a$1(Qn)}))}else navigator.msSaveOrOpenBlob(function(Tn,Un){return void 0===Un?Un={autoBom:!1}:"object"!=_typeof(Un)&&(FF.warn("Deprecated: Expected third argument to be a object"),Un={autoBom:!Un}),Un.autoBom&&/ ^ \ s * ( ? : text \ / \ S * | application \ / xml | \ S * \ / \ S * \ + xml ) \ s * ; . * charset \ s *= \ s * utf - 8 / i . test ( Tn . type ) ? new Blob ( [ String . fromCharCode ( 65279 ) , Tn ] , { type : Tn . type } ) : Tn } ( Tn , Dn ) , Un ) } : function ( Tn , Un , Dn , Qn ) { if ( ( Qn = Qn || open ( "" , "_blank" ) ) && ( Qn . document . title = Qn . document . body . innerText = "downloading..." ) , "string" == typeof Tn ) return r$1 ( Tn , Un , Dn ) ; var Hn = "application/octet-stream" === Tn . type , Gn = /constructor/i . test ( OF . HTMLElement ) || OF . safari , Vn = /CriOS\/[\d]+/ . test ( navigator . userAgent ) ; if ( ( Vn || Hn && Gn ) && "object" == ( "undefined" == typeof FileReader ? "undefined" : _typeof ( FileReader ) ) ) { var zn = new FileReader ; zn . onloadend = function ( ) { var Tn = zn . result ; Tn = Vn ? Tn : Tn . replace ( /^data:[^;]*;/ , "data:attachment/file;" ) , Qn ? Qn . location . href = Tn : location = Tn , Qn = null } , zn . readAsDataURL ( Tn ) } else { var Kn = OF . URL || OF . webkitURL , $n = Kn . createObjectURL ( Tn ) ; Qn ? Qn . location = $n : location . href = $n , Qn = null , setTimeout ( ( function ( ) { Kn . revokeObjectURL ( $n ) } ) , 4e4 ) } } ) ;
2020-09-11 23:27:47 +00:00
/ * *
* A class to parse color values
* @ author Stoyan Stefanov < sstoo @ gmail . com >
* { @ link http : //www.phpied.com/rgb-color-parser-in-javascript/}
* @ license Use it if you like it
2021-01-03 17:35:23 +00:00
* /function c$2(Tn){var Un;Tn=Tn||"",this.ok=!1,"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),Tn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Tn=(Tn=Tn.replace(/ /g,"")).toLowerCase()]||Tn;for(var Dn=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/ ^ ( \ w { 2 } ) ( \ w { 2 } ) ( \ w { 2 } ) $ / , example : [ "#00ff00" , "336699" ] , process : function process ( Tn ) { return [ parseInt ( Tn [ 1 ] , 16 ) , parseInt ( Tn [ 2 ] , 16 ) , parseInt ( Tn [ 3 ] , 16 ) ] } } , { re : /^(\w{1})(\w{1})(\w{1})$/ , example : [ "#fb0" , "f0f" ] , process : function process ( Tn ) { return [ parseInt ( Tn [ 1 ] + Tn [ 1 ] , 16 ) , parseInt ( Tn [ 2 ] + Tn [ 2 ] , 16 ) , parseInt ( Tn [ 3 ] + Tn [ 3 ] , 16 ) ] } } ] , Qn = 0 ; Qn < Dn . length ; Qn ++ ) { var Hn = Dn [ Qn ] . re , Gn = Dn [ Qn ] . process , Vn = Hn . exec ( Tn ) ; Vn && ( Un = Gn ( Vn ) , this . r = Un [ 0 ] , this . g = Un [ 1 ] , this . b = Un [ 2 ] , this . ok = ! 0 ) } this . r = this . r < 0 || isNaN ( this . r ) ? 0 : this . r > 255 ? 255 : this . r , this . g = this . g < 0 || isNaN ( this . g ) ? 0 : this . g > 255 ? 255 : this . g , this . b = this . b < 0 || isNaN ( this . b ) ? 0 : this . b > 255 ? 255 : this . b , this . toRGB = function ( ) { return "rgb(" + this . r + ", " + this . g + ", " + this . b + ")" } , this . toHex = function ( ) { var Tn = this . r . toString ( 16 ) , Un = this . g . toString ( 16 ) , Dn = this . b . toString ( 16 ) ; return 1 == Tn . length && ( Tn = "0" + Tn ) , 1 == Un . length && ( Un = "0" + Un ) , 1 == Dn . length && ( Dn = "0" + Dn ) , "#" + Tn + Un + Dn } } function h$1 ( Tn ) { if ( "object" != _typeof ( Tn ) ) throw new Error ( "Invalid Context passed to initialize PubSub (jsPDF-module)" ) ; var Un = { } ; this . subscribe = function ( Tn , D
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2014 Steven Spungin ( TwelveTone LLC ) steven @ twelvetone . tv
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { var Un = function e ( Tn ) { if ( void 0 !== Tn && "" != Tn ) return ! 0 } ; g . API . events . push ( [ "addPage" , function ( Tn ) { this . internal . getPageInfo ( Tn . pageNumber ) . pageContext . annotations = [ ] } ] ) , Tn . events . push ( [ "putPage" , function ( Tn ) { for ( var Dn , Qn , Hn , Gn = this . internal . getCoordinateString , Vn = this . internal . getVerticalCoordinateString , zn = this . internal . getPageInfoByObjId ( Tn . objId ) , Kn = Tn . pageContext . annotations , $n = ! 1 , Wn = 0 ; Wn < Kn . length && ! $n ; Wn ++ ) switch ( ( Dn = Kn [ Wn ] ) . type ) { case "link" : ( Un ( Dn . options . url ) || Un ( Dn . options . pageNumber ) ) && ( $n = ! 0 ) ; break ; case "reference" : case "text" : case "freetext" : $n = ! 0 } if ( 0 != $n ) { this . internal . write ( "/Annots [" ) ; for ( var Xn = 0 ; Xn < Kn . length ; Xn ++ ) switch ( ( Dn = Kn [ Xn ] ) . type ) { case "reference" : this . internal . write ( " " + Dn . object . objId + " 0 R " ) ; break ; case "text" : var Yn = this . internal . newAdditionalObject ( ) , Jn = this . internal . newAdditionalObject ( ) , Zn = Dn . title || "Note" ; Hn = "<</Type /Annot /Subtype /Text " + ( Qn = "/Rect [" + Gn ( Dn . bounds . x ) + " " + Vn ( Dn . bounds . y + Dn . bounds . h ) + " " + Gn ( Dn . bounds . x + Dn . bounds . w ) + " " + Vn ( Dn . bounds . y ) + "] " ) + "/Contents (" + Dn . contents + ")" , Hn += " /Popup " + Jn . objId + " 0 R" , Hn += " /P " + zn . objId + " 0 R" , Hn += " /T (" + Zn + ") >>" , Yn . content = Hn ; var er = Yn . objId + " 0 R" ; Hn = "<</Type /Annot /Subtype /Popup " + ( Qn = "/Rect [" + Gn ( Dn . bounds . x + 30 ) + " " + Vn ( Dn . bounds . y + Dn . bounds . h ) + " " + Gn ( Dn . bounds . x + Dn . bounds . w + 30 ) + " " + Vn ( Dn . bounds . y ) + "] " ) + " /Parent " + er , Dn . open && ( Hn += " /Open true" ) , Hn += " >>" , Jn . content = Hn , this . internal . write ( Yn . objId , "0 R" , Jn . objId , "0 R" ) ; break ; case "freetext" : Qn = "/Rect [" + Gn ( Dn . bounds . x ) + " " + Vn ( Dn . bounds . y ) + " " + Gn ( Dn . bounds . x + Dn . bounds . w ) + " " + Vn ( Dn . bounds . y + Dn . bounds . h ) + "] " ; var tr = Dn . color || "#000000" ; Hn = "<</Type /Annot /Subtype /FreeText " + Qn + "/Contents (" + Dn . contents + ")" , Hn += " /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#" + tr + ")" , Hn += " /Border [0 0 0]" , Hn += " >>" , this . internal . write ( Hn ) ; break ; case "link" : if ( Dn . options . name ) { var nr = this . annotations . _nameMap [ Dn . options . name ] ; Dn . options . pageNumber = nr . page , Dn . options . top = nr . y } else Dn . options . top || ( Dn . options . top = 0 ) ; if ( Qn = "/Rect [" + Gn ( Dn . x ) + " " + Vn ( Dn . y ) + " " + Gn ( Dn . x + Dn . w ) + " " + Vn ( Dn . y + Dn . h ) + "] " , Hn = "" , Dn . options . url ) Hn = "<</Type /Annot /Subtype /Link " + Qn + "/Border [0 0 0] /A <</S /URI /URI (" + Dn . options . url + ") >>" ; else if ( Dn . options . pageNumber ) switch ( Hn = "<</Type /Annot /Subtype /Link " + Qn + "/Border [0 0 0] /Dest [" + this . internal . getPageInfo ( Dn . options . pageNumber ) . objId + " 0 R" , Dn . options . magFactor = Dn . options . magFactor || "XYZ" , Dn . options . magFactor ) { case "Fit" : Hn += " /Fit]" ; break ; case "FitH" : Hn += " /FitH " + Dn . options . top + "]" ; break ; case "FitV" : Dn . options . left = Dn . options . left || 0 , Hn += " /FitV " + Dn . options . left + "]" ; break ; case "XYZ" : default : var rr = Vn ( Dn . options . top ) ; Dn . options . left = Dn . options . left || 0 , void 0 === Dn . options . zoom && ( Dn . options . zoom = 0 ) , Hn += " /XYZ " + Dn . options . left + " " + rr + " " + Dn . options . zoom + "]" } "" != Hn && ( Hn += " >>" , this . internal . write ( Hn ) ) } this . internal . write ( "]" ) } } ] ) , Tn . createAnnotation = function ( Tn ) { var Un = this . internal . getCurrentPageInfo ( ) ; switch ( Tn . type ) { case "link" : this . link ( Tn . bounds . x , Tn . bounds . y , Tn . bounds . w , Tn . bounds . h , Tn ) ; break ; case "text" : case "freetext" : Un . pageContext . annotations . push ( Tn ) } } , Tn . link = function ( Tn , Un , Dn , Qn , Hn ) { this . internal . getCurrentPageInfo ( ) . pageContext . annotations . push ( { x : Tn , y : Un , w : Dn , h : Qn , options : Hn , type : "link" } ) } , Tn . textWithLink = function ( Tn , Un , Dn , Qn ) { var Hn = this . getTextWidth ( Tn ) , Gn = this . internal . getLineHeight ( ) / this . internal . scaleFactor ; return this . text ( Tn , Un , Dn , Qn ) , Dn += . 2 * Gn , this . link ( Un , Dn - Gn , Hn , Gn , Qn ) , Hn } , Tn . getTextWidth = function ( Tn ) { var Un = this . internal . getFontSize ( ) ; return this . getStringUnitWidth ( Tn ) * Un / this . internal . scaleFactor } } ( g . API ) ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2017 Aras Abbasi
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { var Un = { 1569 : [ 65152 ] , 1570 : [ 65153 , 65154 ] , 1571 : [ 65155 , 65156 ] , 1572 : [ 65157 , 65158 ] , 1573 : [ 65159 , 65160 ] , 1574 : [ 65161 , 65162 , 65163 , 65164 ] , 1575 : [ 65165 , 65166 ] , 1576 : [ 65167 , 65168 , 65169 , 65170 ] , 1577 : [ 65171 , 65172 ] , 1578 : [ 65173 , 65174 , 65175 , 65176 ] , 1579 : [ 65177 , 65178 , 65179 , 65180 ] , 1580 : [ 65181 , 65182 , 65183 , 65184 ] , 1581 : [ 65185 , 65186 , 65187 , 65188 ] , 1582 : [ 65189 , 65190 , 65191 , 65192 ] , 1583 : [ 65193 , 65194 ] , 1584 : [ 65195 , 65196 ] , 1585 : [ 65197 , 65198 ] , 1586 : [ 65199 , 65200 ] , 1587 : [ 65201 , 65202 , 65203 , 65204 ] , 1588 : [ 65205 , 65206 , 65207 , 65208 ] , 1589 : [ 65209 , 65210 , 65211 , 65212 ] , 1590 : [ 65213 , 65214 , 65215 , 65216 ] , 1591 : [ 65217 , 65218 , 65219 , 65220 ] , 1592 : [ 65221 , 65222 , 65223 , 65224 ] , 1593 : [ 65225 , 65226 , 65227 , 65228 ] , 1594 : [ 65229 , 65230 , 65231 , 65232 ] , 1601 : [ 65233 , 65234 , 65235 , 65236 ] , 1602 : [ 65237 , 65238 , 65239 , 65240 ] , 1603 : [ 65241 , 65242 , 65243 , 65244 ] , 1604 : [ 65245 , 65246 , 65247 , 65248 ] , 1605 : [ 65249 , 65250 , 65251 , 65252 ] , 1606 : [ 65253 , 65254 , 65255 , 65256 ] , 1607 : [ 65257 , 65258 , 65259 , 65260 ] , 1608 : [ 65261 , 65262 ] , 1609 : [ 65263 , 65264 , 64488 , 64489 ] , 1610 : [ 65265 , 65266 , 65267 , 65268 ] , 1649 : [ 64336 , 64337 ] , 1655 : [ 64477 ] , 1657 : [ 64358 , 64359 , 64360 , 64361 ] , 1658 : [ 64350 , 64351 , 64352 , 64353 ] , 1659 : [ 64338 , 64339 , 64340 , 64341 ] , 1662 : [ 64342 , 64343 , 64344 , 64345 ] , 1663 : [ 64354 , 64355 , 64356 , 64357 ] , 1664 : [ 64346 , 64347 , 64348 , 64349 ] , 1667 : [ 64374 , 64375 , 64376 , 64377 ] , 1668 : [ 64370 , 64371 , 64372 , 64373 ] , 1670 : [ 64378 , 64379 , 64380 , 64381 ] , 1671 : [ 64382 , 64383 , 64384 , 64385 ] , 1672 : [ 64392 , 64393 ] , 1676 : [ 64388 , 64389 ] , 1677 : [ 64386 , 64387 ] , 1678 : [ 64390 , 64391 ] , 1681 : [ 64396 , 64397 ] , 1688 : [ 64394 , 64395 ] , 1700 : [ 64362 , 64363 , 64364 , 64365 ] , 1702 : [ 64366 , 64367 , 64368 , 64369 ] , 1705 : [ 64398 , 64399 , 64400 , 64401 ] , 1709 : [ 64467 , 64468 , 64469 , 64470 ] , 1711 : [ 64402 , 64403 , 64404 , 64405 ] , 1713 : [ 64410 , 64411 , 64412 , 64413 ] , 1715 : [ 64406 , 64407 , 64408 , 64409 ] , 1722 : [ 64414 , 64415 ] , 1723 : [ 64416 , 64417 , 64418 , 64419 ] , 1726 : [ 64426 , 64427 , 64428 , 64429 ] , 1728 : [ 64420 , 64421 ] , 1729 : [ 64422 , 64423 , 64424 , 64425 ] , 1733 : [ 64480 , 64481 ] , 1734 : [ 64473 , 64474 ] , 1735 : [ 64471 , 64472 ] , 1736 : [ 64475 , 64476 ] , 1737 : [ 64482 , 64483 ] , 1739 : [ 64478 , 64479 ] , 1740 : [ 64508 , 64509 , 64510 , 64511 ] , 1744 : [ 64484 , 64485 , 64486 , 64487 ] , 1746 : [ 64430 , 64431 ] , 1747 : [ 64432 , 64433 ] } , Dn = { 65247 : { 65154 : 65269 , 65156 : 65271 , 65160 : 65273 , 65166 : 65275 } , 65248 : { 65154 : 65270 , 65156 : 65272 , 65160 : 65274 , 65166 : 65276 } , 65165 : { 65247 : { 65248 : { 65258 : 65010 } } } , 1617 : { 1612 : 64606 , 1613 : 64607 , 1614 : 64608 , 1615 : 64609 , 1616 : 64610 } } , Qn = { 1612 : 64606 , 1613 : 64607 , 1614 : 64608 , 1615 : 64609 , 1616 : 64610 } , Hn = [ 1570 , 1571 , 1573 , 1575 ] ; Tn . _ _arabicParser _ _ = { } ; var Gn = Tn . _ _arabicParser _ _ . isInArabicSubstitutionA = function ( Tn ) { return void 0 !== Un [ Tn . charCodeAt ( 0 ) ] } , Vn = Tn . _ _arabicParser _ _ . isArabicLetter = function ( Tn ) { return "string" == typeof Tn && /^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/ . test ( Tn ) } , zn = Tn . _ _arabicParser _ _ . isArabicEndLetter = function ( Tn ) { return Vn ( Tn ) && Gn ( Tn ) && Un [ Tn . charCodeAt ( 0 ) ] . length <= 2 } , Kn = Tn . _ _arabicParser _ _ . isArabicAlfLetter = function ( Tn ) { return Vn ( Tn ) && Hn . indexOf ( Tn . charCodeAt ( 0 ) ) >= 0 } ; Tn . _ _arabicParser _ _ . arabicLetterHasIsolatedForm = function ( Tn ) { return Vn ( Tn ) && Gn ( Tn ) && Un [ Tn . charCodeAt ( 0 ) ] . length >= 1 } ; var $n = Tn . _ _arabicParser _ _ . arabicLetterHasFinalForm = function ( Tn ) { return Vn ( Tn ) && Gn ( Tn ) && Un [ Tn . charCodeAt ( 0 ) ] . length >= 2 } ; Tn . _ _arabicParser _ _ . arabicLetterHasInitialForm = function ( Tn ) { return Vn ( Tn ) && Gn ( Tn ) && Un [ Tn . charCodeAt ( 0 ) ] . length >= 3 } ; var Wn = Tn . _ _arabicParser _ _ . arabicLetterHasMedialForm = function ( Tn ) { return Vn ( Tn ) && Gn ( Tn ) && 4 == Un [ Tn . charCodeAt ( 0 ) ] . length } , Xn = Tn . _ _arabicParser _ _ . resolveLigatures = function ( Tn ) { var Un = 0 , Qn = Dn , Hn = "" , Gn = 0 ; for ( Un = 0 ; Un < Tn . length ; Un += 1 ) void 0 !== Qn [ Tn . charCodeAt ( Un ) ] ? ( Gn ++ , "number" == typeof ( Qn = Qn [ Tn . charCodeAt ( Un ) ] ) && ( Hn += String . fromCharCode ( Qn ) , Qn = Dn , Gn = 0 ) , Un === Tn . length - 1 && ( Qn = Dn , Hn += Tn . charAt ( Un - ( Gn - 1 ) ) , Un -= Gn - 1 , Gn = 0 ) ) : ( Qn = Dn , Hn += Tn . charAt ( Un - Gn ) , Un -= Gn , Gn = 0 ) ; return Hn } ; Tn . _ _arabicParser _ _ . isArabicDiacritic = function ( Tn ) { return void 0 !== Tn && void 0 !== Qn [ Tn . charCodeAt ( 0 ) ] } ; var Yn = Tn . _ _arabicParser _ _ . getCorrectForm = function ( Tn , Un , Dn ) { return Vn ( Tn ) ? ! 1 === Gn ( Tn ) ? - 1 : ! $n ( Tn ) || ! Vn ( Un ) && ! Vn ( Dn ) || ! Vn ( Dn ) && zn ( Un ) || zn ( Tn ) && ! Vn ( Un ) || zn ( Tn ) && Kn ( Un ) || zn ( Tn ) && zn ( Un ) ? 0 : Wn ( Tn ) && Vn ( Un ) && ! zn ( Un ) && Vn ( Dn ) && $n ( Dn ) ? 3 : zn ( Tn ) || ! Vn ( Dn ) ? 1 : 2 : - 1 } , Jn = function d ( Tn ) { var Dn = 0 , Qn = 0 , Hn = 0 , Gn = "" , zn = "" , Kn = "" , $n = ( Tn = Tn || "" ) . split ( "\\s+" ) , Wn = [ ] ; for ( Dn = 0 ; Dn < $n . length ; Dn += 1 ) { fo
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2014 Steven Spungin ( TwelveTone LLC ) steven @ twelvetone . tv
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2020-12-19 21:53:45 +00:00
function ( Tn ) { var Un = function e ( ) { var Tn = void 0 ; Object . defineProperty ( this , "pdf" , { get : function get ( ) { return Tn } , set : function set ( Un ) { Tn = Un } } ) ; var e = 150 ; Object . defineProperty ( this , "width" , { get : function get ( ) { return e } , set : function set ( Tn ) { e = isNaN ( Tn ) || ! 1 === Number . isInteger ( Tn ) || Tn < 0 ? 150 : Tn , this . getContext ( "2d" ) . pageWrapXEnabled && ( this . getContext ( "2d" ) . pageWrapX = e + 1 ) } } ) ; var Un = 300 ; Object . defineProperty ( this , "height" , { get : function get ( ) { return Un } , set : function set ( Tn ) { Un = isNaN ( Tn ) || ! 1 === Number . isInteger ( Tn ) || Tn < 0 ? 300 : Tn , this . getContext ( "2d" ) . pageWrapYEnabled && ( this . getContext ( "2d" ) . pageWrapY = Un + 1 ) } } ) ; var Dn = [ ] ; Object . defineProperty ( this , "childNodes" , { get : function get ( ) { return Dn } , set : function set ( Tn ) { Dn = Tn } } ) ; var Qn = { } ; Object . defineProperty ( this , "style" , { get : function get ( ) { return Qn } , set : function set ( Tn ) { Qn = Tn } } ) , Object . defineProperty ( this , "parentNode" , { } ) } ; Un . prototype . getContext = function ( Tn , Un ) { var Dn ; if ( "2d" !== ( Tn = Tn || "2d" ) ) return null ; for ( Dn in Un ) this . pdf . context2d . hasOwnProperty ( Dn ) && ( this . pdf . context2d [ Dn ] = Un [ Dn ] ) ; return this . pdf . context2d . _canvas = this , this . pdf . context2d } , Un . prototype . toDataURL = function ( ) { throw new Error ( "toDataURL is not implemented." ) } , Tn . events . push ( [ "initialized" , function ( ) { this . canvas = new Un , this . canvas . pdf = this } ] ) } ( g . API ) ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* === === === === === === === === === === === === === === === === === === === === === === ==
* Copyright ( c ) 2013 Youssef Beddad , youssef . beddad @ gmail . com
* 2013 Eduardo Menezes de Morais , eduardo . morais @ usp . br
* 2013 Lee Driscoll , https : //github.com/lsdriscoll
* 2014 Juan Pablo Gaviria , https : //github.com/juanpgaviria
* 2014 James Hall , james @ parall . ax
* 2014 Diego Casorran , https : //github.com/diegocr
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
* === === === === === === === === === === === === === === === === === === === === === === ==
* /
2021-01-03 17:35:23 +00:00
function ( Tn ) { var Un = { left : 0 , top : 0 , bottom : 0 , right : 0 } , Dn = ! 1 , Qn = function r ( ) { void 0 === this . internal . _ _cell _ _ && ( this . internal . _ _cell _ _ = { } , this . internal . _ _cell _ _ . padding = 3 , this . internal . _ _cell _ _ . headerFunction = void 0 , this . internal . _ _cell _ _ . margins = Object . assign ( { } , Un ) , this . internal . _ _cell _ _ . margins . width = this . getPageWidth ( ) , Hn . call ( this ) ) } , Hn = function i ( ) { this . internal . _ _cell _ _ . lastCell = new Gn , this . internal . _ _cell _ _ . pages = 1 } , Gn = function a ( ) { var Tn = arguments [ 0 ] ; Object . defineProperty ( this , "x" , { enumerable : ! 0 , get : function get ( ) { return Tn } , set : function set ( Un ) { Tn = Un } } ) ; var Un = arguments [ 1 ] ; Object . defineProperty ( this , "y" , { enumerable : ! 0 , get : function get ( ) { return Un } , set : function set ( Tn ) { Un = Tn } } ) ; var Dn = arguments [ 2 ] ; Object . defineProperty ( this , "width" , { enumerable : ! 0 , get : function get ( ) { return Dn } , set : function set ( Tn ) { Dn = Tn } } ) ; var Qn = arguments [ 3 ] ; Object . defineProperty ( this , "height" , { enumerable : ! 0 , get : function get ( ) { return Qn } , set : function set ( Tn ) { Qn = Tn } } ) ; var Hn = arguments [ 4 ] ; Object . defineProperty ( this , "text" , { enumerable : ! 0 , get : function get ( ) { return Hn } , set : function set ( Tn ) { Hn = Tn } } ) ; var a = arguments [ 5 ] ; Object . defineProperty ( this , "lineNumber" , { enumerable : ! 0 , get : function get ( ) { return a } , set : function set ( Tn ) { a = Tn } } ) ; var Gn = arguments [ 6 ] ; return Object . defineProperty ( this , "align" , { enumerable : ! 0 , get : function get ( ) { return Gn } , set : function set ( Tn ) { Gn = Tn } } ) , this } ; Gn . prototype . clone = function ( ) { return new Gn ( this . x , this . y , this . width , this . height , this . text , this . lineNumber , this . align ) } , Gn . prototype . toArray = function ( ) { return [ this . x , this . y , this . width , this . height , this . text , this . lineNumber , this . align ] } , Tn . setHeaderFunction = function ( Tn ) { return Qn . call ( this ) , this . internal . _ _cell _ _ . headerFunction = "function" == typeof Tn ? Tn : void 0 , this } , Tn . getTextDimensions = function ( Tn , Un ) { Qn . call ( this ) ; var Dn = ( Un = Un || { } ) . fontSize || this . getFontSize ( ) , Hn = Un . font || this . getFont ( ) , Gn = Un . scaleFactor || this . internal . scaleFactor , Vn = 0 , zn = 0 , Kn = 0 ; if ( ! Array . isArray ( Tn ) && "string" != typeof Tn ) { if ( "number" != typeof Tn ) throw new Error ( "getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings." ) ; Tn = String ( Tn ) } var $n = Un . maxWidth ; $n > 0 ? "string" == typeof Tn ? Tn = this . splitTextToSize ( Tn , $n ) : "[object Array]" === Object . prototype . toString . call ( Tn ) && ( Tn = this . splitTextToSize ( Tn . join ( " " ) , $n ) ) : Tn = Array . isArray ( Tn ) ? Tn : [ Tn ] ; for ( var Wn = 0 ; Wn < Tn . length ; Wn ++ ) Vn < ( Kn = this . getStringUnitWidth ( Tn [ Wn ] , { font : Hn } ) * Dn ) && ( Vn = Kn ) ; return 0 !== Vn && ( zn = Tn . length ) , { w : Vn /= Gn , h : Math . max ( ( zn * Dn * this . getLineHeightFactor ( ) - Dn * ( this . getLineHeightFactor ( ) - 1 ) ) / Gn , 0 ) } } , Tn . cellAddPage = function ( ) { Qn . call ( this ) , this . addPage ( ) ; var Tn = this . internal . _ _cell _ _ . margins || Un ; return this . internal . _ _cell _ _ . lastCell = new Gn ( Tn . left , Tn . top , void 0 , void 0 ) , this . internal . _ _cell _ _ . pages += 1 , this } ; var Vn = Tn . cell = function ( ) { var Tn ; Tn = arguments [ 0 ] instanceof Gn ? arguments [ 0 ] : new Gn ( arguments [ 0 ] , arguments [ 1 ] , arguments [ 2 ] , arguments [ 3 ] , arguments [ 4 ] , arguments [ 5 ] ) , Qn . call ( this ) ; var Hn = this . internal . _ _cell _ _ . lastCell , Vn = this . internal . _ _cell _ _ . padding , zn = this . internal . _ _cell _ _ . margins || Un , Kn = this . internal . _ _cell _ _ . tableHeaderRow , $n = this . internal . _ _cell _ _ . printHeaders ; return void 0 !== Hn . lineNumber && ( Hn . lineNumber === Tn . lineNumber ? ( Tn . x = ( Hn . x || 0 ) + ( Hn . width || 0 ) , Tn . y = Hn . y || 0 ) : Hn . y + Hn . height + Tn . height + zn . bottom > this . getPageHeight ( ) ? ( this . cellAddPage ( ) , Tn . y = zn . top , $n && Kn && ( this . printHeaderRow ( Tn . lineNumber , ! 0 ) , Tn . y += Kn [ 0 ] . height ) ) : Tn . y = Hn . y + Hn . height || Tn . y ) , void 0 !== Tn . text [ 0 ] && ( this . rect ( Tn . x , Tn . y , Tn . width , Tn . height , ! 0 === Dn ? "FD" : void 0 ) , "right" === Tn . align ? this . text ( Tn . text , Tn . x + Tn . width - Vn , Tn . y + Vn , { align : "right" , baseline : "top" } ) : "center" === Tn . align ? this . text ( Tn . text , Tn . x + Tn . width / 2 , Tn . y + Vn , { align : "center" , baseline : "top" , maxWidth : Tn . width - Vn - Vn } ) : this . text ( Tn . text , Tn . x + Vn , Tn . y + Vn , { align : "left" , baseline : "top" , maxWidth : Tn . width - Vn - Vn } ) ) , this . internal . _ _cell _ _ . lastCell = Tn , this } ; Tn . table = function ( Tn , Dn , Kn , $n , Wn ) { if ( Qn . call ( this ) , ! Kn ) throw new Error ( "No data for PDF table." ) ; var Xn , Yn , Jn , Zn , er = [ ] , tr = [ ] , nr = [ ] , rr = { } , ir = { } , or = [ ] , ar = [ ] , sr = ( Wn = Wn || { } ) . autoSize || ! 1 , lr = ! 1 !== Wn . printHeaders , cr = Wn . css && void 0 !== Wn . css [ "font-size" ] ? 16 * Wn . css [ "font-size" ] :
2020-09-11 23:27:47 +00:00
/ * *
* @ license
Copyright ( c ) 2013 Gildas Lormeau . All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
1. Redistributions of source code must retain the above copyright notice ,
this list of conditions and the following disclaimer .
2. Redistributions in binary form must reproduce the above copyright
notice , this list of conditions and the following disclaimer in
the documentation and / or other materials provided with the distribution .
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission .
THIS SOFTWARE IS PROVIDED ` ` AS IS '' AND ANY EXPRESSED OR IMPLIED WARRANTIES ,
INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL JCRAFT ,
INC . OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT , INDIRECT ,
INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT
LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA ,
OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE ,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
* /
2021-01-03 17:35:23 +00:00
var IU = [ 0 , 1 , 2 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 6 , 6 , 7 , 7 , 7 , 7 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 10 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 11 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 13 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 14 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 15 , 0 , 0 , 16 , 17 , 18 , 18 , 19 , 19 , 20 , 20 , 20 , 20 , 21 , 21 , 21 , 21 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 ] ; function ft ( ) { var Tn = this ; function e ( Tn , Un ) { var Dn = 0 ; do { Dn |= 1 & Tn , Tn >>>= 1 , Dn <<= 1 } while ( -- Un > 0 ) ; return Dn >>> 1 } Tn . build _tree = function ( Un ) { var Dn , Qn , Hn , Gn = Tn . dyn _tree , Vn = Tn . stat _desc . static _tree , zn = Tn . stat _desc . elems , Kn = - 1 ; for ( Un . heap _len = 0 , Un . heap _max = 573 , Dn = 0 ; Dn < zn ; Dn ++ ) 0 !== Gn [ 2 * Dn ] ? ( Un . heap [ ++ Un . heap _len ] = Kn = Dn , Un . depth [ Dn ] = 0 ) : Gn [ 2 * Dn + 1 ] = 0 ; for ( ; Un . heap _len < 2 ; ) Gn [ 2 * ( Hn = Un . heap [ ++ Un . heap _len ] = Kn < 2 ? ++ Kn : 0 ) ] = 1 , Un . depth [ Hn ] = 0 , Un . opt _len -- , Vn && ( Un . static _len -= Vn [ 2 * Hn + 1 ] ) ; for ( Tn . max _code = Kn , Dn = Math . floor ( Un . heap _len / 2 ) ; Dn >= 1 ; Dn -- ) Un . pqdownheap ( Gn , Dn ) ; Hn = zn ; do { Dn = Un . heap [ 1 ] , Un . heap [ 1 ] = Un . heap [ Un . heap _len -- ] , Un . pqdownheap ( Gn , 1 ) , Qn = Un . heap [ 1 ] , Un . heap [ -- Un . heap _max ] = Dn , Un . heap [ -- Un . heap _max ] = Qn , Gn [ 2 * Hn ] = Gn [ 2 * Dn ] + Gn [ 2 * Qn ] , Un . depth [ Hn ] = Math . max ( Un . depth [ Dn ] , Un . depth [ Qn ] ) + 1 , Gn [ 2 * Dn + 1 ] = Gn [ 2 * Qn + 1 ] = Hn , Un . heap [ 1 ] = Hn ++ , Un . pqdownheap ( Gn , 1 ) } while ( Un . heap _len >= 2 ) ; Un . heap [ -- Un . heap _max ] = Un . heap [ 1 ] , function ( Un ) { var Dn , Qn , Hn , Gn , Vn , zn , Kn = Tn . dyn _tree , $n = Tn . stat _desc . static _tree , Wn = Tn . stat _desc . extra _bits , Xn = Tn . stat _desc . extra _base , Yn = Tn . stat _desc . max _length , Jn = 0 ; for ( Gn = 0 ; Gn <= 15 ; Gn ++ ) Un . bl _count [ Gn ] = 0 ; for ( Kn [ 2 * Un . heap [ Un . heap _max ] + 1 ] = 0 , Dn = Un . heap _max + 1 ; Dn < 573 ; Dn ++ ) ( Gn = Kn [ 2 * Kn [ 2 * ( Qn = Un . heap [ Dn ] ) + 1 ] + 1 ] + 1 ) > Yn && ( Gn = Yn , Jn ++ ) , Kn [ 2 * Qn + 1 ] = Gn , Qn > Tn . max _code || ( Un . bl _count [ Gn ] ++ , Vn = 0 , Qn >= Xn && ( Vn = Wn [ Qn - Xn ] ) , zn = Kn [ 2 * Qn ] , Un . opt _len += zn * ( Gn + Vn ) , $n && ( Un . static _len += zn * ( $n [ 2 * Qn + 1 ] + Vn ) ) ) ; if ( 0 !== Jn ) { do { for ( Gn = Yn - 1 ; 0 === Un . bl _count [ Gn ] ; ) Gn -- ; Un . bl _count [ Gn ] -- , Un . bl _count [ Gn + 1 ] += 2 , Un . bl _count [ Yn ] -- , Jn -= 2 } while ( Jn > 0 ) ; for ( Gn = Yn ; 0 !== Gn ; Gn -- ) for ( Qn = Un . bl _count [ Gn ] ; 0 !== Qn ; ) ( Hn = Un . heap [ -- Dn ] ) > Tn . max _code || ( Kn [ 2 * Hn + 1 ] !== Gn && ( Un . opt _len += ( Gn - Kn [ 2 * Hn + 1 ] ) * Kn [ 2 * Hn ] , Kn [ 2 * Hn + 1 ] = Gn ) , Qn -- ) } } ( Un ) , function ( Tn , Un , Dn ) { var Qn , Hn , Gn , Vn = [ ] , zn = 0 ; for ( Qn = 1 ; Qn <= 15 ; Qn ++ ) Vn [ Qn ] = zn = zn + Dn [ Qn - 1 ] << 1 ; for ( Hn = 0 ; Hn <= Un ; Hn ++ ) 0 !== ( Gn = Tn [ 2 * Hn + 1 ] ) && ( Tn [ 2 * Hn ] = e ( Vn [ Gn ] ++ , Gn ) ) } ( Gn , Tn . max _code , Un . bl _count ) } } function dt ( Tn , Un , Dn , Qn , Hn ) { this . static _tree = Tn , this . extra _bits = Un , this . extra _base = Dn , this . elems = Qn , this . max _length = Hn } function pt ( Tn , Un , Dn , Qn , Hn ) { this . good _length = Tn , this . max _lazy = Un , this . nice _length = Dn , this . max _chain = Qn , this . func = Hn } ft . _length _code = [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 8 , 9 , 9 , 10 , 10 , 11 , 11 , 12 , 12 , 12 , 12 , 13 , 13 , 13 , 13 , 14 , 14 , 14 , 14 , 15 , 15 , 15 , 15 , 16 , 16 , 16 , 16 , 16 , 16 , 16 , 16 , 17 , 17 , 17 , 17 , 17 , 17 , 17 , 17 , 18 , 18 , 18 , 18 , 18 , 18 , 18 , 18 , 19 , 19 , 19 , 19 , 19 , 19 , 19 , 19 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 25 , 25 , 25 , 25 , 25 , 25 ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* jsPDF filters PlugIn
* Copyright ( c ) 2014 Aras Abbasi
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
2021-01-01 23:13:07 +00:00
* /Lt.prototype={deflateInit:function deflateInit(Tn,Un){return this.dstate=new Nt,Un||(Un=15),this.dstate.deflateInit(this,Tn,Un)},deflate:function deflate(Tn){return this.dstate?this.dstate.deflate(this,Tn):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var Tn=this.dstate.deflateEnd();return this.dstate=null,Tn},deflateParams:function deflateParams(Tn,Un){return this.dstate?this.dstate.deflateParams(this,Tn,Un):-2},deflateSetDictionary:function deflateSetDictionary(Tn,Un){return this.dstate?this.dstate.deflateSetDictionary(this,Tn,Un):-2},read_buf:function read_buf(Tn,Un,Dn){var Qn=this.avail_in;return Qn>Dn&&(Qn=Dn),0===Qn?0:(this.avail_in-=Qn,Tn.set(this.next_in.subarray(this.next_in_index,this.next_in_index+Qn),Un),this.next_in_index+=Qn,this.total_in+=Qn,Qn)},flush_pending:function flush_pending(){var Tn=this.dstate.pending;Tn>this.avail_out&&(Tn=this.avail_out),0!==Tn&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+Tn),this.next_out_index),this.next_out_index+=Tn,this.dstate.pending_out+=Tn,this.total_out+=Tn,this.avail_out-=Tn,this.dstate.pending-=Tn,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(Tn){var Un=function e(Tn){var e,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n;for(/ [ ^ \ x00 - \ xFF ] / . test ( Tn ) , Un = [ ] , Dn = 0 , Qn = ( Tn += e = "\0\0\0\0" . slice ( Tn . length % 4 || 4 ) ) . length ; Qn > Dn ; Dn += 4 ) 0 !== ( Hn = ( Tn . charCodeAt ( Dn ) << 24 ) + ( Tn . charCodeAt ( Dn + 1 ) << 16 ) + ( Tn . charCodeAt ( Dn + 2 ) << 8 ) + Tn . charCodeAt ( Dn + 3 ) ) ? ( Gn = ( Hn = ( ( Hn = ( ( Hn = ( ( Hn = ( Hn - ( $n = Hn % 85 ) ) / 85 ) - ( Kn = Hn % 85 ) ) / 85 ) - ( zn = Hn % 85 ) ) / 85 ) - ( Vn = Hn % 85 ) ) / 85 ) % 85 , Un . push ( Gn + 33 , Vn + 33 , zn + 33 , Kn + 33 , $n + 33 ) ) : Un . push ( 122 ) ; return function ( Tn , Un ) { for ( var Dn = Un ; Dn > 0 ; Dn -- ) Tn . pop ( ) } ( Un , e . length ) , String . fromCharCode . apply ( String , Un ) + "~>" } , Dn = function n ( Tn ) { var Un , n , Dn , Qn , Hn , Gn = String , Vn = "length" , zn = 255 , Kn = "charCodeAt" , $n = "slice" , Wn = "replace" ; for ( Tn [ $n ] ( - 2 ) , Tn = Tn [ $n ] ( 0 , - 2 ) [ Wn ] ( /\s/g , "" ) [ Wn ] ( "z" , "!!!!!" ) , Dn = [ ] , Qn = 0 , Hn = ( Tn += Un = "uuuuu" [ $n ] ( Tn [ Vn ] % 5 || 5 ) ) [ Vn ] ; Hn > Qn ; Qn += 5 ) n = 52200625 * ( Tn [ Kn ] ( Qn ) - 33 ) + 614125 * ( Tn [ Kn ] ( Qn + 1 ) - 33 ) + 7225 * ( Tn [ Kn ] ( Qn + 2 ) - 33 ) + 85 * ( Tn [ Kn ] ( Qn + 3 ) - 33 ) + ( Tn [ Kn ] ( Qn + 4 ) - 33 ) , Dn . push ( zn & n >> 24 , zn & n >> 16 , zn & n >> 8 , zn & n ) ; return function ( Tn , Un ) { for ( var Dn = Un ; Dn > 0 ; Dn -- ) Tn . pop ( ) } ( Dn , Un [ Vn ] ) , Gn . fromCharCode . apply ( Gn , Dn ) } , Qn = function r ( Tn ) { var Un = new RegExp ( /^([0-9A-Fa-f]{2})+$/ ) ; if ( - 1 !== ( Tn = Tn . replace ( /\s/g , "" ) ) . indexOf ( ">" ) && ( Tn = Tn . substr ( 0 , Tn . indexOf ( ">" ) ) ) , Tn . length % 2 && ( Tn += "0" ) , ! 1 === Un . test ( Tn ) ) return "" ; for ( var Dn = "" , r = 0 ; r < Tn . length ; r += 2 ) Dn += String . fromCharCode ( "0x" + ( Tn [ r ] + Tn [ r + 1 ] ) ) ; return Dn } , Hn = function i ( Un ) { for ( var Dn , Qn , i , Hn , Gn , Vn = [ ] , zn = Un . length ; zn -- ; ) Vn [ zn ] = Un . charCodeAt ( zn ) ; return Dn = Tn . adler32cs . from ( Un ) , i = Un = ( Qn = new xt ( 6 ) ) . append ( new Uint8Array ( Vn ) ) , Hn = Qn . flush ( ) , ( Gn = new Uint8Array ( i . byteLength + Hn . byteLength ) ) . set ( new Uint8Array ( i ) , 0 ) , Gn . set ( new Uint8Array ( Hn ) , i . byteLength ) , Un = Gn , ( Vn = new Uint8Array ( Un . byteLength + 6 ) ) . set ( new Uint8Array ( [ 120 , 156 ] ) ) , Vn . set ( Un , 2 ) , Vn . set ( new Uint8Array ( [ 255 & Dn , Dn >> 8 & 255 , Dn >> 16 & 255 , Dn >> 24 & 255 ] ) , Un . byteLength + 2 ) , Vn . reduce ( ( function ( Tn , Un ) { return Tn + String . fromCharCode ( Un ) } ) , "" ) } ; Tn . processDataByFilters = function ( Tn , Gn ) { var Vn = 0 , zn = Tn || "" , Kn = [ ] ; for ( "string" == typeof ( Gn = Gn || [ ] ) && ( Gn = [ Gn ] ) , Vn = 0 ; Vn < Gn . length ; Vn += 1 ) switch ( Gn [ Vn ] ) { case "ASCII85Decode" : case "/ASCII85Decode" : zn = Dn ( zn ) , Kn . push ( "/ASCII85Encode" ) ; break ; case "ASCII85Encode" : case "/ASCII85Encode" : zn = Un ( zn ) , Kn . push ( "/ASCII85Decode" ) ; break ; case "ASCIIHexDecode" : case "/ASCIIHexDecode" : zn = Qn ( zn ) , Kn . push ( "/ASCIIHexEncode" ) ; break ; case "ASCIIHexEncode" : case "/ASCIIHexEncode" : zn = zn . split ( "" ) . map ( ( function ( Tn ) { return ( "0" + Tn . charCodeAt ( ) . toString ( 16 ) ) . slice ( - 2 ) } ) ) . join ( "" ) + ">" , Kn . push ( "/ASCIIHexDecode" ) ; break ; case "FlateEncode" : case "/FlateEncode" : zn = Hn ( zn ) , Kn . push ( "/FlateDecode" ) ; break ; default : throw new Error ( 'The filter: "' + Gn [ Vn ] + '" is not implemented' ) } return { data : zn , reverseChain : Kn . reverse ( ) . join ( " " ) } } } ( g . API ) ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* jsPDF fileloading PlugIn
* Copyright ( c ) 2018 Aras Abbasi ( aras . abbasi @ gmail . com )
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2020-12-19 21:53:45 +00:00
function ( Tn ) { Tn . loadFile = function ( Tn , Un , Dn ) { return function ( Tn , Un , Dn ) { Un = ! 1 !== Un , Dn = "function" == typeof Dn ? Dn : function ( ) { } ; var Qn = void 0 ; try { Qn = function ( Tn , Un , Dn ) { var Qn = new XMLHttpRequest , Hn = 0 , Gn = function a ( Tn ) { var Un = Tn . length , Dn = [ ] , Qn = String . fromCharCode ; for ( Hn = 0 ; Hn < Un ; Hn += 1 ) Dn . push ( Qn ( 255 & Tn . charCodeAt ( Hn ) ) ) ; return Dn . join ( "" ) } ; if ( Qn . open ( "GET" , Tn , ! Un ) , Qn . overrideMimeType ( "text/plain; charset=x-user-defined" ) , ! 1 === Un && ( Qn . onload = function ( ) { 200 === Qn . status ? Dn ( Gn ( this . responseText ) ) : Dn ( void 0 ) } ) , Qn . send ( null ) , Un && 200 === Qn . status ) return Gn ( Qn . responseText ) } ( Tn , Un , Dn ) } catch ( Tn ) { } return Qn } ( Tn , Un , Dn ) } , Tn . loadImageFile = Tn . loadFile } ( g . API ) ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2018 Erik Koopmans
* Released under the MIT License .
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-03 17:35:23 +00:00
function ( Tn ) { function n ( ) { return ( OF . html2canvas ? Promise . resolve ( OF . html2canvas ) : Promise . resolve ( ) . then ( ( function ( ) { return ej } ) ) ) . catch ( ( function ( Tn ) { return Promise . reject ( new Error ( "Could not load dompurify: " + Tn ) ) } ) ) . then ( ( function ( Tn ) { return Tn . default ? Tn . default : Tn } ) ) } function r ( ) { return ( OF . DOMPurify ? Promise . resolve ( OF . DOMPurify ) : Promise . resolve ( ) . then ( ( function ( ) { return fj } ) ) ) . catch ( ( function ( Tn ) { return Promise . reject ( new Error ( "Could not load dompurify: " + Tn ) ) } ) ) . then ( ( function ( Tn ) { return Tn . default ? Tn . default : Tn } ) ) } var Un = function i ( Tn ) { var Un = _typeof ( Tn ) ; return "undefined" === Un ? "undefined" : "string" === Un || Tn instanceof String ? "string" : "number" === Un || Tn instanceof Number ? "number" : "function" === Un || Tn instanceof Function ? "function" : Tn && Tn . constructor === Array ? "array" : Tn && 1 === Tn . nodeType ? "element" : "object" === Un ? "object" : "unknown" } , Dn = function a ( Tn , Un ) { var Dn = document . createElement ( Tn ) ; for ( var Qn in Un . className && ( Dn . className = Un . className ) , Un . innerHTML && Un . dompurify && ( Dn . innerHTML = Un . dompurify . sanitize ( Un . innerHTML ) ) , Un . style ) Dn . style [ Qn ] = Un . style [ Qn ] ; return Dn } , Qn = function t ( Tn ) { var Un = Object . assign ( t . convert ( Promise . resolve ( ) ) , JSON . parse ( JSON . stringify ( t . template ) ) ) , Dn = t . convert ( Promise . resolve ( ) , Un ) ; return ( Dn = Dn . setProgress ( 1 , t , 1 , [ t ] ) ) . set ( Tn ) } ; ( Qn . prototype = Object . create ( Promise . prototype ) ) . constructor = Qn , Qn . convert = function ( Tn , Un ) { return Tn . _ _proto _ _ = Un || Qn . prototype , Tn } , Qn . template = { prop : { src : null , container : null , overlay : null , canvas : null , img : null , pdf : null , pageSize : null , callback : function callback ( ) { } } , progress : { val : 0 , state : null , n : 0 , stack : [ ] } , opt : { filename : "file.pdf" , margin : [ 0 , 0 , 0 , 0 ] , enableLinks : ! 0 , x : 0 , y : 0 , html2canvas : { } , jsPDF : { } , backgroundColor : "transparent" } } , Qn . prototype . from = function ( Tn , Qn ) { return this . then ( ( function ( ) { switch ( Qn = Qn || function ( Tn ) { switch ( Un ( Tn ) ) { case "string" : return "string" ; case "element" : return "canvas" === Tn . nodeName . toLowerCase ? "canvas" : "element" ; default : return "unknown" } } ( Tn ) ) { case "string" : return this . then ( r ) . then ( ( function ( Un ) { return this . set ( { src : Dn ( "div" , { innerHTML : Tn , dompurify : Un } ) } ) } ) ) ; case "element" : return this . set ( { src : Tn } ) ; case "canvas" : return this . set ( { canvas : Tn } ) ; case "img" : return this . set ( { img : Tn } ) ; default : return this . error ( "Unknown source type." ) } } ) ) } , Qn . prototype . to = function ( Tn ) { switch ( Tn ) { case "container" : return this . toContainer ( ) ; case "canvas" : return this . toCanvas ( ) ; case "img" : return this . toImg ( ) ; case "pdf" : return this . toPdf ( ) ; default : return this . error ( "Invalid target." ) } } , Qn . prototype . toContainer = function ( ) { return this . thenList ( [ function ( ) { return this . prop . src || this . error ( "Cannot duplicate - no source HTML." ) } , function ( ) { return this . prop . pageSize || this . setPageSize ( ) } ] ) . then ( ( function ( ) { var Tn = { position : "relative" , display : "inline-block" , width : Math . max ( this . prop . src . clientWidth , this . prop . src . scrollWidth , this . prop . src . offsetWidth ) + "px" , left : 0 , right : 0 , top : 0 , margin : "auto" , backgroundColor : this . opt . backgroundColor } , Un = function o ( Tn , Un ) { for ( var Dn = 3 === Tn . nodeType ? document . createTextNode ( Tn . nodeValue ) : Tn . cloneNode ( ! 1 ) , Qn = Tn . firstChild ; Qn ; Qn = Qn . nextSibling ) ! 0 !== Un && 1 === Qn . nodeType && "SCRIPT" === Qn . nodeName || Dn . appendChild ( o ( Qn , Un ) ) ; return 1 === Tn . nodeType && ( "CANVAS" === Tn . nodeName ? ( Dn . width = Tn . width , Dn . height = Tn . height , Dn . getContext ( "2d" ) . drawImage ( Tn , 0 , 0 ) ) : "TEXTAREA" !== Tn . nodeName && "SELECT" !== Tn . nodeName || ( Dn . value = Tn . value ) , Dn . addEventListener ( "load" , ( function ( ) { Dn . scrollTop = Tn . scrollTop , Dn . scrollLeft = Tn . scrollLeft } ) , ! 0 ) ) , Dn } ( this . prop . src , this . opt . html2canvas . javascriptEnabled ) ; "BODY" === Un . tagName && ( Tn . height = Math . max ( document . body . scrollHeight , document . body . offsetHeight , document . documentElement . clientHeight , document . documentElement . scrollHeight , document . documentElement . offsetHeight ) + "px" ) , this . prop . overlay = Dn ( "div" , { className : "html2pdf__overlay" , style : { position : "fixed" , overflow : "hidden" , zIndex : 1e3 , left : "-100000px" , right : 0 , bottom : 0 , top : 0 } } ) , this . prop . container = Dn ( "div" , { className : "html2pdf__container" , style : Tn } ) , this . prop . container . appendChild ( Un ) , this . prop . container . firstChild . appendChild ( Dn ( "div" , { style : { clear : "both" , border : "0 none transparent" , margin : 0 , padding : 0 , height : 0 } } ) ) , this . prop . container . sty
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2014 Steven Spungin ( TwelveTone LLC ) steven @ twelvetone . tv
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { var Un ; Tn . events . push ( [ "postPutResources" , function ( ) { var Tn = this , Dn = /^(\d+) 0 obj$/ ; if ( this . outline . root . children . length > 0 ) for ( var Qn = Tn . outline . render ( ) . split ( /\r\n/ ) , Hn = 0 ; Hn < Qn . length ; Hn ++ ) { var Gn = Qn [ Hn ] , Vn = Dn . exec ( Gn ) ; if ( null != Vn ) { var zn = Vn [ 1 ] ; Tn . internal . newObjectDeferredBegin ( zn , ! 1 ) } Tn . internal . write ( Gn ) } if ( this . outline . createNamedDestinations ) { var Kn = this . internal . pages . length , $n = [ ] ; for ( Hn = 0 ; Hn < Kn ; Hn ++ ) { var Wn = Tn . internal . newObject ( ) ; $n . push ( Wn ) ; var Xn = Tn . internal . getPageInfo ( Hn + 1 ) ; Tn . internal . write ( "<< /D[" + Xn . objId + " 0 R /XYZ null null null]>> endobj" ) } var Yn = Tn . internal . newObject ( ) ; for ( Tn . internal . write ( "<< /Names [ " ) , Hn = 0 ; Hn < $n . length ; Hn ++ ) Tn . internal . write ( "(page_" + ( Hn + 1 ) + ")" + $n [ Hn ] + " 0 R" ) ; Tn . internal . write ( " ] >>" , "endobj" ) , Un = Tn . internal . newObject ( ) , Tn . internal . write ( "<< /Dests " + Yn + " 0 R" ) , Tn . internal . write ( ">>" , "endobj" ) } } ] ) , Tn . events . push ( [ "putCatalog" , function ( ) { this . outline . root . children . length > 0 && ( this . internal . write ( "/Outlines" , this . outline . makeRef ( this . outline . root ) ) , this . outline . createNamedDestinations && this . internal . write ( "/Names " + Un + " 0 R" ) ) } ] ) , Tn . events . push ( [ "initialized" , function ( ) { var Tn = this ; Tn . outline = { createNamedDestinations : ! 1 , root : { children : [ ] } } , Tn . outline . add = function ( Tn , Un , Dn ) { var Qn = { title : Un , options : Dn , children : [ ] } ; return null == Tn && ( Tn = this . root ) , Tn . children . push ( Qn ) , Qn } , Tn . outline . render = function ( ) { return this . ctx = { } , this . ctx . val = "" , this . ctx . pdf = Tn , this . genIds _r ( this . root ) , this . renderRoot ( this . root ) , this . renderItems ( this . root ) , this . ctx . val } , Tn . outline . genIds _r = function ( Un ) { Un . id = Tn . internal . newObjectDeferred ( ) ; for ( var Dn = 0 ; Dn < Un . children . length ; Dn ++ ) this . genIds _r ( Un . children [ Dn ] ) } , Tn . outline . renderRoot = function ( Tn ) { this . objStart ( Tn ) , this . line ( "/Type /Outlines" ) , Tn . children . length > 0 && ( this . line ( "/First " + this . makeRef ( Tn . children [ 0 ] ) ) , this . line ( "/Last " + this . makeRef ( Tn . children [ Tn . children . length - 1 ] ) ) ) , this . line ( "/Count " + this . count _r ( { count : 0 } , Tn ) ) , this . objEnd ( ) } , Tn . outline . renderItems = function ( Un ) { for ( var Dn = this . ctx . pdf . internal . getVerticalCoordinateString , Qn = 0 ; Qn < Un . children . length ; Qn ++ ) { var Hn = Un . children [ Qn ] ; this . objStart ( Hn ) , this . line ( "/Title " + this . makeString ( Hn . title ) ) , this . line ( "/Parent " + this . makeRef ( Un ) ) , Qn > 0 && this . line ( "/Prev " + this . makeRef ( Un . children [ Qn - 1 ] ) ) , Qn < Un . children . length - 1 && this . line ( "/Next " + this . makeRef ( Un . children [ Qn + 1 ] ) ) , Hn . children . length > 0 && ( this . line ( "/First " + this . makeRef ( Hn . children [ 0 ] ) ) , this . line ( "/Last " + this . makeRef ( Hn . children [ Hn . children . length - 1 ] ) ) ) ; var Gn = this . count = this . count _r ( { count : 0 } , Hn ) ; if ( Gn > 0 && this . line ( "/Count " + Gn ) , Hn . options && Hn . options . pageNumber ) { var Vn = Tn . internal . getPageInfo ( Hn . options . pageNumber ) ; this . line ( "/Dest [" + Vn . objId + " 0 R /XYZ 0 " + Dn ( 0 ) + " 0]" ) } this . objEnd ( ) } for ( var zn = 0 ; zn < Un . children . length ; zn ++ ) this . renderItems ( Un . children [ zn ] ) } , Tn . outline . line = function ( Tn ) { this . ctx . val += Tn + "\r\n" } , Tn . outline . makeRef = function ( Tn ) { return Tn . id + " 0 R" } , Tn . outline . makeString = function ( Un ) { return "(" + Tn . internal . pdfEscape ( Un ) + ")" } , Tn . outline . objStart = function ( Tn ) { this . ctx . val += "\r\n" + Tn . id + " 0 obj\r\n<<\r\n" } , Tn . outline . objEnd = function ( ) { this . ctx . val += ">> \r\nendobj\r\n" } , Tn . outline . count _r = function ( Tn , Un ) { for ( var Dn = 0 ; Dn < Un . children . length ; Dn ++ ) Tn . count ++ , this . count _r ( Tn , Un . children [ Dn ] ) ; return Tn . count } } ] ) } ( g . API ) ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { var Un = [ 192 , 193 , 194 , 195 , 196 , 197 , 198 , 199 ] ; Tn . processJPEG = function ( Tn , Dn , Qn , Hn , Gn , Vn ) { var zn , Kn = this . decode . DCT _DECODE , $n = null ; if ( "string" == typeof Tn || this . _ _addimage _ _ . isArrayBuffer ( Tn ) || this . _ _addimage _ _ . isArrayBufferView ( Tn ) ) { switch ( Tn = Gn || Tn , Tn = this . _ _addimage _ _ . isArrayBuffer ( Tn ) ? new Uint8Array ( Tn ) : Tn , ( zn = function ( Tn ) { for ( var Dn , Qn = 256 * Tn . charCodeAt ( 4 ) + Tn . charCodeAt ( 5 ) , Hn = Tn . length , Gn = { width : 0 , height : 0 , numcomponents : 1 } , Vn = 4 ; Vn < Hn ; Vn += 2 ) { if ( Vn += Qn , - 1 !== Un . indexOf ( Tn . charCodeAt ( Vn + 1 ) ) ) { Dn = 256 * Tn . charCodeAt ( Vn + 5 ) + Tn . charCodeAt ( Vn + 6 ) , Gn = { width : 256 * Tn . charCodeAt ( Vn + 7 ) + Tn . charCodeAt ( Vn + 8 ) , height : Dn , numcomponents : Tn . charCodeAt ( Vn + 9 ) } ; break } Qn = 256 * Tn . charCodeAt ( Vn + 2 ) + Tn . charCodeAt ( Vn + 3 ) } return Gn } ( Tn = this . _ _addimage _ _ . isArrayBufferView ( Tn ) ? this . _ _addimage _ _ . arrayBufferToBinaryString ( Tn ) : Tn ) ) . numcomponents ) { case 1 : Vn = this . color _spaces . DEVICE _GRAY ; break ; case 4 : Vn = this . color _spaces . DEVICE _CMYK ; break ; case 3 : Vn = this . color _spaces . DEVICE _RGB } $n = { data : Tn , width : zn . width , height : zn . height , colorSpace : Vn , bitsPerComponent : 8 , filter : Kn , index : Dn , alias : Qn } } return $n } } ( g . API ) ;
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Extracted from pdf . js
* https : //github.com/andreasgal/pdf.js
*
* Copyright ( c ) 2011 Mozilla Foundation
*
* Contributors : Andreas Gal < gal @ mozilla . com >
* Chris G Jones < cjones @ mozilla . com >
* Shaon Barman < shaon . barman @ gmail . com >
* Vivien Nicolas < 21 @ vingtetun . org >
* Justin D ' Arcangelo < justindarc @ gmail . com >
* Yury Delendik
*
* Permission is hereby granted , free of charge , to any person obtaining a
* copy of this software and associated documentation files ( the "Software" ) ,
* to deal in the Software without restriction , including without limitation
* the rights to use , copy , modify , merge , publish , distribute , sublicense ,
* and / or sell copies of the Software , and to permit persons to whom the
* Software is furnished to do so , subject to the following conditions :
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
* IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER
* LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING
* FROM , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE .
* /
2021-01-03 17:35:23 +00:00
var DU , jU , QU , HU , GU , VU = function ( ) { function t ( ) { this . pos = 0 , this . bufferLength = 0 , this . eof = ! 1 , this . buffer = null } return t . prototype = { ensureBuffer : function ensureBuffer ( Tn ) { var Un = this . buffer , Dn = Un ? Un . byteLength : 0 ; if ( Tn < Dn ) return Un ; for ( var Qn = 512 ; Qn < Tn ; ) Qn <<= 1 ; for ( var Hn = new Uint8Array ( Qn ) , Gn = 0 ; Gn < Dn ; ++ Gn ) Hn [ Gn ] = Un [ Gn ] ; return this . buffer = Hn } , getByte : function getByte ( ) { for ( var Tn = this . pos ; this . bufferLength <= Tn ; ) { if ( this . eof ) return null ; this . readBlock ( ) } return this . buffer [ this . pos ++ ] } , getBytes : function getBytes ( Tn ) { var Un = this . pos ; if ( Tn ) { this . ensureBuffer ( Un + Tn ) ; for ( var Dn = Un + Tn ; ! this . eof && this . bufferLength < Dn ; ) this . readBlock ( ) ; var Qn = this . bufferLength ; Dn > Qn && ( Dn = Qn ) } else { for ( ; ! this . eof ; ) this . readBlock ( ) ; Dn = this . bufferLength } return this . pos = Dn , this . buffer . subarray ( Un , Dn ) } , lookChar : function lookChar ( ) { for ( var Tn = this . pos ; this . bufferLength <= Tn ; ) { if ( this . eof ) return null ; this . readBlock ( ) } return String . fromCharCode ( this . buffer [ this . pos ] ) } , getChar : function getChar ( ) { for ( var Tn = this . pos ; this . bufferLength <= Tn ; ) { if ( this . eof ) return null ; this . readBlock ( ) } return String . fromCharCode ( this . buffer [ this . pos ++ ] ) } , makeSubStream : function makeSubStream ( Tn , Un , Dn ) { for ( var Qn = Tn + Un ; this . bufferLength <= Qn && ! this . eof ; ) this . readBlock ( ) ; return new Stream ( this . buffer , Tn , Un , Dn ) } , skip : function skip ( Tn ) { Tn || ( Tn = 1 ) , this . pos += Tn } , reset : function reset ( ) { this . pos = 0 } } , t } ( ) , zU = ( "undefined" != typeof self && self || "undefined" != typeof window && window || void 0 !== LF && LF || Function ( 'return typeof this === "object" && this.content' ) ( ) || Function ( "return this" ) ( ) ) . FlateStream = function ( ) { if ( "undefined" != typeof Uint32Array ) { var Tn = new Uint32Array ( [ 16 , 17 , 18 , 0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15 ] ) , Un = new Uint32Array ( [ 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 65547 , 65549 , 65551 , 65553 , 131091 , 131095 , 131099 , 131103 , 196643 , 196651 , 196659 , 196667 , 262211 , 262227 , 262243 , 262259 , 327811 , 327843 , 327875 , 327907 , 258 , 258 , 258 ] ) , Dn = new Uint32Array ( [ 1 , 2 , 3 , 4 , 65541 , 65543 , 131081 , 131085 , 196625 , 196633 , 262177 , 262193 , 327745 , 327777 , 393345 , 393409 , 459009 , 459137 , 524801 , 525057 , 590849 , 591361 , 657409 , 658433 , 724993 , 727041 , 794625 , 798721 , 868353 , 876545 ] ) , Qn = [ new Uint32Array ( [ 459008 , 524368 , 524304 , 524568 , 459024 , 524400 , 524336 , 590016 , 459016 , 524384 , 524320 , 589984 , 524288 , 524416 , 524352 , 590048 , 459012 , 524376 , 524312 , 589968 , 459028 , 524408 , 524344 , 590032 , 459020 , 524392 , 524328 , 59e4 , 524296 , 524424 , 524360 , 590064 , 459010 , 524372 , 524308 , 524572 , 459026 , 524404 , 524340 , 590024 , 459018 , 524388 , 524324 , 589992 , 524292 , 524420 , 524356 , 590056 , 459014 , 524380 , 524316 , 589976 , 459030 , 524412 , 524348 , 590040 , 459022 , 524396 , 524332 , 590008 , 524300 , 524428 , 524364 , 590072 , 459009 , 524370 , 524306 , 524570 , 459025 , 524402 , 524338 , 590020 , 459017 , 524386 , 524322 , 589988 , 524290 , 524418 , 524354 , 590052 , 459013 , 524378 , 524314 , 589972 , 459029 , 524410 , 524346 , 590036 , 459021 , 524394 , 524330 , 590004 , 524298 , 524426 , 524362 , 590068 , 459011 , 524374 , 524310 , 524574 , 459027 , 524406 , 524342 , 590028 , 459019 , 524390 , 524326 , 589996 , 524294 , 524422 , 524358 , 590060 , 459015 , 524382 , 524318 , 589980 , 459031 , 524414 , 524350 , 590044 , 459023 , 524398 , 524334 , 590012 , 524302 , 524430 , 524366 , 590076 , 459008 , 524369 , 524305 , 524569 , 459024 , 524401 , 524337 , 590018 , 459016 , 524385 , 524321 , 589986 , 524289 , 524417 , 524353 , 590050 , 459012 , 524377 , 524313 , 589970 , 459028 , 524409 , 524345 , 590034 , 459020 , 524393 , 524329 , 590002 , 524297 , 524425 , 524361 , 590066 , 459010 , 524373 , 524309 , 524573 , 459026 , 524405 , 524341 , 590026 , 459018 , 524389 , 524325 , 589994 , 524293 , 524421 , 524357 , 590058 , 459014 , 524381 , 524317 , 589978 , 459030 , 524413 , 524349 , 590042 , 459022 , 524397 , 524333 , 590010 , 524301 , 524429 , 524365 , 590074 , 459009 , 524371 , 524307 , 524571 , 459025 , 524403 , 524339 , 590022 , 459017 , 524387 , 524323 , 589990 , 524291 , 524419 , 524355 , 590054 , 459013 , 524379 , 524315 , 589974 , 459029 , 524411 , 524347 , 590038 , 459021 , 524395 , 524331 , 590006 , 524299 , 524427 , 524363 , 590070 , 459011 , 524375 , 524311 , 524575 , 459027 , 524407 , 524343 , 590030 , 459019 , 524391 , 524327 , 589998 , 524295 , 524423 , 524359 , 590062 , 459015 , 524383 , 524319 , 589982 , 459031 , 524415 , 524351 , 590046 , 459023 , 524399 , 524335 , 590014 , 524303 , 524431 , 524367 , 590078 , 459008 , 524368 , 524304 , 524568 , 459024 , 524400 , 524336 , 590017 , 459016 , 524384 , 524320 , 589985 , 524288 , 524416 , 524352 , 590049 , 459012 , 524376 , 524312 , 589969 , 459028 , 524408 , 524344 , 590033 , 459020 , 524392 , 524328 , 590001 , 524296 , 524424 , 524360 , 590065 , 459
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* ( c ) Dean McNamee < dean @ gmail . com > , 2013.
*
* https : //github.com/deanm/omggif
*
* Permission is hereby granted , free of charge , to any person obtaining a copy
* of this software and associated documentation files ( the "Software" ) , to
* deal in the Software without restriction , including without limitation the
* rights to use , copy , modify , merge , publish , distribute , sublicense , and / or
* sell copies of the Software , and to permit persons to whom the Software is
* furnished to do so , subject to the following conditions :
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
* IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER
* LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING
* FROM , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE .
*
* omggif is a JavaScript implementation of a GIF 89 a encoder and decoder ,
* including animation and compression . It does not rely on any specific
* underlying system , so should run in the browser , Node , or Plask .
2021-01-03 17:35:23 +00:00
* / f u n c t i o n j t ( T n ) { v a r U n = 0 ; i f ( 7 1 ! = = T n [ U n + + ] | | 7 3 ! = = T n [ U n + + ] | | 7 0 ! = = T n [ U n + + ] | | 5 6 ! = = T n [ U n + + ] | | 5 6 ! = ( T n [ U n + + ] + 1 & 2 5 3 ) | | 9 7 ! = = T n [ U n + + ] ) t h r o w n e w E r r o r ( " I n v a l i d G I F 8 7 a / 8 9 a h e a d e r . " ) ; v a r D n = T n [ U n + + ] | T n [ U n + + ] < < 8 , Q n = T n [ U n + + ] | T n [ U n + + ] < < 8 , H n = T n [ U n + + ] , G n = H n > > 7 , V n = 1 < < 1 + ( 7 & H n ) ; T n [ U n + + ] , T n [ U n + + ] ; v a r z n = n u l l , K n = n u l l ; G n & & ( z n = U n , K n = V n , U n + = 3 * V n ) ; v a r $ n = ! 0 , W n = [ ] , X n = 0 , Y n = n u l l , J n = 0 , Z n = n u l l ; f o r ( t h i s . w i d t h = D n , t h i s . h e i g h t = Q n ; $ n & & U n < T n . l e n g t h ; ) s w i t c h ( T n [ U n + + ] ) { c a s e 3 3 : s w i t c h ( T n [ U n + + ] ) { c a s e 2 5 5 : i f ( 1 1 ! = = T n [ U n ] | | 7 8 = = T n [ U n + 1 ] & & 6 9 = = T n [ U n + 2 ] & & 8 4 = = T n [ U n + 3 ] & & 8 3 = = T n [ U n + 4 ] & & 6 7 = = T n [ U n + 5 ] & & 6 5 = = T n [ U n + 6 ] & & 8 0 = = T n [ U n + 7 ] & & 6 9 = = T n [ U n + 8 ] & & 5 0 = = T n [ U n + 9 ] & & 4 6 = = T n [ U n + 1 0 ] & & 4 8 = = T n [ U n + 1 1 ] & & 3 = = T n [ U n + 1 2 ] & & 1 = = T n [ U n + 1 3 ] & & 0 = = T n [ U n + 1 6 ] ) U n + = 1 4 , Z n = T n [ U n + + ] | T n [ U n + + ] < < 8 , U n + + ; e l s e f o r ( U n + = 1 2 ; ; ) { i f ( ! ( ( h r = T n [ U n + + ] ) > = 0 ) ) t h r o w E r r o r ( " I n v a l i d b l o c k s i z e " ) ; i f ( 0 = = = h r ) b r e a k ; U n + = h r } b r e a k ; c a s e 2 4 9 : i f ( 4 ! = = T n [ U n + + ] | | 0 ! = = T n [ U n + 4 ] ) t h r o w n e w E r r o r ( " I n v a l i d g r a p h i c s e x t e n s i o n b l o c k . " ) ; v a r e r = T n [ U n + + ] ; X n = T n [ U n + + ] | T n [ U n + + ] < < 8 , Y n = T n [ U n + + ] , 0 = = ( 1 & e r ) & & ( Y n = n u l l ) , J n = e r > > 2 & 7 , U n + + ; b r e a k ; c a s e 2 5 4 : f o r ( ; ; ) { i f ( ! ( ( h r = T n [ U n + + ] ) > = 0 ) ) t h r o w E r r o r ( " I n v a l i d b l o c k s i z e " ) ; i f ( 0 = = = h r ) b r e a k ; U n + = h r } b r e a k ; d e f a u l t : t h r o w n e w E r r o r ( " U n k n o w n g r a p h i c c o n t r o l l a b e l : 0 x " + T n [ U n - 1 ] . t o S t r i n g ( 1 6 ) ) } b r e a k ; c a s e 4 4 : v a r t r = T n [ U n + + ] | T n [ U n + + ] < < 8 , n r = T n [ U n + + ] | T n [ U n + + ] < < 8 , r r = T n [ U n + + ] | T n [ U n + + ] < < 8 , i r = T n [ U n + + ] | T n [ U n + + ] < < 8 , o r = T n [ U n + + ] , a r = o r > > 6 & 1 , s r = 1 < < 1 + ( 7 & o r ) , l r = z n , c r = K n , u r = ! 1 ; o r > > 7 & & ( u r = ! 0 , l r = U n , c r = s r , U n + = 3 * s r ) ; v a r d r = U n ; f o r ( U n + + ; ; ) { v a r h r ; i f ( ! ( ( h r = T n [ U n + + ] ) > = 0 ) ) t h r o w E r r o r ( " I n v a l i d b l o c k s i z e " ) ; i f ( 0 = = = h r ) b r e a k ; U n + = h r } W n . p u s h ( { x : t r , y : n r , w i d t h : r r , h e i g h t : i r , h a s _ l o c a l _ p a l e t t e : u r , p a l e t t e _ o f f s e t : l r , p a l e t t e _ s i z e : c r , d a t a _ o f f s e t : d r , d a t a _ l e n g t h : U n - d r , t r a n s p a r e n t _ i n d e x : Y n , i n t e r l a c e d : ! ! a r , d e l a y : X n , d i s p o s a l : J n } ) ; b r e a k ; c a s e 5 9 : $ n = ! 1 ; b r e a k ; d e f a u l t : t h r o w n e w E r r o r ( " U n k n o w n g i f b l o c k : 0 x " + T n [ U n - 1 ] . t o S t r i n g ( 1 6 ) ) } t h i s . n u m F r a m e s = f u n c t i o n ( ) { r e t u r n W n . l e n g t h } , t h i s . l o o p C o u n t = f u n c t i o n ( ) { r e t u r n Z n } , t h i s . f r a m e I n f o = f u n c t i o n ( T n ) { i f ( T n < 0 | | T n > = W n . l e n g t h ) t h r o w n e w E r r o r ( " F r a m e i n d e x o u t o f r a n g e . " ) ; r e t u r n W n [ T n ] } , t h i s . d e c o d e A n d B l i t F r a m e B G R A = f u n c t i o n ( U n , Q n ) { v a r H n = t h i s . f r a m e I n f o ( U n ) , G n = H n . w i d t h * H n . h e i g h t , V n = n e w U i n t 8 A r r a y ( G n ) ; B t ( T n , H n . d a t a _ o f f s e t , V n , G n ) ; v a r z n = H n . p a l e t t e _ o f f s e t , K n = H n . t r a n s p a r e n t _ i n d e x ; n u l l = = = K n & & ( K n = 2 5 6 ) ; v a r $ n = H n . w i d t h , W n = D n - $ n , X n = $ n , Y n = 4 * ( H n . y * D n + H n . x ) , J n = 4 * ( ( H n . y + H n . h e i g h t ) * D n + H n . x ) , Z n = Y n , e r = 4 * W n ; ! 0 = = = H n . i n t e r l a c e d & & ( e r + = 4 * D n * 7 ) ; f o r ( v a r t r = 8 , n r = 0 , r r = V n . l e n g t h ; n r < r r ; + + n r ) { v a r i r = V n [ n r ] ; i f ( 0 = = = X n & & ( X n = $ n , ( Z n + = e r ) > = J n & & ( e r = 4 * W n + 4 * D n * ( t r - 1 ) , Z n = Y n + ( $ n + W n ) * ( t r < < 1 ) , t r > > = 1 ) ) , i r = = = K n ) Z n + = 4 ; e l s e { v a r o r = T n [ z n + 3 * i r ] , a r = T n [ z n + 3 * i r + 1 ] , s r = T n [ z n + 3 * i r + 2 ] ; Q n [ Z n + + ] = s r , Q n [ Z n + + ] = a r , Q n [ Z n + + ] = o r , Q n [ Z n + + ] = 2 5 5 } - - X n } } , t h i s . d e c o d e A n d B l i t F r a m e R G B A = f u n c t i o n ( U n , Q n ) { v a r H n = t h i s . f r a m e I n f o ( U n ) , G n = H n . w i d t h * H n . h e i g h t , V n = n e w U i n t 8 A r r a y ( G n ) ; B t ( T n , H n . d a t a _ o f f s e t , V n , G n ) ; v a r z n = H n . p a l e t t e _ o f f s e t , K n = H n . t r a n s p a r e n t _ i n d e x ; n u l l = = = K n & & ( K n = 2 5 6 ) ; v a r $ n = H n . w i d t h , W n = D n - $ n , X n = $ n , Y n = 4 * ( H n . y * D n + H n . x ) , J n = 4 * ( ( H n . y + H n . h e i g h t ) * D n + H n . x ) , Z n = Y n , e r = 4 * W n ; ! 0 = = = H n . i n t e r l a c e d & & ( e r + = 4 * D n * 7 ) ; f o r ( v a r t r = 8 , n r = 0 , r r = V n . l e n g t h ; n r < r r ; + + n r ) { v a r i r = V n [ n r ] ; i f ( 0 = = = X n & & ( X n = $ n , ( Z n + = e r ) > = J n & & ( e r = 4 * W n + 4 * D n * ( t r - 1 ) , Z n = Y n + ( $ n + W n ) * ( t r < < 1 ) , t r > > = 1 ) ) , i r = = = K n ) Z n + = 4 ; e l s e { v a r o r = T n [ z n + 3 * i r ] , a r = T n [ z n + 3 * i r + 1 ] , s r = T n [ z n + 3 * i r + 2 ] ; Q n [ Z n + + ] = o r , Q n [ Z n + + ] = a r , Q n [ Z n + + ] = s r , Q n [ Z n + + ] = 2 5 5 } - - X n } } } f u n c t i o n B t ( T n , U n , D n , Q n ) { f o r ( v a r H n = T n [ U n + + ] , G n = 1 < < H n , V n = G n + 1 , z n = V n + 1 , K n = H n + 1 , $ n = ( 1 < < K n ) - 1 , W n = 0 , X n = 0 , Y n = 0 , J n = T n [ U n + + ] , Z n = n e w I n t 3 2 A r r a y ( 4 0 9 6 ) , e r = n u l l ; ; ) { f o r ( ; W n < 1 6 & & 0 ! = = J n ; ) X n | = T n [ U n + + ] < < W n , W n + = 8 , 1 = = = J n ? J n = T n [ U n + + ] : - - J n ; i f ( W n < K n ) b r e a k ; v a r t r = X n & $ n ; i f ( X n > > = K n , W n - = K n , t r ! = = G n ) { i f ( t r = = = V n ) b r e a k ; f o r ( v a r n r = t r < z n ? t r : e r , r r = 0 , i r = n r ; i r > G n ; ) i r = Z n [ i r ] > > 8 , + + r r ; v a r o r = i r ; i f ( Y n + r r + ( n r ! = = t r ? 1 : 0 ) > Q n ) r e t u r n v o i d F F . l o g ( " W a r n i n g , g i f s t r e a m l o n g e r t h a n e x p e c t e d . " ) ; D n [ Y n + + ] = o r ; v a r a r = Y n + = r r ; f o r ( n r ! = = t r & & ( D n [ Y n + + ] = o r ) , i r = n r ; r r - - ; ) i r = Z n [ i r ] , D n [ - - a r ] = 2 5 5 & i r , i r > > = 8 ; n u l l ! = = e r & & z n < 4 0 9 6 & & ( Z n [ z n + + ] = e r < < 8 | o r , z n > = $ n + 1 & & K n < 1 2 & & ( + + K n , $ n = $ n < < 1 | 1 ) ) , e r = t r } e l s e z n = V n + 1 , $ n = ( 1 < < ( K n = H n + 1 ) ) - 1 , e r = n u l l } r e t u r n Y n ! = = Q n & & F F . l o g ( " W a r n i n g , g i f s t r e a m s h o r t e r t h a n e x p e c t e d . " ) , D n
2020-09-11 23:27:47 +00:00
/ * *
* @ license
Copyright ( c ) 2008 , Adobe Systems Incorporated
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
* Redistributions of source code must retain the above copyright notice ,
this list of conditions and the following disclaimer .
* Redistributions in binary form must reproduce the above copyright
notice , this list of conditions and the following disclaimer in the
documentation and / or other materials provided with the distribution .
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS
IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO ,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL ,
EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO ,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR
PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
2021-01-01 23:13:07 +00:00
* / } f u n c t i o n O t ( T n ) { v a r U n , D n , Q n , H n , G n , V n = M a t h . f l o o r , z n = n e w A r r a y ( 6 4 ) , K n = n e w A r r a y ( 6 4 ) , $ n = n e w A r r a y ( 6 4 ) , W n = n e w A r r a y ( 6 4 ) , X n = n e w A r r a y ( 6 5 5 3 5 ) , Y n = n e w A r r a y ( 6 5 5 3 5 ) , J n = n e w A r r a y ( 6 4 ) , Z n = n e w A r r a y ( 6 4 ) , e r = [ ] , t r = 0 , n r = 7 , r r = n e w A r r a y ( 6 4 ) , i r = n e w A r r a y ( 6 4 ) , o r = n e w A r r a y ( 6 4 ) , a r = n e w A r r a y ( 2 5 6 ) , s r = n e w A r r a y ( 2 0 4 8 ) , l r = [ 0 , 1 , 5 , 6 , 1 4 , 1 5 , 2 7 , 2 8 , 2 , 4 , 7 , 1 3 , 1 6 , 2 6 , 2 9 , 4 2 , 3 , 8 , 1 2 , 1 7 , 2 5 , 3 0 , 4 1 , 4 3 , 9 , 1 1 , 1 8 , 2 4 , 3 1 , 4 0 , 4 4 , 5 3 , 1 0 , 1 9 , 2 3 , 3 2 , 3 9 , 4 5 , 5 2 , 5 4 , 2 0 , 2 2 , 3 3 , 3 8 , 4 6 , 5 1 , 5 5 , 6 0 , 2 1 , 3 4 , 3 7 , 4 7 , 5 0 , 5 6 , 5 9 , 6 1 , 3 5 , 3 6 , 4 8 , 4 9 , 5 7 , 5 8 , 6 2 , 6 3 ] , c r = [ 0 , 0 , 1 , 5 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] , u r = [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0 , 1 1 ] , d r = [ 0 , 0 , 2 , 1 , 3 , 3 , 2 , 4 , 3 , 5 , 5 , 4 , 4 , 0 , 0 , 1 , 1 2 5 ] , h r = [ 1 , 2 , 3 , 0 , 4 , 1 7 , 5 , 1 8 , 3 3 , 4 9 , 6 5 , 6 , 1 9 , 8 1 , 9 7 , 7 , 3 4 , 1 1 3 , 2 0 , 5 0 , 1 2 9 , 1 4 5 , 1 6 1 , 8 , 3 5 , 6 6 , 1 7 7 , 1 9 3 , 2 1 , 8 2 , 2 0 9 , 2 4 0 , 3 6 , 5 1 , 9 8 , 1 1 4 , 1 3 0 , 9 , 1 0 , 2 2 , 2 3 , 2 4 , 2 5 , 2 6 , 3 7 , 3 8 , 3 9 , 4 0 , 4 1 , 4 2 , 5 2 , 5 3 , 5 4 , 5 5 , 5 6 , 5 7 , 5 8 , 6 7 , 6 8 , 6 9 , 7 0 , 7 1 , 7 2 , 7 3 , 7 4 , 8 3 , 8 4 , 8 5 , 8 6 , 8 7 , 8 8 , 8 9 , 9 0 , 9 9 , 1 0 0 , 1 0 1 , 1 0 2 , 1 0 3 , 1 0 4 , 1 0 5 , 1 0 6 , 1 1 5 , 1 1 6 , 1 1 7 , 1 1 8 , 1 1 9 , 1 2 0 , 1 2 1 , 1 2 2 , 1 3 1 , 1 3 2 , 1 3 3 , 1 3 4 , 1 3 5 , 1 3 6 , 1 3 7 , 1 3 8 , 1 4 6 , 1 4 7 , 1 4 8 , 1 4 9 , 1 5 0 , 1 5 1 , 1 5 2 , 1 5 3 , 1 5 4 , 1 6 2 , 1 6 3 , 1 6 4 , 1 6 5 , 1 6 6 , 1 6 7 , 1 6 8 , 1 6 9 , 1 7 0 , 1 7 8 , 1 7 9 , 1 8 0 , 1 8 1 , 1 8 2 , 1 8 3 , 1 8 4 , 1 8 5 , 1 8 6 , 1 9 4 , 1 9 5 , 1 9 6 , 1 9 7 , 1 9 8 , 1 9 9 , 2 0 0 , 2 0 1 , 2 0 2 , 2 1 0 , 2 1 1 , 2 1 2 , 2 1 3 , 2 1 4 , 2 1 5 , 2 1 6 , 2 1 7 , 2 1 8 , 2 2 5 , 2 2 6 , 2 2 7 , 2 2 8 , 2 2 9 , 2 3 0 , 2 3 1 , 2 3 2 , 2 3 3 , 2 3 4 , 2 4 1 , 2 4 2 , 2 4 3 , 2 4 4 , 2 4 5 , 2 4 6 , 2 4 7 , 2 4 8 , 2 4 9 , 2 5 0 ] , p r = [ 0 , 0 , 3 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 ] , g r = [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0 , 1 1 ] , f r = [ 0 , 0 , 2 , 1 , 2 , 4 , 4 , 3 , 4 , 7 , 5 , 4 , 4 , 0 , 1 , 2 , 1 1 9 ] , A r = [ 0 , 1 , 2 , 3 , 1 7 , 4 , 5 , 3 3 , 4 9 , 6 , 1 8 , 6 5 , 8 1 , 7 , 9 7 , 1 1 3 , 1 9 , 3 4 , 5 0 , 1 2 9 , 8 , 2 0 , 6 6 , 1 4 5 , 1 6 1 , 1 7 7 , 1 9 3 , 9 , 3 5 , 5 1 , 8 2 , 2 4 0 , 2 1 , 9 8 , 1 1 4 , 2 0 9 , 1 0 , 2 2 , 3 6 , 5 2 , 2 2 5 , 3 7 , 2 4 1 , 2 3 , 2 4 , 2 5 , 2 6 , 3 8 , 3 9 , 4 0 , 4 1 , 4 2 , 5 3 , 5 4 , 5 5 , 5 6 , 5 7 , 5 8 , 6 7 , 6 8 , 6 9 , 7 0 , 7 1 , 7 2 , 7 3 , 7 4 , 8 3 , 8 4 , 8 5 , 8 6 , 8 7 , 8 8 , 8 9 , 9 0 , 9 9 , 1 0 0 , 1 0 1 , 1 0 2 , 1 0 3 , 1 0 4 , 1 0 5 , 1 0 6 , 1 1 5 , 1 1 6 , 1 1 7 , 1 1 8 , 1 1 9 , 1 2 0 , 1 2 1 , 1 2 2 , 1 3 0 , 1 3 1 , 1 3 2 , 1 3 3 , 1 3 4 , 1 3 5 , 1 3 6 , 1 3 7 , 1 3 8 , 1 4 6 , 1 4 7 , 1 4 8 , 1 4 9 , 1 5 0 , 1 5 1 , 1 5 2 , 1 5 3 , 1 5 4 , 1 6 2 , 1 6 3 , 1 6 4 , 1 6 5 , 1 6 6 , 1 6 7 , 1 6 8 , 1 6 9 , 1 7 0 , 1 7 8 , 1 7 9 , 1 8 0 , 1 8 1 , 1 8 2 , 1 8 3 , 1 8 4 , 1 8 5 , 1 8 6 , 1 9 4 , 1 9 5 , 1 9 6 , 1 9 7 , 1 9 8 , 1 9 9 , 2 0 0 , 2 0 1 , 2 0 2 , 2 1 0 , 2 1 1 , 2 1 2 , 2 1 3 , 2 1 4 , 2 1 5 , 2 1 6 , 2 1 7 , 2 1 8 , 2 2 6 , 2 2 7 , 2 2 8 , 2 2 9 , 2 3 0 , 2 3 1 , 2 3 2 , 2 3 3 , 2 3 4 , 2 4 2 , 2 4 3 , 2 4 4 , 2 4 5 , 2 4 6 , 2 4 7 , 2 4 8 , 2 4 9 , 2 5 0 ] ; f u n c t i o n j ( T n , U n ) { f o r ( v a r D n = 0 , Q n = 0 , H n = n e w A r r a y , G n = 1 ; G n < = 1 6 ; G n + + ) { f o r ( v a r V n = 1 ; V n < = T n [ G n ] ; V n + + ) H n [ U n [ Q n ] ] = [ ] , H n [ U n [ Q n ] ] [ 0 ] = D n , H n [ U n [ Q n ] ] [ 1 ] = G n , Q n + + , D n + + ; D n * = 2 } r e t u r n H n } f u n c t i o n B ( T n ) { f o r ( v a r U n = T n [ 0 ] , D n = T n [ 1 ] - 1 ; D n > = 0 ; ) U n & 1 < < D n & & ( t r | = 1 < < n r ) , D n - - , - - n r < 0 & & ( 2 5 5 = = t r ? ( O ( 2 5 5 ) , O ( 0 ) ) : O ( t r ) , n r = 7 , t r = 0 ) } f u n c t i o n O ( T n ) { e r . p u s h ( T n ) } f u n c t i o n M ( T n ) { O ( T n > > 8 & 2 5 5 ) , O ( 2 5 5 & T n ) } f u n c t i o n E ( T n , U n , D n , Q n , H n ) { f o r ( v a r G n , V n = H n [ 0 ] , z n = H n [ 2 4 0 ] , K n = f u n c t i o n ( T n , U n ) { v a r D n , Q n , H n , G n , V n , z n , K n , $ n , W n , X n , Y n = 0 ; f o r ( W n = 0 ; W n < 8 ; + + W n ) { D n = T n [ Y n ] , Q n = T n [ Y n + 1 ] , H n = T n [ Y n + 2 ] , G n = T n [ Y n + 3 ] , V n = T n [ Y n + 4 ] , z n = T n [ Y n + 5 ] , K n = T n [ Y n + 6 ] ; v a r Z n = D n + ( $ n = T n [ Y n + 7 ] ) , e r = D n - $ n , t r = Q n + K n , n r = Q n - K n , r r = H n + z n , i r = H n - z n , o r = G n + V n , a r = G n - V n , s r = Z n + o r , l r = Z n - o r , c r = t r + r r , u r = t r - r r ; T n [ Y n ] = s r + c r , T n [ Y n + 4 ] = s r - c r ; v a r d r = . 7 0 7 1 0 6 7 8 1 * ( u r + l r ) ; T n [ Y n + 2 ] = l r + d r , T n [ Y n + 6 ] = l r - d r ; v a r h r = . 3 8 2 6 8 3 4 3 3 * ( ( s r = a r + i r ) - ( u r = n r + e r ) ) , p r = . 5 4 1 1 9 6 1 * s r + h r , g r = 1 . 3 0 6 5 6 2 9 6 5 * u r + h r , f r = . 7 0 7 1 0 6 7 8 1 * ( c r = i r + n r ) , A r = e r + f r , m r = e r - f r ; T n [ Y n + 5 ] = m r + p r , T n [ Y n + 3 ] = m r - p r , T n [ Y n + 1 ] = A r + g r , T n [ Y n + 7 ] = A r - g r , Y n + = 8 } f o r ( Y n = 0 , W n = 0 ; W n < 8 ; + + W n ) { D n = T n [ Y n ] , Q n = T n [ Y n + 8 ] , H n = T n [ Y n + 1 6 ] , G n = T n [ Y n + 2 4 ] , V n = T n [ Y n + 3 2 ] , z n = T n [ Y n + 4 0 ] , K n = T n [ Y n + 4 8 ] ; v a r v r = D n + ( $ n = T n [ Y n + 5 6 ] ) , y r = D n - $ n , _ r = Q n + K n , b r = Q n - K n , w r = H n + z n , x r = H n - z n , S r = G n + V n , C r = G n - V n , k r = v r + S r , B r = v r - S r , E r = _ r + w r , P r = _ r - w r ; T n [ Y n ] = k r + E r , T n [ Y n + 3 2 ] = k r - E r ; v a r L r = . 7 0 7 1 0 6 7 8 1 * ( P r + B r ) ; T n [ Y n + 1 6 ] = B r + L r , T n [ Y n + 4 8 ] = B r - L r ; v a r T r = . 3 8 2 6 8 3 4 3 3 * ( ( k r = C r + x r ) - ( P r = b r + y r ) ) , N r = . 5 4 1 1 9 6 1 * k r + T r , I r = 1 . 3 0 6 5 6 2 9 6 5 * P r + T r , O r = . 7 0 7 1 0 6 7 8 1 * ( E r = x r + b r ) , F r = y r + O r , U r = y r - O r ; T n [ Y n + 4 0 ] = U r + N r , T n [ Y n + 2 4 ] = U r - N r , T n [ Y n + 8 ] = F r + I r , T n [ Y n + 5 6 ] = F r - I r , Y n + + } f o r ( W n = 0 ; W n < 6 4 ; + + W n ) X n = T n [ W n ] * U n [ W n ] , J n [ W n ] = X n > 0 ? X n + . 5 | 0 : X n - . 5 | 0 ; r e t u r n J n } ( T n , U n ) , $ n = 0 ; $ n < 6 4 ; + + $ n ) Z n [ l r [ $ n ] ] = K n [ $ n ] ; v a r W n = Z n [ 0 ] - D n ; D n = Z n [ 0 ] , 0 = = W n ? B ( Q n [ 0 ] ) : ( B ( Q n [ Y n [ G n = 3 2 7 6 7 + W n ] ] ) , B ( X n [ G n ] ) ) ; f o r ( v a r e r = 6 3 ; e r > 0 & & 0 = = Z n [ e r ] ; ) e r - - ; i f ( 0 = = e r ) r e t u r n B ( V n ) , D n ; f o r ( v a r t r , n r = 1 ; n r < = e r ; ) { f o r ( v a r r r = n r ; 0 = = Z n [ n r ] & & n r < = e r ; ) + + n r ; v a r i r = n r - r r ; i f ( i r > = 1 6 ) { t r = i r > > 4 ; f o r ( v a r o r = 1 ; o r < = t r ; + + o r ) B ( z n ) ; i r & = 1 5 } G n = 3 2 7 6 7 + Z n [ n r ] , B ( H n [ ( i r < < 4 ) + Y n [ G n ] ] ) , B ( X n [ G n ] ) , n r + + } r e t u r n 6 3 ! = e r & & B ( V n ) , D n } f u n c t i o n q ( T n ) { T n = M a t h . m i n ( M a t h . m a x ( T n , 1 ) , 1 0 0 ) , G n ! = T n & & ( f u n c t i o n ( T n ) { f o r ( v a r U n = [ 1 6 , 1 1 , 1 0 , 1 6 , 2 4 , 4 0 , 5 1 , 6 1 , 1 2 , 1 2 , 1 4 , 1 9 , 2 6 , 5 8 , 6 0 , 5 5 , 1 4 , 1 3 , 1 6 , 2 4 , 4 0 , 5 7 , 6 9 , 5 6 , 1 4 , 1 7 , 2 2 , 2 9 , 5 1 , 8 7 , 8 0 , 6 2 , 1 8 , 2 2 , 3 7 , 5 6 , 6 8 , 1 0 9 , 1 0 3 , 7 7 , 2 4 , 3 5 , 5 5 , 6 4 , 8 1 , 1 0 4 , 1 1 3 , 9 2 , 4 9 , 6 4 , 7 8 , 8 7 , 1 0 3 , 1 2 1 , 1 2 0 , 1 0 1 , 7 2 , 9 2 , 9 5 , 9 8 , 1 1 2 , 1 0 0
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2017 Aras Abbasi
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
2021-01-01 23:13:07 +00:00
* / f u n c t i o n M t ( T n , U n ) { i f ( t h i s . p o s = 0 , t h i s . b u f f e r = T n , t h i s . d a t a v = n e w D a t a V i e w ( T n . b u f f e r ) , t h i s . i s _ w i t h _ a l p h a = ! ! U n , t h i s . b o t t o m _ u p = ! 0 , t h i s . f l a g = S t r i n g . f r o m C h a r C o d e ( t h i s . b u f f e r [ 0 ] ) + S t r i n g . f r o m C h a r C o d e ( t h i s . b u f f e r [ 1 ] ) , t h i s . p o s + = 2 , - 1 = = = [ " B M " , " B A " , " C I " , " C P " , " I C " , " P T " ] . i n d e x O f ( t h i s . f l a g ) ) t h r o w n e w E r r o r ( " I n v a l i d B M P F i l e " ) ; t h i s . p a r s e H e a d e r ( ) , t h i s . p a r s e B G R ( ) } f u n c t i o n E t ( T n ) { f u n c t i o n e ( T n ) { i f ( ! T n ) t h r o w E r r o r ( " a s s e r t : P " ) } f u n c t i o n n ( T n , U n , D n ) { f o r ( v a r Q n = 0 ; 4 > Q n ; Q n + + ) i f ( T n [ U n + Q n ] ! = D n . c h a r C o d e A t ( Q n ) ) r e t u r n ! 0 ; r e t u r n ! 1 } f u n c t i o n r ( T n , U n , D n , Q n , H n ) { f o r ( v a r G n = 0 ; G n < H n ; G n + + ) T n [ U n + G n ] = D n [ Q n + G n ] } f u n c t i o n i ( T n , U n , D n , Q n ) { f o r ( v a r H n = 0 ; H n < Q n ; H n + + ) T n [ U n + H n ] = D n } f u n c t i o n a ( T n ) { r e t u r n n e w I n t 3 2 A r r a y ( T n ) } f u n c t i o n o ( T n , U n ) { f o r ( v a r D n = [ ] , Q n = 0 ; Q n < T n ; Q n + + ) D n . p u s h ( n e w U n ) ; r e t u r n D n } f u n c t i o n s ( T n , U n ) { v a r D n = [ ] ; r e t u r n f u n c t i o n t ( T n , D n , Q n ) { f o r ( v a r H n = Q n [ D n ] , G n = 0 ; G n < H n & & ( T n . p u s h ( Q n . l e n g t h > D n + 1 ? [ ] : n e w U n ) , ! ( Q n . l e n g t h < D n + 1 ) ) ; G n + + ) t ( T n [ G n ] , D n + 1 , Q n ) } ( D n , 0 , T n ) , D n } f u n c t i o n u ( T n , U n ) { f o r ( v a r D n = " " , Q n = 0 ; Q n < 4 ; Q n + + ) D n + = S t r i n g . f r o m C h a r C o d e ( T n [ U n + + ] ) ; r e t u r n D n } f u n c t i o n c ( T n , U n ) { r e t u r n ( T n [ U n + 0 ] < < 0 | T n [ U n + 1 ] < < 8 | T n [ U n + 2 ] < < 1 6 ) > > > 0 } f u n c t i o n h ( T n , U n ) { r e t u r n ( T n [ U n + 0 ] < < 0 | T n [ U n + 1 ] < < 8 | T n [ U n + 2 ] < < 1 6 | T n [ U n + 3 ] < < 2 4 ) > > > 0 } n e w ( E t = f u n c t i o n E t ( ) { v a r T n = t h i s ; f u n c t i o n u ( T n , U n ) { f o r ( v a r D n = 1 < < U n - 1 > > > 0 ; T n & D n ; ) D n > > > = 1 ; r e t u r n D n ? ( T n & D n - 1 ) + D n : T n } f u n c t i o n c ( T n , U n , D n , Q n , H n ) { e ( ! ( Q n % D n ) ) ; d o { T n [ U n + ( Q n - = D n ) ] = H n } w h i l e ( 0 < Q n ) } f u n c t i o n h ( T n , U n , D n , Q n , H n ) { i f ( e ( 2 3 2 8 > = H n ) , 5 1 2 > = H n ) v a r G n = a ( 5 1 2 ) ; e l s e i f ( n u l l = = ( G n = a ( H n ) ) ) r e t u r n 0 ; r e t u r n f u n c t i o n ( T n , U n , D n , Q n , H n , G n ) { v a r V n , z n , K n = U n , $ n = 1 < < D n , W n = a ( 1 6 ) , X n = a ( 1 6 ) ; f o r ( e ( 0 ! = H n ) , e ( n u l l ! = Q n ) , e ( n u l l ! = T n ) , e ( 0 < D n ) , z n = 0 ; z n < H n ; + + z n ) { i f ( 1 5 < Q n [ z n ] ) r e t u r n 0 ; + + W n [ Q n [ z n ] ] } i f ( W n [ 0 ] = = H n ) r e t u r n 0 ; f o r ( X n [ 1 ] = 0 , V n = 1 ; 1 5 > V n ; + + V n ) { i f ( W n [ V n ] > 1 < < V n ) r e t u r n 0 ; X n [ V n + 1 ] = X n [ V n ] + W n [ V n ] } f o r ( z n = 0 ; z n < H n ; + + z n ) V n = Q n [ z n ] , 0 < Q n [ z n ] & & ( G n [ X n [ V n ] + + ] = z n ) ; i f ( 1 = = X n [ 1 5 ] ) r e t u r n ( Q n = n e w l ) . g = 0 , Q n . v a l u e = G n [ 0 ] , c ( T n , K n , 1 , $ n , Q n ) , $ n ; v a r Y n , J n = - 1 , Z n = $ n - 1 , e r = 0 , t r = 1 , n r = 1 , r r = 1 < < D n ; f o r ( z n = 0 , V n = 1 , H n = 2 ; V n < = D n ; + + V n , H n < < = 1 ) { i f ( t r + = n r < < = 1 , 0 > ( n r - = W n [ V n ] ) ) r e t u r n 0 ; f o r ( ; 0 < W n [ V n ] ; - - W n [ V n ] ) ( Q n = n e w l ) . g = V n , Q n . v a l u e = G n [ z n + + ] , c ( T n , K n + e r , H n , r r , Q n ) , e r = u ( e r , V n ) } f o r ( V n = D n + 1 , H n = 2 ; 1 5 > = V n ; + + V n , H n < < = 1 ) { i f ( t r + = n r < < = 1 , 0 > ( n r - = W n [ V n ] ) ) r e t u r n 0 ; f o r ( ; 0 < W n [ V n ] ; - - W n [ V n ] ) { i f ( Q n = n e w l , ( e r & Z n ) ! = J n ) { f o r ( K n + = r r , Y n = 1 < < ( J n = V n ) - D n ; 1 5 > J n & & ! ( 0 > = ( Y n - = W n [ J n ] ) ) ; ) + + J n , Y n < < = 1 ; $ n + = r r = 1 < < ( Y n = J n - D n ) , T n [ U n + ( J n = e r & Z n ) ] . g = Y n + D n , T n [ U n + J n ] . v a l u e = K n - U n - J n } Q n . g = V n - D n , Q n . v a l u e = G n [ z n + + ] , c ( T n , K n + ( e r > > D n ) , H n , r r , Q n ) , e r = u ( e r , V n ) } } r e t u r n t r ! = 2 * X n [ 1 5 ] - 1 ? 0 : $ n } ( T n , U n , D n , Q n , H n , G n ) } f u n c t i o n l ( ) { t h i s . v a l u e = t h i s . g = 0 } f u n c t i o n f ( ) { t h i s . v a l u e = t h i s . g = 0 } f u n c t i o n d ( ) { t h i s . G = o ( 5 , l ) , t h i s . H = a ( 5 ) , t h i s . j c = t h i s . Q b = t h i s . q b = t h i s . n d = 0 , t h i s . p d = o ( U n , f ) } f u n c t i o n p ( T n , U n , D n , Q n ) { e ( n u l l ! = T n ) , e ( n u l l ! = U n ) , e ( 2 1 4 7 4 8 3 6 4 8 > Q n ) , T n . C a = 2 5 4 , T n . I = 0 , T n . b = - 8 , T n . K a = 0 , T n . o a = U n , T n . p a = D n , T n . J d = U n , T n . Y c = D n + Q n , T n . Z c = 4 < = Q n ? D n + Q n - 4 + 1 : D n , S ( T n ) } f u n c t i o n g ( T n , U n ) { f o r ( v a r D n = 0 ; 0 < U n - - ; ) D n | = k ( T n , 1 2 8 ) < < U n ; r e t u r n D n } f u n c t i o n m ( T n , U n ) { v a r D n = g ( T n , U n ) ; r e t u r n P ( T n ) ? - D n : D n } f u n c t i o n v ( T n , U n , D n , Q n ) { v a r H n , G n = 0 ; f o r ( e ( n u l l ! = T n ) , e ( n u l l ! = U n ) , e ( 4 2 9 4 9 6 7 2 8 8 > Q n ) , T n . S b = Q n , T n . R a = 0 , T n . u = 0 , T n . h = 0 , 4 < Q n & & ( Q n = 4 ) , H n = 0 ; H n < Q n ; + + H n ) G n + = U n [ D n + H n ] < < 8 * H n ; T n . R a = G n , T n . b b = Q n , T n . o a = U n , T n . p a = D n } f u n c t i o n b ( T n ) { f o r ( ; 8 < = T n . u & & T n . b b < T n . S b ; ) T n . R a > > > = 8 , T n . R a + = T n . o a [ T n . p a + T n . b b ] < < H n - 8 > > > 0 , + + T n . b b , T n . u - = 8 ; x ( T n ) & & ( T n . h = 1 , T n . u = 0 ) } f u n c t i o n y ( T n , U n ) { i f ( e ( 0 < = U n ) , ! T n . h & & U n < = Q n ) { v a r H n = L ( T n ) & D n [ U n ] ; r e t u r n T n . u + = U n , b ( T n ) , H n } r e t u r n T n . h = 1 , T n . u = 0 } f u n c t i o n w ( ) { t h i s . b = t h i s . C a = t h i s . I = 0 , t h i s . o a = [ ] , t h i s . p a = 0 , t h i s . J d = [ ] , t h i s . Y c = 0 , t h i s . Z c = [ ] , t h i s . K a = 0 } f u n c t i o n N ( ) { t h i s . R a = 0 , t h i s . o a = [ ] , t h i s . h = t h i s . u = t h i s . b b = t h i s . S b = t h i s . p a = 0 } f u n c t i o n L ( T n ) { r e t u r n T n . R a > > > ( T n . u & H n - 1 ) > > > 0 } f u n c t i o n x ( T n ) { r e t u r n e ( T n . b b < = T n . S b ) , T n . h | | T n . b b = = T n . S b & & T n . u > H n } f u n c t i o n A ( T n , U n ) { T n . u = U n , T n . h = x ( T n ) } f u n c t i o n _ ( T n ) { T n . u > = G n & & ( e ( T n . u > = G n ) , b ( T n ) ) } f u n c t i o n S ( T n ) { e ( n u l l ! = T n & & n u l l ! = T n . o a ) , T n . p a < T n . Z c ? ( T n . I = ( T n . o a [ T n . p a + + ] | T n . I < < 8 ) > > > 0 , T n . b + = 8 ) : ( e ( n u l l ! = T n & & n u l l ! = T n . o a ) , T n . p a < T n . Y c ? ( T n . b + = 8 , T n . I = T n . o a [ T n . p a + + ] | T n . I < < 8 ) : T n . K a ? T n . b = 0 : ( T n . I < < = 8 , T n . b + = 8 , T n . K a = 1 ) ) } f u n c t i o n P ( T n ) { r e t u r n g ( T n , 1 ) } f u n c t i o n k ( T n , U n ) { v a r D n = T n . C a ; 0 > T n . b & & S ( T n ) ; v a r Q n = T n . b , H n = D n * U n > > > 8 , G n = ( T n . I > > > Q n > H n ) + 0 ; f o r ( G n ? ( D n - = H n , T n . I - = H n + 1 < < Q n > > > 0 ) : D n = H n + 1 , Q n = D n , H n = 0 ; 2 5 6 < = Q n ; ) H n + = 8 ,
2020-09-11 23:27:47 +00:00
/ * * @ l i c e n s e
* Copyright ( c ) 2017 Dominik Homberger
Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the "Software" ) , to deal in the Software without restriction , including without limitation the rights to use , copy , modify , merge , publish , distribute , sublicense , and / or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to the following conditions :
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
https : //webpjs.appspot.com
WebPRiffParser dominikhlbg @ gmail . com
* /
2021-01-01 23:13:07 +00:00
function ( Tn , Un , Dn , Qn ) { for ( var Hn = 0 ; Hn < 4 ; Hn ++ ) if ( Tn [ Un + Hn ] != "RIFF" . charCodeAt ( Hn ) ) return ! 0 ; return ! 1 } ( Tn , Un ) ) { var zn , Kn ; for ( h ( Tn , Un += 4 ) , Un += 8 ; Un < Tn . length ; ) { var $n = u ( Tn , Un ) , Wn = h ( Tn , Un += 4 ) ; Un += 4 ; var Xn = Wn + ( 1 & Wn ) ; switch ( $n ) { case "VP8 " : case "VP8L" : void 0 === Dn . frames [ Qn ] && ( Dn . frames [ Qn ] = { } ) , ( Zn = Dn . frames [ Qn ] ) . src _off = Hn ? Vn : Un - 8 , Zn . src _size = Gn + Wn + 8 , Qn ++ , Hn && ( Hn = ! 1 , Gn = 0 , Vn = 0 ) ; break ; case "VP8X" : ( Zn = Dn . header = { } ) . feature _flags = Tn [ Un ] ; var Yn = Un + 4 ; Zn . canvas _width = 1 + c ( Tn , Yn ) , Yn += 3 , Zn . canvas _height = 1 + c ( Tn , Yn ) , Yn += 3 ; break ; case "ALPH" : Hn = ! 0 , Gn = Xn + 8 , Vn = Un - 8 ; break ; case "ANIM" : ( Zn = Dn . header ) . bgcolor = h ( Tn , Un ) , Yn = Un + 4 , Zn . loop _count = ( zn = Tn ) [ ( Kn = Yn ) + 0 ] << 0 | zn [ Kn + 1 ] << 8 , Yn += 2 ; break ; case "ANMF" : var Jn , Zn ; ( Zn = Dn . frames [ Qn ] = { } ) . offset _x = 2 * c ( Tn , Un ) , Un += 3 , Zn . offset _y = 2 * c ( Tn , Un ) , Un += 3 , Zn . width = 1 + c ( Tn , Un ) , Un += 3 , Zn . height = 1 + c ( Tn , Un ) , Un += 3 , Zn . duration = c ( Tn , Un ) , Un += 3 , Jn = Tn [ Un ++ ] , Zn . dispose = 1 & Jn , Zn . blend = Jn >> 1 & 1 } "ANMF" != $n && ( Un += Xn ) } return Dn } } ( Gn , 0 ) ; Vn . response = Gn , Vn . rgbaoutput = ! 0 , Vn . dataurl = ! 1 ; var zn = Vn . header ? Vn . header : null , Kn = Vn . frames ? Vn . frames : null ; if ( zn ) { zn . loop _counter = zn . loop _count , Un = [ zn . canvas _height ] , Dn = [ zn . canvas _width ] ; for ( var $n = 0 ; $n < Kn . length && 0 != Kn [ $n ] . blend ; $n ++ ) ; } var Wn = Kn [ 0 ] , Xn = Hn . WebPDecodeRGBA ( Gn , Wn . src _off , Wn . src _size , Dn , Un ) ; Wn . rgba = Xn , Wn . imgwidth = Dn [ 0 ] , Wn . imgheight = Un [ 0 ] ; for ( var Yn = 0 ; Yn < Dn [ 0 ] * Un [ 0 ] * 4 ; Yn ++ ) Qn [ Yn ] = Xn [ Yn ] ; return this . width = Dn , this . height = Un , this . data = Qn , this
2020-09-11 23:27:47 +00:00
/ * *
* @ license
*
* Copyright ( c ) 2014 James Robb , https : //github.com/jamesbrobb
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
* === === === === === === === === === === === === === === === === === === === === === === ==
2021-01-03 17:35:23 +00:00
* / } ! f u n c t i o n ( T n ) { v a r U n = f u n c t i o n n ( U n , H n , $ n , W n ) { v a r X n = 5 , Y n = V n ; s w i t c h ( W n ) { c a s e T n . i m a g e _ c o m p r e s s i o n . F A S T : X n = 3 , Y n = G n ; b r e a k ; c a s e T n . i m a g e _ c o m p r e s s i o n . M E D I U M : X n = 6 , Y n = z n ; b r e a k ; c a s e T n . i m a g e _ c o m p r e s s i o n . S L O W : X n = 9 , Y n = K n } U n = Q n ( U n , H n , $ n , Y n ) ; v a r J n = n e w U i n t 8 A r r a y ( D n ( X n ) ) , Z n = g . A P I . a d l e r 3 2 c s . f r o m B u f f e r ( U n . b u f f e r ) , e r = n e w x t ( X n ) , t r = e r . a p p e n d ( U n ) , n r = e r . f l u s h ( ) , r r = J n . l e n g t h + t r . l e n g t h + n r . l e n g t h , i r = n e w U i n t 8 A r r a y ( r r + 4 ) ; r e t u r n i r . s e t ( J n ) , i r . s e t ( t r , J n . l e n g t h ) , i r . s e t ( n r , J n . l e n g t h + t r . l e n g t h ) , i r [ r r + + ] = Z n > > > 2 4 & 2 5 5 , i r [ r r + + ] = Z n > > > 1 6 & 2 5 5 , i r [ r r + + ] = Z n > > > 8 & 2 5 5 , i r [ r r + + ] = 2 5 5 & Z n , T n . _ _ a d d i m a g e _ _ . a r r a y B u f f e r T o B i n a r y S t r i n g ( i r ) } , D n = f u n c t i o n r ( T n ) { v a r U n = 3 0 7 2 0 ; r e t u r n U n | = M a t h . m i n ( 3 , ( T n - 1 & 2 5 5 ) > > 1 ) < < 6 , U n | = 0 , [ 1 2 0 , 2 5 5 & ( U n + = 3 1 - U n % 3 1 ) ] } , Q n = f u n c t i o n i ( T n , U n , D n , Q n ) { f o r ( v a r i , H n , G n , V n = T n . l e n g t h / U n , z n = n e w U i n t 8 A r r a y ( T n . l e n g t h + V n ) , K n = W n ( ) , $ n = 0 ; $ n < V n ; $ n + = 1 ) { i f ( G n = $ n * U n , i = T n . s u b a r r a y ( G n , G n + U n ) , Q n ) z n . s e t ( Q n ( i , D n , H n ) , G n + $ n ) ; e l s e { f o r ( v a r Y n , J n = K n . l e n g t h , Z n = [ ] ; Y n < J n ; Y n + = 1 ) Z n [ Y n ] = K n [ Y n ] ( i , D n , H n ) ; v a r e r = X n ( Z n . c o n c a t ( ) ) ; z n . s e t ( Z n [ e r ] , G n + $ n ) } H n = i } r e t u r n z n } , H n = f u n c t i o n a ( T n ) { v a r U n = A r r a y . a p p l y ( [ ] , T n ) ; r e t u r n U n . u n s h i f t ( 0 ) , U n } , G n = f u n c t i o n o ( T n , U n ) { v a r D n , Q n = [ ] , H n = T n . l e n g t h ; Q n [ 0 ] = 1 ; f o r ( v a r G n = 0 ; G n < H n ; G n + = 1 ) D n = T n [ G n - U n ] | | 0 , Q n [ G n + 1 ] = T n [ G n ] - D n + 2 5 6 & 2 5 5 ; r e t u r n Q n } , V n = f u n c t i o n s ( T n , U n , D n ) { v a r Q n , H n = [ ] , G n = T n . l e n g t h ; H n [ 0 ] = 2 ; f o r ( v a r V n = 0 ; V n < G n ; V n + = 1 ) Q n = D n & & D n [ V n ] | | 0 , H n [ V n + 1 ] = T n [ V n ] - Q n + 2 5 6 & 2 5 5 ; r e t u r n H n } , z n = f u n c t i o n u ( T n , U n , D n ) { v a r Q n , H n , G n = [ ] , V n = T n . l e n g t h ; G n [ 0 ] = 3 ; f o r ( v a r z n = 0 ; z n < V n ; z n + = 1 ) Q n = T n [ z n - U n ] | | 0 , H n = D n & & D n [ z n ] | | 0 , G n [ z n + 1 ] = T n [ z n ] + 2 5 6 - ( Q n + H n > > > 1 ) & 2 5 5 ; r e t u r n G n } , K n = f u n c t i o n c ( T n , U n , D n ) { v a r Q n , H n , G n , V n , z n = [ ] , K n = T n . l e n g t h ; z n [ 0 ] = 4 ; f o r ( v a r c = 0 ; c < K n ; c + = 1 ) Q n = T n [ c - U n ] | | 0 , H n = D n & & D n [ c ] | | 0 , G n = D n & & D n [ c - U n ] | | 0 , V n = $ n ( Q n , H n , G n ) , z n [ c + 1 ] = T n [ c ] - V n + 2 5 6 & 2 5 5 ; r e t u r n z n } , $ n = f u n c t i o n h ( T n , U n , D n ) { i f ( T n = = = U n & & U n = = = D n ) r e t u r n T n ; v a r Q n = M a t h . a b s ( U n - D n ) , H n = M a t h . a b s ( T n - D n ) , G n = M a t h . a b s ( T n + U n - D n - D n ) ; r e t u r n Q n < = H n & & Q n < = G n ? T n : H n < = G n ? U n : D n } , W n = f u n c t i o n l ( ) { r e t u r n [ H n , G n , V n , z n , K n ] } , X n = f u n c t i o n f ( T n ) { v a r U n = T n . m a p ( ( f u n c t i o n ( T n ) { r e t u r n T n . r e d u c e ( ( f u n c t i o n ( T n , U n ) { r e t u r n T n + M a t h . a b s ( U n ) } ) , 0 ) } ) ) ; r e t u r n U n . i n d e x O f ( M a t h . m i n . a p p l y ( n u l l , U n ) ) } ; T n . p r o c e s s P N G = f u n c t i o n ( D n , Q n , H n , G n ) { v a r V n , z n , K n , $ n , W n , X n , Y n , J n , Z n , e r , t r , n r , r r , i r , o r , a r = t h i s . d e c o d e . F L A T E _ D E C O D E , s r = " " ; i f ( t h i s . _ _ a d d i m a g e _ _ . i s A r r a y B u f f e r ( D n ) & & ( D n = n e w U i n t 8 A r r a y ( D n ) ) , t h i s . _ _ a d d i m a g e _ _ . i s A r r a y B u f f e r V i e w ( D n ) ) { i f ( D n = ( K n = n e w K U ( D n ) ) . i m g D a t a , z n = K n . b i t s , V n = K n . c o l o r S p a c e , W n = K n . c o l o r s , - 1 ! = = [ 4 , 6 ] . i n d e x O f ( K n . c o l o r T y p e ) ) { i f ( 8 = = = K n . b i t s ) { Z n = ( J n = 3 2 = = K n . p i x e l B i t l e n g t h ? n e w U i n t 3 2 A r r a y ( K n . d e c o d e P i x e l s ( ) . b u f f e r ) : 1 6 = = K n . p i x e l B i t l e n g t h ? n e w U i n t 1 6 A r r a y ( K n . d e c o d e P i x e l s ( ) . b u f f e r ) : n e w U i n t 8 A r r a y ( K n . d e c o d e P i x e l s ( ) . b u f f e r ) ) . l e n g t h , t r = n e w U i n t 8 A r r a y ( Z n * K n . c o l o r s ) , e r = n e w U i n t 8 A r r a y ( Z n ) ; v a r l r , c r = K n . p i x e l B i t l e n g t h - K n . b i t s ; f o r ( i r = 0 , o r = 0 ; i r < Z n ; i r + + ) { f o r ( r r = J n [ i r ] , l r = 0 ; l r < c r ; ) t r [ o r + + ] = r r > > > l r & 2 5 5 , l r + = K n . b i t s ; e r [ i r ] = r r > > > l r & 2 5 5 } } i f ( 1 6 = = = K n . b i t s ) { Z n = ( J n = n e w U i n t 3 2 A r r a y ( K n . d e c o d e P i x e l s ( ) . b u f f e r ) ) . l e n g t h , t r = n e w U i n t 8 A r r a y ( Z n * ( 3 2 / K n . p i x e l B i t l e n g t h ) * K n . c o l o r s ) , e r = n e w U i n t 8 A r r a y ( Z n * ( 3 2 / K n . p i x e l B i t l e n g t h ) ) , n r = K n . c o l o r s > 1 , i r = 0 , o r = 0 ; f o r ( v a r u r = 0 ; i r < Z n ; ) r r = J n [ i r + + ] , t r [ o r + + ] = r r > > > 0 & 2 5 5 , n r & & ( t r [ o r + + ] = r r > > > 1 6 & 2 5 5 , r r = J n [ i r + + ] , t r [ o r + + ] = r r > > > 0 & 2 5 5 ) , e r [ u r + + ] = r r > > > 1 6 & 2 5 5 ; z n = 8 } G n ! = = T n . i m a g e _ c o m p r e s s i o n . N O N E ? ( D n = U n ( t r , K n . w i d t h * K n . c o l o r s , K n . c o l o r s , G n ) , Y n = U n ( e r , K n . w i d t h , 1 , G n ) ) : ( D n = t r , Y n = e r , a r = v o i d 0 ) } i f ( 3 = = = K n . c o l o r T y p e & & ( V n = t h i s . c o l o r _ s p a c e s . I N D E X E D , X n = K n . p a l e t t e , K n . t r a n s p a r e n c y . i n d e x e d ) ) { v a r d r = K n . t r a n s p a r e n c y . i n d e x e d , h r = 0 ; f o r ( i r = 0 , Z n = d r . l e n g t h ; i r < Z n ; + + i r ) h r + = d r [ i r ] ; i f ( ( h r / = 2 5 5 ) = = Z n - 1 & & - 1 ! = = d r . i n d e x O f ( 0 ) ) $ n = [ d r . i n d e x O f ( 0 ) ] ; e l s e i f ( h r ! = = Z n ) { f o r ( J n = K n . d e c o d e P i x e l s ( ) , e r = n e w U i n t 8 A r r a y ( J n . l e n g t h ) , i r = 0 , Z n = J n . l e n g t h ; i r < Z n ; i r + + ) e r [ i r ] = d r [ J n [ i r ] ] ; Y n = U n ( e r , K n . w i d t h , 1 ) } } v a r p r = f u n c t i o n ( U n ) { v a r D n ; s w i t c h ( U n ) { c a s e T n . i m a g e _ c o m p r e s s i o n . F A S T : D n = 1 1 ; b r e a k ; c a s e T n . i m a g e _ c o m p r e s s i o n . M E D I U M : D n = 1 3 ; b r e a k ; c a s e T n . i m a g e _ c o m p r e s s i o n . S L O W : D n = 1 4 ; b r e a k ; d e f a u l t : D n = 1 2 } r e t u r n D n } ( G n ) ; r e t u r n a r = = = t h i s . d e c o d e . F L A T E _ D E C O D E & & ( s r = " / P r e d i c t o r " + p r + " " ) , s r + = " / C o l o r s " + W n + " / B i t s P e r C o m p o n e n t " + z n + " / C o l u m n s " + K n . w i d t h , ( t h i s . _ _ a d d i m a g e _ _ . i s A r r a y B u f f e r ( D n ) | | t h i s . _ _ a d d i m a g e _ _ . i s A r r a y B u f f e r V i e w ( D n ) ) & & ( D n = t h i s . _ _ a d d i m a g e _ _ . a r r a y B u f f e r T o B i n a r y S t r i n g ( D n ) ) , ( Y n & & t h i s . _ _ a
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2018 Aras Abbasi
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { Tn . processBMP = function ( Un , Dn , Qn , Hn ) { var Gn = new Mt ( Un , ! 1 ) , Vn = Gn . width , zn = Gn . height , Kn = { data : Gn . getData ( ) , width : Vn , height : zn } , $n = new Ot ( 100 ) . encode ( Kn , 100 ) ; return Tn . processJPEG . call ( this , $n , Dn , Qn , Hn ) } } ( g . API ) , Et . prototype . getData = function ( ) { return this . data } ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Copyright ( c ) 2019 Aras Abbasi
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { Tn . processWEBP = function ( Un , Dn , Qn , Hn ) { var Gn = new Et ( Un , ! 1 ) , Vn = Gn . width , zn = Gn . height , Kn = { data : Gn . getData ( ) , width : Vn , height : zn } , $n = new Ot ( 100 ) . encode ( Kn , 100 ) ; return Tn . processJPEG . call ( this , $n , Dn , Qn , Hn ) } } ( g . API ) , g . API . setLanguage = function ( Tn ) { return void 0 === this . internal . languageSettings && ( this . internal . languageSettings = { } , this . internal . languageSettings . isSubscribed = ! 1 ) , void 0 !== { af : "Afrikaans" , sq : "Albanian" , ar : "Arabic (Standard)" , "ar-DZ" : "Arabic (Algeria)" , "ar-BH" : "Arabic (Bahrain)" , "ar-EG" : "Arabic (Egypt)" , "ar-IQ" : "Arabic (Iraq)" , "ar-JO" : "Arabic (Jordan)" , "ar-KW" : "Arabic (Kuwait)" , "ar-LB" : "Arabic (Lebanon)" , "ar-LY" : "Arabic (Libya)" , "ar-MA" : "Arabic (Morocco)" , "ar-OM" : "Arabic (Oman)" , "ar-QA" : "Arabic (Qatar)" , "ar-SA" : "Arabic (Saudi Arabia)" , "ar-SY" : "Arabic (Syria)" , "ar-TN" : "Arabic (Tunisia)" , "ar-AE" : "Arabic (U.A.E.)" , "ar-YE" : "Arabic (Yemen)" , an : "Aragonese" , hy : "Armenian" , as : "Assamese" , ast : "Asturian" , az : "Azerbaijani" , eu : "Basque" , be : "Belarusian" , bn : "Bengali" , bs : "Bosnian" , br : "Breton" , bg : "Bulgarian" , my : "Burmese" , ca : "Catalan" , ch : "Chamorro" , ce : "Chechen" , zh : "Chinese" , "zh-HK" : "Chinese (Hong Kong)" , "zh-CN" : "Chinese (PRC)" , "zh-SG" : "Chinese (Singapore)" , "zh-TW" : "Chinese (Taiwan)" , cv : "Chuvash" , co : "Corsican" , cr : "Cree" , hr : "Croatian" , cs : "Czech" , da : "Danish" , nl : "Dutch (Standard)" , "nl-BE" : "Dutch (Belgian)" , en : "English" , "en-AU" : "English (Australia)" , "en-BZ" : "English (Belize)" , "en-CA" : "English (Canada)" , "en-IE" : "English (Ireland)" , "en-JM" : "English (Jamaica)" , "en-NZ" : "English (New Zealand)" , "en-PH" : "English (Philippines)" , "en-ZA" : "English (South Africa)" , "en-TT" : "English (Trinidad & Tobago)" , "en-GB" : "English (United Kingdom)" , "en-US" : "English (United States)" , "en-ZW" : "English (Zimbabwe)" , eo : "Esperanto" , et : "Estonian" , fo : "Faeroese" , fj : "Fijian" , fi : "Finnish" , fr : "French (Standard)" , "fr-BE" : "French (Belgium)" , "fr-CA" : "French (Canada)" , "fr-FR" : "French (France)" , "fr-LU" : "French (Luxembourg)" , "fr-MC" : "French (Monaco)" , "fr-CH" : "French (Switzerland)" , fy : "Frisian" , fur : "Friulian" , gd : "Gaelic (Scots)" , "gd-IE" : "Gaelic (Irish)" , gl : "Galacian" , ka : "Georgian" , de : "German (Standard)" , "de-AT" : "German (Austria)" , "de-DE" : "German (Germany)" , "de-LI" : "German (Liechtenstein)" , "de-LU" : "German (Luxembourg)" , "de-CH" : "German (Switzerland)" , el : "Greek" , gu : "Gujurati" , ht : "Haitian" , he : "Hebrew" , hi : "Hindi" , hu : "Hungarian" , is : "Icelandic" , id : "Indonesian" , iu : "Inuktitut" , ga : "Irish" , it : "Italian (Standard)" , "it-CH" : "Italian (Switzerland)" , ja : "Japanese" , kn : "Kannada" , ks : "Kashmiri" , kk : "Kazakh" , km : "Khmer" , ky : "Kirghiz" , tlh : "Klingon" , ko : "Korean" , "ko-KP" : "Korean (North Korea)" , "ko-KR" : "Korean (South Korea)" , la : "Latin" , lv : "Latvian" , lt : "Lithuanian" , lb : "Luxembourgish" , mk : "FYRO Macedonian" , ms : "Malay" , ml : "Malayalam" , mt : "Maltese" , mi : "Maori" , mr : "Marathi" , mo : "Moldavian" , nv : "Navajo" , ng : "Ndonga" , ne : "Nepali" , no : "Norwegian" , nb : "Norwegian (Bokmal)" , nn : "Norwegian (Nynorsk)" , oc : "Occitan" , or : "Oriya" , om : "Oromo" , fa : "Persian" , "fa-IR" : "Persian/Iran" , pl : "Polish" , pt : "Portuguese" , "pt-BR" : "Portuguese (Brazil)" , pa : "Punjabi" , "pa-IN" : "Punjabi (India)" , "pa-PK" : "Punjabi (Pakistan)" , qu : "Quechua" , rm : "Rhaeto-Romanic" , ro : "Romanian" , "ro-MO" : "Romanian (Moldavia)" , ru : "Russian" , "ru-MO" : "Russian (Moldavia)" , sz : "Sami (Lappish)" , sg : "Sango" , sa : "Sanskrit" , sc : "Sardinian" , sd : "Sindhi" , si : "Singhalese" , sr : "Serbian" , sk : "Slovak" , sl : "Slovenian" , so : "Somani" , sb : "Sorbian" , es : "Spanish" , "es-AR" : "Spanish (Argentina)" , "es-BO" : "Spanish (Bolivia)" , "es-CL" : "Spanish (Chile)" , "es-CO" : "Spanish (Colombia)" , "es-CR" : "Spanish (Costa Rica)" , "es-DO" : "Spanish (Dominican Republic)" , "es-EC" : "Spanish (Ecuador)" , "es-SV" : "Spanish (El Salvador)" , "es-GT" : "Spanish (Guatemala)" , "es-HN" : "Spanish (Honduras)" , "es-MX" : "Spanish (Mexico)" , "es-NI" : "Spanish (Nicaragua)" , "es-PA" : "Spanish (Panama)" , "es-PY" : "Spanish (Paraguay)" , "es-PE" : "Spanish (Peru)" , "es-PR" : "Spanish (Puerto Rico)" , "es-ES" : "Spanish (Spain)" , "es-UY" : "Spanish (Uruguay)" , "es-VE" : "Spanish (Venezuela)" , sx : "Sutu" , sw : "Swahili" , sv : "Swedish" , "sv-FI" : "Swedish (Finland)" , "sv-SV" : "Swedish (Sweden)" , ta : "Tamil" , tt : "Tatar" , te : "Teluga" , th : "Thai" , tig : "Tigre" , ts : "Tsonga" , tn : "Tswana" , tr : "Turkish" , tk : "Turkmen" , uk : "Ukrainian"
2020-09-11 23:27:47 +00:00
/ * * @ l i c e n s e
* MIT license .
* Copyright ( c ) 2012 Willow Systems Corporation , willow - systems . com
* 2014 Diego Casorran , https : //github.com/diegocr
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
* === === === === === === === === === === === === === === === === === === === === === === ==
* /
2021-01-03 17:35:23 +00:00
DU = g . API , jU = DU . getCharWidthsArray = function ( Tn , Un ) { var Dn , Qn , Hn = ( Un = Un || { } ) . font || this . internal . getFont ( ) , Gn = Un . fontSize || this . internal . getFontSize ( ) , Vn = Un . charSpace || this . internal . getCharSpace ( ) , zn = Un . widths ? Un . widths : Hn . metadata . Unicode . widths , Kn = zn . fof ? zn . fof : 1 , $n = Un . kerning ? Un . kerning : Hn . metadata . Unicode . kerning , Wn = $n . fof ? $n . fof : 1 , Xn = ! 1 !== Un . doKerning , Yn = 0 , Jn = Tn . length , Zn = 0 , er = zn [ 0 ] || Kn , tr = [ ] ; for ( Dn = 0 ; Dn < Jn ; Dn ++ ) Qn = Tn . charCodeAt ( Dn ) , "function" == typeof Hn . metadata . widthOfString ? tr . push ( ( Hn . metadata . widthOfGlyph ( Hn . metadata . characterToGlyph ( Qn ) ) + Vn * ( 1e3 / Gn ) || 0 ) / 1e3 ) : ( Yn = Xn && "object" == _typeof ( $n [ Qn ] ) && ! isNaN ( parseInt ( $n [ Qn ] [ Zn ] , 10 ) ) ? $n [ Qn ] [ Zn ] / Wn : 0 , tr . push ( ( zn [ Qn ] || er ) / Kn + Yn ) ) , Zn = Qn ; return tr } , QU = DU . getStringUnitWidth = function ( Tn , Un ) { var Dn = ( Un = Un || { } ) . fontSize || this . internal . getFontSize ( ) , Qn = Un . font || this . internal . getFont ( ) , Hn = Un . charSpace || this . internal . getCharSpace ( ) ; return DU . processArabic && ( Tn = DU . processArabic ( Tn ) ) , "function" == typeof Qn . metadata . widthOfString ? Qn . metadata . widthOfString ( Tn , Dn , Hn ) / Dn : jU . apply ( this , arguments ) . reduce ( ( function ( Tn , Un ) { return Tn + Un } ) , 0 ) } , HU = function Pt ( Tn , Un , Dn , Qn ) { for ( var Hn = [ ] , Gn = 0 , Vn = Tn . length , zn = 0 ; Gn !== Vn && zn + Un [ Gn ] < Dn ; ) zn += Un [ Gn ] , Gn ++ ; Hn . push ( Tn . slice ( 0 , Gn ) ) ; var Kn = Gn ; for ( zn = 0 ; Gn !== Vn ; ) zn + Un [ Gn ] > Qn && ( Hn . push ( Tn . slice ( Kn , Gn ) ) , zn = 0 , Kn = Gn ) , zn += Un [ Gn ] , Gn ++ ; return Kn !== Gn && Hn . push ( Tn . slice ( Kn , Gn ) ) , Hn } , GU = function kt ( Tn , Un , Dn ) { Dn || ( Dn = { } ) ; var Qn , Hn , Gn , Vn , zn , Kn , $n , Wn = [ ] , Xn = [ Wn ] , Yn = Dn . textIndent || 0 , Jn = 0 , Zn = 0 , er = Tn . split ( " " ) , tr = jU . apply ( this , [ " " , Dn ] ) [ 0 ] ; if ( Kn = - 1 === Dn . lineIndent ? er [ 0 ] . length + 2 : Dn . lineIndent || 0 ) { var nr = Array ( Kn ) . join ( " " ) , rr = [ ] ; er . map ( ( function ( Tn ) { ( Tn = Tn . split ( /\s*\n/ ) ) . length > 1 ? rr = rr . concat ( Tn . map ( ( function ( Tn , Un ) { return ( Un && Tn . length ? "\n" : "" ) + Tn } ) ) ) : rr . push ( Tn [ 0 ] ) } ) ) , er = rr , Kn = QU . apply ( this , [ nr , Dn ] ) } for ( Gn = 0 , Vn = er . length ; Gn < Vn ; Gn ++ ) { var ir = 0 ; if ( Qn = er [ Gn ] , Kn && "\n" == Qn [ 0 ] && ( Qn = Qn . substr ( 1 ) , ir = 1 ) , Yn + Jn + ( Zn = ( Hn = jU . apply ( this , [ Qn , Dn ] ) ) . reduce ( ( function ( Tn , Un ) { return Tn + Un } ) , 0 ) ) > Un || ir ) { if ( Zn > Un ) { for ( zn = HU . apply ( this , [ Qn , Hn , Un - ( Yn + Jn ) , Un ] ) , Wn . push ( zn . shift ( ) ) , Wn = [ zn . pop ( ) ] ; zn . length ; ) Xn . push ( [ zn . shift ( ) ] ) ; Zn = Hn . slice ( Qn . length - ( Wn [ 0 ] ? Wn [ 0 ] . length : 0 ) ) . reduce ( ( function ( Tn , Un ) { return Tn + Un } ) , 0 ) } else Wn = [ Qn ] ; Xn . push ( Wn ) , Yn = Zn + Kn , Jn = tr } else Wn . push ( Qn ) , Yn += Jn + Zn , Jn = tr } return $n = Kn ? function ( Tn , Un ) { return ( Un ? nr : "" ) + Tn . join ( " " ) } : function ( Tn ) { return Tn . join ( " " ) } , Xn . map ( $n ) } , DU . splitTextToSize = function ( Tn , Un , Dn ) { var Qn , Hn = ( Dn = Dn || { } ) . fontSize || this . internal . getFontSize ( ) , Gn = function ( Tn ) { if ( Tn . widths && Tn . kerning ) return { widths : Tn . widths , kerning : Tn . kerning } ; var Un = this . internal . getFont ( Tn . fontName , Tn . fontStyle ) ; return Un . metadata . Unicode ? { widths : Un . metadata . Unicode . widths || { 0 : 1 } , kerning : Un . metadata . Unicode . kerning || { } } : { font : Un . metadata , fontSize : this . internal . getFontSize ( ) , charSpace : this . internal . getCharSpace ( ) } } . call ( this , Dn ) ; Qn = Array . isArray ( Tn ) ? Tn : String ( Tn ) . split ( /\r?\n/ ) ; var Vn = 1 * this . internal . scaleFactor * Un / Hn ; Gn . textIndent = Dn . textIndent ? 1 * Dn . textIndent * this . internal . scaleFactor / Hn : 0 , Gn . lineIndent = Dn . lineIndent ; var zn , Kn , $n = [ ] ; for ( zn = 0 , Kn = Qn . length ; zn < Kn ; zn ++ ) $n = $n . concat ( GU . apply ( this , [ Qn [ zn ] , Vn , Gn ] ) ) ; return $n } ,
2020-09-11 23:27:47 +00:00
/ * * @ l i c e n s e
jsPDF standard _fonts _metrics plugin
* Copyright ( c ) 2012 Willow Systems Corporation , willow - systems . com
* MIT license .
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
* === === === === === === === === === === === === === === === === === === === === === === ==
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { Tn . _ _fontmetrics _ _ = Tn . _ _fontmetrics _ _ || { } ; for ( var Un = "klmnopqrstuvwxyz" , Dn = { } , Qn = { } , Hn = 0 ; Hn < Un . length ; Hn ++ ) Dn [ Un [ Hn ] ] = "0123456789abcdef" [ Hn ] , Qn [ "0123456789abcdef" [ Hn ] ] = Un [ Hn ] ; var Gn = function a ( Tn ) { return "0x" + parseInt ( Tn , 10 ) . toString ( 16 ) } , Vn = Tn . _ _fontmetrics _ _ . compress = function ( Tn ) { var Un , Dn , Hn , zn , Kn = [ "{" ] ; for ( var $n in Tn ) { if ( Un = Tn [ $n ] , isNaN ( parseInt ( $n , 10 ) ) ? Dn = "'" + $n + "'" : ( $n = parseInt ( $n , 10 ) , Dn = ( Dn = Gn ( $n ) . slice ( 2 ) ) . slice ( 0 , - 1 ) + Qn [ Dn . slice ( - 1 ) ] ) , "number" == typeof Un ) Un < 0 ? ( Hn = Gn ( Un ) . slice ( 3 ) , zn = "-" ) : ( Hn = Gn ( Un ) . slice ( 2 ) , zn = "" ) , Hn = zn + Hn . slice ( 0 , - 1 ) + Qn [ Hn . slice ( - 1 ) ] ; else { if ( "object" != _typeof ( Un ) ) throw new Error ( "Don't know what to do with value type " + _typeof ( Un ) + "." ) ; Hn = Vn ( Un ) } Kn . push ( Dn + Hn ) } return Kn . push ( "}" ) , Kn . join ( "" ) } , zn = Tn . _ _fontmetrics _ _ . uncompress = function ( Tn ) { if ( "string" != typeof Tn ) throw new Error ( "Invalid argument passed to uncompress." ) ; for ( var Un , Qn , Hn , Gn , Vn = { } , zn = 1 , Kn = Vn , $n = [ ] , Wn = "" , Xn = "" , Yn = Tn . length - 1 , Jn = 1 ; Jn < Yn ; Jn += 1 ) "'" == ( Gn = Tn [ Jn ] ) ? Un ? ( Hn = Un . join ( "" ) , Un = void 0 ) : Un = [ ] : Un ? Un . push ( Gn ) : "{" == Gn ? ( $n . push ( [ Kn , Hn ] ) , Kn = { } , Hn = void 0 ) : "}" == Gn ? ( ( Qn = $n . pop ( ) ) [ 0 ] [ Qn [ 1 ] ] = Kn , Hn = void 0 , Kn = Qn [ 0 ] ) : "-" == Gn ? zn = - 1 : void 0 === Hn ? Dn . hasOwnProperty ( Gn ) ? ( Wn += Dn [ Gn ] , Hn = parseInt ( Wn , 16 ) * zn , zn = 1 , Wn = "" ) : Wn += Gn : Dn . hasOwnProperty ( Gn ) ? ( Xn += Dn [ Gn ] , Kn [ Hn ] = parseInt ( Xn , 16 ) * zn , zn = 1 , Hn = void 0 , Xn = "" ) : Xn += Gn ; return Vn } , Kn = { codePages : [ "WinAnsiEncoding" ] , WinAnsiEncoding : zn ( "{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}" ) } , $n = { Unicode : { Courier : Kn , "Courier-Bold" : Kn , "Courier-BoldOblique" : Kn , "Courier-Oblique" : Kn , Helvetica : Kn , "Helvetica-Bold" : Kn , "Helvetica-BoldOblique" : Kn , "Helvetica-Oblique" : Kn , "Times-Roman" : Kn , "Times-Bold" : Kn , "Times-BoldItalic" : Kn , "Times-Italic" : Kn } } , Wn = { Unicode : { "Courier-Oblique" : zn ( "{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}" ) , "Times-BoldItalic" : zn ( "{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}" ) , "Helvetica-Bold" : zn ( " { 'widths' { k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2021-01-03 17:35:23 +00:00
function ( Tn ) { var Un = function e ( Tn ) { for ( var e = Tn . length , Un = new Uint8Array ( e ) , Dn = 0 ; Dn < e ; Dn ++ ) Un [ Dn ] = Tn . charCodeAt ( Dn ) ; return Un } ; Tn . API . events . push ( [ "addFont" , function ( Dn ) { var Qn = void 0 , Hn = Dn . font , Gn = Dn . instance ; if ( ! Hn . isStandardFont ) { if ( void 0 === Gn ) throw new Error ( "Font does not exist in vFS, import fonts or remove declaration doc.addFont('" + Hn . postScriptName + "')." ) ; if ( "string" != typeof ( Qn = ! 1 === Gn . existsFileInVFS ( Hn . postScriptName ) ? Gn . loadFile ( Hn . postScriptName ) : Gn . getFileFromVFS ( Hn . postScriptName ) ) ) throw new Error ( "Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('" + Hn . postScriptName + "')." ) ; ! function ( Dn , Qn ) { Qn = /^\x00\x01\x00\x00/ . test ( Qn ) ? Un ( Qn ) : Un ( UF ( Qn ) ) , Dn . metadata = Tn . API . TTFFont . open ( Qn ) , Dn . metadata . Unicode = Dn . metadata . Unicode || { encoding : { } , kerning : { } , widths : [ ] } , Dn . metadata . glyIdsUsed = [ 0 ] } ( Hn , Qn ) } } ] ) } ( g ) ,
2020-09-11 23:27:47 +00:00
/ * * @ l i c e n s e
* Copyright ( c ) 2012 Willow Systems Corporation , willow - systems . com
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
* === === === === === === === === === === === === === === === === === === === === === === ==
* /
2021-01-03 17:35:23 +00:00
function ( Tn ) { function r ( ) { return ( OF . canvg ? Promise . resolve ( OF . canvg ) : Promise . resolve ( ) . then ( ( function ( ) { return PE } ) ) ) . catch ( ( function ( Tn ) { return Promise . reject ( new Error ( "Could not load dompurify: " + Tn ) ) } ) ) . then ( ( function ( Tn ) { return Tn . default ? Tn . default : Tn } ) ) } g . API . addSvgAsImage = function ( Tn , Un , Dn , Qn , Hn , Gn , Vn , zn ) { if ( isNaN ( Un ) || isNaN ( Dn ) ) throw FF . error ( "jsPDF.addSvgAsImage: Invalid coordinates" , arguments ) , new Error ( "Invalid coordinates passed to jsPDF.addSvgAsImage" ) ; if ( isNaN ( Qn ) || isNaN ( Hn ) ) throw FF . error ( "jsPDF.addSvgAsImage: Invalid measurements" , arguments ) , new Error ( "Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage" ) ; var Kn = document . createElement ( "canvas" ) ; Kn . width = Qn , Kn . height = Hn ; var $n = Kn . getContext ( "2d" ) ; $n . fillStyle = "#fff" , $n . fillRect ( 0 , 0 , Kn . width , Kn . height ) ; var Wn = { ignoreMouse : ! 0 , ignoreAnimation : ! 0 , ignoreDimensions : ! 0 } , Xn = this ; return r ( ) . then ( ( function ( Un ) { return Un . Canvg . fromString ( $n , Tn , Wn ) } ) , ( function ( ) { return Promise . reject ( new Error ( "Could not load canvg." ) ) } ) ) . then ( ( function ( Tn ) { return Tn . render ( Wn ) } ) ) . then ( ( function ( ) { Xn . addImage ( Kn . toDataURL ( "image/jpeg" , 1 ) , Un , Dn , Qn , Hn , Vn , zn ) } ) ) } } ( ) , g . API . putTotalPages = function ( Tn ) { var Un , Dn = 0 ; parseInt ( this . internal . getFont ( ) . id . substr ( 1 ) , 10 ) < 15 ? ( Un = new RegExp ( Tn , "g" ) , Dn = this . internal . getNumberOfPages ( ) ) : ( Un = new RegExp ( this . pdfEscape16 ( Tn , this . internal . getFont ( ) ) , "g" ) , Dn = this . pdfEscape16 ( this . internal . getNumberOfPages ( ) + "" , this . internal . getFont ( ) ) ) ; for ( var Qn = 1 ; Qn <= this . internal . getNumberOfPages ( ) ; Qn ++ ) for ( var Hn = 0 ; Hn < this . internal . pages [ Qn ] . length ; Hn ++ ) this . internal . pages [ Qn ] [ Hn ] = this . internal . pages [ Qn ] [ Hn ] . replace ( Un , Dn ) ; return this } , g . API . viewerPreferences = function ( Tn , Un ) { var Dn ; Tn = Tn || { } , Un = Un || ! 1 ; var Qn , Hn , Gn , Vn = { HideToolbar : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.3 } , HideMenubar : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.3 } , HideWindowUI : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.3 } , FitWindow : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.3 } , CenterWindow : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.3 } , DisplayDocTitle : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.4 } , NonFullScreenPageMode : { defaultValue : "UseNone" , value : "UseNone" , type : "name" , explicitSet : ! 1 , valueSet : [ "UseNone" , "UseOutlines" , "UseThumbs" , "UseOC" ] , pdfVersion : 1.3 } , Direction : { defaultValue : "L2R" , value : "L2R" , type : "name" , explicitSet : ! 1 , valueSet : [ "L2R" , "R2L" ] , pdfVersion : 1.3 } , ViewArea : { defaultValue : "CropBox" , value : "CropBox" , type : "name" , explicitSet : ! 1 , valueSet : [ "MediaBox" , "CropBox" , "TrimBox" , "BleedBox" , "ArtBox" ] , pdfVersion : 1.4 } , ViewClip : { defaultValue : "CropBox" , value : "CropBox" , type : "name" , explicitSet : ! 1 , valueSet : [ "MediaBox" , "CropBox" , "TrimBox" , "BleedBox" , "ArtBox" ] , pdfVersion : 1.4 } , PrintArea : { defaultValue : "CropBox" , value : "CropBox" , type : "name" , explicitSet : ! 1 , valueSet : [ "MediaBox" , "CropBox" , "TrimBox" , "BleedBox" , "ArtBox" ] , pdfVersion : 1.4 } , PrintClip : { defaultValue : "CropBox" , value : "CropBox" , type : "name" , explicitSet : ! 1 , valueSet : [ "MediaBox" , "CropBox" , "TrimBox" , "BleedBox" , "ArtBox" ] , pdfVersion : 1.4 } , PrintScaling : { defaultValue : "AppDefault" , value : "AppDefault" , type : "name" , explicitSet : ! 1 , valueSet : [ "AppDefault" , "None" ] , pdfVersion : 1.6 } , Duplex : { defaultValue : "" , value : "none" , type : "name" , explicitSet : ! 1 , valueSet : [ "Simplex" , "DuplexFlipShortEdge" , "DuplexFlipLongEdge" , "none" ] , pdfVersion : 1.7 } , PickTrayByPDFSize : { defaultValue : ! 1 , value : ! 1 , type : "boolean" , explicitSet : ! 1 , valueSet : [ ! 0 , ! 1 ] , pdfVersion : 1.7 } , PrintPageRange : { defaultValue : "" , value : "" , type : "array" , explicitSet : ! 1 , valueSet : null , pdfVersion : 1.7 } , NumCopies : { defaultValue : 1 , value : 1 , type : "integer" , explicitSet : ! 1 , valueSet : null , pdfVersion : 1.7 } } , zn = Object . keys ( Vn ) , Kn = [ ] , $n = 0 , Wn = 0 , Xn = 0 ; function f ( Tn , Un ) { var Dn , Qn = ! 1 ; for ( Dn = 0 ; Dn < Tn . length ; Dn += 1 ) Tn [ Dn ] === Un && ( Qn = ! 0 ) ; return Qn } if ( void 0 === this . internal . viewerpreferences && ( this . internal . viewerpreferences = { } , this . internal . viewerpreferences . configuration = JSON . parse ( JSON . stringify ( Vn ) ) , this . int
2020-09-11 23:27:47 +00:00
/ * * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* @ license
* jsPDF XMP metadata plugin
* Copyright ( c ) 2016 Jussi Utunen , u - jussi @ suomi24 . fi
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files ( the
* "Software" ) , to deal in the Software without restriction , including
* without limitation the rights to use , copy , modify , merge , publish ,
* distribute , sublicense , and / or sell copies of the Software , and to
* permit persons to whom the Software is furnished to do so , subject to
* the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION
* OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
* === === === === === === === === === === === === === === === === === === === === === === ==
* /
2021-01-01 23:13:07 +00:00
function ( Tn ) { var Un = function e ( ) { var Tn = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="' + this . internal . _ _metadata _ _ . namespaceuri + '"><jspdf:metadata>' , e = unescape ( encodeURIComponent ( '<x:xmpmeta xmlns:x="adobe:ns:meta/">' ) ) , Un = unescape ( encodeURIComponent ( Tn ) ) , Dn = unescape ( encodeURIComponent ( this . internal . _ _metadata _ _ . metadata ) ) , Qn = unescape ( encodeURIComponent ( "</jspdf:metadata></rdf:Description></rdf:RDF>" ) ) , Hn = unescape ( encodeURIComponent ( "</x:xmpmeta>" ) ) , Gn = Un . length + Dn . length + Qn . length + e . length + Hn . length ; this . internal . _ _metadata _ _ . metadata _object _number = this . internal . newObject ( ) , this . internal . write ( "<< /Type /Metadata /Subtype /XML /Length " + Gn + " >>" ) , this . internal . write ( "stream" ) , this . internal . write ( e + Un + Dn + Qn + Hn ) , this . internal . write ( "endstream" ) , this . internal . write ( "endobj" ) } , Dn = function n ( ) { this . internal . _ _metadata _ _ . metadata _object _number && this . internal . write ( "/Metadata " + this . internal . _ _metadata _ _ . metadata _object _number + " 0 R" ) } ; Tn . addMetadata = function ( Tn , Qn ) { return void 0 === this . internal . _ _metadata _ _ && ( this . internal . _ _metadata _ _ = { metadata : Tn , namespaceuri : Qn || "http://jspdf.default.namespaceuri/" } , this . internal . events . subscribe ( "putCatalog" , Dn ) , this . internal . events . subscribe ( "postPutResources" , Un ) ) , this } } ( g . API ) , function ( Tn ) { var Un = Tn . API , Dn = Un . pdfEscape16 = function ( Tn , Un ) { for ( var Dn , Qn = Un . metadata . Unicode . widths , Hn = [ "" , "0" , "00" , "000" , "0000" ] , Gn = [ "" ] , Vn = 0 , zn = Tn . length ; Vn < zn ; ++ Vn ) { if ( Dn = Un . metadata . characterToGlyph ( Tn . charCodeAt ( Vn ) ) , Un . metadata . glyIdsUsed . push ( Dn ) , Un . metadata . toUnicode [ Dn ] = Tn . charCodeAt ( Vn ) , - 1 == Qn . indexOf ( Dn ) && ( Qn . push ( Dn ) , Qn . push ( [ parseInt ( Un . metadata . widthOfGlyph ( Dn ) , 10 ) ] ) ) , "0" == Dn ) return Gn . join ( "" ) ; Dn = Dn . toString ( 16 ) , Gn . push ( Hn [ 4 - Dn . length ] , Dn ) } return Gn . join ( "" ) } , Qn = function r ( Tn ) { var Un , Dn , r , Qn , Hn , Gn , Vn ; for ( Hn = "/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange" , r = [ ] , Gn = 0 , Vn = ( Dn = Object . keys ( Tn ) . sort ( ( function ( Tn , Un ) { return Tn - Un } ) ) ) . length ; Gn < Vn ; Gn ++ ) Un = Dn [ Gn ] , r . length >= 100 && ( Hn += "\n" + r . length + " beginbfchar\n" + r . join ( "\n" ) + "\nendbfchar" , r = [ ] ) , void 0 !== Tn [ Un ] && null !== Tn [ Un ] && "function" == typeof Tn [ Un ] . toString && ( Qn = ( "0000" + Tn [ Un ] . toString ( 16 ) ) . slice ( - 4 ) , Un = ( "0000" + ( + Un ) . toString ( 16 ) ) . slice ( - 4 ) , r . push ( "<" + Un + "><" + Qn + ">" ) ) ; return r . length && ( Hn += "\n" + r . length + " beginbfchar\n" + r . join ( "\n" ) + "\nendbfchar\n" ) , Hn + "endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend" } ; Un . events . push ( [ "putFont" , function ( Un ) { ! function ( Un ) { var Dn = Un . font , Hn = Un . out , Gn = Un . newObject , Vn = Un . putStream , zn = Un . pdfEscapeWithNeededParanthesis ; if ( Dn . metadata instanceof Tn . API . TTFFont && "Identity-H" === Dn . encoding ) { for ( var Kn = Dn . metadata . Unicode . widths , $n = Dn . metadata . subset . encode ( Dn . metadata . glyIdsUsed , 1 ) , Wn = "" , Xn = 0 ; Xn < $n . length ; Xn ++ ) Wn += String . fromCharCode ( $n [ Xn ] ) ; var Yn = Gn ( ) ; Vn ( { data : Wn , addLength1 : ! 0 } ) , Hn ( "endobj" ) ; var Jn = Gn ( ) ; Vn ( { data : Qn ( Dn . metadata . toUnicode ) , addLength1 : ! 0 } ) , Hn ( "endobj" ) ; var Zn = Gn ( ) ; Hn ( "<<" ) , Hn ( "/Type /FontDescriptor" ) , Hn ( "/FontName /" + zn ( Dn . fontName ) ) , Hn ( "/FontFile2 " + Yn + " 0 R" ) , Hn ( "/FontBBox " + Tn . API . PDFObject . convert ( Dn . metadata . bbox ) ) , Hn ( "/Flags " + Dn . metadata . flags ) , Hn ( "/StemV " + Dn . metadata . stemV ) , Hn ( "/ItalicAngle " + Dn . metadata . italicAngle ) , Hn ( "/Ascent " + Dn . metadata . ascender ) , Hn ( "/Descent " + Dn . metadata . decender ) , Hn ( "/CapHeight " + Dn . metadata . capHeight ) , Hn ( ">>" ) , Hn ( "endobj" ) ; var er = Gn ( ) ; Hn ( "<<" ) , Hn ( "/Type /Font" ) , Hn ( "/BaseFont /" + zn ( Dn . fontName ) ) , Hn ( "/FontDescriptor " + Zn + " 0 R" ) , Hn ( "/W " + Tn . API . PDFObject . convert ( Kn ) ) , Hn ( "/CIDToGIDMap /Identity" ) , Hn ( "/DW 1000" ) , Hn ( "/Subtype /CIDFontType2" ) , Hn ( "/CIDSystemInfo" ) , Hn ( "<<" ) , Hn ( "/Supplement 0" ) , Hn ( "/Registry (Adobe)" ) , Hn ( "/Ordering (" + Dn . encoding + ")" ) , Hn ( ">>" ) , Hn ( ">>" ) , Hn ( "endobj" ) , Dn . objectNumber = Gn ( ) , Hn ( "<<" ) , Hn ( "/Type /Font" ) , Hn ( "/Subtype /Type0" ) , Hn ( "/ToUnicode " + Jn + " 0 R" ) , Hn ( "/BaseFont /" + zn ( Dn . fontName ) ) , Hn ( "/Encoding /" + Dn . encoding ) , Hn ( "/DescendantFonts [" + er + " 0 R]" ) , Hn ( ">>" ) , Hn ( "endobj" ) , Dn . i
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License .
* http : //opensource.org/licenses/mit-license
* /
2020-12-19 21:53:45 +00:00
function ( Tn ) { var Un = function e ( ) { return void 0 === this . internal . vFS && ( this . internal . vFS = { } ) , ! 0 } ; Tn . existsFileInVFS = function ( Tn ) { return Un . call ( this ) , void 0 !== this . internal . vFS [ Tn ] } , Tn . addFileToVFS = function ( Tn , Dn ) { return Un . call ( this ) , this . internal . vFS [ Tn ] = Dn , this } , Tn . getFileFromVFS = function ( Tn ) { return Un . call ( this ) , void 0 !== this . internal . vFS [ Tn ] ? this . internal . vFS [ Tn ] : null } } ( g . API ) ,
2020-09-11 23:27:47 +00:00
/ * *
* @ license
* Unicode Bidi Engine based on the work of Alex Shensis ( @ asthensis )
* MIT License
* /
2021-01-03 17:35:23 +00:00
function ( Tn ) { Tn . _ _bidiEngine _ _ = Tn . prototype . _ _bidiEngine _ _ = function ( Tn ) { var Dn , Qn , Hn , Gn , Vn , zn , Kn , $n = Un , Wn = [ [ 0 , 3 , 0 , 1 , 0 , 0 , 0 ] , [ 0 , 3 , 0 , 1 , 2 , 2 , 0 ] , [ 0 , 3 , 0 , 17 , 2 , 0 , 1 ] , [ 0 , 3 , 5 , 5 , 4 , 1 , 0 ] , [ 0 , 3 , 21 , 21 , 4 , 0 , 1 ] , [ 0 , 3 , 5 , 5 , 4 , 2 , 0 ] ] , Xn = [ [ 2 , 0 , 1 , 1 , 0 , 1 , 0 ] , [ 2 , 0 , 1 , 1 , 0 , 2 , 0 ] , [ 2 , 0 , 2 , 1 , 3 , 2 , 0 ] , [ 2 , 0 , 2 , 33 , 3 , 1 , 1 ] ] , Yn = { L : 0 , R : 1 , EN : 2 , AN : 3 , N : 4 , B : 5 , S : 6 } , Jn = { 0 : 0 , 5 : 1 , 6 : 2 , 7 : 3 , 32 : 4 , 251 : 5 , 254 : 6 , 255 : 7 } , Zn = [ "(" , ")" , "(" , "<" , ">" , "<" , "[" , "]" , "[" , "{" , "}" , "{" , "«" , "»" , "«" , "‹ " , "› " , "‹ " , "⁅" , "⁆" , "⁅" , "⁽" , "⁾" , "⁽" , "₍" , "₎" , "₍" , "≤" , "≥" , "≤" , "〈" , "〉" , "〈" , "﹙" , "﹚" , "﹙" , "﹛" , "﹜" , "﹛" , "﹝" , "﹞" , "﹝" , "﹤" , "﹥" , "﹤" ] , er = new RegExp ( /^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/ ) , tr = ! 1 , nr = 0 ; this . _ _bidiEngine _ _ = { } ; var rr = function b ( Tn ) { var Un = Tn . charCodeAt ( ) , Dn = Un >> 8 , Qn = Jn [ Dn ] ; return void 0 !== Qn ? $n [ 256 * Qn + ( 255 & Un ) ] : 252 === Dn || 253 === Dn ? "AL" : er . test ( Dn ) ? "L" : 8 === Dn ? "R" : "N" } , ir = function y ( Tn ) { for ( var Un , Dn = 0 ; Dn < Tn . length ; Dn ++ ) { if ( "L" === ( Un = rr ( Tn . charAt ( Dn ) ) ) ) return ! 1 ; if ( "R" === Un ) return ! 0 } return ! 1 } , or = function w ( Tn , Un , Vn , zn ) { var Kn , $n , Wn , Xn , Yn = Un [ zn ] ; switch ( Yn ) { case "L" : case "R" : tr = ! 1 ; break ; case "N" : case "AN" : break ; case "EN" : tr && ( Yn = "AN" ) ; break ; case "AL" : tr = ! 0 , Yn = "R" ; break ; case "WS" : Yn = "N" ; break ; case "CS" : zn < 1 || zn + 1 >= Un . length || "EN" !== ( Kn = Vn [ zn - 1 ] ) && "AN" !== Kn || "EN" !== ( $n = Un [ zn + 1 ] ) && "AN" !== $n ? Yn = "N" : tr && ( $n = "AN" ) , Yn = $n === Kn ? $n : "N" ; break ; case "ES" : Yn = "EN" === ( Kn = zn > 0 ? Vn [ zn - 1 ] : "B" ) && zn + 1 < Un . length && "EN" === Un [ zn + 1 ] ? "EN" : "N" ; break ; case "ET" : if ( zn > 0 && "EN" === Vn [ zn - 1 ] ) { Yn = "EN" ; break } if ( tr ) { Yn = "N" ; break } for ( Wn = zn + 1 , Xn = Un . length ; Wn < Xn && "ET" === Un [ Wn ] ; ) Wn ++ ; Yn = Wn < Xn && "EN" === Un [ Wn ] ? "EN" : "N" ; break ; case "NSM" : if ( Hn && ! Gn ) { for ( Xn = Un . length , Wn = zn + 1 ; Wn < Xn && "NSM" === Un [ Wn ] ; ) Wn ++ ; if ( Wn < Xn ) { var Jn = Tn [ zn ] , Zn = Jn >= 1425 && Jn <= 2303 || 64286 === Jn ; if ( Kn = Un [ Wn ] , Zn && ( "R" === Kn || "AL" === Kn ) ) { Yn = "R" ; break } } } Yn = zn < 1 || "B" === ( Kn = Un [ zn - 1 ] ) ? "N" : Vn [ zn - 1 ] ; break ; case "B" : tr = ! 1 , Dn = ! 0 , Yn = nr ; break ; case "S" : Qn = ! 0 , Yn = "N" ; break ; case "LRE" : case "RLE" : case "LRO" : case "RLO" : case "PDF" : tr = ! 1 ; break ; case "BN" : Yn = "N" } return Yn } , ar = function N ( Tn , Un , Dn ) { var Qn = Tn . split ( "" ) ; return Dn && sr ( Qn , Dn , { hiLevel : nr } ) , Qn . reverse ( ) , Un && Un . reverse ( ) , Qn . join ( "" ) } , sr = function L ( Tn , Un , Hn ) { var Gn , Vn , zn , Kn , $n , Jn = - 1 , Zn = Tn . length , er = 0 , ir = [ ] , ar = nr ? Xn : Wn , L = [ ] ; for ( tr = ! 1 , Dn = ! 1 , Qn = ! 1 , Vn = 0 ; Vn < Zn ; Vn ++ ) L [ Vn ] = rr ( Tn [ Vn ] ) ; for ( zn = 0 ; zn < Zn ; zn ++ ) { if ( $n = er , ir [ zn ] = or ( Tn , L , ir , zn ) , Gn = 240 & ( er = ar [ $n ] [ Yn [ ir [ zn ] ] ] ) , er &= 15 , Un [ zn ] = Kn = ar [ er ] [ 5 ] , Gn > 0 ) if ( 16 === Gn ) { for ( Vn = Jn ; Vn < zn ; Vn ++ ) Un [ Vn ] = 1 ; Jn = - 1 } else Jn = - 1 ; if ( ar [ er ] [ 6 ] ) - 1 === Jn && ( Jn = zn ) ; else if ( Jn > - 1 ) { for ( Vn = Jn ; Vn < zn ; Vn ++ ) Un [ Vn ] = Kn ; Jn = - 1 } "B" === L [ zn ] && ( Un [ zn ] = 0 ) , Hn . hiLevel |= Kn } Qn && function ( Tn , Un , Dn ) { for ( var Qn = 0 ; Qn < Dn ; Qn ++ ) if ( "S" === Tn [ Qn ] ) { Un [ Qn ] = nr ; for ( var Hn = Qn - 1 ; Hn >= 0 && "WS" === Tn [ Hn ] ; Hn -- ) Un [ Hn ] = nr } } ( L , Un , Zn ) } , lr = function x ( Tn , Un , Qn , Hn , Gn ) { if ( ! ( Gn . hiLevel < Tn ) ) { if ( 1 === Tn && 1 === nr && ! Dn ) return Un . reverse ( ) , void ( Qn && Qn . reverse ( ) ) ; for ( var Vn , zn , Kn , $n , Wn = Un . length , Xn = 0 ; Xn < Wn ; ) { if ( Hn [ Xn ] >= Tn ) { for ( Kn = Xn + 1 ; Kn < Wn && Hn [ Kn ] >= Tn ; ) Kn ++ ; for ( $n = Xn , zn = Kn - 1 ; $n < zn ; $n ++ , zn -- ) Vn = Un [ $n ] , Un [ $n ] = Un [ zn ] , Un [ zn ] = Vn , Qn && ( Vn = Qn [ $n ] , Qn [ $n ] = Qn [ zn ] , Qn [ zn ] = Vn ) ; Xn = Kn } Xn ++ } } } , cr = function A ( Tn , Un , Dn ) { var Qn = Tn . split ( "" ) , Hn = { hiLevel : nr } ; return Dn || ( Dn = [ ] ) , sr ( Qn , Dn , Hn ) , function ( Tn , Un , Dn ) { if ( 0 !== Dn . hiLevel && Kn ) for ( var Qn , Hn = 0 ; Hn < Tn . length ; Hn ++ ) 1 === Un [ Hn ] && ( Qn = Zn . indexOf ( Tn [ Hn ] ) ) >= 0 && ( Tn [ Hn ] = Zn [ Qn + 1 ] ) } ( Qn , Dn , Hn ) , lr ( 2 , Qn , Un , Dn , Hn ) , lr ( 1 , Qn , Un , Dn , Hn ) , Qn . join ( "" ) } ; return this . _ _bidiEngine _ _ . doBidiReorder = function ( Tn , Un , Dn ) { if ( function ( Tn , Un ) { if ( Un ) for ( var Dn = 0 ; Dn < Tn . length ; Dn ++ ) Un [ Dn ] = Dn ; void 0 === Gn && ( Gn = ir ( Tn ) ) , void 0 === zn && ( zn = ir ( Tn ) ) } ( Tn , Un ) , Hn || ! Vn || zn ) if ( Hn && Vn && Gn ^ zn ) nr = Gn ? 1 : 0 , Tn = ar ( Tn , Un , Dn ) ; else if ( ! Hn && Vn && zn ) nr = Gn ? 1 : 0 , Tn = cr ( Tn , Un , Dn ) , Tn = ar ( Tn , Un ) ; else if ( ! Hn || Gn || Vn || zn ) { if ( Hn && ! Vn && Gn ^ zn ) Tn = ar ( Tn , Un ) , Gn ? ( nr = 0 , Tn = cr ( Tn , Un , Dn ) ) : ( nr = 1 , Tn = cr ( Tn , Un , Dn ) , Tn = ar ( Tn , Un ) ) ; else if ( Hn && Gn && ! Vn && zn ) nr = 1 , Tn = cr ( Tn , Un , Dn ) , Tn = ar ( Tn , Un ) ; else if ( ! Hn && ! Vn && Gn ^ zn ) { var Qn = Kn ; Gn ? ( nr = 1 , Tn = cr ( Tn , Un , Dn ) , nr = 0 , Kn = ! 1 , Tn = cr ( Tn , Un , Dn ) , Kn = Qn ) : ( nr = 0 , Tn = cr ( Tn , Un , Dn ) , Tn = ar ( Tn , Un ) , nr = 1 , Kn = ! 1 , Tn = cr ( Tn , Un , Dn ) , Kn = Qn , Tn = ar ( Tn , Un ) ) } } else nr = 0 , Tn = cr ( Tn , Un , Dn ) ; else nr = Gn ? 1 : 0 , Tn = cr ( Tn , Un , Dn ) ; return Tn } , this . _ _bidiEngine _ _ . setOptions = function ( Tn ) { Tn && (
2020-09-11 23:27:47 +00:00
/*! https://mths.be/cssesc v3.0.0 by @mathias */
2021-01-03 17:35:23 +00:00
var gM = { } . hasOwnProperty , fM = /[ -,\.\/:-@\[-\^`\{-~]/ , AM = /[ -,\.\/:-@\[\]\^`\{-~]/ , mM = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g , vM = function cssesc ( Tn , Un ) { "single" != ( Un = function merge ( Tn , Un ) { if ( ! Tn ) return Un ; var Dn = { } ; for ( var Qn in Un ) Dn [ Qn ] = gM . call ( Tn , Qn ) ? Tn [ Qn ] : Un [ Qn ] ; return Dn } ( Un , cssesc . options ) ) . quotes && "double" != Un . quotes && ( Un . quotes = "single" ) ; for ( var Dn = "double" == Un . quotes ? '"' : "'" , Qn = Un . isIdentifier , Hn = Tn . charAt ( 0 ) , Gn = "" , Vn = 0 , zn = Tn . length ; Vn < zn ; ) { var Kn = Tn . charAt ( Vn ++ ) , $n = Kn . charCodeAt ( ) , Wn = void 0 ; if ( $n < 32 || $n > 126 ) { if ( $n >= 55296 && $n <= 56319 && Vn < zn ) { var Xn = Tn . charCodeAt ( Vn ++ ) ; 56320 == ( 64512 & Xn ) ? $n = ( ( 1023 & $n ) << 10 ) + ( 1023 & Xn ) + 65536 : Vn -- } Wn = "\\" + $n . toString ( 16 ) . toUpperCase ( ) + " " } else Wn = Un . escapeEverything ? fM . test ( Kn ) ? "\\" + Kn : "\\" + $n . toString ( 16 ) . toUpperCase ( ) + " " : /[\t\n\f\r\x0B]/ . test ( Kn ) ? "\\" + $n . toString ( 16 ) . toUpperCase ( ) + " " : "\\" == Kn || ! Qn && ( '"' == Kn && Dn == Kn || "'" == Kn && Dn == Kn ) || Qn && AM . test ( Kn ) ? "\\" + Kn : Kn ; Gn += Wn } return Qn && ( /^-[-\d]/ . test ( Gn ) ? Gn = "\\-" + Gn . slice ( 1 ) : /\d/ . test ( Hn ) && ( Gn = "\\3" + Hn + " " + Gn . slice ( 1 ) ) ) , Gn = Gn . replace ( mM , ( function ( Tn , Un , Dn ) { return Un && Un . length % 2 ? Tn : ( Un || "" ) + Dn } ) ) , ! Qn && Un . wrap ? Dn + Gn + Dn : Gn } ; vM . options = { escapeEverything : ! 1 , isIdentifier : ! 1 , quotes : "single" , wrap : ! 1 } , vM . version = "3.0.0" ; var yM = vM , _M = /[a-z0-9_-]/i , bM = /[\s\t]/ , wM = function parse ( Tn ) { for ( var Un , Dn , Qn = ! 0 , Hn = 0 , Gn = "" , Vn = 0 , zn = [ ] ; ; ) { if ( Dn = Tn [ Vn ] , 0 === Hn ) { if ( ! Dn && Qn ) break ; if ( ! Dn && ! Qn ) throw new Error ( "Parse error" ) ; if ( '"' === Dn || "'" === Dn ) Un = Dn , Hn = 1 , Qn = ! 1 ; else if ( bM . test ( Dn ) ) ; else { if ( ! _M . test ( Dn ) ) throw new Error ( "Parse error" ) ; Hn = 3 , Qn = ! 1 , Vn -- } } else if ( 1 === Hn ) { if ( ! Dn ) throw new Error ( "Parse Error" ) ; "\\" === Dn ? Hn = 2 : Dn === Un ? ( zn . push ( Gn ) , Gn = "" , Hn = 4 ) : Gn += Dn } else if ( 2 === Hn ) { if ( Dn !== Un && "\\" !== Dn ) throw new Error ( "Parse error" ) ; Gn += Dn , Hn = 1 } else if ( 3 === Hn ) { if ( ! Dn ) { zn . push ( Gn ) ; break } if ( _M . test ( Dn ) ) Gn += Dn ; else if ( "," === Dn ) zn . push ( Gn ) , Gn = "" , Hn = 0 ; else { if ( ! bM . test ( Dn ) ) throw new Error ( "Parse error" ) ; Hn = 5 } } else if ( 5 === Hn ) { if ( ! Dn ) { zn . push ( Gn ) ; break } if ( _M . test ( Dn ) ) Gn += " " + Dn , Hn = 3 ; else if ( "," === Dn ) zn . push ( Gn ) , Gn = "" , Hn = 0 ; else if ( ! bM . test ( Dn ) ) throw new Error ( "Parse error" ) } else if ( 4 === Hn ) { if ( ! Dn ) break ; if ( "," === Dn ) Hn = 0 ; else if ( ! bM . test ( Dn ) ) throw new Error ( "Parse error" ) } Vn ++ } return zn } , xM = { a : 7 , c : 6 , h : 1 , l : 2 , m : 2 , r : 4 , q : 4 , s : 4 , t : 2 , v : 1 , z : 0 } , SM = [ 5760 , 6158 , 8192 , 8193 , 8194 , 8195 , 8196 , 8197 , 8198 , 8199 , 8200 , 8201 , 8202 , 8239 , 8287 , 12288 , 65279 ] ; function isDigit ( Tn ) { return Tn >= 48 && Tn <= 57 } function State ( Tn ) { this . index = 0 , this . path = Tn , this . max = Tn . length , this . result = [ ] , this . param = 0 , this . err = "" , this . segmentStart = 0 , this . data = [ ] } function skipSpaces ( Tn ) { for ( ; Tn . index < Tn . max && ( 10 === ( Un = Tn . path . charCodeAt ( Tn . index ) ) || 13 === Un || 8232 === Un || 8233 === Un || 32 === Un || 9 === Un || 11 === Un || 12 === Un || 160 === Un || Un >= 5760 && SM . indexOf ( Un ) >= 0 ) ; ) Tn . index ++ ; var Un } function scanFlag ( Tn ) { var Un = Tn . path . charCodeAt ( Tn . index ) ; return 48 === Un ? ( Tn . param = 0 , void Tn . index ++ ) : 49 === Un ? ( Tn . param = 1 , void Tn . index ++ ) : void ( Tn . err = "SvgPath: arc flag can be 0 or 1 only (at pos " + Tn . index + ")" ) } function scanParam ( Tn ) { var Un , Dn = Tn . index , Qn = Dn , Hn = Tn . max , Gn = ! 1 , Vn = ! 1 , zn = ! 1 , Kn = ! 1 ; if ( Qn >= Hn ) Tn . err = "SvgPath: missed param (at pos " + Qn + ")" ; else if ( 43 !== ( Un = Tn . path . charCodeAt ( Qn ) ) && 45 !== Un || ( Un = ++ Qn < Hn ? Tn . path . charCodeAt ( Qn ) : 0 ) , isDigit ( Un ) || 46 === Un ) { if ( 46 !== Un ) { if ( Gn = 48 === Un , Un = ++ Qn < Hn ? Tn . path . charCodeAt ( Qn ) : 0 , Gn && Qn < Hn && Un && isDigit ( Un ) ) return void ( Tn . err = "SvgPath: numbers started with `0` such as `09` are illegal (at pos " + Dn + ")" ) ; for ( ; Qn < Hn && isDigit ( Tn . path . charCodeAt ( Qn ) ) ; ) Qn ++ , Vn = ! 0 ; Un = Qn < Hn ? Tn . path . charCodeAt ( Qn ) : 0 } if ( 46 === Un ) { for ( Kn = ! 0 , Qn ++ ; isDigit ( Tn . path . charCodeAt ( Qn ) ) ; ) Qn ++ , zn = ! 0 ; Un = Qn < Hn ? Tn . path . charCodeAt ( Qn ) : 0 } if ( 101 === Un || 69 === Un ) { if ( Kn && ! Vn && ! zn ) return void ( Tn . err = "SvgPath: invalid float exponent (at pos " + Qn + ")" ) ; if ( 43 !== ( Un = ++ Qn < Hn ? Tn . path . charCodeAt ( Qn ) : 0 ) && 45 !== Un || Qn ++ , ! ( Qn < Hn && isDigit ( Tn . path . charCodeAt ( Qn ) ) ) ) return void ( Tn . err = "SvgPath: invalid float exponent (at pos " + Qn + ")" ) ; for ( ; Qn < Hn && isDigit ( Tn . path . charCodeAt ( Qn ) ) ; ) Qn ++ } Tn . index = Qn , Tn . param = parseFloat ( Tn . path . slice ( Dn , Qn ) ) + 0 } else Tn . err = "SvgPath: param should start with 0..9 or `.` (at pos " + Qn + ")" } function finalizeSegment ( Tn ) { var Un , Dn ; Dn = ( Un = Tn . path [ Tn . segmentStart ] ) . toLowerCase (
2020-09-11 23:27:47 +00:00
/ * *
* Localizing script for SVG - edit UI .
* @ module locale
* @ license MIT
*
* @ copyright 2010 Narendra Sisodya
* @ copyright 2010 Alexis Deveria
*
2021-01-03 17:35:23 +00:00
* / _ e x p o r t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : s t r i n g H t m l F o r c e d ( " b o l d " ) } , { b o l d : f u n c t i o n b o l d ( ) { r e t u r n c r e a t e H t m l ( t h i s , " b " , " " , " " ) } } ) ; v a r _ D = f u n c t i o n s e t S t r i n g s ( T n , U n , D n ) { v a r Q n = d o c u m e n t . g e t E l e m e n t B y I d ( " s v g _ e d i t o r " ) . p a r e n t N o d e ; O b j e c t . e n t r i e s ( U n ) . f o r E a c h ( ( f u n c t i o n ( U n ) { v a r H n = _ s l i c e d T o A r r a y ( U n , 2 ) , G n = H n [ 0 ] , V n = H n [ 1 ] ; i f ( V n ) { D n & & ( G n = " # " + G n ) ; v a r z n = Q n . q u e r y S e l e c t o r A l l ( G n ) ; i f ( z n . l e n g t h ) { v a r K n = z n [ 0 ] ; s w i t c h ( T n ) { c a s e " a r i a - l a b e l " : K n . s e t A t t r i b u t e ( " a r i a - l a b e l " , V n ) ; b r e a k ; c a s e " c o n t e n t " : _ t o C o n s u m a b l e A r r a y ( z n ) . s o m e ( ( f u n c t i o n ( T n ) { r e t u r n ! ( 3 ! = = T n . n o d e T y p e | | ! T n . t e x t C o n t e n t . t r i m ( ) ) & & ( T n . t e x t C o n t e n t = V n , ! 0 ) } ) ) ; b r e a k ; c a s e " t i t l e " : K n . s e t A t t r i b u t e ( " t i t l e " , V n ) } } e l s e c o n s o l e . l o g ( " M i s s i n g e l e m e n t f o r l o c a l i z a t i o n : " + G n ) } e l s e c o n s o l e . l o g ( G n ) } ) ) } , b D = f u n c t i o n r e a d L a n g ( T n ) { v a r U n = T n . t o o l s , D n = T n . p r o p e r t i e s , Q n = T n . c o n f i g , H n = T n . l a y e r s , G n = T n . c o m m o n , V n = T n . u i ; _ D ( " c o n t e n t " , { c u r v e _ s e g m e n t s : D n . c u r v e _ s e g m e n t s , f i t T o C o n t e n t : U n . f i t T o C o n t e n t , f i t _ t o _ a l l : U n . f i t _ t o _ a l l , f i t _ t o _ c a n v a s : U n . f i t _ t o _ c a n v a s , f i t _ t o _ l a y e r _ c o n t e n t : U n . f i t _ t o _ l a y e r _ c o n t e n t , f i t _ t o _ s e l : U n . f i t _ t o _ s e l , i c o n _ l a r g e : Q n . i c o n _ l a r g e , i c o n _ m e d i u m : Q n . i c o n _ m e d i u m , i c o n _ s m a l l : Q n . i c o n _ s m a l l , i c o n _ x l a r g e : Q n . i c o n _ x l a r g e , i m a g e _ o p t _ e m b e d : Q n . i m a g e _ o p t _ e m b e d , i m a g e _ o p t _ r e f : Q n . i m a g e _ o p t _ r e f , i n c l u d e d I m a g e s : Q n . i n c l u d e d _ i m a g e s , l a r g e s t _ o b j e c t : U n . l a r g e s t _ o b j e c t , l a y e r s L a b e l : H n . l a y e r s , p a g e : U n . p a g e , r e l a t i v e T o L a b e l : U n . r e l a t i v e T o , s e l L a y e r L a b e l : H n . m o v e _ e l e m s _ t o , s e l e c t e d P r e d e f i n e d : Q n . s e l e c t _ p r e d e f i n e d , s e l e c t e d _ o b j e c t s : U n . s e l e c t e d _ o b j e c t s , s m a l l e s t _ o b j e c t : U n . s m a l l e s t _ o b j e c t , s t r a i g h t _ s e g m e n t s : D n . s t r a i g h t _ s e g m e n t s , s v g i n f o _ b g _ u r l : Q n . e d i t o r _ i m g _ u r l + " : " , s v g i n f o _ b g _ n o t e : Q n . e d i t o r _ b g _ n o t e , s v g i n f o _ c h a n g e _ b a c k g r o u n d : Q n . b a c k g r o u n d , s v g i n f o _ d i m : Q n . d o c _ d i m s , s v g i n f o _ e d i t o r _ p r e f s : Q n . e d i t o r _ p r e f s , s v g i n f o _ h e i g h t : G n . h e i g h t , s v g i n f o _ i c o n s : Q n . i c o n _ s i z e , s v g i n f o _ i m a g e _ p r o p s : Q n . i m a g e _ p r o p s , s v g i n f o _ l a n g : Q n . l a n g u a g e , s v g i n f o _ t i t l e : Q n . d o c _ t i t l e , s v g i n f o _ w i d t h : G n . w i d t h , t o o l _ d o c p r o p s _ c a n c e l : G n . c a n c e l , t o o l _ d o c p r o p s _ s a v e : G n . o k , t o o l _ s o u r c e _ c a n c e l : G n . c a n c e l , t o o l _ s o u r c e _ s a v e : G n . o k , t o o l _ p r e f s _ c a n c e l : G n . c a n c e l , t o o l _ p r e f s _ s a v e : G n . o k , s i d e p a n e l _ h a n d l e : H n . l a y e r s . s p l i t ( " " ) . j o i n ( " " ) , t o o l _ c l e a r : U n . n e w _ d o c , t o o l _ d o c p r o p s : U n . d o c p r o p s , t o o l _ e x p o r t : U n . e x p o r t _ i m g , t o o l _ i m p o r t : U n . i m p o r t _ d o c , t o o l _ o p e n : U n . o p e n _ d o c , t o o l _ s a v e : U n . s a v e _ d o c , t o o l _ e d i t o r _ p r e f s : Q n . e d i t o r _ p r e f s , t o o l _ e d i t o r _ h o m e p a g e : U n . e d i t o r _ h o m e p a g e , s v g i n f o _ u n i t s _ r u l e r s : Q n . u n i t s _ a n d _ r u l e r s , s v g i n f o _ r u l e r s _ o n o f f : Q n . s h o w _ r u l e r s , s v g i n f o _ u n i t : Q n . b a s e _ u n i t , s v g i n f o _ g r i d _ s e t t i n g s : Q n . g r i d , s v g i n f o _ s n a p _ o n o f f : Q n . s n a p p i n g _ o n o f f , s v g i n f o _ s n a p _ s t e p : Q n . s n a p p i n g _ s t e p s i z e , s v g i n f o _ g r i d _ c o l o r : Q n . g r i d _ c o l o r } , ! 0 ) ; v a r z n = { } ; [ " c u t " , " c o p y " , " p a s t e " , " p a s t e _ i n _ p l a c e " , " d e l e t e " , " g r o u p " , " u n g r o u p " , " m o v e _ f r o n t " , " m o v e _ u p " , " m o v e _ d o w n " , " m o v e _ b a c k " ] . f o r E a c h ( ( f u n c t i o n ( T n ) { z n [ ' # c m e n u _ c a n v a s a [ h r e f = " # ' + T n + ' " ] ' ] = U n [ T n ] } ) ) , [ " d u p e " , " m e r g e _ d o w n " , " m e r g e _ a l l " ] . f o r E a c h ( ( f u n c t i o n ( T n ) { z n [ ' # c m e n u _ l a y e r s a [ h r e f = " # ' + T n + ' " ] ' ] = H n [ T n ] } ) ) , z n [ ' # c m e n u _ l a y e r s a [ h r e f = " # d e l e t e " ] ' ] = H n . d e l , _ D ( " c o n t e n t " , z n ) ; v a r K n = { } ; r e t u r n O b j e c t . e n t r i e s ( { t o o l _ b l u r : D n . b l u r , t o o l _ p o s i t i o n : U n . a l i g n _ t o _ p a g e , t o o l _ f o n t _ f a m i l y : D n . f o n t _ f a m i l y , z o o m _ p a n e l : V n . z o o m _ l e v e l , s t r o k e _ l i n e j o i n : D n . l i n e j o i n _ m i t e r , s t r o k e _ l i n e c a p : D n . l i n e c a p _ b u t t , t o o l _ o p a c i t y : D n . o p a c i t y } ) . f o r E a c h ( ( f u n c t i o n ( T n ) { v a r U n = _ s l i c e d T o A r r a y ( T n , 2 ) , D n = U n [ 0 ] , Q n = U n [ 1 ] ; K n [ " # " + D n + " b u t t o n " ] = Q n } ) ) , O b j e c t . e n t r i e s ( { g r o u p _ o p a c i t y : D n . o p a c i t y , z o o m : V n . z o o m _ l e v e l } ) . f o r E a c h ( ( f u n c t i o n ( T n ) { v a r U n = _ s l i c e d T o A r r a y ( T n , 2 ) , D n = U n [ 0 ] , Q n = U n [ 1 ] ; K n [ " # " + D n ] = Q n } ) ) , _ D ( " a r i a - l a b e l " , K n ) , _ D ( " t i t l e " , { a l i g n _ r e l a t i v e _ t o : U n . a l i g n _ r e l a t i v e _ t o , c i r c l e _ c x : D n . c i r c l e _ c x , c i r c l e _ c y : D n . c i r c l e _ c y , c i r c l e _ r : D n . c i r c l e _ r , c o r n e r R a d i u s L a b e l : D n . c o r n e r _ r a d i u s , e l l i p s e _ c x : D n . e l l i p s e _ c x , e l l i p s e _ c y : D n . e l l i p s e _ c y , e l l i p s e _ r x : D n . e l l i p s e _ r x , e l l i p s e _ r y : D n . e l l i p s e _ r y , f i l l _ c o l o r : D n . f i l l _ c o l o r , f o n t _ f a m i l y : D n . f o n t _ f a m i l y , i d L a b e l : D n . i d , i m a g e _ h e i g h t : D n . i m a g e _ h e i g h t , i m a g e _ u r l : D n . i m a g e _ u r l , i m a g e _ w i d t h : D n . i m a g e _ w i d t h , l a y e r _ d e l e t e : H n . d e l , l a y e r _ d o w n : H n . m o v e _ d o w n , l a y e r _ n e w : H n . n e w , l a y e r _ r e n a m e : H n . r e n a m e , l a y e r _ m o r e o p t s : G n . m o r e _ o p t s , l a y e r _ u p : H n . m o v e _ u p , l i n e _ x 1 : D n . l i n e _ x 1 , l i n e _ x 2 : D n . l i n e _ x 2 , l i n e _ y 1 : D n . l i n e _ y 1 , l i n e _ y 2 : D n . l i n e _ y 2 , l i n e c a p _ b u t t : D n . l i n e c a p _ b u t t , l i n e c a p _ r o u n d : D n . l i n e c a p _ r o u n d , l i n e c a p _ s q u a r e : D n . l i n e c a p _ s q u a r e , l i n e j o i n _ b e v e l : D n . l i n e j o i n _ b e
2020-09-11 23:27:47 +00:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation . All rights reserved .
Licensed under the Apache License , Version 2.0 ( the "License" ) ; you may not use
this file except in compliance with the License . You may obtain a copy of the
License at http : //www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN * AS IS * BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND , EITHER EXPRESS OR IMPLIED , INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE , FITNESS FOR A PARTICULAR PURPOSE ,
MERCHANTABLITY OR NON - INFRINGEMENT .
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
2021-01-01 23:13:07 +00:00
var Tn = function extendStatics ( Un , Dn ) { return ( Tn = Object . setPrototypeOf || { _ _proto _ _ : [ ] } instanceof Array && function ( Tn , Un ) { Tn . _ _proto _ _ = Un } || function ( Tn , Un ) { for ( var Dn in Un ) Un . hasOwnProperty ( Dn ) && ( Tn [ Dn ] = Un [ Dn ] ) } ) ( Un , Dn ) } ; function _ _extends ( Un , Dn ) { function _ _ ( ) { this . constructor = Un } Tn ( Un , Dn ) , Un . prototype = null === Dn ? Object . create ( Dn ) : ( _ _ . prototype = Dn . prototype , new _ _ ) } var Un = function _ _assign ( ) { return ( Un = Object . assign || function _ _assign ( Tn ) { for ( var Un , Dn = 1 , Qn = arguments . length ; Dn < Qn ; Dn ++ ) for ( var Hn in Un = arguments [ Dn ] ) Object . prototype . hasOwnProperty . call ( Un , Hn ) && ( Tn [ Hn ] = Un [ Hn ] ) ; return Tn } ) . apply ( this , arguments ) } ; function _ _awaiter ( Tn , Un , Dn , Qn ) { return new ( Dn || ( Dn = Promise ) ) ( ( function ( Hn , Gn ) { function fulfilled ( Tn ) { try { step ( Qn . next ( Tn ) ) } catch ( Tn ) { Gn ( Tn ) } } function rejected ( Tn ) { try { step ( Qn . throw ( Tn ) ) } catch ( Tn ) { Gn ( Tn ) } } function step ( Tn ) { Tn . done ? Hn ( Tn . value ) : new Dn ( ( function ( Un ) { Un ( Tn . value ) } ) ) . then ( fulfilled , rejected ) } step ( ( Qn = Qn . apply ( Tn , Un || [ ] ) ) . next ( ) ) } ) ) } function _ _generator ( Tn , Un ) { var Dn , Qn , Hn , Gn , Vn = { label : 0 , sent : function sent ( ) { if ( 1 & Hn [ 0 ] ) throw Hn [ 1 ] ; return Hn [ 1 ] } , trys : [ ] , ops : [ ] } ; return Gn = { next : verb ( 0 ) , throw : verb ( 1 ) , return : verb ( 2 ) } , "function" == typeof Symbol && ( Gn [ Symbol . iterator ] = function ( ) { return this } ) , Gn ; function verb ( Tn ) { return function ( Un ) { return step ( [ Tn , Un ] ) } } function step ( Gn ) { if ( Dn ) throw new TypeError ( "Generator is already executing." ) ; for ( ; Vn ; ) try { if ( Dn = 1 , Qn && ( Hn = 2 & Gn [ 0 ] ? Qn . return : Gn [ 0 ] ? Qn . throw || ( ( Hn = Qn . return ) && Hn . call ( Qn ) , 0 ) : Qn . next ) && ! ( Hn = Hn . call ( Qn , Gn [ 1 ] ) ) . done ) return Hn ; switch ( Qn = 0 , Hn && ( Gn = [ 2 & Gn [ 0 ] , Hn . value ] ) , Gn [ 0 ] ) { case 0 : case 1 : Hn = Gn ; break ; case 4 : return Vn . label ++ , { value : Gn [ 1 ] , done : ! 1 } ; case 5 : Vn . label ++ , Qn = Gn [ 1 ] , Gn = [ 0 ] ; continue ; case 7 : Gn = Vn . ops . pop ( ) , Vn . trys . pop ( ) ; continue ; default : if ( ! ( ( Hn = ( Hn = Vn . trys ) . length > 0 && Hn [ Hn . length - 1 ] ) || 6 !== Gn [ 0 ] && 2 !== Gn [ 0 ] ) ) { Vn = 0 ; continue } if ( 3 === Gn [ 0 ] && ( ! Hn || Gn [ 1 ] > Hn [ 0 ] && Gn [ 1 ] < Hn [ 3 ] ) ) { Vn . label = Gn [ 1 ] ; break } if ( 6 === Gn [ 0 ] && Vn . label < Hn [ 1 ] ) { Vn . label = Hn [ 1 ] , Hn = Gn ; break } if ( Hn && Vn . label < Hn [ 2 ] ) { Vn . label = Hn [ 2 ] , Vn . ops . push ( Gn ) ; break } Hn [ 2 ] && Vn . ops . pop ( ) , Vn . trys . pop ( ) ; continue } Gn = Un . call ( Tn , Vn ) } catch ( Tn ) { Gn = [ 6 , Tn ] , Qn = 0 } finally { Dn = Hn = 0 } if ( 5 & Gn [ 0 ] ) throw Gn [ 1 ] ; return { value : Gn [ 0 ] ? Gn [ 1 ] : void 0 , done : ! 0 } } } for ( var Dn = function ( ) { function Bounds ( Tn , Un , Dn , Qn ) { this . left = Tn , this . top = Un , this . width = Dn , this . height = Qn } return Bounds . prototype . add = function ( Tn , Un , Dn , Qn ) { return new Bounds ( this . left + Tn , this . top + Un , this . width + Dn , this . height + Qn ) } , Bounds . fromClientRect = function ( Tn ) { return new Bounds ( Tn . left , Tn . top , Tn . width , Tn . height ) } , Bounds } ( ) , Qn = function parseBounds ( Tn ) { return Dn . fromClientRect ( Tn . getBoundingClientRect ( ) ) } , Hn = function parseDocumentSize ( Tn ) { var Un = Tn . body , Qn = Tn . documentElement ; if ( ! Un || ! Qn ) throw new Error ( "Unable to get document size" ) ; var Hn = Math . max ( Math . max ( Un . scrollWidth , Qn . scrollWidth ) , Math . max ( Un . offsetWidth , Qn . offsetWidth ) , Math . max ( Un . clientWidth , Qn . clientWidth ) ) , Gn = Math . max ( Math . max ( Un . scrollHeight , Qn . scrollHeight ) , Math . max ( Un . offsetHeight , Qn . offsetHeight ) , Math . max ( Un . clientHeight , Qn . clientHeight ) ) ; return new Dn ( 0 , 0 , Hn , Gn ) } , Gn = function toCodePoints ( Tn ) { for ( var Un = [ ] , Dn = 0 , Qn = Tn . length ; Dn < Qn ; ) { var Hn = Tn . charCodeAt ( Dn ++ ) ; if ( Hn >= 55296 && Hn <= 56319 && Dn < Qn ) { var Gn = Tn . charCodeAt ( Dn ++ ) ; 56320 == ( 64512 & Gn ) ? Un . push ( ( ( 1023 & Hn ) << 10 ) + ( 1023 & Gn ) + 65536 ) : ( Un . push ( Hn ) , Dn -- ) } else Un . push ( Hn ) } return Un } , Vn = function fromCodePoint ( ) { for ( var Tn = [ ] , Un = 0 ; Un < arguments . length ; Un ++ ) Tn [ Un ] = arguments [ Un ] ; if ( String . fromCodePoint ) return String . fromCodePoint . apply ( String , Tn ) ; var Dn = Tn . length ; if ( ! Dn ) return "" ; for ( var Qn = [ ] , Hn = - 1 , Gn = "" ; ++ Hn < Dn ; ) { var Vn = Tn [ Hn ] ; Vn <= 65535 ? Qn . push ( Vn ) : ( Vn -= 65536 , Qn . push ( 55296 + ( Vn >> 10 ) , Vn % 1024 + 56320 ) ) , ( Hn + 1 === Dn || Qn . length > 16384 ) && ( Gn += String . fromCharCode . apply ( String , Qn ) , Qn . length = 0 ) } return Gn } , zn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , Kn = "undefined" == typeof Uint8Array ? [ ] : new Uint8Array ( 256 ) , $n = 0 ; $n < zn . length ; $n ++ ) Kn [ zn . charCodeAt ( $n ) ] = $n ; var Wn , Xn = function decode ( Tn ) { var Un , Dn , Qn , Hn , Gn , Vn = . 75 * Tn . length , zn = Tn . length , $n = 0 ; "=" === Tn [ Tn . length - 1 ] && ( Vn -- , "=" === Tn [ Tn . length - 2 ] && Vn -- ) ; var Wn = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array && void 0 !== Uint8Array . prototype . sli
2020-09-11 23:27:47 +00:00
//# sourceMappingURL=xdomain-index.js.map