2022-12-24 06:50:15 +00:00
import { E as Nr } from "./eventemitter3.dc5195d7.js" ; import { e as Zn } from "./earcut.03899505.js" ; import { p as Ca , f as Oa , r as Ba } from "./url.1821b64b.js" ; / * !
2022-12-22 19:30:09 +00:00
* @ pixi / constants - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / constants is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r k t ; ( f u n c t i o n ( r ) { r [ r . W E B G L _ L E G A C Y = 0 ] = " W E B G L _ L E G A C Y " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . W E B G L 2 = 2 ] = " W E B G L 2 " } ) ( k t | | ( k t = { } ) ) ; v a r U e ; ( f u n c t i o n ( r ) { r [ r . U N K N O W N = 0 ] = " U N K N O W N " , r [ r . W E B G L = 1 ] = " W E B G L " , r [ r . C A N V A S = 2 ] = " C A N V A S " } ) ( U e | | ( U e = { } ) ) ; v a r m r ; ( f u n c t i o n ( r ) { r [ r . C O L O R = 1 6 3 8 4 ] = " C O L O R " , r [ r . D E P T H = 2 5 6 ] = " D E P T H " , r [ r . S T E N C I L = 1 0 2 4 ] = " S T E N C I L " } ) ( m r | | ( m r = { } ) ) ; v a r B ; ( f u n c t i o n ( r ) { r [ r . N O R M A L = 0 ] = " N O R M A L " , r [ r . A D D = 1 ] = " A D D " , r [ r . M U L T I P L Y = 2 ] = " M U L T I P L Y " , r [ r . S C R E E N = 3 ] = " S C R E E N " , r [ r . O V E R L A Y = 4 ] = " O V E R L A Y " , r [ r . D A R K E N = 5 ] = " D A R K E N " , r [ r . L I G H T E N = 6 ] = " L I G H T E N " , r [ r . C O L O R _ D O D G E = 7 ] = " C O L O R _ D O D G E " , r [ r . C O L O R _ B U R N = 8 ] = " C O L O R _ B U R N " , r [ r . H A R D _ L I G H T = 9 ] = " H A R D _ L I G H T " , r [ r . S O F T _ L I G H T = 1 0 ] = " S O F T _ L I G H T " , r [ r . D I F F E R E N C E = 1 1 ] = " D I F F E R E N C E " , r [ r . E X C L U S I O N = 1 2 ] = " E X C L U S I O N " , r [ r . H U E = 1 3 ] = " H U E " , r [ r . S A T U R A T I O N = 1 4 ] = " S A T U R A T I O N " , r [ r . C O L O R = 1 5 ] = " C O L O R " , r [ r . L U M I N O S I T Y = 1 6 ] = " L U M I N O S I T Y " , r [ r . N O R M A L _ N P M = 1 7 ] = " N O R M A L _ N P M " , r [ r . A D D _ N P M = 1 8 ] = " A D D _ N P M " , r [ r . S C R E E N _ N P M = 1 9 ] = " S C R E E N _ N P M " , r [ r . N O N E = 2 0 ] = " N O N E " , r [ r . S R C _ O V E R = 0 ] = " S R C _ O V E R " , r [ r . S R C _ I N = 2 1 ] = " S R C _ I N " , r [ r . S R C _ O U T = 2 2 ] = " S R C _ O U T " , r [ r . S R C _ A T O P = 2 3 ] = " S R C _ A T O P " , r [ r . D S T _ O V E R = 2 4 ] = " D S T _ O V E R " , r [ r . D S T _ I N = 2 5 ] = " D S T _ I N " , r [ r . D S T _ O U T = 2 6 ] = " D S T _ O U T " , r [ r . D S T _ A T O P = 2 7 ] = " D S T _ A T O P " , r [ r . E R A S E = 2 6 ] = " E R A S E " , r [ r . S U B T R A C T = 2 8 ] = " S U B T R A C T " , r [ r . X O R = 2 9 ] = " X O R " } ) ( B | | ( B = { } ) ) ; v a r E t ; ( f u n c t i o n ( r ) { r [ r . P O I N T S = 0 ] = " P O I N T S " , r [ r . L I N E S = 1 ] = " L I N E S " , r [ r . L I N E _ L O O P = 2 ] = " L I N E _ L O O P " , r [ r . L I N E _ S T R I P = 3 ] = " L I N E _ S T R I P " , r [ r . T R I A N G L E S = 4 ] = " T R I A N G L E S " , r [ r . T R I A N G L E _ S T R I P = 5 ] = " T R I A N G L E _ S T R I P " , r [ r . T R I A N G L E _ F A N = 6 ] = " T R I A N G L E _ F A N " } ) ( E t | | ( E t = { } ) ) ; v a r w ; ( f u n c t i o n ( r ) { r [ r . R G B A = 6 4 0 8 ] = " R G B A " , r [ r . R G B = 6 4 0 7 ] = " R G B " , r [ r . R G = 3 3 3 1 9 ] = " R G " , r [ r . R E D = 6 4 0 3 ] = " R E D " , r [ r . R G B A _ I N T E G E R = 3 6 2 4 9 ] = " R G B A _ I N T E G E R " , r [ r . R G B _ I N T E G E R = 3 6 2 4 8 ] = " R G B _ I N T E G E R " , r [ r . R G _ I N T E G E R = 3 3 3 2 0 ] = " R G _ I N T E G E R " , r [ r . R E D _ I N T E G E R = 3 6 2 4 4 ] = " R E D _ I N T E G E R " , r [ r . A L P H A = 6 4 0 6 ] = " A L P H A " , r [ r . L U M I N A N C E = 6 4 0 9 ] = " L U M I N A N C E " , r [ r . L U M I N A N C E _ A L P H A = 6 4 1 0 ] = " L U M I N A N C E _ A L P H A " , r [ r . D E P T H _ C O M P O N E N T = 6 4 0 2 ] = " D E P T H _ C O M P O N E N T " , r [ r . D E P T H _ S T E N C I L = 3 4 0 4 1 ] = " D E P T H _ S T E N C I L " } ) ( w | | ( w = { } ) ) ; v a r o e ; ( f u n c t i o n ( r ) { r [ r . T E X T U R E _ 2 D = 3 5 5 3 ] = " T E X T U R E _ 2 D " , r [ r . T E X T U R E _ C U B E _ M A P = 3 4 0 6 7 ] = " T E X T U R E _ C U B E _ M A P " , r [ r . T E X T U R E _ 2 D _ A R R A Y = 3 5 8 6 6 ] = " T E X T U R E _ 2 D _ A R R A Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X = 3 4 0 6 9 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X = 3 4 0 7 0 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ X " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y = 3 4 0 7 1 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y = 3 4 0 7 2 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Y " , r [ r . T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z = 3 4 0 7 3 ] = " T E X T U R E _ C U B E _ M A P _ P O S I T I V E _ Z " , r [ r . T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z = 3 4 0 7 4 ] = " T E X T U R E _ C U B E _ M A P _ N E G A T I V E _ Z " } ) ( o e | | ( o e = { } ) ) ; v a r M ; ( f u n c t i o n ( r ) { r [ r . U N S I G N E D _ B Y T E = 5 1 2 1 ] = " U N S I G N E D _ B Y T E " , r [ r . U N S I G N E D _ S H O R T = 5 1 2 3 ] = " U N S I G N E D _ S H O R T " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 = 3 3 6 3 5 ] = " U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 " , r [ r . U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 = 3 2 8 1 9 ] = " U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 " , r [ r . U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 = 3 2 8 2 0 ] = " U N S I G N E D _ S H O R T _ 5 _ 5 _ 5 _ 1 " , r [ r . U N S I G N E D _ I N T = 5 1 2 5 ] = " U N S I G N E D _ I N T " , r [ r . U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V = 3 5 8 9 9 ] = " U N S I G N E D _ I N T _ 1 0 F _ 1 1 F _ 1 1 F _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V = 3 3 6 4 0 ] = " U N S I G N E D _ I N T _ 2 _ 1 0 _ 1 0 _ 1 0 _ R E V " , r [ r . U N S I G N E D _ I N T _ 2 4 _ 8 = 3 4 0 4 2 ] = " U N S I G N E D _ I N T _ 2 4 _ 8 " , r [ r . U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V = 3 5 9 0 2 ] = " U N S I G N E D _ I N T _ 5 _ 9 _ 9 _ 9 _ R E V " , r [ r . B Y T E = 5 1 2 0 ] = " B Y T E " , r [ r . S H O R T = 5 1 2 2 ] = " S H O R T " , r [ r . I N T = 5 1 2 4 ] = " I N T " , r [ r . F L O A T = 5 1 2 6 ] = " F L O A T " , r [ r . F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V = 3 6 2 6 9 ] = " F L O A T _ 3 2 _ U N S I G N E D _ I N T _ 2 4 _ 8 _ R E V " , r [ r . H A L F _ F L O A T = 3 6 1 9 3 ] = " H A L F _ F L O A T " } ) ( M | | ( M = { } ) ) ; v a r y r ; ( f u n c t i o n ( r ) { r [ r . F L O A T = 0 ] = " F L O A T " , r [ r . I N T = 1 ] = " I N T " , r [ r . U I N T = 2 ] = " U I N T " } ) ( y r | | ( y r = { } ) ) ; v a r R t ; ( f u n c t i o n ( r ) { r [ r . N E A R E S T = 0 ] = " N E A R E S T " , r [ r . L I N E A R = 1 ] = " L I N E A R " } ) ( R t | | ( R t = { } ) ) ; v a r A e ; ( f u n c t i o n ( r ) { r [ r . C L A M P = 3 3 0 7 1 ] = " C L A M P " , r [ r . R E P E A T = 1 0 4 9 7 ] = " R E P E A T " , r [ r . M I R R O R E D _ R E P E A T = 3 3 6 4 8 ] = " M I R R O R E D _ R E P E A T " } ) ( A e | | ( A e = { } ) ) ; v a r o t ; ( f u n c t i o n ( r ) { r [ r . O F F = 0 ] = " O F F " , r [ r . P O W 2 = 1 ] = " P O W 2 " , r [ r . O N = 2 ] = " O N " , r [ r . O N _ M A N U A L = 3 ] = " O N _ M A N U A L " } ) ( o t | | ( o t = { } ) ) ; v a r l t ; ( f u n c t i o n ( r ) { r [ r . N P M = 0 ] = " N P M " , r [ r . U N P A C K = 1 ] = " U N P A C K " , r [ r . P M A = 2 ] = " P M A " , r [ r . N O _ P R E M U L T I P L I E D _ A L P H A = 0 ] = " N O _ P R E M U L T I P L I E D _ A L P H A " , r [ r . P R E M U L T I P L Y _ O N _ U P L O A D = 1 ] = " P R E M U L T I P L Y _ O N _ U P L O A D " , r [ r . P R E M U L T I P L Y _ A L P H A = 2 ] = " P R E M U L T I P L Y _ A L P H A " , r [ r . P R E M U L T I P L I E D _ A L P H A = 2 ] = " P R E M U L T I P L I E D _ A L P H A " } ) ( l t | | ( l t = { } ) ) ; v a r V t ; ( f u n c t i o n ( r ) { r [ r . N O = 0 ] = " N O " , r [ r . Y E S = 1 ] = " Y E S " , r [ r . A U T O = 2 ] = " A U T O " , r [ r . B L E N D = 0 ] = " B L E N D " , r [ r . C L E A R = 1 ] = " C L E A R " , r [ r . B L I T = 2 ] = " B L
* @ pixi / settings - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / settings is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r M a = { c r e a t e C a n v a s : f u n c t i o n ( r , t ) { 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 ( " c a n v a s " ) ; r e t u r n e . w i d t h = r , e . h e i g h t = t , e } , g e t W e b G L R e n d e r i n g C o n t e x t : f u n c t i o n ( ) { r e t u r n W e b G L R e n d e r i n g C o n t e x t } , g e t N a v i g a t o r : f u n c t i o n ( ) { r e t u r n n a v i g a t o r } , g e t B a s e U r l : f u n c t i o n ( ) { v a r r ; r e t u r n ( r = d o c u m e n t . b a s e U R I ) ! = = n u l l & & r ! = = v o i d 0 ? r : w i n d o w . l o c a t i o n . h r e f } , f e t c h : f u n c t i o n ( r , t ) { r e t u r n f e t c h ( r , t ) } } , U r = / i P h o n e / i , z i = / i P o d / i , q i = / i P a d / i , $ i = / \ b i O S - u n i v e r s a l ( ? : . + ) M a c \ b / i , G r = / \ b A n d r o i d ( ? : . + ) M o b i l e \ b / i , K i = / A n d r o i d / i , _ e = / ( ? : S D 4 9 3 0 U R | \ b S i l k ( ? : . + ) M o b i l e \ b ) / i , K e = / S i l k / i , C t = / W i n d o w s P h o n e / i , Z i = / \ b W i n d o w s ( ? : . + ) A R M \ b / i , Q i = / B l a c k B e r r y / i , J i = / B B 1 0 / i , t n = / O p e r a M i n i / i , e n = / \ b ( C r i O S | C h r o m e ) ( ? : . + ) M o b i l e / i , r n = / M o b i l e ( ? : . + ) F i r e f o x \ b / i , n n = f u n c t i o n ( r ) { r e t u r n t y p e o f r ! = " u n d e f i n e d " & & r . p l a t f o r m = = = " M a c I n t e l " & & t y p e o f r . m a x T o u c h P o i n t s = = " n u m b e r " & & r . m a x T o u c h P o i n t s > 1 & & t y p e o f M S S t r e a m = = " u n d e f i n e d " } ; f u n c t i o n N a ( r ) { r e t u r n f u n c t i o n ( t ) { r e t u r n t . t e s t ( r ) } } f u n c t i o n F a ( r ) { v a r t = { u s e r A g e n t : " " , p l a t f o r m : " " , m a x T o u c h P o i n t s : 0 } ; ! r & & t y p e o f n a v i g a t o r ! = " u n d e f i n e d " ? t = { u s e r A g e n t : n a v i g a t o r . u s e r A g e n t , p l a t f o r m : n a v i g a t o r . p l a t f o r m , m a x T o u c h P o i n t s : n a v i g a t o r . m a x T o u c h P o i n t s | | 0 } : t y p e o f r = = " s t r i n g " ? t . u s e r A g e n t = r : r & & r . u s e r A g e n t & & ( t = { u s e r A g e n t : r . u s e r A g e n t , p l a t f o r m : r . p l a t f o r m , m a x T o u c h P o i n t s : r . m a x T o u c h P o i n t s | | 0 } ) ; v a r e = t . u s e r A g e n t , i = e . s p l i t ( " [ F B A N " ) ; t y p e o f i [ 1 ] ! = " u n d e f i n e d " & & ( e = i [ 0 ] ) , i = e . s p l i t ( " T w i t t e r " ) , t y p e o f i [ 1 ] ! = " u n d e f i n e d " & & ( e = i [ 0 ] ) ; v a r n = N a ( e ) , a = { a p p l e : { p h o n e : n ( U r ) & & ! n ( C t ) , i p o d : n ( z i ) , t a b l e t : ! n ( U r ) & & ( n ( q i ) | | n n ( t ) ) & & ! n ( C t ) , u n i v e r s a l : n ( $ i ) , d e v i c e : ( n ( U r ) | | n ( z i ) | | n ( q i ) | | n ( $ i ) | | n n ( t ) ) & & ! n ( C t ) } , a m a z o n : { p h o n e : n ( _ e ) , t a b l e t : ! n ( _ e ) & & n ( K e ) , d e v i c e : n ( _ e ) | | n ( K e ) } , a n d r o i d : { p h o n e : ! n ( C t ) & & n ( _ e ) | | ! n ( C t ) & & n ( G r ) , t a b l e t : ! n ( C t ) & & ! n ( _ e ) & & ! n ( G r ) & & ( n ( K e ) | | n ( K i ) ) , d e v i c e : ! n ( C t ) & & ( n ( _ e ) | | n ( K e ) | | n ( G r ) | | n ( K i ) ) | | n ( / \ b o k h t t p \ b / i ) } , w i n d o w s : { p h o n e : n ( C t ) , t a b l e t : n ( Z i ) , d e v i c e : n ( C t ) | | n ( Z i ) } , o t h e r : { b l a c k b e r r y : n ( Q i ) , b l a c k b e r r y 1 0 : n ( J i ) , o p e r a : n ( t n ) , f i r e f o x : n ( r n ) , c h r o m e : n ( e n ) , d e v i c e : n ( Q i ) | | n ( J i ) | | n ( t n ) | | n ( r n ) | | n ( e n ) } , a n y : ! 1 , p h o n e : ! 1 , t a b l e t : ! 1 } ; r e t u r n a . a n y = a . a p p l e . d e v i c e | | a . a n d r o i d . d e v i c e | | a . w i n d o w s . d e v i c e | | a . o t h e r . d e v i c e , a . p h o n e = a . a p p l e . p h o n e | | a . a n d r o i d . p h o n e | | a . w i n d o w s . p h o n e , a . t a b l e t = a . a p p l e . t a b l e t | | a . a n d r o i d . t a b l e t | | a . w i n d o w s . t a b l e t , a } v a r s e = F a ( g l o b a l T h i s . n a v i g a t o r ) ; f u n c t i o n L a ( ) { r e t u r n ! s e . a p p l e . d e v i c e } f u n c t i o n D a ( r ) { v a r t = ! 0 ; i f ( s e . t a b l e t | | s e . p h o n e ) { i f ( s e . a p p l e . d e v i c e ) { v a r e = n a v i g a t o r . u s e r A g e n t . m a t c h ( / O S ( \ d + ) _ ( \ d + ) ? / ) ; i f ( e ) { v a r i = p a r s e I n t ( e [ 1 ] , 1 0 ) ; i < 1 1 & & ( t = ! 1 ) } } i f ( s e . a n d r o i d . d e v i c e ) { v a r e = n a v i g a t o r . u s e r A g e n t . m a t c h ( / A n d r o i d \ s ( [ 0 - 9 . ] * ) / ) ; i f ( e ) { v a r i = p a r s e I n t ( e [ 1 ] , 1 0 ) ; i < 7 & & ( t = ! 1 ) } } } r e t u r n t ? r : 4 } v a r S = { A D A P T E R : M a , M I P M A P _ T E X T U R E S : o t . P O W 2 , A N I S O T R O P I C _ L E V E L : 0 , R E S O L U T I O N : 1 , F I L T E R _ R E S O L U T I O N : 1 , F I L T E R _ M U L T I S A M P L E : J . N O N E , S P R I T E _ M A X _ T E X T U R E S : D a ( 3 2 ) , S P R I T E _ B A T C H _ S I Z E : 4 0 9 6 , R E N D E R _ O P T I O N S : { v i e w : n u l l , a n t i a l i a s : ! 1 , a u t o D e n s i t y : ! 1 , b a c k g r o u n d C o l o r : 0 , b a c k g r o u n d A l p h a : 1 , u s e C o n t e x t A l p h a : ! 0 , c l e a r B e f o r e R e n d e r : ! 0 , p r e s e r v e D r a w i n g B u f f e r : ! 1 , w i d t h : 8 0 0 , h e i g h t : 6 0 0 , l e g a c y : ! 1 } , G C _ M O D E : b r . A U T O , G C _ M A X _ I D L E : 6 0 * 6 0 , G C _ M A X _ C H E C K _ C O U N T : 6 0 * 1 0 , W R A P _ M O D E : A e . C L A M P , S C A L E _ M O D E : R t . L I N E A R , P R E C I S I O N _ V E R T E X : c t . H I G H , P R E C I S I O N _ F R A G M E N T : s e . a p p l e . d e v i c e ? c t . H I G H : c t . M E D I U M , C A N _ U P L O A D _ S A M E _ B U F F E R : L a ( ) , C R E A T E _ I M A G E _ B I T M A P : ! 1 , R O U N D _ P I X E L S : ! 1 } ; / * !
* @ pixi / utils - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / utils is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /var be={parse:Ca,format:Oa,resolve:Ba};function gt(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function an(r){var t=r.split("?")[0];return t.split("#")[0]}function Ua(r){return r.replace(/ [ . * + ? ^ $ { } ( ) | [ \ ] \ \ ] / g , "\\$&" ) } function Ga ( r , t , e ) { return r . replace ( new RegExp ( Ua ( t ) , "g" ) , e ) } function ka ( r , t ) { for ( var e = "" , i = 0 , n = - 1 , a = 0 , s , o = 0 ; o <= r . length ; ++ o ) { if ( o < r . length ) s = r . charCodeAt ( o ) ; else { if ( s === 47 ) break ; s = 47 } if ( s === 47 ) { if ( ! ( n === o - 1 || a === 1 ) ) if ( n !== o - 1 && a === 2 ) { if ( e . length < 2 || i !== 2 || e . charCodeAt ( e . length - 1 ) !== 46 || e . charCodeAt ( e . length - 2 ) !== 46 ) { if ( e . length > 2 ) { var h = e . lastIndexOf ( "/" ) ; if ( h !== e . length - 1 ) { h === - 1 ? ( e = "" , i = 0 ) : ( e = e . slice ( 0 , h ) , i = e . length - 1 - e . lastIndexOf ( "/" ) ) , n = o , a = 0 ; continue } } else if ( e . length === 2 || e . length === 1 ) { e = "" , i = 0 , n = o , a = 0 ; continue } } t && ( e . length > 0 ? e += "/.." : e = ".." , i = 2 ) } else e . length > 0 ? e += "/" + r . slice ( n + 1 , o ) : e = r . slice ( n + 1 , o ) , i = o - n - 1 ; n = o , a = 0 } else s === 46 && a !== - 1 ? ++ a : a = - 1 } return e } var st = { toPosix : function ( r ) { return Ga ( r , "\\" , "/" ) } , isUrl : function ( r ) { return /^https?:/ . test ( this . toPosix ( r ) ) } , isDataUrl : function ( r ) { return /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i . test ( r ) } , hasProtocol : function ( r ) { return /^[^/:]+:\// . test ( this . toPosix ( r ) ) } , getProtocol : function ( r ) { gt ( r ) , r = this . toPosix ( r ) ; var t = "" , e = /^file:\/\/\// . exec ( r ) , i = /^[^/:]+:\/\// . exec ( r ) , n = /^[^/:]+:\// . exec ( r ) ; if ( e || i || n ) { var a = ( e == null ? void 0 : e [ 0 ] ) || ( i == null ? void 0 : i [ 0 ] ) || ( n == null ? void 0 : n [ 0 ] ) ; t = a , r = r . slice ( a . length ) } return t } , toAbsolute : function ( r , t , e ) { if ( this . isDataUrl ( r ) ) return r ; var i = an ( this . toPosix ( t != null ? t : S . ADAPTER . getBaseUrl ( ) ) ) , n = an ( this . toPosix ( e != null ? e : this . rootname ( i ) ) ) ; if ( gt ( r ) , r = this . toPosix ( r ) , r . startsWith ( "/" ) ) return st . join ( n , r . slice ( 1 ) ) ; var a = this . isAbsolute ( r ) ? r : this . join ( i , r ) ; return a } , normalize : function ( r ) { if ( r = this . toPosix ( r ) , gt ( r ) , r . length === 0 ) return "." ; var t = "" , e = r . startsWith ( "/" ) ; this . hasProtocol ( r ) && ( t = this . rootname ( r ) , r = r . slice ( t . length ) ) ; var i = r . endsWith ( "/" ) ; return r = ka ( r , ! 1 ) , r . length > 0 && i && ( r += "/" ) , e ? "/" + r : t + r } , isAbsolute : function ( r ) { return gt ( r ) , r = this . toPosix ( r ) , this . hasProtocol ( r ) ? ! 0 : r . startsWith ( "/" ) } , join : function ( ) { for ( var r = arguments , t , e = [ ] , i = 0 ; i < arguments . length ; i ++ ) e [ i ] = r [ i ] ; if ( e . length === 0 ) return "." ; for ( var n , a = 0 ; a < e . length ; ++ a ) { var s = e [ a ] ; if ( gt ( s ) , s . length > 0 ) if ( n === void 0 ) n = s ; else { var o = ( t = e [ a - 1 ] ) !== null && t !== void 0 ? t : "" ; this . extname ( o ) ? n += "/../" + s : n += "/" + s } } return n === void 0 ? "." : this . normalize ( n ) } , dirname : function ( r ) { if ( gt ( r ) , r . length === 0 ) return "." ; r = this . toPosix ( r ) ; var t = r . charCodeAt ( 0 ) , e = t === 47 , i = - 1 , n = ! 0 , a = this . getProtocol ( r ) , s = r ; r = r . slice ( a . length ) ; for ( var o = r . length - 1 ; o >= 1 ; -- o ) if ( t = r . charCodeAt ( o ) , t === 47 ) { if ( ! n ) { i = o ; break } } else n = ! 1 ; return i === - 1 ? e ? "/" : this . isUrl ( s ) ? a + r : a : e && i === 1 ? "//" : a + r . slice ( 0 , i ) } , rootname : function ( r ) { gt ( r ) , r = this . toPosix ( r ) ; var t = "" ; if ( r . startsWith ( "/" ) ? t = "/" : t = this . getProtocol ( r ) , this . isUrl ( r ) ) { var e = r . indexOf ( "/" , t . length ) ; e !== - 1 ? t = r . slice ( 0 , e ) : t = r , t . endsWith ( "/" ) || ( t += "/" ) } return t } , basename : function ( r , t ) { gt ( r ) , t && gt ( t ) , r = this . toPosix ( r ) ; var e = 0 , i = - 1 , n = ! 0 , a ; if ( t !== void 0 && t . length > 0 && t . length <= r . length ) { if ( t . length === r . length && t === r ) return "" ; var s = t . length - 1 , o = - 1 ; for ( a = r . length - 1 ; a >= 0 ; -- a ) { var h = r . charCodeAt ( a ) ; if ( h === 47 ) { if ( ! n ) { e = a + 1 ; break } } else o === - 1 && ( n = ! 1 , o = a + 1 ) , s >= 0 && ( h === t . charCodeAt ( s ) ? -- s === - 1 && ( i = a ) : ( s = - 1 , i = o ) ) } return e === i ? i = o : i === - 1 && ( i = r . length ) , r . slice ( e , i ) } for ( a = r . length - 1 ; a >= 0 ; -- a ) if ( r . charCodeAt ( a ) === 47 ) { if ( ! n ) { e = a + 1 ; break } } else i === - 1 && ( n = ! 1 , i = a + 1 ) ; return i === - 1 ? "" : r . slice ( e , i ) } , extname : function ( r ) { gt ( r ) , r = this . toPosix ( r ) ; for ( var t = - 1 , e = 0 , i = - 1 , n = ! 0 , a = 0 , s = r . length - 1 ; s >= 0 ; -- s ) { var o = r . charCodeAt ( s ) ; if ( o === 47 ) { if ( ! n ) { e = s + 1 ; break } continue } i === - 1 && ( n = ! 1 , i = s + 1 ) , o === 46 ? t === - 1 ? t = s : a !== 1 && ( a = 1 ) : t !== - 1 && ( a = - 1 ) } return t === - 1 || i === - 1 || a === 0 || a === 1 && t === i - 1 && t === e + 1 ? "" : r . slice ( t , i ) } , parse : function ( r ) { gt ( r ) ; var t = { root : "" , dir : "" , base : "" , ext : "" , name : "" } ; if ( r . length === 0 ) return t ; r = this . toPosix ( r ) ; var e = r . charCodeAt ( 0 ) , i = this . isAbsolute ( r ) , n ; t . root = this . rootname ( r ) , i || this . hasProtocol ( r ) ? n = 1 : n = 0 ; for ( var a = - 1 , s = 0 , o = - 1 , h = ! 0 , u = r . length - 1 , l = 0 ; u >= n ; -- u ) { if ( e
% c % c % c PixiJS ` +on+" - \u 2730 "+r+ ` \u2730 % c % c http : //www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665
` ,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,e)}else globalThis.console&&globalThis.console.log("PixiJS "+on+" - "+r+" - http://www.pixijs.com/");sn=!0}}var kr;function Ha(){return typeof kr=="undefined"&&(kr=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:S.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!S.ADAPTER.getWebGLRenderingContext())return!1;var e=S.ADAPTER.createCanvas(),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!!(i&&i.getContextAttributes().stencil);if(i){var a=i.getExtension("WEBGL_lose_context");a&&a.loseContext()}return i=null,n}catch{return!1}}()),kr}var ja="#f0f8ff",Wa="#faebd7",Va="#00ffff",Ya="#7fffd4",za="#f0ffff",qa="#f5f5dc", $ a="#ffe4c4",Ka="#000000",Za="#ffebcd",Qa="#0000ff",Ja="#8a2be2",ts="#a52a2a",es="#deb887",rs="#5f9ea0",is="#7fff00",ns="#d2691e",as="#ff7f50",ss="#6495ed",os="#fff8dc",hs="#dc143c",us="#00ffff",ls="#00008b",fs="#008b8b",cs="#b8860b",ds="#a9a9a9",vs="#006400",ps="#a9a9a9",_s="#bdb76b",gs="#8b008b",ms="#556b2f",ys="#ff8c00",bs="#9932cc",Es="#8b0000",Ts="#e9967a",xs="#8fbc8f",As="#483d8b",ws="#2f4f4f",Rs="#2f4f4f",Ss="#00ced1",Ps="#9400d3",Is="#ff1493",Cs="#00bfff",Os="#696969",Bs="#696969",Ms="#1e90ff",Ns="#b22222",Fs="#fffaf0",Ls="#228b22",Ds="#ff00ff",Us="#dcdcdc",Gs="#f8f8ff",ks="#daa520",Xs="#ffd700",Hs="#808080",js="#008000",Ws="#adff2f",Vs="#808080",Ys="#f0fff0",zs="#ff69b4",qs="#cd5c5c", $ s="#4b0082",Ks="#fffff0",Zs="#f0e68c",Qs="#fff0f5",Js="#e6e6fa",to="#7cfc00",eo="#fffacd",ro="#add8e6",io="#f08080",no="#e0ffff",ao="#fafad2",so="#d3d3d3",oo="#90ee90",ho="#d3d3d3",uo="#ffb6c1",lo="#ffa07a",fo="#20b2aa",co="#87cefa",vo="#778899",po="#778899",_o="#b0c4de",go="#ffffe0",mo="#00ff00",yo="#32cd32",bo="#faf0e6",Eo="#ff00ff",To="#800000",xo="#66cdaa",Ao="#0000cd",wo="#ba55d3",Ro="#9370db",So="#3cb371",Po="#7b68ee",Io="#00fa9a",Co="#48d1cc",Oo="#c71585",Bo="#191970",Mo="#f5fffa",No="#ffe4e1",Fo="#ffe4b5",Lo="#ffdead",Do="#000080",Uo="#fdf5e6",Go="#808000",ko="#6b8e23",Xo="#ffa500",Ho="#ff4500",jo="#da70d6",Wo="#eee8aa",Vo="#98fb98",Yo="#afeeee",zo="#db7093",qo="#ffefd5", $ o="#ffdab9",Ko="#cd853f",Zo="#ffc0cb",Qo="#dda0dd",Jo="#b0e0e6",th="#800080",eh="#663399",rh="#ff0000",ih="#bc8f8f",nh="#4169e1",ah="#8b4513",sh="#fa8072",oh="#f4a460",hh="#2e8b57",uh="#fff5ee",lh="#a0522d",fh="#c0c0c0",ch="#87ceeb",dh="#6a5acd",vh="#708090",ph="#708090",_h="#fffafa",gh="#00ff7f",mh="#4682b4",yh="#d2b48c",bh="#008080",Eh="#d8bfd8",Th="#ff6347",xh="#40e0d0",Ah="#ee82ee",wh="#f5deb3",Rh="#ffffff",Sh="#f5f5f5",Ph="#ffff00",Ih="#9acd32",Ch={aliceblue:ja,antiquewhite:Wa,aqua:Va,aquamarine:Ya,azure:za,beige:qa,bisque: $ a,black:Ka,blanchedalmond:Za,blue:Qa,blueviolet:Ja,brown:ts,burlywood:es,cadetblue:rs,chartreuse:is,chocolate:ns,coral:as,cornflowerblue:ss,cornsilk:os,crimson:hs,cyan:us,darkblue:ls,darkcyan:fs,darkgoldenrod:cs,darkgray:ds,darkgreen:vs,darkgrey:ps,darkkhaki:_s,darkmagenta:gs,darkolivegreen:ms,darkorange:ys,darkorchid:bs,darkred:Es,darksalmon:Ts,darkseagreen:xs,darkslateblue:As,darkslategray:ws,darkslategrey:Rs,darkturquoise:Ss,darkviolet:Ps,deeppink:Is,deepskyblue:Cs,dimgray:Os,dimgrey:Bs,dodgerblue:Ms,firebrick:Ns,floralwhite:Fs,forestgreen:Ls,fuchsia:Ds,gainsboro:Us,ghostwhite:Gs,goldenrod:ks,gold:Xs,gray:Hs,green:js,greenyellow:Ws,grey:Vs,honeydew:Ys,hotpink:zs,indianred:qs,indigo: $ s,ivory:Ks,khaki:Zs,lavenderblush:Qs,lavender:Js,lawngreen:to,lemonchiffon:eo,lightblue:ro,lightcoral:io,lightcyan:no,lightgoldenrodyellow:ao,lightgray:so,lightgreen:oo,lightgrey:ho,lightpink:uo,lightsalmon:lo,lightseagreen:fo,lightskyblue:co,lightslategray:vo,lightslategrey:po,lightsteelblue:_o,lightyellow:go,lime:mo,limegreen:yo,linen:bo,magenta:Eo,maroon:To,mediumaquamarine:xo,mediumblue:Ao,med
Deprecated since v ` +r):(i=i.split( `
` ).splice(e).join( `
` ),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+ `
Deprecated since v ` +r),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+ `
Deprecated since v ` +r),console.warn(i))),ln[t]=!0}}var fn={},Mt=Object.create(null),Zt=Object.create(null);(function(){function r(t,e,i){this.canvas=S.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||S.RESOLUTION,this.resize(t,e)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),r})();function Fh(r){var t=r.width,e=r.height,i=r.getContext("2d",{willReadFrequently:!0}),n=i.getImageData(0,0,t,e),a=n.data,s=a.length,o={top:null,left:null,right:null,bottom:null},h=null,u,l,f;for(u=0;u<s;u+=4)a[u+3]!==0&&(l=u/4%t,f=~~(u/4/t),o.top===null&&(o.top=f),(o.left===null||l<o.left)&&(o.left=l),(o.right===null||o.right<l)&&(o.right=l+1),(o.bottom===null||o.bottom<f)&&(o.bottom=f));return o.top!==null&&(t=o.right-o.left,e=o.bottom-o.top+1,h=i.getImageData(o.left,o.top,t,e)),{height:e,width:t,data:h}}var Ze;function Lh(r,t){if(t===void 0&&(t=globalThis.location),r.indexOf("data:")===0)return"";t=t||globalThis.location,Ze||(Ze=document.createElement("a")),Ze.href=r;var e=be.parse(Ze.href),i=!e.port&&t.port===""||e.port===t.port;return e.hostname!==t.hostname||!i||e.protocol!==t.protocol?"anonymous":""}function qt(r,t){var e=S.RETINA_PREFIX.exec(r);return e?parseFloat(e[1]):t!==void 0?t:1}/*!
* @ pixi / extensions - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / extensions is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /var Le=function(){return Le=Object.assign||function(t){for(var e=arguments,i,n=1,a=arguments.length;n<a;n++){i=e[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},Le.apply(this,arguments)},L;(function(r){r.Application="application",r.RendererPlugin="renderer-webgl-plugin",r.CanvasRendererPlugin="renderer-canvas-plugin",r.Loader="loader",r.LoadParser="load-parser",r.ResolveParser="resolve-parser",r.CacheParser="cache-parser",r.DetectionParser="detection-parser"})(L||(L={}));var cn=function(r){if(typeof r=="function"||typeof r=="object"&&r.extension){if(!r.extension)throw new Error("Extension class must have an extension object");var t=typeof r.extension!="object"?{type:r.extension}:r.extension;r=Le(Le({},t),{ref:r})}if(typeof r=="object")r=Le({},r);else throw new Error("Invalid extension type");return typeof r.type=="string"&&(r.type=[r.type]),r},Tt={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var r=arguments,t=this,e=[],i=0;i<arguments.length;i++)e[i]=r[i];return e.map(cn).forEach(function(n){n.type.forEach(function(a){var s,o;return(o=(s=t._removeHandlers)[a])===null||o===void 0?void 0:o.call(s,n)})}),this},add:function(){for(var r=arguments,t=this,e=[],i=0;i<arguments.length;i++)e[i]=r[i];return e.map(cn).forEach(function(n){n.type.forEach(function(a){var s=t._addHandlers,o=t._queue;s[a]?s[a](n):(o[a]=o[a]||[],o[a].push(n))})}),this},handle:function(r,t,e){var i=this._addHandlers=this._addHandlers||{},n=this._removeHandlers=this._removeHandlers||{};if(i[r]||n[r])throw new Error("Extension type "+r+" already has a handler");i[r]=t,n[r]=e;var a=this._queue;return a[r]&&(a[r].forEach(function(s){return t(s)}),delete a[r]),this},handleByMap:function(r,t){return this.handle(r,function(e){t[e.name]=e.ref},function(e){delete t[e.name]})},handleByList:function(r,t){return this.handle(r,function(e){var i,n;t.push(e.ref),r===L.Loader&&((n=(i=e.ref).add)===null||n===void 0||n.call(i))},function(e){var i=t.indexOf(e.ref);i!==-1&&t.splice(i,1)})}};/ * !
* @ pixi / runner - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / runner is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /var at=function(){function r(t){this.items=[],this._name=t,this._aliasCount=0}return r.prototype.emit=function(t,e,i,n,a,s,o,h){if(arguments.length>8)throw new Error("max arguments reached");var u=this,l=u.name,f=u.items;this._aliasCount++;for(var c=0,d=f.length;c<d;c++)f[c][l](t,e,i,n,a,s,o,h);return f===this.items&&this._aliasCount--,this},r.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},r.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},r.prototype.remove=function(t){var e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},r.prototype.contains=function(t){return this.items.indexOf(t)!==-1},r.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},r.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(r.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),r}();Object.defineProperties(at.prototype,{dispatch:{value:at.prototype.emit},run:{value:at.prototype.emit}});/ * !
* @ pixi / ticker - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / ticker is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / S . T A R G E T _ F P M S = . 0 6 ; v a r X e ; ( f u n c t i o n ( r ) { r [ r . I N T E R A C T I O N = 5 0 ] = " I N T E R A C T I O N " , r [ r . H I G H = 2 5 ] = " H I G H " , r [ r . N O R M A L = 0 ] = " N O R M A L " , r [ r . L O W = - 2 5 ] = " L O W " , r [ r . U T I L I T Y = - 5 0 ] = " U T I L I T Y " } ) ( X e | | ( X e = { } ) ) ; v a r X r = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i , n ) { e = = = v o i d 0 & & ( e = n u l l ) , i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = ! 1 ) , t h i s . n e x t = n u l l , t h i s . p r e v i o u s = n u l l , t h i s . _ d e s t r o y e d = ! 1 , t h i s . f n = t , t h i s . c o n t e x t = e , t h i s . p r i o r i t y = i , t h i s . o n c e = n } r e t u r n r . p r o t o t y p e . m a t c h = f u n c t i o n ( t , e ) { r e t u r n e = = = v o i d 0 & & ( e = n u l l ) , t h i s . f n = = = t & & t h i s . c o n t e x t = = = e } , r . p r o t o t y p e . e m i t = f u n c t i o n ( t ) { t h i s . f n & & ( t h i s . c o n t e x t ? t h i s . f n . c a l l ( t h i s . c o n t e x t , t ) : t h i s . f n ( t ) ) ; v a r e = t h i s . n e x t ; r e t u r n t h i s . o n c e & & t h i s . d e s t r o y ( ! 0 ) , t h i s . _ d e s t r o y e d & & ( t h i s . n e x t = n u l l ) , e } , r . p r o t o t y p e . c o n n e c t = f u n c t i o n ( t ) { t h i s . p r e v i o u s = t , t . n e x t & & ( t . n e x t . p r e v i o u s = t h i s ) , t h i s . n e x t = t . n e x t , t . n e x t = t h i s } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( t ) { t = = = v o i d 0 & & ( t = ! 1 ) , t h i s . _ d e s t r o y e d = ! 0 , t h i s . f n = n u l l , t h i s . c o n t e x t = n u l l , t h i s . p r e v i o u s & & ( t h i s . p r e v i o u s . n e x t = t h i s . n e x t ) , t h i s . n e x t & & ( t h i s . n e x t . p r e v i o u s = t h i s . p r e v i o u s ) ; v a r e = t h i s . n e x t ; r e t u r n t h i s . n e x t = t ? n u l l : e , t h i s . p r e v i o u s = n u l l , e } , r } ( ) , Y t = f u n c t i o n ( ) { f u n c t i o n r ( ) { v a r t = t h i s ; t h i s . a u t o S t a r t = ! 1 , t h i s . d e l t a T i m e = 1 , t h i s . l a s t T i m e = - 1 , t h i s . s p e e d = 1 , t h i s . s t a r t e d = ! 1 , t h i s . _ r e q u e s t I d = n u l l , t h i s . _ m a x E l a p s e d M S = 1 0 0 , t h i s . _ m i n E l a p s e d M S = 0 , t h i s . _ p r o t e c t e d = ! 1 , t h i s . _ l a s t F r a m e = - 1 , t h i s . _ h e a d = n e w X r ( n u l l , n u l l , 1 / 0 ) , t h i s . d e l t a M S = 1 / S . T A R G E T _ F P M S , t h i s . e l a p s e d M S = 1 / S . T A R G E T _ F P M S , t h i s . _ t i c k = f u n c t i o n ( e ) { t . _ r e q u e s t I d = n u l l , t . s t a r t e d & & ( t . u p d a t e ( e ) , t . s t a r t e d & & t . _ r e q u e s t I d = = = n u l l & & t . _ h e a d . n e x t & & ( t . _ r e q u e s t I d = r e q u e s t A n i m a t i o n F r a m e ( t . _ t i c k ) ) ) } } r e t u r n r . p r o t o t y p e . _ r e q u e s t I f N e e d e d = f u n c t i o n ( ) { t h i s . _ r e q u e s t I d = = = n u l l & & t h i s . _ h e a d . n e x t & & ( t h i s . l a s t T i m e = p e r f o r m a n c e . n o w ( ) , t h i s . _ l a s t F r a m e = t h i s . l a s t T i m e , t h i s . _ r e q u e s t I d = r e q u e s t A n i m a t i o n F r a m e ( t h i s . _ t i c k ) ) } , r . p r o t o t y p e . _ c a n c e l I f N e e d e d = f u n c t i o n ( ) { t h i s . _ r e q u e s t I d ! = = n u l l & & ( c a n c e l A n i m a t i o n F r a m e ( t h i s . _ r e q u e s t I d ) , t h i s . _ r e q u e s t I d = n u l l ) } , r . p r o t o t y p e . _ s t a r t I f P o s s i b l e = f u n c t i o n ( ) { t h i s . s t a r t e d ? t h i s . _ r e q u e s t I f N e e d e d ( ) : t h i s . a u t o S t a r t & & t h i s . s t a r t ( ) } , r . p r o t o t y p e . a d d = f u n c t i o n ( t , e , i ) { r e t u r n i = = = v o i d 0 & & ( i = X e . N O R M A L ) , t h i s . _ a d d L i s t e n e r ( n e w X r ( t , e , i ) ) } , r . p r o t o t y p e . a d d O n c e = f u n c t i o n ( t , e , i ) { r e t u r n i = = = v o i d 0 & & ( i = X e . N O R M A L ) , t h i s . _ a d d L i s t e n e r ( n e w X r ( t , e , i , ! 0 ) ) } , r . p r o t o t y p e . _ a d d L i s t e n e r = f u n c t i o n ( t ) { v a r e = t h i s . _ h e a d . n e x t , i = t h i s . _ h e a d ; i f ( ! e ) t . c o n n e c t ( i ) ; e l s e { f o r ( ; e ; ) { i f ( t . p r i o r i t y > e . p r i o r i t y ) { t . c o n n e c t ( i ) ; b r e a k } i = e , e = e . n e x t } t . p r e v i o u s | | t . c o n n e c t ( i ) } r e t u r n t h i s . _ s t a r t I f P o s s i b l e ( ) , t h i s } , r . p r o t o t y p e . r e m o v e = f u n c t i o n ( t , e ) { f o r ( v a r i = t h i s . _ h e a d . n e x t ; i ; ) i . m a t c h ( t , e ) ? i = i . d e s t r o y ( ) : i = i . n e x t ; r e t u r n t h i s . _ h e a d . n e x t | | t h i s . _ c a n c e l I f N e e d e d ( ) , t h i s } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " c o u n t " , { g e t : f u n c t i o n ( ) { i f ( ! t h i s . _ h e a d ) r e t u r n 0 ; f o r ( v a r t = 0 , e = t h i s . _ h e a d ; e = e . n e x t ; ) t + + ; r e t u r n t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . s t a r t = f u n c t i o n ( ) { t h i s . s t a r t e d | | ( t h i s . s t a r t e d = ! 0 , t h i s . _ r e q u e s t I f N e e d e d ( ) ) } , r . p r o t o t y p e . s t o p = f u n c t i o n ( ) { t h i s . s t a r t e d & & ( t h i s . s t a r t e d = ! 1 , t h i s . _ c a n c e l I f N e e d e d ( ) ) } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( ) { i f ( ! t h i s . _ p r o t e c t e d ) { t h i s . s t o p ( ) ; f o r ( v a r t = t h i s . _ h e a d . n e x t ; t ; ) t = t . d e s t r o y ( ! 0 ) ; t h i s . _ h e a d . d e s t r o y ( ) , t h i s . _ h e a d = n u l l } } , r . p r o t o t y p e . u p d a t e = f u n c t i o n ( t ) { t = = = v o i d 0 & & ( t = p e r f o r m a n c e . n o w ( ) ) ; v a r e ; i f ( t > t h i s . l a s t T i m e ) { i f ( e = t h i s . e l a p s e d M S = t - t h i s . l a s t T i m e , e > t h i s . _ m a x E l a p s e d M S & & ( e = t h i s . _ m a x E l a p s e d M S ) , e * = t h i s . s p e e d , t h i s . _ m i n E l a p s e d M S ) { v a r i = t - t h i s . _ l a s t F r a m e | 0 ; i f ( i < t h i s . _ m i n E l a p s e d M S ) r e t u r n ; t h i s . _ l a s t F r a m e = t - i % t h i s . _ m i n E l a p s e d M S } t h i s . d e l t a M S = e , t h i s . d e l t a T i m e = t h i s . d e l t a M S * S . T A R G E T _ F P M S ; f o r ( v a r n = t h i s . _ h e a d , a = n . n e x t ; a ; ) a = a . e m i t ( t h i s . d e l t a T i m e ) ; n . n e x t | | t h i s . _ c a n c e l I f N e e d e d ( ) } e l s e t h i s . d e l t a T i m e = t h i s . d e l t a M S = t h i s . e l a p s e d M S = 0 ; t h i s . l a s t T i m e = t } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " F P S " , { g e t : f u n c t i o n ( ) { r e t u r n 1 e 3 / t h i s . e l a p s e d M S } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " m i n F P S " , { g e t : f u n c t i o n ( ) { r e t u r n 1 e 3 / t h i s . _ m a x E l a p s e d M S } , s e t : f u n c t i o n ( t ) { v a r e = M a t h . m i n ( t h i s . m a x F P S , t ) , i = M a t h . m i n ( M a t h . m a x ( 0 , e ) / 1 e 3 , S . T A R G E T _ F P M S ) ; t h i s . _ m a x E l a p s e d M S = 1 / i } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " m a x F P S " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ m i n E l a p s e d M S ? M a t h . r o u n d ( 1 e 3 / t h i s . _ m i n E l a p s e d M S ) : 0 } , s e t : f u n c t i o n ( t ) { i f ( t = = = 0 ) t h i s . _ m i n E l a p s e d M S = 0 ; e l s e { v a r e = M a t h . m a x ( t h i s . m i n F P S , t ) ; t h i s . _ m i n E l a p s e d M S = 1 / ( e
* @ pixi / math - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / math is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r T r = M a t h . P I * 2 , D h = 1 8 0 / M a t h . P I , U h = M a t h . P I / 1 8 0 , n t ; ( f u n c t i o n ( r ) { r [ r . P O L Y = 0 ] = " P O L Y " , r [ r . R E C T = 1 ] = " R E C T " , r [ r . C I R C = 2 ] = " C I R C " , r [ r . E L I P = 3 ] = " E L I P " , r [ r . R R E C = 4 ] = " R R E C " } ) ( n t | | ( n t = { } ) ) ; v a r r t = f u n c t i o n ( ) { f u n c t i o n r ( t , e ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , t h i s . x = 0 , t h i s . y = 0 , t h i s . x = t , t h i s . y = e } r e t u r n r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { r e t u r n n e w r ( t h i s . x , t h i s . y ) } , r . p r o t o t y p e . c o p y F r o m = f u n c t i o n ( t ) { r e t u r n t h i s . s e t ( t . x , t . y ) , t h i s } , r . p r o t o t y p e . c o p y T o = f u n c t i o n ( t ) { r e t u r n t . s e t ( t h i s . x , t h i s . y ) , t } , r . p r o t o t y p e . e q u a l s = f u n c t i o n ( t ) { r e t u r n t . x = = = t h i s . x & & t . y = = = t h i s . y } , r . p r o t o t y p e . s e t = f u n c t i o n ( t , e ) { r e t u r n t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = t ) , t h i s . x = t , t h i s . y = e , t h i s } , r . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " [ @ p i x i / m a t h : P o i n t x = " + t h i s . x + " y = " + t h i s . y + " ] " } , r } ( ) , Q e = [ n e w r t , n e w r t , n e w r t , n e w r t ] , W = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i , n ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = 0 ) , t h i s . x = N u m b e r ( t ) , t h i s . y = N u m b e r ( e ) , t h i s . w i d t h = N u m b e r ( i ) , t h i s . h e i g h t = N u m b e r ( n ) , t h i s . t y p e = n t . R E C T } r e t u r n O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " l e f t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . x } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " r i g h t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . x + t h i s . w i d t h } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " t o p " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . y } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " b o t t o m " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . y + t h i s . h e i g h t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r , " E M P T Y " , { g e t : f u n c t i o n ( ) { r e t u r n n e w r ( 0 , 0 , 0 , 0 ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { r e t u r n n e w r ( t h i s . x , t h i s . y , t h i s . w i d t h , t h i s . h e i g h t ) } , r . p r o t o t y p e . c o p y F r o m = f u n c t i o n ( t ) { r e t u r n t h i s . x = t . x , t h i s . y = t . y , t h i s . w i d t h = t . w i d t h , t h i s . h e i g h t = t . h e i g h t , t h i s } , r . p r o t o t y p e . c o p y T o = f u n c t i o n ( t ) { r e t u r n t . x = t h i s . x , t . y = t h i s . y , t . w i d t h = t h i s . w i d t h , t . h e i g h t = t h i s . h e i g h t , t } , r . p r o t o t y p e . c o n t a i n s = f u n c t i o n ( t , e ) { r e t u r n t h i s . w i d t h < = 0 | | t h i s . h e i g h t < = 0 ? ! 1 : t > = t h i s . x & & t < t h i s . x + t h i s . w i d t h & & e > = t h i s . y & & e < t h i s . y + t h i s . h e i g h t } , r . p r o t o t y p e . i n t e r s e c t s = f u n c t i o n ( t , e ) { i f ( ! e ) { v a r i = t h i s . x < t . x ? t . x : t h i s . x , n = t h i s . r i g h t > t . r i g h t ? t . r i g h t : t h i s . r i g h t ; i f ( n < = i ) r e t u r n ! 1 ; v a r a = t h i s . y < t . y ? t . y : t h i s . y , s = t h i s . b o t t o m > t . b o t t o m ? t . b o t t o m : t h i s . b o t t o m ; r e t u r n s > a } v a r o = t h i s . l e f t , h = t h i s . r i g h t , u = t h i s . t o p , l = t h i s . b o t t o m ; i f ( h < = o | | l < = u ) r e t u r n ! 1 ; v a r f = Q e [ 0 ] . s e t ( t . l e f t , t . t o p ) , c = Q e [ 1 ] . s e t ( t . l e f t , t . b o t t o m ) , d = Q e [ 2 ] . s e t ( t . r i g h t , t . t o p ) , v = Q e [ 3 ] . s e t ( t . r i g h t , t . b o t t o m ) ; i f ( d . x < = f . x | | c . y < = f . y ) r e t u r n ! 1 ; v a r p = M a t h . s i g n ( e . a * e . d - e . b * e . c ) ; i f ( p = = = 0 | | ( e . a p p l y ( f , f ) , e . a p p l y ( c , c ) , e . a p p l y ( d , d ) , e . a p p l y ( v , v ) , M a t h . m a x ( f . x , c . x , d . x , v . x ) < = o | | M a t h . m i n ( f . x , c . x , d . x , v . x ) > = h | | M a t h . m a x ( f . y , c . y , d . y , v . y ) < = u | | M a t h . m i n ( f . y , c . y , d . y , v . y ) > = l ) ) r e t u r n ! 1 ; v a r _ = p * ( c . y - f . y ) , g = p * ( f . x - c . x ) , b = _ * o + g * u , T = _ * h + g * u , x = _ * o + g * l , m = _ * h + g * l ; i f ( M a t h . m a x ( b , T , x , m ) < = _ * f . x + g * f . y | | M a t h . m i n ( b , T , x , m ) > = _ * v . x + g * v . y ) r e t u r n ! 1 ; v a r y = p * ( f . y - d . y ) , E = p * ( d . x - f . x ) , P = y * o + E * u , A = y * h + E * u , R = y * o + E * l , O = y * h + E * l ; r e t u r n ! ( M a t h . m a x ( P , A , R , O ) < = y * f . x + E * f . y | | M a t h . m i n ( P , A , R , O ) > = y * v . x + E * v . y ) } , r . p r o t o t y p e . p a d = f u n c t i o n ( t , e ) { r e t u r n t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = t ) , t h i s . x - = t , t h i s . y - = e , t h i s . w i d t h + = t * 2 , t h i s . h e i g h t + = e * 2 , t h i s } , r . p r o t o t y p e . f i t = f u n c t i o n ( t ) { v a r e = M a t h . m a x ( t h i s . x , t . x ) , i = M a t h . m i n ( t h i s . x + t h i s . w i d t h , t . x + t . w i d t h ) , n = M a t h . m a x ( t h i s . y , t . y ) , a = M a t h . m i n ( t h i s . y + t h i s . h e i g h t , t . y + t . h e i g h t ) ; r e t u r n t h i s . x = e , t h i s . w i d t h = M a t h . m a x ( i - e , 0 ) , t h i s . y = n , t h i s . h e i g h t = M a t h . m a x ( a - n , 0 ) , t h i s } , r . p r o t o t y p e . c e i l = f u n c t i o n ( t , e ) { t = = = v o i d 0 & & ( t = 1 ) , e = = = v o i d 0 & & ( e = . 0 0 1 ) ; v a r i = M a t h . c e i l ( ( t h i s . x + t h i s . w i d t h - e ) * t ) / t , n = M a t h . c e i l ( ( t h i s . y + t h i s . h e i g h t - e ) * t ) / t ; r e t u r n t h i s . x = M a t h . f l o o r ( ( t h i s . x + e ) * t ) / t , t h i s . y = M a t h . f l o o r ( ( t h i s . y + e ) * t ) / t , t h i s . w i d t h = i - t h i s . x , t h i s . h e i g h t = n - t h i s . y , t h i s } , r . p r o t o t y p e . e n l a r g e = f u n c t i o n ( t ) { v a r e = M a t h . m i n ( t h i s . x , t . x ) , i = M a t h . m a x ( t h i s . x + t h i s . w i d t h , t . x + t . w i d t h ) , n = M a t h . m i n ( t h i s . y , t . y ) , a = M a t h . m a x ( t h i s . y + t h i s . h e i g h t , t . y + t . h e i g h t ) ; r e t u r n t h i s . x = e , t h i s . w i d t h = i - e , t h i s . y = n , t h i s . h e i g h t = a - n , t h i s } , r . p r o t o t y p e . t o S t r i n g = f u n c t i o n ( ) { r e t u r n " [ @ p i x i / m a t h : R e c t a n g l e x = " + t h i s . x + " y = " + t h i s . y + " w i d t h = " + t h i s . w i d t h + " h e i g h t = " + t h i s . h e i g h t + " ] " } , r } ( ) , G h = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , i = = = v o i d 0 & & ( i = 0 ) , t h i s . x = t , t h i s . y = e , t h i s . r a d i u s = i , t h i s . t y p e = n t . C I R C } r e t u r n r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { r
* @ pixi / core - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / core is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /S.PREFER_ENV=se.any?kt.WEBGL:kt.WEBGL2;S.STRICT_TEXTURE_CACHE=!1;var pi=[];function ia(r,t){if(!r)return null;var e="";if(typeof r=="string"){var i=/ \ . ( \ w { 3 , 4 } ) ( ? : $ | \ ? | # ) / i . exec ( r ) ; i && ( e = i [ 1 ] . toLowerCase ( ) ) } for ( var n = pi . length - 1 ; n >= 0 ; -- n ) { var a = pi [ n ] ; if ( a . test && a . test ( r , e ) ) return new a ( r , t ) } throw new Error ( "Unrecognized source type to auto-detect Resource" ) } / * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r _ i = f u n c t i o n ( r , t ) { r e t u r n _ i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , _ i ( r , t ) } ; f u n c t i o n q ( r , t ) { _ i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r g i = f u n c t i o n ( ) { r e t u r n g i = O b j e c t . a s s i g n | | f u n c t i o n ( t ) { f o r ( v a r e = a r g u m e n t s , i , n = 1 , a = a r g u m e n t s . l e n g t h ; n < a ; n + + ) { i = e [ n ] ; f o r ( v a r s i n i ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( i , s ) & & ( t [ s ] = i [ s ] ) } r e t u r n t } , g i . a p p l y ( t h i s , a r g u m e n t s ) } ; f u n c t i o n W h ( r , t ) { v a r e = { } ; f o r ( v a r i i n r ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( r , i ) & & t . i n d e x O f ( i ) < 0 & & ( e [ i ] = r [ i ] ) ; i f ( r ! = n u l l & & t y p e o f O b j e c t . g e t O w n P r o p e r t y S y m b o l s = = " f u n c t i o n " ) f o r ( v a r n = 0 , i = O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( r ) ; n < i . l e n g t h ; n + + ) t . i n d e x O f ( i [ n ] ) < 0 & & O b j e c t . p r o t o t y p e . p r o p e r t y I s E n u m e r a b l e . c a l l ( r , i [ n ] ) & & ( e [ i [ n ] ] = r [ i [ n ] ] ) ; r e t u r n e } v a r H e = f u n c t i o n ( ) { f u n c t i o n r ( t , e ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = 0 ) , t h i s . _ w i d t h = t , t h i s . _ h e i g h t = e , t h i s . d e s t r o y e d = ! 1 , t h i s . i n t e r n a l = ! 1 , t h i s . o n R e s i z e = n e w a t ( " s e t R e a l S i z e " ) , t h i s . o n U p d a t e = n e w a t ( " u p d a t e " ) , t h i s . o n E r r o r = n e w a t ( " o n E r r o r " ) } r e t u r n r . p r o t o t y p e . b i n d = f u n c t i o n ( t ) { t h i s . o n R e s i z e . a d d ( t ) , t h i s . o n U p d a t e . a d d ( t ) , t h i s . o n E r r o r . a d d ( t ) , ( t h i s . _ w i d t h | | t h i s . _ h e i g h t ) & & t h i s . o n R e s i z e . e m i t ( t h i s . _ w i d t h , t h i s . _ h e i g h t ) } , r . p r o t o t y p e . u n b i n d = f u n c t i o n ( t ) { t h i s . o n R e s i z e . r e m o v e ( t ) , t h i s . o n U p d a t e . r e m o v e ( t ) , t h i s . o n E r r o r . r e m o v e ( t ) } , r . p r o t o t y p e . r e s i z e = f u n c t i o n ( t , e ) { ( t ! = = t h i s . _ w i d t h | | e ! = = t h i s . _ h e i g h t ) & & ( t h i s . _ w i d t h = t , t h i s . _ h e i g h t = e , t h i s . o n R e s i z e . e m i t ( t , e ) ) } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " v a l i d " , { g e t : f u n c t i o n ( ) { r e t u r n ! ! t h i s . _ w i d t h & & ! ! t h i s . _ h e i g h t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . u p d a t e = f u n c t i o n ( ) { t h i s . d e s t r o y e d | | t h i s . o n U p d a t e . e m i t ( ) } , r . p r o t o t y p e . l o a d = f u n c t i o n ( ) { r e t u r n P r o m i s e . r e s o l v e ( t h i s ) } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " w i d t h " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w i d t h } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " h e i g h t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ h e i g h t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , r . p r o t o t y p e . s t y l e = f u n c t i o n ( t , e , i ) { r e t u r n ! 1 } , r . p r o t o t y p e . d i s p o s e = f u n c t i o n ( ) { } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( ) { t h i s . d e s t r o y e d | | ( t h i s . d e s t r o y e d = ! 0 , t h i s . d i s p o s e ( ) , t h i s . o n E r r o r . r e m o v e A l l ( ) , t h i s . o n E r r o r = n u l l , t h i s . o n R e s i z e . r e m o v e A l l ( ) , t h i s . o n R e s i z e = n u l l , t h i s . o n U p d a t e . r e m o v e A l l ( ) , t h i s . o n U p d a t e = n u l l ) } , r . t e s t = f u n c t i o n ( t , e ) { r e t u r n ! 1 } , r } ( ) , u e = f u n c t i o n ( r ) { q ( t , r ) ; f u n c t i o n t ( e , i ) { v a r n = t h i s , a = i | | { } , s = a . w i d t h , o = a . h e i g h t ; i f ( ! s | | ! o ) t h r o w n e w E r r o r ( " B u f f e r R e s o u r c e w i d t h o r h e i g h t i n v a l i d " ) ; r e t u r n n = r . c a l l ( t h i s , s , o ) | | t h i s , n . d a t a = e , n } r e t u r n t . p r o t o t y p e . u p l o a d = f u n c t i o n ( e , i , n ) { v a r a = e . g l ; a . p i x e l S t o r e i ( a . U N P A C K _ P R E M U L T I P L Y _ A L P H A _ W E B G L , i . a l p h a M o d e = = = l t . U N P A C K ) ; v a r s = i . r e a l W i d t h , o = i . r e a l H e i g h t ; r e t u r n n . w i d t h = = = s & & n . h e i g h t = = = o ? a . t e x S u b I m a g e 2 D ( i . t a r g e t , 0 , 0 , 0 , s , o , i . f o r m a t , n . t y p e , t h i s . d a t a ) : ( n . w i d t h = s , n . h e i g h t = o , a . t e x I m a g e 2 D ( i . t a r g e t , 0 , n . i n t e r n a l F o r m a t , s , o , 0 , i . f o r m a t , n . t y p e , t h i s . d a t a ) ) , ! 0 } , t . p r o t o t y p e . d i s p o s e = f u n c t i o n ( ) { t h i s . d a t a = n u l l } , t . t e s t = f u n c t i o n ( e ) { r e t u r n e i n s t a n c e o f F l o a t 3 2 A r r a y | | e i n s t a n c e o f U i n t 8 A r r a y | | e i n s t a n c e o f U i n t 3 2 A r r a y } , t } ( H e ) , V h = { s c a l e M o d e : R t . N E A R E S T , f o r m a t : w . R G B A , a l p h a M o d e : l t . N P M } , k = f u n c t i o n ( r ) { q ( t , r ) ; f u n c t i o n t ( e , i ) { e = = = v o i d 0 & & ( e = n u l l ) , i = = = v o i d 0 & & ( i = n u l l ) ; v a r n = r . c a l l ( t h i s ) | | t h i s ; i = i | | { } ; v a r a = i . a l p h a M o d e , s = i . m i p m a p , o = i . a n i s o t r o p i c L e v e l , h = i . s c a l e M o d e , u = i . w i d t h , l = i . h e i g h t , f = i . w r a p M o d e , c = i . f o r m a t , d = i . t y p e , v = i . t a r g e t , p = i . r e s o l u t i o n , _ = i . r e s o u r c e O p t i o n s ; r e t u r n e & & ! ( e i n s t a n c e o f H e ) & & ( e = i a ( e , _ ) , e . i n t e r n a l = ! 0 ) , n . r e s o l u t i o n = p | | S . R E S O L U T I O N , n . w i d t h = M a t h . r o u n d ( ( u | | 0 ) * n . r e s o l u t i o n ) / n . r e s o l u t i o n , n . h e i g h t = M a t h . r o u n d ( ( l | | 0 ) * n . r e s o l u t i o n ) / n . r e s o l u t i o n , n . _ m i p m a p = s ! = = v o i d 0 ? s : S . M I P M A P _ T E X T U R E S , n . a n i s o t r o p i c L e v e l = o ! = = v o i d 0 ? o : S . A N I S O T R O P I C _ L E V E L , n . _ w r a p M o d e = f | | S . W R A P _ M O D E , n . _ s c a l e M o d e = h ! = = v o i d 0 ? h : S . S C A L E _ M O D E , n . f o r m a t = c | | w . R G B A , n . t y p e = d | | M . U N S I G N E D _ B Y T E , n . t a r g e t = v | | o e . T E X T U R E _ 2 D , n . a l p h a M o d e = a ! = = v o i d 0 ? a : l t . U N P A C K , n . u i d = k e ( ) , n . t o u c h e d = 0 , n . i s P o w e r O f T w o = ! 1 , n . _ r e f r e s h P O T ( ) , n . _ g l T e x t u r e s = { } , n . d i r t y I d = 0 , n . d i r t y S t y l e I d = 0 , n . c a c h e I d = n u l l , n . v a l i d = u > 0 & & l > 0 , n . t e x t u r e C a c h e I d s = [ ] , n . d e s t r o y e d = ! 1 , n . r e s o u r c e = n u l l , n . _ b a t c h E n a b l e d = 0 , n . _ b a t c h L o c a t i
` ).map(function(u,l){return l+": "+u}),i=r.getShaderInfoLog(t),n=i.split( `
` ),a={},s=n.map(function(u){return parseFloat(u.replace(/^ERROR \: 0 \: ([ \d ]+) \: .* $ /," $ 1"))}).filter(function(u){return u&&!a[u]?(a[u]=!0,!0):!1}),o=[""];s.forEach(function(u){e[u-1]="%c"+e[u-1]+"%c",o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var h=e.join( `
` );o[0]=h,console.error(i),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,o),console.groupEnd()}function _u(r,t,e,i){r.getProgramParameter(t,r.LINK_STATUS)||(r.getShaderParameter(e,r.COMPILE_STATUS)||mn(r,e),r.getShaderParameter(i,r.COMPILE_STATUS)||mn(r,i),console.error("PixiJS Error: Could not initialize shader."),r.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",r.getProgramInfoLog(t)))}function Wr(r){for(var t=new Array(r),e=0;e<t.length;e++)t[e]=!1;return t}function ua(r,t){switch(r){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return Wr(2*t);case"bvec3":return Wr(3*t);case"bvec4":return Wr(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var la={},Re=la;function gu(){if(Re===la||Re&&Re.isContextLost()){var r=S.ADAPTER.createCanvas(),t=void 0;S.PREFER_ENV>=kt.WEBGL2&&(t=r.getContext("webgl2",{})),t||(t=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Re=t}return Re}var rr;function mu(){if(!rr){rr=ct.MEDIUM;var r=gu();if(r&&r.getShaderPrecisionFormat){var t=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);rr=t.precision?ct.HIGH:ct.MEDIUM}}return rr}function yn(r,t,e){if(r.substring(0,9)!=="precision"){var i=t;return t===ct.HIGH&&e!==ct.HIGH&&(i=ct.MEDIUM),"precision "+i+ ` float ;
` +r}else if(e!==ct.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}var yu={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fa(r){return yu[r]}var ir=null,bn={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function ca(r,t){if(!ir){var e=Object.keys(bn);ir={};for(var i=0;i<e.length;++i){var n=e[i];ir[r[n]]=bn[n]}}return ir[t]}var xe=[{test:function(r){return r.type==="float"&&r.size===1&&!r.isArray},code:function(r){return `
if ( uv [ "`+r+'" ] !== ud [ "'+r+`" ] . value )
{
ud [ "`+r+'" ] . value = uv [ "'+r+`" ]
gl . uniform1f ( ud [ "`+r+'" ] . location , uv [ "'+r+`" ] )
}
` }},{test:function(r,t){return(r.type==="sampler2D"||r.type==="samplerCube"||r.type==="sampler2DArray")&&r.size===1&&!r.isArray&&(t==null||t.castToBaseTexture!==void 0)},code:function(r){return ` t = syncData . textureCount ++ ;
renderer . texture . bind ( uv [ "`+r+`" ] , t ) ;
if ( ud [ "`+r+`" ] . value !== t )
{
ud [ "`+r+`" ] . value = t ;
gl . uniform1i ( ud [ "`+r+`" ] . location , t ) ;
; // eslint-disable-line max-len
} ` }},{test:function(r,t){return r.type==="mat3"&&r.size===1&&!r.isArray&&t.a!==void 0},code:function(r){return `
gl . uniformMatrix3fv ( ud [ "`+r+'" ] . location , false , uv [ "'+r+`" ] . toArray ( true ) ) ;
` },codeUbo:function(r){return `
var ` +r+"_matrix = uv."+r+ ` . toArray ( true ) ;
data [ offset ] = ` +r+ ` _matrix [ 0 ] ;
data [ offset + 1 ] = ` +r+ ` _matrix [ 1 ] ;
data [ offset + 2 ] = ` +r+ ` _matrix [ 2 ] ;
data [ offset + 4 ] = ` +r+ ` _matrix [ 3 ] ;
data [ offset + 5 ] = ` +r+ ` _matrix [ 4 ] ;
data [ offset + 6 ] = ` +r+ ` _matrix [ 5 ] ;
data [ offset + 8 ] = ` +r+ ` _matrix [ 6 ] ;
data [ offset + 9 ] = ` +r+ ` _matrix [ 7 ] ;
data [ offset + 10 ] = ` +r+ ` _matrix [ 8 ] ;
` }},{test:function(r,t){return r.type==="vec2"&&r.size===1&&!r.isArray&&t.x!==void 0},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v . x || cv [ 1 ] !== v . y )
{
cv [ 0 ] = v . x ;
cv [ 1 ] = v . y ;
gl . uniform2f ( ud [ "`+r+`" ] . location , v . x , v . y ) ;
} ` },codeUbo:function(r){return `
v = uv . ` +r+ ` ;
data [ offset ] = v . x ;
data [ offset + 1 ] = v . y ;
` }},{test:function(r){return r.type==="vec2"&&r.size===1&&!r.isArray},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2f ( ud [ "`+r+`" ] . location , v [ 0 ] , v [ 1 ] ) ;
}
` }},{test:function(r,t){return r.type==="vec4"&&r.size===1&&!r.isArray&&t.width!==void 0},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v . x || cv [ 1 ] !== v . y || cv [ 2 ] !== v . width || cv [ 3 ] !== v . height )
{
cv [ 0 ] = v . x ;
cv [ 1 ] = v . y ;
cv [ 2 ] = v . width ;
cv [ 3 ] = v . height ;
gl . uniform4f ( ud [ "`+r+`" ] . location , v . x , v . y , v . width , v . height )
} ` },codeUbo:function(r){return `
v = uv . ` +r+ ` ;
data [ offset ] = v . x ;
data [ offset + 1 ] = v . y ;
data [ offset + 2 ] = v . width ;
data [ offset + 3 ] = v . height ;
` }},{test:function(r){return r.type==="vec4"&&r.size===1&&!r.isArray},code:function(r){return `
cv = ud [ "`+r+`" ] . value ;
v = uv [ "`+r+`" ] ;
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4f ( ud [ "`+r+`" ] . location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] )
} ` }}],bu={float: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1f ( location , v ) ;
} ` ,vec2: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2f ( location , v [ 0 ] , v [ 1 ] )
} ` ,vec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3f ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] )
} ` ,vec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4f ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,int: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` ,ivec2: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2i ( location , v [ 0 ] , v [ 1 ] ) ;
} ` ,ivec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] ) ;
} ` ,ivec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,uint: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1ui ( location , v ) ;
} ` ,uvec2: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2ui ( location , v [ 0 ] , v [ 1 ] ) ;
} ` ,uvec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3ui ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] ) ;
} ` ,uvec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4ui ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,bool: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` ,bvec2: `
if ( cv [ 0 ] != v [ 0 ] || cv [ 1 ] != v [ 1 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
gl . uniform2i ( location , v [ 0 ] , v [ 1 ] ) ;
} ` ,bvec3: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
gl . uniform3i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] ) ;
} ` ,bvec4: `
if ( cv [ 0 ] !== v [ 0 ] || cv [ 1 ] !== v [ 1 ] || cv [ 2 ] !== v [ 2 ] || cv [ 3 ] !== v [ 3 ] )
{
cv [ 0 ] = v [ 0 ] ;
cv [ 1 ] = v [ 1 ] ;
cv [ 2 ] = v [ 2 ] ;
cv [ 3 ] = v [ 3 ] ;
gl . uniform4i ( location , v [ 0 ] , v [ 1 ] , v [ 2 ] , v [ 3 ] ) ;
} ` ,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` ,samplerCube: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` ,sampler2DArray: `
if ( cv !== v )
{
cu . value = v ;
gl . uniform1i ( location , v ) ;
} ` },Eu={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function Tu(r,t){var e,i=[ `
var v = null ;
var cv = null ;
var cu = null ;
var t = 0 ;
var gl = renderer . gl ;
` ];for(var n in r.uniforms){var a=t[n];if(!a){!((e=r.uniforms[n])===null||e===void 0)&&e.group&&(r.uniforms[n].ubo?i.push( `
renderer . shader . syncUniformBufferGroup ( uv . ` +n+", '"+n+ ` ' ) ;
` ):i.push( `
renderer . shader . syncUniformGroup ( uv . ` +n+ ` , syncData ) ;
` ));continue}for(var s=r.uniforms[n],o=!1,h=0;h<xe.length;h++)if(xe[h].test(a,s)){i.push(xe[h].code(n,s)),o=!0;break}if(!o){var u=a.size===1&&!a.isArray?bu:Eu,l=u[a.type].replace("location",'ud["'+n+'"].location');i.push( `
cu = ud [ "`+n+`" ] ;
cv = cu . value ;
v = uv [ "`+n+`" ] ;
` +l+";")}}return new Function("ud","uv","renderer","syncData",i.join( `
` ))}var xu=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join( `
` );function Au(r){for(var t="",e=0;e<r;++e)e>0&&(t+= `
else ` ),e<r-1&&(t+="if(test == "+e+".0){}");return t}function wu(r,t){if(r===0)throw new Error("Invalid value of ` 0 ` passed to ` checkMaxIfStatementsInShader ` ");for(var e=t.createShader(t.FRAGMENT_SHADER);;){var i=xu.replace(/%forloop%/gi,Au(r));if(t.shaderSource(e,i),t.compileShader(e),!t.getShaderParameter(e,t.COMPILE_STATUS))r=r/2|0;else break}return r}var Se;function Ru(){if(typeof Se=="boolean")return Se;try{var r=new Function("param1","param2","param3","return param1[param2] === param3;");Se=r({a:"b"},"a","b")===!0}catch{Se=!1}return Se}var Su= ` varying vec2 vTextureCoord ;
uniform sampler2D uSampler ;
void main ( void ) {
gl _FragColor *= texture2D ( uSampler , vTextureCoord ) ;
} ` ,Pu= ` attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
uniform mat3 projectionMatrix ;
varying vec2 vTextureCoord ;
void main ( void ) {
gl _Position = vec4 ( ( projectionMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = aTextureCoord ;
}
` ,Iu=0,nr={},Ve=function(){function r(t,e,i){i===void 0&&(i="pixi-shader"),this.id=Iu++,this.vertexSrc=t||r.defaultVertexSrc,this.fragmentSrc=e||r.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(i=i.replace(/ \s +/g,"-"),nr[i]?(nr[i]++,i+="-"+nr[i]):nr[i]=1,this.vertexSrc="#define SHADER_NAME "+i+ `
` +this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+ `
` +this.fragmentSrc,this.vertexSrc=yn(this.vertexSrc,S.PRECISION_VERTEX,ct.HIGH),this.fragmentSrc=yn(this.fragmentSrc,S.PRECISION_FRAGMENT,mu())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(r,"defaultVertexSrc",{get:function(){return Pu},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultFragmentSrc",{get:function(){return Su},enumerable:!1,configurable:!0}),r.from=function(t,e,i){var n=t+e,a=fn[n];return a||(fn[n]=a=new r(t,e,i)),a},r}(),Lr=function(){function r(t,e){this.uniformBindCount=0,this.program=t,e?e instanceof he?this.uniformGroup=e:this.uniformGroup=new he(e):this.uniformGroup=new he({}),this.disposeRunner=new at("disposeShader")}return r.prototype.checkUniformExists=function(t,e){if(e.uniforms[t])return!0;for(var i in e.uniforms){var n=e.uniforms[i];if(n.group&&this.checkUniformExists(t,n))return!0}return!1},r.prototype.destroy=function(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()},Object.defineProperty(r.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),r.from=function(t,e,i){var n=Ve.from(t,e);return new r(n,i)},r}(),Vr=0,Yr=1,zr=2,qr=3, $ r=4,Kr=5,Ye=function(){function r(){this.data=0,this.blendMode=B.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(r.prototype,"blend",{get:function(){return!!(this.data&1<<Vr)},set:function(t){!!(this.data&1<<Vr)!==t&&(this.data^=1<<Vr)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"offsets",{get:function(){return!!(this.data&1<<Yr)},set:function(t){!!(this.data&1<<Yr)!==t&&(this.data^=1<<Yr)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"culling",{get:function(){return!!(this.data&1<<zr)},set:function(t){!!(this.data&1<<zr)!==t&&(this.data^=1<<zr)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"depthTest",{get:function(){return!!(this.data&1<<qr)},set:function(t){!!(this.data&1<<qr)!==t&&(this.data^=1<<qr)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"depthMask",{get:function(){return!!(this.data&1<<Kr)},set:function(t){!!(this.data&1<<Kr)!==t&&(this.data^=1<<Kr)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<< $ r)},set:function(t){!!(this.data&1<< $ r)!==t&&(this.data^=1<< $ r)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blend=t!==B.NONE,this._blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(t){this.offsets=!!t,this._polygonOffset=t},enumerable:!1,configurable:!0}),r.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},r.for2d=function(){var t=new r;return t.depthTest=!1,t.blend=!0,t},r}(),Cu= ` varying vec2 vTextureCoord ;
uniform sampler2D uSampler ;
void main ( void ) {
gl _FragColor = texture2D ( uSampler , vTextureCoord ) ;
}
` ,Ou= ` attribute vec2 aVertexPosition ;
uniform mat3 projectionMatrix ;
varying vec2 vTextureCoord ;
uniform vec4 inputSize ;
uniform vec4 outputFrame ;
vec4 filterVertexPosition ( void )
{
vec2 position = aVertexPosition * max ( outputFrame . zw , vec2 ( 0. ) ) + outputFrame . xy ;
return vec4 ( ( projectionMatrix * vec3 ( position , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
}
vec2 filterTextureCoord ( void )
{
return aVertexPosition * ( outputFrame . zw * inputSize . zw ) ;
}
void main ( void )
{
gl _Position = filterVertexPosition ( ) ;
vTextureCoord = filterTextureCoord ( ) ;
}
` ,Bu=function(r){q(t,r);function t(e,i,n){var a=this,s=Ve.from(e||t.defaultVertexSrc,i||t.defaultFragmentSrc);return a=r.call(this,s,n)||this,a.padding=0,a.resolution=S.FILTER_RESOLUTION,a.multisample=S.FILTER_MULTISAMPLE,a.enabled=!0,a.autoFit=!0,a.state=new Ye,a}return t.prototype.apply=function(e,i,n,a,s){e.applyFilter(this,i,n,a)},Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(e){this._resolution=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultVertexSrc",{get:function(){return Ou},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return Cu},enumerable:!1,configurable:!0}),t}(Lr),Mu= ` attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
uniform mat3 projectionMatrix ;
uniform mat3 otherMatrix ;
varying vec2 vMaskCoord ;
varying vec2 vTextureCoord ;
void main ( void )
{
gl _Position = vec4 ( ( projectionMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = aTextureCoord ;
vMaskCoord = ( otherMatrix * vec3 ( aTextureCoord , 1.0 ) ) . xy ;
}
` ,Nu= ` varying vec2 vMaskCoord ;
varying vec2 vTextureCoord ;
uniform sampler2D uSampler ;
uniform sampler2D mask ;
uniform float alpha ;
uniform float npmAlpha ;
uniform vec4 maskClamp ;
void main ( void )
{
float clip = step ( 3.5 ,
step ( maskClamp . x , vMaskCoord . x ) +
step ( maskClamp . y , vMaskCoord . y ) +
step ( vMaskCoord . x , maskClamp . z ) +
step ( vMaskCoord . y , maskClamp . w ) ) ;
vec4 original = texture2D ( uSampler , vTextureCoord ) ;
vec4 masky = texture2D ( mask , vMaskCoord ) ;
float alphaMul = 1.0 - npmAlpha * ( 1.0 - masky . a ) ;
original *= ( alphaMul * masky . r * alpha * clip ) ;
gl _FragColor = original ;
}
` ,En=new ft,da=function(){function r(t,e){this._texture=t,this.mapCoord=new ft,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof e=="undefined"?.5:e,this.isSimple=!1}return Object.defineProperty(r.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),r.prototype.multiplyUvs=function(t,e){e===void 0&&(e=t);for(var i=this.mapCoord,n=0;n<t.length;n+=2){var a=t[n],s=t[n+1];e[n]=a*i.a+s*i.c+i.tx,e[n+1]=a*i.b+s*i.d+i.ty}return e},r.prototype.update=function(t){var e=this._texture;if(!e||!e.valid||!t&&this._textureID===e._updateID)return!1;this._textureID=e._updateID,this._updateID++;var i=e._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var n=e.orig,a=e.trim;a&&(En.set(n.width/a.width,0,0,n.height/a.height,-a.x/a.width,-a.y/a.height),this.mapCoord.append(En));var s=e.baseTexture,o=this.uClampFrame,h=this.clampMargin/s.resolution,u=this.clampOffset;return o[0]=(e._frame.x+h+u)/s.width,o[1]=(e._frame.y+h+u)/s.height,o[2]=(e._frame.x+e._frame.width-h+u)/s.width,o[3]=(e._frame.y+e._frame.height-h+u)/s.height,this.uClampOffset[0]=u/s.realWidth,this.uClampOffset[1]=u/s.realHeight,this.isSimple=e._frame.width===s.width&&e._frame.height===s.height&&e.rotate===0,!0},r}(),Fu=function(r){q(t,r);function t(e,i,n){var a=this,s=null;return typeof e!="string"&&i===void 0&&n===void 0&&(s=e,e=void 0,i=void 0,n=void 0),a=r.call(this,e||Mu,i||Nu,n)||this,a.maskSprite=s,a.maskMatrix=new ft,a}return Object.defineProperty(t.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),t.prototype.apply=function(e,i,n,a){var s=this._maskSprite,o=s._texture;!o.valid||(o.uvMatrix||(o.uvMatrix=new da(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,s).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=s.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,i,n,a))},t}(Bu),Lu=function(){function r(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return r.prototype.setMaskStack=function(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)},r.prototype.push=function(t,e){var i=e;if(!i.isMaskData){var n=this.maskDataPool.pop()||new pu;n.pooled=!0,n.maskObject=e,i=n}var a=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(i.copyCountersOrReset(a),i._colorMask=a?a._colorMask:15,i.autoDetect&&this.detect(i),i._target=t,i.type!==et.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case et.SCISSOR:this.renderer.scissor.push(i);break;case et.STENCIL:this.renderer.stencil.push(i);break;case et.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break;case et.COLOR:this.pushColorMask(i);break}i.type===et.SPRITE&&this.maskStack.push(i)},r.prototype.pop=function(t){var e=this.maskStack.pop();if(!(!e||e._target!==t)){if(e.enabled)switch(e.type){case et.SCISSOR:this.renderer.scissor.pop(e);break;case et.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case et.SPRITE:this.popSpriteMask(e);break;case et.COLOR:this.popColorMask(e);break}if(e.reset(),e.pooled&&this.maskDataPool.push(e),this.maskStack.length!==0){var i=this.maskStack[this.maskStack.length-1];i.type===et.SPRITE&&i._filters&&(i._filters[0].maskSprite=i.maskObject)}}},r.prototype.detect=function(t){var e=t.maskObject;e?e.isSprite?t.type=et.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=et.SCISSOR:t.type=et.STENCIL:t.type=et.COLOR},r.prototype.pushSpriteMask=function(t){var e,i,n=t.maskObject,a=t._target,s=t._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new Fu]));var o=this.renderer,h=o.renderTexture,u,l;if(h
data [ offset ] = v ;
` ,vec2: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
` ,vec3: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 2 ] = v [ 2 ] ;
` ,vec4: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 2 ] = v [ 2 ] ;
data [ offset + 3 ] = v [ 3 ] ;
` ,mat2: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 4 ] = v [ 2 ] ;
data [ offset + 5 ] = v [ 3 ] ;
` ,mat3: `
data [ offset ] = v [ 0 ] ;
data [ offset + 1 ] = v [ 1 ] ;
data [ offset + 2 ] = v [ 2 ] ;
data [ offset + 4 ] = v [ 3 ] ;
data [ offset + 5 ] = v [ 4 ] ;
data [ offset + 6 ] = v [ 5 ] ;
data [ offset + 8 ] = v [ 6 ] ;
data [ offset + 9 ] = v [ 7 ] ;
data [ offset + 10 ] = v [ 8 ] ;
` ,mat4: `
for ( var i = 0 ; i < 16 ; i ++ )
{
data [ offset + i ] = v [ i ] ;
}
` },pa={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function ju(r){for(var t=r.map(function(h){return{data:h,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,a=0;a<t.length;a++){var s=t[a];if(e=pa[s.data.type],s.data.size>1&&(e=Math.max(e,16)*s.data.size),s.dataLen=e,i%e!==0&&i<16){var o=i%e%16;i+=o,n+=o}i+e>16?(n=Math.ceil(n/16)*16,s.offset=n,n+=e,i=e):(s.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:t,size:n}}function Wu(r,t){var e=[];for(var i in r)t[i]&&e.push(t[i]);return e.sort(function(n,a){return n.index-a.index}),e}function Vu(r,t){if(!r.autoManage)return{size:0,syncFunc:Xu};for(var e=Wu(r.uniforms,t),i=ju(e),n=i.uboElements,a=i.size,s=[ `
var v = null ;
var v2 = null ;
var cv = null ;
var t = 0 ;
var gl = renderer . gl
var index = 0 ;
var data = buffer . data ;
` ],o=0;o<n.length;o++){for(var h=n[o],u=r.uniforms[h.data.name],l=h.data.name,f=!1,c=0;c<xe.length;c++){var d=xe[c];if(d.codeUbo&&d.test(h.data,u)){s.push("offset = "+h.offset/4+";",xe[c].codeUbo(h.data.name,u)),f=!0;break}}if(!f)if(h.data.size>1){var v=fa(h.data.type),p=Math.max(pa[h.data.type]/16,1),_=v/p,g=(4-_%4)%4;s.push( `
cv = ud . ` +l+ ` . value ;
v = uv . ` +l+ ` ;
offset = ` +h.offset/4+ ` ;
t = 0 ;
for ( var i = 0 ; i < ` +h.data.size*p+ ` ; i ++ )
{
for ( var j = 0 ; j < ` +_+ ` ; j ++ )
{
data [ offset ++ ] = v [ t ++ ] ;
}
offset += ` +g+ ` ;
}
` )}else{var b=Hu[h.data.type];s.push( `
cv = ud . ` +l+ ` . value ;
v = uv . ` +l+ ` ;
offset = ` +h.offset/4+ ` ;
` +b+ ` ;
` )}}return s.push( `
renderer . buffer . update ( buffer ) ;
` ),{size:a,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join( `
` ))}}var Yu=function(){function r(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return r.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},r}();function zu(r,t){for(var e={},i=t.getProgramParameter(r,t.ACTIVE_ATTRIBUTES),n=0;n<i;n++){var a=t.getActiveAttrib(r,n);if(a.name.indexOf("gl_")!==0){var s=ca(t,a.type),o={type:s,name:a.name,size:fa(s),location:t.getAttribLocation(r,a.name)};e[a.name]=o}}return e}function qu(r,t){for(var e={},i=t.getProgramParameter(r,t.ACTIVE_UNIFORMS),n=0;n<i;n++){var a=t.getActiveUniform(r,n),s=a.name.replace(/ \[ .*? \] $ /,""),o=!!a.name.match(/ \[ .*? \] $ /),h=ca(t,a.type);e[s]={name:s,index:n,type:h,size:a.size,isArray:o,value:ua(h,a.size)}}return e}function $ u(r,t){var e=gn(r,r.VERTEX_SHADER,t.vertexSrc),i=gn(r,r.FRAGMENT_SHADER,t.fragmentSrc),n=r.createProgram();if(r.attachShader(n,e),r.attachShader(n,i),r.linkProgram(n),r.getProgramParameter(n,r.LINK_STATUS)||_u(r,n,e,i),t.attributeData=zu(n,r),t.uniformData=qu(n,r),!/^[ \t ]*#[ \t ]*version[ \t ]+300[ \t ]+es[ \t ]* $ /m.test(t.vertexSrc)){var a=Object.keys(t.attributeData);a.sort(function(l,f){return l>f?1:-1});for(var s=0;s<a.length;s++)t.attributeData[a[s]].location=s,r.bindAttribLocation(n,s,a[s]);r.linkProgram(n)}r.deleteShader(e),r.deleteShader(i);var o={};for(var s in t.uniformData){var h=t.uniformData[s];o[s]={location:r.getUniformLocation(n,s),value:ua(h.type,h.size)}}var u=new Yu(n,o);return u}var Ku=0,ar={textureCount:0,uboCount:0},Zu=function(){function r(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Ku++}return r.prototype.systemCheck=function(){if(!Ru())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},r.prototype.contextChange=function(t){this.gl=t,this.reset()},r.prototype.bind=function(t,e){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;var i=t.program,n=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==i&&(this.program=i,this.gl.useProgram(n.program)),e||(ar.textureCount=0,ar.uboCount=0,this.syncUniformGroup(t.uniformGroup,ar)),n},r.prototype.setUniforms=function(t){var e=this.shader.program,i=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(i.uniformData,t,this.renderer)},r.prototype.syncUniformGroup=function(t,e){var i=this.getGlProgram();(!t.static||t.dirtyId!==i.uniformDirtyGroups[t.id])&&(i.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,i,e))},r.prototype.syncUniforms=function(t,e,i){var n=t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t);n(e.uniformData,t.uniforms,this.renderer,i)},r.prototype.createSyncGroups=function(t){var e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=Tu(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]},r.prototype.syncUniformBufferGroup=function(t,e){var i=this.getGlProgram();if(!t.static||t.dirtyId!==0||!i.uniformGroups[t.id]){t.dirtyId=0;var n=i.uniformGroups[t.id]||this.createSyncBufferGroup(t,i,e);t.buffer.update(),n(i.uniformData,t.uniforms,this.renderer,ar,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,i.uniformBufferBindings[e])},r.prototype.createSyncBufferGroup=function(t,e,i){var n=this.renderer.gl;this.renderer.buffer.bind(t.buffer);var a=this.gl.getUniformBlockIndex(e.program,i);e.uniformBufferBindings[i]=this.shader.uniformBindCount,n.uniformBlockBinding(e.program,a,this.shader.uniformBindCount),this.shader.uniformBindCount++;var s=this.getSignature(t,this.shader.program.uniformData,"ubo"),o=this._uboCache[s];if(o||(o=this._uboCache[s]=Vu(t,this.shader.program.uniformData)),t.autoManage){var h=new Float32Array(o.size/4);t.buffer.update(h)}return e.uniformGroups[t.id]=o.syncFunc,e.uniformGroups[t.id]},r.prototype.g
` ,e+= `
` ;for(var i=0;i<t;i++)i>0&&(e+= `
else ` ),i<t-1&&(e+="if(vTextureId < "+i+".5)"),e+= `
{ ` ,e+= `
color = texture2D ( uSamplers [ ` +i+"], vTextureCoord);",e+= `
} ` ;return e+= `
` ,e+= `
` ,e},r}(),ga=function(r){q(t,r);function t(e){e===void 0&&(e=!1);var i=r.call(this)||this;return i._buffer=new ut(null,e,!1),i._indexBuffer=new ut(null,e,!0),i.addAttribute("aVertexPosition",i._buffer,2,!1,M.FLOAT).addAttribute("aTextureCoord",i._buffer,2,!1,M.FLOAT).addAttribute("aColor",i._buffer,4,!0,M.UNSIGNED_BYTE).addAttribute("aTextureId",i._buffer,1,!0,M.FLOAT).addIndex(i._indexBuffer),i}return t}(Fr),An= ` precision highp float ;
attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
attribute vec4 aColor ;
attribute float aTextureId ;
uniform mat3 projectionMatrix ;
uniform mat3 translationMatrix ;
uniform vec4 tint ;
varying vec2 vTextureCoord ;
varying vec4 vColor ;
varying float vTextureId ;
void main ( void ) {
gl _Position = vec4 ( ( projectionMatrix * translationMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = aTextureCoord ;
vTextureId = aTextureId ;
vColor = aColor * tint ;
}
` ,wn= ` varying vec2 vTextureCoord ;
varying vec4 vColor ;
varying float vTextureId ;
uniform sampler2D uSamplers [ % count % ] ;
void main ( void ) {
vec4 color ;
% forloop %
gl _FragColor = color * vColor ;
}
` ,pl=function(){function r(){}return r.create=function(t){var e=Object.assign({vertex:An,fragment:wn,geometryClass:ga,vertexSize:6},t),i=e.vertex,n=e.fragment,a=e.vertexSize,s=e.geometryClass;return function(o){q(h,o);function h(u){var l=o.call(this,u)||this;return l.shaderGenerator=new vl(i,n),l.geometryClass=s,l.vertexSize=a,l}return h}(dl)},Object.defineProperty(r,"defaultVertexSrc",{get:function(){return An},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultFragmentTemplate",{get:function(){return wn},enumerable:!1,configurable:!0}),r}(),_l=pl.create();Object.assign(_l,{extension:{name:"batch",type:L.RendererPlugin}});/*!
* @ pixi / display - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / display is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / S . S O R T A B L E _ C H I L D R E N = ! 1 ; v a r x r = f u n c t i o n ( ) { f u n c t i o n r ( ) { t h i s . m i n X = 1 / 0 , t h i s . m i n Y = 1 / 0 , t h i s . m a x X = - 1 / 0 , t h i s . m a x Y = - 1 / 0 , t h i s . r e c t = n u l l , t h i s . u p d a t e I D = - 1 } r e t u r n r . p r o t o t y p e . i s E m p t y = f u n c t i o n ( ) { r e t u r n t h i s . m i n X > t h i s . m a x X | | t h i s . m i n Y > t h i s . m a x Y } , r . p r o t o t y p e . c l e a r = f u n c t i o n ( ) { t h i s . m i n X = 1 / 0 , t h i s . m i n Y = 1 / 0 , t h i s . m a x X = - 1 / 0 , t h i s . m a x Y = - 1 / 0 } , r . p r o t o t y p e . g e t R e c t a n g l e = f u n c t i o n ( t ) { r e t u r n t h i s . m i n X > t h i s . m a x X | | t h i s . m i n Y > t h i s . m a x Y ? W . E M P T Y : ( t = t | | n e w W ( 0 , 0 , 1 , 1 ) , t . x = t h i s . m i n X , t . y = t h i s . m i n Y , t . w i d t h = t h i s . m a x X - t h i s . m i n X , t . h e i g h t = t h i s . m a x Y - t h i s . m i n Y , t ) } , r . p r o t o t y p e . a d d P o i n t = f u n c t i o n ( t ) { t h i s . m i n X = M a t h . m i n ( t h i s . m i n X , t . x ) , t h i s . m a x X = M a t h . m a x ( t h i s . m a x X , t . x ) , t h i s . m i n Y = M a t h . m i n ( t h i s . m i n Y , t . y ) , t h i s . m a x Y = M a t h . m a x ( t h i s . m a x Y , t . y ) } , r . p r o t o t y p e . a d d P o i n t M a t r i x = f u n c t i o n ( t , e ) { v a r i = t . a , n = t . b , a = t . c , s = t . d , o = t . t x , h = t . t y , u = i * e . x + a * e . y + o , l = n * e . x + s * e . y + h ; t h i s . m i n X = M a t h . m i n ( t h i s . m i n X , u ) , t h i s . m a x X = M a t h . m a x ( t h i s . m a x X , u ) , t h i s . m i n Y = M a t h . m i n ( t h i s . m i n Y , l ) , t h i s . m a x Y = M a t h . m a x ( t h i s . m a x Y , l ) } , r . p r o t o t y p e . a d d Q u a d = f u n c t i o n ( t ) { v a r e = t h i s . m i n X , i = t h i s . m i n Y , n = t h i s . m a x X , a = t h i s . m a x Y , s = t [ 0 ] , o = t [ 1 ] ; e = s < e ? s : e , i = o < i ? o : i , n = s > n ? s : n , a = o > a ? o : a , s = t [ 2 ] , o = t [ 3 ] , e = s < e ? s : e , i = o < i ? o : i , n = s > n ? s : n , a = o > a ? o : a , s = t [ 4 ] , o = t [ 5 ] , e = s < e ? s : e , i = o < i ? o : i , n = s > n ? s : n , a = o > a ? o : a , s = t [ 6 ] , o = t [ 7 ] , e = s < e ? s : e , i = o < i ? o : i , n = s > n ? s : n , a = o > a ? o : a , t h i s . m i n X = e , t h i s . m i n Y = i , t h i s . m a x X = n , t h i s . m a x Y = a } , r . p r o t o t y p e . a d d F r a m e = f u n c t i o n ( t , e , i , n , a ) { t h i s . a d d F r a m e M a t r i x ( t . w o r l d T r a n s f o r m , e , i , n , a ) } , r . p r o t o t y p e . a d d F r a m e M a t r i x = f u n c t i o n ( t , e , i , n , a ) { v a r s = t . a , o = t . b , h = t . c , u = t . d , l = t . t x , f = t . t y , c = t h i s . m i n X , d = t h i s . m i n Y , v = t h i s . m a x X , p = t h i s . m a x Y , _ = s * e + h * i + l , g = o * e + u * i + f ; c = _ < c ? _ : c , d = g < d ? g : d , v = _ > v ? _ : v , p = g > p ? g : p , _ = s * n + h * i + l , g = o * n + u * i + f , c = _ < c ? _ : c , d = g < d ? g : d , v = _ > v ? _ : v , p = g > p ? g : p , _ = s * e + h * a + l , g = o * e + u * a + f , c = _ < c ? _ : c , d = g < d ? g : d , v = _ > v ? _ : v , p = g > p ? g : p , _ = s * n + h * a + l , g = o * n + u * a + f , c = _ < c ? _ : c , d = g < d ? g : d , v = _ > v ? _ : v , p = g > p ? g : p , t h i s . m i n X = c , t h i s . m i n Y = d , t h i s . m a x X = v , t h i s . m a x Y = p } , r . p r o t o t y p e . a d d V e r t e x D a t a = f u n c t i o n ( t , e , i ) { f o r ( v a r n = t h i s . m i n X , a = t h i s . m i n Y , s = t h i s . m a x X , o = t h i s . m a x Y , h = e ; h < i ; h + = 2 ) { v a r u = t [ h ] , l = t [ h + 1 ] ; n = u < n ? u : n , a = l < a ? l : a , s = u > s ? u : s , o = l > o ? l : o } t h i s . m i n X = n , t h i s . m i n Y = a , t h i s . m a x X = s , t h i s . m a x Y = o } , r . p r o t o t y p e . a d d V e r t i c e s = f u n c t i o n ( t , e , i , n ) { t h i s . a d d V e r t i c e s M a t r i x ( t . w o r l d T r a n s f o r m , e , i , n ) } , r . p r o t o t y p e . a d d V e r t i c e s M a t r i x = f u n c t i o n ( t , e , i , n , a , s ) { a = = = v o i d 0 & & ( a = 0 ) , s = = = v o i d 0 & & ( s = a ) ; f o r ( v a r o = t . a , h = t . b , u = t . c , l = t . d , f = t . t x , c = t . t y , d = t h i s . m i n X , v = t h i s . m i n Y , p = t h i s . m a x X , _ = t h i s . m a x Y , g = i ; g < n ; g + = 2 ) { v a r b = e [ g ] , T = e [ g + 1 ] , x = o * b + u * T + f , m = l * T + h * b + c ; d = M a t h . m i n ( d , x - a ) , p = M a t h . m a x ( p , x + a ) , v = M a t h . m i n ( v , m - s ) , _ = M a t h . m a x ( _ , m + s ) } t h i s . m i n X = d , t h i s . m i n Y = v , t h i s . m a x X = p , t h i s . m a x Y = _ } , r . p r o t o t y p e . a d d B o u n d s = f u n c t i o n ( t ) { v a r e = t h i s . m i n X , i = t h i s . m i n Y , n = t h i s . m a x X , a = t h i s . m a x Y ; t h i s . m i n X = t . m i n X < e ? t . m i n X : e , t h i s . m i n Y = t . m i n Y < i ? t . m i n Y : i , t h i s . m a x X = t . m a x X > n ? t . m a x X : n , t h i s . m a x Y = t . m a x Y > a ? t . m a x Y : a } , r . p r o t o t y p e . a d d B o u n d s M a s k = f u n c t i o n ( t , e ) { v a r i = t . m i n X > e . m i n X ? t . m i n X : e . m i n X , n = t . m i n Y > e . m i n Y ? t . m i n Y : e . m i n Y , a = t . m a x X < e . m a x X ? t . m a x X : e . m a x X , s = t . m a x Y < e . m a x Y ? t . m a x Y : e . m a x Y ; i f ( i < = a & & n < = s ) { v a r o = t h i s . m i n X , h = t h i s . m i n Y , u = t h i s . m a x X , l = t h i s . m a x Y ; t h i s . m i n X = i < o ? i : o , t h i s . m i n Y = n < h ? n : h , t h i s . m a x X = a > u ? a : u , t h i s . m a x Y = s > l ? s : l } } , r . p r o t o t y p e . a d d B o u n d s M a t r i x = f u n c t i o n ( t , e ) { t h i s . a d d F r a m e M a t r i x ( e , t . m i n X , t . m i n Y , t . m a x X , t . m a x Y ) } , r . p r o t o t y p e . a d d B o u n d s A r e a = f u n c t i o n ( t , e ) { v a r i = t . m i n X > e . x ? t . m i n X : e . x , n = t . m i n Y > e . y ? t . m i n Y : e . y , a = t . m a x X < e . x + e . w i d t h ? t . m a x X : e . x + e . w i d t h , s = t . m a x Y < e . y + e . h e i g h t ? t . m a x Y : e . y + e . h e i g h t ; i f ( i < = a & & n < = s ) { v a r o = t h i s . m i n X , h = t h i s . m i n Y , u = t h i s . m a x X , l = t h i s . m a x Y ; t h i s . m i n X = i < o ? i : o , t h i s . m i n Y = n < h ? n : h , t h i s . m a x X = a > u ? a : u , t h i s . m a x Y = s > l ? s : l } } , r . p r o t o t y p e . p a d = f u n c t i o n ( t , e ) { t = = = v o i d 0 & & ( t = 0 ) , e = = = v o i d 0 & & ( e = t ) , t h i s . i s E m p t y ( ) | | ( t h i s . m i n X - = t , t h i s . m a x X + = t , t h i s . m i n Y - = e , t h i s . m a x Y + = e ) } , r . p r o t o t y p e . a d d F r a m e P a d = f u n c t i o n ( t , e , i , n , a , s ) { t - = a , e - = s , i + = a , n + = s , t h i s . m i n X = t h i s . m i n X < t ? t h i s . m i n X : t , t h i s . m a x X = t h i s . m a x X > i ? t h i s . m a x X : i , t h i s . m i n Y = t h i s . m i n Y < e ? t h i s . m i n Y : e , t h i s . m a x Y = t h i s . m a x Y > n ? t h i s . m a x Y : n } , r } ( ) ; / * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r x i = f u n c t i o n ( r , t ) { r e t u r n x i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , x i ( r , t ) } ; f u n c t i o n F i ( r , t ) { x i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r A r = f u n c t i o n ( r ) { F i ( t , r ) ; f u n c t i o n t ( ) { v a r e = r . c a l l ( t h i s ) | | t h i s ; r e t u r n e . t e m p D i s p l a y O b j e c t P a r e n t = n u l l , e . t r a n s f o r m = n e w j h , e . a l p h a = 1 , e . v i s i b l e = ! 0 , e . r e n d e r a b l e = ! 0 , e . c u l l a b l e = ! 1 , e . c u l l A r e a = n u l l , e . p a r e n t = n u l l , e . w o r l d A l p h a = 1 , e . _ l a s t S o r t e d I n d e x = 0 , e . _ z I n d e x = 0 , e . f i l t e r A r e a = n u l l , e . f i l t e r s = n u l l , e . _ e n a b l e d F i l t e r s = n u l l , e . _ b o u n d s = n e w x r , e . _ l o c a l B o u n d s = n u l l , e . _ b o u n d s I D = 0 , e . _ b o u n d s R e c t = n u l l , e . _ l o c a l B o u n d s R e c t = n u l l , e . _ m a s k = n u l l , e . _ m a s k R e f C o u n t = 0 , e . _ d e s t r o y e d = ! 1 , e . i s S p r i t e = ! 1 , e . i s M a s k = ! 1 , e } r e t u r n t . m i x i n = f u n c t i o n ( e ) { f o r ( v a r i = O b j e c t . k e y s ( e ) , n = 0 ; n < i . l e n g t h ; + + n ) { v a r a = i [ n ] ; O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , a , O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( e , a ) ) } } , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " d e s t r o y e d " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d e s t r o y e d } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , t . p r o t o t y p e . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m = f u n c t i o n ( ) { t h i s . p a r e n t ? ( t h i s . p a r e n t . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . t r a n s f o r m . u p d a t e T r a n s f o r m ( t h i s . p a r e n t . t r a n s f o r m ) ) : t h i s . t r a n s f o r m . u p d a t e T r a n s f o r m ( t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t . t r a n s f o r m ) } , t . p r o t o t y p e . u p d a t e T r a n s f o r m = f u n c t i o n ( ) { t h i s . _ b o u n d s I D + + , t h i s . t r a n s f o r m . u p d a t e T r a n s f o r m ( t h i s . p a r e n t . t r a n s f o r m ) , t h i s . w o r l d A l p h a = t h i s . a l p h a * t h i s . p a r e n t . w o r l d A l p h a } , t . p r o t o t y p e . g e t B o u n d s = f u n c t i o n ( e , i ) { r e t u r n e | | ( t h i s . p a r e n t ? ( t h i s . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . u p d a t e T r a n s f o r m ( ) ) : ( t h i s . p a r e n t = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t , t h i s . u p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t = n u l l ) ) , t h i s . _ b o u n d s . u p d a t e I D ! = = t h i s . _ b o u n d s I D & & ( t h i s . c a l c u l a t e B o u n d s ( ) , t h i s . _ b o u n d s . u p d a t e I D = t h i s . _ b o u n d s I D ) , i | | ( t h i s . _ b o u n d s R e c t | | ( t h i s . _ b o u n d s R e c t = n e w W ) , i = t h i s . _ b o u n d s R e c t ) , t h i s . _ b o u n d s . g e t R e c t a n g l e ( i ) } , t . p r o t o t y p e . g e t L o c a l B o u n d s = f u n c t i o n ( e ) { e | | ( t h i s . _ l o c a l B o u n d s R e c t | | ( t h i s . _ l o c a l B o u n d s R e c t = n e w W ) , e = t h i s . _ l o c a l B o u n d s R e c t ) , t h i s . _ l o c a l B o u n d s | | ( t h i s . _ l o c a l B o u n d s = n e w x r ) ; v a r i = t h i s . t r a n s f o r m , n = t h i s . p a r e n t ; t h i s . p a r e n t = n u l l , t h i s . t r a n s f o r m = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t . t r a n s f o r m ; v a r a = t h i s . _ b o u n d s , s = t h i s . _ b o u n d s I D ; t h i s . _ b o u n d s = t h i s . _ l o c a l B o u n d s ; v a r o = t h i s . g e t B o u n d s ( ! 1 , e ) ; r e t u r n t h i s . p a r e n t = n , t h i s . t r a n s f o r m = i , t h i s . _ b o u n d s = a , t h i s . _ b o u n d s . u p d a t e I D + = t h i s . _ b o u n d s I D - s , o } , t . p r o t o t y p e . t o G l o b a l = f u n c t i o n ( e , i , n ) { r e t u r n n = = = v o i d 0 & & ( n = ! 1 ) , n | | ( t h i s . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t ? t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) : ( t h i s . p a r e n t = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t , t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t = n u l l ) ) , t h i s . w o r l d T r a n s f o r m . a p p l y ( e , i ) } , t . p r o t o t y p e . t o L o c a l = f u n c t i o n ( e , i , n , a ) { r e t u r n i & & ( e = i . t o G l o b a l ( e , n , a ) ) , a | | ( t h i s . _ r e c u r s i v e P o s t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t ? t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) : ( t h i s . p a r e n t = t h i s . _ t e m p D i s p l a y O b j e c t P a r e n t , t h i s . d i s p l a y O b j e c t U p d a t e T r a n s f o r m ( ) , t h i s . p a r e n t = n u l l ) ) , t h i s . w o r l d T r a n s f o r m . a p p l y I n v e r s e ( e , n ) } , t . p r o t o t y p e . s e t P a r e n t = f u n c t i o n ( e ) { i f ( ! e | | ! e . a d d C h i l d ) t h r o w n e w E r r o r ( " s e t P a r e n t : A r g u m e n t m u s t b e a C o n t a i n e r " ) ; r e t u r n e . a d d C h i l d ( t h i s ) , e } , t . p r o t o t y p e . s e t T r a n s f o r m = f u n c t i o n ( e , i , n , a , s , o , h , u , l ) { r e t u r n e = = = v o i d 0 & & ( e = 0 ) , i = = = v o i d 0 & & ( i = 0 ) , n = = = v o i d 0 & & ( n = 1 ) , a = = = v o i d 0 & & ( a = 1 ) , s = = = v o i d 0 & & ( s = 0 ) , o = = = v o i d 0 & & ( o = 0 ) , h = = = v o i d 0 & & ( h = 0 ) , u = = = v o i d 0 & & ( u = 0 ) , l = = = v o i d 0 & & ( l = 0 ) , t h i s . p o s i t i o n . x = e , t h i s . p o s i t i o n . y = i , t h i s . s c a l e . x = n | | 1 , t h i s . s c a l e . y = a | | 1 , t h i s . r o t a t i o n = s , t h i s . s k e w . x = o , t h i s . s k e w . y = h , t h i s . p i v o t . x = u , t h i s . p i v o t . y = l , t h i s } , t . p r o t o t y p e . d e s t r o y = f u n c t i o n ( e ) { t h i s . p a r e n t & & t h i s . p a r e n t . r e m o v e C h i l d ( t h i s ) , t h i s . _ d e s t r o y e d = ! 0 , t h i s . t r a n s f o r m = n u l l , t h i s . p a r e n t = n u l l , t h i s . _ b o u n d s = n u l l , t h i s . m a s k = n u l l , t h i s . c u l l A r e a = n u l l , t h i s . f i l t e r s = n u l l , t h i s . f i l t e r A r e a = n u l l , t h i s . h i t A r e a = n u l l , t h i s . i n t e r a c t i v e = ! 1 , t h i s . i n t e r a c t i v e C h i l d r e n = ! 1 , t h i s . e m i t ( " d e s t r o y e d " ) , t h i s . r e m o v e A l l L i s t e n e r s ( ) } , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " _ t e m p D i s p l a y O b j e c t P a r e n t " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . t e m p D i s p l a y O b j e c t P a r e n t = = = n u l l & & ( t h i s . t e m p D i s p l a y O b j e c t P a r e n t = n e w g l ) , t h i s . t e m p D i s p l a y O b j e c t P a r e n t } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , t . p r o t o t y p e . e n a b l e T e m p P a r e n
* @ pixi / app - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / app is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /var yl=function(){function r(){}return r.init=function(t){var e=this;Object.defineProperty(this,"resizeTo",{set:function(i){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=i,i&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){!e._resizeTo||(e.cancelResize(),e._resizeId=requestAnimationFrame(function(){return e.resize()}))},this.cancelResize=function(){e._resizeId&&(cancelAnimationFrame(e._resizeId),e._resizeId=null)},this.resize=function(){if(!!e._resizeTo){e.cancelResize();var i,n;if(e._resizeTo===globalThis.window)i=globalThis.innerWidth,n=globalThis.innerHeight;else{var a=e._resizeTo,s=a.clientWidth,o=a.clientHeight;i=s,n=o}e.renderer.resize(i,n)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},r.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},r.extension=L.Application,r}(),bl=function(){function r(t){var e=this;this.stage=new le,t=Object.assign({forceCanvas:!1},t),this.renderer=cl(t),r._plugins.forEach(function(i){i.init.call(e,t)})}return r.registerPlugin=function(t){Pt("6.5.0","Application.registerPlugin() is deprecated, use extensions.add()"),Tt.add({type:L.Application,ref:t})},r.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(r.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),r.prototype.destroy=function(t,e){var i=this,n=r._plugins.slice(0);n.reverse(),n.forEach(function(a){a.destroy.call(i)}),this.stage.destroy(e),this.stage=null,this.renderer.destroy(t),this.renderer=null},r._plugins=[],r}();Tt.handleByList(L.Application,bl._plugins);Tt.add(yl);/ * !
* @ pixi / loaders - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / loaders is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /var sr=function(){function r(t,e,i){e===void 0&&(e=!1),this._fn=t,this._once=e,this._thisArg=i,this._next=this._prev=this._owner=null}return r.prototype.detach=function(){return this._owner===null?!1:(this._owner.detach(this),!0)},r}();function Rn(r,t){return r._head?(r._tail._next=t,t._prev=r._tail,r._tail=t):(r._head=t,r._tail=t),t._owner=r,t}var Dt=function(){function r(){this._head=this._tail=void 0}return r.prototype.handlers=function(t){t===void 0&&(t=!1);var e=this._head;if(t)return!!e;for(var i=[];e;)i.push(e),e=e._next;return i},r.prototype.has=function(t){if(!(t instanceof sr))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return t._owner===this},r.prototype.dispatch=function(){for(var t=arguments,e=[],i=0;i<arguments.length;i++)e[i]=t[i];var n=this._head;if(!n)return!1;for(;n;)n._once&&this.detach(n),n._fn.apply(n._thisArg,e),n=n._next;return!0},r.prototype.add=function(t,e){if(e===void 0&&(e=null),typeof t!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return Rn(this,new sr(t,!1,e))},r.prototype.once=function(t,e){if(e===void 0&&(e=null),typeof t!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return Rn(this,new sr(t,!0,e))},r.prototype.detach=function(t){if(!(t instanceof sr))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return t._owner!==this?this:(t._prev&&(t._prev._next=t._next),t._next&&(t._next._prev=t._prev),t===this._head?(this._head=t._next,t._next===null&&(this._tail=null)):t===this._tail&&(this._tail=t._prev,this._tail._next=null),t._owner=null,this)},r.prototype.detachAll=function(){var t=this._head;if(!t)return this;for(this._head=this._tail=null;t;)t._owner=null,t=t._next;return this},r}();function ma(r,t){t=t||{};for(var e={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/ ( ? : ^ | & ) ( [ ^ &= ] * ) = ? ( [ ^ & ] * ) / g } , parser : { strict : /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/ , loose : /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ } } , i = e . parser [ t . strictMode ? "strict" : "loose" ] . exec ( r ) , n = { } , a = 14 ; a -- ; ) n [ e . key [ a ] ] = i [ a ] || "" ; return n [ e . q . name ] = { } , n [ e . key [ 12 ] ] . replace ( e . q . parser , function ( s , o , h ) { o && ( n [ e . q . name ] [ o ] = h ) } ) , n } var Jr , or = null , El = 0 , Sn = 200 , Tl = 204 , xl = 1223 , Al = 2 ; function Pn ( ) { } function In ( r , t , e ) { t && t . indexOf ( "." ) === 0 && ( t = t . substring ( 1 ) ) , t && ( r [ t ] = e ) } function ti ( r ) { return r . toString ( ) . replace ( "object " , "" ) } var K = function ( ) { function r ( t , e , i ) { if ( this . _dequeue = Pn , this . _onLoadBinding = null , this . _elementTimer = 0 , this . _boundComplete = null , this . _boundOnError = null , this . _boundOnProgress = null , this . _boundOnTimeout = null , this . _boundXhrOnError = null , this . _boundXhrOnTimeout = null , this . _boundXhrOnAbort = null , this . _boundXhrOnLoad = null , typeof t != "string" || typeof e != "string" ) throw new Error ( "Both name and url are required for constructing a resource." ) ; i = i || { } , this . _flags = 0 , this . _setFlag ( r . STATUS _FLAGS . DATA _URL , e . indexOf ( "data:" ) === 0 ) , this . name = t , this . url = e , this . extension = this . _getExtension ( ) , this . data = null , this . crossOrigin = i . crossOrigin === ! 0 ? "anonymous" : i . crossOrigin , this . timeout = i . timeout || 0 , this . loadType = i . loadType || this . _determineLoadType ( ) , this . xhrType = i . xhrType , this . metadata = i . metadata || { } , this . error = null , this . xhr = null , this . children = [ ] , this . type = r . TYPE . UNKNOWN , this . progressChunk = 0 , this . _dequeue = Pn , this . _onLoadBinding = null , this . _elementTimer = 0 , this . _boundComplete = this . complete . bind ( this ) , this . _boundOnError = this . _onError . bind ( this ) , this . _boundOnProgress = this . _onProgress . bind ( this ) , this . _boundOnTimeout = this . _onTimeout . bind ( this ) , this . _boundXhrOnError = this . _xhrOnError . bind ( this ) , this . _boundXhrOnTimeout = this . _xhrOnTimeout . bind ( this ) , this . _boundXhrOnAbort = this . _xhrOnAbort . bind ( this ) , this . _boundXhrOnLoad = this . _xhrOnLoad . bind ( this ) , this . onStart = new Dt , this . onProgress =
* @ pixi / spritesheet - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / spritesheet is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r L i = f u n c t i o n ( ) { f u n c t i o n r ( t , e , i ) { i = = = v o i d 0 & & ( i = n u l l ) , t h i s . l i n k e d S h e e t s = [ ] , t h i s . _ t e x t u r e = t i n s t a n c e o f X ? t : n u l l , t h i s . b a s e T e x t u r e = t i n s t a n c e o f k ? t : t h i s . _ t e x t u r e . b a s e T e x t u r e , t h i s . t e x t u r e s = { } , t h i s . a n i m a t i o n s = { } , t h i s . d a t a = e ; v a r n = t h i s . b a s e T e x t u r e . r e s o u r c e ; t h i s . r e s o l u t i o n = t h i s . _ u p d a t e R e s o l u t i o n ( i | | ( n ? n . u r l : n u l l ) ) , t h i s . _ f r a m e s = t h i s . d a t a . f r a m e s , t h i s . _ f r a m e K e y s = O b j e c t . k e y s ( t h i s . _ f r a m e s ) , t h i s . _ b a t c h I n d e x = 0 , t h i s . _ c a l l b a c k = n u l l } r e t u r n r . p r o t o t y p e . _ u p d a t e R e s o l u t i o n = f u n c t i o n ( t ) { t = = = v o i d 0 & & ( t = n u l l ) ; v a r e = t h i s . d a t a . m e t a . s c a l e , i = q t ( t , n u l l ) ; r e t u r n i = = = n u l l & & ( i = e ! = = v o i d 0 ? p a r s e F l o a t ( e ) : 1 ) , i ! = = 1 & & t h i s . b a s e T e x t u r e . s e t R e s o l u t i o n ( i ) , i } , r . p r o t o t y p e . p a r s e = f u n c t i o n ( t ) { v a r e = t h i s ; r e t u r n t & & P t ( " 6 . 5 . 0 " , " S p r i t e s h e e t . p a r s e c a l l b a c k i s d e p r e c a t e d , u s e t h e r e t u r n P r o m i s e i n s t e a d . " ) , n e w P r o m i s e ( f u n c t i o n ( i ) { e . _ c a l l b a c k = f u n c t i o n ( n ) { t = = n u l l | | t ( n ) , i ( n ) } , e . _ b a t c h I n d e x = 0 , e . _ f r a m e K e y s . l e n g t h < = r . B A T C H _ S I Z E ? ( e . _ p r o c e s s F r a m e s ( 0 ) , e . _ p r o c e s s A n i m a t i o n s ( ) , e . _ p a r s e C o m p l e t e ( ) ) : e . _ n e x t B a t c h ( ) } ) } , r . p r o t o t y p e . _ p r o c e s s F r a m e s = f u n c t i o n ( t ) { f o r ( v a r e = t , i = r . B A T C H _ S I Z E ; e - t < i & & e < t h i s . _ f r a m e K e y s . l e n g t h ; ) { v a r n = t h i s . _ f r a m e K e y s [ e ] , a = t h i s . _ f r a m e s [ n ] , s = a . f r a m e ; i f ( s ) { v a r o = n u l l , h = n u l l , u = a . t r i m m e d ! = = ! 1 & & a . s o u r c e S i z e ? a . s o u r c e S i z e : a . f r a m e , l = n e w W ( 0 , 0 , M a t h . f l o o r ( u . w ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( u . h ) / t h i s . r e s o l u t i o n ) ; a . r o t a t e d ? o = n e w W ( M a t h . f l o o r ( s . x ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . y ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . h ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . w ) / t h i s . r e s o l u t i o n ) : o = n e w W ( M a t h . f l o o r ( s . x ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . y ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . w ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . h ) / t h i s . r e s o l u t i o n ) , a . t r i m m e d ! = = ! 1 & & a . s p r i t e S o u r c e S i z e & & ( h = n e w W ( M a t h . f l o o r ( a . s p r i t e S o u r c e S i z e . x ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( a . s p r i t e S o u r c e S i z e . y ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . w ) / t h i s . r e s o l u t i o n , M a t h . f l o o r ( s . h ) / t h i s . r e s o l u t i o n ) ) , t h i s . t e x t u r e s [ n ] = n e w X ( t h i s . b a s e T e x t u r e , o , l , h , a . r o t a t e d ? 2 : 0 , a . a n c h o r ) , X . a d d T o C a c h e ( t h i s . t e x t u r e s [ n ] , n ) } e + + } } , r . p r o t o t y p e . _ p r o c e s s A n i m a t i o n s = f u n c t i o n ( ) { v a r t = t h i s . d a t a . a n i m a t i o n s | | { } ; f o r ( v a r e i n t ) { t h i s . a n i m a t i o n s [ e ] = [ ] ; f o r ( v a r i = 0 ; i < t [ e ] . l e n g t h ; i + + ) { v a r n = t [ e ] [ i ] ; t h i s . a n i m a t i o n s [ e ] . p u s h ( t h i s . t e x t u r e s [ n ] ) } } } , r . p r o t o t y p e . _ p a r s e C o m p l e t e = f u n c t i o n ( ) { v a r t = t h i s . _ c a l l b a c k ; t h i s . _ c a l l b a c k = n u l l , t h i s . _ b a t c h I n d e x = 0 , t . c a l l ( t h i s , t h i s . t e x t u r e s ) } , r . p r o t o t y p e . _ n e x t B a t c h = f u n c t i o n ( ) { v a r t = t h i s ; t h i s . _ p r o c e s s F r a m e s ( t h i s . _ b a t c h I n d e x * r . B A T C H _ S I Z E ) , t h i s . _ b a t c h I n d e x + + , s e t T i m e o u t ( f u n c t i o n ( ) { t . _ b a t c h I n d e x * r . B A T C H _ S I Z E < t . _ f r a m e K e y s . l e n g t h ? t . _ n e x t B a t c h ( ) : ( t . _ p r o c e s s A n i m a t i o n s ( ) , t . _ p a r s e C o m p l e t e ( ) ) } , 0 ) } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( t ) { v a r e ; t = = = v o i d 0 & & ( t = ! 1 ) ; f o r ( v a r i i n t h i s . t e x t u r e s ) t h i s . t e x t u r e s [ i ] . d e s t r o y ( ) ; t h i s . _ f r a m e s = n u l l , t h i s . _ f r a m e K e y s = n u l l , t h i s . d a t a = n u l l , t h i s . t e x t u r e s = n u l l , t & & ( ( e = t h i s . _ t e x t u r e ) = = = n u l l | | e = = = v o i d 0 | | e . d e s t r o y ( ) , t h i s . b a s e T e x t u r e . d e s t r o y ( ) ) , t h i s . _ t e x t u r e = n u l l , t h i s . b a s e T e x t u r e = n u l l , t h i s . l i n k e d S h e e t s = [ ] } , r . B A T C H _ S I Z E = 1 e 3 , r } ( ) ; ( f u n c t i o n ( ) { f u n c t i o n r ( ) { } r e t u r n r . u s e = f u n c t i o n ( t , e ) { v a r i , n , a = t h i s , s = t . n a m e + " _ i m a g e " ; i f ( ! t . d a t a | | t . t y p e ! = = K . T Y P E . J S O N | | ! t . d a t a . f r a m e s | | a . r e s o u r c e s [ s ] ) { e ( ) ; r e t u r n } v a r o = ( n = ( i = t . d a t a ) = = = n u l l | | i = = = v o i d 0 ? v o i d 0 : i . m e t a ) = = = n u l l | | n = = = v o i d 0 ? v o i d 0 : n . r e l a t e d _ m u l t i _ p a c k s ; i f ( A r r a y . i s A r r a y ( o ) ) f o r ( v a r h = f u n c t i o n ( v ) { i f ( t y p e o f v ! = " s t r i n g " ) r e t u r n " c o n t i n u e " ; v a r p = v . r e p l a c e ( " . j s o n " , " " ) , _ = b e . r e s o l v e ( t . u r l . r e p l a c e ( a . b a s e U r l , " " ) , v ) ; i f ( a . r e s o u r c e s [ p ] | | O b j e c t . v a l u e s ( a . r e s o u r c e s ) . s o m e ( f u n c t i o n ( b ) { r e t u r n b e . f o r m a t ( b e . p a r s e ( b . u r l ) ) = = = _ } ) ) r e t u r n " c o n t i n u e " ; v a r g = { c r o s s O r i g i n : t . c r o s s O r i g i n , l o a d T y p e : K . L O A D _ T Y P E . X H R , x h r T y p e : K . X H R _ R E S P O N S E _ T Y P E . J S O N , p a r e n t R e s o u r c e : t , m e t a d a t a : t . m e t a d a t a } ; a . a d d ( p , _ , g ) } , u = 0 , l = o ; u < l . l e n g t h ; u + + ) { v a r f = l [ u ] ; h ( f ) } v a r c = { c r o s s O r i g i n : t . c r o s s O r i g i n , m e t a d a t a : t . m e t a d a t a . i m a g e M e t a d a t a , p a r e n t R e s o u r c e : t } , d = r . g e t R e s o u r c e P a t h ( t , a . b a s e U r l ) ; a . a d d ( s , d , c , f u n c t i o n ( p ) { i f ( p . e r r o r ) { e ( p . e r r o r ) ; r e t u r n } v a r _ = n e w L i ( p . t e x t u r e , t . d a t a , t . u r l ) ; _ . p a r s e ( ) . t h e n ( f u n c t i o n ( ) { t . s p r i t e s h e e t = _ , t . t e x t u r e s = _ . t e x t u r e s , e ( ) } ) } ) } , r . g e t R e s o u r c e P a t h = f u n c t i o n ( t , e ) { r e t u r n t . i s D a t a U r l ? t . d a t a . m e t a . i m a g e : b e . r e s o l v e ( t . u r l . r e p l a c e ( e , " " ) , t . d a t a . m e t a . i m a g e ) } , r . e x t e n s i o n = L . L o a d e r , r } ) ( ) ; / * !
* @ pixi / compressed - textures - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / compressed - textures is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* /var z,N;(function(r){r[r.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",r[r.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",r[r.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",r[r.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",r[r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",r[r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",r[r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",r[r.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",r[r.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",r[r.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",r[r.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",r[r.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",r[r.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",r[r.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",r[r.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",r[r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",r[r.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",r[r.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",r[r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",r[r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",r[r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",r[r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",r[r.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",r[r.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",r[r.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",r[r.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",r[r.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR"})(N||(N={}));var Rr=(z={},z[N.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,z[N.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,z[N.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,z[N.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,z[N.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,z[N.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,z[N.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,z[N.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,z[N.COMPRESSED_R11_EAC]=.5,z[N.COMPRESSED_SIGNED_R11_EAC]=.5,z[N.COMPRESSED_RG11_EAC]=1,z[N.COMPRESSED_SIGNED_RG11_EAC]=1,z[N.COMPRESSED_RGB8_ETC2]=.5,z[N.COMPRESSED_RGBA8_ETC2_EAC]=1,z[N.COMPRESSED_SRGB8_ETC2]=.5,z[N.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,z[N.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,z[N.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,z[N.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,z[N.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,z[N.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,z[N.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,z[N.COMPRESSED_RGB_ETC1_WEBGL]=.5,z[N.COMPRESSED_RGB_ATC_WEBGL]=.5,z[N.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,z[N.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1,z[N.COMPRESSED_RGBA_ASTC_4x4_KHR]=1,z);/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r A i = f u n c t i o n ( r , t ) { r e t u r n A i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , A i ( r , t ) } ; f u n c t i o n y a ( r , t ) { A i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } f u n c t i o n M l ( r , t , e , i ) { f u n c t i o n n ( a ) { r e t u r n a i n s t a n c e o f e ? a : n e w e ( f u n c t i o n ( s ) { s ( a ) } ) } r e t u r n n e w ( e | | ( e = P r o m i s e ) ) ( f u n c t i o n ( a , s ) { f u n c t i o n o ( l ) { t r y { u ( i . n e x t ( l ) ) } c a t c h ( f ) { s ( f ) } } f u n c t i o n h ( l ) { t r y { u ( i . t h r o w ( l ) ) } c a t c h ( f ) { s ( f ) } } f u n c t i o n u ( l ) { l . d o n e ? a ( l . v a l u e ) : n ( l . v a l u e ) . t h e n ( o , h ) } u ( ( i = i . a p p l y ( r , t | | [ ] ) ) . n e x t ( ) ) } ) } f u n c t i o n N l ( r , t ) { v a r e = { l a b e l : 0 , s e n t : f u n c t i o n ( ) { i f ( a [ 0 ] & 1 ) t h r o w a [ 1 ] ; r e t u r n a [ 1 ] } , t r y s : [ ] , o p s : [ ] } , i , n , a , s ; r e t u r n s = { n e x t : o ( 0 ) , t h r o w : o ( 1 ) , r e t u r n : o ( 2 ) } , t y p e o f S y m b o l = = " f u n c t i o n " & & ( s [ S y m b o l . i t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } ) , s ; f u n c t i o n o ( u ) { r e t u r n f u n c t i o n ( l ) { r e t u r n h ( [ u , l ] ) } } f u n c t i o n h ( u ) { i f ( i ) t h r o w n e w T y p e E r r o r ( " G e n e r a t o r i s a l r e a d y e x e c u t i n g . " ) ; f o r ( ; e ; ) t r y { i f ( i = 1 , n & & ( a = u [ 0 ] & 2 ? n . r e t u r n : u [ 0 ] ? n . t h r o w | | ( ( a = n . r e t u r n ) & & a . c a l l ( n ) , 0 ) : n . n e x t ) & & ! ( a = a . c a l l ( n , u [ 1 ] ) ) . d o n e ) r e t u r n a ; s w i t c h ( n = 0 , a & & ( u = [ u [ 0 ] & 2 , a . v a l u e ] ) , u [ 0 ] ) { c a s e 0 : c a s e 1 : a = u ; b r e a k ; c a s e 4 : r e t u r n e . l a b e l + + , { v a l u e : u [ 1 ] , d o n e : ! 1 } ; c a s e 5 : e . l a b e l + + , n = u [ 1 ] , u = [ 0 ] ; c o n t i n u e ; c a s e 7 : u = e . o p s . p o p ( ) , e . t r y s . p o p ( ) ; c o n t i n u e ; d e f a u l t : i f ( a = e . t r y s , ! ( a = a . l e n g t h > 0 & & a [ a . l e n g t h - 1 ] ) & & ( u [ 0 ] = = = 6 | | u [ 0 ] = = = 2 ) ) { e = 0 ; c o n t i n u e } i f ( u [ 0 ] = = = 3 & & ( ! a | | u [ 1 ] > a [ 0 ] & & u [ 1 ] < a [ 3 ] ) ) { e . l a b e l = u [ 1 ] ; b r e a k } i f ( u [ 0 ] = = = 6 & & e . l a b e l < a [ 1 ] ) { e . l a b e l = a [ 1 ] , a = u ; b r e a k } i f ( a & & e . l a b e l < a [ 2 ] ) { e . l a b e l = a [ 2 ] , e . o p s . p u s h ( u ) ; b r e a k } a [ 2 ] & & e . o p s . p o p ( ) , e . t r y s . p o p ( ) ; c o n t i n u e } u = t . c a l l ( r , e ) } c a t c h ( l ) { u = [ 6 , l ] , n = 0 } f i n a l l y { i = a = 0 } i f ( u [ 0 ] & 5 ) t h r o w u [ 1 ] ; r e t u r n { v a l u e : u [ 0 ] ? u [ 1 ] : v o i d 0 , d o n e : ! 0 } } } v a r F l = f u n c t i o n ( r ) { y a ( t , r ) ; f u n c t i o n t ( e , i ) { i = = = v o i d 0 & & ( i = { w i d t h : 1 , h e i g h t : 1 , a u t o L o a d : ! 0 } ) ; v a r n = t h i s , a , s ; r e t u r n t y p e o f e = = " s t r i n g " ? ( a = e , s = n e w U i n t 8 A r r a y ) : ( a = n u l l , s = e ) , n = r . c a l l ( t h i s , s , i ) | | t h i s , n . o r i g i n = a , n . b u f f e r = s ? n e w T i ( s ) : n u l l , n . o r i g i n & & i . a u t o L o a d ! = = ! 1 & & n . l o a d ( ) , s & & s . l e n g t h & & ( n . l o a d e d = ! 0 , n . o n B l o b L o a d e d ( n . b u f f e r . r a w B i n a r y D a t a ) ) , n } r e t u r n t . p r o t o t y p e . o n B l o b L o a d e d = f u n c t i o n ( e ) { } , t . p r o t o t y p e . l o a d = f u n c t i o n ( ) { r e t u r n M l ( t h i s , v o i d 0 , P r o m i s e , f u n c t i o n ( ) { v a r e , i , n ; r e t u r n N l ( t h i s , f u n c t i o n ( a ) { s w i t c h ( a . l a b e l ) { c a s e 0 : r e t u r n [ 4 , f e t c h ( t h i s . o r i g i n ) ] ; c a s e 1 : r e t u r n e = a . s e n t ( ) , [ 4 , e . b l o b ( ) ] ; c a s e 2 : r e t u r n i = a . s e n t ( ) , [ 4 , i . a r r a y B u f f e r ( ) ] ; c a s e 3 : r e t u r n n = a . s e n t ( ) , t h i s . d a t a = n e w U i n t 3 2 A r r a y ( n ) , t h i s . b u f f e r = n e w T i ( n ) , t h i s . l o a d e d = ! 0 , t h i s . o n B l o b L o a d e d ( n ) , t h i s . u p d a t e ( ) , [ 2 , t h i s ] } } ) } ) } , t } ( u e ) , f e = f u n c t i o n ( r ) { y a ( t , r ) ; f u n c t i o n t ( e , i ) { v a r n = r . c a l l ( t h i s , e , i ) | | t h i s ; r e t u r n n . f o r m a t = i . f o r m a t , n . l e v e l s = i . l e v e l s | | 1 , n . _ w i d t h = i . w i d t h , n . _ h e i g h t = i . h e i g h t , n . _ e x t e n s i o n = t . _ f o r m a t T o E x t e n s i o n ( n . f o r m a t ) , ( i . l e v e l B u f f e r s | | n . b u f f e r ) & & ( n . _ l e v e l B u f f e r s = i . l e v e l B u f f e r s | | t . _ c r e a t e L e v e l B u f f e r s ( e i n s t a n c e o f U i n t 8 A r r a y ? e : n . b u f f e r . u i n t 8 V i e w , n . f o r m a t , n . l e v e l s , 4 , 4 , n . w i d t h , n . h e i g h t ) ) , n } r e t u r n t . p r o t o t y p e . u p l o a d = f u n c t i o n ( e , i , n ) { v a r a = e . g l , s = e . c o n t e x t . e x t e n s i o n s [ t h i s . _ e x t e n s i o n ] ; i f ( ! s ) t h r o w n e w E r r o r ( t h i s . _ e x t e n s i o n + " t e x t u r e s a r e n o t s u p p o r t e d o n t h e c u r r e n t m a c h i n e " ) ; i f ( ! t h i s . _ l e v e l B u f f e r s ) r e t u r n ! 1 ; f o r ( v a r o = 0 , h = t h i s . l e v e l s ; o < h ; o + + ) { v a r u = t h i s . _ l e v e l B u f f e r s [ o ] , l = u . l e v e l I D , f = u . l e v e l W i d t h , c = u . l e v e l H e i g h t , d = u . l e v e l B u f f e r ; a . c o m p r e s s e d T e x I m a g e 2 D ( a . T E X T U R E _ 2 D , l , t h i s . f o r m a t , f , c , 0 , d ) } r e t u r n ! 0 } , t . p r o t o t y p e . o n B l o b L o a d e d = f u n c t i o n ( ) { t h i s . _ l e v e l B u f f e r s = t . _ c r e a t e L e v e l B u f f e r s ( t h i s . b u f f e r . u i n t 8 V i e w , t h i s . f o r m a t , t h i s . l e v e l s , 4 , 4 , t h i s . w i d t h , t h i s . h e i g h t ) } , t . _ f o r m a t T o E x t e n s i o n = f u n c t i o n ( e ) { i f ( e > = 3 3 7 7 6 & & e < = 3 3 7 7 9 ) r e t u r n " s 3 t c " ; i f ( e > = 3 7 4 8 8 & & e < = 3 7 4 9 7 ) r e t u r n " e t c " ; i f ( e > = 3 5 8 4 0 & & e < = 3 5 8 4 3 ) r e t u r n " p v r t c " ; i f ( e > = 3 6 1 9 6 ) r e t u r n " e t c 1 " ; i f ( e > = 3 5 9 8 6 & & e < = 3 4 7 9 8 ) r e t u r n " a t c " ; t h r o w n e w E r r o r ( " I n v a l i d ( c o m p r e s s e d ) t e x t u r e f o r m a t g i v e n ! " ) } , t . _ c r e a t e L e v e l B u f f e r s = f u n c t i o n ( e , i , n , a , s , o , h ) { f o r ( v a r u = n e w A r r a y ( n ) , l = e . b y t e O f f s e t , f = o , c = h , d = f + a - 1 & ~ ( a - 1 ) , v = c + s - 1 & ~ ( s - 1 ) , p = d * v * R r [ i ] , _ = 0 ; _ < n ; _ + + ) u [ _ ] = { l e v e l I D : _ , l e v e l W i d t h : n > 1 ? f : d , l e v e l H e i g h t : n > 1 ? c : v , l e v e l B u f f e r : n e w U i n t 8 A r r a y ( e . b u f f e r , l , p ) } , l + = p , f = f > > 1 | | 1 , c = c > > 1 | | 1 , d = f + a - 1 & ~ ( a - 1 ) , v = c + s - 1 & ~ ( s - 1 ) , p = d * v * R r [ i ] ; r e t u r n u } , t } ( F l ) ; ( f u n c t i o n ( ) { f u n c t i o n r ( ) { } r e t u r n r . u s e = f u n c t i o n ( t ,
* @ pixi / basis - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / basis is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / f u n c t i o n S r ( r , t , e , i ) { f u n c t i o n n ( a ) { r e t u r n a i n s t a n c e o f e ? a : n e w e ( f u n c t i o n ( s ) { s ( a ) } ) } r e t u r n n e w ( e | | ( e = P r o m i s e ) ) ( f u n c t i o n ( a , s ) { f u n c t i o n o ( l ) { t r y { u ( i . n e x t ( l ) ) } c a t c h ( f ) { s ( f ) } } f u n c t i o n h ( l ) { t r y { u ( i . t h r o w ( l ) ) } c a t c h ( f ) { s ( f ) } } f u n c t i o n u ( l ) { l . d o n e ? a ( l . v a l u e ) : n ( l . v a l u e ) . t h e n ( o , h ) } u ( ( i = i . a p p l y ( r , t | | [ ] ) ) . n e x t ( ) ) } ) } f u n c t i o n P r ( r , t ) { v a r e = { l a b e l : 0 , s e n t : f u n c t i o n ( ) { i f ( a [ 0 ] & 1 ) t h r o w a [ 1 ] ; r e t u r n a [ 1 ] } , t r y s : [ ] , o p s : [ ] } , i , n , a , s ; r e t u r n s = { n e x t : o ( 0 ) , t h r o w : o ( 1 ) , r e t u r n : o ( 2 ) } , t y p e o f S y m b o l = = " f u n c t i o n " & & ( s [ S y m b o l . i t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } ) , s ; f u n c t i o n o ( u ) { r e t u r n f u n c t i o n ( l ) { r e t u r n h ( [ u , l ] ) } } f u n c t i o n h ( u ) { i f ( i ) t h r o w n e w T y p e E r r o r ( " G e n e r a t o r i s a l r e a d y e x e c u t i n g . " ) ; f o r ( ; e ; ) t r y { i f ( i = 1 , n & & ( a = u [ 0 ] & 2 ? n . r e t u r n : u [ 0 ] ? n . t h r o w | | ( ( a = n . r e t u r n ) & & a . c a l l ( n ) , 0 ) : n . n e x t ) & & ! ( a = a . c a l l ( n , u [ 1 ] ) ) . d o n e ) r e t u r n a ; s w i t c h ( n = 0 , a & & ( u = [ u [ 0 ] & 2 , a . v a l u e ] ) , u [ 0 ] ) { c a s e 0 : c a s e 1 : a = u ; b r e a k ; c a s e 4 : r e t u r n e . l a b e l + + , { v a l u e : u [ 1 ] , d o n e : ! 1 } ; c a s e 5 : e . l a b e l + + , n = u [ 1 ] , u = [ 0 ] ; c o n t i n u e ; c a s e 7 : u = e . o p s . p o p ( ) , e . t r y s . p o p ( ) ; c o n t i n u e ; d e f a u l t : i f ( a = e . t r y s , ! ( a = a . l e n g t h > 0 & & a [ a . l e n g t h - 1 ] ) & & ( u [ 0 ] = = = 6 | | u [ 0 ] = = = 2 ) ) { e = 0 ; c o n t i n u e } i f ( u [ 0 ] = = = 3 & & ( ! a | | u [ 1 ] > a [ 0 ] & & u [ 1 ] < a [ 3 ] ) ) { e . l a b e l = u [ 1 ] ; b r e a k } i f ( u [ 0 ] = = = 6 & & e . l a b e l < a [ 1 ] ) { e . l a b e l = a [ 1 ] , a = u ; b r e a k } i f ( a & & e . l a b e l < a [ 2 ] ) { e . l a b e l = a [ 2 ] , e . o p s . p u s h ( u ) ; b r e a k } a [ 2 ] & & e . o p s . p o p ( ) , e . t r y s . p o p ( ) ; c o n t i n u e } u = t . c a l l ( r , e ) } c a t c h ( l ) { u = [ 6 , l ] , n = 0 } f i n a l l y { i = a = 0 } i f ( u [ 0 ] & 5 ) t h r o w u [ 1 ] ; r e t u r n { v a l u e : u [ 0 ] ? u [ 1 ] : v o i d 0 , d o n e : ! 0 } } } v a r B t , O e , B e , i t ; ( f u n c t i o n ( r ) { r [ r . c T F E T C 1 = 0 ] = " c T F E T C 1 " , r [ r . c T F E T C 2 = 1 ] = " c T F E T C 2 " , r [ r . c T F B C 1 = 2 ] = " c T F B C 1 " , r [ r . c T F B C 3 = 3 ] = " c T F B C 3 " , r [ r . c T F B C 4 = 4 ] = " c T F B C 4 " , r [ r . c T F B C 5 = 5 ] = " c T F B C 5 " , r [ r . c T F B C 7 = 6 ] = " c T F B C 7 " , r [ r . c T F P V R T C 1 _ 4 _ R G B = 8 ] = " c T F P V R T C 1 _ 4 _ R G B " , r [ r . c T F P V R T C 1 _ 4 _ R G B A = 9 ] = " c T F P V R T C 1 _ 4 _ R G B A " , r [ r . c T F A S T C _ 4 x 4 = 1 0 ] = " c T F A S T C _ 4 x 4 " , r [ r . c T F A T C _ R G B = 1 1 ] = " c T F A T C _ R G B " , r [ r . c T F A T C _ R G B A _ I N T E R P O L A T E D _ A L P H A = 1 2 ] = " c T F A T C _ R G B A _ I N T E R P O L A T E D _ A L P H A " , r [ r . c T F R G B A 3 2 = 1 3 ] = " c T F R G B A 3 2 " , r [ r . c T F R G B 5 6 5 = 1 4 ] = " c T F R G B 5 6 5 " , r [ r . c T F B G R 5 6 5 = 1 5 ] = " c T F B G R 5 6 5 " , r [ r . c T F R G B A 4 4 4 4 = 1 6 ] = " c T F R G B A 4 4 4 4 " } ) ( i t | | ( i t = { } ) ) ; v a r I r = ( B t = { } , B t [ i t . c T F E T C 1 ] = N . C O M P R E S S E D _ R G B _ E T C 1 _ W E B G L , B t [ i t . c T F B C 1 ] = N . C O M P R E S S E D _ R G B _ S 3 T C _ D X T 1 _ E X T , B t [ i t . c T F B C 3 ] = N . C O M P R E S S E D _ R G B A _ S 3 T C _ D X T 5 _ E X T , B t [ i t . c T F P V R T C 1 _ 4 _ R G B ] = N . C O M P R E S S E D _ R G B _ P V R T C _ 4 B P P V 1 _ I M G , B t [ i t . c T F P V R T C 1 _ 4 _ R G B A ] = N . C O M P R E S S E D _ R G B A _ P V R T C _ 4 B P P V 1 _ I M G , B t [ i t . c T F A T C _ R G B ] = N . C O M P R E S S E D _ R G B _ A T C _ W E B G L , B t [ i t . c T F A S T C _ 4 x 4 ] = N . C O M P R E S S E D _ R G B A _ A S T C _ 4 x 4 _ K H R , B t ) , x a = ( O e = { } , O e [ i t . c T F R G B A 3 2 ] = M . U N S I G N E D _ B Y T E , O e [ i t . c T F R G B 5 6 5 ] = M . U N S I G N E D _ S H O R T _ 5 _ 6 _ 5 , O e [ i t . c T F R G B A 4 4 4 4 ] = M . U N S I G N E D _ S H O R T _ 4 _ 4 _ 4 _ 4 , O e ) , a f = O b j e c t . k e y s ( I r ) . m a p ( f u n c t i o n ( r ) { r e t u r n N u m b e r ( r ) } ) . r e d u c e ( f u n c t i o n ( r , t ) { r e t u r n r [ I r [ t ] ] = t , r } , { } ) , M n = ( B e = { } , B e [ i t . c T F B C 3 ] = ! 0 , B e [ i t . c T F P V R T C 1 _ 4 _ R G B A ] = ! 0 , B e [ i t . c T F A S T C _ 4 x 4 ] = ! 0 , B e ) ; f u n c t i o n s f ( ) { v a r r , t = { i n i t : f u n c t i o n ( e ) { r e t u r n s e l f . B A S I S ? ( s e l f . B A S I S ( { w a s m B i n a r y : e . w a s m S o u r c e } ) . t h e n ( f u n c t i o n ( i ) { i . i n i t i a l i z e B a s i s ( ) , r = i , s e l f . p o s t M e s s a g e ( { t y p e : " i n i t " , s u c c e s s : ! 0 } ) } ) , n u l l ) : ( c o n s o l e . w a r n ( " j s S o u r c e w a s n o t p r e p e n d e d ? " ) , { t y p e : " i n i t " , s u c c e s s : ! 1 } ) } , t r a n s c o d e : f u n c t i o n ( e ) { v a r i = e . b a s i s D a t a , n = r , a = i , s = n e w n . B a s i s F i l e ( a ) , o = s . g e t N u m I m a g e s ( ) , h = s . g e t H a s A l p h a ( ) , u = h ? e . r g b a F o r m a t : e . r g b F o r m a t , l = 1 4 , f = n e w A r r a y ( o ) , c = ! 1 ; i f ( ! s . s t a r t T r a n s c o d i n g ( ) ) r e t u r n s . c l o s e ( ) , s . d e l e t e ( ) , { t y p e : " t r a n s c o d e " , r e q u e s t I D : e . r e q u e s t I D , s u c c e s s : ! 1 , i m a g e A r r a y : n u l l } ; f o r ( v a r d = 0 ; d < o ; d + + ) { f o r ( v a r v = s . g e t N u m L e v e l s ( d ) , p = { i m a g e I D : d , l e v e l A r r a y : n e w A r r a y , w i d t h : n u l l , h e i g h t : n u l l } , _ = 0 ; _ < v ; _ + + ) { v a r g = c ? l : u , b = s . g e t I m a g e W i d t h ( d , _ ) , T = s . g e t I m a g e H e i g h t ( d , _ ) , x = s . g e t I m a g e T r a n s c o d e d S i z e I n B y t e s ( d , _ , g ) , m = b + 3 & - 4 , y = T + 3 & - 4 ; _ = = = 0 & & ( p . w i d t h = m , p . h e i g h t = y ) ; v a r E = n e w U i n t 8 A r r a y ( x ) ; i f ( ! s . t r a n s c o d e I m a g e ( E , d , _ , g , ! 1 , ! 1 ) ) { i f ( c ) r e t u r n c o n s o l e . e r r o r ( " B a s i s f a i l e d t o t r a n s c o d e i m a g e " + d + " , l e v e l " + _ + " ! " ) , { t y p e : " t r a n s c o d e " , r e q u e s t I D : e . r e q u e s t I D , s u c c e s s : ! 1 } ; c o n s o l e . w a r n ( " B a s i s f a i l e d t o t r a n s c o d e i m a g e " + d + " , l e v e l " + _ + " ! R e t r y i n g t o a n u n c o m p r e s s e d t e x t u r e f o r m a t ! " ) , d = - 1 , c = ! 0 ; b r e a k } p . l e v e l A r r a y . p u s h ( { l e v e l I D : _ , l e v e l W i d t h : b , l e v e l H e i g h t : T , l e v e l B u f f e r : E } ) } f [ d ] = p } r e t u r n s . c l o s e ( ) , s . d e l e t e ( ) , { t y p e : " t r a n s c o d e " , r e q u e s t I D : e . r e q u e s t I D , s u c c e s s : ! 0 , b a s i s F o r m a t : c ? l : u , i m a g e A r r a y : f } } } ; s e l f . o n m e s s a g e = f u n c t i o n ( e ) { v a r i = e . d a t a , n = t [ i . t y p e ] ( i ) ; n & & s e l f . p o s t M e s s a g e ( n ) } } v a r D e = f u n c t i
` +t),r._workerURL=URL.createObjectURL(new Blob([t]))}return r._workerURL},enumerable:!1,configurable:!0}),r.prototype.initAsync=function(){return this.initPromise},r.prototype.transcodeAsync=function(t,e,i){return Sr(this,void 0,Promise,function(){var n,a,s=this;return Pr(this,function(o){return++this.load,n=r._tempID++,a=new Promise(function(h,u){s.requests[n]={resolve:h,reject:u}}),this.worker.postMessage({requestID:n,basisData:t,rgbaFormat:e,rgbFormat:i,type:"transcode"}),[2,a]})})},r.loadTranscoder=function(t,e){var i=this,n=fetch(t).then(function(s){return s.text()}).then(function(s){r.jsSource=s}),a=fetch(e).then(function(s){return s.arrayBuffer()}).then(function(s){r.wasmSource=s});return Promise.all([n,a]).then(function(s){return i._onTranscoderInitializedResolve(),s})},r.setTranscoder=function(t,e){r.jsSource=t,r.wasmSource=e},r.onTranscoderInitialized=new Promise(function(t){r._onTranscoderInitializedResolve=t}),r._tempID=0,r}(),Lt=function(){function r(){}return r.transcode=function(t){return Sr(this,void 0,Promise,function(){var e;return Pr(this,function(i){switch(i.label){case 0:return typeof Worker!="undefined"&&r.TranscoderWorker.wasmSource?[4,r.transcodeAsync(t)]:[3,2];case 1:return e=i.sent(),[3,3];case 2:e=r.transcodeSync(t),i.label=3;case 3:return[2,e]}})})},r.transcodeAsync=function(t){return Sr(this,void 0,Promise,function(){var e,i,n,f,c,a,s,o,h,u,l,f,c;return Pr(this,function(d){switch(d.label){case 0:for(!r.defaultRGBAFormat&&!r.defaultRGBFormat&&r.autoDetectFormats(),e=r.workerPool,i=268435456,n=null,f=0,c=e.length;f<c;f++)e[f].load<i&&(n=e[f],i=n.load);return n||(n=new De,e.push(n)),[4,n.initAsync()];case 1:return d.sent(),[4,n.transcodeAsync(new Uint8Array(t),r.defaultRGBAFormat.basisFormat,r.defaultRGBFormat.basisFormat)];case 2:if(a=d.sent(),s=a.basisFormat,o=a.imageArray,h=s>12,h)u=o.map(function(v){return new ue(new Uint16Array(v.levelArray[0].levelBuffer.buffer),{width:v.width,height:v.height})});else for(l=Ir[a.basisFormat],u=new Array(o.length),f=0,c=o.length;f<c;f++)u[f]=new fe(null,{format:l,width:o[f].width,height:o[f].height,levelBuffers:o[f].levelArray,levels:o[f].levelArray.length});return u.basisFormat=s,[2,u]}})})},r.transcodeSync=function(t){!r.defaultRGBAFormat&&!r.defaultRGBFormat&&r.autoDetectFormats();var e=r.basisBinding,i=new Uint8Array(t),n=new e.BasisFile(i),a=n.getNumImages(),s=n.getHasAlpha(),o=s?r.defaultRGBAFormat.basisFormat:r.defaultRGBFormat.basisFormat,h=it.cTFRGB565,u=new Array(a),l=r.fallbackMode;if(!n.startTranscoding())return console.error("Basis failed to start transcoding!"),n.close(),n.delete(),null;for(var f=0;f<a;f++){for(var c=l?1:n.getNumLevels(f),d=n.getImageWidth(f,0),v=n.getImageHeight(f,0),p=d+3&-4,_=v+3&-4,g=new Array(c),b=0;b<c;b++){var T=n.getImageWidth(f,b),x=n.getImageHeight(f,b),m=n.getImageTranscodedSizeInBytes(f,0,l?h:o);if(g[b]={levelID:b,levelBuffer:new Uint8Array(m),levelWidth:T,levelHeight:x},!n.transcodeImage(g[b].levelBuffer,f,0,l?h:o,!1,!1))if(l){console.error("Basis failed to transcode image "+f+", level "+0+"!");break}else{f=-1,l=!0,console.warn("Basis failed to transcode image "+f+", level "+0+" to a compressed texture format. Retrying to an uncompressed fallback format!");continue}}var y=void 0;l?y=new ue(new Uint16Array(g[0].levelBuffer.buffer),{width:d,height:v}):y=new fe(null,{format:Ir[o],width:p,height:_,levelBuffers:g,levels:c}),u[f]=y}n.close(),n.delete();var E=u;return E.basisFormat=l?h:o,E},r.autoDetectFormats=function(t){if(!t){var e=S.ADAPTER.createCanvas(),i=e.getContext("webgl");if(!i){console.error("WebGL not available for BASIS transcoding. Silently failing.");return}t={s3tc:i.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:i.getExtension("WEBGL_compressed_texture_s3tc_srgb"),astc:i.getExtension("WEBGL_compressed_texture_astc"),etc:i.getExtension("WEBGL_compressed_texture_etc"),etc1:i.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:i.getExtension("WEBGL_compressed_texture_pvrtc")||i.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:i.getExtension("WEBGL_compressed_texture_atc")}}var n={};for(va
* @ pixi / mesh - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / mesh is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r S i = f u n c t i o n ( r , t ) { r e t u r n S i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , S i ( r , t ) } ; f u n c t i o n D i ( r , t ) { S i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r h f = f u n c t i o n ( ) { f u n c t i o n r ( t , e ) { t h i s . u v B u f f e r = t , t h i s . u v M a t r i x = e , t h i s . d a t a = n u l l , t h i s . _ b u f f e r U p d a t e I d = - 1 , t h i s . _ t e x t u r e U p d a t e I d = - 1 , t h i s . _ u p d a t e I D = 0 } r e t u r n r . p r o t o t y p e . u p d a t e = f u n c t i o n ( t ) { i f ( ! ( ! t & & t h i s . _ b u f f e r U p d a t e I d = = = t h i s . u v B u f f e r . _ u p d a t e I D & & t h i s . _ t e x t u r e U p d a t e I d = = = t h i s . u v M a t r i x . _ u p d a t e I D ) ) { t h i s . _ b u f f e r U p d a t e I d = t h i s . u v B u f f e r . _ u p d a t e I D , t h i s . _ t e x t u r e U p d a t e I d = t h i s . u v M a t r i x . _ u p d a t e I D ; v a r e = t h i s . u v B u f f e r . d a t a ; ( ! t h i s . d a t a | | t h i s . d a t a . l e n g t h ! = = e . l e n g t h ) & & ( t h i s . d a t a = n e w F l o a t 3 2 A r r a y ( e . l e n g t h ) ) , t h i s . u v M a t r i x . m u l t i p l y U v s ( e , t h i s . d a t a ) , t h i s . _ u p d a t e I D + + } } , r } ( ) , n i = n e w r t , N n = n e w p r , F n = f u n c t i o n ( r ) { D i ( t , r ) ; f u n c t i o n t ( e , i , n , a ) { a = = = v o i d 0 & & ( a = E t . T R I A N G L E S ) ; v a r s = r . c a l l ( t h i s ) | | t h i s ; r e t u r n s . g e o m e t r y = e , s . s h a d e r = i , s . s t a t e = n | | Y e . f o r 2 d ( ) , s . d r a w M o d e = a , s . s t a r t = 0 , s . s i z e = 0 , s . u v s = n u l l , s . i n d i c e s = n u l l , s . v e r t e x D a t a = n e w F l o a t 3 2 A r r a y ( 1 ) , s . v e r t e x D i r t y = - 1 , s . _ t r a n s f o r m I D = - 1 , s . _ r o u n d P i x e l s = S . R O U N D _ P I X E L S , s . b a t c h U v s = n u l l , s } r e t u r n O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " g e o m e t r y " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ g e o m e t r y } , s e t : f u n c t i o n ( e ) { t h i s . _ g e o m e t r y ! = = e & & ( t h i s . _ g e o m e t r y & & ( t h i s . _ g e o m e t r y . r e f C o u n t - - , t h i s . _ g e o m e t r y . r e f C o u n t = = = 0 & & t h i s . _ g e o m e t r y . d i s p o s e ( ) ) , t h i s . _ g e o m e t r y = e , t h i s . _ g e o m e t r y & & t h i s . _ g e o m e t r y . r e f C o u n t + + , t h i s . v e r t e x D i r t y = - 1 ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " u v B u f f e r " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . g e o m e t r y . b u f f e r s [ 1 ] } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " v e r t i c e s B u f f e r " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . g e o m e t r y . b u f f e r s [ 0 ] } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " m a t e r i a l " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . s h a d e r } , s e t : f u n c t i o n ( e ) { t h i s . s h a d e r = e } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " b l e n d M o d e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . s t a t e . b l e n d M o d e } , s e t : f u n c t i o n ( e ) { t h i s . s t a t e . b l e n d M o d e = e } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " r o u n d P i x e l s " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ r o u n d P i x e l s } , s e t : f u n c t i o n ( e ) { t h i s . _ r o u n d P i x e l s ! = = e & & ( t h i s . _ t r a n s f o r m I D = - 1 ) , t h i s . _ r o u n d P i x e l s = e } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " t i n t " , { g e t : f u n c t i o n ( ) { r e t u r n " t i n t " i n t h i s . s h a d e r ? t h i s . s h a d e r . t i n t : n u l l } , s e t : f u n c t i o n ( e ) { t h i s . s h a d e r . t i n t = e } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( t . p r o t o t y p e , " t e x t u r e " , { g e t : f u n c t i o n ( ) { r e t u r n " t e x t u r e " i n t h i s . s h a d e r ? t h i s . s h a d e r . t e x t u r e : n u l l } , s e t : f u n c t i o n ( e ) { t h i s . s h a d e r . t e x t u r e = e } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , t . p r o t o t y p e . _ r e n d e r = f u n c t i o n ( e ) { v a r i = t h i s . g e o m e t r y . b u f f e r s [ 0 ] . d a t a , n = t h i s . s h a d e r ; n . b a t c h a b l e & & t h i s . d r a w M o d e = = = E t . T R I A N G L E S & & i . l e n g t h < t . B A T C H A B L E _ S I Z E * 2 ? t h i s . _ r e n d e r T o B a t c h ( e ) : t h i s . _ r e n d e r D e f a u l t ( e ) } , t . p r o t o t y p e . _ r e n d e r D e f a u l t = f u n c t i o n ( e ) { v a r i = t h i s . s h a d e r ; i . a l p h a = t h i s . w o r l d A l p h a , i . u p d a t e & & i . u p d a t e ( ) , e . b a t c h . f l u s h ( ) , i . u n i f o r m s . t r a n s l a t i o n M a t r i x = t h i s . t r a n s f o r m . w o r l d T r a n s f o r m . t o A r r a y ( ! 0 ) , e . s h a d e r . b i n d ( i ) , e . s t a t e . s e t ( t h i s . s t a t e ) , e . g e o m e t r y . b i n d ( t h i s . g e o m e t r y , i ) , e . g e o m e t r y . d r a w ( t h i s . d r a w M o d e , t h i s . s i z e , t h i s . s t a r t , t h i s . g e o m e t r y . i n s t a n c e C o u n t ) } , t . p r o t o t y p e . _ r e n d e r T o B a t c h = f u n c t i o n ( e ) { v a r i = t h i s . g e o m e t r y , n = t h i s . s h a d e r ; n . u v M a t r i x & & ( n . u v M a t r i x . u p d a t e ( ) , t h i s . c a l c u l a t e U v s ( ) ) , t h i s . c a l c u l a t e V e r t i c e s ( ) , t h i s . i n d i c e s = i . i n d e x B u f f e r . d a t a , t h i s . _ t i n t R G B = n . _ t i n t R G B , t h i s . _ t e x t u r e = n . t e x t u r e ; v a r a = t h i s . m a t e r i a l . p l u g i n N a m e ; e . b a t c h . s e t O b j e c t R e n d e r e r ( e . p l u g i n s [ a ] ) , e . p l u g i n s [ a ] . r e n d e r ( t h i s ) } , t . p r o t o t y p e . c a l c u l a t e V e r t i c e s = f u n c t i o n ( ) { v a r e = t h i s . g e o m e t r y , i = e . b u f f e r s [ 0 ] , n = i . d a t a , a = i . _ u p d a t e I D ; i f ( ! ( a = = = t h i s . v e r t e x D i r t y & & t h i s . _ t r a n s f o r m I D = = = t h i s . t r a n s f o r m . _ w o r l d I D ) ) { t h i s . _ t r a n s f o r m I D = t h i s . t r a n s f o r m . _ w o r l d I D , t h i s . v e r t e x D a t a . l e n g t h ! = = n . l e n g t h & & ( t h i s . v e r t e x D a t a = n e w F l o a t 3 2 A r r a y ( n . l e n g t h ) ) ; f o r ( v a r s = t h i s . t r a n s f o r m . w o r l d T r a n s f o r m , o = s . a , h = s . b , u = s . c , l = s . d , f = s . t x , c = s . t y , d = t h i s . v e r t e x D a t a , v = 0 ; v < d . l e n g t h / 2 ; v + + ) { v a r p = n [ v * 2 ] , _ = n [ v * 2 + 1 ] ; d [ v * 2 ] = o * p + u * _ + f , d [ v *
uniform vec4 uColor ;
uniform sampler2D uSampler ;
void main ( void )
{
gl _FragColor = texture2D ( uSampler , vTextureCoord ) * uColor ;
}
` ,lf= ` attribute vec2 aVertexPosition ;
attribute vec2 aTextureCoord ;
uniform mat3 projectionMatrix ;
uniform mat3 translationMatrix ;
uniform mat3 uTextureMatrix ;
varying vec2 vTextureCoord ;
void main ( void )
{
gl _Position = vec4 ( ( projectionMatrix * translationMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ;
vTextureCoord = ( uTextureMatrix * vec3 ( aTextureCoord , 1.0 ) ) . xy ;
}
` ,Ln=function(r){Di(t,r);function t(e,i){var n=this,a={uSampler:e,alpha:1,uTextureMatrix:ft.IDENTITY,uColor:new Float32Array([1,1,1,1])};return i=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},i),i.uniforms&&Object.assign(a,i.uniforms),n=r.call(this,i.program||Ve.from(lf,uf),a)||this,n._colorDirty=!1,n.uvMatrix=new da(e),n.batchable=i.program===void 0,n.pluginName=i.pluginName,n.tint=i.tint,n.alpha=i.alpha,n}return Object.defineProperty(t.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(e){e!==this._tint&&(this._tint=e,this._tintRGB=(e>>16)+(e&65280)+((e&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var e=this.texture.baseTexture;Mh(this._tint,this._alpha,this.uniforms.uColor,e.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(Lr),ff=function(r){Di(t,r);function t(e,i,n){var a=r.call(this)||this,s=new ut(e),o=new ut(i,!0),h=new ut(n,!0,!0);return a.addAttribute("aVertexPosition",s,2,!1,M.FLOAT).addAttribute("aTextureCoord",o,2,!1,M.FLOAT).addIndex(h),a._updateId=-1,a}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Fr);/*!
* @ pixi / sprite - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / sprite is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r P i = f u n c t i o n ( r , t ) { r e t u r n P i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , P i ( r , t ) } ; f u n c t i o n c f ( r , t ) { P i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r M e = n e w r t , d f = n e w U i n t 1 6 A r r a y ( [ 0 , 1 , 2 , 0 , 2 , 3 ] ) , v f = f u n c t i o n ( r ) { c f ( t , r ) ; f u n c t i o n t ( e ) { v a r i = r . c a l l ( t h i s ) | | t h i s ; r e t u r n i . _ a n c h o r = n e w T e ( i . _ o n A n c h o r U p d a t e , i , e ? e . d e f a u l t A n c h o r . x : 0 , e ? e . d e f a u l t A n c h o r . y : 0 ) , i . _ t e x t u r e = n u l l , i . _ w i d t h = 0 , i . _ h e i g h t = 0 , i . _ t i n t = n u l l , i . _ t i n t R G B = n u l l , i . t i n t = 1 6 7 7 7 2 1 5 , i . b l e n d M o d e = B . N O R M A L , i . _ c a c h e d T i n t = 1 6 7 7 7 2 1 5 , i . u v s = n u l l , i . t e x t u r e = e | | X . E M P T Y , i . v e r t e x D a t a = n e w F l o a t 3 2 A r r a y ( 8 ) , i . v e r t e x T r i m m e d D a t a = n u l l , i . _ t r a n s f o r m I D = - 1 , i . _ t e x t u r e I D = - 1 , i . _ t r a n s f o r m T r i m m e d I D = - 1 , i . _ t e x t u r e T r i m m e d I D = - 1 , i . i n d i c e s = d f , i . p l u g i n N a m e = " b a t c h " , i . i s S p r i t e = ! 0 , i . _ r o u n d P i x e l s = S . R O U N D _ P I X E L S , i } r e t u r n t . p r o t o t y p e . _ o n T e x t u r e U p d a t e = f u n c t i o n ( ) { t h i s . _ t e x t u r e I D = - 1 , t h i s . _ t e x t u r e T r i m m e d I D = - 1 , t h i s . _ c a c h e d T i n t = 1 6 7 7 7 2 1 5 , t h i s . _ w i d t h & & ( t h i s . s c a l e . x = E e ( t h i s . s c a l e . x ) * t h i s . _ w i d t h / t h i s . _ t e x t u r e . o r i g . w i d t h ) , t h i s . _ h e i g h t & & ( t h i s . s c a l e . y = E e ( t h i s . s c a l e . y ) * t h i s . _ h e i g h t / t h i s . _ t e x t u r e . o r i g . h e i g h t ) } , t . p r o t o t y p e . _ o n A n c h o r U p d a t e = f u n c t i o n ( ) { t h i s . _ t r a n s f o r m I D = - 1 , t h i s . _ t r a n s f o r m T r i m m e d I D = - 1 } , t . p r o t o t y p e . c a l c u l a t e V e r t i c e s = f u n c t i o n ( ) { v a r e = t h i s . _ t e x t u r e ; i f ( ! ( t h i s . _ t r a n s f o r m I D = = = t h i s . t r a n s f o r m . _ w o r l d I D & & t h i s . _ t e x t u r e I D = = = e . _ u p d a t e I D ) ) { t h i s . _ t e x t u r e I D ! = = e . _ u p d a t e I D & & ( t h i s . u v s = t h i s . _ t e x t u r e . _ u v s . u v s F l o a t 3 2 ) , t h i s . _ t r a n s f o r m I D = t h i s . t r a n s f o r m . _ w o r l d I D , t h i s . _ t e x t u r e I D = e . _ u p d a t e I D ; v a r i = t h i s . t r a n s f o r m . w o r l d T r a n s f o r m , n = i . a , a = i . b , s = i . c , o = i . d , h = i . t x , u = i . t y , l = t h i s . v e r t e x D a t a , f = e . t r i m , c = e . o r i g , d = t h i s . _ a n c h o r , v = 0 , p = 0 , _ = 0 , g = 0 ; i f ( f ? ( p = f . x - d . _ x * c . w i d t h , v = p + f . w i d t h , g = f . y - d . _ y * c . h e i g h t , _ = g + f . h e i g h t ) : ( p = - d . _ x * c . w i d t h , v = p + c . w i d t h , g = - d . _ y * c . h e i g h t , _ = g + c . h e i g h t ) , l [ 0 ] = n * p + s * g + h , l [ 1 ] = o * g + a * p + u , l [ 2 ] = n * v + s * g + h , l [ 3 ] = o * g + a * v + u , l [ 4 ] = n * v + s * _ + h , l [ 5 ] = o * _ + a * v + u , l [ 6 ] = n * p + s * _ + h , l [ 7 ] = o * _ + a * p + u , t h i s . _ r o u n d P i x e l s ) f o r ( v a r b = S . R E S O L U T I O N , T = 0 ; T < l . l e n g t h ; + + T ) l [ T ] = M a t h . r o u n d ( ( l [ T ] * b | 0 ) / b ) } } , t . p r o t o t y p e . c a l c u l a t e T r i m m e d V e r t i c e s = f u n c t i o n ( ) { i f ( ! t h i s . v e r t e x T r i m m e d D a t a ) t h i s . v e r t e x T r i m m e d D a t a = n e w F l o a t 3 2 A r r a y ( 8 ) ; e l s e i f ( t h i s . _ t r a n s f o r m T r i m m e d I D = = = t h i s . t r a n s f o r m . _ w o r l d I D & & t h i s . _ t e x t u r e T r i m m e d I D = = = t h i s . _ t e x t u r e . _ u p d a t e I D ) r e t u r n ; t h i s . _ t r a n s f o r m T r i m m e d I D = t h i s . t r a n s f o r m . _ w o r l d I D , t h i s . _ t e x t u r e T r i m m e d I D = t h i s . _ t e x t u r e . _ u p d a t e I D ; v a r e = t h i s . _ t e x t u r e , i = t h i s . v e r t e x T r i m m e d D a t a , n = e . o r i g , a = t h i s . _ a n c h o r , s = t h i s . t r a n s f o r m . w o r l d T r a n s f o r m , o = s . a , h = s . b , u = s . c , l = s . d , f = s . t x , c = s . t y , d = - a . _ x * n . w i d t h , v = d + n . w i d t h , p = - a . _ y * n . h e i g h t , _ = p + n . h e i g h t ; i [ 0 ] = o * d + u * p + f , i [ 1 ] = l * p + h * d + c , i [ 2 ] = o * v + u * p + f , i [ 3 ] = l * p + h * v + c , i [ 4 ] = o * v + u * _ + f , i [ 5 ] = l * _ + h * v + c , i [ 6 ] = o * d + u * _ + f , i [ 7 ] = l * _ + h * d + c } , t . p r o t o t y p e . _ r e n d e r = f u n c t i o n ( e ) { t h i s . c a l c u l a t e V e r t i c e s ( ) , e . b a t c h . s e t O b j e c t R e n d e r e r ( e . p l u g i n s [ t h i s . p l u g i n N a m e ] ) , e . p l u g i n s [ t h i s . p l u g i n N a m e ] . r e n d e r ( t h i s ) } , t . p r o t o t y p e . _ c a l c u l a t e B o u n d s = f u n c t i o n ( ) { v a r e = t h i s . _ t e x t u r e . t r i m , i = t h i s . _ t e x t u r e . o r i g ; ! e | | e . w i d t h = = = i . w i d t h & & e . h e i g h t = = = i . h e i g h t ? ( t h i s . c a l c u l a t e V e r t i c e s ( ) , t h i s . _ b o u n d s . a d d Q u a d ( t h i s . v e r t e x D a t a ) ) : ( t h i s . c a l c u l a t e T r i m m e d V e r t i c e s ( ) , t h i s . _ b o u n d s . a d d Q u a d ( t h i s . v e r t e x T r i m m e d D a t a ) ) } , t . p r o t o t y p e . g e t L o c a l B o u n d s = f u n c t i o n ( e ) { r e t u r n t h i s . c h i l d r e n . l e n g t h = = = 0 ? ( t h i s . _ l o c a l B o u n d s | | ( t h i s . _ l o c a l B o u n d s = n e w x r ) , t h i s . _ l o c a l B o u n d s . m i n X = t h i s . _ t e x t u r e . o r i g . w i d t h * - t h i s . _ a n c h o r . _ x , t h i s . _ l o c a l B o u n d s . m i n Y = t h i s . _ t e x t u r e . o r i g . h e i g h t * - t h i s . _ a n c h o r . _ y , t h i s . _ l o c a l B o u n d s . m a x X = t h i s . _ t e x t u r e . o r i g . w i d t h * ( 1 - t h i s . _ a n c h o r . _ x ) , t h i s . _ l o c a l B o u n d s . m a x Y = t h i s . _ t e x t u r e . o r i g . h e i g h t * ( 1 - t h i s . _ a n c h o r . _ y ) , e | | ( t h i s . _ l o c a l B o u n d s R e c t | | ( t h i s . _ l o c a l B o u n d s R e c t = n e w W ) , e = t h i s . _ l o c a l B o u n d s R e c t ) , t h i s . _ l o c a l B o u n d s . g e t R e c t a n g l e ( e ) ) : r . p r o t o t y p e . g e t L o c a l B o u n d s . c a l l ( t h i s , e ) } , t . p r o t o t y p e . c o n t a i n s P o i n t = f u n c t i o n ( e ) { t h i s . w o r l d T r a n s f o r m . a p p l y I n v e r s e ( e , M e ) ; v a r i = t h i s . _ t e x t u r e . o r i g . w i d t h , n = t h i s . _ t e x t u r e . o r i g . h e i g h t , a = - i * t h i s . a n c h o r . x , s = 0 ; r e t u r n M e . x > = a & & M e . x < a + i & & ( s = - n * t h i s . a n c h o r . y , M e . y > = s & & M e . y < s + n ) } , t . p r o t o t y p e . d e s t r o y = f u n c t i o n ( e ) { r . p r o t o t y p e . d e s t r o y . c a l l ( t h i s , e ) , t h i s . _ t e x t u r e . o f f ( " u p d a t e " , t h i s . _ o n T e x t u r e U p d a t e , t h i s ) , t h i s . _ a n c h o r = n
* @ pixi / text - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / text is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r I i = f u n c t i o n ( r , t ) { r e t u r n I i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , I i ( r , t ) } ; f u n c t i o n p f ( r , t ) { I i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } v a r j e ; ( f u n c t i o n ( r ) { r [ r . L I N E A R _ V E R T I C A L = 0 ] = " L I N E A R _ V E R T I C A L " , r [ r . L I N E A R _ H O R I Z O N T A L = 1 ] = " L I N E A R _ H O R I Z O N T A L " } ) ( j e | | ( j e = { } ) ) ; v a r a i = { a l i g n : " l e f t " , b r e a k W o r d s : ! 1 , d r o p S h a d o w : ! 1 , d r o p S h a d o w A l p h a : 1 , d r o p S h a d o w A n g l e : M a t h . P I / 6 , d r o p S h a d o w B l u r : 0 , d r o p S h a d o w C o l o r : " b l a c k " , d r o p S h a d o w D i s t a n c e : 5 , f i l l : " b l a c k " , f i l l G r a d i e n t T y p e : j e . L I N E A R _ V E R T I C A L , f i l l G r a d i e n t S t o p s : [ ] , f o n t F a m i l y : " A r i a l " , f o n t S i z e : 2 6 , f o n t S t y l e : " n o r m a l " , f o n t V a r i a n t : " n o r m a l " , f o n t W e i g h t : " n o r m a l " , l e t t e r S p a c i n g : 0 , l i n e H e i g h t : 0 , l i n e J o i n : " m i t e r " , m i t e r L i m i t : 1 0 , p a d d i n g : 0 , s t r o k e : " b l a c k " , s t r o k e T h i c k n e s s : 0 , t e x t B a s e l i n e : " a l p h a b e t i c " , t r i m : ! 1 , w h i t e S p a c e : " p r e " , w o r d W r a p : ! 1 , w o r d W r a p W i d t h : 1 0 0 , l e a d i n g : 0 } , _ f = [ " s e r i f " , " s a n s - s e r i f " , " m o n o s p a c e " , " c u r s i v e " , " f a n t a s y " , " s y s t e m - u i " ] , C r = f u n c t i o n ( ) { f u n c t i o n r ( t ) { t h i s . s t y l e I D = 0 , t h i s . r e s e t ( ) , o i ( t h i s , t , t ) } r e t u r n r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { v a r t = { } ; r e t u r n o i ( t , t h i s , a i ) , n e w r ( t ) } , r . p r o t o t y p e . r e s e t = f u n c t i o n ( ) { o i ( t h i s , a i , a i ) } , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " a l i g n " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ a l i g n } , s e t : f u n c t i o n ( t ) { t h i s . _ a l i g n ! = = t & & ( t h i s . _ a l i g n = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " b r e a k W o r d s " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ b r e a k W o r d s } , s e t : f u n c t i o n ( t ) { t h i s . _ b r e a k W o r d s ! = = t & & ( t h i s . _ b r e a k W o r d s = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " d r o p S h a d o w " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d r o p S h a d o w } , s e t : f u n c t i o n ( t ) { t h i s . _ d r o p S h a d o w ! = = t & & ( t h i s . _ d r o p S h a d o w = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " d r o p S h a d o w A l p h a " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d r o p S h a d o w A l p h a } , s e t : f u n c t i o n ( t ) { t h i s . _ d r o p S h a d o w A l p h a ! = = t & & ( t h i s . _ d r o p S h a d o w A l p h a = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " d r o p S h a d o w A n g l e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d r o p S h a d o w A n g l e } , s e t : f u n c t i o n ( t ) { t h i s . _ d r o p S h a d o w A n g l e ! = = t & & ( t h i s . _ d r o p S h a d o w A n g l e = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " d r o p S h a d o w B l u r " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d r o p S h a d o w B l u r } , s e t : f u n c t i o n ( t ) { t h i s . _ d r o p S h a d o w B l u r ! = = t & & ( t h i s . _ d r o p S h a d o w B l u r = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " d r o p S h a d o w C o l o r " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d r o p S h a d o w C o l o r } , s e t : f u n c t i o n ( t ) { v a r e = s i ( t ) ; t h i s . _ d r o p S h a d o w C o l o r ! = = e & & ( t h i s . _ d r o p S h a d o w C o l o r = e , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " d r o p S h a d o w D i s t a n c e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ d r o p S h a d o w D i s t a n c e } , s e t : f u n c t i o n ( t ) { t h i s . _ d r o p S h a d o w D i s t a n c e ! = = t & & ( t h i s . _ d r o p S h a d o w D i s t a n c e = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " f i l l " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ f i l l } , s e t : f u n c t i o n ( t ) { v a r e = s i ( t ) ; t h i s . _ f i l l ! = = e & & ( t h i s . _ f i l l = e , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " f i l l G r a d i e n t T y p e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ f i l l G r a d i e n t T y p e } , s e t : f u n c t i o n ( t ) { t h i s . _ f i l l G r a d i e n t T y p e ! = = t & & ( t h i s . _ f i l l G r a d i e n t T y p e = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " f i l l G r a d i e n t S t o p s " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ f i l l G r a d i e n t S t o p s } , s e t : f u n c t i o n ( t ) { g f ( t h i s . _ f i l l G r a d i e n t S t o p s , t ) | | ( t h i s . _ f i l l G r a d i e n t S t o p s = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " f o n t F a m i l y " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ f o n t F a m i l y } , s e t : f u n c t i o n ( t ) { t h i s . f o n t F a m i l y ! = = t & & ( t h i s . _ f o n t F a m i l y = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " f o n t S i z e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ f o n t S i z e } , s e t : f u n c t i o n ( t ) { t h i s . _ f o n t S i z e ! = = t & & ( t h i s . _ f o n t S i z e = t , t h i s . s t y l e I D + + ) } , e n u m e r a b l e : ! 1 , c o n f i g u r a b l e : ! 0 } ) , O b j e c t . d e f i n e P r o p e r t y ( r . p r o t o t y p e , " f o n t S t y l e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ f o n t S t y l e } , s e t : f u n c t i o n ( t ) { t h i s . _ f o n t S t y l e ! = = t & & ( t h i s . _ f o n t S t y l e =
` :t,t},r.getFromCache=function(t,e,i,n){var a=i[t];if(typeof a!="number"){var s=t.length*e;a=n.measureText(t).width+s,i[t]=a}return a},r.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},r.collapseNewlines=function(t){return t==="normal"},r.trimRight=function(t){if(typeof t!="string")return"";for(var e=t.length-1;e>=0;e--){var i=t[e];if(!r.isBreakingSpace(i))break;t=t.slice(0,-1)}return t},r.isNewline=function(t){return typeof t!="string"?!1:r._newlines.indexOf(t.charCodeAt(0))>=0},r.isBreakingSpace=function(t,e){return typeof t!="string"?!1:r._breakingSpaces.indexOf(t.charCodeAt(0))>=0},r.tokenize=function(t){var e=[],i="";if(typeof t!="string")return e;for(var n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(r.isBreakingSpace(a,s)||r.isNewline(a)){i!==""&&(e.push(i),i=""),e.push(a);continue}i+=a}return i!==""&&e.push(i),e},r.canBreakWords=function(t,e){return e},r.canBreakChars=function(t,e,i,n,a){return!0},r.wordWrapSplit=function(t){return t.split("")},r.measureFont=function(t){if(r._fonts[t])return r._fonts[t];var e={ascent:0,descent:0,fontSize:0},i=r._canvas,n=r._context;n.font=t;var a=r.METRICS_STRING+r.BASELINE_SYMBOL,s=Math.ceil(n.measureText(a).width),o=Math.ceil(n.measureText(r.BASELINE_SYMBOL).width),h=Math.ceil(r.HEIGHT_MULTIPLIER*o);o=o*r.BASELINE_MULTIPLIER|0,i.width=s,i.height=h,n.fillStyle="#f00",n.fillRect(0,0,s,h),n.font=t,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(a,0,o);var u=n.getImageData(0,0,s,h).data,l=u.length,f=s*4,c=0,d=0,v=!1;for(c=0;c<o;++c){for(var p=0;p<f;p+=4)if(u[d+p]!==255){v=!0;break}if(!v)d+=f;else break}for(e.ascent=o-c,d=l-f,v=!1,c=h;c>o;--c){for(var p=0;p<f;p+=4)if(u[d+p]!==255){v=!0;break}if(!v)d-=f;else break}return e.descent=c-o,e.fontSize=e.ascent+e.descent,r._fonts[t]=e,e},r.clearMetrics=function(t){t===void 0&&(t=""),t?delete r._fonts[t]:r._fonts={}},Object.defineProperty(r,"_canvas",{get:function(){if(!r.__canvas){var t=void 0;try{var e=new OffscreenCanvas(0,0),i=e.getContext("2d",fr);if(i&&i.measureText)return r.__canvas=e,e;t=S.ADAPTER.createCanvas()}catch{t=S.ADAPTER.createCanvas()}t.width=t.height=10,r.__canvas=t}return r.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(r,"_context",{get:function(){return r.__context||(r.__context=r._canvas.getContext("2d",fr)),r.__context},enumerable:!1,configurable:!0}),r}();Ht._fonts={};Ht.METRICS_STRING="| \x C9q \x C5";Ht.BASELINE_SYMBOL="M";Ht.BASELINE_MULTIPLIER=1.4;Ht.HEIGHT_MULTIPLIER=2;Ht._newlines=[10,13];Ht._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var mf={texture:!0,children:!1,baseTexture:!0};(function(r){pf(t,r);function t(e,i,n){var a=this,s=!1;n||(n=S.ADAPTER.createCanvas(),s=!0),n.width=3,n.height=3;var o=X.from(n);return o.orig=new W,o.trim=new W,a=r.call(this,o)||this,a._ownCanvas=s,a.canvas=n,a.context=n.getContext("2d",{willReadFrequently:!0}),a._resolution=S.RESOLUTION,a._autoResolution=!0,a._text=null,a._style=null,a._styleListener=null,a._font="",a.text=e,a.style=i,a.localStyleID=-1,a}return t.prototype.updateText=function(e){var i=this._style;if(this.localStyleID!==i.styleID&&(this.dirty=!0,this.localStyleID=i.styleID),!(!this.dirty&&e)){this._font=this._style.toFontString();var n=this.context,a=Ht.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),s=a.width,o=a.height,h=a.lines,u=a.lineHeight,l=a.lineWidths,f=a.maxLineWidth,c=a.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,s)+i.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,o)+i.padding*2)*this._resolution),n.scale(this._resolution,this._resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.lineWidth=i.strokeThickness,n.textBaseline=i.textBaseline,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit;for(var d,v,p=i.dropShadow?2:1,_=0;_<p;++_){var g=i.dropShadow&&_===0,b=g?Math.ceil(Math.max(1,o)+i.padding*2):0,T=b*this._resolution;if(g){n.fillStyle="black",n.strokeStyle="black";var x=i.dropShadowColor,m=Ge(typeof x=="number"?x:Jn(x)),y=i.dropShadowBlur*this._resolution,E=i.dropShadowDist
* @ pixi / text - bitmap - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / text - bitmap is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /var Ci=function(r,t){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Ci(r,t)};function yf(r,t){Ci(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Or=function(){function r(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return r}(),_r=function(){function r(){}return r.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},r.parse=function(t){var e=t.match(/ ^ [ a - z ] + \ s + . + $ / gm ) , i = { info : [ ] , common : [ ] , page : [ ] , char : [ ] , chars : [ ] , kerning : [ ] , kernings : [ ] , distanceField : [ ] } ; for ( var n in e ) { var a = e [ n ] . match ( /^[a-z]+/gm ) [ 0 ] , s = e [ n ] . match ( /[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm ) , o = { } ; for ( var h in s ) { var u = s [ h ] . split ( "=" ) , l = u [ 0 ] , f = u [ 1 ] . replace ( /"/gm , "" ) , c = parseFloat ( f ) , d = isNaN ( c ) ? f : c ; o [ l ] = d } i [ a ] . push ( o ) } var v = new Or ; return i . info . forEach ( function ( p ) { return v . info . push ( { face : p . face , size : parseInt ( p . size , 10 ) } ) } ) , i . common . forEach ( function ( p ) { return v . common . push ( { lineHeight : parseInt ( p . lineHeight , 10 ) } ) } ) , i . page . forEach ( function ( p ) { return v . page . push ( { id : parseInt ( p . id , 10 ) , file : p . file } ) } ) , i . char . forEach ( function ( p ) { return v . char . push ( { id : parseInt ( p . id , 10 ) , page : parseInt ( p . page , 10 ) , x : parseInt ( p . x , 10 ) , y : parseInt ( p . y , 10 ) , width : parseInt ( p . width , 10 ) , height : parseInt ( p . height , 10 ) , xoffset : parseInt ( p . xoffset , 10 ) , yoffset : parseInt ( p . yoffset , 10 ) , xadvance : parseInt ( p . xadvance , 10 ) } ) } ) , i . kerning . forEach ( function ( p ) { return v . kerning . push ( { first : parseInt ( p . first , 10 ) , second : parseInt ( p . second , 10 ) , amount : parseInt ( p . amount , 10 ) } ) } ) , i . distanceField . forEach ( function ( p ) { return v . distanceField . push ( { distanceRange : parseInt ( p . distanceRange , 10 ) , fieldType : p . fieldType } ) } ) , v } , r } ( ) , Oi = function ( ) { function r ( ) { } return r . test = function ( t ) { return t instanceof XMLDocument && t . getElementsByTagName ( "page" ) . length && t . getElementsByTagName ( "info" ) [ 0 ] . getAttribute ( "face" ) !== null } , r . parse = function ( t ) { for ( var e = new Or , i = t . getElementsByTagName ( "info" ) , n = t . getElementsByTagName ( "common" ) , a = t . getElementsByTagName ( "page" ) , s = t . getElementsByTagName ( "char" ) , o = t . getElementsByTagName ( "kerning" ) , h = t . getElementsByTagName ( "distanceField" ) , u = 0 ; u < i . length ; u ++ ) e . info . push ( { face : i [ u ] . getAttribute ( "face" ) , size : parseInt ( i [ u ] . getAttribute ( "size" ) , 10 ) } ) ; for ( var u = 0 ; u < n . length ; u ++ ) e . common . push ( { lineHeight : parseInt ( n [ u ] . getAttribute ( "lineHeight" ) , 10 ) } ) ; for ( var u = 0 ; u < a . length ; u ++ ) e . page . push ( { id : parseInt ( a [ u ] . getAttribute ( "id" ) , 10 ) || 0 , file : a [ u ] . getAttribute ( "file" ) } ) ; for ( var u = 0 ; u < s . length ; u ++ ) { var l = s [ u ] ; e . char . push ( { id : parseInt ( l . getAttribute ( "id" ) , 10 ) , page : parseInt ( l . getAttribute ( "page" ) , 10 ) || 0 , x : parseInt ( l . getAttribute ( "x" ) , 10 ) , y : parseInt ( l . getAttribute ( "y" ) , 10 ) , width : parseInt ( l . getAttribute ( "width" ) , 10 ) , height : parseInt ( l . getAttribute ( "height" ) , 10 ) , xoffset : parseInt ( l . getAttribute ( "xoffset" ) , 10 ) , yoffset : parseInt ( l . getAttribute ( "yoffset" ) , 10 ) , xadvance : parseInt ( l . getAttribute ( "xadvance" ) , 10 ) } ) } for ( var u = 0 ; u < o . length ; u ++ ) e . kerning . push ( { first : parseInt ( o [ u ] . getAttribute ( "first" ) , 10 ) , second : parseInt ( o [ u ] . getAttribute ( "second" ) , 10 ) , amount : parseInt ( o [ u ] . getAttribute ( "amount" ) , 10 ) } ) ; for ( var u = 0 ; u < h . length ; u ++ ) e . distanceField . push ( { fieldType : h [ u ] . getAttribute ( "fieldType" ) , distanceRange : parseInt ( h [ u ] . getAttribute ( "distanceRange" ) , 10 ) } ) ; return e } , r } ( ) , Bi = function ( ) { function r ( ) { } return r . test = function ( t ) { if ( typeof t == "string" && t . indexOf ( "<font>" ) > - 1 ) { var e = new globalThis . DOMParser ( ) . parseFromString ( t , "text/xml" ) ; return Oi . test ( e ) } return ! 1 } , r . parse = function ( t ) { var e = new globalThis . DOMParser ( ) . parseFromString ( t , "text/xml" ) ; return Oi . parse ( e ) } , r } ( ) , hi = [ _r , Oi , Bi ] ; function Aa ( r ) { for ( var t = 0 ; t < hi . length ; t ++ ) if ( hi [ t ] . test ( r ) ) return hi [ t ] ; return null } function bf ( r , t , e , i , n , a ) { var s = e . fill ; if ( Array . isArray ( s ) ) { if ( s . length === 1 ) return s [ 0 ] } else return s ; var o , h = e . dropShadow ? e . dropShadowDistance : 0 , u = e . padding || 0 , l = r . width / i - h - u * 2 , f = r . height / i - h - u * 2 , c = s . slice ( ) , d = e . fillGradientStops . slice ( ) ; if ( ! d . length ) for ( var v = c . length + 1 , p = 1 ; p < v ; ++
varying vec2 vTextureCoord ; \ r
uniform sampler2D uSampler ; \ r
\ r
// Tint\r
uniform vec4 uColor ; \ r
\ r
// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r
uniform float uFWidth ; \ r
\ r
void main ( void ) { \ r
\ r
// To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r
vec4 texColor = texture2D ( uSampler , vTextureCoord ) ; \ r
\ r
// MSDF\r
float median = texColor . r + texColor . g + texColor . b - \ r
min ( texColor . r , min ( texColor . g , texColor . b ) ) - \ r
max ( texColor . r , max ( texColor . g , texColor . b ) ) ; \ r
// SDF\r
median = min ( median , texColor . a ) ; \ r
\ r
float screenPxDistance = uFWidth * ( median - 0.5 ) ; \ r
float alpha = clamp ( screenPxDistance + 0.5 , 0.0 , 1.0 ) ; \ r
if ( median < 0.01 ) { \ r
alpha = 0.0 ; \ r
} else if ( median > 0.99 ) { \ r
alpha = 1.0 ; \ r
} \ r
\ r
// NPM Textures, NPM outputs\r
gl _FragColor = vec4 ( uColor . rgb , uColor . a * alpha ) ; \ r
\ r
} \ r
` ,Af= ` // Mesh material default fragment\r
attribute vec2 aVertexPosition ; \ r
attribute vec2 aTextureCoord ; \ r
\ r
uniform mat3 projectionMatrix ; \ r
uniform mat3 translationMatrix ; \ r
uniform mat3 uTextureMatrix ; \ r
\ r
varying vec2 vTextureCoord ; \ r
\ r
void main ( void ) \ r
{ \ r
gl _Position = vec4 ( ( projectionMatrix * translationMatrix * vec3 ( aVertexPosition , 1.0 ) ) . xy , 0.0 , 1.0 ) ; \ r
\ r
vTextureCoord = ( uTextureMatrix * vec3 ( aTextureCoord , 1.0 ) ) . xy ; \ r
} \ r
` ,Un=[],Gn=[],kn=[];(function(r){yf(t,r);function t(e,i){i===void 0&&(i={});var n=r.call(this)||this;n._tint=16777215;var a=Object.assign({},t.styleDefaults,i),s=a.align,o=a.tint,h=a.maxWidth,u=a.letterSpacing,l=a.fontName,f=a.fontSize;if(!Ft.available[l])throw new Error('Missing BitmapFont "'+l+'"');return n._activePagesMeshData=[],n._textWidth=0,n._textHeight=0,n._align=s,n._tint=o,n._font=void 0,n._fontName=l,n._fontSize=f,n.text=e,n._maxWidth=h,n._maxLineHeight=0,n._letterSpacing=u,n._anchor=new Te(function(){n.dirty=!0},n,0,0),n._roundPixels=S.ROUND_PIXELS,n.dirty=!0,n._resolution=S.RESOLUTION,n._autoResolution=!0,n._textureCache={},n}return t.prototype.updateText=function(){for(var e,i=Ft.available[this._fontName],n=this.fontSize,a=n/i.size,s=new rt,o=[],h=[],u=[],l=this._text.replace(/(?: \r \n | \r )/g, `
` )||" ",f=wa(l),c=this._maxWidth*i.size/n,d=i.distanceFieldType==="none"?Un:Gn,v=null,p=0,_=0,g=0,b=-1,T=0,x=0,m=0,y=0,E=0;E<f.length;E++){var P=f[E],A=gr(P);if(/(?: \s )/.test(P)&&(b=E,T=p,y++),P===" \r "||P=== `
` ){h.push(p),u.push(-1),_=Math.max(_,p),++g,++x,s.x=0,s.y+=i.lineHeight,v=null,y=0;continue}var R=i.chars[A];if(!!R){v&&R.kerning[v]&&(s.x+=R.kerning[v]);var O=kn.pop()||{texture:X.EMPTY,line:0,charCode:0,prevSpaces:0,position:new rt};O.texture=R.texture,O.line=g,O.charCode=A,O.position.x=s.x+R.xOffset+this._letterSpacing/2,O.position.y=s.y+R.yOffset,O.prevSpaces=y,o.push(O),p=O.position.x+Math.max(R.xAdvance-R.xOffset,R.texture.orig.width),s.x+=R.xAdvance+this._letterSpacing,m=Math.max(m,R.yOffset+R.texture.height),v=A,b!==-1&&c>0&&s.x>c&&(++x,Fe(o,1+b-x,1+E-b),E=b,b=-1,h.push(T),u.push(o.length>0?o[o.length-1].prevSpaces:0),_=Math.max(_,T),g++,s.x=0,s.y+=i.lineHeight,v=null,y=0)}}var D=f[f.length-1];D!==" \r "&&D!== `
` &&(/(?: \s )/.test(D)&&(p=T),h.push(p),_=Math.max(_,p),u.push(-1));for(var j=[],E=0;E<=g;E++){var Q=0;this._align==="right"?Q=_-h[E]:this._align==="center"?Q=(_-h[E])/2:this._align==="justify"&&(Q=u[E]<0?0:(_-h[E])/u[E]),j.push(Q)}var I=o.length,C={},H=[],ht=this._activePagesMeshData;d.push.apply(d,ht);for(var E=0;E<I;E++){var V=o[E].texture,tt=V.baseTexture.uid;if(!C[tt]){var F=d.pop();if(!F){var qe=new ff,jt=void 0,It=void 0;i.distanceFieldType==="none"?(jt=new Ln(X.EMPTY),It=B.NORMAL):(jt=new Ln(X.EMPTY,{program:Ve.from(Af,xf),uniforms:{uFWidth:0}}),It=B.NORMAL_NPM);var we=new Fn(qe,jt);we.blendMode=It,F={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:we,vertices:null,uvs:null,indices:null}}F.index=0,F.indexCount=0,F.vertexCount=0,F.uvsCount=0,F.total=0;var ce=this._textureCache;ce[tt]=ce[tt]||new X(V.baseTexture),F.mesh.texture=ce[tt],F.mesh.tint=this._tint,H.push(F),C[tt]=F}C[tt].total++}for(var E=0;E<ht.length;E++)H.indexOf(ht[E])===-1&&this.removeChild(ht[E].mesh);for(var E=0;E<H.length;E++)H[E].mesh.parent!==this&&this.addChild(H[E].mesh);this._activePagesMeshData=H;for(var E in C){var F=C[E],xt=F.total;if(!(((e=F.indices)===null||e===void 0?void 0:e.length)>6*xt)||F.vertices.length<Fn.BATCHABLE_SIZE*2)F.vertices=new Float32Array(4*2*xt),F.uvs=new Float32Array(4*2*xt),F.indices=new Uint16Array(6*xt);else for(var de=F.total,ve=F.vertices,pt=de*4*2;pt<ve.length;pt++)ve[pt]=0;F.mesh.size=6*xt}for(var E=0;E<I;E++){var P=o[E],_t=P.position.x+j[P.line]*(this._align==="justify"?P.prevSpaces:1);this._roundPixels&&(_t=Math.round(_t));var dt=_t*a,vt=P.position.y*a,V=P.texture, $ =C[V.baseTexture.uid],Kt=V.frame,At=V._uvs,Y= $ .index++; $ .indices[Y*6+0]=0+Y*4, $ .indices[Y*6+1]=1+Y*4, $ .indices[Y*6+2]=2+Y*4, $ .indices[Y*6+3]=0+Y*4, $ .indices[Y*6+4]=2+Y*4, $ .indices[Y*6+5]=3+Y*4, $ .vertices[Y*8+0]=dt, $ .vertices[Y*8+1]=vt, $ .vertices[Y*8+2]=dt+Kt.width*a, $ .vertices[Y*8+3]=vt, $ .vertices[Y*8+4]=dt+Kt.width*a, $ .vertices[Y*8+5]=vt+Kt.height*a, $ .vertices[Y*8+6]=dt, $ .vertices[Y*8+7]=vt+Kt.height*a, $ .uvs[Y*8+0]=At.x0, $ .uvs[Y*8+1]=At.y0, $ .uvs[Y*8+2]=At.x1, $ .uvs[Y*8+3]=At.y1, $ .uvs[Y*8+4]=At.x2, $ .uvs[Y*8+5]=At.y2, $ .uvs[Y*8+6]=At.x3, $ .uvs[Y*8+7]=At.y3}this._textWidth=_*a,this._textHeight=(s.y+i.lineHeight)*a;for(var E in C){var F=C[E];if(this.anchor.x!==0||this.anchor.y!==0)for(var wt=0,pe=this._textWidth*this.anchor.x, $ e=this._textHeight*this.anchor.y,Hi=0;Hi<F.total;Hi++)F.vertices[wt++]-=pe,F.vertices[wt++]-= $ e,F.vertices[wt++]-=pe,F.vertices[wt++]-= $ e,F.vertices[wt++]-=pe,F.vertices[wt++]-= $ e,F.vertices[wt++]-=pe,F.vertices[wt++]-= $ e;this._maxLineHeight=m*a;var ji=F.mesh.geometry.getBuffer("aVertexPosition"),Wi=F.mesh.geometry.getBuffer("aTextureCoord"),Vi=F.mesh.geometry.getIndex();ji.data=F.vertices,Wi.data=F.uvs,Vi.data=F.indices,ji.update(),Wi.update(),Vi.update()}for(var E=0;E<o.length;E++)kn.push(o[E]);this._font=i,this.dirty=!1},t.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},t.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);var i=Ft.available[this._fontName],n=i.distanceFieldRange,a=i.distanceFieldType,s=i.size;if(a!=="none")for(var o=this.worldTransform,h=o.a,u=o.b,l=o.c,f=o.d,c=Math.sqrt(h*h+u*u),d=Math.sqrt(l*l+f*f),v=(Math.abs(c)+Math.abs(d))/2,p=this.fontSize/s,_=0,g=this._activePagesMeshData;_<g.length;_++){var b=g[_];b.mesh.shader.uniforms.uFWidth=v*n*p*this._resolution}r.prototype._render.call(this,e)},t.prototype.getLocalBounds=function(){return this.validate(),r.prototype.getLocalBounds.call(this)},t.prototype.validate=function(){var e=Ft.available[this._fontName];if(!e)throw new Error('Missing BitmapFont "'+this._fontName+'"');this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(e){if(this._tint!==e){this._tint=e;for(var i=0;i<this._activePagesMeshData.length;i++)this._activePagesMeshData[i].mesh.tint=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){ret
* @ pixi / assets - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / assets is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* //*! *****************************************************************************
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /var Xt=function(){return Xt=Object.assign||function(t){for(var e=arguments,i,n=1,a=arguments.length;n<a;n++){i=e[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},Xt.apply(this,arguments)};function U(r,t,e,i){function n(a){return a instanceof e?a:new e(function(s){s(a)})}return new(e||(e=Promise))(function(a,s){function o(l){try{u(i.next(l))}catch(f){s(f)}}function h(l){try{u(i.throw(l))}catch(f){s(f)}}function u(l){l.done?a(l.value):n(l.value).then(o,h)}u((i=i.apply(r,t||[])).next())})}function G(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return h([u,l])}}function h(u){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,n=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(r,e)}catch(l){u=[6,l],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var wf=function(){function r(t,e){e===void 0&&(e=!1),this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=e}return r.prototype.add=function(t){var e=this;t.forEach(function(i){e._assetList.push(i)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()},r.prototype._next=function(){return U(this,void 0,Promise,function(){var t,e,i;return G(this,function(n){switch(n.label){case 0:if(!(this._assetList.length&&this._isActive))return[3,2];for(this._isLoading=!0,t=[],e=Math.min(this._assetList.length,this._maxConcurrent),i=0;i<e;i++)t.push(this._assetList.pop());return[4,this._loader.load(t)];case 1:n.sent(),this._isLoading=!1,this._next(),n.label=2;case 2:return[2]}})})},Object.defineProperty(r.prototype,"active",{get:function(){return this._isActive},set:function(t){this._isActive!==t&&(this._isActive=t,t&&!this._isLoading&&this._next())},enumerable:!1,configurable:!0}),r}(),Gt=function(r,t){return Array.isArray(r)||(r=[r]),t?r.map(function(e){return typeof e=="string"?t(e):e}):r};function Ra(r,t,e,i,n){for(var a=t[e],s=0;s<a.length;s++){var o=a[s];e<t.length-1?Ra(r.replace(i[e],o),t,e+1,i,n):n.push(r.replace(i[e],o))}}function Rf(r){var t=/ \ { ( . * ? ) \ } / g , e = r . match ( t ) , i = [ ] ; if ( e ) { var n = [ ] ; e . forEach ( function ( a ) { var s = a . substring ( 1 , a . length - 1 ) . split ( "," ) ; n . push ( s ) } ) , Ra ( r , n , 0 , e , i ) } else i . push ( r ) ; return i } var Br = function ( r ) { return ! Array . isArray ( r ) } , Sf = function ( ) { function r ( ) { this . _parsers = [ ] , this . _cache = new Map , this . _cacheMap = new Map } return r . prototype . reset = function ( ) { this . _cacheMap . clear ( ) , this . _cache . clear ( ) } , r . prototype . has = function ( t ) { return this . _cache . has ( t ) } , r . prototype . get = function ( t ) { var e = this . _cache . get ( t ) ; return e || console . warn ( "[Assets] Asset id " + t + " was not found in the Cache" ) , e } , r . prototype . set = function ( t , e ) { for ( var i = this , n = Gt ( t ) , a , s = 0 ; s < this . parsers . length ; s ++ ) { var o = this . parsers [ s ] ; if ( o . test ( e ) ) { a = o . getCacheableAssets ( n , e ) ; break } } a || ( a = { } , n . forEach ( function ( f ) { a [ f ] = e } ) ) ; var h = Object . keys ( a ) , u = { cacheKeys : h , keys : n } ; if ( n . forEach ( function ( f ) { i . _cacheMap . set ( f , u ) } ) , h . forEach ( function ( f ) { i . _cache . has ( f ) && i . _cache . get ( f ) !== e && console . warn ( "[Cache] already has key:" , f ) , i . _cache . set ( f , a [ f ] ) } ) , e instanceof X ) { var l = e ; n . forEach ( function ( f ) { l . baseTexture !== X . EMPTY . baseTexture && k . addToCache ( l . baseTexture , f ) , X . addToCache ( l , f ) } ) } } , r . prototype . remove = function ( t ) { var e = this ; if ( this . _cacheMa
async function checkImageBitmap ( )
{
try
{
if ( typeof createImageBitmap !== 'function' ) return false ;
const response = await fetch ( '`+Xf+`' ) ;
const imageBlob = await response . blob ( ) ;
const imageBitmap = await createImageBitmap ( imageBlob ) ;
return imageBitmap . width === 1 && imageBitmap . height === 1 ;
}
catch ( e )
{
return false ;
}
}
checkImageBitmap ( ) . then ( ( result ) => { self . postMessage ( result ) ; } ) ;
` },jf={id:"loadImageBitmap",code: `
async function loadImageBitmap ( url )
{
const response = await fetch ( url ) ;
if ( ! response . ok )
{
throw new Error ( \ ` [WorkerManager.loadImageBitmap] Failed to fetch \$ {url}: \`
+ \ ` \$ {response.status} \$ {response.statusText} \` );
}
const imageBlob = await response . blob ( ) ;
const imageBitmap = await createImageBitmap ( imageBlob ) ;
return imageBitmap ;
}
self . onmessage = async ( event ) =>
{
try
{
const imageBitmap = await loadImageBitmap ( event . data . data [ 0 ] ) ;
self . postMessage ( {
data : imageBitmap ,
uuid : event . data . uuid ,
id : event . data . id ,
} , [ imageBitmap ] ) ;
}
catch ( e )
{
self . postMessage ( {
error : e ,
uuid : event . data . uuid ,
id : event . data . id ,
} ) ;
}
} ; ` },li,Wf=function(){function r(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}return r.prototype.isImageBitmapSupported=function(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(function(t){var e=URL.createObjectURL(new Blob([Hf.code],{type:"application/javascript"})),i=new Worker(e);i.addEventListener("message",function(n){i.terminate(),URL.revokeObjectURL(e),t(n.data)})}),this._isImageBitmapSupported)},r.prototype.loadImageBitmap=function(t){return this._run("loadImageBitmap",[t])},r.prototype._initWorkers=function(){return U(this,void 0,void 0,function(){return G(this,function(t){return this._initialized?[2]:(this._initialized=!0,[2])})})},r.prototype.getWorker=function(){var t=this;ui===void 0&&(ui=navigator.hardwareConcurrency||4);var e=this.workerPool.pop();return!e&&this._createdWorkers<ui&&(li||(li=URL.createObjectURL(new Blob([jf.code],{type:"application/javascript"}))),this._createdWorkers++,e=new Worker(li),e.addEventListener("message",function(i){t.complete(i.data),t.returnWorker(i.target),t.next()})),e},r.prototype.returnWorker=function(t){this.workerPool.push(t)},r.prototype.complete=function(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null},r.prototype._run=function(t,e){return U(this,void 0,Promise,function(){var i,n=this;return G(this,function(a){switch(a.label){case 0:return[4,this._initWorkers()];case 1:return a.sent(),i=new Promise(function(s,o){n.queue.push({id:t,arguments:e,resolve:s,reject:o})}),this.next(),[2,i]}})})},r.prototype.next=function(){if(!!this.queue.length){var t=this.getWorker();if(!!t){var e=this.queue.pop(),i=e.id;this.resolveHash[Hn]={resolve:e.resolve,reject:e.reject},t.postMessage({data:e.arguments,uuid:Hn++,id:i})}}},r}(),jn=new Wf,fi=[".jpg",".png",".jpeg",".avif",".webp"];function Vf(r){return U(this,void 0,Promise,function(){var t,e,i;return G(this,function(n){switch(n.label){case 0:return[4,S.ADAPTER.fetch(r)];case 1:if(t=n.sent(),!t.ok)throw new Error("[loadImageBitmap] Failed to fetch "+r+": "+(t.status+" "+t.statusText));return[4,t.blob()];case 2:return e=n.sent(),[4,createImageBitmap(e)];case 3:return i=n.sent(),[2,i]}})})}var ki={extension:L.LoadParser,config:{preferWorkers:!0},test:function(r){for(var t=!1,e=0;e<fi.length;e++)if(r.indexOf("data:image/"+fi[e].slice(1))===0){t=!0;break}return t||Dr(r,fi)},load:function(r,t,e){return U(this,void 0,Promise,function(){var i,n,a;return G(this,function(s){switch(s.label){case 0:return i=null,window.createImageBitmap?(n=this.config.preferWorkers,n?[4,jn.isImageBitmapSupported()]:[3,2]):[3,7];case 1:n=s.sent(),s.label=2;case 2:return n?[4,jn.loadImageBitmap(r)]:[3,4];case 3:return i=s.sent(),[3,6];case 4:return[4,Vf(r)];case 5:i=s.sent(),s.label=6;case 6:return[3,9];case 7:return[4,new Promise(function(o){i=new Image,i.crossOrigin="anonymous",i.src=r,i.complete?o(i):i.onload=function(){o(i)}})];case 8:i=s.sent(),s.label=9;case 9:return a=new k(i,Xt({resolution:qt(r)},t.data)),a.resource.src=r,[2,ze(a,e,r)]}})})},unload:function(r){r.destroy(!0)}},Yf={extension:L.LoadParser,test:function(r){return st.extname(r).includes(".svg")},testParse:function(r){return U(this,void 0,Promise,function(){return G(this,function(t){return[2,mi.test(r)]})})},parse:function(r,t,e){var i,n,a;return U(this,void 0,Promise,function(){var s,o,h;return G(this,function(u){switch(u.label){case 0:return s=new mi(r,(i=t==null?void 0:t.data)===null||i===void 0?void 0:i.resourceOptions),o=new k(s,Xt({resolution:qt(r)},t==null?void 0:t.data)),o.resource.src=r,h=ze(o,e,r),!((a=(n=t==null?void 0:t.data)===null||n===void 0?void 0:n.resourceOptions)===null||a===void 0)&&a.autoLoad?[3,2]:[4,s.load()];case 1:u.sent(),u.label=2;case 2:return[2,h]}})})},load:function(r,t){return U(this,void 0,Promise,function(){var e;return G(this,function(i){switch(i.label){case 0:return[4,S.ADAPTER.fetch(r)];case 1:return e=i.sent(),[2,e.text()]}})})},unload:ki.unload},zf=fun
` +p);case 4:return[2]}})})}),[4,Promise.all(h)];case 1:return l.sent(),[2,a?n[s[0].src]:n]}})})},r.prototype.unload=function(t){return U(this,void 0,Promise,function(){var e,i,n=this;return G(this,function(a){switch(a.label){case 0:return e=Gt(t,function(s){return{src:s}}),i=e.map(function(s){return U(n,void 0,void 0,function(){var o,h,u,l,f;return G(this,function(c){switch(c.label){case 0:return o=st.toAbsolute(s.src),h=this.promiseCache[o],h?[4,h.promise]:[3,2];case 1:u=c.sent(),(f=(l=h.parser)===null||l===void 0?void 0:l.unload)===null||f===void 0||f.call(l,u,s,this),delete this.promiseCache[o],c.label=2;case 2:return[2]}})})}),[4,Promise.all(i)];case 1:return a.sent(),[2]}})})},Object.defineProperty(r.prototype,"parsers",{get:function(){return this._parsers},enumerable:!1,configurable:!0}),r}(),qf=["jpg","png","jpeg","avif","webp"], $ f={extension:L.ResolveParser,test:function(r){var t=r.split("?")[0],e=t.split("."),i=e.pop(),n=e.pop();return i==="json"&&qf.includes(n)},parse:function(r){var t,e,i=r.split(".");return{resolution:parseFloat((e=(t=S.RETINA_PREFIX.exec(r))===null||t===void 0?void 0:t[1])!==null&&e!==void 0?e:"1"),format:i[i.length-2],src:r}}},Kf={extension:L.ResolveParser,test:ki.test,parse:function(r){var t,e;return{resolution:parseFloat((e=(t=S.RETINA_PREFIX.exec(r))===null||t===void 0?void 0:t[1])!==null&&e!==void 0?e:"1"),format:r.split(".").pop(),src:r}}};L.ResolveParser;var Zf=function(){function r(){this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}return r.prototype.prefer=function(){for(var t=arguments,e=this,i=[],n=0;n<arguments.length;n++)i[n]=t[n];i.forEach(function(a){e._preferredOrder.push(a),a.priority||(a.priority=Object.keys(a.params))}),this._resolverHash={}},Object.defineProperty(r.prototype,"basePath",{get:function(){return this._basePath},set:function(t){this._basePath=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rootPath",{get:function(){return this._rootPath},set:function(t){this._rootPath=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parsers",{get:function(){return this._parsers},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this._preferredOrder=[],this._resolverHash={},this._assetMap={},this._rootPath=null,this._basePath=null,this._manifest=null},r.prototype.addManifest=function(t){var e=this;this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(function(i){e.addBundle(i.name,i.assets)})},r.prototype.addBundle=function(t,e){var i=this,n=[];Array.isArray(e)?e.forEach(function(a){typeof a.name=="string"?n.push(a.name):n.push.apply(n,a.name),i.add(a.name,a.srcs)}):Object.keys(e).forEach(function(a){n.push(a),i.add(a,e[a])}),this._bundles[t]=n},r.prototype.add=function(t,e,i){var n=this,a=Gt(t);a.forEach(function(o){n._assetMap[o]&&console.warn("[Resolver] already has key: "+o+" overwriting")}),Array.isArray(e)||(typeof e=="string"?e=Rf(e):e=[e]);var s=e.map(function(o){var h,u=o;if(typeof o=="string"){for(var l=!1,f=0;f<n._parsers.length;f++){var c=n._parsers[f];if(c.test(o)){u=c.parse(o),l=!0;break}}l||(u={src:o})}return u.format||(u.format=u.src.split(".").pop()),u.alias||(u.alias=a),(n._basePath||n._rootPath)&&(u.src=st.toAbsolute(u.src,n._basePath,n._rootPath)),u.data=(h=u.data)!==null&&h!==void 0?h:i,u});a.forEach(function(o){n._assetMap[o]=s})},r.prototype.resolveBundle=function(t){var e=this,i=Br(t);t=Gt(t);var n={};return t.forEach(function(a){var s=e._bundles[a];s&&(n[a]=e.resolve(s))}),i?n[t[0]]:n},r.prototype.resolveUrl=function(t){var e=this.resolve(t);if(typeof t!="string"){var i={};for(var n in e)i[n]=e[n].src;return i}return e.src},r.prototype.resolve=function(t){var e=this,i=Br(t);t=Gt(t);var n={};return t.forEach(function(a){var s;if(!e._resolverHash[a])if(e._assetMap[a]){var o=e._assetMap[a],h=e._getPreferredOrder(o),u=o[0];h==null||h.priority.forEach(function(f){h.params[f].forEach(function(c){var d=o.filter(function(v){return v[f]?v[f]===c:!1});d.length&&(o=d)})}),e._resolverHash[a
* @ pixi / graphics - v6 . 5.8
* Compiled Sun , 23 Oct 2022 23 : 01 : 45 UTC
*
* @ pixi / graphics is licensed under the MIT License .
* http : //www.opensource.org/licenses/mit-license
* / v a r U t ; ( f u n c t i o n ( r ) { r . M I T E R = " m i t e r " , r . B E V E L = " b e v e l " , r . R O U N D = " r o u n d " } ) ( U t | | ( U t = { } ) ) ; v a r z t ; ( f u n c t i o n ( r ) { r . B U T T = " b u t t " , r . R O U N D = " r o u n d " , r . S Q U A R E = " s q u a r e " } ) ( z t | | ( z t = { } ) ) ; v a r W e = { a d a p t i v e : ! 0 , m a x L e n g t h : 1 0 , m i n S e g m e n t s : 8 , m a x S e g m e n t s : 2 0 4 8 , e p s i l o n : 1 e - 4 , _ s e g m e n t s C o u n t : f u n c t i o n ( r , t ) { i f ( t = = = v o i d 0 & & ( t = 2 0 ) , ! t h i s . a d a p t i v e | | ! r | | i s N a N ( r ) ) r e t u r n t ; v a r e = M a t h . c e i l ( r / t h i s . m a x L e n g t h ) ; r e t u r n e < t h i s . m i n S e g m e n t s ? e = t h i s . m i n S e g m e n t s : e > t h i s . m a x S e g m e n t s & & ( e = t h i s . m a x S e g m e n t s ) , e } } , P a = f u n c t i o n ( ) { f u n c t i o n r ( ) { t h i s . c o l o r = 1 6 7 7 7 2 1 5 , t h i s . a l p h a = 1 , t h i s . t e x t u r e = X . W H I T E , t h i s . m a t r i x = n u l l , t h i s . v i s i b l e = ! 1 , t h i s . r e s e t ( ) } r e t u r n r . p r o t o t y p e . c l o n e = f u n c t i o n ( ) { v a r t = n e w r ; r e t u r n t . c o l o r = t h i s . c o l o r , t . a l p h a = t h i s . a l p h a , t . t e x t u r e = t h i s . t e x t u r e , t . m a t r i x = t h i s . m a t r i x , t . v i s i b l e = t h i s . v i s i b l e , t } , r . p r o t o t y p e . r e s e t = f u n c t i o n ( ) { t h i s . c o l o r = 1 6 7 7 7 2 1 5 , t h i s . a l p h a = 1 , t h i s . t e x t u r e = X . W H I T E , t h i s . m a t r i x = n u l l , t h i s . v i s i b l e = ! 1 } , r . p r o t o t y p e . d e s t r o y = f u n c t i o n ( ) { t h i s . t e x t u r e = n u l l , t h i s . m a t r i x = n u l l } , r } ( ) ; / * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r M i = f u n c t i o n ( r , t ) { r e t u r n M i = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , i ) { e . _ _ p r o t o _ _ = i } | | f u n c t i o n ( e , i ) { f o r ( v a r n i n i ) i . h a s O w n P r o p e r t y ( n ) & & ( e [ n ] = i [ n ] ) } , M i ( r , t ) } ; f u n c t i o n X i ( r , t ) { M i ( r , t ) ; f u n c t i o n e ( ) { t h i s . c o n s t r u c t o r = r } r . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( e . p r o t o t y p e = t . p r o t o t y p e , n e w e ) } f u n c t i o n W n ( r , t ) { v a r e , i ; t = = = v o i d 0 & & ( t = ! 1 ) ; v a r n = r . l e n g t h ; i f ( ! ( n < 6 ) ) { f o r ( v a r a = 0 , s = 0 , o = r [ n - 2 ] , h = r [ n - 1 ] ; s < n ; s + = 2 ) { v a r u = r [ s ] , l = r [ s + 1 ] ; a + = ( u - o ) * ( l + h ) , o = u , h = l } i f ( ! t & & a > 0 | | t & & a < = 0 ) f o r ( v a r f = n / 2 , s = f + f % 2 ; s < n ; s + = 2 ) { v a r c = n - s - 2 , d = n - s - 1 , v = s , p = s + 1 ; e = [ r [ v ] , r [ c ] ] , r [ c ] = e [ 0 ] , r [ v ] = e [ 1 ] , i = [ r [ p ] , r [ d ] ] , r [ d ] = i [ 0 ] , r [ p ] = i [ 1 ] } } } v a r I a = { b u i l d : f u n c t i o n ( r ) { r . p o i n t s = r . s h a p e . p o i n t s . s l i c e ( ) } , t r i a n g u l a t e : f u n c t i o n ( r , t ) { v a r e = r . p o i n t s , i = r . h o l e s , n = t . p o i n t s , a = t . i n d i c e s ; i f ( e . l e n g t h > = 6 ) { W n ( e , ! 1 ) ; f o r ( v a r s = [ ] , o = 0 ; o < i . l e n g t h ; o + + ) { v a r h = i [ o ] ; W n ( h . p o i n t s , ! 0 ) , s . p u s h ( e . l e n g t h / 2 ) , e = e . c o n c a t ( h . p o i n t s ) } v a r u = Z n ( e , s , 2 ) ; i f ( ! u ) r e t u r n ; f o r ( v a r l = n . l e n g t h / 2 , o = 0 ; o < u . l e n g t h ; o + = 3 ) a . p u s h ( u [ o ] + l ) , a . p u s h ( u [ o + 1 ] + l ) , a . p u s h ( u [ o + 2 ] + l ) ; f o r ( v a r o = 0 ; o < e . l e n g t h ; o + + ) n . p u s h ( e [ o ] ) } } } , M r = { b u i l d : f u n c t i o n ( r ) { v a r t = r . p o i n t s , e , i , n , a , s , o ; i f ( r . t y p e = = = n t . C I R C ) { v a r h = r . s h a p e ; e = h . x , i = h . y , s = o = h . r a d i u s , n = a = 0 } e l s e i f ( r . t y p e = = = n t . E L I P ) { v a r u = r . s h a p e ; e = u . x , i = u . y , s = u . w i d t h , o = u . h e i g h t , n = a = 0 } e l s e { v a r l = r . s h a p e , f = l . w i d t h / 2 , c = l . h e i g h t / 2 ; e = l . x + f , i = l . y + c , s = o = M a t h . m a x ( 0 , M a t h . m i n ( l . r a d i u s , M a t h . m i n ( f , c ) ) ) , n = f - s , a = c - o } i f ( ! ( s > = 0 & & o > = 0 & & n > = 0 & & a > = 0 ) ) { t . l e n g t h = 0 ; r e t u r n } v a r d = M a t h . c e i l ( 2 . 3 * M a t h . s q r t ( s + o ) ) , v = d * 8 + ( n ? 4 : 0 ) + ( a ? 4 : 0 ) ; i f ( t . l e n g t h = v , v ! = = 0 ) { i f ( d = = = 0 ) { t . l e n g t h = 8 , t [ 0 ] = t [ 6 ] = e + n , t [ 1 ] = t [ 3 ] = i + a , t [ 2 ] = t [ 4 ] = e - n , t [ 5 ] = t [ 7 ] = i - a ; r e t u r n } v a r p = 0 , _ = d * 4 + ( n ? 2 : 0 ) + 2 , g = _ , b = v ; { v a r T = n + s , x = a , m = e + T , y = e - T , E = i + x ; i f ( t [ p + + ] = m , t [ p + + ] = E , t [ - - _ ] = E , t [ - - _ ] = y , a ) { v a r P = i - x ; t [ g + + ] = y , t [ g + + ] = P , t [ - - b ] = P , t [ - - b ] = m } } f o r ( v a r A = 1 ; A < d ; A + + ) { v a r R = M a t h . P I / 2 * ( A / d ) , T = n + M a t h . c o s ( R ) * s , x = a + M a t h . s i n ( R ) * o , m = e + T , y = e - T , E = i + x , P = i - x ; t [ p + + ] = m , t [ p + + ] = E , t [ - - _ ] = E , t [ - - _ ] = y , t [ g + + ] = y , t [ g + + ] = P , t [ - - b ] = P , t [ - - b ] = m } { v a r T = n , x = a + o , m = e + T , y = e - T , E = i + x , P = i - x ; t [ p + + ] = m , t [ p + + ] = E , t [ - - b ] = P , t [ - - b ] = m , n & & ( t [ p + + ] = y , t [ p + + ] = E , t [ - - b ] = P , t [ - - b ] = y ) } } } , t r i a n g u l a t e : f u n c t i o n ( r , t ) { v a r e = r . p o i n t s , i = t . p o i n t s , n = t . i n d i c e s ; i f ( e . l e n g t h ! = = 0 ) { v a r a = i . l e n g t h / 2 , s = a , o , h ; i f ( r . t y p e ! = = n t . R R E C ) { v a r u = r . s h a p e ; o = u . x , h = u . y } e l s e { v a r l = r . s h a p e ; o = l . x + l . w i d t h / 2 , h = l . y + l . h e i g h t / 2 } v a r f = r . m a t r i x ; i . p u s h ( r . m a t r i x ? f . a * o + f . c * h + f . t x : o , r . m a t r i x ? f . b * o + f . d * h + f . t y : h ) , a + + , i . p u s h ( e [ 0 ] , e [ 1 ] ) ; f o r ( v a r c = 2 ; c < e . l e n g t h ; c + = 2 ) i . p u s h ( e [ c ] , e [ c + 1 ] ) , n . p u s h ( a + + , s , a ) ; n . p u s h ( s + 1 , s , a ) } } } , J f = { b u i l d : f u n c t i o n ( r ) { v a r t = r . s h a p e , e = t . x , i = t . y , n = t . w i d t h , a = t . h e i g h t , s = r . p o i n t s ; s . l e n g t h = 0 , s . p u s h ( e , i , e + n , i , e + n , i + a , e , i + a ) } , t r i a n g u l a t e : f u n c t i o n ( r , t ) { v a r e = r . p o i n t s , i = t . p o i n t s , n = i . l e n g t h / 2 ; i . p u s h ( e [ 0 ] , e [ 1 ] , e [ 2 ] , e [ 3 ] , e [ 6 ] , e [ 7 ] , e [ 4 ] , e [ 5 ] ) , t . i n d i c e s . p u s h ( n , n + 1 , n + 2 , n + 1 , n + 2 , n + 3 ) } } ; f u n c t i o n g e ( r , t , e ) { v a r i = t - r ; r e t u r n r + i * e } f u n c t i o n d r ( r , t , e , i , n , a , s ) { s = = = v o i d 0 & & ( s = [ ] ) ; f o r ( v a r o = 2 0 , h = s , u = 0 , l = 0 , f = 0 , c = 0 , d = 0 , v = 0 , p = 0 , _ = 0 ; p < = o ; + + p ) _ = p / o , u = g e ( r , e , _ ) , l = g e ( t , i , _ ) , f = g e ( e , n , _ ) , c = g e ( i , a , _ ) , d = g e ( u , f , _ ) , v = g e ( l , c , _ ) , ! ( p = = = 0 & & h [ h . l e n g t h - 2 ] = = = d & & h [ h . l e n g t h - 1 ] = = = v ) & & h . p u s h ( d , v ) ; r e t u r n h } v a r t c = { b u i l d : f u n c t i o n ( r ) { i f ( K n . n e x t R o u n d e d R e c t B e h a v i o r ) { M r . b u i l d ( r ) ; r e t u r n } v a r t = r . s h a p e , e = r . p o i n t s , i = t . x , n = t . y , a = t . w i d t h , s = t . h e i g h t , o = M a t h . m a x ( 0 , M a t h . m i n ( t . r a d i u s , M a t h . m i n ( a , s ) / 2 ) ) ; e . l e n g t h = 0 , o ? ( d r ( i , n + o , i , n , i + o , n , e ) , d r ( i + a - o , n , i + a , n , i + a , n + o , e ) , d r ( i + a , n + s - o , i + a , n + s , i + a - o , n + s , e ) , d r ( i + o , n + s , i , n + s , i , n + s - o , e ) ) : e . p u s h ( i , n , i + a , n , i + a , n + s , i , n + s ) } , t r i a n g u l a t e : f u n c t i o n ( r , t ) { i f ( K n . n e x t R o u n d e d R e c t B e h a v i o r ) { M r . t r i a n g u l a t e ( r , t ) ; r e t u r n } f o r ( v a r e = r . p o i n t s , i = t . p o i n t s , n = t . i n d i c e s , a = i . l e n g t h / 2 , s = Z n ( e , n u l l , 2 ) , o = 0 , h = s . l e n g t h ; o < h ; o + = 3 ) n . p u s h ( s [ o ] + a ) , n . p u s h ( s [ o + 1 ] + a ) , n . p u s h ( s [ o + 2 ] + a ) ; f o r ( v a r o = 0 , h = e . l e n g t h ; o < h ; o + + ) i . p u s h ( e [ o ] , e [ + + o ] ) } } ; f u n c t i o n V n ( r , t , e , i , n , a , s , o ) { v a r h = r - e * n , u = t - i * n , l = r + e * a , f = t + i * a , c , d ; s ? ( c = i , d = - e ) : ( c = - i , d = e ) ; v a r v = h + c , p = u + d , _ = l + c , g = f + d ; r e t u r n o . p u s h ( v , p ) , o . p u s h ( _ , g ) , 2 } f u n c t i o n t e ( r , t , e , i , n , a , s , o ) { v a r h = e - r , u = i - t , l = M a t h . a t a n 2 ( h , u ) , f = M a t h . a t a n 2 ( n - r , a - t ) ; o & & l < f ? l + = M a t h . P I * 2 : ! o & & l > f & & ( f + = M a t h . P I * 2 ) ; v a r c = l , d = f - l , v = M a t h . a b s ( d ) , p = M a t h . s q r t ( h * h + u * u ) , _ = ( 1 5 * v * M a t h . s q r t ( p ) / M a t h . P I > > 0 ) + 1 , g = d / _ ; i f ( c + = g , o ) { s . p u s h ( r , t ) , s . p u s h ( e , i ) ; f o r ( v a r