ÿþ( f u n c t i o n ( ) { v a r   y = t h i s , u n d e f i n e d , _ j Q u e r y = y . j Q u e r y , _ $ = y . $ , j Q u e r y = y . j Q u e r y = y . $ = f u n c t i o n ( a , b ) { r e t u r n   n e w   j Q u e r y . f n . i n i t ( a , b ) } , q u i c k E x p r = / ^ [ ^ < ] * ( < ( . | \ s ) + > ) [ ^ > ] * $ | ^ # ( [ \ w - ] + ) $ / , i s S i m p l e = / ^ . [ ^ : # \ [ \ . , ] * $ / ; j Q u e r y . f n = j Q u e r y . p r o t o t y p e = { i n i t : f u n c t i o n ( a , b ) { a = a | | d o c u m e n t ; i f ( a . n o d e T y p e ) { t h i s [ 0 ] = a ; t h i s . l e n g t h = 1 ; t h i s . c o n t e x t = a ; r e t u r n   t h i s } i f ( t y p e o f   a = = = " s t r i n g " ) { v a r   c = q u i c k E x p r . e x e c ( a ) ; i f ( c & & ( c [ 1 ] | | ! b ) ) { i f ( c [ 1 ] ) a = j Q u e r y . c l e a n ( [ c [ 1 ] ] , b ) ; e l s e { v a r   d = d o c u m e n t . g e t E l e m e n t B y I d ( c [ 3 ] ) ; i f ( d & & d . i d ! = c [ 3 ] ) r e t u r n   j Q u e r y ( ) . f i n d ( a ) ; v a r   e = j Q u e r y ( d | | [ ] ) ; e . c o n t e x t = d o c u m e n t ; e . s e l e c t o r = a ; r e t u r n   e } } e l s e   r e t u r n   j Q u e r y ( b ) . f i n d ( a ) } e l s e   i f ( j Q u e r y . i s F u n c t i o n ( a ) ) r e t u r n   j Q u e r y ( d o c u m e n t ) . r e a d y ( a ) ; i f ( a . s e l e c t o r & & a . c o n t e x t ) { t h i s . s e l e c t o r = a . s e l e c t o r ; t h i s . c o n t e x t = a . c o n t e x t } r e t u r n   t h i s . s e t A r r a y ( j Q u e r y . i s A r r a y ( a ) ? a : j Q u e r y . m a k e A r r a y ( a ) ) } , s e l e c t o r : " " , j q u e r y : " 1 . 3 . 2 " , s i z 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 } , g e t : f u n c t i o n ( a ) { r e t u r n   a = = = u n d e f i n e d ? A r r a y . p r o t o t y p e . s l i c e . c a l l ( t h i s ) : t h i s [ a ] } , p u s h S t a c k : f u n c t i o n ( a , b , c ) { v a r   d = j Q u e r y ( a ) ; d . p r e v O b j e c t = t h i s ; d . c o n t e x t = t h i s . c o n t e x t ; i f ( b = = = " f i n d " ) d . s e l e c t o r = t h i s . s e l e c t o r + ( t h i s . s e l e c t o r ? "   " : " " ) + c ; e l s e   i f ( b ) d . s e l e c t o r = t h i s . s e l e c t o r + " . " + b + " ( " + c + " ) " ; r e t u r n   d } , s e t A r r a y : f u n c t i o n ( a ) { t h i s . l e n g t h = 0 ; A r r a y . p r o t o t y p e . p u s h . a p p l y ( t h i s , a ) ; r e t u r n   t h i s } , e a c h : f u n c t i o n ( a , b ) { r e t u r n   j Q u e r y . e a c h ( t h i s , a , b ) } , i n d e x : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . i n A r r a y ( a & & a . j q u e r y ? a [ 0 ] : a , t h i s ) } , a t t r : f u n c t i o n ( a , b , c ) { v a r   d = a ; i f ( t y p e o f   a = = = " s t r i n g " ) i f ( b = = = u n d e f i n e d ) r e t u r n   t h i s [ 0 ] & & j Q u e r y [ c | | " a t t r " ] ( t h i s [ 0 ] , a ) ; e l s e { d = { } ; d [ a ] = b } r e t u r n   t h i s . e a c h ( f u n c t i o n ( i ) { f o r ( a   i n   d ) j Q u e r y . a t t r ( c ? t h i s . s t y l e : t h i s , a , j Q u e r y . p r o p ( t h i s , d [ a ] , c , i , a ) ) } ) } , c s s : f u n c t i o n ( a , b ) { i f ( ( a = = ' w i d t h ' | | a = = ' h e i g h t ' ) & & p a r s e F l o a t ( b ) < 0 ) b = u n d e f i n e d ; r e t u r n   t h i s . a t t r ( a , b , " c u r C S S " ) } , t e x t : f u n c t i o n ( a ) { i f ( t y p e o f   a ! = = " o b j e c t " & & a ! = n u l l ) r e t u r n   t h i s . e m p t y ( ) . a p p e n d ( ( t h i s [ 0 ] & & t h i s [ 0 ] . o w n e r D o c u m e n t | | d o c u m e n t ) . c r e a t e T e x t N o d e ( a ) ) ; v a r   b = " " ; j Q u e r y . e a c h ( a | | t h i s , f u n c t i o n ( ) { j Q u e r y . e a c h ( t h i s . c h i l d N o d e s , f u n c t i o n ( ) { i f ( t h i s . n o d e T y p e ! = 8 ) b + = t h i s . n o d e T y p e ! = 1 ? t h i s . n o d e V a l u e : j Q u e r y . f n . t e x t ( [ t h i s ] ) } ) } ) ; r e t u r n   b } , w r a p A l l : f u n c t i o n ( b ) { i f ( t h i s [ 0 ] ) { v a r   c = j Q u e r y ( b , t h i s [ 0 ] . o w n e r D o c u m e n t ) . c l o n e ( ) ; i f ( t h i s [ 0 ] . p a r e n t N o d e ) c . i n s e r t B e f o r e ( t h i s [ 0 ] ) ; c . m a p ( f u n c t i o n ( ) { v a r   a = t h i s ; w h i l e ( a . f i r s t C h i l d ) a = a . f i r s t C h i l d ; r e t u r n   a } ) . a p p e n d ( t h i s ) } r e t u r n   t h i s } , w r a p I n n e r : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y ( t h i s ) . c o n t e n t s ( ) . w r a p A l l ( a ) } ) } , w r a p : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y ( t h i s ) . w r a p A l l ( a ) } ) } , a p p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , t r u e , f u n c t i o n ( a ) { i f ( t h i s . n o d e T y p e = = 1 ) t h i s . a p p e n d C h i l d ( a ) } ) } , p r e p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , t r u e , f u n c t i o n ( a ) { i f ( t h i s . n o d e T y p e = = 1 ) t h i s . i n s e r t B e f o r e ( a , t h i s . f i r s t C h i l d ) } ) } , b e f o r e : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , f a l s e , f u n c t i o n ( a ) { t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( a , t h i s ) } ) } , a f t e r : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , f a l s e , f u n c t i o n ( a ) { t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( a , t h i s . n e x t S i b l i n g ) } ) } , e n d : f u n c t i o n ( ) { r e t u r n   t h i s . p r e v O b j e c t | | j Q u e r y ( [ ] ) } , p u s h : [ ] . p u s h , s o r t : [ ] . s o r t , s p l i c e : [ ] . s p l i c e , f i n d : f u n c t i o n ( b ) { i f ( t h i s . l e n g t h = = = 1 ) { v a r   c = t h i s . p u s h S t a c k ( [ ] , " f i n d " , b ) ; c . l e n g t h = 0 ; j Q u e r y . f i n d ( b , t h i s [ 0 ] , c ) ; r e t u r n   c } e l s e { r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . u n i q u e ( j Q u e r y . m a p ( t h i s , f u n c t i o n ( a ) { r e t u r n   j Q u e r y . f i n d ( b , a ) } ) ) , " f i n d " , b ) } } , c l o n e : f u n c t i o n ( d ) { v a r   e = t h i s . m a p ( f u n c t i o n ( ) { i f ( ! j Q u e r y . s u p p o r t . n o C l o n e E v e n t & & ! j Q u e r y . i s X M L D o c ( t h i s ) ) { v a r   a = t h i s . o u t e r H T M L ; i f ( ! a ) { v a r   b = t h i s . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; b . a p p e n d C h i l d ( t h i s . c l o n e N o d e ( t r u e ) ) ; a = b . i n n e r H T M L } r e t u r n   j Q u e r y . c l e a n ( [ a . r e p l a c e ( /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g , " " ) . r e p l a c e ( / ^ \ s * / , " " ) ] ) [ 0 ] } e l s e   r e t u r n   t h i s . c l o n e N o d e ( t r u e ) } ) ; i f ( d = = = t r u e ) { v a r   f = t h i s . f i n d ( " * " ) . a n d S e l f ( ) , i = 0 ; e . f i n d ( " * " ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e ! = = f [ i ] . n o d e N a m e ) r e t u r n ; v a r   a = j Q u e r y . d a t a ( f [ i ] , " e v e n t s " ) ; f o r ( v a r   b   i n   a ) { f o r ( v a r   c   i n   a [ b ] ) { j Q u e r y . e v e n t . a d d ( t h i s , b , a [ b ] [ c ] , a [ b ] [ c ] . d a t a ) } } i + + } ) } r e t u r n   e } , f i l t e r : f u n c t i o n ( b ) { r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . i s F u n c t i o n ( b ) & & j Q u e r y . g r e p ( t h i s , f u n c t i o n ( a , i ) { r e t u r n   b . c a l l ( a , i ) } ) | | j Q u e r y . m u l t i F i l t e r ( b , j Q u e r y . g r e p ( t h i s , f u n c t i o n ( a ) { r e t u r n   a . n o d e T y p e = = = 1 } ) ) , " f i l t e r " , b ) } , c l o s e s t : f u n c t i o n ( b ) { v a r   c = j Q u e r y . e x p r . m a t c h . P O S . t e s t ( b ) ? j Q u e r y ( b ) : n u l l , c l o s e r = 0 ; r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { v a r   a = t h i s ; w h i l e ( a & & a . o w n e r D o c u m e n t ) { i f ( c ? c . i n d e x ( a ) > - 1 : j Q u e r y ( a ) . i s ( b ) ) { j Q u e r y . d a t a ( a , " c l o s e s t " , c l o s e r ) ; r e t u r n   a } a = a . p a r e n t N o d e ; c l o s e r + + } } ) } , n o t : f u n c t i o n ( a ) { i f ( t y p e o f   a = = = " s t r i n g " ) i f ( i s S i m p l e . t e s t ( a ) ) r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . m u l t i F i l t e r ( a , t h i s , t r u e ) , " n o t " , a ) ; e l s e   a = j Q u e r y . m u l t i F i l t e r ( a , t h i s ) ; v a r   b = a . l e n g t h & & a [ a . l e n g t h - 1 ] ! = = u n d e f i n e d & & ! a . n o d e T y p e ; r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( ) { r e t u r n   b ? j Q u e r y . i n A r r a y ( t h i s , a ) < 0 : t h i s ! = a } ) } , a d d : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . u n i q u e ( j Q u e r y . m e r g e ( t h i s . g e t ( ) , t y p e o f   a = = = " s t r i n g " ? j Q u e r y ( a ) : j Q u e r y . m a k e A r r a y ( a ) ) ) ) } , i s : f u n c t i o n ( a ) { r e t u r n ! ! a & & j Q u e r y . m u l t i F i l t e r ( a , t h i s ) . l e n g t h > 0 } , h a s C l a s s : f u n c t i o n ( a ) { r e t u r n ! ! a & & t h i s . i s ( " . " + a ) } , v a l : f u n c t i o n ( b ) { i f ( b = = = u n d e f i n e d ) { v a r   c = t h i s [ 0 ] ; i f ( c ) { i f ( j Q u e r y . n o d e N a m e ( c , ' o p t i o n ' ) ) r e t u r n ( c . a t t r i b u t e s . v a l u e | | { } ) . s p e c i f i e d ? c . v a l u e : c . t e x t ; i f ( j Q u e r y . n o d e N a m e ( c , " s e l e c t " ) ) { v a r   d = c . s e l e c t e d I n d e x , v a l u e s = [ ] , o p t i o n s = c . o p t i o n s , o n e = c . t y p e = = " s e l e c t - o n e " ; i f ( d < 0 ) r e t u r n   n u l l ; f o r ( v a r   i = o n e ? d : 0 , m a x = o n e ? d + 1 : o p t i o n s . l e n g t h ; i < m a x ; i + + ) { v a r   e = o p t i o n s [ i ] ; i f ( e . s e l e c t e d ) { b = j Q u e r y ( e ) . v a l ( ) ; i f ( o n e ) r e t u r n   b ; v a l u e s . p u s h ( b ) } } r e t u r n   v a l u e s } r e t u r n ( c . v a l u e | | " " ) . r e p l a c e ( / \ r / g , " " ) } r e t u r n   u n d e f i n e d } i f ( t y p e o f   b = = = " n u m b e r " ) b + = ' ' ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e T y p e ! = 1 ) r e t u r n ; i f ( j Q u e r y . i s A r r a y ( b ) & & / r a d i o | c h e c k b o x / . t e s t ( t h i s . t y p e ) ) t h i s . c h e c k e d = ( j Q u e r y . i n A r r a y ( t h i s . v a l u e , b ) > = 0 | | j Q u e r y . i n A r r a y ( t h i s . n a m e , b ) > = 0 ) ; e l s e   i f ( j Q u e r y . n o d e N a m e ( t h i s , " s e l e c t " ) ) { v a r   a = j Q u e r y . m a k e A r r a y ( b ) ; j Q u e r y ( " o p t i o n " , t h i s ) . e a c h ( f u n c t i o n ( ) { t h i s . s e l e c t e d = ( j Q u e r y . i n A r r a y ( t h i s . v a l u e , a ) > = 0 | | j Q u e r y . i n A r r a y ( t h i s . t e x t , a ) > = 0 ) } ) ; i f ( ! a . l e n g t h ) t h i s . s e l e c t e d I n d e x = - 1 } e l s e   t h i s . v a l u e = b } ) } , h t m l : f u n c t i o n ( a ) { r e t u r n   a = = = u n d e f i n e d ? ( t h i s [ 0 ] ? t h i s [ 0 ] . i n n e r H T M L . r e p l a c e ( /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g , " " ) : n u l l ) : t h i s . e m p t y ( ) . a p p e n d ( a ) } , r e p l a c e W i t h : f u n c t i o n ( a ) { r e t u r n   t h i s . a f t e r ( a ) . r e m o v e ( ) } , e q : f u n c t i o n ( i ) { r e t u r n   t h i s . s l i c e ( i , + i + 1 ) } , s l i c e : f u n c t i o n ( ) { r e t u r n   t h i s . p u s h S t a c k ( A r r a y . p r o t o t y p e . s l i c e . a p p l y ( t h i s , a r g u m e n t s ) , " s l i c e " , A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s ) . j o i n ( " , " ) ) } , m a p : f u n c t i o n ( b ) { r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . m a p ( t h i s , f u n c t i o n ( a , i ) { r e t u r n   b . c a l l ( a , i , a ) } ) ) } , a n d S e l f : f u n c t i o n ( ) { r e t u r n   t h i s . a d d ( t h i s . p r e v O b j e c t ) } , d o m M a n i p : f u n c t i o n ( c , d , e ) { i f ( t h i s [ 0 ] ) { v a r   f = ( t h i s [ 0 ] . o w n e r D o c u m e n t | | t h i s [ 0 ] ) . c r e a t e D o c u m e n t F r a g m e n t ( ) , s c r i p t s = j Q u e r y . c l e a n ( c , ( t h i s [ 0 ] . o w n e r D o c u m e n t | | t h i s [ 0 ] ) , f ) , f i r s t = f . f i r s t C h i l d ; i f ( f i r s t ) f o r ( v a r   i = 0 , l = t h i s . l e n g t h ; i < l ; i + + ) e . c a l l ( r o o t ( t h i s [ i ] , f i r s t ) , t h i s . l e n g t h > 1 | | i > 0 ? f . c l o n e N o d e ( t r u e ) : f ) ; i f ( s c r i p t s ) j Q u e r y . e a c h ( s c r i p t s , e v a l S c r i p t ) } r e t u r n   t h i s ; f u n c t i o n   r o o t ( a , b ) { r e t u r n   d & & j Q u e r y . n o d e N a m e ( a , " t a b l e " ) & & j Q u e r y . n o d e N a m e ( b , " t r " ) ? ( a . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) [ 0 ] | | a . a p p e n d C h i l d ( a . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " t b o d y " ) ) ) : a } } } ; j Q u e r y . f n . i n i t . p r o t o t y p e = j Q u e r y . f n ; f u n c t i o n   e v a l S c r i p t ( i , a ) { i f ( a . s r c ) j Q u e r y . a j a x ( { u r l : a . s r c , a s y n c : f a l s e , d a t a T y p e : " s c r i p t " } ) ; e l s e   j Q u e r y . g l o b a l E v a l ( a . t e x t | | a . t e x t C o n t e n t | | a . i n n e r H T M L | | " " ) ; i f ( a . p a r e n t N o d e ) a . p a r e n t N o d e . r e m o v e C h i l d ( a ) } f u n c t i o n   n o w ( ) { r e t u r n + n e w   D a t e } j Q u e r y . e x t e n d = j Q u e r y . f n . e x t e n d = f u n c t i o n ( ) { v a r   a = a r g u m e n t s [ 0 ] | | { } , i = 1 , l e n g t h = a r g u m e n t s . l e n g t h , d e e p = f a l s e , o p t i o n s ; i f ( t y p e o f   a = = = " b o o l e a n " ) { d e e p = a ; a = a r g u m e n t s [ 1 ] | | { } ; i = 2 } i f ( t y p e o f   a ! = = " o b j e c t " & & ! j Q u e r y . i s F u n c t i o n ( a ) ) a = { } ; i f ( l e n g t h = = i ) { a = t h i s ; - - i } f o r ( ; i < l e n g t h ; i + + ) i f ( ( o p t i o n s = a r g u m e n t s [ i ] ) ! = n u l l ) f o r ( v a r   b   i n   o p t i o n s ) { v a r   c = a [ b ] , c o p y = o p t i o n s [ b ] ; i f ( a = = = c o p y ) c o n t i n u e ; i f ( d e e p & & c o p y & & t y p e o f   c o p y = = = " o b j e c t " & & ! c o p y . n o d e T y p e ) a [ b ] = j Q u e r y . e x t e n d ( d e e p , c | | ( c o p y . l e n g t h ! = n u l l ? [ ] : { } ) , c o p y ) ; e l s e   i f ( c o p y ! = = u n d e f i n e d ) a [ b ] = c o p y } r e t u r n   a } ; v a r   z = / z - ? i n d e x | f o n t - ? w e i g h t | o p a c i t y | z o o m | l i n e - ? h e i g h t / i , d e f a u l t V i e w = d o c u m e n t . d e f a u l t V i e w | | { } , t o S t r i n g = O b j e c t . p r o t o t y p e . t o S t r i n g ; j Q u e r y . e x t e n d ( { n o C o n f l i c t : f u n c t i o n ( a ) { y . $ = _ $ ; i f ( a ) y . j Q u e r y = _ j Q u e r y ; r e t u r n   j Q u e r y } , i s F u n c t i o n : f u n c t i o n ( a ) { r e t u r n   t o S t r i n g . c a l l ( a ) = = = " [ o b j e c t   F u n c t i o n ] " } , i s A r r a y : f u n c t i o n ( a ) { r e t u r n   t o S t r i n g . c a l l ( a ) = = = " [ o b j e c t   A r r a y ] " } , i s X M L D o c : f u n c t i o n ( a ) { r e t u r n   a . n o d e T y p e = = = 9 & & a . d o c u m e n t E l e m e n t . n o d e N a m e ! = = " H T M L " | | ! ! a . o w n e r D o c u m e n t & & j Q u e r y . i s X M L D o c ( a . o w n e r D o c u m e n t ) } , g l o b a l E v a l : f u n c t i o n ( a ) { i f ( a & & / \ S / . t e s t ( a ) ) { v a r   b = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] | | d o c u m e n t . d o c u m e n t E l e m e n t , s c r i p t = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ; s c r i p t . t y p e = " t e x t / j a v a s c r i p t " ; i f ( j Q u e r y . s u p p o r t . s c r i p t E v a l ) s c r i p t . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( a ) ) ; e l s e   s c r i p t . t e x t = a ; b . i n s e r t B e f o r e ( s c r i p t , b . f i r s t C h i l d ) ; b . r e m o v e C h i l d ( s c r i p t ) } } , n o d e N a m e : f u n c t i o n ( a , b ) { r e t u r n   a . n o d e N a m e & & a . n o d e N a m e . t o U p p e r C a s e ( ) = = b . t o U p p e r C a s e ( ) } , e a c h : f u n c t i o n ( a , b , c ) { v a r   d , i = 0 , l e n g t h = a . l e n g t h ; i f ( c ) { i f ( l e n g t h = = = u n d e f i n e d ) { f o r ( d   i n   a ) i f ( b . a p p l y ( a [ d ] , c ) = = = f a l s e ) b r e a k } e l s e   f o r ( ; i < l e n g t h ; ) i f ( b . a p p l y ( a [ i + + ] , c ) = = = f a l s e ) b r e a k } e l s e { i f ( l e n g t h = = = u n d e f i n e d ) { f o r ( d   i n   a ) i f ( b . c a l l ( a [ d ] , d , a [ d ] ) = = = f a l s e ) b r e a k } e l s e   f o r ( v a r   e = a [ 0 ] ; i < l e n g t h & & b . c a l l ( e , i , e ) ! = = f a l s e ; e = a [ + + i ] ) { } } r e t u r n   a } , p r o p : f u n c t i o n ( a , b , c , i , d ) { i f ( j Q u e r y . i s F u n c t i o n ( b ) ) b = b . c a l l ( a , i ) ; r e t u r n   t y p e o f   b = = = " n u m b e r " & & c = = " c u r C S S " & & ! z . t e s t ( d ) ? b + " p x " : b } , c l a s s N a m e : { a d d : f u n c t i o n ( b , c ) { j Q u e r y . e a c h ( ( c | | " " ) . s p l i t ( / \ s + / ) , f u n c t i o n ( i , a ) { i f ( b . n o d e T y p e = = 1 & & ! j Q u e r y . c l a s s N a m e . h a s ( b . c l a s s N a m e , a ) ) b . c l a s s N a m e + = ( b . c l a s s N a m e ? "   " : " " ) + a } ) } , r e m o v e : f u n c t i o n ( b , c ) { i f ( b . n o d e T y p e = = 1 ) b . c l a s s N a m e = c ! = = u n d e f i n e d ? j Q u e r y . g r e p ( b . c l a s s N a m e . s p l i t ( / \ s + / ) , f u n c t i o n ( a ) { r e t u r n ! j Q u e r y . c l a s s N a m e . h a s ( c , a ) } ) . j o i n ( "   " ) : " " } , h a s : f u n c t i o n ( a , b ) { r e t u r n   a & & j Q u e r y . i n A r r a y ( b , ( a . c l a s s N a m e | | a ) . t o S t r i n g ( ) . s p l i t ( / \ s + / ) ) > - 1 } } , s w a p : f u n c t i o n ( a , b , c ) { v a r   d = { } ; f o r ( v a r   e   i n   b ) { d [ e ] = a . s t y l e [ e ] ; a . s t y l e [ e ] = b [ e ] } c . c a l l ( a ) ; f o r ( v a r   e   i n   b ) a . s t y l e [ e ] = d [ e ] } , c s s : f u n c t i o n ( a , b , c , d ) { i f ( b = = " w i d t h " | | b = = " h e i g h t " ) { v a r   e , p r o p s = { 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 " , d i s p l a y : " b l o c k " } , w h i c h = b = = " w i d t h " ? [ " L e f t " , " R i g h t " ] : [ " T o p " , " B o t t o m " ] ; f u n c t i o n   g e t W H ( ) { e = b = = " w i d t h " ? a . o f f s e t W i d t h : a . o f f s e t H e i g h t ; i f ( d = = = " b o r d e r " ) r e t u r n ; j Q u e r y . e a c h ( w h i c h , f u n c t i o n ( ) { i f ( ! d ) e - = p a r s e F l o a t ( j Q u e r y . c u r C S S ( a , " p a d d i n g " + t h i s , t r u e ) ) | | 0 ; i f ( d = = = " m a r g i n " ) e + = p a r s e F l o a t ( j Q u e r y . c u r C S S ( a , " m a r g i n " + t h i s , t r u e ) ) | | 0 ; e l s e   e - = p a r s e F l o a t ( j Q u e r y . c u r C S S ( a , " b o r d e r " + t h i s + " W i d t h " , t r u e ) ) | | 0 } ) } i f ( a . o f f s e t W i d t h ! = = 0 ) g e t W H ( ) ; e l s e   j Q u e r y . s w a p ( a , p r o p s , g e t W H ) ; r e t u r n   M a t h . m a x ( 0 , M a t h . r o u n d ( e ) ) } r e t u r n   j Q u e r y . c u r C S S ( a , b , c ) } , c u r C S S : f u n c t i o n ( c , d , e ) { v a r   f , s t y l e = c . s t y l e ; i f ( d = = " o p a c i t y " & & ! j Q u e r y . s u p p o r t . o p a c i t y ) { f = j Q u e r y . a t t r ( s t y l e , " o p a c i t y " ) ; r e t u r n   f = = " " ? " 1 " : f } i f ( d . m a t c h ( / f l o a t / i ) ) d = E ; i f ( ! e & & s t y l e & & s t y l e [ d ] ) f = s t y l e [ d ] ; e l s e   i f ( d e f a u l t V i e w . g e t C o m p u t e d S t y l e ) { i f ( d . m a t c h ( / f l o a t / i ) ) d = " f l o a t " ; d = d . r e p l a c e ( / ( [ A - Z ] ) / g , " - $ 1 " ) . t o L o w e r C a s e ( ) ; v a r   g = d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( c , n u l l ) ; i f ( g ) f = g . g e t P r o p e r t y V a l u e ( d ) ; i f ( d = = " o p a c i t y " & & f = = " " ) f = " 1 " } e l s e   i f ( c . c u r r e n t S t y l e ) { v a r   h = d . r e p l a c e ( / \ - ( \ w ) / g , f u n c t i o n ( a , b ) { r e t u r n   b . t o U p p e r C a s e ( ) } ) ; f = c . c u r r e n t S t y l e [ d ] | | c . c u r r e n t S t y l e [ h ] ; i f ( ! / ^ \ d + ( p x ) ? $ / i . t e s t ( f ) & & / ^ \ d / . t e s t ( f ) ) { v a r   i = s t y l e . l e f t , r s L e f t = c . r u n t i m e S t y l e . l e f t ; c . r u n t i m e S t y l e . l e f t = c . c u r r e n t S t y l e . l e f t ; s t y l e . l e f t = f | | 0 ; f = s t y l e . p i x e l L e f t + " p x " ; s t y l e . l e f t = i ; c . r u n t i m e S t y l e . l e f t = r s L e f t } } r e t u r n   f } , c l e a n : f u n c t i o n ( h , k , l ) { k = k | | d o c u m e n t ; i f ( t y p e o f   k . c r e a t e E l e m e n t = = = " u n d e f i n e d " ) k = k . o w n e r D o c u m e n t | | k [ 0 ] & & k [ 0 ] . o w n e r D o c u m e n t | | d o c u m e n t ; i f ( ! l & & h . l e n g t h = = = 1 & & t y p e o f   h [ 0 ] = = = " s t r i n g " ) { v a r   m = / ^ < ( \ w + ) \ s * \ / ? > $ / . e x e c ( h [ 0 ] ) ; i f ( m ) r e t u r n [ k . c r e a t e E l e m e n t ( m [ 1 ] ) ] } v a r   n = [ ] , s c r i p t s = [ ] , d i v = k . c r e a t e E l e m e n t ( " d i v " ) ; j Q u e r y . e a c h ( h , f u n c t i o n ( i , d ) { i f ( t y p e o f   d = = = " n u m b e r " ) d + = ' ' ; i f ( ! d ) r e t u r n ; i f ( t y p e o f   d = = = " s t r i n g " ) { d = d . r e p l a c e ( / ( < ( \ w + ) [ ^ > ] * ? ) \ / > / g , f u n c t i o n ( a , b , c ) { r e t u r n   c . m a t c h ( / ^ ( a b b r | b r | c o l | i m g | i n p u t | l i n k | m e t a | p a r a m | h r | a r e a | e m b e d ) $ / i ) ? a : b + " > < / " + c + " > " } ) ; v a r   e = d . r e p l a c e ( / ^ \ s + / , " " ) . s u b s t r i n g ( 0 , 1 0 ) . t o L o w e r C a s e ( ) ; v a r   f = ! e . i n d e x O f ( " < o p t " ) & & [ 1 , " < s e l e c t   m u l t i p l e = ' m u l t i p l e ' > " , " < / s e l e c t > " ] | | ! e . i n d e x O f ( " < l e g " ) & & [ 1 , " < f i e l d s e t > " , " < / f i e l d s e t > " ] | | e . m a t c h ( / ^ < ( t h e a d | t b o d y | t f o o t | c o l g | c a p ) / ) & & [ 1 , " < t a b l e > " , " < / t a b l e > " ] | | ! e . i n d e x O f ( " < t r " ) & & [ 2 , " < t a b l e > < t b o d y > " , " < / t b o d y > < / t a b l e > " ] | | ( ! e . i n d e x O f ( " < t d " ) | | ! e . i n d e x O f ( " < t h " ) ) & & [ 3 , " < t a b l e > < t b o d y > < t r > " , " < / t r > < / t b o d y > < / t a b l e > " ] | | ! e . i n d e x O f ( " < c o l " ) & & [ 2 , " < t a b l e > < t b o d y > < / t b o d y > < c o l g r o u p > " , " < / c o l g r o u p > < / t a b l e > " ] | | ! j Q u e r y . s u p p o r t . h t m l S e r i a l i z e & & [ 1 , " d i v < d i v > " , " < / d i v > " ] | | [ 0 , " " , " " ] ; d i v . i n n e r H T M L = f [ 1 ] + d + f [ 2 ] ; w h i l e ( f [ 0 ] - - ) d i v = d i v . l a s t C h i l d ; i f ( ! j Q u e r y . s u p p o r t . t b o d y ) { v a r   g = / < t b o d y / i . t e s t ( d ) , t b o d y = ! e . i n d e x O f ( " < t a b l e " ) & & ! g ? d i v . f i r s t C h i l d & & d i v . f i r s t C h i l d . c h i l d N o d e s : f [ 1 ] = = " < t a b l e > " & & ! g ? d i v . c h i l d N o d e s : [ ] ; f o r ( v a r   j = t b o d y . l e n g t h - 1 ; j > = 0 ; - - j ) i f ( j Q u e r y . n o d e N a m e ( t b o d y [ j ] , " t b o d y " ) & & ! t b o d y [ j ] . c h i l d N o d e s . l e n g t h ) t b o d y [ j ] . p a r e n t N o d e . r e m o v e C h i l d ( t b o d y [ j ] ) } i f ( ! j Q u e r y . s u p p o r t . l e a d i n g W h i t e s p a c e & & / ^ \ s / . t e s t ( d ) ) d i v . i n s e r t B e f o r e ( k . c r e a t e T e x t N o d e ( d . m a t c h ( / ^ \ s * / ) [ 0 ] ) , d i v . f i r s t C h i l d ) ; d = j Q u e r y . m a k e A r r a y ( d i v . c h i l d N o d e s ) } i f ( d . n o d e T y p e ) n . p u s h ( d ) ; e l s e   n = j Q u e r y . m e r g e ( n , d ) } ) ; i f ( l ) { f o r ( v a r   i = 0 ; n [ i ] ; i + + ) { i f ( j Q u e r y . n o d e N a m e ( n [ i ] , " s c r i p t " ) & & ( ! n [ i ] . t y p e | | n [ i ] . t y p e . t o L o w e r C a s e ( ) = = = " t e x t / j a v a s c r i p t " ) ) { s c r i p t s . p u s h ( n [ i ] . p a r e n t N o d e ? n [ i ] . p a r e n t N o d e . r e m o v e C h i l d ( n [ i ] ) : n [ i ] ) } e l s e { i f ( n [ i ] . n o d e T y p e = = = 1 ) n . s p l i c e . a p p l y ( n , [ i + 1 , 0 ] . c o n c a t ( j Q u e r y . m a k e A r r a y ( n [ i ] . g e t E l e m e n t s B y T a g N a m e ( " s c r i p t " ) ) ) ) ; l . a p p e n d C h i l d ( n [ i ] ) } } r e t u r n   s c r i p t s } r e t u r n   n } , a t t r : f u n c t i o n ( c , d , e ) { i f ( ! c | | c . n o d e T y p e = = 3 | | c . n o d e T y p e = = 8 ) r e t u r n   u n d e f i n e d ; v a r   f = ! j Q u e r y . i s X M L D o c ( c ) , s e t = e ! = = u n d e f i n e d ; d = f & & j Q u e r y . p r o p s [ d ] | | d ; i f ( c . t a g N a m e ) { v a r   g = / h r e f | s r c | s t y l e / . t e s t ( d ) ; i f ( d = = " s e l e c t e d " & & c . p a r e n t N o d e ) c . p a r e n t N o d e . s e l e c t e d I n d e x ; i f ( d   i n   c & & f & & ! g ) { i f ( s e t ) { i f ( d = = " t y p e " & & j Q u e r y . n o d e N a m e ( c , " i n p u t " ) & & c . p a r e n t N o d e ) t h r o w " t y p e   p r o p e r t y   c a n ' t   b e   c h a n g e d " ; c [ d ] = e } i f ( j Q u e r y . n o d e N a m e ( c , " f o r m " ) & & c . g e t A t t r i b u t e N o d e ( d ) ) r e t u r n   c . g e t A t t r i b u t e N o d e ( d ) . n o d e V a l u e ; i f ( d = = " t a b I n d e x " ) { v a r   h = c . g e t A t t r i b u t e N o d e ( " t a b I n d e x " ) ; r e t u r n   h & & h . s p e c i f i e d ? h . v a l u e : c . n o d e N a m e . m a t c h ( / ( b u t t o n | i n p u t | o b j e c t | s e l e c t | t e x t a r e a ) / i ) ? 0 : c . n o d e N a m e . m a t c h ( / ^ ( a | a r e a ) $ / i ) & & c . h r e f ? 0 : u n d e f i n e d } r e t u r n   c [ d ] } i f ( ! j Q u e r y . s u p p o r t . s t y l e & & f & & d = = " s t y l e " ) r e t u r n   j Q u e r y . a t t r ( c . s t y l e , " c s s T e x t " , e ) ; i f ( s e t ) c . s e t A t t r i b u t e ( d , " " + e ) ; v a r   i = ! j Q u e r y . s u p p o r t . h r e f N o r m a l i z e d & & f & & g ? c . g e t A t t r i b u t e ( d , 2 ) : c . g e t A t t r i b u t e ( d ) ; r e t u r n   i = = = n u l l ? u n d e f i n e d : i } i f ( ! j Q u e r y . s u p p o r t . o p a c i t y & & d = = " o p a c i t y " ) { i f ( s e t ) { c . z o o m = 1 ; c . f i l t e r = ( c . f i l t e r | | " " ) . r e p l a c e ( / a l p h a \ ( [ ^ ) ] * \ ) / , " " ) + ( p a r s e I n t ( e ) + ' ' = = " N a N " ? " " : " a l p h a ( o p a c i t y = " + e * 1 0 0 + " ) " ) } r e t u r n   c . f i l t e r & & c . f i l t e r . i n d e x O f ( " o p a c i t y = " ) > = 0 ? ( p a r s e F l o a t ( c . f i l t e r . m a t c h ( / o p a c i t y = ( [ ^ ) ] * ) / ) [ 1 ] ) / 1 0 0 ) + ' ' : " " } d = d . r e p l a c e ( / - ( [ a - z ] ) / i g , f u n c t i o n ( a , b ) { r e t u r n   b . t o U p p e r C a s e ( ) } ) ; i f ( s e t ) c [ d ] = e ; r e t u r n   c [ d ] } , t r i m : f u n c t i o n ( a ) { r e t u r n ( a | | " " ) . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) } , m a k e A r r a y : f u n c t i o n ( a ) { v a r   b = [ ] ; i f ( a ! = n u l l ) { v a r   i = a . l e n g t h ; i f ( i = = n u l l | | t y p e o f   a = = = " s t r i n g " | | j Q u e r y . i s F u n c t i o n ( a ) | | a . s e t I n t e r v a l ) b [ 0 ] = a ; e l s e   w h i l e ( i ) b [ - - i ] = a [ i ] } r e t u r n   b } , i n A r r a y : f u n c t i o n ( a , b ) { f o r ( v a r   i = 0 , l e n g t h = b . l e n g t h ; i < l e n g t h ; i + + ) i f ( b [ i ] = = = a ) r e t u r n   i ; r e t u r n - 1 } , m e r g e : f u n c t i o n ( a , b ) { v a r   i = 0 , e l e m , p o s = a . l e n g t h ; i f ( ! j Q u e r y . s u p p o r t . g e t A l l ) { w h i l e ( ( e l e m = b [ i + + ] ) ! = n u l l ) i f ( e l e m . n o d e T y p e ! = 8 ) a [ p o s + + ] = e l e m } e l s e   w h i l e ( ( e l e m = b [ i + + ] ) ! = n u l l ) a [ p o s + + ] = e l e m ; r e t u r n   a } , u n i q u e : f u n c t i o n ( a ) { v a r   b = [ ] , d o n e = { } ; t r y { f o r ( v a r   i = 0 , l e n g t h = a . l e n g t h ; i < l e n g t h ; i + + ) { v a r   c = j Q u e r y . d a t a ( a [ i ] ) ; i f ( ! d o n e [ c ] ) { d o n e [ c ] = t r u e ; b . p u s h ( a [ i ] ) } } } c a t c h ( e ) { b = a } r e t u r n   b } , g r e p : f u n c t i o n ( a , b , c ) { v a r   d = [ ] ; f o r ( v a r   i = 0 , l e n g t h = a . l e n g t h ; i < l e n g t h ; i + + ) i f ( ! c ! = ! b ( a [ i ] , i ) ) d . p u s h ( a [ i ] ) ; r e t u r n   d } , m a p : f u n c t i o n ( a , b ) { v a r   c = [ ] ; f o r ( v a r   i = 0 , l e n g t h = a . l e n g t h ; i < l e n g t h ; i + + ) { v a r   d = b ( a [ i ] , i ) ; i f ( d ! = n u l l ) c [ c . l e n g t h ] = d } r e t u r n   c . c o n c a t . a p p l y ( [ ] , c ) } } ) ; v a r   A = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; j Q u e r y . b r o w s e r = { v e r s i o n : ( A . m a t c h ( / . + ( ? : r v | i t | r a | i e ) [ \ / :   ] ( [ \ d . ] + ) / ) | | [ 0 , ' 0 ' ] ) [ 1 ] , s a f a r i : / w e b k i t / . t e s t ( A ) , o p e r a : / o p e r a / . t e s t ( A ) , m s i e : / m s i e / . t e s t ( A ) & & ! / o p e r a / . t e s t ( A ) , m o z i l l a : / m o z i l l a / . t e s t ( A ) & & ! / ( c o m p a t i b l e | w e b k i t ) / . t e s t ( A ) } ; j Q u e r y . e a c h ( { p a r e n t : f u n c t i o n ( a ) { r e t u r n   a . p a r e n t N o d e } , p a r e n t s : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . d i r ( a , " p a r e n t N o d e " ) } , n e x t : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . n t h ( a , 2 , " n e x t S i b l i n g " ) } , p r e v : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . n t h ( a , 2 , " p r e v i o u s S i b l i n g " ) } , n e x t A l l : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . d i r ( a , " n e x t S i b l i n g " ) } , p r e v A l l : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . d i r ( a , " p r e v i o u s S i b l i n g " ) } , s i b l i n g s : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . s i b l i n g ( a . p a r e n t N o d e . f i r s t C h i l d , a ) } , c h i l d r e n : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . s i b l i n g ( a . f i r s t C h i l d ) } , c o n t e n t s : f u n c t i o n ( a ) { r e t u r n   j Q u e r y . n o d e N a m e ( a , " i f r a m e " ) ? a . c o n t e n t D o c u m e n t | | a . c o n t e n t W i n d o w . d o c u m e n t : j Q u e r y . m a k e A r r a y ( a . c h i l d N o d e s ) } } , f u n c t i o n ( c , d ) { j Q u e r y . f n [ c ] = f u n c t i o n ( a ) { v a r   b = j Q u e r y . m a p ( t h i s , d ) ; i f ( a & & t y p e o f   a = = " s t r i n g " ) b = j Q u e r y . m u l t i F i l t e r ( a , b ) ; r e t u r n   t h i s . p u s h S t a c k ( j Q u e r y . u n i q u e ( b ) , c , a ) } } ) ; j Q u e r y . e a c h ( { a p p e n d T o : " a p p e n d " , p r e p e n d T o : " p r e p e n d " , i n s e r t B e f o r e : " b e f o r e " , i n s e r t A f t e r : " a f t e r " , r e p l a c e A l l : " r e p l a c e W i t h " } , f u n c t i o n ( d , e ) { j Q u e r y . f n [ d ] = f u n c t i o n ( a ) { v a r   b = [ ] , i n s e r t = j Q u e r y ( a ) ; f o r ( v a r   i = 0 , l = i n s e r t . l e n g t h ; i < l ; i + + ) { v a r   c = ( i > 0 ? t h i s . c l o n e ( t r u e ) : t h i s ) . g e t ( ) ; j Q u e r y . f n [ e ] . a p p l y ( j Q u e r y ( i n s e r t [ i ] ) , c ) ; b = b . c o n c a t ( c ) } r e t u r n   t h i s . p u s h S t a c k ( b , d , a ) } } ) ; j Q u e r y . e a c h ( { r e m o v e A t t r : f u n c t i o n ( a ) { j Q u e r y . a t t r ( t h i s , a , " " ) ; i f ( t h i s . n o d e T y p e = = 1 ) t h i s . r e m o v e A t t r i b u t e ( a ) } , a d d C l a s s : f u n c t i o n ( a ) { j Q u e r y . c l a s s N a m e . a d d ( t h i s , a ) } , r e m o v e C l a s s : f u n c t i o n ( a ) { j Q u e r y . c l a s s N a m e . r e m o v e ( t h i s , a ) } , t o g g l e C l a s s : f u n c t i o n ( a , b ) { i f ( t y p e o f   b ! = = " b o o l e a n " ) b = ! j Q u e r y . c l a s s N a m e . h a s ( t h i s , a ) ; j Q u e r y . c l a s s N a m e [ b ? " a d d " : " r e m o v e " ] ( t h i s , a ) } , r e m o v e : f u n c t i o n ( a ) { i f ( ! a | | j Q u e r y . f i l t e r ( a , [ t h i s ] ) . l e n g t h ) { j Q u e r y ( " * " , t h i s ) . a d d ( [ t h i s ] ) . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . r e m o v e ( t h i s ) ; j Q u e r y . r e m o v e D a t a ( t h i s ) } ) ; i f ( t h i s . p a r e n t N o d e ) t h i s . p a r e n t N o d e . r e m o v e C h i l d ( t h i s ) } } , e m p t y : f u n c t i o n ( ) { j Q u e r y ( t h i s ) . c h i l d r e n ( ) . r e m o v e ( ) ; w h i l e ( t h i s . f i r s t C h i l d ) t h i s . r e m o v e C h i l d ( t h i s . f i r s t C h i l d ) } } , f u n c t i o n ( a , b ) { j Q u e r y . f n [ a ] = f u n c t i o n ( ) { r e t u r n   t h i s . e a c h ( b , a r g u m e n t s ) } } ) ; f u n c t i o n   n u m ( a , b ) { r e t u r n   a [ 0 ] & & p a r s e I n t ( j Q u e r y . c u r C S S ( a [ 0 ] , b , t r u e ) , 1 0 ) | | 0 } v a r   B = " j Q u e r y " + n o w ( ) , u u i d = 0 , w i n d o w D a t a = { } ; j Q u e r y . e x t e n d ( { c a c h e : { } , d a t a : f u n c t i o n ( a , b , c ) { a = a = = y ? w i n d o w D a t a : a ; v a r   d = a [ B ] ; i f ( ! d ) d = a [ B ] = + + u u i d ; i f ( b & & ! j Q u e r y . c a c h e [ d ] ) j Q u e r y . c a c h e [ d ] = { } ; i f ( c ! = = u n d e f i n e d ) j Q u e r y . c a c h e [ d ] [ b ] = c ; r e t u r n   b ? j Q u e r y . c a c h e [ d ] [ b ] : d } , r e m o v e D a t a : f u n c t i o n ( a , b ) { a = a = = y ? w i n d o w D a t a : a ; v a r   c = a [ B ] ; i f ( b ) { i f ( j Q u e r y . c a c h e [ c ] ) { d e l e t e   j Q u e r y . c a c h e [ c ] [ b ] ; b = " " ; f o r ( b   i n   j Q u e r y . c a c h e [ c ] ) b r e a k ; i f ( ! b ) j Q u e r y . r e m o v e D a t a ( a ) } } e l s e { t r y { d e l e t e   a [ B ] } c a t c h ( e ) { i f ( a . r e m o v e A t t r i b u t e ) a . r e m o v e A t t r i b u t e ( B ) } d e l e t e   j Q u e r y . c a c h e [ c ] } } , q u e u e : f u n c t i o n ( a , b , c ) { i f ( a ) { b = ( b | | " f x " ) + " q u e u e " ; v a r   q = j Q u e r y . d a t a ( a , b ) ; i f ( ! q | | j Q u e r y . i s A r r a y ( c ) ) q = j Q u e r y . d a t a ( a , b , j Q u e r y . m a k e A r r a y ( c ) ) ; e l s e   i f ( c ) q . p u s h ( c ) } r e t u r n   q } , d e q u e u e : f u n c t i o n ( a , b ) { v a r   c = j Q u e r y . q u e u e ( a , b ) , f n = c . s h i f t ( ) ; i f ( ! b | | b = = = " f x " ) f n = c [ 0 ] ; i f ( f n ! = = u n d e f i n e d ) f n . c a l l ( a ) } } ) ; j Q u e r y . f n . e x t e n d ( { d a t a : f u n c t i o n ( a , b ) { v a r   c = a . s p l i t ( " . " ) ; c [ 1 ] = c [ 1 ] ? " . " + c [ 1 ] : " " ; i f ( b = = = u n d e f i n e d ) { v a r   d = t h i s . t r i g g e r H a n d l e r ( " g e t D a t a " + c [ 1 ] + " ! " , [ c [ 0 ] ] ) ; i f ( d = = = u n d e f i n e d & & t h i s . l e n g t h ) d = j Q u e r y . d a t a ( t h i s [ 0 ] , a ) ; r e t u r n   d = = = u n d e f i n e d & & c [ 1 ] ? t h i s . d a t a ( c [ 0 ] ) : d } e l s e   r e t u r n   t h i s . t r i g g e r ( " s e t D a t a " + c [ 1 ] + " ! " , [ c [ 0 ] , b ] ) . e a c h ( f u n c t i o n ( ) { j Q u e r y . d a t a ( t h i s , a , b ) } ) } , r e m o v e D a t a : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . r e m o v e D a t a ( t h i s , a ) } ) } , q u e u e : f u n c t i o n ( b , c ) { i f ( t y p e o f   b ! = = " s t r i n g " ) { c = b ; b = " f x " } i f ( c = = = u n d e f i n e d ) r e t u r n   j Q u e r y . q u e u e ( t h i s [ 0 ] , b ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   a = j Q u e r y . q u e u e ( t h i s , b , c ) ; i f ( b = = " f x " & & a . l e n g t h = = 1 ) a [ 0 ] . c a l l ( t h i s ) } ) } , d e q u e u e : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . d e q u e u e ( t h i s , a ) } ) } } ) ; ( f u n c t i o n ( ) { v a r   k = / ( ( ? : \ ( ( ? : \ ( [ ^ ( ) ] + \ ) | [ ^ ( ) ] + ) + \ ) | \ [ ( ? : \ [ [ ^ [ \ ] ] * \ ] | [ ' " ] [ ^ ' " ] * [ ' " ] | [ ^ [ \ ] ' " ] + ) + \ ] | \ \ . | [ ^   > + ~ , ( \ [ \ \ ] + ) + | [ > + ~ ] ) ( \ s * , \ s * ) ? / g , d o n e = 0 , t o S t r i n g = O b j e c t . p r o t o t y p e . t o S t r i n g ; v a r   o = f u n c t i o n ( a , b , c , d ) { c = c | | [ ] ; b = b | | d o c u m e n t ; i f ( b . n o d e T y p e ! = = 1 & & b . n o d e T y p e ! = = 9 ) r e t u r n [ ] ; i f ( ! a | | t y p e o f   a ! = = " s t r i n g " ) { r e t u r n   c } v a r   e = [ ] , m , s e t , c h e c k S e t , c h e c k , m o d e , e x t r a , p r u n e = t r u e ; k . l a s t I n d e x = 0 ; w h i l e ( ( m = k . e x e c ( a ) ) ! = = n u l l ) { e . p u s h ( m [ 1 ] ) ; i f ( m [ 2 ] ) { e x t r a = R e g E x p . r i g h t C o n t e x t ; b r e a k } } i f ( e . l e n g t h > 1 & & q . e x e c ( a ) ) { i f ( e . l e n g t h = = = 2 & & p . r e l a t i v e [ e [ 0 ] ] ) { s e t = x ( e [ 0 ] + e [ 1 ] , b ) } e l s e { s e t = p . r e l a t i v e [ e [ 0 ] ] ? [ b ] : o ( e . s h i f t ( ) , b ) ; w h i l e ( e . l e n g t h ) { a = e . s h i f t ( ) ; i f ( p . r e l a t i v e [ a ] ) a + = e . s h i f t ( ) ; s e t = x ( a , s e t ) } } } e l s e { v a r   f = d ? { e x p r : e . p o p ( ) , s e t : t ( d ) } : o . f i n d ( e . p o p ( ) , e . l e n g t h = = = 1 & & b . p a r e n t N o d e ? b . p a r e n t N o d e : b , w ( b ) ) ; s e t = o . f i l t e r ( f . e x p r , f . s e t ) ; i f ( e . l e n g t h > 0 ) { c h e c k S e t = t ( s e t ) } e l s e { p r u n e = f a l s e } w h i l e ( e . l e n g t h ) { v a r   g = e . p o p ( ) , p o p = g ; i f ( ! p . r e l a t i v e [ g ] ) { g = " " } e l s e { p o p = e . p o p ( ) } i f ( p o p = = n u l l ) { p o p = b } p . r e l a t i v e [ g ] ( c h e c k S e t , p o p , w ( b ) ) } } i f ( ! c h e c k S e t ) { c h e c k S e t = s e t } i f ( ! c h e c k S e t ) { t h r o w " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   " + ( g | | a ) ; } i f ( t o S t r i n g . c a l l ( c h e c k S e t ) = = = " [ o b j e c t   A r r a y ] " ) { i f ( ! p r u n e ) { c . p u s h . a p p l y ( c , c h e c k S e t ) } e l s e   i f ( b . n o d e T y p e = = = 1 ) { f o r ( v a r   i = 0 ; c h e c k S e t [ i ] ! = n u l l ; i + + ) { i f ( c h e c k S e t [ i ] & & ( c h e c k S e t [ i ] = = = t r u e | | c h e c k S e t [ i ] . n o d e T y p e = = = 1 & & v ( b , c h e c k S e t [ i ] ) ) ) { c . p u s h ( s e t [ i ] ) } } } e l s e { f o r ( v a r   i = 0 ; c h e c k S e t [ i ] ! = n u l l ; i + + ) { i f ( c h e c k S e t [ i ] & & c h e c k S e t [ i ] . n o d e T y p e = = = 1 ) { c . p u s h ( s e t [ i ] ) } } } } e l s e { t ( c h e c k S e t , c ) } i f ( e x t r a ) { o ( e x t r a , b , c , d ) ; i f ( u ) { h a s D u p l i c a t e = f a l s e ; c . s o r t ( u ) ; i f ( h a s D u p l i c a t e ) { f o r ( v a r   i = 1 ; i < c . l e n g t h ; i + + ) { i f ( c [ i ] = = = c [ i - 1 ] ) { c . s p l i c e ( i - - , 1 ) } } } } } r e t u r n   c } ; o . m a t c h e s = f u n c t i o n ( a , b ) { r e t u r n   o ( a , n u l l , n u l l , b ) } ; o . f i n d = f u n c t i o n ( a , b , c ) { v a r   d , m a t c h ; i f ( ! a ) { r e t u r n [ ] } f o r ( v a r   i = 0 , l = p . o r d e r . l e n g t h ; i < l ; i + + ) { v a r   e = p . o r d e r [ i ] , m a t c h ; i f ( ( m a t c h = p . m a t c h [ e ] . e x e c ( a ) ) ) { v a r   f = R e g E x p . l e f t C o n t e x t ; i f ( f . s u b s t r ( f . l e n g t h - 1 ) ! = = " \ \ " ) { m a t c h [ 1 ] = ( m a t c h [ 1 ] | | " " ) . r e p l a c e ( / \ \ / g , " " ) ; d = p . f i n d [ e ] ( m a t c h , b , c ) ; i f ( d ! = n u l l ) { a = a . r e p l a c e ( p . m a t c h [ e ] , " " ) ; b r e a k } } } } i f ( ! d ) { d = b . g e t E l e m e n t s B y T a g N a m e ( " * " ) } r e t u r n { s e t : d , e x p r : a } } ; o . f i l t e r = f u n c t i o n ( a , b , c , d ) { v a r   e = a , r e s u l t = [ ] , c u r L o o p = b , m a t c h , a n y F o u n d , i s X M L F i l t e r = b & & b [ 0 ] & & w ( b [ 0 ] ) ; w h i l e ( a & & b . l e n g t h ) { f o r ( v a r   f   i n   p . f i l t e r ) { i f ( ( m a t c h = p . m a t c h [ f ] . e x e c ( a ) ) ! = n u l l ) { v a r   g = p . f i l t e r [ f ] , f o u n d , i t e m ; a n y F o u n d = f a l s e ; i f ( c u r L o o p = = r e s u l t ) { r e s u l t = [ ] } i f ( p . p r e F i l t e r [ f ] ) { m a t c h = p . p r e F i l t e r [ f ] ( m a t c h , c u r L o o p , c , r e s u l t , d , i s X M L F i l t e r ) ; i f ( ! m a t c h ) { a n y F o u n d = f o u n d = t r u e } e l s e   i f ( m a t c h = = = t r u e ) { c o n t i n u e } } i f ( m a t c h ) { f o r ( v a r   i = 0 ; ( i t e m = c u r L o o p [ i ] ) ! = n u l l ; i + + ) { i f ( i t e m ) { f o u n d = g ( i t e m , m a t c h , i , c u r L o o p ) ; v a r   h = d ^ ! ! f o u n d ; i f ( c & & f o u n d ! = n u l l ) { i f ( h ) { a n y F o u n d = t r u e } e l s e { c u r L o o p [ i ] = f a l s e } } e l s e   i f ( h ) { r e s u l t . p u s h ( i t e m ) ; a n y F o u n d = t r u e } } } } i f ( f o u n d ! = = u n d e f i n e d ) { i f ( ! c ) { c u r L o o p = r e s u l t } a = a . r e p l a c e ( p . m a t c h [ f ] , " " ) ; i f ( ! a n y F o u n d ) { r e t u r n [ ] } b r e a k } } } i f ( a = = e ) { i f ( a n y F o u n d = = n u l l ) { t h r o w " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   " + a ; } e l s e { b r e a k } } e = a } r e t u r n   c u r L o o p } ; v a r   p = o . s e l e c t o r s = { o r d e r : [ " I D " , " N A M E " , " T A G " ] , m a t c h : { I D : / # ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) / , C L A S S : / \ . ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) / , N A M E : / \ [ n a m e = [ ' " ] * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) [ ' " ] * \ ] / , A T T R : / \ [ \ s * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) \ s * ( ? : ( \ S ? = ) \ s * ( [ ' " ] * ) ( . * ? ) \ 3 | ) \ s * \ ] / , T A G : / ^ ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ * _ - ] | \ \ . ) + ) / , C H I L D : / : ( o n l y | n t h | l a s t | f i r s t ) - c h i l d ( ? : \ ( ( e v e n | o d d | [ \ d n + - ] * ) \ ) ) ? / , P O S : / : ( n t h | e q | g t | l t | f i r s t | l a s t | e v e n | o d d ) ( ? : \ ( ( \ d * ) \ ) ) ? ( ? = [ ^ - ] | $ ) / , P S E U D O : / : ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F _ - ] | \ \ . ) + ) ( ? : \ ( ( [ ' " ] * ) ( ( ? : \ ( [ ^ \ ) ] + \ ) | [ ^ \ 2 \ ( \ ) ] * ) + ) \ 2 \ ) ) ? / } , a t t r M a p : { " c l a s s " : " c l a s s N a m e " , " f o r " : " h t m l F o r " } , a t t r H a n d l e : { h r e f : f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " h r e f " ) } } , r e l a t i v e : { " + " : f u n c t i o n ( a , b , c ) { v a r   d = t y p e o f   b = = = " s t r i n g " , i s T a g = d & & ! / \ W / . t e s t ( b ) , i s P a r t S t r N o t T a g = d & & ! i s T a g ; i f ( i s T a g & & ! c ) { b = b . t o U p p e r C a s e ( ) } f o r ( v a r   i = 0 , l = a . l e n g t h , e l e m ; i < l ; i + + ) { i f ( ( e l e m = a [ i ] ) ) { w h i l e ( ( e l e m = e l e m . p r e v i o u s S i b l i n g ) & & e l e m . n o d e T y p e ! = = 1 ) { } a [ i ] = i s P a r t S t r N o t T a g | | e l e m & & e l e m . n o d e N a m e = = = b ? e l e m | | f a l s e : e l e m = = = b } } i f ( i s P a r t S t r N o t T a g ) { o . f i l t e r ( b , a , t r u e ) } } , " > " : f u n c t i o n ( a , b , c ) { v a r   d = t y p e o f   b = = = " s t r i n g " ; i f ( d & & ! / \ W / . t e s t ( b ) ) { b = c ? b : b . t o U p p e r C a s e ( ) ; f o r ( v a r   i = 0 , l = a . l e n g t h ; i < l ; i + + ) { v a r   e = a [ i ] ; i f ( e ) { v a r   f = e . p a r e n t N o d e ; a [ i ] = f . n o d e N a m e = = = b ? f : f a l s e } } } e l s e { f o r ( v a r   i = 0 , l = a . l e n g t h ; i < l ; i + + ) { v a r   e = a [ i ] ; i f ( e ) { a [ i ] = d ? e . p a r e n t N o d e : e . p a r e n t N o d e = = = b } } i f ( d ) { o . f i l t e r ( b , a , t r u e ) } } } , " " : f u n c t i o n ( a , b , c ) { v a r   d = d o n e + + , c h e c k F n = d i r C h e c k ; i f ( ! b . m a t c h ( / \ W / ) ) { v a r   e = b = c ? b : b . t o U p p e r C a s e ( ) ; c h e c k F n = d i r N o d e C h e c k } c h e c k F n ( " p a r e n t N o d e " , b , d , a , e , c ) } , " ~ " : f u n c t i o n ( a , b , c ) { v a r   d = d o n e + + , c h e c k F n = d i r C h e c k ; i f ( t y p e o f   b = = = " s t r i n g " & & ! b . m a t c h ( / \ W / ) ) { v a r   e = b = c ? b : b . t o U p p e r C a s e ( ) ; c h e c k F n = d i r N o d e C h e c k } c h e c k F n ( " p r e v i o u s S i b l i n g " , b , d , a , e , c ) } } , f i n d : { I D : f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t B y I d ! = = " u n d e f i n e d " & & ! c ) { v a r   m = b . g e t E l e m e n t B y I d ( a [ 1 ] ) ; r e t u r n   m ? [ m ] : [ ] } } , N A M E : f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t s B y N a m e ! = = " u n d e f i n e d " ) { v a r   d = [ ] , r e s u l t s = b . g e t E l e m e n t s B y N a m e ( a [ 1 ] ) ; f o r ( v a r   i = 0 , l = r e s u l t s . l e n g t h ; i < l ; i + + ) { i f ( r e s u l t s [ i ] . g e t A t t r i b u t e ( " n a m e " ) = = = a [ 1 ] ) { d . p u s h ( r e s u l t s [ i ] ) } } r e t u r n   d . l e n g t h = = = 0 ? n u l l : d } } , T A G : f u n c t i o n ( a , b ) { r e t u r n   b . g e t E l e m e n t s B y T a g N a m e ( a [ 1 ] ) } } , p r e F i l t e r : { C L A S S : f u n c t i o n ( a , b , c , d , e , f ) { a = "   " + a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) + "   " ; i f ( f ) { r e t u r n   a } f o r ( v a r   i = 0 , e l e m ; ( e l e m = b [ i ] ) ! = n u l l ; i + + ) { i f ( e l e m ) { i f ( e ^ ( e l e m . c l a s s N a m e & & ( "   " + e l e m . c l a s s N a m e + "   " ) . i n d e x O f ( a ) > = 0 ) ) { i f ( ! c ) d . p u s h ( e l e m ) } e l s e   i f ( c ) { b [ i ] = f a l s e } } } r e t u r n   f a l s e } , I D : f u n c t i o n ( a ) { r e t u r n   a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) } , T A G : f u n c t i o n ( a , b ) { f o r ( v a r   i = 0 ; b [ i ] = = = f a l s e ; i + + ) { } r e t u r n   b [ i ] & & w ( b [ i ] ) ? a [ 1 ] : a [ 1 ] . t o U p p e r C a s e ( ) } , C H I L D : f u n c t i o n ( a ) { i f ( a [ 1 ] = = " n t h " ) { v a r   b = / ( - ? ) ( \ d * ) n ( ( ? : \ + | - ) ? \ d * ) / . e x e c ( a [ 2 ] = = " e v e n " & & " 2 n " | | a [ 2 ] = = " o d d " & & " 2 n + 1 " | | ! / \ D / . t e s t ( a [ 2 ] ) & & " 0 n + " + a [ 2 ] | | a [ 2 ] ) ; a [ 2 ] = ( b [ 1 ] + ( b [ 2 ] | | 1 ) ) - 0 ; a [ 3 ] = b [ 3 ] - 0 } a [ 0 ] = d o n e + + ; r e t u r n   a } , A T T R : f u n c t i o n ( a , b , c , d , e , f ) { v a r   g = a [ 1 ] . r e p l a c e ( / \ \ / g , " " ) ; i f ( ! f & & p . a t t r M a p [ g ] ) { a [ 1 ] = p . a t t r M a p [ g ] } i f ( a [ 2 ] = = = " ~ = " ) { a [ 4 ] = "   " + a [ 4 ] + "   " } r e t u r n   a } , P S E U D O : f u n c t i o n ( a , b , c , d , e ) { i f ( a [ 1 ] = = = " n o t " ) { i f ( a [ 3 ] . m a t c h ( k ) . l e n g t h > 1 | | / ^ \ w / . t e s t ( a [ 3 ] ) ) { a [ 3 ] = o ( a [ 3 ] , n u l l , n u l l , b ) } e l s e { v a r   f = o . f i l t e r ( a [ 3 ] , b , c , t r u e ^ e ) ; i f ( ! c ) { d . p u s h . a p p l y ( d , f ) } r e t u r n   f a l s e } } e l s e   i f ( p . m a t c h . P O S . t e s t ( a [ 0 ] ) | | p . m a t c h . C H I L D . t e s t ( a [ 0 ] ) ) { r e t u r n   t r u e } r e t u r n   a } , P O S : f u n c t i o n ( a ) { a . u n s h i f t ( t r u e ) ; r e t u r n   a } } , f i l t e r s : { e n a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d = = = f a l s e & & a . t y p e ! = = " h i d d e n " } , d i s a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d = = = t r u e } , c h e c k e d : f u n c t i o n ( a ) { r e t u r n   a . c h e c k e d = = = t r u e } , s e l e c t e d : f u n c t i o n ( a ) { a . p a r e n t N o d e . s e l e c t e d I n d e x ; r e t u r n   a . s e l e c t e d = = = t r u e } , p a r e n t : f u n c t i o n ( a ) { r e t u r n ! ! a . f i r s t C h i l d } , e m p t y : f u n c t i o n ( a ) { r e t u r n ! a . f i r s t C h i l d } , h a s : f u n c t i o n ( a , i , b ) { r e t u r n ! ! o ( b [ 3 ] , a ) . l e n g t h } , h e a d e r : f u n c t i o n ( a ) { r e t u r n / h \ d / i . t e s t ( a . n o d e N a m e ) } , t e x t : f u n c t i o n ( a ) { r e t u r n " t e x t " = = = a . t y p e } , r a d i o : f u n c t i o n ( a ) { r e t u r n " r a d i o " = = = a . t y p e } , c h e c k b o x : f u n c t i o n ( a ) { r e t u r n " c h e c k b o x " = = = a . t y p e } , f i l e : f u n c t i o n ( a ) { r e t u r n " f i l e " = = = a . t y p e } , p a s s w o r d : f u n c t i o n ( a ) { r e t u r n " p a s s w o r d " = = = a . t y p e } , s u b m i t : f u n c t i o n ( a ) { r e t u r n " s u b m i t " = = = a . t y p e } , i m a g e : f u n c t i o n ( a ) { r e t u r n " i m a g e " = = = a . t y p e } , r e s e t : f u n c t i o n ( a ) { r e t u r n " r e s e t " = = = a . t y p e } , b u t t o n : f u n c t i o n ( a ) { r e t u r n " b u t t o n " = = = a . t y p e | | a . n o d e N a m e . t o U p p e r C a s e ( ) = = = " B U T T O N " } , i n p u t : f u n c t i o n ( a ) { r e t u r n / i n p u t | s e l e c t | t e x t a r e a | b u t t o n / i . t e s t ( a . n o d e N a m e ) } } , s e t F i l t e r s : { f i r s t : f u n c t i o n ( a , i ) { r e t u r n   i = = = 0 } , l a s t : f u n c t i o n ( a , i , b , c ) { r e t u r n   i = = = c . l e n g t h - 1 } , e v e n : f u n c t i o n ( a , i ) { r e t u r n   i % 2 = = = 0 } , o d d : f u n c t i o n ( a , i ) { r e t u r n   i % 2 = = = 1 } , l t : f u n c t i o n ( a , i , b ) { r e t u r n   i < b [ 3 ] - 0 } , g t : f u n c t i o n ( a , i , b ) { r e t u r n   i > b [ 3 ] - 0 } , n t h : f u n c t i o n ( a , i , b ) { r e t u r n   b [ 3 ] - 0 = = i } , e q : f u n c t i o n ( a , i , b ) { r e t u r n   b [ 3 ] - 0 = = i } } , f i l t e r : { P S E U D O : f u n c t i o n ( a , b , i , c ) { v a r   d = b [ 1 ] , f i l t e r = p . f i l t e r s [ d ] ; i f ( f i l t e r ) { r e t u r n   f i l t e r ( a , i , b , c ) } e l s e   i f ( d = = = " c o n t a i n s " ) { r e t u r n ( a . t e x t C o n t e n t | | a . i n n e r T e x t | | " " ) . i n d e x O f ( b [ 3 ] ) > = 0 } e l s e   i f ( d = = = " n o t " ) { v a r   e = b [ 3 ] ; f o r ( v a r   i = 0 , l = e . l e n g t h ; i < l ; i + + ) { i f ( e [ i ] = = = a ) { r e t u r n   f a l s e } } r e t u r n   t r u e } } , C H I L D : f u n c t i o n ( a , b ) { v a r   c = b [ 1 ] , n o d e = a ; s w i t c h ( c ) { c a s e ' o n l y ' : c a s e ' f i r s t ' : w h i l e ( n o d e = n o d e . p r e v i o u s S i b l i n g ) { i f ( n o d e . n o d e T y p e = = = 1 ) r e t u r n   f a l s e } i f ( c = = ' f i r s t ' ) r e t u r n   t r u e ; n o d e = a ; c a s e ' l a s t ' : w h i l e ( n o d e = n o d e . n e x t S i b l i n g ) { i f ( n o d e . n o d e T y p e = = = 1 ) r e t u r n   f a l s e } r e t u r n   t r u e ; c a s e ' n t h ' : v a r   d = b [ 2 ] , l a s t = b [ 3 ] ; i f ( d = = 1 & & l a s t = = 0 ) { r e t u r n   t r u e } v a r   e = b [ 0 ] , p a r e n t = a . p a r e n t N o d e ; i f ( p a r e n t & & ( p a r e n t . s i z c a c h e ! = = e | | ! a . n o d e I n d e x ) ) { v a r   f = 0 ; f o r ( n o d e = p a r e n t . f i r s t C h i l d ; n o d e ; n o d e = n o d e . n e x t S i b l i n g ) { i f ( n o d e . n o d e T y p e = = = 1 ) { n o d e . n o d e I n d e x = + + f } } p a r e n t . s i z c a c h e = e } v a r   g = a . n o d e I n d e x - l a s t ; i f ( d = = 0 ) { r e t u r n   g = = 0 } e l s e { r e t u r n ( g % d = = 0 & & g / d > = 0 ) } } } , I D : f u n c t i o n ( a , b ) { r e t u r n   a . n o d e T y p e = = = 1 & & a . g e t A t t r i b u t e ( " i d " ) = = = b } , T A G : f u n c t i o n ( a , b ) { r e t u r n ( b = = = " * " & & a . n o d e T y p e = = = 1 ) | | a . n o d e N a m e = = = b } , C L A S S : f u n c t i o n ( a , b ) { r e t u r n ( "   " + ( a . c l a s s N a m e | | a . g e t A t t r i b u t e ( " c l a s s " ) ) + "   " ) . i n d e x O f ( b ) > - 1 } , A T T R : f u n c t i o n ( a , b ) { v a r   c = b [ 1 ] , r e s u l t = p . a t t r H a n d l e [ c ] ? p . a t t r H a n d l e [ c ] ( a ) : a [ c ] ! = n u l l ? a [ c ] : a . g e t A t t r i b u t e ( c ) , v a l u e = r e s u l t + " " , s = b [ 2 ] , c h e c k = b [ 4 ] ; r e t u r n   r e s u l t = = n u l l ? s = = = " ! = " : s = = = " = " ? v a l u e = = = c h e c k : s = = = " * = " ? v a l u e . i n d e x O f ( c h e c k ) > = 0 : s = = = " ~ = " ? ( "   " + v a l u e + "   " ) . i n d e x O f ( c h e c k ) > = 0 : ! c h e c k ? v a l u e & & r e s u l t ! = = f a l s e : s = = = " ! = " ? v a l u e ! = c h e c k : s = = = " ^ = " ? v a l u e . i n d e x O f ( c h e c k ) = = = 0 : s = = = " $ = " ? v a l u e . s u b s t r ( v a l u e . l e n g t h - c h e c k . l e n g t h ) = = = c h e c k : s = = = " | = " ? v a l u e = = = c h e c k | | v a l u e . s u b s t r ( 0 , c h e c k . l e n g t h + 1 ) = = = c h e c k + " - " : f a l s e } , P O S : f u n c t i o n ( a , b , i , c ) { v a r   d = b [ 2 ] , f i l t e r = p . s e t F i l t e r s [ d ] ; i f ( f i l t e r ) { r e t u r n   f i l t e r ( a , i , b , c ) } } } } ; v a r   q = p . m a t c h . P O S ; f o r ( v a r   s   i n   p . m a t c h ) { p . m a t c h [ s ] = R e g E x p ( p . m a t c h [ s ] . s o u r c e + / ( ? ! [ ^ \ [ ] * \ ] ) ( ? ! [ ^ \ ( ] * \ ) ) / . s o u r c e ) } v a r   t = f u n c t i o n ( a , b ) { a = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a ) ; i f ( b ) { b . p u s h . a p p l y ( b , a ) ; r e t u r n   b } r e t u r n   a } ; t r y { A r r a y . p r o t o t y p e . s l i c e . c a l l ( d o c u m e n t . d o c u m e n t E l e m e n t . c h i l d N o d e s ) } c a t c h ( e ) { t = f u n c t i o n ( a , b ) { v a r   c = b | | [ ] ; i f ( t o S t r i n g . c a l l ( a ) = = = " [ o b j e c t   A r r a y ] " ) { A r r a y . p r o t o t y p e . p u s h . a p p l y ( c , a ) } e l s e { i f ( t y p e o f   a . l e n g t h = = = " n u m b e r " ) { f o r ( v a r   i = 0 , l = a . l e n g t h ; i < l ; i + + ) { c . p u s h ( a [ i ] ) } } e l s e { f o r ( v a r   i = 0 ; a [ i ] ; i + + ) { c . p u s h ( a [ i ] ) } } } r e t u r n   c } } v a r   u ; i f ( d o c u m e n t . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n ) { u = f u n c t i o n ( a , b ) { v a r   c = a . c o m p a r e D o c u m e n t P o s i t i o n ( b ) & 4 ? - 1 : a = = = b ? 0 : 1 ; i f ( c = = = 0 ) { h a s D u p l i c a t e = t r u e } r e t u r n   c } } e l s e   i f ( " s o u r c e I n d e x " i n   d o c u m e n t . d o c u m e n t E l e m e n t ) { u = f u n c t i o n ( a , b ) { v a r   c = a . s o u r c e I n d e x - b . s o u r c e I n d e x ; i f ( c = = = 0 ) { h a s D u p l i c a t e = t r u e } r e t u r n   c } } e l s e   i f ( d o c u m e n t . c r e a t e R a n g e ) { u = f u n c t i o n ( a , b ) { v a r   c = a . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) , b R a n g e = b . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ; c . s e l e c t N o d e ( a ) ; c . c o l l a p s e ( t r u e ) ; b R a n g e . s e l e c t N o d e ( b ) ; b R a n g e . c o l l a p s e ( t r u e ) ; v a r   d = c . c o m p a r e B o u n d a r y P o i n t s ( R a n g e . S T A R T _ T O _ E N D , b R a n g e ) ; i f ( d = = = 0 ) { h a s D u p l i c a t e = t r u e } r e t u r n   d } } ( f u n c t i o n ( ) { v a r   d = d o c u m e n t . c r e a t e E l e m e n t ( " f o r m " ) , i d = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) ; d . i n n e r H T M L = " < i n p u t   n a m e = ' " + i d + " ' / > " ; v a r   e = d o c u m e n t . d o c u m e n t E l e m e n t ; e . i n s e r t B e f o r e ( d , e . f i r s t C h i l d ) ; i f ( ! ! d o c u m e n t . g e t E l e m e n t B y I d ( i d ) ) { p . f i n d . I D = f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t B y I d ! = = " u n d e f i n e d " & & ! c ) { v a r   m = b . g e t E l e m e n t B y I d ( a [ 1 ] ) ; r e t u r n   m ? m . i d = = = a [ 1 ] | | t y p e o f   m . g e t A t t r i b u t e N o d e ! = = " u n d e f i n e d " & & m . g e t A t t r i b u t e N o d e ( " i d " ) . n o d e V a l u e = = = a [ 1 ] ? [ m ] : u n d e f i n e d : [ ] } } ; p . f i l t e r . I D = f u n c t i o n ( a , b ) { v a r   c = t y p e o f   a . g e t A t t r i b u t e N o d e ! = = " u n d e f i n e d " & & a . g e t A t t r i b u t e N o d e ( " i d " ) ; r e t u r n   a . n o d e T y p e = = = 1 & & c & & c . n o d e V a l u e = = = b } } e . r e m o v e C h i l d ( d ) } ) ( ) ; ( f u n c t i o n ( ) { v a r   e = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; e . a p p e n d C h i l d ( d o c u m e n t . c r e a t e C o m m e n t ( " " ) ) ; i f ( e . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h > 0 ) { p . f i n d . T A G = f u n c t i o n ( a , b ) { v a r   c = b . g e t E l e m e n t s B y T a g N a m e ( a [ 1 ] ) ; i f ( a [ 1 ] = = = " * " ) { v a r   d = [ ] ; f o r ( v a r   i = 0 ; c [ i ] ; i + + ) { i f ( c [ i ] . n o d e T y p e = = = 1 ) { d . p u s h ( c [ i ] ) } } c = d } r e t u r n   c } } e . i n n e r H T M L = " < a   h r e f = ' # ' > < / a > " ; i f ( e . f i r s t C h i l d & & t y p e o f   e . f i r s t C h i l d . g e t A t t r i b u t e ! = = " u n d e f i n e d " & & e . f i r s t C h i l d . g e t A t t r i b u t e ( " h r e f " ) ! = = " # " ) { p . a t t r H a n d l e . h r e f = f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " h r e f " , 2 ) } } } ) ( ) ; i f ( d o c u m e n t . q u e r y S e l e c t o r A l l ) ( f u n c t i o n ( ) { v a r   f = o , d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; d i v . i n n e r H T M L = " < p   c l a s s = ' T E S T ' > < / p > " ; i f ( d i v . q u e r y S e l e c t o r A l l & & d i v . q u e r y S e l e c t o r A l l ( " . T E S T " ) . l e n g t h = = = 0 ) { r e t u r n } o = f u n c t i o n ( a , b , c , d ) { b = b | | d o c u m e n t ; i f ( ! d & & b . n o d e T y p e = = = 9 & & ! w ( b ) ) { t r y { r e t u r n   t ( b . q u e r y S e l e c t o r A l l ( a ) , c ) } c a t c h ( e ) { } } r e t u r n   f ( a , b , c , d ) } ; o . f i n d = f . f i n d ; o . f i l t e r = f . f i l t e r ; o . s e l e c t o r s = f . s e l e c t o r s ; o . m a t c h e s = f . m a t c h e s } ) ( ) ; i f ( d o c u m e n t . g e t E l e m e n t s B y C l a s s N a m e & & d o c u m e n t . d o c u m e n t E l e m e n t . g e t E l e m e n t s B y C l a s s N a m e ) ( f u n c t i o n ( ) { v a r   d = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; d . i n n e r H T M L = " < d i v   c l a s s = ' t e s t   e ' > < / d i v > < d i v   c l a s s = ' t e s t ' > < / d i v > " ; i f ( d . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h = = = 0 ) r e t u r n ; d . l a s t C h i l d . c l a s s N a m e = " e " ; i f ( d . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h = = = 1 ) r e t u r n ; p . o r d e r . s p l i c e ( 1 , 0 , " C L A S S " ) ; p . f i n d . C L A S S = f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t s B y C l a s s N a m e ! = = " u n d e f i n e d " & & ! c ) { r e t u r n   b . g e t E l e m e n t s B y C l a s s N a m e ( a [ 1 ] ) } } } ) ( ) ; f u n c t i o n   d i r N o d e C h e c k ( a , b , c , d , e , f ) { v a r   g = a = = " p r e v i o u s S i b l i n g " & & ! f ; f o r ( v a r   i = 0 , l = d . l e n g t h ; i < l ; i + + ) { v a r   h = d [ i ] ; i f ( h ) { i f ( g & & h . n o d e T y p e = = = 1 ) { h . s i z c a c h e = c ; h . s i z s e t = i } h = h [ a ] ; v a r   j = f a l s e ; w h i l e ( h ) { i f ( h . s i z c a c h e = = = c ) { j = d [ h . s i z s e t ] ; b r e a k } i f ( h . n o d e T y p e = = = 1 & & ! f ) { h . s i z c a c h e = c ; h . s i z s e t = i } i f ( h . n o d e N a m e = = = b ) { j = h ; b r e a k } h = h [ a ] } d [ i ] = j } } } f u n c t i o n   d i r C h e c k ( a , b , c , d , e , f ) { v a r   g = a = = " p r e v i o u s S i b l i n g " & & ! f ; f o r ( v a r   i = 0 , l = d . l e n g t h ; i < l ; i + + ) { v a r   h = d [ i ] ; i f ( h ) { i f ( g & & h . n o d e T y p e = = = 1 ) { h . s i z c a c h e = c ; h . s i z s e t = i } h = h [ a ] ; v a r   j = f a l s e ; w h i l e ( h ) { i f ( h . s i z c a c h e = = = c ) { j = d [ h . s i z s e t ] ; b r e a k } i f ( h . n o d e T y p e = = = 1 ) { i f ( ! f ) { h . s i z c a c h e = c ; h . s i z s e t = i } i f ( t y p e o f   b ! = = " s t r i n g " ) { i f ( h = = = b ) { j = t r u e ; b r e a k } } e l s e   i f ( o . f i l t e r ( b , [ h ] ) . l e n g t h > 0 ) { j = h ; b r e a k } } h = h [ a ] } d [ i ] = j } } } v a r   v = d o c u m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? f u n c t i o n ( a , b ) { r e t u r n   a . c o m p a r e D o c u m e n t P o s i t i o n ( b ) & 1 6 } : f u n c t i o n ( a , b ) { r e t u r n   a ! = = b & & ( a . c o n t a i n s ? a . c o n t a i n s ( b ) : t r u e ) } ; v a r   w = f u n c t i o n ( a ) { r e t u r n   a . n o d e T y p e = = = 9 & & a . d o c u m e n t E l e m e n t . n o d e N a m e ! = = " H T M L " | | ! ! a . o w n e r D o c u m e n t & & w ( a . o w n e r D o c u m e n t ) } ; v a r   x = f u n c t i o n ( a , b ) { v a r   c = [ ] , l a t e r = " " , m a t c h , r o o t = b . n o d e T y p e ? [ b ] : b ; w h i l e ( ( m a t c h = p . m a t c h . P S E U D O . e x e c ( a ) ) ) { l a t e r + = m a t c h [ 0 ] ; a = a . r e p l a c e ( p . m a t c h . P S E U D O , " " ) } a = p . r e l a t i v e [ a ] ? a + " * " : a ; f o r ( v a r   i = 0 , l = r o o t . l e n g t h ; i < l ; i + + ) { o ( a , r o o t [ i ] , c ) } r e t u r n   o . f i l t e r ( l a t e r , c ) } ; j Q u e r y . f i n d = o ; j Q u e r y . f i l t e r = o . f i l t e r ; j Q u e r y . e x p r = o . s e l e c t o r s ; j Q u e r y . e x p r [ " : " ] = j Q u e r y . e x p r . f i l t e r s ; o . s e l e c t o r s . f i l t e r s . h i d d e n = f u n c t i o n ( a ) { r e t u r n   a . o f f s e t W i d t h = = = 0 | | a . o f f s e t H e i g h t = = = 0 } ; o . s e l e c t o r s . f i l t e r s . v i s i b l e = f u n c t i o n ( a ) { r e t u r n   a . o f f s e t W i d t h > 0 | | a . o f f s e t H e i g h t > 0 } ; o . s e l e c t o r s . f i l t e r s . a n i m a t e d = f u n c t i o n ( b ) { r e t u r n   j Q u e r y . g r e p ( j Q u e r y . t i m e r s , f u n c t i o n ( a ) { r e t u r n   b = = = a . e l e m } ) . l e n g t h } ; j Q u e r y . m u l t i F i l t e r = f u n c t i o n ( a , b , c ) { i f ( c ) { a = " : n o t ( " + a + " ) " } r e t u r n   o . m a t c h e s ( a , b ) } ; j Q u e r y . d i r = f u n c t i o n ( a , b ) { v a r   c = [ ] , c u r = a [ b ] ; w h i l e ( c u r & & c u r ! = d o c u m e n t ) { i f ( c u r . n o d e T y p e = = 1 ) c . p u s h ( c u r ) ; c u r = c u r [ b ] } r e t u r n   c } ; j Q u e r y . n t h = f u n c t i o n ( a , b , c , d ) { b = b | | 1 ; v a r   e = 0 ; f o r ( ; a ; a = a [ c ] ) i f ( a . n o d e T y p e = = 1 & & + + e = = b ) b r e a k ; r e t u r n   a } ; j Q u e r y . s i b l i n g = f u n c t i o n ( n , a ) { v a r   r = [ ] ; f o r ( ; n ; n = n . n e x t S i b l i n g ) { i f ( n . n o d e T y p e = = 1 & & n ! = a ) r . p u s h ( n ) } r e t u r n   r } ; r e t u r n ; y . S i z z l e = o } ) ( ) ; j Q u e r y . e v e n t = { a d d : f u n c t i o n ( e , f , g , h ) { i f ( e . n o d e T y p e = = 3 | | e . n o d e T y p e = = 8 ) r e t u r n ; i f ( e . s e t I n t e r v a l & & e ! = y ) e = y ; i f ( ! g . g u i d ) g . g u i d = t h i s . g u i d + + ; i f ( h ! = = u n d e f i n e d ) { v a r   i = g ; g = t h i s . p r o x y ( i ) ; g . d a t a = h } v a r   j = j Q u e r y . d a t a ( e , " e v e n t s " ) | | j Q u e r y . d a t a ( e , " e v e n t s " , { } ) , h a n d l e = j Q u e r y . d a t a ( e , " h a n d l e " ) | | j Q u e r y . d a t a ( e , " h a n d l e " , f u n c t i o n ( ) { r e t u r n   t y p e o f   j Q u e r y ! = = " u n d e f i n e d " & & ! j Q u e r y . e v e n t . t r i g g e r e d ? j Q u e r y . e v e n t . h a n d l e . a p p l y ( a r g u m e n t s . c a l l e e . e l e m , a r g u m e n t s ) : u n d e f i n e d } ) ; h a n d l e . e l e m = e ; j Q u e r y . e a c h ( f . s p l i t ( / \ s + / ) , f u n c t i o n ( a , b ) { v a r   c = b . s p l i t ( " . " ) ; b = c . s h i f t ( ) ; g . t y p e = c . s l i c e ( ) . s o r t ( ) . j o i n ( " . " ) ; v a r   d = j [ b ] ; i f ( j Q u e r y . e v e n t . s p e c i a l A l l [ b ] ) j Q u e r y . e v e n t . s p e c i a l A l l [ b ] . s e t u p . c a l l ( e , h , c ) ; i f ( ! d ) { d = j [ b ] = { } ; i f ( ! j Q u e r y . e v e n t . s p e c i a l [ b ] | | j Q u e r y . e v e n t . s p e c i a l [ b ] . s e t u p . c a l l ( e , h , c ) = = = f a l s e ) { i f ( e . a d d E v e n t L i s t e n e r ) e . a d d E v e n t L i s t e n e r ( b , h a n d l e , f a l s e ) ; e l s e   i f ( e . a t t a c h E v e n t ) e . a t t a c h E v e n t ( " o n " + b , h a n d l e ) } } d [ g . g u i d ] = g ; j Q u e r y . e v e n t . g l o b a l [ b ] = t r u e } ) ; e = n u l l } , g u i d : 1 , g l o b a l : { } , r e m o v e : f u n c t i o n ( f , g , h ) { i f ( f . n o d e T y p e = = 3 | | f . n o d e T y p e = = 8 ) r e t u r n ; v a r   i = j Q u e r y . d a t a ( f , " e v e n t s " ) , r e t , i n d e x ; i f ( i ) { i f ( g = = = u n d e f i n e d | | ( t y p e o f   g = = = " s t r i n g " & & g . c h a r A t ( 0 ) = = " . " ) ) f o r ( v a r   j   i n   i ) t h i s . r e m o v e ( f , j + ( g | | " " ) ) ; e l s e { i f ( g . t y p e ) { h = g . h a n d l e r ; g = g . t y p e } j Q u e r y . e a c h ( g . s p l i t ( / \ s + / ) , f u n c t i o n ( a , b ) { v a r   c = b . s p l i t ( " . " ) ; b = c . s h i f t ( ) ; v a r   d = R e g E x p ( " ( ^ | \ \ . ) " + c . s l i c e ( ) . s o r t ( ) . j o i n ( " . * \ \ . " ) + " ( \ \ . | $ ) " ) ; i f ( i [ b ] ) { i f ( h ) d e l e t e   i [ b ] [ h . g u i d ] ; e l s e   f o r ( v a r   e   i n   i [ b ] ) i f ( d . t e s t ( i [ b ] [ e ] . t y p e ) ) d e l e t e   i [ b ] [ e ] ; i f ( j Q u e r y . e v e n t . s p e c i a l A l l [ b ] ) j Q u e r y . e v e n t . s p e c i a l A l l [ b ] . t e a r d o w n . c a l l ( f , c ) ; f o r ( r e t   i n   i [ b ] ) b r e a k ; i f ( ! r e t ) { i f ( ! j Q u e r y . e v e n t . s p e c i a l [ b ] | | j Q u e r y . e v e n t . s p e c i a l [ b ] . t e a r d o w n . c a l l ( f , c ) = = = f a l s e ) { i f ( f . r e m o v e E v e n t L i s t e n e r ) f . r e m o v e E v e n t L i s t e n e r ( b , j Q u e r y . d a t a ( f , " h a n d l e " ) , f a l s e ) ; e l s e   i f ( f . d e t a c h E v e n t ) f . d e t a c h E v e n t ( " o n " + b , j Q u e r y . d a t a ( f , " h a n d l e " ) ) } r e t = n u l l ; d e l e t e   i [ b ] } } } ) } f o r ( r e t   i n   i ) b r e a k ; i f ( ! r e t ) { v a r   k = j Q u e r y . d a t a ( f , " h a n d l e " ) ; i f ( k ) k . e l e m = n u l l ; j Q u e r y . r e m o v e D a t a ( f , " e v e n t s " ) ; j Q u e r y . r e m o v e D a t a ( f , " h a n d l e " ) } } } , t r i g g e r : f u n c t i o n ( a , b , c , d ) { v a r   f = a . t y p e | | a ; i f ( ! d ) { a = t y p e o f   a = = = " o b j e c t " ? a [ B ] ? a : j Q u e r y . e x t e n d ( j Q u e r y . E v e n t ( f ) , a ) : j Q u e r y . E v e n t ( f ) ; i f ( f . i n d e x O f ( " ! " ) > = 0 ) { a . t y p e = f = f . s l i c e ( 0 , - 1 ) ; a . e x c l u s i v e = t r u e } i f ( ! c ) { a . s t o p P r o p a g a t i o n ( ) ; i f ( t h i s . g l o b a l [ f ] ) j Q u e r y . e a c h ( j Q u e r y . c a c h e , f u n c t i o n ( ) { i f ( t h i s . e v e n t s & & t h i s . e v e n t s [ f ] ) j Q u e r y . e v e n t . t r i g g e r ( a , b , t h i s . h a n d l e . e l e m ) } ) } i f ( ! c | | c . n o d e T y p e = = 3 | | c . n o d e T y p e = = 8 ) r e t u r n   u n d e f i n e d ; a . r e s u l t = u n d e f i n e d ; a . t a r g e t = c ; b = j Q u e r y . m a k e A r r a y ( b ) ; b . u n s h i f t ( a ) } a . c u r r e n t T a r g e t = c ; v a r   g = j Q u e r y . d a t a ( c , " h a n d l e " ) ; i f ( g ) g . a p p l y ( c , b ) ; i f ( ( ! c [ f ] | | ( j Q u e r y . n o d e N a m e ( c , ' a ' ) & & f = = " c l i c k " ) ) & & c [ " o n " + f ] & & c [ " o n " + f ] . a p p l y ( c , b ) = = = f a l s e ) a . r e s u l t = f a l s e ; i f ( ! d & & c [ f ] & & ! a . i s D e f a u l t P r e v e n t e d ( ) & & ! ( j Q u e r y . n o d e N a m e ( c , ' a ' ) & & f = = " c l i c k " ) ) { t h i s . t r i g g e r e d = t r u e ; t r y { c [ f ] ( ) } c a t c h ( e ) { } } t h i s . t r i g g e r e d = f a l s e ; i f ( ! a . i s P r o p a g a t i o n S t o p p e d ( ) ) { v a r   h = c . p a r e n t N o d e | | c . o w n e r D o c u m e n t ; i f ( h ) j Q u e r y . e v e n t . t r i g g e r ( a , b , h , t r u e ) } } , h a n d l e : f u n c t i o n ( a ) { v a r   b , h a n d l e r s ; a = a r g u m e n t s [ 0 ] = j Q u e r y . e v e n t . f i x ( a | | y . e v e n t ) ; a . c u r r e n t T a r g e t = t h i s ; v a r   c = a . t y p e . s p l i t ( " . " ) ; a . t y p e = c . s h i f t ( ) ; b = ! c . l e n g t h & & ! a . e x c l u s i v e ; v a r   d = R e g E x p ( " ( ^ | \ \ . ) " + c . s l i c e ( ) . s o r t ( ) . j o i n ( " . * \ \ . " ) + " ( \ \ . | $ ) " ) ; h a n d l e r s = ( j Q u e r y . d a t a ( t h i s , " e v e n t s " ) | | { } ) [ a . t y p e ] ; f o r ( v a r   j   i n   h a n d l e r s ) { v a r   e = h a n d l e r s [ j ] ; i f ( b | | d . t e s t ( e . t y p e ) ) { a . h a n d l e r = e ; a . d a t a = e . d a t a ; v a r   f = e . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( f ! = = u n d e f i n e d ) { a . r e s u l t = f ; i f ( f = = = f a l s e ) { a . p r e v e n t D e f a u l t ( ) ; a . s t o p P r o p a g a t i o n ( ) } } i f ( a . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) ) b r e a k } } } , p r o p s : " a l t K e y   a t t r C h a n g e   a t t r N a m e   b u b b l e s   b u t t o n   c a n c e l a b l e   c h a r C o d e   c l i e n t X   c l i e n t Y   c t r l K e y   c u r r e n t T a r g e t   d a t a   d e t a i l   e v e n t P h a s e   f r o m E l e m e n t   h a n d l e r   k e y C o d e   m e t a K e y   n e w V a l u e   o r i g i n a l T a r g e t   p a g e X   p a g e Y   p r e v V a l u e   r e l a t e d N o d e   r e l a t e d T a r g e t   s c r e e n X   s c r e e n Y   s h i f t K e y   s r c E l e m e n t   t a r g e t   t o E l e m e n t   v i e w   w h e e l D e l t a   w h i c h " . s p l i t ( "   " ) , f i x : f u n c t i o n ( a ) { i f ( a [ B ] ) r e t u r n   a ; v a r   b = a ; a = j Q u e r y . E v e n t ( b ) ; f o r ( v a r   i = t h i s . p r o p s . l e n g t h , p r o p ; i ; ) { p r o p = t h i s . p r o p s [ - - i ] ; a [ p r o p ] = b [ p r o p ] } i f ( ! a . t a r g e t ) a . t a r g e t = a . s r c E l e m e n t | | d o c u m e n t ; i f ( a . t a r g e t . n o d e T y p e = = 3 ) a . t a r g e t = a . t a r g e t . p a r e n t N o d e ; i f ( ! a . r e l a t e d T a r g e t & & a . f r o m E l e m e n t ) a . r e l a t e d T a r g e t = a . f r o m E l e m e n t = = a . t a r g e t ? a . t o E l e m e n t : a . f r o m E l e m e n t ; i f ( a . p a g e X = = n u l l & & a . c l i e n t X ! = n u l l ) { v a r   c = d o c u m e n t . d o c u m e n t E l e m e n t , b o d y = d o c u m e n t . b o d y ; a . p a g e X = a . c l i e n t X + ( c & & c . s c r o l l L e f t | | b o d y & & b o d y . s c r o l l L e f t | | 0 ) - ( c . c l i e n t L e f t | | 0 ) ; a . p a g e Y = a . c l i e n t Y + ( c & & c . s c r o l l T o p | | b o d y & & b o d y . s c r o l l T o p | | 0 ) - ( c . c l i e n t T o p | | 0 ) } i f ( ! a . w h i c h & & ( ( a . c h a r C o d e | | a . c h a r C o d e = = = 0 ) ? a . c h a r C o d e : a . k e y C o d e ) ) a . w h i c h = a . c h a r C o d e | | a . k e y C o d e ; i f ( ! a . m e t a K e y & & a . c t r l K e y ) a . m e t a K e y = a . c t r l K e y ; i f ( ! a . w h i c h & & a . b u t t o n ) a . w h i c h = ( a . b u t t o n & 1 ? 1 : ( a . b u t t o n & 2 ? 3 : ( a . b u t t o n & 4 ? 2 : 0 ) ) ) ; r e t u r n   a } , p r o x y : f u n c t i o n ( a , b ) { b = b | | f u n c t i o n ( ) { 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 ) } ; b . g u i d = a . g u i d = a . g u i d | | b . g u i d | | t h i s . g u i d + + ; r e t u r n   b } , s p e c i a l : { r e a d y : { s e t u p : b i n d R e a d y , t e a r d o w n : f u n c t i o n ( ) { } } } , s p e c i a l A l l : { l i v e : { s e t u p : f u n c t i o n ( a , b ) { j Q u e r y . e v e n t . a d d ( t h i s , b [ 0 ] , l i v e H a n d l e r ) } , t e a r d o w n : f u n c t i o n ( a ) { i f ( a . l e n g t h ) { v a r   b = 0 , n a m e = R e g E x p ( " ( ^ | \ \ . ) " + a [ 0 ] + " ( \ \ . | $ ) " ) ; j Q u e r y . e a c h ( ( j Q u e r y . d a t a ( t h i s , " e v e n t s " ) . l i v e | | { } ) , f u n c t i o n ( ) { i f ( n a m e . t e s t ( t h i s . t y p e ) ) b + + } ) ; i f ( b < 1 ) j Q u e r y . e v e n t . r e m o v e ( t h i s , a [ 0 ] , l i v e H a n d l e r ) } } } } } ; j Q u e r y . E v e n t = f u n c t i o n ( a ) { i f ( ! t h i s . p r e v e n t D e f a u l t ) r e t u r n   n e w   j Q u e r y . E v e n t ( a ) ; i f ( a & & a . t y p e ) { t h i s . o r i g i n a l E v e n t = a ; t h i s . t y p e = a . t y p e } e l s e   t h i s . t y p e = a ; t h i s . t i m e S t a m p = n o w ( ) ; t h i s [ B ] = t r u e } ; f u n c t i o n   r e t u r n F a l s e ( ) { r e t u r n   f a l s e } f u n c t i o n   r e t u r n T r u e ( ) { r e t u r n   t r u e } j Q u e r y . E v e n t . p r o t o t y p e = { p r e v e n t D e f a u l t : f u n c t i o n ( ) { t h i s . i s D e f a u l t P r e v e n t e d = r e t u r n T r u e ; v a r   e = t h i s . o r i g i n a l E v e n t ; i f ( ! e ) r e t u r n ; i f ( e . p r e v e n t D e f a u l t ) e . p r e v e n t D e f a u l t ( ) ; e . r e t u r n V a l u e = f a l s e } , s t o p P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s P r o p a g a t i o n S t o p p e d = r e t u r n T r u e ; v a r   e = t h i s . o r i g i n a l E v e n t ; i f ( ! e ) r e t u r n ; i f ( e . s t o p P r o p a g a t i o n ) e . s t o p P r o p a g a t i o n ( ) ; e . c a n c e l B u b b l e = t r u e } , s t o p I m m e d i a t e P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d = r e t u r n T r u e ; t h i s . s t o p P r o p a g a t i o n ( ) } , i s D e f a u l t P r e v e n t e d : r e t u r n F a l s e , i s P r o p a g a t i o n S t o p p e d : r e t u r n F a l s e , i s I m m e d i a t e P r o p a g a t i o n S t o p p e d : r e t u r n F a l s e } ; v a r   C = f u n c t i o n ( a ) { v a r   b = a . r e l a t e d T a r g e t ; w h i l e ( b & & b ! = t h i s ) t r y { b = b . p a r e n t N o d e } c a t c h ( e ) { b = t h i s } i f ( b ! = t h i s ) { a . t y p e = a . d a t a ; j Q u e r y . e v e n t . h a n d l e . a p p l y ( t h i s , a r g u m e n t s ) } } ; j Q u e r y . e a c h ( { m o u s e o v e r : ' m o u s e e n t e r ' , m o u s e o u t : ' m o u s e l e a v e ' } , f u n c t i o n ( a , b ) { j Q u e r y . e v e n t . s p e c i a l [ b ] = { s e t u p : f u n c t i o n ( ) { j Q u e r y . e v e n t . a d d ( t h i s , a , C , b ) } , t e a r d o w n : f u n c t i o n ( ) { j Q u e r y . e v e n t . r e m o v e ( t h i s , a , C ) } } } ) ; j Q u e r y . f n . e x t e n d ( { b i n d : f u n c t i o n ( a , b , c ) { r e t u r n   a = = " u n l o a d " ? t h i s . o n e ( a , b , c ) : t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . a d d ( t h i s , a , c | | b , c & & b ) } ) } , o n e : f u n c t i o n ( b , c , d ) { v a r   e = j Q u e r y . e v e n t . p r o x y ( d | | c , f u n c t i o n ( a ) { j Q u e r y ( t h i s ) . u n b i n d ( a , e ) ; r e t u r n ( d | | c ) . 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 . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . a d d ( t h i s , b , e , d & & c ) } ) } , u n b i n d : f u n c t i o n ( a , b ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . r e m o v e ( t h i s , a , b ) } ) } , t r i g g e r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { j Q u e r y . e v e n t . t r i g g e r ( a , b , t h i s ) } ) } , t r i g g e r H a n d l e r : f u n c t i o n ( a , b ) { i f ( t h i s [ 0 ] ) { v a r   c = j Q u e r y . E v e n t ( a ) ; c . p r e v e n t D e f a u l t ( ) ; c . s t o p P r o p a g a t i o n ( ) ; j Q u e r y . e v e n t . t r i g g e r ( c , b , t h i s [ 0 ] ) ; r e t u r n   c . r e s u l t } } , t o g g l e : f u n c t i o n ( b ) { v a r   c = a r g u m e n t s , i = 1 ; w h i l e ( i < c . l e n g t h ) j Q u e r y . e v e n t . p r o x y ( b , c [ i + + ] ) ; r e t u r n   t h i s . c l i c k ( j Q u e r y . e v e n t . p r o x y ( b , f u n c t i o n ( a ) { t h i s . l a s t T o g g l e = ( t h i s . l a s t T o g g l e | | 0 ) % i ; a . p r e v e n t D e f a u l t ( ) ; r e t u r n   c [ t h i s . l a s t T o g g l e + + ] . a p p l y ( t h i s , a r g u m e n t s ) | | f a l s e } ) ) } , h o v e r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . m o u s e e n t e r ( a ) . m o u s e l e a v e ( b ) } , r e a d y : f u n c t i o n ( a ) { b i n d R e a d y ( ) ; i f ( j Q u e r y . i s R e a d y ) a . c a l l ( d o c u m e n t , j Q u e r y ) ; e l s e   j Q u e r y . r e a d y L i s t . p u s h ( a ) ; r e t u r n   t h i s } , l i v e : f u n c t i o n ( a , b ) { v a r   c = j Q u e r y . e v e n t . p r o x y ( b ) ; c . g u i d + = t h i s . s e l e c t o r + a ; j Q u e r y ( d o c u m e n t ) . b i n d ( l i v e C o n v e r t ( a , t h i s . s e l e c t o r ) , t h i s . s e l e c t o r , c ) ; r e t u r n   t h i s } , d i e : f u n c t i o n ( a , b ) { j Q u e r y ( d o c u m e n t ) . u n b i n d ( l i v e C o n v e r t ( a , t h i s . s e l e c t o r ) , b ? { g u i d : b . g u i d + t h i s . s e l e c t o r + a } : n u l l ) ; r e t u r n   t h i s } } ) ; f u n c t i o n   l i v e H a n d l e r ( c ) { v a r   d = R e g E x p ( " ( ^ | \ \ . ) " + c . t y p e + " ( \ \ . | $ ) " ) , s t o p = t r u e , e l e m s = [ ] ; j Q u e r y . e a c h ( j Q u e r y . d a t a ( t h i s , " e v e n t s " ) . l i v e | | [ ] , f u n c t i o n ( i , a ) { i f ( d . t e s t ( a . t y p e ) ) { v a r   b = j Q u e r y ( c . t a r g e t ) . c l o s e s t ( a . d a t a ) [ 0 ] ; i f ( b ) e l e m s . p u s h ( { e l e m : b , f n : a } ) } } ) ; e l e m s . s o r t ( f u n c t i o n ( a , b ) { r e t u r n   j Q u e r y . d a t a ( a . e l e m , " c l o s e s t " ) - j Q u e r y . d a t a ( b . e l e m , " c l o s e s t " ) } ) ; j Q u e r y . e a c h ( e l e m s , f u n c t i o n ( ) { i f ( t h i s . f n . c a l l ( t h i s . e l e m , c , t h i s . f n . d a t a ) = = = f a l s e ) r e t u r n ( s t o p = f a l s e ) } ) ; r e t u r n   s t o p } f u n c t i o n   l i v e C o n v e r t ( a , b ) { r e t u r n [ " l i v e " , a , b . r e p l a c e ( / \ . / g , " ` " ) . r e p l a c e ( /   / g , " | " ) ] . j o i n ( " . " ) } j Q u e r y . e x t e n d ( { i s R e a d y : f a l s e , r e a d y L i s t : [ ] , r e a d y : f u n c t i o n ( ) { i f ( ! j Q u e r y . i s R e a d y ) { j Q u e r y . i s R e a d y = t r u e ; i f ( j Q u e r y . r e a d y L i s t ) { j Q u e r y . e a c h ( j Q u e r y . r e a d y L i s t , f u n c t i o n ( ) { t h i s . c a l l ( d o c u m e n t , j Q u e r y ) } ) ; j Q u e r y . r e a d y L i s t = n u l l } j Q u e r y ( d o c u m e n t ) . t r i g g e r H a n d l e r ( " r e a d y " ) } } } ) ; v a r   D = f a l s e ; f u n c t i o n   b i n d R e a d y ( ) { i f ( D ) r e t u r n ; D = t r u e ; i f ( d o c u m e n t . a d d E v e n t L i s t e n e r ) { d o c u m e n t . a d d E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , f u n c t i o n ( ) { d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , a r g u m e n t s . c a l l e e , f a l s e ) ; j Q u e r y . r e a d y ( ) } , f a l s e ) } e l s e   i f ( d o c u m e n t . a t t a c h E v e n t ) { d o c u m e n t . a t t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , f u n c t i o n ( ) { i f ( d o c u m e n t . r e a d y S t a t e = = = " c o m p l e t e " ) { d o c u m e n t . d e t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , a r g u m e n t s . c a l l e e ) ; j Q u e r y . r e a d y ( ) } } ) ; i f ( d o c u m e n t . d o c u m e n t E l e m e n t . d o S c r o l l & & y = = y . t o p ) ( f u n c t i o n ( ) { i f ( j Q u e r y . i s R e a d y ) r e t u r n ; t r y { d o c u m e n t . d o c u m e n t E l e m e n t . d o S c r o l l ( " l e f t " ) } c a t c h ( e r r o r ) { s e t T i m e o u t ( a r g u m e n t s . c a l l e e , 0 ) ; r e t u r n } j Q u e r y . r e a d y ( ) } ) ( ) } j Q u e r y . e v e n t . a d d ( y , " l o a d " , j Q u e r y . r e a d y ) } j Q u e r y . e a c h ( ( " b l u r , f o c u s , l o a d , r e s i z e , s c r o l l , u n l o a d , c l i c k , d b l c l i c k , " + " m o u s e d o w n , m o u s e u p , m o u s e m o v e , m o u s e o v e r , m o u s e o u t , m o u s e e n t e r , m o u s e l e a v e , " + " c h a n g e , s e l e c t , s u b m i t , k e y d o w n , k e y p r e s s , k e y u p , e r r o r " ) . s p l i t ( " , " ) , f u n c t i o n ( i , b ) { j Q u e r y . f n [ b ] = f u n c t i o n ( a ) { r e t u r n   a ? t h i s . b i n d ( b , a ) : t h i s . t r i g g e r ( b ) } } ) ; j Q u e r y ( y ) . b i n d ( ' u n l o a d ' , f u n c t i o n ( ) { f o r ( v a r   a   i n   j Q u e r y . c a c h e ) i f ( a ! = 1 & & j Q u e r y . c a c h e [ a ] . h a n d l e ) j Q u e r y . e v e n t . r e m o v e ( j Q u e r y . c a c h e [ a ] . h a n d l e . e l e m ) } ) ; ( f u n c t i o n ( ) { j Q u e r y . s u p p o r t = { } ; v a r   b = d o c u m e n t . d o c u m e n t E l e m e n t , s c r i p t = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) , d i v = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) , i d = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) ; d i v . s t y l e . d i s p l a y = " n o n e " ; d i v . i n n e r H T M L = '       < l i n k / > < t a b l e > < / t a b l e > < a   h r e f = " / a "   s t y l e = " c o l o r : r e d ; f l o a t : l e f t ; o p a c i t y : . 5 ; " > a < / a > < s e l e c t > < o p t i o n > t e x t < / o p t i o n > < / s e l e c t > < o b j e c t > < p a r a m / > < / o b j e c t > ' ; v a r   c = d i v . g e t E l e m e n t s B y T a g N a m e ( " * " ) , a = d i v . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] ; i f ( ! c | | ! c . l e n g t h | | ! a ) { r e t u r n } j Q u e r y . s u p p o r t = { l e a d i n g W h i t e s p a c e : d i v . f i r s t C h i l d . n o d e T y p e = = 3 , t b o d y : ! d i v . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) . l e n g t h , o b j e c t A l l : ! ! d i v . g e t E l e m e n t s B y T a g N a m e ( " o b j e c t " ) [ 0 ] . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h , h t m l S e r i a l i z e : ! ! d i v . g e t E l e m e n t s B y T a g N a m e ( " l i n k " ) . l e n g t h , s t y l e : / r e d / . t e s t ( a . g e t A t t r i b u t e ( " s t y l e " ) ) , h r e f N o r m a l i z e d : a . g e t A t t r i b u t e ( " h r e f " ) = = = " / a " , o p a c i t y : a . s t y l e . o p a c i t y = = = " 0 . 5 " , c s s F l o a t : ! ! a . s t y l e . c s s F l o a t , s c r i p t E v a l : f a l s e , n o C l o n e E v e n t : t r u e , b o x M o d e l : n u l l } ; s c r i p t . t y p e = " t e x t / j a v a s c r i p t " ; t r y { s c r i p t . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( " w i n d o w . " + i d + " = 1 ; " ) ) } c a t c h ( e ) { } b . i n s e r t B e f o r e ( s c r i p t , b . f i r s t C h i l d ) ; i f ( y [ i d ] ) { j Q u e r y . s u p p o r t . s c r i p t E v a l = t r u e ; d e l e t e   y [ i d ] } b . r e m o v e C h i l d ( s c r i p t ) ; i f ( d i v . a t t a c h E v e n t & & d i v . f i r e E v e n t ) { d i v . a t t a c h E v e n t ( " o n c l i c k " , f u n c t i o n ( ) { j Q u e r y . s u p p o r t . n o C l o n e E v e n t = f a l s e ; d i v . d e t a c h E v e n t ( " o n c l i c k " , a r g u m e n t s . c a l l e e ) } ) ; d i v . c l o n e N o d e ( t r u e ) . f i r e E v e n t ( " o n c l i c k " ) } j Q u e r y ( f u n c t i o n ( ) { v a r   a = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; a . s t y l e . w i d t h = a . s t y l e . p a d d i n g L e f t = " 1 p x " ; d o c u m e n t . b o d y . a p p e n d C h i l d ( a ) ; j Q u e r y . b o x M o d e l = j Q u e r y . s u p p o r t . b o x M o d e l = a . o f f s e t W i d t h = = = 2 ; d o c u m e n t . b o d y . r e m o v e C h i l d ( a ) . s t y l e . d i s p l a y = ' n o n e ' } ) } ) ( ) ; v a r   E = j Q u e r y . s u p p o r t . c s s F l o a t ? " c s s F l o a t " : " s t y l e F l o a t " ; j Q u e r y . p r o p s = { " f o r " : " h t m l F o r " , " c l a s s " : " c l a s s N a m e " , " f l o a t " : E , c s s F l o a t : E , s t y l e F l o a t : E , r e a d o n l y : " r e a d O n l y " , m a x l e n g t h : " m a x L e n g t h " , c e l l s p a c i n g : " c e l l S p a c i n g " , r o w s p a n : " r o w S p a n " , t a b i n d e x : " t a b I n d e x " } ; j Q u e r y . f n . e x t e n d ( { _ l o a d : j Q u e r y . f n . l o a d , l o a d : f u n c t i o n ( c , d , e ) { i f ( t y p e o f   c ! = = " s t r i n g " ) r e t u r n   t h i s . _ l o a d ( c ) ; v a r   f = c . i n d e x O f ( "   " ) ; i f ( f > = 0 ) { v a r   g = c . s l i c e ( f , c . l e n g t h ) ; c = c . s l i c e ( 0 , f ) } v a r   h = " G E T " ; i f ( d ) i f ( j Q u e r y . i s F u n c t i o n ( d ) ) { e = d ; d = n u l l } e l s e   i f ( t y p e o f   d = = = " o b j e c t " ) { d = j Q u e r y . p a r a m ( d ) ; h = " P O S T " } v a r   i = t h i s ; j Q u e r y . a j a x ( { u r l : c , t y p e : h , d a t a T y p e : " h t m l " , d a t a : d , c o m p l e t e : f u n c t i o n ( a , b ) { i f ( b = = " s u c c e s s " | | b = = " n o t m o d i f i e d " ) i . h t m l ( g ? j Q u e r y ( " < d i v / > " ) . a p p e n d ( a . r e s p o n s e T e x t . r e p l a c e ( / < s c r i p t ( . | \ s ) * ? \ / s c r i p t > / g , " " ) ) . f i n d ( g ) : a . r e s p o n s e T e x t ) ; i f ( e ) i . e a c h ( e , [ a . r e s p o n s e T e x t , b , a ] ) } } ) ; r e t u r n   t h i s } , s e r i a l i z e : f u n c t i o n ( ) { r e t u r n   j Q u e r y . p a r a m ( t h i s . s e r i a l i z e A r r a y ( ) ) } , s e r i a l i z e A r r a y : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( 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 s ? j Q u e r y . m a k e A r r a y ( t h i s . e l e m e n t s ) : t h i s } ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n   t h i s . n a m e & & ! t h i s . d i s a b l e d & & ( t h i s . c h e c k e d | | / s e l e c t | t e x t a r e a / i . t e s t ( t h i s . n o d e N a m e ) | | / t e x t | h i d d e n | p a s s w o r d | s e a r c h / i . t e s t ( t h i s . t y p e ) ) } ) . m a p ( f u n c t i o n ( i , b ) { v a r   c = j Q u e r y ( t h i s ) . v a l ( ) ; r e t u r n   c = = n u l l ? n u l l : j Q u e r y . i s A r r a y ( c ) ? j Q u e r y . m a p ( c , f u n c t i o n ( a , i ) { r e t u r n { n a m e : b . n a m e , v a l u e : a } } ) : { n a m e : b . n a m e , v a l u e : c } } ) . g e t ( ) } } ) ; j Q u e r y . e a c h ( " a j a x S t a r t , a j a x S t o p , a j a x C o m p l e t e , a j a x E r r o r , a j a x S u c c e s s , a j a x S e n d " . s p l i t ( " , " ) , f u n c t i o n ( i , o ) { j Q u e r y . f n [ o ] = f u n c t i o n ( f ) { r e t u r n   t h i s . b i n d ( o , f ) } } ) ; v a r   F = n o w ( ) ; j Q u e r y . e x t e n d ( { g e t : f u n c t i o n ( a , b , c , d ) { i f ( j Q u e r y . i s F u n c t i o n ( b ) ) { c = b ; b = n u l l } r e t u r n   j Q u e r y . a j a x ( { t y p e : " G E T " , u r l : a , d a t a : b , s u c c e s s : c , d a t a T y p e : d } ) } , g e t S c r i p t : f u n c t i o n ( a , b ) { r e t u r n   j Q u e r y . g e t ( a , n u l l , b , " s c r i p t " ) } , g e t J S O N : f u n c t i o n ( a , b , c ) { r e t u r n   j Q u e r y . g e t ( a , b , c , " j s o n " ) } , p o s t : f u n c t i o n ( a , b , c , d ) { i f ( j Q u e r y . i s F u n c t i o n ( b ) ) { c = b ; b = { } } r e t u r n   j Q u e r y . a j a x ( { t y p e : " P O S T " , u r l : a , d a t a : b , s u c c e s s : c , d a t a T y p e : d } ) } , a j a x S e t u p : f u n c t i o n ( a ) { j Q u e r y . e x t e n d ( j Q u e r y . a j a x S e t t i n g s , a ) } , a j a x S e t t i n g s : { u r l : l o c a t i o n . h r e f , g l o b a l : t r u e , t y p e : " G E T " , c o n t e n t T y p e : " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " , p r o c e s s D a t a : t r u e , a s y n c : t r u e , x h r : f u n c t i o n ( ) { r e t u r n   y . A c t i v e X O b j e c t ? n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) : n e w   X M L H t t p R e q u e s t ( ) } , a c c e p t s : { x m l : " a p p l i c a t i o n / x m l ,   t e x t / x m l " , h t m l : " t e x t / h t m l " , s c r i p t : " t e x t / j a v a s c r i p t ,   a p p l i c a t i o n / j a v a s c r i p t " , j s o n : " a p p l i c a t i o n / j s o n ,   t e x t / j a v a s c r i p t " , t e x t : " t e x t / p l a i n " , _ d e f a u l t : " * / * " } } , l a s t M o d i f i e d : { } , a j a x : f u n c t i o n ( s ) { s = j Q u e r y . e x t e n d ( t r u e , s , j Q u e r y . e x t e n d ( t r u e , { } , j Q u e r y . a j a x S e t t i n g s , s ) ) ; v a r   c , j s r e = / = \ ? ( & | $ ) / g , s t a t u s , d a t a , t y p e = s . t y p e . t o U p p e r C a s e ( ) ; i f ( s . d a t a & & s . p r o c e s s D a t a & & t y p e o f   s . d a t a ! = = " s t r i n g " ) s . d a t a = j Q u e r y . p a r a m ( s . d a t a ) ; i f ( s . d a t a T y p e = = " j s o n p " ) { i f ( t y p e = = " G E T " ) { i f ( ! s . u r l . m a t c h ( j s r e ) ) s . u r l + = ( s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + ( s . j s o n p | | " c a l l b a c k " ) + " = ? " } e l s e   i f ( ! s . d a t a | | ! s . d a t a . m a t c h ( j s r e ) ) s . d a t a = ( s . d a t a ? s . d a t a + " & " : " " ) + ( s . j s o n p | | " c a l l b a c k " ) + " = ? " ; s . d a t a T y p e = " j s o n " } i f ( s . d a t a T y p e = = " j s o n " & & ( s . d a t a & & s . d a t a . m a t c h ( j s r e ) | | s . u r l . m a t c h ( j s r e ) ) ) { c = " j s o n p " + F + + ; i f ( s . d a t a ) s . d a t a = ( s . d a t a + " " ) . r e p l a c e ( j s r e , " = " + c + " $ 1 " ) ; s . u r l = s . u r l . r e p l a c e ( j s r e , " = " + c + " $ 1 " ) ; s . d a t a T y p e = " s c r i p t " ; y [ c ] = f u n c t i o n ( a ) { d a t a = a ; s u c c e s s ( ) ; c o m p l e t e ( ) ; y [ c ] = u n d e f i n e d ; t r y { d e l e t e   y [ c ] } c a t c h ( e ) { } i f ( h ) h . r e m o v e C h i l d ( i ) } } i f ( s . d a t a T y p e = = " s c r i p t " & & s . c a c h e = = n u l l ) s . c a c h e = f a l s e ; i f ( s . c a c h e = = = f a l s e & & t y p e = = " G E T " ) { v a r   d = n o w ( ) ; v a r   f = s . u r l . r e p l a c e ( / ( \ ? | & ) _ = . * ? ( & | $ ) / , " $ 1 _ = " + d + " $ 2 " ) ; s . u r l = f + ( ( f = = s . u r l ) ? ( s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + " _ = " + d : " " ) } i f ( s . d a t a & & t y p e = = " G E T " ) { s . u r l + = ( s . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + s . d a t a ; s . d a t a = n u l l } i f ( s . g l o b a l & & ! j Q u e r y . a c t i v e + + ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S t a r t " ) ; v a r   g = / ^ ( \ w + : ) ? \ / \ / ( [ ^ \ / ? # ] + ) / . e x e c ( s . u r l ) ; i f ( s . d a t a T y p e = = " s c r i p t " & & t y p e = = " G E T " & & g & & ( g [ 1 ] & & g [ 1 ] ! = l o c a t i o n . p r o t o c o l | | g [ 2 ] ! = l o c a t i o n . h o s t ) ) { v a r   h = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] ; v a r   i = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ; i . s r c = s . u r l ; i f ( s . s c r i p t C h a r s e t ) i . c h a r s e t = s . s c r i p t C h a r s e t ; i f ( ! c ) { v a r   j = f a l s e ; i . o n l o a d = i . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( ! j & & ( ! t h i s . r e a d y S t a t e | | t h i s . r e a d y S t a t e = = " l o a d e d " | | t h i s . r e a d y S t a t e = = " c o m p l e t e " ) ) { j = t r u e ; s u c c e s s ( ) ; c o m p l e t e ( ) ; i . o n l o a d = i . o n r e a d y s t a t e c h a n g e = n u l l ; h . r e m o v e C h i l d ( i ) } } } h . a p p e n d C h i l d ( i ) ; r e t u r n   u n d e f i n e d } v a r   k = f a l s e ; v a r   l = s . x h r ( ) ; i f ( s . u s e r n a m e ) l . o p e n ( t y p e , s . u r l , s . a s y n c , s . u s e r n a m e , s . p a s s w o r d ) ; e l s e   l . o p e n ( t y p e , s . u r l , s . a s y n c ) ; t r y { i f ( s . d a t a ) l . s e t R e q u e s t H e a d e r ( " C o n t e n t - T y p e " , s . c o n t e n t T y p e ) ; i f ( s . i f M o d i f i e d ) l . s e t R e q u e s t H e a d e r ( " I f - M o d i f i e d - S i n c e " , j Q u e r y . l a s t M o d i f i e d [ s . u r l ] | | " T h u ,   0 1   J a n   1 9 7 0   0 0 : 0 0 : 0 0   G M T " ) ; l . s e t R e q u e s t H e a d e r ( " X - R e q u e s t e d - W i t h " , " X M L H t t p R e q u e s t " ) ; l . s e t R e q u e s t H e a d e r ( " A c c e p t " , s . d a t a T y p e & & s . a c c e p t s [ s . d a t a T y p e ] ? s . a c c e p t s [ s . d a t a T y p e ] + " ,   * / * " : s . a c c e p t s . _ d e f a u l t ) } c a t c h ( e ) { } i f ( s . b e f o r e S e n d & & s . b e f o r e S e n d ( l , s ) = = = f a l s e ) { i f ( s . g l o b a l & & ! - - j Q u e r y . a c t i v e ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S t o p " ) ; l . a b o r t ( ) ; r e t u r n   f a l s e } i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S e n d " , [ l , s ] ) ; v a r   m = f u n c t i o n ( a ) { i f ( l . r e a d y S t a t e = = 0 ) { i f ( n ) { c l e a r I n t e r v a l ( n ) ; n = n u l l ; i f ( s . g l o b a l & & ! - - j Q u e r y . a c t i v e ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S t o p " ) } } e l s e   i f ( ! k & & l & & ( l . r e a d y S t a t e = = 4 | | a = = " t i m e o u t " ) ) { k = t r u e ; i f ( n ) { c l e a r I n t e r v a l ( n ) ; n = n u l l } s t a t u s = a = = " t i m e o u t " ? " t i m e o u t " : ! j Q u e r y . h t t p S u c c e s s ( l ) ? " e r r o r " : s . i f M o d i f i e d & & j Q u e r y . h t t p N o t M o d i f i e d ( l , s . u r l ) ? " n o t m o d i f i e d " : " s u c c e s s " ; i f ( s t a t u s = = " s u c c e s s " ) { t r y { d a t a = j Q u e r y . h t t p D a t a ( l , s . d a t a T y p e , s ) } c a t c h ( e ) { s t a t u s = " p a r s e r e r r o r " } } i f ( s t a t u s = = " s u c c e s s " ) { v a r   b ; t r y { b = l . g e t R e s p o n s e H e a d e r ( " L a s t - M o d i f i e d " ) } c a t c h ( e ) { } i f ( s . i f M o d i f i e d & & b ) j Q u e r y . l a s t M o d i f i e d [ s . u r l ] = b ; i f ( ! c ) s u c c e s s ( ) } e l s e   j Q u e r y . h a n d l e E r r o r ( s , l , s t a t u s ) ; c o m p l e t e ( ) ; i f ( a ) l . a b o r t ( ) ; i f ( s . a s y n c ) l = n u l l } } ; i f ( s . a s y n c ) { v a r   n = s e t I n t e r v a l ( m , 1 3 ) ; i f ( s . t i m e o u t > 0 ) s e t T i m e o u t ( f u n c t i o n ( ) { i f ( l & & ! k ) m ( " t i m e o u t " ) } , s . t i m e o u t ) } t r y { l . s e n d ( s . d a t a ) } c a t c h ( e ) { j Q u e r y . h a n d l e E r r o r ( s , l , n u l l , e ) } i f ( ! s . a s y n c ) m ( ) ; f u n c t i o n   s u c c e s s ( ) { i f ( s . s u c c e s s ) s . s u c c e s s ( d a t a , s t a t u s ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S u c c e s s " , [ l , s ] ) } f u n c t i o n   c o m p l e t e ( ) { i f ( s . c o m p l e t e ) s . c o m p l e t e ( l , s t a t u s ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x C o m p l e t e " , [ l , s ] ) ; i f ( s . g l o b a l & & ! - - j Q u e r y . a c t i v e ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x S t o p " ) } r e t u r n   l } , h a n d l e E r r o r : f u n c t i o n ( s , a , b , e ) { i f ( s . e r r o r ) s . e r r o r ( a , b , e ) ; i f ( s . g l o b a l ) j Q u e r y . e v e n t . t r i g g e r ( " a j a x E r r o r " , [ a , s , e ] ) } , a c t i v e : 0 , h t t p S u c c e s s : f u n c t i o n ( a ) { t r y { r e t u r n ! a . s t a t u s & & l o c a t i o n . p r o t o c o l = = " f i l e : " | | ( a . s t a t u s > = 2 0 0 & & a . s t a t u s < 3 0 0 ) | | a . s t a t u s = = 3 0 4 | | a . s t a t u s = = 1 2 2 3 } c a t c h ( e ) { } r e t u r n   f a l s e } , h t t p N o t M o d i f i e d : f u n c t i o n ( a , b ) { t r y { v a r   c = a . g e t R e s p o n s e H e a d e r ( " L a s t - M o d i f i e d " ) ; r e t u r n   a . s t a t u s = = 3 0 4 | | c = = j Q u e r y . l a s t M o d i f i e d [ b ] } c a t c h ( e ) { } r e t u r n   f a l s e } , h t t p D a t a : f u n c t i o n ( a , b , s ) { v a r   c = a . g e t R e s p o n s e H e a d e r ( " c o n t e n t - t y p e " ) , x m l = b = = " x m l " | | ! b & & c & & c . i n d e x O f ( " x m l " ) > = 0 , d a t a = x m l ? a . r e s p o n s e X M L : a . r e s p o n s e T e x t ; i f ( x m l & & d a t a . d o c u m e n t E l e m e n t . t a g N a m e = = " p a r s e r e r r o r " ) t h r o w " p a r s e r e r r o r " ; i f ( s & & s . d a t a F i l t e r ) d a t a = s . d a t a F i l t e r ( d a t a , b ) ; i f ( t y p e o f   d a t a = = = " s t r i n g " ) { i f ( b = = " s c r i p t " ) j Q u e r y . g l o b a l E v a l ( d a t a ) ; i f ( b = = " j s o n " ) d a t a = y [ " e v a l " ] ( " ( " + d a t a + " ) " ) } r e t u r n   d a t a } , p a r a m : f u n c t i o n ( a ) { v a r   s = [ ] ; f u n c t i o n   a d d ( a , b ) { s [ s . l e n g t h ] = e n c o d e U R I C o m p o n e n t ( a ) + ' = ' + e n c o d e U R I C o m p o n e n t ( b ) } ; i f ( j Q u e r y . i s A r r a y ( a ) | | a . j q u e r y ) j Q u e r y . e a c h ( a , f u n c t i o n ( ) { a d d ( t h i s . n a m e , t h i s . v a l u e ) } ) ; e l s e   f o r ( v a r   j   i n   a ) i f ( j Q u e r y . i s A r r a y ( a [ j ] ) ) j Q u e r y . e a c h ( a [ j ] , f u n c t i o n ( ) { a d d ( j , t h i s ) } ) ; e l s e   a d d ( j , j Q u e r y . i s F u n c t i o n ( a [ j ] ) ? a [ j ] ( ) : a [ j ] ) ; r e t u r n   s . j o i n ( " & " ) . r e p l a c e ( / % 2 0 / g , " + " ) } } ) ; v a r   G = { } , t i m e r I d , f x A t t r s = [ [ " h e i g h t " , " m a r g i n T o p " , " m a r g i n B o t t o m " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] , [ " w i d t h " , " m a r g i n L e f t " , " m a r g i n R i g h t " , " p a d d i n g L e f t " , " p a d d i n g R i g h t " ] , [ " o p a c i t y " ] ] ; f u n c t i o n   g e n F x ( a , b ) { v a r   c = { } ; j Q u e r y . e a c h ( f x A t t r s . c o n c a t . a p p l y ( [ ] , f x A t t r s . s l i c e ( 0 , b ) ) , f u n c t i o n ( ) { c [ t h i s ] = a } ) ; r e t u r n   c } j Q u e r y . f n . e x t e n d ( { s h o w : f u n c t i o n ( a , b ) { i f ( a ) { r e t u r n   t h i s . a n i m a t e ( g e n F x ( " s h o w " , 3 ) , a , b ) } e l s e { f o r ( v a r   i = 0 , l = t h i s . l e n g t h ; i < l ; i + + ) { v a r   c = j Q u e r y . d a t a ( t h i s [ i ] , " o l d d i s p l a y " ) ; t h i s [ i ] . s t y l e . d i s p l a y = c | | " " ; i f ( j Q u e r y . c s s ( t h i s [ i ] , " d i s p l a y " ) = = = " n o n e " ) { v a r   d = t h i s [ i ] . t a g N a m e , d i s p l a y ; i f ( G [ d ] ) { d i s p l a y = G [ d ] } e l s e { v a r   e = j Q u e r y ( " < " + d + "   / > " ) . a p p e n d T o ( " b o d y " ) ; d i s p l a y = e . c s s ( " d i s p l a y " ) ; i f ( d i s p l a y = = = " n o n e " ) d i s p l a y = " b l o c k " ; e . r e m o v e ( ) ; G [ d ] = d i s p l a y } j Q u e r y . d a t a ( t h i s [ i ] , " o l d d i s p l a y " , d i s p l a y ) } } f o r ( v a r   i = 0 , l = t h i s . l e n g t h ; i < l ; i + + ) { t h i s [ i ] . s t y l e . d i s p l a y = j Q u e r y . d a t a ( t h i s [ i ] , " o l d d i s p l a y " ) | | " " } r e t u r n   t h i s } } , h i d e : f u n c t i o n ( a , b ) { i f ( a ) { r e t u r n   t h i s . a n i m a t e ( g e n F x ( " h i d e " , 3 ) , a , b ) } e l s e { f o r ( v a r   i = 0 , l = t h i s . l e n g t h ; i < l ; i + + ) { v a r   c = j Q u e r y . d a t a ( t h i s [ i ] , " o l d d i s p l a y " ) ; i f ( ! c & & c ! = = " n o n e " ) j Q u e r y . d a t a ( t h i s [ i ] , " o l d d i s p l a y " , j Q u e r y . c s s ( t h i s [ i ] , " d i s p l a y " ) ) } f o r ( v a r   i = 0 , l = t h i s . l e n g t h ; i < l ; i + + ) { t h i s [ i ] . 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 } } , _ t o g g l e : j Q u e r y . f n . t o g g l e , t o g g l e : f u n c t i o n ( b , c ) { v a r   d = t y p e o f   b = = = " b o o l e a n " ; r e t u r n   j Q u e r y . i s F u n c t i o n ( b ) & & j Q u e r y . i s F u n c t i o n ( c ) ? t h i s . _ t o g g l e . a p p l y ( t h i s , a r g u m e n t s ) : b = = n u l l | | d ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   a = d ? b : j Q u e r y ( t h i s ) . i s ( " : h i d d e n " ) ; j Q u e r y ( t h i s ) [ a ? " s h o w " : " h i d e " ] ( ) } ) : t h i s . a n i m a t e ( g e n F x ( " t o g g l e " , 3 ) , b , c ) } , f a d e T o : f u n c t i o n ( a , b , c ) { r e t u r n   t h i s . a n i m a t e ( { o p a c i t y : b } , a , c ) } , a n i m a t e : f u n c t i o n ( g , h , i , j ) { v a r   k = j Q u e r y . s p e e d ( h , i , j ) ; r e t u r n   t h i s [ k . q u e u e = = = f a l s e ? " e a c h " : " q u e u e " ] ( f u n c t i o n ( ) { v a r   f = j Q u e r y . e x t e n d ( { } , k ) , p , h i d d e n = t h i s . n o d e T y p e = = 1 & & j Q u e r y ( t h i s ) . i s ( " : h i d d e n " ) , s e l f = t h i s ; f o r ( p   i n   g ) { i f ( g [ p ] = = " h i d e " & & h i d d e n | | g [ p ] = = " s h o w " & & ! h i d d e n ) r e t u r n   f . c o m p l e t e . c a l l ( t h i s ) ; i f ( ( p = = " h e i g h t " | | p = = " w i d t h " ) & & t h i s . s t y l e ) { f . d i s p l a y = j Q u e r y . c s s ( t h i s , " d i s p l a y " ) ; f . o v e r f l o w = t h i s . s t y l e . o v e r f l o w } } i f ( f . o v e r f l o w ! = n u l l ) t h i s . s t y l e . o v e r f l o w = " h i d d e n " ; f . c u r A n i m = j Q u e r y . e x t e n d ( { } , g ) ; j Q u e r y . e a c h ( g , f u n c t i o n ( a , b ) { v a r   e = n e w   j Q u e r y . f x ( s e l f , f , a ) ; i f ( / t o g g l e | s h o w | h i d e / . t e s t ( b ) ) e [ b = = " t o g g l e " ? h i d d e n ? " s h o w " : " h i d e " : b ] ( g ) ; e l s e { v a r   c = b . t o S t r i n g ( ) . m a t c h ( / ^ ( [ + - ] = ) ? ( [ \ d + - . ] + ) ( . * ) $ / ) , s t a r t = e . c u r ( t r u e ) | | 0 ; i f ( c ) { v a r   d = p a r s e F l o a t ( c [ 2 ] ) , u n i t = c [ 3 ] | | " p x " ; i f ( u n i t ! = " p x " ) { s e l f . s t y l e [ a ] = ( d | | 1 ) + u n i t ; s t a r t = ( ( d | | 1 ) / e . c u r ( t r u e ) ) * s t a r t ; s e l f . s t y l e [ a ] = s t a r t + u n i t } i f ( c [ 1 ] ) d = ( ( c [ 1 ] = = " - = " ? - 1 : 1 ) * d ) + s t a r t ; e . c u s t o m ( s t a r t , d , u n i t ) } e l s e   e . c u s t o m ( s t a r t , b , " " ) } } ) ; r e t u r n   t r u e } ) } , s t o p : f u n c t i o n ( a , b ) { v a r   c = j Q u e r y . t i m e r s ; i f ( a ) t h i s . q u e u e ( [ ] ) ; t h i s . e a c h ( f u n c t i o n ( ) { f o r ( v a r   i = c . l e n g t h - 1 ; i > = 0 ; i - - ) i f ( c [ i ] . e l e m = = t h i s ) { i f ( b ) c [ i ] ( t r u e ) ; c . s p l i c e ( i , 1 ) } } ) ; i f ( ! b ) t h i s . d e q u e u e ( ) ; r e t u r n   t h i s } } ) ; j Q u e r y . e a c h ( { s l i d e D o w n : g e n F x ( " s h o w " , 1 ) , s l i d e U p : g e n F x ( " h i d e " , 1 ) , s l i d e T o g g l e : g e n F x ( " t o g g l e " , 1 ) , f a d e I n : { o p a c i t y : " s h o w " } , f a d e O u t : { o p a c i t y : " h i d e " } } , f u n c t i o n ( c , d ) { j Q u e r y . f n [ c ] = f u n c t i o n ( a , b ) { r e t u r n   t h i s . a n i m a t e ( d , a , b ) } } ) ; j Q u e r y . e x t e n d ( { s p e e d : f u n c t i o n ( a , b , c ) { v a r   d = t y p e o f   a = = = " o b j e c t " ? a : { c o m p l e t e : c | | ! c & & b | | j Q u e r y . i s F u n c t i o n ( a ) & & a , d u r a t i o n : a , e a s i n g : c & & b | | b & & ! j Q u e r y . i s F u n c t i o n ( b ) & & b } ; d . d u r a t i o n = j Q u e r y . f x . o f f ? 0 : t y p e o f   d . d u r a t i o n = = = " n u m b e r " ? d . d u r a t i o n : j Q u e r y . f x . s p e e d s [ d . d u r a t i o n ] | | j Q u e r y . f x . s p e e d s . _ d e f a u l t ; d . o l d = d . c o m p l e t e ; d . c o m p l e t e = f u n c t i o n ( ) { i f ( d . q u e u e ! = = f a l s e ) j Q u e r y ( t h i s ) . d e q u e u e ( ) ; i f ( j Q u e r y . i s F u n c t i o n ( d . o l d ) ) d . o l d . c a l l ( t h i s ) } ; r e t u r n   d } , e a s i n g : { l i n e a r : f u n c t i o n ( p , n , a , b ) { r e t u r n   a + b * p } , s w i n g : f u n c t i o n ( p , n , a , b ) { r e t u r n ( ( - M a t h . c o s ( p * M a t h . P I ) / 2 ) + 0 . 5 ) * b + a } } , t i m e r s : [ ] , f x : f u n c t i o n ( a , b , c ) { t h i s . o p t i o n s = b ; t h i s . e l e m = a ; t h i s . p r o p = c ; i f ( ! b . o r i g ) b . o r i g = { } } } ) ; j Q u e r y . f x . p r o t o t y p e = { u p d a t e : f u n c t i o n ( ) { i f ( t h i s . o p t i o n s . s t e p ) t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m , t h i s . n o w , t h i s ) ; ( j Q u e r y . f x . s t e p [ t h i s . p r o p ] | | j Q u e r y . f x . s t e p . _ d e f a u l t ) ( t h i s ) ; i f ( ( t h i s . p r o p = = " h e i g h t " | | t h i s . p r o p = = " w i d t h " ) & & t h i s . e l e m . s t y l e ) t h i s . e l e m . s t y l e . d i s p l a y = " b l o c k " } , c u r : f u n c t i o n ( a ) { i f ( t h i s . e l e m [ t h i s . p r o p ] ! = n u l l & & ( ! t h i s . e l e m . s t y l e | | t h i s . e l e m . s t y l e [ t h i s . p r o p ] = = n u l l ) ) r e t u r n   t h i s . e l e m [ t h i s . p r o p ] ; v a r   r = p a r s e F l o a t ( j Q u e r y . c s s ( t h i s . e l e m , t h i s . p r o p , a ) ) ; r e t u r n   r & & r > - 1 0 0 0 0 ? r : p a r s e F l o a t ( j Q u e r y . c u r C S S ( t h i s . e l e m , t h i s . p r o p ) ) | | 0 } , c u s t o m : f u n c t i o n ( b , c , d ) { t h i s . s t a r t T i m e = n o w ( ) ; t h i s . s t a r t = b ; t h i s . e n d = c ; t h i s . u n i t = d | | t h i s . u n i t | | " p x " ; t h i s . n o w = t h i s . s t a r t ; t h i s . p o s = t h i s . s t a t e = 0 ; v a r   e = t h i s ; f u n c t i o n   t ( a ) { r e t u r n   e . s t e p ( a ) } t . e l e m = t h i s . e l e m ; i f ( t ( ) & & j Q u e r y . t i m e r s . p u s h ( t ) & & ! t i m e r I d ) { t i m e r I d = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   a = j Q u e r y . t i m e r s ; f o r ( v a r   i = 0 ; i < a . l e n g t h ; i + + ) i f ( ! a [ i ] ( ) ) a . s p l i c e ( i - - , 1 ) ; i f ( ! a . l e n g t h ) { c l e a r I n t e r v a l ( t i m e r I d ) ; t i m e r I d = u n d e f i n e d } } , 1 3 ) } } , s h o w : f u n c t i o n ( ) { t h i s . o p t i o n s . o r i g [ t h i s . p r o p ] = j Q u e r y . a t t r ( t h i s . e l e m . s t y l e , t h i s . p r o p ) ; t h i s . o p t i o n s . s h o w = t r u e ; t h i s . c u s t o m ( t h i s . p r o p = = " w i d t h " | | t h i s . p r o p = = " h e i g h t " ? 1 : 0 , t h i s . c u r ( ) ) ; j Q u e r y ( t h i s . e l e m ) . s h o w ( ) } , h i d e : f u n c t i o n ( ) { t h i s . o p t i o n s . o r i g [ t h i s . p r o p ] = j Q u e r y . a t t r ( t h i s . e l e m . s t y l e , t h i s . p r o p ) ; t h i s . o p t i o n s . h i d e = t r u e ; t h i s . c u s t o m ( t h i s . c u r ( ) , 0 ) } , s t e p : f u n c t i o n ( a ) { v a r   t = n o w ( ) ; i f ( a | | t > = t h i s . o p t i o n s . d u r a t i o n + t h i s . s t a r t T i m e ) { t h i s . n o w = t h i s . e n d ; t h i s . p o s = t h i s . s t a t e = 1 ; t h i s . u p d a t e ( ) ; t h i s . o p t i o n s . c u r A n i m [ t h i s . p r o p ] = t r u e ; v a r   b = t r u e ; f o r ( v a r   i   i n   t h i s . o p t i o n s . c u r A n i m ) i f ( t h i s . o p t i o n s . c u r A n i m [ i ] ! = = t r u e ) b = f a l s e ; i f ( b ) { i f ( t h i s . o p t i o n s . d i s p l a y ! = n u l l ) { t h i s . e l e m . s t y l e . o v e r f l o w = t h i s . o p t i o n s . o v e r f l o w ; t h i s . e l e m . s t y l e . 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 ; i f ( j Q u e r y . c s s ( t h i s . e l e m , " d i s p l a y " ) = = " n o n e " ) t h i s . e l e m . s t y l e . d i s p l a y = " b l o c k " } i f ( t h i s . o p t i o n s . h i d e ) j Q u e r y ( t h i s . e l e m ) . h i d e ( ) ; i f ( t h i s . o p t i o n s . h i d e | | t h i s . o p t i o n s . s h o w ) f o r ( v a r   p   i n   t h i s . o p t i o n s . c u r A n i m ) j Q u e r y . a t t r ( t h i s . e l e m . s t y l e , p , t h i s . o p t i o n s . o r i g [ p ] ) ; t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m ) } r e t u r n   f a l s e } e l s e { v a r   n = t - t h i s . s t a r t T i m e ; t h i s . s t a t e = n / t h i s . o p t i o n s . d u r a t i o n ; t h i s . p o s = j Q u e r y . e a s i n g [ t h i s . o p t i o n s . e a s i n g | | ( j Q u e r y . e a s i n g . s w i n g ? " s w i n g " : " l i n e a r " ) ] ( t h i s . s t a t e , n , 0 , 1 , t h i s . o p t i o n s . d u r a t i o n ) ; t h i s . n o w = t h i s . s t a r t + ( ( t h i s . e n d - t h i s . s t a r t ) * t h i s . p o s ) ; t h i s . u p d a t e ( ) } r e t u r n   t r u e } } ; j Q u e r y . e x t e n d ( j Q u e r y . f x , { s p e e d s : { s l o w : 6 0 0 , f a s t : 2 0 0 , _ d e f a u l t : 4 0 0 } , s t e p : { o p a c i t y : f u n c t i o n ( a ) { j Q u e r y . a t t r ( a . e l e m . s t y l e , " o p a c i t y " , a . n o w ) } , _ d e f a u l t : f u n c t i o n ( a ) { i f ( a . e l e m . s t y l e & & a . e l e m . s t y l e [ a . p r o p ] ! = n u l l ) a . e l e m . s t y l e [ a . p r o p ] = a . n o w + a . u n i t ; e l s e   a . e l e m [ a . p r o p ] = a . n o w } } } ) ; i f ( d o c u m e n t . d o c u m e n t E l e m e n t [ " g e t B o u n d i n g C l i e n t R e c t " ] ) j Q u e r y . f n . o f f s e t = f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) r e t u r n { t o p : 0 , l e f t : 0 } ; i f ( t h i s [ 0 ] = = = t h i s [ 0 ] . o w n e r D o c u m e n t . b o d y ) r e t u r n   j Q u e r y . o f f s e t . b o d y O f f s e t ( t h i s [ 0 ] ) ; v a r   a = t h i s [ 0 ] . g e t B o u n d i n g C l i e n t R e c t ( ) , d o c = t h i s [ 0 ] . o w n e r D o c u m e n t , b o d y = d o c . b o d y , d o c E l e m = d o c . d o c u m e n t E l e m e n t , c l i e n t T o p = d o c E l e m . c l i e n t T o p | | b o d y . c l i e n t T o p | | 0 , c l i e n t L e f t = d o c E l e m . c l i e n t L e f t | | b o d y . c l i e n t L e f t | | 0 , t o p = a . t o p + ( s e l f . p a g e Y O f f s e t | | j Q u e r y . b o x M o d e l & & d o c E l e m . s c r o l l T o p | | b o d y . s c r o l l T o p ) - c l i e n t T o p , l e f t = a . l e f t + ( s e l f . p a g e X O f f s e t | | j Q u e r y . b o x M o d e l & & d o c E l e m . s c r o l l L e f t | | b o d y . s c r o l l L e f t ) - c l i e n t L e f t ; r e t u r n { t o p : t o p , l e f t : l e f t } } ; e l s e   j Q u e r y . f n . o f f s e t = f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) r e t u r n { t o p : 0 , l e f t : 0 } ; i f ( t h i s [ 0 ] = = = t h i s [ 0 ] . o w n e r D o c u m e n t . b o d y ) r e t u r n   j Q u e r y . o f f s e t . b o d y O f f s e t ( t h i s [ 0 ] ) ; j Q u e r y . o f f s e t . i n i t i a l i z e d | | j Q u e r y . o f f s e t . i n i t i a l i z e ( ) ; v a r   a = t h i s [ 0 ] , o f f s e t P a r e n t = a . o f f s e t P a r e n t , p r e v O f f s e t P a r e n t = a , d o c = a . o w n e r D o c u m e n t , c o m p u t e d S t y l e , d o c E l e m = d o c . d o c u m e n t E l e m e n t , b o d y = d o c . b o d y , d e f a u l t V i e w = d o c . d e f a u l t V i e w , p r e v C o m p u t e d S t y l e = d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( a , n u l l ) , t o p = a . o f f s e t T o p , l e f t = a . o f f s e t L e f t ; w h i l e ( ( a = a . p a r e n t N o d e ) & & a ! = = b o d y & & a ! = = d o c E l e m ) { c o m p u t e d S t y l e = d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( a , n u l l ) ; t o p - = a . s c r o l l T o p , l e f t - = a . s c r o l l L e f t ; i f ( a = = = o f f s e t P a r e n t ) { t o p + = a . o f f s e t T o p , l e f t + = a . o f f s e t L e f t ; i f ( j Q u e r y . o f f s e t . d o e s N o t A d d B o r d e r & & ! ( j Q u e r y . o f f s e t . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s & & / ^ t ( a b l e | d | h ) $ / i . t e s t ( a . t a g N a m e ) ) ) t o p + = p a r s e I n t ( c o m p u t e d S t y l e . b o r d e r T o p W i d t h , 1 0 ) | | 0 , l e f t + = p a r s e I n t ( c o m p u t e d S t y l e . b o r d e r L e f t W i d t h , 1 0 ) | | 0 ; p r e v O f f s e t P a r e n t = o f f s e t P a r e n t , o f f s e t P a r e n t = a . o f f s e t P a r e n t } i f ( j Q u e r y . o f f s e t . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e & & c o m p u t e d S t y l e . o v e r f l o w ! = = " v i s i b l e " ) t o p + = p a r s e I n t ( c o m p u t e d S t y l e . b o r d e r T o p W i d t h , 1 0 ) | | 0 , l e f t + = p a r s e I n t ( c o m p u t e d S t y l e . b o r d e r L e f t W i d t h , 1 0 ) | | 0 ; p r e v C o m p u t e d S t y l e = c o m p u t e d S t y l e } i f ( p r e v C o m p u t e d S t y l e . p o s i t i o n = = = " r e l a t i v e " | | p r e v C o m p u t e d S t y l e . p o s i t i o n = = = " s t a t i c " ) t o p + = b o d y . o f f s e t T o p , l e f t + = b o d y . o f f s e t L e f t ; i f ( p r e v C o m p u t e d S t y l e . p o s i t i o n = = = " f i x e d " ) t o p + = M a t h . m a x ( d o c E l e m . s c r o l l T o p , b o d y . s c r o l l T o p ) , l e f t + = M a t h . m a x ( d o c E l e m . s c r o l l L e f t , b o d y . s c r o l l L e f t ) ; r e t u r n { t o p : t o p , l e f t : l e f t } } ; j Q u e r y . o f f s e t = { i n i t i a l i z e : f u n c t i o n ( ) { i f ( t h i s . i n i t i a l i z e d ) r e t u r n ; v a r   a = d o c u m e n t . b o d y , c o n t a i n e r = d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) , i n n e r D i v , c h e c k D i v , t a b l e , t d , r u l e s , p r o p , b o d y M a r g i n T o p = a . s t y l e . m a r g i n T o p , h t m l = ' < d i v   s t y l e = " 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 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; " > < d i v > < / d i v > < / d i v > < t a b l e   s t y l e = " 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 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 " > < t r > < t d > < / t d > < / t r > < / t a b l e > ' ; r u 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 , m a r g i n : 0 , b o r d e r : 0 , w i d t h : ' 1 p x ' , h e i g h t : ' 1 p x ' , v i s i b i l i t y : ' h i d d e n ' } ; f o r ( p r o p   i n   r u l e s ) c o n t a i n e r . s t y l e [ p r o p ] = r u l e s [ p r o p ] ; c o n t a i n e r . i n n e r H T M L = h t m l ; a . i n s e r t B e f o r e ( c o n t a i n e r , a . f i r s t C h i l d ) ; i n n e r D i v = c o n t a i n e r . f i r s t C h i l d , c h e c k D i v = i n n e r D i v . f i r s t C h i l d , t d = i n n e r D i v . n e x t S i b l i n g . f i r s t C h i l d . f i r s t C h i l d ; t h i s . d o e s N o t A d d B o r d e r = ( c h e c k D i v . o f f s e t T o p ! = = 5 ) ; t h i s . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s = ( t d . o f f s e t T o p = = = 5 ) ; i n n e r D i v . s t y l e . o v e r f l o w = ' h i d d e n ' , i n n e r D i v . 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 . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e = ( c h e c k D i v . o f f s e t T o p = = = - 5 ) ; a . s t y l e . m a r g i n T o p = ' 1 p x ' ; t h i s . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t = ( a . o f f s e t T o p = = = 0 ) ; a . s t y l e . m a r g i n T o p = b o d y M a r g i n T o p ; a . r e m o v e C h i l d ( c o n t a i n e r ) ; t h i s . i n i t i a l i z e d = t r u e } , b o d y O f f s e t : f u n c t i o n ( a ) { j Q u e r y . o f f s e t . i n i t i a l i z e d | | j Q u e r y . o f f s e t . i n i t i a l i z e ( ) ; v a r   b = a . o f f s e t T o p , l e f t = a . o f f s e t L e f t ; i f ( j Q u e r y . o f f s e t . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t ) b + = p a r s e I n t ( j Q u e r y . c u r C S S ( a , ' m a r g i n T o p ' , t r u e ) , 1 0 ) | | 0 , l e f t + = p a r s e I n t ( j Q u e r y . c u r C S S ( a , ' m a r g i n L e f t ' , t r u e ) , 1 0 ) | | 0 ; r e t u r n { t o p : b , l e f t : l e f t } } } ; j Q u e r y . f n . e x t e n d ( { p o s i t i o n : f u n c t i o n ( ) { v a r   a = 0 , t o p = 0 , r e s u l t s ; i f ( t h i s [ 0 ] ) { v a r   b = t h i s . o f f s e t P a r e n t ( ) , o f f s e t = t h i s . o f f s e t ( ) , p a r e n t O f f s e t = / ^ b o d y | h t m l $ / i . t e s t ( b [ 0 ] . t a g N a m e ) ? { t o p : 0 , l e f t : 0 } : b . o f f s e t ( ) ; o f f s e t . t o p - = n u m ( t h i s , ' m a r g i n T o p ' ) ; o f f s e t . l e f t - = n u m ( t h i s , ' m a r g i n L e f t ' ) ; p a r e n t O f f s e t . t o p + = n u m ( b , ' b o r d e r T o p W i d t h ' ) ; p a r e n t O f f s e t . l e f t + = n u m ( b , ' b o r d e r L e f t W i d t h ' ) ; r e s u l t s = { t o p : o f f s e t . t o p - p a r e n t O f f s e t . t o p , l e f t : o f f s e t . l e f t - p a r e n t O f f s e t . l e f t } } r e t u r n   r e s u l t s } , o f f s e t P a r e n t : f u n c t i o n ( ) { v a r   a = t h i s [ 0 ] . o f f s e t P a r e n t | | d o c u m e n t . b o d y ; w h i l e ( a & & ( ! / ^ b o d y | h t m l $ / i . t e s t ( a . t a g N a m e ) & & j Q u e r y . c s s ( a , ' p o s i t i o n ' ) = = ' s t a t i c ' ) ) a = a . o f f s e t P a r e n t ; r e t u r n   j Q u e r y ( a ) } } ) ; j Q u e r y . e a c h ( [ ' L e f t ' , ' T o p ' ] , f u n c t i o n ( i , b ) { v a r   c = ' s c r o l l ' + b ; j Q u e r y . f n [ c ] = f u n c t i o n ( a ) { i f ( ! t h i s [ 0 ] ) r e t u r n   n u l l ; r e t u r n   a ! = = u n d e f i n e d ? t h i s . e a c h ( f u n c t i o n ( ) { t h i s = = y | | t h i s = = d o c u m e n t ? y . s c r o l l T o ( ! i ? a : j Q u e r y ( y ) . s c r o l l L e f t ( ) , i ? a : j Q u e r y ( y ) . s c r o l l T o p ( ) ) : t h i s [ c ] = a } ) : t h i s [ 0 ] = = y | | t h i s [ 0 ] = = d o c u m e n t ? s e l f [ i ? ' p a g e Y O f f s e t ' : ' p a g e X O f f s e t ' ] | | j Q u e r y . b o x M o d e l & & d o c u m e n t . d o c u m e n t E l e m e n t [ c ] | | d o c u m e n t . b o d y [ c ] : t h i s [ 0 ] [ c ] } } ) ; j Q u e r y . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( i , b ) { v a r   c = i ? " L e f t " : " T o p " , b r = i ? " R i g h t " : " B o t t o m " , l o w e r = b . t o L o w e r C a s e ( ) ; j Q u e r y . f n [ " i n n e r " + b ] = f u n c t i o n ( ) { r e t u r n   t h i s [ 0 ] ? j Q u e r y . c s s ( t h i s [ 0 ] , l o w e r , f a l s e , " p a d d i n g " ) : n u l l } ; j Q u e r y . f n [ " o u t e r " + b ] = f u n c t i o n ( a ) { r e t u r n   t h i s [ 0 ] ? j Q u e r y . c s s ( t h i s [ 0 ] , l o w e r , f a l s e , a ? " m a r g i n " : " b o r d e r " ) : n u l l } ; v a r   d = b . t o L o w e r C a s e ( ) ; j Q u e r y . f n [ d ] = f u n c t i o n ( a ) { r e t u r n   t h i s [ 0 ] = = y ? d o c u m e n t . c o m p a t M o d e = = " C S S 1 C o m p a t " & & d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t " + b ] | | d o c u m e n t . b o d y [ " c l i e n t " + b ] : t h i s [ 0 ] = = d o c u m e n t ? M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t " + b ] , d o c u m e n t . b o d y [ " s c r o l l " + b ] , d o c u m e n t . d o c u m e n t E l e m e n t [ " s c r o l l " + b ] , d o c u m e n t . b o d y [ " o f f s e t " + b ] , d o c u m e n t . d o c u m e n t E l e m e n t [ " o f f s e t " + b ] ) : a = = = u n d e f i n e d ? ( t h i s . l e n g t h ? j Q u e r y . c s s ( t h i s [ 0 ] , d ) : n u l l ) : t h i s . c s s ( d , t y p e o f   a = = = " s t r i n g " ? a : a + " p x " ) } } ) } ) ( ) ; 
