ÿþ/ /   M o o T o o l s :   t h e   j a v a s c r i p t   f r a m e w o r k . 
 / /   L o a d   t h i s   f i l e ' s   s e l e c t i o n   a g a i n   b y   v i s i t i n g :   h t t p : / / m o o t o o l s . n e t / m o r e / 5 4 d b 1 f 5 7 f 7 0 a 3 c 7 7 3 0 5 5 0 e c e 1 d e e c 1 0 d   
 / /   O r   b u i l d   t h i s   f i l e   a g a i n   w i t h   p a c k a g e r   u s i n g :   p a c k a g e r   b u i l d   M o r e / A r r a y . E x t r a s   M o r e / D a t e . E x t r a s   M o r e / N u m b e r . F o r m a t   M o r e / S t r i n g . Q u e r y S t r i n g   M o r e / U R I   M o r e / U R I . R e l a t i v e   M o r e / H a s h   M o r e / H a s h . E x t r a s   M o r e / E l e m e n t . D e l e g a t i o n   M o r e / F o r m . R e q u e s t   M o r e / F o r m . R e q u e s t . A p p e n d   M o r e / F o r m . V a l i d a t o r . I n l i n e   M o r e / F o r m . V a l i d a t o r . E x t r a s   M o r e / F x . E l e m e n t s   M o r e / F x . A c c o r d i o n   M o r e / F x . M o v e   M o r e / F x . S c r o l l   M o r e / F x . S l i d e   M o r e / F x . S m o o t h S c r o l l   M o r e / H a s h . C o o k i e   M o r e / H t m l T a b l e   M o r e / H t m l T a b l e . Z e b r a   M o r e / H t m l T a b l e . S o r t   M o r e / H t m l T a b l e . S e l e c t   M o r e / T i p s 
 / * 
 - - - 
 c o p y r i g h t s : 
     -   [ M o o T o o l s ] ( h t t p : / / m o o t o o l s . n e t ) 
 
 l i c e n s e s : 
     -   [ M I T   L i c e n s e ] ( h t t p : / / m o o t o o l s . n e t / l i c e n s e . t x t ) 
 . . . 
 * / 
 A r r a y . i m p l e m e n t ( { m i n : f u n c t i o n ( ) { r e t u r n   M a t h . m i n . a p p l y ( n u l l , t h i s ) ; } , m a x : f u n c t i o n ( ) { r e t u r n   M a t h . m a x . a p p l y ( n u l l , t h i s ) ; } , a v e r a g e : f u n c t i o n ( ) { r e t u r n   t h i s . l e n g t h ? t h i s . s u m ( ) / t h i s . l e n g t h : 0 ; 
 } , s u m : f u n c t i o n ( ) { v a r   a = 0 , b = t h i s . l e n g t h ; i f ( b ) { w h i l e ( b - - ) { a + = t h i s [ b ] ; } } r e t u r n   a ; } , u n i q u e : f u n c t i o n ( ) { r e t u r n [ ] . c o m b i n e ( t h i s ) ; } , s h u f f l e : f u n c t i o n ( ) { f o r ( v a r   b = t h i s . l e n g t h ; 
 b & & - - b ; ) { v a r   a = t h i s [ b ] , c = M a t h . f l o o r ( M a t h . r a n d o m ( ) * ( b + 1 ) ) ; t h i s [ b ] = t h i s [ c ] ; t h i s [ c ] = a ; } r e t u r n   t h i s ; } , r e d u c e : f u n c t i o n ( c , d ) { v a r   e ; f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; 
 b < a ; b + + ) { i f ( b   i n   t h i s ) { d = d = = = e ? t h i s [ b ] : c . c a l l ( n u l l , d , t h i s [ b ] , b , t h i s ) ; } } r e t u r n   d ; } , r e d u c e R i g h t : f u n c t i o n ( b , c ) { v a r   a = t h i s . l e n g t h , d ; w h i l e ( a - - ) { i f ( a   i n   t h i s ) { c = c = = = d ? t h i s [ a ] : b . c a l l ( n u l l , c , t h i s [ a ] , a , t h i s ) ; 
 } } r e t u r n   c ; } } ) ; M o o T o o l s . M o r e = { v e r s i o n : " 1 . 3 . 0 . 1 " , b u i l d : " 6 d c e 9 9 b e d 2 7 9 2 d f f c b b b b 4 d d c 1 5 a 1 f b 9 a 4 1 9 9 4 b 5 " } ; ( f u n c t i o n ( ) { v a r   a = f u n c t i o n ( b ) { r e t u r n   b ! = n u l l ; } ; O b j e c t . e x t e n d ( { g e t F r o m P a t h : f u n c t i o n ( e , d ) { v a r   f = d . s p l i t ( " . " ) ; 
 f o r ( v a r   c = 0 , b = f . l e n g t h ; c < b ; c + + ) { i f ( e . h a s O w n P r o p e r t y ( f [ c ] ) ) { e = e [ f [ c ] ] ; } e l s e { r e t u r n   n u l l ; } } r e t u r n   e ; } , c l e a n V a l u e s : f u n c t i o n ( b , c ) { c = c | | a ; f o r ( k e y   i n   b ) { i f ( ! c ( b [ k e y ] ) ) { d e l e t e   b [ k e y ] ; 
 } } r e t u r n   b ; } , e r a s e : f u n c t i o n ( b , c ) { i f ( b . h a s O w n P r o p e r t y ( c ) ) { d e l e t e   b [ c ] ; } r e t u r n   b ; } , r u n : f u n c t i o n ( c ) { v a r   b = A r r a y . s l i c e ( a r g u m e n t s , 1 ) ; f o r ( k e y   i n   c ) { i f ( c [ k e y ] . a p p l y ) { c [ k e y ] . a p p l y ( c , b ) ; 
 } } r e t u r n   c ; } } ) ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   b = n u l l , a = { } , e = { } ; v a r   d = f u n c t i o n ( g ) { i f ( i n s t a n c e O f ( g , f . S e t ) ) { r e t u r n   g ; } e l s e { r e t u r n   a [ g ] ; } } ; v a r   f = t h i s . L o c a l e = { d e f i n e : f u n c t i o n ( g , k , i , j ) { v a r   h ; 
 i f ( i n s t a n c e O f ( g , f . S e t ) ) { h = g . n a m e ; i f ( h ) { a [ h ] = g ; } } e l s e { h = g ; i f ( ! a [ h ] ) { a [ h ] = n e w   f . S e t ( h ) ; } g = a [ h ] ; } i f ( k ) { g . d e f i n e ( k , i , j ) ; } i f ( k = = " c a s c a d e " ) { r e t u r n   f . i n h e r i t ( h , i ) ; 
 } i f ( ! b ) { b = g ; } r e t u r n   g ; } , u s e : f u n c t i o n ( g ) { g = d ( g ) ; i f ( g ) { b = g ; t h i s . f i r e E v e n t ( " c h a n g e " , g ) ; t h i s . f i r e E v e n t ( " l a n g C h a n g e " , g . n a m e ) ; } r e t u r n   t h i s ; } , g e t C u r r e n t : f u n c t i o n ( ) { r e t u r n   b ; 
 } , g e t : f u n c t i o n ( h , g ) { r e t u r n ( b ) ? b . g e t ( h , g ) : " " ; } , i n h e r i t : f u n c t i o n ( g , h , i ) { g = d ( g ) ; i f ( g ) { g . i n h e r i t ( h , i ) ; } r e t u r n   t h i s ; } , l i s t : f u n c t i o n ( ) { r e t u r n   O b j e c t . k e y s ( a ) ; 
 } } ; O b j e c t . a p p e n d ( f , n e w   E v e n t s ) ; f . S e t = n e w   C l a s s ( { s e t s : { } , i n h e r i t s : { l o c a l e s : [ ] , s e t s : { } } , i n i t i a l i z e : f u n c t i o n ( g ) { t h i s . n a m e = g | | " " ; } , d e f i n e : f u n c t i o n ( j , h , i ) { v a r   g = t h i s . s e t s [ j ] ; 
 i f ( ! g ) { g = { } ; } i f ( h ) { i f ( t y p e O f ( h ) = = " o b j e c t " ) { g = O b j e c t . m e r g e ( g , h ) ; } e l s e { g [ h ] = i ; } } t h i s . s e t s [ j ] = g ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( s , k , r ) { v a r   q = O b j e c t . g e t F r o m P a t h ( t h i s . s e t s , s ) ; 
 i f ( q ! = n u l l ) { v a r   n = t y p e O f ( q ) ; i f ( n = = " f u n c t i o n " ) { q = q . a p p l y ( n u l l , A r r a y . f r o m ( k ) ) ; } e l s e { i f ( n = = " o b j e c t " ) { q = O b j e c t . c l o n e ( q ) ; } } r e t u r n   q ; } v a r   j = s . i n d e x O f ( " . " ) , p = j < 0 ? s : s . s u b s t r ( 0 , j ) , m = ( t h i s . i n h e r i t s . s e t s [ p ] | | [ ] ) . c o m b i n e ( t h i s . i n h e r i t s . l o c a l e s ) . i n c l u d e ( " e n - U S " ) ; 
 i f ( ! r ) { r = [ ] ; } f o r ( v a r   h = 0 , g = m . l e n g t h ; h < g ; h + + ) { i f ( r . c o n t a i n s ( m [ h ] ) ) { c o n t i n u e ; } r . i n c l u d e ( m [ h ] ) ; v a r   o = a [ m [ h ] ] ; i f ( ! o ) { c o n t i n u e ; } q = o . g e t ( s , k , r ) ; i f ( q ! = n u l l ) { r e t u r n   q ; 
 } } r e t u r n " " ; } , i n h e r i t : f u n c t i o n ( h , i ) { h = A r r a y . f r o m ( h ) ; i f ( i & & ! t h i s . i n h e r i t s . s e t s [ i ] ) { t h i s . i n h e r i t s . s e t s [ i ] = [ ] ; } v a r   g = h . l e n g t h ; w h i l e ( g - - ) { ( i ? t h i s . i n h e r i t s . s e t s [ i ] : t h i s . i n h e r i t s . l o c a l e s ) . u n s h i f t ( h [ g ] ) ; 
 } r e t u r n   t h i s ; } } ) ; v a r   c = M o o T o o l s . l a n g = { } ; O b j e c t . a p p e n d ( c , f , { s e t L a n g u a g e : f . u s e , g e t C u r r e n t L a n g u a g e : f u n c t i o n ( ) { v a r   g = f . g e t C u r r e n t ( ) ; r e t u r n ( g ) ? g . n a m e : n u l l ; } , s e t : f u n c t i o n ( ) { f . d e f i n e . a p p l y ( t h i s , a r g u m e n t s ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( i , h , g ) { i f ( h ) { i + = " . " + h ; } r e t u r n   f . g e t ( i , g ) ; } } ) ; } ) ( ) ; L o c a l e . d e f i n e ( " e n - U S " , " D a t e " , { m o n t h s : [ " J a n u a r y " , " F e b r u a r y " , " M a r c h " , " A p r i l " , " M a y " , " J u n e " , " J u l y " , " A u g u s t " , " S e p t e m b e r " , " O c t o b e r " , " N o v e m b e r " , " D e c e m b e r " ] , m o n t h s _ a b b r : [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] , d a y s : [ " S u n d a y " , " M o n d a y " , " T u e s d a y " , " W e d n e s d a y " , " T h u r s d a y " , " F r i d a y " , " S a t u r d a y " ] , d a y s _ a b b r : [ " S u n " , " M o n " , " T u e " , " W e d " , " T h u " , " F r i " , " S a t " ] , d a t e O r d e r : [ " m o n t h " , " d a t e " , " y e a r " ] , s h o r t D a t e : " % m / % d / % Y " , s h o r t T i m e : " % I : % M % p " , A M : " A M " , P M : " P M " , o r d i n a l : f u n c t i o n ( a ) { r e t u r n ( a > 3 & & a < 2 1 ) ? " t h " : [ " t h " , " s t " , " n d " , " r d " , " t h " ] [ M a t h . m i n ( a % 1 0 , 4 ) ] ; 
 } , l e s s T h a n M i n u t e A g o : " l e s s   t h a n   a   m i n u t e   a g o " , m i n u t e A g o : " a b o u t   a   m i n u t e   a g o " , m i n u t e s A g o : " { d e l t a }   m i n u t e s   a g o " , h o u r A g o : " a b o u t   a n   h o u r   a g o " , h o u r s A g o : " a b o u t   { d e l t a }   h o u r s   a g o " , d a y A g o : " 1   d a y   a g o " , d a y s A g o : " { d e l t a }   d a y s   a g o " , w e e k A g o : " 1   w e e k   a g o " , w e e k s A g o : " { d e l t a }   w e e k s   a g o " , m o n t h A g o : " 1   m o n t h   a g o " , m o n t h s A g o : " { d e l t a }   m o n t h s   a g o " , y e a r A g o : " 1   y e a r   a g o " , y e a r s A g o : " { d e l t a }   y e a r s   a g o " , l e s s T h a n M i n u t e U n t i l : " l e s s   t h a n   a   m i n u t e   f r o m   n o w " , m i n u t e U n t i l : " a b o u t   a   m i n u t e   f r o m   n o w " , m i n u t e s U n t i l : " { d e l t a }   m i n u t e s   f r o m   n o w " , h o u r U n t i l : " a b o u t   a n   h o u r   f r o m   n o w " , h o u r s U n t i l : " a b o u t   { d e l t a }   h o u r s   f r o m   n o w " , d a y U n t i l : " 1   d a y   f r o m   n o w " , d a y s U n t i l : " { d e l t a }   d a y s   f r o m   n o w " , w e e k U n t i l : " 1   w e e k   f r o m   n o w " , w e e k s U n t i l : " { d e l t a }   w e e k s   f r o m   n o w " , m o n t h U n t i l : " 1   m o n t h   f r o m   n o w " , m o n t h s U n t i l : " { d e l t a }   m o n t h s   f r o m   n o w " , y e a r U n t i l : " 1   y e a r   f r o m   n o w " , y e a r s U n t i l : " { d e l t a }   y e a r s   f r o m   n o w " } ) ; 
 ( f u n c t i o n ( ) { v a r   i = t h i s . D a t e ; i . M e t h o d s = { m s : " M i l l i s e c o n d s " , y e a r : " F u l l Y e a r " , m i n : " M i n u t e s " , m o : " M o n t h " , s e c : " S e c o n d s " , h r : " H o u r s " } ; [ " D a t e " , " D a y " , " F u l l Y e a r " , " H o u r s " , " M i l l i s e c o n d s " , " M i n u t e s " , " M o n t h " , " S e c o n d s " , " T i m e " , " T i m e z o n e O f f s e t " , " W e e k " , " T i m e z o n e " , " G M T O f f s e t " , " D a y O f Y e a r " , " L a s t M o n t h " , " L a s t D a y O f M o n t h " , " U T C D a t e " , " U T C D a y " , " U T C F u l l Y e a r " , " A M P M " , " O r d i n a l " , " U T C H o u r s " , " U T C M i l l i s e c o n d s " , " U T C M i n u t e s " , " U T C M o n t h " , " U T C S e c o n d s " , " U T C M i l l i s e c o n d s " ] . e a c h ( f u n c t i o n ( p ) { i . M e t h o d s [ p . t o L o w e r C a s e ( ) ] = p ; 
 } ) ; v a r   d = f u n c t i o n ( r , q , p ) { i f ( ! p ) { p = " 0 " ; } r e t u r n   n e w   A r r a y ( q - S t r i n g ( r ) . l e n g t h + 1 ) . j o i n ( p ) + r ; } ; i . i m p l e m e n t ( { s e t : f u n c t i o n ( r , q ) { r = r . t o L o w e r C a s e ( ) ; v a r   p = i . M e t h o d s ; 
 i f ( p [ r ] ) { t h i s [ " s e t " + p [ r ] ] ( q ) ; } r e t u r n   t h i s ; } . o v e r l o a d S e t t e r ( ) , g e t : f u n c t i o n ( q ) { q = q . t o L o w e r C a s e ( ) ; v a r   p = i . M e t h o d s ; i f ( p [ q ] ) { r e t u r n   t h i s [ " g e t " + p [ q ] ] ( ) ; } r e t u r n   n u l l ; 
 } , c l o n e : f u n c t i o n ( ) { r e t u r n   n e w   i ( t h i s . g e t ( " t i m e " ) ) ; } , i n c r e m e n t : f u n c t i o n ( p , r ) { p = p | | " d a y " ; r = r ! = n u l l ? r : 1 ; s w i t c h ( p ) { c a s e " y e a r " : r e t u r n   t h i s . i n c r e m e n t ( " m o n t h " , r * 1 2 ) ; 
 c a s e " m o n t h " : v a r   q = t h i s . g e t ( " d a t e " ) ; t h i s . s e t ( " d a t e " , 1 ) . s e t ( " m o " , t h i s . g e t ( " m o " ) + r ) ; r e t u r n   t h i s . s e t ( " d a t e " , q . m i n ( t h i s . g e t ( " l a s t d a y o f m o n t h " ) ) ) ; c a s e " w e e k " : r e t u r n   t h i s . i n c r e m e n t ( " d a y " , r * 7 ) ; 
 c a s e " d a y " : r e t u r n   t h i s . s e t ( " d a t e " , t h i s . g e t ( " d a t e " ) + r ) ; } i f ( ! i . u n i t s [ p ] ) { t h r o w   n e w   E r r o r ( p + "   i s   n o t   a   s u p p o r t e d   i n t e r v a l " ) ; } r e t u r n   t h i s . s e t ( " t i m e " , t h i s . g e t ( " t i m e " ) + r * i . u n i t s [ p ] ( ) ) ; 
 } , d e c r e m e n t : f u n c t i o n ( p , q ) { r e t u r n   t h i s . i n c r e m e n t ( p , - 1 * ( q ! = n u l l ? q : 1 ) ) ; } , i s L e a p Y e a r : f u n c t i o n ( ) { r e t u r n   i . i s L e a p Y e a r ( t h i s . g e t ( " y e a r " ) ) ; } , c l e a r T i m e : f u n c t i o n ( ) { r e t u r n   t h i s . s e t ( { h r : 0 , m i n : 0 , s e c : 0 , m s : 0 } ) ; 
 } , d i f f : f u n c t i o n ( q , p ) { i f ( t y p e O f ( q ) = = " s t r i n g " ) { q = i . p a r s e ( q ) ; } r e t u r n ( ( q - t h i s ) / i . u n i t s [ p | | " d a y " ] ( 3 , 3 ) ) . r o u n d ( ) ; } , g e t L a s t D a y O f M o n t h : f u n c t i o n ( ) { r e t u r n   i . d a y s I n M o n t h ( t h i s . g e t ( " m o " ) , t h i s . g e t ( " y e a r " ) ) ; 
 } , g e t D a y O f Y e a r : f u n c t i o n ( ) { r e t u r n ( i . U T C ( t h i s . g e t ( " y e a r " ) , t h i s . g e t ( " m o " ) , t h i s . g e t ( " d a t e " ) + 1 ) - i . U T C ( t h i s . g e t ( " y e a r " ) , 0 , 1 ) ) / i . u n i t s . d a y ( ) ; } , g e t W e e k : f u n c t i o n ( ) { r e t u r n ( t h i s . g e t ( " d a y o f y e a r " ) / 7 ) . c e i l ( ) ; 
 } , g e t O r d i n a l : f u n c t i o n ( p ) { r e t u r n   i . g e t M s g ( " o r d i n a l " , p | | t h i s . g e t ( " d a t e " ) ) ; } , g e t T i m e z o n e : f u n c t i o n ( ) { r e t u r n   t h i s . t o S t r i n g ( ) . r e p l a c e ( / ^ . * ?   ( [ A - Z ] { 3 } ) . [ 0 - 9 ] { 4 } . * $ / , " $ 1 " ) . r e p l a c e ( / ^ . * ? \ ( ( [ A - Z ] ) [ a - z ] +   ( [ A - Z ] ) [ a - z ] +   ( [ A - Z ] ) [ a - z ] + \ ) $ / , " $ 1 $ 2 $ 3 " ) ; 
 } , g e t G M T O f f s e t : f u n c t i o n ( ) { v a r   p = t h i s . g e t ( " t i m e z o n e O f f s e t " ) ; r e t u r n ( ( p > 0 ) ? " - " : " + " ) + d ( ( p . a b s ( ) / 6 0 ) . f l o o r ( ) , 2 ) + d ( p % 6 0 , 2 ) ; } , s e t A M P M : f u n c t i o n ( p ) { p = p . t o U p p e r C a s e ( ) ; 
 v a r   q = t h i s . g e t ( " h r " ) ; i f ( q > 1 1 & & p = = " A M " ) { r e t u r n   t h i s . d e c r e m e n t ( " h o u r " , 1 2 ) ; } e l s e { i f ( q < 1 2 & & p = = " P M " ) { r e t u r n   t h i s . i n c r e m e n t ( " h o u r " , 1 2 ) ; } } r e t u r n   t h i s ; } , g e t A M P M : f u n c t i o n ( ) { r e t u r n ( t h i s . g e t ( " h r " ) < 1 2 ) ? " A M " : " P M " ; 
 } , p a r s e : f u n c t i o n ( p ) { t h i s . s e t ( " t i m e " , i . p a r s e ( p ) ) ; r e t u r n   t h i s ; } , i s V a l i d : f u n c t i o n ( p ) { r e t u r n   ! i s N a N ( ( p | | t h i s ) . v a l u e O f ( ) ) ; } , f o r m a t : f u n c t i o n ( p ) { i f ( ! t h i s . i s V a l i d ( ) ) { r e t u r n " i n v a l i d   d a t e " ; 
 } p = p | | " % x   % X " ; p = k [ p . t o L o w e r C a s e ( ) ] | | p ; v a r   q = t h i s ; r e t u r n   p . r e p l a c e ( / % ( [ a - z % ] ) / g i , f u n c t i o n ( s , r ) { s w i t c h ( r ) { c a s e " a " : r e t u r n   i . g e t M s g ( " d a y s _ a b b r " ) [ q . g e t ( " d a y " ) ] ; 
 c a s e " A " : r e t u r n   i . g e t M s g ( " d a y s " ) [ q . g e t ( " d a y " ) ] ; c a s e " b " : r e t u r n   i . g e t M s g ( " m o n t h s _ a b b r " ) [ q . g e t ( " m o n t h " ) ] ; c a s e " B " : r e t u r n   i . g e t M s g ( " m o n t h s " ) [ q . g e t ( " m o n t h " ) ] ; 
 c a s e " c " : r e t u r n   q . f o r m a t ( " % a   % b   % d   % H : % m : % S   % Y " ) ; c a s e " d " : r e t u r n   d ( q . g e t ( " d a t e " ) , 2 ) ; c a s e " e " : r e t u r n   d ( q . g e t ( " d a t e " ) , 2 , "   " ) ; c a s e " H " : r e t u r n   d ( q . g e t ( " h r " ) , 2 ) ; 
 c a s e " I " : r e t u r n   d ( ( q . g e t ( " h r " ) % 1 2 ) | | 1 2 , 2 ) ; c a s e " j " : r e t u r n   d ( q . g e t ( " d a y o f y e a r " ) , 3 ) ; c a s e " k " : r e t u r n   d ( q . g e t ( " h r " ) , 2 , "   " ) ; c a s e " l " : r e t u r n   d ( ( q . g e t ( " h r " ) % 1 2 ) | | 1 2 , 2 , "   " ) ; 
 c a s e " L " : r e t u r n   d ( q . g e t ( " m s " ) , 3 ) ; c a s e " m " : r e t u r n   d ( ( q . g e t ( " m o " ) + 1 ) , 2 ) ; c a s e " M " : r e t u r n   d ( q . g e t ( " m i n " ) , 2 ) ; c a s e " o " : r e t u r n   q . g e t ( " o r d i n a l " ) ; c a s e " p " : r e t u r n   i . g e t M s g ( q . g e t ( " a m p m " ) ) ; 
 c a s e " s " : r e t u r n   M a t h . r o u n d ( q / 1 0 0 0 ) ; c a s e " S " : r e t u r n   d ( q . g e t ( " s e c o n d s " ) , 2 ) ; c a s e " U " : r e t u r n   d ( q . g e t ( " w e e k " ) , 2 ) ; c a s e " w " : r e t u r n   q . g e t ( " d a y " ) ; c a s e " x " : r e t u r n   q . f o r m a t ( i . g e t M s g ( " s h o r t D a t e " ) ) ; 
 c a s e " X " : r e t u r n   q . f o r m a t ( i . g e t M s g ( " s h o r t T i m e " ) ) ; c a s e " y " : r e t u r n   q . g e t ( " y e a r " ) . t o S t r i n g ( ) . s u b s t r ( 2 ) ; c a s e " Y " : r e t u r n   q . g e t ( " y e a r " ) ; c a s e " T " : r e t u r n   q . g e t ( " G M T O f f s e t " ) ; 
 c a s e " z " : r e t u r n   q . g e t ( " G M T O f f s e t " ) ; c a s e " Z " : r e t u r n   q . g e t ( " T i m e z o n e " ) ; } r e t u r n   r ; } ) ; } , t o I S O S t r i n g : f u n c t i o n ( ) { r e t u r n   t h i s . f o r m a t ( " i s o 8 6 0 1 " ) ; } } ) ; i . a l i a s ( " t o J S O N " , " t o I S O S t r i n g " ) ; 
 i . a l i a s ( " c o m p a r e " , " d i f f " ) ; i . a l i a s ( " s t r f t i m e " , " f o r m a t " ) ; v a r   k = { d b : " % Y - % m - % d   % H : % M : % S " , c o m p a c t : " % Y % m % d T % H % M % S " , i s o 8 6 0 1 : " % Y - % m - % d T % H : % M : % S % T " , r f c 8 2 2 : " % a ,   % d   % b   % Y   % H : % M : % S   % Z " , " s h o r t " : " % d   % b   % H : % M " , " l o n g " : " % B   % d ,   % Y   % H : % M " } ; 
 v a r   g = [ ] ; v a r   e = i . p a r s e ; v a r   n = f u n c t i o n ( s , u , r ) { v a r   q = - 1 ; v a r   t = i . g e t M s g ( s + " s " ) ; s w i t c h ( t y p e O f ( u ) ) { c a s e " o b j e c t " : q = t [ u . g e t ( s ) ] ; b r e a k ; c a s e " n u m b e r " : q = t [ u ] ; i f ( ! q ) { t h r o w   n e w   E r r o r ( " I n v a l i d   " + s + "   i n d e x :   " + u ) ; 
 } b r e a k ; c a s e " s t r i n g " : v a r   p = t . f i l t e r ( f u n c t i o n ( v ) { r e t u r n   t h i s . t e s t ( v ) ; } , n e w   R e g E x p ( " ^ " + u , " i " ) ) ; i f ( ! p . l e n g t h ) { t h r o w   n e w   E r r o r ( " I n v a l i d   " + s + "   s t r i n g " ) ; } i f ( p . l e n g t h > 1 ) { t h r o w   n e w   E r r o r ( " A m b i g u o u s   " + s ) ; 
 } q = p [ 0 ] ; } r e t u r n ( r ) ? t . i n d e x O f ( q ) : q ; } ; i . e x t e n d ( { g e t M s g : f u n c t i o n ( q , p ) { r e t u r n   L o c a l e . g e t ( " D a t e . " + q , p ) ; } , u n i t s : { m s : F u n c t i o n . f r o m ( 1 ) , s e c o n d : F u n c t i o n . f r o m ( 1 0 0 0 ) , m i n u t e : F u n c t i o n . f r o m ( 6 0 0 0 0 ) , h o u r : F u n c t i o n . f r o m ( 3 6 0 0 0 0 0 ) , d a y : F u n c t i o n . f r o m ( 8 6 4 0 0 0 0 0 ) , w e e k : F u n c t i o n . f r o m ( 6 0 8 4 0 0 0 0 0 ) , m o n t h : f u n c t i o n ( q , p ) { v a r   r = n e w   i ; 
 r e t u r n   i . d a y s I n M o n t h ( q ! = n u l l ? q : r . g e t ( " m o " ) , p ! = n u l l ? p : r . g e t ( " y e a r " ) ) * 8 6 4 0 0 0 0 0 ; } , y e a r : f u n c t i o n ( p ) { p = p | | n e w   i ( ) . g e t ( " y e a r " ) ; r e t u r n   i . i s L e a p Y e a r ( p ) ? 3 1 6 2 2 4 0 0 0 0 0 : 3 1 5 3 6 0 0 0 0 0 0 ; 
 } } , d a y s I n M o n t h : f u n c t i o n ( q , p ) { r e t u r n [ 3 1 , i . i s L e a p Y e a r ( p ) ? 2 9 : 2 8 , 3 1 , 3 0 , 3 1 , 3 0 , 3 1 , 3 1 , 3 0 , 3 1 , 3 0 , 3 1 ] [ q ] ; } , i s L e a p Y e a r : f u n c t i o n ( p ) { r e t u r n ( ( p % 4 = = = 0 ) & & ( p % 1 0 0 ! = = 0 ) ) | | ( p % 4 0 0 = = = 0 ) ; 
 } , p a r s e : f u n c t i o n ( r ) { v a r   q = t y p e O f ( r ) ; i f ( q = = " n u m b e r " ) { r e t u r n   n e w   i ( r ) ; } i f ( q ! = " s t r i n g " ) { r e t u r n   r ; } r = r . c l e a n ( ) ; i f ( ! r . l e n g t h ) { r e t u r n   n u l l ; } v a r   p ; g . s o m e ( f u n c t i o n ( t ) { v a r   s = t . r e . e x e c ( r ) ; 
 r e t u r n ( s ) ? ( p = t . h a n d l e r ( s ) ) : f a l s e ; } ) ; r e t u r n   p | | n e w   i ( e ( r ) ) ; } , p a r s e D a y : f u n c t i o n ( p , q ) { r e t u r n   n ( " d a y " , p , q ) ; } , p a r s e M o n t h : f u n c t i o n ( q , p ) { r e t u r n   n ( " m o n t h " , q , p ) ; 
 } , p a r s e U T C : f u n c t i o n ( q ) { v a r   p = n e w   i ( q ) ; v a r   r = i . U T C ( p . g e t ( " y e a r " ) , p . g e t ( " m o " ) , p . g e t ( " d a t e " ) , p . g e t ( " h r " ) , p . g e t ( " m i n " ) , p . g e t ( " s e c " ) , p . g e t ( " m s " ) ) ; r e t u r n   n e w   i ( r ) ; 
 } , o r d e r I n d e x : f u n c t i o n ( p ) { r e t u r n   i . g e t M s g ( " d a t e O r d e r " ) . i n d e x O f ( p ) + 1 ; } , d e f i n e F o r m a t : f u n c t i o n ( p , q ) { k [ p ] = q ; } , d e f i n e F o r m a t s : f u n c t i o n ( p ) { f o r ( v a r   q   i n   p ) { i . d e f i n e F o r m a t ( q , p [ q ] ) ; 
 } } , p a r s e P a t t e r n s : g , d e f i n e P a r s e r : f u n c t i o n ( p ) { g . p u s h ( ( p . r e & & p . h a n d l e r ) ? p : l ( p ) ) ; } , d e f i n e P a r s e r s : f u n c t i o n ( ) { A r r a y . f l a t t e n ( a r g u m e n t s ) . e a c h ( i . d e f i n e P a r s e r ) ; } , d e f i n e 2 D i g i t Y e a r S t a r t : f u n c t i o n ( p ) { h = p % 1 0 0 ; 
 m = p - h ; } } ) ; v a r   m = 1 9 0 0 ; v a r   h = 7 0 ; v a r   j = f u n c t i o n ( p ) { r e t u r n   n e w   R e g E x p ( " ( ? : " + i . g e t M s g ( p ) . m a p ( f u n c t i o n ( q ) { r e t u r n   q . s u b s t r ( 0 , 3 ) ; } ) . j o i n ( " | " ) + " ) [ a - z ] * " ) ; } ; v a r   a = f u n c t i o n ( p ) { s w i t c h ( p ) { c a s e " x " : r e t u r n ( ( i . o r d e r I n d e x ( " m o n t h " ) = = 1 ) ? " % m [ - . / ] % d " : " % d [ - . / ] % m " ) + " ( [ - . / ] % y ) ? " ; 
 c a s e " X " : r e t u r n " % H ( [ . : ] % M ) ? ( [ . : ] % S ( [ . : ] % s ) ? ) ?   ? % p ?   ? % T ? " ; } r e t u r n   n u l l ; } ; v a r   o = { d : / [ 0 - 2 ] ? [ 0 - 9 ] | 3 [ 0 1 ] / , H : / [ 0 1 ] ? [ 0 - 9 ] | 2 [ 0 - 3 ] / , I : / 0 ? [ 1 - 9 ] | 1 [ 0 - 2 ] / , M : / [ 0 - 5 ] ? \ d / , s : / \ d + / , o : / [ a - z ] * / , p : / [ a p ] \ . ? m \ . ? / , y : / \ d { 2 } | \ d { 4 } / , Y : / \ d { 4 } / , T : / Z | [ + - ] \ d { 2 } ( ? : : ? \ d { 2 } ) ? / } ; 
 o . m = o . I ; o . S = o . M ; v a r   c ; v a r   b = f u n c t i o n ( p ) { c = p ; o . a = o . A = j ( " d a y s " ) ; o . b = o . B = j ( " m o n t h s " ) ; g . e a c h ( f u n c t i o n ( r , q ) { i f ( r . f o r m a t ) { g [ q ] = l ( r . f o r m a t ) ; } } ) ; } ; v a r   l = f u n c t i o n ( r ) { i f ( ! c ) { r e t u r n { f o r m a t : r } ; 
 } v a r   p = [ ] ; v a r   q = ( r . s o u r c e | | r ) . r e p l a c e ( / % ( [ a - z ] ) / g i , f u n c t i o n ( t , s ) { r e t u r n   a ( s ) | | t ; } ) . r e p l a c e ( / \ ( ( ? ! \ ? ) / g , " ( ? : " ) . r e p l a c e ( /   ( ? ! \ ? | \ * ) / g , " , ?   " ) . r e p l a c e ( / % ( [ a - z % ] ) / g i , f u n c t i o n ( t , s ) { v a r   u = o [ s ] ; 
 i f ( ! u ) { r e t u r n   s ; } p . p u s h ( s ) ; r e t u r n " ( " + u . s o u r c e + " ) " ; } ) . r e p l a c e ( / \ [ a - z \ ] / g i , " [ a - z \ \ u 0 0 c 0 - \ \ u f f f f ; & ] " ) ; r e t u r n { f o r m a t : r , r e : n e w   R e g E x p ( " ^ " + q + " $ " , " i " ) , h a n d l e r : f u n c t i o n ( v ) { v = v . s l i c e ( 1 ) . a s s o c i a t e ( p ) ; 
 v a r   s = n e w   i ( ) . c l e a r T i m e ( ) , u = v . y | | v . Y ; i f ( u ! = n u l l ) { f . c a l l ( s , " y " , u ) ; } i f ( " d "   i n   v ) { f . c a l l ( s , " d " , 1 ) ; } i f ( " m "   i n   v | | " b "   i n   v | | " B "   i n   v ) { f . c a l l ( s , " m " , 1 ) ; } f o r ( v a r   t   i n   v ) { f . c a l l ( s , t , v [ t ] ) ; 
 } r e t u r n   s ; } } ; } ; v a r   f = f u n c t i o n ( p , q ) { i f ( ! q ) { r e t u r n   t h i s ; } s w i t c h ( p ) { c a s e " a " : c a s e " A " : r e t u r n   t h i s . s e t ( " d a y " , i . p a r s e D a y ( q , t r u e ) ) ; c a s e " b " : c a s e " B " : r e t u r n   t h i s . s e t ( " m o " , i . p a r s e M o n t h ( q , t r u e ) ) ; 
 c a s e " d " : r e t u r n   t h i s . s e t ( " d a t e " , q ) ; c a s e " H " : c a s e " I " : r e t u r n   t h i s . s e t ( " h r " , q ) ; c a s e " m " : r e t u r n   t h i s . s e t ( " m o " , q - 1 ) ; c a s e " M " : r e t u r n   t h i s . s e t ( " m i n " , q ) ; c a s e " p " : r e t u r n   t h i s . s e t ( " a m p m " , q . r e p l a c e ( / \ . / g , " " ) ) ; 
 c a s e " S " : r e t u r n   t h i s . s e t ( " s e c " , q ) ; c a s e " s " : r e t u r n   t h i s . s e t ( " m s " , ( " 0 . " + q ) * 1 0 0 0 ) ; c a s e " w " : r e t u r n   t h i s . s e t ( " d a y " , q ) ; c a s e " Y " : r e t u r n   t h i s . s e t ( " y e a r " , q ) ; c a s e " y " : q = + q ; 
 i f ( q < 1 0 0 ) { q + = m + ( q < h ? 1 0 0 : 0 ) ; } r e t u r n   t h i s . s e t ( " y e a r " , q ) ; c a s e " T " : i f ( q = = " Z " ) { q = " + 0 0 " ; } v a r   r = q . m a t c h ( / ( [ + - ] ) ( \ d { 2 } ) : ? ( \ d { 2 } ) ? / ) ; r = ( r [ 1 ] + " 1 " ) * ( r [ 2 ] * 6 0 + ( + r [ 3 ] | | 0 ) ) + t h i s . g e t T i m e z o n e O f f s e t ( ) ; 
 r e t u r n   t h i s . s e t ( " t i m e " , t h i s - r * 6 0 0 0 0 ) ; } r e t u r n   t h i s ; } ; i . d e f i n e P a r s e r s ( " % Y ( [ - . / ] % m ( [ - . / ] % d ( ( T |   ) % X ) ? ) ? ) ? " , " % Y % m % d ( T % H ( % M % S ? ) ? ) ? " , " % x (   % X ) ? " , " % d % o (   % b (   % Y ) ? ) ? (   % X ) ? " , " % b (   % d % o ) ? (   % Y ) ? (   % X ) ? " , " % Y   % b (   % d % o (   % X ) ? ) ? " , " % o   % b   % d   % X   % T   % Y " ) ; 
 L o c a l e . a d d E v e n t ( " c h a n g e " , f u n c t i o n ( p ) { i f ( L o c a l e . g e t ( " D a t e " ) ) { b ( p ) ; } } ) . f i r e E v e n t ( " c h a n g e " , L o c a l e . g e t C u r r e n t ( ) ) ; } ) ( ) ; D a t e . i m p l e m e n t ( { t i m e D i f f I n W o r d s : f u n c t i o n ( a ) { r e t u r n   D a t e . d i s t a n c e O f T i m e I n W o r d s ( t h i s , a | | n e w   D a t e ) ; 
 } , t i m e D i f f : f u n c t i o n ( g , b ) { i f ( g = = n u l l ) { g = n e w   D a t e ; } v a r   f = ( ( g - t h i s ) / 1 0 0 0 ) . t o I n t ( ) ; i f ( ! f ) { r e t u r n " 0 s " ; } v a r   a = { s : 6 0 , m : 6 0 , h : 2 4 , d : 3 6 5 , y : 0 } ; v a r   e , d = [ ] ; f o r ( v a r   c   i n   a ) { i f ( ! f ) { b r e a k ; 
 } i f ( ( e = a [ c ] ) ) { d . u n s h i f t ( ( f % e ) + c ) ; f = ( f / e ) . t o I n t ( ) ; } e l s e { d . u n s h i f t ( f + c ) ; } } r e t u r n   d . j o i n ( b | | " : " ) ; } } ) ; D a t e . a l i a s ( " t i m e A g o I n W o r d s " , " t i m e D i f f I n W o r d s " ) ; D a t e . e x t e n d ( { d i s t a n c e O f T i m e I n W o r d s : f u n c t i o n ( b , a ) { r e t u r n   D a t e . g e t T i m e P h r a s e ( ( ( a - b ) / 1 0 0 0 ) . t o I n t ( ) ) ; 
 } , g e t T i m e P h r a s e : f u n c t i o n ( f ) { v a r   d = ( f < 0 ) ? " U n t i l " : " A g o " ; i f ( f < 0 ) { f * = - 1 ; } v a r   b = { m i n u t e : 6 0 , h o u r : 6 0 , d a y : 2 4 , w e e k : 7 , m o n t h : 5 2 / 1 2 , y e a r : 1 2 , e o n : I n f i n i t y } ; v a r   e = " l e s s T h a n M i n u t e " ; 
 f o r ( v a r   c   i n   b ) { v a r   a = b [ c ] ; i f ( f < 1 . 5 * a ) { i f ( f > 0 . 7 5 * a ) { e = c ; } b r e a k ; } f / = a ; e = c + " s " ; } f = f . r o u n d ( ) ; r e t u r n   D a t e . g e t M s g ( e + d , f ) . s u b s t i t u t e ( { d e l t a : f } ) ; } } ) ; D a t e . d e f i n e P a r s e r s ( { r e : / ^ ( ? : t o d | t o m | y e s ) / i , h a n d l e r : f u n c t i o n ( a ) { v a r   b = n e w   D a t e ( ) . c l e a r T i m e ( ) ; 
 s w i t c h ( a [ 0 ] ) { c a s e " t o m " : r e t u r n   b . i n c r e m e n t ( ) ; c a s e " y e s " : r e t u r n   b . d e c r e m e n t ( ) ; d e f a u l t : r e t u r n   b ; } } } , { r e : / ^ ( n e x t | l a s t )   ( [ a - z ] + ) $ / i , h a n d l e r : f u n c t i o n ( e ) { v a r   f = n e w   D a t e ( ) . c l e a r T i m e ( ) ; 
 v a r   b = f . g e t D a y ( ) ; v a r   c = D a t e . p a r s e D a y ( e [ 2 ] , t r u e ) ; v a r   a = c - b ; i f ( c < = b ) { a + = 7 ; } i f ( e [ 1 ] = = " l a s t " ) { a - = 7 ; } r e t u r n   f . s e t ( " d a t e " , f . g e t D a t e ( ) + a ) ; } } ) ; L o c a l e . d e f i n e ( " e n - U S " , " N u m b e r " , { d e c i m a l : " . " , g r o u p : " , " , c u r r e n c y : { p r e f i x : " $   " } } ) ; 
 N u m b e r . i m p l e m e n t ( { f o r m a t : f u n c t i o n ( q ) { v a r   n = t h i s ; i f ( ! q ) { q = { } ; } v a r   a = f u n c t i o n ( i ) { i f ( q [ i ] ! = n u l l ) { r e t u r n   q [ i ] ; } r e t u r n   L o c a l e . g e t ( " N u m b e r . " + i ) ; } ; v a r   f = n < 0 , h = a ( " d e c i m a l " ) , k = a ( " p r e c i s i o n " ) , o = a ( " g r o u p " ) , c = a ( " d e c i m a l s " ) ; 
 i f ( f ) { v a r   e = L o c a l e . g e t ( " N u m b e r . n e g a t i v e " ) | | { } ; i f ( e . p r e f i x = = n u l l & & e . s u f f i x = = n u l l ) { e . p r e f i x = " - " ; } O b j e c t . e a c h ( e , f u n c t i o n ( r , i ) { q [ i ] = ( i = = " p r e f i x " | | i = = " s u f f i x " ) ? ( a ( i ) + r ) : r ; 
 } ) ; n = - n ; } v a r   l = a ( " p r e f i x " ) , p = a ( " s u f f i x " ) ; i f ( c > 0 & & c < = 2 0 ) { n = n . t o F i x e d ( c ) ; } i f ( k > = 1 & & k < = 2 1 ) { n = n . t o P r e c i s i o n ( k ) ; } n + = " " ; i f ( a ( " s c i e n t i f i c " ) = = = f a l s e & & n . i n d e x O f ( " e " ) > - 1 ) { v a r   j = n . s p l i t ( " e " ) , m , b = + j [ 1 ] ; 
 n = j [ 0 ] . r e p l a c e ( " . " , " " ) ; i f ( b < 0 ) { b = - b - 1 ; m = j [ 0 ] . i n d e x O f ( " . " ) ; i f ( m > - 1 ) { b - = m - 1 ; } w h i l e ( b - - ) { n = " 0 " + n ; } n = " 0 . " + n ; } e l s e { m = j [ 0 ] . l a s t I n d e x O f ( " . " ) ; i f ( m > - 1 ) { b - = j [ 0 ] . l e n g t h - m - 1 ; 
 } w h i l e ( b - - ) { n + = " 0 " ; } } } i f ( h ! = " . " ) { n = n . r e p l a c e ( " . " , h ) ; } i f ( o ) { m = n . l a s t I n d e x O f ( h ) ; m = ( m > - 1 ) ? m : n . l e n g t h ; v a r   d = n . s u b s t r i n g ( m ) , g = m ; w h i l e ( g - - ) { i f ( ( m - g - 1 ) % 3 = = 0 & & g ! = ( m - 1 ) ) { d = o + d ; 
 } d = n . c h a r A t ( g ) + d ; } n = d ; } i f ( l ) { n = l + n ; } i f ( p ) { n + = p ; } r e t u r n   n ; } , f o r m a t C u r r e n c y : f u n c t i o n ( ) { v a r   a = L o c a l e . g e t ( " N u m b e r . c u r r e n c y " ) | | { } ; i f ( a . s c i e n t i f i c = = n u l l ) { a . s c i e n t i f i c = f a l s e ; 
 } i f ( a . d e c i m a l s = = n u l l ) { a . d e c i m a l s = 2 ; } r e t u r n   t h i s . f o r m a t ( a ) ; } , f o r m a t P e r c e n t a g e : f u n c t i o n ( ) { v a r   a = L o c a l e . g e t ( " N u m b e r . p e r c e n t a g e " ) | | { } ; i f ( a . s u f f i x = = n u l l ) { a . s u f f i x = " % " ; 
 } i f ( a . d e c i m a l s = = n u l l ) { a . d e c i m a l s = 2 ; } r e t u r n   t h i s . f o r m a t ( a ) ; } } ) ; S t r i n g . i m p l e m e n t ( { p a r s e Q u e r y S t r i n g : f u n c t i o n ( d , a ) { i f ( d = = n u l l ) { d = t r u e ; } i f ( a = = n u l l ) { a = t r u e ; } v a r   c = t h i s . s p l i t ( / [ & ; ] / ) , b = { } ; 
 i f ( ! c . l e n g t h ) { r e t u r n   b ; } c . e a c h ( f u n c t i o n ( i ) { v a r   e = i . i n d e x O f ( " = " ) , g = i . s u b s t r ( e + 1 ) , f = e < 0 ? [ " " ] : i . s u b s t r ( 0 , e ) . m a t c h ( / ( [ ^ \ ] \ [ ] + | ( \ B ) ( ? = \ ] ) ) / g ) , h = b ; i f ( a ) { g = d e c o d e U R I C o m p o n e n t ( g ) ; 
 } f . e a c h ( f u n c t i o n ( k , j ) { i f ( d ) { k = d e c o d e U R I C o m p o n e n t ( k ) ; } v a r   l = h [ k ] ; i f ( j < f . l e n g t h - 1 ) { h = h [ k ] = l | | { } ; } e l s e { i f ( t y p e O f ( l ) = = " a r r a y " ) { l . p u s h ( g ) ; } e l s e { h [ k ] = l ! = n u l l ? [ l , g ] : g ; 
 } } } ) ; } ) ; r e t u r n   b ; } , c l e a n Q u e r y S t r i n g : f u n c t i o n ( a ) { r e t u r n   t h i s . s p l i t ( " & " ) . f i l t e r ( f u n c t i o n ( e ) { v a r   b = e . i n d e x O f ( " = " ) , c = b < 0 ? " " : e . s u b s t r ( 0 , b ) , d = e . s u b s t r ( b + 1 ) ; r e t u r n   a ? a . c a l l ( n u l l , c , d ) : ( d | | d = = = 0 ) ; 
 } ) . j o i n ( " & " ) ; } } ) ; ( f u n c t i o n ( ) { v a r   b = f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " v a l u e " ) ; } ; v a r   a = t h i s . U R I = n e w   C l a s s ( { I m p l e m e n t s : O p t i o n s , o p t i o n s : { } , r e g e x : / ^ ( ? : ( \ w + ) : ) ? ( ? : \ / \ / ( ? : ( ? : ( [ ^ : @ \ / ] * ) : ? ( [ ^ : @ \ / ] * ) ) ? @ ) ? ( [ ^ : \ / ? # ] * ) ( ? : : ( \ d * ) ) ? ) ? ( \ . \ . ? $ | ( ? : [ ^ ? # \ / ] * \ / ) * ) ( [ ^ ? # ] * ) ( ? : \ ? ( [ ^ # ] * ) ) ? ( ? : # ( . * ) ) ? / , p a r t s : [ " s c h e m e " , " u s e r " , " p a s s w o r d " , " h o s t " , " p o r t " , " d i r e c t o r y " , " f i l e " , " q u e r y " , " f r a g m e n t " ] , s c h e m e s : { h t t p : 8 0 , h t t p s : 4 4 3 , f t p : 2 1 , r t s p : 5 5 4 , m m s : 1 7 5 5 , f i l e : 0 } , i n i t i a l i z e : f u n c t i o n ( d , c ) { t h i s . s e t O p t i o n s ( c ) ; 
 v a r   e = t h i s . o p t i o n s . b a s e | | a . b a s e ; i f ( ! d ) { d = e ; } i f ( d & & d . p a r s e d ) { t h i s . p a r s e d = O b j e c t . c l o n e ( d . p a r s e d ) ; } e l s e { t h i s . s e t ( " v a l u e " , d . h r e f | | d . t o S t r i n g ( ) , e ? n e w   a ( e ) : f a l s e ) ; 
 } } , p a r s e : f u n c t i o n ( e , d ) { v a r   c = e . m a t c h ( t h i s . r e g e x ) ; i f ( ! c ) { r e t u r n   f a l s e ; } c . s h i f t ( ) ; r e t u r n   t h i s . m e r g e ( c . a s s o c i a t e ( t h i s . p a r t s ) , d ) ; } , m e r g e : f u n c t i o n ( d , c ) { i f ( ( ! d | | ! d . s c h e m e ) & & ( ! c | | ! c . s c h e m e ) ) { r e t u r n   f a l s e ; 
 } i f ( c ) { t h i s . p a r t s . e v e r y ( f u n c t i o n ( e ) { i f ( d [ e ] ) { r e t u r n   f a l s e ; } d [ e ] = c [ e ] | | " " ; r e t u r n   t r u e ; } ) ; } d . p o r t = d . p o r t | | t h i s . s c h e m e s [ d . s c h e m e . t o L o w e r C a s e ( ) ] ; d . d i r e c t o r y = d . d i r e c t o r y ? t h i s . p a r s e D i r e c t o r y ( d . d i r e c t o r y , c ? c . d i r e c t o r y : " " ) : " / " ; 
 r e t u r n   d ; } , p a r s e D i r e c t o r y : f u n c t i o n ( d , e ) { d = ( d . s u b s t r ( 0 , 1 ) = = " / " ? " " : ( e | | " / " ) ) + d ; i f ( ! d . t e s t ( a . r e g s . d i r e c t o r y D o t ) ) { r e t u r n   d ; } v a r   c = [ ] ; d . r e p l a c e ( a . r e g s . e n d S l a s h , " " ) . s p l i t ( " / " ) . e a c h ( f u n c t i o n ( f ) { i f ( f = = " . . " & & c . l e n g t h > 0 ) { c . p o p ( ) ; 
 } e l s e { i f ( f ! = " . " ) { c . p u s h ( f ) ; } } } ) ; r e t u r n   c . j o i n ( " / " ) + " / " ; } , c o m b i n e : f u n c t i o n ( c ) { r e t u r n   c . v a l u e | | c . s c h e m e + " : / / " + ( c . u s e r ? c . u s e r + ( c . p a s s w o r d ? " : " + c . p a s s w o r d : " " ) + " @ " : " " ) + ( c . h o s t | | " " ) + ( c . p o r t & & c . p o r t ! = t h i s . s c h e m e s [ c . s c h e m e ] ? " : " + c . p o r t : " " ) + ( c . d i r e c t o r y | | " / " ) + ( c . f i l e | | " " ) + ( c . q u e r y ? " ? " + c . q u e r y : " " ) + ( c . f r a g m e n t ? " # " + c . f r a g m e n t : " " ) ; 
 } , s e t : f u n c t i o n ( d , f , e ) { i f ( d = = " v a l u e " ) { v a r   c = f . m a t c h ( a . r e g s . s c h e m e ) ; i f ( c ) { c = c [ 1 ] ; } i f ( c & & t h i s . s c h e m e s [ c . t o L o w e r C a s e ( ) ] = = n u l l ) { t h i s . p a r s e d = { s c h e m e : c , v a l u e : f } ; 
 } e l s e { t h i s . p a r s e d = t h i s . p a r s e ( f , ( e | | t h i s ) . p a r s e d ) | | ( c ? { s c h e m e : c , v a l u e : f } : { v a l u e : f } ) ; } } e l s e { i f ( d = = " d a t a " ) { t h i s . s e t D a t a ( f ) ; } e l s e { t h i s . p a r s e d [ d ] = f ; } } r e t u r n   t h i s ; 
 } , g e t : f u n c t i o n ( c , d ) { s w i t c h ( c ) { c a s e " v a l u e " : r e t u r n   t h i s . c o m b i n e ( t h i s . p a r s e d , d ? d . p a r s e d : f a l s e ) ; c a s e " d a t a " : r e t u r n   t h i s . g e t D a t a ( ) ; } r e t u r n   t h i s . p a r s e d [ c ] | | " " ; 
 } , g o : f u n c t i o n ( ) { d o c u m e n t . l o c a t i o n . h r e f = t h i s . t o S t r i n g ( ) ; } , t o U R I : f u n c t i o n ( ) { r e t u r n   t h i s ; } , g e t D a t a : f u n c t i o n ( e , d ) { v a r   c = t h i s . g e t ( d | | " q u e r y " ) ; i f ( ! ( c | | c = = = 0 ) ) { r e t u r n   e ? n u l l : { } ; 
 } v a r   f = c . p a r s e Q u e r y S t r i n g ( ) ; r e t u r n   e ? f [ e ] : f ; } , s e t D a t a : f u n c t i o n ( c , f , d ) { i f ( t y p e o f   c = = " s t r i n g " ) { v a r   e = t h i s . g e t D a t a ( ) ; e [ a r g u m e n t s [ 0 ] ] = a r g u m e n t s [ 1 ] ; c = e ; } e l s e { i f ( f ) { c = O b j e c t . m e r g e ( t h i s . g e t D a t a ( ) , c ) ; 
 } } r e t u r n   t h i s . s e t ( d | | " q u e r y " , O b j e c t . t o Q u e r y S t r i n g ( c ) ) ; } , c l e a r D a t a : f u n c t i o n ( c ) { r e t u r n   t h i s . s e t ( c | | " q u e r y " , " " ) ; } , t o S t r i n g : b , v a l u e O f : b } ) ; a . r e g s = { e n d S l a s h : / \ / $ / , s c h e m e : / ^ ( \ w + ) : / , d i r e c t o r y D o t : / \ . \ / | \ . $ / } ; 
 a . b a s e = n e w   a ( A r r a y . f r o m ( d o c u m e n t . g e t E l e m e n t s ( " b a s e [ h r e f ] " , t r u e ) ) . g e t L a s t ( ) , { b a s e : d o c u m e n t . l o c a t i o n } ) ; S t r i n g . i m p l e m e n t ( { t o U R I : f u n c t i o n ( c ) { r e t u r n   n e w   a ( t h i s , c ) ; 
 } } ) ; } ) ( ) ; C l a s s . r e f a c t o r = f u n c t i o n ( b , a ) { O b j e c t . e a c h ( a , f u n c t i o n ( e , d ) { v a r   c = b . p r o t o t y p e [ d ] ; i f ( c & & c . $ o r i g i n ) { c = c . $ o r i g i n ; } i f ( c & & t y p e o f   e = = " f u n c t i o n " ) { b . i m p l e m e n t ( d , f u n c t i o n ( ) { v a r   f = t h i s . p r e v i o u s ; 
 t h i s . p r e v i o u s = c ; v a r   g = e . a p p l y ( t h i s , a r g u m e n t s ) ; t h i s . p r e v i o u s = f ; r e t u r n   g ; } ) ; } e l s e { b . i m p l e m e n t ( d , e ) ; } } ) ; r e t u r n   b ; } ; U R I = C l a s s . r e f a c t o r ( U R I , { c o m b i n e : f u n c t i o n ( f , e ) { i f ( ! e | | f . s c h e m e ! = e . s c h e m e | | f . h o s t ! = e . h o s t | | f . p o r t ! = e . p o r t ) { r e t u r n   t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; 
 } v a r   a = f . f i l e + ( f . q u e r y ? " ? " + f . q u e r y : " " ) + ( f . f r a g m e n t ? " # " + f . f r a g m e n t : " " ) ; i f ( ! e . d i r e c t o r y ) { r e t u r n ( f . d i r e c t o r y | | ( f . f i l e ? " " : " . / " ) ) + a ; } v a r   d = e . d i r e c t o r y . s p l i t ( " / " ) , c = f . d i r e c t o r y . s p l i t ( " / " ) , g = " " , h ; 
 v a r   b = 0 ; f o r ( h = 0 ; h < d . l e n g t h & & h < c . l e n g t h & & d [ h ] = = c [ h ] ; h + + ) { } f o r ( b = 0 ; b < d . l e n g t h - h - 1 ; b + + ) { g + = " . . / " ; } f o r ( b = h ; b < c . l e n g t h - 1 ; b + + ) { g + = c [ b ] + " / " ; } r e t u r n ( g | | ( f . f i l e ? " " : " . / " ) ) + a ; 
 } , t o A b s o l u t e : f u n c t i o n ( a ) { a = n e w   U R I ( a ) ; i f ( a ) { a . s e t ( " d i r e c t o r y " , " " ) . s e t ( " f i l e " , " " ) ; } r e t u r n   t h i s . t o R e l a t i v e ( a ) ; } , t o R e l a t i v e : f u n c t i o n ( a ) { r e t u r n   t h i s . g e t ( " v a l u e " , n e w   U R I ( a ) ) ; 
 } } ) ; ( f u n c t i o n ( ) { i f ( t h i s . H a s h ) { r e t u r n ; } v a r   a = t h i s . H a s h = n e w   T y p e ( " H a s h " , f u n c t i o n ( b ) { i f ( t y p e O f ( b ) = = " h a s h " ) { b = O b j e c t . c l o n e ( b . g e t C l e a n ( ) ) ; } f o r ( v a r   c   i n   b ) { t h i s [ c ] = b [ c ] ; 
 } r e t u r n   t h i s ; } ) ; t h i s . $ H = f u n c t i o n ( b ) { r e t u r n   n e w   a ( b ) ; } ; a . i m p l e m e n t ( { f o r E a c h : f u n c t i o n ( b , c ) { O b j e c t . f o r E a c h ( t h i s , b , c ) ; } , g e t C l e a n : f u n c t i o n ( ) { v a r   c = { } ; f o r ( v a r   b   i n   t h i s ) { i f ( t h i s . h a s O w n P r o p e r t y ( b ) ) { c [ b ] = t h i s [ b ] ; 
 } } r e t u r n   c ; } , g e t L e n g t h : f u n c t i o n ( ) { v a r   c = 0 ; f o r ( v a r   b   i n   t h i s ) { i f ( t h i s . h a s O w n P r o p e r t y ( b ) ) { c + + ; } } r e t u r n   c ; } } ) ; a . a l i a s ( " e a c h " , " f o r E a c h " ) ; a . i m p l e m e n t ( { h a s : O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y , k e y O f : f u n c t i o n ( b ) { r e t u r n   O b j e c t . k e y O f ( t h i s , b ) ; 
 } , h a s V a l u e : f u n c t i o n ( b ) { r e t u r n   O b j e c t . c o n t a i n s ( t h i s , b ) ; } , e x t e n d : f u n c t i o n ( b ) { a . e a c h ( b | | { } , f u n c t i o n ( d , c ) { a . s e t ( t h i s , c , d ) ; } , t h i s ) ; r e t u r n   t h i s ; } , c o m b i n e : f u n c t i o n ( b ) { a . e a c h ( b | | { } , f u n c t i o n ( d , c ) { a . i n c l u d e ( t h i s , c , d ) ; 
 } , t h i s ) ; r e t u r n   t h i s ; } , e r a s e : f u n c t i o n ( b ) { i f ( t h i s . h a s O w n P r o p e r t y ( b ) ) { d e l e t e   t h i s [ b ] ; } r e t u r n   t h i s ; } , g e t : f u n c t i o n ( b ) { r e t u r n ( t h i s . h a s O w n P r o p e r t y ( b ) ) ? t h i s [ b ] : n u l l ; 
 } , s e t : f u n c t i o n ( b , c ) { i f ( ! t h i s [ b ] | | t h i s . h a s O w n P r o p e r t y ( b ) ) { t h i s [ b ] = c ; } r e t u r n   t h i s ; } , e m p t y : f u n c t i o n ( ) { a . e a c h ( t h i s , f u n c t i o n ( c , b ) { d e l e t e   t h i s [ b ] ; } , t h i s ) ; r e t u r n   t h i s ; 
 } , i n c l u d e : f u n c t i o n ( b , c ) { i f ( t h i s [ b ] = = u n d e f i n e d ) { t h i s [ b ] = c ; } r e t u r n   t h i s ; } , m a p : f u n c t i o n ( b , c ) { r e t u r n   n e w   a ( O b j e c t . m a p ( t h i s , b , c ) ) ; } , f i l t e r : f u n c t i o n ( b , c ) { r e t u r n   n e w   a ( O b j e c t . f i l t e r ( t h i s , b , c ) ) ; 
 } , e v e r y : f u n c t i o n ( b , c ) { r e t u r n   O b j e c t . e v e r y ( t h i s , b , c ) ; } , s o m e : f u n c t i o n ( b , c ) { r e t u r n   O b j e c t . s o m e ( t h i s , b , c ) ; } , g e t K e y s : f u n c t i o n ( ) { r e t u r n   O b j e c t . k e y s ( t h i s ) ; } , g e t V a l u e s : f u n c t i o n ( ) { r e t u r n   O b j e c t . v a l u e s ( t h i s ) ; 
 } , t o Q u e r y S t r i n g : f u n c t i o n ( b ) { r e t u r n   O b j e c t . t o Q u e r y S t r i n g ( t h i s , b ) ; } } ) ; a . a l i a s ( { i n d e x O f : " k e y O f " , c o n t a i n s : " h a s V a l u e " } ) ; } ) ( ) ; H a s h . i m p l e m e n t ( { g e t F r o m P a t h : f u n c t i o n ( a ) { r e t u r n   O b j e c t . g e t F r o m P a t h ( t h i s , a ) ; 
 } , c l e a n V a l u e s : f u n c t i o n ( a ) { r e t u r n   n e w   H a s h ( O b j e c t . c l e a n V a l u e s ( t h i s , a ) ) ; } , r u n : f u n c t i o n ( ) { O b j e c t . r u n ( a r g u m e n t s ) ; } } ) ; E v e n t s . P s e u d o s = f u n c t i o n ( f , c , d ) { v a r   b = " m o n i t o r E v e n t s : " ; 
 v a r   a = f u n c t i o n ( g ) { r e t u r n { s t o r e : g . s t o r e ? f u n c t i o n ( h , i ) { g . s t o r e ( b + h , i ) ; } : f u n c t i o n ( h , i ) { ( g . $ m o n i t o r E v e n t s | | ( g . $ m o n i t o r E v e n t s = { } ) ) [ h ] = i ; } , r e t r i e v e : g . r e t r i e v e ? f u n c t i o n ( h , i ) { r e t u r n   g . r e t r i e v e ( b + h , i ) ; 
 } : f u n c t i o n ( h , i ) { i f ( ! g . $ m o n i t o r E v e n t s ) { r e t u r n   i ; } r e t u r n   g . $ m o n i t o r E v e n t s [ h ] | | i ; } } ; } ; v a r   e = f u n c t i o n ( h ) { i f ( h . i n d e x O f ( " : " ) = = - 1 ) { r e t u r n   n u l l ; } v a r   g = S l i c k . p a r s e ( h ) . e x p r e s s i o n s [ 0 ] [ 0 ] , i = g . p s e u d o s ; 
 r e t u r n ( f & & f [ i [ 0 ] . k e y ] ) ? { e v e n t : g . t a g , v a l u e : i [ 0 ] . v a l u e , p s e u d o : i [ 0 ] . k e y , o r i g i n a l : h } : n u l l ; } ; r e t u r n { a d d E v e n t : f u n c t i o n ( l , n , i ) { v a r   m = e ( l ) ; i f ( ! m ) { r e t u r n   c . c a l l ( t h i s , l , n , i ) ; 
 } v a r   j = a ( t h i s ) , q = j . r e t r i e v e ( l , [ ] ) , g = A r r a y . f r o m ( f [ m . p s e u d o ] ) , k = g [ 1 ] ; v a r   p = t h i s ; v a r   o = f u n c t i o n ( ) { g [ 0 ] . c a l l ( p , m , n , a r g u m e n t s , k ) ; } ; q . i n c l u d e ( { e v e n t : n , m o n i t o r : o } ) ; 
 j . s t o r e ( l , q ) ; v a r   h = m . e v e n t ; i f ( k & & k [ h ] ) { h = k [ h ] . b a s e ; } c . c a l l ( t h i s , l , n , i ) ; r e t u r n   c . c a l l ( t h i s , h , o , i ) ; } , r e m o v e E v e n t : f u n c t i o n ( m , l ) { v a r   k = e ( m ) ; i f ( ! k ) { r e t u r n   d . c a l l ( t h i s , m , l ) ; 
 } v a r   n = a ( t h i s ) , j = n . r e t r i e v e ( m ) , i = A r r a y . f r o m ( f [ k . p s e u d o ] ) , h = i [ 1 ] ; i f ( ! j ) { r e t u r n   t h i s ; } v a r   g = k . e v e n t ; i f ( h & & h [ g ] ) { g = h [ g ] . b a s e ; } d . c a l l ( t h i s , m , l ) ; j . e a c h ( f u n c t i o n ( o , p ) { i f ( ! l | | o . e v e n t = = l ) { d . c a l l ( t h i s , g , o . m o n i t o r ) ; 
 } d e l e t e   j [ p ] ; } , t h i s ) ; n . s t o r e ( m , j ) ; r e t u r n   t h i s ; } } ; } ; ( f u n c t i o n ( ) { v a r   b = { o n c e : f u n c t i o n ( d , e , c ) { e . a p p l y ( t h i s , c ) ; t h i s . r e m o v e E v e n t ( d . o r i g i n a l , e ) ; } } ; E v e n t s . d e f i n e P s e u d o = f u n c t i o n ( c , d ) { b [ c ] = d ; 
 } ; v a r   a = E v e n t s . p r o t o t y p e ; E v e n t s . i m p l e m e n t ( E v e n t s . P s e u d o s ( b , a . a d d E v e n t , a . r e m o v e E v e n t ) ) ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   b = { o n c e : f u n c t i o n ( d , e , c ) { e . a p p l y ( t h i s , c ) ; t h i s . r e m o v e E v e n t ( d . o r i g i n a l , e ) ; 
 } } ; E v e n t . d e f i n e P s e u d o = f u n c t i o n ( d , e , c ) { b [ d ] = [ e , c ] ; } ; v a r   a = E l e m e n t . p r o t o t y p e ; [ E l e m e n t , W i n d o w , D o c u m e n t ] . i n v o k e ( " i m p l e m e n t " , E v e n t s . P s e u d o s ( b , a . a d d E v e n t , a . r e m o v e E v e n t ) ) ; 
 } ) ( ) ; E v e n t . d e f i n e P s e u d o ( " r e l a y " , f u n c t i o n ( d , e , b , c ) { v a r   f = b [ 0 ] ; v a r   a = c ? c . c o n d i t i o n : n u l l ; f o r ( v a r   h = f . t a r g e t ; h & & h ! = t h i s ; h = h . p a r e n t N o d e ) { v a r   g = d o c u m e n t . i d ( h ) ; 
 i f ( S l i c k . m a t c h ( h , d . v a l u e ) & & ( ! a | | a . c a l l ( g , f ) ) ) { i f ( g ) { e . c a l l ( g , f , g ) ; } r e t u r n ; } } } , { m o u s e e n t e r : { b a s e : " m o u s e o v e r " , c o n d i t i o n : E l e m e n t . E v e n t s . m o u s e e n t e r . c o n d i t i o n } , m o u s e l e a v e : { b a s e : " m o u s e o u t " , c o n d i t i o n : E l e m e n t . E v e n t s . m o u s e l e a v e . c o n d i t i o n } } ) ; 
 C l a s s . M u t a t o r s . B i n d s = f u n c t i o n ( a ) { r e t u r n   a ; } ; C l a s s . M u t a t o r s . i n i t i a l i z e = f u n c t i o n ( a ) { r e t u r n   f u n c t i o n ( ) { A r r a y . f r o m ( t h i s . B i n d s ) . e a c h ( f u n c t i o n ( b ) { v a r   c = t h i s [ b ] ; 
 i f ( c ) { t h i s [ b ] = c . b i n d ( t h i s ) ; } } , t h i s ) ; r e t u r n   a . a p p l y ( t h i s , a r g u m e n t s ) ; } ; } ; C l a s s . O c c l u d e = n e w   C l a s s ( { o c c l u d e : f u n c t i o n ( c , b ) { b = d o c u m e n t . i d ( b | | t h i s . e l e m e n t ) ; v a r   a = b . r e t r i e v e ( c | | t h i s . p r o p e r t y ) ; 
 i f ( a & & t h i s . o c c l u d e d ! = n u l l ) { r e t u r n   t h i s . o c c l u d e d = a ; } t h i s . o c c l u d e d = f a l s e ; b . s t o r e ( c | | t h i s . p r o p e r t y , t h i s ) ; r e t u r n   t h i s . o c c l u d e d ; } } ) ; ( f u n c t i o n ( ) { v a r   a = f u n c t i o n ( d , c ) { v a r   e = [ ] ; 
 O b j e c t . e a c h ( c , f u n c t i o n ( f ) { O b j e c t . e a c h ( f , f u n c t i o n ( g ) { d . e a c h ( f u n c t i o n ( h ) { e . p u s h ( h + " - " + g + ( h = = " b o r d e r " ? " - w i d t h " : " " ) ) ; } ) ; } ) ; } ) ; r e t u r n   e ; } ; v a r   b = f u n c t i o n ( e , d ) { v a r   c = 0 ; 
 O b j e c t . e a c h ( d , f u n c t i o n ( g , f ) { i f ( f . t e s t ( e ) ) { c = c + g . t o I n t ( ) ; } } ) ; r e t u r n   c ; } ; E l e m e n t . i m p l e m e n t ( { m e a s u r e : f u n c t i o n ( h ) { v a r   d = f u n c t i o n ( j ) { r e t u r n   ! ! ( ! j | | j . o f f s e t H e i g h t | | j . o f f s e t W i d t h ) ; 
 } ; i f ( d ( t h i s ) ) { r e t u r n   h . a p p l y ( t h i s ) ; } v a r   g = t h i s . g e t P a r e n t ( ) , i = [ ] , e = [ ] ; w h i l e ( ! d ( g ) & & g ! = d o c u m e n t . b o d y ) { e . p u s h ( g . e x p o s e ( ) ) ; g = g . g e t P a r e n t ( ) ; } v a r   f = t h i s . e x p o s e ( ) ; 
 v a r   c = h . a p p l y ( t h i s ) ; f ( ) ; e . e a c h ( f u n c t i o n ( j ) { j ( ) ; } ) ; r e t u r n   c ; } , e x p o s e : f u n c t i o n ( ) { i f ( t h i s . g e t S t y l e ( " d i s p l a y " ) ! = " n o n e " ) { r e t u r n   f u n c t i o n ( ) { } ; } v a r   c = t h i s . s t y l e . c s s T e x t ; 
 t h i s . s e t S t y l e s ( { d i s p l a y : " b l o c k " , p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " h i d d e n " } ) ; r e t u r n   f u n c t i o n ( ) { t h i s . s t y l e . c s s T e x t = c ; } . b i n d ( t h i s ) ; } , g e t D i m e n s i o n s : f u n c t i o n ( c ) { c = O b j e c t . m e r g e ( { c o m p u t e S i z e : f a l s e } , c ) ; 
 v a r   h = { x : 0 , y : 0 } ; v a r   g = f u n c t i o n ( i , e ) { r e t u r n ( e . c o m p u t e S i z e ) ? i . g e t C o m p u t e d S i z e ( e ) : i . g e t S i z e ( ) ; } ; v a r   d = t h i s . g e t P a r e n t ( " b o d y " ) ; i f ( d & & t h i s . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { h = t h i s . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   g ( t h i s , c ) ; 
 } ) ; } e l s e { i f ( d ) { t r y { h = g ( t h i s , c ) ; } c a t c h ( f ) { } } } r e t u r n   O b j e c t . a p p e n d ( h , ( h . x | | h . x = = = 0 ) ? { w i d t h : h . x , h e i g h t : h . y } : { x : h . w i d t h , y : h . h e i g h t } ) ; } , g e t C o m p u t e d S i z e : f u n c t i o n ( c ) { i f ( c & & c . p l a i n s ) { c . p l a n e s = c . p l a i n s ; 
 } c = O b j e c t . m e r g e ( { s t y l e s : [ " p a d d i n g " , " b o r d e r " ] , p l a n e s : { h e i g h t : [ " t o p " , " b o t t o m " ] , w i d t h : [ " l e f t " , " r i g h t " ] } , m o d e : " b o t h " } , c ) ; v a r   e = { } , d = { w i d t h : 0 , h e i g h t : 0 } ; i f ( c . m o d e = = " v e r t i c a l " ) { d e l e t e   d . w i d t h ; 
 d e l e t e   c . p l a n e s . w i d t h ; } e l s e { i f ( c . m o d e = = " h o r i z o n t a l " ) { d e l e t e   d . h e i g h t ; d e l e t e   c . p l a n e s . h e i g h t ; } } a ( c . s t y l e s , c . p l a n e s ) . e a c h ( f u n c t i o n ( f ) { e [ f ] = t h i s . g e t S t y l e ( f ) . t o I n t ( ) ; 
 } , t h i s ) ; O b j e c t . e a c h ( c . p l a n e s , f u n c t i o n ( g , f ) { v a r   h = f . c a p i t a l i z e ( ) ; e [ f ] = t h i s . g e t S t y l e ( f ) . t o I n t ( ) ; d [ " t o t a l " + h ] = e [ f ] ; g . e a c h ( f u n c t i o n ( j ) { v a r   i = b ( j , e ) ; d [ " c o m p u t e d " + j . c a p i t a l i z e ( ) ] = i ; 
 d [ " t o t a l " + h ] + = i ; } ) ; } , t h i s ) ; r e t u r n   O b j e c t . a p p e n d ( d , e ) ; } } ) ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   a = E l e m e n t . p r o t o t y p e . p o s i t i o n ; E l e m e n t . i m p l e m e n t ( { p o s i t i o n : f u n c t i o n ( g ) { i f ( g & & ( g . x ! = n u l l | | g . y ! = n u l l ) ) { r e t u r n   a ? a . a p p l y ( t h i s , a r g u m e n t s ) : t h i s ; 
 } O b j e c t . e a c h ( g | | { } , f u n c t i o n ( u , t ) { i f ( u = = n u l l ) { d e l e t e   g [ t ] ; } } ) ; g = O b j e c t . m e r g e ( { r e l a t i v e T o : d o c u m e n t . b o d y , p o s i t i o n : { x : " c e n t e r " , y : " c e n t e r " } , o f f s e t : { x : 0 , y : 0 } } , g ) ; 
 v a r   r = { x : 0 , y : 0 } , e = f a l s e ; v a r   c = t h i s . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   d o c u m e n t . i d ( t h i s . g e t O f f s e t P a r e n t ( ) ) ; } ) ; i f ( c & & c ! = t h i s . g e t D o c u m e n t ( ) . b o d y ) { r = c . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   t h i s . g e t P o s i t i o n ( ) ; 
 } ) ; e = c ! = d o c u m e n t . i d ( g . r e l a t i v e T o ) ; g . o f f s e t . x = g . o f f s e t . x - r . x ; g . o f f s e t . y = g . o f f s e t . y - r . y ; } v a r   s = f u n c t i o n ( t ) { i f ( t y p e O f ( t ) ! = " s t r i n g " ) { r e t u r n   t ; } t = t . t o L o w e r C a s e ( ) ; 
 v a r   u = { } ; i f ( t . t e s t ( " l e f t " ) ) { u . x = " l e f t " ; } e l s e { i f ( t . t e s t ( " r i g h t " ) ) { u . x = " r i g h t " ; } e l s e { u . x = " c e n t e r " ; } } i f ( t . t e s t ( " u p p e r " ) | | t . t e s t ( " t o p " ) ) { u . y = " t o p " ; } e l s e { i f ( t . t e s t ( " b o t t o m " ) ) { u . y = " b o t t o m " ; 
 } e l s e { u . y = " c e n t e r " ; } } r e t u r n   u ; } ; g . e d g e = s ( g . e d g e ) ; g . p o s i t i o n = s ( g . p o s i t i o n ) ; i f ( ! g . e d g e ) { i f ( g . p o s i t i o n . x = = " c e n t e r " & & g . p o s i t i o n . y = = " c e n t e r " ) { g . e d g e = { x : " c e n t e r " , y : " c e n t e r " } ; 
 } e l s e { g . e d g e = { x : " l e f t " , y : " t o p " } ; } } t h i s . s e t S t y l e ( " p o s i t i o n " , " a b s o l u t e " ) ; v a r   f = d o c u m e n t . i d ( g . r e l a t i v e T o ) | | d o c u m e n t . b o d y , d = f = = d o c u m e n t . b o d y ? w i n d o w . g e t S c r o l l ( ) : f . g e t P o s i t i o n ( ) , l = d . y , h = d . x ; 
 v a r   n = t h i s . g e t D i m e n s i o n s ( { c o m p u t e S i z e : t r u e , s t y l e s : [ " p a d d i n g " , " b o r d e r " , " m a r g i n " ] } ) ; v a r   j = { } , o = g . o f f s e t . y , q = g . o f f s e t . x , k = w i n d o w . g e t S i z e ( ) ; s w i t c h ( g . p o s i t i o n . x ) { c a s e " l e f t " : j . x = h + q ; 
 b r e a k ; c a s e " r i g h t " : j . x = h + q + f . o f f s e t W i d t h ; b r e a k ; d e f a u l t : j . x = h + ( ( f = = d o c u m e n t . b o d y ? k . x : f . o f f s e t W i d t h ) / 2 ) + q ; b r e a k ; } s w i t c h ( g . p o s i t i o n . y ) { c a s e " t o p " : j . y = l + o ; b r e a k ; 
 c a s e " b o t t o m " : j . y = l + o + f . o f f s e t H e i g h t ; b r e a k ; d e f a u l t : j . y = l + ( ( f = = d o c u m e n t . b o d y ? k . y : f . o f f s e t H e i g h t ) / 2 ) + o ; b r e a k ; } i f ( g . e d g e ) { v a r   b = { } ; s w i t c h ( g . e d g e . x ) { c a s e " l e f t " : b . x = 0 ; 
 b r e a k ; c a s e " r i g h t " : b . x = - n . x - n . c o m p u t e d R i g h t - n . c o m p u t e d L e f t ; b r e a k ; d e f a u l t : b . x = - ( n . t o t a l W i d t h / 2 ) ; b r e a k ; } s w i t c h ( g . e d g e . y ) { c a s e " t o p " : b . y = 0 ; b r e a k ; c a s e " b o t t o m " : b . y = - n . y - n . c o m p u t e d T o p - n . c o m p u t e d B o t t o m ; 
 b r e a k ; d e f a u l t : b . y = - ( n . t o t a l H e i g h t / 2 ) ; b r e a k ; } j . x + = b . x ; j . y + = b . y ; } j = { l e f t : ( ( j . x > = 0 | | e | | g . a l l o w N e g a t i v e ) ? j . x : 0 ) . t o I n t ( ) , t o p : ( ( j . y > = 0 | | e | | g . a l l o w N e g a t i v e ) ? j . y : 0 ) . t o I n t ( ) } ; 
 v a r   i = { l e f t : " x " , t o p : " y " } ; [ " m i n i m u m " , " m a x i m u m " ] . e a c h ( f u n c t i o n ( t ) { [ " l e f t " , " t o p " ] . e a c h ( f u n c t i o n ( u ) { v a r   v = g [ t ] ? g [ t ] [ i [ u ] ] : n u l l ; i f ( v ! = n u l l & & ( ( t = = " m i n i m u m " ) ? j [ u ] < v : j [ u ] > v ) ) { j [ u ] = v ; 
 } } ) ; } ) ; i f ( f . g e t S t y l e ( " p o s i t i o n " ) = = " f i x e d " | | g . r e l F i x e d P o s i t i o n ) { v a r   m = w i n d o w . g e t S c r o l l ( ) ; j . t o p + = m . y ; j . l e f t + = m . x ; } i f ( g . i g n o r e S c r o l l ) { v a r   p = f . g e t S c r o l l ( ) ; 
 j . t o p - = p . y ; j . l e f t - = p . x ; } i f ( g . i g n o r e M a r g i n s ) { j . l e f t + = ( g . e d g e . x = = " r i g h t " ? n [ " m a r g i n - r i g h t " ] : g . e d g e . x = = " c e n t e r " ? - n [ " m a r g i n - l e f t " ] + ( ( n [ " m a r g i n - r i g h t " ] + n [ " m a r g i n - l e f t " ] ) / 2 ) : - n [ " m a r g i n - l e f t " ] ) ; 
 j . t o p + = ( g . e d g e . y = = " b o t t o m " ? n [ " m a r g i n - b o t t o m " ] : g . e d g e . y = = " c e n t e r " ? - n [ " m a r g i n - t o p " ] + ( ( n [ " m a r g i n - b o t t o m " ] + n [ " m a r g i n - t o p " ] ) / 2 ) : - n [ " m a r g i n - t o p " ] ) ; } j . l e f t = M a t h . c e i l ( j . l e f t ) ; 
 j . t o p = M a t h . c e i l ( j . t o p ) ; i f ( g . r e t u r n P o s ) { r e t u r n   j ; } e l s e { t h i s . s e t S t y l e s ( j ) ; } r e t u r n   t h i s ; } } ) ; } ) ( ) ; v a r   I f r a m e S h i m = n e w   C l a s s ( { I m p l e m e n t s : [ O p t i o n s , E v e n t s , C l a s s . O c c l u d e ] , o p t i o n s : { c l a s s N a m e : " i f r a m e S h i m " , s r c : ' j a v a s c r i p t : f a l s e ; d o c u m e n t . w r i t e ( " " ) ; ' , d i s p l a y : f a l s e , z I n d e x : n u l l , m a r g i n : 0 , o f f s e t : { x : 0 , y : 0 } , b r o w s e r s : ( ( B r o w s e r . i e & & B r o w s e r . v e r s i o n = = 6 ) | | ( B r o w s e r . f i r e f o x & & B r o w s e r . v e r s i o n < 3 & & B r o w s e r . P l a t f o r m . m a c ) ) } , p r o p e r t y : " I f r a m e S h i m " , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . e l e m e n t = d o c u m e n t . i d ( b ) ; 
 i f ( t h i s . o c c l u d e ( ) ) { r e t u r n   t h i s . o c c l u d e d ; } t h i s . s e t O p t i o n s ( a ) ; t h i s . m a k e S h i m ( ) ; r e t u r n   t h i s ; } , m a k e S h i m : f u n c t i o n ( ) { i f ( t h i s . o p t i o n s . b r o w s e r s ) { v a r   c = t h i s . e l e m e n t . g e t S t y l e ( " z I n d e x " ) . t o I n t ( ) ; 
 i f ( ! c ) { c = 1 ; v a r   b = t h i s . e l e m e n t . g e t S t y l e ( " p o s i t i o n " ) ; i f ( b = = " s t a t i c " | | ! b ) { t h i s . e l e m e n t . s e t S t y l e ( " p o s i t i o n " , " r e l a t i v e " ) ; } t h i s . e l e m e n t . s e t S t y l e ( " z I n d e x " , c ) ; 
 } c = ( ( t h i s . o p t i o n s . z I n d e x ! = n u l l | | t h i s . o p t i o n s . z I n d e x = = = 0 ) & & c > t h i s . o p t i o n s . z I n d e x ) ? t h i s . o p t i o n s . z I n d e x : c - 1 ; i f ( c < 0 ) { c = 1 ; } t h i s . s h i m = n e w   E l e m e n t ( " i f r a m e " , { s r c : t h i s . o p t i o n s . s r c , s c r o l l i n g : " n o " , f r a m e b o r d e r : 0 , s t y l e s : { z I n d e x : c , p o s i t i o n : " a b s o l u t e " , b o r d e r : " n o n e " , f i l t e r : " p r o g i d : D X I m a g e T r a n s f o r m . M i c r o s o f t . A l p h a ( s t y l e = 0 , o p a c i t y = 0 ) " } , " c l a s s " : t h i s . o p t i o n s . c l a s s N a m e } ) . s t o r e ( " I f r a m e S h i m " , t h i s ) ; 
 v a r   a = ( f u n c t i o n ( ) { t h i s . s h i m . i n j e c t ( t h i s . e l e m e n t , " a f t e r " ) ; t h i s [ t h i s . o p t i o n s . d i s p l a y ? " s h o w " : " h i d e " ] ( ) ; t h i s . f i r e E v e n t ( " i n j e c t " ) ; } ) . b i n d ( t h i s ) ; i f ( ! I f r a m e S h i m . r e a d y ) { w i n d o w . a d d E v e n t ( " l o a d " , a ) ; 
 } e l s e { a ( ) ; } } e l s e { t h i s . p o s i t i o n = t h i s . h i d e = t h i s . s h o w = t h i s . d i s p o s e = F u n c t i o n . f r o m ( t h i s ) ; } } , p o s i t i o n : f u n c t i o n ( ) { i f ( ! I f r a m e S h i m . r e a d y | | ! t h i s . s h i m ) { r e t u r n   t h i s ; 
 } v a r   a = t h i s . e l e m e n t . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   t h i s . g e t S i z e ( ) ; } ) ; i f ( t h i s . o p t i o n s . m a r g i n ! = u n d e f i n e d ) { a . x = a . x - ( t h i s . o p t i o n s . m a r g i n * 2 ) ; a . y = a . y - ( t h i s . o p t i o n s . m a r g i n * 2 ) ; 
 t h i s . o p t i o n s . o f f s e t . x + = t h i s . o p t i o n s . m a r g i n ; t h i s . o p t i o n s . o f f s e t . y + = t h i s . o p t i o n s . m a r g i n ; } t h i s . s h i m . s e t ( { w i d t h : a . x , h e i g h t : a . y } ) . p o s i t i o n ( { r e l a t i v e T o : t h i s . e l e m e n t , o f f s e t : t h i s . o p t i o n s . o f f s e t } ) ; 
 r e t u r n   t h i s ; } , h i d e : f u n c t i o n ( ) { i f ( t h i s . s h i m ) { t h i s . s h i m . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; } r e t u r n   t h i s ; } , s h o w : f u n c t i o n ( ) { i f ( t h i s . s h i m ) { t h i s . s h i m . s e t S t y l e ( " d i s p l a y " , " b l o c k " ) ; 
 } r e t u r n   t h i s . p o s i t i o n ( ) ; } , d i s p o s e : f u n c t i o n ( ) { i f ( t h i s . s h i m ) { t h i s . s h i m . d i s p o s e ( ) ; } r e t u r n   t h i s ; } , d e s t r o y : f u n c t i o n ( ) { i f ( t h i s . s h i m ) { t h i s . s h i m . d e s t r o y ( ) ; } r e t u r n   t h i s ; 
 } } ) ; w i n d o w . a d d E v e n t ( " l o a d " , f u n c t i o n ( ) { I f r a m e S h i m . r e a d y = t r u e ; } ) ; v a r   M a s k = n e w   C l a s s ( { I m p l e m e n t s : [ O p t i o n s , E v e n t s ] , B i n d s : [ " p o s i t i o n " ] , o p t i o n s : { s t y l e : { } , " c l a s s " : " m a s k " , m a s k M a r g i n s : f a l s e , u s e I f r a m e S h i m : t r u e , i f r a m e S h i m O p t i o n s : { } } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . t a r g e t = d o c u m e n t . i d ( b ) | | d o c u m e n t . i d ( d o c u m e n t . b o d y ) ; 
 t h i s . t a r g e t . s t o r e ( " m a s k " , t h i s ) ; t h i s . s e t O p t i o n s ( a ) ; t h i s . r e n d e r ( ) ; t h i s . i n j e c t ( ) ; } , r e n d e r : f u n c t i o n ( ) { t h i s . e l e m e n t = n e w   E l e m e n t ( " d i v " , { " c l a s s " : t h i s . o p t i o n s [ " c l a s s " ] , i d : t h i s . o p t i o n s . i d | | " m a s k - " + S t r i n g . u n i q u e I D ( ) , s t y l e s : O b j e c t . m e r g e ( t h i s . o p t i o n s . s t y l e , { d i s p l a y : " n o n e " } ) , e v e n t s : { c l i c k : f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " c l i c k " ) ; 
 i f ( t h i s . o p t i o n s . h i d e O n C l i c k ) { t h i s . h i d e ( ) ; } } . b i n d ( t h i s ) } } ) ; t h i s . h i d d e n = t r u e ; } , t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t ; } , i n j e c t : f u n c t i o n ( b , a ) { a = a | | ( t h i s . o p t i o n s . i n j e c t ? t h i s . o p t i o n s . i n j e c t . w h e r e : " " ) | | t h i s . t a r g e t = = d o c u m e n t . b o d y ? " i n s i d e " : " a f t e r " ; 
 b = b | | ( t h i s . o p t i o n s . i n j e c t ? t h i s . o p t i o n s . i n j e c t . t a r g e t : " " ) | | t h i s . t a r g e t ; t h i s . e l e m e n t . i n j e c t ( b , a ) ; i f ( t h i s . o p t i o n s . u s e I f r a m e S h i m ) { t h i s . s h i m = n e w   I f r a m e S h i m ( t h i s . e l e m e n t , t h i s . o p t i o n s . i f r a m e S h i m O p t i o n s ) ; 
 t h i s . a d d E v e n t s ( { s h o w : t h i s . s h i m . s h o w . b i n d ( t h i s . s h i m ) , h i d e : t h i s . s h i m . h i d e . b i n d ( t h i s . s h i m ) , d e s t r o y : t h i s . s h i m . d e s t r o y . b i n d ( t h i s . s h i m ) } ) ; } } , p o s i t i o n : f u n c t i o n ( ) { t h i s . r e s i z e ( t h i s . o p t i o n s . w i d t h , t h i s . o p t i o n s . h e i g h t ) ; 
 t h i s . e l e m e n t . p o s i t i o n ( { r e l a t i v e T o : t h i s . t a r g e t , p o s i t i o n : " t o p L e f t " , i g n o r e M a r g i n s : ! t h i s . o p t i o n s . m a s k M a r g i n s , i g n o r e S c r o l l : t h i s . t a r g e t = = d o c u m e n t . b o d y } ) ; r e t u r n   t h i s ; 
 } , r e s i z e : f u n c t i o n ( a , e ) { v a r   b = { s t y l e s : [ " p a d d i n g " , " b o r d e r " ] } ; i f ( t h i s . o p t i o n s . m a s k M a r g i n s ) { b . s t y l e s . p u s h ( " m a r g i n " ) ; } v a r   d = t h i s . t a r g e t . g e t C o m p u t e d S i z e ( b ) ; i f ( t h i s . t a r g e t = = d o c u m e n t . b o d y ) { v a r   c = w i n d o w . g e t S c r o l l S i z e ( ) ; 
 i f ( d . t o t a l H e i g h t < c . y ) { d . t o t a l H e i g h t = c . y ; } i f ( d . t o t a l W i d t h < c . x ) { d . t o t a l W i d t h = c . x ; } } t h i s . e l e m e n t . s e t S t y l e s ( { w i d t h : A r r a y . p i c k ( [ a , d . t o t a l W i d t h , d . x ] ) , h e i g h t : A r r a y . p i c k ( [ e , d . t o t a l H e i g h t , d . y ] ) } ) ; 
 r e t u r n   t h i s ; } , s h o w : f u n c t i o n ( ) { i f ( ! t h i s . h i d d e n ) { r e t u r n   t h i s ; } w i n d o w . a d d E v e n t ( " r e s i z e " , t h i s . p o s i t i o n ) ; t h i s . p o s i t i o n ( ) ; t h i s . s h o w M a s k . a p p l y ( t h i s , a r g u m e n t s ) ; 
 r e t u r n   t h i s ; } , s h o w M a s k : f u n c t i o n ( ) { t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , " b l o c k " ) ; t h i s . h i d d e n = f a l s e ; t h i s . f i r e E v e n t ( " s h o w " ) ; } , h i d e : f u n c t i o n ( ) { i f ( t h i s . h i d d e n ) { r e t u r n   t h i s ; 
 } w i n d o w . r e m o v e E v e n t ( " r e s i z e " , t h i s . p o s i t i o n ) ; t h i s . h i d e M a s k . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( t h i s . o p t i o n s . d e s t r o y O n H i d e ) { r e t u r n   t h i s . d e s t r o y ( ) ; } r e t u r n   t h i s ; } , h i d e M a s k : f u n c t i o n ( ) { t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; 
 t h i s . h i d d e n = t r u e ; t h i s . f i r e E v e n t ( " h i d e " ) ; } , t o g g l e : f u n c t i o n ( ) { t h i s [ t h i s . h i d d e n ? " s h o w " : " h i d e " ] ( ) ; } , d e s t r o y : f u n c t i o n ( ) { t h i s . h i d e ( ) ; t h i s . e l e m e n t . d e s t r o y ( ) ; t h i s . f i r e E v e n t ( " d e s t r o y " ) ; 
 t h i s . t a r g e t . e l i m i n a t e ( " m a s k " ) ; } } ) ; E l e m e n t . P r o p e r t i e s . m a s k = { s e t : f u n c t i o n ( b ) { v a r   a = t h i s . r e t r i e v e ( " m a s k " ) ; i f ( a ) { a . d e s t r o y ( ) ; } r e t u r n   t h i s . e l i m i n a t e ( " m a s k " ) . s t o r e ( " m a s k : o p t i o n s " , b ) ; 
 } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " m a s k " ) ; i f ( ! a ) { a = n e w   M a s k ( t h i s , t h i s . r e t r i e v e ( " m a s k : o p t i o n s " ) ) ; t h i s . s t o r e ( " m a s k " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { m a s k : f u n c t i o n ( a ) { i f ( a ) { t h i s . s e t ( " m a s k " , a ) ; 
 } t h i s . g e t ( " m a s k " ) . s h o w ( ) ; r e t u r n   t h i s ; } , u n m a s k : f u n c t i o n ( ) { t h i s . g e t ( " m a s k " ) . h i d e ( ) ; r e t u r n   t h i s ; } } ) ; v a r   S p i n n e r = n e w   C l a s s ( { E x t e n d s : M a s k , I m p l e m e n t s : C h a i n , o p t i o n s : { " c l a s s " : " s p i n n e r " , c o n t a i n e r P o s i t i o n : { } , c o n t e n t : { " c l a s s " : " s p i n n e r - c o n t e n t " } , m e s s a g e C o n t a i n e r : { " c l a s s " : " s p i n n e r - m s g " } , i m g : { " c l a s s " : " s p i n n e r - i m g " } , f x O p t i o n s : { l i n k : " c h a i n " } } , i n i t i a l i z e : f u n c t i o n ( c , a ) { t h i s . t a r g e t = d o c u m e n t . i d ( c ) | | d o c u m e n t . i d ( d o c u m e n t . b o d y ) ; 
 t h i s . t a r g e t . s t o r e ( " s p i n n e r " , t h i s ) ; t h i s . s e t O p t i o n s ( a ) ; t h i s . r e n d e r ( ) ; t h i s . i n j e c t ( ) ; v a r   b = f u n c t i o n ( ) { t h i s . a c t i v e = f a l s e ; } . b i n d ( t h i s ) ; t h i s . a d d E v e n t s ( { h i d e : b , s h o w : b } ) ; 
 } , r e n d e r : f u n c t i o n ( ) { t h i s . p a r e n t ( ) ; t h i s . e l e m e n t . s e t ( " i d " , t h i s . o p t i o n s . i d | | " s p i n n e r - " + S t r i n g . u n i q u e I D ( ) ) ; t h i s . c o n t e n t = d o c u m e n t . i d ( t h i s . o p t i o n s . c o n t e n t ) | | n e w   E l e m e n t ( " d i v " , t h i s . o p t i o n s . c o n t e n t ) ; 
 t h i s . c o n t e n t . i n j e c t ( t h i s . e l e m e n t ) ; i f ( t h i s . o p t i o n s . m e s s a g e ) { t h i s . m s g = d o c u m e n t . i d ( t h i s . o p t i o n s . m e s s a g e ) | | n e w   E l e m e n t ( " p " , t h i s . o p t i o n s . m e s s a g e C o n t a i n e r ) . a p p e n d T e x t ( t h i s . o p t i o n s . m e s s a g e ) ; 
 t h i s . m s g . i n j e c t ( t h i s . c o n t e n t ) ; } i f ( t h i s . o p t i o n s . i m g ) { t h i s . i m g = d o c u m e n t . i d ( t h i s . o p t i o n s . i m g ) | | n e w   E l e m e n t ( " d i v " , t h i s . o p t i o n s . i m g ) ; t h i s . i m g . i n j e c t ( t h i s . c o n t e n t ) ; 
 } t h i s . e l e m e n t . s e t ( " t w e e n " , t h i s . o p t i o n s . f x O p t i o n s ) ; } , s h o w : f u n c t i o n ( a ) { i f ( t h i s . a c t i v e ) { r e t u r n   t h i s . c h a i n ( t h i s . s h o w . b i n d ( t h i s ) ) ; } i f ( ! t h i s . h i d d e n ) { t h i s . c a l l C h a i n . d e l a y ( 2 0 , t h i s ) ; 
 r e t u r n   t h i s ; } t h i s . a c t i v e = t r u e ; r e t u r n   t h i s . p a r e n t ( a ) ; } , s h o w M a s k : f u n c t i o n ( a ) { v a r   b = f u n c t i o n ( ) { t h i s . c o n t e n t . p o s i t i o n ( O b j e c t . m e r g e ( { r e l a t i v e T o : t h i s . e l e m e n t } , t h i s . o p t i o n s . c o n t a i n e r P o s i t i o n ) ) ; 
 } . b i n d ( t h i s ) ; i f ( a ) { t h i s . p a r e n t ( ) ; b ( ) ; } e l s e { i f ( ! t h i s . o p t i o n s . s t y l e . o p a c i t y ) { t h i s . o p t i o n s . s t y l e . o p a c i t y = t h i s . e l e m e n t . g e t S t y l e ( " o p a c i t y " ) . t o F l o a t ( ) ; } t h i s . e l e m e n t . s e t S t y l e s ( { d i s p l a y : " b l o c k " , o p a c i t y : 0 } ) . t w e e n ( " o p a c i t y " , t h i s . o p t i o n s . s t y l e . o p a c i t y ) ; 
 b ( ) ; t h i s . h i d d e n = f a l s e ; t h i s . f i r e E v e n t ( " s h o w " ) ; t h i s . c a l l C h a i n ( ) ; } } , h i d e : f u n c t i o n ( a ) { i f ( t h i s . a c t i v e ) { r e t u r n   t h i s . c h a i n ( t h i s . h i d e . b i n d ( t h i s ) ) ; } i f ( t h i s . h i d d e n ) { t h i s . c a l l C h a i n . d e l a y ( 2 0 , t h i s ) ; 
 r e t u r n   t h i s ; } t h i s . a c t i v e = t r u e ; r e t u r n   t h i s . p a r e n t ( a ) ; } , h i d e M a s k : f u n c t i o n ( a ) { i f ( a ) { r e t u r n   t h i s . p a r e n t ( ) ; } t h i s . e l e m e n t . t w e e n ( " o p a c i t y " , 0 ) . g e t ( " t w e e n " ) . c h a i n ( f u n c t i o n ( ) { t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; 
 t h i s . h i d d e n = t r u e ; t h i s . f i r e E v e n t ( " h i d e " ) ; t h i s . c a l l C h a i n ( ) ; } . b i n d ( t h i s ) ) ; } , d e s t r o y : f u n c t i o n ( ) { t h i s . c o n t e n t . d e s t r o y ( ) ; t h i s . p a r e n t ( ) ; t h i s . t a r g e t . e l i m i n a t e ( " s p i n n e r " ) ; 
 } } ) ; R e q u e s t = C l a s s . r e f a c t o r ( R e q u e s t , { o p t i o n s : { u s e S p i n n e r : f a l s e , s p i n n e r O p t i o n s : { } , s p i n n e r T a r g e t : f a l s e } , i n i t i a l i z e : f u n c t i o n ( a ) { t h i s . _ s e n d = t h i s . s e n d ; t h i s . s e n d = f u n c t i o n ( b ) { v a r   c = t h i s . g e t S p i n n e r ( ) ; 
 i f ( c ) { c . c h a i n ( t h i s . _ s e n d . p a s s ( b , t h i s ) ) . s h o w ( ) ; } e l s e { t h i s . _ s e n d ( b ) ; } r e t u r n   t h i s ; } ; t h i s . p r e v i o u s ( a ) ; } , g e t S p i n n e r : f u n c t i o n ( ) { i f ( ! t h i s . s p i n n e r ) { v a r   b = d o c u m e n t . i d ( t h i s . o p t i o n s . s p i n n e r T a r g e t ) | | d o c u m e n t . i d ( t h i s . o p t i o n s . u p d a t e ) ; 
 i f ( t h i s . o p t i o n s . u s e S p i n n e r & & b ) { b . s e t ( " s p i n n e r " , t h i s . o p t i o n s . s p i n n e r O p t i o n s ) ; v a r   a = t h i s . s p i n n e r = b . g e t ( " s p i n n e r " ) ; [ " c o m p l e t e " , " e x c e p t i o n " , " c a n c e l " ] . e a c h ( f u n c t i o n ( c ) { t h i s . a d d E v e n t ( c , a . h i d e . b i n d ( a ) ) ; 
 } , t h i s ) ; } } r e t u r n   t h i s . s p i n n e r ; } } ) ; E l e m e n t . P r o p e r t i e s . s p i n n e r = { s e t : f u n c t i o n ( a ) { v a r   b = t h i s . r e t r i e v e ( " s p i n n e r " ) ; i f ( b ) { b . d e s t r o y ( ) ; } r e t u r n   t h i s . e l i m i n a t e ( " s p i n n e r " ) . s t o r e ( " s p i n n e r : o p t i o n s " , a ) ; 
 } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " s p i n n e r " ) ; i f ( ! a ) { a = n e w   S p i n n e r ( t h i s , t h i s . r e t r i e v e ( " s p i n n e r : o p t i o n s " ) ) ; t h i s . s t o r e ( " s p i n n e r " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { s p i n : f u n c t i o n ( a ) { i f ( a ) { t h i s . s e t ( " s p i n n e r " , a ) ; 
 } t h i s . g e t ( " s p i n n e r " ) . s h o w ( ) ; r e t u r n   t h i s ; } , u n s p i n : f u n c t i o n ( ) { t h i s . g e t ( " s p i n n e r " ) . h i d e ( ) ; r e t u r n   t h i s ; } } ) ; i f ( ! w i n d o w . F o r m ) { w i n d o w . F o r m = { } ; } ( f u n c t i o n ( ) { F o r m . R e q u e s t = n e w   C l a s s ( { B i n d s : [ " o n S u b m i t " , " o n F o r m V a l i d a t e " ] , I m p l e m e n t s : [ O p t i o n s , E v e n t s , C l a s s . O c c l u d e ] , o p t i o n s : { r e q u e s t O p t i o n s : { e v a l S c r i p t s : t r u e , u s e S p i n n e r : t r u e , e m u l a t i o n : f a l s e , l i n k : " i g n o r e " } , s e n d B u t t o n C l i c k e d : t r u e , e x t r a D a t a : { } , r e s e t F o r m : t r u e } , p r o p e r t y : " f o r m . r e q u e s t " , i n i t i a l i z e : f u n c t i o n ( b , c , a ) { t h i s . e l e m e n t = d o c u m e n t . i d ( b ) ; 
 i f ( t h i s . o c c l u d e ( ) ) { r e t u r n   t h i s . o c c l u d e d ; } t h i s . u p d a t e = d o c u m e n t . i d ( c ) ; t h i s . s e t O p t i o n s ( a ) ; t h i s . m a k e R e q u e s t ( ) ; i f ( t h i s . o p t i o n s . r e s e t F o r m ) { t h i s . r e q u e s t . a d d E v e n t ( " s u c c e s s " , f u n c t i o n ( ) { F u n c t i o n . a t t e m p t ( f u n c t i o n ( ) { t h i s . e l e m e n t . r e s e t ( ) ; 
 } . b i n d ( t h i s ) ) ; i f ( w i n d o w . O v e r T e x t ) { O v e r T e x t . u p d a t e ( ) ; } } . b i n d ( t h i s ) ) ; } t h i s . a t t a c h ( ) ; } , t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t ; } , m a k e R e q u e s t : f u n c t i o n ( ) { t h i s . r e q u e s t = n e w   R e q u e s t . H T M L ( O b j e c t . m e r g e ( { u p d a t e : t h i s . u p d a t e , e m u l a t i o n : f a l s e , s p i n n e r T a r g e t : t h i s . e l e m e n t , m e t h o d : t h i s . e l e m e n t . g e t ( " m e t h o d " ) | | " p o s t " } , t h i s . o p t i o n s . r e q u e s t O p t i o n s ) ) . a d d E v e n t s ( { s u c c e s s : f u n c t i o n ( b , d , c , a ) { [ " c o m p l e t e " , " s u c c e s s " ] . e a c h ( f u n c t i o n ( e ) { t h i s . f i r e E v e n t ( e , [ t h i s . u p d a t e , b , d , c , a ] ) ; 
 } , t h i s ) ; } . b i n d ( t h i s ) , f a i l u r e : f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " c o m p l e t e " , a r g u m e n t s ) . f i r e E v e n t ( " f a i l u r e " , a r g u m e n t s ) ; } . b i n d ( t h i s ) , e x c e p t i o n : f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " f a i l u r e " , a r g u m e n t s ) ; 
 } . b i n d ( t h i s ) } ) ; } , a t t a c h : f u n c t i o n ( a ) { a = a ! = n u l l ? a : t r u e ; m e t h o d = a ? " a d d E v e n t " : " r e m o v e E v e n t " ; t h i s . e l e m e n t [ m e t h o d ] ( " c l i c k : r e l a y ( b u t t o n ,   i n p u t [ t y p e = s u b m i t ] ) " , t h i s . s a v e C l i c k e d B u t t o n . b i n d ( t h i s ) ) ; 
 v a r   b = t h i s . e l e m e n t . r e t r i e v e ( " v a l i d a t o r " ) ; i f ( b ) { b [ m e t h o d ] ( " o n F o r m V a l i d a t e " , t h i s . o n F o r m V a l i d a t e ) ; } e l s e { t h i s . e l e m e n t [ m e t h o d ] ( " s u b m i t " , t h i s . o n S u b m i t ) ; } } , d e t a c h : f u n c t i o n ( ) { t h i s . a t t a c h ( f a l s e ) ; 
 r e t u r n   t h i s ; } , e n a b l e : f u n c t i o n ( ) { t h i s . a t t a c h ( ) ; r e t u r n   t h i s ; } , d i s a b l e : f u n c t i o n ( ) { t h i s . d e t a c h ( ) ; r e t u r n   t h i s ; } , o n F o r m V a l i d a t e : f u n c t i o n ( b , a , d ) { i f ( ! d ) { r e t u r n ; 
 } v a r   c = t h i s . e l e m e n t . r e t r i e v e ( " v a l i d a t o r " ) ; i f ( b | | ( c & & ! c . o p t i o n s . s t o p O n F a i l u r e ) ) { i f ( d & & d . s t o p ) { d . s t o p ( ) ; } t h i s . s e n d ( ) ; } } , o n S u b m i t : f u n c t i o n ( b ) { v a r   a = t h i s . e l e m e n t . r e t r i e v e ( " v a l i d a t o r " ) ; 
 i f ( a ) { t h i s . e l e m e n t . r e m o v e E v e n t ( " s u b m i t " , t h i s . o n S u b m i t ) ; a . a d d E v e n t ( " o n F o r m V a l i d a t e " , t h i s . o n F o r m V a l i d a t e ) ; t h i s . e l e m e n t . v a l i d a t e ( ) ; r e t u r n ; } i f ( b ) { b . s t o p ( ) ; 
 } t h i s . s e n d ( ) ; } , s a v e C l i c k e d B u t t o n : f u n c t i o n ( a , b ) { i f ( ! t h i s . o p t i o n s . s e n d B u t t o n C l i c k e d ) { r e t u r n ; } i f ( ! b . g e t ( " n a m e " ) ) { r e t u r n ; } t h i s . o p t i o n s . e x t r a D a t a [ b . g e t ( " n a m e " ) ] = b . g e t ( " v a l u e " ) | | t r u e ; 
 t h i s . c l i c k e d C l e a n e r = f u n c t i o n ( ) { d e l e t e   t h i s . o p t i o n s . e x t r a D a t a [ b . g e t ( " n a m e " ) ] ; t h i s . c l i c k e d C l e a n e r = f u n c t i o n ( ) { } ; } . b i n d ( t h i s ) ; } , c l i c k e d C l e a n e r : f u n c t i o n ( ) { } , s e n d : f u n c t i o n ( ) { v a r   b = t h i s . e l e m e n t . t o Q u e r y S t r i n g ( ) . t r i m ( ) ; 
 v a r   a = O b j e c t . t o Q u e r y S t r i n g ( t h i s . o p t i o n s . e x t r a D a t a ) ; i f ( b ) { b + = " & " + a ; } e l s e { b = a ; } t h i s . f i r e E v e n t ( " s e n d " , [ t h i s . e l e m e n t , b . p a r s e Q u e r y S t r i n g ( ) ] ) ; t h i s . r e q u e s t . s e n d ( { d a t a : b , u r l : t h i s . e l e m e n t . g e t ( " a c t i o n " ) } ) ; 
 t h i s . c l i c k e d C l e a n e r ( ) ; r e t u r n   t h i s ; } } ) ; E l e m e n t . P r o p e r t i e s . f o r m R e q u e s t = { s e t : f u n c t i o n ( ) { v a r   a = A r r a y . l i n k ( a r g u m e n t s , { o p t i o n s : T y p e . i s O b j e c t , u p d a t e : T y p e . i s E l e m e n t , u p d a t e I d : T y p e . i s S t r i n g } ) ; 
 v a r   c = a . u p d a t e | | a . u p d a t e I d ; v a r   b = t h i s . r e t r i e v e ( " f o r m . r e q u e s t " ) ; i f ( c ) { i f ( b ) { b . u p d a t e = d o c u m e n t . i d ( c ) ; } t h i s . s t o r e ( " f o r m . r e q u e s t : u p d a t e " , c ) ; } i f ( a . o p t i o n s ) { i f ( b ) { b . s e t O p t i o n s ( a . o p t i o n s ) ; 
 } t h i s . s t o r e ( " f o r m . r e q u e s t : o p t i o n s " , a . o p t i o n s ) ; } r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = A r r a y . l i n k ( a r g u m e n t s , { o p t i o n s : T y p e . i s O b j e c t , u p d a t e : T y p e . i s E l e m e n t , u p d a t e I d : T y p e . i s S t r i n g } ) ; 
 v a r   b = a . u p d a t e | | a . u p d a t e I d ; i f ( a . o p t i o n s | | b | | ! t h i s . r e t r i e v e ( " f o r m . r e q u e s t " ) ) { i f ( a . o p t i o n s | | ! t h i s . r e t r i e v e ( " f o r m . r e q u e s t : o p t i o n s " ) ) { t h i s . s e t ( " f o r m . r e q u e s t " , a . o p t i o n s ) ; 
 } i f ( b ) { t h i s . s e t ( " f o r m . r e q u e s t " , b ) ; } t h i s . s t o r e ( " f o r m . r e q u e s t " , n e w   F o r m . R e q u e s t ( t h i s , t h i s . r e t r i e v e ( " f o r m . r e q u e s t : u p d a t e " ) , t h i s . r e t r i e v e ( " f o r m . r e q u e s t : o p t i o n s " ) ) ) ; 
 } r e t u r n   t h i s . r e t r i e v e ( " f o r m . r e q u e s t " ) ; } } ; E l e m e n t . i m p l e m e n t ( { f o r m U p d a t e : f u n c t i o n ( b , a ) { t h i s . g e t ( " f o r m R e q u e s t " , b , a ) . s e n d ( ) ; r e t u r n   t h i s ; } } ) ; } ) ( ) ; E l e m e n t . i m p l e m e n t ( { i s D i s p l a y e d : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S t y l e ( " d i s p l a y " ) ! = " n o n e " ; 
 } , i s V i s i b l e : f u n c t i o n ( ) { v a r   a = t h i s . o f f s e t W i d t h , b = t h i s . o f f s e t H e i g h t ; r e t u r n ( a = = 0 & & b = = 0 ) ? f a l s e : ( a > 0 & & b > 0 ) ? t r u e : t h i s . s t y l e . d i s p l a y ! = " n o n e " ; } , t o g g l e : f u n c t i o n ( ) { r e t u r n   t h i s [ t h i s . i s D i s p l a y e d ( ) ? " h i d e " : " s h o w " ] ( ) ; 
 } , h i d e : f u n c t i o n ( ) { v a r   b ; t r y { b = t h i s . g e t S t y l e ( " d i s p l a y " ) ; } c a t c h ( a ) { } i f ( b = = " n o n e " ) { r e t u r n   t h i s ; } r e t u r n   t h i s . s t o r e ( " e l e m e n t : _ o r i g i n a l D i s p l a y " , b | | " " ) . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; 
 } , s h o w : f u n c t i o n ( a ) { i f ( ! a & & t h i s . i s D i s p l a y e d ( ) ) { r e t u r n   t h i s ; } a = a | | t h i s . r e t r i e v e ( " e l e m e n t : _ o r i g i n a l D i s p l a y " ) | | " b l o c k " ; r e t u r n   t h i s . s e t S t y l e ( " d i s p l a y " , ( a = = " n o n e " ) ? " b l o c k " : a ) ; 
 } , s w a p C l a s s : f u n c t i o n ( a , b ) { r e t u r n   t h i s . r e m o v e C l a s s ( a ) . a d d C l a s s ( b ) ; } } ) ; D o c u m e n t . i m p l e m e n t ( { c l e a r S e l e c t i o n : f u n c t i o n ( ) { i f ( d o c u m e n t . s e l e c t i o n & & d o c u m e n t . s e l e c t i o n . e m p t y ) { d o c u m e n t . s e l e c t i o n . e m p t y ( ) ; 
 } e l s e { i f ( w i n d o w . g e t S e l e c t i o n ) { v a r   a = w i n d o w . g e t S e l e c t i o n ( ) ; i f ( a & & a . r e m o v e A l l R a n g e s ) { a . r e m o v e A l l R a n g e s ( ) ; } } } } } ) ; F x . R e v e a l = n e w   C l a s s ( { E x t e n d s : F x . M o r p h , o p t i o n s : { l i n k : " c a n c e l " , s t y l e s : [ " p a d d i n g " , " b o r d e r " , " m a r g i n " ] , t r a n s i t i o n O p a c i t y : ! B r o w s e r . i e 6 , m o d e : " v e r t i c a l " , d i s p l a y : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t . g e t ( " t a g " ) ! = " t r " ? " b l o c k " : " t a b l e - r o w " ; 
 } , o p a c i t y : 1 , h i d e I n p u t s : B r o w s e r . i e ? " s e l e c t ,   i n p u t ,   t e x t a r e a ,   o b j e c t ,   e m b e d " : n u l l } , d i s s o l v e : f u n c t i o n ( ) { i f ( ! t h i s . h i d i n g & & ! t h i s . s h o w i n g ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) ! = " n o n e " ) { t h i s . h i d i n g = t r u e ; 
 t h i s . s h o w i n g = f a l s e ; t h i s . h i d d e n = t r u e ; t h i s . c s s T e x t = t h i s . e l e m e n t . s t y l e . c s s T e x t ; v a r   c = t h i s . e l e m e n t . g e t C o m p u t e d S i z e ( { s t y l e s : t h i s . o p t i o n s . s t y l e s , m o d e : t h i s . o p t i o n s . m o d e } ) ; 
 i f ( t h i s . o p t i o n s . t r a n s i t i o n O p a c i t y ) { c . o p a c i t y = t h i s . o p t i o n s . o p a c i t y ; } v a r   b = { } ; O b j e c t . e a c h ( c , f u n c t i o n ( e , d ) { b [ d ] = [ e , 0 ] ; } ) ; t h i s . e l e m e n t . s e t S t y l e s ( { d i s p l a y : F u n c t i o n . f r o m ( t h i s . o p t i o n s . d i s p l a y ) . c a l l ( t h i s ) , o v e r f l o w : " h i d d e n " } ) ; 
 v a r   a = t h i s . o p t i o n s . h i d e I n p u t s ? t h i s . e l e m e n t . g e t E l e m e n t s ( t h i s . o p t i o n s . h i d e I n p u t s ) : n u l l ; i f ( a ) { a . s e t S t y l e ( " v i s i b i l i t y " , " h i d d e n " ) ; } t h i s . $ c h a i n . u n s h i f t ( f u n c t i o n ( ) { i f ( t h i s . h i d d e n ) { t h i s . h i d i n g = f a l s e ; 
 t h i s . e l e m e n t . s t y l e . c s s T e x t = t h i s . c s s T e x t ; t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; i f ( a ) { a . s e t S t y l e ( " v i s i b i l i t y " , " v i s i b l e " ) ; } } t h i s . f i r e E v e n t ( " h i d e " , t h i s . e l e m e n t ) ; 
 t h i s . c a l l C h a i n ( ) ; } . b i n d ( t h i s ) ) ; t h i s . s t a r t ( b ) ; } e l s e { t h i s . c a l l C h a i n . d e l a y ( 1 0 , t h i s ) ; t h i s . f i r e E v e n t ( " c o m p l e t e " , t h i s . e l e m e n t ) ; t h i s . f i r e E v e n t ( " h i d e " , t h i s . e l e m e n t ) ; 
 } } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c h a i n " ) { t h i s . c h a i n ( t h i s . d i s s o l v e . b i n d ( t h i s ) ) ; } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c a n c e l " & & ! t h i s . h i d i n g ) { t h i s . c a n c e l ( ) ; t h i s . d i s s o l v e ( ) ; 
 } } } r e t u r n   t h i s ; } , r e v e a l : f u n c t i o n ( ) { i f ( ! t h i s . s h o w i n g & & ! t h i s . h i d i n g ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { t h i s . h i d i n g = f a l s e ; t h i s . s h o w i n g = t r u e ; t h i s . h i d d e n = f a l s e ; 
 t h i s . c s s T e x t = t h i s . e l e m e n t . s t y l e . c s s T e x t ; v a r   c ; t h i s . e l e m e n t . m e a s u r e ( f u n c t i o n ( ) { c = t h i s . e l e m e n t . g e t C o m p u t e d S i z e ( { s t y l e s : t h i s . o p t i o n s . s t y l e s , m o d e : t h i s . o p t i o n s . m o d e } ) ; 
 } . b i n d ( t h i s ) ) ; i f ( t h i s . o p t i o n s . h e i g h t O v e r r i d e ! = n u l l ) { c . h e i g h t = t h i s . o p t i o n s . h e i g h t O v e r r i d e . t o I n t ( ) ; } i f ( t h i s . o p t i o n s . w i d t h O v e r r i d e ! = n u l l ) { c . w i d t h = t h i s . o p t i o n s . w i d t h O v e r r i d e . t o I n t ( ) ; 
 } i f ( t h i s . o p t i o n s . t r a n s i t i o n O p a c i t y ) { t h i s . e l e m e n t . s e t S t y l e ( " o p a c i t y " , 0 ) ; c . o p a c i t y = t h i s . o p t i o n s . o p a c i t y ; } v a r   b = { h e i g h t : 0 , d i s p l a y : F u n c t i o n . f r o m ( t h i s . o p t i o n s . d i s p l a y ) . c a l l ( t h i s ) } ; 
 O b j e c t . e a c h ( c , f u n c t i o n ( e , d ) { b [ d ] = 0 ; } ) ; b . o v e r f l o w = " h i d d e n " ; t h i s . e l e m e n t . s e t S t y l e s ( b ) ; v a r   a = t h i s . o p t i o n s . h i d e I n p u t s ? t h i s . e l e m e n t . g e t E l e m e n t s ( t h i s . o p t i o n s . h i d e I n p u t s ) : n u l l ; 
 i f ( a ) { a . s e t S t y l e ( " v i s i b i l i t y " , " h i d d e n " ) ; } t h i s . $ c h a i n . u n s h i f t ( f u n c t i o n ( ) { t h i s . e l e m e n t . s t y l e . c s s T e x t = t h i s . c s s T e x t ; t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , F u n c t i o n . f r o m ( t h i s . o p t i o n s . d i s p l a y ) . c a l l ( t h i s ) ) ; 
 i f ( ! t h i s . h i d d e n ) { t h i s . s h o w i n g = f a l s e ; } i f ( a ) { a . s e t S t y l e ( " v i s i b i l i t y " , " v i s i b l e " ) ; } t h i s . c a l l C h a i n ( ) ; t h i s . f i r e E v e n t ( " s h o w " , t h i s . e l e m e n t ) ; } . b i n d ( t h i s ) ) ; t h i s . s t a r t ( c ) ; 
 } e l s e { t h i s . c a l l C h a i n ( ) ; t h i s . f i r e E v e n t ( " c o m p l e t e " , t h i s . e l e m e n t ) ; t h i s . f i r e E v e n t ( " s h o w " , t h i s . e l e m e n t ) ; } } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c h a i n " ) { t h i s . c h a i n ( t h i s . r e v e a l . b i n d ( t h i s ) ) ; 
 } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c a n c e l " & & ! t h i s . s h o w i n g ) { t h i s . c a n c e l ( ) ; t h i s . r e v e a l ( ) ; } } } r e t u r n   t h i s ; } , t o g g l e : f u n c t i o n ( ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { t h i s . r e v e a l ( ) ; 
 } e l s e { t h i s . d i s s o l v e ( ) ; } r e t u r n   t h i s ; } , c a n c e l : f u n c t i o n ( ) { t h i s . p a r e n t . a p p l y ( t h i s , a r g u m e n t s ) ; t h i s . e l e m e n t . s t y l e . c s s T e x t = t h i s . c s s T e x t ; t h i s . h i d i n g = f a l s e ; t h i s . s h o w i n g = f a l s e ; 
 r e t u r n   t h i s ; } } ) ; E l e m e n t . P r o p e r t i e s . r e v e a l = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " r e v e a l " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " r e v e a l " ) ; 
 i f ( ! a ) { a = n e w   F x . R e v e a l ( t h i s ) ; t h i s . s t o r e ( " r e v e a l " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . P r o p e r t i e s . d i s s o l v e = E l e m e n t . P r o p e r t i e s . r e v e a l ; E l e m e n t . i m p l e m e n t ( { r e v e a l : f u n c t i o n ( a ) { t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( a ) . r e v e a l ( ) ; 
 r e t u r n   t h i s ; } , d i s s o l v e : f u n c t i o n ( a ) { t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( a ) . d i s s o l v e ( ) ; r e t u r n   t h i s ; } , n i x : f u n c t i o n ( a ) { v a r   b = A r r a y . l i n k ( a r g u m e n t s , { d e s t r o y : T y p e . i s B o o l e a n , o p t i o n s : T y p e . i s O b j e c t } ) ; 
 t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( a ) . d i s s o l v e ( ) . c h a i n ( f u n c t i o n ( ) { t h i s [ b . d e s t r o y ? " d e s t r o y " : " d i s p o s e " ] ( ) ; } . b i n d ( t h i s ) ) ; r e t u r n   t h i s ; } , w i n k : f u n c t i o n ( ) { v a r   b = A r r a y . l i n k ( a r g u m e n t s , { d u r a t i o n : T y p e . i s N u m b e r , o p t i o n s : T y p e . i s O b j e c t } ) ; 
 v a r   a = t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( b . o p t i o n s ) ; a . r e v e a l ( ) . c h a i n ( f u n c t i o n ( ) { ( f u n c t i o n ( ) { a . d i s s o l v e ( ) ; } ) . d e l a y ( b . d u r a t i o n | | 2 0 0 0 ) ; } ) ; } } ) ; E l e m e n t s . f r o m = f u n c t i o n ( e , d ) { i f ( d | | d = = n u l l ) { e = e . s t r i p S c r i p t s ( ) ; 
 } v a r   b , c = e . m a t c h ( / ^ \ s * < ( t [ d h r ] | t b o d y | t f o o t | t h e a d ) / i ) ; i f ( c ) { b = n e w   E l e m e n t ( " t a b l e " ) ; v a r   a = c [ 1 ] . t o L o w e r C a s e ( ) ; i f ( [ " t d " , " t h " , " t r " ] . c o n t a i n s ( a ) ) { b = n e w   E l e m e n t ( " t b o d y " ) . i n j e c t ( b ) ; 
 i f ( a ! = " t r " ) { b = n e w   E l e m e n t ( " t r " ) . i n j e c t ( b ) ; } } } r e t u r n ( b | | n e w   E l e m e n t ( " d i v " ) ) . s e t ( " h t m l " , e ) . g e t C h i l d r e n ( ) ; } ; F o r m . R e q u e s t . A p p e n d = n e w   C l a s s ( { E x t e n d s : F o r m . R e q u e s t , o p t i o n s : { u s e R e v e a l : t r u e , r e v e a l O p t i o n s : { } , i n j e c t : " b o t t o m " } , m a k e R e q u e s t : f u n c t i o n ( ) { t h i s . r e q u e s t = n e w   R e q u e s t . H T M L ( O b j e c t . m e r g e ( { u r l : t h i s . e l e m e n t . g e t ( " a c t i o n " ) , m e t h o d : t h i s . e l e m e n t . g e t ( " m e t h o d " ) | | " p o s t " , s p i n n e r T a r g e t : t h i s . e l e m e n t } , t h i s . o p t i o n s . r e q u e s t O p t i o n s , { e v a l S c r i p t s : f a l s e } ) ) . a d d E v e n t s ( { s u c c e s s : f u n c t i o n ( b , g , f , a ) { v a r   c ; 
 v a r   d = E l e m e n t s . f r o m ( f ) ; i f ( d . l e n g t h = = 1 ) { c = d [ 0 ] ; } e l s e { c = n e w   E l e m e n t ( " d i v " , { s t y l e s : { d i s p l a y : " n o n e " } } ) . a d o p t ( d ) ; } c . i n j e c t ( t h i s . u p d a t e , t h i s . o p t i o n s . i n j e c t ) ; 
 i f ( t h i s . o p t i o n s . r e q u e s t O p t i o n s . e v a l S c r i p t s ) { B r o w s e r . e x e c ( a ) ; } t h i s . f i r e E v e n t ( " b e f o r e E f f e c t " , c ) ; v a r   e = f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " s u c c e s s " , [ c , t h i s . u p d a t e , b , g , f , a ] ) ; 
 } . b i n d ( t h i s ) ; i f ( t h i s . o p t i o n s . u s e R e v e a l ) { c . s e t ( " r e v e a l " , t h i s . o p t i o n s . r e v e a l O p t i o n s ) . g e t ( " r e v e a l " ) . c h a i n ( e ) ; c . r e v e a l ( ) ; } e l s e { e ( ) ; } } . b i n d ( t h i s ) , f a i l u r e : f u n c t i o n ( a ) { t h i s . f i r e E v e n t ( " f a i l u r e " , a ) ; 
 } . b i n d ( t h i s ) } ) ; } } ) ; ( f u n c t i o n ( ) { v a r   c = { a : / [ à á â ã ä å ] / g , A : / [ À Á Â Ã Ä Å ] / g , c : / [ ç ] / g , C : / [ Ç ] / g , d : / [ ] / g , D : / [ Ð ] / g , e : / [ è é ê ë ] / g , E : / [ È É Ê Ë ] / g , g : / [ ] / g , G : / [ ] / g , i : / [ ì í î ï ] / g , I : / [ Ì Í Î Ï ] / g , l : / [ :>B] / g , L : / [ 9=A] / g , n : / [ ñ HD] / g , N : / [ Ñ GC] / g , o : / [ ò ó ô õ ö ø Q] / g , O : / [ Ò Ó Ô Õ Ö Ø ] / g , r : / [ YU] / g , R : / [ XT] / g , s : / [ aa_] / g , S : / [ `^Z] / g , t : / [ ec] / g , T : / [ db] / g , u e : / [ ü ] / g , U E : / [ Ü ] / g , u : / [ ù ú û oµ ] / g , U : / [ Ù Ú Û n] / g , y : / [ ÿ ý ] / g , Y : / [ xÝ ] / g , z : / [ ~z|] / g , Z : / [ }y{] / g , t h : / [ þ ] / g , T H : / [ Þ ] / g , d h : / [ ð ] / g , D H : / [ Ð ] / g , s s : / [ ß ] / g , o e : / [ S] / g , O E : / [ R] / g , a e : / [ æ ] / g , A E : / [ Æ ] / g } , b = { "   " : / [ \ x a 0 \ u 2 0 0 2 \ u 2 0 0 3 \ u 2 0 0 9 ] / g , " * " : / [ \ x b 7 ] / g , " ' " : / [ \ u 2 0 1 8 \ u 2 0 1 9 ] / g , ' " ' : / [ \ u 2 0 1 c \ u 2 0 1 d ] / g , " . . . " : / [ \ u 2 0 2 6 ] / g , " - " : / [ \ u 2 0 1 3 ] / g , " & r a q u o ; " : / [ \ u F F F D ] / g } ; 
 v a r   a = f u n c t i o n ( f , g ) { v a r   e = f ; f o r ( k e y   i n   g ) { e = e . r e p l a c e ( g [ k e y ] , k e y ) ; } r e t u r n   e ; } ; v a r   d = f u n c t i o n ( e , f ) { e = e | | " " ; v a r   g = f ? " < " + e + " ( ? ! \ \ w ) [ ^ > ] * > ( [ \ \ s \ \ S ] * ? ) < / " + e + " ( ? ! \ \ w ) > " : " < / ? " + e + " ( [ ^ > ] + ) ? > " ; 
 r e g = n e w   R e g E x p ( g , " g i " ) ; r e t u r n   r e g ; } ; S t r i n g . i m p l e m e n t ( { s t a n d a r d i z e : f u n c t i o n ( ) { r e t u r n   a ( t h i s , c ) ; } , r e p e a t : f u n c t i o n ( e ) { r e t u r n   n e w   A r r a y ( e + 1 ) . j o i n ( t h i s ) ; } , p a d : f u n c t i o n ( e , h , g ) { i f ( t h i s . l e n g t h > = e ) { r e t u r n   t h i s ; 
 } v a r   f = ( h = = n u l l ? "   " : " " + h ) . r e p e a t ( e - t h i s . l e n g t h ) . s u b s t r ( 0 , e - t h i s . l e n g t h ) ; i f ( ! g | | g = = " r i g h t " ) { r e t u r n   t h i s + f ; } i f ( g = = " l e f t " ) { r e t u r n   f + t h i s ; } r e t u r n   f . s u b s t r ( 0 , ( f . l e n g t h / 2 ) . f l o o r ( ) ) + t h i s + f . s u b s t r ( 0 , ( f . l e n g t h / 2 ) . c e i l ( ) ) ; 
 } , g e t T a g s : f u n c t i o n ( e , f ) { r e t u r n   t h i s . m a t c h ( d ( e , f ) ) | | [ ] ; } , s t r i p T a g s : f u n c t i o n ( e , f ) { r e t u r n   t h i s . r e p l a c e ( d ( e , f ) , " " ) ; } , t i d y : f u n c t i o n ( ) { r e t u r n   a ( t h i s , b ) ; } } ) ; } ) ( ) ; 
 E l e m e n t . i m p l e m e n t ( { t i d y : f u n c t i o n ( ) { t h i s . s e t ( " v a l u e " , t h i s . g e t ( " v a l u e " ) . t i d y ( ) ) ; } , g e t T e x t I n R a n g e : f u n c t i o n ( b , a ) { r e t u r n   t h i s . g e t ( " v a l u e " ) . s u b s t r i n g ( b , a ) ; } , g e t S e l e c t e d T e x t : f u n c t i o n ( ) { i f ( t h i s . s e t S e l e c t i o n R a n g e ) { r e t u r n   t h i s . g e t T e x t I n R a n g e ( t h i s . g e t S e l e c t i o n S t a r t ( ) , t h i s . g e t S e l e c t i o n E n d ( ) ) ; 
 } r e t u r n   d o c u m e n t . s e l e c t i o n . c r e a t e R a n g e ( ) . t e x t ; } , g e t S e l e c t e d R a n g e : f u n c t i o n ( ) { i f ( t h i s . s e l e c t i o n S t a r t ! = n u l l ) { r e t u r n { s t a r t : t h i s . s e l e c t i o n S t a r t , e n d : t h i s . s e l e c t i o n E n d } ; 
 } v a r   e = { s t a r t : 0 , e n d : 0 } ; v a r   a = t h i s . g e t D o c u m e n t ( ) . s e l e c t i o n . c r e a t e R a n g e ( ) ; i f ( ! a | | a . p a r e n t E l e m e n t ( ) ! = t h i s ) { r e t u r n   e ; } v a r   c = a . d u p l i c a t e ( ) ; i f ( t h i s . t y p e = = " t e x t " ) { e . s t a r t = 0 - c . m o v e S t a r t ( " c h a r a c t e r " , - 1 0 0 0 0 0 ) ; 
 e . e n d = e . s t a r t + a . t e x t . l e n g t h ; } e l s e { v a r   b = t h i s . g e t ( " v a l u e " ) ; v a r   d = b . l e n g t h ; c . m o v e T o E l e m e n t T e x t ( t h i s ) ; c . s e t E n d P o i n t ( " S t a r t T o E n d " , a ) ; i f ( c . t e x t . l e n g t h ) { d - = b . m a t c h ( / [ \ n \ r ] * $ / ) [ 0 ] . l e n g t h ; 
 } e . e n d = d - c . t e x t . l e n g t h ; c . s e t E n d P o i n t ( " S t a r t T o S t a r t " , a ) ; e . s t a r t = d - c . t e x t . l e n g t h ; } r e t u r n   e ; } , g e t S e l e c t i o n S t a r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S e l e c t e d R a n g e ( ) . s t a r t ; 
 } , g e t S e l e c t i o n E n d : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S e l e c t e d R a n g e ( ) . e n d ; } , s e t C a r e t P o s i t i o n : f u n c t i o n ( a ) { i f ( a = = " e n d " ) { a = t h i s . g e t ( " v a l u e " ) . l e n g t h ; } t h i s . s e l e c t R a n g e ( a , a ) ; 
 r e t u r n   t h i s ; } , g e t C a r e t P o s i t i o n : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S e l e c t e d R a n g e ( ) . s t a r t ; } , s e l e c t R a n g e : f u n c t i o n ( e , a ) { i f ( t h i s . s e t S e l e c t i o n R a n g e ) { t h i s . f o c u s ( ) ; t h i s . s e t S e l e c t i o n R a n g e ( e , a ) ; 
 } e l s e { v a r   c = t h i s . g e t ( " v a l u e " ) ; v a r   d = c . s u b s t r ( e , a - e ) . r e p l a c e ( / \ r / g , " " ) . l e n g t h ; e = c . s u b s t r ( 0 , e ) . r e p l a c e ( / \ r / g , " " ) . l e n g t h ; v a r   b = t h i s . c r e a t e T e x t R a n g e ( ) ; b . c o l l a p s e ( t r u e ) ; 
 b . m o v e E n d ( " c h a r a c t e r " , e + d ) ; b . m o v e S t a r t ( " c h a r a c t e r " , e ) ; b . s e l e c t ( ) ; } r e t u r n   t h i s ; } , i n s e r t A t C u r s o r : f u n c t i o n ( b , a ) { v a r   d = t h i s . g e t S e l e c t e d R a n g e ( ) ; v a r   c = t h i s . g e t ( " v a l u e " ) ; 
 t h i s . s e t ( " v a l u e " , c . s u b s t r i n g ( 0 , d . s t a r t ) + b + c . s u b s t r i n g ( d . e n d , c . l e n g t h ) ) ; i f ( a ! = = f a l s e ) { t h i s . s e l e c t R a n g e ( d . s t a r t , d . s t a r t + b . l e n g t h ) ; } e l s e { t h i s . s e t C a r e t P o s i t i o n ( d . s t a r t + b . l e n g t h ) ; 
 } r e t u r n   t h i s ; } , i n s e r t A r o u n d C u r s o r : f u n c t i o n ( b , a ) { b = O b j e c t . a p p e n d ( { b e f o r e : " " , d e f a u l t M i d d l e : " " , a f t e r : " " } , b ) ; v a r   c = t h i s . g e t S e l e c t e d T e x t ( ) | | b . d e f a u l t M i d d l e ; 
 v a r   g = t h i s . g e t S e l e c t e d R a n g e ( ) ; v a r   f = t h i s . g e t ( " v a l u e " ) ; i f ( g . s t a r t = = g . e n d ) { t h i s . s e t ( " v a l u e " , f . s u b s t r i n g ( 0 , g . s t a r t ) + b . b e f o r e + c + b . a f t e r + f . s u b s t r i n g ( g . e n d , f . l e n g t h ) ) ; 
 t h i s . s e l e c t R a n g e ( g . s t a r t + b . b e f o r e . l e n g t h , g . e n d + b . b e f o r e . l e n g t h + c . l e n g t h ) ; } e l s e { v a r   d = f . s u b s t r i n g ( g . s t a r t , g . e n d ) ; t h i s . s e t ( " v a l u e " , f . s u b s t r i n g ( 0 , g . s t a r t ) + b . b e f o r e + d + b . a f t e r + f . s u b s t r i n g ( g . e n d , f . l e n g t h ) ) ; 
 v a r   e = g . s t a r t + b . b e f o r e . l e n g t h ; i f ( a ! = = f a l s e ) { t h i s . s e l e c t R a n g e ( e , e + d . l e n g t h ) ; } e l s e { t h i s . s e t C a r e t P o s i t i o n ( e + f . l e n g t h ) ; } } r e t u r n   t h i s ; } } ) ; L o c a l e . d e f i n e ( " e n - U S " , " F o r m V a l i d a t o r " , { r e q u i r e d : " T h i s   f i e l d   i s   r e q u i r e d . " , m i n L e n g t h : " P l e a s e   e n t e r   a t   l e a s t   { m i n L e n g t h }   c h a r a c t e r s   ( y o u   e n t e r e d   { l e n g t h }   c h a r a c t e r s ) . " , m a x L e n g t h : " P l e a s e   e n t e r   n o   m o r e   t h a n   { m a x L e n g t h }   c h a r a c t e r s   ( y o u   e n t e r e d   { l e n g t h }   c h a r a c t e r s ) . " , i n t e g e r : " P l e a s e   e n t e r   a n   i n t e g e r   i n   t h i s   f i e l d .   N u m b e r s   w i t h   d e c i m a l s   ( e . g .   1 . 2 5 )   a r e   n o t   p e r m i t t e d . " , n u m e r i c : ' P l e a s e   e n t e r   o n l y   n u m e r i c   v a l u e s   i n   t h i s   f i e l d   ( i . e .   " 1 "   o r   " 1 . 1 "   o r   " - 1 "   o r   " - 1 . 1 " ) . ' , d i g i t s : " P l e a s e   u s e   n u m b e r s   a n d   p u n c t u a t i o n   o n l y   i n   t h i s   f i e l d   ( f o r   e x a m p l e ,   a   p h o n e   n u m b e r   w i t h   d a s h e s   o r   d o t s   i s   p e r m i t t e d ) . " , a l p h a : " P l e a s e   u s e   o n l y   l e t t e r s   ( a - z )   w i t h i n   t h i s   f i e l d .   N o   s p a c e s   o r   o t h e r   c h a r a c t e r s   a r e   a l l o w e d . " , a l p h a n u m : " P l e a s e   u s e   o n l y   l e t t e r s   ( a - z )   o r   n u m b e r s   ( 0 - 9 )   i n   t h i s   f i e l d .   N o   s p a c e s   o r   o t h e r   c h a r a c t e r s   a r e   a l l o w e d . " , d a t e S u c h A s : " P l e a s e   e n t e r   a   v a l i d   d a t e   s u c h   a s   { d a t e } " , d a t e I n F o r m a t M D Y : ' P l e a s e   e n t e r   a   v a l i d   d a t e   s u c h   a s   M M / D D / Y Y Y Y   ( i . e .   " 1 2 / 3 1 / 1 9 9 9 " ) ' , e m a i l : ' P l e a s e   e n t e r   a   v a l i d   e m a i l   a d d r e s s .   F o r   e x a m p l e   " f r e d @ d o m a i n . c o m " . ' , u r l : " P l e a s e   e n t e r   a   v a l i d   U R L   s u c h   a s   h t t p : / / w w w . g o o g l e . c o m . " , c u r r e n c y D o l l a r : " P l e a s e   e n t e r   a   v a l i d   $   a m o u n t .   F o r   e x a m p l e   $ 1 0 0 . 0 0   . " , o n e R e q u i r e d : " P l e a s e   e n t e r   s o m e t h i n g   f o r   a t   l e a s t   o n e   o f   t h e s e   i n p u t s . " , e r r o r P r e f i x : " E r r o r :   " , w a r n i n g P r e f i x : " W a r n i n g :   " , n o S p a c e : " T h e r e   c a n   b e   n o   s p a c e s   i n   t h i s   i n p u t . " , r e q C h k B y N o d e : " N o   i t e m s   a r e   s e l e c t e d . " , r e q u i r e d C h k : " T h i s   f i e l d   i s   r e q u i r e d . " , r e q C h k B y N a m e : " P l e a s e   s e l e c t   a   { l a b e l } . " , m a t c h : " T h i s   f i e l d   n e e d s   t o   m a t c h   t h e   { m a t c h N a m e }   f i e l d " , s t a r t D a t e : " t h e   s t a r t   d a t e " , e n d D a t e : " t h e   e n d   d a t e " , c u r r e n d D a t e : " t h e   c u r r e n t   d a t e " , a f t e r D a t e : " T h e   d a t e   s h o u l d   b e   t h e   s a m e   o r   a f t e r   { l a b e l } . " , b e f o r e D a t e : " T h e   d a t e   s h o u l d   b e   t h e   s a m e   o r   b e f o r e   { l a b e l } . " , s t a r t M o n t h : " P l e a s e   s e l e c t   a   s t a r t   m o n t h " , s a m e M o n t h : " T h e s e   t w o   d a t e s   m u s t   b e   i n   t h e   s a m e   m o n t h   -   y o u   m u s t   c h a n g e   o n e   o r   t h e   o t h e r . " , c r e d i t c a r d : " T h e   c r e d i t   c a r d   n u m b e r   e n t e r e d   i s   i n v a l i d .   P l e a s e   c h e c k   t h e   n u m b e r   a n d   t r y   a g a i n .   { l e n g t h }   d i g i t s   e n t e r e d . " } ) ; 
 i f ( ! w i n d o w . F o r m ) { w i n d o w . F o r m = { } ; } v a r   I n p u t V a l i d a t o r = n e w   C l a s s ( { I m p l e m e n t s : [ O p t i o n s ] , o p t i o n s : { e r r o r M s g : " V a l i d a t i o n   f a i l e d . " , t e s t : f u n c t i o n ( a ) { r e t u r n   t r u e ; 
 } } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . s e t O p t i o n s ( a ) ; t h i s . c l a s s N a m e = b ; } , t e s t : f u n c t i o n ( b , a ) { i f ( d o c u m e n t . i d ( b ) ) { r e t u r n   t h i s . o p t i o n s . t e s t ( d o c u m e n t . i d ( b ) , a | | t h i s . g e t P r o p s ( b ) ) ; 
 } e l s e { r e t u r n   f a l s e ; } } , g e t E r r o r : f u n c t i o n ( c , a ) { v a r   b = t h i s . o p t i o n s . e r r o r M s g ; i f ( t y p e O f ( b ) = = " f u n c t i o n " ) { b = b ( d o c u m e n t . i d ( c ) , a | | t h i s . g e t P r o p s ( c ) ) ; } r e t u r n   b ; } , g e t P r o p s : f u n c t i o n ( a ) { i f ( ! d o c u m e n t . i d ( a ) ) { r e t u r n { } ; 
 } r e t u r n   a . g e t ( " v a l i d a t o r P r o p s " ) ; } } ) ; E l e m e n t . P r o p e r t i e s . v a l i d a t o r P r o p s = { s e t : f u n c t i o n ( a ) { r e t u r n   t h i s . e l i m i n a t e ( " $ m o o : v a l i d a t o r P r o p s " ) . s t o r e ( " $ m o o : v a l i d a t o r P r o p s " , a ) ; 
 } , g e t : f u n c t i o n ( a ) { i f ( a ) { t h i s . s e t ( a ) ; } i f ( t h i s . r e t r i e v e ( " $ m o o : v a l i d a t o r P r o p s " ) ) { r e t u r n   t h i s . r e t r i e v e ( " $ m o o : v a l i d a t o r P r o p s " ) ; } i f ( t h i s . g e t P r o p e r t y ( " $ m o o : v a l i d a t o r P r o p s " ) ) { t r y { t h i s . s t o r e ( " $ m o o : v a l i d a t o r P r o p s " , J S O N . d e c o d e ( t h i s . g e t P r o p e r t y ( " $ m o o : v a l i d a t o r P r o p s " ) ) ) ; 
 } c a t c h ( c ) { r e t u r n { } ; } } e l s e { v a r   b = t h i s . g e t ( " c l a s s " ) . s p l i t ( "   " ) . f i l t e r ( f u n c t i o n ( d ) { r e t u r n   d . t e s t ( " : " ) ; } ) ; i f ( ! b . l e n g t h ) { t h i s . s t o r e ( " $ m o o : v a l i d a t o r P r o p s " , { } ) ; 
 } e l s e { a = { } ; b . e a c h ( f u n c t i o n ( d ) { v a r   f = d . s p l i t ( " : " ) ; i f ( f [ 1 ] ) { t r y { a [ f [ 0 ] ] = J S O N . d e c o d e ( f [ 1 ] ) ; } c a t c h ( g ) { } } } ) ; t h i s . s t o r e ( " $ m o o : v a l i d a t o r P r o p s " , a ) ; } } r e t u r n   t h i s . r e t r i e v e ( " $ m o o : v a l i d a t o r P r o p s " ) ; 
 } } ; F o r m . V a l i d a t o r = n e w   C l a s s ( { I m p l e m e n t s : [ O p t i o n s , E v e n t s ] , B i n d s : [ " o n S u b m i t " ] , o p t i o n s : { f i e l d S e l e c t o r s : " i n p u t ,   s e l e c t ,   t e x t a r e a " , i g n o r e H i d d e n : t r u e , i g n o r e D i s a b l e d : t r u e , u s e T i t l e s : f a l s e , e v a l u a t e O n S u b m i t : t r u e , e v a l u a t e F i e l d s O n B l u r : t r u e , e v a l u a t e F i e l d s O n C h a n g e : t r u e , s e r i a l : t r u e , s t o p O n F a i l u r e : t r u e , w a r n i n g P r e f i x : f u n c t i o n ( ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " w a r n i n g P r e f i x " ) | | " W a r n i n g :   " ; 
 } , e r r o r P r e f i x : f u n c t i o n ( ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " e r r o r P r e f i x " ) | | " E r r o r :   " ; } } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . s e t O p t i o n s ( a ) ; t h i s . e l e m e n t = d o c u m e n t . i d ( b ) ; 
 t h i s . e l e m e n t . s t o r e ( " v a l i d a t o r " , t h i s ) ; t h i s . w a r n i n g P r e f i x = F u n c t i o n . f r o m ( t h i s . o p t i o n s . w a r n i n g P r e f i x ) ( ) ; t h i s . e r r o r P r e f i x = F u n c t i o n . f r o m ( t h i s . o p t i o n s . e r r o r P r e f i x ) ( ) ; 
 i f ( t h i s . o p t i o n s . e v a l u a t e O n S u b m i t ) { t h i s . e l e m e n t . a d d E v e n t ( " s u b m i t " , t h i s . o n S u b m i t ) ; } i f ( t h i s . o p t i o n s . e v a l u a t e F i e l d s O n B l u r | | t h i s . o p t i o n s . e v a l u a t e F i e l d s O n C h a n g e ) { t h i s . w a t c h F i e l d s ( t h i s . g e t F i e l d s ( ) ) ; 
 } } , t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t ; } , g e t F i e l d s : f u n c t i o n ( ) { r e t u r n ( t h i s . f i e l d s = t h i s . e l e m e n t . g e t E l e m e n t s ( t h i s . o p t i o n s . f i e l d S e l e c t o r s ) ) ; } , w a t c h F i e l d s : f u n c t i o n ( a ) { a . e a c h ( f u n c t i o n ( b ) { i f ( t h i s . o p t i o n s . e v a l u a t e F i e l d s O n B l u r ) { b . a d d E v e n t ( " b l u r " , t h i s . v a l i d a t i o n M o n i t o r . p a s s ( [ b , f a l s e ] , t h i s ) ) ; 
 } i f ( t h i s . o p t i o n s . e v a l u a t e F i e l d s O n C h a n g e ) { b . a d d E v e n t ( " c h a n g e " , t h i s . v a l i d a t i o n M o n i t o r . p a s s ( [ b , t r u e ] , t h i s ) ) ; } } , t h i s ) ; } , v a l i d a t i o n M o n i t o r : f u n c t i o n ( ) { c l e a r T i m e o u t ( t h i s . t i m e r ) ; 
 t h i s . t i m e r = t h i s . v a l i d a t e F i e l d . d e l a y ( 5 0 , t h i s , a r g u m e n t s ) ; } , o n S u b m i t : f u n c t i o n ( a ) { i f ( ! t h i s . v a l i d a t e ( a ) & & a ) { a . p r e v e n t D e f a u l t ( ) ; } e l s e { t h i s . r e s e t ( ) ; } } , r e s e t : f u n c t i o n ( ) { t h i s . g e t F i e l d s ( ) . e a c h ( t h i s . r e s e t F i e l d , t h i s ) ; 
 r e t u r n   t h i s ; } , v a l i d a t e : f u n c t i o n ( b ) { v a r   a = t h i s . g e t F i e l d s ( ) . m a p ( f u n c t i o n ( c ) { r e t u r n   t h i s . v a l i d a t e F i e l d ( c , t r u e ) ; } , t h i s ) . e v e r y ( f u n c t i o n ( c ) { r e t u r n   c ; } ) ; t h i s . f i r e E v e n t ( " f o r m V a l i d a t e " , [ a , t h i s . e l e m e n t , b ] ) ; 
 i f ( t h i s . o p t i o n s . s t o p O n F a i l u r e & & ! a & & b ) { b . p r e v e n t D e f a u l t ( ) ; } r e t u r n   a ; } , v a l i d a t e F i e l d : f u n c t i o n ( i , a ) { i f ( t h i s . p a u s e d ) { r e t u r n   t r u e ; } i = d o c u m e n t . i d ( i ) ; v a r   d = ! i . h a s C l a s s ( " v a l i d a t i o n - f a i l e d " ) ; 
 v a r   f , h ; i f ( t h i s . o p t i o n s . s e r i a l & & ! a ) { f = t h i s . e l e m e n t . g e t E l e m e n t ( " . v a l i d a t i o n - f a i l e d " ) ; h = t h i s . e l e m e n t . g e t E l e m e n t ( " . w a r n i n g " ) ; } i f ( i & & ( ! f | | a | | i . h a s C l a s s ( " v a l i d a t i o n - f a i l e d " ) | | ( f & & ! t h i s . o p t i o n s . s e r i a l ) ) ) { v a r   c = i . c l a s s N a m e . s p l i t ( "   " ) . s o m e ( f u n c t i o n ( j ) { r e t u r n   t h i s . g e t V a l i d a t o r ( j ) ; 
 } , t h i s ) ; v a r   g = [ ] ; i . c l a s s N a m e . s p l i t ( "   " ) . e a c h ( f u n c t i o n ( j ) { i f ( j & & ! t h i s . t e s t ( j , i ) ) { g . i n c l u d e ( j ) ; } } , t h i s ) ; d = g . l e n g t h = = = 0 ; i f ( c & & ! i . h a s C l a s s ( " w a r n O n l y " ) ) { i f ( d ) { i . a d d C l a s s ( " v a l i d a t i o n - p a s s e d " ) . r e m o v e C l a s s ( " v a l i d a t i o n - f a i l e d " ) ; 
 t h i s . f i r e E v e n t ( " e l e m e n t P a s s " , i ) ; } e l s e { i . a d d C l a s s ( " v a l i d a t i o n - f a i l e d " ) . r e m o v e C l a s s ( " v a l i d a t i o n - p a s s e d " ) ; t h i s . f i r e E v e n t ( " e l e m e n t F a i l " , [ i , g ] ) ; } } i f ( ! h ) { v a r   e = i . c l a s s N a m e . s p l i t ( "   " ) . s o m e ( f u n c t i o n ( j ) { i f ( j . t e s t ( " ^ w a r n - " ) | | i . h a s C l a s s ( " w a r n O n l y " ) ) { r e t u r n   t h i s . g e t V a l i d a t o r ( j . r e p l a c e ( / ^ w a r n - / , " " ) ) ; 
 } e l s e { r e t u r n   n u l l ; } } , t h i s ) ; i . r e m o v e C l a s s ( " w a r n i n g " ) ; v a r   b = i . c l a s s N a m e . s p l i t ( "   " ) . m a p ( f u n c t i o n ( j ) { i f ( j . t e s t ( " ^ w a r n - " ) | | i . h a s C l a s s ( " w a r n O n l y " ) ) { r e t u r n   t h i s . t e s t ( j . r e p l a c e ( / ^ w a r n - / , " " ) , i , t r u e ) ; 
 } e l s e { r e t u r n   n u l l ; } } , t h i s ) ; } } r e t u r n   d ; } , t e s t : f u n c t i o n ( b , d , e ) { d = d o c u m e n t . i d ( d ) ; i f ( ( t h i s . o p t i o n s . i g n o r e H i d d e n & & ! d . i s V i s i b l e ( ) ) | | ( t h i s . o p t i o n s . i g n o r e D i s a b l e d & & d . g e t ( " d i s a b l e d " ) ) ) { r e t u r n   t r u e ; 
 } v a r   a = t h i s . g e t V a l i d a t o r ( b ) ; e = e ! = n u l l ? e : f a l s e ; i f ( d . h a s C l a s s ( " w a r n O n l y " ) ) { e = t r u e ; } v a r   c = d . h a s C l a s s ( " i g n o r e V a l i d a t i o n " ) | | ( a ? a . t e s t ( d ) : t r u e ) ; i f ( a ) { t h i s . f i r e E v e n t ( " e l e m e n t V a l i d a t e " , [ c , d , b , e ] ) ; 
 } i f ( e ) { r e t u r n   t r u e ; } r e t u r n   c ; } , r e s e t F i e l d : f u n c t i o n ( a ) { a = d o c u m e n t . i d ( a ) ; i f ( a ) { a . c l a s s N a m e . s p l i t ( "   " ) . e a c h ( f u n c t i o n ( b ) { i f ( b . t e s t ( " ^ w a r n - " ) ) { b = b . r e p l a c e ( / ^ w a r n - / , " " ) ; 
 } a . r e m o v e C l a s s ( " v a l i d a t i o n - f a i l e d " ) ; a . r e m o v e C l a s s ( " w a r n i n g " ) ; a . r e m o v e C l a s s ( " v a l i d a t i o n - p a s s e d " ) ; } , t h i s ) ; } r e t u r n   t h i s ; } , s t o p : f u n c t i o n ( ) { t h i s . p a u s e d = t r u e ; 
 r e t u r n   t h i s ; } , s t a r t : f u n c t i o n ( ) { t h i s . p a u s e d = f a l s e ; r e t u r n   t h i s ; } , i g n o r e F i e l d : f u n c t i o n ( a , b ) { a = d o c u m e n t . i d ( a ) ; i f ( a ) { t h i s . e n f o r c e F i e l d ( a ) ; i f ( b ) { a . a d d C l a s s ( " w a r n O n l y " ) ; 
 } e l s e { a . a d d C l a s s ( " i g n o r e V a l i d a t i o n " ) ; } } r e t u r n   t h i s ; } , e n f o r c e F i e l d : f u n c t i o n ( a ) { a = d o c u m e n t . i d ( a ) ; i f ( a ) { a . r e m o v e C l a s s ( " w a r n O n l y " ) . r e m o v e C l a s s ( " i g n o r e V a l i d a t i o n " ) ; 
 } r e t u r n   t h i s ; } } ) ; F o r m . V a l i d a t o r . g e t M s g = f u n c t i o n ( a ) { r e t u r n   L o c a l e . g e t ( " F o r m V a l i d a t o r . " + a ) ; } ; F o r m . V a l i d a t o r . a d d e r s = { v a l i d a t o r s : { } , a d d : f u n c t i o n ( b , a ) { t h i s . v a l i d a t o r s [ b ] = n e w   I n p u t V a l i d a t o r ( b , a ) ; 
 i f ( ! t h i s . i n i t i a l i z e ) { t h i s . i m p l e m e n t ( { v a l i d a t o r s : t h i s . v a l i d a t o r s } ) ; } } , a d d A l l T h e s e : f u n c t i o n ( a ) { A r r a y . f r o m ( a ) . e a c h ( f u n c t i o n ( b ) { t h i s . a d d ( b [ 0 ] , b [ 1 ] ) ; } , t h i s ) ; 
 } , g e t V a l i d a t o r : f u n c t i o n ( a ) { r e t u r n   t h i s . v a l i d a t o r s [ a . s p l i t ( " : " ) [ 0 ] ] ; } } ; O b j e c t . a p p e n d ( F o r m . V a l i d a t o r , F o r m . V a l i d a t o r . a d d e r s ) ; F o r m . V a l i d a t o r . i m p l e m e n t ( F o r m . V a l i d a t o r . a d d e r s ) ; 
 F o r m . V a l i d a t o r . a d d ( " I s E m p t y " , { e r r o r M s g : f a l s e , t e s t : f u n c t i o n ( a ) { i f ( a . t y p e = = " s e l e c t - o n e " | | a . t y p e = = " s e l e c t " ) { r e t u r n   ! ( a . s e l e c t e d I n d e x > = 0 & & a . o p t i o n s [ a . s e l e c t e d I n d e x ] . v a l u e ! = " " ) ; 
 } e l s e { r e t u r n ( ( a . g e t ( " v a l u e " ) = = n u l l ) | | ( a . g e t ( " v a l u e " ) . l e n g t h = = 0 ) ) ; } } } ) ; F o r m . V a l i d a t o r . a d d A l l T h e s e ( [ [ " r e q u i r e d " , { e r r o r M s g : f u n c t i o n ( ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " r e q u i r e d " ) ; 
 } , t e s t : f u n c t i o n ( a ) { r e t u r n   ! F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) ; } } ] , [ " m i n L e n g t h " , { e r r o r M s g : f u n c t i o n ( a , b ) { i f ( t y p e O f ( b . m i n L e n g t h ) ! = " n u l l " ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " m i n L e n g t h " ) . s u b s t i t u t e ( { m i n L e n g t h : b . m i n L e n g t h , l e n g t h : a . g e t ( " v a l u e " ) . l e n g t h } ) ; 
 } e l s e { r e t u r n " " ; } } , t e s t : f u n c t i o n ( a , b ) { i f ( t y p e O f ( b . m i n L e n g t h ) ! = " n u l l " ) { r e t u r n ( a . g e t ( " v a l u e " ) . l e n g t h > = ( b . m i n L e n g t h | | 0 ) ) ; } e l s e { r e t u r n   t r u e ; } } } ] , [ " m a x L e n g t h " , { e r r o r M s g : f u n c t i o n ( a , b ) { i f ( t y p e O f ( b . m a x L e n g t h ) ! = " n u l l " ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " m a x L e n g t h " ) . s u b s t i t u t e ( { m a x L e n g t h : b . m a x L e n g t h , l e n g t h : a . g e t ( " v a l u e " ) . l e n g t h } ) ; 
 } e l s e { r e t u r n " " ; } } , t e s t : f u n c t i o n ( a , b ) { r e t u r n ( a . g e t ( " v a l u e " ) . l e n g t h < = ( b . m a x L e n g t h | | 1 0 0 0 0 ) ) ; } } ] , [ " v a l i d a t e - i n t e g e r " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " i n t e g e r " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ ( - ? [ 1 - 9 ] \ d * | 0 ) $ / ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - n u m e r i c " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " n u m e r i c " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ - ? ( ? : 0 $ 0 ( ? = \ d * \ . ) | [ 1 - 9 ] | 0 ) \ d * ( \ . \ d + ) ? $ / ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - d i g i t s " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " d i g i t s " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ [ \ d ( )   . : \ - \ + # ] + $ / . t e s t ( a . g e t ( " v a l u e " ) ) ) ; 
 } } ] , [ " v a l i d a t e - a l p h a " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " a l p h a " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ [ a - z A - Z ] + $ / ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - a l p h a n u m " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " a l p h a n u m " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ! ( / \ W / ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - d a t e " , { e r r o r M s g : f u n c t i o n ( a , b ) { i f ( D a t e . p a r s e ) { v a r   c = b . d a t e F o r m a t | | " % x " ; r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " d a t e S u c h A s " ) . s u b s t i t u t e ( { d a t e : n e w   D a t e ( ) . f o r m a t ( c ) } ) ; 
 } e l s e { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " d a t e I n F o r m a t M D Y " ) ; } } , t e s t : f u n c t i o n ( a , b ) { i f ( F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) ) { r e t u r n   t r u e ; } v a r   g ; i f ( D a t e . p a r s e ) { v a r   f = b . d a t e F o r m a t | | " % x " ; 
 g = D a t e . p a r s e ( a . g e t ( " v a l u e " ) ) ; v a r   e = g . f o r m a t ( f ) ; i f ( e ! = " i n v a l i d   d a t e " ) { a . s e t ( " v a l u e " , e ) ; } r e t u r n   ! i s N a N ( g ) ; } e l s e { v a r   c = / ^ ( \ d { 2 } ) \ / ( \ d { 2 } ) \ / ( \ d { 4 } ) $ / ; i f ( ! c . t e s t ( a . g e t ( " v a l u e " ) ) ) { r e t u r n   f a l s e ; 
 } g = n e w   D a t e ( a . g e t ( " v a l u e " ) . r e p l a c e ( c , " $ 1 / $ 2 / $ 3 " ) ) ; r e t u r n ( p a r s e I n t ( R e g E x p . $ 1 , 1 0 ) = = ( 1 + g . g e t M o n t h ( ) ) ) & & ( p a r s e I n t ( R e g E x p . $ 2 , 1 0 ) = = g . g e t D a t e ( ) ) & & ( p a r s e I n t ( R e g E x p . $ 3 , 1 0 ) = = g . g e t F u l l Y e a r ( ) ) ; 
 } } } ] , [ " v a l i d a t e - e m a i l " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " e m a i l " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ [ A - Z 0 - 9 . _ % + - ] + @ [ A - Z 0 - 9 . - ] + \ . [ A - Z ] { 2 , 4 } $ / i ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - u r l " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " u r l " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ ( h t t p s ? | f t p | r m t p | m m s ) : \ / \ / ( ( [ A - Z 0 - 9 ] [ A - Z 0 - 9 _ - ] * ) ( \ . [ A - Z 0 - 9 ] [ A - Z 0 - 9 _ - ] * ) + ) ( : ( \ d + ) ) ? \ / ? / i ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - c u r r e n c y - d o l l a r " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " c u r r e n c y D o l l a r " ) , t e s t : f u n c t i o n ( a ) { r e t u r n   F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( a ) | | ( / ^ \ $ ? \ - ? ( [ 1 - 9 ] { 1 } [ 0 - 9 ] { 0 , 2 } ( \ , [ 0 - 9 ] { 3 } ) * ( \ . [ 0 - 9 ] { 0 , 2 } ) ? | [ 1 - 9 ] { 1 } \ d * ( \ . [ 0 - 9 ] { 0 , 2 } ) ? | 0 ( \ . [ 0 - 9 ] { 0 , 2 } ) ? | ( \ . [ 0 - 9 ] { 1 , 2 } ) ? ) $ / ) . t e s t ( a . g e t ( " v a l u e " ) ) ; 
 } } ] , [ " v a l i d a t e - o n e - r e q u i r e d " , { e r r o r M s g : F o r m . V a l i d a t o r . g e t M s g . p a s s ( " o n e R e q u i r e d " ) , t e s t : f u n c t i o n ( a , b ) { v a r   c = d o c u m e n t . i d ( b [ " v a l i d a t e - o n e - r e q u i r e d " ] ) | | a . g e t P a r e n t ( b [ " v a l i d a t e - o n e - r e q u i r e d " ] ) ; 
 r e t u r n   c . g e t E l e m e n t s ( " i n p u t " ) . s o m e ( f u n c t i o n ( d ) { i f ( [ " c h e c k b o x " , " r a d i o " ] . c o n t a i n s ( d . g e t ( " t y p e " ) ) ) { r e t u r n   d . g e t ( " c h e c k e d " ) ; } r e t u r n   d . g e t ( " v a l u e " ) ; } ) ; } } ] ] ) ; 
 E l e m e n t . P r o p e r t i e s . v a l i d a t o r = { s e t : f u n c t i o n ( a ) { v a r   b = t h i s . r e t r i e v e ( " v a l i d a t o r " ) ; i f ( b ) { b . s e t O p t i o n s ( a ) ; } r e t u r n   t h i s . s t o r e ( " $ m o o : v a l i d a t o r : o p t i o n s " , a ) ; } , g e t : f u n c t i o n ( a ) { i f ( a | | ! t h i s . r e t r i e v e ( " v a l i d a t o r " ) ) { i f ( a | | ! t h i s . r e t r i e v e ( " $ m o o : v a l i d a t o r : o p t i o n s " ) ) { t h i s . s e t ( " v a l i d a t o r " , a ) ; 
 } t h i s . s t o r e ( " v a l i d a t o r " , n e w   F o r m . V a l i d a t o r ( t h i s , t h i s . r e t r i e v e ( " $ m o o : v a l i d a t o r : o p t i o n s " ) ) ) ; } r e t u r n   t h i s . r e t r i e v e ( " v a l i d a t o r " ) ; } } ; E l e m e n t . i m p l e m e n t ( { v a l i d a t e : f u n c t i o n ( a ) { i f ( a ) { t h i s . s e t ( " v a l i d a t o r " , a ) ; 
 } r e t u r n   t h i s . g e t ( " v a l i d a t o r " , a ) . v a l i d a t e ( ) ; } } ) ; v a r   F o r m V a l i d a t o r = F o r m . V a l i d a t o r ; F o r m . V a l i d a t o r . I n l i n e = n e w   C l a s s ( { E x t e n d s : F o r m . V a l i d a t o r , o p t i o n s : { s h o w E r r o r : f u n c t i o n ( a ) { i f ( a . r e v e a l ) { a . r e v e a l ( ) ; 
 } e l s e { a . s e t S t y l e ( " d i s p l a y " , " b l o c k " ) ; } } , h i d e E r r o r : f u n c t i o n ( a ) { i f ( a . d i s s o l v e ) { a . d i s s o l v e ( ) ; } e l s e { a . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; } } , s c r o l l T o E r r o r s O n S u b m i t : t r u e , s c r o l l T o E r r o r s O n B l u r : f a l s e , s c r o l l T o E r r o r s O n C h a n g e : f a l s e , s c r o l l F x O p t i o n s : { t r a n s i t i o n : " q u a d : o u t " , o f f s e t : { y : - 2 0 } } } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . p a r e n t ( b , a ) ; 
 t h i s . a d d E v e n t ( " o n E l e m e n t V a l i d a t e " , f u n c t i o n ( g , f , e , h ) { v a r   d = t h i s . g e t V a l i d a t o r ( e ) ; i f ( ! g & & d . g e t E r r o r ( f ) ) { i f ( h ) { f . a d d C l a s s ( " w a r n i n g " ) ; } v a r   c = t h i s . m a k e A d v i c e ( e , f , d . g e t E r r o r ( f ) , h ) ; 
 t h i s . i n s e r t A d v i c e ( c , f ) ; t h i s . s h o w A d v i c e ( e , f ) ; } e l s e { t h i s . h i d e A d v i c e ( e , f ) ; } } ) ; } , m a k e A d v i c e : f u n c t i o n ( d , f , c , g ) { v a r   e = ( g ) ? t h i s . w a r n i n g P r e f i x : t h i s . e r r o r P r e f i x ; 
 e + = ( t h i s . o p t i o n s . u s e T i t l e s ) ? f . t i t l e | | c : c ; v a r   a = ( g ) ? " w a r n i n g - a d v i c e " : " v a l i d a t i o n - a d v i c e " ; v a r   b = t h i s . g e t A d v i c e ( d , f ) ; i f ( b ) { b = b . s e t ( " h t m l " , e ) ; } e l s e { b = n e w   E l e m e n t ( " d i v " , { h t m l : e , s t y l e s : { d i s p l a y : " n o n e " } , i d : " a d v i c e - " + d . s p l i t ( " : " ) [ 0 ] + " - " + t h i s . g e t F i e l d I d ( f ) } ) . a d d C l a s s ( a ) ; 
 } f . s t o r e ( " $ m o o : a d v i c e - " + d , b ) ; r e t u r n   b ; } , g e t F i e l d I d : f u n c t i o n ( a ) { r e t u r n   a . i d ? a . i d : a . i d = " i n p u t _ " + a . n a m e ; } , s h o w A d v i c e : f u n c t i o n ( b , c ) { v a r   a = t h i s . g e t A d v i c e ( b , c ) ; 
 i f ( a & & ! c . r e t r i e v e ( " $ m o o : " + t h i s . g e t P r o p N a m e ( b ) ) & & ( a . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " | | a . g e t S t y l e ( " v i s i b l i t y " ) = = " h i d d e n " | | a . g e t S t y l e ( " o p a c i t y " ) = = 0 ) ) { c . s t o r e ( " $ m o o : " + t h i s . g e t P r o p N a m e ( b ) , t r u e ) ; 
 t h i s . o p t i o n s . s h o w E r r o r ( a ) ; t h i s . f i r e E v e n t ( " s h o w A d v i c e " , [ c , a , b ] ) ; } } , h i d e A d v i c e : f u n c t i o n ( b , c ) { v a r   a = t h i s . g e t A d v i c e ( b , c ) ; i f ( a & & c . r e t r i e v e ( " $ m o o : " + t h i s . g e t P r o p N a m e ( b ) ) ) { c . s t o r e ( " $ m o o : " + t h i s . g e t P r o p N a m e ( b ) , f a l s e ) ; 
 t h i s . o p t i o n s . h i d e E r r o r ( a ) ; t h i s . f i r e E v e n t ( " h i d e A d v i c e " , [ c , a , b ] ) ; } } , g e t P r o p N a m e : f u n c t i o n ( a ) { r e t u r n " a d v i c e " + a ; } , r e s e t F i e l d : f u n c t i o n ( a ) { a = d o c u m e n t . i d ( a ) ; i f ( ! a ) { r e t u r n   t h i s ; 
 } t h i s . p a r e n t ( a ) ; a . c l a s s N a m e . s p l i t ( "   " ) . e a c h ( f u n c t i o n ( b ) { t h i s . h i d e A d v i c e ( b , a ) ; } , t h i s ) ; r e t u r n   t h i s ; } , g e t A l l A d v i c e M e s s a g e s : f u n c t i o n ( d , c ) { v a r   b = [ ] ; i f ( d . h a s C l a s s ( " i g n o r e V a l i d a t i o n " ) & & ! c ) { r e t u r n   b ; 
 } v a r   a = d . c l a s s N a m e . s p l i t ( "   " ) . s o m e ( f u n c t i o n ( g ) { v a r   e = g . t e s t ( " ^ w a r n - " ) | | d . h a s C l a s s ( " w a r n O n l y " ) ; i f ( e ) { g = g . r e p l a c e ( / ^ w a r n - / , " " ) ; } v a r   f = t h i s . g e t V a l i d a t o r ( g ) ; 
 i f ( ! f ) { r e t u r n ; } b . p u s h ( { m e s s a g e : f . g e t E r r o r ( d ) , w a r n O n l y : e , p a s s e d : f . t e s t ( ) , v a l i d a t o r : f } ) ; } , t h i s ) ; r e t u r n   b ; } , g e t A d v i c e : f u n c t i o n ( a , b ) { r e t u r n   b . r e t r i e v e ( " $ m o o : a d v i c e - " + a ) ; 
 } , i n s e r t A d v i c e : f u n c t i o n ( a , c ) { v a r   b = c . g e t ( " v a l i d a t o r P r o p s " ) ; i f ( ! b . m s g P o s | | ! d o c u m e n t . i d ( b . m s g P o s ) ) { i f ( c . t y p e & & c . t y p e . t o L o w e r C a s e ( ) = = " r a d i o " ) { c . g e t P a r e n t ( ) . a d o p t ( a ) ; 
 } e l s e { a . i n j e c t ( d o c u m e n t . i d ( c ) , " a f t e r " ) ; } } e l s e { d o c u m e n t . i d ( b . m s g P o s ) . g r a b ( a ) ; } } , v a l i d a t e F i e l d : f u n c t i o n ( g , f , b ) { v a r   a = t h i s . p a r e n t ( g , f ) ; i f ( ( ( t h i s . o p t i o n s . s c r o l l T o E r r o r s O n S u b m i t & & b = = n u l l ) | | b ) & & ! a ) { v a r   c = d o c u m e n t . i d ( t h i s ) . g e t E l e m e n t ( " . v a l i d a t i o n - f a i l e d " ) ; 
 v a r   d = d o c u m e n t . i d ( t h i s ) . g e t P a r e n t ( ) ; w h i l e ( d ! = d o c u m e n t . b o d y & & d . g e t S c r o l l S i z e ( ) . y = = d . g e t S i z e ( ) . y ) { d = d . g e t P a r e n t ( ) ; } v a r   e = d . r e t r i e v e ( " $ m o o : f v S c r o l l e r " ) ; i f ( ! e & & w i n d o w . F x & & F x . S c r o l l ) { e = n e w   F x . S c r o l l ( d , t h i s . o p t i o n s . s c r o l l F x O p t i o n s ) ; 
 d . s t o r e ( " $ m o o : f v S c r o l l e r " , e ) ; } i f ( c ) { i f ( e ) { e . t o E l e m e n t ( c ) ; } e l s e { d . s c r o l l T o ( d . g e t S c r o l l ( ) . x , c . g e t P o s i t i o n ( d ) . y - 2 0 ) ; } } } r e t u r n   a ; } , w a t c h F i e l d s : f u n c t i o n ( a ) { a . e a c h ( f u n c t i o n ( b ) { i f ( t h i s . o p t i o n s . e v a l u a t e F i e l d s O n B l u r ) { b . a d d E v e n t ( " b l u r " , t h i s . v a l i d a t i o n M o n i t o r . p a s s ( [ b , f a l s e , t h i s . o p t i o n s . s c r o l l T o E r r o r s O n B l u r ] , t h i s ) ) ; 
 } i f ( t h i s . o p t i o n s . e v a l u a t e F i e l d s O n C h a n g e ) { b . a d d E v e n t ( " c h a n g e " , t h i s . v a l i d a t i o n M o n i t o r . p a s s ( [ b , t r u e , t h i s . o p t i o n s . s c r o l l T o E r r o r s O n C h a n g e ] , t h i s ) ) ; } } , t h i s ) ; } } ) ; 
 F o r m . V a l i d a t o r . a d d A l l T h e s e ( [ [ " v a l i d a t e - e n f o r c e - o n c h e c k " , { t e s t : f u n c t i o n ( a , b ) { v a r   c = a . g e t P a r e n t ( " f o r m " ) . r e t r i e v e ( " v a l i d a t o r " ) ; i f ( ! c ) { r e t u r n   t r u e ; } ( b . t o E n f o r c e | | d o c u m e n t . i d ( b . e n f o r c e C h i l d r e n O f ) . g e t E l e m e n t s ( " i n p u t ,   s e l e c t ,   t e x t a r e a " ) ) . m a p ( f u n c t i o n ( d ) { i f ( a . c h e c k e d ) { c . e n f o r c e F i e l d ( d ) ; 
 } e l s e { c . i g n o r e F i e l d ( d ) ; c . r e s e t F i e l d ( d ) ; } } ) ; r e t u r n   t r u e ; } } ] , [ " v a l i d a t e - i g n o r e - o n c h e c k " , { t e s t : f u n c t i o n ( a , b ) { v a r   c = a . g e t P a r e n t ( " f o r m " ) . r e t r i e v e ( " v a l i d a t o r " ) ; 
 i f ( ! c ) { r e t u r n   t r u e ; } ( b . t o I g n o r e | | d o c u m e n t . i d ( b . i g n o r e C h i l d r e n O f ) . g e t E l e m e n t s ( " i n p u t ,   s e l e c t ,   t e x t a r e a " ) ) . e a c h ( f u n c t i o n ( d ) { i f ( a . c h e c k e d ) { c . i g n o r e F i e l d ( d ) ; 
 c . r e s e t F i e l d ( d ) ; } e l s e { c . e n f o r c e F i e l d ( d ) ; } } ) ; r e t u r n   t r u e ; } } ] , [ " v a l i d a t e - n o s p a c e " , { e r r o r M s g : f u n c t i o n ( ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " n o S p a c e " ) ; } , t e s t : f u n c t i o n ( a , b ) { r e t u r n   ! a . g e t ( " v a l u e " ) . t e s t ( / \ s / ) ; 
 } } ] , [ " v a l i d a t e - t o g g l e - o n c h e c k " , { t e s t : f u n c t i o n ( b , c ) { v a r   d = b . g e t P a r e n t ( " f o r m " ) . r e t r i e v e ( " v a l i d a t o r " ) ; i f ( ! d ) { r e t u r n   t r u e ; } v a r   a = c . t o T o g g l e | | d o c u m e n t . i d ( c . t o T o g g l e C h i l d r e n O f ) . g e t E l e m e n t s ( " i n p u t ,   s e l e c t ,   t e x t a r e a " ) ; 
 i f ( ! b . c h e c k e d ) { a . e a c h ( f u n c t i o n ( e ) { d . i g n o r e F i e l d ( e ) ; d . r e s e t F i e l d ( e ) ; } ) ; } e l s e { a . e a c h ( f u n c t i o n ( e ) { d . e n f o r c e F i e l d ( e ) ; } ) ; } r e t u r n   t r u e ; } } ] , [ " v a l i d a t e - r e q c h k - b y n o d e " , { e r r o r M s g : f u n c t i o n ( ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " r e q C h k B y N o d e " ) ; 
 } , t e s t : f u n c t i o n ( a , b ) { r e t u r n ( d o c u m e n t . i d ( b . n o d e I d ) . g e t E l e m e n t s ( b . s e l e c t o r | | " i n p u t [ t y p e = c h e c k b o x ] ,   i n p u t [ t y p e = r a d i o ] " ) ) . s o m e ( f u n c t i o n ( c ) { r e t u r n   c . c h e c k e d ; 
 } ) ; } } ] , [ " v a l i d a t e - r e q u i r e d - c h e c k " , { e r r o r M s g : f u n c t i o n ( a , b ) { r e t u r n   b . u s e T i t l e ? a . g e t ( " t i t l e " ) : F o r m . V a l i d a t o r . g e t M s g ( " r e q u i r e d C h k " ) ; } , t e s t : f u n c t i o n ( a , b ) { r e t u r n   ! ! a . c h e c k e d ; 
 } } ] , [ " v a l i d a t e - r e q c h k - b y n a m e " , { e r r o r M s g : f u n c t i o n ( a , b ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " r e q C h k B y N a m e " ) . s u b s t i t u t e ( { l a b e l : b . l a b e l | | a . g e t ( " t y p e " ) } ) ; } , t e s t : f u n c t i o n ( b , d ) { v a r   c = d . g r o u p N a m e | | b . g e t ( " n a m e " ) ; 
 v a r   a = $ $ ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( c ) ) . s o m e ( f u n c t i o n ( g , f ) { r e t u r n   g . c h e c k e d ; } ) ; v a r   e = b . g e t P a r e n t ( " f o r m " ) . r e t r i e v e ( " v a l i d a t o r " ) ; i f ( a & & e ) { e . r e s e t F i e l d ( b ) ; 
 } r e t u r n   a ; } } ] , [ " v a l i d a t e - m a t c h " , { e r r o r M s g : f u n c t i o n ( a , b ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " m a t c h " ) . s u b s t i t u t e ( { m a t c h N a m e : b . m a t c h N a m e | | d o c u m e n t . i d ( b . m a t c h I n p u t ) . g e t ( " n a m e " ) } ) ; 
 } , t e s t : f u n c t i o n ( b , c ) { v a r   d = b . g e t ( " v a l u e " ) ; v a r   a = d o c u m e n t . i d ( c . m a t c h I n p u t ) & & d o c u m e n t . i d ( c . m a t c h I n p u t ) . g e t ( " v a l u e " ) ; r e t u r n   d & & a ? d = = a : t r u e ; } } ] , [ " v a l i d a t e - a f t e r - d a t e " , { e r r o r M s g : f u n c t i o n ( a , b ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " a f t e r D a t e " ) . s u b s t i t u t e ( { l a b e l : b . a f t e r L a b e l | | ( b . a f t e r E l e m e n t ? F o r m . V a l i d a t o r . g e t M s g ( " s t a r t D a t e " ) : F o r m . V a l i d a t o r . g e t M s g ( " c u r r e n t D a t e " ) ) } ) ; 
 } , t e s t : f u n c t i o n ( b , c ) { v a r   d = d o c u m e n t . i d ( c . a f t e r E l e m e n t ) ? D a t e . p a r s e ( d o c u m e n t . i d ( c . a f t e r E l e m e n t ) . g e t ( " v a l u e " ) ) : n e w   D a t e ( ) ; v a r   a = D a t e . p a r s e ( b . g e t ( " v a l u e " ) ) ; 
 r e t u r n   a & & d ? a > = d : t r u e ; } } ] , [ " v a l i d a t e - b e f o r e - d a t e " , { e r r o r M s g : f u n c t i o n ( a , b ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " b e f o r e D a t e " ) . s u b s t i t u t e ( { l a b e l : b . b e f o r e L a b e l | | ( b . b e f o r e E l e m e n t ? F o r m . V a l i d a t o r . g e t M s g ( " e n d D a t e " ) : F o r m . V a l i d a t o r . g e t M s g ( " c u r r e n t D a t e " ) ) } ) ; 
 } , t e s t : f u n c t i o n ( b , c ) { v a r   d = D a t e . p a r s e ( b . g e t ( " v a l u e " ) ) ; v a r   a = d o c u m e n t . i d ( c . b e f o r e E l e m e n t ) ? D a t e . p a r s e ( d o c u m e n t . i d ( c . b e f o r e E l e m e n t ) . g e t ( " v a l u e " ) ) : n e w   D a t e ( ) ; 
 r e t u r n   a & & d ? a > = d : t r u e ; } } ] , [ " v a l i d a t e - c u s t o m - r e q u i r e d " , { e r r o r M s g : f u n c t i o n ( ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " r e q u i r e d " ) ; } , t e s t : f u n c t i o n ( a , b ) { r e t u r n   a . g e t ( " v a l u e " ) ! = b . e m p t y V a l u e ; 
 } } ] , [ " v a l i d a t e - s a m e - m o n t h " , { e r r o r M s g : f u n c t i o n ( a , b ) { v a r   c = d o c u m e n t . i d ( b . s a m e M o n t h A s ) & & d o c u m e n t . i d ( b . s a m e M o n t h A s ) . g e t ( " v a l u e " ) ; v a r   d = a . g e t ( " v a l u e " ) ; i f ( d ! = " " ) { r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( c ? " s a m e M o n t h " : " s t a r t M o n t h " ) ; 
 } } , t e s t : f u n c t i o n ( a , b ) { v a r   d = D a t e . p a r s e ( a . g e t ( " v a l u e " ) ) ; v a r   c = D a t e . p a r s e ( d o c u m e n t . i d ( b . s a m e M o n t h A s ) & & d o c u m e n t . i d ( b . s a m e M o n t h A s ) . g e t ( " v a l u e " ) ) ; r e t u r n   d & & c ? d . f o r m a t ( " % B " ) = = c . f o r m a t ( " % B " ) : t r u e ; 
 } } ] , [ " v a l i d a t e - c c - n u m " , { e r r o r M s g : f u n c t i o n ( a ) { v a r   b = a . g e t ( " v a l u e " ) . r e p l a c e ( / [ ^ 0 - 9 ] / g , " " ) ; r e t u r n   F o r m . V a l i d a t o r . g e t M s g ( " c r e d i t c a r d " ) . s u b s t i t u t e ( { l e n g t h : b . l e n g t h } ) ; 
 } , t e s t : f u n c t i o n ( c ) { i f ( F o r m . V a l i d a t o r . g e t V a l i d a t o r ( " I s E m p t y " ) . t e s t ( c ) ) { r e t u r n   t r u e ; } v a r   g = c . g e t ( " v a l u e " ) ; g = g . r e p l a c e ( / [ ^ 0 - 9 ] / g , " " ) ; v a r   a = f a l s e ; i f ( g . t e s t ( / ^ 4 [ 0 - 9 ] { 1 2 } ( [ 0 - 9 ] { 3 } ) ? $ / ) ) { a = " V i s a " ; 
 } e l s e { i f ( g . t e s t ( / ^ 5 [ 1 - 5 ] ( [ 0 - 9 ] { 1 4 } ) $ / ) ) { a = " M a s t e r   C a r d " ; } e l s e { i f ( g . t e s t ( / ^ 3 [ 4 7 ] [ 0 - 9 ] { 1 3 } $ / ) ) { a = " A m e r i c a n   E x p r e s s " ; } e l s e { i f ( g . t e s t ( / ^ 6 0 1 1 [ 0 - 9 ] { 1 2 } $ / ) ) { a = " D i s c o v e r " ; 
 } } } } i f ( a ) { v a r   d = 0 ; v a r   e = 0 ; f o r ( v a r   b = g . l e n g t h - 1 ; b > = 0 ; - - b ) { e = g . c h a r A t ( b ) . t o I n t ( ) ; i f ( e = = 0 ) { c o n t i n u e ; } i f ( ( g . l e n g t h - b ) % 2 = = 0 ) { e + = e ; } i f ( e > 9 ) { e = e . t o S t r i n g ( ) . c h a r A t ( 0 ) . t o I n t ( ) + e . t o S t r i n g ( ) . c h a r A t ( 1 ) . t o I n t ( ) ; 
 } d + = e ; } i f ( ( d % 1 0 ) = = 0 ) { r e t u r n   t r u e ; } } v a r   f = " " ; w h i l e ( g ! = " " ) { f + = "   " + g . s u b s t r ( 0 , 4 ) ; g = g . s u b s t r ( 4 ) ; } c . g e t P a r e n t ( " f o r m " ) . r e t r i e v e ( " v a l i d a t o r " ) . i g n o r e F i e l d ( c ) ; c . s e t ( " v a l u e " , f . c l e a n ( ) ) ; 
 c . g e t P a r e n t ( " f o r m " ) . r e t r i e v e ( " v a l i d a t o r " ) . e n f o r c e F i e l d ( c ) ; r e t u r n   f a l s e ; } } ] ] ) ; F x . E l e m e n t s = n e w   C l a s s ( { E x t e n d s : F x . C S S , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . e l e m e n t s = t h i s . s u b j e c t = $ $ ( b ) ; 
 t h i s . p a r e n t ( a ) ; } , c o m p u t e : f u n c t i o n ( g , h , j ) { v a r   c = { } ; f o r ( v a r   d   i n   g ) { v a r   a = g [ d ] , e = h [ d ] , f = c [ d ] = { } ; f o r ( v a r   b   i n   a ) { f [ b ] = t h i s . p a r e n t ( a [ b ] , e [ b ] , j ) ; } } r e t u r n   c ; 
 } , s e t : f u n c t i o n ( b ) { f o r ( v a r   c   i n   b ) { i f ( ! t h i s . e l e m e n t s [ c ] ) { c o n t i n u e ; } v a r   a = b [ c ] ; f o r ( v a r   d   i n   a ) { t h i s . r e n d e r ( t h i s . e l e m e n t s [ c ] , d , a [ d ] , t h i s . o p t i o n s . u n i t ) ; } } r e t u r n   t h i s ; 
 } , s t a r t : f u n c t i o n ( c ) { i f ( ! t h i s . c h e c k ( c ) ) { r e t u r n   t h i s ; } v a r   h = { } , j = { } ; f o r ( v a r   d   i n   c ) { i f ( ! t h i s . e l e m e n t s [ d ] ) { c o n t i n u e ; } v a r   f = c [ d ] , a = h [ d ] = { } , g = j [ d ] = { } ; f o r ( v a r   b   i n   f ) { v a r   e = t h i s . p r e p a r e ( t h i s . e l e m e n t s [ d ] , b , f [ b ] ) ; 
 a [ b ] = e . f r o m ; g [ b ] = e . t o ; } } r e t u r n   t h i s . p a r e n t ( h , j ) ; } } ) ; F x . A c c o r d i o n = n e w   C l a s s ( { E x t e n d s : F x . E l e m e n t s , o p t i o n s : { f i x e d H e i g h t : f a l s e , f i x e d W i d t h : f a l s e , d i s p l a y : 0 , s h o w : f a l s e , h e i g h t : t r u e , w i d t h : f a l s e , o p a c i t y : t r u e , a l w a y s H i d e : f a l s e , t r i g g e r : " c l i c k " , i n i t i a l D i s p l a y F x : t r u e , r e t u r n H e i g h t T o A u t o : t r u e } , i n i t i a l i z e : f u n c t i o n ( ) { v a r   d = f u n c t i o n ( e ) { r e t u r n   e ! = n u l l ; 
 } ; v a r   c = A r r a y . l i n k ( a r g u m e n t s , { c o n t a i n e r : T y p e . i s E l e m e n t , o p t i o n s : T y p e . i s O b j e c t , t o g g l e r s : d , e l e m e n t s : d } ) ; t h i s . p a r e n t ( c . e l e m e n t s , c . o p t i o n s ) ; t h i s . t o g g l e r s = $ $ ( c . t o g g l e r s ) ; 
 t h i s . p r e v i o u s = - 1 ; t h i s . i n t e r n a l C h a i n = n e w   C h a i n ( ) ; i f ( t h i s . o p t i o n s . a l w a y s H i d e ) { t h i s . o p t i o n s . w a i t = t r u e ; } i f ( t h i s . o p t i o n s . s h o w | | t h i s . o p t i o n s . s h o w = = = 0 ) { t h i s . o p t i o n s . d i s p l a y = f a l s e ; 
 t h i s . p r e v i o u s = t h i s . o p t i o n s . s h o w ; } i f ( t h i s . o p t i o n s . s t a r t ) { t h i s . o p t i o n s . d i s p l a y = f a l s e ; t h i s . o p t i o n s . s h o w = f a l s e ; } t h i s . e f f e c t s = { } ; i f ( t h i s . o p t i o n s . o p a c i t y ) { t h i s . e f f e c t s . o p a c i t y = " f u l l O p a c i t y " ; 
 } i f ( t h i s . o p t i o n s . w i d t h ) { t h i s . e f f e c t s . w i d t h = t h i s . o p t i o n s . f i x e d W i d t h ? " f u l l W i d t h " : " o f f s e t W i d t h " ; } i f ( t h i s . o p t i o n s . h e i g h t ) { t h i s . e f f e c t s . h e i g h t = t h i s . o p t i o n s . f i x e d H e i g h t ? " f u l l H e i g h t " : " s c r o l l H e i g h t " ; 
 } f o r ( v a r   b = 0 , a = t h i s . t o g g l e r s . l e n g t h ; b < a ; b + + ) { t h i s . a d d S e c t i o n ( t h i s . t o g g l e r s [ b ] , t h i s . e l e m e n t s [ b ] ) ; } t h i s . e l e m e n t s . e a c h ( f u n c t i o n ( f , e ) { i f ( t h i s . o p t i o n s . s h o w = = = e ) { t h i s . f i r e E v e n t ( " a c t i v e " , [ t h i s . t o g g l e r s [ e ] , f ] ) ; 
 } e l s e { f o r ( v a r   g   i n   t h i s . e f f e c t s ) { f . s e t S t y l e ( g , 0 ) ; } } } , t h i s ) ; i f ( t h i s . o p t i o n s . d i s p l a y | | t h i s . o p t i o n s . d i s p l a y = = = 0 | | t h i s . o p t i o n s . i n i t i a l D i s p l a y F x = = = f a l s e ) { t h i s . d i s p l a y ( t h i s . o p t i o n s . d i s p l a y , t h i s . o p t i o n s . i n i t i a l D i s p l a y F x ) ; 
 } i f ( t h i s . o p t i o n s . f i x e d H e i g h t ! = = f a l s e ) { t h i s . o p t i o n s . r e t u r n H e i g h t T o A u t o = f a l s e ; } t h i s . a d d E v e n t ( " c o m p l e t e " , t h i s . i n t e r n a l C h a i n . c a l l C h a i n . b i n d ( t h i s . i n t e r n a l C h a i n ) ) ; 
 } , a d d S e c t i o n : f u n c t i o n ( e , c ) { e = d o c u m e n t . i d ( e ) ; c = d o c u m e n t . i d ( c ) ; t h i s . t o g g l e r s . i n c l u d e ( e ) ; t h i s . e l e m e n t s . i n c l u d e ( c ) ; v a r   f = t h i s . t o g g l e r s . c o n t a i n s ( e ) ; v a r   a = t h i s . t o g g l e r s . i n d e x O f ( e ) ; 
 v a r   b = t h i s . d i s p l a y . p a s s ( a , t h i s ) ; e . s t o r e ( " a c c o r d i o n : d i s p l a y " , b ) . a d d E v e n t ( t h i s . o p t i o n s . t r i g g e r , b ) ; i f ( t h i s . o p t i o n s . h e i g h t ) { c . s e t S t y l e s ( { " p a d d i n g - t o p " : 0 , " b o r d e r - t o p " : " n o n e " , " p a d d i n g - b o t t o m " : 0 , " b o r d e r - b o t t o m " : " n o n e " } ) ; 
 } i f ( t h i s . o p t i o n s . w i d t h ) { c . s e t S t y l e s ( { " p a d d i n g - l e f t " : 0 , " b o r d e r - l e f t " : " n o n e " , " p a d d i n g - r i g h t " : 0 , " b o r d e r - r i g h t " : " n o n e " } ) ; } c . f u l l O p a c i t y = 1 ; i f ( t h i s . o p t i o n s . f i x e d W i d t h ) { c . f u l l W i d t h = t h i s . o p t i o n s . f i x e d W i d t h ; 
 } i f ( t h i s . o p t i o n s . f i x e d H e i g h t ) { c . f u l l H e i g h t = t h i s . o p t i o n s . f i x e d H e i g h t ; } c . s e t S t y l e ( " o v e r f l o w " , " h i d d e n " ) ; i f ( ! f ) { f o r ( v a r   d   i n   t h i s . e f f e c t s ) { c . s e t S t y l e ( d , 0 ) ; 
 } } r e t u r n   t h i s ; } , r e m o v e S e c t i o n : f u n c t i o n ( e , b ) { v a r   a = t h i s . t o g g l e r s . i n d e x O f ( e ) ; v a r   c = t h i s . e l e m e n t s [ a ] ; v a r   d = f u n c t i o n ( ) { t h i s . t o g g l e r s . e r a s e ( e ) ; t h i s . e l e m e n t s . e r a s e ( c ) ; 
 t h i s . d e t a c h ( e ) ; } . b i n d ( t h i s ) ; i f ( t h i s . n o w = = a | | b ! = n u l l ) { t h i s . d i s p l a y ( b ! = n u l l ? b : ( a - 1 > = 0 ? a - 1 : 0 ) ) . c h a i n ( d ) ; } e l s e { d ( ) ; } r e t u r n   t h i s ; } , d e t a c h : f u n c t i o n ( b ) { v a r   a = f u n c t i o n ( c ) { c . r e m o v e E v e n t ( t h i s . o p t i o n s . t r i g g e r , c . r e t r i e v e ( " a c c o r d i o n : d i s p l a y " ) ) ; 
 } . b i n d ( t h i s ) ; i f ( ! b ) { t h i s . t o g g l e r s . e a c h ( a ) ; } e l s e { a ( b ) ; } r e t u r n   t h i s ; } , d i s p l a y : f u n c t i o n ( a , b ) { i f ( ! t h i s . c h e c k ( a , b ) ) { r e t u r n   t h i s ; } b = b ! = n u l l ? b : t r u e ; a = ( t y p e O f ( a ) = = " e l e m e n t " ) ? t h i s . e l e m e n t s . i n d e x O f ( a ) : a ; 
 i f ( a = = t h i s . p r e v i o u s & & ! t h i s . o p t i o n s . a l w a y s H i d e ) { r e t u r n   t h i s ; } i f ( t h i s . o p t i o n s . r e t u r n H e i g h t T o A u t o ) { v a r   d = t h i s . e l e m e n t s [ t h i s . p r e v i o u s ] ; i f ( d & & ! t h i s . s e l f H i d d e n ) { f o r ( v a r   c   i n   t h i s . e f f e c t s ) { d . s e t S t y l e ( c , d [ t h i s . e f f e c t s [ c ] ] ) ; 
 } } } i f ( ( t h i s . t i m e r & & t h i s . o p t i o n s . w a i t ) | | ( a = = = t h i s . p r e v i o u s & & ! t h i s . o p t i o n s . a l w a y s H i d e ) ) { r e t u r n   t h i s ; } t h i s . p r e v i o u s = a ; v a r   e = { } ; t h i s . e l e m e n t s . e a c h ( f u n c t i o n ( h , g ) { e [ g ] = { } ; 
 v a r   f ; i f ( g ! = a ) { f = t r u e ; } e l s e { i f ( t h i s . o p t i o n s . a l w a y s H i d e & & ( ( h . o f f s e t H e i g h t > 0 & & t h i s . o p t i o n s . h e i g h t ) | | h . o f f s e t W i d t h > 0 & & t h i s . o p t i o n s . w i d t h ) ) { f = t r u e ; t h i s . s e l f H i d d e n = t r u e ; 
 } } t h i s . f i r e E v e n t ( f ? " b a c k g r o u n d " : " a c t i v e " , [ t h i s . t o g g l e r s [ g ] , h ] ) ; f o r ( v a r   j   i n   t h i s . e f f e c t s ) { e [ g ] [ j ] = f ? 0 : h [ t h i s . e f f e c t s [ j ] ] ; } } , t h i s ) ; t h i s . i n t e r n a l C h a i n . c l e a r C h a i n ( ) ; 
 t h i s . i n t e r n a l C h a i n . c h a i n ( f u n c t i o n ( ) { i f ( t h i s . o p t i o n s . r e t u r n H e i g h t T o A u t o & & ! t h i s . s e l f H i d d e n ) { v a r   f = t h i s . e l e m e n t s [ a ] ; i f ( f ) { f . s e t S t y l e ( " h e i g h t " , " a u t o " ) ; } } } . b i n d ( t h i s ) ) ; 
 r e t u r n   b ? t h i s . s t a r t ( e ) : t h i s . s e t ( e ) ; } } ) ; v a r   A c c o r d i o n = n e w   C l a s s ( { E x t e n d s : F x . A c c o r d i o n , i n i t i a l i z e : f u n c t i o n ( ) { t h i s . p a r e n t . a p p l y ( t h i s , a r g u m e n t s ) ; v a r   a = A r r a y . l i n k ( a r g u m e n t s , { c o n t a i n e r : T y p e . i s E l e m e n t } ) ; 
 t h i s . c o n t a i n e r = a . c o n t a i n e r ; } , a d d S e c t i o n : f u n c t i o n ( c , b , e ) { c = d o c u m e n t . i d ( c ) ; b = d o c u m e n t . i d ( b ) ; v a r   d = t h i s . t o g g l e r s . c o n t a i n s ( c ) ; v a r   a = t h i s . t o g g l e r s . l e n g t h ; i f ( a & & ( ! d | | e ) ) { e = e ! = n u l l ? e : a - 1 ; 
 c . i n j e c t ( t h i s . t o g g l e r s [ e ] , " b e f o r e " ) ; b . i n j e c t ( c , " a f t e r " ) ; } e l s e { i f ( t h i s . c o n t a i n e r & & ! d ) { c . i n j e c t ( t h i s . c o n t a i n e r ) ; b . i n j e c t ( t h i s . c o n t a i n e r ) ; } } r e t u r n   t h i s . p a r e n t . a p p l y ( t h i s , a r g u m e n t s ) ; 
 } } ) ; F x . M o v e = n e w   C l a s s ( { E x t e n d s : F x . M o r p h , o p t i o n s : { r e l a t i v e T o : d o c u m e n t . b o d y , p o s i t i o n : " c e n t e r " , e d g e : f a l s e , o f f s e t : { x : 0 , y : 0 } } , s t a r t : f u n c t i o n ( a ) { v a r   b = t h i s . e l e m e n t , c = b . g e t S t y l e s ( " t o p " , " l e f t " ) ; 
 i f ( c . t o p = = " a u t o " | | c . l e f t = = " a u t o " ) { b . s e t P o s i t i o n ( b . g e t P o s i t i o n ( b . g e t O f f s e t P a r e n t ( ) ) ) ; } r e t u r n   t h i s . p a r e n t ( b . p o s i t i o n ( O b j e c t . m e r g e ( t h i s . o p t i o n s , a , { r e t u r n P o s : t r u e } ) ) ) ; 
 } } ) ; E l e m e n t . P r o p e r t i e s . m o v e = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " m o v e " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " m o v e " ) ; i f ( ! a ) { a = n e w   F x . M o v e ( t h i s , { l i n k : " c a n c e l " } ) ; 
 t h i s . s t o r e ( " m o v e " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { m o v e : f u n c t i o n ( a ) { t h i s . g e t ( " m o v e " ) . s t a r t ( a ) ; r e t u r n   t h i s ; } } ) ; ( f u n c t i o n ( ) { F x . S c r o l l = n e w   C l a s s ( { E x t e n d s : F x , o p t i o n s : { o f f s e t : { x : 0 , y : 0 } , w h e e l S t o p s : t r u e } , i n i t i a l i z e : f u n c t i o n ( c , b ) { t h i s . e l e m e n t = t h i s . s u b j e c t = d o c u m e n t . i d ( c ) ; 
 t h i s . p a r e n t ( b ) ; i f ( t y p e O f ( t h i s . e l e m e n t ) ! = " e l e m e n t " ) { t h i s . e l e m e n t = d o c u m e n t . i d ( t h i s . e l e m e n t . g e t D o c u m e n t ( ) . b o d y ) ; } i f ( t h i s . o p t i o n s . w h e e l S t o p s ) { v a r   d = t h i s . e l e m e n t , e = t h i s . c a n c e l . p a s s ( f a l s e , t h i s ) ; 
 t h i s . a d d E v e n t ( " s t a r t " , f u n c t i o n ( ) { d . a d d E v e n t ( " m o u s e w h e e l " , e ) ; } , t r u e ) ; t h i s . a d d E v e n t ( " c o m p l e t e " , f u n c t i o n ( ) { d . r e m o v e E v e n t ( " m o u s e w h e e l " , e ) ; } , t r u e ) ; } } , s e t : f u n c t i o n ( ) { v a r   b = A r r a y . f l a t t e n ( a r g u m e n t s ) ; 
 i f ( B r o w s e r . f i r e f o x ) { b = [ M a t h . r o u n d ( b [ 0 ] ) , M a t h . r o u n d ( b [ 1 ] ) ] ; } t h i s . e l e m e n t . s c r o l l T o ( b [ 0 ] + t h i s . o p t i o n s . o f f s e t . x , b [ 1 ] + t h i s . o p t i o n s . o f f s e t . y ) ; } , c o m p u t e : f u n c t i o n ( d , c , b ) { r e t u r n [ 0 , 1 ] . m a p ( f u n c t i o n ( e ) { r e t u r n   F x . c o m p u t e ( d [ e ] , c [ e ] , b ) ; 
 } ) ; } , s t a r t : f u n c t i o n ( c , h ) { i f ( ! t h i s . c h e c k ( c , h ) ) { r e t u r n   t h i s ; } v a r   e = t h i s . e l e m e n t , f = e . g e t S c r o l l S i z e ( ) , b = e . g e t S c r o l l ( ) , d = e . g e t S i z e ( ) ; v a l u e s = { x : c , y : h } ; f o r ( v a r   g   i n   v a l u e s ) { i f ( ! v a l u e s [ g ] & & v a l u e s [ g ] ! = = 0 ) { v a l u e s [ g ] = b [ g ] ; 
 } i f ( t y p e O f ( v a l u e s [ g ] ) ! = " n u m b e r " ) { v a l u e s [ g ] = f [ g ] - d [ g ] ; } v a l u e s [ g ] + = t h i s . o p t i o n s . o f f s e t [ g ] ; } r e t u r n   t h i s . p a r e n t ( [ b . x , b . y ] , [ v a l u e s . x , v a l u e s . y ] ) ; } , t o T o p : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t ( f a l s e , 0 ) ; 
 } , t o L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t ( 0 , f a l s e ) ; } , t o R i g h t : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t ( " r i g h t " , f a l s e ) ; } , t o B o t t o m : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t ( f a l s e , " b o t t o m " ) ; 
 } , t o E l e m e n t : f u n c t i o n ( d ) { v a r   c = d o c u m e n t . i d ( d ) . g e t P o s i t i o n ( t h i s . e l e m e n t ) , b = a ( t h i s . e l e m e n t ) ? { x : 0 , y : 0 } : t h i s . e l e m e n t . g e t S c r o l l ( ) ; r e t u r n   t h i s . s t a r t ( c . x + b . x , c . y + b . y ) ; 
 } , s c r o l l I n t o V i e w : f u n c t i o n ( d , g , e ) { g = g ? A r r a y . f r o m ( g ) : [ " x " , " y " ] ; d = d o c u m e n t . i d ( d ) ; v a r   i = { } , f = d . g e t P o s i t i o n ( t h i s . e l e m e n t ) , j = d . g e t S i z e ( ) , h = t h i s . e l e m e n t . g e t S c r o l l ( ) , b = t h i s . e l e m e n t . g e t S i z e ( ) , c = { x : f . x + j . x , y : f . y + j . y } ; 
 [ " x " , " y " ] . e a c h ( f u n c t i o n ( k ) { i f ( g . c o n t a i n s ( k ) ) { i f ( c [ k ] > h [ k ] + b [ k ] ) { i [ k ] = c [ k ] - b [ k ] ; } i f ( f [ k ] < h [ k ] ) { i [ k ] = f [ k ] ; } } i f ( i [ k ] = = n u l l ) { i [ k ] = h [ k ] ; } i f ( e & & e [ k ] ) { i [ k ] = i [ k ] + e [ k ] ; 
 } } , t h i s ) ; i f ( i . x ! = h . x | | i . y ! = h . y ) { t h i s . s t a r t ( i . x , i . y ) ; } r e t u r n   t h i s ; } , s c r o l l T o C e n t e r : f u n c t i o n ( e , f , h ) { f = f ? A r r a y . f r o m ( f ) : [ " x " , " y " ] ; e = d o c u m e n t . i d ( e ) ; v a r   i = { } , c = e . g e t P o s i t i o n ( t h i s . e l e m e n t ) , d = e . g e t S i z e ( ) , b = t h i s . e l e m e n t . g e t S c r o l l ( ) , g = t h i s . e l e m e n t . g e t S i z e ( ) ; 
 [ " x " , " y " ] . e a c h ( f u n c t i o n ( j ) { i f ( f . c o n t a i n s ( j ) ) { i [ j ] = c [ j ] - ( g [ j ] - d [ j ] ) / 2 ; } i f ( i [ j ] = = n u l l ) { i [ j ] = b [ j ] ; } i f ( h & & h [ j ] ) { i [ j ] = i [ j ] + h [ j ] ; } } , t h i s ) ; i f ( i . x ! = b . x | | i . y ! = b . y ) { t h i s . s t a r t ( i . x , i . y ) ; 
 } r e t u r n   t h i s ; } } ) ; f u n c t i o n   a ( b ) { r e t u r n ( / ^ ( ? : b o d y | h t m l ) $ / i ) . t e s t ( b . t a g N a m e ) ; } } ) ( ) ; F x . S l i d e = n e w   C l a s s ( { E x t e n d s : F x , o p t i o n s : { m o d e : " v e r t i c a l " , w r a p p e r : f a l s e , h i d e O v e r f l o w : t r u e , r e s e t H e i g h t : f a l s e } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . a d d E v e n t ( " c o m p l e t e " , f u n c t i o n ( ) { t h i s . o p e n = ( t h i s . w r a p p e r [ " o f f s e t " + t h i s . l a y o u t . c a p i t a l i z e ( ) ] ! = 0 ) ; 
 i f ( t h i s . o p e n & & t h i s . o p t i o n s . r e s e t H e i g h t ) { t h i s . w r a p p e r . s e t S t y l e ( " h e i g h t " , " " ) ; } } , t r u e ) ; t h i s . e l e m e n t = t h i s . s u b j e c t = d o c u m e n t . i d ( b ) ; t h i s . p a r e n t ( a ) ; v a r   d = t h i s . e l e m e n t . r e t r i e v e ( " w r a p p e r " ) ; 
 v a r   c = t h i s . e l e m e n t . g e t S t y l e s ( " m a r g i n " , " p o s i t i o n " , " o v e r f l o w " ) ; i f ( t h i s . o p t i o n s . h i d e O v e r f l o w ) { c = O b j e c t . a p p e n d ( c , { o v e r f l o w : " h i d d e n " } ) ; } i f ( t h i s . o p t i o n s . w r a p p e r ) { d = d o c u m e n t . i d ( t h i s . o p t i o n s . w r a p p e r ) . s e t S t y l e s ( c ) ; 
 } t h i s . w r a p p e r = d | | n e w   E l e m e n t ( " d i v " , { s t y l e s : c } ) . w r a p s ( t h i s . e l e m e n t ) ; t h i s . e l e m e n t . s t o r e ( " w r a p p e r " , t h i s . w r a p p e r ) . s e t S t y l e ( " m a r g i n " , 0 ) ; t h i s . n o w = [ ] ; t h i s . o p e n = t r u e ; 
 } , v e r t i c a l : f u n c t i o n ( ) { t h i s . m a r g i n = " m a r g i n - t o p " ; t h i s . l a y o u t = " h e i g h t " ; t h i s . o f f s e t = t h i s . e l e m e n t . o f f s e t H e i g h t ; } , h o r i z o n t a l : f u n c t i o n ( ) { t h i s . m a r g i n = " m a r g i n - l e f t " ; 
 t h i s . l a y o u t = " w i d t h " ; t h i s . o f f s e t = t h i s . e l e m e n t . o f f s e t W i d t h ; } , s e t : f u n c t i o n ( a ) { t h i s . e l e m e n t . s e t S t y l e ( t h i s . m a r g i n , a [ 0 ] ) ; t h i s . w r a p p e r . s e t S t y l e ( t h i s . l a y o u t , a [ 1 ] ) ; 
 r e t u r n   t h i s ; } , c o m p u t e : f u n c t i o n ( c , b , a ) { r e t u r n [ 0 , 1 ] . m a p ( f u n c t i o n ( d ) { r e t u r n   F x . c o m p u t e ( c [ d ] , b [ d ] , a ) ; } ) ; } , s t a r t : f u n c t i o n ( b , e ) { i f ( ! t h i s . c h e c k ( b , e ) ) { r e t u r n   t h i s ; 
 } t h i s [ e | | t h i s . o p t i o n s . m o d e ] ( ) ; v a r   d = t h i s . e l e m e n t . g e t S t y l e ( t h i s . m a r g i n ) . t o I n t ( ) ; v a r   c = t h i s . w r a p p e r . g e t S t y l e ( t h i s . l a y o u t ) . t o I n t ( ) ; v a r   a = [ [ d , c ] , [ 0 , t h i s . o f f s e t ] ] ; 
 v a r   g = [ [ d , c ] , [ - t h i s . o f f s e t , 0 ] ] ; v a r   f ; s w i t c h ( b ) { c a s e " i n " : f = a ; b r e a k ; c a s e " o u t " : f = g ; b r e a k ; c a s e " t o g g l e " : f = ( c = = 0 ) ? a : g ; } r e t u r n   t h i s . p a r e n t ( f [ 0 ] , f [ 1 ] ) ; } , s l i d e I n : f u n c t i o n ( a ) { r e t u r n   t h i s . s t a r t ( " i n " , a ) ; 
 } , s l i d e O u t : f u n c t i o n ( a ) { r e t u r n   t h i s . s t a r t ( " o u t " , a ) ; } , h i d e : f u n c t i o n ( a ) { t h i s [ a | | t h i s . o p t i o n s . m o d e ] ( ) ; t h i s . o p e n = f a l s e ; r e t u r n   t h i s . s e t ( [ - t h i s . o f f s e t , 0 ] ) ; } , s h o w : f u n c t i o n ( a ) { t h i s [ a | | t h i s . o p t i o n s . m o d e ] ( ) ; 
 t h i s . o p e n = t r u e ; r e t u r n   t h i s . s e t ( [ 0 , t h i s . o f f s e t ] ) ; } , t o g g l e : f u n c t i o n ( a ) { r e t u r n   t h i s . s t a r t ( " t o g g l e " , a ) ; } } ) ; E l e m e n t . P r o p e r t i e s . s l i d e = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " s l i d e " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " s l i d e " ) ; i f ( ! a ) { a = n e w   F x . S l i d e ( t h i s , { l i n k : " c a n c e l " } ) ; t h i s . s t o r e ( " s l i d e " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { s l i d e : f u n c t i o n ( d , e ) { d = d | | " t o g g l e " ; 
 v a r   b = t h i s . g e t ( " s l i d e " ) , a ; s w i t c h ( d ) { c a s e " h i d e " : b . h i d e ( e ) ; b r e a k ; c a s e " s h o w " : b . s h o w ( e ) ; b r e a k ; c a s e " t o g g l e " : v a r   c = t h i s . r e t r i e v e ( " s l i d e : f l a g " , b . o p e n ) ; b [ c ? " s l i d e O u t " : " s l i d e I n " ] ( e ) ; 
 t h i s . s t o r e ( " s l i d e : f l a g " , ! c ) ; a = t r u e ; b r e a k ; d e f a u l t : b . s t a r t ( d , e ) ; } i f ( ! a ) { t h i s . e l i m i n a t e ( " s l i d e : f l a g " ) ; } r e t u r n   t h i s ; } } ) ; v a r   S m o o t h S c r o l l = F x . S m o o t h S c r o l l = n e w   C l a s s ( { E x t e n d s : F x . S c r o l l , i n i t i a l i z e : f u n c t i o n ( c , d ) { d = d | | d o c u m e n t ; 
 t h i s . d o c = d . g e t D o c u m e n t ( ) ; t h i s . p a r e n t ( t h i s . d o c , c ) ; v a r   e = d . g e t W i n d o w ( ) , a = e . l o c a t i o n . h r e f . m a t c h ( / ^ [ ^ # ] * / ) [ 0 ] + " # " , b = $ $ ( t h i s . o p t i o n s . l i n k s | | t h i s . d o c . l i n k s ) ; 
 b . e a c h ( f u n c t i o n ( g ) { i f ( g . h r e f . i n d e x O f ( a ) ! = 0 ) { r e t u r n ; } v a r   f = g . h r e f . s u b s t r ( a . l e n g t h ) ; i f ( f ) { t h i s . u s e L i n k ( g , f ) ; } } , t h i s ) ; } , u s e L i n k : f u n c t i o n ( b , a ) { b . a d d E v e n t ( " c l i c k " , f u n c t i o n ( d ) { v a r   c = d o c u m e n t . i d ( a ) | | t h i s . d o c . g e t E l e m e n t ( " a [ n a m e = " + a + " ] " ) ; 
 i f ( ! c ) { r e t u r n ; } d . p r e v e n t D e f a u l t ( ) ; t h i s . t o E l e m e n t ( c ) . c h a i n ( f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " s c r o l l e d T o " , [ b , c ] ) ; } . b i n d ( t h i s ) ) ; } . b i n d ( t h i s ) ) ; r e t u r n   t h i s ; } } ) ; H a s h . C o o k i e = n e w   C l a s s ( { E x t e n d s : C o o k i e , o p t i o n s : { a u t o S a v e : t r u e } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . p a r e n t ( b , a ) ; 
 t h i s . l o a d ( ) ; } , s a v e : f u n c t i o n ( ) { v a r   a = J S O N . e n c o d e ( t h i s . h a s h ) ; i f ( ! a | | a . l e n g t h > 4 0 9 6 ) { r e t u r n   f a l s e ; } i f ( a = = " { } " ) { t h i s . d i s p o s e ( ) ; } e l s e { t h i s . w r i t e ( a ) ; } r e t u r n   t r u e ; 
 } , l o a d : f u n c t i o n ( ) { t h i s . h a s h = n e w   H a s h ( J S O N . d e c o d e ( t h i s . r e a d ( ) , t r u e ) ) ; r e t u r n   t h i s ; } } ) ; H a s h . e a c h ( H a s h . p r o t o t y p e , f u n c t i o n ( b , a ) { i f ( t y p e o f   b = = " f u n c t i o n " ) { H a s h . C o o k i e . i m p l e m e n t ( a , f u n c t i o n ( ) { v a r   c = b . a p p l y ( t h i s . h a s h , a r g u m e n t s ) ; 
 i f ( t h i s . o p t i o n s . a u t o S a v e ) { t h i s . s a v e ( ) ; } r e t u r n   c ; } ) ; } } ) ; v a r   H t m l T a b l e = n e w   C l a s s ( { I m p l e m e n t s : [ O p t i o n s , E v e n t s , C l a s s . O c c l u d e ] , o p t i o n s : { p r o p e r t i e s : { c e l l p a d d i n g : 0 , c e l l s p a c i n g : 0 , b o r d e r : 0 } , r o w s : [ ] , h e a d e r s : [ ] , f o o t e r s : [ ] } , p r o p e r t y : " H t m l T a b l e " , i n i t i a l i z e : f u n c t i o n ( ) { v a r   a = A r r a y . l i n k ( a r g u m e n t s , { o p t i o n s : T y p e . i s O b j e c t , t a b l e : T y p e . i s E l e m e n t } ) ; 
 t h i s . s e t O p t i o n s ( a . o p t i o n s ) ; t h i s . e l e m e n t = a . t a b l e | | n e w   E l e m e n t ( " t a b l e " , t h i s . o p t i o n s . p r o p e r t i e s ) ; i f ( t h i s . o c c l u d e ( ) ) { r e t u r n   t h i s . o c c l u d e d ; } t h i s . b u i l d ( ) ; } , b u i l d : f u n c t i o n ( ) { t h i s . e l e m e n t . s t o r e ( " H t m l T a b l e " , t h i s ) ; 
 t h i s . b o d y = d o c u m e n t . i d ( t h i s . e l e m e n t . t B o d i e s [ 0 ] ) | | n e w   E l e m e n t ( " t b o d y " ) . i n j e c t ( t h i s . e l e m e n t ) ; $ $ ( t h i s . b o d y . r o w s ) ; i f ( t h i s . o p t i o n s . h e a d e r s . l e n g t h ) { t h i s . s e t H e a d e r s ( t h i s . o p t i o n s . h e a d e r s ) ; 
 } e l s e { t h i s . t h e a d = d o c u m e n t . i d ( t h i s . e l e m e n t . t H e a d ) ; } i f ( t h i s . t h e a d ) { t h i s . h e a d = d o c u m e n t . i d ( t h i s . t h e a d . r o w s [ 0 ] ) ; } i f ( t h i s . o p t i o n s . f o o t e r s . l e n g t h ) { t h i s . s e t F o o t e r s ( t h i s . o p t i o n s . f o o t e r s ) ; 
 } t h i s . t f o o t = d o c u m e n t . i d ( t h i s . e l e m e n t . t F o o t ) ; i f ( t h i s . t f o o t ) { t h i s . f o o t = d o c u m e n t . i d ( t h i s . t f o o t . r o w s [ 0 ] ) ; } t h i s . o p t i o n s . r o w s . e a c h ( f u n c t i o n ( a ) { t h i s . p u s h ( a ) ; } , t h i s ) ; 
 [ " a d o p t " , " i n j e c t " , " w r a p s " , " g r a b " , " r e p l a c e s " , " d i s p o s e " ] . e a c h ( f u n c t i o n ( a ) { t h i s [ a ] = t h i s . e l e m e n t [ a ] . b i n d ( t h i s . e l e m e n t ) ; } , t h i s ) ; } , t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t ; 
 } , e m p t y : f u n c t i o n ( ) { t h i s . b o d y . e m p t y ( ) ; r e t u r n   t h i s ; } , s e t : f u n c t i o n ( d , a ) { v a r   c = ( d = = " h e a d e r s " ) ? " t H e a d " : " t F o o t " ; t h i s [ c . t o L o w e r C a s e ( ) ] = ( d o c u m e n t . i d ( t h i s . e l e m e n t [ c ] ) | | n e w   E l e m e n t ( c . t o L o w e r C a s e ( ) ) . i n j e c t ( t h i s . e l e m e n t , " t o p " ) ) . e m p t y ( ) ; 
 v a r   b = t h i s . p u s h ( a , { } , t h i s [ c . t o L o w e r C a s e ( ) ] , d = = " h e a d e r s " ? " t h " : " t d " ) ; i f ( d = = " h e a d e r s " ) { t h i s . h e a d = d o c u m e n t . i d ( t h i s . t h e a d . r o w s [ 0 ] ) ; } e l s e { t h i s . f o o t = d o c u m e n t . i d ( t h i s . t h e a d . r o w s [ 0 ] ) ; 
 } r e t u r n   b ; } , s e t H e a d e r s : f u n c t i o n ( a ) { t h i s . s e t ( " h e a d e r s " , a ) ; r e t u r n   t h i s ; } , s e t F o o t e r s : f u n c t i o n ( a ) { t h i s . s e t ( " f o o t e r s " , a ) ; r e t u r n   t h i s ; } , p u s h : f u n c t i o n ( e , b , d , a ) { i f ( t y p e O f ( e ) = = " e l e m e n t " & & e . g e t ( " t a g " ) = = " t r " ) { e . i n j e c t ( d | | t h i s . b o d y ) ; 
 r e t u r n { t r : e , t d s : e . g e t C h i l d r e n ( " t d " ) } ; } v a r   c = e . m a p ( f u n c t i o n ( h ) { v a r   i = n e w   E l e m e n t ( a | | " t d " , h ? h . p r o p e r t i e s : { } ) , g = ( h ? h . c o n t e n t : " " ) | | h , f = d o c u m e n t . i d ( g ) ; i f ( t y p e O f ( g ) ! = " s t r i n g " & & f ) { i . a d o p t ( f ) ; 
 } e l s e { i . s e t ( " h t m l " , g ) ; } r e t u r n   i ; } ) ; r e t u r n { t r : n e w   E l e m e n t ( " t r " , b ) . i n j e c t ( d | | t h i s . b o d y ) . a d o p t ( c ) , t d s : c } ; } } ) ; H t m l T a b l e = C l a s s . r e f a c t o r ( H t m l T a b l e , { o p t i o n s : { c l a s s Z e b r a : " t a b l e - t r - o d d " , z e b r a : t r u e } , i n i t i a l i z e : f u n c t i o n ( ) { t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; 
 i f ( t h i s . o c c l u d e d ) { r e t u r n   t h i s . o c c l u d e d ; } i f ( t h i s . o p t i o n s . z e b r a ) { t h i s . u p d a t e Z e b r a s ( ) ; } } , u p d a t e Z e b r a s : f u n c t i o n ( ) { A r r a y . e a c h ( t h i s . b o d y . r o w s , t h i s . z e b r a , t h i s ) ; 
 } , z e b r a : f u n c t i o n ( b , a ) { r e t u r n   b [ ( ( a % 2 ) ? " r e m o v e " : " a d d " ) + " C l a s s " ] ( t h i s . o p t i o n s . c l a s s Z e b r a ) ; } , p u s h : f u n c t i o n ( ) { v a r   a = t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( t h i s . o p t i o n s . z e b r a ) { t h i s . u p d a t e Z e b r a s ( ) ; 
 } r e t u r n   a ; } } ) ; H t m l T a b l e = C l a s s . r e f a c t o r ( H t m l T a b l e , { o p t i o n s : { s o r t I n d e x : 0 , s o r t R e v e r s e : f a l s e , p a r s e r s : [ ] , d e f a u l t P a r s e r : " s t r i n g " , c l a s s S o r t a b l e : " t a b l e - s o r t a b l e " , c l a s s H e a d S o r t : " t a b l e - t h - s o r t " , c l a s s H e a d S o r t R e v : " t a b l e - t h - s o r t - r e v " , c l a s s N o S o r t : " t a b l e - t h - n o s o r t " , c l a s s G r o u p H e a d : " t a b l e - t r - g r o u p - h e a d " , c l a s s G r o u p : " t a b l e - t r - g r o u p " , c l a s s C e l l S o r t : " t a b l e - t d - s o r t " , c l a s s S o r t S p a n : " t a b l e - t h - s o r t - s p a n " , s o r t a b l e : f a l s e } , i n i t i a l i z e : f u n c t i o n ( ) { t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; 
 i f ( t h i s . o c c l u d e d ) { r e t u r n   t h i s . o c c l u d e d ; } t h i s . s o r t e d = { i n d e x : n u l l , d i r : 1 } ; t h i s . b o u n d = { h e a d C l i c k : t h i s . h e a d C l i c k . b i n d ( t h i s ) } ; t h i s . s o r t S p a n s = n e w   E l e m e n t s ( ) ; i f ( t h i s . o p t i o n s . s o r t a b l e ) { t h i s . e n a b l e S o r t ( ) ; 
 i f ( t h i s . o p t i o n s . s o r t I n d e x ! = n u l l ) { t h i s . s o r t ( t h i s . o p t i o n s . s o r t I n d e x , t h i s . o p t i o n s . s o r t R e v e r s e ) ; } } } , a t t a c h S o r t s : f u n c t i o n ( a ) { t h i s . e l e m e n t . r e m o v e E v e n t s ( " c l i c k : r e l a y ( t h ) " ) ; 
 t h i s . e l e m e n t [ a ! = = f a l s e ? " a d d E v e n t " : " r e m o v e E v e n t " ] ( " c l i c k : r e l a y ( t h ) " , t h i s . b o u n d . h e a d C l i c k ) ; } , s e t H e a d e r s : f u n c t i o n ( ) { t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( t h i s . s o r t E n a b l e d ) { t h i s . d e t e c t P a r s e r s ( ) ; 
 } } , d e t e c t P a r s e r s : f u n c t i o n ( c ) { i f ( ! t h i s . h e a d ) { r e t u r n ; } v a r   a = t h i s . o p t i o n s . p a r s e r s , b = t h i s . b o d y . r o w s ; t h i s . p a r s e r s = $ $ ( t h i s . h e a d . c e l l s ) . m a p ( f u n c t i o n ( d , e ) { i f ( ! c & & ( d . h a s C l a s s ( t h i s . o p t i o n s . c l a s s N o S o r t ) | | d . r e t r i e v e ( " h t m l t a b l e - p a r s e r " ) ) ) { r e t u r n   d . r e t r i e v e ( " h t m l t a b l e - p a r s e r " ) ; 
 } v a r   f = n e w   E l e m e n t ( " d i v " ) ; A r r a y . e a c h ( d . c h i l d N o d e s , f u n c t i o n ( j ) { f . a d o p t ( j ) ; } ) ; f . i n j e c t ( d ) ; v a r   h = n e w   E l e m e n t ( " s p a n " , { h t m l : " & # 1 6 0 ; " , " c l a s s " : t h i s . o p t i o n s . c l a s s S o r t S p a n } ) . i n j e c t ( f , " t o p " ) ; 
 t h i s . s o r t S p a n s . p u s h ( h ) ; v a r   i = a [ e ] , g ; s w i t c h ( t y p e O f ( i ) ) { c a s e " f u n c t i o n " : i = { c o n v e r t : i } ; g = t r u e ; b r e a k ; c a s e " s t r i n g " : i = i ; g = t r u e ; b r e a k ; } i f ( ! g ) { O b j e c t . s o m e ( H t m l T a b l e . P a r s e r s , f u n c t i o n ( o ) { v a r   m = o . m a t c h ; 
 i f ( ! m ) { r e t u r n   f a l s e ; } f o r ( v a r   n = 0 , l = b . l e n g t h ; n < l ; n + + ) { v a r   k = d o c u m e n t . i d ( b [ n ] . c e l l s [ e ] ) ; v a r   p = k ? k . g e t ( " h t m l " ) . c l e a n ( ) : " " ; i f ( p & & m . t e s t ( p ) ) { i = o ; r e t u r n   t r u e ; 
 } } } ) ; } i f ( ! i ) { i = t h i s . o p t i o n s . d e f a u l t P a r s e r ; } d . s t o r e ( " h t m l t a b l e - p a r s e r " , i ) ; r e t u r n   i ; } , t h i s ) ; } , h e a d C l i c k : f u n c t i o n ( c , b ) { i f ( ! t h i s . h e a d | | b . h a s C l a s s ( t h i s . o p t i o n s . c l a s s N o S o r t ) ) { r e t u r n ; 
 } v a r   a = A r r a y . i n d e x O f ( t h i s . h e a d . c e l l s , b ) ; t h i s . s o r t ( a ) ; r e t u r n   f a l s e ; } , s o r t : f u n c t i o n ( f , h , m ) { i f ( ! t h i s . h e a d ) { r e t u r n ; } v a r   l = t h i s . o p t i o n s . c l a s s C e l l S o r t ; v a r   o = t h i s . o p t i o n s . c l a s s G r o u p , t = t h i s . o p t i o n s . c l a s s G r o u p H e a d ; 
 i f ( ! m ) { i f ( f ! = n u l l ) { i f ( t h i s . s o r t e d . i n d e x = = f ) { t h i s . s o r t e d . r e v e r s e = ! ( t h i s . s o r t e d . r e v e r s e ) ; } e l s e { i f ( t h i s . s o r t e d . i n d e x ! = n u l l ) { t h i s . s o r t e d . r e v e r s e = f a l s e ; t h i s . h e a d . c e l l s [ t h i s . s o r t e d . i n d e x ] . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s H e a d S o r t ) . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s H e a d S o r t R e v ) ; 
 } e l s e { t h i s . s o r t e d . r e v e r s e = t r u e ; } t h i s . s o r t e d . i n d e x = f ; } } e l s e { f = t h i s . s o r t e d . i n d e x ; } i f ( h ! = n u l l ) { t h i s . s o r t e d . r e v e r s e = h ; } v a r   d = d o c u m e n t . i d ( t h i s . h e a d . c e l l s [ f ] ) ; 
 i f ( d ) { d . a d d C l a s s ( t h i s . o p t i o n s . c l a s s H e a d S o r t ) ; i f ( t h i s . s o r t e d . r e v e r s e ) { d . a d d C l a s s ( t h i s . o p t i o n s . c l a s s H e a d S o r t R e v ) ; } e l s e { d . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s H e a d S o r t R e v ) ; 
 } } t h i s . b o d y . g e t E l e m e n t s ( " t d " ) . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s C e l l S o r t ) ; } v a r   c = t h i s . p a r s e r s [ f ] ; i f ( t y p e O f ( c ) = = " s t r i n g " ) { c = H t m l T a b l e . P a r s e r s [ c ] ; } i f ( ! c ) { r e t u r n ; 
 } i f ( ! B r o w s e r . i e ) { v a r   b = t h i s . b o d y . g e t P a r e n t ( ) ; t h i s . b o d y . d i s p o s e ( ) ; } v a r   s = A r r a y . m a p ( t h i s . b o d y . r o w s , f u n c t i o n ( v , j ) { v a r   u = c . c o n v e r t . c a l l ( d o c u m e n t . i d ( v . c e l l s [ f ] ) ) ; 
 r e t u r n { p o s i t i o n : j , v a l u e : u , t o S t r i n g : f u n c t i o n ( ) { r e t u r n   u . t o S t r i n g ( ) ; } } ; } , t h i s ) ; s . r e v e r s e ( t r u e ) ; s . s o r t ( f u n c t i o n ( j , i ) { i f ( j . v a l u e = = = i . v a l u e ) { r e t u r n   0 ; } r e t u r n   j . v a l u e > i . v a l u e ? 1 : - 1 ; 
 } ) ; i f ( ! t h i s . s o r t e d . r e v e r s e ) { s . r e v e r s e ( t r u e ) ; } v a r   p = s . l e n g t h , k = t h i s . b o d y ; v a r   n , r , a , g ; w h i l e ( p ) { v a r   q = s [ - - p ] ; r = q . p o s i t i o n ; v a r   e = k . r o w s [ r ] ; i f ( e . d i s a b l e d ) { c o n t i n u e ; 
 } i f ( ! m ) { i f ( g = = = q . v a l u e ) { e . r e m o v e C l a s s ( t ) . a d d C l a s s ( o ) ; } e l s e { g = q . v a l u e ; e . r e m o v e C l a s s ( o ) . a d d C l a s s ( t ) ; } i f ( t h i s . o p t i o n s . z e b r a ) { t h i s . z e b r a ( e , p ) ; } e . c e l l s [ f ] . a d d C l a s s ( l ) ; 
 } k . a p p e n d C h i l d ( e ) ; f o r ( n = 0 ; n < p ; n + + ) { i f ( s [ n ] . p o s i t i o n > r ) { s [ n ] . p o s i t i o n - - ; } } } s = n u l l ; i f ( b ) { b . g r a b ( k ) ; } r e t u r n   t h i s . f i r e E v e n t ( " s o r t " , [ k , f ] ) ; } , r e S o r t : f u n c t i o n ( ) { i f ( t h i s . s o r t E n a b l e d ) { t h i s . s o r t . c a l l ( t h i s , t h i s . s o r t e d . i n d e x , t h i s . s o r t e d . r e v e r s e ) ; 
 } r e t u r n   t h i s ; } , e n a b l e S o r t : f u n c t i o n ( ) { t h i s . e l e m e n t . a d d C l a s s ( t h i s . o p t i o n s . c l a s s S o r t a b l e ) ; t h i s . a t t a c h S o r t s ( t r u e ) ; t h i s . d e t e c t P a r s e r s ( ) ; t h i s . s o r t E n a b l e d = t r u e ; 
 r e t u r n   t h i s ; } , d i s a b l e S o r t : f u n c t i o n ( ) { t h i s . e l e m e n t . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s S o r t a b l e ) ; t h i s . a t t a c h S o r t s ( f a l s e ) ; t h i s . s o r t S p a n s . e a c h ( f u n c t i o n ( a ) { a . d e s t r o y ( ) ; 
 } ) ; t h i s . s o r t S p a n s . e m p t y ( ) ; t h i s . s o r t E n a b l e d = f a l s e ; r e t u r n   t h i s ; } } ) ; H t m l T a b l e . P a r s e r s = { d a t e : { m a t c h : / ^ \ d { 2 } [ - \ /   ] \ d { 2 } [ - \ /   ] \ d { 2 , 4 } $ / , c o n v e r t : f u n c t i o n ( ) { v a r   a = D a t e . p a r s e ( t h i s . g e t ( " t e x t " ) . s t r i p T a g s ( ) ) ; 
 r e t u r n ( t y p e O f ( a ) = = " d a t e " ) ? a . f o r m a t ( " d b " ) : " " ; } , t y p e : " d a t e " } , " i n p u t - c h e c k e d " : { m a t c h : /   t y p e = " ( r a d i o | c h e c k b o x ) "   / , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t E l e m e n t ( " i n p u t " ) . c h e c k e d ; 
 } } , " i n p u t - v a l u e " : { m a t c h : / < i n p u t / , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t E l e m e n t ( " i n p u t " ) . v a l u e ; } } , n u m b e r : { m a t c h : / ^ \ d + [ ^ \ d . , ] * $ / , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " t e x t " ) . s t r i p T a g s ( ) . t o I n t ( ) ; 
 } , n u m b e r : t r u e } , n u m b e r L a x : { m a t c h : / ^ [ ^ \ d ] + \ d + $ / , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " t e x t " ) . r e p l a c e ( / [ ^ - ? ^ 0 - 9 ] / , " " ) . s t r i p T a g s ( ) . t o I n t ( ) ; } , n u m b e r : t r u e } , " f l o a t " : { m a t c h : / ^ [ \ d ] + \ . [ \ d ] + / , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " t e x t " ) . r e p l a c e ( / [ ^ - ? ^ \ d . ] / , " " ) . s t r i p T a g s ( ) . t o F l o a t ( ) ; 
 } , n u m b e r : t r u e } , f l o a t L a x : { m a t c h : / ^ [ ^ \ d ] + [ \ d ] + \ . [ \ d ] + $ / , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " t e x t " ) . r e p l a c e ( / [ ^ - ? ^ \ d . ] / , " " ) . s t r i p T a g s ( ) ; } , n u m b e r : t r u e } , s t r i n g : { m a t c h : n u l l , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " t e x t " ) . s t r i p T a g s ( ) ; 
 } } , t i t l e : { m a t c h : n u l l , c o n v e r t : f u n c t i o n ( ) { r e t u r n   t h i s . t i t l e ; } } } ; H t m l T a b l e . P a r s e r s = n e w   H a s h ( H t m l T a b l e . P a r s e r s ) ; H t m l T a b l e . d e f i n e P a r s e r s = f u n c t i o n ( a ) { H t m l T a b l e . P a r s e r s = O b j e c t . a p p e n d ( H t m l T a b l e . P a r s e r s , a ) ; 
 } ; ( f u n c t i o n ( ) { v a r   a = " $ m o o : k e y s - p r e s s e d " , b = " $ m o o : k e y s - k e y u p " ; E v e n t . d e f i n e P s e u d o ( " k e y s " , f u n c t i o n ( d , e , c ) { v a r   g = c [ 0 ] , f = [ ] , h = t h i s . r e t r i e v e ( a , [ ] ) ; f . a p p e n d ( d . v a l u e . r e p l a c e ( " + + " , f u n c t i o n ( ) { f . p u s h ( " + " ) ; 
 r e t u r n " " ; } ) . s p l i t ( " + " ) ) ; h . i n c l u d e ( g . k e y ) ; i f ( f . e v e r y ( f u n c t i o n ( j ) { r e t u r n   h . c o n t a i n s ( j ) ; } ) ) { e . a p p l y ( t h i s , c ) ; } t h i s . s t o r e ( a , h ) ; i f ( ! t h i s . r e t r i e v e ( b ) ) { v a r   i = f u n c t i o n ( j ) { ( f u n c t i o n ( ) { h = t h i s . r e t r i e v e ( a , [ ] ) . e r a s e ( j . k e y ) ; 
 t h i s . s t o r e ( a , h ) ; } ) . d e l a y ( 0 , t h i s ) ; } ; t h i s . s t o r e ( b , i ) . a d d E v e n t ( " k e y u p " , i ) ; } } ) ; O b j e c t . a p p e n d ( E v e n t . K e y s , { s h i f t : 1 6 , c o n t r o l : 1 7 , a l t : 1 8 , c a p s l o c k : 2 0 , p a g e u p : 3 3 , p a g e d o w n : 3 4 , e n d : 3 5 , h o m e : 3 6 , n u m l o c k : 1 4 4 , s c r o l l l o c k : 1 4 5 , " ; " : 1 8 6 , " = " : 1 8 7 , " , " : 1 8 8 , " - " : B r o w s e r . f i r e f o x ? 1 0 9 : 1 8 9 , " . " : 1 9 0 , " / " : 1 9 1 , " ` " : 1 9 2 , " [ " : 2 1 9 , " \ \ " : 2 2 0 , " ] " : 2 2 1 , " ' " : 2 2 2 , " + " : 1 0 7 } ) ; 
 } ) ( ) ; ( f u n c t i o n ( ) { v a r   a = t h i s . K e y b o a r d = n e w   C l a s s ( { E x t e n d s : E v e n t s , I m p l e m e n t s : [ O p t i o n s ] , o p t i o n s : { d e f a u l t E v e n t T y p e : " k e y d o w n " , a c t i v e : f a l s e , m a n a g e r : n u l l , e v e n t s : { } , n o n P a r s e d E v e n t s : [ " a c t i v a t e " , " d e a c t i v a t e " , " o n a c t i v a t e " , " o n d e a c t i v a t e " , " c h a n g e d " , " o n c h a n g e d " ] } , i n i t i a l i z e : f u n c t i o n ( f ) { i f ( f & & f . m a n a g e r ) { t h i s . m a n a g e r = f . m a n a g e r ; 
 d e l e t e   f . m a n a g e r ; } t h i s . s e t O p t i o n s ( f ) ; t h i s . s e t u p ( ) ; } , s e t u p : f u n c t i o n ( ) { t h i s . a d d E v e n t s ( t h i s . o p t i o n s . e v e n t s ) ; i f ( a . m a n a g e r & & ! t h i s . m a n a g e r ) { a . m a n a g e r . m a n a g e ( t h i s ) ; 
 } i f ( t h i s . o p t i o n s . a c t i v e ) { t h i s . a c t i v a t e ( ) ; } } , h a n d l e : f u n c t i o n ( h , g ) { i f ( h . p r e v e n t K e y b o a r d P r o p a g a t i o n ) { r e t u r n ; } v a r   f = ! ! t h i s . m a n a g e r ; i f ( f & & t h i s . a c t i v e K B ) { t h i s . a c t i v e K B . h a n d l e ( h , g ) ; 
 i f ( h . p r e v e n t K e y b o a r d P r o p a g a t i o n ) { r e t u r n ; } } t h i s . f i r e E v e n t ( g , h ) ; i f ( ! f & & t h i s . a c t i v e K B ) { t h i s . a c t i v e K B . h a n d l e ( h , g ) ; } } , a d d E v e n t : f u n c t i o n ( h , g , f ) { r e t u r n   t h i s . p a r e n t ( a . p a r s e ( h , t h i s . o p t i o n s . d e f a u l t E v e n t T y p e , t h i s . o p t i o n s . n o n P a r s e d E v e n t s ) , g , f ) ; 
 } , r e m o v e E v e n t : f u n c t i o n ( g , f ) { r e t u r n   t h i s . p a r e n t ( a . p a r s e ( g , t h i s . o p t i o n s . d e f a u l t E v e n t T y p e , t h i s . o p t i o n s . n o n P a r s e d E v e n t s ) , f ) ; } , t o g g l e A c t i v e : f u n c t i o n ( ) { r e t u r n   t h i s [ t h i s . i s A c t i v e ( ) ? " d e a c t i v a t e " : " a c t i v a t e " ] ( ) ; 
 } , a c t i v a t e : f u n c t i o n ( f ) { i f ( f ) { i f ( f . i s A c t i v e ( ) ) { r e t u r n   t h i s ; } i f ( t h i s . a c t i v e K B & & f ! = t h i s . a c t i v e K B ) { t h i s . p r e v i o u s = t h i s . a c t i v e K B ; t h i s . p r e v i o u s . f i r e E v e n t ( " d e a c t i v a t e " ) ; 
 } t h i s . a c t i v e K B = f . f i r e E v e n t ( " a c t i v a t e " ) ; a . m a n a g e r . f i r e E v e n t ( " c h a n g e d " ) ; } e l s e { i f ( t h i s . m a n a g e r ) { t h i s . m a n a g e r . a c t i v a t e ( t h i s ) ; } } r e t u r n   t h i s ; } , i s A c t i v e : f u n c t i o n ( ) { r e t u r n   t h i s . m a n a g e r ? ( t h i s . m a n a g e r . a c t i v e K B = = t h i s ) : ( a . m a n a g e r = = t h i s ) ; 
 } , d e a c t i v a t e : f u n c t i o n ( f ) { i f ( f ) { i f ( f = = = t h i s . a c t i v e K B ) { t h i s . a c t i v e K B = n u l l ; f . f i r e E v e n t ( " d e a c t i v a t e " ) ; a . m a n a g e r . f i r e E v e n t ( " c h a n g e d " ) ; } } e l s e { i f ( t h i s . m a n a g e r ) { t h i s . m a n a g e r . d e a c t i v a t e ( t h i s ) ; 
 } } r e t u r n   t h i s ; } , r e l i n q u i s h : f u n c t i o n ( ) { i f ( t h i s . i s A c t i v e ( ) & & t h i s . m a n a g e r & & t h i s . m a n a g e r . p r e v i o u s ) { t h i s . m a n a g e r . a c t i v a t e ( t h i s . m a n a g e r . p r e v i o u s ) ; } } , m a n a g e : f u n c t i o n ( f ) { i f ( f . m a n a g e r & & f . m a n a g e r ! = a . m a n a g e r & & t h i s ! = a . m a n a g e r ) { f . m a n a g e r . d r o p ( f ) ; 
 } t h i s . i n s t a n c e s . p u s h ( f ) ; f . m a n a g e r = t h i s ; i f ( ! t h i s . a c t i v e K B ) { t h i s . a c t i v a t e ( f ) ; } } , _ d i s a b l e : f u n c t i o n ( f ) { i f ( t h i s . a c t i v e K B = = f ) { t h i s . a c t i v e K B = n u l l ; } } , d r o p : f u n c t i o n ( f ) { t h i s . _ d i s a b l e ( f ) ; 
 t h i s . i n s t a n c e s . e r a s e ( f ) ; a . m a n a g e r . m a n a g e ( f ) ; i f ( t h i s . a c t i v e K B = = f & & t h i s . p r e v i o u s & & t h i s . i n s t a n c e s . c o n t a i n s ( t h i s . p r e v i o u s ) ) { t h i s . a c t i v a t e ( t h i s . p r e v i o u s ) ; } } , i n s t a n c e s : [ ] , t r a c e : f u n c t i o n ( ) { a . t r a c e ( t h i s ) ; 
 } , e a c h : f u n c t i o n ( f ) { a . e a c h ( t h i s , f ) ; } } ) ; v a r   b = { } ; v a r   c = [ " s h i f t " , " c o n t r o l " , " a l t " , " m e t a " ] ; v a r   e = / ^ ( ? : s h i f t | c o n t r o l | c t r l | a l t | m e t a ) $ / ; a . p a r s e = f u n c t i o n ( h , g , k ) { i f ( k & & k . c o n t a i n s ( h . t o L o w e r C a s e ( ) ) ) { r e t u r n   h ; 
 } h = h . t o L o w e r C a s e ( ) . r e p l a c e ( / ^ ( k e y u p | k e y d o w n ) : / , f u n c t i o n ( m , l ) { g = l ; r e t u r n " " ; } ) ; i f ( ! b [ h ] ) { v a r   f , j = { } ; h . s p l i t ( " + " ) . e a c h ( f u n c t i o n ( l ) { i f ( e . t e s t ( l ) ) { j [ l ] = t r u e ; 
 } e l s e { f = l ; } } ) ; j . c o n t r o l = j . c o n t r o l | | j . c t r l ; v a r   i = [ ] ; c . e a c h ( f u n c t i o n ( l ) { i f ( j [ l ] ) { i . p u s h ( l ) ; } } ) ; i f ( f ) { i . p u s h ( f ) ; } b [ h ] = i . j o i n ( " + " ) ; } r e t u r n   g + " : k e y s ( " + b [ h ] + " ) " ; 
 } ; a . e a c h = f u n c t i o n ( f , g ) { v a r   h = f | | a . m a n a g e r ; w h i l e ( h ) { g . r u n ( h ) ; h = h . a c t i v e K B ; } } ; a . s t o p = f u n c t i o n ( f ) { f . p r e v e n t K e y b o a r d P r o p a g a t i o n = t r u e ; } ; a . m a n a g e r = n e w   a ( { a c t i v e : t r u e } ) ; 
 a . t r a c e = f u n c t i o n ( f ) { f = f | | a . m a n a g e r ; v a r   g = w i n d o w . c o n s o l e & & c o n s o l e . l o g ; i f ( g ) { c o n s o l e . l o g ( " t h e   f o l l o w i n g   i t e m s   h a v e   f o c u s :   " ) ; } a . e a c h ( f , f u n c t i o n ( h ) { i f ( g ) { c o n s o l e . l o g ( d o c u m e n t . i d ( h . w i d g e t ) | | h . w i g e t | | h ) ; 
 } } ) ; } ; v a r   d = f u n c t i o n ( g ) { v a r   f = [ ] ; c . e a c h ( f u n c t i o n ( h ) { i f ( g [ h ] ) { f . p u s h ( h ) ; } } ) ; i f ( ! e . t e s t ( g . k e y ) ) { f . p u s h ( g . k e y ) ; } a . m a n a g e r . h a n d l e ( g , g . t y p e + " : k e y s ( " + f . j o i n ( " + " ) + " ) " ) ; 
 } ; d o c u m e n t . a d d E v e n t s ( { k e y u p : d , k e y d o w n : d } ) ; } ) ( ) ; K e y b o a r d . p r o t o t y p e . o p t i o n s . n o n P a r s e d E v e n t s . c o m b i n e ( [ " r e b o u n d " , " o n r e b o u n d " ] ) ; K e y b o a r d . i m p l e m e n t ( { a d d S h o r t c u t : f u n c t i o n ( b , a ) { t h i s . s h o r t c u t s = t h i s . s h o r t c u t s | | [ ] ; 
 t h i s . s h o r t c u t I n d e x = t h i s . s h o r t c u t I n d e x | | { } ; a . g e t K e y b o a r d = F u n c t i o n . f r o m ( t h i s ) ; a . n a m e = b ; t h i s . s h o r t c u t I n d e x [ b ] = a ; t h i s . s h o r t c u t s . p u s h ( a ) ; i f ( a . k e y s ) { t h i s . a d d E v e n t ( a . k e y s , a . h a n d l e r ) ; 
 } r e t u r n   t h i s ; } , a d d S h o r t c u t s : f u n c t i o n ( b ) { f o r ( v a r   a   i n   b ) { t h i s . a d d S h o r t c u t ( a , b [ a ] ) ; } r e t u r n   t h i s ; } , r e m o v e S h o r t c u t : f u n c t i o n ( b ) { v a r   a = t h i s . g e t S h o r t c u t ( b ) ; i f ( a & & a . k e y s ) { t h i s . r e m o v e E v e n t ( a . k e y s , a . h a n d l e r ) ; 
 d e l e t e   t h i s . s h o r t c u t I n d e x [ b ] ; t h i s . s h o r t c u t s . e r a s e ( a ) ; } r e t u r n   t h i s ; } , r e m o v e S h o r t c u t s : f u n c t i o n ( a ) { a . e a c h ( t h i s . r e m o v e S h o r t c u t , t h i s ) ; r e t u r n   t h i s ; } , g e t S h o r t c u t s : f u n c t i o n ( ) { r e t u r n   t h i s . s h o r t c u t s | | [ ] ; 
 } , g e t S h o r t c u t : f u n c t i o n ( a ) { r e t u r n ( t h i s . s h o r t c u t I n d e x | | { } ) [ a ] ; } } ) ; K e y b o a r d . r e b i n d = f u n c t i o n ( b , a ) { A r r a y . f r o m ( a ) . e a c h ( f u n c t i o n ( c ) { c . g e t K e y b o a r d ( ) . r e m o v e E v e n t ( c . k e y s , c . h a n d l e r ) ; 
 c . g e t K e y b o a r d ( ) . a d d E v e n t ( b , c . h a n d l e r ) ; c . k e y s = b ; c . g e t K e y b o a r d ( ) . f i r e E v e n t ( " r e b o u n d " ) ; } ) ; } ; K e y b o a r d . g e t A c t i v e S h o r t c u t s = f u n c t i o n ( b ) { v a r   a = [ ] , c = [ ] ; K e y b o a r d . e a c h ( b , [ ] . p u s h . b i n d ( a ) ) ; 
 a . e a c h ( f u n c t i o n ( d ) { c . e x t e n d ( d . g e t S h o r t c u t s ( ) ) ; } ) ; r e t u r n   c ; } ; K e y b o a r d . g e t S h o r t c u t = f u n c t i o n ( c , b , d ) { d = d | | { } ; v a r   a = d . m a n y ? [ ] : n u l l , e = d . m a n y ? f u n c t i o n ( g ) { v a r   f = g . g e t S h o r t c u t ( c ) ; 
 i f ( f ) { a . p u s h ( f ) ; } } : f u n c t i o n ( f ) { i f ( ! a ) { a = f . g e t S h o r t c u t ( c ) ; } } ; K e y b o a r d . e a c h ( b , e ) ; r e t u r n   a ; } ; K e y b o a r d . g e t S h o r t c u t s = f u n c t i o n ( b , a ) { r e t u r n   K e y b o a r d . g e t S h o r t c u t ( b , a , { m a n y : t r u e } ) ; 
 } ; H t m l T a b l e = C l a s s . r e f a c t o r ( H t m l T a b l e , { o p t i o n s : { u s e K e y b o a r d : t r u e , c l a s s R o w S e l e c t e d : " t a b l e - t r - s e l e c t e d " , c l a s s R o w H o v e r e d : " t a b l e - t r - h o v e r e d " , c l a s s S e l e c t a b l e : " t a b l e - s e l e c t a b l e " , s h i f t F o r M u l t i S e l e c t : t r u e , a l l o w M u l t i S e l e c t : t r u e , s e l e c t a b l e : f a l s e } , i n i t i a l i z e : f u n c t i o n ( ) { t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; 
 i f ( t h i s . o c c l u d e d ) { r e t u r n   t h i s . o c c l u d e d ; } t h i s . _ s e l e c t e d R o w s = n e w   E l e m e n t s ( ) ; t h i s . _ b o u n d = { m o u s e l e a v e : t h i s . _ m o u s e l e a v e . b i n d ( t h i s ) , c l i c k R o w : t h i s . _ c l i c k R o w . b i n d ( t h i s ) } ; 
 i f ( t h i s . o p t i o n s . s e l e c t a b l e ) { t h i s . e n a b l e S e l e c t ( ) ; } } , e n a b l e S e l e c t : f u n c t i o n ( ) { t h i s . _ s e l e c t E n a b l e d = t r u e ; t h i s . _ a t t a c h S e l e c t s ( ) ; t h i s . e l e m e n t . a d d C l a s s ( t h i s . o p t i o n s . c l a s s S e l e c t a b l e ) ; 
 } , d i s a b l e S e l e c t : f u n c t i o n ( ) { t h i s . _ s e l e c t E n a b l e d = f a l s e ; t h i s . _ a t t a c h S e l e c t s ( f a l s e ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s S e l e c t a b l e ) ; } , p u s h : f u n c t i o n ( ) { v a r   a = t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; 
 t h i s . _ u p d a t e S e l e c t s ( ) ; r e t u r n   a ; } , i s S e l e c t e d : f u n c t i o n ( a ) { r e t u r n   t h i s . _ s e l e c t e d R o w s . c o n t a i n s ( a ) ; } , t o g g l e R o w : f u n c t i o n ( a ) { r e t u r n   t h i s [ ( t h i s . i s S e l e c t e d ( a ) ? " d e " : " " ) + " s e l e c t R o w " ] ( a ) ; 
 } , s e l e c t R o w : f u n c t i o n ( b , a ) { i f ( t h i s . i s S e l e c t e d ( b ) | | ( ! a & & ! t h i s . b o d y . g e t C h i l d r e n ( ) . c o n t a i n s ( b ) ) ) { r e t u r n ; } i f ( ! t h i s . o p t i o n s . a l l o w M u l t i S e l e c t ) { t h i s . s e l e c t N o n e ( ) ; 
 } i f ( ! t h i s . i s S e l e c t e d ( b ) ) { t h i s . _ s e l e c t e d R o w s . p u s h ( b ) ; b . a d d C l a s s ( t h i s . o p t i o n s . c l a s s R o w S e l e c t e d ) ; t h i s . f i r e E v e n t ( " r o w F o c u s " , [ b , t h i s . _ s e l e c t e d R o w s ] ) ; } t h i s . _ f o c u s e d = b ; 
 d o c u m e n t . c l e a r S e l e c t i o n ( ) ; r e t u r n   t h i s ; } , d e s e l e c t R o w : f u n c t i o n ( b , a ) { i f ( ! t h i s . i s S e l e c t e d ( b ) | | ( ! a & & ! t h i s . b o d y . g e t C h i l d r e n ( ) . c o n t a i n s ( b ) ) ) { r e t u r n ; } t h i s . _ s e l e c t e d R o w s = n e w   E l e m e n t s ( A r r a y . f r o m ( t h i s . _ s e l e c t e d R o w s ) . e r a s e ( b ) ) ; 
 b . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s R o w S e l e c t e d ) ; t h i s . f i r e E v e n t ( " r o w U n f o c u s " , [ b , t h i s . _ s e l e c t e d R o w s ] ) ; r e t u r n   t h i s ; } , s e l e c t A l l : f u n c t i o n ( a ) { i f ( ! a & & ! t h i s . o p t i o n s . a l l o w M u l t i S e l e c t ) { r e t u r n ; 
 } t h i s . s e l e c t R a n g e ( 0 , t h i s . b o d y . r o w s . l e n g t h , a ) ; r e t u r n   t h i s ; } , s e l e c t N o n e : f u n c t i o n ( ) { r e t u r n   t h i s . s e l e c t A l l ( t r u e ) ; } , s e l e c t R a n g e : f u n c t i o n ( b , a , f ) { i f ( ! t h i s . o p t i o n s . a l l o w M u l t i S e l e c t & & ! f ) { r e t u r n ; 
 } v a r   g = f ? " d e s e l e c t R o w " : " s e l e c t R o w " , e = A r r a y . c l o n e ( t h i s . b o d y . r o w s ) ; i f ( t y p e O f ( b ) = = " e l e m e n t " ) { b = e . i n d e x O f ( b ) ; } i f ( t y p e O f ( a ) = = " e l e m e n t " ) { a = e . i n d e x O f ( a ) ; } a = a < e . l e n g t h - 1 ? a : e . l e n g t h - 1 ; 
 i f ( a < b ) { v a r   d = b ; b = a ; a = d ; } f o r ( v a r   c = b ; c < = a ; c + + ) { t h i s [ g ] ( e [ c ] , t r u e ) ; } r e t u r n   t h i s ; } , d e s e l e c t R a n g e : f u n c t i o n ( b , a ) { t h i s . s e l e c t R a n g e ( b , a , t r u e ) ; } , _ e n t e r R o w : f u n c t i o n ( a ) { i f ( t h i s . _ h o v e r e d ) { t h i s . _ h o v e r e d = t h i s . _ l e a v e R o w ( t h i s . _ h o v e r e d ) ; 
 } t h i s . _ h o v e r e d = a . a d d C l a s s ( t h i s . o p t i o n s . c l a s s R o w H o v e r e d ) ; } , _ l e a v e R o w : f u n c t i o n ( a ) { a . r e m o v e C l a s s ( t h i s . o p t i o n s . c l a s s R o w H o v e r e d ) ; } , _ u p d a t e S e l e c t s : f u n c t i o n ( ) { A r r a y . e a c h ( t h i s . b o d y . r o w s , f u n c t i o n ( a ) { v a r   b = a . r e t r i e v e ( " b i n d e r s " ) ; 
 i f ( ( b & & t h i s . _ s e l e c t E n a b l e d ) | | ( ! b & & ! t h i s . _ s e l e c t E n a b l e d ) ) { r e t u r n ; } i f ( ! b ) { b = { m o u s e e n t e r : t h i s . _ e n t e r R o w . p a s s ( [ a ] , t h i s ) , m o u s e l e a v e : t h i s . _ l e a v e R o w . p a s s ( [ a ] , t h i s ) } ; 
 a . s t o r e ( " b i n d e r s " , b ) . a d d E v e n t s ( b ) ; } e l s e { a . r e m o v e E v e n t s ( b ) ; } } , t h i s ) ; } , _ s h i f t F o c u s : f u n c t i o n ( b , a ) { i f ( ! t h i s . _ f o c u s e d ) { r e t u r n   t h i s . s e l e c t R o w ( t h i s . b o d y . r o w s [ 0 ] , a ) ; 
 } v a r   c = t h i s . _ g e t R o w B y O f f s e t ( b ) ; i f ( c = = = n u l l | | t h i s . _ f o c u s e d = = t h i s . b o d y . r o w s [ c ] ) { r e t u r n   t h i s ; } t h i s . t o g g l e R o w ( t h i s . b o d y . r o w s [ c ] , a ) ; } , _ c l i c k R o w : f u n c t i o n ( a , b ) { v a r   c = ( a . s h i f t | | a . m e t a | | a . c o n t r o l ) & & t h i s . o p t i o n s . s h i f t F o r M u l t i S e l e c t ; 
 i f ( ! c & & ! ( a . r i g h t C l i c k & & t h i s . i s S e l e c t e d ( b ) & & t h i s . o p t i o n s . a l l o w M u l t i S e l e c t ) ) { t h i s . s e l e c t N o n e ( ) ; } i f ( a . r i g h t C l i c k ) { t h i s . s e l e c t R o w ( b ) ; } e l s e { t h i s . t o g g l e R o w ( b ) ; 
 } i f ( a . s h i f t ) { t h i s . s e l e c t R a n g e ( t h i s . _ r a n g e S t a r t | | t h i s . b o d y . r o w s [ 0 ] , b , t h i s . _ r a n g e S t a r t ? ! t h i s . i s S e l e c t e d ( b ) : t r u e ) ; t h i s . _ f o c u s e d = b ; } t h i s . _ r a n g e S t a r t = b ; } , _ g e t R o w B y O f f s e t : f u n c t i o n ( c ) { i f ( ! t h i s . _ f o c u s e d ) { r e t u r n   0 ; 
 } v a r   b = A r r a y . c l o n e ( t h i s . b o d y . r o w s ) , a = b . i n d e x O f ( t h i s . _ f o c u s e d ) + c ; i f ( a < 0 ) { a = n u l l ; } i f ( a > = b . l e n g t h ) { a = n u l l ; } r e t u r n   a ; } , _ a t t a c h S e l e c t s : f u n c t i o n ( d ) { d = d ! = n u l l ? d : t r u e ; 
 v a r   g = d ? " a d d E v e n t s " : " r e m o v e E v e n t s " ; t h i s . e l e m e n t [ g ] ( { m o u s e l e a v e : t h i s . _ b o u n d . m o u s e l e a v e } ) ; t h i s . b o d y [ g ] ( { " c l i c k : r e l a y ( t r ) " : t h i s . _ b o u n d . c l i c k R o w , " c o n t e x t m e n u : r e l a y ( t r ) " : t h i s . _ b o u n d . c l i c k R o w } ) ; 
 i f ( t h i s . o p t i o n s . u s e K e y b o a r d | | t h i s . k e y b o a r d ) { i f ( ! t h i s . k e y b o a r d ) { v a r   f , e ; v a r   c = f u n c t i o n ( i ) { v a r   h = f u n c t i o n ( j ) { c l e a r T i m e o u t ( f ) ; j . p r e v e n t D e f a u l t ( ) ; v a r   k = t h i s . b o d y . r o w s [ t h i s . _ g e t R o w B y O f f s e t ( i ) ] ; 
 i f ( j . s h i f t & & k & & t h i s . i s S e l e c t e d ( k ) ) { t h i s . d e s e l e c t R o w ( t h i s . _ f o c u s e d ) ; t h i s . _ f o c u s e d = k ; } e l s e { i f ( k & & ( ! t h i s . o p t i o n s . a l l o w M u l t i S e l e c t | | ! j . s h i f t ) ) { t h i s . s e l e c t N o n e ( ) ; 
 } t h i s . _ s h i f t F o c u s ( i , j ) ; } i f ( e ) { f = h . d e l a y ( 1 0 0 , t h i s , j ) ; } e l s e { f = ( f u n c t i o n ( ) { e = t r u e ; h ( j ) ; } ) . d e l a y ( 4 0 0 ) ; } } . b i n d ( t h i s ) ; r e t u r n   h ; } . b i n d ( t h i s ) ; v a r   b = f u n c t i o n ( ) { c l e a r T i m e o u t ( f ) ; 
 e = f a l s e ; } ; t h i s . k e y b o a r d = n e w   K e y b o a r d ( { e v e n t s : { " k e y d o w n : s h i f t + u p " : c ( - 1 ) , " k e y d o w n : s h i f t + d o w n " : c ( 1 ) , " k e y u p : s h i f t + u p " : b , " k e y u p : s h i f t + d o w n " : b , " k e y u p : u p " : b , " k e y u p : d o w n " : b } , a c t i v e : t r u e } ) ; 
 v a r   a = " " ; i f ( t h i s . o p t i o n s . a l l o w M u l t i S e l e c t & & t h i s . o p t i o n s . s h i f t F o r M u l t i S e l e c t & & t h i s . o p t i o n s . u s e K e y b o a r d ) { a = "   ( S h i f t   m u l t i - s e l e c t s ) . " ; } t h i s . k e y b o a r d . a d d S h o r t c u t s ( { " S e l e c t   P r e v i o u s   R o w " : { k e y s : " u p " , s h o r t c u t : " u p   a r r o w " , h a n d l e r : c ( - 1 ) , d e s c r i p t i o n : " S e l e c t   t h e   p r e v i o u s   r o w   i n   t h e   t a b l e . " + a } , " S e l e c t   N e x t   R o w " : { k e y s : " d o w n " , s h o r t c u t : " d o w n   a r r o w " , h a n d l e r : c ( 1 ) , d e s c r i p t i o n : " S e l e c t   t h e   n e x t   r o w   i n   t h e   t a b l e . " + a } } ) ; 
 } t h i s . k e y b o a r d [ d ? " a c t i v a t e " : " d e a c t i v a t e " ] ( ) ; } t h i s . _ u p d a t e S e l e c t s ( ) ; } , _ m o u s e l e a v e : f u n c t i o n ( ) { i f ( t h i s . _ h o v e r e d ) { t h i s . _ l e a v e R o w ( t h i s . _ h o v e r e d ) ; } } } ) ; ( f u n c t i o n ( ) { v a r   a = f u n c t i o n ( c , b ) { r e t u r n ( c ) ? ( t y p e O f ( c ) = = " f u n c t i o n " ? c ( b ) : b . g e t ( c ) ) : " " ; 
 } ; t h i s . T i p s = n e w   C l a s s ( { I m p l e m e n t s : [ E v e n t s , O p t i o n s ] , o p t i o n s : { o n S h o w : f u n c t i o n ( ) { t h i s . t i p . s e t S t y l e ( " d i s p l a y " , " b l o c k " ) ; } , o n H i d e : f u n c t i o n ( ) { t h i s . t i p . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; 
 } , t i t l e : " t i t l e " , t e x t : f u n c t i o n ( b ) { r e t u r n   b . g e t ( " r e l " ) | | b . g e t ( " h r e f " ) ; } , s h o w D e l a y : 1 0 0 , h i d e D e l a y : 1 0 0 , c l a s s N a m e : " t i p - w r a p " , o f f s e t : { x : 1 6 , y : 1 6 } , w i n d o w P a d d i n g : { x : 0 , y : 0 } , f i x e d : f a l s e } , i n i t i a l i z e : f u n c t i o n ( ) { v a r   b = A r r a y . l i n k ( a r g u m e n t s , { o p t i o n s : T y p e . i s O b j e c t , e l e m e n t s : f u n c t i o n ( c ) { r e t u r n   c ! = n u l l ; 
 } } ) ; t h i s . s e t O p t i o n s ( b . o p t i o n s ) ; i f ( b . e l e m e n t s ) { t h i s . a t t a c h ( b . e l e m e n t s ) ; } t h i s . c o n t a i n e r = n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p " } ) ; } , t o E l e m e n t : f u n c t i o n ( ) { i f ( t h i s . t i p ) { r e t u r n   t h i s . t i p ; 
 } t h i s . t i p = n e w   E l e m e n t ( " d i v " , { " c l a s s " : t h i s . o p t i o n s . c l a s s N a m e , s t y l e s : { p o s i t i o n : " a b s o l u t e " , t o p : 0 , l e f t : 0 } } ) . a d o p t ( n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p - t o p " } ) , t h i s . c o n t a i n e r , n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p - b o t t o m " } ) ) ; 
 r e t u r n   t h i s . t i p ; } , a t t a c h : f u n c t i o n ( b ) { $ $ ( b ) . e a c h ( f u n c t i o n ( d ) { v a r   f = a ( t h i s . o p t i o n s . t i t l e , d ) , e = a ( t h i s . o p t i o n s . t e x t , d ) ; d . s e t ( " t i t l e " , " " ) . s t o r e ( " t i p : n a t i v e " , f ) . r e t r i e v e ( " t i p : t i t l e " , f ) ; 
 d . r e t r i e v e ( " t i p : t e x t " , e ) ; t h i s . f i r e E v e n t ( " a t t a c h " , [ d ] ) ; v a r   c = [ " e n t e r " , " l e a v e " ] ; i f ( ! t h i s . o p t i o n s . f i x e d ) { c . p u s h ( " m o v e " ) ; } c . e a c h ( f u n c t i o n ( h ) { v a r   g = d . r e t r i e v e ( " t i p : " + h ) ; 
 i f ( ! g ) { g = f u n c t i o n ( i ) { t h i s [ " e l e m e n t " + h . c a p i t a l i z e ( ) ] . a p p l y ( t h i s , [ i , d ] ) ; } . b i n d ( t h i s ) ; } d . s t o r e ( " t i p : " + h , g ) . a d d E v e n t ( " m o u s e " + h , g ) ; } , t h i s ) ; } , t h i s ) ; r e t u r n   t h i s ; 
 } , d e t a c h : f u n c t i o n ( b ) { $ $ ( b ) . e a c h ( f u n c t i o n ( d ) { [ " e n t e r " , " l e a v e " , " m o v e " ] . e a c h ( f u n c t i o n ( e ) { d . r e m o v e E v e n t ( " m o u s e " + e , d . r e t r i e v e ( " t i p : " + e ) ) . e l i m i n a t e ( " t i p : " + e ) ; 
 } ) ; t h i s . f i r e E v e n t ( " d e t a c h " , [ d ] ) ; i f ( t h i s . o p t i o n s . t i t l e = = " t i t l e " ) { v a r   c = d . r e t r i e v e ( " t i p : n a t i v e " ) ; i f ( c ) { d . s e t ( " t i t l e " , c ) ; } } } , t h i s ) ; r e t u r n   t h i s ; } , e l e m e n t E n t e r : f u n c t i o n ( c , b ) { t h i s . c o n t a i n e r . e m p t y ( ) ; 
 [ " t i t l e " , " t e x t " ] . e a c h ( f u n c t i o n ( e ) { v a r   d = b . r e t r i e v e ( " t i p : " + e ) ; i f ( d ) { t h i s . f i l l ( n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p - " + e } ) . i n j e c t ( t h i s . c o n t a i n e r ) , d ) ; } } , t h i s ) ; c l e a r T i m e o u t ( t h i s . t i m e r ) ; 
 t h i s . t i m e r = ( f u n c t i o n ( ) { t h i s . s h o w ( b ) ; t h i s . p o s i t i o n ( ( t h i s . o p t i o n s . f i x e d ) ? { p a g e : b . g e t P o s i t i o n ( ) } : c ) ; } ) . d e l a y ( t h i s . o p t i o n s . s h o w D e l a y , t h i s ) ; } , e l e m e n t L e a v e : f u n c t i o n ( c , b ) { c l e a r T i m e o u t ( t h i s . t i m e r ) ; 
 t h i s . t i m e r = t h i s . h i d e . d e l a y ( t h i s . o p t i o n s . h i d e D e l a y , t h i s , b ) ; t h i s . f i r e F o r P a r e n t ( c , b ) ; } , f i r e F o r P a r e n t : f u n c t i o n ( c , b ) { b = b . g e t P a r e n t ( ) ; i f ( ! b | | b = = d o c u m e n t . b o d y ) { r e t u r n ; 
 } i f ( b . r e t r i e v e ( " t i p : e n t e r " ) ) { b . f i r e E v e n t ( " m o u s e e n t e r " , c ) ; } e l s e { t h i s . f i r e F o r P a r e n t ( c , b ) ; } } , e l e m e n t M o v e : f u n c t i o n ( c , b ) { t h i s . p o s i t i o n ( c ) ; } , p o s i t i o n : f u n c t i o n ( f ) { i f ( ! t h i s . t i p ) { d o c u m e n t . i d ( t h i s ) ; 
 } v a r   c = w i n d o w . g e t S i z e ( ) , b = w i n d o w . g e t S c r o l l ( ) , g = { x : t h i s . t i p . o f f s e t W i d t h , y : t h i s . t i p . o f f s e t H e i g h t } , d = { x : " l e f t " , y : " t o p " } , e = { y : f a l s e , x 2 : f a l s e , y 2 : f a l s e , x : f a l s e } , h = { } ; 
 f o r ( v a r   i   i n   d ) { h [ d [ i ] ] = f . p a g e [ i ] + t h i s . o p t i o n s . o f f s e t [ i ] ; i f ( h [ d [ i ] ] < 0 ) { e [ i ] = t r u e ; } i f ( ( h [ d [ i ] ] + g [ i ] - b [ i ] ) > c [ i ] - t h i s . o p t i o n s . w i n d o w P a d d i n g [ i ] ) { h [ d [ i ] ] = f . p a g e [ i ] - t h i s . o p t i o n s . o f f s e t [ i ] - g [ i ] ; 
 e [ i + " 2 " ] = t r u e ; } } t h i s . f i r e E v e n t ( " b o u n d " , e ) ; t h i s . t i p . s e t S t y l e s ( h ) ; } , f i l l : f u n c t i o n ( b , c ) { i f ( t y p e o f   c = = " s t r i n g " ) { b . s e t ( " h t m l " , c ) ; } e l s e { b . a d o p t ( c ) ; } } , s h o w : f u n c t i o n ( b ) { i f ( ! t h i s . t i p ) { d o c u m e n t . i d ( t h i s ) ; 
 } i f ( ! t h i s . t i p . g e t P a r e n t ( ) ) { t h i s . t i p . i n j e c t ( d o c u m e n t . b o d y ) ; } t h i s . f i r e E v e n t ( " s h o w " , [ t h i s . t i p , b ] ) ; } , h i d e : f u n c t i o n ( b ) { i f ( ! t h i s . t i p ) { d o c u m e n t . i d ( t h i s ) ; } t h i s . f i r e E v e n t ( " h i d e " , [ t h i s . t i p , b ] ) ; 
 } } ) ; } ) ( ) ; 
