@@ -1,4 +1,4 @@
( function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const r of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) i ( r ) ; new MutationObserver ( r => { for ( const a of r ) if ( a . type === "childList" ) for ( const l of a . addedNodes ) l . tagName === "LINK" && l . rel === "modulepreload" && i ( l ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function t ( r ) { const a = { } ; return r . integrity && ( a . integrity = r . integrity ) , r . referrerPolicy && ( a . referrerPolicy = r . referrerPolicy ) , r . crossOrigin === "use-credentials" ? a . credentials = "include" : r . crossOrigin === "anonymous" ? a . credentials = "omit" : a . credentials = "same-origin" , a } function i ( r ) { if ( r . ep ) return ; r . ep = ! 0 ; const a = t ( r ) ; fetch ( r . href , a ) } } ) ( ) ; function WA ( n ) { return n && n . _ _esModule && Object . prototype . hasOwnProperty . call ( n , "default" ) ? n . default : n } function kB ( n ) { if ( Object . prototype . hasOwnProperty . call ( n , "__esModule" ) ) return n ; var e = n . default ; if ( typeof e == "function" ) { var t = function i ( ) { var r = ! 1 ; try { r = this instanceof i } catch { } return r ? Reflect . construct ( e , arguments , this . constructor ) : e . apply ( this , arguments ) } ; t . prototype = e . prototype } else t = { } ; return Object . defineProperty ( t , "__esModule" , { value : ! 0 } ) , Object . keys ( n ) . forEach ( function ( i ) { var r = Object . getOwnPropertyDescriptor ( n , i ) ; Object . defineProperty ( t , i , r . get ? r : { enumerable : ! 0 , get : function ( ) { return n [ i ] } } ) } ) , t } var a4 = { exports : { } } , uC = { } ; / * *
( function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const r of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) i ( r ) ; new MutationObserver ( r => { for ( const a of r ) if ( a . type === "childList" ) for ( const l of a . addedNodes ) l . tagName === "LINK" && l . rel === "modulepreload" && i ( l ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function t ( r ) { const a = { } ; return r . integrity && ( a . integrity = r . integrity ) , r . referrerPolicy && ( a . referrerPolicy = r . referrerPolicy ) , r . crossOrigin === "use-credentials" ? a . credentials = "include" : r . crossOrigin === "anonymous" ? a . credentials = "omit" : a . credentials = "same-origin" , a } function i ( r ) { if ( r . ep ) return ; r . ep = ! 0 ; const a = t ( r ) ; fetch ( r . href , a ) } } ) ( ) ; function WA ( n ) { return n && n . _ _esModule && Object . prototype . hasOwnProperty . call ( n , "default" ) ? n . default : n } function wB ( n ) { if ( Object . prototype . hasOwnProperty . call ( n , "__esModule" ) ) return n ; var e = n . default ; if ( typeof e == "function" ) { var t = function i ( ) { var r = ! 1 ; try { r = this instanceof i } catch { } return r ? Reflect . construct ( e , arguments , this . constructor ) : e . apply ( this , arguments ) } ; t . prototype = e . prototype } else t = { } ; return Object . defineProperty ( t , "__esModule" , { value : ! 0 } ) , Object . keys ( n ) . forEach ( function ( i ) { var r = Object . getOwnPropertyDescriptor ( n , i ) ; Object . defineProperty ( t , i , r . get ? r : { enumerable : ! 0 , get : function ( ) { return n [ i ] } } ) } ) , t } var e4 = { exports : { } } , uC = { } ; / * *
* @ license React
* react - jsx - runtime . production . js
*
@@ -6,7 +6,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var h 7;function iW (){if(h 7)return uC;h 7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,a){var l=null;if(a!==void 0&&(l=""+a),r.key!==void 0&&(l=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:n,type:i,key:l,ref:r!==void 0?r:null,props:a}}return uC.Fragment=e,uC.jsx=t,uC.jsxs=t,uC}var d 7;function rW (){return d 7||(d 7=1,a 4.exports=iW ()),a 4.exports}var u e=rW (),s 4={exports:{}},ia={};/ * *
* /var a 7;function Zj (){if(a 7)return uC;a 7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,a){var l=null;if(a!==void 0&&(l=""+a),r.key!==void 0&&(l=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:n,type:i,key:l,ref:r!==void 0?r:null,props:a}}return uC.Fragment=e,uC.jsx=t,uC.jsxs=t,uC}var s 7;function Xj (){return s 7||(s 7=1,e 4.exports=Zj ()),e 4.exports}var c e=Xj (),t 4={exports:{}},ia={};/ * *
* @ license React
* react . production . js
*
@@ -14,7 +14,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var f7;function oW(){if(f7)return ia;f7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function U(be){return be===null||typeof be!="object"?null:(be=O&&be[O]||be["@@iterator"],typeof be=="function"?be:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,j={};function Q(be,Ge,tt){this.props=be,this.context=Ge,this.refs=j,this.updater=tt||K}Q.prototype.isReactComponent={},Q.prototype.setState=function(be,Ge){if(typeof be!="object"&&typeof be!="function"&&be!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,be,Ge,"setState")},Q.prototype.forceUpdate=function(be){this.updater.enqueueForceUpdate(this,be,"forceUpdate")};function ee(){}ee.prototype=Q.prototype;function V(be,Ge,tt){this.props=be,this.context=Ge,this.refs=j,this.updater=tt||K}var ae=V.prototype=new ee;ae.constructor=V,z(ae,Q.prototype),ae.isPureReactComponent=!0;var ne=Array.isArray,Z={H:null,A:null,T:null,S:null,V:null},oe=Object.prototype.hasOwnProperty;function W(be,Ge,tt,lt,It,pt){return tt=pt.ref,{$$typeof:n,type:be,key:Ge,ref:tt!==void 0?tt:null,props:pt}}function ce(be,Ge){return W(be.type,Ge,void 0,void 0,void 0,be.props)}function ge(be){return typeof be=="object"&&be!==null&&be.$$typeof===n}function ye(be){var Ge={"=":"=0",":":"=2"};return"$"+be.replace(/ [ = : ] / g , function ( tt ) { return Ge [ tt ] } ) } var Me = /\/+/g ; function Be ( be , Ge ) { return typeof be == "object" && be !== null && be . key != null ? ye ( "" + be . key ) : Ge . toString ( 36 ) } function we ( ) { } function qe ( be ) { switch ( be . status ) { case "fulfilled" : return be . value ; case "rejected" : throw be . reason ; default : switch ( typeof be . status == "string" ? be . then ( we , we ) : ( be . status = "pending" , be . then ( function ( Ge ) { be . status === "pending" && ( be . status = "fulfilled" , be . value = Ge ) } , function ( Ge ) { be . status === "pending" && ( be . status = "rejected" , be . reason = Ge ) } ) ) , be . status ) { case "fulfilled" : return be . value ; case "rejected" : throw be . reason } } throw be } function xe ( be , Ge , tt , lt , It ) { var pt = typeof be ; ( pt === "undefined" || pt === "boolean" ) && ( be = null ) ; var St = ! 1 ; if ( be === null ) St = ! 0 ; else switch ( pt ) { case "bigint" : case "string" : case "number" : St = ! 0 ; break ; case "object" : switch ( be . $$typeof ) { case n : case e : St = ! 0 ; break ; case S : return St = be . _init , xe ( St ( be . _payload ) , Ge , tt , lt , It ) } } if ( St ) return It = It ( be ) , St = lt === "" ? "." + Be ( be , 0 ) : lt , ne ( It ) ? ( tt = "" , St != null && ( tt = St . replace ( Me , "$&/" ) + "/" ) , xe ( It , Ge , tt , "" , function ( Pe ) { return Pe } ) ) : It != null && ( ge ( It ) && ( It = ce ( It , tt + ( It . key == null || be && be . key === It . key ? "" : ( "" + It . key ) . replace ( Me , "$&/" ) + "/" ) + St ) ) , Ge . push ( It ) ) , 1 ; St = 0 ; var Rt = lt === "" ? "." : lt + ":" ; if ( ne ( be ) ) for ( var Le = 0 ; Le < be . length ; Le ++ ) lt = be [ Le ] , pt = Rt + Be ( lt , Le ) , St += xe ( lt , Ge , tt , pt , It ) ; else if ( Le = U ( be ) , typeof Le == "function" ) for ( be = Le . call ( be ) , Le = 0 ; ! ( lt = be . next ( ) ) . done ; ) lt = lt . value , pt = Rt + Be ( lt , Le ++ ) , St += xe ( lt , Ge , tt , pt , It ) ; else if ( pt === "object" ) { if ( typeof be . then == "function" ) return xe ( qe ( be ) , Ge , tt , lt , It ) ; throw Ge = String ( be ) , Error ( "Objects are not valid as a React child (found: " + ( Ge === "[object Object]" ? "object with keys {" + Object . keys ( be ) . join ( ", " ) + "}" : Ge ) + "). If you meant to render a collection of children, use an array instead." ) } return St } function ze ( be , Ge , tt ) { if ( be == null ) return be ; var lt = [ ] , It = 0 ; return xe ( be , lt , "" , "" , function ( pt ) { return Ge . call ( tt , pt , It ++ ) } ) , lt } function ot ( be ) { if ( be . _status === - 1 ) { var Ge = be . _result ; Ge = Ge ( ) , Ge . then ( function ( tt ) { ( be . _status === 0 || be . _status === - 1 ) && ( be . _status = 1 , be . _result = tt ) } , function ( tt ) { ( be . _status === 0 || be . _status === - 1 ) && ( be . _status = 2 , be . _result = tt ) } ) , be . _status === - 1 && ( be . _status = 0 , be . _result = Ge ) } if ( be . _status === 1 ) return be . _result . default ; throw be . _result } var yt = typeof reportError == "function" ? reportError : function ( be ) { if ( typeof window == "object" && typeof window . ErrorEvent == "function" ) { var Ge = new window . ErrorEvent ( "error" , { bubbles : ! 0 , cancelable : ! 0 , message : typeof be == "object" && be !== null && typeof be . message == "string" ? String ( be . message ) : String ( be ) , error : be } ) ; if ( ! window . dispatchEvent ( Ge ) ) return } else if ( typeof process == "object" && typeof process . emit == "function" ) { process . emit ( "uncaughtException" , be ) ; return } console . error ( be ) } ; function nt ( ) { } return ia . Children = { map : ze , forEach : function ( be , Ge , tt ) { ze ( be , function ( ) { Ge . apply ( this , arguments ) } , tt ) } , count : function ( be ) { var Ge = 0 ; return ze ( be , function ( ) { Ge ++ } ) , Ge } , toArray : function ( be ) { return ze ( be , function ( Ge ) { return Ge } ) || [ ] } , only : function ( be ) { if ( ! ge ( be ) ) throw Error ( "React.Children.only expected to receive a single React element child." ) ; return be } } , ia . Component = Q , ia . Fragment = t , ia . Profiler = r , ia . PureComponent = V , ia . StrictMode = i , ia . Suspense = m , ia . _ _CLIENT _INTERNALS _DO _NOT _USE _OR _WARN _USERS _THEY _CANNOT _UPGRADE = Z , ia . _ _COMPILER _RUNTIME Line truncated
* /var l7;function Jj(){if(l7)return ia;l7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.iterator;function U(be){return be===null||typeof be!="object"?null:(be=O&&be[O]||be["@@iterator"],typeof be=="function"?be:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,j={};function Q(be,Ne,tt){this.props=be,this.context=Ne,this.refs=j,this.updater=tt||K}Q.prototype.isReactComponent={},Q.prototype.setState=function(be,Ne){if(typeof be!="object"&&typeof be!="function"&&be!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,be,Ne,"setState")},Q.prototype.forceUpdate=function(be){this.updater.enqueueForceUpdate(this,be,"forceUpdate")};function ee(){}ee.prototype=Q.prototype;function V(be,Ne,tt){this.props=be,this.context=Ne,this.refs=j,this.updater=tt||K}var ae=V.prototype=new ee;ae.constructor=V,z(ae,Q.prototype),ae.isPureReactComponent=!0;var ne=Array.isArray,Z={H:null,A:null,T:null,S:null,V:null},oe=Object.prototype.hasOwnProperty;function W(be,Ne,tt,lt,It,pt){return tt=pt.ref,{$$typeof:n,type:be,key:Ne,ref:tt!==void 0?tt:null,props:pt}}function ue(be,Ne){return W(be.type,Ne,void 0,void 0,void 0,be.props)}function ge(be){return typeof be=="object"&&be!==null&&be.$$typeof===n}function ye(be){var Ne={"=":"=0",":":"=2"};return"$"+be.replace(/ [ = : ] / g , function ( tt ) { return Ne [ tt ] } ) } var Me = /\/+/g ; function Be ( be , Ne ) { return typeof be == "object" && be !== null && be . key != null ? ye ( "" + be . key ) : Ne . toString ( 36 ) } function we ( ) { } function qe ( be ) { switch ( be . status ) { case "fulfilled" : return be . value ; case "rejected" : throw be . reason ; default : switch ( typeof be . status == "string" ? be . then ( we , we ) : ( be . status = "pending" , be . then ( function ( Ne ) { be . status === "pending" && ( be . status = "fulfilled" , be . value = Ne ) } , function ( Ne ) { be . status === "pending" && ( be . status = "rejected" , be . reason = Ne ) } ) ) , be . status ) { case "fulfilled" : return be . value ; case "rejected" : throw be . reason } } throw be } function xe ( be , Ne , tt , lt , It ) { var pt = typeof be ; ( pt === "undefined" || pt === "boolean" ) && ( be = null ) ; var St = ! 1 ; if ( be === null ) St = ! 0 ; else switch ( pt ) { case "bigint" : case "string" : case "number" : St = ! 0 ; break ; case "object" : switch ( be . $$typeof ) { case n : case e : St = ! 0 ; break ; case S : return St = be . _init , xe ( St ( be . _payload ) , Ne , tt , lt , It ) } } if ( St ) return It = It ( be ) , St = lt === "" ? "." + Be ( be , 0 ) : lt , ne ( It ) ? ( tt = "" , St != null && ( tt = St . replace ( Me , "$&/" ) + "/" ) , xe ( It , Ne , tt , "" , function ( Pe ) { return Pe } ) ) : It != null && ( ge ( It ) && ( It = ue ( It , tt + ( It . key == null || be && be . key === It . key ? "" : ( "" + It . key ) . replace ( Me , "$&/" ) + "/" ) + St ) ) , Ne . push ( It ) ) , 1 ; St = 0 ; var Rt = lt === "" ? "." : lt + ":" ; if ( ne ( be ) ) for ( var Le = 0 ; Le < be . length ; Le ++ ) lt = be [ Le ] , pt = Rt + Be ( lt , Le ) , St += xe ( lt , Ne , tt , pt , It ) ; else if ( Le = U ( be ) , typeof Le == "function" ) for ( be = Le . call ( be ) , Le = 0 ; ! ( lt = be . next ( ) ) . done ; ) lt = lt . value , pt = Rt + Be ( lt , Le ++ ) , St += xe ( lt , Ne , tt , pt , It ) ; else if ( pt === "object" ) { if ( typeof be . then == "function" ) return xe ( qe ( be ) , Ne , tt , lt , It ) ; throw Ne = String ( be ) , Error ( "Objects are not valid as a React child (found: " + ( Ne === "[object Object]" ? "object with keys {" + Object . keys ( be ) . join ( ", " ) + "}" : Ne ) + "). If you meant to render a collection of children, use an array instead." ) } return St } function ze ( be , Ne , tt ) { if ( be == null ) return be ; var lt = [ ] , It = 0 ; return xe ( be , lt , "" , "" , function ( pt ) { return Ne . call ( tt , pt , It ++ ) } ) , lt } function ot ( be ) { if ( be . _status === - 1 ) { var Ne = be . _result ; Ne = Ne ( ) , Ne . then ( function ( tt ) { ( be . _status === 0 || be . _status === - 1 ) && ( be . _status = 1 , be . _result = tt ) } , function ( tt ) { ( be . _status === 0 || be . _status === - 1 ) && ( be . _status = 2 , be . _result = tt ) } ) , be . _status === - 1 && ( be . _status = 0 , be . _result = Ne ) } if ( be . _status === 1 ) return be . _result . default ; throw be . _result } var yt = typeof reportError == "function" ? reportError : function ( be ) { if ( typeof window == "object" && typeof window . ErrorEvent == "function" ) { var Ne = new window . ErrorEvent ( "error" , { bubbles : ! 0 , cancelable : ! 0 , message : typeof be == "object" && be !== null && typeof be . message == "string" ? String ( be . message ) : String ( be ) , error : be } ) ; if ( ! window . dispatchEvent ( Ne ) ) return } else if ( typeof process == "object" && typeof process . emit == "function" ) { process . emit ( "uncaughtException" , be ) ; return } console . error ( be ) } ; function nt ( ) { } return ia . Children = { map : ze , forEach : function ( be , Ne , tt ) { ze ( be , function ( ) { Ne . apply ( this , arguments ) } , tt ) } , count : function ( be ) { var Ne = 0 ; return ze ( be , function ( ) { Ne ++ } ) , Ne } , toArray : function ( be ) { return ze ( be , function ( Ne ) { return Ne } ) || [ ] } , only : function ( be ) { if ( ! ge ( be ) ) throw Error ( "React.Children.only expected to receive a single React element child." ) ; return be } } , ia . Component = Q , ia . Fragment = t , ia . Profiler = r , ia . PureComponent = V , ia . StrictMode = i , ia . Suspense = m , ia . _ _CLIENT _INTERNALS _DO _NOT _USE _OR _WARN _USERS _THEY _CANNOT _UPGRADE = Z , ia . _ _COMPILER _RUNTIME Line truncated
* @ license React
* scheduler . production . js
*
@@ -22,7 +22,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* / v a r g 7 ; f u n c t i o n d W ( ) { r e t u r n g 7 | | ( g 7 = 1 , f u n c t i o n ( n ) { f u n c t i o n e ( z e , o t ) { v a r y t = z e . l e n g t h ; z e . p u s h ( o t ) ; e : f o r ( ; 0 < y t ; ) { v a r n t = y t - 1 > > > 1 , b e = z e [ n t ] ; i f ( 0 < r ( b e , o t ) ) z e [ n t ] = o t , z e [ y t ] = b e , y t = n t ; e l s e b r e a k e } } f u n c t i o n t ( z e ) { r e t u r n z e . l e n g t h = = = 0 ? n u l l : z e [ 0 ] } f u n c t i o n i ( z e ) { i f ( z e . l e n g t h = = = 0 ) r e t u r n n u l l ; v a r o t = z e [ 0 ] , y t = z e . p o p ( ) ; i f ( y t ! = = o t ) { z e [ 0 ] = y t ; e : f o r ( v a r n t = 0 , b e = z e . l e n g t h , G e = b e > > > 1 ; n t < G e ; ) { v a r t t = 2 * ( n t + 1 ) - 1 , l t = z e [ t t ] , I t = t t + 1 , p t = z e [ I t ] ; i f ( 0 > r ( l t , y t ) ) I t < b e & & 0 > r ( p t , l t ) ? ( z e [ n t ] = p t , z e [ I t ] = y t , n t = I t ) : ( z e [ n t ] = l t , z e [ t t ] = y t , n t = t t ) ; e l s e i f ( I t < b e & & 0 > r ( p t , y t ) ) z e [ n t ] = p t , z e [ I t ] = y t , n t = I t ; e l s e b r e a k e } } r e t u r n o t } f u n c t i o n r ( z e , o t ) { v a r y t = z e . s o r t I n d e x - o t . s o r t I n d e x ; r e t u r n y t ! = = 0 ? y t : z e . i d - o t . i d } i f ( n . u n s t a b l e _ n o w = v o i d 0 , t y p e o f p e r f o r m a n c e = = " o b j e c t " & & t y p e o f p e r f o r m a n c e . n o w = = " f u n c t i o n " ) { v a r a = p e r f o r m a n c e ; n . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n a . n o w ( ) } } e l s e { v a r l = D a t e , o = l . n o w ( ) ; n . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n l . n o w ( ) - o } } v a r m = [ ] , C = [ ] , S = 1 , O = n u l l , U = 3 , K = ! 1 , z = ! 1 , j = ! 1 , Q = ! 1 , e e = t y p e o f s e t T i m e o u t = = " f u n c t i o n " ? s e t T i m e o u t : n u l l , V = t y p e o f c l e a r T i m e o u t = = " f u n c t i o n " ? c l e a r T i m e o u t : n u l l , a e = t y p e o f s e t I m m e d i a t e < " u " ? s e t I m m e d i a t e : n u l l ; f u n c t i o n n e ( z e ) { f o r ( v a r o t = t ( C ) ; o t ! = = n u l l ; ) { i f ( o t . c a l l b a c k = = = n u l l ) i ( C ) ; e l s e i f ( o t . s t a r t T i m e < = z e ) i ( C ) , o t . s o r t I n d e x = o t . e x p i r a t i o n T i m e , e ( m , o t ) ; e l s e b r e a k ; o t = t ( C ) } } f u n c t i o n Z ( z e ) { i f ( j = ! 1 , n e ( z e ) , ! z ) i f ( t ( m ) ! = = n u l l ) z = ! 0 , o e | | ( o e = ! 0 , B e ( ) ) ; e l s e { v a r o t = t ( C ) ; o t ! = = n u l l & & x e ( Z , o t . s t a r t T i m e - z e ) } } v a r o e = ! 1 , W = - 1 , c e = 5 , g e = - 1 ; f u n c t i o n y e ( ) { r e t u r n Q ? ! 0 : ! ( n . u n s t a b l e _ n o w ( ) - g e < c e ) } f u n c t i o n M e ( ) { i f ( Q = ! 1 , o e ) { v a r z e = n . u n s t a b l e _ n o w ( ) ; g e = z e ; v a r o t = ! 0 ; t r y { e : { z = ! 1 , j & & ( j = ! 1 , V ( W ) , W = - 1 ) , K = ! 0 ; v a r y t = U ; t r y { t : { f o r ( n e ( z e ) , O = t ( m ) ; O ! = = n u l l & & ! ( O . e x p i r a t i o n T i m e > z e & & y e ( ) ) ; ) { v a r n t = O . c a l l b a c k ; i f ( t y p e o f n t = = " f u n c t i o n " ) { O . c a l l b a c k = n u l l , U = O . p r i o r i t y L e v e l ; v a r b e = n t ( O . e x p i r a t i o n T i m e < = z e ) ; i f ( z e = n . u n s t a b l e _ n o w ( ) , t y p e o f b e = = " f u n c t i o n " ) { O . c a l l b a c k = b e , n e ( z e ) , o t = ! 0 ; b r e a k t } O = = = t ( m ) & & i ( m ) , n e ( z e ) } e l s e i ( m ) ; O = t ( m ) } i f ( O ! = = n u l l ) o t = ! 0 ; e l s e { v a r G e = t ( C ) ; G e ! = = n u l l & & x e ( Z , G e . s t a r t T i m e - z e ) , o t = ! 1 } } b r e a k e } f i n a l l y { O = n u l l , U = y t , K = ! 1 } o t = v o i d 0 } } f i n a l l y { o t ? B e ( ) : o e = ! 1 } } } v a r B e ; i f ( t y p e o f a e = = " f u n c t i o n " ) B e = f u n c t i o n ( ) { a e ( M e ) } ; e l s e i f ( t y p e o f M e s s a g e C h a n n e l < " u " ) { v a r w e = n e w M e s s a g e C h a n n e l , q e = w e . p o r t 2 ; w e . p o r t 1 . o n m e s s a g e = M e , B e = f u n c t i o n ( ) { q e . p o s t M e s s a g e ( n u l l ) } } e l s e B e = f u n c t i o n ( ) { e e ( M e , 0 ) } ; f u n c t i o n x e ( z e , o t ) { W = e e ( f u n c t i o n ( ) { z e ( n . u n s t a b l e _ n o w ( ) ) } , o t ) } n . u n s t a b l e _ I d l e P r i o r i t y = 5 , n . u n s t a b l e _ I m m e d i a t e P r i o r i t y = 1 , n . u n s t a b l e _ L o w P r i o r i t y = 4 , n . u n s t a b l e _ N o r m a l P r i o r i t y = 3 , n . u n s t a b l e _ P r o f i l i n g = n u l l , n . u n s t a b l e _ U s e r B l o c k i n g P r i o r i t y = 2 , n . u n s t a b l e _ c a n c e l C a l l b a c k = f u n c t i o n ( z e ) { z e . c a l l b a c k = n u l l } , n . u n s t a b l e _ f o r c e F r a m e R a t e = f u n c t i o n ( z e ) { 0 > z e | | 1 2 5 < z e ? c o n s o l e . e r r o r ( " f o r c e F r a m e R a t e t a k e s a p o s i t i v e i n t b e t w e e n 0 a n d 1 2 5 , f o r c i n g f r a m e r a t e s h i g h e r t h a n 1 2 5 f p s i s n o t s u p p o r t e d " ) : c e = 0 < z e ? M a t h . f l o o r ( 1 e 3 / z e ) : 5 } , n . u n s t a b l e _ g e t C u r r e n t P r i o r i t y L e v e l = f u n c t i o n ( ) { r e t u r n U } , n . u n s t a b l e _ n e x t = f u n c t i o n ( z e ) { s w i t c h ( U ) { c a s e 1 : c a s e 2 : c a s e 3 : v a r o t = 3 ; b r e a k ; d e f a u l t : o t = U } v a r y t = U ; U = o t ; t r y { r e t u r n z e ( ) } f i n a l l y { U = y t } } , n . u n s t a b l e _ r e q u e s t P a i n t = f u n c t i o n ( ) { Q = ! 0 } , n . u n s t a b l e _ r u n W i t h P r i o r i t y = f u n c t i o n ( z e , o t ) { s w i t c h ( z e ) { c a s e 1 : c a s e 2 : c a s e 3 : c a s e 4 : c a s e 5 : b r e a k ; d e f a u l t : z e = 3 } v a r y t = U ; U = z e ; t r y { r e t u r n o t ( ) } f i n a l l y { U = y t } } , n . u n s t a b l e _ s c h e d u l e C a l l b a c k = f u n c t i o n ( z e , o t , y t ) { v a r n t = n . u n s t a b l e _ n o w ( ) ; s w i t c h ( t y p e o f y t = = " o b j e c t " & & y t ! = = n u l l ? ( y t = y t . d e l a y , y t = t y p e o f y t = = " n u m b e r " & & 0 < y t ? n t + y t : n t ) : y t = n t , z e ) { c a s e 1 : v a r b e = - 1 ; b r e a k ; c a s e 2 : b e = 2 5 0 ; b r e a k ; c a s e 5 : b e = 1 0 7 3 7 4 1 8 2 3 ; b r e a k ; c a s e 4 : b e = 1 e 4 ; b r e a k ; d e f a u l t : b e = 5 e 3 } r e t u r n b e = y t + b e , z e = { i d : S + + , c a l l b a c k : o t , p r i o r i t y L e v e l : z e , s t a r t T i m e : y t , e x p i r a t i o n T i m e : b e , s o r t I n d e x : - 1 } , y t > n t ? ( z e . s o r t I n d e x = y t , e ( C , z e ) , t ( m ) = = = n u l l & & z e = = = t ( C ) & & ( j ? ( V ( W ) , W = - 1 ) : j = ! 0 , x e ( Z , y t - n t ) ) ) : ( z e . s o r t I n d e x = b e , e ( m , z e ) , z | | K | | ( z = ! 0 , o e | | ( o e = ! 0 , B e ( ) ) ) ) , z e } , n . u n s t a b l e _ s h o u l d Y i e l d = y e , n . u n s t a b l e _ w r a p C a l l b a c k = f u n c t i o n ( z e ) { v a r o t = U ; r e t u r n f u n c t i o n ( ) { v a r y t = U ; U = o t ; t r y { r e t u r n z e . a p p l y ( t h i s , a r g u m e n t s ) } f i n a l l y { U = y t } } } } ( u 4 ) ) , u 4 } v a r y 7 ; f u n c t i o n f W ( ) { r e t u r n y 7 | | ( y 7 = 1 , A 4 . e x p o r t s = d W ( ) ) , A 4 . e x p o r t s } v a r c 4 = { e x p o r t s : { } } , R h = { } ; / * *
* / v a r c 7 ; f u n c t i o n s W ( ) { r e t u r n c 7 | | ( c 7 = 1 , f u n c t i o n ( n ) { f u n c t i o n e ( z e , o t ) { v a r y t = z e . l e n g t h ; z e . p u s h ( o t ) ; e : f o r ( ; 0 < y t ; ) { v a r n t = y t - 1 > > > 1 , b e = z e [ n t ] ; i f ( 0 < r ( b e , o t ) ) z e [ n t ] = o t , z e [ y t ] = b e , y t = n t ; e l s e b r e a k e } } f u n c t i o n t ( z e ) { r e t u r n z e . l e n g t h = = = 0 ? n u l l : z e [ 0 ] } f u n c t i o n i ( z e ) { i f ( z e . l e n g t h = = = 0 ) r e t u r n n u l l ; v a r o t = z e [ 0 ] , y t = z e . p o p ( ) ; i f ( y t ! = = o t ) { z e [ 0 ] = y t ; e : f o r ( v a r n t = 0 , b e = z e . l e n g t h , N e = b e > > > 1 ; n t < N e ; ) { v a r t t = 2 * ( n t + 1 ) - 1 , l t = z e [ t t ] , I t = t t + 1 , p t = z e [ I t ] ; i f ( 0 > r ( l t , y t ) ) I t < b e & & 0 > r ( p t , l t ) ? ( z e [ n t ] = p t , z e [ I t ] = y t , n t = I t ) : ( z e [ n t ] = l t , z e [ t t ] = y t , n t = t t ) ; e l s e i f ( I t < b e & & 0 > r ( p t , y t ) ) z e [ n t ] = p t , z e [ I t ] = y t , n t = I t ; e l s e b r e a k e } } r e t u r n o t } f u n c t i o n r ( z e , o t ) { v a r y t = z e . s o r t I n d e x - o t . s o r t I n d e x ; r e t u r n y t ! = = 0 ? y t : z e . i d - o t . i d } i f ( n . u n s t a b l e _ n o w = v o i d 0 , t y p e o f p e r f o r m a n c e = = " o b j e c t " & & t y p e o f p e r f o r m a n c e . n o w = = " f u n c t i o n " ) { v a r a = p e r f o r m a n c e ; n . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n a . n o w ( ) } } e l s e { v a r l = D a t e , o = l . n o w ( ) ; n . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n l . n o w ( ) - o } } v a r m = [ ] , C = [ ] , S = 1 , O = n u l l , U = 3 , K = ! 1 , z = ! 1 , j = ! 1 , Q = ! 1 , e e = t y p e o f s e t T i m e o u t = = " f u n c t i o n " ? s e t T i m e o u t : n u l l , V = t y p e o f c l e a r T i m e o u t = = " f u n c t i o n " ? c l e a r T i m e o u t : n u l l , a e = t y p e o f s e t I m m e d i a t e < " u " ? s e t I m m e d i a t e : n u l l ; f u n c t i o n n e ( z e ) { f o r ( v a r o t = t ( C ) ; o t ! = = n u l l ; ) { i f ( o t . c a l l b a c k = = = n u l l ) i ( C ) ; e l s e i f ( o t . s t a r t T i m e < = z e ) i ( C ) , o t . s o r t I n d e x = o t . e x p i r a t i o n T i m e , e ( m , o t ) ; e l s e b r e a k ; o t = t ( C ) } } f u n c t i o n Z ( z e ) { i f ( j = ! 1 , n e ( z e ) , ! z ) i f ( t ( m ) ! = = n u l l ) z = ! 0 , o e | | ( o e = ! 0 , B e ( ) ) ; e l s e { v a r o t = t ( C ) ; o t ! = = n u l l & & x e ( Z , o t . s t a r t T i m e - z e ) } } v a r o e = ! 1 , W = - 1 , u e = 5 , g e = - 1 ; f u n c t i o n y e ( ) { r e t u r n Q ? ! 0 : ! ( n . u n s t a b l e _ n o w ( ) - g e < u e ) } f u n c t i o n M e ( ) { i f ( Q = ! 1 , o e ) { v a r z e = n . u n s t a b l e _ n o w ( ) ; g e = z e ; v a r o t = ! 0 ; t r y { e : { z = ! 1 , j & & ( j = ! 1 , V ( W ) , W = - 1 ) , K = ! 0 ; v a r y t = U ; t r y { t : { f o r ( n e ( z e ) , O = t ( m ) ; O ! = = n u l l & & ! ( O . e x p i r a t i o n T i m e > z e & & y e ( ) ) ; ) { v a r n t = O . c a l l b a c k ; i f ( t y p e o f n t = = " f u n c t i o n " ) { O . c a l l b a c k = n u l l , U = O . p r i o r i t y L e v e l ; v a r b e = n t ( O . e x p i r a t i o n T i m e < = z e ) ; i f ( z e = n . u n s t a b l e _ n o w ( ) , t y p e o f b e = = " f u n c t i o n " ) { O . c a l l b a c k = b e , n e ( z e ) , o t = ! 0 ; b r e a k t } O = = = t ( m ) & & i ( m ) , n e ( z e ) } e l s e i ( m ) ; O = t ( m ) } i f ( O ! = = n u l l ) o t = ! 0 ; e l s e { v a r N e = t ( C ) ; N e ! = = n u l l & & x e ( Z , N e . s t a r t T i m e - z e ) , o t = ! 1 } } b r e a k e } f i n a l l y { O = n u l l , U = y t , K = ! 1 } o t = v o i d 0 } } f i n a l l y { o t ? B e ( ) : o e = ! 1 } } } v a r B e ; i f ( t y p e o f a e = = " f u n c t i o n " ) B e = f u n c t i o n ( ) { a e ( M e ) } ; e l s e i f ( t y p e o f M e s s a g e C h a n n e l < " u " ) { v a r w e = n e w M e s s a g e C h a n n e l , q e = w e . p o r t 2 ; w e . p o r t 1 . o n m e s s a g e = M e , B e = f u n c t i o n ( ) { q e . p o s t M e s s a g e ( n u l l ) } } e l s e B e = f u n c t i o n ( ) { e e ( M e , 0 ) } ; f u n c t i o n x e ( z e , o t ) { W = e e ( f u n c t i o n ( ) { z e ( n . u n s t a b l e _ n o w ( ) ) } , o t ) } n . u n s t a b l e _ I d l e P r i o r i t y = 5 , n . u n s t a b l e _ I m m e d i a t e P r i o r i t y = 1 , n . u n s t a b l e _ L o w P r i o r i t y = 4 , n . u n s t a b l e _ N o r m a l P r i o r i t y = 3 , n . u n s t a b l e _ P r o f i l i n g = n u l l , n . u n s t a b l e _ U s e r B l o c k i n g P r i o r i t y = 2 , n . u n s t a b l e _ c a n c e l C a l l b a c k = f u n c t i o n ( z e ) { z e . c a l l b a c k = n u l l } , n . u n s t a b l e _ f o r c e F r a m e R a t e = f u n c t i o n ( z e ) { 0 > z e | | 1 2 5 < z e ? c o n s o l e . e r r o r ( " f o r c e F r a m e R a t e t a k e s a p o s i t i v e i n t b e t w e e n 0 a n d 1 2 5 , f o r c i n g f r a m e r a t e s h i g h e r t h a n 1 2 5 f p s i s n o t s u p p o r t e d " ) : u e = 0 < z e ? M a t h . f l o o r ( 1 e 3 / z e ) : 5 } , n . u n s t a b l e _ g e t C u r r e n t P r i o r i t y L e v e l = f u n c t i o n ( ) { r e t u r n U } , n . u n s t a b l e _ n e x t = f u n c t i o n ( z e ) { s w i t c h ( U ) { c a s e 1 : c a s e 2 : c a s e 3 : v a r o t = 3 ; b r e a k ; d e f a u l t : o t = U } v a r y t = U ; U = o t ; t r y { r e t u r n z e ( ) } f i n a l l y { U = y t } } , n . u n s t a b l e _ r e q u e s t P a i n t = f u n c t i o n ( ) { Q = ! 0 } , n . u n s t a b l e _ r u n W i t h P r i o r i t y = f u n c t i o n ( z e , o t ) { s w i t c h ( z e ) { c a s e 1 : c a s e 2 : c a s e 3 : c a s e 4 : c a s e 5 : b r e a k ; d e f a u l t : z e = 3 } v a r y t = U ; U = z e ; t r y { r e t u r n o t ( ) } f i n a l l y { U = y t } } , n . u n s t a b l e _ s c h e d u l e C a l l b a c k = f u n c t i o n ( z e , o t , y t ) { v a r n t = n . u n s t a b l e _ n o w ( ) ; s w i t c h ( t y p e o f y t = = " o b j e c t " & & y t ! = = n u l l ? ( y t = y t . d e l a y , y t = t y p e o f y t = = " n u m b e r " & & 0 < y t ? n t + y t : n t ) : y t = n t , z e ) { c a s e 1 : v a r b e = - 1 ; b r e a k ; c a s e 2 : b e = 2 5 0 ; b r e a k ; c a s e 5 : b e = 1 0 7 3 7 4 1 8 2 3 ; b r e a k ; c a s e 4 : b e = 1 e 4 ; b r e a k ; d e f a u l t : b e = 5 e 3 } r e t u r n b e = y t + b e , z e = { i d : S + + , c a l l b a c k : o t , p r i o r i t y L e v e l : z e , s t a r t T i m e : y t , e x p i r a t i o n T i m e : b e , s o r t I n d e x : - 1 } , y t > n t ? ( z e . s o r t I n d e x = y t , e ( C , z e ) , t ( m ) = = = n u l l & & z e = = = t ( C ) & & ( j ? ( V ( W ) , W = - 1 ) : j = ! 0 , x e ( Z , y t - n t ) ) ) : ( z e . s o r t I n d e x = b e , e ( m , z e ) , z | | K | | ( z = ! 0 , o e | | ( o e = ! 0 , B e ( ) ) ) ) , z e } , n . u n s t a b l e _ s h o u l d Y i e l d = y e , n . u n s t a b l e _ w r a p C a l l b a c k = f u n c t i o n ( z e ) { v a r o t = U ; r e t u r n f u n c t i o n ( ) { v a r y t = U ; U = o t ; t r y { r e t u r n z e . a p p l y ( t h i s , a r g u m e n t s ) } f i n a l l y { U = y t } } } } ( r 4 ) ) , r 4 } v a r h 7 ; f u n c t i o n l W ( ) { r e t u r n h 7 | | ( h 7 = 1 , i 4 . e x p o r t s = s W ( ) ) , i 4 . e x p o r t s } v a r o 4 = { e x p o r t s : { } } , R h = { } ; / * *
* @ license React
* react - dom . production . js
*
@@ -30,7 +30,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var v 7;function m W(){if(v 7)return Rh;v 7=1;var n=pl();function e(m){var C="https:/ / react . dev / errors / "+m;if(1<arguments.length){C+=" ? args [ ] = "+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)C+=" & args [ ] = "+encodeURIComponent(arguments[S])}return" Minified React error # "+m+" ; visit "+C+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for(" react . portal ");function a(m,C,S){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:O==null?null:" "+O,children:m,containerInfo:C,implementation:S}}var l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(m,C){if(m===" font ")return" ";if(typeof C==" string ")return C===" use - credentials "?C:" "}return Rh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rh.createPortal=function(m,C){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(e(299));return a(m,C,null,S)},Rh.flushSync=function(m){var C=l.T,S=i.p;try{if(l.T=null,i.p=2,m)return m()}finally{l.T=C,i.p=S,i.d.f()}},Rh.preconnect=function(m,C){typeof m==" string "&&(C?(C=C.crossOrigin,C=typeof C==" string "?C===" use - credentials "?C:" ":void 0):C=null,i.d.C(m,C))},Rh.prefetchDNS=function(m){typeof m==" string "&&i.d.D(m)},Rh.preinit=function(m,C){if(typeof m==" string "&&C&&typeof C.as==" string "){var S=C.as,O=o(S,C.crossOrigin),U=typeof C.integrity==" string "?C.integrity:void 0,K=typeof C.fetchPriority==" string "?C.fetchPriority:void 0;S===" style "?i.d.S(m,typeof C.precedence==" string "?C.precedence:void 0,{crossOrigin:O,integrity:U,fetchPriority:K}):S===" script "&&i.d.X(m,{crossOrigin:O,integrity:U,fetchPriority:K,nonce:typeof C.nonce==" string "?C.nonce:void 0})}},Rh.preinitModule=function(m,C){if(typeof m==" string ")if(typeof C==" object "&&C!==null){if(C.as==null||C.as===" script "){var S=o(C.as,C.crossOrigin);i.d.M(m,{crossOrigin:S,integrity:typeof C.integrity==" string "?C.integrity:void 0,nonce:typeof C.nonce==" string "?C.nonce:void 0})}}else C==null&&i.d.M(m)},Rh.preload=function(m,C){if(typeof m==" string "&&typeof C==" object "&&C!==null&&typeof C.as==" string "){var S=C.as,O=o(S,C.crossOrigin);i.d.L(m,S,{crossOrigin:O,integrity:typeof C.integrity==" string "?C.integrity:void 0,nonce:typeof C.nonce==" string "?C.nonce:void 0,type:typeof C.type==" string "?C.type:void 0,fetchPriority:typeof C.fetchPriority==" string "?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==" string "?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==" string "?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==" string "?C.imageSizes:void 0,media:typeof C.media==" string "?C.media:void 0})}},Rh.preloadModule=function(m,C){if(typeof m==" string ")if(C){var S=o(C.as,C.crossOrigin);i.d.m(m,{as:typeof C.as==" string "&&C.as!==" script "?C.as:void 0,crossOrigin:S,integrity:typeof C.integrity==" string "?C.integrity:void 0})}else i.d.m(m)},Rh.requestFormReset=function(m){i.d.r(m)},Rh.unstable_batchedUpdates=function(m,C){return m(C)},Rh.useFormState=function(m,C,S){return l.H.useFormState(m,C,S)},Rh.useFormStatus=function(){return l.H.useHostTransitionStatus()},Rh.version=" 19.1 . 1 ",Rh}var C 7;function P 3(){if(C 7)return c 4.exports;C 7=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>" u "||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=" function " ) ) try { _ _REACT _DEVTOOLS _GLOBAL _HOOK _ _ . checkDCE ( n ) } catch ( e ) { console . error ( e ) } } return n ( ) , c4 . exports = mW ( ) , c4 . exports } var _7 ; function pW ( ) { if ( _7 ) return cC ; _7 = 1 ; / * *
* /var d 7;function A W(){if(d 7)return Rh;d 7=1;var n=pl();function e(m){var C="https:/ / react . dev / errors / "+m;if(1<arguments.length){C+=" ? args [ ] = "+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)C+=" & args [ ] = "+encodeURIComponent(arguments[S])}return" Minified React error # "+m+" ; visit "+C+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for(" react . portal ");function a(m,C,S){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:O==null?null:" "+O,children:m,containerInfo:C,implementation:S}}var l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(m,C){if(m===" font ")return" ";if(typeof C==" string ")return C===" use - credentials "?C:" "}return Rh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rh.createPortal=function(m,C){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(e(299));return a(m,C,null,S)},Rh.flushSync=function(m){var C=l.T,S=i.p;try{if(l.T=null,i.p=2,m)return m()}finally{l.T=C,i.p=S,i.d.f()}},Rh.preconnect=function(m,C){typeof m==" string "&&(C?(C=C.crossOrigin,C=typeof C==" string "?C===" use - credentials "?C:" ":void 0):C=null,i.d.C(m,C))},Rh.prefetchDNS=function(m){typeof m==" string "&&i.d.D(m)},Rh.preinit=function(m,C){if(typeof m==" string "&&C&&typeof C.as==" string "){var S=C.as,O=o(S,C.crossOrigin),U=typeof C.integrity==" string "?C.integrity:void 0,K=typeof C.fetchPriority==" string "?C.fetchPriority:void 0;S===" style "?i.d.S(m,typeof C.precedence==" string "?C.precedence:void 0,{crossOrigin:O,integrity:U,fetchPriority:K}):S===" script "&&i.d.X(m,{crossOrigin:O,integrity:U,fetchPriority:K,nonce:typeof C.nonce==" string "?C.nonce:void 0})}},Rh.preinitModule=function(m,C){if(typeof m==" string ")if(typeof C==" object "&&C!==null){if(C.as==null||C.as===" script "){var S=o(C.as,C.crossOrigin);i.d.M(m,{crossOrigin:S,integrity:typeof C.integrity==" string "?C.integrity:void 0,nonce:typeof C.nonce==" string "?C.nonce:void 0})}}else C==null&&i.d.M(m)},Rh.preload=function(m,C){if(typeof m==" string "&&typeof C==" object "&&C!==null&&typeof C.as==" string "){var S=C.as,O=o(S,C.crossOrigin);i.d.L(m,S,{crossOrigin:O,integrity:typeof C.integrity==" string "?C.integrity:void 0,nonce:typeof C.nonce==" string "?C.nonce:void 0,type:typeof C.type==" string "?C.type:void 0,fetchPriority:typeof C.fetchPriority==" string "?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==" string "?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==" string "?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==" string "?C.imageSizes:void 0,media:typeof C.media==" string "?C.media:void 0})}},Rh.preloadModule=function(m,C){if(typeof m==" string ")if(C){var S=o(C.as,C.crossOrigin);i.d.m(m,{as:typeof C.as==" string "&&C.as!==" script "?C.as:void 0,crossOrigin:S,integrity:typeof C.integrity==" string "?C.integrity:void 0})}else i.d.m(m)},Rh.requestFormReset=function(m){i.d.r(m)},Rh.unstable_batchedUpdates=function(m,C){return m(C)},Rh.useFormState=function(m,C,S){return l.H.useFormState(m,C,S)},Rh.useFormStatus=function(){return l.H.useHostTransitionStatus()},Rh.version=" 19.1 . 1 ",Rh}var f 7;function O 3(){if(f 7)return o 4.exports;f 7=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>" u "||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=" function " ) ) try { _ _REACT _DEVTOOLS _GLOBAL _HOOK _ _ . checkDCE ( n ) } catch ( e ) { console . error ( e ) } } return n ( ) , o4 . exports = AW ( ) , o4 . exports } var m7 ; function uW ( ) { if ( m7 ) return cC ; m7 = 1 ; / * *
* @ license React
* react - dom - client . production . js
*
@@ -38,36 +38,36 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var n=fW(),e=pl(),t=P3();function i(u){var p="https:/ / react . dev / errors / "+u;if(1<arguments.length){p+=" ? args [ ] = "+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+=" & args [ ] = "+encodeURIComponent(arguments[b])}return" Minified React error # "+u+" ; visit "+p+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}function r(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var p=u,b=u;if(u.alternate)for(;p.return;)p=p.return;else{u=p;do p=u,(p.flags&4098)!==0&&(b=p.return),u=p.return;while(u)}return p.tag===3?b:null}function l(u){if(u.tag===13){var p=u.memoizedState;if(p===null&&(u=u.alternate,u!==null&&(p=u.memoizedState)),p!==null)return p.dehydrated}return null}function o(u){if(a(u)!==u)throw Error(i(188))}function m(u){var p=u.alternate;if(!p){if(p=a(u),p===null)throw Error(i(188));return p!==u?null:u}for(var b=u,T=p;;){var Y=b.return;if(Y===null)break;var se=Y.alternate;if(se===null){if(T=Y.return,T!==null){b=T;continue}break}if(Y.child===se.child){for(se=Y.child;se;){if(se===b)return o(Y),u;if(se===T)return o(Y),p;se=se.sibling}throw Error(i(188))}if(b.return!==T.return)b=Y,T=se;else{for(var je=!1,at=Y.child;at;){if(at===b){je=!0,b=Y,T=se;break}if(at===T){je=!0,T=Y,b=se;break}at=at.sibling}if(!je){for(at=se.child;at;){if(at===b){je=!0,b=se,T=Y;break}if(at===T){je=!0,T=se,b=Y;break}at=at.sibling}if(!je)throw Error(i(189))}}if(b.alternate!==T)throw Error(i(190))}if(b.tag!==3)throw Error(i(188));return b.stateNode.current===b?u:p}function C(u){var p=u.tag;if(p===5||p===26||p===27||p===6)return u;for(u=u.child;u!==null;){if(p=C(u),p!==null)return p;u=u.sibling}return null}var S=Object.assign,O=Symbol.for(" react . element "),U=Symbol.for(" react . transitional . element "),K=Symbol.for(" react . portal "),z=Symbol.for(" react . fragment "),j=Symbol.for(" react . strict _mode "),Q=Symbol.for(" react . profiler "),ee=Symbol.for(" react . provider "),V=Symbol.for(" react . consumer "),ae=Symbol.for(" react . context "),ne=Symbol.for(" react . forward _ref "),Z=Symbol.for(" react . suspense "),oe=Symbol.for(" react . suspense _list "),W=Symbol.for(" react . memo "),ce=Symbol.for(" react . lazy "),ge=Symbol.for(" react . activity "),ye=Symbol.for(" react . memo _cache _sentinel "),Me=Symbol.iterator;function Be(u){return u===null||typeof u!=" object "?null:(u=Me&&u[Me]||u[" @ @ iterator "],typeof u==" function "?u:null)}var we=Symbol.for(" react . client . reference ");function qe(u){if(u==null)return null;if(typeof u==" function ")return u.$$typeof===we?null:u.displayName||u.name||null;if(typeof u==" string ")return u;switch(u){case z:return" Fragment ";case Q:return" Profiler ";case j:return" StrictMode ";case Z:return" Suspense ";case oe:return" SuspenseList ";case ge:return" Activity "}if(typeof u==" object ")switch(u.$$typeof){case K:return" Portal ";case ae:return(u.displayName||" Context ")+" . Provider ";case V:return(u._context.displayName||" Context ")+" . Consumer ";case ne:var p=u.render;return u=u.displayName,u||(u=p.displayName||p.name||" ",u=u!==" "?" ForwardRef ( "+u+" ) ":" ForwardRef "),u;case W:return p=u.displayName||null,p!==null?p:qe(u.type)||" Memo ";case ce:p=u._payload,u=u._init;try{return qe(u(p))}catch{}}return null}var xe=Array.isArray,ze=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yt={pending:!1,data:null,method:null,action:null},nt=[],be=-1;function Ge(u){return{current:u}}function tt(u){0>be||(u.current=nt[be],nt[be]=null,be--)}function lt(u,p){be++,nt[be]=u.current,u.current=p}var It=Ge(null),pt=Ge(null),St=Ge(null),Rt=Ge(null);function Le(u,p){switch(lt(St,p),lt(pt,u),lt(It,null),p.nodeType){case 9:case 11:u=(u=p.documentElement)&&(u=u.namespaceURI)?sl(u):0;break;default:if(u=p.tagName,p=p.namespaceURI)p=sl(p),u=ll(p,u);else switch(u){case" svg ":u=1;break;case" math ":u=2;break;default:u=0}}tt(It),lt(It,u)}function Pe(){tt(It),tt(pt),tt(St)}function Re(u){u.memoizedState!==null&<(Rt,u);var p=It.current,b=ll(p,u.type);p!==b&&(lt(pt,u),lt(It,b))}function He(u){pt.current===u&&(tt(It),tt(pt)),Rt.current===u&&(tt(Rt),Qt._currentValue=yt)}var bt=Object.prototype.hasOwnProperty,vt=n.unstable_scheduleCallback,Ot=n.unstable_cancelCallback,qt=n.unstable_shouldYield,Kt=n.unstable_requestPaint,on=n.unstable_now,Jn=n.unstable_getCurrentPriorityLevel,Wt=n.unstable_ImmediatePriority,$n=n.unstable_UserBlockingPriority,On=n.unstable_NormalPriority,Bn=n.unstable_LowPriority,In=n.unstable_IdlePriority,Bi=n.log,ei=n.unstable_setDisableYieldValue,Kn=null,Ne=null;function de(u){if(typeof Bi==" function "&&ei(u),Ne&&typeof Ne.setStrictMode==" function " ) try { Ne . setStrictMode ( Kn , u ) } catch { } } var re = Math . clz32 ? Math . clz32 : Te , le = Math . log , me = Math . LN2 ; function Te ( u ) { return u >>>= 0 , u === 0 ? 32 : 31 - ( le ( u ) / me | 0 ) | 0 } var We = 256 , dt = 4194304 ; function Ye ( u ) { var p = u & 42 ; if ( p !== 0 ) return p ; switch ( u & - u ) { case 1 : return 1 ; case 2 : return 2 ; case 4 : return 4 ; case 8 : return 8 ; case 16 : return 16 ; case 32 : return 32 ; case 64 : return 64 ; case 128 : return 128 ; case 256 : case 512 : case 1024 : ca Line truncated
* /var n=lW(),e=pl(),t=O3();function i(u){var p="https:/ / react . dev / errors / "+u;if(1<arguments.length){p+=" ? args [ ] = "+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+=" & args [ ] = "+encodeURIComponent(arguments[b])}return" Minified React error # "+u+" ; visit "+p+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}function r(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var p=u,b=u;if(u.alternate)for(;p.return;)p=p.return;else{u=p;do p=u,(p.flags&4098)!==0&&(b=p.return),u=p.return;while(u)}return p.tag===3?b:null}function l(u){if(u.tag===13){var p=u.memoizedState;if(p===null&&(u=u.alternate,u!==null&&(p=u.memoizedState)),p!==null)return p.dehydrated}return null}function o(u){if(a(u)!==u)throw Error(i(188))}function m(u){var p=u.alternate;if(!p){if(p=a(u),p===null)throw Error(i(188));return p!==u?null:u}for(var b=u,T=p;;){var Y=b.return;if(Y===null)break;var se=Y.alternate;if(se===null){if(T=Y.return,T!==null){b=T;continue}break}if(Y.child===se.child){for(se=Y.child;se;){if(se===b)return o(Y),u;if(se===T)return o(Y),p;se=se.sibling}throw Error(i(188))}if(b.return!==T.return)b=Y,T=se;else{for(var je=!1,at=Y.child;at;){if(at===b){je=!0,b=Y,T=se;break}if(at===T){je=!0,T=Y,b=se;break}at=at.sibling}if(!je){for(at=se.child;at;){if(at===b){je=!0,b=se,T=Y;break}if(at===T){je=!0,T=se,b=Y;break}at=at.sibling}if(!je)throw Error(i(189))}}if(b.alternate!==T)throw Error(i(190))}if(b.tag!==3)throw Error(i(188));return b.stateNode.current===b?u:p}function C(u){var p=u.tag;if(p===5||p===26||p===27||p===6)return u;for(u=u.child;u!==null;){if(p=C(u),p!==null)return p;u=u.sibling}return null}var S=Object.assign,O=Symbol.for(" react . element "),U=Symbol.for(" react . transitional . element "),K=Symbol.for(" react . portal "),z=Symbol.for(" react . fragment "),j=Symbol.for(" react . strict _mode "),Q=Symbol.for(" react . profiler "),ee=Symbol.for(" react . provider "),V=Symbol.for(" react . consumer "),ae=Symbol.for(" react . context "),ne=Symbol.for(" react . forward _ref "),Z=Symbol.for(" react . suspense "),oe=Symbol.for(" react . suspense _list "),W=Symbol.for(" react . memo "),ue=Symbol.for(" react . lazy "),ge=Symbol.for(" react . activity "),ye=Symbol.for(" react . memo _cache _sentinel "),Me=Symbol.iterator;function Be(u){return u===null||typeof u!=" object "?null:(u=Me&&u[Me]||u[" @ @ iterator "],typeof u==" function "?u:null)}var we=Symbol.for(" react . client . reference ");function qe(u){if(u==null)return null;if(typeof u==" function ")return u.$$typeof===we?null:u.displayName||u.name||null;if(typeof u==" string ")return u;switch(u){case z:return" Fragment ";case Q:return" Profiler ";case j:return" StrictMode ";case Z:return" Suspense ";case oe:return" SuspenseList ";case ge:return" Activity "}if(typeof u==" object ")switch(u.$$typeof){case K:return" Portal ";case ae:return(u.displayName||" Context ")+" . Provider ";case V:return(u._context.displayName||" Context ")+" . Consumer ";case ne:var p=u.render;return u=u.displayName,u||(u=p.displayName||p.name||" ",u=u!==" "?" ForwardRef ( "+u+" ) ":" ForwardRef "),u;case W:return p=u.displayName||null,p!==null?p:qe(u.type)||" Memo ";case ue:p=u._payload,u=u._init;try{return qe(u(p))}catch{}}return null}var xe=Array.isArray,ze=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yt={pending:!1,data:null,method:null,action:null},nt=[],be=-1;function Ne(u){return{current:u}}function tt(u){0>be||(u.current=nt[be],nt[be]=null,be--)}function lt(u,p){be++,nt[be]=u.current,u.current=p}var It=Ne(null),pt=Ne(null),St=Ne(null),Rt=Ne(null);function Le(u,p){switch(lt(St,p),lt(pt,u),lt(It,null),p.nodeType){case 9:case 11:u=(u=p.documentElement)&&(u=u.namespaceURI)?sl(u):0;break;default:if(u=p.tagName,p=p.namespaceURI)p=sl(p),u=ll(p,u);else switch(u){case" svg ":u=1;break;case" math ":u=2;break;default:u=0}}tt(It),lt(It,u)}function Pe(){tt(It),tt(pt),tt(St)}function Re(u){u.memoizedState!==null&<(Rt,u);var p=It.current,b=ll(p,u.type);p!==b&&(lt(pt,u),lt(It,b))}function He(u){pt.current===u&&(tt(It),tt(pt)),Rt.current===u&&(tt(Rt),Qt._currentValue=yt)}var bt=Object.prototype.hasOwnProperty,vt=n.unstable_scheduleCallback,Ot=n.unstable_cancelCallback,qt=n.unstable_shouldYield,Kt=n.unstable_requestPaint,on=n.unstable_now,Jn=n.unstable_getCurrentPriorityLevel,Wt=n.unstable_ImmediatePriority,$n=n.unstable_UserBlockingPriority,On=n.unstable_NormalPriority,Bn=n.unstable_LowPriority,In=n.unstable_IdlePriority,Bi=n.log,ei=n.unstable_setDisableYieldValue,Kn=null,Ge=null;function de(u){if(typeof Bi==" function "&&ei(u),Ge&&typeof Ge.setStrictMode==" function " ) try { Ge . setStrictMode ( Kn , u ) } catch { } } var re = Math . clz32 ? Math . clz32 : Te , le = Math . log , me = Math . LN2 ; function Te ( u ) { return u >>>= 0 , u === 0 ? 32 : 31 - ( le ( u ) / me | 0 ) | 0 } var We = 256 , dt = 4194304 ; function Ye ( u ) { var p = u & 42 ; if ( p !== 0 ) return p ; switch ( u & - u ) { case 1 : return 1 ; case 2 : return 2 ; case 4 : return 4 ; case 8 : return 8 ; case 16 : return 16 ; case 32 : return 32 ; case 64 : return 64 ; case 128 : return 128 ; case 256 : case 512 : case 1024 : ca Line truncated
at ` )?" (<anonymous>)":-1<b.stack.indexOf("@")?"@unknown:0:0":""}return `
` +ls+u+Ma}var $ e=!1;function Et(u,p){if(!u|| $ e)return""; $ e=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(p){var N n=function(){throw Error()};if(Object.defineProperty(N n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N n,[])}catch(fn){var mn=fn}Reflect.construct(u,[],N n)}else{try{N n.call()}catch(fn){mn=fn}u.call(N n.prototype)}}else{try{throw Error()}catch(fn){mn=fn}(N n=u())&&typeof N n.catch=="function"&&N n.catch(function(){})}}catch(fn){if(fn&&mn&&typeof fn.stack=="string")return[fn.stack,mn.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Y=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");Y&&Y.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var se=T.DetermineComponentFrameRoot(),je=se[0],at=se[1];if(je&&at){var Ft=je.split( `
` +ls+u+Ma}var $ e=!1;function Et(u,p){if(!u|| $ e)return""; $ e=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(p){var G n=function(){throw Error()};if(Object.defineProperty(G n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G n,[])}catch(fn){var mn=fn}Reflect.construct(u,[],G n)}else{try{G n.call()}catch(fn){mn=fn}u.call(G n.prototype)}}else{try{throw Error()}catch(fn){mn=fn}(G n=u())&&typeof G n.catch=="function"&&G n.catch(function(){})}}catch(fn){if(fn&&mn&&typeof fn.stack=="string")return[fn.stack,mn.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Y=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");Y&&Y.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var se=T.DetermineComponentFrameRoot(),je=se[0],at=se[1];if(je&&at){var Ft=je.split( `
` ),hn=at.split( `
` );for(Y=T=0;T<Ft.length&&!Ft[T].includes("DetermineComponentFrameRoot");)T++;for(;Y<hn.length&&!hn[Y].includes("DetermineComponentFrameRoot");)Y++;if(T===Ft.length||Y===hn.length)for(T=Ft.length-1,Y=hn.length-1;1<=T&&0<=Y&&Ft[T]!==hn[Y];)Y--;for(;1<=T&&0<=Y;T--,Y--)if(Ft[T]!==hn[Y]){if(T!==1||Y!==1)do if(T--,Y--,0>Y||Ft[T]!==hn[Y]){var kn= `
` +Ft[T].replace(" at new "," at ");return u.displayName&&kn.includes("<anonymous>")&&(kn=kn.replace("<anonymous>",u.displayName)),kn}while(1<=T&&0<=Y);break}}}finally{ $ e=!1,Error.prepareStackTrace=b}return(b=u?u.displayName||u.name:"")?Vo(b):""}function xn(u){switch(u.tag){case 26:case 27:case 5:return Vo(u.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 15:return Et(u.type,!1);case 11:return Et(u.type.render,!1);case 1:return Et(u.type,!0);case 31:return Vo("Activity");default:return""}}function jn(u){try{var p="";do p+=xn(u),u=u.return;while(u);return p}catch(b){return `
Error generating stack : ` +b.message+ `
` +b.stack}}function rn(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function si(u){var p=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Jr(u){var p=si(u)?"checked":"value",b=Object.getOwnPropertyDescriptor(u.constructor.prototype,p),T=""+u[p];if(!u.hasOwnProperty(p)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var Y=b.get,se=b.set;return Object.defineProperty(u,p,{configurable:!0,get:function(){return Y.call(this)},set:function(je){T=""+je,se.call(this,je)}}),Object.defineProperty(u,p,{enumerable:b.enumerable}),{getValue:function(){return T},setValue:function(je){T=""+je},stopTracking:function(){u._valueTracker=null,delete u[p]}}}}function wo(u){u._valueTracker||(u._valueTracker=Jr(u))}function As(u){if(!u)return!1;var p=u._valueTracker;if(!p)return!0;var b=p.getValue(),T="";return u&&(T=si(u)?u.checked?"true":"false":u.value),u=T,u!==b?(p.setValue(u),!0):!1}function Us(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var YA=/[ \n " \\ ]/g;function Qi(u){return u.replace(YA,function(p){return" \\ "+p.charCodeAt(0).toString(16)+" "})}function Du(u,p,b,T,Y,se,je,at){u.name="",je!=null&&typeof je!="function"&&typeof je!="symbol"&&typeof je!="boolean"?u.type=je:u.removeAttribute("type"),p!=null?je==="number"?(p===0&&u.value===""||u.value!=p)&&(u.value=""+rn(p)):u.value!==""+rn(p)&&(u.value=""+rn(p)):je!=="submit"&&je!=="reset"||u.removeAttribute("value"),p!=null?yl(u,je,rn(p)):b!=null?yl(u,je,rn(b)):T!=null&&u.removeAttribute("value"),Y==null&&se!=null&&(u.defaultChecked=!!se),Y!=null&&(u.checked=Y&&typeof Y!="function"&&typeof Y!="symbol"),at!=null&&typeof at!="function"&&typeof at!="symbol"&&typeof at!="boolean"?u.name=""+rn(at):u.removeAttribute("name")}function _A(u,p,b,T,Y,se,je,at){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(u.type=se),p!=null||b!=null){if(!(se!=="submit"&&se!=="reset"||p!=null))return;b=b!=null?""+rn(b):"",p=p!=null?""+rn(p):b,at||p===u.value||(u.value=p),u.defaultValue=p}T=T??Y,T=typeof T!="function"&&typeof T!="symbol"&&!!T,u.checked=at?u.checked:!!T,u.defaultChecked=!!T,je!=null&&typeof je!="function"&&typeof je!="symbol"&&typeof je!="boolean"&&(u.name=je)}function yl(u,p,b){p==="number"&&Us(u.ownerDocument)===u||u.defaultValue===""+b||(u.defaultValue=""+b)}function Ss(u,p,b,T){if(u=u.options,p){p={};for(var Y=0;Y<b.length;Y++)p[" $ "+b[Y]]=!0;for(b=0;b<u.length;b++)Y=p.hasOwnProperty(" $ "+u[b].value),u[b].selected!==Y&&(u[b].selected=Y),Y&&T&&(u[b].defaultSelected=!0)}else{for(b=""+rn(b),p=null,Y=0;Y<u.length;Y++){if(u[Y].value===b){u[Y].selected=!0,T&&(u[Y].defaultSelected=!0);return}p!==null||u[Y].disabled||(p=u[Y])}p!==null&&(p.selected=!0)}}function bc(u,p,b){if(p!=null&&(p=""+rn(p),p!==u.value&&(u.value=p),b==null)){u.defaultValue!==p&&(u.defaultValue=p);return}u.defaultValue=b!=null?""+rn(b):""}function Qs(u,p,b,T){if(p==null){if(T!=null){if(b!=null)throw Error(i(92));if(xe(T)){if(1<T.length)throw Error(i(93));T=T[0]}b=T}b==null&&(b=""),p=b}b=rn(p),u.defaultValue=b,T=u.textContent,T===b&&T!==""&&T!==null&&(u.value=T)}function $ o(u,p){if(p){var b=u.firstChild;if(b&&b===u.lastChild&&b.nodeType===3){b.nodeValue=p;return}}u.textContent=p}var ko=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dr(u,p,b){var T=p.indexOf("--")===0;b==null||typeof b=="boolean"||b===""?T?u.setProperty(p,""):p==="float"?u.cssFloat="":u[p]="":T?u.setProperty(p,b):typeof b!="number"||b===0||ko.has(p)?p==="float"?u.cssFloat=b:u[p]=(""+b).trim():u[p]=b+"px"}function Kl(u,p,b){if(p!=null&&typeof p!="object")throw Error(i(62));if(u=u.style,b!=null){for(var T in b)!b.hasOwnProperty(T)||p!=null&&p.hasOwnProperty(T)||(T.indexOf("--")===0?u.setProperty(T,""):T==="float"?u.cssFloat="":u[T]="");for(var Y in p)T=p[Y],p.hasOwnProperty(Y)&&b[Y]!==T&&dr(u,Y,T)}else for(var se in p)p.hasOwnProperty(se)&&dr(u,se,p[se])}function ga(u){if(u.indexOf("-")===
Line truncated
` ).replace(mf,"")}function rg(u,p){return p=n1(p),n1(u)===p}function Zu(){}function Ba(u,p,b,T,Y,se){switch(b){case"children":typeof T=="string"?p==="body"||p==="textarea"&&T===""|| $ o(u,T):(typeof T=="number"||typeof T=="bigint")&&p!=="body"&& $ o(u,""+T);break;case"className":Vi(u,"class",T);break;case"tabIndex":Vi(u,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(u,b,T);break;case"style":Kl(u,T,se);break;case"data":if(p!=="object"){Vi(u,"data",T);break}case"src":case"href":if(T===""&&(p!=="a"||b!=="href")){u.removeAttribute(b);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){u.removeAttribute(b);break}T=br(""+T),u.setAttribute(b,T);break;case"action":case"formAction":if(typeof T=="function"){u.setAttribute(b,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you \\ 're trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(b==="formAction"?(p!=="input"&&Ba(u,p,"name",Y.name,Y,null),Ba(u,p,"formEncType",Y.formEncType,Y,null),Ba(u,p,"formMethod",Y.formMethod,Y,null),Ba(u,p,"formTarget",Y.formTarget,Y,null)):(Ba(u,p,"encType",Y.encType,Y,null),Ba(u,p,"method",Y.method,Y,null),Ba(u,p,"target",Y.target,Y,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){u.removeAttribute(b);break}T=br(""+T),u.setAttribute(b,T);break;case"onClick":T!=null&&(u.onclick=Zu);break;case"onScroll":T!=null&&na("scroll",u);break;case"onScrollEnd":T!=null&&na("scrollend",u);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Y.children!=null)throw Error(i(60));u.innerHTML=b}}break;case"multiple":u.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":u.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){u.removeAttribute("xlink:href");break}b=br(""+T),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,""+T):u.removeAttribute(b);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":T&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,""):u.removeAttribute(b);break;case"capture":case"download":T===!0?u.setAttribute(b,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,T):u.removeAttribute(b);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?u.setAttribute(b,T):u.removeAttribute(b);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?u.removeAttribute(b):u.setAttribute(b,T);break;case"popover":na("beforetoggle",u),na("toggle",u),ka(u,"popover",T);break;case"xlinkActuate":xi(u,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":xi(u,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":xi(u,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":xi(u,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":xi(u,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":xi(u,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":xi(u,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":xi(u,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":xi(u,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":ka(u,"is",T);break;case"innerText":case"textContent":break;default:(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")&&(b=Ul.get(b)||b,ka(u,b,T))}}function Km(u,p,b,T,Y,se){switch(b){case"style":Kl(u,T,se);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Y.children!=null)throw Error(i(60));u.innerHTML=b}}break;case"children":typeof T=="string"? $ o(u,T):(typeof T=="number"||typeof T=="bigint")&& $ o(u,""+T);break;case"onScroll":T!=null&&na("scroll",u);break;case"onScrollEnd":T!=null&&na("scrollend",u);break;case"onClick":T!=null&&(u.onclick=Zu);break;case"suppressContentEditableWarning":case"suppressHydrati
Line truncated
` +b.stack}}function rn(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function si(u){var p=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Jr(u){var p=si(u)?"checked":"value",b=Object.getOwnPropertyDescriptor(u.constructor.prototype,p),T=""+u[p];if(!u.hasOwnProperty(p)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var Y=b.get,se=b.set;return Object.defineProperty(u,p,{configurable:!0,get:function(){return Y.call(this)},set:function(je){T=""+je,se.call(this,je)}}),Object.defineProperty(u,p,{enumerable:b.enumerable}),{getValue:function(){return T},setValue:function(je){T=""+je},stopTracking:function(){u._valueTracker=null,delete u[p]}}}}function wo(u){u._valueTracker||(u._valueTracker=Jr(u))}function As(u){if(!u)return!1;var p=u._valueTracker;if(!p)return!0;var b=p.getValue(),T="";return u&&(T=si(u)?u.checked?"true":"false":u.value),u=T,u!==b?(p.setValue(u),!0):!1}function Us(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var YA=/[ \n " \\ ]/g;function Qi(u){return u.replace(YA,function(p){return" \\ "+p.charCodeAt(0).toString(16)+" "})}function Du(u,p,b,T,Y,se,je,at){u.name="",je!=null&&typeof je!="function"&&typeof je!="symbol"&&typeof je!="boolean"?u.type=je:u.removeAttribute("type"),p!=null?je==="number"?(p===0&&u.value===""||u.value!=p)&&(u.value=""+rn(p)):u.value!==""+rn(p)&&(u.value=""+rn(p)):je!=="submit"&&je!=="reset"||u.removeAttribute("value"),p!=null?yl(u,je,rn(p)):b!=null?yl(u,je,rn(b)):T!=null&&u.removeAttribute("value"),Y==null&&se!=null&&(u.defaultChecked=!!se),Y!=null&&(u.checked=Y&&typeof Y!="function"&&typeof Y!="symbol"),at!=null&&typeof at!="function"&&typeof at!="symbol"&&typeof at!="boolean"?u.name=""+rn(at):u.removeAttribute("name")}function _A(u,p,b,T,Y,se,je,at){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(u.type=se),p!=null||b!=null){if(!(se!=="submit"&&se!=="reset"||p!=null))return;b=b!=null?""+rn(b):"",p=p!=null?""+rn(p):b,at||p===u.value||(u.value=p),u.defaultValue=p}T=T??Y,T=typeof T!="function"&&typeof T!="symbol"&&!!T,u.checked=at?u.checked:!!T,u.defaultChecked=!!T,je!=null&&typeof je!="function"&&typeof je!="symbol"&&typeof je!="boolean"&&(u.name=je)}function yl(u,p,b){p==="number"&&Us(u.ownerDocument)===u||u.defaultValue===""+b||(u.defaultValue=""+b)}function Ss(u,p,b,T){if(u=u.options,p){p={};for(var Y=0;Y<b.length;Y++)p[" $ "+b[Y]]=!0;for(b=0;b<u.length;b++)Y=p.hasOwnProperty(" $ "+u[b].value),u[b].selected!==Y&&(u[b].selected=Y),Y&&T&&(u[b].defaultSelected=!0)}else{for(b=""+rn(b),p=null,Y=0;Y<u.length;Y++){if(u[Y].value===b){u[Y].selected=!0,T&&(u[Y].defaultSelected=!0);return}p!==null||u[Y].disabled||(p=u[Y])}p!==null&&(p.selected=!0)}}function bc(u,p,b){if(p!=null&&(p=""+rn(p),p!==u.value&&(u.value=p),b==null)){u.defaultValue!==p&&(u.defaultValue=p);return}u.defaultValue=b!=null?""+rn(b):""}function Qs(u,p,b,T){if(p==null){if(T!=null){if(b!=null)throw Error(i(92));if(xe(T)){if(1<T.length)throw Error(i(93));T=T[0]}b=T}b==null&&(b=""),p=b}b=rn(p),u.defaultValue=b,T=u.textContent,T===b&&T!==""&&T!==null&&(u.value=T)}function $ o(u,p){if(p){var b=u.firstChild;if(b&&b===u.lastChild&&b.nodeType===3){b.nodeValue=p;return}}u.textContent=p}var ko=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dr(u,p,b){var T=p.indexOf("--")===0;b==null||typeof b=="boolean"||b===""?T?u.setProperty(p,""):p==="float"?u.cssFloat="":u[p]="":T?u.setProperty(p,b):typeof b!="number"||b===0||ko.has(p)?p==="float"?u.cssFloat=b:u[p]=(""+b).trim():u[p]=b+"px"}function Kl(u,p,b){if(p!=null&&typeof p!="object")throw Error(i(62));if(u=u.style,b!=null){for(var T in b)!b.hasOwnProperty(T)||p!=null&&p.hasOwnProperty(T)||(T.indexOf("--")===0?u.setProperty(T,""):T==="float"?u.cssFloat="":u[T]="");for(var Y in p)T=p[Y],p.hasOwnProperty(Y)&&b[Y]!==T&&dr(u,Y,T)}else for(var se in p)p.hasOwnProperty(se)&&dr(u,se,p[se])}function ga(u){if(u.indexOf("-")===
Line truncated
` ).replace(ff,"")}function rg(u,p){return p=n1(p),n1(u)===p}function Zu(){}function Ba(u,p,b,T,Y,se){switch(b){case"children":typeof T=="string"?p==="body"||p==="textarea"&&T===""|| $ o(u,T):(typeof T=="number"||typeof T=="bigint")&&p!=="body"&& $ o(u,""+T);break;case"className":Vi(u,"class",T);break;case"tabIndex":Vi(u,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(u,b,T);break;case"style":Kl(u,T,se);break;case"data":if(p!=="object"){Vi(u,"data",T);break}case"src":case"href":if(T===""&&(p!=="a"||b!=="href")){u.removeAttribute(b);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){u.removeAttribute(b);break}T=br(""+T),u.setAttribute(b,T);break;case"action":case"formAction":if(typeof T=="function"){u.setAttribute(b,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you \\ 're trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(b==="formAction"?(p!=="input"&&Ba(u,p,"name",Y.name,Y,null),Ba(u,p,"formEncType",Y.formEncType,Y,null),Ba(u,p,"formMethod",Y.formMethod,Y,null),Ba(u,p,"formTarget",Y.formTarget,Y,null)):(Ba(u,p,"encType",Y.encType,Y,null),Ba(u,p,"method",Y.method,Y,null),Ba(u,p,"target",Y.target,Y,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){u.removeAttribute(b);break}T=br(""+T),u.setAttribute(b,T);break;case"onClick":T!=null&&(u.onclick=Zu);break;case"onScroll":T!=null&&na("scroll",u);break;case"onScrollEnd":T!=null&&na("scrollend",u);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Y.children!=null)throw Error(i(60));u.innerHTML=b}}break;case"multiple":u.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":u.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){u.removeAttribute("xlink:href");break}b=br(""+T),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,""+T):u.removeAttribute(b);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":T&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,""):u.removeAttribute(b);break;case"capture":case"download":T===!0?u.setAttribute(b,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,T):u.removeAttribute(b);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?u.setAttribute(b,T):u.removeAttribute(b);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?u.removeAttribute(b):u.setAttribute(b,T);break;case"popover":na("beforetoggle",u),na("toggle",u),ka(u,"popover",T);break;case"xlinkActuate":xi(u,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":xi(u,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":xi(u,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":xi(u,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":xi(u,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":xi(u,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":xi(u,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":xi(u,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":xi(u,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":ka(u,"is",T);break;case"innerText":case"textContent":break;default:(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")&&(b=Ul.get(b)||b,ka(u,b,T))}}function Pm(u,p,b,T,Y,se){switch(b){case"style":Kl(u,T,se);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Y.children!=null)throw Error(i(60));u.innerHTML=b}}break;case"children":typeof T=="string"? $ o(u,T):(typeof T=="number"||typeof T=="bigint")&& $ o(u,""+T);break;case"onScroll":T!=null&&na("scroll",u);break;case"onScrollEnd":T!=null&&na("scrollend",u);break;case"onClick":T!=null&&(u.onclick=Zu);break;case"suppressContentEditableWarning":case"suppressHydrati
Line truncated
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
* / v a r X 7 ; f u n c t i o n L Q ( ) { r e t u r n X 7 | | ( X 7 = 1 , f u n c t i o n ( n ) { c o n s t e = K Q ( ) , t = U Q ( ) , i = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; n . B u f f e r = o , n . S l o w B u f f e r = V , n . I N S P E C T _ M A X _ B Y T E S = 5 0 ; c o n s t r = 2 1 4 7 4 8 3 6 4 7 ; n . k M a x L e n g t h = r , o . T Y P E D _ A R R A Y _ S U P P O R T = a ( ) , ! o . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n a ( ) { t r y { c o n s t N e = n e w U i n t 8 A r r a y ( 1 ) , d e = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( d e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( N e , d e ) , N e . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( o . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( o . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( o . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( o . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n l ( N e ) { i f ( N e > r ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + N e + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; c o n s t d e = n e w U i n t 8 A r r a y ( N e ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( d e , o . p r o t o t y p e ) , d e } f u n c t i o n o ( N e , d e , r e ) { i f ( t y p e o f N e = = " n u m b e r " ) { i f ( t y p e o f d e = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n O ( N e ) } r e t u r n m ( N e , d e , r e ) } o . p o o l S i z e = 8 1 9 2 ; f u n c t i o n m ( N e , d e , r e ) { i f ( t y p e o f N e = = " s t r i n g " ) r e t u r n U ( N e , d e ) ; i f ( A r r a y B u f f e r . i s V i e w ( N e ) ) r e t u r n z ( N e ) ; i f ( N e = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f N e ) ; i f ( B n ( N e , A r r a y B u f f e r ) | | N e & & B n ( N e . b u f f e r , A r r a y B u f f e r ) | | t y p e o f S h a r e d A r r a y B u f f e r < " u " & & ( B n ( N e , S h a r e d A r r a y B u f f e r ) | | N e & & B n ( N e . b u f f e r , S h a r e d A r r a y B u f f e r ) ) ) r e t u r n j ( N e , d e , r e ) ; i f ( t y p e o f N e = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; c o n s t l e = N e . v a l u e O f & & N e . v a l u e O f ( ) ; i f ( l e ! = n u l l & & l e ! = = N e ) r e t u r n o . f r o m ( l e , d e , r e ) ; c o n s t m e = Q ( N e ) ; i f ( m e ) r e t u r n m e ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f N e [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n o . f r o m ( N e [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , d e , r e ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f N e ) } o . f r o m = f u n c t i o n ( N e , d e , r e ) { r e t u r n m ( N e , d e , r e ) } , O b j e c t . s e t P r o t o t y p e O f ( o . p r o t o t y p e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( o , U i n t 8 A r r a y ) ; f u n c t i o n C ( N e ) { i f ( t y p e o f N e ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( N e < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + N e + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n S ( N e , d e , r e ) { r e t u r n C ( N e ) , N e < = 0 ? l ( N e ) : d e ! = = v o i d 0 ? t y p e o f r e = = " s t r i n g " ? l ( N e ) . f i l l ( d e , r e ) : l ( N e ) . f i l l ( d e ) : l ( N e ) } o . a l l o c = f u n c t i o n ( N e , d e , r e ) { r e t u r n S ( N e , d e , r e ) } ; f u n c t i o n O ( N e ) { r e t u r n C ( N e ) , l ( N e < 0 ? 0 : e e ( N e ) | 0 ) } o . a l l o c U n s a f e = f u n c t i o n ( N e ) { r e t u r n O ( N e ) } , o . a l l o c U n s a f e S l o w = f u n c t i o n ( N e ) { r e t u r n O ( N e ) } ; f u n c t i o n U ( N e , d e ) { i f ( ( t y p e o f d e ! = " s t r i n g " | | d e = = = " " ) & & ( d e = " u t f 8 " ) , ! o . i s E n c o d i n g ( d e ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + d e ) ; c o n s t r e = a e ( N e , d e ) | 0 ; l e t l e = l ( r e ) ; c o n s t m e = l e . w r i t e ( N e , d e ) ; r e t u r n m e ! = = r e & & ( l e = l e . s l i c e ( 0 , m e ) ) , l e } f u n c t i o n K ( N e ) { c o n s t d e = N e . l e n g t h < 0 ? 0 : e e ( N e . l e n g t h ) | 0 , r e = l ( d e ) ; f o r ( l e t l e = 0 ; l e < d e ; l e + = 1 ) r e [ l e ] = N e [ l e ] & 2 5 5 ; r e t u r n r e } f u n c t i o n z ( N e ) { i f ( B n ( N e , U i n t 8 A r r a y ) ) { c o n s t d e = n e w U i n t 8 A r r a y ( N e ) ; r e t u r n j ( d e . b u f f e r , d e . b y t e O f f s e t , d e . b y t e L e n g t h ) } r e t u r n K ( N e ) } f u n c t i o n j ( N e , d e , r e ) { i f ( d e < 0 | | N e . b y t e L e n g t h < d e ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( N e . b y t e L e n g t h < d e + ( r e | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; l e t l e ; r e t u r n d e = = = v o i d 0 & & r e = = = v o i d 0 ? l e = n e w U i n t 8 A r r a y ( N e ) : r e = = = v o i d 0 ? l e = n e w U i n t 8 A r r a y ( N e , d e ) : l e = n e w U i n t 8 A r r a y ( N e , d e , r e ) , O b j e c t . s e t P r o t o t y p e O f ( l e , o . p r o t o t y p e ) , l e } f u n c t i o n Q ( N e ) { i f ( o . i s B u f f e r ( N e ) ) { c o n s t d e = e e ( N e . l e n g t h ) | 0 , r e = l ( d e ) ; r e t u r n r e . l e n g t h = = = 0 | | N e . c o p y ( r e , 0 , 0 , d e ) , r e } i f ( N e . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f N e . l e n g t h ! = " n u m b e r " | | I n ( N e . l e n g t h ) ? l ( 0 ) : K ( N e ) ; i f ( N e . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( N e . d a t a ) ) r e t u r n K ( N e . d a t a ) } f u n c t i o n e e ( N e ) { i f ( N e > = r ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + r . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n N e | 0 } f u n c t i o n V ( N e ) { r e t u r n + N e ! = N e & & ( N e = 0 ) , o . a l l o c ( + N e ) } o . i s B u f f e r = f u n c t i o n ( d e ) { r e t u r n d e ! = n u l l & & d e . _ i s B u f f e r = = = ! 0 & & d e ! = = o . p r o t o t y p e } , o . c o m p a r e = f u n c t i o n ( d e , r e ) { i f ( B n ( d e , U i n t 8 A r r a y ) & & ( d e = o . f r o m ( d e , d e . o f f s e t , d e . b y t e L e n g t h ) ) , B n ( r e , U i n t 8 A r r a y ) & & ( r e = o . f r o m ( r e , r e . o f f s e t , r e . b y t e L e n g t h ) ) , ! o . i s B u f f e r ( d e ) | | ! o . i s B u f f e r ( r e ) ) t h r o w n e w T y p e E r r o r ( ' T h e " b u f 1 " , " b u f 2 " a r g u m e n t s m u s t b e o n e o f t y p e B u f f e r o r U i n t 8 A r r a y ' ) ; i f ( d e = = = r e ) r e t u r n 0 ; l e t l e = d e . l e n g t h , m e = r e . l e n g t h ; f o r ( l e t T e = 0 , W e = M a t h . m i n ( l e , m e ) ; T e < W e ; + + T e ) i f ( d e [ T e ] ! = = r e [ T e ] ) { l e = d e [ T e ] , m e = r e [ T e ] ; b r e a k } r e t u r n l e < m e ? - 1 : m e < l e ? 1 : 0 } , o . i s E n c o d i n g = f u n c t i o n ( d e ) { s w i t c h ( S t r i n g ( d e ) . t o L o w e r C a s e ( ) ) { c a s e " h e x " : c a s e " u t f 8 " : c a s e " u t f - 8 " : c a s e " a s c i i " : c a s e " l a t i n 1 " : c a s e " b i n a r y " : c a s e " b a s e 6 4 " : c a s e " u c s 2 " : c a s e " u c s - 2 " : c a s e " u t f 1 6 l e " : c a s e " u t f - 1 6 l e " : r e t u r n ! 0 ; d e f a u l t : r e t u r n ! 1 } } , o . c o n c a t = f u n c t i o n ( d e , r e ) { i f ( ! A r r a y . i s A r r a y ( d e ) ) t h r o w n e w T y p e E r r o r ( ' " l i s t " a r g u m e n t m u s t b e a n A r r a y o Line truncated
* / v a r Y 7 ; f u n c t i o n k Q ( ) { r e t u r n Y 7 | | ( Y 7 = 1 , f u n c t i o n ( n ) { c o n s t e = I Q ( ) , t = T Q ( ) , i = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; n . B u f f e r = o , n . S l o w B u f f e r = V , n . I N S P E C T _ M A X _ B Y T E S = 5 0 ; c o n s t r = 2 1 4 7 4 8 3 6 4 7 ; n . k M a x L e n g t h = r , o . T Y P E D _ A R R A Y _ S U P P O R T = a ( ) , ! o . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n a ( ) { t r y { c o n s t G e = n e w U i n t 8 A r r a y ( 1 ) , d e = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( d e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( G e , d e ) , G e . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( o . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( o . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( o . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( o . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n l ( G e ) { i f ( G e > r ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + G e + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; c o n s t d e = n e w U i n t 8 A r r a y ( G e ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( d e , o . p r o t o t y p e ) , d e } f u n c t i o n o ( G e , d e , r e ) { i f ( t y p e o f G e = = " n u m b e r " ) { i f ( t y p e o f d e = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n O ( G e ) } r e t u r n m ( G e , d e , r e ) } o . p o o l S i z e = 8 1 9 2 ; f u n c t i o n m ( G e , d e , r e ) { i f ( t y p e o f G e = = " s t r i n g " ) r e t u r n U ( G e , d e ) ; i f ( A r r a y B u f f e r . i s V i e w ( G e ) ) r e t u r n z ( G e ) ; i f ( G e = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f G e ) ; i f ( B n ( G e , A r r a y B u f f e r ) | | G e & & B n ( G e . b u f f e r , A r r a y B u f f e r ) | | t y p e o f S h a r e d A r r a y B u f f e r < " u " & & ( B n ( G e , S h a r e d A r r a y B u f f e r ) | | G e & & B n ( G e . b u f f e r , S h a r e d A r r a y B u f f e r ) ) ) r e t u r n j ( G e , d e , r e ) ; i f ( t y p e o f G e = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; c o n s t l e = G e . v a l u e O f & & G e . v a l u e O f ( ) ; i f ( l e ! = n u l l & & l e ! = = G e ) r e t u r n o . f r o m ( l e , d e , r e ) ; c o n s t m e = Q ( G e ) ; i f ( m e ) r e t u r n m e ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f G e [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n o . f r o m ( G e [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , d e , r e ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f G e ) } o . f r o m = f u n c t i o n ( G e , d e , r e ) { r e t u r n m ( G e , d e , r e ) } , O b j e c t . s e t P r o t o t y p e O f ( o . p r o t o t y p e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( o , U i n t 8 A r r a y ) ; f u n c t i o n C ( G e ) { i f ( t y p e o f G e ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( G e < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + G e + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n S ( G e , d e , r e ) { r e t u r n C ( G e ) , G e < = 0 ? l ( G e ) : d e ! = = v o i d 0 ? t y p e o f r e = = " s t r i n g " ? l ( G e ) . f i l l ( d e , r e ) : l ( G e ) . f i l l ( d e ) : l ( G e ) } o . a l l o c = f u n c t i o n ( G e , d e , r e ) { r e t u r n S ( G e , d e , r e ) } ; f u n c t i o n O ( G e ) { r e t u r n C ( G e ) , l ( G e < 0 ? 0 : e e ( G e ) | 0 ) } o . a l l o c U n s a f e = f u n c t i o n ( G e ) { r e t u r n O ( G e ) } , o . a l l o c U n s a f e S l o w = f u n c t i o n ( G e ) { r e t u r n O ( G e ) } ; f u n c t i o n U ( G e , d e ) { i f ( ( t y p e o f d e ! = " s t r i n g " | | d e = = = " " ) & & ( d e = " u t f 8 " ) , ! o . i s E n c o d i n g ( d e ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + d e ) ; c o n s t r e = a e ( G e , d e ) | 0 ; l e t l e = l ( r e ) ; c o n s t m e = l e . w r i t e ( G e , d e ) ; r e t u r n m e ! = = r e & & ( l e = l e . s l i c e ( 0 , m e ) ) , l e } f u n c t i o n K ( G e ) { c o n s t d e = G e . l e n g t h < 0 ? 0 : e e ( G e . l e n g t h ) | 0 , r e = l ( d e ) ; f o r ( l e t l e = 0 ; l e < d e ; l e + = 1 ) r e [ l e ] = G e [ l e ] & 2 5 5 ; r e t u r n r e } f u n c t i o n z ( G e ) { i f ( B n ( G e , U i n t 8 A r r a y ) ) { c o n s t d e = n e w U i n t 8 A r r a y ( G e ) ; r e t u r n j ( d e . b u f f e r , d e . b y t e O f f s e t , d e . b y t e L e n g t h ) } r e t u r n K ( G e ) } f u n c t i o n j ( G e , d e , r e ) { i f ( d e < 0 | | G e . b y t e L e n g t h < d e ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( G e . b y t e L e n g t h < d e + ( r e | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; l e t l e ; r e t u r n d e = = = v o i d 0 & & r e = = = v o i d 0 ? l e = n e w U i n t 8 A r r a y ( G e ) : r e = = = v o i d 0 ? l e = n e w U i n t 8 A r r a y ( G e , d e ) : l e = n e w U i n t 8 A r r a y ( G e , d e , r e ) , O b j e c t . s e t P r o t o t y p e O f ( l e , o . p r o t o t y p e ) , l e } f u n c t i o n Q ( G e ) { i f ( o . i s B u f f e r ( G e ) ) { c o n s t d e = e e ( G e . l e n g t h ) | 0 , r e = l ( d e ) ; r e t u r n r e . l e n g t h = = = 0 | | G e . c o p y ( r e , 0 , 0 , d e ) , r e } i f ( G e . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f G e . l e n g t h ! = " n u m b e r " | | I n ( G e . l e n g t h ) ? l ( 0 ) : K ( G e ) ; i f ( G e . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( G e . d a t a ) ) r e t u r n K ( G e . d a t a ) } f u n c t i o n e e ( G e ) { i f ( G e > = r ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + r . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n G e | 0 } f u n c t i o n V ( G e ) { r e t u r n + G e ! = G e & & ( G e = 0 ) , o . a l l o c ( + G e ) } o . i s B u f f e r = f u n c t i o n ( d e ) { r e t u r n d e ! = n u l l & & d e . _ i s B u f f e r = = = ! 0 & & d e ! = = o . p r o t o t y p e } , o . c o m p a r e = f u n c t i o n ( d e , r e ) { i f ( B n ( d e , U i n t 8 A r r a y ) & & ( d e = o . f r o m ( d e , d e . o f f s e t , d e . b y t e L e n g t h ) ) , B n ( r e , U i n t 8 A r r a y ) & & ( r e = o . f r o m ( r e , r e . o f f s e t , r e . b y t e L e n g t h ) ) , ! o . i s B u f f e r ( d e ) | | ! o . i s B u f f e r ( r e ) ) t h r o w n e w T y p e E r r o r ( ' T h e " b u f 1 " , " b u f 2 " a r g u m e n t s m u s t b e o n e o f t y p e B u f f e r o r U i n t 8 A r r a y ' ) ; i f ( d e = = = r e ) r e t u r n 0 ; l e t l e = d e . l e n g t h , m e = r e . l e n g t h ; f o r ( l e t T e = 0 , W e = M a t h . m i n ( l e , m e ) ; T e < W e ; + + T e ) i f ( d e [ T e ] ! = = r e [ T e ] ) { l e = d e [ T e ] , m e = r e [ T e ] ; b r e a k } r e t u r n l e < m e ? - 1 : m e < l e ? 1 : 0 } , o . i s E n c o d i n g = f u n c t i o n ( d e ) { s w i t c h ( S t r i n g ( d e ) . t o L o w e r C a s e ( ) ) { c a s e " h e x " : c a s e " u t f 8 " : c a s e " u t f - 8 " : c a s e " a s c i i " : c a s e " l a t i n 1 " : c a s e " b i n a r y " : c a s e " b a s e 6 4 " : c a s e " u c s 2 " : c a s e " u c s - 2 " : c a s e " u t f 1 6 l e " : c a s e " u t f - 1 6 l e " : r e t u r n ! 0 ; d e f a u l t : r e t u r n ! 1 } } , o . c o n c a t = f u n c t i o n ( d e , r e ) { i f ( ! A r r a y . i s A r r a y ( d e ) ) t h r o w n e w T y p e E r r o r ( ' " l i s t " a r g u m e n t m u s t b e a n A r r a y o Line truncated
* @ license
* Lodash < https : //lodash.com/>
* Copyright OpenJS Foundation and other contributors < https : //openjsf.org/>
* Released under MIT license < https : //lodash.com/license>
* Based on Underscore . js 1.8 . 3 < http : //underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas , DocumentCloud and Investigative Reporters & Editors
* /var WQ=EC.exports,e9;function QQ(){return e9||(e9=1,function(n,e){(function(){var t,i="4.17.21",r=200,a="Unsupported core-js use. Try https:/ / npms . io / search ? q = ponyfill . ",l=" Expected a function ",o=" Invalid ` variable ` option passed into ` _.template ` ",m=" _ _lodash _hash _undefined _ _ ",C=500,S=" _ _lodash _placeholder _ _ ",O=1,U=2,K=4,z=1,j=2,Q=1,ee=2,V=4,ae=8,ne=16,Z=32,oe=64,W=128,ce=256,ge=512,ye=30,Me=" ... ",Be=800,we=16,qe=1,xe=2,ze=3,ot=1/0,yt=9007199254740991,nt=17976931348623157e292,be=NaN,Ge=4294967295,tt=Ge-1,lt=Ge>>>1,It=[[" ary ",W],[" bind ",Q],[" bindKey ",ee],[" curry ",ae],[" curryRight ",ne],[" flip ",ge],[" partial ",Z],[" partialRight ",oe],[" rearg ",ce]],pt=" [ object Arguments ] ",St=" [ object Array ] ",Rt=" [ object AsyncFunction ] ",Le=" [ object Boolean ] ",Pe=" [ object Date ] ",Re=" [ object DOMException ] ",He=" [ object Error ] ",bt=" [ object Function ] ",vt=" [ object GeneratorFunction ] ",Ot=" [ object Map ] ",qt=" [ object Number ] ",Kt=" [ object Null ] ",on=" [ object Object ] ",Jn=" [ object Promise ] ",Wt=" [ object Proxy ] ",$n=" [ object RegExp ] ",On=" [ object Set ] ",Bn=" [ object String ] ",In=" [ object Symbol ] ",Bi=" [ object Undefined ] ",ei=" [ object WeakMap ] ",Kn=" [ object WeakSet ] ",Ne=" [ object ArrayBuffer ] ",de=" [ object DataView ] ",re=" [ object Float32Array ] ",le=" [ object Float64Array ] ",me=" [ object Int8Array ] ",Te=" [ object Int16Array ] ",We=" [ object Int32Array ] ",dt=" [ object Uint8Array ] ",Ye=" [ object Uint8ClampedArray ] ",De=" [ object Uint16Array ] ",Ze=" [ object Uint32Array ] ",g=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>" ']/g,en=RegExp(kt.source),Dn=RegExp(it.source),Mn=/<%-([\s\S]+?)%>/g,ii=/<%([\s\S]+?)%>/g,Wn=/<%=([\s\S]+?)%>/g,qi=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , er = /^\w*$/ , wi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , hi = /[\\^$.*+?()[\]{}|]/g , ti = RegExp ( hi . source ) , Wi = /^\s+/ , Sn = /\s/ , lo = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , Hi = /\{\n\/\* \[wrapped with (.+)\] \*/ , pa = /,? & / , To = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , Zn = /[()=,{}\[\]\/\s]/ , lr = /\\(\\)?/g , zi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , vr = /\w*$/ , La = /^[-+]0x[0-9a-f]+$/i , Ir = /^0b[01]+$/i , Gi = /^\[object .+?Constructor\]$/ , gl = /^0o[0-7]+$/i , Ta = /^(?:0|[1-9]\d*)$/ , So = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , $a = /($^)/ , Ol = /['\n\r\u2028\u2029\\]/g , Ao = "\\ud800-\\udfff" , QA = "\\u0300-\\u036f" , ka = "\\ufe20-\\ufe2f" , Vi = "\\u20d0-\\u20ff" , xi = QA + ka + Vi , ls = "\\u2700-\\u27bf" , Ma = "a-z\\xdf-\\xf6\\xf8-\\xff" , Vo = "\\xac\\xb1\\xd7\\xf7" , $e = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , Et = "\\u2000-\\u206f" , xn = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000" , jn = "A-Z\\xc0-\\xd6\\xd8-\\xde" , rn = "\\ufe0e\\ufe0f" , si = Vo + $e + Et + xn , Jr = "['’ ]" , wo = "[" + Ao + "]" , As = "[" + si + "]" , Us = "[" + xi + "]" , YA = "\\d+" , Qi = "[" + ls + "]" , Du = "[" + Ma + "]" , _A = "[^" + Ao + si + YA + ls + Ma + jn + "]" , yl = "\\ud83c[\\udffb-\\udfff]" , Ss = "(?:" + Us + "|" + yl + ")" , bc = "[^" + Ao + "]" , Qs = "(?:\\ud83c[\\udde6-\\uddff]){2}" , $o = "[\\ud800-\\udbff][\\udc00-\\udfff]" , ko = "[" + jn + "]" , dr = "\\u200d" , Kl = "(?:" + Du + "|" + _A + ")" , ga = "(?:" + ko + "|" + _A + ")" , Ul = "(?:" + Jr + "(?:d|ll|m|re|s|t|ve))?" , bA = "(?:" + Jr + "(?:D|LL|M|RE|S|T|VE))?" , br = Ss + "?" , iA = "[" + rn + "]?" , cu = "(?:" + dr + "(?:" + [ bc , Qs , $o ] . join ( "|" ) + ")" + iA + br + ")*" , Go = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , Eo = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , Fa = iA + br + cu , Sa = "(?:" + [ Qi , Qs , $o ] . join ( "|" ) + ")" + Fa , oa = "(?:" + [ bc + Us + "?" , Us , Qs , $o , wo ] . join ( "|" ) + ")" , kr = RegExp ( Jr , "g" ) , rA = RegExp ( Us , "g" ) , za = RegExp ( yl + "(?=" + yl + ")|" + oa + Fa , "g" ) , Za = RegExp ( [ ko + "?" + Du + "+" + Ul + "(?=" + [ As , ko , "$" ] . join ( "|" ) + ")" , ga + "+" + bA + "(?=" + [ As , ko + Kl , "$" ] . join ( "|" ) + ")" , ko + "?" + Kl + "+" + Ul , ko + "+" + bA , Eo , Go , YA , Sa ] . join ( "|" ) , "g" ) , ya = RegExp ( "[" + dr + Ao + xi + rn + "]" ) , Dr = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , vl = [ "Array" , "Buffer" , "DataView" , "Date" , "Error" , "Float32Array" , "Float64Array" , "Function" , "Int8Array" , "Int16Array" , "Int32Array" , "Map" , "Math" , "Object" , "Promise" , "RegExp" , "Set" , "String" , "Symbol" , "TypeError" , "Uint8Array" , "Uint8ClampedArray" , "Uint16Array" , "Uint32Array" , "WeakMap" , "_" , "clearTimeout" , "isFinite" , "parseInt" , "setTimeout" ] , Zi = - 1 , Mi = { } ; Mi [ re ] = Mi [ le ] = Mi [ me ] = Mi [ Te ] = Mi [ We ] = Mi [ dt ] = Mi [ Ye ] = Mi [ De ] = Mi [ Ze ] = ! 0 , Mi [ pt ] = Mi [ St ] = Mi [ Ne ] = Mi [ Le ] = Mi [ de ] = Mi [ Pe ] = Mi [ He ] = Mi [ bt ] = Mi [ Ot ] = Mi [ qt ] = Mi [ on ] = Mi [ $n ] = Mi [ On ] = Mi [ Bn ] = Mi [ ei ] = ! 1 ; var Qr = { } ; Qr [ pt ] = Qr [ St ] = Qr [ Ne ] = Qr [ de ] = Qr [ Le ] = Qr [ Pe ] = Qr [ re ] = Qr [ le ] = Qr [ me ] = Qr [ Te ] = Qr [ We ] = Qr [ Ot ] = Qr [ qt ] = Qr [ on ] = Qr [ $n ] = Qr [ On ] = Qr [ Bn ] = Qr [ In ] = Qr [ dt ] = Qr [ Ye ] = Qr [ De ] = Qr [ Ze ] = ! 0 , Qr [ He ] = Qr [ bt ] = Qr [ ei ] = ! 1 ; var te = { À : "A" , Á : "A" , Â : "A" , Ã : "A" , Ä : "A" , Å : "A" , à : "a" , á : "a" , â : "a" , ã : "a" , ä : "a" , å : "a" , Ç : "C" , ç : "c" , Ð : "D" , ð : "d" , È : "E" , É : "E" , Ê : "E" , Ë : "E" , è : "e" , é : "e" , ê : "e" , ë : "e" , Ì : "I" , Í : "I" , Î : "I" , Ï : "I" , ì : "i" , í : "i" , î : "i" , ï : "i" , Ñ : "N" , ñ : "n" , Ò : "O" , Ó : "O" , Ô : "O" , Õ : "O" , Ö : "O" , Ø : "O" , ò : "o" , ó : "o" , ô : "o" , õ : "o" , ö : "o" , ø : "o" , Ù : "U" , Ú : "U" , Û : "U" , Ü : "U" , ù : "u" , ú : "u" , û : "u" , ü : "u" , Ý : "Y" , ý : "y" , ÿ : "y" , Æ : "Ae" , æ : "ae" , Þ : "Th" , þ : "th" , ß : "ss" , Ā : "A" , Ă : "A" , Ą : "A" , ā : " a Line truncated
* /var LQ=EC.exports,H7;function FQ(){return H7||(H7=1,function(n,e){(function(){var t,i="4.17.21",r=200,a="Unsupported core-js use. Try https:/ / npms . io / search ? q = ponyfill . ",l=" Expected a function ",o=" Invalid ` variable ` option passed into ` _.template ` ",m=" _ _lodash _hash _undefined _ _ ",C=500,S=" _ _lodash _placeholder _ _ ",O=1,U=2,K=4,z=1,j=2,Q=1,ee=2,V=4,ae=8,ne=16,Z=32,oe=64,W=128,ue=256,ge=512,ye=30,Me=" ... ",Be=800,we=16,qe=1,xe=2,ze=3,ot=1/0,yt=9007199254740991,nt=17976931348623157e292,be=NaN,Ne=4294967295,tt=Ne-1,lt=Ne>>>1,It=[[" ary ",W],[" bind ",Q],[" bindKey ",ee],[" curry ",ae],[" curryRight ",ne],[" flip ",ge],[" partial ",Z],[" partialRight ",oe],[" rearg ",ue]],pt=" [ object Arguments ] ",St=" [ object Array ] ",Rt=" [ object AsyncFunction ] ",Le=" [ object Boolean ] ",Pe=" [ object Date ] ",Re=" [ object DOMException ] ",He=" [ object Error ] ",bt=" [ object Function ] ",vt=" [ object GeneratorFunction ] ",Ot=" [ object Map ] ",qt=" [ object Number ] ",Kt=" [ object Null ] ",on=" [ object Object ] ",Jn=" [ object Promise ] ",Wt=" [ object Proxy ] ",$n=" [ object RegExp ] ",On=" [ object Set ] ",Bn=" [ object String ] ",In=" [ object Symbol ] ",Bi=" [ object Undefined ] ",ei=" [ object WeakMap ] ",Kn=" [ object WeakSet ] ",Ge=" [ object ArrayBuffer ] ",de=" [ object DataView ] ",re=" [ object Float32Array ] ",le=" [ object Float64Array ] ",me=" [ object Int8Array ] ",Te=" [ object Int16Array ] ",We=" [ object Int32Array ] ",dt=" [ object Uint8Array ] ",Ye=" [ object Uint8ClampedArray ] ",De=" [ object Uint16Array ] ",Ze=" [ object Uint32Array ] ",g=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>" ']/g,en=RegExp(kt.source),Dn=RegExp(it.source),Mn=/<%-([\s\S]+?)%>/g,ii=/<%([\s\S]+?)%>/g,Wn=/<%=([\s\S]+?)%>/g,qi=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , er = /^\w*$/ , wi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , hi = /[\\^$.*+?()[\]{}|]/g , ti = RegExp ( hi . source ) , Wi = /^\s+/ , Sn = /\s/ , lo = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , Hi = /\{\n\/\* \[wrapped with (.+)\] \*/ , pa = /,? & / , To = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , Zn = /[()=,{}\[\]\/\s]/ , lr = /\\(\\)?/g , zi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , vr = /\w*$/ , La = /^[-+]0x[0-9a-f]+$/i , Ir = /^0b[01]+$/i , Ni = /^\[object .+?Constructor\]$/ , gl = /^0o[0-7]+$/i , Ta = /^(?:0|[1-9]\d*)$/ , So = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , $a = /($^)/ , Ol = /['\n\r\u2028\u2029\\]/g , Ao = "\\ud800-\\udfff" , QA = "\\u0300-\\u036f" , ka = "\\ufe20-\\ufe2f" , Vi = "\\u20d0-\\u20ff" , xi = QA + ka + Vi , ls = "\\u2700-\\u27bf" , Ma = "a-z\\xdf-\\xf6\\xf8-\\xff" , Vo = "\\xac\\xb1\\xd7\\xf7" , $e = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , Et = "\\u2000-\\u206f" , xn = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000" , jn = "A-Z\\xc0-\\xd6\\xd8-\\xde" , rn = "\\ufe0e\\ufe0f" , si = Vo + $e + Et + xn , Jr = "['’ ]" , wo = "[" + Ao + "]" , As = "[" + si + "]" , Us = "[" + xi + "]" , YA = "\\d+" , Qi = "[" + ls + "]" , Du = "[" + Ma + "]" , _A = "[^" + Ao + si + YA + ls + Ma + jn + "]" , yl = "\\ud83c[\\udffb-\\udfff]" , Ss = "(?:" + Us + "|" + yl + ")" , bc = "[^" + Ao + "]" , Qs = "(?:\\ud83c[\\udde6-\\uddff]){2}" , $o = "[\\ud800-\\udbff][\\udc00-\\udfff]" , ko = "[" + jn + "]" , dr = "\\u200d" , Kl = "(?:" + Du + "|" + _A + ")" , ga = "(?:" + ko + "|" + _A + ")" , Ul = "(?:" + Jr + "(?:d|ll|m|re|s|t|ve))?" , bA = "(?:" + Jr + "(?:D|LL|M|RE|S|T|VE))?" , br = Ss + "?" , iA = "[" + rn + "]?" , cu = "(?:" + dr + "(?:" + [ bc , Qs , $o ] . join ( "|" ) + ")" + iA + br + ")*" , No = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , Eo = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , Fa = iA + br + cu , Sa = "(?:" + [ Qi , Qs , $o ] . join ( "|" ) + ")" + Fa , oa = "(?:" + [ bc + Us + "?" , Us , Qs , $o , wo ] . join ( "|" ) + ")" , kr = RegExp ( Jr , "g" ) , rA = RegExp ( Us , "g" ) , za = RegExp ( yl + "(?=" + yl + ")|" + oa + Fa , "g" ) , Za = RegExp ( [ ko + "?" + Du + "+" + Ul + "(?=" + [ As , ko , "$" ] . join ( "|" ) + ")" , ga + "+" + bA + "(?=" + [ As , ko + Kl , "$" ] . join ( "|" ) + ")" , ko + "?" + Kl + "+" + Ul , ko + "+" + bA , Eo , No , YA , Sa ] . join ( "|" ) , "g" ) , ya = RegExp ( "[" + dr + Ao + xi + rn + "]" ) , Dr = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , vl = [ "Array" , "Buffer" , "DataView" , "Date" , "Error" , "Float32Array" , "Float64Array" , "Function" , "Int8Array" , "Int16Array" , "Int32Array" , "Map" , "Math" , "Object" , "Promise" , "RegExp" , "Set" , "String" , "Symbol" , "TypeError" , "Uint8Array" , "Uint8ClampedArray" , "Uint16Array" , "Uint32Array" , "WeakMap" , "_" , "clearTimeout" , "isFinite" , "parseInt" , "setTimeout" ] , Zi = - 1 , Mi = { } ; Mi [ re ] = Mi [ le ] = Mi [ me ] = Mi [ Te ] = Mi [ We ] = Mi [ dt ] = Mi [ Ye ] = Mi [ De ] = Mi [ Ze ] = ! 0 , Mi [ pt ] = Mi [ St ] = Mi [ Ge ] = Mi [ Le ] = Mi [ de ] = Mi [ Pe ] = Mi [ He ] = Mi [ bt ] = Mi [ Ot ] = Mi [ qt ] = Mi [ on ] = Mi [ $n ] = Mi [ On ] = Mi [ Bn ] = Mi [ ei ] = ! 1 ; var Qr = { } ; Qr [ pt ] = Qr [ St ] = Qr [ Ge ] = Qr [ de ] = Qr [ Le ] = Qr [ Pe ] = Qr [ re ] = Qr [ le ] = Qr [ me ] = Qr [ Te ] = Qr [ We ] = Qr [ Ot ] = Qr [ qt ] = Qr [ on ] = Qr [ $n ] = Qr [ On ] = Qr [ Bn ] = Qr [ In ] = Qr [ dt ] = Qr [ Ye ] = Qr [ De ] = Qr [ Ze ] = ! 0 , Qr [ He ] = Qr [ bt ] = Qr [ ei ] = ! 1 ; var te = { À : "A" , Á : "A" , Â : "A" , Ã : "A" , Ä : "A" , Å : "A" , à : "a" , á : "a" , â : "a" , ã : "a" , ä : "a" , å : "a" , Ç : "C" , ç : "c" , Ð : "D" , ð : "d" , È : "E" , É : "E" , Ê : "E" , Ë : "E" , è : "e" , é : "e" , ê : "e" , ë : "e" , Ì : "I" , Í : "I" , Î : "I" , Ï : "I" , ì : "i" , í : "i" , î : "i" , ï : "i" , Ñ : "N" , ñ : "n" , Ò : "O" , Ó : "O" , Ô : "O" , Õ : "O" , Ö : "O" , Ø : "O" , ò : "o" , ó : "o" , ô : "o" , õ : "o" , ö : "o" , ø : "o" , Ù : "U" , Ú : "U" , Û : "U" , Ü : "U" , ù : "u" , ú : "u" , û : "u" , ü : "u" , Ý : "Y" , ý : "y" , ÿ : "y" , Æ : "Ae" , æ : "ae" , Þ : "Th" , þ : "th" , ß : "ss" , Ā : "A" , Ă : "A" , Ą : "A" , ā : " a Line truncated
/* [wrapped with `+D+`] */
` )}function v(x){return qr(x)||Ud(x)||!!(JA&&x&&x[JA])}function B(x,D){var $ =typeof x;return D=D??yt,!!D&&( $ =="number"|| $ !="symbol"&&Ta.test(x))&&x>-1&&x%1==0&&x<D}function E(x,D, $ ){if(!sl( $ ))return!1;var Ce=typeof D;return(Ce=="number"?Xl( $ )&&B(D, $ .length):Ce=="string"&&D in $ )?Zl( $ [D],x):!1}function F(x,D){if(qr(x))return!1;var $ =typeof x;return $ =="number"|| $ =="symbol"|| $ =="boolean"||x==null||ou(x)?!0:er.test(x)||!qi.test(x)||D!=null&&x in Do(D)}function X(x){var D=typeof x;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?x!=="__proto__":x===null}function fe(x){var D=lf(x), $ =rt[D];if(typeof $ !="function"||!(D in gr.prototype))return!1;if(x=== $ )return!0;var Ce=qf( $ );return!!Ce&&x===Ce[0]}function _e(x){return!!qh&&qh in x}var ke=wA?kh:Nm;function Fe(x){var D=x&&x.constructor, $ =typeof D=="function"&&D.prototype||SA;return x=== $ }function _t(x){return x===x&&!sl(x)}function Tt(x,D){return function( $ ){return $ ==null?!1: $ [x]===D&&(D!==t||x in Do( $ ))}}function Jt(x){var D=Dm(x,function(Ce){return $ .size===C&& $ .clear(),Ce}), $ =D.cache;return D}function Ht(x,D){var $ =x[1],Ce=D[1],Je= $ |Ce,mt=Je<(Q|ee|W),Ut=Ce==W&& $ ==ae||Ce==W&& $ ==ce&&x[7].length<=D[8]||Ce==(W|ce)&&D[7].length<=D[8]&& $ ==ae;if(!(mt||Ut))return x;Ce&Q&&(x[2]=D[2],Je|= $ &Q?0:V);var Vt=D[3];if(Vt){var sn=x[3];x[3]=sn?xl(sn,Vt,D[4]):Vt,x[4]=sn?hu(x[3],S):D[4]}return Vt=D[5],Vt&&(sn=x[5],x[5]=sn?Pc(sn,Vt,D[6]):Vt,x[6]=sn?hu(x[5],S):D[6]),Vt=D[7],Vt&&(x[7]=Vt),Ce&W&&(x[8]=x[8]==null?D[8]:aa(x[8],D[8])),x[9]==null&&(x[9]=D[9]),x[0]=D[0],x[1]=Je,x}function _n(x){var D=[];if(x!=null)for(var $ in Do(x))D.push( $ );return D}function Rn(x){return Ga.call(x)}function oi(x,D, $ ){return D=Wo(D===t?x.length-1:D,0),function(){for(var Ce=arguments,Je=-1,mt=Wo(Ce.length-D,0),Ut=vn(mt);++Je<mt;)Ut[Je]=Ce[D+Je];Je=-1;for(var Vt=vn(D+1);++Je<D;)Vt[Je]=Ce[Je];return Vt[D]= $ (Ut),fs(x,this,Vt)}}function pi(x,D){return D.length<2?x:uA(x,Xt(D,0,-1))}function Ci(x,D){for(var $ =x.length,Ce=aa(D.length, $ ),Je=bo(x);Ce--;){var mt=D[Ce];x[Ce]=B(mt, $ )?Je[mt]:t}return x}function gi(x,D){if(!(D==="constructor"&&typeof x[D]=="function")&&D!="__proto__")return x[D]}var ki=xr(Bt),ar=Bd||function(x,D){return Di.setTimeout(x,D)},Yi=xr(Yt);function Xr(x,D, $ ){var Ce=D+"";return Yi(x,d(Ce,vs(zs(Ce), $ )))}function xr(x){var D=0, $ =0;return function(){var Ce=Lu(),Je=we-(Ce- $ );if( $ =Ce,Je>0){if(++D>=Be)return arguments[0]}else D=0;return x.apply(t,arguments)}}function ns(x,D){var $ =-1,Ce=x.length,Je=Ce-1;for(D=D===t?Ce:D;++ $ <D;){var mt=ct( $ ,Je),Ut=x[mt];x[mt]=x[ $ ],x[ $ ]=Ut}return x.length=D,x}var ua=Jt(function(x){var D=[];return x.charCodeAt(0)===46&&D.push(""),x.replace(wi,function( $ ,Ce,Je,mt){D.push(Je?mt.replace(lr," $ 1"):Ce|| $ )}),D});function Yr(x){if(typeof x=="string"||ou(x))return x;var D=x+"";return D=="0"&&1/x==-ot?"-0":D}function ys(x){if(x!=null){try{return Il.call(x)}catch{}try{return x+""}catch{}}return""}function vs(x,D){return Da(It,function( $ ){var Ce="_."+ $ [0];D& $ [1]&&!ph(x,Ce)&&x.push(Ce)}),x.sort()}function ca(x){if(x instanceof gr)return x.clone();var D=new Zo(x.__wrapped__,x.__chain__);return D.__actions__=bo(x.__actions__),D.__index__=x.__index__,D.__values__=x.__values__,D}function Vl(x,D, $ ){( $ ?E(x,D, $ ):D===t)?D=1:D=Wo(io(D),0);var Ce=x==null?0:x.length;if(!Ce||D<1)return[];for(var Je=0,mt=0,Ut=vn(Vc(Ce/D));Je<Ce;)Ut[mt++]=Xt(x,Je,Je+=D);return Ut}function Is(x){for(var D=-1, $ =x==null?0:x.length,Ce=0,Je=[];++D< $ ;){var mt=x[D];mt&&(Je[Ce++]=mt)}return Je}function Gs(){var x=arguments.length;if(!x)return[];for(var D=vn(x-1), $ =arguments[0],Ce=x;Ce--;)D[Ce-1]=arguments[Ce];return ic(qr( $ )?bo( $ ):[ $ ],Rr(D,1))}var Br=Ct(function(x,D){return wl(x)?Po(x,Rr(D,1,wl,!0)):[]}),Ea=Ct(function(x,D){var $ =wu(D);return wl( $ )&&( $ =t),wl(x)?Po(x,Rr(D,1,wl,!0),mr( $ ,2)):[]}), $ l=Ct(function(x,D){var $ =wu(D);return wl( $ )&&( $ =t),wl(x)?Po(x,Rr(D,1,wl,!0),t, $ ):[]});function fc(x,D, $ ){var Ce=x==null?0:x.length;return Ce?(D= $ ||D===t?1:io(D),Xt(x,D<0?0:D,Ce)):[]}function mA(x,D, $ ){var Ce=x==null?0:x.length;return Ce?(D= $ ||D===t?1:io(D),D=Ce-D,Xt(x,0,D<0?0:D)):[]}function rh(x,D){return x&&x.length?Lo(x,mr(D,3),!0,!0):[]}function cs(x,D){return x&&x.length?Lo(x,mr(D,3),!0):[]}function Su(x,D, $ ,Ce){var Je=x==null?0:x.length;return Je?( $ &&typeof $ !="number"&&E(x,D, $ )&&( $ =0,Ce=Je),no(x,D, $ ,Ce)):[]}function Ml(x,D, $ ){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je= $ ==null?0:io( $ );return Je<0&&(Je=Wo(Ce+Je,0)),VA(x,mr(D,3),Je)}function mc(x,D, $ ){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=Ce-1;return $ !==t&&(Je=io( $ ),Je= $ <0?Wo(Ce+Je,0):aa(Je,Ce-1)),VA(x,mr(D,3),Je,!0)}function al(x){var D=x==null?0:x.length;return D?Rr(x,1):[]}function pA(x){var D=x==null?0:x.length;return D?Rr(x,ot):[]}function Vu(x,D){var $ =x==null?0:x.length;return $ ?(D=D===t?1:io(D),Rr(x,D)):[]}function od(x){for(var D=-1, $ =x==null?0:x.length,Ce={};++D< $ ;){var Je=x[D];Ce[Je[0]]=Je[1]}return Ce}function cf(x){return x&&x.length?x[0]:t}function G1(x,D, $ ){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je= $ ==null?0:io( $ );return Je<0&&(
Line truncated
` ;x.replace(N i,function(oo,Ia,qa,g f,ud,y f){return qa||(qa=g f),ui+=x.slice(Yn,y f).replace(Ol, $ A),Ia&&(Vt=!0,ui+= ` ' +
` )}function v(x){return qr(x)||Ud(x)||!!(JA&&x&&x[JA])}function B(x,D){var $ =typeof x;return D=D??yt,!!D&&( $ =="number"|| $ !="symbol"&&Ta.test(x))&&x>-1&&x%1==0&&x<D}function E(x,D, $ ){if(!sl( $ ))return!1;var Ce=typeof D;return(Ce=="number"?Xl( $ )&&B(D, $ .length):Ce=="string"&&D in $ )?Zl( $ [D],x):!1}function F(x,D){if(qr(x))return!1;var $ =typeof x;return $ =="number"|| $ =="symbol"|| $ =="boolean"||x==null||ou(x)?!0:er.test(x)||!qi.test(x)||D!=null&&x in Do(D)}function X(x){var D=typeof x;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?x!=="__proto__":x===null}function fe(x){var D=sf(x), $ =rt[D];if(typeof $ !="function"||!(D in gr.prototype))return!1;if(x=== $ )return!0;var Ce=Yf( $ );return!!Ce&&x===Ce[0]}function _e(x){return!!qh&&qh in x}var ke=wA?kh:Nm;function Fe(x){var D=x&&x.constructor, $ =typeof D=="function"&&D.prototype||SA;return x=== $ }function _t(x){return x===x&&!sl(x)}function Tt(x,D){return function( $ ){return $ ==null?!1: $ [x]===D&&(D!==t||x in Do( $ ))}}function Jt(x){var D=km(x,function(Ce){return $ .size===C&& $ .clear(),Ce}), $ =D.cache;return D}function Ht(x,D){var $ =x[1],Ce=D[1],Je= $ |Ce,mt=Je<(Q|ee|W),Ut=Ce==W&& $ ==ae||Ce==W&& $ ==ue&&x[7].length<=D[8]||Ce==(W|ue)&&D[7].length<=D[8]&& $ ==ae;if(!(mt||Ut))return x;Ce&Q&&(x[2]=D[2],Je|= $ &Q?0:V);var Vt=D[3];if(Vt){var sn=x[3];x[3]=sn?xl(sn,Vt,D[4]):Vt,x[4]=sn?hu(x[3],S):D[4]}return Vt=D[5],Vt&&(sn=x[5],x[5]=sn?Pc(sn,Vt,D[6]):Vt,x[6]=sn?hu(x[5],S):D[6]),Vt=D[7],Vt&&(x[7]=Vt),Ce&W&&(x[8]=x[8]==null?D[8]:aa(x[8],D[8])),x[9]==null&&(x[9]=D[9]),x[0]=D[0],x[1]=Je,x}function _n(x){var D=[];if(x!=null)for(var $ in Do(x))D.push( $ );return D}function Rn(x){return Na.call(x)}function oi(x,D, $ ){return D=Wo(D===t?x.length-1:D,0),function(){for(var Ce=arguments,Je=-1,mt=Wo(Ce.length-D,0),Ut=vn(mt);++Je<mt;)Ut[Je]=Ce[D+Je];Je=-1;for(var Vt=vn(D+1);++Je<D;)Vt[Je]=Ce[Je];return Vt[D]= $ (Ut),fs(x,this,Vt)}}function pi(x,D){return D.length<2?x:uA(x,Xt(D,0,-1))}function Ci(x,D){for(var $ =x.length,Ce=aa(D.length, $ ),Je=bo(x);Ce--;){var mt=D[Ce];x[Ce]=B(mt, $ )?Je[mt]:t}return x}function gi(x,D){if(!(D==="constructor"&&typeof x[D]=="function")&&D!="__proto__")return x[D]}var ki=xr(Bt),ar=Bd||function(x,D){return Di.setTimeout(x,D)},Yi=xr(Yt);function Xr(x,D, $ ){var Ce=D+"";return Yi(x,d(Ce,vs(zs(Ce), $ )))}function xr(x){var D=0, $ =0;return function(){var Ce=Lu(),Je=we-(Ce- $ );if( $ =Ce,Je>0){if(++D>=Be)return arguments[0]}else D=0;return x.apply(t,arguments)}}function ns(x,D){var $ =-1,Ce=x.length,Je=Ce-1;for(D=D===t?Ce:D;++ $ <D;){var mt=ct( $ ,Je),Ut=x[mt];x[mt]=x[ $ ],x[ $ ]=Ut}return x.length=D,x}var ua=Jt(function(x){var D=[];return x.charCodeAt(0)===46&&D.push(""),x.replace(wi,function( $ ,Ce,Je,mt){D.push(Je?mt.replace(lr," $ 1"):Ce|| $ )}),D});function Yr(x){if(typeof x=="string"||ou(x))return x;var D=x+"";return D=="0"&&1/x==-ot?"-0":D}function ys(x){if(x!=null){try{return Il.call(x)}catch{}try{return x+""}catch{}}return""}function vs(x,D){return Da(It,function( $ ){var Ce="_."+ $ [0];D& $ [1]&&!ph(x,Ce)&&x.push(Ce)}),x.sort()}function ca(x){if(x instanceof gr)return x.clone();var D=new Zo(x.__wrapped__,x.__chain__);return D.__actions__=bo(x.__actions__),D.__index__=x.__index__,D.__values__=x.__values__,D}function Vl(x,D, $ ){( $ ?E(x,D, $ ):D===t)?D=1:D=Wo(io(D),0);var Ce=x==null?0:x.length;if(!Ce||D<1)return[];for(var Je=0,mt=0,Ut=vn(Vc(Ce/D));Je<Ce;)Ut[mt++]=Xt(x,Je,Je+=D);return Ut}function Is(x){for(var D=-1, $ =x==null?0:x.length,Ce=0,Je=[];++D< $ ;){var mt=x[D];mt&&(Je[Ce++]=mt)}return Je}function Ns(){var x=arguments.length;if(!x)return[];for(var D=vn(x-1), $ =arguments[0],Ce=x;Ce--;)D[Ce-1]=arguments[Ce];return ic(qr( $ )?bo( $ ):[ $ ],Rr(D,1))}var Br=Ct(function(x,D){return wl(x)?Po(x,Rr(D,1,wl,!0)):[]}),Ea=Ct(function(x,D){var $ =wu(D);return wl( $ )&&( $ =t),wl(x)?Po(x,Rr(D,1,wl,!0),mr( $ ,2)):[]}), $ l=Ct(function(x,D){var $ =wu(D);return wl( $ )&&( $ =t),wl(x)?Po(x,Rr(D,1,wl,!0),t, $ ):[]});function fc(x,D, $ ){var Ce=x==null?0:x.length;return Ce?(D= $ ||D===t?1:io(D),Xt(x,D<0?0:D,Ce)):[]}function mA(x,D, $ ){var Ce=x==null?0:x.length;return Ce?(D= $ ||D===t?1:io(D),D=Ce-D,Xt(x,0,D<0?0:D)):[]}function rh(x,D){return x&&x.length?Lo(x,mr(D,3),!0,!0):[]}function cs(x,D){return x&&x.length?Lo(x,mr(D,3),!0):[]}function Su(x,D, $ ,Ce){var Je=x==null?0:x.length;return Je?( $ &&typeof $ !="number"&&E(x,D, $ )&&( $ =0,Ce=Je),no(x,D, $ ,Ce)):[]}function Ml(x,D, $ ){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je= $ ==null?0:io( $ );return Je<0&&(Je=Wo(Ce+Je,0)),VA(x,mr(D,3),Je)}function mc(x,D, $ ){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=Ce-1;return $ !==t&&(Je=io( $ ),Je= $ <0?Wo(Ce+Je,0):aa(Je,Ce-1)),VA(x,mr(D,3),Je,!0)}function al(x){var D=x==null?0:x.length;return D?Rr(x,1):[]}function pA(x){var D=x==null?0:x.length;return D?Rr(x,ot):[]}function Vu(x,D){var $ =x==null?0:x.length;return $ ?(D=D===t?1:io(D),Rr(x,D)):[]}function od(x){for(var D=-1, $ =x==null?0:x.length,Ce={};++D< $ ;){var Je=x[D];Ce[Je[0]]=Je[1]}return Ce}function uf(x){return x&&x.length?x[0]:t}function N1(x,D, $ ){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je= $ ==null?0:io( $ );return Je<0&&(
Line truncated
` ;x.replace(G i,function(oo,Ia,qa,p f,ud,g f){return qa||(qa=p f),ui+=x.slice(Yn,g f).replace(Ol, $ A),Ia&&(Vt=!0,ui+= ` ' +
_ _e ( ` +Ia+ ` ) +
'`),ud&&(sn=!0,ui+=`' ;
` +ud+ ` ;
_ _p += '`),qa&&(ui+=`' +
( ( _ _t = ( ` +qa+ ` ) ) == null ? '' : _ _t ) +
'`),Yn=y f+oo.length,oo}),ui+=`' ;
'`),Yn=g f+oo.length,oo}),ui+=`' ;
` ;var ro=jo.call(D,"variable")&&D.variable;if(!ro)ui= ` with ( obj ) {
` +ui+ `
}
@@ -77,14 +77,14 @@ __p += '`),qa&&(ui+=`' +
function print ( ) { _ _p += _ _j . call ( arguments , '' ) }
` : ` ;
` )+ui+ ` return _ _p
} ` ;var ha=se(function(){return Oo(mt,Mr+"return "+ui).apply(t,Ut)});if(ha.source=ui,Js(ha))throw ha;return ha}function hl(x){return Pa(x).toLowerCase()}function Ya(x){return Pa(x).toUpperCase()}function Dh(x,D, $ ){if(x=Pa(x),x&&( $ ||D===t))return Pf(x);if(!x||!(D=bi(D)))return x;var Ce=MA(x),Je=MA(D),mt=aA(Ce,Je),Ut=xc(Ce,Je)+1;return Os(Ce,mt,Ut).join("")}function Up(x,D, $ ){if(x=Pa(x),x&&( $ ||D===t))return x.slice(0,Ku(x)+1);if(!x||!(D=bi(D)))return x;var Ce=MA(x),Je=xc(Ce,MA(D))+1;return Os(Ce,0,Je).join("")}function zc(x,D, $ ){if(x=Pa(x),x&&( $ ||D===t))return x.replace(Wi,"");if(!x||!(D=bi(D)))return x;var Ce=MA(x),Je=aA(Ce,MA(D));return Os(Ce,Je).join("")}function u(x,D){var $ =ye,Ce=Me;if(sl(D)){var Je="separator"in D?D.separator:Je; $ ="length"in D?io(D.length): $ ,Ce="omission"in D?bi(D.omission):Ce}x=Pa(x);var mt=x.length;if(Mc(x)){var Ut=MA(x);mt=Ut.length}if( $ >=mt)return x;var Vt= $ -oc(Ce);if(Vt<1)return Ce;var sn=Ut?Os(Ut,0,Vt).join(""):x.slice(0,Vt);if(Je===t)return sn+Ce;if(Ut&&(Vt+=sn.length-Vt),Um(Je)){if(x.slice(Vt).search(Je)){var Yn,Hn=sn;for(Je.global||(Je=Hc(Je.source,Pa(vr.exec(Je))+"g")),Je.lastIndex=0;Yn=Je.exec(Hn);)var ui=Yn.index;sn=sn.slice(0,ui===t?Vt:ui)}}else if(x.indexOf(bi(Je),Vt)!=Vt){var Ni=sn.lastIndexOf(Je);Ni>-1&&(sn=sn.slice(0,Ni))}return sn+Ce}function p(x){return x=Pa(x),x&&en.test(x)?x.replace(kt,Bo):x}var b=Qa(function(x,D, $ ){return x+( $ ?" ":"")+D.toUpperCase()}),T=nu("toUpperCase");function Y(x,D, $ ){return x=Pa(x),D= $ ?t:D,D===t?Yh(x)?wm(x):kf(x):x.match(D)||[]}var se=Ct(function(x,D){try{return fs(x,t,D)}catch( $ ){return Js( $ )? $ :new Sr( $ )}}),je=us(function(x,D){return Da(D,function( $ ){ $ =Yr( $ ),yu(x, $ , $ u(x[ $ ],x))}),x});function at(x){var D=x==null?0:x.length, $ =mr();return x=D?po(x,function(Ce){if(typeof Ce[1]!="function")throw new sA(l);return[ $ (Ce[0]),Ce[1]]}):[],Ct(function(Ce){for(var Je=-1;++Je<D;){var mt=x[Je];if(fs(mt[0],this,Ce))return fs(mt[1],this,Ce)}})}function Ft(x){return Bm(_l(x,O))}function hn(x){return function(){return x}}function kn(x,D){return x==null||x!==x?D:x}var Nn=Mu(),mn=Mu(!0);function fn(x){return x}function Pr(x){return I(typeof x=="function"?x:_l(x,O))}function Kr(x){return k(_l(x,O))}function bs(x,D){return G(x,_l(D,O))}var tn=Ct(function(x,D){return function( $ ){return Cu( $ ,x,D)}}), $ t=Ct(function(x,D){return function( $ ){return Cu(x, $ ,D)}});function un(x,D, $ ){var Ce=ie(D),Je=DA(D,Ce); $ ==null&&!(sl(D)&&(Je.length||!Ce.length))&&( $ =D,D=x,x=this,Je=DA(D,ie(D)));var mt=!(sl( $ )&&"chain"in $ )||!! $ .chain,Ut=kh(x);return Da(Je,function(Vt){var sn=D[Vt];x[Vt]=sn,Ut&&(x.prototype[Vt]=function(){var Yn=this.__chain__;if(mt||Yn){var Hn=x(this.__wrapped__),ui=Hn.__actions__=bo(this.__actions__);return ui.push({func:sn,args:arguments,thisArg:x}),Hn.__chain__=Yn,Hn}return sn.apply(x,ic([this.value()],arguments))})}),x}function Ln(){return Di._===this&&(Di._=ws),this}function ir(){}function qo(x){return x=io(x),Ct(function(D){return he(D,x)})}var nr=Nf(po),Or=Nf(Ru),FA=Nf(gh);function Oa(x){return F(x)?Nh(Yr(x)):Ue(x)}function sm(x){return function(D){return x==null?t:uA(x,D)}}var AC=dc(),pc=dc(!0);function ch(){return[]}function Nm(){return!1}function pf(){return{}}function x0(){return""}function lm(){return!0}function Fj(x,D){if(x=io(x),x<1||x>yt)return[];var $ =Ge,Ce=aa(x,Ge);D=mr(D),x-=Ge;for(var Je=vh(Ce,D);++ $ <x;)D( $ );return Je}function zj(x){return qr(x)?po(x,Yr):ou(x)?[x]:bo(ua(Pa(x)))}function Gj(x){var D=++fu;return Pa(x)+D}var Nj=id(function(x,D){return x+D},0),jj=Wf("ceil"),Wj=id(function(x,D){return x/D},1),Qj=Wf("floor");function Yj(x){return x&&x.length?vu(x,fn,Ql):t}function qj(x,D){return x&&x.length?vu(x,mr(D,2),Ql):t}function Hj(x){return bd(x,fn)}function Vj(x,D){return bd(x,mr(D,2))}function $ j(x){return x&&x.length?vu(x,fn,_):t}function Zj(x,D){return x&&x.length?vu(x,mr(D,2),_):t}var Xj=id(function(x,D){return x*D},1),Jj=Wf("round"),eW=id(function(x,D){return x-D},0);function tW(x){return x&&x.length?yh(x,fn):0}function nW(x,D){return x&&x.length?yh(x,mr(D,2)):0}return rt.after=rC,rt.ary=X1,rt.assign=Ag,rt.assignIn=o1,rt.assignInWith=C0,rt.assignWith=_0,rt.at=ug,rt.before=Ip,rt.bind= $ u,rt.bindAll=je,rt.bindKey=ad,rt.castArray=aC,rt.chain=em,rt.chunk=Vl,rt.compact=Is,rt.concat=Gs,rt.cond=at,rt.conforms=Ft,rt.constant=hn,rt.countBy=wp,rt.create=xy,rt.curry=Tp,rt.curryRight=kp,rt.debounce=om,rt.defaults=cg,rt.defaultsDeep=b0,rt.defer=lh,rt.delay=km,rt.difference=Br,rt.differenceBy=Ea,rt.differenceWith= $ l,rt.drop=fc,rt.dropRight=mA,rt.dropRightWhile=rh,rt.dropWhile=cs,rt.fill=Su,rt.filter=Ay,rt.flatMap=c0,rt.flatMapDeep=cy,rt.flatMapDepth=im,rt.flatten=al,rt.flattenDeep=pA,rt.flattenDepth=Vu,rt.flip=oC,rt.flow=Nn,rt.flowRight=mn,rt.fromPairs=od,rt.functions=A,rt.functionsIn=c,rt.groupBy=h0,rt.initial=N1,rt.intersection=Rd,rt.intersectionBy=Tm,rt.intersectionWith=vp,rt.invert=P,rt.invertBy=N,rt.invokeMap=Z0,rt.iteratee=Pr,rt.keyBy=hy,rt.keys=ie,rt.keysIn=Ae,rt.map=Bp,rt.mapKeys=ve,rt.mapValues=Ke,rt.matches=Kr,rt.matchesProperty=bs,rt.memoize=Dm,rt
Line truncated
Use an identity property function instead : \ ` { "type": "identity", "property": ${ JSON . stringify ( O [ 1 ] ) } } \` . ` ) ] ; const U = [ ] ; return n . layerType === "symbol" && ( o === "text-field" && r && ! r . glyphs && U . push ( new _i ( t , l , 'use of "text-field" requires a style "glyphs" property' ) ) , o === "text-font" && Nv ( Gg ( l ) ) && Au ( l . type ) === "identity" && U . push ( new _i ( t , l , '"text-font" does not support identity functions' ) ) ) , U . concat ( i ( { key : n . key , value : l , valueSpec : S , style : r , styleSpec : a , expressionContext : "property" , propertyType : e , propertyKey : o } ) ) } function VL ( n ) { return HL ( n , "paint" ) } function $L ( n ) { return HL ( n , "layout" ) } function ZL ( n ) { let e = [ ] ; const t = n . value , i = n . key , r = n . style , a = n . styleSpec ; if ( ma ( t ) !== "object" ) return [ new _i ( i , t , ` object expected, ${ ma ( t ) } found ` ) ] ; ! t . type && ! t . ref && e . push ( new _i ( i , t , 'either "type" or "ref" is required' ) ) ; let l = Au ( t . type ) ; const o = Au ( t . ref ) ; if ( t . id ) { const m = Au ( t . id ) ; for ( let C = 0 ; C < n . arrayIndex ; C ++ ) { const S = r . layers [ C ] ; Au ( S . id ) === m && e . push ( new _i ( i , t . id , ` duplicate layer id " ${ t . id } ", previously used at line ${ S . id . _ _line _ _ } ` ) ) } } if ( "ref" in t ) { [ "type" , "source" , "source-layer" , "filter" , "layout" ] . forEach ( C => { C in t && e . push ( new _i ( i , t [ C ] , ` " ${ C } " is prohibited for ref layers ` ) ) } ) ; let m ; r . layers . forEach ( C => { Au ( C . id ) === o && ( m = C ) } ) , m ? m . ref ? e . push ( new _i ( i , t . ref , "ref cannot reference another ref layer" ) ) : l = Au ( m . type ) : e . push ( new _i ( i , t . ref , ` ref layer " ${ o } " not found ` ) ) } else if ( l !== "background" ) if ( ! t . source ) e . push ( new _i ( i , t , 'missing required property "source"' ) ) ; else { const m = r . sources && r . sources [ t . source ] , C = m && Au ( m . type ) ; m ? C === "vector" && l === "raster" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a raster source ` ) ) : C !== "raster-dem" && l === "hillshade" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a raster-dem source ` ) ) : C !== "raster-dem" && l === "color-relief" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a raster-dem source ` ) ) : C === "raster" && l !== "raster" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a vector source ` ) ) : C === "vector" && ! t [ "source-layer" ] ? e . push ( new _i ( i , t , ` layer " ${ t . id } " must specify a "source-layer" ` ) ) : C === "raster-dem" && l !== "hillshade" && l !== "color-relief" ? e . push ( new _i ( i , t . source , "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'." ) ) : l === "line" && t . paint && t . paint [ "line-gradient" ] && ( C !== "geojson" || ! m . lineMetrics ) && e . push ( new _i ( i , t , ` layer " ${ t . id } " specifies a line-gradient, which requires a GeoJSON source with \` lineMetrics \` enabled. ` ) ) : e . push ( new _i ( i , t . source , ` source " ${ t . source } " not found ` ) ) } return e = e . concat ( gm ( { key : i , value : t , valueSpec : a . layer , style : n . style , styleSpec : n . styleSpec , validateSpec : n . validateSpec , objectElementValidators : { "*" ( ) { return [ ] } , type ( ) { return n . validateSpec ( { key : ` ${ i } .type ` , value : t . type , valueSpec : a . layer . type , style : n . style , styleSpec : n . styleSpec , validateSpec : n . validateSpec , object : t , objectKey : "type" } ) } , filter : uO , layout ( m ) { return gm ( { layer : t , key : m . key , value : m . value , style : m . style , styleSpec : m . styleSpec , validateSpec : m . validateSpec , objectElementValidators : { "*" ( C ) { return $L ( wv ( { layerType : l } , C ) ) } } } ) } , paint ( m ) { return gm ( { layer : t , key : m . key , value : m . value , style : m . style , styleSpec : m . styleSpec , validateSpec : m . validateSpec , objectElementValidators : { "*" ( C ) { return VL ( wv ( { layerType : l } , C ) ) } } } ) } } } ) ) , e } function Ng ( n ) { const e = n . value , t = n . key , i = ma ( e ) ; return i !== "string" ? [ new _i ( t , e , ` string expected, ${ i } found ` ) ] : [ ] } function eV ( n ) { var e ; const t = ( e = n . sourceName ) !== null && e !== void 0 ? e : "" , i = n . value , r = n . styleSpec , a = r . source _raster _dem , l = n . style ; let o = [ ] ; const m = ma ( i ) ; if ( i === void 0 ) return o ; if ( m !== "object" ) return o . push ( new _i ( "source_raster_dem" , i , ` object expected, ${ m } found ` ) ) , o ; const S = Au ( i . encoding ) === "custom" , O = [ "redFactor" , "greenFactor" , "blueFactor" , "baseShift" ] , U = n . value . encoding ? ` " ${ n . value . encoding } " ` : "Default" ; for ( const K in i ) ! S && O . includes ( K ) ? o . push ( new _i ( K , i [ K ] , ` In " ${ t } ": " ${ K } " is only valid when "encoding" is set to "custom". ${ U } encoding found ` ) ) : a [ K ] ? o = o . concat ( n . validateSpec ( { key : K , value : i [ K ] , valueSpec : a [ K ] , validateSpec : n . validateSpec , style : l , styleSpec : r } ) ) : o . push ( new _i ( K , i [ K ] , ` unknown property " ${ K } " ` ) ) ; return o } const w9 = { promoteId : tV } ; function XL ( n ) { const e = n . value , t = n . key , i = n . styleSpec , r = n . style , a = n . validateSpec ; if ( ! e . type ) return [ new _i ( t , e , '"type" is required' ) ] ; const l = Au ( e . type ) ; let o ; switch ( l ) { case "vector" : case "raster" : return o = gm ( { key : t , value : e , valueSpec : i [ ` source_ ${ l . replace ( "-" , "_" ) } ` ] , style : n . style , styleSpec : i , objectElementValidators : w9 , validateSpec : a } ) , o ; case "raster-dem" : return o = eV ( { sourceName : t , value : e , style : n . style , styleSpec : i , validateSpec : a } ) , o ; case "geojson" : if ( o = gm ( { key : t , value : e , valueSpec : i . source _geojson , style : r , styleSpec : i , validateSpec : a , objectElementValidators : w9 } ) , e . cluster ) for ( const m in e . clusterProperties ) { const [ C , S ] = e . clusterProperties [ m ] , O = typeof C == "string" ? [ C , [ "accumulated" ] , [ "get" , m ] ] : C ; o . push ( ... Ov ( { key : ` ${ t } . ${ m } .map ` , value : S , expressionContext : "cluster-map" } ) ) , o . push ( ... Ov ( { key : ` ${ t } . ${ m } .reduce ` , value : O , expressionContext : "cluster-reduce" } ) ) } return o ; case "video" : return gm ( { key : t , value : e , valueSpec : i . source _video , style : r , validateSpec : a , s Line truncated
} ` ;var ha=se(function(){return Oo(mt,Mr+"return "+ui).apply(t,Ut)});if(ha.source=ui,Js(ha))throw ha;return ha}function hl(x){return Pa(x).toLowerCase()}function Ya(x){return Pa(x).toUpperCase()}function Dh(x,D, $ ){if(x=Pa(x),x&&( $ ||D===t))return Rf(x);if(!x||!(D=bi(D)))return x;var Ce=MA(x),Je=MA(D),mt=aA(Ce,Je),Ut=xc(Ce,Je)+1;return Os(Ce,mt,Ut).join("")}function Kp(x,D, $ ){if(x=Pa(x),x&&( $ ||D===t))return x.slice(0,Ku(x)+1);if(!x||!(D=bi(D)))return x;var Ce=MA(x),Je=xc(Ce,MA(D))+1;return Os(Ce,0,Je).join("")}function zc(x,D, $ ){if(x=Pa(x),x&&( $ ||D===t))return x.replace(Wi,"");if(!x||!(D=bi(D)))return x;var Ce=MA(x),Je=aA(Ce,MA(D));return Os(Ce,Je).join("")}function u(x,D){var $ =ye,Ce=Me;if(sl(D)){var Je="separator"in D?D.separator:Je; $ ="length"in D?io(D.length): $ ,Ce="omission"in D?bi(D.omission):Ce}x=Pa(x);var mt=x.length;if(Mc(x)){var Ut=MA(x);mt=Ut.length}if( $ >=mt)return x;var Vt= $ -oc(Ce);if(Vt<1)return Ce;var sn=Ut?Os(Ut,0,Vt).join(""):x.slice(0,Vt);if(Je===t)return sn+Ce;if(Ut&&(Vt+=sn.length-Vt),Km(Je)){if(x.slice(Vt).search(Je)){var Yn,Hn=sn;for(Je.global||(Je=Hc(Je.source,Pa(vr.exec(Je))+"g")),Je.lastIndex=0;Yn=Je.exec(Hn);)var ui=Yn.index;sn=sn.slice(0,ui===t?Vt:ui)}}else if(x.indexOf(bi(Je),Vt)!=Vt){var Gi=sn.lastIndexOf(Je);Gi>-1&&(sn=sn.slice(0,Gi))}return sn+Ce}function p(x){return x=Pa(x),x&&en.test(x)?x.replace(kt,Bo):x}var b=Qa(function(x,D, $ ){return x+( $ ?" ":"")+D.toUpperCase()}),T=nu("toUpperCase");function Y(x,D, $ ){return x=Pa(x),D= $ ?t:D,D===t?Yh(x)?Sm(x):Tf(x):x.match(D)||[]}var se=Ct(function(x,D){try{return fs(x,t,D)}catch( $ ){return Js( $ )? $ :new Sr( $ )}}),je=us(function(x,D){return Da(D,function( $ ){ $ =Yr( $ ),yu(x, $ , $ u(x[ $ ],x))}),x});function at(x){var D=x==null?0:x.length, $ =mr();return x=D?po(x,function(Ce){if(typeof Ce[1]!="function")throw new sA(l);return[ $ (Ce[0]),Ce[1]]}):[],Ct(function(Ce){for(var Je=-1;++Je<D;){var mt=x[Je];if(fs(mt[0],this,Ce))return fs(mt[1],this,Ce)}})}function Ft(x){return Em(_l(x,O))}function hn(x){return function(){return x}}function kn(x,D){return x==null||x!==x?D:x}var Gn=Mu(),mn=Mu(!0);function fn(x){return x}function Pr(x){return I(typeof x=="function"?x:_l(x,O))}function Kr(x){return k(_l(x,O))}function bs(x,D){return N(x,_l(D,O))}var tn=Ct(function(x,D){return function( $ ){return Cu( $ ,x,D)}}), $ t=Ct(function(x,D){return function( $ ){return Cu(x, $ ,D)}});function un(x,D, $ ){var Ce=ie(D),Je=DA(D,Ce); $ ==null&&!(sl(D)&&(Je.length||!Ce.length))&&( $ =D,D=x,x=this,Je=DA(D,ie(D)));var mt=!(sl( $ )&&"chain"in $ )||!! $ .chain,Ut=kh(x);return Da(Je,function(Vt){var sn=D[Vt];x[Vt]=sn,Ut&&(x.prototype[Vt]=function(){var Yn=this.__chain__;if(mt||Yn){var Hn=x(this.__wrapped__),ui=Hn.__actions__=bo(this.__actions__);return ui.push({func:sn,args:arguments,thisArg:x}),Hn.__chain__=Yn,Hn}return sn.apply(x,ic([this.value()],arguments))})}),x}function Ln(){return Di._===this&&(Di._=ws),this}function ir(){}function qo(x){return x=io(x),Ct(function(D){return he(D,x)})}var nr=Nf(po),Or=Nf(Ru),FA=Nf(gh);function Oa(x){return F(x)?Gh(Yr(x)):Ue(x)}function am(x){return function(D){return x==null?t:uA(x,D)}}var AC=dc(),pc=dc(!0);function ch(){return[]}function Nm(){return!1}function mf(){return{}}function x0(){return""}function sm(){return!0}function Dj(x,D){if(x=io(x),x<1||x>yt)return[];var $ =Ne,Ce=aa(x,Ne);D=mr(D),x-=Ne;for(var Je=vh(Ce,D);++ $ <x;)D( $ );return Je}function Rj(x){return qr(x)?po(x,Yr):ou(x)?[x]:bo(ua(Pa(x)))}function Pj(x){var D=++fu;return Pa(x)+D}var Kj=id(function(x,D){return x+D},0),Uj=jf("ceil"),Lj=id(function(x,D){return x/D},1),Fj=jf("floor");function zj(x){return x&&x.length?vu(x,fn,Ql):t}function Nj(x,D){return x&&x.length?vu(x,mr(D,2),Ql):t}function Gj(x){return bd(x,fn)}function jj(x,D){return bd(x,mr(D,2))}function Wj(x){return x&&x.length?vu(x,fn,_):t}function Qj(x,D){return x&&x.length?vu(x,mr(D,2),_):t}var Yj=id(function(x,D){return x*D},1),qj=jf("round"),Hj=id(function(x,D){return x-D},0);function Vj(x){return x&&x.length?yh(x,fn):0}function $ j(x,D){return x&&x.length?yh(x,mr(D,2)):0}return rt.after=rC,rt.ary=X1,rt.assign=Ag,rt.assignIn=o1,rt.assignInWith=C0,rt.assignWith=_0,rt.at=ug,rt.before=Op,rt.bind= $ u,rt.bindAll=je,rt.bindKey=ad,rt.castArray=aC,rt.chain=Jf,rt.chunk=Vl,rt.compact=Is,rt.concat=Ns,rt.cond=at,rt.conforms=Ft,rt.constant=hn,rt.countBy=Sp,rt.create=xy,rt.curry=Ip,rt.curryRight=Tp,rt.debounce=rm,rt.defaults=cg,rt.defaultsDeep=b0,rt.defer=lh,rt.delay=Tm,rt.difference=Br,rt.differenceBy=Ea,rt.differenceWith= $ l,rt.drop=fc,rt.dropRight=mA,rt.dropRightWhile=rh,rt.dropWhile=cs,rt.fill=Su,rt.filter=Ay,rt.flatMap=c0,rt.flatMapDeep=cy,rt.flatMapDepth=nm,rt.flatten=al,rt.flattenDeep=pA,rt.flattenDepth=Vu,rt.flip=oC,rt.flow=Gn,rt.flowRight=mn,rt.fromPairs=od,rt.functions=A,rt.functionsIn=c,rt.groupBy=h0,rt.initial=G1,rt.intersection=Rd,rt.intersectionBy=Im,rt.intersectionWith=yp,rt.invert=P,rt.invertBy=G,rt.invokeMap=Z0,rt.iteratee=Pr,rt.keyBy=hy,rt.keys=ie,rt.keysIn=Ae,rt.map=Ep,rt.mapKeys=ve,rt.mapValues=Ke,rt.matches=Kr,rt.matchesProperty=bs,rt.memoize=km,rt
Line truncated
Use an identity property function instead : \ ` { "type": "identity", "property": ${ JSON . stringify ( O [ 1 ] ) } } \` . ` ) ] ; const U = [ ] ; return n . layerType === "symbol" && ( o === "text-field" && r && ! r . glyphs && U . push ( new _i ( t , l , 'use of "text-field" requires a style "glyphs" property' ) ) , o === "text-font" && Gv ( Ng ( l ) ) && Au ( l . type ) === "identity" && U . push ( new _i ( t , l , '"text-font" does not support identity functions' ) ) ) , U . concat ( i ( { key : n . key , value : l , valueSpec : S , style : r , styleSpec : a , expressionContext : "property" , propertyType : e , propertyKey : o } ) ) } function jL ( n ) { return GL ( n , "paint" ) } function WL ( n ) { return GL ( n , "layout" ) } function QL ( n ) { let e = [ ] ; const t = n . value , i = n . key , r = n . style , a = n . styleSpec ; if ( ma ( t ) !== "object" ) return [ new _i ( i , t , ` object expected, ${ ma ( t ) } found ` ) ] ; ! t . type && ! t . ref && e . push ( new _i ( i , t , 'either "type" or "ref" is required' ) ) ; let l = Au ( t . type ) ; const o = Au ( t . ref ) ; if ( t . id ) { const m = Au ( t . id ) ; for ( let C = 0 ; C < n . arrayIndex ; C ++ ) { const S = r . layers [ C ] ; Au ( S . id ) === m && e . push ( new _i ( i , t . id , ` duplicate layer id " ${ t . id } ", previously used at line ${ S . id . _ _line _ _ } ` ) ) } } if ( "ref" in t ) { [ "type" , "source" , "source-layer" , "filter" , "layout" ] . forEach ( C => { C in t && e . push ( new _i ( i , t [ C ] , ` " ${ C } " is prohibited for ref layers ` ) ) } ) ; let m ; r . layers . forEach ( C => { Au ( C . id ) === o && ( m = C ) } ) , m ? m . ref ? e . push ( new _i ( i , t . ref , "ref cannot reference another ref layer" ) ) : l = Au ( m . type ) : e . push ( new _i ( i , t . ref , ` ref layer " ${ o } " not found ` ) ) } else if ( l !== "background" ) if ( ! t . source ) e . push ( new _i ( i , t , 'missing required property "source"' ) ) ; else { const m = r . sources && r . sources [ t . source ] , C = m && Au ( m . type ) ; m ? C === "vector" && l === "raster" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a raster source ` ) ) : C !== "raster-dem" && l === "hillshade" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a raster-dem source ` ) ) : C !== "raster-dem" && l === "color-relief" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a raster-dem source ` ) ) : C === "raster" && l !== "raster" ? e . push ( new _i ( i , t . source , ` layer " ${ t . id } " requires a vector source ` ) ) : C === "vector" && ! t [ "source-layer" ] ? e . push ( new _i ( i , t , ` layer " ${ t . id } " must specify a "source-layer" ` ) ) : C === "raster-dem" && l !== "hillshade" && l !== "color-relief" ? e . push ( new _i ( i , t . source , "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'." ) ) : l === "line" && t . paint && t . paint [ "line-gradient" ] && ( C !== "geojson" || ! m . lineMetrics ) && e . push ( new _i ( i , t , ` layer " ${ t . id } " specifies a line-gradient, which requires a GeoJSON source with \` lineMetrics \` enabled. ` ) ) : e . push ( new _i ( i , t . source , ` source " ${ t . source } " not found ` ) ) } return e = e . concat ( pm ( { key : i , value : t , valueSpec : a . layer , style : n . style , styleSpec : n . styleSpec , validateSpec : n . validateSpec , objectElementValidators : { "*" ( ) { return [ ] } , type ( ) { return n . validateSpec ( { key : ` ${ i } .type ` , value : t . type , valueSpec : a . layer . type , style : n . style , styleSpec : n . styleSpec , validateSpec : n . validateSpec , object : t , objectKey : "type" } ) } , filter : rO , layout ( m ) { return pm ( { layer : t , key : m . key , value : m . value , style : m . style , styleSpec : m . styleSpec , validateSpec : m . validateSpec , objectElementValidators : { "*" ( C ) { return WL ( wv ( { layerType : l } , C ) ) } } } ) } , paint ( m ) { return pm ( { layer : t , key : m . key , value : m . value , style : m . style , styleSpec : m . styleSpec , validateSpec : m . validateSpec , objectElementValidators : { "*" ( C ) { return jL ( wv ( { layerType : l } , C ) ) } } } ) } } } ) ) , e } function Gg ( n ) { const e = n . value , t = n . key , i = ma ( e ) ; return i !== "string" ? [ new _i ( t , e , ` string expected, ${ i } found ` ) ] : [ ] } function HH ( n ) { var e ; const t = ( e = n . sourceName ) !== null && e !== void 0 ? e : "" , i = n . value , r = n . styleSpec , a = r . source _raster _dem , l = n . style ; let o = [ ] ; const m = ma ( i ) ; if ( i === void 0 ) return o ; if ( m !== "object" ) return o . push ( new _i ( "source_raster_dem" , i , ` object expected, ${ m } found ` ) ) , o ; const S = Au ( i . encoding ) === "custom" , O = [ "redFactor" , "greenFactor" , "blueFactor" , "baseShift" ] , U = n . value . encoding ? ` " ${ n . value . encoding } " ` : "Default" ; for ( const K in i ) ! S && O . includes ( K ) ? o . push ( new _i ( K , i [ K ] , ` In " ${ t } ": " ${ K } " is only valid when "encoding" is set to "custom". ${ U } encoding found ` ) ) : a [ K ] ? o = o . concat ( n . validateSpec ( { key : K , value : i [ K ] , valueSpec : a [ K ] , validateSpec : n . validateSpec , style : l , styleSpec : r } ) ) : o . push ( new _i ( K , i [ K ] , ` unknown property " ${ K } " ` ) ) ; return o } const CI = { promoteId : VH } ; function YL ( n ) { const e = n . value , t = n . key , i = n . styleSpec , r = n . style , a = n . validateSpec ; if ( ! e . type ) return [ new _i ( t , e , '"type" is required' ) ] ; const l = Au ( e . type ) ; let o ; switch ( l ) { case "vector" : case "raster" : return o = pm ( { key : t , value : e , valueSpec : i [ ` source_ ${ l . replace ( "-" , "_" ) } ` ] , style : n . style , styleSpec : i , objectElementValidators : CI , validateSpec : a } ) , o ; case "raster-dem" : return o = HH ( { sourceName : t , value : e , style : n . style , styleSpec : i , validateSpec : a } ) , o ; case "geojson" : if ( o = pm ( { key : t , value : e , valueSpec : i . source _geojson , style : r , styleSpec : i , validateSpec : a , objectElementValidators : CI } ) , e . cluster ) for ( const m in e . clusterProperties ) { const [ C , S ] = e . clusterProperties [ m ] , O = typeof C == "string" ? [ C , [ "accumulated" ] , [ "get" , m ] ] : C ; o . push ( ... Ov ( { key : ` ${ t } . ${ m } .map ` , value : S , expressionContext : "cluster-map" } ) ) , o . push ( ... Ov ( { key : ` ${ t } . ${ m } .reduce ` , value : O , expressionContext : "cluster-reduce" } ) ) } return o ; case "video" : return pm ( { key : t , value : e , valueSpec : i . source _video , style : r , validateSpec : a , s Line truncated
$ { O } ` ),j].join( `
$ { o } ` )}return C}(n,"",0)}function B9 (n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function m V(n,e=2){return n=B9 (n,Ua. $ root),n.layers&&(n.layers=n.layers.map(t=>B9 (t,Ua.layer))),f V(n,{indent:e})}function T 4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function O9 (n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function I 6(n,e){return typeof e=="string"&&e[0]==="@"?I 6(n,n.constants[e]):e}function p V(n){return Array.isArray(n.stops)}function fC(n,e,t){n[t]=n[e],delete n[e]}function g V(n){n.version=8,X H(n,r=>{r.type==="video"&&r.url!==void 0&&fC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(a=>a.reverse())}),ZC(n,r=>{T 4(r,a=>{a["symbol-min-distance"]!==void 0&&fC(a,"symbol-min-distance","symbol-spacing")}),O9 (r,a=>{a["background-image"]!==void 0&&fC(a,"background-image","background-pattern"),a["line-image"]!==void 0&&fC(a,"line-image","line-pattern"),a["fill-image"]!==void 0&&fC(a,"fill-image","fill-pattern")})}),l O(n,{paint:!0,layout:!0},r=>{const a=I 6(n,r.value);p V(a)&&a.stops.forEach(l=>{l[1]=I 6(n,l[1])}),r.set(a)}),delete n.constants,ZC(n,r=>{T 4(r,a=>{delete a["text-max-size"],delete a["icon-max-size"]}),O9 (r,a=>{a["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=a["text-size"],delete a["text-size"]),a["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=a["icon-size"],delete a["icon-size"])})});function e(r){function a(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return a(r);if(typeof r=="object")return r.stops.forEach(l=>{l[1]=a(l[1])}),r;throw new Error("unexpected font value")}ZC(n,r=>{T 4(r,a=>{a["text-font"]&&(a["text-font"]=e(a["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function y V(n){const e=[];return ZC(n,t=>{t.filter&&(t.filter= $ C(t.filter))}),l O(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:a})=>{jv(i)||(typeof i=="object"&&!Array.isArray(i)?(a(rO (i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&a(W L(i)))}),n}function v V(n){return JSON.parse(C V(JSON.stringify(n)))}function C V(n){return n.replace(/"hsla? \( (.+?) \) "/gi,(e,t)=>{const i=t.match(/^(.+?) \s *, \s *(.+?) \s *, \s *(.+?)(?: \s *, \s *(.+))? $ /i);if(i){let[r,a,l,o]=i.slice(1);return[a,l]=[a,l].map(m=>m.endsWith("%")?m: ` $ { parseFloat ( m ) * 100 } % ` ), ` "hsl${typeof o==" string "?" a ":" "}(${[r,a,l,o].filter(Boolean).join(" , ")})" ` }return e})}function _ V(n){let e=!1;if(n.version===7&&(n=g V(n),e=!0),n.version===8&&(e=!!y V(n),e=!0),l O(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(v V(t))}),!e)throw new Error( ` Cannot migrate from $ { n . version } ` );return n}const M f=Ua,b V={StyleExpression:N L,StylePropertyFunction:i2 ,ZoomConstantExpression:w 6,ZoomDependentExpression:E 6,createExpression:t2 ,createPropertyExpression:n2 ,isExpression:jv,isExpressionFilter:c b,isZoomExpression:U H,normalizePropertyExpression:L H},x V={convertFunction:rO ,createFunction:iO ,isFunction:N v};var O x={exports:{}};/**
$ { o } ` )}return C}(n,"",0)}function bI (n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function A V(n,e=2){return n=bI (n,Ua. $ root),n.layers&&(n.layers=n.layers.map(t=>bI (t,Ua.layer))),l V(n,{indent:e})}function S 4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function xI (n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function M 6(n,e){return typeof e=="string"&&e[0]==="@"?M 6(n,n.constants[e]):e}function u V(n){return Array.isArray(n.stops)}function fC(n,e,t){n[t]=n[e],delete n[e]}function c V(n){n.version=8,Y H(n,r=>{r.type==="video"&&r.url!==void 0&&fC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(a=>a.reverse())}),ZC(n,r=>{S 4(r,a=>{a["symbol-min-distance"]!==void 0&&fC(a,"symbol-min-distance","symbol-spacing")}),xI (r,a=>{a["background-image"]!==void 0&&fC(a,"background-image","background-pattern"),a["line-image"]!==void 0&&fC(a,"line-image","line-pattern"),a["fill-image"]!==void 0&&fC(a,"fill-image","fill-pattern")})}),n O(n,{paint:!0,layout:!0},r=>{const a=M 6(n,r.value);u V(a)&&a.stops.forEach(l=>{l[1]=M 6(n,l[1])}),r.set(a)}),delete n.constants,ZC(n,r=>{S 4(r,a=>{delete a["text-max-size"],delete a["icon-max-size"]}),xI (r,a=>{a["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=a["text-size"],delete a["text-size"]),a["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=a["icon-size"],delete a["icon-size"])})});function e(r){function a(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return a(r);if(typeof r=="object")return r.stops.forEach(l=>{l[1]=a(l[1])}),r;throw new Error("unexpected font value")}ZC(n,r=>{S 4(r,a=>{a["text-font"]&&(a["text-font"]=e(a["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function h V(n){const e=[];return ZC(n,t=>{t.filter&&(t.filter= $ C(t.filter))}),n O(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:a})=>{jv(i)||(typeof i=="object"&&!Array.isArray(i)?(a(XB (i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&a(L L(i)))}),n}function d V(n){return JSON.parse(f V(JSON.stringify(n)))}function f V(n){return n.replace(/"hsla? \( (.+?) \) "/gi,(e,t)=>{const i=t.match(/^(.+?) \s *, \s *(.+?) \s *, \s *(.+?)(?: \s *, \s *(.+))? $ /i);if(i){let[r,a,l,o]=i.slice(1);return[a,l]=[a,l].map(m=>m.endsWith("%")?m: ` $ { parseFloat ( m ) * 100 } % ` ), ` "hsl${typeof o==" string "?" a ":" "}(${[r,a,l,o].filter(Boolean).join(" , ")})" ` }return e})}function m V(n){let e=!1;if(n.version===7&&(n=c V(n),e=!0),n.version===8&&(e=!!h V(n),e=!0),n O(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(d V(t))}),!e)throw new Error( ` Cannot migrate from $ { n . version } ` );return n}const x f=Ua,p V={StyleExpression:K L,StylePropertyFunction:Z3 ,ZoomConstantExpression:C 6,ZoomDependentExpression:_ 6,createExpression:V3 ,createPropertyExpression: $ 3 ,isExpression:jv,isExpressionFilter:o b,isZoomExpression:T H,normalizePropertyExpression:k H},g V={convertFunction:XB ,createFunction:ZB ,isFunction:G v};var x x={exports:{}};/**
* MapLibre GL JS
* @ license 3 - Clause BSD . Full text of license : https : //github.com/maplibre/maplibre-gl-js/blob/v5.7.1/LICENSE.txt
* / v a r M V = O x . e x p o r t s , I 9 ; f u n c t i o n S V ( ) { r e t u r n I 9 | | ( I 9 = 1 , f u n c t i o n ( n , e ) { ( f u n c t i o n ( t , i ) { n . e x p o r t s = i ( ) } ) ( M V , f u n c t i o n ( ) { v a r t = { } , i = { } ; f u n c t i o n r ( l , o , m ) { i f ( i [ l ] = m , l = = = " i n d e x " ) { v a r C = " v a r s h a r e d M o d u l e = { } ; ( " + i . s h a r e d + " ) ( s h a r e d M o d u l e ) ; ( " + i . w o r k e r + " ) ( s h a r e d M o d u l e ) ; " , S = { } ; r e t u r n i . s h a r e d ( S ) , i . i n d e x ( t , S ) , t y p e o f w i n d o w < " u " & & t . s e t W o r k e r U r l ( w i n d o w . U R L . c r e a t e O b j e c t U R L ( n e w B l o b ( [ C ] , { t y p e : " t e x t / j a v a s c r i p t " } ) ) ) , t } } r ( " s h a r e d " , [ " e x p o r t s " ] , f u n c t i o n ( l ) { f u n c t i o n o ( h , A , c , y ) { r e t u r n n e w ( c | | ( c = P r o m i s e ) ) ( f u n c t i o n ( M , R ) { f u n c t i o n P ( i e ) { t r y { H ( y . n e x t ( i e ) ) } c a t c h ( A e ) { R ( A e ) } } f u n c t i o n N ( i e ) { t r y { H ( y . t h r o w ( i e ) ) } c a t c h ( A e ) { R ( A e ) } } f u n c t i o n H ( i e ) { v a r A e ; i e . d o n e ? M ( i e . v a l u e ) : ( A e = i e . v a l u e , A e i n s t a n c e o f c ? A e : n e w c ( f u n c t i o n ( v e ) { v e ( A e ) } ) ) . t h e n ( P , N ) } H ( ( y = y . a p p l y ( h , A | | [ ] ) ) . n e x t ( ) ) } ) } f u n c t i o n m ( h , A ) { t h i s . x = h , t h i s . y = A } f u n c t i o n C ( h ) { r e t u r n h & & h . _ _ e s M o d u l e & & 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 ( h , " d e f a u l t " ) ? h . d e f a u l t : h } v a r S , O ; t y p e o f S u p p r e s s e d E r r o r = = " f u n c t i o n " & & S u p p r e s s e d E r r o r , m . p r o t o t y p e = { c l o n e ( ) { r e t u r n n e w m ( t h i s . x , t h i s . y ) } , a d d ( h ) { r e t u r n t h i s . c l o n e ( ) . _ a d d ( h ) } , s u b ( h ) { r e t u r n t h i s . c l o n e ( ) . _ s u b ( h ) } , m u l t B y P o i n t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ m u l t B y P o i n t ( h ) } , d i v B y P o i n t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ d i v B y P o i n t ( h ) } , m u l t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ m u l t ( h ) } , d i v ( h ) { r e t u r n t h i s . c l o n e ( ) . _ d i v ( h ) } , r o t a t e ( h ) { r e t u r n t h i s . c l o n e ( ) . _ r o t a t e ( h ) } , r o t a t e A r o u n d ( h , A ) { r e t u r n t h i s . c l o n e ( ) . _ r o t a t e A r o u n d ( h , A ) } , m a t M u l t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ m a t M u l t ( h ) } , u n i t ( ) { r e t u r n t h i s . c l o n e ( ) . _ u n i t ( ) } , p e r p ( ) { r e t u r n t h i s . c l o n e ( ) . _ p e r p ( ) } , r o u n d ( ) { r e t u r n t h i s . c l o n e ( ) . _ r o u n d ( ) } , m a g ( ) { r e t u r n M a t h . s q r t ( t h i s . x * t h i s . x + t h i s . y * t h i s . y ) } , e q u a l s ( h ) { r e t u r n t h i s . x = = = h . x & & t h i s . y = = = h . y } , d i s t ( h ) { r e t u r n M a t h . s q r t ( t h i s . d i s t S q r ( h ) ) } , d i s t S q r ( h ) { c o n s t A = h . x - t h i s . x , c = h . y - t h i s . y ; r e t u r n A * A + c * c } , a n g l e ( ) { r e t u r n M a t h . a t a n 2 ( t h i s . y , t h i s . x ) } , a n g l e T o ( h ) { r e t u r n M a t h . a t a n 2 ( t h i s . y - h . y , t h i s . x - h . x ) } , a n g l e W i t h ( h ) { r e t u r n t h i s . a n g l e W i t h S e p ( h . x , h . y ) } , a n g l e W i t h S e p ( h , A ) { r e t u r n M a t h . a t a n 2 ( t h i s . x * A - t h i s . y * h , t h i s . x * h + t h i s . y * A ) } , _ m a t M u l t ( h ) { c o n s t A = h [ 2 ] * t h i s . x + h [ 3 ] * t h i s . y ; r e t u r n t h i s . x = h [ 0 ] * t h i s . x + h [ 1 ] * t h i s . y , t h i s . y = A , t h i s } , _ a d d ( h ) { r e t u r n t h i s . x + = h . x , t h i s . y + = h . y , t h i s } , _ s u b ( h ) { r e t u r n t h i s . x - = h . x , t h i s . y - = h . y , t h i s } , _ m u l t ( h ) { r e t u r n t h i s . x * = h , t h i s . y * = h , t h i s } , _ d i v ( h ) { r e t u r n t h i s . x / = h , t h i s . y / = h , t h i s } , _ m u l t B y P o i n t ( h ) { r e t u r n t h i s . x * = h . x , t h i s . y * = h . y , t h i s } , _ d i v B y P o i n t ( h ) { r e t u r n t h i s . x / = h . x , t h i s . y / = h . y , t h i s } , _ u n i t ( ) { r e t u r n t h i s . _ d i v ( t h i s . m a g ( ) ) , t h i s } , _ p e r p ( ) { c o n s t h = t h i s . y ; r e t u r n t h i s . y = t h i s . x , t h i s . x = - h , t h i s } , _ r o t a t e ( h ) { c o n s t A = M a t h . c o s ( h ) , c = M a t h . s i n ( h ) , y = c * t h i s . x + A * t h i s . y ; r e t u r n t h i s . x = A * t h i s . x - c * t h i s . y , t h i s . y = y , t h i s } , _ r o t a t e A r o u n d ( h , A ) { c o n s t c = M a t h . c o s ( h ) , y = M a t h . s i n ( h ) , M = A . y + y * ( t h i s . x - A . x ) + c * ( t h i s . y - A . y ) ; r e t u r n t h i s . x = A . x + c * ( t h i s . x - A . x ) - y * ( t h i s . y - A . y ) , t h i s . y = M , t h i s } , _ r o u n d ( ) { r e t u r n t h i s . x = M a t h . r o u n d ( t h i s . x ) , t h i s . y = M a t h . r o u n d ( t h i s . y ) , t h i s } , c o n s t r u c t o r : m } , m . c o n v e r t = f u n c t i o n ( h ) { i f ( h i n s t a n c e o f m ) r e t u r n h ; i f ( A r r a y . i s A r r a y ( h ) ) r e t u r n n e w m ( + h [ 0 ] , + h [ 1 ] ) ; i f ( h . x ! = = v o i d 0 & & h . y ! = = v o i d 0 ) r e t u r n n e w m ( + h . x , + h . y ) ; t h r o w n e w E r r o r ( " E x p e c t e d [ x , y ] o r { x , y } p o i n t f o r m a t " ) } ; v a r U = f u n c t i o n ( ) { i f ( O ) r e t u r n S ; f u n c t i o n h ( A , c , y , M ) { t h i s . c x = 3 * A , t h i s . b x = 3 * ( y - A ) - t h i s . c x , t h i s . a x = 1 - t h i s . c x - t h i s . b x , t h i s . c y = 3 * c , t h i s . b y = 3 * ( M - c ) - t h i s . c y , t h i s . a y = 1 - t h i s . c y - t h i s . b y , t h i s . p 1 x = A , t h i s . p 1 y = c , t h i s . p 2 x = y , t h i s . p 2 y = M } r e t u r n O = 1 , S = h , h . p r o t o t y p e = { s a m p l e C u r v e X : f u n c t i o n ( A ) { r e t u r n ( ( t h i s . a x * A + t h i s . b x ) * A + t h i s . c x ) * A } , s a m p l e C u r v e Y : f u n c t i o n ( A ) { r e t u r n ( ( t h i s . a y * A + t h i s . b y ) * A + t h i s . c y ) * A } , s a m p l e C u r v e D e r i v a t i v e X : f u n c t i o n ( A ) { r e t u r n ( 3 * t h i s . a x * A + 2 * t h i s . b x ) * A + t h i s . c x } , s o l v e C u r v e X : f u n c t i o n ( A , c ) { i f ( c = = = v o i d 0 & & ( c = 1 e - 6 ) , A < 0 ) r e t u r n 0 ; i f ( A > 1 ) r e t u r n 1 ; f o r ( v a r y = A , M = 0 ; M < 8 ; M + + ) { v a r R = t h i s . s a m p l e C u r v e X ( y ) - A ; i f ( M a t h . a b s ( R ) < c ) r e t u r n y ; v a r P = t h i s . s a m p l e C u r v e D e r i v a t i v e X ( y ) ; i f ( M a t h . a b s ( P ) < 1 e - 6 ) b r e a k ; y - = R / P } v a r N = 0 , H = 1 ; f o r ( y = A , M = 0 ; M < 2 0 & & ( R = t h i s . s a m p l e C u r v e X ( y ) , ! ( M a t h . a b s ( R - A ) < c ) ) ; M + + ) A > R ? N = y : H = y , y = . 5 * ( H - N ) + N ; r e t u r n y } , s o l v e : f u n c t i o n ( A , c ) { r e t u r n t h i s . s a m p l e C u r v e Y ( t h i s . s o l v e C u r v e X ( A , c ) ) } } , S } ( ) , K = C ( U ) ; l e t z , j ; f u n c t i o n Q ( ) { r e t u r n z = = n u l l & & ( z = t y p e o f O f f s c r e e n C a n v a s < " u " & & n e w O f f s c r e e n C a n v a s ( 1 , 1 ) . g e t C o n t e x t ( " 2 d " ) & & t y p e o f c r e a t e I m a g e B i t m a p = = " f u n c t i o n " ) , z } f u n c t i o n e e ( ) { i f ( j = = n u l l & & ( j = ! 1 , Q ( ) ) ) { c o n s t A = n e w O f f s c r e e n C a n v a s ( 5 , 5 ) . g e t C o n t e x t ( " 2 d " , { w i l l R e a d F r e q u e n t l y : ! 0 } ) ; i f ( A ) { f o r ( l e t y = 0 ; y < 5 * 5 ; y + + ) { c o n s t M = 4 * y ; A . f i l l S t y l e = ` r g b ( $ { M } , $ { M + 1 } , $ { M + 2 } ) ` , A . f i l l R e c t ( y % 5 , M a t h . f l o o r ( y / 5 ) , 1 , 1 ) } c o n s t c = A . g e t I m a g e D a t a ( 0 , 0 , 5 , 5 ) . d a t a ; f o r ( l e t y = 0 ; y < 5 * 5 * 4 ; y + + ) i f ( y % 4 ! = 3 & & c [ y ] ! = = y ) { j = ! 0 ; b r e a k } } } r e t u r n j | | ! 1 } v a r V = 1 e - 6 , a e = t y p e o f F l o a t 3 2 A r r a y < " u " ? F l o a t 3 2 A r r a y : A r r a y ; f u n c t i o n n e ( ) { v a r h = n e w a e ( 9 ) ; r e t u r n a e ! = F l o a t 3 2 A r r a y & & ( h [ 1 ] = 0 , h [ 2 ] = 0 , h [ 3 ] = 0 , h [ 5 ] = 0 , h [ 6 ] = 0 , h [ 7 ] = 0 ) , h [ 0 ] = 1 , h [ 4 ] = 1 , h [ 8 ] = 1 , h } f u n c t i o n Z ( h ) { r e t u r n h [ 0 ] = 1 , h [ 1 ] = 0 , h [ 2 ] = 0 , h [ 3 ] = 0 , h [ 4 ] = 0 , h [ 5 ] = 1 , h [ 6 ] = 0 , h [ 7 ] = 0 , h [ 8 ] = 0 , h [ 9 ] = 0 , h [ 1 0 ] = 1 , h [ 1 1 ] = 0 , h [ 1 2 ] = 0 , h [ 1 3 ] = 0 , h [ 1 4 ] = 0 , h [ 1 5 ] = 1 , h } f u n c t i o n o e ( ) { v a r h = n e w a e ( 3 ) ; r e t u r n a e ! = F l o a t 3 2 A r r a y & & ( h [ 0 ] = 0 , h [ 1 ] = 0 , h [ 2 ] = 0 ) , h } f u n c t i o n W ( h ) { v a r A = h [ 0 ] , c = h [ 1 ] , y = h [ 2 ] ; r e t u r n M a t h . s q r t ( A * A + c * c + y * y ) } f u n c t i o n c e ( h , A , c ) { v a r y = n e w a e ( 3 ) ; r e t u r n y [ 0 ] = h , y [ 1 ] = A , y [ 2 ] = c , y } f u n c t i o n g e ( h , A , c ) { r e t u r n h [ 0 ] = A [ 0 ] + c [ 0 ] , h [ 1 ] = A [ 1 ] + c [ 1 ] , h [ 2 ] = A [ 2 ] + c [ 2 ] , h } f u n c t i o n y e ( h , A , c ) { r e t u r n h [ 0 ] = A [ 0 ] * c , h [ 1 ] = A [ 1 ] * c , h [ 2 ] = A [ 2 ] * c , h } f u n c t i o n M e ( h , A , Line truncated
Use an identity property function instead : \ ` { "type": "identity", "property": ${ JSON . stringify ( ve [ 1 ] ) } } \` . ` ) ] ; const Ke = [ ] ; return h . layerType === "symbol" && ( N === "text-field" && M && ! M . glyphs && Ke . push ( new Sn ( c , P , 'use of "text-field" requires a style "glyphs" property' ) ) , N === "text-font" && sc ( il ( P ) ) && ms ( P . type ) === "identity" && Ke . push ( new Sn ( c , P , '"text-font" does not support identity functions' ) ) ) , Ke . concat ( y ( { key : h . key , value : P , valueSpec : Ae , style : M , styleSpec : R , expressionContext : "property" , propertyType : A , propertyKey : N } ) ) } function ps ( h ) { return gr ( h , "paint" ) } function Jc ( h ) { return gr ( h , "layout" ) } function Sh ( h ) { let A = [ ] ; const c = h . value , y = h . key , M = h . style , R = h . styleSpec ; if ( Tr ( c ) !== "object" ) return [ new Sn ( y , c , ` object expected, ${ Tr ( c ) } found ` ) ] ; c . type || c . ref || A . push ( new Sn ( y , c , 'either "type" or "ref" is required' ) ) ; let P = ms ( c . type ) ; const N = ms ( c . ref ) ; if ( c . id ) { const H = ms ( c . id ) ; for ( let ie = 0 ; ie < h . arrayIndex ; ie ++ ) { const Ae = M . layers [ ie ] ; ms ( Ae . id ) === H && A . push ( new Sn ( y , c . id , ` duplicate layer id " ${ c . id } ", previously used at line ${ Ae . id . _ _line _ _ } ` ) ) } } if ( "ref" in c ) { let H ; [ "type" , "source" , "source-layer" , "filter" , "layout" ] . forEach ( ie => { ie in c && A . push ( new Sn ( y , c [ ie ] , ` " ${ ie } " is prohibited for ref layers ` ) ) } ) , M . layers . forEach ( ie => { ms ( ie . id ) === N && ( H = ie ) } ) , H ? H . ref ? A . push ( new Sn ( y , c . ref , "ref cannot reference another ref layer" ) ) : P = ms ( H . type ) : A . push ( new Sn ( y , c . ref , ` ref layer " ${ N } " not found ` ) ) } else if ( P !== "background" ) if ( c . source ) { const H = M . sources && M . sources [ c . source ] , ie = H && ms ( H . type ) ; H ? ie === "vector" && P === "raster" ? A . push ( new Sn ( y , c . source , ` layer " ${ c . id } " requires a raster source ` ) ) : ie !== "raster-dem" && P === "hillshade" || ie !== "raster-dem" && P === "color-relief" ? A . push ( new Sn ( y , c . source , ` layer " ${ c . id } " requires a raster-dem source ` ) ) : ie === "raster" && P !== "raster" ? A . push ( new Sn ( y , c . source , ` layer " ${ c . id } " requires a vector source ` ) ) : ie !== "vector" || c [ "source-layer" ] ? ie === "raster-dem" && P !== "hillshade" && P !== "color-relief" ? A . push ( new Sn ( y , c . source , "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'." ) ) : P !== "line" || ! c . paint || ! c . paint [ "line-gradient" ] || ie === "geojson" && H . lineMetrics || A . push ( new Sn ( y , c , ` layer " ${ c . id } " specifies a line-gradient, which requires a GeoJSON source with \` lineMetrics \` enabled. ` ) ) : A . push ( new Sn ( y , c , ` layer " ${ c . id } " must specify a "source-layer" ` ) ) : A . push ( new Sn ( y , c . source , ` source " ${ c . source } " not found ` ) ) } else A . push ( new Sn ( y , c , 'missing required property "source"' ) ) ; return A = A . concat ( Fs ( { key : y , value : c , valueSpec : R . layer , style : h . style , styleSpec : h . styleSpec , validateSpec : h . validateSpec , objectElementValidators : { "*" : ( ) => [ ] , type : ( ) => h . validateSpec ( { key : ` ${ y } .type ` , value : c . type , valueSpec : R . layer . type , style : h . style , styleSpec : h . styleSpec , validateSpec : h . validateSpec , object : c , objectKey : "type" } ) , filter : Na , layout : H => Fs ( { layer : c , key : H . key , value : H . value , style : H . style , styleSpec : H . styleSpec , validateSpec : H . validateSpec , objectElementValidators : { "*" : ie => Jc ( lo ( { layerType : P } , ie ) ) } } ) , paint : H => Fs ( { layer : c , key : H . key , value : H . value , style : H . style , styleSpec : H . styleSpec , validateSpec : H . validateSpec , objectElementValidators : { "*" : ie => ps ( lo ( { layerType : P } , ie ) ) } } ) } } ) ) , A } function Ro ( h ) { const A = h . value , c = h . key , y = Tr ( A ) ; return y !== "string" ? [ new Sn ( c , A , ` string expected, ${ y } found ` ) ] : [ ] } const eh = { promoteId : function ( { key : h , value : A } ) { if ( Tr ( A ) === "string" ) return Ro ( { key : h , value : A } ) ; { const c = [ ] ; for ( const y in A ) c . push ( ... Ro ( { key : ` ${ h } . ${ y } ` , value : A [ y ] } ) ) ; return c } } } ; function TA ( h ) { const A = h . value , c = h . key , y = h . styleSpec , M = h . style , R = h . validateSpec ; if ( ! A . type ) return [ new Sn ( c , A , '"type" is required' ) ] ; const P = ms ( A . type ) ; let N ; switch ( P ) { case "vector" : case "raster" : return N = Fs ( { key : c , value : A , valueSpec : y [ ` source_ ${ P . replace ( "-" , "_" ) } ` ] , style : h . style , styleSpec : y , objectElementValidators : eh , validateSpec : R } ) , N ; case "raster-dem" : return N = function ( H ) { var ie ; const Ae = ( ie = H . sourceName ) !== null && ie !== void 0 ? ie : "" , ve = H . value , Ke = H . styleSpec , Qe = Ke . source _raster _dem , Ve = H . style ; let et = [ ] ; const ut = Tr ( ve ) ; if ( ve === void 0 ) return et ; if ( ut !== "object" ) return et . push ( new Sn ( "source_raster_dem" , ve , ` object expected, ${ ut } found ` ) ) , et ; const Mt = ms ( ve . encoding ) === "custom" , Qt = [ "redFactor" , "greenFactor" , "blueFactor" , "baseShift" ] , Dt = H . value . encoding ? ` " ${ H . value . encoding } " ` : "Default" ; for ( const zt in ve ) ! Mt && Qt . includes ( zt ) ? et . push ( new Sn ( zt , ve [ zt ] , ` In " ${ Ae } ": " ${ zt } " is only valid when "encoding" is set to "custom". ${ Dt } encoding found ` ) ) : Qe [ zt ] ? et = et . concat ( H . validateSpec ( { key : zt , value : ve [ zt ] , valueSpec : Qe [ zt ] , validateSpec : H . validateSpec , style : Ve , styleSpec : Ke } ) ) : et . push ( new Sn ( zt , ve [ zt ] , ` unknown property " ${ zt } " ` ) ) ; return et } ( { sourceName : c , value : A , style : h . style , styleSpec : y , validateSpec : R } ) , N ; case "geojson" : if ( N = Fs ( { key : c , value : A , valueSpec : y . source _geojson , style : M , styleSpec : y , validateSpec : R , objectElementValidators : eh } ) , A . cluster ) for ( const H in A . clusterProperties ) { const [ ie , Ae ] = A . clusterProperties [ H ] , ve = typeof ie == "string" ? [ ie , [ "accumulated" ] , [ "get" , H ] ] : ie ; N . push ( ... eu ( { key : ` ${ c } . ${ H } .map ` , value : Ae , expressionContext : "cluster-map" } ) ) , N . push ( ... eu ( { key : ` ${ c } . ${ H } .reduce ` , value : ve , expressionC Line truncated
* / v a r y V = x x . e x p o r t s , M I ; f u n c t i o n v V ( ) { r e t u r n M I | | ( M I = 1 , f u n c t i o n ( n , e ) { ( f u n c t i o n ( t , i ) { n . e x p o r t s = i ( ) } ) ( y V , f u n c t i o n ( ) { v a r t = { } , i = { } ; f u n c t i o n r ( l , o , m ) { i f ( i [ l ] = m , l = = = " i n d e x " ) { v a r C = " v a r s h a r e d M o d u l e = { } ; ( " + i . s h a r e d + " ) ( s h a r e d M o d u l e ) ; ( " + i . w o r k e r + " ) ( s h a r e d M o d u l e ) ; " , S = { } ; r e t u r n i . s h a r e d ( S ) , i . i n d e x ( t , S ) , t y p e o f w i n d o w < " u " & & t . s e t W o r k e r U r l ( w i n d o w . U R L . c r e a t e O b j e c t U R L ( n e w B l o b ( [ C ] , { t y p e : " t e x t / j a v a s c r i p t " } ) ) ) , t } } r ( " s h a r e d " , [ " e x p o r t s " ] , f u n c t i o n ( l ) { f u n c t i o n o ( h , A , c , y ) { r e t u r n n e w ( c | | ( c = P r o m i s e ) ) ( f u n c t i o n ( M , R ) { f u n c t i o n P ( i e ) { t r y { H ( y . n e x t ( i e ) ) } c a t c h ( A e ) { R ( A e ) } } f u n c t i o n G ( i e ) { t r y { H ( y . t h r o w ( i e ) ) } c a t c h ( A e ) { R ( A e ) } } f u n c t i o n H ( i e ) { v a r A e ; i e . d o n e ? M ( i e . v a l u e ) : ( A e = i e . v a l u e , A e i n s t a n c e o f c ? A e : n e w c ( f u n c t i o n ( v e ) { v e ( A e ) } ) ) . t h e n ( P , G ) } H ( ( y = y . a p p l y ( h , A | | [ ] ) ) . n e x t ( ) ) } ) } f u n c t i o n m ( h , A ) { t h i s . x = h , t h i s . y = A } f u n c t i o n C ( h ) { r e t u r n h & & h . _ _ e s M o d u l e & & 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 ( h , " d e f a u l t " ) ? h . d e f a u l t : h } v a r S , O ; t y p e o f S u p p r e s s e d E r r o r = = " f u n c t i o n " & & S u p p r e s s e d E r r o r , m . p r o t o t y p e = { c l o n e ( ) { r e t u r n n e w m ( t h i s . x , t h i s . y ) } , a d d ( h ) { r e t u r n t h i s . c l o n e ( ) . _ a d d ( h ) } , s u b ( h ) { r e t u r n t h i s . c l o n e ( ) . _ s u b ( h ) } , m u l t B y P o i n t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ m u l t B y P o i n t ( h ) } , d i v B y P o i n t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ d i v B y P o i n t ( h ) } , m u l t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ m u l t ( h ) } , d i v ( h ) { r e t u r n t h i s . c l o n e ( ) . _ d i v ( h ) } , r o t a t e ( h ) { r e t u r n t h i s . c l o n e ( ) . _ r o t a t e ( h ) } , r o t a t e A r o u n d ( h , A ) { r e t u r n t h i s . c l o n e ( ) . _ r o t a t e A r o u n d ( h , A ) } , m a t M u l t ( h ) { r e t u r n t h i s . c l o n e ( ) . _ m a t M u l t ( h ) } , u n i t ( ) { r e t u r n t h i s . c l o n e ( ) . _ u n i t ( ) } , p e r p ( ) { r e t u r n t h i s . c l o n e ( ) . _ p e r p ( ) } , r o u n d ( ) { r e t u r n t h i s . c l o n e ( ) . _ r o u n d ( ) } , m a g ( ) { r e t u r n M a t h . s q r t ( t h i s . x * t h i s . x + t h i s . y * t h i s . y ) } , e q u a l s ( h ) { r e t u r n t h i s . x = = = h . x & & t h i s . y = = = h . y } , d i s t ( h ) { r e t u r n M a t h . s q r t ( t h i s . d i s t S q r ( h ) ) } , d i s t S q r ( h ) { c o n s t A = h . x - t h i s . x , c = h . y - t h i s . y ; r e t u r n A * A + c * c } , a n g l e ( ) { r e t u r n M a t h . a t a n 2 ( t h i s . y , t h i s . x ) } , a n g l e T o ( h ) { r e t u r n M a t h . a t a n 2 ( t h i s . y - h . y , t h i s . x - h . x ) } , a n g l e W i t h ( h ) { r e t u r n t h i s . a n g l e W i t h S e p ( h . x , h . y ) } , a n g l e W i t h S e p ( h , A ) { r e t u r n M a t h . a t a n 2 ( t h i s . x * A - t h i s . y * h , t h i s . x * h + t h i s . y * A ) } , _ m a t M u l t ( h ) { c o n s t A = h [ 2 ] * t h i s . x + h [ 3 ] * t h i s . y ; r e t u r n t h i s . x = h [ 0 ] * t h i s . x + h [ 1 ] * t h i s . y , t h i s . y = A , t h i s } , _ a d d ( h ) { r e t u r n t h i s . x + = h . x , t h i s . y + = h . y , t h i s } , _ s u b ( h ) { r e t u r n t h i s . x - = h . x , t h i s . y - = h . y , t h i s } , _ m u l t ( h ) { r e t u r n t h i s . x * = h , t h i s . y * = h , t h i s } , _ d i v ( h ) { r e t u r n t h i s . x / = h , t h i s . y / = h , t h i s } , _ m u l t B y P o i n t ( h ) { r e t u r n t h i s . x * = h . x , t h i s . y * = h . y , t h i s } , _ d i v B y P o i n t ( h ) { r e t u r n t h i s . x / = h . x , t h i s . y / = h . y , t h i s } , _ u n i t ( ) { r e t u r n t h i s . _ d i v ( t h i s . m a g ( ) ) , t h i s } , _ p e r p ( ) { c o n s t h = t h i s . y ; r e t u r n t h i s . y = t h i s . x , t h i s . x = - h , t h i s } , _ r o t a t e ( h ) { c o n s t A = M a t h . c o s ( h ) , c = M a t h . s i n ( h ) , y = c * t h i s . x + A * t h i s . y ; r e t u r n t h i s . x = A * t h i s . x - c * t h i s . y , t h i s . y = y , t h i s } , _ r o t a t e A r o u n d ( h , A ) { c o n s t c = M a t h . c o s ( h ) , y = M a t h . s i n ( h ) , M = A . y + y * ( t h i s . x - A . x ) + c * ( t h i s . y - A . y ) ; r e t u r n t h i s . x = A . x + c * ( t h i s . x - A . x ) - y * ( t h i s . y - A . y ) , t h i s . y = M , t h i s } , _ r o u n d ( ) { r e t u r n t h i s . x = M a t h . r o u n d ( t h i s . x ) , t h i s . y = M a t h . r o u n d ( t h i s . y ) , t h i s } , c o n s t r u c t o r : m } , m . c o n v e r t = f u n c t i o n ( h ) { i f ( h i n s t a n c e o f m ) r e t u r n h ; i f ( A r r a y . i s A r r a y ( h ) ) r e t u r n n e w m ( + h [ 0 ] , + h [ 1 ] ) ; i f ( h . x ! = = v o i d 0 & & h . y ! = = v o i d 0 ) r e t u r n n e w m ( + h . x , + h . y ) ; t h r o w n e w E r r o r ( " E x p e c t e d [ x , y ] o r { x , y } p o i n t f o r m a t " ) } ; v a r U = f u n c t i o n ( ) { i f ( O ) r e t u r n S ; f u n c t i o n h ( A , c , y , M ) { t h i s . c x = 3 * A , t h i s . b x = 3 * ( y - A ) - t h i s . c x , t h i s . a x = 1 - t h i s . c x - t h i s . b x , t h i s . c y = 3 * c , t h i s . b y = 3 * ( M - c ) - t h i s . c y , t h i s . a y = 1 - t h i s . c y - t h i s . b y , t h i s . p 1 x = A , t h i s . p 1 y = c , t h i s . p 2 x = y , t h i s . p 2 y = M } r e t u r n O = 1 , S = h , h . p r o t o t y p e = { s a m p l e C u r v e X : f u n c t i o n ( A ) { r e t u r n ( ( t h i s . a x * A + t h i s . b x ) * A + t h i s . c x ) * A } , s a m p l e C u r v e Y : f u n c t i o n ( A ) { r e t u r n ( ( t h i s . a y * A + t h i s . b y ) * A + t h i s . c y ) * A } , s a m p l e C u r v e D e r i v a t i v e X : f u n c t i o n ( A ) { r e t u r n ( 3 * t h i s . a x * A + 2 * t h i s . b x ) * A + t h i s . c x } , s o l v e C u r v e X : f u n c t i o n ( A , c ) { i f ( c = = = v o i d 0 & & ( c = 1 e - 6 ) , A < 0 ) r e t u r n 0 ; i f ( A > 1 ) r e t u r n 1 ; f o r ( v a r y = A , M = 0 ; M < 8 ; M + + ) { v a r R = t h i s . s a m p l e C u r v e X ( y ) - A ; i f ( M a t h . a b s ( R ) < c ) r e t u r n y ; v a r P = t h i s . s a m p l e C u r v e D e r i v a t i v e X ( y ) ; i f ( M a t h . a b s ( P ) < 1 e - 6 ) b r e a k ; y - = R / P } v a r G = 0 , H = 1 ; f o r ( y = A , M = 0 ; M < 2 0 & & ( R = t h i s . s a m p l e C u r v e X ( y ) , ! ( M a t h . a b s ( R - A ) < c ) ) ; M + + ) A > R ? G = y : H = y , y = . 5 * ( H - G ) + G ; r e t u r n y } , s o l v e : f u n c t i o n ( A , c ) { r e t u r n t h i s . s a m p l e C u r v e Y ( t h i s . s o l v e C u r v e X ( A , c ) ) } } , S } ( ) , K = C ( U ) ; l e t z , j ; f u n c t i o n Q ( ) { r e t u r n z = = n u l l & & ( z = t y p e o f O f f s c r e e n C a n v a s < " u " & & n e w O f f s c r e e n C a n v a s ( 1 , 1 ) . g e t C o n t e x t ( " 2 d " ) & & t y p e o f c r e a t e I m a g e B i t m a p = = " f u n c t i o n " ) , z } f u n c t i o n e e ( ) { i f ( j = = n u l l & & ( j = ! 1 , Q ( ) ) ) { c o n s t A = n e w O f f s c r e e n C a n v a s ( 5 , 5 ) . g e t C o n t e x t ( " 2 d " , { w i l l R e a d F r e q u e n t l y : ! 0 } ) ; i f ( A ) { f o r ( l e t y = 0 ; y < 5 * 5 ; y + + ) { c o n s t M = 4 * y ; A . f i l l S t y l e = ` r g b ( $ { M } , $ { M + 1 } , $ { M + 2 } ) ` , A . f i l l R e c t ( y % 5 , M a t h . f l o o r ( y / 5 ) , 1 , 1 ) } c o n s t c = A . g e t I m a g e D a t a ( 0 , 0 , 5 , 5 ) . d a t a ; f o r ( l e t y = 0 ; y < 5 * 5 * 4 ; y + + ) i f ( y % 4 ! = 3 & & c [ y ] ! = = y ) { j = ! 0 ; b r e a k } } } r e t u r n j | | ! 1 } v a r V = 1 e - 6 , a e = t y p e o f F l o a t 3 2 A r r a y < " u " ? F l o a t 3 2 A r r a y : A r r a y ; f u n c t i o n n e ( ) { v a r h = n e w a e ( 9 ) ; r e t u r n a e ! = F l o a t 3 2 A r r a y & & ( h [ 1 ] = 0 , h [ 2 ] = 0 , h [ 3 ] = 0 , h [ 5 ] = 0 , h [ 6 ] = 0 , h [ 7 ] = 0 ) , h [ 0 ] = 1 , h [ 4 ] = 1 , h [ 8 ] = 1 , h } f u n c t i o n Z ( h ) { r e t u r n h [ 0 ] = 1 , h [ 1 ] = 0 , h [ 2 ] = 0 , h [ 3 ] = 0 , h [ 4 ] = 0 , h [ 5 ] = 1 , h [ 6 ] = 0 , h [ 7 ] = 0 , h [ 8 ] = 0 , h [ 9 ] = 0 , h [ 1 0 ] = 1 , h [ 1 1 ] = 0 , h [ 1 2 ] = 0 , h [ 1 3 ] = 0 , h [ 1 4 ] = 0 , h [ 1 5 ] = 1 , h } f u n c t i o n o e ( ) { v a r h = n e w a e ( 3 ) ; r e t u r n a e ! = F l o a t 3 2 A r r a y & & ( h [ 0 ] = 0 , h [ 1 ] = 0 , h [ 2 ] = 0 ) , h } f u n c t i o n W ( h ) { v a r A = h [ 0 ] , c = h [ 1 ] , y = h [ 2 ] ; r e t u r n M a t h . s q r t ( A * A + c * c + y * y ) } f u n c t i o n u e ( h , A , c ) { v a r y = n e w a e ( 3 ) ; r e t u r n y [ 0 ] = h , y [ 1 ] = A , y [ 2 ] = c , y } f u n c t i o n g e ( h , A , c ) { r e t u r n h [ 0 ] = A [ 0 ] + c [ 0 ] , h [ 1 ] = A [ 1 ] + c [ 1 ] , h [ 2 ] = A [ 2 ] + c [ 2 ] , h } f u n c t i o n y e ( h , A , c ) { r e t u r n h [ 0 ] = A [ 0 ] * c , h [ 1 ] = A [ 1 ] * c , h [ 2 ] = A [ 2 ] * c , h } f u n c t i o n M e ( h , A , Line truncated
Use an identity property function instead : \ ` { "type": "identity", "property": ${ JSON . stringify ( ve [ 1 ] ) } } \` . ` ) ] ; const Ke = [ ] ; return h . layerType === "symbol" && ( G === "text-field" && M && ! M . glyphs && Ke . push ( new Sn ( c , P , 'use of "text-field" requires a style "glyphs" property' ) ) , G === "text-font" && sc ( il ( P ) ) && ms ( P . type ) === "identity" && Ke . push ( new Sn ( c , P , '"text-font" does not support identity functions' ) ) ) , Ke . concat ( y ( { key : h . key , value : P , valueSpec : Ae , style : M , styleSpec : R , expressionContext : "property" , propertyType : A , propertyKey : G } ) ) } function ps ( h ) { return gr ( h , "paint" ) } function Jc ( h ) { return gr ( h , "layout" ) } function Sh ( h ) { let A = [ ] ; const c = h . value , y = h . key , M = h . style , R = h . styleSpec ; if ( Tr ( c ) !== "object" ) return [ new Sn ( y , c , ` object expected, ${ Tr ( c ) } found ` ) ] ; c . type || c . ref || A . push ( new Sn ( y , c , 'either "type" or "ref" is required' ) ) ; let P = ms ( c . type ) ; const G = ms ( c . ref ) ; if ( c . id ) { const H = ms ( c . id ) ; for ( let ie = 0 ; ie < h . arrayIndex ; ie ++ ) { const Ae = M . layers [ ie ] ; ms ( Ae . id ) === H && A . push ( new Sn ( y , c . id , ` duplicate layer id " ${ c . id } ", previously used at line ${ Ae . id . _ _line _ _ } ` ) ) } } if ( "ref" in c ) { let H ; [ "type" , "source" , "source-layer" , "filter" , "layout" ] . forEach ( ie => { ie in c && A . push ( new Sn ( y , c [ ie ] , ` " ${ ie } " is prohibited for ref layers ` ) ) } ) , M . layers . forEach ( ie => { ms ( ie . id ) === G && ( H = ie ) } ) , H ? H . ref ? A . push ( new Sn ( y , c . ref , "ref cannot reference another ref layer" ) ) : P = ms ( H . type ) : A . push ( new Sn ( y , c . ref , ` ref layer " ${ G } " not found ` ) ) } else if ( P !== "background" ) if ( c . source ) { const H = M . sources && M . sources [ c . source ] , ie = H && ms ( H . type ) ; H ? ie === "vector" && P === "raster" ? A . push ( new Sn ( y , c . source , ` layer " ${ c . id } " requires a raster source ` ) ) : ie !== "raster-dem" && P === "hillshade" || ie !== "raster-dem" && P === "color-relief" ? A . push ( new Sn ( y , c . source , ` layer " ${ c . id } " requires a raster-dem source ` ) ) : ie === "raster" && P !== "raster" ? A . push ( new Sn ( y , c . source , ` layer " ${ c . id } " requires a vector source ` ) ) : ie !== "vector" || c [ "source-layer" ] ? ie === "raster-dem" && P !== "hillshade" && P !== "color-relief" ? A . push ( new Sn ( y , c . source , "raster-dem source can only be used with layer type 'hillshade' or 'color-relief'." ) ) : P !== "line" || ! c . paint || ! c . paint [ "line-gradient" ] || ie === "geojson" && H . lineMetrics || A . push ( new Sn ( y , c , ` layer " ${ c . id } " specifies a line-gradient, which requires a GeoJSON source with \` lineMetrics \` enabled. ` ) ) : A . push ( new Sn ( y , c , ` layer " ${ c . id } " must specify a "source-layer" ` ) ) : A . push ( new Sn ( y , c . source , ` source " ${ c . source } " not found ` ) ) } else A . push ( new Sn ( y , c , 'missing required property "source"' ) ) ; return A = A . concat ( Fs ( { key : y , value : c , valueSpec : R . layer , style : h . style , styleSpec : h . styleSpec , validateSpec : h . validateSpec , objectElementValidators : { "*" : ( ) => [ ] , type : ( ) => h . validateSpec ( { key : ` ${ y } .type ` , value : c . type , valueSpec : R . layer . type , style : h . style , styleSpec : h . styleSpec , validateSpec : h . validateSpec , object : c , objectKey : "type" } ) , filter : Ga , layout : H => Fs ( { layer : c , key : H . key , value : H . value , style : H . style , styleSpec : H . styleSpec , validateSpec : H . validateSpec , objectElementValidators : { "*" : ie => Jc ( lo ( { layerType : P } , ie ) ) } } ) , paint : H => Fs ( { layer : c , key : H . key , value : H . value , style : H . style , styleSpec : H . styleSpec , validateSpec : H . validateSpec , objectElementValidators : { "*" : ie => ps ( lo ( { layerType : P } , ie ) ) } } ) } } ) ) , A } function Ro ( h ) { const A = h . value , c = h . key , y = Tr ( A ) ; return y !== "string" ? [ new Sn ( c , A , ` string expected, ${ y } found ` ) ] : [ ] } const eh = { promoteId : function ( { key : h , value : A } ) { if ( Tr ( A ) === "string" ) return Ro ( { key : h , value : A } ) ; { const c = [ ] ; for ( const y in A ) c . push ( ... Ro ( { key : ` ${ h } . ${ y } ` , value : A [ y ] } ) ) ; return c } } } ; function TA ( h ) { const A = h . value , c = h . key , y = h . styleSpec , M = h . style , R = h . validateSpec ; if ( ! A . type ) return [ new Sn ( c , A , '"type" is required' ) ] ; const P = ms ( A . type ) ; let G ; switch ( P ) { case "vector" : case "raster" : return G = Fs ( { key : c , value : A , valueSpec : y [ ` source_ ${ P . replace ( "-" , "_" ) } ` ] , style : h . style , styleSpec : y , objectElementValidators : eh , validateSpec : R } ) , G ; case "raster-dem" : return G = function ( H ) { var ie ; const Ae = ( ie = H . sourceName ) !== null && ie !== void 0 ? ie : "" , ve = H . value , Ke = H . styleSpec , Qe = Ke . source _raster _dem , Ve = H . style ; let et = [ ] ; const ut = Tr ( ve ) ; if ( ve === void 0 ) return et ; if ( ut !== "object" ) return et . push ( new Sn ( "source_raster_dem" , ve , ` object expected, ${ ut } found ` ) ) , et ; const Mt = ms ( ve . encoding ) === "custom" , Qt = [ "redFactor" , "greenFactor" , "blueFactor" , "baseShift" ] , Dt = H . value . encoding ? ` " ${ H . value . encoding } " ` : "Default" ; for ( const zt in ve ) ! Mt && Qt . includes ( zt ) ? et . push ( new Sn ( zt , ve [ zt ] , ` In " ${ Ae } ": " ${ zt } " is only valid when "encoding" is set to "custom". ${ Dt } encoding found ` ) ) : Qe [ zt ] ? et = et . concat ( H . validateSpec ( { key : zt , value : ve [ zt ] , valueSpec : Qe [ zt ] , validateSpec : H . validateSpec , style : Ve , styleSpec : Ke } ) ) : et . push ( new Sn ( zt , ve [ zt ] , ` unknown property " ${ zt } " ` ) ) ; return et } ( { sourceName : c , value : A , style : h . style , styleSpec : y , validateSpec : R } ) , G ; case "geojson" : if ( G = Fs ( { key : c , value : A , valueSpec : y . source _geojson , style : M , styleSpec : y , validateSpec : R , objectElementValidators : eh } ) , A . cluster ) for ( const H in A . clusterProperties ) { const [ ie , Ae ] = A . clusterProperties [ H ] , ve = typeof ie == "string" ? [ ie , [ "accumulated" ] , [ "get" , H ] ] : ie ; G . push ( ... eu ( { key : ` ${ c } . ${ H } .map ` , value : Ae , expressionContext : "cluster-map" } ) ) , G . push ( ... eu ( { key : ` ${ c } . ${ H } .reduce ` , value : ve , expressionC Line truncated
precision mediump float ;
# else
# if ! defined ( lowp )
@@ -769,7 +769,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
if ( u _pitch _with _map && ! u _is _along _line ) { float anchor _pos _tile _y = ( u _coord _matrix * vec4 ( projected _pos . xy / projected _pos . w , z , 1.0 ) ) . y ; projectionScaling = mix ( projectionScaling , 1.0 / circumferenceRatioAtTileY ( anchor _pos _tile _y ) * u _pitched _scale , u _projection _transition ) ; }
# endif
vec4 finalPos = u _coord _matrix * vec4 ( projected _pos . xy / projected _pos . w + rotation _matrix * ( a _offset / 32.0 * fontScale ) * projectionScaling , z , 1.0 ) ; if ( u _pitch _with _map ) { finalPos = projectTileWithElevation ( finalPos . xy , finalPos . z ) ; } float gamma _scale = finalPos . w ; gl _Position = finalPos ; vec2 fade _opacity = unpack _opacity ( a _fade _opacity ) ; float visibility = calculate _visibility ( projectedPoint ) ; float fade _change = fade _opacity [ 1 ] > 0.5 ? u _fade _change : - u _fade _change ; float interpolated _fade _opacity = max ( 0.0 , min ( visibility , fade _opacity [ 0 ] + fade _change ) ) ; v _data0 . xy = a _tex / u _texsize ; v _data0 . zw = a _tex / u _texsize _icon ; v _data1 = vec4 ( gamma _scale , size , interpolated _fade _opacity , is _sdf ) ; } ` ),terrain:dr("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:dr("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:dr("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:dr("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:dr( ` in vec3 view _direction ; uniform vec3 u _sun _pos ; uniform vec3 u _globe _position ; uniform float u _globe _radius ; uniform float u _atmosphere _blend ; /**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/ const float PI = 3.141592653589793 ; const int iSteps = 5 ; const int jSteps = 3 ; /*radius of the planet*/ const float EARTH _RADIUS = 6371e3 ; /*radius of the atmosphere*/ const float ATMOS _RADIUS = 6471e3 ; vec2 rsi ( vec3 r0 , vec3 rd , float sr ) { float a = dot ( rd , rd ) ; float b = 2.0 * dot ( rd , r0 ) ; float c = dot ( r0 , r0 ) - ( sr * sr ) ; float d = ( b * b ) - 4.0 * a * c ; if ( d < 0.0 ) return vec2 ( 1e5 , - 1e5 ) ; return vec2 ( ( - b - sqrt ( d ) ) / ( 2.0 * a ) , ( - b + sqrt ( d ) ) / ( 2.0 * a ) ) ; } vec4 atmosphere ( vec3 r , vec3 r0 , vec3 pSun , float iSun , float rPlanet , float rAtmos , vec3 kRlh , float kMie , float shRlh , float shMie , float g ) { pSun = normalize ( pSun ) ; r = normalize ( r ) ; vec2 p = rsi ( r0 , r , rAtmos ) ; if ( p . x > p . y ) { return vec4 ( 0.0 , 0.0 , 0.0 , 1.0 ) ; } if ( p . x < 0.0 ) { p . x = 0.0 ; } vec3 pos = r0 + r * p . x ; vec2 p2 = rsi ( r0 , r , rPlanet ) ; if ( p2 . x <= p2 . y && p2 . x > 0.0 ) { p . y = min ( p . y , p2 . x ) ; } float iStepSize = ( p . y - p . x ) / float ( iSteps ) ; float iTime = p . x + iStepSize * 0.5 ; vec3 Line truncated
) ; color . rgb = 1.0 - exp ( - 1.0 * color . rgb ) ; color = pow ( color , vec4 ( 1.0 / 2.2 ) ) ; fragColor = vec4 ( color . rgb , 1.0 - color . a ) * u _atmosphere _blend ; } ` ,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:dr("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function dr(I,s){const f=/#pragma mapbox: ([ \w ]+) ([ \w ]+) ([ \w ]+) ([ \w ]+)/g,_=s.match(/in ([ \w ]+) ([ \w ]+)/g),w=I.match(/uniform ([ \w ]+) ([ \w ]+)([ \s ]*)([ \w ]*)/g),k=s.match(/uniform ([ \w ]+) ([ \w ]+)([ \s ]*)([ \w ]*)/g),G =k?k.concat(w):w,q={};return{fragmentSource:I=I.replace(f,(J,he,pe,Ee,Se)=>(q[Se]=!0,he==="define"? `
) ; color . rgb = 1.0 - exp ( - 1.0 * color . rgb ) ; color = pow ( color , vec4 ( 1.0 / 2.2 ) ) ; fragColor = vec4 ( color . rgb , 1.0 - color . a ) * u _atmosphere _blend ; } ` ,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:dr("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function dr(I,s){const f=/#pragma mapbox: ([ \w ]+) ([ \w ]+) ([ \w ]+) ([ \w ]+)/g,_=s.match(/in ([ \w ]+) ([ \w ]+)/g),w=I.match(/uniform ([ \w ]+) ([ \w ]+)([ \s ]*)([ \w ]*)/g),k=s.match(/uniform ([ \w ]+) ([ \w ]+)([ \s ]*)([ \w ]*)/g),N =k?k.concat(w):w,q={};return{fragmentSource:I=I.replace(f,(J,he,pe,Ee,Se)=>(q[Se]=!0,he==="define"? `
# ifndef HAS _UNIFORM _u _$ { Se }
in $ { pe } $ { Ee } $ { Se } ;
# else
@@ -818,45 +818,45 @@ uniform ${pe} ${Ee} u_${Se};
# else
$ { pe } $ { Ee } $ { Se } = u _$ { Se } ;
# endif
` }),staticAttributes:_,staticUniforms:G}}class Kl{constructor(s,f,_){this.vertexBuffer=s,this.indexBuffer=f,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ga=o.aJ([{name:"a_pos",type:"Int16",components:2}]);const Ul="#define PROJECTION_MERCATOR",bA="mercator";class br{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return bA}get shaderDefine(){return Ul}get shaderPreludeCode(){return ko.projectionMercator}get vertexShaderPreludeCode(){return ko.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(s){}getMeshFromTileID(s,f,_,w,k){if(this._cachedMesh)return this._cachedMesh;const G=new o.aL;G.emplaceBack(0,0),G.emplaceBack(o. $ ,0),G.emplaceBack(0,o. $ ),G.emplaceBack(o. $ ,o. $ );const q=s.createVertexBuffer(G,ga.members),J=o.aM.simpleSegment(0,0,4,2),he=new o.aN;he.emplaceBack(1,0,2),he.emplaceBack(1,2,3);const pe=s.createIndexBuffer(he);return this._cachedMesh=new Kl(q,pe,J),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(s){}}class iA{constructor(s=0,f=0,_=0,w=0){if(isNaN(s)||s<0||isNaN(f)||f<0||isNaN(_)||_<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=s,this.bottom=f,this.left=_,this.right=w}interpolate(s,f,_){return f.top!=null&&s.top!=null&&(this.top=o.C.number(s.top,f.top,_)),f.bottom!=null&&s.bottom!=null&&(this.bottom=o.C.number(s.bottom,f.bottom,_)),f.left!=null&&s.left!=null&&(this.left=o.C.number(s.left,f.left,_)),f.right!=null&&s.right!=null&&(this.right=o.C.number(s.right,f.right,_)),this}getCenter(s,f){const _=o.ah((this.left+s-this.right)/2,0,s),w=o.ah((this.top+f-this.bottom)/2,0,f);return new o.P(_,w)}equals(s){return this.top===s.top&&this.bottom===s.bottom&&this.left===s.left&&this.right===s.right}clone(){return new iA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function cu(I,s){if(!I.renderWorldCopies||I.lngRange)return;const f=s.lng-I.center.lng;s.lng+=f>180?-360:f<-180?360:0}function Go(I){return Math.max(0,Math.floor(I))}class Eo{constructor(s,f,_,w,k,G){this._callbacks=s,this._tileSize=512,this._renderWorldCopies=G===void 0||!!G,this._minZoom=f||0,this._maxZoom=_||22,this._minPitch=w??0,this._maxPitch=k??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Go(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new iA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(s,f,_){this._latRange=s.latRange,this._lngRange=s.lngRange,this._width=s.width,this._height=s.height,this._center=s.center,this._elevation=s.elevation,this._minElevationForCurrentTile=s.minElevationForCurrentTile,this._zoom=s.zoom,this._tileZoom=Go(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=s.bearingInRadians,this._fovInRadians=s.fovInRadians,this._pitchInRadians=s.pitchInRadians,this._rollInRadians=s.rollInRadians,this._unmodified=s.unmodified,this._edgeInsets=new iA(s.padding.top,s.padding.bottom,s.padding.left,s.padding.right),this._minZoom=s.minZoom,this._maxZoom=s.maxZoom,this._minPitch=s.minPitch,this._maxPitch=s.maxPitch,this._renderWorldCopies=s.renderWorldCopies,this._cameraToCenterDistance=s.cameraToCenterDistance,this._nearZ=s.nearZ,this._farZ=s.farZ,this._autoCalculateNearFarZ=!_&&s.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(s){this._minElevationForCurrentTile=s}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(s){this._minZoom!==s&&(this._minZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(s){this._maxZoom!==s&&(this._maxZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(s){this._minPitch!==s&&(this._minPitch=s,this.setPitch(Math.max(this.pitch,s)))}get maxPitch(){return this._maxPitch}setMaxPi
Line truncated
` }),staticAttributes:_,staticUniforms:N}}class Kl{constructor(s,f,_){this.vertexBuffer=s,this.indexBuffer=f,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ga=o.aJ([{name:"a_pos",type:"Int16",components:2}]);const Ul="#define PROJECTION_MERCATOR",bA="mercator";class br{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return bA}get shaderDefine(){return Ul}get shaderPreludeCode(){return ko.projectionMercator}get vertexShaderPreludeCode(){return ko.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(s){}getMeshFromTileID(s,f,_,w,k){if(this._cachedMesh)return this._cachedMesh;const N=new o.aL;N.emplaceBack(0,0),N.emplaceBack(o. $ ,0),N.emplaceBack(0,o. $ ),N.emplaceBack(o. $ ,o. $ );const q=s.createVertexBuffer(N,ga.members),J=o.aM.simpleSegment(0,0,4,2),he=new o.aN;he.emplaceBack(1,0,2),he.emplaceBack(1,2,3);const pe=s.createIndexBuffer(he);return this._cachedMesh=new Kl(q,pe,J),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(s){}}class iA{constructor(s=0,f=0,_=0,w=0){if(isNaN(s)||s<0||isNaN(f)||f<0||isNaN(_)||_<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=s,this.bottom=f,this.left=_,this.right=w}interpolate(s,f,_){return f.top!=null&&s.top!=null&&(this.top=o.C.number(s.top,f.top,_)),f.bottom!=null&&s.bottom!=null&&(this.bottom=o.C.number(s.bottom,f.bottom,_)),f.left!=null&&s.left!=null&&(this.left=o.C.number(s.left,f.left,_)),f.right!=null&&s.right!=null&&(this.right=o.C.number(s.right,f.right,_)),this}getCenter(s,f){const _=o.ah((this.left+s-this.right)/2,0,s),w=o.ah((this.top+f-this.bottom)/2,0,f);return new o.P(_,w)}equals(s){return this.top===s.top&&this.bottom===s.bottom&&this.left===s.left&&this.right===s.right}clone(){return new iA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function cu(I,s){if(!I.renderWorldCopies||I.lngRange)return;const f=s.lng-I.center.lng;s.lng+=f>180?-360:f<-180?360:0}function No(I){return Math.max(0,Math.floor(I))}class Eo{constructor(s,f,_,w,k,N){this._callbacks=s,this._tileSize=512,this._renderWorldCopies=N===void 0||!!N,this._minZoom=f||0,this._maxZoom=_||22,this._minPitch=w??0,this._maxPitch=k??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=No(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new iA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(s,f,_){this._latRange=s.latRange,this._lngRange=s.lngRange,this._width=s.width,this._height=s.height,this._center=s.center,this._elevation=s.elevation,this._minElevationForCurrentTile=s.minElevationForCurrentTile,this._zoom=s.zoom,this._tileZoom=No(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=s.bearingInRadians,this._fovInRadians=s.fovInRadians,this._pitchInRadians=s.pitchInRadians,this._rollInRadians=s.rollInRadians,this._unmodified=s.unmodified,this._edgeInsets=new iA(s.padding.top,s.padding.bottom,s.padding.left,s.padding.right),this._minZoom=s.minZoom,this._maxZoom=s.maxZoom,this._minPitch=s.minPitch,this._maxPitch=s.maxPitch,this._renderWorldCopies=s.renderWorldCopies,this._cameraToCenterDistance=s.cameraToCenterDistance,this._nearZ=s.nearZ,this._farZ=s.farZ,this._autoCalculateNearFarZ=!_&&s.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(s){this._minElevationForCurrentTile=s}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(s){this._minZoom!==s&&(this._minZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(s){this._maxZoom!==s&&(this._maxZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(s){this._minPitch!==s&&(this._minPitch=s,this.setPitch(Math.max(this.pitch,s)))}get maxPitch(){return this._maxPitch}setMaxPi
Line truncated
` ),Lt=wt.concat(ko.prelude.vertexSource,q.vertexSource,f.vertexSource).join( `
` );st(pe)||(Pt=function(Xt){return Xt.replace(/ \b in \s /g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture \( /g,"texture2D(")}(Pt),Lt=function(Xt){return Xt.replace(/ \b in \s /g,"attribute ").replace(/ \b out \s /g,"varying ").replace(/texture \( /g,"texture2D(")}(Lt));const Bt=pe.createShader(pe.FRAGMENT_SHADER);if(pe.isContextLost())return void(this.failedToCreate=!0);if(pe.shaderSource(Bt,Pt),pe.compileShader(Bt),!pe.getShaderParameter(Bt,pe.COMPILE_STATUS))throw new Error( ` Could not compile fragment shader : $ { pe . getShaderInfoLog ( Bt ) } ` );pe.attachShader(this.program,Bt);const Yt=pe.createShader(pe.VERTEX_SHADER);if(pe.isContextLost())return void(this.failedToCreate=!0);if(pe.shaderSource(Yt,Lt),pe.compileShader(Yt),!pe.getShaderParameter(Yt,pe.COMPILE_STATUS))throw new Error( ` Could not compile vertex shader : $ { pe . getShaderInfoLog ( Yt ) } ` );pe.attachShader(this.program,Yt),this.attributes={};const dn={};this.numAttributes=Ue.length;for(let Xt=0;Xt<this.numAttributes;Xt++)Ue[Xt]&&(pe.bindAttribLocation(this.program,Xt,Ue[Xt]),this.attributes[Ue[Xt]]=Xt);if(pe.linkProgram(this.program),!pe.getProgramParameter(this.program,pe.LINK_STATUS))throw new Error( ` Program failed to link : $ { pe . getProgramInfoLog ( this . program ) } ` );pe.deleteShader(Yt),pe.deleteShader(Bt);for(let Xt=0;Xt<Ct.length;Xt++){const nn=Ct[Xt];if(nn&&!dn[nn]){const An=pe.getUniformLocation(this.program,nn);An&&(dn[nn]=An)}}this.fixedUniforms=w(s,dn),this.terrainUniforms=((Xt,nn)=>({u_depth:new o.bP(Xt,nn.u_depth),u_terrain:new o.bP(Xt,nn.u_terrain),u_terrain_dim:new o.bg(Xt,nn.u_terrain_dim),u_terrain_matrix:new o.bR(Xt,nn.u_terrain_matrix),u_terrain_unpack:new o.bS(Xt,nn.u_terrain_unpack),u_terrain_exaggeration:new o.bg(Xt,nn.u_terrain_exaggeration)}))(s,dn),this.projectionUniforms=((Xt,nn)=>({u_projection_matrix:new o.bR(Xt,nn.u_projection_matrix),u_projection_tile_mercator_coords:new o.bS(Xt,nn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bS(Xt,nn.u_projection_clipping_plane),u_projection_transition:new o.bg(Xt,nn.u_projection_transition),u_projection_fallback_matrix:new o.bR(Xt,nn.u_projection_fallback_matrix)}))(s,dn),this.binderUniforms=_?_.getUniforms(s,dn):[]}draw(s,f,_,w,k,G,q,J,he,pe,Ee,Se,Ue,Xe,At,ct,ft,xt,Ct){const wt=s.gl;if(this.failedToCreate)return;if(s.program.set(this.program),s.setDepthMode(_),s.setStencilMode(w),s.setColorMode(k),s.setCullFace(G),J){s.activeTexture.set(wt.TEXTURE2),wt.bindTexture(wt.TEXTURE_2D,J.depthTexture),s.activeTexture.set(wt.TEXTURE3),wt.bindTexture(wt.TEXTURE_2D,J.texture);for(const Lt in this.terrainUniforms)this.terrainUniforms[Lt].set(J[Lt])}if(he)for(const Lt in he)this.projectionUniforms[Df[Lt]].set(he[Lt]);if(q)for(const Lt in this.fixedUniforms)this.fixedUniforms[Lt].set(q[Lt]);ct&&ct.setUniforms(s,this.binderUniforms,Xe,{zoom:At});let Pt=0;switch(f){case wt.LINES:Pt=2;break;case wt.TRIANGLES:Pt=3;break;case wt.LINE_STRIP:Pt=1}for(const Lt of Ue.get()){const Bt=Lt.vaos||(Lt.vaos={});(Bt[pe]||(Bt[pe]=new o0)).bind(s,this,Ee,ct?ct.getPaintVertexBuffers():[],Se,Lt.vertexOffset,ft,xt,Ct),wt.drawElements(f,Lt.primitiveLength*Pt,wt.UNSIGNED_SHORT,Lt.primitiveOffset*Pt*2)}}}function _d(I,s,f){const _=1/o.aC(f,1,s.transform.tileZoom),w=Math.pow(2,f.tileID.overscaledZ),k=f.tileSize*Math.pow(2,s.transform.tileZoom)/w,G=k*(f.tileID.canonical.x+f.tileID.wrap*w),q=k*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[G>>16,q>>16],u_pixel_coord_lower:[65535&G,65535&q]}}const Fl=(I,s,f,_)=>{const w=I.style.light,k=w.properties.get("position"),G=[k.x,k.y,k.z],q=o.bV();w.properties.get("anchor")==="viewport"&&o.bW(q,I.transform.bearingInRadians),o.bX(G,G,q);const J=I.transform.transformLightDirection(G),he=w.properties.get("color");return{u_lightpos:G,u_lightpos_globe:J,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[he.r,he.g,he.b],u_vertical_gradient:+s,u_opacity:f,u_fill_translate:_}},bd=(I,s,f,_,w,k,G)=>o.e(Fl(I,s,f,_),_d(k,I,G),{u_height_factor:-Math.pow(2,w.overscaledZ)/G.tileSize/8}),Nh=(I,s,f,_)=>o.e(_d(s,I,f),{u_fill_translate:_}),Yc=(I,s)=>({u_world:I,u_fill_translate:s}),jh=(I,s,f,_,w)=>o.e(Nh(I,s,f,w),{u_world:_}),Rf=(I,s,f,_,w)=>{const k=I.transform;let G,q,J=0;if(f.paint.get("circle-pitch-alignment")==="map"){const he=o.aC(s,1,k.zoom);G=!0,q=[he,he],J=he/(o. $ *Math.pow(2,s.tileID.overscaledZ))*2*Math.PI*w}else G=!1,q=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+G,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:J,u_translate:_}},yh=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),vh=I=>({u_viewport_size:[I.width,I.height]}),Wh=(I,s=1)=>({u_color:I,u_overlay:0,u_overlay_scale:s}),Pf=(I,s,f,_)=>{const w=o.aC(I,1,s)/(o. $ *Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:o.aC(I,1,s),u
Line truncated
` );st(pe)||(Pt=function(Xt){return Xt.replace(/ \b in \s /g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture \( /g,"texture2D(")}(Pt),Lt=function(Xt){return Xt.replace(/ \b in \s /g,"attribute ").replace(/ \b out \s /g,"varying ").replace(/texture \( /g,"texture2D(")}(Lt));const Bt=pe.createShader(pe.FRAGMENT_SHADER);if(pe.isContextLost())return void(this.failedToCreate=!0);if(pe.shaderSource(Bt,Pt),pe.compileShader(Bt),!pe.getShaderParameter(Bt,pe.COMPILE_STATUS))throw new Error( ` Could not compile fragment shader : $ { pe . getShaderInfoLog ( Bt ) } ` );pe.attachShader(this.program,Bt);const Yt=pe.createShader(pe.VERTEX_SHADER);if(pe.isContextLost())return void(this.failedToCreate=!0);if(pe.shaderSource(Yt,Lt),pe.compileShader(Yt),!pe.getShaderParameter(Yt,pe.COMPILE_STATUS))throw new Error( ` Could not compile vertex shader : $ { pe . getShaderInfoLog ( Yt ) } ` );pe.attachShader(this.program,Yt),this.attributes={};const dn={};this.numAttributes=Ue.length;for(let Xt=0;Xt<this.numAttributes;Xt++)Ue[Xt]&&(pe.bindAttribLocation(this.program,Xt,Ue[Xt]),this.attributes[Ue[Xt]]=Xt);if(pe.linkProgram(this.program),!pe.getProgramParameter(this.program,pe.LINK_STATUS))throw new Error( ` Program failed to link : $ { pe . getProgramInfoLog ( this . program ) } ` );pe.deleteShader(Yt),pe.deleteShader(Bt);for(let Xt=0;Xt<Ct.length;Xt++){const nn=Ct[Xt];if(nn&&!dn[nn]){const An=pe.getUniformLocation(this.program,nn);An&&(dn[nn]=An)}}this.fixedUniforms=w(s,dn),this.terrainUniforms=((Xt,nn)=>({u_depth:new o.bP(Xt,nn.u_depth),u_terrain:new o.bP(Xt,nn.u_terrain),u_terrain_dim:new o.bg(Xt,nn.u_terrain_dim),u_terrain_matrix:new o.bR(Xt,nn.u_terrain_matrix),u_terrain_unpack:new o.bS(Xt,nn.u_terrain_unpack),u_terrain_exaggeration:new o.bg(Xt,nn.u_terrain_exaggeration)}))(s,dn),this.projectionUniforms=((Xt,nn)=>({u_projection_matrix:new o.bR(Xt,nn.u_projection_matrix),u_projection_tile_mercator_coords:new o.bS(Xt,nn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bS(Xt,nn.u_projection_clipping_plane),u_projection_transition:new o.bg(Xt,nn.u_projection_transition),u_projection_fallback_matrix:new o.bR(Xt,nn.u_projection_fallback_matrix)}))(s,dn),this.binderUniforms=_?_.getUniforms(s,dn):[]}draw(s,f,_,w,k,N,q,J,he,pe,Ee,Se,Ue,Xe,At,ct,ft,xt,Ct){const wt=s.gl;if(this.failedToCreate)return;if(s.program.set(this.program),s.setDepthMode(_),s.setStencilMode(w),s.setColorMode(k),s.setCullFace(N),J){s.activeTexture.set(wt.TEXTURE2),wt.bindTexture(wt.TEXTURE_2D,J.depthTexture),s.activeTexture.set(wt.TEXTURE3),wt.bindTexture(wt.TEXTURE_2D,J.texture);for(const Lt in this.terrainUniforms)this.terrainUniforms[Lt].set(J[Lt])}if(he)for(const Lt in he)this.projectionUniforms[kf[Lt]].set(he[Lt]);if(q)for(const Lt in this.fixedUniforms)this.fixedUniforms[Lt].set(q[Lt]);ct&&ct.setUniforms(s,this.binderUniforms,Xe,{zoom:At});let Pt=0;switch(f){case wt.LINES:Pt=2;break;case wt.TRIANGLES:Pt=3;break;case wt.LINE_STRIP:Pt=1}for(const Lt of Ue.get()){const Bt=Lt.vaos||(Lt.vaos={});(Bt[pe]||(Bt[pe]=new o0)).bind(s,this,Ee,ct?ct.getPaintVertexBuffers():[],Se,Lt.vertexOffset,ft,xt,Ct),wt.drawElements(f,Lt.primitiveLength*Pt,wt.UNSIGNED_SHORT,Lt.primitiveOffset*Pt*2)}}}function _d(I,s,f){const _=1/o.aC(f,1,s.transform.tileZoom),w=Math.pow(2,f.tileID.overscaledZ),k=f.tileSize*Math.pow(2,s.transform.tileZoom)/w,N=k*(f.tileID.canonical.x+f.tileID.wrap*w),q=k*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[N>>16,q>>16],u_pixel_coord_lower:[65535&N,65535&q]}}const Fl=(I,s,f,_)=>{const w=I.style.light,k=w.properties.get("position"),N=[k.x,k.y,k.z],q=o.bV();w.properties.get("anchor")==="viewport"&&o.bW(q,I.transform.bearingInRadians),o.bX(N,N,q);const J=I.transform.transformLightDirection(N),he=w.properties.get("color");return{u_lightpos:N,u_lightpos_globe:J,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[he.r,he.g,he.b],u_vertical_gradient:+s,u_opacity:f,u_fill_translate:_}},bd=(I,s,f,_,w,k,N)=>o.e(Fl(I,s,f,_),_d(k,I,N),{u_height_factor:-Math.pow(2,w.overscaledZ)/N.tileSize/8}),Gh=(I,s,f,_)=>o.e(_d(s,I,f),{u_fill_translate:_}),Yc=(I,s)=>({u_world:I,u_fill_translate:s}),jh=(I,s,f,_,w)=>o.e(Gh(I,s,f,w),{u_world:_}),Df=(I,s,f,_,w)=>{const k=I.transform;let N,q,J=0;if(f.paint.get("circle-pitch-alignment")==="map"){const he=o.aC(s,1,k.zoom);N=!0,q=[he,he],J=he/(o. $ *Math.pow(2,s.tileID.overscaledZ))*2*Math.PI*w}else N=!1,q=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+N,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:J,u_translate:_}},yh=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),vh=I=>({u_viewport_size:[I.width,I.height]}),Wh=(I,s=1)=>({u_color:I,u_overlay:0,u_overlay_scale:s}),Rf=(I,s,f,_)=>{const w=o.aC(I,1,s)/(o. $ *Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:o.aC(I,1,s),u
Line truncated
uniform mat4 u _projection _matrix ;
$ { Ue . shaderPreludeCode . vertexSource } ` ,define:Ue.shaderDefine},defaultProjectionData:At},ft=Se.renderingMode?Se.renderingMode:"2d";if(G.renderPass==="offscreen"){const xt=Se.prerender;xt&&(G.setCustomLayerDefaults(),Ee.setColorMode(G.colorModeForRenderPass()),xt.call(Se,Ee.gl,ct),Ee.setDirty(),G.setBaseState())}else if(G.renderPass==="translucent"){G.setCustomLayerDefaults(),Ee.setColorMode(G.colorModeForRenderPass()),Ee.setStencilMode(te.disabled);const xt=ft==="3d"?G.getDepthModeFor3D():G.getDepthModeForSublayer(0,Mi.ReadOnly);Ee.setDepthMode(xt),Se.render(Ee.gl,ct),Ee.setDirty(),G.setBaseState(),Ee.bindFramebuffer.set(null)}}(s,0,_,k))}saveTileTexture(s){const f=this._tileTextures[s.size[0]];f?f.push(s):this._tileTextures[s.size[0]]=[s]}getTileTexture(s){const f=this._tileTextures[s];return f&&f.length>0?f.pop():null}isPatternMissing(s){if(!s)return!1;if(!s.from||!s.to)return!0;const f=this.imageManager.getPattern(s.from.toString()),_=this.imageManager.getPattern(s.to.toString());return!f||!_}useProgram(s,f,_=!1,w=[]){this.cache=this.cache||{};const k=!!this.style.map.terrain,G=this.style.projection,q=_?ko.projectionMercator:G.shaderPreludeCode,J=_?Ul:G.shaderDefine,he=s+(f?f.cacheKey:"")+ ` / $ { _ ? bA : G . shaderVariantName } ` +(this._showOverdrawInspector?"/overdraw":"")+(k?"/terrain":"")+(w? ` / $ { w . join ( "/" ) } ` :"");return this.cache[he]||(this.cache[he]=new Xa(this.context,ko[s],f,xA[s],this._showOverdrawInspector,k,q,J,w)),this.cache[he]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const s=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(s.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:s,drawingBufferHeight:f}=this.context.gl;return this.width!==s||this.height!==f}}function eu(I,s){let f,_=!1,w=null,k=null;const G=()=>{w=null,_&&(I.apply(k,f),w=setTimeout(G,s),_=!1)};return(...q)=>(_=!0,k=this,f=q,w||G(),w)}class rt{constructor(s){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let _;return f.split("&").map(w=>w.split("=")).forEach(w=>{w[0]===this._hashName&&(_=w)}),(_&&_[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const _=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:_,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)? $ /,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const _=f.join("/");let w=_;w.split("&").length>0&&(w=w.split("&")[0]),this._hashName&&(w= ` $ { this . _hashName } = $ { _ } ` );let k=window.location.hash.replace(w,"");k.startsWith("#&")?k=k.slice(0,1)+k.slice(2):k==="#"&&(k="");let G=window.location.href.replace(/(#.+)? $ /,k);G=G.replace("&&","&"),window.history.replaceState(window.history.state,null,G)},this._updateHash=eu(this._updateHashUnthrottled,300),this._hashName=s&&encodeURIComponent(s)}addTo(s){return this._map=s,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(s){const f=this._map.getCenter(),_=Math.round(100*this._map.getZoom())/100,w=Math.ceil((_*Math.LN2+Math.log(512/360/.5))/Math.LN10),k=Math.pow(10,w),G=Math.round(f.lng*k)/k,q=Math.round(f.lat*k)/k,J=this._map.getBearing(),he=this._map.getPitch();let pe="";if(pe+=s? ` / $ { G } / $ { q } / $ { _ } ` : ` $ { _ } / $ { q } / $ { G } ` ,(J||he)&&(pe+="/"+Math.round(10*J)/10),he&&(pe+= ` / $ { Math . round ( he ) } ` ),this._hashName){const Ee=this._hashName;let Se=!1;const Ue=window.location.hash.slice(1).split("&").map(Xe=>{const At=Xe.split("=")[0];return At===Ee?(Se=!0, ` $ { At } = $ { pe } ` ):Xe}).filter(Xe=>Xe);return Se||Ue.push( ` $ { Ee } = $ { pe } ` ), ` # $ { Ue . join ( "&" ) } ` }return ` # $ { pe } ` }_isValidHash(s){if(s.length<3||s.some(isNaN))return!1;try{new o.S(+s[2],+s[1])}catch{return!1}const f=+s[0],_=+(s[3]||0),w=+(s[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&_>=-180&&_<=180&&w>=this._map.getMinPitch()&&w<=this._map.getMaxPitch()}}const Vs={linearity:.3,easing:o.cm(0,0,.3,1)},
Line truncated
$ { Ue . shaderPreludeCode . vertexSource } ` ,define:Ue.shaderDefine},defaultProjectionData:At},ft=Se.renderingMode?Se.renderingMode:"2d";if(N.renderPass==="offscreen"){const xt=Se.prerender;xt&&(N.setCustomLayerDefaults(),Ee.setColorMode(N.colorModeForRenderPass()),xt.call(Se,Ee.gl,ct),Ee.setDirty(),N.setBaseState())}else if(N.renderPass==="translucent"){N.setCustomLayerDefaults(),Ee.setColorMode(N.colorModeForRenderPass()),Ee.setStencilMode(te.disabled);const xt=ft==="3d"?N.getDepthModeFor3D():N.getDepthModeForSublayer(0,Mi.ReadOnly);Ee.setDepthMode(xt),Se.render(Ee.gl,ct),Ee.setDirty(),N.setBaseState(),Ee.bindFramebuffer.set(null)}}(s,0,_,k))}saveTileTexture(s){const f=this._tileTextures[s.size[0]];f?f.push(s):this._tileTextures[s.size[0]]=[s]}getTileTexture(s){const f=this._tileTextures[s];return f&&f.length>0?f.pop():null}isPatternMissing(s){if(!s)return!1;if(!s.from||!s.to)return!0;const f=this.imageManager.getPattern(s.from.toString()),_=this.imageManager.getPattern(s.to.toString());return!f||!_}useProgram(s,f,_=!1,w=[]){this.cache=this.cache||{};const k=!!this.style.map.terrain,N=this.style.projection,q=_?ko.projectionMercator:N.shaderPreludeCode,J=_?Ul:N.shaderDefine,he=s+(f?f.cacheKey:"")+ ` / $ { _ ? bA : N . shaderVariantName } ` +(this._showOverdrawInspector?"/overdraw":"")+(k?"/terrain":"")+(w? ` / $ { w . join ( "/" ) } ` :"");return this.cache[he]||(this.cache[he]=new Xa(this.context,ko[s],f,xA[s],this._showOverdrawInspector,k,q,J,w)),this.cache[he]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const s=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(s.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:s,drawingBufferHeight:f}=this.context.gl;return this.width!==s||this.height!==f}}function eu(I,s){let f,_=!1,w=null,k=null;const N=()=>{w=null,_&&(I.apply(k,f),w=setTimeout(N,s),_=!1)};return(...q)=>(_=!0,k=this,f=q,w||N(),w)}class rt{constructor(s){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let _;return f.split("&").map(w=>w.split("=")).forEach(w=>{w[0]===this._hashName&&(_=w)}),(_&&_[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const _=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:_,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)? $ /,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const _=f.join("/");let w=_;w.split("&").length>0&&(w=w.split("&")[0]),this._hashName&&(w= ` $ { this . _hashName } = $ { _ } ` );let k=window.location.hash.replace(w,"");k.startsWith("#&")?k=k.slice(0,1)+k.slice(2):k==="#"&&(k="");let N=window.location.href.replace(/(#.+)? $ /,k);N=N.replace("&&","&"),window.history.replaceState(window.history.state,null,N)},this._updateHash=eu(this._updateHashUnthrottled,300),this._hashName=s&&encodeURIComponent(s)}addTo(s){return this._map=s,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(s){const f=this._map.getCenter(),_=Math.round(100*this._map.getZoom())/100,w=Math.ceil((_*Math.LN2+Math.log(512/360/.5))/Math.LN10),k=Math.pow(10,w),N=Math.round(f.lng*k)/k,q=Math.round(f.lat*k)/k,J=this._map.getBearing(),he=this._map.getPitch();let pe="";if(pe+=s? ` / $ { N } / $ { q } / $ { _ } ` : ` $ { _ } / $ { q } / $ { N } ` ,(J||he)&&(pe+="/"+Math.round(10*J)/10),he&&(pe+= ` / $ { Math . round ( he ) } ` ),this._hashName){const Ee=this._hashName;let Se=!1;const Ue=window.location.hash.slice(1).split("&").map(Xe=>{const At=Xe.split("=")[0];return At===Ee?(Se=!0, ` $ { At } = $ { pe } ` ):Xe}).filter(Xe=>Xe);return Se||Ue.push( ` $ { Ee } = $ { pe } ` ), ` # $ { Ue . join ( "&" ) } ` }return ` # $ { pe } ` }_isValidHash(s){if(s.length<3||s.some(isNaN))return!1;try{new o.S(+s[2],+s[1])}catch{return!1}const f=+s[0],_=+(s[3]||0),w=+(s[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&_>=-180&&_<=180&&w>=this._map.getMinPitch()&&w<=this._map.getMaxPitch()}}const Vs={linearity:.3,easing:o.cm(0,0,.3,1)},
Line truncated
$ { e } < span > < / s p a n >
` ,hs().s[12]++,this._textEl=this._container.querySelector("span"),hs().s[13]++,this.updateZoomLevel()}addEventListeners(){hs().f[4]++,hs().s[14]++,this._map.on("render",()=>(hs().f[5]++,hs().s[15]++,this.updateZoomLevel())),hs().s[16]++,this._map.on("zoomIn",()=>(hs().f[6]++,hs().s[17]++,this.updateZoomLevel())),hs().s[18]++,this._map.on("zoomOut",()=>(hs().f[7]++,hs().s[19]++,this.updateZoomLevel()))}onRemove(){hs().f[8]++,hs().s[20]++,this._container.parentNode.removeChild(this._container),hs().s[21]++,this._map=void 0}}function L6(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["=="," $ type","Point"]};return t&&(i["source-layer"]=t),i}function F6(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["=="," $ type","Polygon"]};return i&&(r["source-layer"]=i),r}function z6(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["=="," $ type","LineString"]};return t&&(i["source-layer"]=t),i}function j $ (n,e){const t=[],i=[],r=[];function a(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const m=a(l);i.push(L6(m.circle,l)),r.push(z6(m.line,l)),t.push(F6(m.polygon,m.polygonOutline,l))}else o.forEach(m=>{const C=a(m);i.push(L6(C.circle,l,m)),r.push(z6(C.line,l,m)),t.push(F6(C.polygon,C.polygonOutline,l,m))})}),t.concat(r).concat(i)}function W $ (n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(a=>{const l=n.sources[a];(l.type==="vector"||l.type==="geojson")&&(r[a]=l)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const R4={polygonLayer:F6,lineLayer:z6,circleLayer:L6,generateInspectStyle:W $ ,generateColoredLayers:j $ };function vo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s
Line truncated
$ { this . _localize ( "errorNoResults" ) } < / d i v > ` ; t h i s . _ r e n d e r M e s s a g e ( e ) } _ r e n d e r M e s s a g e ( e ) { t h i s . _ t y p e a h e a d . u p d a t e ( [ ] ) , t h i s . _ t y p e a h e a d . s e l e c t e d = n u l l , t h i s . _ t y p e a h e a d . c l e a r ( ) , t h i s . _ t y p e a h e a d . r e n d e r E r r o r ( e ) } _ l o c a l i z e ( e ) { c o n s t t = t Z . l a n g u a g e ( t h i s . o p t i o n s . l a n g u a g e . s p l i t ( " , " ) [ 0 ] ) ; r e t u r n t h i s . o p t i o n s . l a n g u a g e & & m C ? . [ e ] [ t ] ? m C [ e ] [ t ] : m C [ e ] . e n } _ f i t B o u n d s F o r M a r k e r s ( ) { i f ( t h i s . _ t y p e a h e a d . d a t a . l e n g t h < 1 ) r e t u r n ; c o n s t e = t h i s . _ t y p e a h e a d . d a t a . f i l t e r ( t = > t y p e o f t ! = " s t r i n g " ) . s l i c e ( 0 , t h i s . o p t i o n s . l i m i t ) ; i f ( t h i s . _ c l e a r E l . s t y l e . d i s p l a y = " n o n e " , t h i s . o p t i o n s . f l y T o & & t h i s . _ m a p l i b r e g l & & t h i s . _ m a p ) { c o n s t i = Q m ( { } , { p a d d i n g : 1 0 0 } , t h i s . o p t i o n s . f l y T o ) , r = n e w t h i s . _ m a p l i b r e g l . L n g L a t B o u n d s ; f o r ( c o n s t a o f e ) r . e x t e n d ( a . g e o m e t r y . c o o r d i n a t e s ) ; t h i s . _ m a p . f i t B o u n d s ( r , i ) } r e t u r n e . l e n g t h > 0 & & t h i s . _ m a p l i b r e g l & & t h i s . _ h a n d l e R e s u l t M a r k e r s ( e ) , t h i s } s e t I n p u t ( e ) { r e t u r n t h i s . _ i n p u t E l . v a l u e = e , t h i s . _ t y p e a h e a d . s e l e c t e d = n u l l , t h i s . _ t y p e a h e a d . c l e a r ( ) , e . l e n g t h > = t h i s . o p t i o n s . m i n L e n g t h & & t h i s . o p t i o n s . s h o w R e s u l t s W h i l e T y p i n g & & t h i s . _ g e o c o d e ( e ) , t h i s } s e t P r o x i m i t y ( e ) { r e t u r n t h i s . o p t i o n s . p r o x i m i t y = e , t h i s } g e t P r o x i m i t y ( ) { r e t u r n t h i s . o p t i o n s . p r o x i m i t y } s e t R e n d e r F u n c t i o n ( e ) { r e t u r n e & & t y p e o f e = = " f u n c t i o n " & & ( t h i s . _ t y p e a h e a d . r e n d e r = e ) , t h i s } g e t R e n d e r F u n c t i o n ( ) { r e t u r n t h i s . _ t y p e a h e a d . r e n d e r } s e t L a n g u a g e ( e ) { r e t u r n t h i s . o p t i o n s . l a n g u a g e = e | | t h i s . o p t i o n s . l a n g u a g e | | n a v i g a t o r . l a n g u a g e , t h i s } g e t L a n g u a g e ( ) { r e t u r n t h i s . o p t i o n s . l a n g u a g e } g e t Z o o m ( ) { r e t u r n t h i s . o p t i o n s . z o o m } s e t Z o o m ( e ) { r e t u r n t h i s . o p t i o n s . z o o m = e , t h i s } g e t F l y T o ( ) { r e t u r n t h i s . o p t i o n s . f l y T o } s e t F l y T o ( e ) { r e t u r n t h i s . o p t i o n s . f l y T o = e , t h i s } g e t P l a c e h o l d e r ( ) { r e t u r n t h i s . o p t i o n s . p l a c e h o l d e r } s e t P l a c e h o l d e r ( e ) { r e t u r n t h i s . p l a c e h o l d e r = e | | t h i s . o p t i o n s . p l a c e h o l d e r | | t h i s . _ l o c a l i z e ( " p l a c e h o l d e r " ) , t h i s . _ i n p u t E l . p l a c e h o l d e r = t h i s . p l a c e h o l d e r , t h i s . _ i n p u t E l . s e t A t t r i b u t e ( " a r i a - l a b e l " , t h i s . p l a c e h o l d e r ) , t h i s } g e t B b o x ( ) { r e t u r n t h i s . o p t i o n s . b b o x } s e t B b o x ( e ) { r e t u r n t h i s . o p t i o n s . b b o x = e , t h i s } g e t C o u n t r i e s ( ) { r e t u r n t h i s . o p t i o n s . c o u n t r i e s } s e t C o u n t r i e s ( e ) { r e t u r n t h i s . o p t i o n s . c o u n t r i e s = e , t h i s } g e t T y p e s ( ) { r e t u r n t h i s . o p t i o n s . t y p e s } s e t T y p e s ( e ) { r e t u r n t h i s . o p t i o n s . t y p e s = e , t h i s } g e t M i n L e n g t h ( ) { r e t u r n t h i s . o p t i o n s . m i n L e n g t h } s e t M i n L e n g t h ( e ) { r e t u r n t h i s . o p t i o n s . m i n L e n g t h = e , t h i s . _ t y p e a h e a d & & ( t h i s . _ t y p e a h e a d . o p t i o n s . m i n L e n g t h = e ) , t h i s } g e t L i m i t ( ) { r e t u r n t h i s . o p t i o n s . l i m i t } s e t L i m i t ( e ) { r e t u r n t h i s . o p t i o n s . l i m i t = e , t h i s . _ t y p e a h e a d & & ( t h i s . _ t y p e a h e a d . o p t i o n s . l i m i t = e ) , t h i s } g e t F i l t e r ( ) { r e t u r n t h i s . o p t i o n s . f i l t e r } s e t F i l t e r ( e ) { r e t u r n t h i s . o p t i o n s . f i l t e r = e , t h i s } s e t G e o c o d e r A p i ( e ) { r e t u r n t h i s . g e o c o d e r A p i = e , t h i s } g e t G e o c o d e r A p i ( ) { r e t u r n t h i s . g e o c o d e r A p i } _ h a n d l e M a r k e r ( e ) { i f ( ! t h i s . _ m a p ) r e t u r n ; t h i s . _ r e m o v e M a r k e r ( ) ; c o n s t i = Q m ( { } , { c o l o r : " # 4 6 6 8 F 2 " } , t h i s . o p t i o n s . m a r k e r ) ; t h i s . m a p M a r k e r = n e w t h i s . _ m a p l i b r e g l . M a r k e r ( i ) ; l e t r ; i f ( t h i s . o p t i o n s . p o p u p ) { c o n s t l = Q m ( { } , { } , t h i s . o p t i o n s . p o p u p ) ; r = n e w t h i s . _ m a p l i b r e g l . P o p u p ( l ) . s e t H T M L ( t h i s . o p t i o n s . p o p u p R e n d e r ( e ) ) } r e t u r n e . c e n t e r ? ( t h i s . m a p M a r k e r . s e t L n g L a t ( e . c e n t e r ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & t h i s . m a p M a r k e r . s e t P o p u p ( r ) ) : e . g e o m e t r y & & e . g e o m e t r y . t y p e & & e . g e o m e t r y . t y p e = = = " P o i n t " & & e . g e o m e t r y . c o o r d i n a t e s & & ( t h i s . m a p M a r k e r . s e t L n g L a t ( e . g e o m e t r y . c o o r d i n a t e s ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & t h i s . m a p M a r k e r . s e t P o p u p ( r ) ) , t h i s } _ r e m o v e M a r k e r ( ) { t h i s . m a p M a r k e r & & ( t h i s . m a p M a r k e r . r e m o v e ( ) , t h i s . m a p M a r k e r = n u l l ) } _ h a n d l e R e s u l t M a r k e r s ( e ) { i f ( ! t h i s . _ m a p ) r e t u r n ; t h i s . _ r e m o v e R e s u l t M a r k e r s ( ) ; l e t i = Q m ( { } , { c o l o r : " # 4 6 6 8 F 2 " } , t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s ) ; f o r ( c o n s t r o f e ) { l e t a ; i f ( t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s ) { t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s & & t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s . e l e m e n t & & ( a = t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s . e l e m e n t . c l o n e N o d e ( ! 0 ) , i = Q m ( i , { e l e m e n t : a } ) ) ; c o n s t l = n e w t h i s . _ m a p l i b r e g l . M a r k e r ( Q m ( { } , i , { e l e m e n t : a } ) ) ; l e t o ; i f ( t h i s . o p t i o n s . p o p u p ) { c o n s t C = Q m ( { } , { } , t h i s . o p t i o n s . p o p u p ) ; o = n e w t h i s . _ m a p l i b r e g l . P o p u p ( C ) . s e t H T M L ( t h i s . o p t i o n s . p o p u p R e n d e r ( r ) ) } r . c e n t e r ? ( l . s e t L n g L a t ( r . c e n t e r ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & l . s e t P o p u p ( o ) ) : r . g e o m e t r y & & r . g e o m e t r y . t y p e & & r . g e o m e t r y . t y p e = = = " P o i n t " & & r . g e o m e t r y . c o o r d i n a t e s & & ( l . s e t L n g L a t ( r . g e o m e t r y . c o o r d i n a t e s ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & l . s e t P o p u p ( o ) ) , t h i s . r e s u l t M a r k e r s . p u s h ( l ) } } r e t u r n t h i s } _ r e m o v e R e s u l t M a r k e r s ( ) { t h i s . r e s u l t M a r k e r s & & t h i s . r e s u l t M a r k e r s . l e n g t h > 0 & & ( t h i s . r e s u l t M a r k e r s . f o r E a c h ( f u n c t i o n ( e ) { e . r e m o v e ( ) } ) , t h i s . r e s u l t M a r k e r s = [ ] ) } o n ( e , t ) { r e t u r n t h i s . _ e v e n t E m i t t e r . o n ( e , t ) , t h i s } o n c e ( e ) { r e t u r n n e w P r o m i s e ( t = > { t h i s . _ e v e n t E m i t t e r . o n c e ( e , t ) } ) } o f f ( e , t ) { r e t u r n t h i s . _ e v e n t E m i t t e r . r e m o v e L i s t e n e r ( e , t ) , t h i s } } f u n c t i o n b n ( ) { v a r n = " / h o m e / r u n n e r / w o r k / m a p u t n i k / m a p u t n i k / s r c / c o m p o n e n t s / M a p M a p l i b r e G l . t s x " , e = " b 7 2 5 2 e 9 6 c 4 0 c 4 2 7 2 4 d c b e 9 8 7 b a 8 0 0 5 9 c b c 7 4 2 d 6 7 " , t = g l o b a l T h i s , i = " _ _ c o v e r a g e _ _ " , r = { p a t h : " / h o m e / r u n n e r / w o r k / m a p u t n i k / m a p u t n i k / s r c / c o m p o n e n t s / M a p M a p l i b r e G l . t s x " , s t a t e m e n t M a p : { 0 : { s t a r t : { l i n e : 2 1 , c o l u m n : 1 5 } , e n d : { l i n e : 2 1 , c o l u m n : 3 6 } } , 1 : { s t a r t : { l i n e : 2 2 , c o l u m n : 2 } , e n d : { l i n e : 2 2 , c o l u m n : 4 4 } } , 2 : { s t a r t : { l i n e : 2 2 , c o l u m n : 2 8 } , e n d : { l i n e : 2 2 , c o l u m n : 4 2 } } , 3 : { s t a r t : { l i n e : 2 3 , c o l u m n : 2 } , e n d : { l i n e : 2 3 , c o l u m n : 2 8 } } , 4 : { s t a r t : { l i n e : 2 4 , c o l u m n : 2 } , e n d : { l i n e : 2 4 , c o l u m n : 1 9 } } , 5 : { s t a r t : { l i n e : 2 7 , c o l u m n : 2 6 } , e n d : { l i n e : 3 3 , c o l u m n : 3 } } , 6 : { s t a r t : { l i n e : 3 4 , c o l u m n : 1 6 } , e n d : { l i n e : 3 4 , c o l u m n : 5 5 } } , 7 : { s t a r t : { l i n e : 3 5 , c o l u m n : 2 } , e n d : { l i n e Line truncated
` ).reduce((r,a)=>Math.max(r,d z(n,a)),0);return t[e]=i,i}function x ee(n,e){const t=[],i=[],r=[];let a=0,l=0,o=0,m=0;for(let C=0,S=e.length;C<=S;C+=2){const O=e[C];if(O=== `
` ||C===S){a=Math.max(a,l),r.push(l),l=0,o+=m,m=0;continue}const U=e[C+1]||n.font,K=dz(U,O);t.push(K),l+=K;const z=bee(U);i.push(z),m=Math.max(m,z)}return{width:a,height:o,widths:t,heights:i,lineWidths:r}}function Mee(n,e,t,i,r,a,l,o,m,C,S){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=O=>O.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(m,C),n.scale(S[0],S[1]),See(i,n)):S[0]<0||S[1]<0?(n.translate(m,C),n.scale(S[0],S[1]),n.drawImage(i,r,a,l,o,0,0,l,o)):n.drawImage(i,r,a,l,o,m,C,l*S[0],o*S[1]),n.restore()}function See(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class _2{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=zh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new _2({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Co()}getImage(e){return Co()}getHitDetectionImage(){return Co()}getPixelRatio(e){return 1}getImageState(){return Co()}getImageSize(){return Co()}getOrigin(){return Co()}getSize(){return Co()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=zh(e)}listenImageChange(e){Co()}load(){Co()}unlistenImageChange(e){Co()}ready(){return Promise.resolve()}}class b2 extends _2{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?hr.LOADING:hr.LOADED,this.imageState_===hr.LOADING&&this.ready().then(()=>this.imageState_=hr.LOADED),this.render()}clone(){const e=this.getScale(),t=new b2({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i= ` $ { e } , $ { this . angle _ } , $ { this . radius } , $ { this . radius2 _ } , $ { this . points _ } , $ { t } ` +Object.values(this.renderOptions_).join(",");let r=vm.get(i,null,null)?.getImage(1);if(!r){const a=this.renderOptions_,l=Math.ceil(a.size*e),o=jA(l,l);this.draw_(a,o,e),r=o.canvas,vm.set(i,null,null,new uz(r,void 0,null,hr.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,a=this.radius2_===void 0?r:this.radius2_;if(r<a){const oe=r;r=a,a=oe}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,m=a*Math.sin(o),C=Math.sqrt(a*a-m*m),S=r-C,O=Math.sqrt(m*m+S*S),U=O/m;if(e==="miter"&&U<=i)return U*t;const K=t/2/U,z=t/2*(S/O),Q=Math.sqrt((r+K)*(r+K)+z*z)-r;if(this.radius2_===void 0||e==="bevel")return Q*2;const ee=r*Math.sin(o),V=Math.sqrt(r*r-ee*ee),ae=a-V,Z=Math.sqrt(ee*ee+ae*ae)/ee;if(Z<=i){const oe=Z*t/2-a-r;return 2*Math.max(Q,oe)}return Q*2}createRenderOptions(){let e=Rv,t=Pv,i=0,r=null,a=0,l,o=0;this.stroke_&&(l=Yp(this.stroke_.getColor()??
Line truncated
` ,""),n.push(e,""),n}function y te(n,e,t){return t%2===0&&(n+=e),n}class v te{constructor(e,t,i,r,a){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=q d(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=a?new X O:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const a=e+t+i+r;if(this.labels_[a])return this.labels_[a];const l=r?this.strokeStates[r]:null,o=i?this.fillStates[i]:null,m=this.textStates[t],C=this.pixelRatio,S=[m.scale[0]*C,m.scale[1]*C],O=m.justify?p 3[m.justify]:u M(Array.isArray(e)?e[0]:e,m.textAlign||P _),U=r&&l.lineWidth?l.lineWidth:0,K=Array.isArray(e)?e:String(e).split( `
` ).reduce(g te,[]),{width:z,height:j,widths:Q,heights:ee,lineWidths:V}=x ee(m,K),ae=z+U,ne=[],Z=(ae+2)*S[0],oe=(j+U)*S[1],W={width:Z<0?Math.floor(Z):Math.ceil(Z),height:oe<0?Math.floor(oe):Math.ceil(oe),contextInstructions:ne};(S[0]!=1||S[1]!=1)&&ne.push("scale",S),r&&(ne.push("strokeStyle",l.strokeStyle),ne.push("lineWidth",U),ne.push("lineCap",l.lineCap),ne.push("lineJoin",l.lineJoin),ne.push("miterLimit",l.miterLimit),ne.push("setLineDash",[l.lineDash]),ne.push("lineDashOffset",l.lineDashOffset)),i&&ne.push("fillStyle",o.fillStyle),ne.push("textBaseline","middle"),ne.push("textAlign","center");const c e=.5-O;let ge=O*ae+c e*U;const ye=[],Me=[];let Be=0,we=0,qe=0,xe=0,ze;for(let ot=0,yt=K.length;ot<yt;ot+=2){const nt=K[ot];if(nt=== `
` ){we+=Be,Be=0,ge=O*ae+ce*U,++xe;continue}const be=K[ot+1]||m.font;be!==ze&&(r&&ye.push("font",be),i&&Me.push("font",be),ze=be),Be=Math.max(Be,ee[qe]);const Ge=[nt,ge+ce*Q[qe]+O*(Q[qe]-V[xe]),.5*(U+Be)+we];ge+=Q[qe],r&&ye.push("strokeText",Ge),i&&Me.push("fillText",Ge),++qe}return Array.prototype.push.apply(ne,ye),Array.prototype.push.apply(ne,Me),this.labels_[a]=W,W}replayTextBackground_(e,t,i,r,a,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,a),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,a,l,o,m,C,S,O,U,K,z,j,Q){o*=U[0],m*=U[1];let ee=i-o,V=r-m;const ae=a+C>e?e-C:a,ne=l+S>t?t-S:l,Z=z[3]+ae*U[0]+z[1],oe=z[0]+ne*U[1]+z[2],W=ee-z[3],ce=V-z[0];(j||O!==0)&&(c1[0]=W,h1[0]=W,c1[1]=ce,S0[1]=ce,S0[0]=W+Z,w0[0]=S0[0],w0[1]=ce+oe,h1[1]=w0[1]);let ge;return O!==0?(ge=Jp(qd(),i,r,1,1,O,-i,-r),ec(ge,c1),ec(ge,S0),ec(ge,w0),ec(ge,h1),U0(Math.min(c1[0],S0[0],w0[0],h1[0]),Math.min(c1[1],S0[1],w0[1],h1[1]),Math.max(c1[0],S0[0],w0[0],h1[0]),Math.max(c1[1],S0[1],w0[1],h1[1]),ky)):U0(Math.min(W,W+Z),Math.min(ce,ce+oe),Math.max(W,W+Z),Math.max(ce,ce+oe),ky),K&&(ee=Math.round(ee),V=Math.round(V)),{drawImageX:ee,drawImageY:V,drawImageW:ae,drawImageH:ne,originX:C,originY:S,declutterBox:{minX:ky[0],minY:ky[1],maxX:ky[2],maxY:ky[3],value:Q},canvasTransform:ge,scale:U}}replayImageOrLabel_(e,t,i,r,a,l,o){const m=!!(l||o),C=r.declutterBox,S=o?o[2]*r.scale[0]/2:0;return C.minX-S<=t[0]&&C.maxX+S>=0&&C.minY-S<=t[1]&&C.maxY+S>=0&&(m&&this.replayTextBackground_(e,c1,S0,w0,h1,l,o),Mee(e,r.canvasTransform,a,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=ec(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const a=this.textStates[t],l=this.createLabel(e,t,r,i),o=this.strokeStates[i],m=this.pixelRatio,C=uM(Array.isArray(e)?e[0]:e,a.textAlign||P_),S=p3[a.textBaseline||A3],O=o&&o.lineWidth?o.lineWidth:0,U=l.width/m-2*a.scale[0],K=C*U+2*(.5-C)*O,z=S*l.height/m+2*(.5-S)*O;return{label:l,anchorX:K,anchorY:z}}execute_(e,t,i,r,a,l,o,m){const C=this.zIndexContext_;let S;this.pixelCoordinates_&&F1(i,this.renderedTransform_)?S=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),S=P1(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),bX(this.renderedTransform_,i));let O=0;const U=r.length;let K=0,z,j,Q,ee,V,ae,ne,Z,oe,W,ce,ge,ye,Me=0,Be=0;const we=this.coordinateCache_,qe=this.viewRotation_,xe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,ze={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:qe},ot=this.instructions!=r||this.overlaps?0:200;let yt,nt,be,Ge;for(;O<U;){const tt=r[O];switch(tt[0]){case Wr.BEGIN_GEOMETRY:yt=tt[1],Ge=tt[3],yt.getGeometry()?o!==void 0&&!uu(o,Ge.getExtent())?O=tt[2]+1:++O:O=tt[2],C&&(C.zIndex=tt[4]);break;case Wr.BEGIN_PATH:Me>ot&&(this.fill_(e),Me=0),Be>ot&&(e.stroke(),Be=0),!Me&&!Be&&(e.beginPath(),V=NaN,ae=NaN),++O;break;case Wr.CIRCLE:K=tt[1];const It=S[K],pt=S[K+1],St=S[K+2],Rt=S[K+3],Le=St-It,Pe=Rt-pt,Re=Math.sqrt(Le*Le+Pe*Pe);e.moveTo(It+Re,pt),e.arc(It,pt,Re,0,2*Math.PI,!0),++O;break;case Wr.CLOSE_PATH:e.closePath(),++O;break;case Wr.CUSTOM:K=tt[1],z=tt[2];const He=tt[3],bt=tt[4],vt=tt[5];ze.geometry=He,ze.feature=yt,O in we||(we[O]=[]);const Ot=we[O];vt?vt(S,K,z,2,Ot):(Ot[0]=S[K],Ot[1]=S[K+1],Ot.length=2),C&&(C.zIndex=tt[6]),bt(Ot,ze),++O;break;case Wr.DRAW_IMAGE:K=tt[1],z=tt[2],oe=tt[3],j=tt[4],Q=tt[5];let qt=tt[6];const Kt=tt[7],on=tt[8],Jn=tt[9],Wt=tt[10];let $ n=tt[11];const On=tt[12];let Bn=tt[13];ee=tt[14]||"declutter";const In=tt[15];if(!oe&&tt.length>=20){W=tt[19],ce=tt[20],ge=tt[21],ye=tt[22];const Mn=this.drawLabelWithPointPlacement_(W,ce,ge,ye);oe=Mn.label,tt[3]=oe;const ii=tt[23];j=(Mn.anchorX-ii)*this.pixelRatio,tt[4]=j;const Wn=tt[24];Q=(Mn.anchorY-Wn)*this.pixelRatio,tt[5]=Q,qt=oe.height,tt[6]=qt,Bn=oe.width,tt[13]=Bn}let Bi;tt.length>25&&(Bi=tt[25]);let ei,Kn,Ne;tt.length>17?(ei=tt[16],Kn=tt[17],Ne=tt[18]):(ei=Og,Kn=null,Ne=null),Wt&&xe? $ n+=qe:!Wt&&!xe&&( $ n-=qe);let de=0;for(;K<z;K+=2){if(Bi&&Bi[de++]<Bn/this.pixelRatio)continue;const Mn=this.calculateImageOrLabelDimensions_(oe.width,oe.height,S[K],S[K+1],Bn,qt,j,Q,on,Jn, $ n,On,a,ei,!!Kn||!!Ne,yt),ii=[e,t,oe,Mn,Kt,Kn,Ne];if(m){let Wn,qi,er;if(In){const ti=z-K;if(!In[ti]){In[ti]={args:ii,declutterMode:ee};continue}const Wi=In[ti];Wn=Wi.args,qi=Wi.declutterMode,delete In[ti],er=jI(Wn)}let wi,hi;if(Wn&&(qi!=="declutter"||!m.collides(er))&&(wi=!0),(ee!=="declutter"||!m.collides(Mn.declutterBox))&&(hi=!0),qi==="declutter"&&ee==="de
Line truncated
` ),r=K te.slice(0,Math.round(e/.1));for(let a=0,l=i.length;a<l;++a)a>0&&(t+= `
` ),t+=i[a].split("").join(r);return t}return n}let d M;function F z(){return d M||(d M=B 2(1,1).getContext("2d")),d M}function pg(n,e){return F z().measureText(n).width+(n.length-1)*e}const v 3={};xg.on("propertychange",()=>{for(const n in v 3)delete v 3[n]});function u B(n,e,t,i){if(n.indexOf( `
` ,hs().s[12]++,this._textEl=this._container.querySelector("span"),hs().s[13]++,this.updateZoomLevel()}addEventListeners(){hs().f[4]++,hs().s[14]++,this._map.on("render",()=>(hs().f[5]++,hs().s[15]++,this.updateZoomLevel())),hs().s[16]++,this._map.on("zoomIn",()=>(hs().f[6]++,hs().s[17]++,this.updateZoomLevel())),hs().s[18]++,this._map.on("zoomOut",()=>(hs().f[7]++,hs().s[19]++,this.updateZoomLevel()))}onRemove(){hs().f[8]++,hs().s[20]++,this._container.parentNode.removeChild(this._container),hs().s[21]++,this._map=void 0}}function k6(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["=="," $ type","Point"]};return t&&(i["source-layer"]=t),i}function D6(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["=="," $ type","Polygon"]};return i&&(r["source-layer"]=i),r}function R6(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["=="," $ type","LineString"]};return t&&(i["source-layer"]=t),i}function T $ (n,e){const t=[],i=[],r=[];function a(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const m=a(l);i.push(k6(m.circle,l)),r.push(R6(m.line,l)),t.push(D6(m.polygon,m.polygonOutline,l))}else o.forEach(m=>{const C=a(m);i.push(k6(C.circle,l,m)),r.push(R6(C.line,l,m)),t.push(D6(C.polygon,C.polygonOutline,l,m))})}),t.concat(r).concat(i)}function k $ (n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(a=>{const l=n.sources[a];(l.type==="vector"||l.type==="geojson")&&(r[a]=l)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const B4={polygonLayer:D6,lineLayer:R6,circleLayer:k6,generateInspectStyle:k $ ,generateColoredLayers:T $ };function vo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s
Line truncated
$ { this . _localize ( "errorNoResults" ) } < / d i v > ` ; t h i s . _ r e n d e r M e s s a g e ( e ) } _ r e n d e r M e s s a g e ( e ) { t h i s . _ t y p e a h e a d . u p d a t e ( [ ] ) , t h i s . _ t y p e a h e a d . s e l e c t e d = n u l l , t h i s . _ t y p e a h e a d . c l e a r ( ) , t h i s . _ t y p e a h e a d . r e n d e r E r r o r ( e ) } _ l o c a l i z e ( e ) { c o n s t t = j $ . l a n g u a g e ( t h i s . o p t i o n s . l a n g u a g e . s p l i t ( " , " ) [ 0 ] ) ; r e t u r n t h i s . o p t i o n s . l a n g u a g e & & m C ? . [ e ] [ t ] ? m C [ e ] [ t ] : m C [ e ] . e n } _ f i t B o u n d s F o r M a r k e r s ( ) { i f ( t h i s . _ t y p e a h e a d . d a t a . l e n g t h < 1 ) r e t u r n ; c o n s t e = t h i s . _ t y p e a h e a d . d a t a . f i l t e r ( t = > t y p e o f t ! = " s t r i n g " ) . s l i c e ( 0 , t h i s . o p t i o n s . l i m i t ) ; i f ( t h i s . _ c l e a r E l . s t y l e . d i s p l a y = " n o n e " , t h i s . o p t i o n s . f l y T o & & t h i s . _ m a p l i b r e g l & & t h i s . _ m a p ) { c o n s t i = W m ( { } , { p a d d i n g : 1 0 0 } , t h i s . o p t i o n s . f l y T o ) , r = n e w t h i s . _ m a p l i b r e g l . L n g L a t B o u n d s ; f o r ( c o n s t a o f e ) r . e x t e n d ( a . g e o m e t r y . c o o r d i n a t e s ) ; t h i s . _ m a p . f i t B o u n d s ( r , i ) } r e t u r n e . l e n g t h > 0 & & t h i s . _ m a p l i b r e g l & & t h i s . _ h a n d l e R e s u l t M a r k e r s ( e ) , t h i s } s e t I n p u t ( e ) { r e t u r n t h i s . _ i n p u t E l . v a l u e = e , t h i s . _ t y p e a h e a d . s e l e c t e d = n u l l , t h i s . _ t y p e a h e a d . c l e a r ( ) , e . l e n g t h > = t h i s . o p t i o n s . m i n L e n g t h & & t h i s . o p t i o n s . s h o w R e s u l t s W h i l e T y p i n g & & t h i s . _ g e o c o d e ( e ) , t h i s } s e t P r o x i m i t y ( e ) { r e t u r n t h i s . o p t i o n s . p r o x i m i t y = e , t h i s } g e t P r o x i m i t y ( ) { r e t u r n t h i s . o p t i o n s . p r o x i m i t y } s e t R e n d e r F u n c t i o n ( e ) { r e t u r n e & & t y p e o f e = = " f u n c t i o n " & & ( t h i s . _ t y p e a h e a d . r e n d e r = e ) , t h i s } g e t R e n d e r F u n c t i o n ( ) { r e t u r n t h i s . _ t y p e a h e a d . r e n d e r } s e t L a n g u a g e ( e ) { r e t u r n t h i s . o p t i o n s . l a n g u a g e = e | | t h i s . o p t i o n s . l a n g u a g e | | n a v i g a t o r . l a n g u a g e , t h i s } g e t L a n g u a g e ( ) { r e t u r n t h i s . o p t i o n s . l a n g u a g e } g e t Z o o m ( ) { r e t u r n t h i s . o p t i o n s . z o o m } s e t Z o o m ( e ) { r e t u r n t h i s . o p t i o n s . z o o m = e , t h i s } g e t F l y T o ( ) { r e t u r n t h i s . o p t i o n s . f l y T o } s e t F l y T o ( e ) { r e t u r n t h i s . o p t i o n s . f l y T o = e , t h i s } g e t P l a c e h o l d e r ( ) { r e t u r n t h i s . o p t i o n s . p l a c e h o l d e r } s e t P l a c e h o l d e r ( e ) { r e t u r n t h i s . p l a c e h o l d e r = e | | t h i s . o p t i o n s . p l a c e h o l d e r | | t h i s . _ l o c a l i z e ( " p l a c e h o l d e r " ) , t h i s . _ i n p u t E l . p l a c e h o l d e r = t h i s . p l a c e h o l d e r , t h i s . _ i n p u t E l . s e t A t t r i b u t e ( " a r i a - l a b e l " , t h i s . p l a c e h o l d e r ) , t h i s } g e t B b o x ( ) { r e t u r n t h i s . o p t i o n s . b b o x } s e t B b o x ( e ) { r e t u r n t h i s . o p t i o n s . b b o x = e , t h i s } g e t C o u n t r i e s ( ) { r e t u r n t h i s . o p t i o n s . c o u n t r i e s } s e t C o u n t r i e s ( e ) { r e t u r n t h i s . o p t i o n s . c o u n t r i e s = e , t h i s } g e t T y p e s ( ) { r e t u r n t h i s . o p t i o n s . t y p e s } s e t T y p e s ( e ) { r e t u r n t h i s . o p t i o n s . t y p e s = e , t h i s } g e t M i n L e n g t h ( ) { r e t u r n t h i s . o p t i o n s . m i n L e n g t h } s e t M i n L e n g t h ( e ) { r e t u r n t h i s . o p t i o n s . m i n L e n g t h = e , t h i s . _ t y p e a h e a d & & ( t h i s . _ t y p e a h e a d . o p t i o n s . m i n L e n g t h = e ) , t h i s } g e t L i m i t ( ) { r e t u r n t h i s . o p t i o n s . l i m i t } s e t L i m i t ( e ) { r e t u r n t h i s . o p t i o n s . l i m i t = e , t h i s . _ t y p e a h e a d & & ( t h i s . _ t y p e a h e a d . o p t i o n s . l i m i t = e ) , t h i s } g e t F i l t e r ( ) { r e t u r n t h i s . o p t i o n s . f i l t e r } s e t F i l t e r ( e ) { r e t u r n t h i s . o p t i o n s . f i l t e r = e , t h i s } s e t G e o c o d e r A p i ( e ) { r e t u r n t h i s . g e o c o d e r A p i = e , t h i s } g e t G e o c o d e r A p i ( ) { r e t u r n t h i s . g e o c o d e r A p i } _ h a n d l e M a r k e r ( e ) { i f ( ! t h i s . _ m a p ) r e t u r n ; t h i s . _ r e m o v e M a r k e r ( ) ; c o n s t i = W m ( { } , { c o l o r : " # 4 6 6 8 F 2 " } , t h i s . o p t i o n s . m a r k e r ) ; t h i s . m a p M a r k e r = n e w t h i s . _ m a p l i b r e g l . M a r k e r ( i ) ; l e t r ; i f ( t h i s . o p t i o n s . p o p u p ) { c o n s t l = W m ( { } , { } , t h i s . o p t i o n s . p o p u p ) ; r = n e w t h i s . _ m a p l i b r e g l . P o p u p ( l ) . s e t H T M L ( t h i s . o p t i o n s . p o p u p R e n d e r ( e ) ) } r e t u r n e . c e n t e r ? ( t h i s . m a p M a r k e r . s e t L n g L a t ( e . c e n t e r ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & t h i s . m a p M a r k e r . s e t P o p u p ( r ) ) : e . g e o m e t r y & & e . g e o m e t r y . t y p e & & e . g e o m e t r y . t y p e = = = " P o i n t " & & e . g e o m e t r y . c o o r d i n a t e s & & ( t h i s . m a p M a r k e r . s e t L n g L a t ( e . g e o m e t r y . c o o r d i n a t e s ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & t h i s . m a p M a r k e r . s e t P o p u p ( r ) ) , t h i s } _ r e m o v e M a r k e r ( ) { t h i s . m a p M a r k e r & & ( t h i s . m a p M a r k e r . r e m o v e ( ) , t h i s . m a p M a r k e r = n u l l ) } _ h a n d l e R e s u l t M a r k e r s ( e ) { i f ( ! t h i s . _ m a p ) r e t u r n ; t h i s . _ r e m o v e R e s u l t M a r k e r s ( ) ; l e t i = W m ( { } , { c o l o r : " # 4 6 6 8 F 2 " } , t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s ) ; f o r ( c o n s t r o f e ) { l e t a ; i f ( t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s ) { t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s & & t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s . e l e m e n t & & ( a = t h i s . o p t i o n s . s h o w R e s u l t M a r k e r s . e l e m e n t . c l o n e N o d e ( ! 0 ) , i = W m ( i , { e l e m e n t : a } ) ) ; c o n s t l = n e w t h i s . _ m a p l i b r e g l . M a r k e r ( W m ( { } , i , { e l e m e n t : a } ) ) ; l e t o ; i f ( t h i s . o p t i o n s . p o p u p ) { c o n s t C = W m ( { } , { } , t h i s . o p t i o n s . p o p u p ) ; o = n e w t h i s . _ m a p l i b r e g l . P o p u p ( C ) . s e t H T M L ( t h i s . o p t i o n s . p o p u p R e n d e r ( r ) ) } r . c e n t e r ? ( l . s e t L n g L a t ( r . c e n t e r ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & l . s e t P o p u p ( o ) ) : r . g e o m e t r y & & r . g e o m e t r y . t y p e & & r . g e o m e t r y . t y p e = = = " P o i n t " & & r . g e o m e t r y . c o o r d i n a t e s & & ( l . s e t L n g L a t ( r . g e o m e t r y . c o o r d i n a t e s ) . a d d T o ( t h i s . _ m a p ) , t h i s . o p t i o n s . p o p u p & & l . s e t P o p u p ( o ) ) , t h i s . r e s u l t M a r k e r s . p u s h ( l ) } } r e t u r n t h i s } _ r e m o v e R e s u l t M a r k e r s ( ) { t h i s . r e s u l t M a r k e r s & & t h i s . r e s u l t M a r k e r s . l e n g t h > 0 & & ( t h i s . r e s u l t M a r k e r s . f o r E a c h ( f u n c t i o n ( e ) { e . r e m o v e ( ) } ) , t h i s . r e s u l t M a r k e r s = [ ] ) } o n ( e , t ) { r e t u r n t h i s . _ e v e n t E m i t t e r . o n ( e , t ) , t h i s } o n c e ( e ) { r e t u r n n e w P r o m i s e ( t = > { t h i s . _ e v e n t E m i t t e r . o n c e ( e , t ) } ) } o f f ( e , t ) { r e t u r n t h i s . _ e v e n t E m i t t e r . r e m o v e L i s t e n e r ( e , t ) , t h i s } } f u n c t i o n b n ( ) { v a r n = " / h o m e / r u n n e r / w o r k / m a p u t n i k / m a p u t n i k / s r c / c o m p o n e n t s / M a p M a p l i b r e G l . t s x " , e = " b 7 2 5 2 e 9 6 c 4 0 c 4 2 7 2 4 d c b e 9 8 7 b a 8 0 0 5 9 c b c 7 4 2 d 6 7 " , t = g l o b a l T h i s , i = " _ _ c o v e r a g e _ _ " , r = { p a t h : " / h o m e / r u n n e r / w o r k / m a p u t n i k / m a p u t n i k / s r c / c o m p o n e n t s / M a p M a p l i b r e G l . t s x " , s t a t e m e n t M a p : { 0 : { s t a r t : { l i n e : 2 1 , c o l u m n : 1 5 } , e n d : { l i n e : 2 1 , c o l u m n : 3 6 } } , 1 : { s t a r t : { l i n e : 2 2 , c o l u m n : 2 } , e n d : { l i n e : 2 2 , c o l u m n : 4 4 } } , 2 : { s t a r t : { l i n e : 2 2 , c o l u m n : 2 8 } , e n d : { l i n e : 2 2 , c o l u m n : 4 2 } } , 3 : { s t a r t : { l i n e : 2 3 , c o l u m n : 2 } , e n d : { l i n e : 2 3 , c o l u m n : 2 8 } } , 4 : { s t a r t : { l i n e : 2 4 , c o l u m n : 2 } , e n d : { l i n e : 2 4 , c o l u m n : 1 9 } } , 5 : { s t a r t : { l i n e : 2 7 , c o l u m n : 2 6 } , e n d : { l i n e : 3 3 , c o l u m n : 3 } } , 6 : { s t a r t : { l i n e : 3 4 , c o l u m n : 1 6 } , e n d : { l i n e : 3 4 , c o l u m n : 5 5 } } , 7 : { s t a r t : { l i n e : 3 5 , c o l u m n : 2 } , e n d : { l i n e Line truncated
` ).reduce((r,a)=>Math.max(r,s z(n,a)),0);return t[e]=i,i}function c ee(n,e){const t=[],i=[],r=[];let a=0,l=0,o=0,m=0;for(let C=0,S=e.length;C<=S;C+=2){const O=e[C];if(O=== `
` ||C===S){a=Math.max(a,l),r.push(l),l=0,o+=m,m=0;continue}const U=e[C+1]||n.font,K=sz(U,O);t.push(K),l+=K;const z=uee(U);i.push(z),m=Math.max(m,z)}return{width:a,height:o,widths:t,heights:i,lineWidths:r}}function hee(n,e,t,i,r,a,l,o,m,C,S){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=O=>O.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(m,C),n.scale(S[0],S[1]),dee(i,n)):S[0]<0||S[1]<0?(n.translate(m,C),n.scale(S[0],S[1]),n.drawImage(i,r,a,l,o,0,0,l,o)):n.drawImage(i,r,a,l,o,m,C,l*S[0],o*S[1]),n.restore()}function dee(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class m2{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=zh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new m2({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Co()}getImage(e){return Co()}getHitDetectionImage(){return Co()}getPixelRatio(e){return 1}getImageState(){return Co()}getImageSize(){return Co()}getOrigin(){return Co()}getSize(){return Co()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=zh(e)}listenImageChange(e){Co()}load(){Co()}unlistenImageChange(e){Co()}ready(){return Promise.resolve()}}class p2 extends m2{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?hr.LOADING:hr.LOADED,this.imageState_===hr.LOADING&&this.ready().then(()=>this.imageState_=hr.LOADED),this.render()}clone(){const e=this.getScale(),t=new p2({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i= ` $ { e } , $ { this . angle _ } , $ { this . radius } , $ { this . radius2 _ } , $ { this . points _ } , $ { t } ` +Object.values(this.renderOptions_).join(",");let r=ym.get(i,null,null)?.getImage(1);if(!r){const a=this.renderOptions_,l=Math.ceil(a.size*e),o=jA(l,l);this.draw_(a,o,e),r=o.canvas,ym.set(i,null,null,new rz(r,void 0,null,hr.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,a=this.radius2_===void 0?r:this.radius2_;if(r<a){const oe=r;r=a,a=oe}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,m=a*Math.sin(o),C=Math.sqrt(a*a-m*m),S=r-C,O=Math.sqrt(m*m+S*S),U=O/m;if(e==="miter"&&U<=i)return U*t;const K=t/2/U,z=t/2*(S/O),Q=Math.sqrt((r+K)*(r+K)+z*z)-r;if(this.radius2_===void 0||e==="bevel")return Q*2;const ee=r*Math.sin(o),V=Math.sqrt(r*r-ee*ee),ae=a-V,Z=Math.sqrt(ee*ee+ae*ae)/ee;if(Z<=i){const oe=Z*t/2-a-r;return 2*Math.max(Q,oe)}return Q*2}createRenderOptions(){let e=Rv,t=Pv,i=0,r=null,a=0,l,o=0;this.stroke_&&(l=Yp(this.stroke_.getColor()??
Line truncated
` ,""),n.push(e,""),n}function a te(n,e,t){return t%2===0&&(n+=e),n}class s te{constructor(e,t,i,r,a){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Y d(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=a?new Y O:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const a=e+t+i+r;if(this.labels_[a])return this.labels_[a];const l=r?this.strokeStates[r]:null,o=i?this.fillStates[i]:null,m=this.textStates[t],C=this.pixelRatio,S=[m.scale[0]*C,m.scale[1]*C],O=m.justify?u 3[m.justify]:r M(Array.isArray(e)?e[0]:e,m.textAlign||O _),U=r&&l.lineWidth?l.lineWidth:0,K=Array.isArray(e)?e:String(e).split( `
` ).reduce(o te,[]),{width:z,height:j,widths:Q,heights:ee,lineWidths:V}=c ee(m,K),ae=z+U,ne=[],Z=(ae+2)*S[0],oe=(j+U)*S[1],W={width:Z<0?Math.floor(Z):Math.ceil(Z),height:oe<0?Math.floor(oe):Math.ceil(oe),contextInstructions:ne};(S[0]!=1||S[1]!=1)&&ne.push("scale",S),r&&(ne.push("strokeStyle",l.strokeStyle),ne.push("lineWidth",U),ne.push("lineCap",l.lineCap),ne.push("lineJoin",l.lineJoin),ne.push("miterLimit",l.miterLimit),ne.push("setLineDash",[l.lineDash]),ne.push("lineDashOffset",l.lineDashOffset)),i&&ne.push("fillStyle",o.fillStyle),ne.push("textBaseline","middle"),ne.push("textAlign","center");const u e=.5-O;let ge=O*ae+u e*U;const ye=[],Me=[];let Be=0,we=0,qe=0,xe=0,ze;for(let ot=0,yt=K.length;ot<yt;ot+=2){const nt=K[ot];if(nt=== `
` ){we+=Be,Be=0,ge=O*ae+ue*U,++xe;continue}const be=K[ot+1]||m.font;be!==ze&&(r&&ye.push("font",be),i&&Me.push("font",be),ze=be),Be=Math.max(Be,ee[qe]);const Ne=[nt,ge+ue*Q[qe]+O*(Q[qe]-V[xe]),.5*(U+Be)+we];ge+=Q[qe],r&&ye.push("strokeText",Ne),i&&Me.push("fillText",Ne),++qe}return Array.prototype.push.apply(ne,ye),Array.prototype.push.apply(ne,Me),this.labels_[a]=W,W}replayTextBackground_(e,t,i,r,a,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,a),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,a,l,o,m,C,S,O,U,K,z,j,Q){o*=U[0],m*=U[1];let ee=i-o,V=r-m;const ae=a+C>e?e-C:a,ne=l+S>t?t-S:l,Z=z[3]+ae*U[0]+z[1],oe=z[0]+ne*U[1]+z[2],W=ee-z[3],ue=V-z[0];(j||O!==0)&&(c1[0]=W,h1[0]=W,c1[1]=ue,S0[1]=ue,S0[0]=W+Z,w0[0]=S0[0],w0[1]=ue+oe,h1[1]=w0[1]);let ge;return O!==0?(ge=Jp(Yd(),i,r,1,1,O,-i,-r),ec(ge,c1),ec(ge,S0),ec(ge,w0),ec(ge,h1),U0(Math.min(c1[0],S0[0],w0[0],h1[0]),Math.min(c1[1],S0[1],w0[1],h1[1]),Math.max(c1[0],S0[0],w0[0],h1[0]),Math.max(c1[1],S0[1],w0[1],h1[1]),ky)):U0(Math.min(W,W+Z),Math.min(ue,ue+oe),Math.max(W,W+Z),Math.max(ue,ue+oe),ky),K&&(ee=Math.round(ee),V=Math.round(V)),{drawImageX:ee,drawImageY:V,drawImageW:ae,drawImageH:ne,originX:C,originY:S,declutterBox:{minX:ky[0],minY:ky[1],maxX:ky[2],maxY:ky[3],value:Q},canvasTransform:ge,scale:U}}replayImageOrLabel_(e,t,i,r,a,l,o){const m=!!(l||o),C=r.declutterBox,S=o?o[2]*r.scale[0]/2:0;return C.minX-S<=t[0]&&C.maxX+S>=0&&C.minY-S<=t[1]&&C.maxY+S>=0&&(m&&this.replayTextBackground_(e,c1,S0,w0,h1,l,o),hee(e,r.canvasTransform,a,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=ec(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const a=this.textStates[t],l=this.createLabel(e,t,r,i),o=this.strokeStates[i],m=this.pixelRatio,C=rM(Array.isArray(e)?e[0]:e,a.textAlign||O_),S=u3[a.textBaseline||i3],O=o&&o.lineWidth?o.lineWidth:0,U=l.width/m-2*a.scale[0],K=C*U+2*(.5-C)*O,z=S*l.height/m+2*(.5-S)*O;return{label:l,anchorX:K,anchorY:z}}execute_(e,t,i,r,a,l,o,m){const C=this.zIndexContext_;let S;this.pixelCoordinates_&&F1(i,this.renderedTransform_)?S=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),S=P1(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),uX(this.renderedTransform_,i));let O=0;const U=r.length;let K=0,z,j,Q,ee,V,ae,ne,Z,oe,W,ue,ge,ye,Me=0,Be=0;const we=this.coordinateCache_,qe=this.viewRotation_,xe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,ze={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:qe},ot=this.instructions!=r||this.overlaps?0:200;let yt,nt,be,Ne;for(;O<U;){const tt=r[O];switch(tt[0]){case Wr.BEGIN_GEOMETRY:yt=tt[1],Ne=tt[3],yt.getGeometry()?o!==void 0&&!uu(o,Ne.getExtent())?O=tt[2]+1:++O:O=tt[2],C&&(C.zIndex=tt[4]);break;case Wr.BEGIN_PATH:Me>ot&&(this.fill_(e),Me=0),Be>ot&&(e.stroke(),Be=0),!Me&&!Be&&(e.beginPath(),V=NaN,ae=NaN),++O;break;case Wr.CIRCLE:K=tt[1];const It=S[K],pt=S[K+1],St=S[K+2],Rt=S[K+3],Le=St-It,Pe=Rt-pt,Re=Math.sqrt(Le*Le+Pe*Pe);e.moveTo(It+Re,pt),e.arc(It,pt,Re,0,2*Math.PI,!0),++O;break;case Wr.CLOSE_PATH:e.closePath(),++O;break;case Wr.CUSTOM:K=tt[1],z=tt[2];const He=tt[3],bt=tt[4],vt=tt[5];ze.geometry=He,ze.feature=yt,O in we||(we[O]=[]);const Ot=we[O];vt?vt(S,K,z,2,Ot):(Ot[0]=S[K],Ot[1]=S[K+1],Ot.length=2),C&&(C.zIndex=tt[6]),bt(Ot,ze),++O;break;case Wr.DRAW_IMAGE:K=tt[1],z=tt[2],oe=tt[3],j=tt[4],Q=tt[5];let qt=tt[6];const Kt=tt[7],on=tt[8],Jn=tt[9],Wt=tt[10];let $ n=tt[11];const On=tt[12];let Bn=tt[13];ee=tt[14]||"declutter";const In=tt[15];if(!oe&&tt.length>=20){W=tt[19],ue=tt[20],ge=tt[21],ye=tt[22];const Mn=this.drawLabelWithPointPlacement_(W,ue,ge,ye);oe=Mn.label,tt[3]=oe;const ii=tt[23];j=(Mn.anchorX-ii)*this.pixelRatio,tt[4]=j;const Wn=tt[24];Q=(Mn.anchorY-Wn)*this.pixelRatio,tt[5]=Q,qt=oe.height,tt[6]=qt,Bn=oe.width,tt[13]=Bn}let Bi;tt.length>25&&(Bi=tt[25]);let ei,Kn,Ge;tt.length>17?(ei=tt[16],Kn=tt[17],Ge=tt[18]):(ei=Og,Kn=null,Ge=null),Wt&&xe? $ n+=qe:!Wt&&!xe&&( $ n-=qe);let de=0;for(;K<z;K+=2){if(Bi&&Bi[de++]<Bn/this.pixelRatio)continue;const Mn=this.calculateImageOrLabelDimensions_(oe.width,oe.height,S[K],S[K+1],Bn,qt,j,Q,on,Jn, $ n,On,a,ei,!!Kn||!!Ge,yt),ii=[e,t,oe,Mn,Kt,Kn,Ge];if(m){let Wn,qi,er;if(In){const ti=z-K;if(!In[ti]){In[ti]={args:ii,declutterMode:ee};continue}const Wi=In[ti];Wn=Wi.args,qi=Wi.declutterMode,delete In[ti],er=U9(Wn)}let wi,hi;if(Wn&&(qi!=="declutter"||!m.collides(er))&&(wi=!0),(ee!=="declutter"||!m.collides(Mn.declutterBox))&&(hi=!0),qi==="declutter"&&ee==="de
Line truncated
` ),r=M te.slice(0,Math.round(e/.1));for(let a=0,l=i.length;a<l;++a)a>0&&(t+= `
` ),t+=i[a].split("").join(r);return t}return n}let s M;function D z(){return s M||(s M=b 2(1,1).getContext("2d")),s M}function pg(n,e){return D z().measureText(n).width+(n.length-1)*e}const d 3={};xg.on("propertychange",()=>{for(const n in d 3)delete d 3[n]});function r B(n,e,t,i){if(n.indexOf( `
` )!==-1){const l=n.split( `
` ),o=[];for(let m=0,C=l.length;m<C;++m)o.push(u B(l[m],e,t,i));return o.join( `
` )}const r=t+","+e+","+n+","+i;let a=v 3[r];if(!a){const l=n.split(" ");if(l.length>1){const o=F z();o.font=e;const C=o.measureText("M").width*t;let S="";const O=[];for(let U=0,K=l.length;U<K;++U){const z=l[U],j=S+(S?" ":"")+z;pg(j,i)<=C?S=j:(S&&O.push(S),S=z)}S&&O.push(S);for(let U=0,K=O.length;U<K&&K>1;++U){const z=O[U];if(pg(z,i)<C*.35){const j=U>0?pg(O[U-1],i):1/0,Q=U<K-1?pg(O[U+1],i):1/0;O.splice(U,1),K-=1,j<Q?(O[U-1]+=" "+z,U-=1):O[U]=z+" "+O[U]}}for(let U=0,K=O.length-1;U<K;++U){const z=O[U],j=O[U+1];if(pg(z,i)>C*.7&&pg(j,i)<C*.6){const Q=z.split(" "),ee=Q.pop();pg(ee,i)<C*.2&&(O[U]=Q.join(" "),O[U+1]=ee+" "+j),K-=1}}a=O.join( `
` )}else a=n;a=AB(a,i),v3[r]=a}return a}const Ute=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],JI={};function Lte(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const a=n[i];if(a in JI)continue;JI[a]=!0;const o=G6(a,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const a=t[i],l=a[0];if(Ute.includes(l))continue;const o=a[1],m=a[2];if(!(await document.fonts.load( ` $ { m } $ { o } 16 px "${l}" ` )).some(S=>S.family.replace(/^['"]|['"] $ /g,"").toLowerCase()===l.toLowerCase()&&S.weight==o&&S.style===m)){const S=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",m.replace("normal","").replace(/(.+)/,"- $ 1")).replace("{fontstyle}",m);if(!document.querySelector('link[href="'+S+'"]')){const O=document.createElement("link");O.href=S,O.rel="stylesheet",document.head.appendChild(O)}}}})(),n}const Fte={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},zte={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Gte=function(n,e){const t=n2(n,e);if(t.result==="error")throw new Error(t.value.map(i=> ` $ { i . key } : $ { i . message } ` ).join(", "));return t.value},Bf={zoom:0,distanceFromCenter:0};wf.register(X3,{...wf.definitions,pitch:[{kind:"number"},[],n=>Bf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Bf.distanceFromCenter||0]});let rx,fM;function Cr(n,e,t,i,r,a){const l=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[l]||(r[l]={});const o=r[l];if(!o[t]){let m=(n[e]||tp)[t];const C=Mf[ ` $ { e } _$ { n . type } ` ][t];m===void 0&&(m=C.default);let S=jv(m);if(!S&&Nv(m)&&(m=rO(m,C),S=!0),S){const O=Gte(m,C);o[t]=O.evaluate.bind(O)}else C.type=="color"&&(m=tl.parse(m)),o[t]=function(){return m}}return o[t](Bf,i,a)}function eT(n,e,t,i){return Cr(n,"layout", ` $ { t } - allow - overlap ` ,e,i)?Cr(n,"layout", ` $ { t } - ignore - placement ` ,e,i)?"none":"obstacle":"declutter"}function Nte(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=NH(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Bf,t)}function p1(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const jte=/ \{ [^{}}]* \} /g;function mM(n,e){return n.replace(jte,function(t){return e[t.slice(1,-1)]||""})}function tT(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Wte={};function Qte(n,e,t,i=Xp,r=void 0,a=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Wte[Dte(e,n)]=Array.from(arguments);const m={};(typeof a=="string"||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(const Z in a){const oe=a[Z];Tv(()=>oe).then(async W=>{let ce;if(typeof Image<"u"){const ge=new Image;if(typeof W=="string")ge.crossOrigin="anonymous",ge.src=W;else{let ye;W instanceof Request?ye=await fetch(W):W instanceof Response&&(ye=W);const Me=await ye.blob();ce=URL.createObjectURL(Me),ge.src=ce}ge.addEventListener("load",function ye(){ge.removeEventListener("load",ye),m[Z]={image:ge,size:[ge.width,ge.height]},n.changed(),ce&&URL.revokeObjectURL(ce)}),ge.addEventListener("error",function ye(){URL.revokeObjectURL(ce),ge.removeEventListener("error",ye)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:W}),ge.addEventListener("message",function(Me){Me.data.action==="imageLoaded"&&Me.data.src===W&&(m[Z]={image:Me.data.image,size:[Me.data.image.width,Me.data.image.height]})})}})}const C=FB(e.layers),S={},O=[],U={},K={},z=Kz(e),j=Rte(e);let Q;for(let Z=0,oe=C.length;Z<oe;++Z){const W=C[Z],ce=W.id;if(typeof t=="string"&&W.source==t||Array.isArray(t)&&t.indexOf(ce)!==-1){const ge=W["source-layer"];if(Q){if(W.source!==Q)throw new Error( ` Layer "${ce}" does not use source "${Q}`)}else{Q=W.source;const Me=e.sources[Q];if(!Me)throw new Error(`Source " $ { Q } " is not defined`);const Be=Me.type;if(Be!==" vector "&&Be!==" geojson ")throw new Error(`Source " $ { Q } " is not of type " vector " or " geojson ", but " $ { Be } "`)}let ye=S[ge];ye||(ye=[],S[ge]=ye),ye.push({layer:W,index:Z}),O.push(ce)}}const ee=new S1,V=new k0,ae=[],ne=function(Z,oe,W){const ce=n.getSource?.()?.format_?.layerName_??" mvt : layer ",ge=Z.getProperties(),ye=S[ge[ce]];if(!ye)return;let Me=i.indexOf(oe);Me==-1&&(Me=r8(oe,i)),Bf.zoom=Me,Bf.distanceFromCenter=0;const Be=Z.getGeometry(),we=Fte[Be.getType()],qe=n.get(" map " ) ; if ( qe && qe instanceof w2 && we === 1 ) { const yt = qe . Line truncated
` )return N e.push( `
` ,""),N e;if(we==2)return N e.push(A B(Te,In),me),N e;Te=u B(Te,me,Bi,In).split( `
` );for(let We=0,dt=Te.length;We<dt;++We)We>0&&N e.push( `
` ,""),Ne.push(Te[We],me);return Ne},[]):Wt=mM(Kn,ge).trim(),Rt=Cr(Ge,"paint","text-opacity",xe,z,ze)}if(Wt&&Rt&&!Jn){vt||(++ot,He=ae[ot],(!He||!He.getText()||He.getFill()||He.getStroke())&&(He=new _f,ae[ot]=He),He.setImage(void 0),He.setGeometry(void 0));const ei=eT(Ge,xe,"text",z);He.getText()||He.setText(Ot),Ot=He.getText(),(!Ot||"getDeclutterMode"in Ot&&Ot.getDeclutterMode()!==ei)&&(Ot=new x2({padding:[2,2,2,2],declutterMode:ei}),He.setText(Ot));const Kn=Cr(Ge,"layout","text-transform",xe,z,ze);Kn=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((kt,it)=>it%2?kt:kt.toUpperCase()):Wt.toUpperCase():Kn=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((kt,it)=>it%2?kt:kt.toLowerCase()):Wt.toLowerCase());const Ne=Array.isArray(Wt)?Wt:we==2?AB(Wt,In):uB(Wt, $ n,Bi,In);if(Ot.setText(Ne),Ot.setFont( $ n),Ot.setRotation(hM(Cr(Ge,"layout","text-rotate",xe,z,ze))),typeof Ot.setKeepUpright=="function"){const kt=Cr(Ge,"layout","text-keep-upright",xe,z,ze);Ot.setKeepUpright(kt)}const de=Cr(Ge,"layout","text-anchor",xe,z,ze),re=vt||we==1?"point":Cr(Ge,"layout","symbol-placement",xe,z,ze);let le;if(re==="line-center"?(Ot.setPlacement("line"),le="center"):Ot.setPlacement(re),re==="line"&&typeof Ot.setRepeat=="function"){const kt=Cr(Ge,"layout","symbol-spacing",xe,z,ze);Ot.setRepeat(kt*2)}Ot.setOverflow(re==="point");let me=Cr(Ge,"paint","text-halo-width",xe,z,ze);const Te=Cr(Ge,"layout","text-offset",xe,z,ze),We=Cr(Ge,"paint","text-translate",xe,z,ze);let dt=0,Ye=0;if(re=="point"){le="center",de.indexOf("left")!==-1?(le="left",Ye=me):de.indexOf("right")!==-1&&(le="right",Ye=-me);const kt=Cr(Ge,"layout","text-rotation-alignment",xe,z,ze);Ot.setRotateWithView(kt=="map")}else Ot.setMaxAngle(hM(Cr(Ge,"layout","text-max-angle",xe,z,ze))*Wt.length/Ne.length),Ot.setRotateWithView(!1);Ot.setTextAlign(le);let De="middle";de.indexOf("bottom")==0?(De="bottom",dt=-me-.5*(On-1)*Bn):de.indexOf("top")==0&&(De="top",dt=me+.5*(On-1)*Bn),Ot.setTextBaseline(De);const Ze=Cr(Ge,"layout","text-justify",xe,z,ze);Ot.setJustify(Ze==="auto"?void 0:Ze),Ot.setOffsetX(Te[0]*Bn+Ye+We[0]),Ot.setOffsetY(Te[1]*Bn+dt+We[1]),V.setColor(p1(Cr(Ge,"paint","text-color",xe,z,ze),Rt)),Ot.setFill(V);const g=p1(Cr(Ge,"paint","text-halo-color",xe,z,ze),Rt);if(g&&me>0){ee.setColor(g),me*=2;const kt=.5*Bn;ee.setWidth(me<=kt?me:kt),Ot.setStroke(ee)}else Ot.setStroke(void 0);const gt=Cr(Ge,"layout","text-padding",xe,z,ze),ht=Ot.getPadding();gt!==ht[0]&&(ht[0]=gt,ht[1]=gt,ht[2]=gt,ht[3]=gt),He.setZIndex(bt)}}}if(ot>-1)return ae.length=ot+1,ae};return n.setStyle(ne),n.set("mapbox-layers",O),n.set("mapbox-source",Q),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class zz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=E2,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Ws(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Ws(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return Co()}readFeature(e,t){return Co()}readFeatures(e,t){return Co()}readGeometry(e,t){return Co()}readProjection(e){return Co()}writeFeature(e,t){return Co()}writeFeatures(e,t){return Co()}writeGeometry(e,t){return Co()}}function O2(n,e,t){const i=t?Ws(t.featureProjection):null,r=t?Ws(t.dataProjection):null;let a=n;if(i&&r&&!R1(i,r)){e&&(a=n.clone());const l=e?i:r,o=e?r:i;l.getUnits()==="tile-pixels"?a.transform(l,o):a.applyTransform(I_(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(m){for(let C=0,S=m.length;C<S;++C)m[C]=Math.round(m[C]*l)/l;return m};a===n&&(a=n.clone()),a.applyTransform(o)}return a}const Yte={Point:Qg,LineString:qg,Polygon:F0,MultiPoint:Mb,MultiLineString:F_,MultiPolygon:z_};function qte(n,e,t){return Array.isArray(e[0])?(VF(n,0,e,t)||(n=n.slice(),eB(n,0,e,t)),n):(DO(n,0,e,t)||(n=n.slice(),s3(n,0,e,t)),n)}function Gz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(a=>Gz({...n,geometry:a})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return O2(new Fh(i,i==="Polygon"?qte(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function o8(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>o8(r,e));return new f3(i)}const t=Yte[n.type];return O2(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Hte extends zz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(ox(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(ox(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return Co()}readFeaturesFromObject(e,
Line truncated
` ),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function nie(n,e){const t=eG(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}class iie extends hb{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=tie(e,this.onWorkerMessage_.bind(this,r));else i[0]=nie(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(m){return m.data.buffer}),a=this.workers_.length;if(this.running_=a,a===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/a);for(let m=0;m<a;++m){const C=m*o,S=[];for(let O=0,U=r.length;O<U;++O)S.push(r[O].slice(C,C+o));this.workers_[m].postMessage({buffers:S,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},S)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const a=e.inputs[0].data.length;i=new Uint8ClampedArray(a),r=new Array(t);const l=4*Math.ceil(a/4/t);for(let o=0;o<t;++o){const m=this.dataLookup_[o].buffer,C=o*l;i.set(new Uint8ClampedArray(m),C),r[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const cT={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class hT extends up{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class tG extends $ z{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=aie(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(mo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new CF(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:qd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:oie(this.layers_),pixelRatio:1,pixelToCoordinateTransform:qd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Io(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let a=0,l=e.sources.length;a<l;++a){const o=e.sources[a],m=o instanceof Vv?o:o.getSource();if(!m)continue;const C=m.getAttributions()?.(i);typeof C=="string"?r.push(C):C!==void 0&&r.push(...C)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new iie({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const a=Of(e);r.size[0]=Math.ceil(as(e)/t),r.size[1]=Math.ceil(nc(e)/t),r.extent=[a[0]-r.size[0]*t/2,a[1]-r.size[1]*t/2,a[0]+r.size[0]*t/2,a[1]+r.size[1]*t/2],r.time=Date.now();const l=r.viewState;return l.center=a,l.projection=i,l.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const a=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=a,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!L0(a.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),a.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_,t=th
Line truncated
` );this.generateTileUrlFunction_?this.setTileUrlFunction(nG(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class gie extends k2{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:yie,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:Dz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!R1(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||R1(t,e)))return this.tileGrid;const i=Io(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Zz(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,a,l){const o=[e,t,i],m=this.getTileCoordForTileUrlFunction(o,a),C=m?this.tileUrlFunction(m,r,a):void 0,S=new this.tileClass(o,C!==void 0?Pi.IDLE:Pi.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return S.key=l,S.addEventListener(mo.CHANGE,this.handleTileChange.bind(this)),S}getTile(e,t,i,r,a){const l=this.getProjection();if(!l||!a||R1(l,a))return this.getTileInternal(e,t,i,r,l||a);const o=[e,t,i],m=this.getKey(),C=this.getTileGridForProjection(l),S=this.getTileGridForProjection(a),O=this.getTileCoordForTileUrlFunction(o,a),U=new qz(l,C,a,S,o,O,this.getTilePixelRatio(r),this.getGutter(),(K,z,j,Q)=>this.getTileInternal(K,z,j,Q,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return U.key=m,U}getTileInternal(e,t,i,r,a){const l=this.getKey();return this.createTile_(e,t,i,r,a,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Ws(e);if(i){const r=Io(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function yie(n,e){n.getImage().src=e}class iG extends gie{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ws("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)lie(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either ` url ` or ` tileJSON ` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ws("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const C=gb(t,i);r=UZ(e.bounds,C)}const a=T2(i),l=e.minzoom||0,o=e.maxzoom||22,m=s8({extent:a,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=m,this.tileUrlFunction=nG(e.tiles,m),e.attribution&&!this.getAttributions()){const C=r!==void 0?r:a;this.setAttributions(function(S){return uu(C,S.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class l8 extends k2{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||T2(t),r=e.tileGrid||s8({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:rG,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:Rz,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Pi.IDLE){i.setState(Pi.LOADING);const r=i.wr
Line truncated
` ),o=[];for(let m=0,C=l.length;m<C;++m)o.push(r B(l[m],e,t,i));return o.join( `
` )}const r=t+","+e+","+n+","+i;let a=d 3[r];if(!a){const l=n.split(" ");if(l.length>1){const o=D z();o.font=e;const C=o.measureText("M").width*t;let S="";const O=[];for(let U=0,K=l.length;U<K;++U){const z=l[U],j=S+(S?" ":"")+z;pg(j,i)<=C?S=j:(S&&O.push(S),S=z)}S&&O.push(S);for(let U=0,K=O.length;U<K&&K>1;++U){const z=O[U];if(pg(z,i)<C*.35){const j=U>0?pg(O[U-1],i):1/0,Q=U<K-1?pg(O[U+1],i):1/0;O.splice(U,1),K-=1,j<Q?(O[U-1]+=" "+z,U-=1):O[U]=z+" "+O[U]}}for(let U=0,K=O.length-1;U<K;++U){const z=O[U],j=O[U+1];if(pg(z,i)>C*.7&&pg(j,i)<C*.6){const Q=z.split(" "),ee=Q.pop();pg(ee,i)<C*.2&&(O[U]=Q.join(" "),O[U+1]=ee+" "+j),K-=1}}a=O.join( `
` )}else a=n;a=iB(a,i),d3[r]=a}return a}const Ste=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],q9={};function wte(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const a=n[i];if(a in q9)continue;q9[a]=!0;const o=P6(a,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const a=t[i],l=a[0];if(Ste.includes(l))continue;const o=a[1],m=a[2];if(!(await document.fonts.load( ` $ { m } $ { o } 16 px "${l}" ` )).some(S=>S.family.replace(/^['"]|['"] $ /g,"").toLowerCase()===l.toLowerCase()&&S.weight==o&&S.style===m)){const S=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",m.replace("normal","").replace(/(.+)/,"- $ 1")).replace("{fontstyle}",m);if(!document.querySelector('link[href="'+S+'"]')){const O=document.createElement("link");O.href=S,O.rel="stylesheet",document.head.appendChild(O)}}}})(),n}const Ete={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Bte={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Ote=function(n,e){const t= $ 3(n,e);if(t.result==="error")throw new Error(t.value.map(i=> ` $ { i . key } : $ { i . message } ` ).join(", "));return t.value},Ef={zoom:0,distanceFromCenter:0};Sf.register(Y3,{...Sf.definitions,pitch:[{kind:"number"},[],n=>Ef.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Ef.distanceFromCenter||0]});let Xb,lM;function Cr(n,e,t,i,r,a){const l=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[l]||(r[l]={});const o=r[l];if(!o[t]){let m=(n[e]||ep)[t];const C=xf[ ` $ { e } _$ { n . type } ` ][t];m===void 0&&(m=C.default);let S=jv(m);if(!S&&Gv(m)&&(m=XB(m,C),S=!0),S){const O=Ote(m,C);o[t]=O.evaluate.bind(O)}else C.type=="color"&&(m=tl.parse(m)),o[t]=function(){return m}}return o[t](Ef,i,a)}function H9(n,e,t,i){return Cr(n,"layout", ` $ { t } - allow - overlap ` ,e,i)?Cr(n,"layout", ` $ { t } - ignore - placement ` ,e,i)?"none":"obstacle":"declutter"}function Ite(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=KH(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Ef,t)}function p1(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const Tte=/ \{ [^{}}]* \} /g;function AM(n,e){return n.replace(Tte,function(t){return e[t.slice(1,-1)]||""})}function V9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const kte={};function Dte(n,e,t,i=Xp,r=void 0,a=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");kte[_te(e,n)]=Array.from(arguments);const m={};(typeof a=="string"||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(const Z in a){const oe=a[Z];Tv(()=>oe).then(async W=>{let ue;if(typeof Image<"u"){const ge=new Image;if(typeof W=="string")ge.crossOrigin="anonymous",ge.src=W;else{let ye;W instanceof Request?ye=await fetch(W):W instanceof Response&&(ye=W);const Me=await ye.blob();ue=URL.createObjectURL(Me),ge.src=ue}ge.addEventListener("load",function ye(){ge.removeEventListener("load",ye),m[Z]={image:ge,size:[ge.width,ge.height]},n.changed(),ue&&URL.revokeObjectURL(ue)}),ge.addEventListener("error",function ye(){URL.revokeObjectURL(ue),ge.removeEventListener("error",ye)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:W}),ge.addEventListener("message",function(Me){Me.data.action==="imageLoaded"&&Me.data.src===W&&(m[Z]={image:Me.data.image,size:[Me.data.image.width,Me.data.image.height]})})}})}const C=DB(e.layers),S={},O=[],U={},K={},z=Iz(e),j=bte(e);let Q;for(let Z=0,oe=C.length;Z<oe;++Z){const W=C[Z],ue=W.id;if(typeof t=="string"&&W.source==t||Array.isArray(t)&&t.indexOf(ue)!==-1){const ge=W["source-layer"];if(Q){if(W.source!==Q)throw new Error( ` Layer "${ue}" does not use source "${Q}`)}else{Q=W.source;const Me=e.sources[Q];if(!Me)throw new Error(`Source " $ { Q } " is not defined`);const Be=Me.type;if(Be!==" vector "&&Be!==" geojson ")throw new Error(`Source " $ { Q } " is not of type " vector " or " geojson ", but " $ { Be } "`)}let ye=S[ge];ye||(ye=[],S[ge]=ye),ye.push({layer:W,index:Z}),O.push(ue)}}const ee=new S1,V=new k0,ae=[],ne=function(Z,oe,W){const ue=n.getSource?.()?.format_?.layerName_??" mvt : layer ",ge=Z.getProperties(),ye=S[ge[ue]];if(!ye)return;let Me=i.indexOf(oe);Me==-1&&(Me=XO(oe,i)),Ef.zoom=Me,Ef.distanceFromCenter=0;const Be=Z.getGeometry(),we=Ete[Be.getType()],qe=n.get(" map " ) ; if ( qe && qe instanceof C2 && we === 1 ) { const yt = qe . Line truncated
` )return G e.push( `
` ,""),G e;if(we==2)return G e.push(i B(Te,In),me),G e;Te=r B(Te,me,Bi,In).split( `
` );for(let We=0,dt=Te.length;We<dt;++We)We>0&&G e.push( `
` ,""),Ge.push(Te[We],me);return Ge},[]):Wt=AM(Kn,ge).trim(),Rt=Cr(Ne,"paint","text-opacity",xe,z,ze)}if(Wt&&Rt&&!Jn){vt||(++ot,He=ae[ot],(!He||!He.getText()||He.getFill()||He.getStroke())&&(He=new Cf,ae[ot]=He),He.setImage(void 0),He.setGeometry(void 0));const ei=H9(Ne,xe,"text",z);He.getText()||He.setText(Ot),Ot=He.getText(),(!Ot||"getDeclutterMode"in Ot&&Ot.getDeclutterMode()!==ei)&&(Ot=new g2({padding:[2,2,2,2],declutterMode:ei}),He.setText(Ot));const Kn=Cr(Ne,"layout","text-transform",xe,z,ze);Kn=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((kt,it)=>it%2?kt:kt.toUpperCase()):Wt.toUpperCase():Kn=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((kt,it)=>it%2?kt:kt.toLowerCase()):Wt.toLowerCase());const Ge=Array.isArray(Wt)?Wt:we==2?iB(Wt,In):rB(Wt, $ n,Bi,In);if(Ot.setText(Ge),Ot.setFont( $ n),Ot.setRotation(aM(Cr(Ne,"layout","text-rotate",xe,z,ze))),typeof Ot.setKeepUpright=="function"){const kt=Cr(Ne,"layout","text-keep-upright",xe,z,ze);Ot.setKeepUpright(kt)}const de=Cr(Ne,"layout","text-anchor",xe,z,ze),re=vt||we==1?"point":Cr(Ne,"layout","symbol-placement",xe,z,ze);let le;if(re==="line-center"?(Ot.setPlacement("line"),le="center"):Ot.setPlacement(re),re==="line"&&typeof Ot.setRepeat=="function"){const kt=Cr(Ne,"layout","symbol-spacing",xe,z,ze);Ot.setRepeat(kt*2)}Ot.setOverflow(re==="point");let me=Cr(Ne,"paint","text-halo-width",xe,z,ze);const Te=Cr(Ne,"layout","text-offset",xe,z,ze),We=Cr(Ne,"paint","text-translate",xe,z,ze);let dt=0,Ye=0;if(re=="point"){le="center",de.indexOf("left")!==-1?(le="left",Ye=me):de.indexOf("right")!==-1&&(le="right",Ye=-me);const kt=Cr(Ne,"layout","text-rotation-alignment",xe,z,ze);Ot.setRotateWithView(kt=="map")}else Ot.setMaxAngle(aM(Cr(Ne,"layout","text-max-angle",xe,z,ze))*Wt.length/Ge.length),Ot.setRotateWithView(!1);Ot.setTextAlign(le);let De="middle";de.indexOf("bottom")==0?(De="bottom",dt=-me-.5*(On-1)*Bn):de.indexOf("top")==0&&(De="top",dt=me+.5*(On-1)*Bn),Ot.setTextBaseline(De);const Ze=Cr(Ne,"layout","text-justify",xe,z,ze);Ot.setJustify(Ze==="auto"?void 0:Ze),Ot.setOffsetX(Te[0]*Bn+Ye+We[0]),Ot.setOffsetY(Te[1]*Bn+dt+We[1]),V.setColor(p1(Cr(Ne,"paint","text-color",xe,z,ze),Rt)),Ot.setFill(V);const g=p1(Cr(Ne,"paint","text-halo-color",xe,z,ze),Rt);if(g&&me>0){ee.setColor(g),me*=2;const kt=.5*Bn;ee.setWidth(me<=kt?me:kt),Ot.setStroke(ee)}else Ot.setStroke(void 0);const gt=Cr(Ne,"layout","text-padding",xe,z,ze),ht=Ot.getPadding();gt!==ht[0]&&(ht[0]=gt,ht[1]=gt,ht[2]=gt,ht[3]=gt),He.setZIndex(bt)}}}if(ot>-1)return ae.length=ot+1,ae};return n.setStyle(ne),n.set("mapbox-layers",O),n.set("mapbox-source",Q),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class Rz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=_2,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Ws(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Ws(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return Co()}readFeature(e,t){return Co()}readFeatures(e,t){return Co()}readGeometry(e,t){return Co()}readProjection(e){return Co()}writeFeature(e,t){return Co()}writeFeatures(e,t){return Co()}writeGeometry(e,t){return Co()}}function x2(n,e,t){const i=t?Ws(t.featureProjection):null,r=t?Ws(t.dataProjection):null;let a=n;if(i&&r&&!R1(i,r)){e&&(a=n.clone());const l=e?i:r,o=e?r:i;l.getUnits()==="tile-pixels"?a.transform(l,o):a.applyTransform(M_(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(m){for(let C=0,S=m.length;C<S;++C)m[C]=Math.round(m[C]*l)/l;return m};a===n&&(a=n.clone()),a.applyTransform(o)}return a}const Rte={Point:Qg,LineString:qg,Polygon:F0,MultiPoint:yb,MultiLineString:D_,MultiPolygon:R_};function Pte(n,e,t){return Array.isArray(e[0])?(jF(n,0,e,t)||(n=n.slice(),H6(n,0,e,t)),n):(EO(n,0,e,t)||(n=n.slice(),t3(n,0,e,t)),n)}function Pz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(a=>Pz({...n,geometry:a})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return x2(new Fh(i,i==="Polygon"?Pte(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function JO(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>JO(r,e));return new l3(i)}const t=Rte[n.type];return x2(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Kte extends Rz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Jb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Jb(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return Co()}readFeaturesFromObject(e,
Line truncated
` ),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function Wne(n,e){const t=Hz(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}class Qne extends ab{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=jne(e,this.onWorkerMessage_.bind(this,r));else i[0]=Wne(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(m){return m.data.buffer}),a=this.workers_.length;if(this.running_=a,a===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/a);for(let m=0;m<a;++m){const C=m*o,S=[];for(let O=0,U=r.length;O<U;++O)S.push(r[O].slice(C,C+o));this.workers_[m].postMessage({buffers:S,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},S)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const a=e.inputs[0].data.length;i=new Uint8ClampedArray(a),r=new Array(t);const l=4*Math.ceil(a/4/t);for(let o=0;o<t;++o){const m=this.dataLookup_[o].buffer,C=o*l;i.set(new Uint8ClampedArray(m),C),r[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const oT={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class aT extends Ap{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class Vz extends Wz{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Hne(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(mo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new fF(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:Yd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:qne(this.layers_),pixelRatio:1,pixelToCoordinateTransform:Yd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Io(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let a=0,l=e.sources.length;a<l;++a){const o=e.sources[a],m=o instanceof Vv?o:o.getSource();if(!m)continue;const C=m.getAttributions()?.(i);typeof C=="string"?r.push(C):C!==void 0&&r.push(...C)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Qne({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const a=Bf(e);r.size[0]=Math.ceil(as(e)/t),r.size[1]=Math.ceil(nc(e)/t),r.extent=[a[0]-r.size[0]*t/2,a[1]-r.size[1]*t/2,a[0]+r.size[0]*t/2,a[1]+r.size[1]*t/2],r.time=Date.now();const l=r.viewState;return l.center=a,l.projection=i,l.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const a=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=a,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!L0(a.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),a.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_,t=th
Line truncated
` );this.generateTileUrlFunction_?this.setTileUrlFunction( $ z(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class oie extends w2{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:aie,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:Ez,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!R1(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||R1(t,e)))return this.tileGrid;const i=Io(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Qz(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,a,l){const o=[e,t,i],m=this.getTileCoordForTileUrlFunction(o,a),C=m?this.tileUrlFunction(m,r,a):void 0,S=new this.tileClass(o,C!==void 0?Pi.IDLE:Pi.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return S.key=l,S.addEventListener(mo.CHANGE,this.handleTileChange.bind(this)),S}getTile(e,t,i,r,a){const l=this.getProjection();if(!l||!a||R1(l,a))return this.getTileInternal(e,t,i,r,l||a);const o=[e,t,i],m=this.getKey(),C=this.getTileGridForProjection(l),S=this.getTileGridForProjection(a),O=this.getTileCoordForTileUrlFunction(o,a),U=new Nz(l,C,a,S,o,O,this.getTilePixelRatio(r),this.getGutter(),(K,z,j,Q)=>this.getTileInternal(K,z,j,Q,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return U.key=m,U}getTileInternal(e,t,i,r,a){const l=this.getKey();return this.createTile_(e,t,i,r,a,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Ws(e);if(i){const r=Io(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function aie(n,e){n.getImage().src=e}class Zz extends oie{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ws("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp) $ ne(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either ` url ` or ` tileJSON ` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ws("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const C=cb(t,i);r=SZ(e.bounds,C)}const a=S2(i),l=e.minzoom||0,o=e.maxzoom||22,m=t8({extent:a,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=m,this.tileUrlFunction= $ z(e.tiles,m),e.attribution&&!this.getAttributions()){const C=r!==void 0?r:a;this.setAttributions(function(S){return uu(C,S.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class n8 extends w2{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||S2(t),r=e.tileGrid||t8({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Xz,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:Bz,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Pi.IDLE){i.setState(Pi.LOADING);const r=i.wr
Line truncated
Copyright ( c ) 2018 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
* / v a r p T ; f u n c t i o n K i e ( ) { r e t u r n p T | | ( p T = 1 , f u n c t i o n ( n ) { ( f u n c t i o n ( ) { v a r e = { } . h a s O w n P r o p e r t y ; f u n c t i o n t ( ) { f o r ( v a r a = " " , l = 0 ; l < a r g u m e n t s . l e n g t h ; l + + ) { v a r o = a r g u m e n t s [ l ] ; o & & ( a = r ( a , i ( o ) ) ) } r e t u r n a } f u n c t i o n i ( a ) { i f ( t y p e o f a = = " s t r i n g " | | t y p e o f a = = " n u m b e r " ) r e t u r n a ; i f ( t y p e o f a ! = " o b j e c t " ) r e t u r n " " ; i f ( A r r a y . i s A r r a y ( a ) ) r e t u r n t . a p p l y ( n u l l , a ) ; i f ( a . t o S t r i n g ! = = O b j e c t . p r o t o t y p e . t o S t r i n g & & ! a . t o S t r i n g . t o S t r i n g ( ) . i n c l u d e s ( " [ n a t i v e c o d e ] " ) ) r e t u r n a . t o S t r i n g ( ) ; v a r l = " " ; f o r ( v a r o i n a ) e . c a l l ( a , o ) & & a [ o ] & & ( l = r ( l , o ) ) ; r e t u r n l } f u n c t i o n r ( a , l ) { r e t u r n l ? a ? a + " " + l : a + l : a } n . e x p o r t s ? ( t . d e f a u l t = t , n . e x p o r t s = t ) : w i n d o w . c l a s s N a m e s = t } ) ( ) } ( x M ) ) , x M . e x p o r t s } v a r U i e = K i e ( ) ; c o n s t e 0 = W A ( U i e ) ; v a r L C = P 3 ( ) ; f u n c t i o n L i e ( ) { f o r ( v a r n = a r g u m e n t s . l e n g t h , e = n e w A r r a y ( n ) , t = 0 ; t < n ; t + + ) e [ t ] = a r g u m e n t s [ t ] ; r e t u r n N t . u s e M e m o ( ( ) = > i = > { e . f o r E a c h ( r = > r ( i ) ) } , e ) } c o n s t D 2 = t y p e o f w i n d o w < " u " & & t y p e o f w i n d o w . d o c u m e n t < " u " & & t y p e o f w i n d o w . d o c u m e n t . c r e a t e E l e m e n t < " u " ; f u n c t i o n $ v ( n ) { c o n s t e = O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) ; r e t u r n e = = = " [ o b j e c t W i n d o w ] " | | e = = = " [ o b j e c t g l o b a l ] " } f u n c t i o n A 8 ( n ) { r e t u r n " n o d e T y p e " i n n } f u n c t i o n V d ( n ) { v a r e , t ; r e t u r n n ? $ v ( n ) ? n : A 8 ( n ) & & ( e = ( t = n . o w n e r D o c u m e n t ) = = n u l l ? v o i d 0 : t . d e f a u l t V i e w ) ! = n u l l ? e : w i n d o w : w i n d o w } f u n c t i o n u 8 ( n ) { c o n s t { D o c u m e n t : e } = V d ( n ) ; r e t u r n n i n s t a n c e o f e } f u n c t i o n E b ( n ) { r e t u r n $ v ( n ) ? ! 1 : n i n s t a n c e o f V d ( n ) . H T M L E l e m e n t } f u n c t i o n h G ( n ) { r e t u r n n i n s t a n c e o f V d ( n ) . S V G E l e m e n t } f u n c t i o n Z v ( n ) { r e t u r n n ? $ v ( n ) ? n . d o c u m e n t : A 8 ( n ) ? u 8 ( n ) ? n : E b ( n ) | | h G ( n ) ? n . o w n e r D o c u m e n t : d o c u m e n t : d o c u m e n t : d o c u m e n t } c o n s t t 0 = D 2 ? N t . u s e L a y o u t E f f e c t : N t . u s e E f f e c t ; f u n c t i o n c 8 ( n ) { c o n s t e = N t . u s e R e f ( n ) ; r e t u r n t 0 ( ( ) = > { e . c u r r e n t = n } ) , N t . u s e C a l l b a c k ( f u n c t i o n ( ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , i = n e w A r r a y ( t ) , r = 0 ; r < t ; r + + ) i [ r ] = a r g u m e n t s [ r ] ; r e t u r n e . c u r r e n t = = n u l l ? v o i d 0 : e . c u r r e n t ( . . . i ) } , [ ] ) } f u n c t i o n F i e ( ) { c o n s t n = N t . u s e R e f ( n u l l ) , e = N t . u s e C a l l b a c k ( ( i , r ) = > { n . c u r r e n t = s e t I n t e r v a l ( i , r ) } , [ ] ) , t = N t . u s e C a l l b a c k ( ( ) = > { n . c u r r e n t ! = = n u l l & & ( c l e a r I n t e r v a l ( n . c u r r e n t ) , n . c u r r e n t = n u l l ) } , [ ] ) ; r e t u r n [ e , t ] } f u n c t i o n G _ ( n , e ) { e = = = v o i d 0 & & ( e = [ n ] ) ; c o n s t t = N t . u s e R e f ( n ) ; r e t u r n t 0 ( ( ) = > { t . c u r r e n t ! = = n & & ( t . c u r r e n t = n ) } , e ) , t } f u n c t i o n B b ( n , e ) { c o n s t t = N t . u s e R e f ( ) ; r e t u r n N t . u s e M e m o ( ( ) = > { c o n s t i = n ( t . c u r r e n t ) ; r e t u r n t . c u r r e n t = i , i } , [ . . . e ] ) } f u n c t i o n _ 3 ( n ) { c o n s t e = c 8 ( n ) , t = N t . u s e R e f ( n u l l ) , i = N t . u s e C a l l b a c k ( r = > { r ! = = t . c u r r e n t & & e ? . ( r , t . c u r r e n t ) , t . c u r r e n t = r } , [ ] ) ; r e t u r n [ t , i ] } f u n c t i o n p B ( n ) { c o n s t e = N t . u s e R e f ( ) ; r e t u r n N t . u s e E f f e c t ( ( ) = > { e . c u r r e n t = n } , [ n ] ) , e . c u r r e n t } l e t M M = { } ; f u n c t i o n O b ( n , e ) { r e t u r n N t . u s e M e m o ( ( ) = > { i f ( e ) r e t u r n e ; c o n s t t = M M [ n ] = = n u l l ? 0 : M M [ n ] + 1 ; r e t u r n M M [ n ] = t , n + " - " + t } , [ n , e ] ) } f u n c t i o n d G ( n ) { r e t u r n f u n c t i o n ( e ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , i = n e w A r r a y ( t > 1 ? t - 1 : 0 ) , r = 1 ; r < t ; r + + ) i [ r - 1 ] = a r g u m e n t s [ r ] ; r e t u r n i . r e d u c e ( ( a , l ) = > { c o n s t o = O b j e c t . e n t r i e s ( l ) ; f o r ( c o n s t [ m , C ] o f o ) { c o n s t S = a [ m ] ; S ! = n u l l & & ( a [ m ] = S + n * C ) } r e t u r n a } , { . . . e } ) } } c o n s t C v = d G ( 1 ) , b 3 = d G ( - 1 ) ; f u n c t i o n z i e ( n ) { r e t u r n " c l i e n t X " i n n & & " c l i e n t Y " i n n } f u n c t i o n h 8 ( n ) { i f ( ! n ) r e t u r n ! 1 ; c o n s t { K e y b o a r d E v e n t : e } = V d ( n . t a r g e t ) ; r e t u r n e & & n i n s t a n c e o f e } f u n c t i o n G i e ( n ) { i f ( ! n ) r e t u r n ! 1 ; c o n s t { T o u c h E v e n t : e } = V d ( n . t a r g e t ) ; r e t u r n e & & n i n s t a n c e o f e } f u n c t i o n g B ( n ) { i f ( G i e ( n ) ) { i f ( n . t o u c h e s & & n . t o u c h e s . l e n g t h ) { c o n s t { c l i e n t X : e , c l i e n t Y : t } = n . t o u c h e s [ 0 ] ; r e t u r n { x : e , y : t } } e l s e i f ( n . c h a n g e d T o u c h e s & & n . c h a n g e d T o u c h e s . l e n g t h ) { c o n s t { c l i e n t X : e , c l i e n t Y : t } = n . c h a n g e d T o u c h e s [ 0 ] ; r e t u r n { x : e , y : t } } } r e t u r n z i e ( n ) ? { x : n . c l i e n t X , y : n . c l i e n t Y } : n u l l } c o n s t N _ = O b j e c t . f r e e z e ( { T r a n s l a t e : { t o S t r i n g ( n ) { i f ( ! n ) r e t u r n ; c o n s t { x : e , y : t } = n ; r e t u r n " t r a n s l a t e 3 d ( " + ( e ? M a t h . r o u n d ( e ) : 0 ) + " p x , " + ( t ? M a t h . r o u n d ( t ) : 0 ) + " p x , 0 ) " } } , S c a l e : { t o S t r i n g ( n ) { i f ( ! n ) r e t u r n ; c o n s t { s c a l e X : e , s c a l e Y : t } = n ; r e t u r n " s c a l e X ( " + e + " ) s c a l e Y ( " + t + " ) " } } , T r a n s f o r m : { t o S t r i n g ( n ) { i f ( n ) r e t u r n [ N _ . T r a n s l a t e . t o S t r i n g ( n ) , N _ . S c a l e . t o S t r i n g ( n ) ] . j o i n ( " " ) } } , T r a n s i t i o n : { t o S t r i n g ( n ) { l e t { p r o p e r t y : e , d u r a t i o n : t , e a s i n g : i } = n ; r e t u r n e + " " + t + " m s " + i } } } ) , g T = " a , f r a m e , i f r a m e , i n p u t : n o t ( [ t y p e = h i d d e n ] ) : n o t ( : d i s a b l e d ) , s e l e c t : n o t ( : d i s a b l e d ) , t e x t a r e a : n o t ( : d i s a b l e d ) , b u t t o n : n o t ( : d i s a b l e d ) , * [ t a b i n d e x ] " ; f u n c t i o n N i e ( n ) { r e t u r n n . m a t c h e s ( g T ) ? n : n . q u e r y S e l e c t o r ( g T ) } c o n s t j i e = { d i s p l a y : " n o n e " } ; f u n c t i o n W i e ( n ) { l e t { i d : e , v a l u e : t } = n ; r e t u r n n i . c r e a t e E l e m e n t ( " d i v " , { i d : e , s t y l e : j i e } , t ) } f u n c t i o n Q i e ( n ) { l e t { i d : e , a n n o u n c e m e n t : t , a r i a L i v e T y p e : i = " a s s e r t i v e " } = n ; c o n s t r = { p o s i t i o n : " f i x e d " , t o p : 0 , l e f t : 0 , w i d t h : 1 , h e i g h t : 1 , m a r g i n : - 1 , b o r d e r : 0 , p a d d i n g : 0 , o v e r f l o w : " h i d d e n " , c l i p : " r e c t ( 0 0 0 0 ) " , c l i p P a t h : " i n s e t ( 1 0 0 % ) " , w h i t e S p a c e : " n o w r a p " } ; r e t u r n n i . c r e a t e E l e m e n t ( " d i v " , { i d : e , s t y l e : r , r o l e : " s t a t u s " , " a r i a - l i v e " : i , " a r i a - a t o m i c " : ! 0 } , t ) } f u n c t i o n Y i e ( ) { c o n s t [ n , e ] = N t . u s e S t a t e ( " " ) ; r e t u r n { a n n o u n c e : N t . u s e C a l l b a c k ( i = > { i ! = n u l l & & e ( i ) } , [ ] ) , a n n o u n c e m e n t : n } } c o n s t f G = N t . c r e a t e C o n t e x t ( n u l l ) ; f u n c t i o n q i e ( n ) { c o n s t e = N t . u s e C o n t e x t ( f G ) ; N t . u s e E f f e c t ( ( ) = > { i f ( ! e ) t h r o w n e w E r r o r ( " u s e D n d M o n i t o r m u s t b e u s e d w i t h i n a c h i l d r e n o f < D n d C o n t e x t > " ) ; r e t u r n e ( n ) } , [ n , e ] ) } f u n c t i o n H i e ( ) { c o n s t [ n ] = N t . u s e S t a t e ( ( ) = > n e w S e t ) , e = N t . u s e C a l l b a c k ( i = > ( n . a d d ( i ) , ( ) = > n . d e l e t e ( i ) ) , [ n ] ) ; r e t u r n [ N t . u s e C a l l b a c k ( i = > { l e t { t y p e : r , e v e n t : a } = i ; n . f o r E a c h ( l = > { v a r o ; r e t u r n ( o = l [ r ] ) = = n u l l ? v o i d 0 : o . c a l l ( l , a ) } ) } , [ n ] ) , e ] } c o n s t V i e = { d r a g g a b l e : `
* / v a r u T ; f u n c t i o n M i e ( ) { r e t u r n u T | | ( u T = 1 , f u n c t i o n ( n ) { ( f u n c t i o n ( ) { v a r e = { } . h a s O w n P r o p e r t y ; f u n c t i o n t ( ) { f o r ( v a r a = " " , l = 0 ; l < a r g u m e n t s . l e n g t h ; l + + ) { v a r o = a r g u m e n t s [ l ] ; o & & ( a = r ( a , i ( o ) ) ) } r e t u r n a } f u n c t i o n i ( a ) { i f ( t y p e o f a = = " s t r i n g " | | t y p e o f a = = " n u m b e r " ) r e t u r n a ; i f ( t y p e o f a ! = " o b j e c t " ) r e t u r n " " ; i f ( A r r a y . i s A r r a y ( a ) ) r e t u r n t . a p p l y ( n u l l , a ) ; i f ( a . t o S t r i n g ! = = O b j e c t . p r o t o t y p e . t o S t r i n g & & ! a . t o S t r i n g . t o S t r i n g ( ) . i n c l u d e s ( " [ n a t i v e c o d e ] " ) ) r e t u r n a . t o S t r i n g ( ) ; v a r l = " " ; f o r ( v a r o i n a ) e . c a l l ( a , o ) & & a [ o ] & & ( l = r ( l , o ) ) ; r e t u r n l } f u n c t i o n r ( a , l ) { r e t u r n l ? a ? a + " " + l : a + l : a } n . e x p o r t s ? ( t . d e f a u l t = t , n . e x p o r t s = t ) : w i n d o w . c l a s s N a m e s = t } ) ( ) } ( g M ) ) , g M . e x p o r t s } v a r S i e = M i e ( ) ; c o n s t e 0 = W A ( S i e ) ; v a r L C = O 3 ( ) ; f u n c t i o n w i e ( ) { f o r ( v a r n = a r g u m e n t s . l e n g t h , e = n e w A r r a y ( n ) , t = 0 ; t < n ; t + + ) e [ t ] = a r g u m e n t s [ t ] ; r e t u r n G t . u s e M e m o ( ( ) = > i = > { e . f o r E a c h ( r = > r ( i ) ) } , e ) } c o n s t E 2 = t y p e o f w i n d o w < " u " & & t y p e o f w i n d o w . d o c u m e n t < " u " & & t y p e o f w i n d o w . d o c u m e n t . c r e a t e E l e m e n t < " u " ; f u n c t i o n $ v ( n ) { c o n s t e = O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( n ) ; r e t u r n e = = = " [ o b j e c t W i n d o w ] " | | e = = = " [ o b j e c t g l o b a l ] " } f u n c t i o n i 8 ( n ) { r e t u r n " n o d e T y p e " i n n } f u n c t i o n H d ( n ) { v a r e , t ; r e t u r n n ? $ v ( n ) ? n : i 8 ( n ) & & ( e = ( t = n . o w n e r D o c u m e n t ) = = n u l l ? v o i d 0 : t . d e f a u l t V i e w ) ! = n u l l ? e : w i n d o w : w i n d o w } f u n c t i o n r 8 ( n ) { c o n s t { D o c u m e n t : e } = H d ( n ) ; r e t u r n n i n s t a n c e o f e } f u n c t i o n _ b ( n ) { r e t u r n $ v ( n ) ? ! 1 : n i n s t a n c e o f H d ( n ) . H T M L E l e m e n t } f u n c t i o n a N ( n ) { r e t u r n n i n s t a n c e o f H d ( n ) . S V G E l e m e n t } f u n c t i o n Z v ( n ) { r e t u r n n ? $ v ( n ) ? n . d o c u m e n t : i 8 ( n ) ? r 8 ( n ) ? n : _ b ( n ) | | a N ( n ) ? n . o w n e r D o c u m e n t : d o c u m e n t : d o c u m e n t : d o c u m e n t } c o n s t t 0 = E 2 ? G t . u s e L a y o u t E f f e c t : G t . u s e E f f e c t ; f u n c t i o n o 8 ( n ) { c o n s t e = G t . u s e R e f ( n ) ; r e t u r n t 0 ( ( ) = > { e . c u r r e n t = n } ) , G t . u s e C a l l b a c k ( f u n c t i o n ( ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , i = n e w A r r a y ( t ) , r = 0 ; r < t ; r + + ) i [ r ] = a r g u m e n t s [ r ] ; r e t u r n e . c u r r e n t = = n u l l ? v o i d 0 : e . c u r r e n t ( . . . i ) } , [ ] ) } f u n c t i o n E i e ( ) { c o n s t n = G t . u s e R e f ( n u l l ) , e = G t . u s e C a l l b a c k ( ( i , r ) = > { n . c u r r e n t = s e t I n t e r v a l ( i , r ) } , [ ] ) , t = G t . u s e C a l l b a c k ( ( ) = > { n . c u r r e n t ! = = n u l l & & ( c l e a r I n t e r v a l ( n . c u r r e n t ) , n . c u r r e n t = n u l l ) } , [ ] ) ; r e t u r n [ e , t ] } f u n c t i o n P _ ( n , e ) { e = = = v o i d 0 & & ( e = [ n ] ) ; c o n s t t = G t . u s e R e f ( n ) ; r e t u r n t 0 ( ( ) = > { t . c u r r e n t ! = = n & & ( t . c u r r e n t = n ) } , e ) , t } f u n c t i o n b b ( n , e ) { c o n s t t = G t . u s e R e f ( ) ; r e t u r n G t . u s e M e m o ( ( ) = > { c o n s t i = n ( t . c u r r e n t ) ; r e t u r n t . c u r r e n t = i , i } , [ . . . e ] ) } f u n c t i o n m 3 ( n ) { c o n s t e = o 8 ( n ) , t = G t . u s e R e f ( n u l l ) , i = G t . u s e C a l l b a c k ( r = > { r ! = = t . c u r r e n t & & e ? . ( r , t . c u r r e n t ) , t . c u r r e n t = r } , [ ] ) ; r e t u r n [ t , i ] } f u n c t i o n u B ( n ) { c o n s t e = G t . u s e R e f ( ) ; r e t u r n G t . u s e E f f e c t ( ( ) = > { e . c u r r e n t = n } , [ n ] ) , e . c u r r e n t } l e t y M = { } ; f u n c t i o n x b ( n , e ) { r e t u r n G t . u s e M e m o ( ( ) = > { i f ( e ) r e t u r n e ; c o n s t t = y M [ n ] = = n u l l ? 0 : y M [ n ] + 1 ; r e t u r n y M [ n ] = t , n + " - " + t } , [ n , e ] ) } f u n c t i o n s N ( n ) { r e t u r n f u n c t i o n ( e ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , i = n e w A r r a y ( t > 1 ? t - 1 : 0 ) , r = 1 ; r < t ; r + + ) i [ r - 1 ] = a r g u m e n t s [ r ] ; r e t u r n i . r e d u c e ( ( a , l ) = > { c o n s t o = O b j e c t . e n t r i e s ( l ) ; f o r ( c o n s t [ m , C ] o f o ) { c o n s t S = a [ m ] ; S ! = n u l l & & ( a [ m ] = S + n * C ) } r e t u r n a } , { . . . e } ) } } c o n s t C v = s N ( 1 ) , p 3 = s N ( - 1 ) ; f u n c t i o n B i e ( n ) { r e t u r n " c l i e n t X " i n n & & " c l i e n t Y " i n n } f u n c t i o n a 8 ( n ) { i f ( ! n ) r e t u r n ! 1 ; c o n s t { K e y b o a r d E v e n t : e } = H d ( n . t a r g e t ) ; r e t u r n e & & n i n s t a n c e o f e } f u n c t i o n O i e ( n ) { i f ( ! n ) r e t u r n ! 1 ; c o n s t { T o u c h E v e n t : e } = H d ( n . t a r g e t ) ; r e t u r n e & & n i n s t a n c e o f e } f u n c t i o n c B ( n ) { i f ( O i e ( n ) ) { i f ( n . t o u c h e s & & n . t o u c h e s . l e n g t h ) { c o n s t { c l i e n t X : e , c l i e n t Y : t } = n . t o u c h e s [ 0 ] ; r e t u r n { x : e , y : t } } e l s e i f ( n . c h a n g e d T o u c h e s & & n . c h a n g e d T o u c h e s . l e n g t h ) { c o n s t { c l i e n t X : e , c l i e n t Y : t } = n . c h a n g e d T o u c h e s [ 0 ] ; r e t u r n { x : e , y : t } } } r e t u r n B i e ( n ) ? { x : n . c l i e n t X , y : n . c l i e n t Y } : n u l l } c o n s t K _ = O b j e c t . f r e e z e ( { T r a n s l a t e : { t o S t r i n g ( n ) { i f ( ! n ) r e t u r n ; c o n s t { x : e , y : t } = n ; r e t u r n " t r a n s l a t e 3 d ( " + ( e ? M a t h . r o u n d ( e ) : 0 ) + " p x , " + ( t ? M a t h . r o u n d ( t ) : 0 ) + " p x , 0 ) " } } , S c a l e : { t o S t r i n g ( n ) { i f ( ! n ) r e t u r n ; c o n s t { s c a l e X : e , s c a l e Y : t } = n ; r e t u r n " s c a l e X ( " + e + " ) s c a l e Y ( " + t + " ) " } } , T r a n s f o r m : { t o S t r i n g ( n ) { i f ( n ) r e t u r n [ K _ . T r a n s l a t e . t o S t r i n g ( n ) , K _ . S c a l e . t o S t r i n g ( n ) ] . j o i n ( " " ) } } , T r a n s i t i o n : { t o S t r i n g ( n ) { l e t { p r o p e r t y : e , d u r a t i o n : t , e a s i n g : i } = n ; r e t u r n e + " " + t + " m s " + i } } } ) , c T = " a , f r a m e , i f r a m e , i n p u t : n o t ( [ t y p e = h i d d e n ] ) : n o t ( : d i s a b l e d ) , s e l e c t : n o t ( : d i s a b l e d ) , t e x t a r e a : n o t ( : d i s a b l e d ) , b u t t o n : n o t ( : d i s a b l e d ) , * [ t a b i n d e x ] " ; f u n c t i o n I i e ( n ) { r e t u r n n . m a t c h e s ( c T ) ? n : n . q u e r y S e l e c t o r ( c T ) } c o n s t T i e = { d i s p l a y : " n o n e " } ; f u n c t i o n k i e ( n ) { l e t { i d : e , v a l u e : t } = n ; r e t u r n n i . c r e a t e E l e m e n t ( " d i v " , { i d : e , s t y l e : T i e } , t ) } f u n c t i o n D i e ( n ) { l e t { i d : e , a n n o u n c e m e n t : t , a r i a L i v e T y p e : i = " a s s e r t i v e " } = n ; c o n s t r = { p o s i t i o n : " f i x e d " , t o p : 0 , l e f t : 0 , w i d t h : 1 , h e i g h t : 1 , m a r g i n : - 1 , b o r d e r : 0 , p a d d i n g : 0 , o v e r f l o w : " h i d d e n " , c l i p : " r e c t ( 0 0 0 0 ) " , c l i p P a t h : " i n s e t ( 1 0 0 % ) " , w h i t e S p a c e : " n o w r a p " } ; r e t u r n n i . c r e a t e E l e m e n t ( " d i v " , { i d : e , s t y l e : r , r o l e : " s t a t u s " , " a r i a - l i v e " : i , " a r i a - a t o m i c " : ! 0 } , t ) } f u n c t i o n R i e ( ) { c o n s t [ n , e ] = G t . u s e S t a t e ( " " ) ; r e t u r n { a n n o u n c e : G t . u s e C a l l b a c k ( i = > { i ! = n u l l & & e ( i ) } , [ ] ) , a n n o u n c e m e n t : n } } c o n s t l N = G t . c r e a t e C o n t e x t ( n u l l ) ; f u n c t i o n P i e ( n ) { c o n s t e = G t . u s e C o n t e x t ( l N ) ; G t . u s e E f f e c t ( ( ) = > { i f ( ! e ) t h r o w n e w E r r o r ( " u s e D n d M o n i t o r m u s t b e u s e d w i t h i n a c h i l d r e n o f < D n d C o n t e x t > " ) ; r e t u r n e ( n ) } , [ n , e ] ) } f u n c t i o n K i e ( ) { c o n s t [ n ] = G t . u s e S t a t e ( ( ) = > n e w S e t ) , e = G t . u s e C a l l b a c k ( i = > ( n . a d d ( i ) , ( ) = > n . d e l e t e ( i ) ) , [ n ] ) ; r e t u r n [ G t . u s e C a l l b a c k ( i = > { l e t { t y p e : r , e v e n t : a } = i ; n . f o r E a c h ( l = > { v a r o ; r e t u r n ( o = l [ r ] ) = = n u l l ? v o i d 0 : o . c a l l ( l , a ) } ) } , [ n ] ) , e ] } c o n s t U i e = { d r a g g a b l e : `
To pick up a draggable item , press the space bar .
While dragging , use the arrow keys to move the item .
Press space again to drop the item in its new position , or press escape to cancel .
` }, $ ie={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Zie(n){let{announcements:e= $ ie,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=Vie}=n;const{announce:a,announcement:l}=Yie(),o=Ob("DndLiveRegion"),[m,C]=Nt.useState(!1);if(Nt.useEffect(()=>{C(!0)},[]),qie(Nt.useMemo(()=>({onDragStart(O){let{active:U}=O;a(e.onDragStart({active:U}))},onDragMove(O){let{active:U,over:K}=O;e.onDragMove&&a(e.onDragMove({active:U,over:K}))},onDragOver(O){let{active:U,over:K}=O;a(e.onDragOver({active:U,over:K}))},onDragEnd(O){let{active:U,over:K}=O;a(e.onDragEnd({active:U,over:K}))},onDragCancel(O){let{active:U,over:K}=O;a(e.onDragCancel({active:U,over:K}))}}),[a,e])),!m)return null;const S=ni.createElement(ni.Fragment,null,ni.createElement(Wie,{id:i,value:r.draggable}),ni.createElement(Qie,{id:o,announcement:l}));return t?LC.createPortal(S,t):S}var Cc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Cc||(Cc={}));function x3(){}function Xie(n,e){return Nt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Jie(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Nt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const ap=Object.freeze({x:0,y:0});function ere(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function tre(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function nre(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function ire(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function yT(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const rre=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=yT(e,e.left,e.top),a=[];for(const l of i){const{id:o}=l,m=t.get(o);if(m){const C=ere(yT(m),r);a.push({id:o,data:{droppableContainer:l,value:C}})}}return a.sort(tre)};function ore(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),a=Math.min(e.top+e.height,n.top+n.height),l=r-i,o=a-t;if(i<r&&t<a){const m=e.width*e.height,C=n.width*n.height,S=l*o,O=S/(m+C-S);return Number(O.toFixed(4))}return 0}const are=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const a of i){const{id:l}=a,o=t.get(l);if(o){const m=ore(o,e);m>0&&r.push({id:l,data:{droppableContainer:a,value:m}})}}return r.sort(nre)};function sre(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function mG(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ap}function lre(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return r.reduce((l,o)=>({...l,top:l.top+n*o.y,bottom:l.bottom+n*o.y,left:l.left+n*o.x,right:l.right+n*o.x}),{...t})}}const Are=lre(1);function ure(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function cre(n,e,t){const i=ure(e);if(!i)return n;const{scaleX:r,scaleY:a,x:l,y:o}=i,m=n.left-l-(1-r)*parseFloat(t),C=n.top-o-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),S=r?n.width/r:n.width,O=a?n.height/a:n.height;return{width:S,height:O,top:C,right:m+S,bottom:C+O,left:m}}const hre={ignoreTransform:!1};function Xv(n,e){e===void 0&&(e=hre);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:C,transformOrigin:S}=Vd(n).getComputedStyle(n);C&&(t=cre(t,C,S))}const{top:i,left:r,width:a,height:l,bottom:o,right:m}=t;return{top:i,left:r,width:a,height:l,bottom:o,right:m}}function vT(n){return Xv(n,{ignoreTransform:!0})}function dre(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function fre(n,e){return e===void 0&&(e=Vd(n).getComputedStyle(n)),e.position==="fixed"}function mre(n,e){e===void 0&&(e=Vd(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=e[r];return typeof a=="string"?t.test(a):!1})}function d8(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(u8(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!Eb(r)||hG(r)||t.includes(r))return t;const a=Vd(n).getComputedStyle(r);return r!==n&&mre(
Line truncated
` },Lie={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Fie(n){let{announcements:e=Lie,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=Uie}=n;const{announce:a,announcement:l}=Rie(),o=xb("DndLiveRegion"),[m,C]=Gt.useState(!1);if(Gt.useEffect(()=>{C(!0)},[]),Pie(Gt.useMemo(()=>({onDragStart(O){let{active:U}=O;a(e.onDragStart({active:U}))},onDragMove(O){let{active:U,over:K}=O;e.onDragMove&&a(e.onDragMove({active:U,over:K}))},onDragOver(O){let{active:U,over:K}=O;a(e.onDragOver({active:U,over:K}))},onDragEnd(O){let{active:U,over:K}=O;a(e.onDragEnd({active:U,over:K}))},onDragCancel(O){let{active:U,over:K}=O;a(e.onDragCancel({active:U,over:K}))}}),[a,e])),!m)return null;const S=ni.createElement(ni.Fragment,null,ni.createElement(kie,{id:i,value:r.draggable}),ni.createElement(Die,{id:o,announcement:l}));return t?LC.createPortal(S,t):S}var Cc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Cc||(Cc={}));function g3(){}function zie(n,e){return Gt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Nie(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const op=Object.freeze({x:0,y:0});function Gie(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function jie(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function Wie(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Qie(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function hT(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Yie=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=hT(e,e.left,e.top),a=[];for(const l of i){const{id:o}=l,m=t.get(o);if(m){const C=Gie(hT(m),r);a.push({id:o,data:{droppableContainer:l,value:C}})}}return a.sort(jie)};function qie(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),a=Math.min(e.top+e.height,n.top+n.height),l=r-i,o=a-t;if(i<r&&t<a){const m=e.width*e.height,C=n.width*n.height,S=l*o,O=S/(m+C-S);return Number(O.toFixed(4))}return 0}const Hie=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const a of i){const{id:l}=a,o=t.get(l);if(o){const m=qie(o,e);m>0&&r.push({id:l,data:{droppableContainer:a,value:m}})}}return r.sort(Wie)};function Vie(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function AN(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:op}function $ ie(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return r.reduce((l,o)=>({...l,top:l.top+n*o.y,bottom:l.bottom+n*o.y,left:l.left+n*o.x,right:l.right+n*o.x}),{...t})}}const Zie= $ ie(1);function Xie(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Jie(n,e,t){const i=Xie(e);if(!i)return n;const{scaleX:r,scaleY:a,x:l,y:o}=i,m=n.left-l-(1-r)*parseFloat(t),C=n.top-o-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),S=r?n.width/r:n.width,O=a?n.height/a:n.height;return{width:S,height:O,top:C,right:m+S,bottom:C+O,left:m}}const ere={ignoreTransform:!1};function Xv(n,e){e===void 0&&(e=ere);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:C,transformOrigin:S}=Hd(n).getComputedStyle(n);C&&(t=Jie(t,C,S))}const{top:i,left:r,width:a,height:l,bottom:o,right:m}=t;return{top:i,left:r,width:a,height:l,bottom:o,right:m}}function dT(n){return Xv(n,{ignoreTransform:!0})}function tre(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function nre(n,e){return e===void 0&&(e=Hd(n).getComputedStyle(n)),e.position==="fixed"}function ire(n,e){e===void 0&&(e=Hd(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=e[r];return typeof a=="string"?t.test(a):!1})}function s8(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(r8(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!_b(r)||aN(r)||t.includes(r))return t;const a=Hd(n).getComputedStyle(r);return r!==n&&ire(
Line truncated
* tabbable 6.2 . 0
* @ license MIT , https : //github.com/focus-trap/tabbable/blob/master/LICENSE
* /var DG=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],w3=DG.join(","),RG=typeof Element>"u",Hg=RG?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,E3=!RG&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},B3=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),a=r===""||r==="true",l=a||t&&e&&n(e.parentNode);return l},Toe=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},PG=function(e,t,i){if(B3(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(w3));return t&&Hg.call(e,w3)&&r.unshift(e),r=r.filter(i),r},KG=function n(e,t,i){for(var r=[],a=Array.from(e);a.length;){var l=a.shift();if(!B3(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),m=o.length?o:l.children,C=n(m,!0,i);i.flatten?r.push.apply(r,C):r.push({scopeParent:l,candidates:C})}else{var S=Hg.call(l,w3);S&&i.filter(l)&&(t||!e.includes(l))&&r.push(l);var O=l.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(l),U=!B3(O,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(l));if(O&&U){var K=n(O===!0?l.children:O.children,!0,i);i.flatten?r.push.apply(r,K):r.push({scopeParent:l,candidates:K})}else a.unshift.apply(a,l.children)}}return r},UG=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},v1=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/ ^ ( AUDIO | VIDEO | DETAILS ) $ / . test ( e . tagName ) || Toe ( e ) ) && ! UG ( e ) ? 0 : e . tabIndex } , koe = function ( e , t ) { var i = v1 ( e ) ; return i < 0 && t && ! UG ( e ) ? 0 : i } , Doe = function ( e , t ) { return e . tabIndex === t . tabIndex ? e . documentOrder - t . documentOrder : e . tabIndex - t . tabIndex } , LG = function ( e ) { return e . tagName === "INPUT" } , Roe = function ( e ) { return LG ( e ) && e . type === "hidden" } , Poe = function ( e ) { var t = e . tagName === "DETAILS" && Array . prototype . slice . apply ( e . children ) . some ( function ( i ) { return i . tagName === "SUMMARY" } ) ; return t } , Koe = function ( e , t ) { for ( var i = 0 ; i < e . length ; i ++ ) if ( e [ i ] . checked && e [ i ] . form === t ) return e [ i ] } , Uoe = function ( e ) { if ( ! e . name ) return ! 0 ; var t = e . form || E3 ( e ) , i = function ( o ) { return t . querySelectorAll ( 'input[type="radio"][name="' + o + '"]' ) } , r ; if ( typeof window < "u" && typeof window . CSS < "u" && typeof window . CSS . escape == "function" ) r = i ( window . CSS . escape ( e . name ) ) ; else try { r = i ( e . name ) } catch ( l ) { return console . error ( "Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s" , l . message ) , ! 1 } var a = Koe ( r , e . form ) ; return ! a || a === e } , Loe = function ( e ) { return LG ( e ) && e . type === "radio" } , Foe = function ( e ) { return Loe ( e ) && ! Uoe ( e ) } , zoe = function ( e ) { var t , i = e && E3 ( e ) , r = ( t = i ) === null || t === void 0 ? void 0 : t . host , a = ! 1 ; if ( i && i !== e ) { var l , o , m ; for ( a = ! ! ( ( l = r ) !== null && l !== void 0 && ( o = l . ownerDocument ) !== null && o !== void 0 && o . contains ( r ) || e != null && ( m = e . ownerDocument ) !== null && m !== void 0 && m . contains ( e ) ) ; ! a && r ; ) { var C , S , O ; i = E3 ( r ) , r = ( C = i ) === null || C === void 0 ? void 0 : C . host , a = ! ! ( ( S = r ) !== null && S !== void 0 && ( O = S . ownerDocument ) !== null && O !== void 0 && O . contains ( r ) ) } } return a } , kT = function ( e ) { var t = e . getBoundingClientRect ( ) , i = t . width , r = t . height ; return i === 0 && r === 0 } , Goe = function ( e , t ) { var i = t . displayCheck , r = t . getShadowRoot ; if ( getComputedStyle ( e ) . visibility === "hidden" ) return ! 0 ; var a = Hg . call ( e , "details>summary:first-of-type" ) , l = a ? e . parentElement : e ; if ( Hg . call ( l , "details:not([open]) *" ) ) return ! 0 ; if ( ! i || i === "full" || i === "legacy-full" ) { if ( typeof r == "function" ) { for ( var o = e ; e ; ) { var m = e . parentElement , C = E3 ( e ) ; if ( m && ! m . shadowRoot && r ( m ) === ! 0 ) return kT ( e ) ; e . assignedSlot ? e = e . assignedSlot : ! m && C !== e . ownerDocument ? e = C . host : e = m } e = o } if ( zoe ( e ) ) return ! e . getClientRects ( ) . length ; if ( i !== "legacy-full" ) return ! 0 } else if ( i === "non-zero-area" ) return kT ( e ) ; return ! 1 } , Noe = function ( e ) { if ( /^(INPUT|BUTTON|SELECT|TEXTAREA)$/ . test ( e . tagName ) ) for ( var t = e . parentElement ; t ; ) { if ( t . tagName === "FIELDSET" && t . disabled ) { for ( var i = 0 ; i < t . children . length ; i ++ ) { var r = t . children . item ( i ) ; if ( r . tagName === "LEGEND" ) return Hg . call ( t , "fieldset[disabled] *" ) ? ! 0 : ! r . contains ( e ) } return ! 0 } t = t . parentElement } return ! 1 } , O3 = function ( e , t ) { return ! ( t . disabled || B3 ( t ) || Roe ( t ) || Goe ( t , e ) || Poe ( t ) || Noe ( t ) ) } , _B = function ( e , t ) { return ! ( Foe ( t ) || v1 ( t ) < 0 || ! O3 ( e , t ) ) } , joe = function ( e ) { var t = parseInt ( e . getAttribute ( "tabindex" ) , 10 ) ; return ! ! ( isNaN ( t ) || t >= 0 ) } , Woe = function n ( e ) { var t = [ ] , i = [ ] ; return e . forEach ( function ( r , a ) { var l = ! ! r . scopeParent , o = l ? r . scopeParent : r , m = koe ( o , l ) , C = l ? n ( r . candidates ) : o ; m === 0 ? l ? t . push . apply ( t , C ) : t . push ( o ) : i . push ( { documentOrder : a , tabIndex : m , item : r , isScope : l , content : C } ) } ) , i . sort ( Doe ) . reduce ( function ( r , a ) { return a . isScope ? r . push . apply ( r , a . content ) : r . push ( a . content ) , r Line truncated
* /var EN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],C3=EN.join(","),BN=typeof Element>"u",Hg=BN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_3=!BN&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},b3=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),a=r===""||r==="true",l=a||t&&e&&n(e.parentNode);return l},voe=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},ON=function(e,t,i){if(b3(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(C3));return t&&Hg.call(e,C3)&&r.unshift(e),r=r.filter(i),r},IN=function n(e,t,i){for(var r=[],a=Array.from(e);a.length;){var l=a.shift();if(!b3(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),m=o.length?o:l.children,C=n(m,!0,i);i.flatten?r.push.apply(r,C):r.push({scopeParent:l,candidates:C})}else{var S=Hg.call(l,C3);S&&i.filter(l)&&(t||!e.includes(l))&&r.push(l);var O=l.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(l),U=!b3(O,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(l));if(O&&U){var K=n(O===!0?l.children:O.children,!0,i);i.flatten?r.push.apply(r,K):r.push({scopeParent:l,candidates:K})}else a.unshift.apply(a,l.children)}}return r},TN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},v1=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/ ^ ( AUDIO | VIDEO | DETAILS ) $ / . test ( e . tagName ) || voe ( e ) ) && ! TN ( e ) ? 0 : e . tabIndex } , Coe = function ( e , t ) { var i = v1 ( e ) ; return i < 0 && t && ! TN ( e ) ? 0 : i } , _oe = function ( e , t ) { return e . tabIndex === t . tabIndex ? e . documentOrder - t . documentOrder : e . tabIndex - t . tabIndex } , kN = function ( e ) { return e . tagName === "INPUT" } , boe = function ( e ) { return kN ( e ) && e . type === "hidden" } , xoe = function ( e ) { var t = e . tagName === "DETAILS" && Array . prototype . slice . apply ( e . children ) . some ( function ( i ) { return i . tagName === "SUMMARY" } ) ; return t } , Moe = function ( e , t ) { for ( var i = 0 ; i < e . length ; i ++ ) if ( e [ i ] . checked && e [ i ] . form === t ) return e [ i ] } , Soe = function ( e ) { if ( ! e . name ) return ! 0 ; var t = e . form || _3 ( e ) , i = function ( o ) { return t . querySelectorAll ( 'input[type="radio"][name="' + o + '"]' ) } , r ; if ( typeof window < "u" && typeof window . CSS < "u" && typeof window . CSS . escape == "function" ) r = i ( window . CSS . escape ( e . name ) ) ; else try { r = i ( e . name ) } catch ( l ) { return console . error ( "Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s" , l . message ) , ! 1 } var a = Moe ( r , e . form ) ; return ! a || a === e } , woe = function ( e ) { return kN ( e ) && e . type === "radio" } , Eoe = function ( e ) { return woe ( e ) && ! Soe ( e ) } , Boe = function ( e ) { var t , i = e && _3 ( e ) , r = ( t = i ) === null || t === void 0 ? void 0 : t . host , a = ! 1 ; if ( i && i !== e ) { var l , o , m ; for ( a = ! ! ( ( l = r ) !== null && l !== void 0 && ( o = l . ownerDocument ) !== null && o !== void 0 && o . contains ( r ) || e != null && ( m = e . ownerDocument ) !== null && m !== void 0 && m . contains ( e ) ) ; ! a && r ; ) { var C , S , O ; i = _3 ( r ) , r = ( C = i ) === null || C === void 0 ? void 0 : C . host , a = ! ! ( ( S = r ) !== null && S !== void 0 && ( O = S . ownerDocument ) !== null && O !== void 0 && O . contains ( r ) ) } } return a } , wT = function ( e ) { var t = e . getBoundingClientRect ( ) , i = t . width , r = t . height ; return i === 0 && r === 0 } , Ooe = function ( e , t ) { var i = t . displayCheck , r = t . getShadowRoot ; if ( getComputedStyle ( e ) . visibility === "hidden" ) return ! 0 ; var a = Hg . call ( e , "details>summary:first-of-type" ) , l = a ? e . parentElement : e ; if ( Hg . call ( l , "details:not([open]) *" ) ) return ! 0 ; if ( ! i || i === "full" || i === "legacy-full" ) { if ( typeof r == "function" ) { for ( var o = e ; e ; ) { var m = e . parentElement , C = _3 ( e ) ; if ( m && ! m . shadowRoot && r ( m ) === ! 0 ) return wT ( e ) ; e . assignedSlot ? e = e . assignedSlot : ! m && C !== e . ownerDocument ? e = C . host : e = m } e = o } if ( Boe ( e ) ) return ! e . getClientRects ( ) . length ; if ( i !== "legacy-full" ) return ! 0 } else if ( i === "non-zero-area" ) return wT ( e ) ; return ! 1 } , Ioe = function ( e ) { if ( /^(INPUT|BUTTON|SELECT|TEXTAREA)$/ . test ( e . tagName ) ) for ( var t = e . parentElement ; t ; ) { if ( t . tagName === "FIELDSET" && t . disabled ) { for ( var i = 0 ; i < t . children . length ; i ++ ) { var r = t . children . item ( i ) ; if ( r . tagName === "LEGEND" ) return Hg . call ( t , "fieldset[disabled] *" ) ? ! 0 : ! r . contains ( e ) } return ! 0 } t = t . parentElement } return ! 1 } , x3 = function ( e , t ) { return ! ( t . disabled || b3 ( t ) || boe ( t ) || Ooe ( t , e ) || xoe ( t ) || Ioe ( t ) ) } , mB = function ( e , t ) { return ! ( Eoe ( t ) || v1 ( t ) < 0 || ! x3 ( e , t ) ) } , Toe = function ( e ) { var t = parseInt ( e . getAttribute ( "tabindex" ) , 10 ) ; return ! ! ( isNaN ( t ) || t >= 0 ) } , koe = function n ( e ) { var t = [ ] , i = [ ] ; return e . forEach ( function ( r , a ) { var l = ! ! r . scopeParent , o = l ? r . scopeParent : r , m = Coe ( o , l ) , C = l ? n ( r . candidates ) : o ; m === 0 ? l ? t . push . apply ( t , C ) : t . push ( o ) : i . push ( { documentOrder : a , tabIndex : m , item : r , isScope : l , content : C } ) } ) , i . sort ( _oe ) . reduce ( function ( r , a ) { return a . isScope ? r . push . apply ( r , a . content ) : r . push ( a . content ) , r Line truncated
* focus - trap 7.5 . 4
* @ license MIT , https : //github.com/focus-trap/focus-trap/blob/master/LICENSE
* / f u n c t i o n D T ( n , e ) { v a r t = O b j e c t . k e y s ( n ) ; i 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 ) { v a r 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 ( n ) ; e & & ( i = i . f i l t e r ( f u n c t i o n ( r ) { r e t u r n 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 ( n , r ) . e n u m e r a b l e } ) ) , t . p u s h . a p p l y ( t , i ) } r e t u r n t } f u n c t i o n R T ( n ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r t = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? D T ( O b j e c t ( t ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( i ) { q o e ( n , i , t [ i ] ) } ) : 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 s ? O b j e c t . d e f i n e P r o p e r t i e s ( n , 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 s ( t ) ) : D T ( O b j e c t ( t ) ) . f o r E a c h ( f u n c t i o n ( i ) { O b j e c t . d e f i n e P r o p e r t y ( n , i , 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 ( t , i ) ) } ) } r e t u r n n } f u n c t i o n q o e ( n , e , t ) { r e t u r n e = V o e ( e ) , e i n n ? O b j e c t . d e f i n e P r o p e r t y ( n , e , { v a l u e : t , e n u m e r a b l e : ! 0 , c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 } ) : n [ e ] = t , n } f u n c t i o n H o e ( n , e ) { i f ( t y p e o f n ! = " o b j e c t " | | n = = = n u l l ) r e t u r n n ; v a r t = n [ S y m b o l . t o P r i m i t i v e ] ; i f ( t ! = = v o i d 0 ) { v a r i = t . c a l l ( n , e ) ; i f ( t y p e o f i ! = " o b j e c t " ) r e t u r n i ; t h r o w n e w T y p e E r r o r ( " @ @ t o P r i m i t i v e m u s t r e t u r n a p r i m i t i v e v a l u e . " ) } r e t u r n ( e = = = " s t r i n g " ? S t r i n g : N u m b e r ) ( n ) } f u n c t i o n V o e ( n ) { v a r e = H o e ( n , " s t r i n g " ) ; r e t u r n t y p e o f e = = " s y m b o l " ? e : S t r i n g ( e ) } v a r P T = { a c t i v a t e T r a p : f u n c t i o n ( e , t ) { i f ( e . l e n g t h > 0 ) { v a r i = e [ e . l e n g t h - 1 ] ; i ! = = t & & i . p a u s e ( ) } v a r r = e . i n d e x O f ( t ) ; r = = = - 1 | | e . s p l i c e ( r , 1 ) , e . p u s h ( t ) } , d e a c t i v a t e T r a p : f u n c t i o n ( e , t ) { v a r i = e . i n d e x O f ( t ) ; i ! = = - 1 & & e . s p l i c e ( i , 1 ) , e . l e n g t h > 0 & & e [ e . l e n g t h - 1 ] . u n p a u s e ( ) } } , $ o e = f u n c t i o n ( e ) { r e t u r n e . t a g N a m e & & e . t a g N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & t y p e o f e . s e l e c t = = " f u n c t i o n " } , Z o e = f u n c t i o n ( e ) { r e t u r n e ? . k e y = = = " E s c a p e " | | e ? . k e y = = = " E s c " | | e ? . k e y C o d e = = = 2 7 } , o _ = f u n c t i o n ( e ) { r e t u r n e ? . k e y = = = " T a b " | | e ? . k e y C o d e = = = 9 } , X o e = f u n c t i o n ( e ) { r e t u r n o _ ( e ) & & ! e . s h i f t K e y } , J o e = f u n c t i o n ( e ) { r e t u r n o _ ( e ) & & e . s h i f t K e y } , K T = f u n c t i o n ( e ) { r e t u r n s e t T i m e o u t ( e , 0 ) } , U T = f u n c t i o n ( e , t ) { v a r i = - 1 ; r e t u r n e . e v e r y ( f u n c t i o n ( r , a ) { r e t u r n t ( r ) ? ( i = a , ! 1 ) : ! 0 } ) , i } , x C = f u n c t i o n ( e ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , i = n e w A r r a y ( t > 1 ? t - 1 : 0 ) , r = 1 ; r < t ; r + + ) i [ r - 1 ] = a r g u m e n t s [ r ] ; r e t u r n t y p e o f e = = " f u n c t i o n " ? e . a p p l y ( v o i d 0 , i ) : e } , c x = f u n c t i o n ( e ) { r e t u r n e . t a r g e t . s h a d o w R o o t & & t y p e o f e . c o m p o s e d P a t h = = " f u n c t i o n " ? e . c o m p o s e d P a t h ( ) [ 0 ] : e . t a r g e t } , e a e = [ ] , t a e = f u n c t i o n ( e , t ) { v a r i = t ? . d o c u m e n t | | d o c u m e n t , r = t ? . t r a p S t a c k | | e a e , a = R T ( { r e t u r n F o c u s O n D e a c t i v a t e : ! 0 , e s c a p e D e a c t i v a t e s : ! 0 , d e l a y I n i t i a l F o c u s : ! 0 , i s K e y F o r w a r d : X o e , i s K e y B a c k w a r d : J o e } , t ) , l = { c o n t a i n e r s : [ ] , c o n t a i n e r G r o u p s : [ ] , t a b b a b l e G r o u p s : [ ] , n o d e F o c u s e d B e f o r e A c t i v a t i o n : n u l l , m o s t R e c e n t l y F o c u s e d N o d e : n u l l , a c t i v e : ! 1 , p a u s e d : ! 1 , d e l a y I n i t i a l F o c u s T i m e r : v o i d 0 , r e c e n t N a v E v e n t : v o i d 0 } , o , m = f u n c t i o n ( B e , w e , q e ) { r e t u r n B e & & B e [ w e ] ! = = v o i d 0 ? B e [ w e ] : a [ q e | | w e ] } , C = f u n c t i o n ( B e , w e ) { v a r q e = t y p e o f w e ? . c o m p o s e d P a t h = = " f u n c t i o n " ? w e . c o m p o s e d P a t h ( ) : v o i d 0 ; r e t u r n l . c o n t a i n e r G r o u p s . f i n d I n d e x ( f u n c t i o n ( x e ) { v a r z e = x e . c o n t a i n e r , o t = x e . t a b b a b l e N o d e s ; r e t u r n z e . c o n t a i n s ( B e ) | | q e ? . i n c l u d e s ( z e ) | | o t . f i n d ( f u n c t i o n ( y t ) { r e t u r n y t = = = B e } ) } ) } , S = f u n c t i o n ( B e ) { v a r w e = a [ B e ] ; i f ( t y p e o f w e = = " f u n c t i o n " ) { f o r ( v a r q e = a r g u m e n t s . l e n g t h , x e = n e w A r r a y ( q e > 1 ? q e - 1 : 0 ) , z e = 1 ; z e < q e ; z e + + ) x e [ z e - 1 ] = a r g u m e n t s [ z e ] ; w e = w e . a p p l y ( v o i d 0 , x e ) } i f ( w e = = = ! 0 & & ( w e = v o i d 0 ) , ! w e ) { i f ( w e = = = v o i d 0 | | w e = = = ! 1 ) r e t u r n w e ; t h r o w n e w E r r o r ( " ` " . c o n c a t ( B e , " ` w a s s p e c i f i e d b u t w a s n o t a n o d e , o r d i d n o t r e t u r n a n o d e " ) ) } v a r o t = w e ; i f ( t y p e o f w e = = " s t r i n g " & & ( o t = i . q u e r y S e l e c t o r ( w e ) , ! o t ) ) t h r o w n e w E r r o r ( " ` " . c o n c a t ( B e , " ` a s s e l e c t o r r e f e r s t o n o k n o w n n o d e " ) ) ; r e t u r n o t } , O = f u n c t i o n ( ) { v a r B e = S ( " i n i t i a l F o c u s " ) ; i f ( B e = = = ! 1 ) r e t u r n ! 1 ; i f ( B e = = = v o i d 0 | | ! R x ( B e , a . t a b b a b l e O p t i o n s ) ) i f ( C ( i . a c t i v e E l e m e n t ) > = 0 ) B e = i . a c t i v e E l e m e n t ; e l s e { v a r w e = l . t a b b a b l e G r o u p s [ 0 ] , q e = w e & & w e . f i r s t T a b b a b l e N o d e ; B e = q e | | S ( " f a l l b a c k F o c u s " ) } i f ( ! B e ) t h r o w n e w E r r o r ( " Y o u r f o c u s - t r a p n e e d s t o h a v e a t l e a s t o n e f o c u s a b l e e l e m e n t " ) ; r e t u r n B e } , U = f u n c t i o n ( ) { i f ( l . c o n t a i n e r G r o u p s = l . c o n t a i n e r s . m a p ( f u n c t i o n ( B e ) { v a r w e = F G ( B e , a . t a b b a b l e O p t i o n s ) , q e = z G ( B e , a . t a b b a b l e O p t i o n s ) , x e = w e . l e n g t h > 0 ? w e [ 0 ] : v o i d 0 , z e = w e . l e n g t h > 0 ? w e [ w e . l e n g t h - 1 ] : v o i d 0 , o t = q e . f i n d ( f u n c t i o n ( b e ) { r e t u r n b g ( b e ) } ) , y t = q e . s l i c e ( ) . r e v e r s e ( ) . f i n d ( f u n c t i o n ( b e ) { r e t u r n b g ( b e ) } ) , n t = ! ! w e . f i n d ( f u n c t i o n ( b e ) { r e t u r n v 1 ( b e ) > 0 } ) ; r e t u r n { c o n t a i n e r : B e , t a b b a b l e N o d e s : w e , f o c u s a b l e N o d e s : q e , p o s T a b I n d e x e s F o u n d : n t , f i r s t T a b b a b l e N o d e : x e , l a s t T a b b a b l e N o d e : z e , f i r s t D o m T a b b a b l e N o d e : o t , l a s t D o m T a b b a b l e N o d e : y t , n e x t T a b b a b l e N o d e : f u n c t i o n ( G e ) { v a r t t = a r g u m e n t s . l e n g t h > 1 & & a r g u m e n t s [ 1 ] ! = = v o i d 0 ? a r g u m e n t s [ 1 ] : ! 0 , l t = w e . i n d e x O f ( G e ) ; r e t u r n l t < 0 ? t t ? q e . s l i c e ( q e . i n d e x O f ( G e ) + 1 ) . f i n d ( f u n c t i o n ( I t ) { r e t u r n b g ( I t ) } ) : q e . s l i c e ( 0 , q e . i n d e x O f ( G e ) ) . r e v e r s e ( ) . f i n d ( f u n c t i o n ( I t ) { r e t u r n b g ( I t ) } ) : w e [ l t + ( t t ? 1 : - 1 ) ] } } } ) , l . t a b b a b l e G r o u p s = l . c o n t a i n e r G r o u p s . f i l t e r ( f u n c t i o n ( B e ) { r e t u r n B e . t a b b a b l e N o d e s . l e n g t h > 0 } ) , l . t a b b a b l e G r o u p s . l e n g t h < = 0 & & ! S ( " f a l l b a c k F o c u s " ) ) t h r o w n e w E r r o r ( " Y o u r f o c u s - t r a p m u s t h a v e a t l e a s t o n e c o n t a i n e r w i t h a t l e a s t o n e t a b b a b l e n o d e i n i t a t a l l t i m e s " ) ; i f ( l . c o n t a i n e r G r o u p s . f i n d ( f u n c t i o n ( B e ) { r e t u r n B e . p o s T a b I n d e x e s F o u n d } ) & & l . c o n t a i n e r G r o u p s . l e n g t h > 1 ) t h r o w n e w E r r o r ( " A t l e a s t o n e n o d e w i t h a p o s i t i v e t a b i n d e x w a s f o u n d i n o n e o f y o u r f o c u s - t r a p ' s m u l t i p l e c o n t a i n e r s . P o s i t i v e t a b i n d e x e s a r e o n l y s u p p o r t e d i n s i n g l e - c o n t a i n e r f o c u s - t r a p s . " ) } , K = f u n c t i o n M e ( B e ) { v a r w e = B e . a c t i v e E l e m e n t ; i f ( w e ) r e t u r n w e . s h a d o w R o o t & & w e . s h a d o w R o o t . a c t i v e E l e m e n t ! = = n u l l ? M e ( w e . s h a d o w R o o t ) : w e } , z = f u n c t i o n M e ( B e ) { i f ( B e ! = = ! 1 & & B e ! = = K ( d o c u m e n t ) ) { i f ( ! B e | | ! B e . f o c u s ) Line truncated
* / f u n c t i o n E T ( n , e ) { v a r t = O b j e c t . k e y s ( n ) ; i 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 ) { v a r 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 ( n ) ; e & & ( i = i . f i l t e r ( f u n c t i o n ( r ) { r e t u r n 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 ( n , r ) . e n u m e r a b l e } ) ) , t . p u s h . a p p l y ( t , i ) } r e t u r n t } f u n c t i o n B T ( n ) { f o r ( v a r e = 1 ; e < a r g u m e n t s . l e n g t h ; e + + ) { v a r t = a r g u m e n t s [ e ] ! = n u l l ? a r g u m e n t s [ e ] : { } ; e % 2 ? E T ( O b j e c t ( t ) , ! 0 ) . f o r E a c h ( f u n c t i o n ( i ) { P o e ( n , i , t [ i ] ) } ) : 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 s ? O b j e c t . d e f i n e P r o p e r t i e s ( n , 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 s ( t ) ) : E T ( O b j e c t ( t ) ) . f o r E a c h ( f u n c t i o n ( i ) { O b j e c t . d e f i n e P r o p e r t y ( n , i , 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 ( t , i ) ) } ) } r e t u r n n } f u n c t i o n P o e ( n , e , t ) { r e t u r n e = U o e ( e ) , e i n n ? O b j e c t . d e f i n e P r o p e r t y ( n , e , { v a l u e : t , e n u m e r a b l e : ! 0 , c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 } ) : n [ e ] = t , n } f u n c t i o n K o e ( n , e ) { i f ( t y p e o f n ! = " o b j e c t " | | n = = = n u l l ) r e t u r n n ; v a r t = n [ S y m b o l . t o P r i m i t i v e ] ; i f ( t ! = = v o i d 0 ) { v a r i = t . c a l l ( n , e ) ; i f ( t y p e o f i ! = " o b j e c t " ) r e t u r n i ; t h r o w n e w T y p e E r r o r ( " @ @ t o P r i m i t i v e m u s t r e t u r n a p r i m i t i v e v a l u e . " ) } r e t u r n ( e = = = " s t r i n g " ? S t r i n g : N u m b e r ) ( n ) } f u n c t i o n U o e ( n ) { v a r e = K o e ( n , " s t r i n g " ) ; r e t u r n t y p e o f e = = " s y m b o l " ? e : S t r i n g ( e ) } v a r O T = { a c t i v a t e T r a p : f u n c t i o n ( e , t ) { i f ( e . l e n g t h > 0 ) { v a r i = e [ e . l e n g t h - 1 ] ; i ! = = t & & i . p a u s e ( ) } v a r r = e . i n d e x O f ( t ) ; r = = = - 1 | | e . s p l i c e ( r , 1 ) , e . p u s h ( t ) } , d e a c t i v a t e T r a p : f u n c t i o n ( e , t ) { v a r i = e . i n d e x O f ( t ) ; i ! = = - 1 & & e . s p l i c e ( i , 1 ) , e . l e n g t h > 0 & & e [ e . l e n g t h - 1 ] . u n p a u s e ( ) } } , L o e = f u n c t i o n ( e ) { r e t u r n e . t a g N a m e & & e . t a g N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & t y p e o f e . s e l e c t = = " f u n c t i o n " } , F o e = f u n c t i o n ( e ) { r e t u r n e ? . k e y = = = " E s c a p e " | | e ? . k e y = = = " E s c " | | e ? . k e y C o d e = = = 2 7 } , o _ = f u n c t i o n ( e ) { r e t u r n e ? . k e y = = = " T a b " | | e ? . k e y C o d e = = = 9 } , z o e = f u n c t i o n ( e ) { r e t u r n o _ ( e ) & & ! e . s h i f t K e y } , N o e = f u n c t i o n ( e ) { r e t u r n o _ ( e ) & & e . s h i f t K e y } , I T = f u n c t i o n ( e ) { r e t u r n s e t T i m e o u t ( e , 0 ) } , T T = f u n c t i o n ( e , t ) { v a r i = - 1 ; r e t u r n e . e v e r y ( f u n c t i o n ( r , a ) { r e t u r n t ( r ) ? ( i = a , ! 1 ) : ! 0 } ) , i } , x C = f u n c t i o n ( e ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , i = n e w A r r a y ( t > 1 ? t - 1 : 0 ) , r = 1 ; r < t ; r + + ) i [ r - 1 ] = a r g u m e n t s [ r ] ; r e t u r n t y p e o f e = = " f u n c t i o n " ? e . a p p l y ( v o i d 0 , i ) : e } , o x = f u n c t i o n ( e ) { r e t u r n e . t a r g e t . s h a d o w R o o t & & t y p e o f e . c o m p o s e d P a t h = = " f u n c t i o n " ? e . c o m p o s e d P a t h ( ) [ 0 ] : e . t a r g e t } , G o e = [ ] , j o e = f u n c t i o n ( e , t ) { v a r i = t ? . d o c u m e n t | | d o c u m e n t , r = t ? . t r a p S t a c k | | G o e , a = B T ( { r e t u r n F o c u s O n D e a c t i v a t e : ! 0 , e s c a p e D e a c t i v a t e s : ! 0 , d e l a y I n i t i a l F o c u s : ! 0 , i s K e y F o r w a r d : z o e , i s K e y B a c k w a r d : N o e } , t ) , l = { c o n t a i n e r s : [ ] , c o n t a i n e r G r o u p s : [ ] , t a b b a b l e G r o u p s : [ ] , n o d e F o c u s e d B e f o r e A c t i v a t i o n : n u l l , m o s t R e c e n t l y F o c u s e d N o d e : n u l l , a c t i v e : ! 1 , p a u s e d : ! 1 , d e l a y I n i t i a l F o c u s T i m e r : v o i d 0 , r e c e n t N a v E v e n t : v o i d 0 } , o , m = f u n c t i o n ( B e , w e , q e ) { r e t u r n B e & & B e [ w e ] ! = = v o i d 0 ? B e [ w e ] : a [ q e | | w e ] } , C = f u n c t i o n ( B e , w e ) { v a r q e = t y p e o f w e ? . c o m p o s e d P a t h = = " f u n c t i o n " ? w e . c o m p o s e d P a t h ( ) : v o i d 0 ; r e t u r n l . c o n t a i n e r G r o u p s . f i n d I n d e x ( f u n c t i o n ( x e ) { v a r z e = x e . c o n t a i n e r , o t = x e . t a b b a b l e N o d e s ; r e t u r n z e . c o n t a i n s ( B e ) | | q e ? . i n c l u d e s ( z e ) | | o t . f i n d ( f u n c t i o n ( y t ) { r e t u r n y t = = = B e } ) } ) } , S = f u n c t i o n ( B e ) { v a r w e = a [ B e ] ; i f ( t y p e o f w e = = " f u n c t i o n " ) { f o r ( v a r q e = a r g u m e n t s . l e n g t h , x e = n e w A r r a y ( q e > 1 ? q e - 1 : 0 ) , z e = 1 ; z e < q e ; z e + + ) x e [ z e - 1 ] = a r g u m e n t s [ z e ] ; w e = w e . a p p l y ( v o i d 0 , x e ) } i f ( w e = = = ! 0 & & ( w e = v o i d 0 ) , ! w e ) { i f ( w e = = = v o i d 0 | | w e = = = ! 1 ) r e t u r n w e ; t h r o w n e w E r r o r ( " ` " . c o n c a t ( B e , " ` w a s s p e c i f i e d b u t w a s n o t a n o d e , o r d i d n o t r e t u r n a n o d e " ) ) } v a r o t = w e ; i f ( t y p e o f w e = = " s t r i n g " & & ( o t = i . q u e r y S e l e c t o r ( w e ) , ! o t ) ) t h r o w n e w E r r o r ( " ` " . c o n c a t ( B e , " ` a s s e l e c t o r r e f e r s t o n o k n o w n n o d e " ) ) ; r e t u r n o t } , O = f u n c t i o n ( ) { v a r B e = S ( " i n i t i a l F o c u s " ) ; i f ( B e = = = ! 1 ) r e t u r n ! 1 ; i f ( B e = = = v o i d 0 | | ! B x ( B e , a . t a b b a b l e O p t i o n s ) ) i f ( C ( i . a c t i v e E l e m e n t ) > = 0 ) B e = i . a c t i v e E l e m e n t ; e l s e { v a r w e = l . t a b b a b l e G r o u p s [ 0 ] , q e = w e & & w e . f i r s t T a b b a b l e N o d e ; B e = q e | | S ( " f a l l b a c k F o c u s " ) } i f ( ! B e ) t h r o w n e w E r r o r ( " Y o u r f o c u s - t r a p n e e d s t o h a v e a t l e a s t o n e f o c u s a b l e e l e m e n t " ) ; r e t u r n B e } , U = f u n c t i o n ( ) { i f ( l . c o n t a i n e r G r o u p s = l . c o n t a i n e r s . m a p ( f u n c t i o n ( B e ) { v a r w e = D N ( B e , a . t a b b a b l e O p t i o n s ) , q e = R N ( B e , a . t a b b a b l e O p t i o n s ) , x e = w e . l e n g t h > 0 ? w e [ 0 ] : v o i d 0 , z e = w e . l e n g t h > 0 ? w e [ w e . l e n g t h - 1 ] : v o i d 0 , o t = q e . f i n d ( f u n c t i o n ( b e ) { r e t u r n b g ( b e ) } ) , y t = q e . s l i c e ( ) . r e v e r s e ( ) . f i n d ( f u n c t i o n ( b e ) { r e t u r n b g ( b e ) } ) , n t = ! ! w e . f i n d ( f u n c t i o n ( b e ) { r e t u r n v 1 ( b e ) > 0 } ) ; r e t u r n { c o n t a i n e r : B e , t a b b a b l e N o d e s : w e , f o c u s a b l e N o d e s : q e , p o s T a b I n d e x e s F o u n d : n t , f i r s t T a b b a b l e N o d e : x e , l a s t T a b b a b l e N o d e : z e , f i r s t D o m T a b b a b l e N o d e : o t , l a s t D o m T a b b a b l e N o d e : y t , n e x t T a b b a b l e N o d e : f u n c t i o n ( N e ) { v a r t t = a r g u m e n t s . l e n g t h > 1 & & a r g u m e n t s [ 1 ] ! = = v o i d 0 ? a r g u m e n t s [ 1 ] : ! 0 , l t = w e . i n d e x O f ( N e ) ; r e t u r n l t < 0 ? t t ? q e . s l i c e ( q e . i n d e x O f ( N e ) + 1 ) . f i n d ( f u n c t i o n ( I t ) { r e t u r n b g ( I t ) } ) : q e . s l i c e ( 0 , q e . i n d e x O f ( N e ) ) . r e v e r s e ( ) . f i n d ( f u n c t i o n ( I t ) { r e t u r n b g ( I t ) } ) : w e [ l t + ( t t ? 1 : - 1 ) ] } } } ) , l . t a b b a b l e G r o u p s = l . c o n t a i n e r G r o u p s . f i l t e r ( f u n c t i o n ( B e ) { r e t u r n B e . t a b b a b l e N o d e s . l e n g t h > 0 } ) , l . t a b b a b l e G r o u p s . l e n g t h < = 0 & & ! S ( " f a l l b a c k F o c u s " ) ) t h r o w n e w E r r o r ( " Y o u r f o c u s - t r a p m u s t h a v e a t l e a s t o n e c o n t a i n e r w i t h a t l e a s t o n e t a b b a b l e n o d e i n i t a t a l l t i m e s " ) ; i f ( l . c o n t a i n e r G r o u p s . f i n d ( f u n c t i o n ( B e ) { r e t u r n B e . p o s T a b I n d e x e s F o u n d } ) & & l . c o n t a i n e r G r o u p s . l e n g t h > 1 ) t h r o w n e w E r r o r ( " A t l e a s t o n e n o d e w i t h a p o s i t i v e t a b i n d e x w a s f o u n d i n o n e o f y o u r f o c u s - t r a p ' s m u l t i p l e c o n t a i n e r s . P o s i t i v e t a b i n d e x e s a r e o n l y s u p p o r t e d i n s i n g l e - c o n t a i n e r f o c u s - t r a p s . " ) } , K = f u n c t i o n M e ( B e ) { v a r w e = B e . a c t i v e E l e m e n t ; i f ( w e ) r e t u r n w e . s h a d o w R o o t & & w e . s h a d o w R o o t . a c t i v e E l e m e n t ! = = n u l l ? M e ( w e . s h a d o w R o o t ) : w e } , z = f u n c t i o n M e ( B e ) { i f ( B e ! = = ! 1 & & B e ! = = K ( d o c u m e n t ) ) { i f ( ! B e | | ! B e . f o c u s ) Line truncated
* @ license React
* react - is . production . min . js
*
@@ -864,59 +864,59 @@ ${Ue.shaderPreludeCode.vertexSource}`,define:Ue.shaderDefine},defaultProjectionD
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* / v a r N T ; f u n c t i o n C a e ( ) { i f ( N T ) r e t u r n j s ; N T = 1 ; v a r n = S y m b o l . f o r ( " r e a c t . e l e m e n t " ) , e = S y m b o l . f o r ( " r e a c t . p o r t a l " ) , t = S y m b o l . f o r ( " r e a c t . f r a g m e n t " ) , i = S y m b o l . f o r ( " r e a c t . s t r i c t _ m o d e " ) , r = S y m b o l . f o r ( " r e a c t . p r o f i l e r " ) , a = S y m b o l . f o r ( " r e a c t . p r o v i d e r " ) , l = S y m b o l . f o r ( " r e a c t . c o n t e x t " ) , o = S y m b o l . f o r ( " r e a c t . s e r v e r _ c o n t e x t " ) , m = S y m b o l . f o r ( " r e a c t . f o r w a r d _ r e f " ) , C = S y m b o l . f o r ( " r e a c t . s u s p e n s e " ) , S = S y m b o l . f o r ( " r e a c t . s u s p e n s e _ l i s t " ) , O = S y m b o l . f o r ( " r e a c t . m e m o " ) , U = S y m b o l . f o r ( " r e a c t . l a z y " ) , K = S y m b o l . f o r ( " r e a c t . o f f s c r e e n " ) , z ; z = S y m b o l . f o r ( " r e a c t . m o d u l e . r e f e r e n c e " ) ; f u n c t i o n j ( Q ) { i f ( t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l ) { v a r e e = Q . $ $ t y p e o f ; s w i t c h ( e e ) { c a s e n : s w i t c h ( Q = Q . t y p e , Q ) { c a s e t : c a s e r : c a s e i : c a s e C : c a s e S : r e t u r n Q ; d e f a u l t : s w i t c h ( Q = Q & & Q . $ $ t y p e o f , Q ) { c a s e o : c a s e l : c a s e m : c a s e U : c a s e O : c a s e a : r e t u r n Q ; d e f a u l t : r e t u r n e e } } c a s e e : r e t u r n e e } } } r e t u r n j s . C o n t e x t C o n s u m e r = l , j s . C o n t e x t P r o v i d e r = a , j s . E l e m e n t = n , j s . F o r w a r d R e f = m , j s . F r a g m e n t = t , j s . L a z y = U , j s . M e m o = O , j s . P o r t a l = e , j s . P r o f i l e r = r , j s . S t r i c t M o d e = i , j s . S u s p e n s e = C , j s . S u s p e n s e L i s t = S , j s . i s A s y n c M o d e = f u n c t i o n ( ) { r e t u r n ! 1 } , j s . i s C o n c u r r e n t M o d e = f u n c t i o n ( ) { r e t u r n ! 1 } , j s . i s C o n t e x t C o n s u m e r = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = l } , j s . i s C o n t e x t P r o v i d e r = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = a } , j s . i s E l e m e n t = f u n c t i o n ( Q ) { r e t u r n t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l & & Q . $ $ t y p e o f = = = n } , j s . i s F o r w a r d R e f = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = m } , j s . i s F r a g m e n t = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = t } , j s . i s L a z y = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = U } , j s . i s M e m o = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = O } , j s . i s P o r t a l = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = e } , j s . i s P r o f i l e r = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = r } , j s . i s S t r i c t M o d e = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = i } , j s . i s S u s p e n s e = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = C } , j s . i s S u s p e n s e L i s t = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = S } , j s . i s V a l i d E l e m e n t T y p e = f u n c t i o n ( Q ) { r e t u r n t y p e o f Q = = " s t r i n g " | | t y p e o f Q = = " f u n c t i o n " | | Q = = = t | | Q = = = r | | Q = = = i | | Q = = = C | | Q = = = S | | Q = = = K | | t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l & & ( Q . $ $ t y p e o f = = = U | | Q . $ $ t y p e o f = = = O | | Q . $ $ t y p e o f = = = a | | Q . $ $ t y p e o f = = = l | | Q . $ $ t y p e o f = = = m | | Q . $ $ t y p e o f = = = z | | Q . g e t M o d u l e I d ! = = v o i d 0 ) } , j s . t y p e O f = j , j s } v a r j T ; f u n c t i o n _ a e ( ) { r e t u r n j T | | ( j T = 1 , P M . e x p o r t s = C a e ( ) ) , P M . e x p o r t s } _ a e ( ) ; c o n s t W T = n = > t y p e o f n = = " o b j e c t " & & n ! = n u l l & & n . n o d e T y p e = = = 1 , Q T = ( n , e ) = > ( ! e | | n ! = = " h i d d e n " ) & & n ! = = " v i s i b l e " & & n ! = = " c l i p " , d x = ( n , e ) = > { i f ( n . c l i e n t H e i g h t < n . s c r o l l H e i g h t | | n . c l i e n t W i d t h < n . s c r o l l W i d t h ) { c o n s t t = g e t C o m p u t e d S t y l e ( n , n u l l ) ; r e t u r n Q T ( t . o v e r f l o w Y , e ) | | Q T ( t . o v e r f l o w X , e ) | | ( i = > { c o n s t r = ( a = > { i f ( ! a . o w n e r D o c u m e n t | | ! a . o w n e r D o c u m e n t . d e f a u l t V i e w ) r e t u r n n u l l ; t r y { r e t u r n a . o w n e r D o c u m e n t . d e f a u l t V i e w . f r a m e E l e m e n t } c a t c h { r e t u r n n u l l } } ) ( i ) ; r e t u r n ! ! r & & ( r . c l i e n t H e i g h t < i . s c r o l l H e i g h t | | r . c l i e n t W i d t h < i . s c r o l l W i d t h ) } ) ( n ) } r e t u r n ! 1 } , f x = ( n , e , t , i , r , a , l , o ) = > a < n & & l > e | | a > n & & l < e ? 0 : a < = n & & o < = t | | l > = e & & o > = t ? a - n - i : l > e & & o < t | | a < n & & o > t ? l - e + r : 0 , b a e = n = > { c o n s t e = n . p a r e n t E l e m e n t ; r e t u r n e ? ? ( n . g e t R o o t N o d e ( ) . h o s t | | n u l l ) } , x a e = ( n , e ) = > { v a r t , i , r , a ; i f ( t y p e o f d o c u m e n t > " u " ) r e t u r n [ ] ; c o n s t { i n l i n e : l , b o u n d a r y : o , s k i p O v e r f l o w H i d d e n E l e m e n t s : m } = e , C = t y p e o f o = = " f u n c t i o n " ? o : w e = > w e ! = = o ; i f ( ! W T ( n ) ) t h r o w n e w T y p e E r r o r ( " I n v a l i d t a r g e t " ) ; c o n s t S = d o c u m e n t . s c r o l l i n g E l e m e n t | | d o c u m e n t . d o c u m e n t E l e m e n t , O = [ ] ; l e t U = n ; f o r ( ; W T ( U ) & & C ( U ) ; ) { i f ( U = b a e ( U ) , U = = = S ) { O . p u s h ( U ) ; b r e a k } U ! = n u l l & & U = = = d o c u m e n t . b o d y & & d x ( U ) & & ! d x ( d o c u m e n t . d o c u m e n t E l e m e n t ) | | U ! = n u l l & & d x ( U , m ) & & O . p u s h ( U ) } c o n s t K = ( i = ( t = w i n d o w . v i s u a l V i e w p o r t ) = = n u l l ? v o i d 0 : t . w i d t h ) ! = n u l l ? i : i n n e r W i d t h , z = ( a = ( r = w i n d o w . v i s u a l V i e w p o r t ) = = n u l l ? v o i d 0 : r . h e i g h t ) ! = n u l l ? a : i n n e r H e i g h t , { s c r o l l X : j , s c r o l l Y : Q } = w i n d o w , { h e i g h t : e e , w i d t h : V , t o p : a e , r i g h t : n e , b o t t o m : Z , l e f t : o e } = n . g e t B o u n d i n g C l i e n t R e c t ( ) , { t o p : W , r i g h t : c e , l e f t : g e } = ( w e = > { c o n s t q e = w i n d o w . g e t C o m p u t e d S t y l e ( w e ) ; r e t u r n { t o p : p a r s e F l o a t ( q e . s c r o l l M a r g i n T o p ) | | 0 , r i g h t : p a r s e F l o a t ( q e . s c r o l l M a r g i n R i g h t ) | | 0 , b o t t o m : p a r s e F l o a t ( q e . s c r o l l M a r g i n B o t t o m ) | | 0 , l e f t : p a r s e F l o a t ( q e . s c r o l l M a r g i n L e f t ) | | 0 } } ) ( n ) ; l e t y e = a e - W , M e = l = = = " c e n t e r " ? o e + V / 2 - g e + c e : l = = = " e n d " ? n e + c e : o e - g e ; c o n s t B e = [ ] ; f o r ( l e t w e = 0 ; w e < O . l e n g t h ; w e + + ) { c o n s t q e = O [ w e ] , { h e i g h t : x e , w i d t h : z e , t o p : o t , r i g h t : y t , b o t t o m : n t , l e f t : b e } = q e . g e t B o u n d i n g C l i e n t R e c t ( ) ; i f ( a e > = 0 & & o e > = 0 & & Z < = z & & n e < = K & & ( q e = = = S & & ! d x ( q e ) | | a e > = o t & & Z < = n t & & o e > = b e & & n e < = y t ) ) r e t u r n B e ; c o n s t G e = g e t C o m p u t e d S t y l e ( q e ) , t t = p a r s e I n t ( G e . b o r d e r L e f t W i d t h , 1 0 ) , l t = p a r s e I n t ( G e . b o r d e r T o p W i d t h , 1 0 ) , I t = p a r s e I n t ( G e . b o r d e r R i g h t W i d t h , 1 0 ) , p t = p a r s e I n t ( G e . b o r d e r B o t t o m W i d t h , 1 0 ) ; l e t S t = 0 , R t = 0 ; c o n s t L e = " o f f s e t W i d t h " i n q e ? q e . o f f s e t W i d t h - q e . c l i e n t W i d t h - t t - I t : 0 , P e = " o f f s e t H e i g h t " i n q e ? q e . o f f s e t H e i g h t - q e . c l i e n t H e i g h t - l t - p t : 0 , R e = " o f f s e t W i d t h " i n q e ? q e . o f f s e t W i d t h = = = 0 ? 0 : z e / q e . o f f s e t W i d t h : 0 , H e = " o f f s e t H e i g h t " i n q e ? q e . o f f s e t H e i g h t = = = 0 ? 0 : x e / q e . o f f s e t H e i g h t : 0 ; i f ( S = = = q e ) S t = f x ( Q , Q + z , z , l t , p t , Q + y e , Q + y e + e e , e e ) , R t = l = = = " s t a r t " ? M e : l = = = " c e n t e r " ? M e - K / 2 : l = = = " e n d " ? M e - K : f x ( j , j + K , K , t t , I t , j + M e , j + M e + V , V ) , S t = M a t h . m a x ( 0 , S t + Q ) , R t = M a t h . m a x ( 0 , R t + j ) ; e l s e { S t = f x ( o t , n t , x e , l t , p t + P e , y e , y e + e e , e e ) , R t = l = = = " s t a r t " ? M e - b e - t t : l = = = " c e n t e r " ? M e - ( b e + z e / 2 ) + L e / 2 : l = = = " e n d " ? M e - y t + I t + L e : f x ( b e , y t , z e , t t , I t + L e , M e , M e + V , V ) ; c o n s t { s c r o l l L e f t : b t , s c r o l l T o p : v t } = q e ; S t = H e = = = 0 ? 0 : M a t h . m a x ( 0 , M a t h . m i n ( v t + S t / H e , q e . s c r o l l H e i g h t - x e / H e + P e ) ) , R t = R e = = = 0 ? 0 : M a t h . m a x ( 0 , M a t h . m i n ( b t + R t / R e , q e . s c r o l l W i d t h - z e / R e + L e ) ) , y e + = v t - S t , M e + = b t - R t } B e . p u s h ( { e l : q e , t o p : S t , l e f t : R t } ) } r e t u r n B e } ; v a r U v = f u n c t i o n ( ) { r e t u r n U v = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , i = 1 , r = a r g u m e n t s . l e n g t h ; i < r ; i + + ) { t = a r g u m e n t s [ i ] Line truncated
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function B se(){throw new TypeError( ` Invalid attempt to destructure non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var Ose=z2(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,a=e.allowMultipleExpanded,l=a===void 0?!1:a,o=e.allowZeroExpanded,m=o===void 0?!1:o;F2(this,n),tA(this,"expanded",void 0),tA(this,"allowMultipleExpanded",void 0),tA(this,"allowZeroExpanded",void 0),tA(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var S=t.isItemExpanded(C);return S?t.augment({expanded:t.expanded.filter(function(O){return O!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(bse(t.expanded),[C]):[C]})}),tA(this,"isItemDisabled",function(C){var S=t.isItemExpanded(C),O=t.expanded.length===1;return!!(S&&!t.allowZeroExpanded&&O)}),tA(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),tA(this,"getPanelAttributes",function(C,S){var O=S??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!O:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:O?void 0:!0}}),tA(this,"getHeadingAttributes",function(){return{role:"heading"}}),tA(this,"getButtonAttributes",function(C,S){var O=S??t.isItemExpanded(C),U=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":U,"aria-expanded":O,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),tA(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),tA(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),tA(this,"augment",function(C){return new n(wB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=r,this.allowMultipleExpanded=l,this.allowZeroExpanded=m}),uN=Nt.createContext(null),cN=function(n){P8(t,n);var e=K8(t);function t(){var i;F2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tA( $ m(i),"state",new Ose({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),tA( $ m(i),"toggleExpanded",function(o){i.setState(function(m){return m.toggleExpanded(o)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),tA( $ m(i),"isItemDisabled",function(o){return i.state.isItemDisabled(o)}),tA( $ m(i),"isItemExpanded",function(o){return i.state.isItemExpanded(o)}),tA( $ m(i),"getPanelAttributes",function(o,m){return i.state.getPanelAttributes(o,m)}),tA( $ m(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),tA( $ m(i),"getButtonAttributes",function(o,m){return i.state.getButtonAttributes(o,m)}),i}return z2(t,[{key:"render",value:function(){var r=this.state,a=r.allowZeroExpanded,l=r.allowMultipleExpanded;return Nt.createElement(uN.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:a,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Nt.PureComponent);tA(cN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var hN=function(n){P8(t,n);var e=K8(t);function t(){var i;F2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tA( $ m(i),"renderChildren",function(o){return o?i.props.children(o):null}),i}return z2(t,[{key:"render",value:function(){return Nt.createElement(uN.Consumer,null,this.renderChildren)}}]),t}(Nt.PureComponent),Ise=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Tse=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,a=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,m=G2(e,Ise);return Nt.createElement(cN,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:a,onChange:l},Nt.createElement("div",n0({"data-accordion-component":"Accordion",className:i},m)))},OB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(OB||(OB={}));var dN=OB,HM=0;function kse(){var n=HM;return HM=HM+1,"raa-".concat(n)}var Dse=Nt.useId||kse,Rse=/[ \u 0009 \u 000a \u 000c \u 000d \u 0020]/g;function Q_(n){return n===""||Rse.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var fN=Nt.createContext(null),Pse=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,a=e.dangerouslySetExpanded,l=function(){r.toggleExpanded(i)},o=function(C){var S=a??C.isItemExpanded(i),O=C.isItemDisabled(i),U=C.getPanelAttributes(i,a),K=C.getHeadingAttributes(i),z=C.getButtonAttributes(i,a);return Nt.createElement(fN.Provider,{value:{uuid:i,expanded:S,disabled:O,toggleExpanded:l,panelAttributes:U,headingAttributes:K,buttonAttributes:z}},t)};return Nt.createElement(hN,nu
Line truncated
* / v a r K T ; f u n c t i o n l a e ( ) { i f ( K T ) r e t u r n j s ; K T = 1 ; v a r n = S y m b o l . f o r ( " r e a c t . e l e m e n t " ) , e = S y m b o l . f o r ( " r e a c t . p o r t a l " ) , t = S y m b o l . f o r ( " r e a c t . f r a g m e n t " ) , i = S y m b o l . f o r ( " r e a c t . s t r i c t _ m o d e " ) , r = S y m b o l . f o r ( " r e a c t . p r o f i l e r " ) , a = S y m b o l . f o r ( " r e a c t . p r o v i d e r " ) , l = S y m b o l . f o r ( " r e a c t . c o n t e x t " ) , o = S y m b o l . f o r ( " r e a c t . s e r v e r _ c o n t e x t " ) , m = S y m b o l . f o r ( " r e a c t . f o r w a r d _ r e f " ) , C = S y m b o l . f o r ( " r e a c t . s u s p e n s e " ) , S = S y m b o l . f o r ( " r e a c t . s u s p e n s e _ l i s t " ) , O = S y m b o l . f o r ( " r e a c t . m e m o " ) , U = S y m b o l . f o r ( " r e a c t . l a z y " ) , K = S y m b o l . f o r ( " r e a c t . o f f s c r e e n " ) , z ; z = S y m b o l . f o r ( " r e a c t . m o d u l e . r e f e r e n c e " ) ; f u n c t i o n j ( Q ) { i f ( t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l ) { v a r e e = Q . $ $ t y p e o f ; s w i t c h ( e e ) { c a s e n : s w i t c h ( Q = Q . t y p e , Q ) { c a s e t : c a s e r : c a s e i : c a s e C : c a s e S : r e t u r n Q ; d e f a u l t : s w i t c h ( Q = Q & & Q . $ $ t y p e o f , Q ) { c a s e o : c a s e l : c a s e m : c a s e U : c a s e O : c a s e a : r e t u r n Q ; d e f a u l t : r e t u r n e e } } c a s e e : r e t u r n e e } } } r e t u r n j s . C o n t e x t C o n s u m e r = l , j s . C o n t e x t P r o v i d e r = a , j s . E l e m e n t = n , j s . F o r w a r d R e f = m , j s . F r a g m e n t = t , j s . L a z y = U , j s . M e m o = O , j s . P o r t a l = e , j s . P r o f i l e r = r , j s . S t r i c t M o d e = i , j s . S u s p e n s e = C , j s . S u s p e n s e L i s t = S , j s . i s A s y n c M o d e = f u n c t i o n ( ) { r e t u r n ! 1 } , j s . i s C o n c u r r e n t M o d e = f u n c t i o n ( ) { r e t u r n ! 1 } , j s . i s C o n t e x t C o n s u m e r = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = l } , j s . i s C o n t e x t P r o v i d e r = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = a } , j s . i s E l e m e n t = f u n c t i o n ( Q ) { r e t u r n t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l & & Q . $ $ t y p e o f = = = n } , j s . i s F o r w a r d R e f = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = m } , j s . i s F r a g m e n t = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = t } , j s . i s L a z y = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = U } , j s . i s M e m o = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = O } , j s . i s P o r t a l = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = e } , j s . i s P r o f i l e r = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = r } , j s . i s S t r i c t M o d e = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = i } , j s . i s S u s p e n s e = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = C } , j s . i s S u s p e n s e L i s t = f u n c t i o n ( Q ) { r e t u r n j ( Q ) = = = S } , j s . i s V a l i d E l e m e n t T y p e = f u n c t i o n ( Q ) { r e t u r n t y p e o f Q = = " s t r i n g " | | t y p e o f Q = = " f u n c t i o n " | | Q = = = t | | Q = = = r | | Q = = = i | | Q = = = C | | Q = = = S | | Q = = = K | | t y p e o f Q = = " o b j e c t " & & Q ! = = n u l l & & ( Q . $ $ t y p e o f = = = U | | Q . $ $ t y p e o f = = = O | | Q . $ $ t y p e o f = = = a | | Q . $ $ t y p e o f = = = l | | Q . $ $ t y p e o f = = = m | | Q . $ $ t y p e o f = = = z | | Q . g e t M o d u l e I d ! = = v o i d 0 ) } , j s . t y p e O f = j , j s } v a r U T ; f u n c t i o n A a e ( ) { r e t u r n U T | | ( U T = 1 , O M . e x p o r t s = l a e ( ) ) , O M . e x p o r t s } A a e ( ) ; c o n s t L T = n = > t y p e o f n = = " o b j e c t " & & n ! = n u l l & & n . n o d e T y p e = = = 1 , F T = ( n , e ) = > ( ! e | | n ! = = " h i d d e n " ) & & n ! = = " v i s i b l e " & & n ! = = " c l i p " , s x = ( n , e ) = > { i f ( n . c l i e n t H e i g h t < n . s c r o l l H e i g h t | | n . c l i e n t W i d t h < n . s c r o l l W i d t h ) { c o n s t t = g e t C o m p u t e d S t y l e ( n , n u l l ) ; r e t u r n F T ( t . o v e r f l o w Y , e ) | | F T ( t . o v e r f l o w X , e ) | | ( i = > { c o n s t r = ( a = > { i f ( ! a . o w n e r D o c u m e n t | | ! a . o w n e r D o c u m e n t . d e f a u l t V i e w ) r e t u r n n u l l ; t r y { r e t u r n a . o w n e r D o c u m e n t . d e f a u l t V i e w . f r a m e E l e m e n t } c a t c h { r e t u r n n u l l } } ) ( i ) ; r e t u r n ! ! r & & ( r . c l i e n t H e i g h t < i . s c r o l l H e i g h t | | r . c l i e n t W i d t h < i . s c r o l l W i d t h ) } ) ( n ) } r e t u r n ! 1 } , l x = ( n , e , t , i , r , a , l , o ) = > a < n & & l > e | | a > n & & l < e ? 0 : a < = n & & o < = t | | l > = e & & o > = t ? a - n - i : l > e & & o < t | | a < n & & o > t ? l - e + r : 0 , u a e = n = > { c o n s t e = n . p a r e n t E l e m e n t ; r e t u r n e ? ? ( n . g e t R o o t N o d e ( ) . h o s t | | n u l l ) } , c a e = ( n , e ) = > { v a r t , i , r , a ; i f ( t y p e o f d o c u m e n t > " u " ) r e t u r n [ ] ; c o n s t { i n l i n e : l , b o u n d a r y : o , s k i p O v e r f l o w H i d d e n E l e m e n t s : m } = e , C = t y p e o f o = = " f u n c t i o n " ? o : w e = > w e ! = = o ; i f ( ! L T ( n ) ) t h r o w n e w T y p e E r r o r ( " I n v a l i d t a r g e t " ) ; c o n s t S = d o c u m e n t . s c r o l l i n g E l e m e n t | | d o c u m e n t . d o c u m e n t E l e m e n t , O = [ ] ; l e t U = n ; f o r ( ; L T ( U ) & & C ( U ) ; ) { i f ( U = u a e ( U ) , U = = = S ) { O . p u s h ( U ) ; b r e a k } U ! = n u l l & & U = = = d o c u m e n t . b o d y & & s x ( U ) & & ! s x ( d o c u m e n t . d o c u m e n t E l e m e n t ) | | U ! = n u l l & & s x ( U , m ) & & O . p u s h ( U ) } c o n s t K = ( i = ( t = w i n d o w . v i s u a l V i e w p o r t ) = = n u l l ? v o i d 0 : t . w i d t h ) ! = n u l l ? i : i n n e r W i d t h , z = ( a = ( r = w i n d o w . v i s u a l V i e w p o r t ) = = n u l l ? v o i d 0 : r . h e i g h t ) ! = n u l l ? a : i n n e r H e i g h t , { s c r o l l X : j , s c r o l l Y : Q } = w i n d o w , { h e i g h t : e e , w i d t h : V , t o p : a e , r i g h t : n e , b o t t o m : Z , l e f t : o e } = n . g e t B o u n d i n g C l i e n t R e c t ( ) , { t o p : W , r i g h t : u e , l e f t : g e } = ( w e = > { c o n s t q e = w i n d o w . g e t C o m p u t e d S t y l e ( w e ) ; r e t u r n { t o p : p a r s e F l o a t ( q e . s c r o l l M a r g i n T o p ) | | 0 , r i g h t : p a r s e F l o a t ( q e . s c r o l l M a r g i n R i g h t ) | | 0 , b o t t o m : p a r s e F l o a t ( q e . s c r o l l M a r g i n B o t t o m ) | | 0 , l e f t : p a r s e F l o a t ( q e . s c r o l l M a r g i n L e f t ) | | 0 } } ) ( n ) ; l e t y e = a e - W , M e = l = = = " c e n t e r " ? o e + V / 2 - g e + u e : l = = = " e n d " ? n e + u e : o e - g e ; c o n s t B e = [ ] ; f o r ( l e t w e = 0 ; w e < O . l e n g t h ; w e + + ) { c o n s t q e = O [ w e ] , { h e i g h t : x e , w i d t h : z e , t o p : o t , r i g h t : y t , b o t t o m : n t , l e f t : b e } = q e . g e t B o u n d i n g C l i e n t R e c t ( ) ; i f ( a e > = 0 & & o e > = 0 & & Z < = z & & n e < = K & & ( q e = = = S & & ! s x ( q e ) | | a e > = o t & & Z < = n t & & o e > = b e & & n e < = y t ) ) r e t u r n B e ; c o n s t N e = g e t C o m p u t e d S t y l e ( q e ) , t t = p a r s e I n t ( N e . b o r d e r L e f t W i d t h , 1 0 ) , l t = p a r s e I n t ( N e . b o r d e r T o p W i d t h , 1 0 ) , I t = p a r s e I n t ( N e . b o r d e r R i g h t W i d t h , 1 0 ) , p t = p a r s e I n t ( N e . b o r d e r B o t t o m W i d t h , 1 0 ) ; l e t S t = 0 , R t = 0 ; c o n s t L e = " o f f s e t W i d t h " i n q e ? q e . o f f s e t W i d t h - q e . c l i e n t W i d t h - t t - I t : 0 , P e = " o f f s e t H e i g h t " i n q e ? q e . o f f s e t H e i g h t - q e . c l i e n t H e i g h t - l t - p t : 0 , R e = " o f f s e t W i d t h " i n q e ? q e . o f f s e t W i d t h = = = 0 ? 0 : z e / q e . o f f s e t W i d t h : 0 , H e = " o f f s e t H e i g h t " i n q e ? q e . o f f s e t H e i g h t = = = 0 ? 0 : x e / q e . o f f s e t H e i g h t : 0 ; i f ( S = = = q e ) S t = l x ( Q , Q + z , z , l t , p t , Q + y e , Q + y e + e e , e e ) , R t = l = = = " s t a r t " ? M e : l = = = " c e n t e r " ? M e - K / 2 : l = = = " e n d " ? M e - K : l x ( j , j + K , K , t t , I t , j + M e , j + M e + V , V ) , S t = M a t h . m a x ( 0 , S t + Q ) , R t = M a t h . m a x ( 0 , R t + j ) ; e l s e { S t = l x ( o t , n t , x e , l t , p t + P e , y e , y e + e e , e e ) , R t = l = = = " s t a r t " ? M e - b e - t t : l = = = " c e n t e r " ? M e - ( b e + z e / 2 ) + L e / 2 : l = = = " e n d " ? M e - y t + I t + L e : l x ( b e , y t , z e , t t , I t + L e , M e , M e + V , V ) ; c o n s t { s c r o l l L e f t : b t , s c r o l l T o p : v t } = q e ; S t = H e = = = 0 ? 0 : M a t h . m a x ( 0 , M a t h . m i n ( v t + S t / H e , q e . s c r o l l H e i g h t - x e / H e + P e ) ) , R t = R e = = = 0 ? 0 : M a t h . m a x ( 0 , M a t h . m i n ( b t + R t / R e , q e . s c r o l l W i d t h - z e / R e + L e ) ) , y e + = v t - S t , M e + = b t - R t } B e . p u s h ( { e l : q e , t o p : S t , l e f t : R t } ) } r e t u r n B e } ; v a r U v = f u n c t i o n ( ) { r e t u r n U v = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , i = 1 , r = a r g u m e n t s . l e n g t h ; i < r ; i + + ) { t = a r g u m e n t s [ i ] Line truncated
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function p se(){throw new TypeError( ` Invalid attempt to destructure non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var gse=R2(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,a=e.allowMultipleExpanded,l=a===void 0?!1:a,o=e.allowZeroExpanded,m=o===void 0?!1:o;D2(this,n),tA(this,"expanded",void 0),tA(this,"allowMultipleExpanded",void 0),tA(this,"allowZeroExpanded",void 0),tA(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var S=t.isItemExpanded(C);return S?t.augment({expanded:t.expanded.filter(function(O){return O!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(use(t.expanded),[C]):[C]})}),tA(this,"isItemDisabled",function(C){var S=t.isItemExpanded(C),O=t.expanded.length===1;return!!(S&&!t.allowZeroExpanded&&O)}),tA(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),tA(this,"getPanelAttributes",function(C,S){var O=S??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!O:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:O?void 0:!0}}),tA(this,"getHeadingAttributes",function(){return{role:"heading"}}),tA(this,"getButtonAttributes",function(C,S){var O=S??t.isItemExpanded(C),U=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":U,"aria-expanded":O,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),tA(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),tA(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),tA(this,"augment",function(C){return new n(CB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=r,this.allowMultipleExpanded=l,this.allowZeroExpanded=m}),rG=Gt.createContext(null),oG=function(n){O8(t,n);var e=I8(t);function t(){var i;D2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tA(Vm(i),"state",new gse({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),tA(Vm(i),"toggleExpanded",function(o){i.setState(function(m){return m.toggleExpanded(o)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),tA(Vm(i),"isItemDisabled",function(o){return i.state.isItemDisabled(o)}),tA(Vm(i),"isItemExpanded",function(o){return i.state.isItemExpanded(o)}),tA(Vm(i),"getPanelAttributes",function(o,m){return i.state.getPanelAttributes(o,m)}),tA(Vm(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),tA(Vm(i),"getButtonAttributes",function(o,m){return i.state.getButtonAttributes(o,m)}),i}return R2(t,[{key:"render",value:function(){var r=this.state,a=r.allowZeroExpanded,l=r.allowMultipleExpanded;return Gt.createElement(rG.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:a,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Gt.PureComponent);tA(oG,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var aG=function(n){O8(t,n);var e=I8(t);function t(){var i;D2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tA(Vm(i),"renderChildren",function(o){return o?i.props.children(o):null}),i}return R2(t,[{key:"render",value:function(){return Gt.createElement(rG.Consumer,null,this.renderChildren)}}]),t}(Gt.PureComponent),yse=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],vse=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,a=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,m=P2(e,yse);return Gt.createElement(oG,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:a,onChange:l},Gt.createElement("div",n0({"data-accordion-component":"Accordion",className:i},m)))},xB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(xB||(xB={}));var sG=xB,GM=0;function Cse(){var n=GM;return GM=GM+1,"raa-".concat(n)}var _se=Gt.useId||Cse,bse=/[ \u 0009 \u 000a \u 000c \u 000d \u 0020]/g;function F_(n){return n===""||bse.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var lG=Gt.createContext(null),xse=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,a=e.dangerouslySetExpanded,l=function(){r.toggleExpanded(i)},o=function(C){var S=a??C.isItemExpanded(i),O=C.isItemDisabled(i),U=C.getPanelAttributes(i,a),K=C.getHeadingAttributes(i),z=C.getButtonAttributes(i,a);return Gt.createElement(lG.Provider,{value:{uuid:i,expanded:S,disabled:O,toggleExpanded:l,panelAttributes:U,headingAttributes:K,buttonAttributes:z}},t)};return Gt.createElement(aG,nu
Line truncated
From the WAI - ARIA spec ( https : //www.w3.org/TR/wai-aria-practices-1.1/#accordion):
“ The button element is the only element inside the heading element . That is , if there are other visually persistent elements , they are not included inside the heading element . ”
` ,gN=function(n){P8(t,n);var e=K8(t);function t(){var i;F2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tA( $ m(i),"ref",void 0),tA( $ m(i),"setRef",function(o){i.ref=o}),i}return z2(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Nt.createElement("div",n0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Yse)}}]),t}(Nt.PureComponent);tA(gN,"defaultProps",Qse);var yN=function(e){return Nt.createElement(N2,null,function(t){var i=t.headingAttributes;return e.id&&Q_(e.id),Nt.createElement(gN,n0({},e,i))})};yN.displayName=dN.AccordionItemHeading;var qse=["className","region","id"],Hse=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,a=e.id,l=G2(e,qse),o=function(C){var S=C.panelAttributes;a&&Q_(a);var O=wB(wB({},S),{},{"aria-labelledby":r?S["aria-labelledby"]:void 0});return Nt.createElement("div",n0({"data-accordion-component":"AccordionItemPanel",className:i},l,O,{role:r?"region":void 0}))};return Nt.createElement(N2,null,o)},Kx={exports:{}},Vse=Kx.exports,hk;function W2(){return hk||(hk=1,function(n,e){(function(t,i){n.exports=i()})(Vse,function(){var t=navigator.userAgent,i=navigator.platform,r=/gecko \/ \d /i.test(t),a=/MSIE \d /.test(t),l=/Trident \/ (?:[7-9]| \d {2,}) \. .*rv:( \d +)/.exec(t),o=/Edge \/ ( \d +)/.exec(t),m=a||l||o,C=m&&(a?document.documentMode||6:+(o||l)[1]),S=!o&&/WebKit \/ /.test(t),O=S&&/Qt \/ \d + \. \d +/.test(t),U=!o&&/Chrome \/ ( \d +)/.exec(t),K=U&&+U[1],z=/Opera \/ /.test(t),j=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1 \d \D ([8-9]| \d \d ) \D /.test(t),ee=/PhantomJS/.test(t),V=j&&(/Mobile \/ \w +/.test(t)||navigator.maxTouchPoints>2),ae=/Android/.test(t),ne=V||ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),Z=V||/Mac/.test(i),oe=/ \b CrOS \b /.test(t),W=/win/i.test(i),ce=z&&t.match(/Version \/ ( \d * \. \d *)/);ce&&(ce=Number(ce[1])),ce&&ce>=15&&(z=!1,S=!0);var ge=Z&&(O||z&&(ce==null||ce<12.11)),ye=r||m&&C>=9;function Me(d){return new RegExp("(^| \\ s)"+d+"(?: $ | \\ s) \\ s*")}var Be=function(d,v){var B=d.className,E=Me(v).exec(B);if(E){var F=B.slice(E.index+E[0].length);d.className=B.slice(0,E.index)+(F?E[1]+F:"")}};function we(d){for(var v=d.childNodes.length;v>0;--v)d.removeChild(d.firstChild);return d}function qe(d,v){return we(d).appendChild(v)}function xe(d,v,B,E){var F=document.createElement(d);if(B&&(F.className=B),E&&(F.style.cssText=E),typeof v=="string")F.appendChild(document.createTextNode(v));else if(v)for(var X=0;X<v.length;++X)F.appendChild(v[X]);return F}function ze(d,v,B,E){var F=xe(d,v,B,E);return F.setAttribute("role","presentation"),F}var ot;document.createRange?ot=function(d,v,B,E){var F=document.createRange();return F.setEnd(E||d,B),F.setStart(d,v),F}:ot=function(d,v,B){var E=document.body.createTextRange();try{E.moveToElementText(d.parentNode)}catch{return E}return E.collapse(!0),E.moveEnd("character",B),E.moveStart("character",v),E};function yt(d,v){if(v.nodeType==3&&(v=v.parentNode),d.contains)return d.contains(v);do if(v.nodeType==11&&(v=v.host),v==d)return!0;while(v=v.parentNode)}function nt(d){var v=d.ownerDocument||d,B;try{B=d.activeElement}catch{B=v.body||null}for(;B&&B.shadowRoot&&B.shadowRoot.activeElement;)B=B.shadowRoot.activeElement;return B}function be(d,v){var B=d.className;Me(v).test(B)||(d.className+=(B?" ":"")+v)}function Ge(d,v){for(var B=d.split(" "),E=0;E<B.length;E++)B[E]&&!Me(B[E]).test(v)&&(v+=" "+B[E]);return v}var tt=function(d){d.select()};V?tt=function(d){d.selectionStart=0,d.selectionEnd=d.value.length}:m&&(tt=function(d){try{d.select()}catch{}});function lt(d){return d.display.wrapper.ownerDocument}function It(d){return pt(d.display.wrapper)}function pt(d){return d.getRootNode?d.getRootNode():d.ownerDocument}function St(d){return lt(d).defaultView}function Rt(d){var v=Array.prototype.slice.call(arguments,1);return function(){return d.apply(null,v)}}function Le(d,v,B){v||(v={});for(var E in d)d.hasOwnProperty(E)&&(B!==!1||!v.hasOwnProperty(E))&&(v[E]=d[E]);return v}function Pe(d,v,B,E,F){v==null&&(v=d.search(/[^ \s \u 00a0]/),v==-1&&(v=d.length));for(var X=E||0,fe=F||0;;){var _e=d.indexOf(" ",X);if(_e<0||_e>=v)return fe+(v-X);fe+=_e-X,fe+=B-fe%B,X=_e+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Rt(this.onTimeout,this)};Re.prototype.onTimeout=function(d){d.id=0,d.time<=+new Date?d.f():setTimeout(d.handler,d.time-+new Date)},Re.prototype.set=function(d,v){this.f=v;var B=+new Date+d;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,d),this.time=B)};function He(d,v){for(var B=0;B<d.length;++B)if(d[B]==v)return B;return-1}var
Line truncated
` ,cG=function(n){O8(t,n);var e=I8(t);function t(){var i;D2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tA(Vm(i),"ref",void 0),tA(Vm(i),"setRef",function(o){i.ref=o}),i}return R2(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Gt.createElement("div",n0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Rse)}}]),t}(Gt.PureComponent);tA(cG,"defaultProps",Dse);var hG=function(e){return Gt.createElement(K2,null,function(t){var i=t.headingAttributes;return e.id&&F_(e.id),Gt.createElement(cG,n0({},e,i))})};hG.displayName=sG.AccordionItemHeading;var Pse=["className","region","id"],Kse=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,a=e.id,l=P2(e,Pse),o=function(C){var S=C.panelAttributes;a&&F_(a);var O=CB(CB({},S),{},{"aria-labelledby":r?S["aria-labelledby"]:void 0});return Gt.createElement("div",n0({"data-accordion-component":"AccordionItemPanel",className:i},l,O,{role:r?"region":void 0}))};return Gt.createElement(K2,null,o)},Ix={exports:{}},Use=Ix.exports,ak;function L2(){return ak||(ak=1,function(n,e){(function(t,i){n.exports=i()})(Use,function(){var t=navigator.userAgent,i=navigator.platform,r=/gecko \/ \d /i.test(t),a=/MSIE \d /.test(t),l=/Trident \/ (?:[7-9]| \d {2,}) \. .*rv:( \d +)/.exec(t),o=/Edge \/ ( \d +)/.exec(t),m=a||l||o,C=m&&(a?document.documentMode||6:+(o||l)[1]),S=!o&&/WebKit \/ /.test(t),O=S&&/Qt \/ \d + \. \d +/.test(t),U=!o&&/Chrome \/ ( \d +)/.exec(t),K=U&&+U[1],z=/Opera \/ /.test(t),j=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1 \d \D ([8-9]| \d \d ) \D /.test(t),ee=/PhantomJS/.test(t),V=j&&(/Mobile \/ \w +/.test(t)||navigator.maxTouchPoints>2),ae=/Android/.test(t),ne=V||ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),Z=V||/Mac/.test(i),oe=/ \b CrOS \b /.test(t),W=/win/i.test(i),ue=z&&t.match(/Version \/ ( \d * \. \d *)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(z=!1,S=!0);var ge=Z&&(O||z&&(ue==null||ue<12.11)),ye=r||m&&C>=9;function Me(d){return new RegExp("(^| \\ s)"+d+"(?: $ | \\ s) \\ s*")}var Be=function(d,v){var B=d.className,E=Me(v).exec(B);if(E){var F=B.slice(E.index+E[0].length);d.className=B.slice(0,E.index)+(F?E[1]+F:"")}};function we(d){for(var v=d.childNodes.length;v>0;--v)d.removeChild(d.firstChild);return d}function qe(d,v){return we(d).appendChild(v)}function xe(d,v,B,E){var F=document.createElement(d);if(B&&(F.className=B),E&&(F.style.cssText=E),typeof v=="string")F.appendChild(document.createTextNode(v));else if(v)for(var X=0;X<v.length;++X)F.appendChild(v[X]);return F}function ze(d,v,B,E){var F=xe(d,v,B,E);return F.setAttribute("role","presentation"),F}var ot;document.createRange?ot=function(d,v,B,E){var F=document.createRange();return F.setEnd(E||d,B),F.setStart(d,v),F}:ot=function(d,v,B){var E=document.body.createTextRange();try{E.moveToElementText(d.parentNode)}catch{return E}return E.collapse(!0),E.moveEnd("character",B),E.moveStart("character",v),E};function yt(d,v){if(v.nodeType==3&&(v=v.parentNode),d.contains)return d.contains(v);do if(v.nodeType==11&&(v=v.host),v==d)return!0;while(v=v.parentNode)}function nt(d){var v=d.ownerDocument||d,B;try{B=d.activeElement}catch{B=v.body||null}for(;B&&B.shadowRoot&&B.shadowRoot.activeElement;)B=B.shadowRoot.activeElement;return B}function be(d,v){var B=d.className;Me(v).test(B)||(d.className+=(B?" ":"")+v)}function Ne(d,v){for(var B=d.split(" "),E=0;E<B.length;E++)B[E]&&!Me(B[E]).test(v)&&(v+=" "+B[E]);return v}var tt=function(d){d.select()};V?tt=function(d){d.selectionStart=0,d.selectionEnd=d.value.length}:m&&(tt=function(d){try{d.select()}catch{}});function lt(d){return d.display.wrapper.ownerDocument}function It(d){return pt(d.display.wrapper)}function pt(d){return d.getRootNode?d.getRootNode():d.ownerDocument}function St(d){return lt(d).defaultView}function Rt(d){var v=Array.prototype.slice.call(arguments,1);return function(){return d.apply(null,v)}}function Le(d,v,B){v||(v={});for(var E in d)d.hasOwnProperty(E)&&(B!==!1||!v.hasOwnProperty(E))&&(v[E]=d[E]);return v}function Pe(d,v,B,E,F){v==null&&(v=d.search(/[^ \s \u 00a0]/),v==-1&&(v=d.length));for(var X=E||0,fe=F||0;;){var _e=d.indexOf(" ",X);if(_e<0||_e>=v)return fe+(v-X);fe+=_e-X,fe+=B-fe%B,X=_e+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Rt(this.onTimeout,this)};Re.prototype.onTimeout=function(d){d.id=0,d.time<=+new Date?d.f():setTimeout(d.handler,d.time-+new Date)},Re.prototype.set=function(d,v){this.f=v;var B=+new Date+d;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,d),this.time=B)};function He(d,v){for(var B=0;B<d.length;++B)if(d[B]==v)return B;return-1}var
Line truncated
b ` .split(/ \n /).length!=3?function(d){for(var v=0,B=[],E=d.length;v<=E;){var F=d.indexOf( `
` ,v);F==-1&&(F=d.length);var X=d.slice(v,d.charAt(F-1)==" \r "?F-1:F),fe=X.indexOf(" \r ");fe!=-1?(B.push(X.slice(0,fe)),v+=fe+1):(B.push(X),v=F+1)}return B}:function(d){return d.split(/ \r \n ?| \n /)},Zn=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var v;try{v=d.ownerDocument.selection.createRange()}catch{}return!v||v.parentElement()!=d?!1:v.compareEndPoints("StartToEnd",v)!=0},lr=function(){var d=xe("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),zi=null;function vr(d){if(zi!=null)return zi;var v=qe(d,xe("span","x")),B=v.getBoundingClientRect(),E=ot(v,0,1).getBoundingClientRect();return zi=Math.abs(B.left-E.left)>1}var La={},Ir={};function Gi(d,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),La[d]=v}function gl(d,v){Ir[d]=v}function Ta(d){if(typeof d=="string"&&Ir.hasOwnProperty(d))d=Ir[d];else if(d&&typeof d.name=="string"&&Ir.hasOwnProperty(d.name)){var v=Ir[d.name];typeof v=="string"&&(v={name:v}),d=Bi(v,d),d.name=v.name}else{if(typeof d=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(d))return Ta("application/xml");if(typeof d=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(d))return Ta("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function So(d,v){v=Ta(v);var B=La[v.name];if(!B)return So(d,"text/plain");var E=B(d,v);if( $ a.hasOwnProperty(v.name)){var F= $ a[v.name];for(var X in F)F.hasOwnProperty(X)&&(E.hasOwnProperty(X)&&(E["_"+X]=E[X]),E[X]=F[X])}if(E.name=v.name,v.helperType&&(E.helperType=v.helperType),v.modeProps)for(var fe in v.modeProps)E[fe]=v.modeProps[fe];return E}var $ a={};function Ol(d,v){var B= $ a.hasOwnProperty(d)? $ a[d]: $ a[d]={};Le(v,B)}function Ao(d,v){if(v===!0)return v;if(d.copyState)return d.copyState(v);var B={};for(var E in v){var F=v[E];F instanceof Array&&(F=F.concat([])),B[E]=F}return B}function QA(d,v){for(var B;d.innerMode&&(B=d.innerMode(v),!(!B||B.mode==d));)v=B.state,d=B.mode;return B||{mode:d,state:v}}function ka(d,v,B){return d.startState?d.startState(v,B):!0}var Vi=function(d,v,B){this.pos=this.start=0,this.string=d,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Vi.prototype.eol=function(){return this.pos>=this.string.length},Vi.prototype.sol=function(){return this.pos==this.lineStart},Vi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Vi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Vi.prototype.eat=function(d){var v=this.string.charAt(this.pos),B;if(typeof d=="string"?B=v==d:B=v&&(d.test?d.test(v):d(v)),B)return++this.pos,v},Vi.prototype.eatWhile=function(d){for(var v=this.pos;this.eat(d););return this.pos>v},Vi.prototype.eatSpace=function(){for(var d=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},Vi.prototype.skipToEnd=function(){this.pos=this.string.length},Vi.prototype.skipTo=function(d){var v=this.string.indexOf(d,this.pos);if(v>-1)return this.pos=v,!0},Vi.prototype.backUp=function(d){this.pos-=d},Vi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Vi.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Vi.prototype.match=function(d,v,B){if(typeof d=="string"){var E=function(fe){return B?fe.toLowerCase():fe},F=this.string.substr(this.pos,d.length);if(E(F)==E(d))return v!==!1&&(this.pos+=d.length),!0}else{var X=this.string.slice(this.pos).match(d);return X&&X.index>0?null:(X&&v!==!1&&(this.pos+=X[0].length),X)}},Vi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Vi.prototype.hideFirstChars=function(d,v){this.lineStart+=d;try{return v()}finally{this.lineStart-=d}},Vi.prototype.lookAhead=function(d){var v=this.lineOracle;return v&&v.lookAhead(d)},Vi.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function xi(d,v){if(v-=d.first,v<0||v>=d.size)throw new Error("There is no line "+(v+d.first)+" in the document.");for(var B=d;!B.lines;)for(var E=0;;++E){var F=B.children[E],X=F.chunkSize();if(v<X){B=F;break}v-=X}return B.lines[v]}function ls(d,v,B){var E=[],F=v.line;return d.iter(v.line,B.line+1,function(X){var fe=X.text;F==B.line&&(fe=fe.slice(0,B.ch)),F==v.line&&(fe=fe.slice(v.ch)),E.push(fe),++F}),E}function Ma(d,v,B){var E=[];return d.iter(v,B,function(F){E.push(F.text)}),E}function Vo(d,v){var B=v-d.height;if(B)for(var E=d;E;E=E.parent)E.height+=B}function $ e(d){if(d.parent==null)return null;for(var v=d.parent,B=He(v.lines,d),E=v.parent;E;v=E,E=E.parent)for(var F=0;E.children[F]!=v;++F)B+=E.children[F].chunkSize();return B+v.first}function Et(d,v){var B=d.first;e:do{for(var E=0;E<d.child
Line truncated
` ?(Rn=_t.appendChild(xe("span",Jt[0]==" \r "?"␍":"","cm-invalidchar")),Rn.setAttribute("cm-text",Jt[0]),d.col+=1):(Rn=d.cm.options.specialCharPlaceholder(Jt[0]),Rn.setAttribute("cm-text",Jt[0]),m&&C<9?_t.appendChild(xe("span",[Rn])):_t.appendChild(Rn),d.col+=1);d.map.push(d.pos,d.pos+1,Rn),d.pos++}}if(d.trailingSpace=_e.charCodeAt(v.length-1)==32,B||E||F||Fe||X||fe){var Ci=B||"";E&&(Ci+=E),F&&(Ci+=F);var gi=xe("span",[_t],Ci,X);if(fe)for(var ki in fe)fe.hasOwnProperty(ki)&&ki!="style"&&ki!="class"&&gi.setAttribute(ki,fe[ki]);return d.content.appendChild(gi)}d.content.appendChild(_t)}}function Gh(d,v){if(d.length>1&&!/ /.test(d))return d;for(var B=v,E="",F=0;F<d.length;F++){var X=d.charAt(F);X==" "&&B&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(X=" "),E+=X,B=X==" "}return E}function po(d,v){return function(B,E,F,X,fe,_e,ke){F=F?F+" cm-force-border":"cm-force-border";for(var Fe=B.pos,_t=Fe+E.length;;){for(var Tt=void 0,Jt=0;Jt<v.length&&(Tt=v[Jt],!(Tt.to>Fe&&Tt.from<=Fe));Jt++);if(Tt.to>=_t)return d(B,E,F,X,fe,_e,ke);d(B,E.slice(0,Tt.to-Fe),F,X,null,_e,ke),X=null,E=E.slice(Tt.to-Fe),Fe=Tt.to}}}function ic(d,v,B,E){var F=!E&&B.widgetNode;F&&d.map.push(d.pos,d.pos+v,F),!E&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",B.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=v,d.trailingSpace=!1}function vd(d,v,B){var E=d.markedSpans,F=d.text,X=0;if(!E){for(var fe=1;fe<B.length;fe+=2)v.addToken(v,F.slice(X,X=B[fe]),yd(B[fe+1],v.cm.options));return}for(var _e=F.length,ke=0,Fe=1,_t="",Tt,Jt,Ht=0,_n,Rn,oi,pi,Ci;;){if(Ht==ke){_n=Rn=oi=Jt="",Ci=null,pi=null,Ht=1/0;for(var gi=[],ki=void 0,ar=0;ar<E.length;++ar){var Yi=E[ar],Xr=Yi.marker;if(Xr.type=="bookmark"&&Yi.from==ke&&Xr.widgetNode)gi.push(Xr);else if(Yi.from<=ke&&(Yi.to==null||Yi.to>ke||Xr.collapsed&&Yi.to==ke&&Yi.from==ke)){if(Yi.to!=null&&Yi.to!=ke&&Ht>Yi.to&&(Ht=Yi.to,Rn=""),Xr.className&&(_n+=" "+Xr.className),Xr.css&&(Jt=(Jt?Jt+";":"")+Xr.css),Xr.startStyle&&Yi.from==ke&&(oi+=" "+Xr.startStyle),Xr.endStyle&&Yi.to==Ht&&(ki||(ki=[])).push(Xr.endStyle,Yi.to),Xr.title&&((Ci||(Ci={})).title=Xr.title),Xr.attributes)for(var xr in Xr.attributes)(Ci||(Ci={}))[xr]=Xr.attributes[xr];Xr.collapsed&&(!pi||st(pi.marker,Xr)<0)&&(pi=Yi)}else Yi.from>ke&&Ht>Yi.from&&(Ht=Yi.from)}if(ki)for(var ns=0;ns<ki.length;ns+=2)ki[ns+1]==Ht&&(Rn+=" "+ki[ns]);if(!pi||pi.from==ke)for(var ua=0;ua<gi.length;++ua)ic(v,0,gi[ua]);if(pi&&(pi.from||0)==ke){if(ic(v,(pi.to==null?_e+1:pi.to)-ke,pi.marker,pi.from==null),pi.to==null)return;pi.to==ke&&(pi=!1)}}if(ke>=_e)break;for(var Yr=Math.min(_e,Ht);;){if(_t){var ys=ke+_t.length;if(!pi){var vs=ys>Yr?_t.slice(0,Yr-ke):_t;v.addToken(v,vs,Tt?Tt+_n:_n,oi,ke+vs.length==Ht?Rn:"",Jt,Ci)}if(ys>=Yr){_t=_t.slice(Yr-ke),ke=Yr;break}ke=ys,oi=""}_t=F.slice(X,X=B[Fe++]),Tt=yd(B[Fe++],v.cm.options)}}}function fp(d,v,B){this.line=v,this.rest=eo(v),this.size=this.rest? $ e( $ n(this.rest))-B+1:1,this.node=this.text=null,this.hidden=pr(d,v)}function gh(d,v,B){for(var E=[],F,X=v;X<B;X=F){var fe=new fp(d.doc,xi(d.doc,X),X);F=X+fe.size,E.push(fe)}return E}var Cd=null;function o0(d){Cd?Cd.ops.push(d):d.ownsGroup=Cd={ops:[d],delayedCallbacks:[]}}function kf(d){var v=d.delayedCallbacks,B=0;do{for(;B<v.length;B++)v[B].call(null);for(var E=0;E<d.ops.length;E++){var F=d.ops[E];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(B<v.length)}function Df(d,v){var B=d.ownsGroup;if(B)try{kf(B)}finally{Cd=null,v(B)}}var VA=null;function Xa(d,v){var B=ht(d,v);if(B.length){var E=Array.prototype.slice.call(arguments,2),F;Cd?F=Cd.delayedCallbacks:VA?F=VA:(F=VA=[],setTimeout(_d,0));for(var X=function(_e){F.push(function(){return B[_e].apply(null,E)})},fe=0;fe<B.length;++fe)X(fe)}}function _d(){var d=VA;VA=null;for(var v=0;v<d.length;++v)d[v]()}function Fl(d,v,B,E){for(var F=0;F<v.changes.length;F++){var X=v.changes[F];X=="text"?jh(d,v):X=="gutter"?yh(d,v,B,E):X=="class"?Rf(d,v):X=="widget"&&vh(d,v,E)}v.changes=null}function bd(d){return d.node==d.text&&(d.node=xe("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),m&&C<8&&(d.node.style.zIndex=2)),d.node}function Nh(d,v){var B=v.bgClass?v.bgClass+" "+(v.line.bgClass||""):v.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),v.background)B?v.background.className=B:(v.background.parentNode.removeChild(v.background),v.background=null);else if(B){var E=bd(v);v.background=E.insertBefore(xe("div",null,B),E.firstChild),d.display.input.setUneditable(v.background)}}function Yc(d,v){var B=d.display.externalMeasured;return B&&B.line==v.line?(d.display.externalMeasured=null,v.measure=B.measure,B.built):Ru(d,v)}function jh(d,v){var B=v.text.className,E=Yc(d,v);v.text==v.node&&(v.node=E.pre),v.text.parentNode.replaceChild(E.pre,v.text),v.text=E.pre,E.bgClass
Line truncated
` ,v);F==-1&&(F=d.length);var X=d.slice(v,d.charAt(F-1)==" \r "?F-1:F),fe=X.indexOf(" \r ");fe!=-1?(B.push(X.slice(0,fe)),v+=fe+1):(B.push(X),v=F+1)}return B}:function(d){return d.split(/ \r \n ?| \n /)},Zn=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var v;try{v=d.ownerDocument.selection.createRange()}catch{}return!v||v.parentElement()!=d?!1:v.compareEndPoints("StartToEnd",v)!=0},lr=function(){var d=xe("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),zi=null;function vr(d){if(zi!=null)return zi;var v=qe(d,xe("span","x")),B=v.getBoundingClientRect(),E=ot(v,0,1).getBoundingClientRect();return zi=Math.abs(B.left-E.left)>1}var La={},Ir={};function Ni(d,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),La[d]=v}function gl(d,v){Ir[d]=v}function Ta(d){if(typeof d=="string"&&Ir.hasOwnProperty(d))d=Ir[d];else if(d&&typeof d.name=="string"&&Ir.hasOwnProperty(d.name)){var v=Ir[d.name];typeof v=="string"&&(v={name:v}),d=Bi(v,d),d.name=v.name}else{if(typeof d=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(d))return Ta("application/xml");if(typeof d=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(d))return Ta("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function So(d,v){v=Ta(v);var B=La[v.name];if(!B)return So(d,"text/plain");var E=B(d,v);if( $ a.hasOwnProperty(v.name)){var F= $ a[v.name];for(var X in F)F.hasOwnProperty(X)&&(E.hasOwnProperty(X)&&(E["_"+X]=E[X]),E[X]=F[X])}if(E.name=v.name,v.helperType&&(E.helperType=v.helperType),v.modeProps)for(var fe in v.modeProps)E[fe]=v.modeProps[fe];return E}var $ a={};function Ol(d,v){var B= $ a.hasOwnProperty(d)? $ a[d]: $ a[d]={};Le(v,B)}function Ao(d,v){if(v===!0)return v;if(d.copyState)return d.copyState(v);var B={};for(var E in v){var F=v[E];F instanceof Array&&(F=F.concat([])),B[E]=F}return B}function QA(d,v){for(var B;d.innerMode&&(B=d.innerMode(v),!(!B||B.mode==d));)v=B.state,d=B.mode;return B||{mode:d,state:v}}function ka(d,v,B){return d.startState?d.startState(v,B):!0}var Vi=function(d,v,B){this.pos=this.start=0,this.string=d,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Vi.prototype.eol=function(){return this.pos>=this.string.length},Vi.prototype.sol=function(){return this.pos==this.lineStart},Vi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Vi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Vi.prototype.eat=function(d){var v=this.string.charAt(this.pos),B;if(typeof d=="string"?B=v==d:B=v&&(d.test?d.test(v):d(v)),B)return++this.pos,v},Vi.prototype.eatWhile=function(d){for(var v=this.pos;this.eat(d););return this.pos>v},Vi.prototype.eatSpace=function(){for(var d=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},Vi.prototype.skipToEnd=function(){this.pos=this.string.length},Vi.prototype.skipTo=function(d){var v=this.string.indexOf(d,this.pos);if(v>-1)return this.pos=v,!0},Vi.prototype.backUp=function(d){this.pos-=d},Vi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Vi.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Vi.prototype.match=function(d,v,B){if(typeof d=="string"){var E=function(fe){return B?fe.toLowerCase():fe},F=this.string.substr(this.pos,d.length);if(E(F)==E(d))return v!==!1&&(this.pos+=d.length),!0}else{var X=this.string.slice(this.pos).match(d);return X&&X.index>0?null:(X&&v!==!1&&(this.pos+=X[0].length),X)}},Vi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Vi.prototype.hideFirstChars=function(d,v){this.lineStart+=d;try{return v()}finally{this.lineStart-=d}},Vi.prototype.lookAhead=function(d){var v=this.lineOracle;return v&&v.lookAhead(d)},Vi.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function xi(d,v){if(v-=d.first,v<0||v>=d.size)throw new Error("There is no line "+(v+d.first)+" in the document.");for(var B=d;!B.lines;)for(var E=0;;++E){var F=B.children[E],X=F.chunkSize();if(v<X){B=F;break}v-=X}return B.lines[v]}function ls(d,v,B){var E=[],F=v.line;return d.iter(v.line,B.line+1,function(X){var fe=X.text;F==B.line&&(fe=fe.slice(0,B.ch)),F==v.line&&(fe=fe.slice(v.ch)),E.push(fe),++F}),E}function Ma(d,v,B){var E=[];return d.iter(v,B,function(F){E.push(F.text)}),E}function Vo(d,v){var B=v-d.height;if(B)for(var E=d;E;E=E.parent)E.height+=B}function $ e(d){if(d.parent==null)return null;for(var v=d.parent,B=He(v.lines,d),E=v.parent;E;v=E,E=E.parent)for(var F=0;E.children[F]!=v;++F)B+=E.children[F].chunkSize();return B+v.first}function Et(d,v){var B=d.first;e:do{for(var E=0;E<d.child
Line truncated
` ?(Rn=_t.appendChild(xe("span",Jt[0]==" \r "?"␍":"","cm-invalidchar")),Rn.setAttribute("cm-text",Jt[0]),d.col+=1):(Rn=d.cm.options.specialCharPlaceholder(Jt[0]),Rn.setAttribute("cm-text",Jt[0]),m&&C<9?_t.appendChild(xe("span",[Rn])):_t.appendChild(Rn),d.col+=1);d.map.push(d.pos,d.pos+1,Rn),d.pos++}}if(d.trailingSpace=_e.charCodeAt(v.length-1)==32,B||E||F||Fe||X||fe){var Ci=B||"";E&&(Ci+=E),F&&(Ci+=F);var gi=xe("span",[_t],Ci,X);if(fe)for(var ki in fe)fe.hasOwnProperty(ki)&&ki!="style"&&ki!="class"&&gi.setAttribute(ki,fe[ki]);return d.content.appendChild(gi)}d.content.appendChild(_t)}}function Nh(d,v){if(d.length>1&&!/ /.test(d))return d;for(var B=v,E="",F=0;F<d.length;F++){var X=d.charAt(F);X==" "&&B&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(X=" "),E+=X,B=X==" "}return E}function po(d,v){return function(B,E,F,X,fe,_e,ke){F=F?F+" cm-force-border":"cm-force-border";for(var Fe=B.pos,_t=Fe+E.length;;){for(var Tt=void 0,Jt=0;Jt<v.length&&(Tt=v[Jt],!(Tt.to>Fe&&Tt.from<=Fe));Jt++);if(Tt.to>=_t)return d(B,E,F,X,fe,_e,ke);d(B,E.slice(0,Tt.to-Fe),F,X,null,_e,ke),X=null,E=E.slice(Tt.to-Fe),Fe=Tt.to}}}function ic(d,v,B,E){var F=!E&&B.widgetNode;F&&d.map.push(d.pos,d.pos+v,F),!E&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",B.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=v,d.trailingSpace=!1}function vd(d,v,B){var E=d.markedSpans,F=d.text,X=0;if(!E){for(var fe=1;fe<B.length;fe+=2)v.addToken(v,F.slice(X,X=B[fe]),yd(B[fe+1],v.cm.options));return}for(var _e=F.length,ke=0,Fe=1,_t="",Tt,Jt,Ht=0,_n,Rn,oi,pi,Ci;;){if(Ht==ke){_n=Rn=oi=Jt="",Ci=null,pi=null,Ht=1/0;for(var gi=[],ki=void 0,ar=0;ar<E.length;++ar){var Yi=E[ar],Xr=Yi.marker;if(Xr.type=="bookmark"&&Yi.from==ke&&Xr.widgetNode)gi.push(Xr);else if(Yi.from<=ke&&(Yi.to==null||Yi.to>ke||Xr.collapsed&&Yi.to==ke&&Yi.from==ke)){if(Yi.to!=null&&Yi.to!=ke&&Ht>Yi.to&&(Ht=Yi.to,Rn=""),Xr.className&&(_n+=" "+Xr.className),Xr.css&&(Jt=(Jt?Jt+";":"")+Xr.css),Xr.startStyle&&Yi.from==ke&&(oi+=" "+Xr.startStyle),Xr.endStyle&&Yi.to==Ht&&(ki||(ki=[])).push(Xr.endStyle,Yi.to),Xr.title&&((Ci||(Ci={})).title=Xr.title),Xr.attributes)for(var xr in Xr.attributes)(Ci||(Ci={}))[xr]=Xr.attributes[xr];Xr.collapsed&&(!pi||st(pi.marker,Xr)<0)&&(pi=Yi)}else Yi.from>ke&&Ht>Yi.from&&(Ht=Yi.from)}if(ki)for(var ns=0;ns<ki.length;ns+=2)ki[ns+1]==Ht&&(Rn+=" "+ki[ns]);if(!pi||pi.from==ke)for(var ua=0;ua<gi.length;++ua)ic(v,0,gi[ua]);if(pi&&(pi.from||0)==ke){if(ic(v,(pi.to==null?_e+1:pi.to)-ke,pi.marker,pi.from==null),pi.to==null)return;pi.to==ke&&(pi=!1)}}if(ke>=_e)break;for(var Yr=Math.min(_e,Ht);;){if(_t){var ys=ke+_t.length;if(!pi){var vs=ys>Yr?_t.slice(0,Yr-ke):_t;v.addToken(v,vs,Tt?Tt+_n:_n,oi,ke+vs.length==Ht?Rn:"",Jt,Ci)}if(ys>=Yr){_t=_t.slice(Yr-ke),ke=Yr;break}ke=ys,oi=""}_t=F.slice(X,X=B[Fe++]),Tt=yd(B[Fe++],v.cm.options)}}}function dp(d,v,B){this.line=v,this.rest=eo(v),this.size=this.rest? $ e( $ n(this.rest))-B+1:1,this.node=this.text=null,this.hidden=pr(d,v)}function gh(d,v,B){for(var E=[],F,X=v;X<B;X=F){var fe=new dp(d.doc,xi(d.doc,X),X);F=X+fe.size,E.push(fe)}return E}var Cd=null;function o0(d){Cd?Cd.ops.push(d):d.ownsGroup=Cd={ops:[d],delayedCallbacks:[]}}function Tf(d){var v=d.delayedCallbacks,B=0;do{for(;B<v.length;B++)v[B].call(null);for(var E=0;E<d.ops.length;E++){var F=d.ops[E];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(B<v.length)}function kf(d,v){var B=d.ownsGroup;if(B)try{Tf(B)}finally{Cd=null,v(B)}}var VA=null;function Xa(d,v){var B=ht(d,v);if(B.length){var E=Array.prototype.slice.call(arguments,2),F;Cd?F=Cd.delayedCallbacks:VA?F=VA:(F=VA=[],setTimeout(_d,0));for(var X=function(_e){F.push(function(){return B[_e].apply(null,E)})},fe=0;fe<B.length;++fe)X(fe)}}function _d(){var d=VA;VA=null;for(var v=0;v<d.length;++v)d[v]()}function Fl(d,v,B,E){for(var F=0;F<v.changes.length;F++){var X=v.changes[F];X=="text"?jh(d,v):X=="gutter"?yh(d,v,B,E):X=="class"?Df(d,v):X=="widget"&&vh(d,v,E)}v.changes=null}function bd(d){return d.node==d.text&&(d.node=xe("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),m&&C<8&&(d.node.style.zIndex=2)),d.node}function Gh(d,v){var B=v.bgClass?v.bgClass+" "+(v.line.bgClass||""):v.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),v.background)B?v.background.className=B:(v.background.parentNode.removeChild(v.background),v.background=null);else if(B){var E=bd(v);v.background=E.insertBefore(xe("div",null,B),E.firstChild),d.display.input.setUneditable(v.background)}}function Yc(d,v){var B=d.display.externalMeasured;return B&&B.line==v.line?(d.display.externalMeasured=null,v.measure=B.measure,B.built):Ru(d,v)}function jh(d,v){var B=v.text.className,E=Yc(d,v);v.text==v.node&&(v.node=E.pre),v.text.parentNode.replaceChild(E.pre,v.text),v.text=E.pre,E.bgClass
Line truncated
top : ` +ki+"px; width: "+(ar??ke-gi)+ ` px ;
height : ` +(Yi-ki)+"px"))}function Tt(gi,ki,ar){var Yi=xi(F,gi),Xr=Yi.text.length,xr,ns;function ua(vs,ca){return wn(d,rn(gi,vs),"div",Yi,ca)}function Yr(vs,ca,Vl){var Is=Do(d,Yi,null,vs),G s=ca=="ltr"==(Vl=="after")?"left":"right",Br=Vl=="after"?Is.begin:Is.end-(/ \s /.test(Yi.text.charAt(Is.end-1))?2:1);return ua(Br,G s)[G s]}var ys=Ze(Yi,F.direction);return We(ys,ki||0,ar??Xr,function(vs,ca,Vl,Is){var G s=Vl=="ltr",Br=ua(vs,G s?"left":"right"),Ea=ua(ca-1,G s?"right":"left"), $ l=ki==null&&vs==0,fc=ar==null&&ca==Xr,mA=Is==0,rh=!ys||Is==ys.length-1;if(Ea.top-Br.top<=3){var cs=(Fe? $ l:fc)&&mA,Su=(Fe?fc: $ l)&&rh,Ml=cs?_e:(G s?Br:Ea).left,mc=Su?ke:(G s?Ea:Br).right;_t(Ml,Br.top,mc-Ml,Br.bottom)}else{var al,pA,Vu,od;G s?(al=Fe&& $ l&&mA?_e:Br.left,pA=Fe?ke:Yr(vs,Vl,"before"),Vu=Fe?_e:Yr(ca,Vl,"after"),od=Fe&&fc&&rh?ke:Ea.right):(al=Fe?Yr(vs,Vl,"before"):_e,pA=!Fe&& $ l&&mA?ke:Br.right,Vu=!Fe&&fc&&rh?_e:Ea.left,od=Fe?Yr(ca,Vl,"after"):ke),_t(al,Br.top,pA-al,Br.bottom),Br.bottom<Ea.top&&_t(_e,Br.bottom,null,Ea.top),_t(Vu,Ea.top,od-Vu,Ea.bottom)}(!xr||sc(Br,xr)<0)&&(xr=Br),sc(Ea,xr)<0&&(xr=Ea),(!ns||sc(Br,ns)<0)&&(ns=Br),sc(Ea,ns)<0&&(ns=Ea)}),{start:xr,end:ns}}var Jt=v.from(),Ht=v.to();if(Jt.line==Ht.line)Tt(Jt.line,Jt.ch,Ht.ch);else{var _n=xi(F,Jt.line),Rn=xi(F,Ht.line),oi=Di(_n)==Di(Rn),pi=Tt(Jt.line,Jt.ch,oi?_n.text.length+1:null).end,Ci=Tt(Ht.line,oi?0:null,Ht.ch).start;oi&&(pi.top<Ci.top-2?(_t(pi.right,pi.top,null,pi.bottom),_t(_e,Ci.top,Ci.left,Ci.bottom)):_t(pi.right,pi.top,Ci.left-pi.right,pi.bottom)),pi.bottom<Ci.top&&_t(_e,pi.bottom,null,Ci.top)}B.appendChild(X)}function Ec(d){if(d.state.focused){var v=d.display;clearInterval(v.blinker);var B=!0;v.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?v.blinker=setInterval(function(){d.hasFocus()||mu(d),v.cursorDiv.style.visibility=(B=!B)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(v.cursorDiv.style.visibility="hidden")}}function Es(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Ed(d))}function bh(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&mu(d))},100)}function Ed(d,v){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(it(d,"focus",d,v),d.state.focused=!0,be(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),S&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Ec(d))}function mu(d,v){d.state.delayingBlurEvent||(d.state.focused&&(it(d,"blur",d,v),d.state.focused=!1,Be(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Bd(d){for(var v=d.display,B=v.lineDiv.offsetTop,E=Math.max(0,v.scroller.getBoundingClientRect().top),F=v.lineDiv.getBoundingClientRect().top,X=0,fe=0;fe<v.view.length;fe++){var _e=v.view[fe],ke=d.options.lineWrapping,Fe=void 0,_t=0;if(!_e.hidden){if(F+=_e.line.height,m&&C<8){var Tt=_e.node.offsetTop+_e.node.offsetHeight;Fe=Tt-B,B=Tt}else{var Jt=_e.node.getBoundingClientRect();Fe=Jt.bottom-Jt.top,!ke&&_e.text.firstChild&&(_t=_e.text.firstChild.getBoundingClientRect().right-Jt.left-1)}var Ht=_e.line.height-Fe;if((Ht>.005||Ht<-.005)&&(F<E&&(X-=Ht),Vo(_e.line,Fe),Vc(_e.line),_e.rest))for(var _n=0;_n<_e.rest.length;_n++)Vc(_e.rest[_n]);if(_t>d.display.sizerWidth){var Rn=Math.ceil(_t/wA(d.display));Rn>d.display.maxLineLength&&(d.display.maxLineLength=Rn,d.display.maxLine=_e.line,d.display.maxLineChanged=!0)}}}Math.abs(X)>2&&(v.scroller.scrollTop+=X)}function Vc(d){if(d.widgets)for(var v=0;v<d.widgets.length;++v){var B=d.widgets[v],E=B.node.parentNode;E&&(B.height=E.offsetHeight)}}function OA(d,v,B){var E=B&&B.top!=null?Math.max(0,B.top):d.scroller.scrollTop;E=Math.floor(E-xc(d));var F=B&&B.bottom!=null?B.bottom:E+d.wrapper.clientHeight,X=Et(v,E),fe=Et(v,F);if(B&&B.ensure){var _e=B.ensure.from.line,ke=B.ensure.to.line;_e<X?(X=_e,fe=Et(v,N o(xi(v,_e))+d.wrapper.clientHeight)):Math.min(ke,v.lastLine())>=fe&&(X=Et(v,N o(xi(v,ke))-d.wrapper.clientHeight),fe=ke)}return{from:X,to:Math.max(fe,X+1)}}function Uu(d,v){if(!en(d,"scrollCursorIntoView")){var B=d.display,E=B.sizer.getBoundingClientRect(),F=null,X=B.wrapper.ownerDocument;if(v.top+E.top<0?F=!0:v.bottom+E.top>(X.defaultView.innerHeight||X.documentElement.clientHeight)&&(F=!1),F!=null&&!ee){var fe=xe("div"," ",null, ` position : absolute ;
height : ` +(Yi-ki)+"px"))}function Tt(gi,ki,ar){var Yi=xi(F,gi),Xr=Yi.text.length,xr,ns;function ua(vs,ca){return wn(d,rn(gi,vs),"div",Yi,ca)}function Yr(vs,ca,Vl){var Is=Do(d,Yi,null,vs),N s=ca=="ltr"==(Vl=="after")?"left":"right",Br=Vl=="after"?Is.begin:Is.end-(/ \s /.test(Yi.text.charAt(Is.end-1))?2:1);return ua(Br,N s)[N s]}var ys=Ze(Yi,F.direction);return We(ys,ki||0,ar??Xr,function(vs,ca,Vl,Is){var N s=Vl=="ltr",Br=ua(vs,N s?"left":"right"),Ea=ua(ca-1,N s?"right":"left"), $ l=ki==null&&vs==0,fc=ar==null&&ca==Xr,mA=Is==0,rh=!ys||Is==ys.length-1;if(Ea.top-Br.top<=3){var cs=(Fe? $ l:fc)&&mA,Su=(Fe?fc: $ l)&&rh,Ml=cs?_e:(N s?Br:Ea).left,mc=Su?ke:(N s?Ea:Br).right;_t(Ml,Br.top,mc-Ml,Br.bottom)}else{var al,pA,Vu,od;N s?(al=Fe&& $ l&&mA?_e:Br.left,pA=Fe?ke:Yr(vs,Vl,"before"),Vu=Fe?_e:Yr(ca,Vl,"after"),od=Fe&&fc&&rh?ke:Ea.right):(al=Fe?Yr(vs,Vl,"before"):_e,pA=!Fe&& $ l&&mA?ke:Br.right,Vu=!Fe&&fc&&rh?_e:Ea.left,od=Fe?Yr(ca,Vl,"after"):ke),_t(al,Br.top,pA-al,Br.bottom),Br.bottom<Ea.top&&_t(_e,Br.bottom,null,Ea.top),_t(Vu,Ea.top,od-Vu,Ea.bottom)}(!xr||sc(Br,xr)<0)&&(xr=Br),sc(Ea,xr)<0&&(xr=Ea),(!ns||sc(Br,ns)<0)&&(ns=Br),sc(Ea,ns)<0&&(ns=Ea)}),{start:xr,end:ns}}var Jt=v.from(),Ht=v.to();if(Jt.line==Ht.line)Tt(Jt.line,Jt.ch,Ht.ch);else{var _n=xi(F,Jt.line),Rn=xi(F,Ht.line),oi=Di(_n)==Di(Rn),pi=Tt(Jt.line,Jt.ch,oi?_n.text.length+1:null).end,Ci=Tt(Ht.line,oi?0:null,Ht.ch).start;oi&&(pi.top<Ci.top-2?(_t(pi.right,pi.top,null,pi.bottom),_t(_e,Ci.top,Ci.left,Ci.bottom)):_t(pi.right,pi.top,Ci.left-pi.right,pi.bottom)),pi.bottom<Ci.top&&_t(_e,pi.bottom,null,Ci.top)}B.appendChild(X)}function Ec(d){if(d.state.focused){var v=d.display;clearInterval(v.blinker);var B=!0;v.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?v.blinker=setInterval(function(){d.hasFocus()||mu(d),v.cursorDiv.style.visibility=(B=!B)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(v.cursorDiv.style.visibility="hidden")}}function Es(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Ed(d))}function bh(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&mu(d))},100)}function Ed(d,v){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(it(d,"focus",d,v),d.state.focused=!0,be(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),S&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Ec(d))}function mu(d,v){d.state.delayingBlurEvent||(d.state.focused&&(it(d,"blur",d,v),d.state.focused=!1,Be(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Bd(d){for(var v=d.display,B=v.lineDiv.offsetTop,E=Math.max(0,v.scroller.getBoundingClientRect().top),F=v.lineDiv.getBoundingClientRect().top,X=0,fe=0;fe<v.view.length;fe++){var _e=v.view[fe],ke=d.options.lineWrapping,Fe=void 0,_t=0;if(!_e.hidden){if(F+=_e.line.height,m&&C<8){var Tt=_e.node.offsetTop+_e.node.offsetHeight;Fe=Tt-B,B=Tt}else{var Jt=_e.node.getBoundingClientRect();Fe=Jt.bottom-Jt.top,!ke&&_e.text.firstChild&&(_t=_e.text.firstChild.getBoundingClientRect().right-Jt.left-1)}var Ht=_e.line.height-Fe;if((Ht>.005||Ht<-.005)&&(F<E&&(X-=Ht),Vo(_e.line,Fe),Vc(_e.line),_e.rest))for(var _n=0;_n<_e.rest.length;_n++)Vc(_e.rest[_n]);if(_t>d.display.sizerWidth){var Rn=Math.ceil(_t/wA(d.display));Rn>d.display.maxLineLength&&(d.display.maxLineLength=Rn,d.display.maxLine=_e.line,d.display.maxLineChanged=!0)}}}Math.abs(X)>2&&(v.scroller.scrollTop+=X)}function Vc(d){if(d.widgets)for(var v=0;v<d.widgets.length;++v){var B=d.widgets[v],E=B.node.parentNode;E&&(B.height=E.offsetHeight)}}function OA(d,v,B){var E=B&&B.top!=null?Math.max(0,B.top):d.scroller.scrollTop;E=Math.floor(E-xc(d));var F=B&&B.bottom!=null?B.bottom:E+d.wrapper.clientHeight,X=Et(v,E),fe=Et(v,F);if(B&&B.ensure){var _e=B.ensure.from.line,ke=B.ensure.to.line;_e<X?(X=_e,fe=Et(v,G o(xi(v,_e))+d.wrapper.clientHeight)):Math.min(ke,v.lastLine())>=fe&&(X=Et(v,G o(xi(v,ke))-d.wrapper.clientHeight),fe=ke)}return{from:X,to:Math.max(fe,X+1)}}function Uu(d,v){if(!en(d,"scrollCursorIntoView")){var B=d.display,E=B.sizer.getBoundingClientRect(),F=null,X=B.wrapper.ownerDocument;if(v.top+E.top<0?F=!0:v.bottom+E.top>(X.defaultView.innerHeight||X.documentElement.clientHeight)&&(F=!1),F!=null&&!ee){var fe=xe("div"," ",null, ` position : absolute ;
top : ` +(v.top-B.viewOffset-xc(d.display))+ ` px ;
height : ` +(v.bottom-v.top+Pu(d)+B.barHeight)+ ` px ;
left : ` +v.left+"px; width: "+Math.max(2,v.right-v.left)+"px;");d.display.lineSpace.appendChild(fe),fe.scrollIntoView(F),d.display.lineSpace.removeChild(fe)}}}function xh(d,v,B,E){E==null&&(E=0);var F;!d.options.lineWrapping&&v==B&&(B=v.sticky=="before"?rn(v.line,v.ch+1,"before"):v,v=v.ch?rn(v.line,v.sticky=="before"?v.ch-1:v.ch,"after"):v);for(var X=0;X<5;X++){var fe=!1,_e=vn(d,v),ke=!B||B==v?_e:vn(d,B);F={left:Math.min(_e.left,ke.left),top:Math.min(_e.top,ke.top)-E,right:Math.max(_e.left,ke.left),bottom:Math.max(_e.bottom,ke.bottom)+E};var Fe=IA(d,F),_t=d.doc.scrollTop,Tt=d.doc.scrollLeft;if(Fe.scrollTop!=null&&( $ c(d,Fe.scrollTop),Math.abs(d.doc.scrollTop-_t)>1&&(fe=!0)),Fe.scrollLeft!=null&&(va(d,Fe.scrollLeft),Math.abs(d.doc.scrollLeft-Tt)>1&&(fe=!0)),!fe)break}return F}function Hh(d,v){var B=IA(d,v);B.scrollTop!=null&& $ c(d,B.scrollTop),B.scrollLeft!=null&&va(d,B.scrollLeft)}function IA(d,v){var B=d.display,E=SA(d.display);v.top<0&&(v.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:B.scroller.scrollTop,X=Qh(d),fe={};v.bottom-v.top>X&&(v.bottom=v.top+X);var _e=d.doc.height+xd(B),ke=v.top<E,Fe=v.bottom>_e-E;if(v.top<F)fe.scrollTop=ke?0:v.top;else if(v.bottom>F+X){var _t=Math.min(v.top,(Fe?_e:v.bottom)-X);_t!=F&&(fe.scrollTop=_t)}var Tt=d.options.fixedGutter?0:B.gutters.offsetWidth,Jt=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:B.scroller.scrollLeft-Tt,Ht= $ A(d)-B.gutters.offsetWidth,_n=v.right-v.left>Ht;return _n&&(v.right=v.left+Ht),v.left<10?fe.scrollLeft=0:v.left<Jt?fe.scrollLeft=Math.max(0,v.left+Tt-(_n?0:10)):v.right>Ht+Jt-3&&(fe.scrollLeft=v.right+(_n?0:10)-Ht),fe}function Tl(d,v){v!=null&&(Fu(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+v)}function Wo(d){Fu(d);var v=d.getCursor();d.curOp.scrollToPos={from:v,to:v,margin:d.options.cursorScrollMargin}}function aa(d,v,B){(v!=null||B!=null)&&Fu(d),v!=null&&(d.curOp.scrollLeft=v),B!=null&&(d.curOp.scrollTop=B)}function Lu(d,v){Fu(d),d.curOp.scrollToPos=v}function Fu(d){var v=d.curOp.scrollToPos;if(v){d.curOp.scrollToPos=null;var B=Ii(d,v.from),E=Ii(d,v.to);Bc(d,B,E,v.margin)}}function Bc(d,v,B,E){var F=IA(d,{left:Math.min(v.left,B.left),top:Math.min(v.top,B.top)-E,right:Math.max(v.right,B.right),bottom:Math.max(v.bottom,B.bottom)+E});aa(d,F.scrollLeft,F.scrollTop)}function $ c(d,v){Math.abs(d.doc.scrollTop-v)<2||(r||ba(d,{top:v}),Zc(d,v,!0),r&&ba(d),Jc(d,100))}function Zc(d,v,B){v=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,v)),!(d.display.scroller.scrollTop==v&&!B)&&(d.doc.scrollTop=v,d.display.scrollbars.setScrollTop(v),d.display.scroller.scrollTop!=v&&(d.display.scroller.scrollTop=v))}function va(d,v,B,E){v=Math.max(0,Math.min(v,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((B?v==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-v)<2)&&!E)&&(d.doc.scrollLeft=v,tf(d),d.display.scroller.scrollLeft!=v&&(d.display.scroller.scrollLeft=v),d.display.scrollbars.setScrollLeft(v))}function _a(d){var v=d.display,B=v.gutters.offsetWidth,E=Math.round(d.doc.height+xd(d.display));return{clientHeight:v.scroller.clientHeight,viewHeight:v.wrapper.clientHeight,scrollWidth:v.scroller.scrollWidth,clientWidth:v.scroller.clientWidth,viewWidth:v.wrapper.clientWidth,barLeft:d.options.fixedGutter?B:0,docHeight:E,scrollHeight:E+Pu(d)+v.barHeight,nativeBarWidth:v.nativeBarWidth,gutterWidth:B}}var $ r=function(d,v,B){this.cm=B;var E=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=F.tabIndex=-1,d(E),d(F),gt(E,"scroll",function(){E.clientHeight&&v(E.scrollTop,"vertical")}),gt(F,"scroll",function(){F.clientWidth&&v(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}; $ r.prototype.update=function(d){var v=d.scrollWidth>d.clientWidth+1,B=d.scrollHeight>d.clientHeight+1,E=d.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=v?E+"px":"0";var F=d.viewHeight-(v?E:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(v){this.horiz.style.display="block",this.horiz.style.right=B?E+"px":"0",this.horiz.style.left=d.barLeft+"px";var X=d.viewWidth-d.barLeft-(B?E:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+X)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?E:0,bottom:v?E:0}}, $ r.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}, $ r.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scrollTop=d),thi
Line truncated
` },setDirection:ps(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(v){return v.order=null}),this.cm&&yu(this.cm))})}),At.prototype.eachLine=At.prototype.iter;var ct=0;function ft(d){var v=this;if(wt(v),!(en(v,d)||aA(v.display,d))){Wn(d),m&&(ct=+new Date);var B=Ga(v,d,!0),E=d.dataTransfer.files;if(!(!B||v.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var F=E.length,X=Array(F),fe=0,_e=function(){++fe==F&&Zo(v,function(){B=Qi(v.doc,B);var Ht={from:B,to:B,text:v.doc.splitLines(X.filter(function(_n){return _n!=null}).join(v.doc.lineSeparator())),origin:"paste"}; $ s(v.doc,Ht),uA(v.doc,Nu(Qi(v.doc,B),Qi(v.doc,ju(Ht))))})()},ke=function(Ht,_n){if(v.options.allowDropFileTypes&&He(v.options.allowDropFileTypes,Ht.type)==-1){_e();return}var Rn=new FileReader;Rn.onerror=function(){return _e()},Rn.onload=function(){var oi=Rn.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(oi)){_e();return}X[_n]=oi,_e()},Rn.readAsText(Ht)},Fe=0;Fe<E.length;Fe++)ke(E[Fe],Fe);else{if(v.state.draggingText&&v.doc.sel.contains(B)>-1){v.state.draggingText(d),setTimeout(function(){return v.display.input.focus()},20);return}try{var _t=d.dataTransfer.getData("Text");if(_t){var Tt;if(v.state.draggingText&&!v.state.draggingText.copy&&(Tt=v.listSelections()),go(v.doc,Nu(B,B)),Tt)for(var Jt=0;Jt<Tt.length;++Jt)Yl(v.doc,"",Tt[Jt].anchor,Tt[Jt].head,"drag");v.replaceSelection(_t,"around","paste"),v.display.input.focus()}}catch{}}}}function xt(d,v){if(m&&(!d.state.draggingText||+new Date-ct<100)){wi(v);return}if(!(en(d,v)||aA(d.display,v))&&(v.dataTransfer.setData("Text",d.getSelection()),v.dataTransfer.effectAllowed="copyMove",v.dataTransfer.setDragImage&&!j)){var B=xe("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(B.width=B.height=1,d.display.wrapper.appendChild(B),B._top=B.offsetTop),v.dataTransfer.setDragImage(B,0,0),z&&B.parentNode.removeChild(B)}}function Ct(d,v){var B=Ga(d,v);if(B){var E=document.createDocumentFragment();Tr(d,B,E),d.display.dragCursor||(d.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),qe(d.display.dragCursor,E)}}function wt(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var v=document.getElementsByClassName("CodeMirror"),B=[],E=0;E<v.length;E++){var F=v[E].CodeMirror;F&&B.push(F)}B.length&&B[0].operation(function(){for(var X=0;X<B.length;X++)d(B[X])})}}var Lt=!1;function Bt(){Lt||(Yt(),Lt=!0)}function Yt(){var d;gt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(dn)},100))}),gt(window,"blur",function(){return Pt(mu)})}function dn(d){var v=d.display;v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.scrollbarsClipped=!1,d.setSize()}for(var Xt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},nn=0;nn<10;nn++)Xt[nn+48]=Xt[nn+96]=String(nn);for(var An=65;An<=90;An++)Xt[An]=String.fromCharCode(An);for(var qn=1;qn<=12;qn++)Xt[qn+111]=Xt[qn+63235]=" F "+qn;var Qn={};Qn.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":" delCharBefore ",Tab:" defaultTab "," Shift - Tab ":" indentAuto ",Enter:" newlineAndIndent ",Insert:" toggleOverwrite ",Esc:" singleSelection "},Qn.pcDefault={" Ctrl - A ":" selectAll "," Ctrl - D ":" deleteLine "," Ctrl - Z ":" undo "," Shift - Ctrl - Z ":" redo "," Ctrl - Y ":" redo "," Ctrl - Home ":" goDocStart "," Ctrl - End ":" goDocEnd "," Ctrl - Up ":" goLineUp "," Ctrl - Down ":" goLineDown "," Ctrl - Left ":" goGroupLeft "," Ctrl - Right ":" goGroupRight "," Alt - Left ":" goLineStart "," Alt - Right ":" goLineEnd "," Ctrl - Backspace ":" delGroupBefore "," Ctrl - Delete ":" delGroupAfter "," Ctrl - S ":" save "," Ctrl - F ":" find "," Ctrl - G ":" findNext "," Shift - Ctrl - G ":" findPrev "," Shift - Ctrl - F ":" replace "," Shift - Ctrl - R ":" replaceAll "," Ctrl - [ ":" indentLess "," Ctrl - ] ":" indentMore "," Ctrl - U ":" undoSelection "," Shift - Ctrl - U ":" redoSelection "," Alt - U ":" redoSelection ",fallthrough:" basic "},Qn.emacsy={" Ctrl - F ":" goCharRight "," Ctrl - B ":" goCharLeft "," Ctrl - P ":" goLineUp "," Ctrl - N ":" goLineDown "," Ctrl - A ":" goLineStart "," Ctrl - E ":" goLineEnd "," Ctrl - V ":" goPageDown "," Shift - Ctrl - V ":" goPageUp "," Ctrl - D ":" delCharAfter "," Ctrl - H ":" delCharBefore "," Alt - Backspace ":" delWordBefore "," Ctrl Line truncated
` ,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Os(d,v){var B=xi(d.doc,v),E=Di(B);return E!=B&&(v= $ e(E)),ts(!0,d,E,v,1)}function Qu(d,v){var B=xi(d.doc,v),E=Xi(B);return E!=B&&(v= $ e(E)),ts(!0,d,B,v,-1)}function hc(d,v){var B=Os(d,v.line),E=xi(d.doc,B.line),F=Ze(E,d.doc.direction);if(!F||F[0].level==0){var X=Math.max(B.ch,E.text.search(/ \S /)),fe=v.line==B.line&&v.ch<=X&&v.ch;return rn(B.line,fe?0:X,B.sticky)}return B}function ql(d,v,B){if(typeof v=="string"&&(v=Bs[v],!v))return!1;d.display.input.ensurePolled();var E=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),B&&(d.display.shift=!1),F=v(d)!=vt}finally{d.display.shift=E,d.state.suppressEdits=!1}return F}function Oh(d,v,B){for(var E=0;E<d.state.keyMaps.length;E++){var F=cr(v,d.state.keyMaps[E],B,d);if(F)return F}return d.options.extraKeys&&cr(v,d.options.extraKeys,B,d)||cr(v,d.options.keyMap,B,d)}var ih=new Re;function Yu(d,v,B,E){var F=d.state.keySeq;if(F){if(_o(v))return"handled";if(/ \' $ /.test(v)?d.state.keySeq=null:ih.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Rc(d,F+" "+v,B,E))return!0}return Rc(d,v,B,E)}function Rc(d,v,B,E){var F=Oh(d,v,E);return F=="multi"&&(d.state.keySeq=v),F=="handled"&&Xa(d,"keyHandled",d,v,B),(F=="handled"||F=="multi")&&(Wn(B),Ec(d)),!!F}function bl(d,v){var B=Lo(v,!0);return B?v.shiftKey&&!d.state.keySeq?Yu(d,"Shift-"+B,v,function(E){return ql(d,E,!0)})||Yu(d,B,v,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return ql(d,E)}):Yu(d,B,v,function(E){return ql(d,E)}):!1}function qu(d,v,B){return Yu(d,"'"+B+"'",v,function(E){return ql(d,E,!0)})}var xl=null;function Pc(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&(v.curOp.focus=nt(It(v)),!en(v,d))){m&&C<11&&d.keyCode==27&&(d.returnValue=!1);var B=d.keyCode;v.display.shift=B==16||d.shiftKey;var E=bl(v,d);z&&(xl=E?B:null,!E&&B==88&&!lr&&(Z?d.metaKey:d.ctrlKey)&&v.replaceSelection("",null,"cut")),r&&!Z&&!E&&B==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/ \b CodeMirror-crosshair \b /.test(v.display.lineDiv.className)&&bo(v)}}function bo(d){var v=d.display.lineDiv;be(v,"CodeMirror-crosshair");function B(E){(E.keyCode==18||!E.altKey)&&(Be(v,"CodeMirror-crosshair"),kt(document,"keyup",B),kt(document,"mouseover",B))}gt(document,"keyup",B),gt(document,"mouseover",B)}function Xo(d){d.keyCode==16&&(this.doc.sel.shift=!1),en(this,d)}function hA(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&!(aA(v.display,d)||en(v,d)||d.ctrlKey&&!d.altKey||Z&&d.metaKey)){var B=d.keyCode,E=d.charCode;if(z&&B==xl){xl=null,Wn(d);return}if(!(z&&(!d.which||d.which<10)&&bl(v,d))){var F=String.fromCharCode(E??B);F!=" \b "&&(qu(v,d,F)||v.display.input.onKeyPress(d))}}}var gs=400,_u=function(d,v,B){this.time=d,this.pos=v,this.button=B};_u.prototype.compare=function(d,v,B){return this.time+gs>d&&si(v,this.pos)==0&&B==this.button};var dA,RA;function Hl(d,v){var B=+new Date;return RA&&RA.compare(B,d,v)?(dA=RA=null,"triple"):dA&&dA.compare(B,d,v)?(RA=new _u(B,d,v),dA=null,"double"):(dA=new _u(B,d,v),RA=null,"single")}function Kc(d){var v=this,B=v.display;if(!(en(v,d)||B.activeTouch&&B.input.supportsTouch())){if(B.input.ensurePolled(),B.shift=d.shiftKey,aA(B,d)){S||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(!id(v,d)){var E=Ga(v,d),F=ti(d),X=E?Hl(E,F):"single";St(v).focus(),F==1&&v.state.selectingText&&v.state.selectingText(d),!(E&&nu(v,F,E,X,d))&&(F==1?E?bu(v,E,X,d):hi(d)==B.scroller&&Wn(d):F==2?(E&&Wu(v.doc,E),setTimeout(function(){return B.input.focus()},20)):F==3&&(ye?v.display.input.onContextMenu(d):bh(v)))}}}function nu(d,v,B,E,F){var X="Click";return E=="double"?X="Double"+X:E=="triple"&&(X="Triple"+X),X=(v==1?"Left":v==2?"Middle":"Right")+X,Yu(d,la(X,F),F,function(fe){if(typeof fe=="string"&&(fe=Bs[fe]),!fe)return!1;var _e=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),_e=fe(d,B)!=vt}finally{d.state.suppressEdits=!1}return _e})}function Qa(d,v,B){var E=d.getOption("configureMouse"),F=E?E(d,v,B):{};if(F.unit==null){var X=oe?B.shiftKey&&B.metaKey:B.altKey;F.unit=X?"rectangle":v=="single"?"char":v=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||B.shiftKey),F.addNew==null&&(F.addNew=Z?B.metaKey:B.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(Z?B.altKey:B.ctrlKey)),F}function bu(d,v,B,E){m?setTimeout(Rt(Es,d),0):d.curOp.focus=nt(It(d));var F=Qa(d,B,E),X=d.doc.sel,fe;d.options.dragDrop&&Wi&&!d.isReadOnly()&&B=="single"&&(fe=X.contains(v))>-1&&(si((fe=X.ranges[fe]).from(),v)<0||v.xRel>0)&&(si(fe.to(),v)>0||v.xRel<0)?Gf(d,E,v,F):Mu(d,E,v,F)}function Gf(d,v,B,E){var F=d.display,X=!1,fe=Zo(d,function(Fe){S&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:bh(d)),kt(F.wrapper.ownerDocument,"mouseup",fe),kt(F.wrapper.ownerDocument,"mousemove",_e),kt(F.scroller,"dragstart",ke),kt(F.scro
Line truncated
left : ` +v.left+"px; width: "+Math.max(2,v.right-v.left)+"px;");d.display.lineSpace.appendChild(fe),fe.scrollIntoView(F),d.display.lineSpace.removeChild(fe)}}}function xh(d,v,B,E){E==null&&(E=0);var F;!d.options.lineWrapping&&v==B&&(B=v.sticky=="before"?rn(v.line,v.ch+1,"before"):v,v=v.ch?rn(v.line,v.sticky=="before"?v.ch-1:v.ch,"after"):v);for(var X=0;X<5;X++){var fe=!1,_e=vn(d,v),ke=!B||B==v?_e:vn(d,B);F={left:Math.min(_e.left,ke.left),top:Math.min(_e.top,ke.top)-E,right:Math.max(_e.left,ke.left),bottom:Math.max(_e.bottom,ke.bottom)+E};var Fe=IA(d,F),_t=d.doc.scrollTop,Tt=d.doc.scrollLeft;if(Fe.scrollTop!=null&&( $ c(d,Fe.scrollTop),Math.abs(d.doc.scrollTop-_t)>1&&(fe=!0)),Fe.scrollLeft!=null&&(va(d,Fe.scrollLeft),Math.abs(d.doc.scrollLeft-Tt)>1&&(fe=!0)),!fe)break}return F}function Hh(d,v){var B=IA(d,v);B.scrollTop!=null&& $ c(d,B.scrollTop),B.scrollLeft!=null&&va(d,B.scrollLeft)}function IA(d,v){var B=d.display,E=SA(d.display);v.top<0&&(v.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:B.scroller.scrollTop,X=Qh(d),fe={};v.bottom-v.top>X&&(v.bottom=v.top+X);var _e=d.doc.height+xd(B),ke=v.top<E,Fe=v.bottom>_e-E;if(v.top<F)fe.scrollTop=ke?0:v.top;else if(v.bottom>F+X){var _t=Math.min(v.top,(Fe?_e:v.bottom)-X);_t!=F&&(fe.scrollTop=_t)}var Tt=d.options.fixedGutter?0:B.gutters.offsetWidth,Jt=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:B.scroller.scrollLeft-Tt,Ht= $ A(d)-B.gutters.offsetWidth,_n=v.right-v.left>Ht;return _n&&(v.right=v.left+Ht),v.left<10?fe.scrollLeft=0:v.left<Jt?fe.scrollLeft=Math.max(0,v.left+Tt-(_n?0:10)):v.right>Ht+Jt-3&&(fe.scrollLeft=v.right+(_n?0:10)-Ht),fe}function Tl(d,v){v!=null&&(Fu(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+v)}function Wo(d){Fu(d);var v=d.getCursor();d.curOp.scrollToPos={from:v,to:v,margin:d.options.cursorScrollMargin}}function aa(d,v,B){(v!=null||B!=null)&&Fu(d),v!=null&&(d.curOp.scrollLeft=v),B!=null&&(d.curOp.scrollTop=B)}function Lu(d,v){Fu(d),d.curOp.scrollToPos=v}function Fu(d){var v=d.curOp.scrollToPos;if(v){d.curOp.scrollToPos=null;var B=Ii(d,v.from),E=Ii(d,v.to);Bc(d,B,E,v.margin)}}function Bc(d,v,B,E){var F=IA(d,{left:Math.min(v.left,B.left),top:Math.min(v.top,B.top)-E,right:Math.max(v.right,B.right),bottom:Math.max(v.bottom,B.bottom)+E});aa(d,F.scrollLeft,F.scrollTop)}function $ c(d,v){Math.abs(d.doc.scrollTop-v)<2||(r||ba(d,{top:v}),Zc(d,v,!0),r&&ba(d),Jc(d,100))}function Zc(d,v,B){v=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,v)),!(d.display.scroller.scrollTop==v&&!B)&&(d.doc.scrollTop=v,d.display.scrollbars.setScrollTop(v),d.display.scroller.scrollTop!=v&&(d.display.scroller.scrollTop=v))}function va(d,v,B,E){v=Math.max(0,Math.min(v,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((B?v==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-v)<2)&&!E)&&(d.doc.scrollLeft=v,ef(d),d.display.scroller.scrollLeft!=v&&(d.display.scroller.scrollLeft=v),d.display.scrollbars.setScrollLeft(v))}function _a(d){var v=d.display,B=v.gutters.offsetWidth,E=Math.round(d.doc.height+xd(d.display));return{clientHeight:v.scroller.clientHeight,viewHeight:v.wrapper.clientHeight,scrollWidth:v.scroller.scrollWidth,clientWidth:v.scroller.clientWidth,viewWidth:v.wrapper.clientWidth,barLeft:d.options.fixedGutter?B:0,docHeight:E,scrollHeight:E+Pu(d)+v.barHeight,nativeBarWidth:v.nativeBarWidth,gutterWidth:B}}var $ r=function(d,v,B){this.cm=B;var E=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=F.tabIndex=-1,d(E),d(F),gt(E,"scroll",function(){E.clientHeight&&v(E.scrollTop,"vertical")}),gt(F,"scroll",function(){F.clientWidth&&v(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}; $ r.prototype.update=function(d){var v=d.scrollWidth>d.clientWidth+1,B=d.scrollHeight>d.clientHeight+1,E=d.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=v?E+"px":"0";var F=d.viewHeight-(v?E:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(v){this.horiz.style.display="block",this.horiz.style.right=B?E+"px":"0",this.horiz.style.left=d.barLeft+"px";var X=d.viewWidth-d.barLeft-(B?E:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+X)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?E:0,bottom:v?E:0}}, $ r.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}, $ r.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scrollTop=d),thi
Line truncated
` },setDirection:ps(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(v){return v.order=null}),this.cm&&yu(this.cm))})}),At.prototype.eachLine=At.prototype.iter;var ct=0;function ft(d){var v=this;if(wt(v),!(en(v,d)||aA(v.display,d))){Wn(d),m&&(ct=+new Date);var B=Na(v,d,!0),E=d.dataTransfer.files;if(!(!B||v.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var F=E.length,X=Array(F),fe=0,_e=function(){++fe==F&&Zo(v,function(){B=Qi(v.doc,B);var Ht={from:B,to:B,text:v.doc.splitLines(X.filter(function(_n){return _n!=null}).join(v.doc.lineSeparator())),origin:"paste"}; $ s(v.doc,Ht),uA(v.doc,Gu(Qi(v.doc,B),Qi(v.doc,ju(Ht))))})()},ke=function(Ht,_n){if(v.options.allowDropFileTypes&&He(v.options.allowDropFileTypes,Ht.type)==-1){_e();return}var Rn=new FileReader;Rn.onerror=function(){return _e()},Rn.onload=function(){var oi=Rn.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(oi)){_e();return}X[_n]=oi,_e()},Rn.readAsText(Ht)},Fe=0;Fe<E.length;Fe++)ke(E[Fe],Fe);else{if(v.state.draggingText&&v.doc.sel.contains(B)>-1){v.state.draggingText(d),setTimeout(function(){return v.display.input.focus()},20);return}try{var _t=d.dataTransfer.getData("Text");if(_t){var Tt;if(v.state.draggingText&&!v.state.draggingText.copy&&(Tt=v.listSelections()),go(v.doc,Gu(B,B)),Tt)for(var Jt=0;Jt<Tt.length;++Jt)Yl(v.doc,"",Tt[Jt].anchor,Tt[Jt].head,"drag");v.replaceSelection(_t,"around","paste"),v.display.input.focus()}}catch{}}}}function xt(d,v){if(m&&(!d.state.draggingText||+new Date-ct<100)){wi(v);return}if(!(en(d,v)||aA(d.display,v))&&(v.dataTransfer.setData("Text",d.getSelection()),v.dataTransfer.effectAllowed="copyMove",v.dataTransfer.setDragImage&&!j)){var B=xe("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(B.width=B.height=1,d.display.wrapper.appendChild(B),B._top=B.offsetTop),v.dataTransfer.setDragImage(B,0,0),z&&B.parentNode.removeChild(B)}}function Ct(d,v){var B=Na(d,v);if(B){var E=document.createDocumentFragment();Tr(d,B,E),d.display.dragCursor||(d.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),qe(d.display.dragCursor,E)}}function wt(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var v=document.getElementsByClassName("CodeMirror"),B=[],E=0;E<v.length;E++){var F=v[E].CodeMirror;F&&B.push(F)}B.length&&B[0].operation(function(){for(var X=0;X<B.length;X++)d(B[X])})}}var Lt=!1;function Bt(){Lt||(Yt(),Lt=!0)}function Yt(){var d;gt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(dn)},100))}),gt(window,"blur",function(){return Pt(mu)})}function dn(d){var v=d.display;v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.scrollbarsClipped=!1,d.setSize()}for(var Xt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},nn=0;nn<10;nn++)Xt[nn+48]=Xt[nn+96]=String(nn);for(var An=65;An<=90;An++)Xt[An]=String.fromCharCode(An);for(var qn=1;qn<=12;qn++)Xt[qn+111]=Xt[qn+63235]=" F "+qn;var Qn={};Qn.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":" delCharBefore ",Tab:" defaultTab "," Shift - Tab ":" indentAuto ",Enter:" newlineAndIndent ",Insert:" toggleOverwrite ",Esc:" singleSelection "},Qn.pcDefault={" Ctrl - A ":" selectAll "," Ctrl - D ":" deleteLine "," Ctrl - Z ":" undo "," Shift - Ctrl - Z ":" redo "," Ctrl - Y ":" redo "," Ctrl - Home ":" goDocStart "," Ctrl - End ":" goDocEnd "," Ctrl - Up ":" goLineUp "," Ctrl - Down ":" goLineDown "," Ctrl - Left ":" goGroupLeft "," Ctrl - Right ":" goGroupRight "," Alt - Left ":" goLineStart "," Alt - Right ":" goLineEnd "," Ctrl - Backspace ":" delGroupBefore "," Ctrl - Delete ":" delGroupAfter "," Ctrl - S ":" save "," Ctrl - F ":" find "," Ctrl - G ":" findNext "," Shift - Ctrl - G ":" findPrev "," Shift - Ctrl - F ":" replace "," Shift - Ctrl - R ":" replaceAll "," Ctrl - [ ":" indentLess "," Ctrl - ] ":" indentMore "," Ctrl - U ":" undoSelection "," Shift - Ctrl - U ":" redoSelection "," Alt - U ":" redoSelection ",fallthrough:" basic "},Qn.emacsy={" Ctrl - F ":" goCharRight "," Ctrl - B ":" goCharLeft "," Ctrl - P ":" goLineUp "," Ctrl - N ":" goLineDown "," Ctrl - A ":" goLineStart "," Ctrl - E ":" goLineEnd "," Ctrl - V ":" goPageDown "," Shift - Ctrl - V ":" goPageUp "," Ctrl - D ":" delCharAfter "," Ctrl - H ":" delCharBefore "," Alt - Backspace ":" delWordBefore "," Ctrl Line truncated
` ,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Os(d,v){var B=xi(d.doc,v),E=Di(B);return E!=B&&(v= $ e(E)),ts(!0,d,E,v,1)}function Qu(d,v){var B=xi(d.doc,v),E=Xi(B);return E!=B&&(v= $ e(E)),ts(!0,d,B,v,-1)}function hc(d,v){var B=Os(d,v.line),E=xi(d.doc,B.line),F=Ze(E,d.doc.direction);if(!F||F[0].level==0){var X=Math.max(B.ch,E.text.search(/ \S /)),fe=v.line==B.line&&v.ch<=X&&v.ch;return rn(B.line,fe?0:X,B.sticky)}return B}function ql(d,v,B){if(typeof v=="string"&&(v=Bs[v],!v))return!1;d.display.input.ensurePolled();var E=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),B&&(d.display.shift=!1),F=v(d)!=vt}finally{d.display.shift=E,d.state.suppressEdits=!1}return F}function Oh(d,v,B){for(var E=0;E<d.state.keyMaps.length;E++){var F=cr(v,d.state.keyMaps[E],B,d);if(F)return F}return d.options.extraKeys&&cr(v,d.options.extraKeys,B,d)||cr(v,d.options.keyMap,B,d)}var ih=new Re;function Yu(d,v,B,E){var F=d.state.keySeq;if(F){if(_o(v))return"handled";if(/ \' $ /.test(v)?d.state.keySeq=null:ih.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Rc(d,F+" "+v,B,E))return!0}return Rc(d,v,B,E)}function Rc(d,v,B,E){var F=Oh(d,v,E);return F=="multi"&&(d.state.keySeq=v),F=="handled"&&Xa(d,"keyHandled",d,v,B),(F=="handled"||F=="multi")&&(Wn(B),Ec(d)),!!F}function bl(d,v){var B=Lo(v,!0);return B?v.shiftKey&&!d.state.keySeq?Yu(d,"Shift-"+B,v,function(E){return ql(d,E,!0)})||Yu(d,B,v,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return ql(d,E)}):Yu(d,B,v,function(E){return ql(d,E)}):!1}function qu(d,v,B){return Yu(d,"'"+B+"'",v,function(E){return ql(d,E,!0)})}var xl=null;function Pc(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&(v.curOp.focus=nt(It(v)),!en(v,d))){m&&C<11&&d.keyCode==27&&(d.returnValue=!1);var B=d.keyCode;v.display.shift=B==16||d.shiftKey;var E=bl(v,d);z&&(xl=E?B:null,!E&&B==88&&!lr&&(Z?d.metaKey:d.ctrlKey)&&v.replaceSelection("",null,"cut")),r&&!Z&&!E&&B==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/ \b CodeMirror-crosshair \b /.test(v.display.lineDiv.className)&&bo(v)}}function bo(d){var v=d.display.lineDiv;be(v,"CodeMirror-crosshair");function B(E){(E.keyCode==18||!E.altKey)&&(Be(v,"CodeMirror-crosshair"),kt(document,"keyup",B),kt(document,"mouseover",B))}gt(document,"keyup",B),gt(document,"mouseover",B)}function Xo(d){d.keyCode==16&&(this.doc.sel.shift=!1),en(this,d)}function hA(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&!(aA(v.display,d)||en(v,d)||d.ctrlKey&&!d.altKey||Z&&d.metaKey)){var B=d.keyCode,E=d.charCode;if(z&&B==xl){xl=null,Wn(d);return}if(!(z&&(!d.which||d.which<10)&&bl(v,d))){var F=String.fromCharCode(E??B);F!=" \b "&&(qu(v,d,F)||v.display.input.onKeyPress(d))}}}var gs=400,_u=function(d,v,B){this.time=d,this.pos=v,this.button=B};_u.prototype.compare=function(d,v,B){return this.time+gs>d&&si(v,this.pos)==0&&B==this.button};var dA,RA;function Hl(d,v){var B=+new Date;return RA&&RA.compare(B,d,v)?(dA=RA=null,"triple"):dA&&dA.compare(B,d,v)?(RA=new _u(B,d,v),dA=null,"double"):(dA=new _u(B,d,v),RA=null,"single")}function Kc(d){var v=this,B=v.display;if(!(en(v,d)||B.activeTouch&&B.input.supportsTouch())){if(B.input.ensurePolled(),B.shift=d.shiftKey,aA(B,d)){S||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(!id(v,d)){var E=Na(v,d),F=ti(d),X=E?Hl(E,F):"single";St(v).focus(),F==1&&v.state.selectingText&&v.state.selectingText(d),!(E&&nu(v,F,E,X,d))&&(F==1?E?bu(v,E,X,d):hi(d)==B.scroller&&Wn(d):F==2?(E&&Wu(v.doc,E),setTimeout(function(){return B.input.focus()},20)):F==3&&(ye?v.display.input.onContextMenu(d):bh(v)))}}}function nu(d,v,B,E,F){var X="Click";return E=="double"?X="Double"+X:E=="triple"&&(X="Triple"+X),X=(v==1?"Left":v==2?"Middle":"Right")+X,Yu(d,la(X,F),F,function(fe){if(typeof fe=="string"&&(fe=Bs[fe]),!fe)return!1;var _e=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),_e=fe(d,B)!=vt}finally{d.state.suppressEdits=!1}return _e})}function Qa(d,v,B){var E=d.getOption("configureMouse"),F=E?E(d,v,B):{};if(F.unit==null){var X=oe?B.shiftKey&&B.metaKey:B.altKey;F.unit=X?"rectangle":v=="single"?"char":v=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||B.shiftKey),F.addNew==null&&(F.addNew=Z?B.metaKey:B.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(Z?B.altKey:B.ctrlKey)),F}function bu(d,v,B,E){m?setTimeout(Rt(Es,d),0):d.curOp.focus=nt(It(d));var F=Qa(d,B,E),X=d.doc.sel,fe;d.options.dragDrop&&Wi&&!d.isReadOnly()&&B=="single"&&(fe=X.contains(v))>-1&&(si((fe=X.ranges[fe]).from(),v)<0||v.xRel>0)&&(si(fe.to(),v)>0||v.xRel<0)?zf(d,E,v,F):Mu(d,E,v,F)}function zf(d,v,B,E){var F=d.display,X=!1,fe=Zo(d,function(Fe){S&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:bh(d)),kt(F.wrapper.ownerDocument,"mouseup",fe),kt(F.wrapper.ownerDocument,"mousemove",_e),kt(F.scroller,"dragstart",ke),kt(F.scro
Line truncated
` )==v){if(E.ranges.length%ru.text.length==0){Fe=[];for(var _t=0;_t<ru.text.length;_t++)Fe.push(X.splitLines(ru.text[_t]))}}else ke.length==E.ranges.length&&d.options.pasteLinesPerSelection&&(Fe=On(ke,function(pi){return[pi]}));for(var Tt=d.curOp.updateInput,Jt=E.ranges.length-1;Jt>=0;Jt--){var Ht=E.ranges[Jt],_n=Ht.from(),Rn=Ht.to();Ht.empty()&&(B&&B>0?_n=rn(_n.line,_n.ch-B):d.state.overwrite&&!_e?Rn=rn(Rn.line,Math.min(xi(X,Rn.line).text.length,Rn.ch+ $ n(ke).length)):_e&&ru&&ru.lineWise&&ru.text.join( `
` )==ke.join( `
` )&&(_n=Rn=rn(_n.line,0)));var oi={from:_n,to:Rn,text:Fe?Fe[Jt%Fe.length]:ke,origin:F||(_e?"paste":d.state.cutIncoming>fe?"cut":"+input")}; $ s(d.doc,oi),Xa(d,"inputRead",d,oi)}v&&!_e&&Yf(d,v),Wo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=Tt),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function us(d,v){var B=d.clipboardData&&d.clipboardData.getData("Text");if(B)return d.preventDefault(),!v.isReadOnly()&&!v.options.disableInput&&v.hasFocus()&&Na(v,function(){return Zs(v,B,0,null,"paste")}),!0}function Yf(d,v){if(!(!d.options.electricChars||!d.options.smartIndent))for(var B=d.doc.sel,E=B.ranges.length-1;E>=0;E--){var F=B.ranges[E];if(!(F.head.ch>100||E&&B.ranges[E-1].head.line==F.head.line)){var X=d.getModeAt(F.head),fe=!1;if(X.electricChars){for(var _e=0;_e<X.electricChars.length;_e++)if(v.indexOf(X.electricChars.charAt(_e))>-1){fe=Qf(d,F.head.line,"smart");break}}else X.electricInput&&X.electricInput.test(xi(d.doc,F.head.line).text.slice(0,F.head.ch))&&(fe=Qf(d,F.head.line,"smart"));fe&&Xa(d,"electricInput",d,F.head.line)}}}function Im(d){for(var v=[],B=[],E=0;E<d.doc.sel.ranges.length;E++){var F=d.doc.sel.ranges[E].head.line,X={anchor:rn(F,0),head:rn(F+1,0)};B.push(X),v.push(d.getRange(X.anchor,X.head))}return{text:v,ranges:B}}function qf(d,v,B,E){d.setAttribute("autocorrect",B?"on":"off"),d.setAttribute("autocapitalize",E?"on":"off"),d.setAttribute("spellcheck",!!v)}function lf(){var d=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),v=xe("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return S?d.style.width="1000px":d.setAttribute("wrap","off"),V&&(d.style.border="1px solid black"),v}function Dd(d){var v=d.optionHandlers,B=d.helpers={};d.prototype={constructor:d,focus:function(){St(this).focus(),this.display.input.focus()},setOption:function(E,F){var X=this.options,fe=X[E];X[E]==F&&E!="mode"||(X[E]=F,v.hasOwnProperty(E)&&Zo(this,v[E])(this,F,fe),it(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,F){this.state.keyMaps[F?"push":"unshift"](Ra(E))},removeKeyMap:function(E){for(var F=this.state.keyMaps,X=0;X<F.length;++X)if(F[X]==E||F[X].name==E)return F.splice(X,1),!0},addOverlay:gr(function(E,F){var X=E.token?E:d.getMode(this.options,E);if(X.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:X,modeSpec:E,opaque:F&&F.opaque,priority:F&&F.priority||0},function(fe){return fe.priority}),this.state.modeGen++,ws(this)}),removeOverlay:gr(function(E){for(var F=this.state.overlays,X=0;X<F.length;++X){var fe=F[X].modeSpec;if(fe==E||typeof E=="string"&&fe.name==E){F.splice(X,1),this.state.modeGen++,ws(this);return}}}),indentLine:gr(function(E,F,X){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),xn(this.doc,E)&&Qf(this,E,F,X)}),indentSelection:gr(function(E){for(var F=this.doc.sel.ranges,X=-1,fe=0;fe<F.length;fe++){var _e=F[fe];if(_e.empty())_e.head.line>X&&(Qf(this,_e.head.line,E,!0),X=_e.head.line,fe==this.doc.sel.primIndex&&Wo(this));else{var ke=_e.from(),Fe=_e.to(),_t=Math.max(X,ke.line);X=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var Tt=_t;Tt<X;++Tt)Qf(this,Tt,E);var Jt=this.doc.sel.ranges;ke.ch==0&&F.length==Jt.length&&Jt[fe].from().ch>0&&Ti(this.doc,fe,new Zr(ke,Jt[fe].to()),Ot)}}}),getTokenAt:function(E,F){return Ul(this,E,F)},getLineTokens:function(E,F){return Ul(this,rn(E),F,!0)},getTokenTypeAt:function(E){E=Qi(this.doc,E);var F=Qs(this,xi(this.doc,E.line)),X=0,fe=(F.length-1)/2,_e=E.ch,ke;if(_e==0)ke=F[2];else for(;;){var Fe=X+fe>>1;if((Fe?F[Fe*2-1]:0)>=_e)fe=Fe;else if(F[Fe*2+1]<_e)X=Fe+1;else{ke=F[Fe*2+2];break}}var _t=ke?ke.indexOf("overlay "):-1;return _t<0?ke:_t==0?null:ke.slice(0,_t-1)},getModeAt:function(E){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(E).state).mode:F},getHelper:function(E,F){return this.getHelpers(E,F)[0]},getHelpers:function(E,F){var X=[];if(!B.hasOwnProperty(F))return X;var fe=B[F],_e=this.getModeAt(E);if(typeof _e[F]=="string")fe[_e[F]]&&X.push(fe[_e[F]]);else if(_e[F])for(var ke=0;ke<_e[F].length;ke++){var Fe=fe[_e[F][ke]];Fe&&X.push(Fe)}else _e.helperType&&fe[_e.helperType]?X.push(fe[_e.helperType]):fe[_e.name]&&X.push(fe[_e.name]);for(var _t=0;_t<fe._global.length;_t++){var Tt=fe._global[_t];Tt.pred(_e,this)&&He(X,Tt.val)==-1&&X.push(Tt.val)}return X},getStateAfter:function(E,F){var X=this.doc;return E=YA(X,E??X.first+X.size-1), $ o(this,E+1,F).state},cursorCoords:function(E,F){var X,fe=this.doc.sel.primary();return E==null?X=fe.head:typeof E=="object"?X=Qi(this.doc,E):X=E?fe.from():fe.to(),vn(this,X,F||"page")},charCoords:function(E,F){return wn(this,Qi(this.doc,E),F||"page")},coordsChar:function(E,F){return E=Zt(this,E,F||"page"),Oo(this,E.left,E.top)},lineAtHeight:function(E,F){return E=Zt(this,{top:E,left:0},F||"page").top,Et(
Line truncated
` ,oi=N e(Rn,Ht)?"w":Jt&&Rn== `
` ?"n":!Jt||/ \s /.test(Rn)?null:"p";if(Jt&&!_n&&!oi&&(oi="s"),Tt&&Tt!=oi){B<0&&(B=1,_t(),v.sticky="after");break}if(oi&&(Tt=oi),B>0&&!_t(!_n))break}var pi=ja(d,v,X,fe,!0);return Jr(X,pi)&&(pi.hitSide=!0),pi}function A f(d,v,B,E){var F=d.doc,X=v.left,fe;if(E=="page"){var _e=Math.min(d.display.wrapper.clientHeight,St(d).innerHeight||F(d).documentElement.clientHeight),ke=Math.max(_e-.5*SA(d.display),3);fe=(B>0?v.bottom:v.top)+B*ke}else E=="line"&&(fe=B>0?v.bottom+3:v.top-3);for(var Fe;Fe=Oo(d,X,fe),!!Fe.outside;){if(B<0?fe<=0:fe>=F.height){Fe.hitSide=!0;break}fe+=B*5}return Fe}var ea=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ea.prototype.init=function(d){var v=this,B=this,E=B.cm,F=B.div=d.lineDiv;F.contentEditable=!0,q f(F,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function X(_e){for(var ke=_e.target;ke;ke=ke.parentNode){if(ke==F)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(ke.className))break}return!1}gt(F,"paste",function(_e){!X(_e)||en(E,_e)||us(_e,E)||C<=11&&setTimeout(Zo(E,function(){return v.updateFromDOM()}),20)}),gt(F,"compositionstart",function(_e){v.composing={data:_e.data,done:!1}}),gt(F,"compositionupdate",function(_e){v.composing||(v.composing={data:_e.data,done:!1})}),gt(F,"compositionend",function(_e){v.composing&&(_e.data!=v.composing.data&&v.readFromDOMSoon(),v.composing.done=!0)}),gt(F,"touchstart",function(){return B.forceCompositionEnd()}),gt(F,"input",function(){v.composing||v.readFromDOMSoon()});function fe(_e){if(!(!X(_e)||en(E,_e))){if(E.somethingSelected())kd({lineWise:!1,text:E.getSelections()}),_e.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ke=I m(E);kd({lineWise:!0,text:ke.text}),_e.type=="cut"&&E.operation(function(){E.setSelections(ke.ranges,0,Ot),E.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Fe=ru.text.join( `
` );if(_e.clipboardData.setData("Text",Fe),_e.clipboardData.getData("Text")==Fe){_e.preventDefault();return}}var _t=l f(),Tt=_t.firstChild;q f(Tt),E.display.lineSpace.insertBefore(_t,E.display.lineSpace.firstChild),Tt.value=ru.text.join( `
` );var Jt=nt(pt(F));tt(Tt),setTimeout(function(){E.display.lineSpace.removeChild(_t),Jt.focus(),Jt==F&&B.showPrimarySelection()},50)}}gt(F,"copy",fe),gt(F,"cut",fe)},ea.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var d=_h(this.cm,!1);return d.focus=nt(pt(this.div))==this.div,d},ea.prototype.showSelection=function(d,v){!d||!this.cm.display.view.length||((d.focus||v)&&this.showPrimarySelection(),this.showMultipleSelections(d))},ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ea.prototype.showPrimarySelection=function(){var d=this.getSelection(),v=this.cm,B=v.doc.sel.primary(),E=B.from(),F=B.to();if(v.display.viewTo==v.display.viewFrom||E.line>=v.display.viewTo||F.line<v.display.viewFrom){d.removeAllRanges();return}var X=ol(v,d.anchorNode,d.anchorOffset),fe=ol(v,d.focusNode,d.focusOffset);if(!(X&&!X.bad&&fe&&!fe.bad&&si(Us(X,fe),E)==0&&si(As(X,fe),F)==0)){var _e=v.display.view,ke=E.line>=v.display.viewFrom&&Th(v,E)||{node:_e[0].measure.map[2],offset:0},Fe=F.line<v.display.viewTo&&Th(v,F);if(!Fe){var _t=_e[_e.length-1].measure,Tt=_t.maps?_t.maps[_t.maps.length-1]:_t.map;Fe={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!ke||!Fe){d.removeAllRanges();return}var Jt=d.rangeCount&&d.getRangeAt(0),Ht;try{Ht=ot(ke.node,ke.offset,Fe.offset,Fe.node)}catch{}Ht&&(!r&&v.state.focused?(d.collapse(ke.node,ke.offset),Ht.collapsed||(d.removeAllRanges(),d.addRange(Ht))):(d.removeAllRanges(),d.addRange(Ht)),Jt&&d.anchorNode==null?d.addRange(Jt):r&&this.startGracePeriod()),this.rememberSelection()}},ea.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},ea.prototype.showMultipleSelections=function(d){qe(this.cm.display.cursorDiv,d.cursors),qe(this.cm.display.selectionDiv,d.selection)},ea.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},ea.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var v=d.getRangeAt(0).commonAncestorContainer;return yt(this.div,v)},ea.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(pt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ea.prototype.blur=function(){this.div.blur()},ea.prototype.getField=function(){return this.div},ea.prototype.supportsTouch=function(){return!0},ea.prototype.receivedFocus=function(){var d=this,v=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Na(this.cm,function(){return v.cm.curOp.selectionChanged=!0});function B(){v.cm.state.focused&&(v.pollSelection(),v.polling.set(v.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},ea.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},ea.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),v=this.cm;if(ae&&U&&this.cm.display.gutterSpecs.length&&gp(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var B=ol(v,d.anchorNode,d.anchorOffset),E=ol(v,d.focusNode,d.focusOffset);B&&E&&Na(v,function(){sa(v.doc,Nu(B,E),Ot),(B.bad||E.bad)&&(v.curOp.selectionChanged=!0)})}}},ea.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,v=d.display,B=d.doc.sel.primary(),E=B.from(),F=B.to();if(E.ch==0&&E.line>d.firstLine()&&(E=rn(E.line-1,xi(d.doc,E.line-1).length)),F.ch==xi(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=rn(F.line+1,0)),E.line<v.viewFrom||F.line>v.viewTo-1)return!1;var X,fe,_e;E.line==v.viewFrom||(X=Hs(d,E.line))==0?(fe= $ e(v.view[0].line),_e=v.view[0].node):(fe= $ e(v.view[X].line),_e=v.view[X-1].node.nextSibling);var ke=Hs(d,F.line),Fe,_t;if(ke==v.view.length-1?(Fe=v.viewTo-1,_t=v.lineDiv.lastChild):(Fe= $ e(v.view[ke+1].line)-1,_t=v.view[ke+1].node.previousSibling),!_e)return!1;for(var Tt=d.doc.splitLines(fA(d,_e,_t,fe,Fe)),Jt=ls(d.doc,rn(fe,0),rn(Fe,xi(d.doc,Fe).text.length));Tt.length>1&&Jt.length>1;)if( $ n(Tt)== $ n(Jt))Tt.pop(),Jt.pop(),Fe--;else if(Tt[0]==Jt[0])Tt.shift(),Jt.shift(),fe++;else break;for(var Ht=0,_n=0,Rn=Tt[0],oi=Jt[0],pi=Math.min(Rn.length,oi.length);Ht<pi&&Rn.charCodeAt(Ht)==oi.charCodeAt(Ht);)++Ht;for(var Ci= $ n(Tt),gi= $ n(Jt),ki=Math.min(Ci.length-(Tt.length==1?Ht:0),gi.length-(Jt.
Line truncated
` ),tt(F))}else return;fe.type=="cut"&&(E.state.cutIncoming=+new Date)}}gt(F,"cut",X),gt(F,"copy",X),gt(d.scroller,"paste",function(fe){if(!(aA(d,fe)||en(E,fe))){if(!F.dispatchEvent){E.state.pasteIncoming=+new Date,B.focus();return}var _e=new Event("paste");_e.clipboardData=fe.clipboardData,F.dispatchEvent(_e)}}),gt(d.lineSpace,"selectstart",function(fe){aA(d,fe)||Wn(fe)}),gt(F,"compositionstart",function(){var fe=E.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:fe,range:E.markText(fe,E.getCursor("to"),{className:"CodeMirror-composing"})}}),gt(F,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},zs.prototype.createField=function(d){this.wrapper=l f(),this.textarea=this.wrapper.firstChild;var v=this.cm.options;q f(this.textarea,v.spellcheck,v.autocorrect,v.autocapitalize)},zs.prototype.screenReaderLabelChanged=function(d){d?this.textarea.setAttribute("aria-label",d):this.textarea.removeAttribute("aria-label")},zs.prototype.prepareSelection=function(){var d=this.cm,v=d.display,B=d.doc,E=_h(d);if(d.options.moveInputWithCursor){var F=vn(d,B.sel.primary().head,"div"),X=v.wrapper.getBoundingClientRect(),fe=v.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(v.wrapper.clientHeight-10,F.top+fe.top-X.top)),E.teLeft=Math.max(0,Math.min(v.wrapper.clientWidth-10,F.left+fe.left-X.left))}return E},zs.prototype.showSelection=function(d){var v=this.cm,B=v.display;qe(B.cursorDiv,d.cursors),qe(B.selectionDiv,d.selection),d.teTop!=null&&(this.wrapper.style.top=d.teTop+"px",this.wrapper.style.left=d.teLeft+"px")},zs.prototype.reset=function(d){if(!(this.contextMenuPending||this.composing&&d)){var v=this.cm;if(this.resetting=!0,v.somethingSelected()){this.prevInput="";var B=v.getSelection();this.textarea.value=B,v.state.focused&&tt(this.textarea),m&&C>=9&&(this.hasSelection=B)}else d||(this.prevInput=this.textarea.value="",m&&C>=9&&(this.hasSelection=null));this.resetting=!1}},zs.prototype.getField=function(){return this.textarea},zs.prototype.supportsTouch=function(){return!1},zs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||nt(pt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},zs.prototype.blur=function(){this.textarea.blur()},zs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zs.prototype.receivedFocus=function(){this.slowPoll()},zs.prototype.slowPoll=function(){var d=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){d.poll(),d.cm.state.focused&&d.slowPoll()})},zs.prototype.fastPoll=function(){var d=!1,v=this;v.pollingFast=!0;function B(){var E=v.poll();!E&&!d?(d=!0,v.polling.set(60,B)):(v.pollingFast=!1,v.slowPoll())}v.polling.set(20,B)},zs.prototype.poll=function(){var d=this,v=this.cm,B=this.textarea,E=this.prevInput;if(this.contextMenuPending||this.resetting||!v.state.focused||Zn(B)&&!E&&!this.composing||v.isReadOnly()||v.options.disableInput||v.state.keySeq)return!1;var F=B.value;if(F==E&&!v.somethingSelected())return!1;if(m&&C>=9&&this.hasSelection===F||Z&&/[ \u f700- \u f7ff]/.test(F))return v.display.input.reset(),!1;if(v.doc.sel==v.display.selForContextMenu){var X=F.charCodeAt(0);if(X==8203&&!E&&(E=" "),X==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,_e=Math.min(E.length,F.length);fe<_e&&E.charCodeAt(fe)==F.charCodeAt(fe);)++fe;return N a(v,function(){Zs(v,F.slice(fe),E.length-fe,null,d.composing?"*compose":null),F.length>1e3||F.indexOf( `
` )>-1?B.value=d.prevInput="":d.prevInput=F,d.composing&&(d.composing.range.clear(),d.composing.range=v.markText(d.composing.start,v.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zs.prototype.onKeyPress=function(){m&&C>=9&&(this.hasSelection=null),this.fastPoll()},zs.prototype.onContextMenu=function(d){var v=this,B=v.cm,E=B.display,F=v.textarea;v.contextMenuPending&&v.contextMenuPending();var X=G a(B,d),fe=E.scroller.scrollTop;if(!X||z)return;var _e=B.options.resetSelectionOnContextMenu;_e&&B.doc.sel.contains(X)==-1&&Zo(B,sa)(B.doc,N u(X),Ot);var ke=F.style.cssText,Fe=v.wrapper.style.cssText,_t=v.wrapper.offsetParent.getBoundingClientRect();v.wrapper.style.cssText="position: static",F.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
` )&&(_n=Rn=rn(_n.line,0)));var oi={from:_n,to:Rn,text:Fe?Fe[Jt%Fe.length]:ke,origin:F||(_e?"paste":d.state.cutIncoming>fe?"cut":"+input")}; $ s(d.doc,oi),Xa(d,"inputRead",d,oi)}v&&!_e&&Qf(d,v),Wo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=Tt),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function us(d,v){var B=d.clipboardData&&d.clipboardData.getData("Text");if(B)return d.preventDefault(),!v.isReadOnly()&&!v.options.disableInput&&v.hasFocus()&&Ga(v,function(){return Zs(v,B,0,null,"paste")}),!0}function Qf(d,v){if(!(!d.options.electricChars||!d.options.smartIndent))for(var B=d.doc.sel,E=B.ranges.length-1;E>=0;E--){var F=B.ranges[E];if(!(F.head.ch>100||E&&B.ranges[E-1].head.line==F.head.line)){var X=d.getModeAt(F.head),fe=!1;if(X.electricChars){for(var _e=0;_e<X.electricChars.length;_e++)if(v.indexOf(X.electricChars.charAt(_e))>-1){fe=Wf(d,F.head.line,"smart");break}}else X.electricInput&&X.electricInput.test(xi(d.doc,F.head.line).text.slice(0,F.head.ch))&&(fe=Wf(d,F.head.line,"smart"));fe&&Xa(d,"electricInput",d,F.head.line)}}}function Om(d){for(var v=[],B=[],E=0;E<d.doc.sel.ranges.length;E++){var F=d.doc.sel.ranges[E].head.line,X={anchor:rn(F,0),head:rn(F+1,0)};B.push(X),v.push(d.getRange(X.anchor,X.head))}return{text:v,ranges:B}}function Yf(d,v,B,E){d.setAttribute("autocorrect",B?"on":"off"),d.setAttribute("autocapitalize",E?"on":"off"),d.setAttribute("spellcheck",!!v)}function sf(){var d=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),v=xe("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return S?d.style.width="1000px":d.setAttribute("wrap","off"),V&&(d.style.border="1px solid black"),v}function Dd(d){var v=d.optionHandlers,B=d.helpers={};d.prototype={constructor:d,focus:function(){St(this).focus(),this.display.input.focus()},setOption:function(E,F){var X=this.options,fe=X[E];X[E]==F&&E!="mode"||(X[E]=F,v.hasOwnProperty(E)&&Zo(this,v[E])(this,F,fe),it(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,F){this.state.keyMaps[F?"push":"unshift"](Ra(E))},removeKeyMap:function(E){for(var F=this.state.keyMaps,X=0;X<F.length;++X)if(F[X]==E||F[X].name==E)return F.splice(X,1),!0},addOverlay:gr(function(E,F){var X=E.token?E:d.getMode(this.options,E);if(X.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:X,modeSpec:E,opaque:F&&F.opaque,priority:F&&F.priority||0},function(fe){return fe.priority}),this.state.modeGen++,ws(this)}),removeOverlay:gr(function(E){for(var F=this.state.overlays,X=0;X<F.length;++X){var fe=F[X].modeSpec;if(fe==E||typeof E=="string"&&fe.name==E){F.splice(X,1),this.state.modeGen++,ws(this);return}}}),indentLine:gr(function(E,F,X){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),xn(this.doc,E)&&Wf(this,E,F,X)}),indentSelection:gr(function(E){for(var F=this.doc.sel.ranges,X=-1,fe=0;fe<F.length;fe++){var _e=F[fe];if(_e.empty())_e.head.line>X&&(Wf(this,_e.head.line,E,!0),X=_e.head.line,fe==this.doc.sel.primIndex&&Wo(this));else{var ke=_e.from(),Fe=_e.to(),_t=Math.max(X,ke.line);X=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var Tt=_t;Tt<X;++Tt)Wf(this,Tt,E);var Jt=this.doc.sel.ranges;ke.ch==0&&F.length==Jt.length&&Jt[fe].from().ch>0&&Ti(this.doc,fe,new Zr(ke,Jt[fe].to()),Ot)}}}),getTokenAt:function(E,F){return Ul(this,E,F)},getLineTokens:function(E,F){return Ul(this,rn(E),F,!0)},getTokenTypeAt:function(E){E=Qi(this.doc,E);var F=Qs(this,xi(this.doc,E.line)),X=0,fe=(F.length-1)/2,_e=E.ch,ke;if(_e==0)ke=F[2];else for(;;){var Fe=X+fe>>1;if((Fe?F[Fe*2-1]:0)>=_e)fe=Fe;else if(F[Fe*2+1]<_e)X=Fe+1;else{ke=F[Fe*2+2];break}}var _t=ke?ke.indexOf("overlay "):-1;return _t<0?ke:_t==0?null:ke.slice(0,_t-1)},getModeAt:function(E){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(E).state).mode:F},getHelper:function(E,F){return this.getHelpers(E,F)[0]},getHelpers:function(E,F){var X=[];if(!B.hasOwnProperty(F))return X;var fe=B[F],_e=this.getModeAt(E);if(typeof _e[F]=="string")fe[_e[F]]&&X.push(fe[_e[F]]);else if(_e[F])for(var ke=0;ke<_e[F].length;ke++){var Fe=fe[_e[F][ke]];Fe&&X.push(Fe)}else _e.helperType&&fe[_e.helperType]?X.push(fe[_e.helperType]):fe[_e.name]&&X.push(fe[_e.name]);for(var _t=0;_t<fe._global.length;_t++){var Tt=fe._global[_t];Tt.pred(_e,this)&&He(X,Tt.val)==-1&&X.push(Tt.val)}return X},getStateAfter:function(E,F){var X=this.doc;return E=YA(X,E??X.first+X.size-1), $ o(this,E+1,F).state},cursorCoords:function(E,F){var X,fe=this.doc.sel.primary();return E==null?X=fe.head:typeof E=="object"?X=Qi(this.doc,E):X=E?fe.from():fe.to(),vn(this,X,F||"page")},charCoords:function(E,F){return wn(this,Qi(this.doc,E),F||"page")},coordsChar:function(E,F){return E=Zt(this,E,F||"page"),Oo(this,E.left,E.top)},lineAtHeight:function(E,F){return E=Zt(this,{top:E,left:0},F||"page").top,Et(
Line truncated
` ,oi=G e(Rn,Ht)?"w":Jt&&Rn== `
` ?"n":!Jt||/ \s /.test(Rn)?null:"p";if(Jt&&!_n&&!oi&&(oi="s"),Tt&&Tt!=oi){B<0&&(B=1,_t(),v.sticky="after");break}if(oi&&(Tt=oi),B>0&&!_t(!_n))break}var pi=ja(d,v,X,fe,!0);return Jr(X,pi)&&(pi.hitSide=!0),pi}function l f(d,v,B,E){var F=d.doc,X=v.left,fe;if(E=="page"){var _e=Math.min(d.display.wrapper.clientHeight,St(d).innerHeight||F(d).documentElement.clientHeight),ke=Math.max(_e-.5*SA(d.display),3);fe=(B>0?v.bottom:v.top)+B*ke}else E=="line"&&(fe=B>0?v.bottom+3:v.top-3);for(var Fe;Fe=Oo(d,X,fe),!!Fe.outside;){if(B<0?fe<=0:fe>=F.height){Fe.hitSide=!0;break}fe+=B*5}return Fe}var ea=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ea.prototype.init=function(d){var v=this,B=this,E=B.cm,F=B.div=d.lineDiv;F.contentEditable=!0,Y f(F,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function X(_e){for(var ke=_e.target;ke;ke=ke.parentNode){if(ke==F)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(ke.className))break}return!1}gt(F,"paste",function(_e){!X(_e)||en(E,_e)||us(_e,E)||C<=11&&setTimeout(Zo(E,function(){return v.updateFromDOM()}),20)}),gt(F,"compositionstart",function(_e){v.composing={data:_e.data,done:!1}}),gt(F,"compositionupdate",function(_e){v.composing||(v.composing={data:_e.data,done:!1})}),gt(F,"compositionend",function(_e){v.composing&&(_e.data!=v.composing.data&&v.readFromDOMSoon(),v.composing.done=!0)}),gt(F,"touchstart",function(){return B.forceCompositionEnd()}),gt(F,"input",function(){v.composing||v.readFromDOMSoon()});function fe(_e){if(!(!X(_e)||en(E,_e))){if(E.somethingSelected())kd({lineWise:!1,text:E.getSelections()}),_e.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ke=O m(E);kd({lineWise:!0,text:ke.text}),_e.type=="cut"&&E.operation(function(){E.setSelections(ke.ranges,0,Ot),E.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Fe=ru.text.join( `
` );if(_e.clipboardData.setData("Text",Fe),_e.clipboardData.getData("Text")==Fe){_e.preventDefault();return}}var _t=s f(),Tt=_t.firstChild;Y f(Tt),E.display.lineSpace.insertBefore(_t,E.display.lineSpace.firstChild),Tt.value=ru.text.join( `
` );var Jt=nt(pt(F));tt(Tt),setTimeout(function(){E.display.lineSpace.removeChild(_t),Jt.focus(),Jt==F&&B.showPrimarySelection()},50)}}gt(F,"copy",fe),gt(F,"cut",fe)},ea.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var d=_h(this.cm,!1);return d.focus=nt(pt(this.div))==this.div,d},ea.prototype.showSelection=function(d,v){!d||!this.cm.display.view.length||((d.focus||v)&&this.showPrimarySelection(),this.showMultipleSelections(d))},ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ea.prototype.showPrimarySelection=function(){var d=this.getSelection(),v=this.cm,B=v.doc.sel.primary(),E=B.from(),F=B.to();if(v.display.viewTo==v.display.viewFrom||E.line>=v.display.viewTo||F.line<v.display.viewFrom){d.removeAllRanges();return}var X=ol(v,d.anchorNode,d.anchorOffset),fe=ol(v,d.focusNode,d.focusOffset);if(!(X&&!X.bad&&fe&&!fe.bad&&si(Us(X,fe),E)==0&&si(As(X,fe),F)==0)){var _e=v.display.view,ke=E.line>=v.display.viewFrom&&Th(v,E)||{node:_e[0].measure.map[2],offset:0},Fe=F.line<v.display.viewTo&&Th(v,F);if(!Fe){var _t=_e[_e.length-1].measure,Tt=_t.maps?_t.maps[_t.maps.length-1]:_t.map;Fe={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!ke||!Fe){d.removeAllRanges();return}var Jt=d.rangeCount&&d.getRangeAt(0),Ht;try{Ht=ot(ke.node,ke.offset,Fe.offset,Fe.node)}catch{}Ht&&(!r&&v.state.focused?(d.collapse(ke.node,ke.offset),Ht.collapsed||(d.removeAllRanges(),d.addRange(Ht))):(d.removeAllRanges(),d.addRange(Ht)),Jt&&d.anchorNode==null?d.addRange(Jt):r&&this.startGracePeriod()),this.rememberSelection()}},ea.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},ea.prototype.showMultipleSelections=function(d){qe(this.cm.display.cursorDiv,d.cursors),qe(this.cm.display.selectionDiv,d.selection)},ea.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},ea.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var v=d.getRangeAt(0).commonAncestorContainer;return yt(this.div,v)},ea.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(pt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ea.prototype.blur=function(){this.div.blur()},ea.prototype.getField=function(){return this.div},ea.prototype.supportsTouch=function(){return!0},ea.prototype.receivedFocus=function(){var d=this,v=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Ga(this.cm,function(){return v.cm.curOp.selectionChanged=!0});function B(){v.cm.state.focused&&(v.pollSelection(),v.polling.set(v.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},ea.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},ea.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),v=this.cm;if(ae&&U&&this.cm.display.gutterSpecs.length&&pp(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var B=ol(v,d.anchorNode,d.anchorOffset),E=ol(v,d.focusNode,d.focusOffset);B&&E&&Ga(v,function(){sa(v.doc,Gu(B,E),Ot),(B.bad||E.bad)&&(v.curOp.selectionChanged=!0)})}}},ea.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,v=d.display,B=d.doc.sel.primary(),E=B.from(),F=B.to();if(E.ch==0&&E.line>d.firstLine()&&(E=rn(E.line-1,xi(d.doc,E.line-1).length)),F.ch==xi(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=rn(F.line+1,0)),E.line<v.viewFrom||F.line>v.viewTo-1)return!1;var X,fe,_e;E.line==v.viewFrom||(X=Hs(d,E.line))==0?(fe= $ e(v.view[0].line),_e=v.view[0].node):(fe= $ e(v.view[X].line),_e=v.view[X-1].node.nextSibling);var ke=Hs(d,F.line),Fe,_t;if(ke==v.view.length-1?(Fe=v.viewTo-1,_t=v.lineDiv.lastChild):(Fe= $ e(v.view[ke+1].line)-1,_t=v.view[ke+1].node.previousSibling),!_e)return!1;for(var Tt=d.doc.splitLines(fA(d,_e,_t,fe,Fe)),Jt=ls(d.doc,rn(fe,0),rn(Fe,xi(d.doc,Fe).text.length));Tt.length>1&&Jt.length>1;)if( $ n(Tt)== $ n(Jt))Tt.pop(),Jt.pop(),Fe--;else if(Tt[0]==Jt[0])Tt.shift(),Jt.shift(),fe++;else break;for(var Ht=0,_n=0,Rn=Tt[0],oi=Jt[0],pi=Math.min(Rn.length,oi.length);Ht<pi&&Rn.charCodeAt(Ht)==oi.charCodeAt(Ht);)++Ht;for(var Ci= $ n(Tt),gi= $ n(Jt),ki=Math.min(Ci.length-(Tt.length==1?Ht:0),gi.length-(Jt.
Line truncated
` ),tt(F))}else return;fe.type=="cut"&&(E.state.cutIncoming=+new Date)}}gt(F,"cut",X),gt(F,"copy",X),gt(d.scroller,"paste",function(fe){if(!(aA(d,fe)||en(E,fe))){if(!F.dispatchEvent){E.state.pasteIncoming=+new Date,B.focus();return}var _e=new Event("paste");_e.clipboardData=fe.clipboardData,F.dispatchEvent(_e)}}),gt(d.lineSpace,"selectstart",function(fe){aA(d,fe)||Wn(fe)}),gt(F,"compositionstart",function(){var fe=E.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:fe,range:E.markText(fe,E.getCursor("to"),{className:"CodeMirror-composing"})}}),gt(F,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},zs.prototype.createField=function(d){this.wrapper=s f(),this.textarea=this.wrapper.firstChild;var v=this.cm.options;Y f(this.textarea,v.spellcheck,v.autocorrect,v.autocapitalize)},zs.prototype.screenReaderLabelChanged=function(d){d?this.textarea.setAttribute("aria-label",d):this.textarea.removeAttribute("aria-label")},zs.prototype.prepareSelection=function(){var d=this.cm,v=d.display,B=d.doc,E=_h(d);if(d.options.moveInputWithCursor){var F=vn(d,B.sel.primary().head,"div"),X=v.wrapper.getBoundingClientRect(),fe=v.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(v.wrapper.clientHeight-10,F.top+fe.top-X.top)),E.teLeft=Math.max(0,Math.min(v.wrapper.clientWidth-10,F.left+fe.left-X.left))}return E},zs.prototype.showSelection=function(d){var v=this.cm,B=v.display;qe(B.cursorDiv,d.cursors),qe(B.selectionDiv,d.selection),d.teTop!=null&&(this.wrapper.style.top=d.teTop+"px",this.wrapper.style.left=d.teLeft+"px")},zs.prototype.reset=function(d){if(!(this.contextMenuPending||this.composing&&d)){var v=this.cm;if(this.resetting=!0,v.somethingSelected()){this.prevInput="";var B=v.getSelection();this.textarea.value=B,v.state.focused&&tt(this.textarea),m&&C>=9&&(this.hasSelection=B)}else d||(this.prevInput=this.textarea.value="",m&&C>=9&&(this.hasSelection=null));this.resetting=!1}},zs.prototype.getField=function(){return this.textarea},zs.prototype.supportsTouch=function(){return!1},zs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||nt(pt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},zs.prototype.blur=function(){this.textarea.blur()},zs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zs.prototype.receivedFocus=function(){this.slowPoll()},zs.prototype.slowPoll=function(){var d=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){d.poll(),d.cm.state.focused&&d.slowPoll()})},zs.prototype.fastPoll=function(){var d=!1,v=this;v.pollingFast=!0;function B(){var E=v.poll();!E&&!d?(d=!0,v.polling.set(60,B)):(v.pollingFast=!1,v.slowPoll())}v.polling.set(20,B)},zs.prototype.poll=function(){var d=this,v=this.cm,B=this.textarea,E=this.prevInput;if(this.contextMenuPending||this.resetting||!v.state.focused||Zn(B)&&!E&&!this.composing||v.isReadOnly()||v.options.disableInput||v.state.keySeq)return!1;var F=B.value;if(F==E&&!v.somethingSelected())return!1;if(m&&C>=9&&this.hasSelection===F||Z&&/[ \u f700- \u f7ff]/.test(F))return v.display.input.reset(),!1;if(v.doc.sel==v.display.selForContextMenu){var X=F.charCodeAt(0);if(X==8203&&!E&&(E=" "),X==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,_e=Math.min(E.length,F.length);fe<_e&&E.charCodeAt(fe)==F.charCodeAt(fe);)++fe;return G a(v,function(){Zs(v,F.slice(fe),E.length-fe,null,d.composing?"*compose":null),F.length>1e3||F.indexOf( `
` )>-1?B.value=d.prevInput="":d.prevInput=F,d.composing&&(d.composing.range.clear(),d.composing.range=v.markText(d.composing.start,v.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zs.prototype.onKeyPress=function(){m&&C>=9&&(this.hasSelection=null),this.fastPoll()},zs.prototype.onContextMenu=function(d){var v=this,B=v.cm,E=B.display,F=v.textarea;v.contextMenuPending&&v.contextMenuPending();var X=N a(B,d),fe=E.scroller.scrollTop;if(!X||z)return;var _e=B.options.resetSelectionOnContextMenu;_e&&B.doc.sel.contains(X)==-1&&Zo(B,sa)(B.doc,G u(X),Ot);var ke=F.style.cssText,Fe=v.wrapper.style.cssText,_t=v.wrapper.offsetParent.getBoundingClientRect();v.wrapper.style.cssText="position: static",F.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(d.clientY-_t.top-5)+"px; left: "+(d.clientX-_t.left-5)+ ` px ;
z - index : 1000 ; background : ` +(m?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var Tt;S&&(Tt=F.ownerDocument.defaultView.scrollY),E.input.focus(),S&&F.ownerDocument.defaultView.scrollTo(null,Tt),E.input.reset(),B.somethingSelected()||(F.value=v.prevInput=" "),v.contextMenuPending=Ht,E.selForContextMenu=B.doc.sel,clearTimeout(E.detectingSelectAll);function Jt(){if(F.selectionStart!=null){var Rn=B.somethingSelected(),oi=" "+(Rn?F.value:"");F.value="⇚",F.value=oi,v.prevInput=Rn?"":" ",F.selectionStart=1,F.selectionEnd=oi.length,E.selForContextMenu=B.doc.sel}}function Ht(){if(v.contextMenuPending==Ht&&(v.contextMenuPending=!1,v.wrapper.style.cssText=Fe,F.style.cssText=ke,m&&C<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=fe),F.selectionStart!=null)){(!m||m&&C<9)&&Jt();var Rn=0,oi=function(){E.selForContextMenu==B.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&v.prevInput==" "?Zo(B,Cu)(B):Rn++<10?E.detectingSelectAll=setTimeout(oi,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(oi,200)}}if(m&&C>=9&&Jt(),ye){wi(d);var _n=function(){kt(window,"mouseup",_n),setTimeout(Ht,20)};gt(window,"mouseup",_n)}else setTimeout(Ht,50)},zs.prototype.readOnlyChanged=function(d){d||this.reset(),this.textarea.disabled=d=="nocursor",this.textarea.readOnly=!!d},zs.prototype.setUneditable=function(){},zs.prototype.needsContentAttribute=!1;function Hf(d,v){if(v=v?Le(v):{},v.value=d.value,!v.tabindex&&d.tabIndex&&(v.tabindex=d.tabIndex),!v.placeholder&&d.placeholder&&(v.placeholder=d.placeholder),v.autofocus==null){var B=nt(pt(d));v.autofocus=B==d||d.getAttribute("autofocus")!=null&&B==document.body}function E(){d.value=_e.getValue()}var F;if(d.form&&(gt(d.form,"submit",E),!v.leaveSubmitMethodAlone)){var X=d.form;F=X.submit;try{var fe=X.submit=function(){E(),X.submit=F,X.submit(),X.submit=fe}}catch{}}v.finishInit=function(ke){ke.save=E,ke.getTextArea=function(){return d},ke.toTextArea=function(){ke.toTextArea=isNaN,E(),d.parentNode.removeChild(ke.getWrapperElement()),d.style.display="",d.form&&(kt(d.form,"submit",E),!v.leaveSubmitMethodAlone&&typeof d.form.submit=="function"&&(d.form.submit=F))}},d.style.display="none";var _e=Jo(function(ke){return d.parentNode.insertBefore(ke,d.nextSibling)},v);return _e}function a0(d){d.off=kt,d.on=gt,d.wheelEventPixels=Lf,d.Doc=At,d.splitLines=To,d.countColumn=Pe,d.findColumn=on,d.isWordChar=Kn,d.Pass=vt,d.signal=it,d.Line=Ll,d.changeEnd=ju,d.scrollbarModel=pu,d.Pos=rn,d.cmpPos=si,d.modes=La,d.mimeModes=Ir,d.resolveMode=Ta,d.getMode=So,d.modeExtensions= $ a,d.extendMode=Ol,d.copyState=Ao,d.startState=ka,d.innerMode=QA,d.commands=Bs,d.keyMap=Qn,d.keyName=Lo,d.isModifierKey=_o,d.lookupKey=cr,d.normalizeKeyMap=bi,d.StringStream=Vi,d.SharedTextMarker=he,d.TextMarker=q,d.LineWidget=_,d.e_preventDefault=Wn,d.e_stopPropagation=qi,d.e_stop=wi,d.addClass=be,d.contains=yt,d.rmClass=Be,d.keyNames=Xt}Wf(Jo),Dd(Jo);var s0="iter insert remove copy getEditor constructor".split(" ");for(var uf in At.prototype)At.prototype.hasOwnProperty(uf)&&He(s0,uf)<0&&(Jo.prototype[uf]=function(d){return function(){return d.apply(this.doc,arguments)}}(At.prototype[uf]));return ii(At),Jo.inputStyles={textarea:zs,contenteditable:ea},Jo.defineMode=function(d){!Jo.defaults.mode&&d!="null"&&(Jo.defaults.mode=d),Gi.apply(this,arguments)},Jo.defineMIME=gl,Jo.defineMode("null",function(){return{token:function(d){return d.skipToEnd()}}}),Jo.defineMIME("text/plain","null"),Jo.defineExtension=function(d,v){Jo.prototype[d]=v},Jo.defineDocExtension=function(d,v){At.prototype[d]=v},Jo.fromTextArea=Hf,a0(Jo),Jo.version="5.65.20",Jo})}(Kx)),Kx.exports}var $ se=W2();const np=WA( $ se);var dk={exports:{}},fk;function Zse(){return fk||(fk=1,function(n,e){(function(t){t(W2())})(function(t){t.defineMode("javascript",function(i,r){var a=i.indentUnit,l=r.statementIndent,o=r.jsonld,m=r.json||o,C=r.trackScope!==!1,S=r.typescript,O=r.wordCharacters||/[ \w $ \x a1- \u ffff]/,U=function(){function $ e(wo){return{type:wo,style:"keyword"}}var Et= $ e("keyword a"),xn= $ e("keyword b"),jn= $ e("keyword c"),rn= $ e("keyword d"),si= $ e("operator"),Jr={type:"atom",style:"atom"};return{if: $ e("if"),while:Et,with:Et,else:xn,do:xn,try:xn,finally:xn,return:rn,break:rn,continue:rn,new: $ e("new"),delete:jn,void:jn,throw:jn,debugger: $ e("debugger"),var: $ e("var"),const: $ e("var"),let: $ e("var"),function: $ e("function"),catch: $ e("catch"),for: $ e("for"),switch: $ e("switch"),case: $ e("case"),default: $ e("default"),in:si,typeof:si,instanceof:si,true:Jr,false:Jr,null:Jr,undefined:Jr,NaN:Jr,Infinity:Jr,this: $ e("this"),class: $ e("class"),super: $ e("atom"),yield:jn,export: $ e("export"),import: $ e("import"),extends:jn,await:jn}}(),K=/[+ \- *&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function j( $ e){for(var Et=!1,xn,jn=!1;(xn= $ e.next())!=null;){if(!Et){if(xn=="/"&&!jn)return;xn=="["?jn=!0:jn&&xn=="]"&&(jn=!1)}Et=!Et&&xn==" \\ "}}var Q,ee;function V( $ e,Et,xn){return Q= $ e,ee=xn,Et}fun
Line truncated
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var Tt;S&&(Tt=F.ownerDocument.defaultView.scrollY),E.input.focus(),S&&F.ownerDocument.defaultView.scrollTo(null,Tt),E.input.reset(),B.somethingSelected()||(F.value=v.prevInput=" "),v.contextMenuPending=Ht,E.selForContextMenu=B.doc.sel,clearTimeout(E.detectingSelectAll);function Jt(){if(F.selectionStart!=null){var Rn=B.somethingSelected(),oi=" "+(Rn?F.value:"");F.value="⇚",F.value=oi,v.prevInput=Rn?"":" ",F.selectionStart=1,F.selectionEnd=oi.length,E.selForContextMenu=B.doc.sel}}function Ht(){if(v.contextMenuPending==Ht&&(v.contextMenuPending=!1,v.wrapper.style.cssText=Fe,F.style.cssText=ke,m&&C<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=fe),F.selectionStart!=null)){(!m||m&&C<9)&&Jt();var Rn=0,oi=function(){E.selForContextMenu==B.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&v.prevInput==" "?Zo(B,Cu)(B):Rn++<10?E.detectingSelectAll=setTimeout(oi,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(oi,200)}}if(m&&C>=9&&Jt(),ye){wi(d);var _n=function(){kt(window,"mouseup",_n),setTimeout(Ht,20)};gt(window,"mouseup",_n)}else setTimeout(Ht,50)},zs.prototype.readOnlyChanged=function(d){d||this.reset(),this.textarea.disabled=d=="nocursor",this.textarea.readOnly=!!d},zs.prototype.setUneditable=function(){},zs.prototype.needsContentAttribute=!1;function qf(d,v){if(v=v?Le(v):{},v.value=d.value,!v.tabindex&&d.tabIndex&&(v.tabindex=d.tabIndex),!v.placeholder&&d.placeholder&&(v.placeholder=d.placeholder),v.autofocus==null){var B=nt(pt(d));v.autofocus=B==d||d.getAttribute("autofocus")!=null&&B==document.body}function E(){d.value=_e.getValue()}var F;if(d.form&&(gt(d.form,"submit",E),!v.leaveSubmitMethodAlone)){var X=d.form;F=X.submit;try{var fe=X.submit=function(){E(),X.submit=F,X.submit(),X.submit=fe}}catch{}}v.finishInit=function(ke){ke.save=E,ke.getTextArea=function(){return d},ke.toTextArea=function(){ke.toTextArea=isNaN,E(),d.parentNode.removeChild(ke.getWrapperElement()),d.style.display="",d.form&&(kt(d.form,"submit",E),!v.leaveSubmitMethodAlone&&typeof d.form.submit=="function"&&(d.form.submit=F))}},d.style.display="none";var _e=Jo(function(ke){return d.parentNode.insertBefore(ke,d.nextSibling)},v);return _e}function a0(d){d.off=kt,d.on=gt,d.wheelEventPixels=Uf,d.Doc=At,d.splitLines=To,d.countColumn=Pe,d.findColumn=on,d.isWordChar=Kn,d.Pass=vt,d.signal=it,d.Line=Ll,d.changeEnd=ju,d.scrollbarModel=pu,d.Pos=rn,d.cmpPos=si,d.modes=La,d.mimeModes=Ir,d.resolveMode=Ta,d.getMode=So,d.modeExtensions= $ a,d.extendMode=Ol,d.copyState=Ao,d.startState=ka,d.innerMode=QA,d.commands=Bs,d.keyMap=Qn,d.keyName=Lo,d.isModifierKey=_o,d.lookupKey=cr,d.normalizeKeyMap=bi,d.StringStream=Vi,d.SharedTextMarker=he,d.TextMarker=q,d.LineWidget=_,d.e_preventDefault=Wn,d.e_stopPropagation=qi,d.e_stop=wi,d.addClass=be,d.contains=yt,d.rmClass=Be,d.keyNames=Xt}jf(Jo),Dd(Jo);var s0="iter insert remove copy getEditor constructor".split(" ");for(var Af in At.prototype)At.prototype.hasOwnProperty(Af)&&He(s0,Af)<0&&(Jo.prototype[Af]=function(d){return function(){return d.apply(this.doc,arguments)}}(At.prototype[Af]));return ii(At),Jo.inputStyles={textarea:zs,contenteditable:ea},Jo.defineMode=function(d){!Jo.defaults.mode&&d!="null"&&(Jo.defaults.mode=d),Ni.apply(this,arguments)},Jo.defineMIME=gl,Jo.defineMode("null",function(){return{token:function(d){return d.skipToEnd()}}}),Jo.defineMIME("text/plain","null"),Jo.defineExtension=function(d,v){Jo.prototype[d]=v},Jo.defineDocExtension=function(d,v){At.prototype[d]=v},Jo.fromTextArea=qf,a0(Jo),Jo.version="5.65.20",Jo})}(Ix)),Ix.exports}var Lse=L2();const tp=WA(Lse);var sk={exports:{}},lk;function Fse(){return lk||(lk=1,function(n,e){(function(t){t(L2())})(function(t){t.defineMode("javascript",function(i,r){var a=i.indentUnit,l=r.statementIndent,o=r.jsonld,m=r.json||o,C=r.trackScope!==!1,S=r.typescript,O=r.wordCharacters||/[ \w $ \x a1- \u ffff]/,U=function(){function $ e(wo){return{type:wo,style:"keyword"}}var Et= $ e("keyword a"),xn= $ e("keyword b"),jn= $ e("keyword c"),rn= $ e("keyword d"),si= $ e("operator"),Jr={type:"atom",style:"atom"};return{if: $ e("if"),while:Et,with:Et,else:xn,do:xn,try:xn,finally:xn,return:rn,break:rn,continue:rn,new: $ e("new"),delete:jn,void:jn,throw:jn,debugger: $ e("debugger"),var: $ e("var"),const: $ e("var"),let: $ e("var"),function: $ e("function"),catch: $ e("catch"),for: $ e("for"),switch: $ e("switch"),case: $ e("case"),default: $ e("default"),in:si,typeof:si,instanceof:si,true:Jr,false:Jr,null:Jr,undefined:Jr,NaN:Jr,Infinity:Jr,this: $ e("this"),class: $ e("class"),super: $ e("atom"),yield:jn,export: $ e("export"),import: $ e("import"),extends:jn,await:jn}}(),K=/[+ \- *&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function j( $ e){for(var Et=!1,xn,jn=!1;(xn= $ e.next())!=null;){if(!Et){if(xn=="/"&&!jn)return;xn=="["?jn=!0:jn&&xn=="]"&&(jn=!1)}Et=!Et&&xn==" \\ "}}var Q,ee;function V( $ e,Et,xn){return Q= $ e,ee=xn,Et}fun
Line truncated
$ { O } ` ),j].join( `
$ { o } ` )}return C}(n,"",0)}var FC={exports:{}},tl e=FC.exports,v k;function nl e(){return v k||(v k=1,function(n,e){(function(t,i){i(e)})(tl e,function(t){const i={isWhiteSpace:function(be){return be===" "||be===" "||be===" \u FEFF"||be>=" "&&be<=" \r "||be===" "||be>=" "&&be<=" "||be===" \u 2028"||be===" \u 2029"||be===" "||be===" "||be===" "},isWhiteSpaceJSON:function(be){return be===" "||be===" "||be=== `
$ { o } ` )}return C}(n,"",0)}var FC={exports:{}},js e=FC.exports,d k;function Ws e(){return d k||(d k=1,function(n,e){(function(t,i){i(e)})(js e,function(t){const i={isWhiteSpace:function(be){return be===" "||be===" "||be===" \u FEFF"||be>=" "&&be<=" \r "||be===" "||be>=" "&&be<=" "||be===" \u 2028"||be===" \u 2029"||be===" "||be===" "||be===" "},isWhiteSpaceJSON:function(be){return be===" "||be===" "||be=== `
` ||be===" \r "},isLineTerminator:function(be){return be=== `
` ||be===" \r "||be===" \u 2028"||be===" \u 2029"},isLineTerminatorJSON:function(be){return be=== `
` ||be===" \r "},isIdentifierStart:function(be){return be===" $ "||be==="_"||be>="A"&&be<="Z"||be>="a"&&be<="z"||be>=""&&i.NonAsciiIdentifierStart.test(be)},isIdentifierPart:function(be){return be===" $ "||be==="_"||be>="A"&&be<="Z"||be>="a"&&be<="z"||be>="0"&&be<="9"||be>=""&&i.NonAsciiIdentifierPart.test(be)},NonAsciiIdentifierStart:/[ \x AA \x B5 \x BA \x C0- \x D6 \x D8- \x F6 \x F8- \u 02C1 \u 02C6- \u 02D1 \u 02E0- \u 02E4 \u 02EC \u 02EE \u 0370- \u 0374 \u 0376 \u 0377 \u 037A- \u 037D \u 0386 \u 0388- \u 038A \u 038C \u 038E- \u 03A1 \u 03A3- \u 03F5 \u 03F7- \u 0481 \u 048A- \u 0527 \u 0531- \u 0556 \u 0559 \u 0561- \u 0587 \u 05D0- \u 05EA \u 05F0- \u 05F2 \u 0620- \u 064A \u 066E \u 066F \u 0671- \u 06D3 \u 06D5 \u 06E5 \u 06E6 \u 06EE \u 06EF \u 06FA- \u 06FC \u 06FF \u 0710 \u 0712- \u 072F \u 074D- \u 07A5 \u 07B1 \u 07CA- \u 07EA \u 07F4 \u 07F5 \u 07FA \u 0800- \u 0815 \u 081A \u 0824 \u 0828 \u 0840- \u 0858 \u 08A0 \u 08A2- \u 08AC \u 0904- \u 0939 \u 093D \u 0950 \u 0958- \u 0961 \u 0971- \u 0977 \u 0979- \u 097F \u 0985- \u 098C \u 098F \u 0990 \u 0993- \u 09A8 \u 09AA- \u 09B0 \u 09B2 \u 09B6- \u 09B9 \u 09BD \u 09CE \u 09DC \u 09DD \u 09DF- \u 09E1 \u 09F0 \u 09F1 \u 0A05- \u 0A0A \u 0A0F \u 0A10 \u 0A13- \u 0A28 \u 0A2A- \u 0A30 \u 0A32 \u 0A33 \u 0A35 \u 0A36 \u 0A38 \u 0A39 \u 0A59- \u 0A5C \u 0A5E \u 0A72- \u 0A74 \u 0A85- \u 0A8D \u 0A8F- \u 0A91 \u 0A93- \u 0AA8 \u 0AAA- \u 0AB0 \u 0AB2 \u 0AB3 \u 0AB5- \u 0AB9 \u 0ABD \u 0AD0 \u 0AE0 \u 0AE1 \u 0B05- \u 0B0C \u 0B0F \u 0B10 \u 0B13- \u 0B28 \u 0B2A- \u 0B30 \u 0B32 \u 0B33 \u 0B35- \u 0B39 \u 0B3D \u 0B5C \u 0B5D \u 0B5F- \u 0B61 \u 0B71 \u 0B83 \u 0B85- \u 0B8A \u 0B8E- \u 0B90 \u 0B92- \u 0B95 \u 0B99 \u 0B9A \u 0B9C \u 0B9E \u 0B9F \u 0BA3 \u 0BA4 \u 0BA8- \u 0BAA \u 0BAE- \u 0BB9 \u 0BD0 \u 0C05- \u 0C0C \u 0C0E- \u 0C10 \u 0C12- \u 0C28 \u 0C2A- \u 0C33 \u 0C35- \u 0C39 \u 0C3D \u 0C58 \u 0C59 \u 0C60 \u 0C61 \u 0C85- \u 0C8C \u 0C8E- \u 0C90 \u 0C92- \u 0CA8 \u 0CAA- \u 0CB3 \u 0CB5- \u 0CB9 \u 0CBD \u 0CDE \u 0CE0 \u 0CE1 \u 0CF1 \u 0CF2 \u 0D05- \u 0D0C \u 0D0E- \u 0D10 \u 0D12- \u 0D3A \u 0D3D \u 0D4E \u 0D60 \u 0D61 \u 0D7A- \u 0D7F \u 0D85- \u 0D96 \u 0D9A- \u 0DB1 \u 0DB3- \u 0DBB \u 0DBD \u 0DC0- \u 0DC6 \u 0E01- \u 0E30 \u 0E32 \u 0E33 \u 0E40- \u 0E46 \u 0E81 \u 0E82 \u 0E84 \u 0E87 \u 0E88 \u 0E8A \u 0E8D \u 0E94- \u 0E97 \u 0E99- \u 0E9F \u 0EA1- \u 0EA3 \u 0EA5 \u 0EA7 \u 0EAA \u 0EAB \u 0EAD- \u 0EB0 \u 0EB2 \u 0EB3 \u 0EBD \u 0EC0- \u 0EC4 \u 0EC6 \u 0EDC- \u 0EDF \u 0F00 \u 0F40- \u 0F47 \u 0F49- \u 0F6C \u 0F88- \u 0F8C \u 1000- \u 102A \u 103F \u 1050- \u 1055 \u 105A- \u 105D \u 1061 \u 1065 \u 1066 \u 106E- \u 1070 \u 1075- \u 1081 \u 108E \u 10A0- \u 10C5 \u 10C7 \u 10CD \u 10D0- \u 10FA \u 10FC- \u 1248 \u 124A- \u 124D \u 1250- \u 1256 \u 1258 \u 125A- \u 125D \u 1260- \u 1288 \u 128A- \u 128D \u 1290- \u 12B0 \u 12B2- \u 12B5 \u 12B8- \u 12BE \u 12C0 \u 12C2- \u 12C5 \u 12C8- \u 12D6 \u 12D8- \u 1310 \u 1312- \u 1315 \u 1318- \u 135A \u 1380- \u 138F \u 13A0- \u 13F4 \u 1401- \u 166C \u 166F- \u 167F \u 1681- \u 169A \u 16A0- \u 16EA \u 16EE- \u 16F0 \u 1700- \u 170C \u 170E- \u 1711 \u 1720- \u 1731 \u 1740- \u 1751 \u 1760- \u 176C \u 176E- \u 1770 \u 1780- \u 17B3 \u 17D7 \u 17DC \u 1820- \u 1877 \u 1880- \u 18A8 \u 18AA \u 18B0- \u 18F5 \u 1900- \u 191C \u 1950- \u 196D \u 1970- \u 1974 \u 1980- \u 19AB \u 19C1- \u 19C7 \u 1A00- \u 1A16 \u 1A20- \u 1A54 \u 1AA7 \u 1B05- \u 1B33 \u 1B45- \u 1B4B \u 1B83- \u 1BA0 \u 1BAE \u 1BAF \u 1BBA- \u 1BE5 \u 1C00- \u 1C23 \u 1C4D- \u 1C4F \u 1C5A- \u 1C7D \u 1CE9- \u 1CEC \u 1CEE- \u 1CF1 \u 1CF5 \u 1CF6 \u 1D00- \u 1DBF \u 1E00- \u 1F15 \u 1F18- \u 1F1D \u 1F20- \u 1F45 \u 1F48- \u 1F4D \u 1F50- \u 1F57 \u 1F59 \u 1F5B \u 1F5D \u 1F5F- \u 1F7D \u 1F80- \u 1FB4 \u 1FB6- \u 1FBC \u 1FBE \u 1FC2- \u 1FC4 \u 1FC6- \u 1FCC \u 1FD0- \u 1FD3 \u 1FD6- \u 1FDB \u 1FE0- \u 1FEC \u 1FF2- \u 1FF4 \u 1FF6- \u 1FFC \u 2071 \u 207F \u 2090- \u 209C \u 2102 \u 2107 \u 210A- \u 2113 \u 2115 \u 2119- \u 211D \u 2124 \u 2126 \u 2128 \u 212A- \u 212D \u 212F- \u 2139 \u 213C- \u 213F \u 2145- \u 2149 \u 214E \u 2160- \u 2188 \u 2C00- \u 2C2E \u 2C30- \u 2C5E \u 2C60- \u 2CE4 \u 2CEB- \u 2CEE \u 2CF2 \u 2CF3 \u 2D00- \u 2D25 \u 2D27 \u 2D2D \u 2D30- \u 2D67 \u 2D6F \u 2D80- \u 2D96 \u 2DA0- \u 2DA6 \u 2DA8- \u 2DAE \u 2DB0- \u 2DB6 \u 2DB8- \u 2DBE \u 2DC0- \u 2DC6 \u 2DC8- \u 2DCE \u 2DD0- \u 2DD6 \u 2DD8- \u 2DDE \u 2E2F \u 3005- \u 3007 \u 3021- \u 3029 \u 3031- \u 3035 \u 3038- \u 303C \u 3041- \u 3096 \u 309D- \u 309F \u 30A1- \u 30FA \u 30FC- \u 30FF \u 3105- \u 312D \u 3131- \u 318E \u 31A0- \u 31BA \u 31F0- \u 31FF \u 3400- \u 4DB5 \u 4E00- \u 9FCC \u A000- \u A48C \u A4D0- \u A4FD \u A500- \u A60C \u A610- \u A61F \u A62A \u A62B \u A640- \u A66E \u A67F- \u A697 \u A6A0- \u A6EF \u A717- \u A71F \u A722- \u A788 \u A78B- \u A78E \u A790- \u A793 \u A7A0- \u A7AA \u A7F8- \u A801 \u A803- \u A805 \u A807- \u A80A \u A80C- \u A822 \u A840- \u A873 \u A882- \u A8B3 \u A8F2- \u A8F7 \u A8FB \u A90A- \u A925 \u A930- \u A946 \u A960- \u A97C \u A984- \u A9B2 \u A9CF \u AA00- \u AA28 \u AA40- \u AA42 \u AA44- \u AA4B \u AA60- \u AA76 \u AA7A \u AA80- \u AAAF \u AAB1 \u AAB5 \u AAB6 \u AAB9- \u AABD \u AAC0 \u AAC2 \u AADB- \u AADD \u AAE0- \u AAEA \u AAF2- \u AAF4 \u AB01- \u AB06 \u AB09- \u AB0E \u AB11- \u AB16 \u AB20- \u AB26 \u AB28- \u AB2E \u ABC0- \u ABE2 \u AC00- \u D7A3 \u D7B0- \u D7C6 \u D7CB- \u D7FB \u F900- \u FA6D \u FA70- \u FAD9 \u FB00- \u FB06 \u FB13- \u FB17 \u FB1D \u FB1F- \u FB28 \u FB2A- \u FB36 \u FB38- \u FB3C \u FB3E \u FB40 \u FB41 \u FB43 \u FB44 \u FB46- \u FBB1 \u FBD3- \u FD3D \u FD50- \u FD8F \u FD92- \u FDC7 \u FDF0- \u FDFB \u FE70- \u FE74 \u FE76- \u FEFC \u FF21- \u FF3A \u FF41- \u FF5A \u FF66- \u FFBE \u FFC2- \u FFC7 \u FFCA- \u FFCF \u FFD2- \u FFD7 \u FFDA- \u FFDC]/,NonAsciiIdentifierPart:/[ \x AA \x B5 \x BA \x C0- \x D6 \x D8- \x F6 \x F8- \u 02C1 \u 02C6- \u 02D1 \u 02E0- \u 02E4 \u 02EC \u 02EE \u 0300- \u 0374 \u 0376 \u 0377 \u 037A- \u 037D \u 0386 \u 0388- \u 038A \u 038C \u 038E- \u 03A1 \u 03A3- \u 03F5 \u 03F7- \u 0481 \u 0483- \u 0487 \u 048A- \u 0527 \u 0531- \u 0556 \u 0559 \u 0561- \u 0587 \u 0591- \u 05BD \u 05BF \u 05C1 \u 05C2 \u 05C4 \u 05C5 \u 05C7 \u 05D0- \u 05EA \u 05F0- \u 05F2 \u 0610- \u 061A \u 0620- \u 0669 \u 066E- \u 06D3 \u 06D5- \u 06DC \u 06DF- \u 06E8 \u 06EA- \u 06FC \u 06FF \u 0710- \u 074A \u 074D- \u 07B1 \u 07C0- \u 07F5 \u Line truncated
` ,r:" \r ",t:" ",v:" \v ","/":"/"},C=Object.hasOwn,S={};function O(nt,be){(typeof nt!="string"||!(nt instanceof String))&&(nt=String(nt));const G e=be.mode==="json5",tt=be.ignoreBOM,lt=be.ignoreComments||be.mode==="cjson"||G e,It=be.ignoreTrailingCommas||G e,pt=be.ignoreProtoKey,St=be.ignorePrototypeKeys,Rt=be.allowSingleQuotedStrings||G e,Le=be.allowDuplicateObjectKeys,Pe=be.reviver,Re=be.tokenize,He=be.rawTokens,bt=be.tokenLocations,vt=be.tokenPaths,Ot=G e?i.isLineTerminator:i.isLineTerminatorJSON,qt=G e?i.isWhiteSpace:i.isWhiteSpaceJSON,Kt=nt.length;let on=0,Jn=0,Wt=0;const $ n=[];let On,Bn,In;if(Re){let ht=null,kt,it;On=function(){if(ht!==null)throw Error("internal error, token overlap");kt=on+1,it=Wt-Jn+1,ht=Wt},Bn=function(en,Dn){if(ht!==Wt){const Mn={type:en};He&&(Mn.raw=nt.substr(ht,Wt-ht)),Dn!==void 0&&(Mn.value=Dn),bt&&(Mn.location={start:{column:it,line:kt,offset:ht}}),vt&&(Mn.path=In.slice()), $ n.push(Mn)}return ht=null,Dn},vt&&(In=[])}function Bi(){let ht;return Wt<Kt?ht= ` Unexpected token $ { JSON . stringify ( nt [ Wt ] ) } ` :ht="Unexpected end of input",ht}function ei(ht){const kt=Wt-Jn+1;++on;const it=Me(ht,nt,Wt,on,kt),en=SyntaxError(it.message);return en.reason=ht,en.excerpt=it.excerpt,en.pointer=it.pointer,en.location={start:{column:kt,line:on,offset:Wt}},en}function Kn(ht){throw ht||(ht=Bi()),ei(ht)}function N e(ht){ht===" \r "&&nt[Wt]=== `
` &&++Wt,Jn=Wt,++on}function de(){if(Wt<Kt){On?.();const ht=nt[Wt++];if(ht==='"'||ht==="'"&&Rt){const kt=g(ht);return Bn?.("literal",kt),kt}if(ht==="{")return Bn?.("symbol","{"),dt();if(ht==="[")return Bn?.("symbol","["),Ye();if(ht==="-"||ht==="."||l(ht)||Ge&&(ht==="+"||ht==="I"||ht==="N")){const kt=De();return Bn?.("literal",kt),kt}if(ht==="n")return We("null"),Bn?.("literal",null),null;if(ht==="t")return We("true"),Bn?.("literal",!0),!0;if(ht==="f")return We("false"),Bn?.("literal",!1),!1;--Wt,Bn?.();return}}function re(){let ht;if(Wt<Kt){On?.();const kt=nt[Wt++];if(kt==='"'||kt==="'"&&Rt){const it=g(kt);return Bn?.("literal",it),it}if(kt==="{")return Bn?.("symbol","{"),dt();if(kt==="[")return Bn?.("symbol","["),Ye();if(kt==="."||l(kt)){const it=De();return Bn?.("literal",it),it}if(Ge&&i.isIdentifierStart(kt)||kt===" \\ "&&nt[Wt]==="u"){const it=Wt-1;if(ht=Ze(),ht===void 0){Wt=it,Bn?.();return}return Bn?.("literal",ht),ht}--Wt,Bn?.();return}}function le(){o(nt)&&(On?.(),++Wt,Bn?.("bom"))}function me(){let ht;function kt(){ht||(ht=!0,--Wt,On(),++Wt)}function it(){ht&&(ht=!1,Bn("whitespace"))}for(;Wt<Kt;){const en=nt[Wt++];if(Ot(en))On&&kt(),Ne(en);else if(qt(en))On&&kt();else if(en==="/"&<&&(nt[Wt]==="/"||nt[Wt]==="*"))On&&(--Wt,it(),On(),++Wt),Te(nt[Wt++]==="*"),Bn?.("comment");else{--Wt;break}}Bn&&it()}function Te(ht){for(;Wt<Kt;){const kt=nt[Wt++];if(Ot(kt)){if(!ht){--Wt;return}Ne(kt)}else if(kt==="*"&&ht&&nt[Wt]==="/"){++Wt;return}}ht&&Kn("Unclosed multiline comment")}function We(ht){const kt=Wt;for(let it=1,en=ht.length;it<en;++it)(Wt>=Kt||ht[it]!==nt[Wt])&&(Wt=kt-1,Kn()),++Wt}function dt(){let ht={},kt=!1;for(;Wt<Kt;){me();const it=re();Le===!1&&C(ht,it)&&Kn( ` Duplicate key : "${it}" ` ),me(),On?.();let en=nt[Wt++];if(Bn?.("symbol",en),en==="}"&&it===void 0)return!It&&kt&&(--Wt,Kn("Trailing comma in object")),ht;if(en===":"&&it!==void 0){me(),In?.push(it);let Dn=de();if(In?.pop(),Dn===void 0&&Kn( ` No value found for key "${it}" ` ),typeof it!="string"&&(!Ge||typeof it!="number")&&Kn( ` Wrong key type : "${it}" ` ),St&&(it in S||S[it]!=null)||pt&&it==="__proto__"||(Pe&&(Dn=Pe(it,Dn)),Dn!==void 0&&(kt=!0,it==="__proto__"?ht=Object.assign(JSON.parse( ` { "__proto__" : $ { JSON . stringify ( Dn ) } } ` ),ht):ht[it]=Dn)),me(),On?.(),en=nt[Wt++],Bn?.("symbol",en),en!==","){if(en==="}")return ht;Kn()}}else--Wt,Kn()}Kn()}function Ye(){const ht=[];for(;Wt<Kt;){me(),In?.push(ht.length);let kt=de();In?.pop(),me(),On?.();const it=nt[Wt++];if(Bn?.("symbol",it),kt!==void 0&&(Pe&&(kt=Pe(String(ht.length),kt)),kt===void 0?(++ht.length,kt=!0):ht.push(kt)),it===",")kt===void 0&&Kn("Elisions are not supported");else{if(it==="]")return!It&&kt===void 0&&ht.length&&(--Wt,Kn("Trailing comma in array")),ht;--Wt,Kn()}}}function De(){--Wt;let ht=Wt,kt=nt[Wt++];const it=function(en){const Dn=nt.substr(ht,Wt-ht);let Mn;if(en?Mn=Number.parseInt(Dn.replace(/^0o?/,""),8):Mn=Number(Dn),Number.isNaN(Mn))--Wt,Kn( ` Bad numeric literal - "${nt.substr(ht,Wt-ht+1)}" ` );else if(!Ge&&!Dn.match(/^-?(0|[1-9][0-9]*)( \. [0-9]+)?(e[+-]?[0-9]+)? $ /i))--Wt,Kn( ` Non - json numeric literal - "${nt.substr(ht,Wt-ht+1)}" ` );else return Mn};if((kt==="-"||kt==="+"&&Ge)&&(kt=nt[Wt++]),kt==="N"&&Ge)return We("NaN"),Number.NaN;if(kt==="I"&&Ge)return We("Infinity"),it();if(kt>="1"&&kt<="9"){for(;Wt<Kt&&l(nt[Wt]);)++Wt;kt=nt[Wt++]}if(kt==="0"){kt=nt[Wt++];const en=kt==="o"||kt==="O"||a(kt),Dn=kt==="x"||kt==="X";if(Ge&&(en||Dn)){for(;Wt<Kt&&(Dn?r:a)(nt[Wt]);)++Wt;let Mn=1;return nt[ht]==="-"?(Mn=-1,++ht):nt[ht]==="+"&&++ht,Mn*it(en)}}if(kt==="."){for(;Wt<Kt&&l(nt[Wt]);)++Wt;kt=nt[Wt++]}if(kt==="e"||kt==="E"){for(kt=nt[Wt++],(kt==="-"||kt==="+")&&++Wt;Wt<Kt&&l(nt[Wt]);)++Wt;kt=nt[Wt++]}return--Wt,it()}function Ze(){--Wt;let ht="";for(;Wt<Kt;){let kt=nt[Wt++];if(kt===" \\ "&&nt[Wt]==="u"&&r(nt[Wt+1])&&r(nt[Wt+2])&&r(nt[Wt+3])&&r(nt[Wt+4])&&(kt=String.fromCharCode(Number.parseInt(nt.substr(Wt+1,4),16)),Wt+=5),ht.length)if(i.isIdentifierPart(kt))ht+=kt;else return--Wt,ht;else if(i.isIdentifierStart(kt))ht+=kt;else return}Kn()}function g(ht){let kt="";for(;Wt<Kt;){let it=nt[Wt++];if(it===ht)return kt;if(it===" \\ ")if(Wt>=Kt&&Kn(),it=nt[Wt++],m[it]&&(Ge||it!=="v"&&(it!=="'"||Rt)))kt+=m[it];else if(Ge&&Ot(it))Ne(it);else if(it==="u"||it==="x"&&Ge){const en=it==="u"?4:2;for(let Dn=0;Dn<en;++Dn)Wt>=Kt&&Kn(),r(nt[Wt])||Kn("Bad escape sequence"),Wt++;kt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),16))}else if(Ge&&a(it)){let en;it<"4"&&a(nt[Wt])&&a(nt[Wt+1])?en=3:a(nt[Wt])?en=2:en=1,Wt+=en-1,kt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),8))}else Ge?kt+=it:(--Wt,Kn());else Ot(it)?Kn():(!Ge&&it.charCodeAt(0)<32&&(--Wt,Kn("Unexpected control character")),kt+=it)}Kn()}tt&&le(),me();let gt=de();if(gt!==void 0||Wt<Kt){if(me(),Wt>=Kt)return Pe&&(gt=Pe("",gt)),Re? $ n:gt;Kn()}else Kn(Wt?"No data, only a whitespace":"No data, empty input")}function U(nt,be){return typeof be=="function"?be={reviver:be}:be||(be={}),O(nt,be)}function K(nt,be){be||(be={});const Ge=be.tokenize;be.tokenize=!0;const
Line truncated
` ,r:" \r ",t:" ",v:" \v ","/":"/"},C=Object.hasOwn,S={};function O(nt,be){(typeof nt!="string"||!(nt instanceof String))&&(nt=String(nt));const N e=be.mode==="json5",tt=be.ignoreBOM,lt=be.ignoreComments||be.mode==="cjson"||N e,It=be.ignoreTrailingCommas||N e,pt=be.ignoreProtoKey,St=be.ignorePrototypeKeys,Rt=be.allowSingleQuotedStrings||N e,Le=be.allowDuplicateObjectKeys,Pe=be.reviver,Re=be.tokenize,He=be.rawTokens,bt=be.tokenLocations,vt=be.tokenPaths,Ot=N e?i.isLineTerminator:i.isLineTerminatorJSON,qt=N e?i.isWhiteSpace:i.isWhiteSpaceJSON,Kt=nt.length;let on=0,Jn=0,Wt=0;const $ n=[];let On,Bn,In;if(Re){let ht=null,kt,it;On=function(){if(ht!==null)throw Error("internal error, token overlap");kt=on+1,it=Wt-Jn+1,ht=Wt},Bn=function(en,Dn){if(ht!==Wt){const Mn={type:en};He&&(Mn.raw=nt.substr(ht,Wt-ht)),Dn!==void 0&&(Mn.value=Dn),bt&&(Mn.location={start:{column:it,line:kt,offset:ht}}),vt&&(Mn.path=In.slice()), $ n.push(Mn)}return ht=null,Dn},vt&&(In=[])}function Bi(){let ht;return Wt<Kt?ht= ` Unexpected token $ { JSON . stringify ( nt [ Wt ] ) } ` :ht="Unexpected end of input",ht}function ei(ht){const kt=Wt-Jn+1;++on;const it=Me(ht,nt,Wt,on,kt),en=SyntaxError(it.message);return en.reason=ht,en.excerpt=it.excerpt,en.pointer=it.pointer,en.location={start:{column:kt,line:on,offset:Wt}},en}function Kn(ht){throw ht||(ht=Bi()),ei(ht)}function G e(ht){ht===" \r "&&nt[Wt]=== `
` &&++Wt,Jn=Wt,++on}function de(){if(Wt<Kt){On?.();const ht=nt[Wt++];if(ht==='"'||ht==="'"&&Rt){const kt=g(ht);return Bn?.("literal",kt),kt}if(ht==="{")return Bn?.("symbol","{"),dt();if(ht==="[")return Bn?.("symbol","["),Ye();if(ht==="-"||ht==="."||l(ht)||Ne&&(ht==="+"||ht==="I"||ht==="N")){const kt=De();return Bn?.("literal",kt),kt}if(ht==="n")return We("null"),Bn?.("literal",null),null;if(ht==="t")return We("true"),Bn?.("literal",!0),!0;if(ht==="f")return We("false"),Bn?.("literal",!1),!1;--Wt,Bn?.();return}}function re(){let ht;if(Wt<Kt){On?.();const kt=nt[Wt++];if(kt==='"'||kt==="'"&&Rt){const it=g(kt);return Bn?.("literal",it),it}if(kt==="{")return Bn?.("symbol","{"),dt();if(kt==="[")return Bn?.("symbol","["),Ye();if(kt==="."||l(kt)){const it=De();return Bn?.("literal",it),it}if(Ne&&i.isIdentifierStart(kt)||kt===" \\ "&&nt[Wt]==="u"){const it=Wt-1;if(ht=Ze(),ht===void 0){Wt=it,Bn?.();return}return Bn?.("literal",ht),ht}--Wt,Bn?.();return}}function le(){o(nt)&&(On?.(),++Wt,Bn?.("bom"))}function me(){let ht;function kt(){ht||(ht=!0,--Wt,On(),++Wt)}function it(){ht&&(ht=!1,Bn("whitespace"))}for(;Wt<Kt;){const en=nt[Wt++];if(Ot(en))On&&kt(),Ge(en);else if(qt(en))On&&kt();else if(en==="/"&<&&(nt[Wt]==="/"||nt[Wt]==="*"))On&&(--Wt,it(),On(),++Wt),Te(nt[Wt++]==="*"),Bn?.("comment");else{--Wt;break}}Bn&&it()}function Te(ht){for(;Wt<Kt;){const kt=nt[Wt++];if(Ot(kt)){if(!ht){--Wt;return}Ge(kt)}else if(kt==="*"&&ht&&nt[Wt]==="/"){++Wt;return}}ht&&Kn("Unclosed multiline comment")}function We(ht){const kt=Wt;for(let it=1,en=ht.length;it<en;++it)(Wt>=Kt||ht[it]!==nt[Wt])&&(Wt=kt-1,Kn()),++Wt}function dt(){let ht={},kt=!1;for(;Wt<Kt;){me();const it=re();Le===!1&&C(ht,it)&&Kn( ` Duplicate key : "${it}" ` ),me(),On?.();let en=nt[Wt++];if(Bn?.("symbol",en),en==="}"&&it===void 0)return!It&&kt&&(--Wt,Kn("Trailing comma in object")),ht;if(en===":"&&it!==void 0){me(),In?.push(it);let Dn=de();if(In?.pop(),Dn===void 0&&Kn( ` No value found for key "${it}" ` ),typeof it!="string"&&(!Ne||typeof it!="number")&&Kn( ` Wrong key type : "${it}" ` ),St&&(it in S||S[it]!=null)||pt&&it==="__proto__"||(Pe&&(Dn=Pe(it,Dn)),Dn!==void 0&&(kt=!0,it==="__proto__"?ht=Object.assign(JSON.parse( ` { "__proto__" : $ { JSON . stringify ( Dn ) } } ` ),ht):ht[it]=Dn)),me(),On?.(),en=nt[Wt++],Bn?.("symbol",en),en!==","){if(en==="}")return ht;Kn()}}else--Wt,Kn()}Kn()}function Ye(){const ht=[];for(;Wt<Kt;){me(),In?.push(ht.length);let kt=de();In?.pop(),me(),On?.();const it=nt[Wt++];if(Bn?.("symbol",it),kt!==void 0&&(Pe&&(kt=Pe(String(ht.length),kt)),kt===void 0?(++ht.length,kt=!0):ht.push(kt)),it===",")kt===void 0&&Kn("Elisions are not supported");else{if(it==="]")return!It&&kt===void 0&&ht.length&&(--Wt,Kn("Trailing comma in array")),ht;--Wt,Kn()}}}function De(){--Wt;let ht=Wt,kt=nt[Wt++];const it=function(en){const Dn=nt.substr(ht,Wt-ht);let Mn;if(en?Mn=Number.parseInt(Dn.replace(/^0o?/,""),8):Mn=Number(Dn),Number.isNaN(Mn))--Wt,Kn( ` Bad numeric literal - "${nt.substr(ht,Wt-ht+1)}" ` );else if(!Ne&&!Dn.match(/^-?(0|[1-9][0-9]*)( \. [0-9]+)?(e[+-]?[0-9]+)? $ /i))--Wt,Kn( ` Non - json numeric literal - "${nt.substr(ht,Wt-ht+1)}" ` );else return Mn};if((kt==="-"||kt==="+"&&Ne)&&(kt=nt[Wt++]),kt==="N"&&Ne)return We("NaN"),Number.NaN;if(kt==="I"&&Ne)return We("Infinity"),it();if(kt>="1"&&kt<="9"){for(;Wt<Kt&&l(nt[Wt]);)++Wt;kt=nt[Wt++]}if(kt==="0"){kt=nt[Wt++];const en=kt==="o"||kt==="O"||a(kt),Dn=kt==="x"||kt==="X";if(Ne&&(en||Dn)){for(;Wt<Kt&&(Dn?r:a)(nt[Wt]);)++Wt;let Mn=1;return nt[ht]==="-"?(Mn=-1,++ht):nt[ht]==="+"&&++ht,Mn*it(en)}}if(kt==="."){for(;Wt<Kt&&l(nt[Wt]);)++Wt;kt=nt[Wt++]}if(kt==="e"||kt==="E"){for(kt=nt[Wt++],(kt==="-"||kt==="+")&&++Wt;Wt<Kt&&l(nt[Wt]);)++Wt;kt=nt[Wt++]}return--Wt,it()}function Ze(){--Wt;let ht="";for(;Wt<Kt;){let kt=nt[Wt++];if(kt===" \\ "&&nt[Wt]==="u"&&r(nt[Wt+1])&&r(nt[Wt+2])&&r(nt[Wt+3])&&r(nt[Wt+4])&&(kt=String.fromCharCode(Number.parseInt(nt.substr(Wt+1,4),16)),Wt+=5),ht.length)if(i.isIdentifierPart(kt))ht+=kt;else return--Wt,ht;else if(i.isIdentifierStart(kt))ht+=kt;else return}Kn()}function g(ht){let kt="";for(;Wt<Kt;){let it=nt[Wt++];if(it===ht)return kt;if(it===" \\ ")if(Wt>=Kt&&Kn(),it=nt[Wt++],m[it]&&(Ne||it!=="v"&&(it!=="'"||Rt)))kt+=m[it];else if(Ne&&Ot(it))Ge(it);else if(it==="u"||it==="x"&&Ne){const en=it==="u"?4:2;for(let Dn=0;Dn<en;++Dn)Wt>=Kt&&Kn(),r(nt[Wt])||Kn("Bad escape sequence"),Wt++;kt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),16))}else if(Ne&&a(it)){let en;it<"4"&&a(nt[Wt])&&a(nt[Wt+1])?en=3:a(nt[Wt])?en=2:en=1,Wt+=en-1,kt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),8))}else Ne?kt+=it:(--Wt,Kn());else Ot(it)?Kn():(!Ne&&it.charCodeAt(0)<32&&(--Wt,Kn("Unexpected control character")),kt+=it)}Kn()}tt&&le(),me();let gt=de();if(gt!==void 0||Wt<Kt){if(me(),Wt>=Kt)return Pe&&(gt=Pe("",gt)),Re? $ n:gt;Kn()}else Kn(Wt?"No data, only a whitespace":"No data, empty input")}function U(nt,be){return typeof be=="function"?be={reviver:be}:be||(be={}),O(nt,be)}function K(nt,be){be||(be={});const Ne=be.tokenize;be.tokenize=!0;const
Line truncated
$ { pt }
$ { Rt }
$ { nt } ` ):St= ` Parse error in JSON input :
$ { pt }
$ { nt } ` ,{message:St,excerpt:pt,pointer:Rt}}function Be(nt,be){let Ge=W(be);const tt=ce(nt,Ge)||ge(nt,Ge)||ye(nt,Ge);let lt,It,pt;tt?(lt=tt.offset,It=tt.line,pt=tt.column,Ge=tt.reason):lt=0,be.reason=Ge;const St=Me(Ge,nt,lt,It,pt);return be.message=St.message,be.excerpt=St.excerpt,St.pointer&&(be.pointer=St.pointer,be.location={start:{column:pt,line:It,offset:lt}}),be}function we(nt,be){try{return JSON.parse(nt,be)}catch(Ge){const tt=Be(nt,Ge);if(Ge.location)throw tt;return U(nt,be)}}const qe=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function ze(nt){return nt.ignoreBOM||nt.ignoreComments||nt.ignoreTrailingCommas||nt.allowSingleQuotedStrings||nt.allowDuplicateObjectKeys===!1||nt.ignoreProtoKey||nt.ignorePrototypeKeys||nt.mode==="cjson"||nt.mode==="json5"||qe||xe}function ot(nt){if(typeof nt=="function")return nt;if(nt)return nt.reviver}function yt(nt,be){return be||(be={}),ze(be)?U(nt,be):we(nt,ot(be))}t.parse=yt,t.tokenize=K,t.pathToPointer=j,t.pointerToPath=ee,t.parseNative=we,t.parseCustom=U,t.getErrorTexts=Me,Object.defineProperty(t,"__esModule",{value:!0})})}(FC,FC.exports)),FC.exports}var ile=nle(),Ux={exports:{}},rle=Ux.exports,Ck;function ole(){return Ck||(Ck=1,function(n,e){(function(t,i){n.exports=i()})(rle,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function i(Pe,Re){return Re={exports:{}},Pe(Re,Re.exports),Re.exports}var r=i(function(Pe){function Re(){var He=0,bt=1,vt=2,Ot=3,qt=4,Kt=5,on=6,Jn=7,Wt=8, $ n=9,On=10,Bn=11,In=12,Bi=13,ei=14,Kn=15,Ne=16,de=17,re=0,le=1,me=2,Te=3,We=4;function dt(g,gt){return 55296<=g.charCodeAt(gt)&&g.charCodeAt(gt)<=56319&&56320<=g.charCodeAt(gt+1)&&g.charCodeAt(gt+1)<=57343}function Ye(g,gt){gt===void 0&&(gt=0);var ht=g.charCodeAt(gt);if(55296<=ht&&ht<=56319&><g.length-1){var kt=ht,it=g.charCodeAt(gt+1);return 56320<=it&&it<=57343?(kt-55296)*1024+(it-56320)+65536:kt}if(56320<=ht&&ht<=57343&>>=1){var kt=g.charCodeAt(gt-1),it=ht;return 55296<=kt&&kt<=56319?(kt-55296)*1024+(it-56320)+65536:it}return ht}function De(g,gt,ht){var kt=[g].concat(gt).concat([ht]),it=kt[kt.length-2],en=ht,Dn=kt.lastIndexOf(ei);if(Dn>1&&kt.slice(1,Dn).every(function(Wn){return Wn==Ot})&&[Ot,Bi,de].indexOf(g)==-1)return me;var Mn=kt.lastIndexOf(qt);if(Mn>0&&kt.slice(1,Mn).every(function(Wn){return Wn==qt})&&[In,qt].indexOf(it)==-1)return kt.filter(function(Wn){return Wn==qt}).length%2==1?Te:We;if(it==He&&en==bt)return re;if(it==vt||it==He||it==bt)return en==ei&>.every(function(Wn){return Wn==Ot})?me:le;if(en==vt||en==He||en==bt)return le;if(it==on&&(en==on||en==Jn||en== $ n||en==On))return re;if((it== $ n||it==Jn)&&(en==Jn||en==Wt))return re;if((it==On||it==Wt)&&en==Wt)return re;if(en==Ot||en==Kn)return re;if(en==Kt)return re;if(it==In)return re;var ii=kt.indexOf(Ot)!=-1?kt.lastIndexOf(Ot)-1:kt.length-2;return[Bi,de].indexOf(kt[ii])!=-1&&kt.slice(ii+1,-1).every(function(Wn){return Wn==Ot})&&en==ei||it==Kn&&[Ne,de].indexOf(en)!=-1?re:gt.indexOf(qt)!=-1?me:it==qt&&en==qt?re:le}this.nextBreak=function(g,gt){if(gt===void 0&&(gt=0),gt<0)return 0;if(gt>=g.length-1)return g.length;for(var ht=Ze(Ye(g,gt)),kt=[],it=gt+1;it<g.length;it++)if(!dt(g,it-1)){var en=Ze(Ye(g,it));if(De(ht,kt,en))return it;kt.push(en)}return g.length},this.splitGraphemes=function(g){for(var gt=[],ht=0,kt;(kt=this.nextBreak(g,ht))<g.length;)gt.push(g.slice(ht,kt)),ht=kt;return ht<g.length&>.push(g.slice(ht)),gt},this.iterateGraphemes=function(g){var gt=0,ht={next:(function(){var kt,it;return(it=this.nextBreak(g,gt))<g.length?(kt=g.slice(gt,it),gt=it,{value:kt,done:!1}):gt<g.length?(kt=g.slice(gt),gt=g.length,{value:kt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(ht[Symbol.iterator]=function(){return ht}),ht},this.countGraphemes=function(g){for(var gt=0,ht=0,kt;(kt=this.nextBreak(g,ht))<g.length;)ht=kt,gt++;return ht<g.length&>++,gt};function Ze(g){return 1536<=g&&g<=1541||g==1757||g==1807||g==2274||g==3406||g==69821||70082<=g&&g<=70083||g==72250||72326<=g&&g<=72329||g==73030?In:g==13?He:g==10?bt:0<=g&&g<=9||11<=g&&g<=12||14<=g&&g<=31||127<=g&&g<=159||g==173||g==1564||g==6158||g==8203||8206<=g&&g<=8207||g==8232||g==8233||8234<=g&&g<=8238||8288<=g&&g<=8292||g==8293||8294<=g&&g<=8303||55296<=g&&g<=57343||g==65279||65520<=g&&g<=65528||65529<=g&&g<=65531||113824<=g&&g<=113827||119155<=g&&g<=119162||g==917504||g==917505||917506<=g&&g<=917535||917632<=g&&g<=917759||918e3<=g&&g<=921599?vt:768<=g&&g<=879||1155<=g&&g<=1159||1160<=g&&g<=1161||1425<=g&&g<=1469||g==1471||1473<=g&&g<=1474||1476<=g&&g<=1477||g==1479||1552<=g&&g<=1562||1611<=g&&g<=1631||g==1648||1750<=g&&g<=1756||1759<=g&&g<=1764||1767<=g&&g<=1768||1770<=g&&g<=1773||g==1809||1840<=g&&g<=1866||1958<=g&&g<=1968||2027<=g&&g<=2035||2070<=g&&g<=2073||2075<=g&&g<=2083||2085<=g&&g<=2087||2089<=g&&g<=2093||2137<=g&&g<=2139||2260<=g&&g<=2273||2275<=g&&g<=2306||g==2362||g==2364||2369<=g&&g<
Line truncated
` )}var Wt={extraLines:2,tabSize:4}, $ n=function(Bn,In,Bi,ei){ei=Kt({},Wt,ei);var Kn=Bn.split(/ \r \n ?| \n | \f /),N e=Math.max(1,In-ei.extraLines)-1,de=Math.min(In+ei.extraLines,Kn.length),re=String(de).length,le=Jn(Kn,N e,In,re,ei),me=on(Kn[In-1].substring(0,Bi-1),In,re,ei),Te=vt(" ",me.length)+"^",We=Jn(Kn,In,de,re,ei);return[le,Te,We].filter(Boolean).join( `
$ { nt } ` ,{message:St,excerpt:pt,pointer:Rt}}function Be(nt,be){let Ne=W(be);const tt=ue(nt,Ne)||ge(nt,Ne)||ye(nt,Ne);let lt,It,pt;tt?(lt=tt.offset,It=tt.line,pt=tt.column,Ne=tt.reason):lt=0,be.reason=Ne;const St=Me(Ne,nt,lt,It,pt);return be.message=St.message,be.excerpt=St.excerpt,St.pointer&&(be.pointer=St.pointer,be.location={start:{column:pt,line:It,offset:lt}}),be}function we(nt,be){try{return JSON.parse(nt,be)}catch(Ne){const tt=Be(nt,Ne);if(Ne.location)throw tt;return U(nt,be)}}const qe=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function ze(nt){return nt.ignoreBOM||nt.ignoreComments||nt.ignoreTrailingCommas||nt.allowSingleQuotedStrings||nt.allowDuplicateObjectKeys===!1||nt.ignoreProtoKey||nt.ignorePrototypeKeys||nt.mode==="cjson"||nt.mode==="json5"||qe||xe}function ot(nt){if(typeof nt=="function")return nt;if(nt)return nt.reviver}function yt(nt,be){return be||(be={}),ze(be)?U(nt,be):we(nt,ot(be))}t.parse=yt,t.tokenize=K,t.pathToPointer=j,t.pointerToPath=ee,t.parseNative=we,t.parseCustom=U,t.getErrorTexts=Me,Object.defineProperty(t,"__esModule",{value:!0})})}(FC,FC.exports)),FC.exports}var Qse=Wse(),Tx={exports:{}},Yse=Tx.exports,fk;function qse(){return fk||(fk=1,function(n,e){(function(t,i){n.exports=i()})(Yse,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function i(Pe,Re){return Re={exports:{}},Pe(Re,Re.exports),Re.exports}var r=i(function(Pe){function Re(){var He=0,bt=1,vt=2,Ot=3,qt=4,Kt=5,on=6,Jn=7,Wt=8, $ n=9,On=10,Bn=11,In=12,Bi=13,ei=14,Kn=15,Ge=16,de=17,re=0,le=1,me=2,Te=3,We=4;function dt(g,gt){return 55296<=g.charCodeAt(gt)&&g.charCodeAt(gt)<=56319&&56320<=g.charCodeAt(gt+1)&&g.charCodeAt(gt+1)<=57343}function Ye(g,gt){gt===void 0&&(gt=0);var ht=g.charCodeAt(gt);if(55296<=ht&&ht<=56319&><g.length-1){var kt=ht,it=g.charCodeAt(gt+1);return 56320<=it&&it<=57343?(kt-55296)*1024+(it-56320)+65536:kt}if(56320<=ht&&ht<=57343&>>=1){var kt=g.charCodeAt(gt-1),it=ht;return 55296<=kt&&kt<=56319?(kt-55296)*1024+(it-56320)+65536:it}return ht}function De(g,gt,ht){var kt=[g].concat(gt).concat([ht]),it=kt[kt.length-2],en=ht,Dn=kt.lastIndexOf(ei);if(Dn>1&&kt.slice(1,Dn).every(function(Wn){return Wn==Ot})&&[Ot,Bi,de].indexOf(g)==-1)return me;var Mn=kt.lastIndexOf(qt);if(Mn>0&&kt.slice(1,Mn).every(function(Wn){return Wn==qt})&&[In,qt].indexOf(it)==-1)return kt.filter(function(Wn){return Wn==qt}).length%2==1?Te:We;if(it==He&&en==bt)return re;if(it==vt||it==He||it==bt)return en==ei&>.every(function(Wn){return Wn==Ot})?me:le;if(en==vt||en==He||en==bt)return le;if(it==on&&(en==on||en==Jn||en== $ n||en==On))return re;if((it== $ n||it==Jn)&&(en==Jn||en==Wt))return re;if((it==On||it==Wt)&&en==Wt)return re;if(en==Ot||en==Kn)return re;if(en==Kt)return re;if(it==In)return re;var ii=kt.indexOf(Ot)!=-1?kt.lastIndexOf(Ot)-1:kt.length-2;return[Bi,de].indexOf(kt[ii])!=-1&&kt.slice(ii+1,-1).every(function(Wn){return Wn==Ot})&&en==ei||it==Kn&&[Ge,de].indexOf(en)!=-1?re:gt.indexOf(qt)!=-1?me:it==qt&&en==qt?re:le}this.nextBreak=function(g,gt){if(gt===void 0&&(gt=0),gt<0)return 0;if(gt>=g.length-1)return g.length;for(var ht=Ze(Ye(g,gt)),kt=[],it=gt+1;it<g.length;it++)if(!dt(g,it-1)){var en=Ze(Ye(g,it));if(De(ht,kt,en))return it;kt.push(en)}return g.length},this.splitGraphemes=function(g){for(var gt=[],ht=0,kt;(kt=this.nextBreak(g,ht))<g.length;)gt.push(g.slice(ht,kt)),ht=kt;return ht<g.length&>.push(g.slice(ht)),gt},this.iterateGraphemes=function(g){var gt=0,ht={next:(function(){var kt,it;return(it=this.nextBreak(g,gt))<g.length?(kt=g.slice(gt,it),gt=it,{value:kt,done:!1}):gt<g.length?(kt=g.slice(gt),gt=g.length,{value:kt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(ht[Symbol.iterator]=function(){return ht}),ht},this.countGraphemes=function(g){for(var gt=0,ht=0,kt;(kt=this.nextBreak(g,ht))<g.length;)ht=kt,gt++;return ht<g.length&>++,gt};function Ze(g){return 1536<=g&&g<=1541||g==1757||g==1807||g==2274||g==3406||g==69821||70082<=g&&g<=70083||g==72250||72326<=g&&g<=72329||g==73030?In:g==13?He:g==10?bt:0<=g&&g<=9||11<=g&&g<=12||14<=g&&g<=31||127<=g&&g<=159||g==173||g==1564||g==6158||g==8203||8206<=g&&g<=8207||g==8232||g==8233||8234<=g&&g<=8238||8288<=g&&g<=8292||g==8293||8294<=g&&g<=8303||55296<=g&&g<=57343||g==65279||65520<=g&&g<=65528||65529<=g&&g<=65531||113824<=g&&g<=113827||119155<=g&&g<=119162||g==917504||g==917505||917506<=g&&g<=917535||917632<=g&&g<=917759||918e3<=g&&g<=921599?vt:768<=g&&g<=879||1155<=g&&g<=1159||1160<=g&&g<=1161||1425<=g&&g<=1469||g==1471||1473<=g&&g<=1474||1476<=g&&g<=1477||g==1479||1552<=g&&g<=1562||1611<=g&&g<=1631||g==1648||1750<=g&&g<=1756||1759<=g&&g<=1764||1767<=g&&g<=1768||1770<=g&&g<=1773||g==1809||1840<=g&&g<=1866||1958<=g&&g<=1968||2027<=g&&g<=2035||2070<=g&&g<=2073||2075<=g&&g<=2083||2085<=g&&g<=2087||2089<=g&&g<=2093||2137<=g&&g<=2139||2260<=g&&g<=2273||2275<=g&&g<=2306||g==2362||g==2364||2369<=g&&g<
Line truncated
` )}var Wt={extraLines:2,tabSize:4}, $ n=function(Bn,In,Bi,ei){ei=Kt({},Wt,ei);var Kn=Bn.split(/ \r \n ?| \n | \f /),G e=Math.max(1,In-ei.extraLines)-1,de=Math.min(In+ei.extraLines,Kn.length),re=String(de).length,le=Jn(Kn,G e,In,re,ei),me=on(Kn[In-1].substring(0,Bi-1),In,re,ei),Te=vt(" ",me.length)+"^",We=Jn(Kn,In,de,re,ei);return[le,Te,We].filter(Boolean).join( `
` )};return $ n})}),C=new Error().stack,S=function(Pe){var Re=Object.create(SyntaxError.prototype);return Object.assign(Re,Pe,{name:"SyntaxError"}),Object.defineProperty(Re,"stack",{get:function(){return C?C.replace(/^(.+ \n ){1,3}/,String(Re)+ `
` ):""}}),Re},O=function(Pe,Re,He,bt,vt){throw S({message:bt?Pe+ `
` +m(Re,bt,vt):Pe,rawMessage:Pe,source:He,line:bt,column:vt})},U={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Re){for(var He=arguments.length,bt=Array(He>1?He-1:0),vt=1;vt<He;vt++)bt[vt-1]=arguments[vt];return"Unexpected token <"+Re+"> at "+bt.filter(Boolean).join(":")}},K={unexpectedSymbol:function(Re){for(var He=arguments.length,bt=Array(He>1?He-1:0),vt=1;vt<He;vt++)bt[vt-1]=arguments[vt];return"Unexpected symbol <"+Re+"> at "+bt.filter(Boolean).join(":")}},z={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},j={"{":z.LEFT_BRACE,"}":z.RIGHT_BRACE,"[":z.LEFT_BRACKET,"]":z.RIGHT_BRACKET,":":z.COLON,",":z.COMMA},Q={true:z.TRUE,false:z.FALSE,null:z.NULL},ee={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},V={'"':0," \\ ":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},ae={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ne(Pe){return Pe>="1"&&Pe<="9"}function Z(Pe){return Pe>="0"&&Pe<="9"}function oe(Pe){return Z(Pe)||Pe>="a"&&Pe<="f"||Pe>="A"&&Pe<="F"}function W(Pe){return Pe==="e"||Pe==="E"}function c e(Pe,Re,He,bt){var vt=Pe.charAt(Re);if(vt===" \r ")Re++,He++,bt=1,Pe.charAt(Re)=== `
` +m(Re,bt,vt):Pe,rawMessage:Pe,source:He,line:bt,column:vt})},U={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Re){for(var He=arguments.length,bt=Array(He>1?He-1:0),vt=1;vt<He;vt++)bt[vt-1]=arguments[vt];return"Unexpected token <"+Re+"> at "+bt.filter(Boolean).join(":")}},K={unexpectedSymbol:function(Re){for(var He=arguments.length,bt=Array(He>1?He-1:0),vt=1;vt<He;vt++)bt[vt-1]=arguments[vt];return"Unexpected symbol <"+Re+"> at "+bt.filter(Boolean).join(":")}},z={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},j={"{":z.LEFT_BRACE,"}":z.RIGHT_BRACE,"[":z.LEFT_BRACKET,"]":z.RIGHT_BRACKET,":":z.COLON,",":z.COMMA},Q={true:z.TRUE,false:z.FALSE,null:z.NULL},ee={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},V={'"':0," \\ ":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},ae={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ne(Pe){return Pe>="1"&&Pe<="9"}function Z(Pe){return Pe>="0"&&Pe<="9"}function oe(Pe){return Z(Pe)||Pe>="a"&&Pe<="f"||Pe>="A"&&Pe<="F"}function W(Pe){return Pe==="e"||Pe==="E"}function u e(Pe,Re,He,bt){var vt=Pe.charAt(Re);if(vt===" \r ")Re++,He++,bt=1,Pe.charAt(Re)=== `
` &&Re++;else if(vt=== `
` )Re++,He++,bt=1;else if(vt===" "||vt===" ")Re++,bt++;else return null;return{index:Re,line:He,column:bt}}function ge(Pe,Re,He,bt){var vt=Pe.charAt(Re);return vt in j?{type:j[vt],line:He,column:bt+1,index:Re+1,value:null}:null}function ye(Pe,Re,He,bt){for(var vt in Q)if(Q.hasOwnProperty(vt)&&Pe.substr(Re,vt.length)===vt)return{type:Q[vt],line:He,column:bt+vt.length,index:Re+vt.length,value:vt};return null}function Me(Pe,Re,He,bt){for(var vt=Re,Ot=ee._START_;Re<Pe.length;){var qt=Pe.charAt(Re);switch(Ot){case ee._START_:{if(qt==='"')Re++,Ot=ee.START_QUOTE_OR_CHAR;else return null;break}case ee.START_QUOTE_OR_CHAR:{if(qt===" \\ ")Re++,Ot=ee.ESCAPE;else{if(qt==='"')return Re++,{type:z.STRING,line:He,column:bt+Re-vt,index:Re,value:Pe.slice(vt,Re)};Re++}break}case ee.ESCAPE:{if(qt in V){if(Re++,qt==="u")for(var Kt=0;Kt<4;Kt++){var on=Pe.charAt(Re);if(on&&oe(on))Re++;else return null}Ot=ee.START_QUOTE_OR_CHAR}else return null;break}}}}function Be(Pe,Re,He,bt){var vt=Re,Ot=Re,qt=ae._START_;e:for(;Re<Pe.length;){var Kt=Pe.charAt(Re);switch(qt){case ae._START_:{if(Kt==="-")qt=ae.MINUS;else if(Kt==="0")Ot=Re+1,qt=ae.ZERO;else if(ne(Kt))Ot=Re+1,qt=ae.DIGIT;else return null;break}case ae.MINUS:{if(Kt==="0")Ot=Re+1,qt=ae.ZERO;else if(ne(Kt))Ot=Re+1,qt=ae.DIGIT;else return null;break}case ae.ZERO:{if(Kt===".")qt=ae.POINT;else if(W(Kt))qt=ae.EXP;else break e;break}case ae.DIGIT:{if(Z(Kt))Ot=Re+1;else if(Kt===".")qt=ae.POINT;else if(W(Kt))qt=ae.EXP;else break e;break}case ae.POINT:{if(Z(Kt))Ot=Re+1,qt=ae.DIGIT_FRACTION;else break e;break}case ae.DIGIT_FRACTION:{if(Z(Kt))Ot=Re+1;else if(W(Kt))qt=ae.EXP;else break e;break}case ae.EXP:{if(Kt==="+"||Kt==="-")qt=ae.EXP_DIGIT_OR_SIGN;else if(Z(Kt))Ot=Re+1,qt=ae.EXP_DIGIT_OR_SIGN;else break e;break}case ae.EXP_DIGIT_OR_SIGN:{if(Z(Kt))Ot=Re+1;else break e;break}}Re++}return Ot>0?{type:z.NUMBER,line:He,column:bt+Ot-vt,index:Ot,value:Pe.slice(vt,Ot)}:null}var we=function(Re,He){for(var bt=1,vt=1,Ot=0,qt=[];Ot<Re.length;){var Kt=[Re,Ot,bt,vt],on=c e.apply(void 0,Kt);if(on){Ot=on.index,bt=on.line,vt=on.column;continue}var Jn=ge.apply(void 0,Kt)||ye.apply(void 0,Kt)||Me.apply(void 0,Kt)||Be.apply(void 0,Kt);if(Jn){var Wt={type:Jn.type,value:Jn.value,loc:o(bt,vt,Ot,Jn.line,Jn.column,Jn.index,He.source)};qt.push(Wt),Ot=Jn.index,bt=Jn.line,vt=Jn.column}else O(K.unexpectedSymbol(l(Re,Ot,Ot+1),He.source,bt,vt),Re,He.source,bt,vt)}return qt},qe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},ze={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ot={loc:!0,source:null};function yt(Pe,Re,He){var bt=Re.length>0?Re[Re.length-1].loc.end:{line:1,column:1};O(U.unexpectedEnd(),Pe,He.source,bt.line,bt.column)}function nt(Pe){for(var Re=0,He=0;He<4;He++)Re=Re*16+parseInt(Pe[He],16);return String.fromCharCode(Re)}var be={b:" \b ",f:" \f ",n: `
` ,r:" \r ",t:" "},Ge=['"'," \\ ","/"];function tt(Pe){for(var Re="",He=0;He<Pe.length;He++){var bt=Pe.charAt(He);if(bt===" \\ "){He++;var vt=Pe.charAt(He);if(vt==="u")Re+=nt(Pe.substr(He+1,4)),He+=4;else if(Ge.indexOf(vt)!==-1)Re+=vt;else if(vt in be)Re+=be[vt];else break}else Re+=bt}return Re}function lt(Pe,Re,He,bt){for(var vt=void 0,Ot={type:"Object",children:[]},qt=qe._START_;He<Re.length;){var Kt=Re[He];switch(qt){case qe._START_:{if(Kt.type===z.LEFT_BRACE)vt=Kt,qt=qe.OPEN_OBJECT,He++;else return null;break}case qe.OPEN_OBJECT:{if(Kt.type===z.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=It(Pe,Re,He,bt);Ot.children.push(on.value),qt=qe.PROPERTY,He=on.index;break}case qe.PROPERTY:{if(Kt.type===z.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===z.COMMA?(qt=qe.COMMA,He++):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case qe.COMMA:{var Jn=It(Pe,Re,He,bt);Jn?(He=Jn.index,Ot.children.push(Jn.value),qt=qe.PROPERTY):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}}}yt(Pe,Re,bt)}function It(Pe,Re,He,bt){for(var vt=void 0,Ot={type:"Property",key:null,value:null},qt=xe._START_;He<Re.length;){var Kt=Re[He];switch(qt){case xe._START_:{if(Kt.type===z.STRING){var on={type:"Identifier",value:tt(Pe.slice(Kt.loc.start.offset+1,Kt.loc.end.offset-1)),raw:Kt.value};bt.loc&&(on.loc=Kt.loc),vt=Kt,Ot.key=on,qt=xe.KEY,He++}else return null;break}case xe.KEY:{Kt.type===z.COLON?(qt=xe.COLON,He++):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case xe.COLON:{var Jn=Rt(Pe,Re,He,bt);return Ot.value=Jn.value,bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Jn.value.loc.end.line,Jn.value.loc.end.column,Jn.value.loc.end.offset,bt.source)),{value:Ot,index:Jn.index}}}}}function pt(Pe,Re,He,bt){for(var vt=void 0,Ot={type:"Array",children:[]},qt=ze._START_,Kt=void 0;He<Re.length;)switch(Kt=Re[He],qt){case ze._START_:{if(Kt.type===z.LEFT_BRACKET)vt=Kt,qt=ze.OPEN_ARRAY,He++;else return null;break}case ze.OPEN_ARRAY:{if(Kt.type===z.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=Rt(Pe,Re,He,bt);He=on.index,Ot.children.push(on.value),qt=ze.VALUE;break}case ze.VALUE:{if(Kt.type===z.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===z.COMMA?(qt=ze.COMMA,He++):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case ze.COMMA:{var Jn=Rt(Pe,Re,He,bt);He=Jn.index,Ot.children.push(Jn.value),qt=ze.VALUE;break}}yt(Pe,Re,bt)}function St(Pe,Re,He,bt){var vt=Re[He],Ot=null;switch(vt.type){case z.STRING:{Ot=tt(Pe.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case z.NUMBER:{Ot=Number(vt.value);break}case z.TRUE:{Ot=!0;break}case z.FALSE:{Ot=!1;break}case z.NULL:{Ot=null;break}default:return null}var qt={type:"Literal",value:Ot,raw:vt.value};return bt.loc&&(qt.loc=vt.loc),{value:qt,index:He+1}}function Rt(Pe,Re,He,bt){var vt=Re[He],Ot=St.apply(void 0,arguments)||lt.apply(void 0,arguments)||pt.apply(void 0,arguments);if(Ot)return Ot;O(U.unexpectedToken(l(Pe,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Pe,bt.source,vt.loc.start.line,vt.loc.start.column)}var Le=function(Pe,Re){Re=Object.assign({},ot,Re);var He=we(Pe,Re);He.length===0&&yt(Pe,He,Re);var bt=Rt(Pe,He,0,Re);if(bt.index===He.length)return bt.value;var vt=He[bt.index];O(U.unexpectedToken(l(Pe,vt.loc.start.offset,vt.loc.end.offset),Re.source,vt.loc.start.line,vt.loc.start.column),Pe,Re.source,vt.loc.start.line,vt.loc.start.column)};return Le})}(Ux)),Ux.exports}var ale=ole();const sle=WA(ale);function li(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}}
Line truncated
` )Re++,He++,bt=1;else if(vt===" "||vt===" ")Re++,bt++;else return null;return{index:Re,line:He,column:bt}}function ge(Pe,Re,He,bt){var vt=Pe.charAt(Re);return vt in j?{type:j[vt],line:He,column:bt+1,index:Re+1,value:null}:null}function ye(Pe,Re,He,bt){for(var vt in Q)if(Q.hasOwnProperty(vt)&&Pe.substr(Re,vt.length)===vt)return{type:Q[vt],line:He,column:bt+vt.length,index:Re+vt.length,value:vt};return null}function Me(Pe,Re,He,bt){for(var vt=Re,Ot=ee._START_;Re<Pe.length;){var qt=Pe.charAt(Re);switch(Ot){case ee._START_:{if(qt==='"')Re++,Ot=ee.START_QUOTE_OR_CHAR;else return null;break}case ee.START_QUOTE_OR_CHAR:{if(qt===" \\ ")Re++,Ot=ee.ESCAPE;else{if(qt==='"')return Re++,{type:z.STRING,line:He,column:bt+Re-vt,index:Re,value:Pe.slice(vt,Re)};Re++}break}case ee.ESCAPE:{if(qt in V){if(Re++,qt==="u")for(var Kt=0;Kt<4;Kt++){var on=Pe.charAt(Re);if(on&&oe(on))Re++;else return null}Ot=ee.START_QUOTE_OR_CHAR}else return null;break}}}}function Be(Pe,Re,He,bt){var vt=Re,Ot=Re,qt=ae._START_;e:for(;Re<Pe.length;){var Kt=Pe.charAt(Re);switch(qt){case ae._START_:{if(Kt==="-")qt=ae.MINUS;else if(Kt==="0")Ot=Re+1,qt=ae.ZERO;else if(ne(Kt))Ot=Re+1,qt=ae.DIGIT;else return null;break}case ae.MINUS:{if(Kt==="0")Ot=Re+1,qt=ae.ZERO;else if(ne(Kt))Ot=Re+1,qt=ae.DIGIT;else return null;break}case ae.ZERO:{if(Kt===".")qt=ae.POINT;else if(W(Kt))qt=ae.EXP;else break e;break}case ae.DIGIT:{if(Z(Kt))Ot=Re+1;else if(Kt===".")qt=ae.POINT;else if(W(Kt))qt=ae.EXP;else break e;break}case ae.POINT:{if(Z(Kt))Ot=Re+1,qt=ae.DIGIT_FRACTION;else break e;break}case ae.DIGIT_FRACTION:{if(Z(Kt))Ot=Re+1;else if(W(Kt))qt=ae.EXP;else break e;break}case ae.EXP:{if(Kt==="+"||Kt==="-")qt=ae.EXP_DIGIT_OR_SIGN;else if(Z(Kt))Ot=Re+1,qt=ae.EXP_DIGIT_OR_SIGN;else break e;break}case ae.EXP_DIGIT_OR_SIGN:{if(Z(Kt))Ot=Re+1;else break e;break}}Re++}return Ot>0?{type:z.NUMBER,line:He,column:bt+Ot-vt,index:Ot,value:Pe.slice(vt,Ot)}:null}var we=function(Re,He){for(var bt=1,vt=1,Ot=0,qt=[];Ot<Re.length;){var Kt=[Re,Ot,bt,vt],on=u e.apply(void 0,Kt);if(on){Ot=on.index,bt=on.line,vt=on.column;continue}var Jn=ge.apply(void 0,Kt)||ye.apply(void 0,Kt)||Me.apply(void 0,Kt)||Be.apply(void 0,Kt);if(Jn){var Wt={type:Jn.type,value:Jn.value,loc:o(bt,vt,Ot,Jn.line,Jn.column,Jn.index,He.source)};qt.push(Wt),Ot=Jn.index,bt=Jn.line,vt=Jn.column}else O(K.unexpectedSymbol(l(Re,Ot,Ot+1),He.source,bt,vt),Re,He.source,bt,vt)}return qt},qe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},ze={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ot={loc:!0,source:null};function yt(Pe,Re,He){var bt=Re.length>0?Re[Re.length-1].loc.end:{line:1,column:1};O(U.unexpectedEnd(),Pe,He.source,bt.line,bt.column)}function nt(Pe){for(var Re=0,He=0;He<4;He++)Re=Re*16+parseInt(Pe[He],16);return String.fromCharCode(Re)}var be={b:" \b ",f:" \f ",n: `
` ,r:" \r ",t:" "},Ne=['"'," \\ ","/"];function tt(Pe){for(var Re="",He=0;He<Pe.length;He++){var bt=Pe.charAt(He);if(bt===" \\ "){He++;var vt=Pe.charAt(He);if(vt==="u")Re+=nt(Pe.substr(He+1,4)),He+=4;else if(Ne.indexOf(vt)!==-1)Re+=vt;else if(vt in be)Re+=be[vt];else break}else Re+=bt}return Re}function lt(Pe,Re,He,bt){for(var vt=void 0,Ot={type:"Object",children:[]},qt=qe._START_;He<Re.length;){var Kt=Re[He];switch(qt){case qe._START_:{if(Kt.type===z.LEFT_BRACE)vt=Kt,qt=qe.OPEN_OBJECT,He++;else return null;break}case qe.OPEN_OBJECT:{if(Kt.type===z.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=It(Pe,Re,He,bt);Ot.children.push(on.value),qt=qe.PROPERTY,He=on.index;break}case qe.PROPERTY:{if(Kt.type===z.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===z.COMMA?(qt=qe.COMMA,He++):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case qe.COMMA:{var Jn=It(Pe,Re,He,bt);Jn?(He=Jn.index,Ot.children.push(Jn.value),qt=qe.PROPERTY):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}}}yt(Pe,Re,bt)}function It(Pe,Re,He,bt){for(var vt=void 0,Ot={type:"Property",key:null,value:null},qt=xe._START_;He<Re.length;){var Kt=Re[He];switch(qt){case xe._START_:{if(Kt.type===z.STRING){var on={type:"Identifier",value:tt(Pe.slice(Kt.loc.start.offset+1,Kt.loc.end.offset-1)),raw:Kt.value};bt.loc&&(on.loc=Kt.loc),vt=Kt,Ot.key=on,qt=xe.KEY,He++}else return null;break}case xe.KEY:{Kt.type===z.COLON?(qt=xe.COLON,He++):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case xe.COLON:{var Jn=Rt(Pe,Re,He,bt);return Ot.value=Jn.value,bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Jn.value.loc.end.line,Jn.value.loc.end.column,Jn.value.loc.end.offset,bt.source)),{value:Ot,index:Jn.index}}}}}function pt(Pe,Re,He,bt){for(var vt=void 0,Ot={type:"Array",children:[]},qt=ze._START_,Kt=void 0;He<Re.length;)switch(Kt=Re[He],qt){case ze._START_:{if(Kt.type===z.LEFT_BRACKET)vt=Kt,qt=ze.OPEN_ARRAY,He++;else return null;break}case ze.OPEN_ARRAY:{if(Kt.type===z.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=Rt(Pe,Re,He,bt);He=on.index,Ot.children.push(on.value),qt=ze.VALUE;break}case ze.VALUE:{if(Kt.type===z.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===z.COMMA?(qt=ze.COMMA,He++):O(U.unexpectedToken(l(Pe,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Pe,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case ze.COMMA:{var Jn=Rt(Pe,Re,He,bt);He=Jn.index,Ot.children.push(Jn.value),qt=ze.VALUE;break}}yt(Pe,Re,bt)}function St(Pe,Re,He,bt){var vt=Re[He],Ot=null;switch(vt.type){case z.STRING:{Ot=tt(Pe.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case z.NUMBER:{Ot=Number(vt.value);break}case z.TRUE:{Ot=!0;break}case z.FALSE:{Ot=!1;break}case z.NULL:{Ot=null;break}default:return null}var qt={type:"Literal",value:Ot,raw:vt.value};return bt.loc&&(qt.loc=vt.loc),{value:qt,index:He+1}}function Rt(Pe,Re,He,bt){var vt=Re[He],Ot=St.apply(void 0,arguments)||lt.apply(void 0,arguments)||pt.apply(void 0,arguments);if(Ot)return Ot;O(U.unexpectedToken(l(Pe,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Pe,bt.source,vt.loc.start.line,vt.loc.start.column)}var Le=function(Pe,Re){Re=Object.assign({},ot,Re);var He=we(Pe,Re);He.length===0&&yt(Pe,He,Re);var bt=Rt(Pe,He,0,Re);if(bt.index===He.length)return bt.value;var vt=He[bt.index];O(U.unexpectedToken(l(Pe,vt.loc.start.offset,vt.loc.end.offset),Re.source,vt.loc.start.line,vt.loc.start.column),Pe,Re.source,vt.loc.start.line,vt.loc.start.column)};return Le})}(Tx)),Tx.exports}var Hse=qse();const Vse=WA(Hse);function li(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}}
Line truncated
rgba ( ` +ne.r+","+ne.g+","+ne.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ne.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+ne.r+","+ne.g+","+ne.b+ ` , 0 ) 0 % ,
rgba ( ` +ne.r+","+ne.g+","+ne.b+", 1) 100%)"},pointer:{left:0,top:ne.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:Z.alpha},i.default.createElement("div",{style:Z.checkboard},i.default.createElement(C.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:Z.gradient}),i.default.createElement("div",{style:Z.container,ref:function(W){return ae.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:Z.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:Z.slider}))))}}]),ee}(t.PureComponent||t.Component);return jy.default=j,jy}var Qy={},YP;function kue(){if(YP)return Qy;YP=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.EditableInput=void 0;var n=function(){function V(ae,ne){for(var Z=0;Z<ne.length;Z++){var oe=ne[Z];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(ae,oe.key,oe)}}return function(ae,ne,Z){return ne&&V(ae.prototype,ne),Z&&V(ae,Z),ae}}(),e=pl(),t=a(e),i=dp(),r=a(i);function a(V){return V&&V.__esModule?V:{default:V}}function l(V,ae,ne){return ae in V?Object.defineProperty(V,ae,{value:ne,enumerable:!0,configurable:!0,writable:!0}):V[ae]=ne,V}function o(V,ae){if(!(V instanceof ae))throw new TypeError("Cannot call a class as a function")}function m(V,ae){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:V}function C(V,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);V.prototype=Object.create(ae&&ae.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(V,ae):V.__proto__=ae)}var S=1,O=38,U=40,K=[O,U],z=function(ae){return K.indexOf(ae)>-1},j=function(ae){return Number(String(ae).replace(/%/g,""))},Q=1,ee=Qy.EditableInput=function(V){C(ae,V);function ae(ne){o(this,ae);var Z=m(this,(ae.__proto__||Object.getPrototypeOf(ae)).call(this));return Z.handleBlur=function(){Z.state.blurValue&&Z.setState({value:Z.state.blurValue,blurValue:null})},Z.handleChange=function(oe){Z.setUpdatedValue(oe.target.value,oe)},Z.handleKeyDown=function(oe){var W=j(oe.target.value);if(!isNaN(W)&&z(oe.keyCode)){var ce=Z.getArrowOffset(),ge=oe.keyCode===O?W+ce:W-ce;Z.setUpdatedValue(ge,oe)}},Z.handleDrag=function(oe){if(Z.props.dragLabel){var W=Math.round(Z.props.value+oe.movementX);W>=0&&W<=Z.props.dragMax&&Z.props.onChange&&Z.props.onChange(Z.getValueObjectWithLabel(W),oe)}},Z.handleMouseDown=function(oe){Z.props.dragLabel&&(oe.preventDefault(),Z.handleDrag(oe),window.addEventListener("mousemove",Z.handleDrag),window.addEventListener("mouseup",Z.handleMouseUp))},Z.handleMouseUp=function(){Z.unbindEventListeners()},Z.unbindEventListeners=function(){window.removeEventListener("mousemove",Z.handleDrag),window.removeEventListener("mouseup",Z.handleMouseUp)},Z.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},Z.inputId="rc-editable-input-"+Q++,Z}return n(ae,[{key:"componentDidUpdate",value:function(Z,oe){this.props.value!==this.state.value&&(Z.value!==this.props.value||oe.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(Z){return l({},this.props.label,Z)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||S}},{key:"setUpdatedValue",value:function(Z,oe){var W=this.props.label?this.getValueObjectWithLabel(Z):Z;this.props.onChange&&this.props.onChange(W,oe),this.setState({value:Z})}},{key:"render",value:function(){var Z=this,oe=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:oe.wrap},t.default.createElement("input",{id:this.inputId,style:oe.input,ref:function(ce){return Z.input=ce},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:oe.label,onMouseDown:this.handleMouseDown},this.props.label):null
Line truncated
rgba ( ` +ne.r+","+ne.g+","+ne.b+", 1) 100%)"},pointer:{left:0,top:ne.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:Z.alpha},i.default.createElement("div",{style:Z.checkboard},i.default.createElement(C.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:Z.gradient}),i.default.createElement("div",{style:Z.container,ref:function(W){return ae.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:Z.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:Z.slider}))))}}]),ee}(t.PureComponent||t.Component);return jy.default=j,jy}var Qy={},zP;function Cue(){if(zP)return Qy;zP=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.EditableInput=void 0;var n=function(){function V(ae,ne){for(var Z=0;Z<ne.length;Z++){var oe=ne[Z];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(ae,oe.key,oe)}}return function(ae,ne,Z){return ne&&V(ae.prototype,ne),Z&&V(ae,Z),ae}}(),e=pl(),t=a(e),i=hp(),r=a(i);function a(V){return V&&V.__esModule?V:{default:V}}function l(V,ae,ne){return ae in V?Object.defineProperty(V,ae,{value:ne,enumerable:!0,configurable:!0,writable:!0}):V[ae]=ne,V}function o(V,ae){if(!(V instanceof ae))throw new TypeError("Cannot call a class as a function")}function m(V,ae){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:V}function C(V,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);V.prototype=Object.create(ae&&ae.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(V,ae):V.__proto__=ae)}var S=1,O=38,U=40,K=[O,U],z=function(ae){return K.indexOf(ae)>-1},j=function(ae){return Number(String(ae).replace(/%/g,""))},Q=1,ee=Qy.EditableInput=function(V){C(ae,V);function ae(ne){o(this,ae);var Z=m(this,(ae.__proto__||Object.getPrototypeOf(ae)).call(this));return Z.handleBlur=function(){Z.state.blurValue&&Z.setState({value:Z.state.blurValue,blurValue:null})},Z.handleChange=function(oe){Z.setUpdatedValue(oe.target.value,oe)},Z.handleKeyDown=function(oe){var W=j(oe.target.value);if(!isNaN(W)&&z(oe.keyCode)){var ue=Z.getArrowOffset(),ge=oe.keyCode===O?W+ue:W-ue;Z.setUpdatedValue(ge,oe)}},Z.handleDrag=function(oe){if(Z.props.dragLabel){var W=Math.round(Z.props.value+oe.movementX);W>=0&&W<=Z.props.dragMax&&Z.props.onChange&&Z.props.onChange(Z.getValueObjectWithLabel(W),oe)}},Z.handleMouseDown=function(oe){Z.props.dragLabel&&(oe.preventDefault(),Z.handleDrag(oe),window.addEventListener("mousemove",Z.handleDrag),window.addEventListener("mouseup",Z.handleMouseUp))},Z.handleMouseUp=function(){Z.unbindEventListeners()},Z.unbindEventListeners=function(){window.removeEventListener("mousemove",Z.handleDrag),window.removeEventListener("mouseup",Z.handleMouseUp)},Z.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},Z.inputId="rc-editable-input-"+Q++,Z}return n(ae,[{key:"componentDidUpdate",value:function(Z,oe){this.props.value!==this.state.value&&(Z.value!==this.props.value||oe.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(Z){return l({},this.props.label,Z)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||S}},{key:"setUpdatedValue",value:function(Z,oe){var W=this.props.label?this.getValueObjectWithLabel(Z):Z;this.props.onChange&&this.props.onChange(W,oe),this.setState({value:Z})}},{key:"render",value:function(){var Z=this,oe=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:oe.wrap},t.default.createElement("input",{id:this.inputId,style:oe.input,ref:function(ue){return Z.input=ue},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:oe.label,onMouseDown:this.handleMouseDown},this.props.label):null
Line truncated
. hue - horizontal {
background : linear - gradient ( to right , # f00 0 % , # ff0 17 % , # 0 f0
33 % , # 0 ff 50 % , # 00 f 67 % , # f0f 83 % , # f00 100 % ) ;
@@ -930,8 +930,8 @@ ${nt}`,{message:St,excerpt:pt,pointer:Rt}}function Be(nt,be){let Ge=W(be);const
background : - webkit - linear - gradient ( to top , # f00 0 % , # ff0 17 % ,
# 0 f0 33 % , # 0 ff 50 % , # 00 f 67 % , # f0f 83 % , # f00 100 % ) ;
}
` ),t.default.createElement("div",{style:ae.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ae.slider}))))}}]),z}(e.PureComponent||e.Component);return Yy.default=U,Yy}var qy={},VP;function Pue(){if(VP)return qy;VP=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.Raised=void 0;var n=pl(),e=m(n),t=i0(),i=m(t),r=dp(),a=m(r),l=JN(),o=m(l);function m(S){return S&&S.__esModule?S:{default:S}}var C=qy.Raised=function(O){var U=O.zDepth,K=O.radius,z=O.background,j=O.children,Q=O.styles,ee=Q===void 0?{}:Q,V=(0,a.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+U+"px "+U*4+"px rgba(0,0,0,.24)",borderRadius:K,background:z}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},ee),{"zDepth-1":U===1});return e.default.createElement("div",{style:V.wrap},e.default.createElement("div",{style:V.bg}),e.default.createElement("div",{style:V.content},j))};return C.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},qy.default=C,qy}var Hy={},oE, $ P;function Kue(){if( $ P)return oE; $ P=1;var n=hp(),e=function(){return n.Date.now()};return oE=e,oE}var aE,ZP;function Uue(){if(ZP)return aE;ZP=1;var n=/ \s /;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return aE=e,aE}var sE,XP;function Lue(){if(XP)return sE;XP=1;var n=Uue(),e=/^ \s +/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return sE=t,sE}var lE,JP;function Fue(){if(JP)return lE;JP=1;var n=Lue(),e=Mm(),t=e4(),i=NaN,r=/^[-+]0x[0-9a-f]+ $ /i,a=/^0b[01]+ $ /i,l=/^0o[0-7]+ $ /i,o=parseInt;function m(C){if(typeof C=="number")return C;if(t(C))return i;if(e(C)){var S=typeof C.valueOf=="function"?C.valueOf():C;C=e(S)?S+"":S}if(typeof C!="string")return C===0?C:+C;C=n(C);var O=a.test(C);return O||l.test(C)?o(C.slice(2),O?2:8):r.test(C)?i:+C}return lE=m,lE}var AE,eK;function ej(){if(eK)return AE;eK=1;var n=Mm(),e=Kue(),t=Fue(),i="Expected a function",r=Math.max,a=Math.min;function l(o,m,C){var S,O,U,K,z,j,Q=0,ee=!1,V=!1,ae=!0;if(typeof o!="function")throw new TypeError(i);m=t(m)||0,n(C)&&(ee=!!C.leading,V="maxWait"in C,U=V?r(t(C.maxWait)||0,m):U,ae="trailing"in C?!!C.trailing:ae);function ne(we){var qe=S,xe=O;return S=O=void 0,Q=we,K=o.apply(xe,qe),K}function Z(we){return Q=we,z=setTimeout(ce,m),ee?ne(we):K}function oe(we){var qe=we-j,xe=we-Q,ze=m-qe;return V?a(ze,U-xe):ze}function W(we){var qe=we-j,xe=we-Q;return j===void 0||qe>=m||qe<0||V&&xe>=U}function ce(){var we=e();if(W(we))return ge(we);z=setTimeout(ce,oe(we))}function ge(we){return z=void 0,ae&&S?ne(we):(S=O=void 0,K)}function ye(){z!==void 0&&clearTimeout(z),Q=0,S=j=O=z=void 0}function Me(){return z===void 0?K:ge(e())}function Be(){var we=e(),qe=W(we);if(S=arguments,O=this,j=we,qe){if(z===void 0)return Z(j);if(V)return clearTimeout(z),z=setTimeout(ce,m),ne(j)}return z===void 0&&(z=setTimeout(ce,m)),K}return Be.cancel=ye,Be.flush=Me,Be}return AE=l,AE}var uE,tK;function zue(){if(tK)return uE;tK=1;var n=ej(),e=Mm(),t="Expected a function";function i(r,a,l){var o=!0,m=!0;if(typeof r!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,m="trailing"in l?!!l.trailing:m),n(r,a,{leading:o,maxWait:a,trailing:m})}return uE=i,uE}var _x={},nK;function Gue(){return nK||(nK=1,Object.defineProperty(_x,"__esModule",{value:!0}),_x.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),a=r.width,l=r.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,m=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,C=o-(i.getBoundingClientRect().left+window.pageXOffset),S=m-(i.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>a&&(C=a),S<0?S=0:S>l&&(S=l);var O=C/a,U=1-S/l;return{h:t.h,s:O,v:U,a:t.a,source:"hsv"}}),_x}var iK;function Nue(){if(iK)return Hy;iK=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.Saturation=void 0;var n=function(){function j(Q,ee){for(var V=0;V<ee.length;V++){var ae=ee[V];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(Q,ae.key,ae)}}return function(Q,ee,V){return ee&&j(Q.prototype,ee),V&&j(Q,V),Q}}(),e=pl(),t=S(e),i=dp(),r=S(i),a=zue(),l=S(a),o=Gue(),m=C(o);function C(j){if(j&&j.__esModule)return j;var Q={};if(j!=null)for(var ee in j)Object.prototype.hasOwnProperty.call(j,ee)&&(Q[ee]=j[ee]);return Q.default=j,
Line truncated
0 0 1 px 2 px rgba ( 0 , 0 , 0 , . 4 ) ` ,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:ne,white:Z,black:oe,pointer:W,circle:c e}},{custom:!!this.props.style});return t.default.createElement("div",{style:ge.color,ref:function(Me){return V.container=Me},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null, `
` ),t.default.createElement("div",{style:ae.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ae.slider}))))}}]),z}(e.PureComponent||e.Component);return Yy.default=U,Yy}var qy={},jP;function xue(){if(jP)return qy;jP=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.Raised=void 0;var n=pl(),e=m(n),t=i0(),i=m(t),r=hp(),a=m(r),l=qG(),o=m(l);function m(S){return S&&S.__esModule?S:{default:S}}var C=qy.Raised=function(O){var U=O.zDepth,K=O.radius,z=O.background,j=O.children,Q=O.styles,ee=Q===void 0?{}:Q,V=(0,a.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+U+"px "+U*4+"px rgba(0,0,0,.24)",borderRadius:K,background:z}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},ee),{"zDepth-1":U===1});return e.default.createElement("div",{style:V.wrap},e.default.createElement("div",{style:V.bg}),e.default.createElement("div",{style:V.content},j))};return C.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},qy.default=C,qy}var Hy={},Jw,WP;function Mue(){if(WP)return Jw;WP=1;var n=cp(),e=function(){return n.Date.now()};return Jw=e,Jw}var eE,QP;function Sue(){if(QP)return eE;QP=1;var n=/ \s /;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return eE=e,eE}var tE,YP;function wue(){if(YP)return tE;YP=1;var n=Sue(),e=/^ \s +/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return tE=t,tE}var nE,qP;function Eue(){if(qP)return nE;qP=1;var n=wue(),e=xm(),t=H2(),i=NaN,r=/^[-+]0x[0-9a-f]+ $ /i,a=/^0b[01]+ $ /i,l=/^0o[0-7]+ $ /i,o=parseInt;function m(C){if(typeof C=="number")return C;if(t(C))return i;if(e(C)){var S=typeof C.valueOf=="function"?C.valueOf():C;C=e(S)?S+"":S}if(typeof C!="string")return C===0?C:+C;C=n(C);var O=a.test(C);return O||l.test(C)?o(C.slice(2),O?2:8):r.test(C)?i:+C}return nE=m,nE}var iE,HP;function HG(){if(HP)return iE;HP=1;var n=xm(),e=Mue(),t=Eue(),i="Expected a function",r=Math.max,a=Math.min;function l(o,m,C){var S,O,U,K,z,j,Q=0,ee=!1,V=!1,ae=!0;if(typeof o!="function")throw new TypeError(i);m=t(m)||0,n(C)&&(ee=!!C.leading,V="maxWait"in C,U=V?r(t(C.maxWait)||0,m):U,ae="trailing"in C?!!C.trailing:ae);function ne(we){var qe=S,xe=O;return S=O=void 0,Q=we,K=o.apply(xe,qe),K}function Z(we){return Q=we,z=setTimeout(ue,m),ee?ne(we):K}function oe(we){var qe=we-j,xe=we-Q,ze=m-qe;return V?a(ze,U-xe):ze}function W(we){var qe=we-j,xe=we-Q;return j===void 0||qe>=m||qe<0||V&&xe>=U}function ue(){var we=e();if(W(we))return ge(we);z=setTimeout(ue,oe(we))}function ge(we){return z=void 0,ae&&S?ne(we):(S=O=void 0,K)}function ye(){z!==void 0&&clearTimeout(z),Q=0,S=j=O=z=void 0}function Me(){return z===void 0?K:ge(e())}function Be(){var we=e(),qe=W(we);if(S=arguments,O=this,j=we,qe){if(z===void 0)return Z(j);if(V)return clearTimeout(z),z=setTimeout(ue,m),ne(j)}return z===void 0&&(z=setTimeout(ue,m)),K}return Be.cancel=ye,Be.flush=Me,Be}return iE=l,iE}var rE,VP;function Bue(){if(VP)return rE;VP=1;var n=HG(),e=xm(),t="Expected a function";function i(r,a,l){var o=!0,m=!0;if(typeof r!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,m="trailing"in l?!!l.trailing:m),n(r,a,{leading:o,maxWait:a,trailing:m})}return rE=i,rE}var mx={}, $ P;function Oue(){return $ P||( $ P=1,Object.defineProperty(mx,"__esModule",{value:!0}),mx.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),a=r.width,l=r.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,m=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,C=o-(i.getBoundingClientRect().left+window.pageXOffset),S=m-(i.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>a&&(C=a),S<0?S=0:S>l&&(S=l);var O=C/a,U=1-S/l;return{h:t.h,s:O,v:U,a:t.a,source:"hsv"}}),mx}var ZP;function Iue(){if(ZP)return Hy;ZP=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.Saturation=void 0;var n=function(){function j(Q,ee){for(var V=0;V<ee.length;V++){var ae=ee[V];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(Q,ae.key,ae)}}return function(Q,ee,V){return ee&&j(Q.prototype,ee),V&&j(Q,V),Q}}(),e=pl(),t=S(e),i=hp(),r=S(i),a=Bue(),l=S(a),o=Oue(),m=C(o);function C(j){if(j&&j.__esModule)return j;var Q={};if(j!=null)for(var ee in j)Object.prototype.hasOwnProperty.call(j,ee)&&(Q[ee]=j[ee]);return Q.default=j,
Line truncated
0 0 1 px 2 px rgba ( 0 , 0 , 0 , . 4 ) ` ,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:ne,white:Z,black:oe,pointer:W,circle:u e}},{custom:!!this.props.style});return t.default.createElement("div",{style:ge.color,ref:function(Me){return V.container=Me},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null, `
. saturation - white {
background : - webkit - linear - gradient ( to right , # fff , rgba ( 255 , 255 , 255 , 0 ) ) ;
background : linear - gradient ( to right , # fff , rgba ( 255 , 255 , 255 , 0 ) ) ;
@@ -940,14 +940,14 @@ ${nt}`,{message:St,excerpt:pt,pointer:Rt}}function Be(nt,be){let Ge=W(be);const
background : - webkit - linear - gradient ( to top , # 000 , rgba ( 0 , 0 , 0 , 0 ) ) ;
background : linear - gradient ( to top , # 000 , rgba ( 0 , 0 , 0 , 0 ) ) ;
}
` ),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Q}(e.PureComponent||e.Component);return Hy.default=z,Hy}var Vy={},cd={},cE,rK;function jue(){if(rK)return cE;rK=1;var n=jN(),e=NN(),t=EN(),i=Tf();function r(a,l){var o=i(a)?n:e;return o(a,t(l))}return cE=r,cE}var hE,oK;function Wue(){return oK||(oK=1,hE=jue()),hE}var Lx={exports:{}},Que=Lx.exports,aK;function Yue(){return aK||(aK=1,function(n,e){(function(t,i){n.exports=i()})(Que,function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},t(Le)}var i=/^ \s +/,r=/ \s + $ /;function a(Le,Pe){if(Le=Le||"",Pe=Pe||{},Le instanceof a)return Le;if(!(this instanceof a))return new a(Le,Pe);var Re=l(Le);this._originalInput=Le,this._r=Re.r,this._g=Re.g,this._b=Re.b,this._a=Re.a,this._roundA=Math.round(100*this._a)/100,this._format=Pe.format||Re.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Re.ok}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Pe=this.toRgb();return(Pe.r*299+Pe.g*587+Pe.b*114)/1e3},getLuminance:function(){var Pe=this.toRgb(),Re,He,bt,vt,Ot,qt;return Re=Pe.r/255,He=Pe.g/255,bt=Pe.b/255,Re<=.03928?vt=Re/12.92:vt=Math.pow((Re+.055)/1.055,2.4),He<=.03928?Ot=He/12.92:Ot=Math.pow((He+.055)/1.055,2.4),bt<=.03928?qt=bt/12.92:qt=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*Ot+.0722*qt},setAlpha:function(Pe){return this._a=qe(Pe),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Pe=S(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,v:Pe.v,a:this._a}},toHsvString:function(){var Pe=S(this._r,this._g,this._b),Re=Math.round(Pe.h*360),He=Math.round(Pe.s*100),bt=Math.round(Pe.v*100);return this._a==1?"hsv("+Re+", "+He+"%, "+bt+"%)":"hsva("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Pe=m(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=m(this._r,this._g,this._b),Re=Math.round(Pe.h*360),He=Math.round(Pe.s*100),bt=Math.round(Pe.l*100);return this._a==1?"hsl("+Re+", "+He+"%, "+bt+"%)":"hsla("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Pe){return U(this._r,this._g,this._b,Pe)},toHexString:function(Pe){return"#"+this.toHex(Pe)},toHex8:function(Pe){return K(this._r,this._g,this._b,this._a,Pe)},toHex8String:function(Pe){return"#"+this.toHex8(Pe)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(xe(this._r,255)*100)+"%",g:Math.round(xe(this._g,255)*100)+"%",b:Math.round(xe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%)":"rgba("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Be[U(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Re="#"+z(this._r,this._g,this._b,this._a),He=Re,bt=this._gradientType?"GradientType = 1, ":"";if(Pe){var vt=a(Pe);He="#"+z(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Re+",endColorstr="+He+")"},toString:function(Pe){var Re=!!Pe;Pe=Pe||this._format;var He=!1,bt=this._a<1&&this._a>=0,vt=!Re&&bt&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return vt?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(He=this.toRgbString()),Pe==="prgb"&&(He=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(He=this.toHexString()),Pe==="hex3"&&(He=this.toHexString(!0)),Pe==="hex4"&&(He=this.toHex8String(!0)),Pe==="hex8"&&(He=this.toHex8String()),Pe==="name"&&(He=this.toName()),Pe==="hsl"&&(He=this.toHslString()),Pe==="hsv"&&(He=this.toHsvString()),He||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(Pe,Re){var He=Pe.apply(nu
Line truncated
` ),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Q}(e.PureComponent||e.Component);return Hy.default=z,Hy}var Vy={},cd={},oE,XP;function Tue(){if(XP)return oE;XP=1;var n=UG(),e=KG(),t=_G(),i=If();function r(a,l){var o=i(a)?n:e;return o(a,t(l))}return oE=r,oE}var aE,JP;function kue(){return JP||(JP=1,aE=Tue()),aE}var kx={exports:{}},Due=kx.exports,eK;function Rue(){return eK||(eK=1,function(n,e){(function(t,i){n.exports=i()})(Due,function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},t(Le)}var i=/^ \s +/,r=/ \s + $ /;function a(Le,Pe){if(Le=Le||"",Pe=Pe||{},Le instanceof a)return Le;if(!(this instanceof a))return new a(Le,Pe);var Re=l(Le);this._originalInput=Le,this._r=Re.r,this._g=Re.g,this._b=Re.b,this._a=Re.a,this._roundA=Math.round(100*this._a)/100,this._format=Pe.format||Re.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Re.ok}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Pe=this.toRgb();return(Pe.r*299+Pe.g*587+Pe.b*114)/1e3},getLuminance:function(){var Pe=this.toRgb(),Re,He,bt,vt,Ot,qt;return Re=Pe.r/255,He=Pe.g/255,bt=Pe.b/255,Re<=.03928?vt=Re/12.92:vt=Math.pow((Re+.055)/1.055,2.4),He<=.03928?Ot=He/12.92:Ot=Math.pow((He+.055)/1.055,2.4),bt<=.03928?qt=bt/12.92:qt=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*Ot+.0722*qt},setAlpha:function(Pe){return this._a=qe(Pe),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Pe=S(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,v:Pe.v,a:this._a}},toHsvString:function(){var Pe=S(this._r,this._g,this._b),Re=Math.round(Pe.h*360),He=Math.round(Pe.s*100),bt=Math.round(Pe.v*100);return this._a==1?"hsv("+Re+", "+He+"%, "+bt+"%)":"hsva("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Pe=m(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=m(this._r,this._g,this._b),Re=Math.round(Pe.h*360),He=Math.round(Pe.s*100),bt=Math.round(Pe.l*100);return this._a==1?"hsl("+Re+", "+He+"%, "+bt+"%)":"hsla("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Pe){return U(this._r,this._g,this._b,Pe)},toHexString:function(Pe){return"#"+this.toHex(Pe)},toHex8:function(Pe){return K(this._r,this._g,this._b,this._a,Pe)},toHex8String:function(Pe){return"#"+this.toHex8(Pe)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(xe(this._r,255)*100)+"%",g:Math.round(xe(this._g,255)*100)+"%",b:Math.round(xe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%)":"rgba("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Be[U(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Re="#"+z(this._r,this._g,this._b,this._a),He=Re,bt=this._gradientType?"GradientType = 1, ":"";if(Pe){var vt=a(Pe);He="#"+z(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Re+",endColorstr="+He+")"},toString:function(Pe){var Re=!!Pe;Pe=Pe||this._format;var He=!1,bt=this._a<1&&this._a>=0,vt=!Re&&bt&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return vt?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(He=this.toRgbString()),Pe==="prgb"&&(He=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(He=this.toHexString()),Pe==="hex3"&&(He=this.toHexString(!0)),Pe==="hex4"&&(He=this.toHex8String(!0)),Pe==="hex8"&&(He=this.toHex8String()),Pe==="name"&&(He=this.toName()),Pe==="hsl"&&(He=this.toHslString()),Pe==="hsv"&&(He=this.toHsvString()),He||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(Pe,Re){var He=Pe.apply(nu
Line truncated
< html >
< head >
< meta charset = "utf-8" / >
< title > $ { t } < / t i t l e >
< meta name = "viewport" content = "initial-scale=1,maximum-scale=1,user-scalable=no" / >
< script src = "https://unpkg.com/maplibre-gl@${R K}/dist/maplibre-gl.js" > < \ / script >
< link href = "https://unpkg.com/maplibre-gl@${R K}/dist/maplibre-gl.css" rel = "stylesheet" / >
< script src = "https://unpkg.com/maplibre-gl@${B K}/dist/maplibre-gl.js" > < \ / script >
< link href = "https://unpkg.com/maplibre-gl@${B K}/dist/maplibre-gl.css" rel = "stylesheet" / >
< style >
body { margin : 0 ; padding : 0 ; }
# map { position : absolute ; top : 0 ; bottom : 0 ; width : 100 % ; }
@@ -964,11 +964,11 @@ ${nt}`,{message:St,excerpt:pt,pointer:Rt}}function Be(nt,be){let Ge=W(be);const
< \ / script >
< / b o d y >
< / h t m l >
` ),r=(Ki().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),a=(Ki().s[10]++,this.exportName());Ki().s[11]++,DK.saveAs(r,a+".html")}async saveStyle(){Ki().f[3]++;const e=(Ki().s[12]++,this.tokenizedStyle());if(Ki().s[13]++,PK)Ki().b[2][1]++;else{Ki().b[2][0]++;const r=(Ki().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),a=(Ki().s[15]++,this.exportName());Ki().s[16]++,DK.saveAs(r,a+".json"),Ki().s[17]++;return}let t=(Ki().s[18]++,this.props.fileHandle);if(Ki().s[19]++,t==null)if(Ki().b[3][0]++,Ki().s[20]++,t=await this.createFileHandle(),Ki().s[21]++,this.props.onSetFileHandle(t),Ki().s[22]++,t==null){Ki().b[4][0]++,Ki().s[23]++;return}else Ki().b[4][1]++;else Ki().b[3][1]++;const i=(Ki().s[24]++,await t.createWritable());Ki().s[25]++,await i.write(e),Ki().s[26]++,await i.close(),Ki().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ki().f[4]++;const e=(Ki().s[28]++,this.tokenizedStyle()),t=(Ki().s[29]++,await this.createFileHandle());if(Ki().s[30]++,this.props.onSetFileHandle(t),Ki().s[31]++,t==null){Ki().b[5][0]++,Ki().s[32]++;return}else Ki().b[5][1]++;const i=(Ki().s[33]++,await t.createWritable());Ki().s[34]++,await i.write(e),Ki().s[35]++,await i.close(),Ki().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ki().f[5]++;const e=(Ki().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ki().s[38]++,await window.showSaveFilePicker(e));return Ki().s[39]++,this.props.onSetFileHandle(t),Ki().s[40]++,t}changeMetadataProperty(e,t){Ki().f[6]++;const i=(Ki().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ki().s[42]++,this.props.onStyleChanged(i)}render(){Ki().f[7]++;const e=(Ki().s[43]++,this.props.t),t=(Ki().s[44]++,dj(e));return Ki().s[45]++,ue.jsx(z1,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:ue.jsxs("section",{className:"maputnik-modal-section",children:[ue.jsx("h1",{children:e("Save Style")}),ue.jsx("p",{children:e("Save the JSON style to your computer.")}),ue.jsxs("div",{children:[ue.jsx(mm,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ki().b[6][0]++,this.props.mapStyle.metadata||(Ki().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),ue.jsx(mm,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ki().b[7][0]++,this.props.mapStyle.metadata||(Ki().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),ue.jsx(mm,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ki().b[8][0]++,this.props.mapStyle.metadata||(Ki().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),ue.jsx(mm,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ki().b[9][0]++,this.props.mapStyle.metadata||(Ki().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),ue.jsxs("div",{className:"maputnik-modal-export-buttons",children:[ue.jsxs(ml,{onClick:this.saveStyle.bind(this),children:[ue.jsx(R6,{}),e("Save")]}),(Ki().b[10][0]++,PK&&(Ki().b[10][1]++,ue.jsxs(ml,{onClick:this.saveStyleAs.bind(this),children:[ue.jsx(R6,{}),e("Save as")]}))),ue.jsxs(ml,{onClick:this.createHtml.bind(this),children:[ue.jsx(g $ ,{}),e("Create HTML")]})]})]})})}}const Lhe=(Ki().s[46]++,ss()(Uhe));function ib(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="008bf7f932014e13eee4379e3554a3bc406336ab",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"008bf7f932014e13eee4379e3554a3bc406336ab"},a=t[i]||(t[i]={});(!a[n]||a[n].hash!==e)&&(a[n]=r);var l=a[n];return ib=function(){return l},l}ib();ib().s[0]++;const gj=n=>(ib().f[0]++,ib().s[1]++,ue.jsx(H_,{label:n.label,children:ue.jsx(aj,{...n})}));function rb(){var n="/home/runner/work/maputnik/maputnik/src/components/Field
Line truncated
` )>=0)return!1;return!0}function Te(Ye,De){var Ze;if(Ye.indent===" ")Ze=" ";else if(typeof Ye.indent=="number"&&Ye.indent>0)Ze=c e.call(Array(Ye.indent+1)," ");else return null;return{base:Ze,prev:c e.call(Array(De+1),Ze)}}function We(Ye,De){if(Ye.length===0)return"";var Ze= `
` +De.prev+De.base;return Ze+c e.call(Ye,","+Ze)+ `
` +De.prev}function dt(Ye,De){var Ze=St(Ye),g=[];if(Ze){g.length=Ye.length;for(var gt=0;gt<Ye.length;gt++)g[gt]=Kt(Ye,gt)?De(Ye[gt],Ye):""}var ht=typeof Be=="function"?Be(Ye):[],kt;if(qe){kt={};for(var it=0;it<ht.length;it++)kt[" $ "+ht[it]]=ht[it]}for(var en in Ye)Kt(Ye,en)&&(Ze&&String(Number(en))===en&&en<Ye.length||qe&&kt[" $ "+en]instanceof Symbol||(oe.call(/[^ \w $ ]/,en)?g.push(De(en,Ye)+": "+De(Ye[en],Ye)):g.push(en+": "+De(Ye[en],Ye))));if(typeof Be=="function")for(var Dn=0;Dn<ht.length;Dn++)ze.call(Ye,ht[Dn])&&g.push("["+De(ht[Dn])+"]: "+De(Ye[ht[Dn]],Ye));return g}return CE}var _E,NK;function _de(){if(NK)return _E;NK=1;var n=i4(),e=eC(),t=function(o,m,C){for(var S=o,O;(O=S.next)!=null;S=O)if(O.key===m)return S.next=O.next,C||(O.next=o.next,o.next=O),O},i=function(o,m){if(o){var C=t(o,m);return C&&C.value}},r=function(o,m,C){var S=t(o,m);S?S.value=C:o.next={key:m,next:o.next,value:C}},a=function(o,m){return o?!!t(o,m):!1},l=function(o,m){if(o)return t(o,m,!0)};return _E=function(){var m,C={assert:function(S){if(!C.has(S))throw new e("Side channel does not contain "+n(S))},delete:function(S){var O=m&&m.next,U=l(m,S);return U&&O&&O===U&&(m=void 0),!!U},get:function(S){return i(m,S)},has:function(S){return a(m,S)},set:function(S,O){m||(m={next:void 0}),r(m,S,O)}};return C},_E}var bE,jK;function bj(){return jK||(jK=1,bE=Object),bE}var xE,WK;function bde(){return WK||(WK=1,xE=Error),xE}var ME,QK;function xde(){return QK||(QK=1,ME=EvalError),ME}var SE,YK;function Mde(){return YK||(YK=1,SE=RangeError),SE}var wE,qK;function Sde(){return qK||(qK=1,wE=ReferenceError),wE}var EE,HK;function wde(){return HK||(HK=1,EE=SyntaxError),EE}var BE,VK;function Ede(){return VK||(VK=1,BE=URIError),BE}var OE, $ K;function Bde(){return $ K||( $ K=1,OE=Math.abs),OE}var IE,ZK;function Ode(){return ZK||(ZK=1,IE=Math.floor),IE}var TE,XK;function Ide(){return XK||(XK=1,TE=Math.max),TE}var kE,JK;function Tde(){return JK||(JK=1,kE=Math.min),kE}var DE,eU;function kde(){return eU||(eU=1,DE=Math.pow),DE}var RE,tU;function Dde(){return tU||(tU=1,RE=Math.round),RE}var PE,nU;function Rde(){return nU||(nU=1,PE=Number.isNaN||function(e){return e!==e}),PE}var KE,iU;function Pde(){if(iU)return KE;iU=1;var n=Rde();return KE=function(t){return n(t)||t===0?t:t<0?-1:1},KE}var UE,rU;function Kde(){return rU||(rU=1,UE=Object.getOwnPropertyDescriptor),UE}var LE,oU;function xj(){if(oU)return LE;oU=1;var n=Kde();if(n)try{n([],"length")}catch{n=null}return LE=n,LE}var FE,aU;function Ude(){if(aU)return FE;aU=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return FE=n,FE}var zE,sU;function Lde(){return sU||(sU=1,zE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}),zE}var GE,lU;function Fde(){if(lU)return GE;lU=1;var n=typeof Symbol<"u"&&Symbol,e=Lde();return GE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},GE}var NE,AU;function Mj(){return AU||(AU=1,NE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),NE}var jE,uU;function Sj(){if(uU)return jE;uU=1;var n=bj();return jE=n.getPrototypeOf||null,jE}var WE,cU;function zde(){if(cU)return WE;cU=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(m,C){for(var S=[],O=0;O<m.length;O+=1)S[O]=m[O];for(var U=0;U<C.length;U+=1)S[U+m.length]=C[U];return S},a=function(m,C){for(var S=[],O=C,U=0;O<m.length;O+=1,U+=1)S[U]=m[O];return S},l=function(o,m){for(var C="",S=0;S<o.length;S+=1)C+=o[S],S+1<o.length&&(C+=m);return C};return WE=function(m){var C=this;if(typeof C!="function"||e.apply(C)!==i)throw new TypeError(n+C);for(var S=a(arguments,1),O,U=function(){if(this instanceof O){var ee=C.apply(this,r(S,arguments));return Object(ee)===ee?ee:this}return C.apply(m,r(S,arguments))},K=t(0,C.length-S.length),z=[],j=0;j<K;j++)z[j]=" $ "+j;if(O=Function("binder","return function ("+l(z,",")+"){ return binder.apply(this,arguments); }")(U),C.prototype){var Q=function(){};Q.prototype=C.prototype,O.prototype=new Q,Q.prototype=null}return O},WE}var QE,hU;function r4(){if(hU)return QE;hU=1;var n=zde();return QE=Function.prototype.bind||n,QE}var YE,dU;function l7(){return dU||(dU=1,YE=Function.prototype.call),YE}var qE,fU;functi
Line truncated
` ," "],l=["{","}","|"," \\ ","^"," ` "].concat(a),o=[" '"].concat(l),m=["%","/","?",";","#"].concat(o),C=["/","?","#"],S=255,O=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Q=$de();function ee(Z,oe,W){if(Z&&typeof Z=="object"&&Z instanceof e)return Z;var ce=new e;return ce.parse(Z,oe,W),ce}e.prototype.parse=function(Z,oe,W){if(typeof Z!="string")throw new TypeError("Parameter ' url ' must be a string , not "+typeof Z);var ce=Z.indexOf(" ? "),ge=ce!==-1&&ce<Z.indexOf(" # ")?" ? ":" # ",ye=Z.split(ge),Me=/\\/g;ye[0]=ye[0].replace(Me," / "),Z=ye.join(ge);var Be=Z;if(Be=Be.trim(),!W&&Z.split(" # ").length===1){var we=r.exec(Be);if(we)return this.path=Be,this.href=Be,this.pathname=we[1],we[2]?(this.search=we[2],oe?this.query=Q.parse(this.search.substr(1)):this.query=this.search.substr(1)):oe&&(this.search=" ",this.query={}),this}var qe=t.exec(Be);if(qe){qe=qe[0];var xe=qe.toLowerCase();this.protocol=xe,Be=Be.substr(qe.length)}if(W||qe||Be.match(/^\/\/[^@/]+@[^@/]+/)){var ze=Be.substr(0,2)===" //";ze&&!(qe&&z[qe])&&(Be=Be.substr(2),this.slashes=!0)}if(!z[qe]&&(ze||qe&&!j[qe])){for(var ot=-1,yt=0;yt<C.length;yt++){var nt=Be.indexOf(C[yt]);nt!==-1&&(ot===-1||nt<ot)&&(ot=nt)}var be,Ge;ot===-1?Ge=Be.lastIndexOf("@"):Ge=Be.lastIndexOf("@",ot),Ge!==-1&&(be=Be.slice(0,Ge),Be=Be.slice(Ge+1),this.auth=decodeURIComponent(be)),ot=-1;for(var yt=0;yt<m.length;yt++){var nt=Be.indexOf(m[yt]);nt!==-1&&(ot===-1||nt<ot)&&(ot=nt)}ot===-1&&(ot=Be.length),this.host=Be.slice(0,ot),Be=Be.slice(ot),this.parseHost(),this.hostname=this.hostname||"";var tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!tt)for(var lt=this.hostname.split(/\./),yt=0,It=lt.length;yt<It;yt++){var pt=lt[yt];if(pt&&!pt.match(O)){for(var St="",Rt=0,Le=pt.length;Rt<Le;Rt++)pt.charCodeAt(Rt)>127?St+="x":St+=pt[Rt];if(!St.match(O)){var Pe=lt.slice(0,yt),Re=lt.slice(yt+1),He=pt.match(U);He&&(Pe.push(He[1]),Re.unshift(He[2])),Re.length&&(Be="/"+Re.join(".")+Be),this.hostname=Pe.join(".");break}}}this.hostname.length>S?this.hostname="":this.hostname=this.hostname.toLowerCase(),tt||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",vt=this.hostname||"";this.host=vt+bt,this.href+=this.host,tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Be[0]!=="/"&&(Be="/"+Be))}if(!K[xe])for(var yt=0,It=o.length;yt<It;yt++){var Ot=o[yt];if(Be.indexOf(Ot)!==-1){var qt=encodeURIComponent(Ot);qt===Ot&&(qt=escape(Ot)),Be=Be.split(Ot).join(qt)}}var Kt=Be.indexOf("#");Kt!==-1&&(this.hash=Be.substr(Kt),Be=Be.slice(0,Kt));var on=Be.indexOf("?");if(on!==-1?(this.search=Be.substr(on),this.query=Be.substr(on+1),oe&&(this.query=Q.parse(this.query)),Be=Be.slice(0,on)):oe&&(this.search="",this.query={}),Be&&(this.pathname=Be),j[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",Jn=this.search||"";this.path=bt+Jn}return this.href=this.format(),this};function V(Z){return typeof Z=="string"&&(Z=ee(Z)),Z instanceof e?Z.format():e.prototype.format.call(Z)}e.prototype.format=function(){var Z=this.auth||"";Z&&(Z=encodeURIComponent(Z),Z=Z.replace(/%3A/i,":"),Z+="@");var oe=this.protocol||"",W=this.pathname||"",ce=this.hash||"",ge=!1,ye="";this.host?ge=Z+this.host:this.hostname&&(ge=Z+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ye=Q.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Me=this.search||ye&&"?"+ye||"";return oe&&oe.substr(-1)!==":"&&(oe+=":"),this.slashes||(!oe||j[oe])&&ge!==!1?(ge="//"+(ge||""),W&&W.charAt(0)!=="/"&&(W="/"+W)):ge||(ge=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),Me&&Me.charAt(0)!=="?"&&(Me="?"+Me),W=W.replace(/[?#]/g,function(Be){return encodeURIComponent(Be)}),Me=Me.replace("#","%23"),oe+ge+W+Me+ce};function ae(Z,oe){return ee(Z,!1,!0).resolve(oe)}e.prototype.resolve=function(Z){return this.resolveObject(ee(Z,!1,!0)).format()};function ne(Z,oe){return Z?ee(Z,!1,!0).resolveObject(oe):oe}return e.prototype.resolveObject=function(Z){if(typeof Z=="string"){var oe=new e;oe.parse(Z,!1,!0),Z=oe}for(var W=new e,ce=Object.keys(this),ge=0;ge<ce.length;ge++){var ye=ce[ge];W[ye]=this[ye]}if(W.hash=Z.hash,Z.href==="")return W.href=W.format(),W;if(Z.slashes&&!Z.protocol){for(var Me=Object.keys(Z),Be=0;Be<Me.length;Be++){var we=Me[Be];we!=="protocol"&&(W[we]=Z[we])}return j[W.protocol]&&W.hostname&&!W.pathname&&(W.pathname="/",W.path=W.pathname),W.href=W.format(),W}if(Z.protocol&&Z.protocol!==W.protocol){if(!j[Z.protocol]){for(var qe=Object.keys(Z),xe=0;xe<qe.length;xe++){var ze=qe[xe];W[ze]=Z[ze]}return W.href=W.format(),W}if(W.protocol=Z.protocol,!Z.host&&!z[Z.protocol]){for(var It=(Z.pathname||"").split("/");It.length&&!(Z.host=It.shift()););Z.host||(Z.host=""),Z.hos
Line truncated
` ),r=(Ki().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),a=(Ki().s[10]++,this.exportName());Ki().s[11]++,EK.saveAs(r,a+".html")}async saveStyle(){Ki().f[3]++;const e=(Ki().s[12]++,this.tokenizedStyle());if(Ki().s[13]++,OK)Ki().b[2][1]++;else{Ki().b[2][0]++;const r=(Ki().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),a=(Ki().s[15]++,this.exportName());Ki().s[16]++,EK.saveAs(r,a+".json"),Ki().s[17]++;return}let t=(Ki().s[18]++,this.props.fileHandle);if(Ki().s[19]++,t==null)if(Ki().b[3][0]++,Ki().s[20]++,t=await this.createFileHandle(),Ki().s[21]++,this.props.onSetFileHandle(t),Ki().s[22]++,t==null){Ki().b[4][0]++,Ki().s[23]++;return}else Ki().b[4][1]++;else Ki().b[3][1]++;const i=(Ki().s[24]++,await t.createWritable());Ki().s[25]++,await i.write(e),Ki().s[26]++,await i.close(),Ki().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ki().f[4]++;const e=(Ki().s[28]++,this.tokenizedStyle()),t=(Ki().s[29]++,await this.createFileHandle());if(Ki().s[30]++,this.props.onSetFileHandle(t),Ki().s[31]++,t==null){Ki().b[5][0]++,Ki().s[32]++;return}else Ki().b[5][1]++;const i=(Ki().s[33]++,await t.createWritable());Ki().s[34]++,await i.write(e),Ki().s[35]++,await i.close(),Ki().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ki().f[5]++;const e=(Ki().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ki().s[38]++,await window.showSaveFilePicker(e));return Ki().s[39]++,this.props.onSetFileHandle(t),Ki().s[40]++,t}changeMetadataProperty(e,t){Ki().f[6]++;const i=(Ki().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ki().s[42]++,this.props.onStyleChanged(i)}render(){Ki().f[7]++;const e=(Ki().s[43]++,this.props.t),t=(Ki().s[44]++,sj(e));return Ki().s[45]++,ce.jsx(z1,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:ce.jsxs("section",{className:"maputnik-modal-section",children:[ce.jsx("h1",{children:e("Save Style")}),ce.jsx("p",{children:e("Save the JSON style to your computer.")}),ce.jsxs("div",{children:[ce.jsx(fm,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ki().b[6][0]++,this.props.mapStyle.metadata||(Ki().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),ce.jsx(fm,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ki().b[7][0]++,this.props.mapStyle.metadata||(Ki().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),ce.jsx(fm,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ki().b[8][0]++,this.props.mapStyle.metadata||(Ki().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),ce.jsx(fm,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ki().b[9][0]++,this.props.mapStyle.metadata||(Ki().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),ce.jsxs("div",{className:"maputnik-modal-export-buttons",children:[ce.jsxs(ml,{onClick:this.saveStyle.bind(this),children:[ce.jsx(B6,{}),e("Save")]}),(Ki().b[10][0]++,OK&&(Ki().b[10][1]++,ce.jsxs(ml,{onClick:this.saveStyleAs.bind(this),children:[ce.jsx(B6,{}),e("Save as")]}))),ce.jsxs(ml,{onClick:this.createHtml.bind(this),children:[ce.jsx(a $ ,{}),e("Create HTML")]})]})]})})}}const whe=(Ki().s[46]++,ss()(She));function Z_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="2e5d03b7f42a543faefa54bee9f15b9e801b91be",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAiD;AACxD,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2e5d03b7f42a543faefa54bee9f15b9e801b91be"},a=t[i]||(t[i]={});(!a[n]||a[n].hash!==e)&&(a[n]=r);var l=a[n];return Z_=function(){return l},l}Z_();Z_().s[0]++;const cj=n=>(Z_().f[0]++,Z_().s[1]++,ce.jsx(G_,{label:n.label,children:ce.jsx(ej,{...n})}));function X_(){var n="/home/runner/work/maputnik/maputnik/src/components/Field
Line truncated
` )>=0)return!1;return!0}function Te(Ye,De){var Ze;if(Ye.indent===" ")Ze=" ";else if(typeof Ye.indent=="number"&&Ye.indent>0)Ze=u e.call(Array(Ye.indent+1)," ");else return null;return{base:Ze,prev:u e.call(Array(De+1),Ze)}}function We(Ye,De){if(Ye.length===0)return"";var Ze= `
` +De.prev+De.base;return Ze+u e.call(Ye,","+Ze)+ `
` +De.prev}function dt(Ye,De){var Ze=St(Ye),g=[];if(Ze){g.length=Ye.length;for(var gt=0;gt<Ye.length;gt++)g[gt]=Kt(Ye,gt)?De(Ye[gt],Ye):""}var ht=typeof Be=="function"?Be(Ye):[],kt;if(qe){kt={};for(var it=0;it<ht.length;it++)kt[" $ "+ht[it]]=ht[it]}for(var en in Ye)Kt(Ye,en)&&(Ze&&String(Number(en))===en&&en<Ye.length||qe&&kt[" $ "+en]instanceof Symbol||(oe.call(/[^ \w $ ]/,en)?g.push(De(en,Ye)+": "+De(Ye[en],Ye)):g.push(en+": "+De(Ye[en],Ye))));if(typeof Be=="function")for(var Dn=0;Dn<ht.length;Dn++)ze.call(Ye,ht[Dn])&&g.push("["+De(ht[Dn])+"]: "+De(Ye[ht[Dn]],Ye));return g}return fE}var mE,KK;function Ade(){if(KK)return mE;KK=1;var n=Z2(),e=eC(),t=function(o,m,C){for(var S=o,O;(O=S.next)!=null;S=O)if(O.key===m)return S.next=O.next,C||(O.next=o.next,o.next=O),O},i=function(o,m){if(o){var C=t(o,m);return C&&C.value}},r=function(o,m,C){var S=t(o,m);S?S.value=C:o.next={key:m,next:o.next,value:C}},a=function(o,m){return o?!!t(o,m):!1},l=function(o,m){if(o)return t(o,m,!0)};return mE=function(){var m,C={assert:function(S){if(!C.has(S))throw new e("Side channel does not contain "+n(S))},delete:function(S){var O=m&&m.next,U=l(m,S);return U&&O&&O===U&&(m=void 0),!!U},get:function(S){return i(m,S)},has:function(S){return a(m,S)},set:function(S,O){m||(m={next:void 0}),r(m,S,O)}};return C},mE}var pE,UK;function pj(){return UK||(UK=1,pE=Object),pE}var gE,LK;function ude(){return LK||(LK=1,gE=Error),gE}var yE,FK;function cde(){return FK||(FK=1,yE=EvalError),yE}var vE,zK;function hde(){return zK||(zK=1,vE=RangeError),vE}var CE,NK;function dde(){return NK||(NK=1,CE=ReferenceError),CE}var _E,GK;function fde(){return GK||(GK=1,_E=SyntaxError),_E}var bE,jK;function mde(){return jK||(jK=1,bE=URIError),bE}var xE,WK;function pde(){return WK||(WK=1,xE=Math.abs),xE}var ME,QK;function gde(){return QK||(QK=1,ME=Math.floor),ME}var SE,YK;function yde(){return YK||(YK=1,SE=Math.max),SE}var wE,qK;function vde(){return qK||(qK=1,wE=Math.min),wE}var EE,HK;function Cde(){return HK||(HK=1,EE=Math.pow),EE}var BE,VK;function _de(){return VK||(VK=1,BE=Math.round),BE}var OE, $ K;function bde(){return $ K||( $ K=1,OE=Number.isNaN||function(e){return e!==e}),OE}var IE,ZK;function xde(){if(ZK)return IE;ZK=1;var n=bde();return IE=function(t){return n(t)||t===0?t:t<0?-1:1},IE}var TE,XK;function Mde(){return XK||(XK=1,TE=Object.getOwnPropertyDescriptor),TE}var kE,JK;function gj(){if(JK)return kE;JK=1;var n=Mde();if(n)try{n([],"length")}catch{n=null}return kE=n,kE}var DE,eU;function Sde(){if(eU)return DE;eU=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return DE=n,DE}var RE,tU;function wde(){return tU||(tU=1,RE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}),RE}var PE,nU;function Ede(){if(nU)return PE;nU=1;var n=typeof Symbol<"u"&&Symbol,e=wde();return PE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},PE}var KE,iU;function yj(){return iU||(iU=1,KE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),KE}var UE,rU;function vj(){if(rU)return UE;rU=1;var n=pj();return UE=n.getPrototypeOf||null,UE}var LE,oU;function Bde(){if(oU)return LE;oU=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(m,C){for(var S=[],O=0;O<m.length;O+=1)S[O]=m[O];for(var U=0;U<C.length;U+=1)S[U+m.length]=C[U];return S},a=function(m,C){for(var S=[],O=C,U=0;O<m.length;O+=1,U+=1)S[U]=m[O];return S},l=function(o,m){for(var C="",S=0;S<o.length;S+=1)C+=o[S],S+1<o.length&&(C+=m);return C};return LE=function(m){var C=this;if(typeof C!="function"||e.apply(C)!==i)throw new TypeError(n+C);for(var S=a(arguments,1),O,U=function(){if(this instanceof O){var ee=C.apply(this,r(S,arguments));return Object(ee)===ee?ee:this}return C.apply(m,r(S,arguments))},K=t(0,C.length-S.length),z=[],j=0;j<K;j++)z[j]=" $ "+j;if(O=Function("binder","return function ("+l(z,",")+"){ return binder.apply(this,arguments); }")(U),C.prototype){var Q=function(){};Q.prototype=C.prototype,O.prototype=new Q,Q.prototype=null}return O},LE}var FE,aU;function X2(){if(aU)return FE;aU=1;var n=Bde();return FE=Function.prototype.bind||n,FE}var zE,sU;function n7(){return sU||(sU=1,zE=Function.prototype.call),zE}var NE,lU;functi
Line truncated
` ," "],l=["{","}","|"," \\ ","^"," ` "].concat(a),o=[" '"].concat(l),m=["%","/","?",";","#"].concat(o),C=["/","?","#"],S=255,O=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Q=Lde();function ee(Z,oe,W){if(Z&&typeof Z=="object"&&Z instanceof e)return Z;var ue=new e;return ue.parse(Z,oe,W),ue}e.prototype.parse=function(Z,oe,W){if(typeof Z!="string")throw new TypeError("Parameter ' url ' must be a string , not "+typeof Z);var ue=Z.indexOf(" ? "),ge=ue!==-1&&ue<Z.indexOf(" # ")?" ? ":" # ",ye=Z.split(ge),Me=/\\/g;ye[0]=ye[0].replace(Me," / "),Z=ye.join(ge);var Be=Z;if(Be=Be.trim(),!W&&Z.split(" # ").length===1){var we=r.exec(Be);if(we)return this.path=Be,this.href=Be,this.pathname=we[1],we[2]?(this.search=we[2],oe?this.query=Q.parse(this.search.substr(1)):this.query=this.search.substr(1)):oe&&(this.search=" ",this.query={}),this}var qe=t.exec(Be);if(qe){qe=qe[0];var xe=qe.toLowerCase();this.protocol=xe,Be=Be.substr(qe.length)}if(W||qe||Be.match(/^\/\/[^@/]+@[^@/]+/)){var ze=Be.substr(0,2)===" //";ze&&!(qe&&z[qe])&&(Be=Be.substr(2),this.slashes=!0)}if(!z[qe]&&(ze||qe&&!j[qe])){for(var ot=-1,yt=0;yt<C.length;yt++){var nt=Be.indexOf(C[yt]);nt!==-1&&(ot===-1||nt<ot)&&(ot=nt)}var be,Ne;ot===-1?Ne=Be.lastIndexOf("@"):Ne=Be.lastIndexOf("@",ot),Ne!==-1&&(be=Be.slice(0,Ne),Be=Be.slice(Ne+1),this.auth=decodeURIComponent(be)),ot=-1;for(var yt=0;yt<m.length;yt++){var nt=Be.indexOf(m[yt]);nt!==-1&&(ot===-1||nt<ot)&&(ot=nt)}ot===-1&&(ot=Be.length),this.host=Be.slice(0,ot),Be=Be.slice(ot),this.parseHost(),this.hostname=this.hostname||"";var tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!tt)for(var lt=this.hostname.split(/\./),yt=0,It=lt.length;yt<It;yt++){var pt=lt[yt];if(pt&&!pt.match(O)){for(var St="",Rt=0,Le=pt.length;Rt<Le;Rt++)pt.charCodeAt(Rt)>127?St+="x":St+=pt[Rt];if(!St.match(O)){var Pe=lt.slice(0,yt),Re=lt.slice(yt+1),He=pt.match(U);He&&(Pe.push(He[1]),Re.unshift(He[2])),Re.length&&(Be="/"+Re.join(".")+Be),this.hostname=Pe.join(".");break}}}this.hostname.length>S?this.hostname="":this.hostname=this.hostname.toLowerCase(),tt||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",vt=this.hostname||"";this.host=vt+bt,this.href+=this.host,tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Be[0]!=="/"&&(Be="/"+Be))}if(!K[xe])for(var yt=0,It=o.length;yt<It;yt++){var Ot=o[yt];if(Be.indexOf(Ot)!==-1){var qt=encodeURIComponent(Ot);qt===Ot&&(qt=escape(Ot)),Be=Be.split(Ot).join(qt)}}var Kt=Be.indexOf("#");Kt!==-1&&(this.hash=Be.substr(Kt),Be=Be.slice(0,Kt));var on=Be.indexOf("?");if(on!==-1?(this.search=Be.substr(on),this.query=Be.substr(on+1),oe&&(this.query=Q.parse(this.query)),Be=Be.slice(0,on)):oe&&(this.search="",this.query={}),Be&&(this.pathname=Be),j[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",Jn=this.search||"";this.path=bt+Jn}return this.href=this.format(),this};function V(Z){return typeof Z=="string"&&(Z=ee(Z)),Z instanceof e?Z.format():e.prototype.format.call(Z)}e.prototype.format=function(){var Z=this.auth||"";Z&&(Z=encodeURIComponent(Z),Z=Z.replace(/%3A/i,":"),Z+="@");var oe=this.protocol||"",W=this.pathname||"",ue=this.hash||"",ge=!1,ye="";this.host?ge=Z+this.host:this.hostname&&(ge=Z+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ye=Q.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Me=this.search||ye&&"?"+ye||"";return oe&&oe.substr(-1)!==":"&&(oe+=":"),this.slashes||(!oe||j[oe])&&ge!==!1?(ge="//"+(ge||""),W&&W.charAt(0)!=="/"&&(W="/"+W)):ge||(ge=""),ue&&ue.charAt(0)!=="#"&&(ue="#"+ue),Me&&Me.charAt(0)!=="?"&&(Me="?"+Me),W=W.replace(/[?#]/g,function(Be){return encodeURIComponent(Be)}),Me=Me.replace("#","%23"),oe+ge+W+Me+ue};function ae(Z,oe){return ee(Z,!1,!0).resolve(oe)}e.prototype.resolve=function(Z){return this.resolveObject(ee(Z,!1,!0)).format()};function ne(Z,oe){return Z?ee(Z,!1,!0).resolveObject(oe):oe}return e.prototype.resolveObject=function(Z){if(typeof Z=="string"){var oe=new e;oe.parse(Z,!1,!0),Z=oe}for(var W=new e,ue=Object.keys(this),ge=0;ge<ue.length;ge++){var ye=ue[ge];W[ye]=this[ye]}if(W.hash=Z.hash,Z.href==="")return W.href=W.format(),W;if(Z.slashes&&!Z.protocol){for(var Me=Object.keys(Z),Be=0;Be<Me.length;Be++){var we=Me[Be];we!=="protocol"&&(W[we]=Z[we])}return j[W.protocol]&&W.hostname&&!W.pathname&&(W.pathname="/",W.path=W.pathname),W.href=W.format(),W}if(Z.protocol&&Z.protocol!==W.protocol){if(!j[Z.protocol]){for(var qe=Object.keys(Z),xe=0;xe<qe.length;xe++){var ze=qe[xe];W[ze]=Z[ze]}return W.href=W.format(),W}if(W.protocol=Z.protocol,!Z.host&&!z[Z.protocol]){for(var It=(Z.pathname||"").split("/");It.length&&!(Z.host=It.shift()););Z.host||(Z.host=""),Z.hos
Line truncated
Copyright ( c ) Microsoft Corporation . All rights reserved .
Licensed under the Apache License , Version 2.0 ( the "License" ) ; you may not use
this file except in compliance with the License . You may obtain a copy of the
@@ -981,10 +981,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /var I B=function(n,e){return I B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])},I B(n,e)};function R j(n,e){I B(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function rf e(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function of e(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),r,a=[],l;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){l={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function af e(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(of e(arguments[e]));return n}var P j=function(){function n(e,t){this.target=t,this.type=e}return n}(),sf e=function(n){R j(e,n);function e(t,i){var r=n.call(this,"error",i)||this;return r.message=t.message,r.error=t,r}return e}(P j),lf e=function(n){R j(e,n);function e(t,i,r){t===void 0&&(t=1e3),i===void 0&&(i="");var a=n.call(this,"close",r)||this;return a.wasClean=!0,a.code=t,a.reason=i,a}return e}(P j);/ * !
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /var M B=function(n,e){return M B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])},M B(n,e)};function B j(n,e){M B(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Yd e(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function qd e(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),r,a=[],l;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){l={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function Hd e(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(qd e(arguments[e]));return n}var O j=function(){function n(e,t){this.target=t,this.type=e}return n}(),Vd e=function(n){B j(e,n);function e(t,i){var r=n.call(this,"error",i)||this;return r.message=t.message,r.error=t,r}return e}(O j),$d e=function(n){B j(e,n);function e(t,i,r){t===void 0&&(t=1e3),i===void 0&&(i="");var a=n.call(this,"close",r)||this;return a.wasClean=!0,a.code=t,a.reason=i,a}return e}(O j);/ * !
* Reconnecting WebSocket
* by Pedro Ladaria < pedro . ladaria @ gmail . com >
* https : //github.com/pladaria/reconnecting-websocket
* License MIT
* / v a r A f e = f u n c t i o n ( ) { i f ( t y p e o f W e b S o c k e t < " u " ) r e t u r n W e b S o c k e t } , u f e = f u n c t i o n ( n ) { r e t u r n t y p e o f n < " u " & & ! ! n & & n . C L O S I N G = = = 2 } , C g = { m a x R e c o n n e c t i o n D e l a y : 1 e 4 , m i n R e c o n n e c t i o n D e l a y : 1 e 3 + M a t h . r a n d o m ( ) * 4 e 3 , m i n U p t i m e : 5 e 3 , r e c o n n e c t i o n D e l a y G r o w F a c t o r : 1 . 3 , c o n n e c t i o n T i m e o u t : 4 e 3 , m a x R e t r i e s : 1 / 0 , m a x E n q u e u e d M e s s a g e s : 1 / 0 } ; ( f u n c t i o n ( ) { f u n c t i o n n ( e , t , i ) { v a r r = t h i s ; i = = = v o i d 0 & & ( i = { } ) , t h i s . _ l i s t e n e r s = { e r r o r : [ ] , m e s s a g e : [ ] , o p e n : [ ] , c l o s e : [ ] } , t h i s . _ r e t r y C o u n t = - 1 , t h i s . _ s h o u l d R e c o n n e c t = ! 0 , t h i s . _ c o n n e c t L o c k = ! 1 , t h i s . _ b i n a r y T y p e = " b l o b " , t h i s . _ c l o s e C a l l e d = ! 1 , t h i s . _ m e s s a g e Q u e u e = [ ] , t h i s . o n c l o s e = n u l l , t h i s . o n e r r o r = n u l l , t h i s . o n m e s s a g e = n u l l , t h i s . o n o p e n = n u l l , t h i s . _ h a n d l e O p e n = f u n c t i o n ( a ) { r . _ d e b u g ( " o p e n e v e n t " ) ; v a r l = r . _ o p t i o n s . m i n U p t i m e , o = l = = = v o i d 0 ? C g . m i n U p t i m e : l ; c l e a r T i m e o u t ( r . _ c o n n e c t T i m e o u t ) , r . _ u p t i m e T i m e o u t = s e t T i m e o u t ( f u n c t i o n ( ) { r e t u r n r . _ a c c e p t O p e n ( ) } , o ) , r . _ w s . b i n a r y T y p e = r . _ b i n a r y T y p e , r . _ m e s s a g e Q u e u e . f o r E a c h ( f u n c t i o n ( m ) { r e t u r n r . _ w s . s e n d ( m ) } ) , r . _ m e s s a g e Q u e u e = [ ] , r . o n o p e n & & r . o n o p e n ( a ) , r . _ l i s t e n e r s . o p e n . f o r E a c h ( f u n c t i o n ( m ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , m ) } ) } , t h i s . _ h a n d l e M e s s a g e = f u n c t i o n ( a ) { r . _ d e b u g ( " m e s s a g e e v e n t " ) , r . o n m e s s a g e & & r . o n m e s s a g e ( a ) , r . _ l i s t e n e r s . m e s s a g e . f o r E a c h ( f u n c t i o n ( l ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , l ) } ) } , t h i s . _ h a n d l e E r r o r = f u n c t i o n ( a ) { r . _ d e b u g ( " e r r o r e v e n t " , a . m e s s a g e ) , r . _ d i s c o n n e c t ( v o i d 0 , a . m e s s a g e = = = " T I M E O U T " ? " t i m e o u t " : v o i d 0 ) , r . o n e r r o r & & r . o n e r r o r ( a ) , r . _ d e b u g ( " e x e c e r r o r l i s t e n e r s " ) , r . _ l i s t e n e r s . e r r o r . f o r E a c h ( f u n c t i o n ( l ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , l ) } ) , r . _ c o n n e c t ( ) } , t h i s . _ h a n d l e C l o s e = f u n c t i o n ( a ) { r . _ d e b u g ( " c l o s e e v e n t " ) , r . _ c l e a r T i m e o u t s ( ) , r . _ s h o u l d R e c o n n e c t & & r . _ c o n n e c t ( ) , r . o n c l o s e & & r . o n c l o s e ( a ) , r . _ l i s t e n e r s . c l o s e . f o r E a c h ( f u n c t i o n ( l ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , l ) } ) } , t h i s . _ u r l = e , t h i s . _ p r o t o c o l s = t , t h i s . _ o p t i o n s = i , t h i s . _ o p t i o n s . s t a r t C l o s e d & & ( t h i s . _ s h o u l d R e c o n n e c t = ! 1 ) , t h i s . _ c o n n 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 ( n , " C O N N E C T I N G " , { g e t : f u n c t i o n ( ) { r e t u r n 0 } , e n u m e r a b l e : ! 0 , 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 ( n , " O P E N " , { g e t : f u n c t i o n ( ) { r e t u r n 1 } , e n u m e r a b l e : ! 0 , 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 ( n , " C L O S I N G " , { g e t : f u n c t i o n ( ) { r e t u r n 2 } , e n u m e r a b l e : ! 0 , 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 ( n , " C L O S E D " , { g e t : f u n c t i o n ( ) { r e t u r n 3 } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " C O N N E C T I N G " , { g e t : f u n c t i o n ( ) { r e t u r n n . C O N N E C T I N G } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " O P E N " , { g e t : f u n c t i o n ( ) { r e t u r n n . O P E N } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " C L O S I N G " , { g e t : f u n c t i o n ( ) { r e t u r n n . C L O S I N G } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " C L O S E D " , { g e t : f u n c t i o n ( ) { r e t u r n n . C L O S E D } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " b i n a r y 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 . _ w s ? t h i s . _ w s . b i n a r y T y p e : t h i s . _ b i n a r y T y p e } , s e t : f u n c t i o n ( e ) { t h i s . _ b i n a r y T y p e = e , t h i s . _ w s & & ( t h i s . _ w s . b i n a r y T y p e = e ) } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " r e t r y C o u n t " , { g e t : f u n c t i o n ( ) { r e t u r n M a t h . m a x ( t h i s . _ r e t r y C o u n t , 0 ) } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " b u f f e r e d A m o u n t " , { g e t : f u n c t i o n ( ) { v a r e = t h i s . _ m e s s a g e Q u e u e . r e d u c e ( f u n c t i o n ( t , i ) { r e t u r n t y p e o f i = = " s t r i n g " ? t + = i . l e n g t h : i i n s t a n c e o f B l o b ? t + = i . s i z e : t + = i . b y t e L e n g t h , t } , 0 ) ; r e t u r n e + ( t h i s . _ w s ? t h i s . _ w s . b u f f e r e d A m o u n t : 0 ) } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " e x t e n s i o n s " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . e x t e n s i o n s : " " } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " p r o t o c o l " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . p r o t o c o l : " " } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " r e a d y S t a t e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . r e a d y S t a t e : t h i s . _ o p t i o n s . s t a r t C l o s e d ? n . C L O S E D : n . C O N N E C T I N G } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " u r l " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . u r l : " " } , e n u m e r a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } ) , n . p r o t o t y p e . c l o s e = f u n c t i o n ( e , t ) { i f ( e = = = v o i d 0 & & ( e = 1 e 3 ) , t h i s . _ c l o s e C a l l e d = ! 0 , t h i s . _ s h o u l d R e c o n n e c t = ! 1 , t h i s . _ c l e a r T i m e o u t s ( ) , ! t h i s . _ w s ) { t h i s . _ d e b u g ( " c l o s e e n q u e u e d : n o w s i n s t a n c e " ) ; r e t u r n } i f ( t h i s . _ w s . r e a d y S t a t e = = = t h i s . C L O S E D ) { t h i s . _ d e b u g ( " c l o s e : a l r e a d y c l o s e d " ) ; r e t u r n } t h i s . _ w s . c l o s e ( e , t ) } , n . p r o t o t y p e . r e c o n n e c t = f u n c t i o n ( e , t ) { t h i s . _ s h o u l d R e c o n n e c t = ! 0 , t h i s . _ c l o s e C a l l e d = ! 1 , t h i s . _ r e t r y C o u n t = - 1 , ! t h i s . _ w s | | t h i s . _ w s . r e a d y S t a t e = = = t h i s . C L O S E D ? t h i s . _ c o n n e c t ( ) : ( t h i s . _ d i s c o n n e c t ( e , t ) , t h i s . _ c o n n e c t ( ) ) } , n . p r o t o t y p e . s e n d = f u n c t i o n ( e ) { i f ( t h i s . _ w s & & t h i s . _ w s . r e a d y S t a t e = = = t h i s . O P E N ) t h i s . _ d e b u g ( " s e n d " , e ) , t h i s . _ w s . s e n d ( e ) ; e l s e { v a r t = t h i s . _ o p t i o n s . m a x E n q u e u e d M e s s a g e s , i = t = = = v o i d 0 ? C g . m a x E n q u e u e d M e s s a g e s : t ; t h i s . _ m e s s a g e Q u e u e . l e n g t h < i & & ( t h i s . _ d e b u g ( " e n q u e u e " , e ) , t h i s . _ m e s s a g e Q u e u e . p u s h ( e ) ) } } , n . p r o t o t y p e . a d d E v e n t L i s t e n e r = f u n c t i o n ( e , t ) { t h i s . _ l i s t e n e r s [ e ] & & t h i s . _ l i s t e n e r s [ e ] . p u s h ( t ) } , n . p r o t o t y p e . d i s p a t c h E v e n t = f u n c t i o n ( e ) { v a r t , i , r = t h i s . _ l i s t e n e r s [ e . t y p e ] ; i f ( r ) t r y { f o r ( v a r a = r f e ( r ) , l = a . n e x t ( ) ; ! l . d o n e ; l = a . n e x t ( ) ) { v a r o = l . v a l u e ; t h i s . _ c a l l E v e n t L i s t e n e r ( e , o ) } } c a t c h ( m ) { t = { e r r o r : m } } f i n a l l y { t r y { l & & ! l . d o n e & & ( i = a . r e t u r n ) & & i . c a l l ( a ) } f i n a l l y { i f ( t ) t h r o w t . e r r o r } } r e t u r n ! 0 } , n . p r o t o t y p e . r e m o v e E v e n t L i s t e n e r = f u n c t i o n ( e , t ) { t h i s . _ l i s t e Line truncated
//# sourceMappingURL=index-aSoDnzBO .js.map
* / v a r Z d e = f u n c t i o n ( ) { i f ( t y p e o f W e b S o c k e t < " u " ) r e t u r n W e b S o c k e t } , X d e = f u n c t i o n ( n ) { r e t u r n t y p e o f n < " u " & & ! ! n & & n . C L O S I N G = = = 2 } , C g = { m a x R e c o n n e c t i o n D e l a y : 1 e 4 , m i n R e c o n n e c t i o n D e l a y : 1 e 3 + M a t h . r a n d o m ( ) * 4 e 3 , m i n U p t i m e : 5 e 3 , r e c o n n e c t i o n D e l a y G r o w F a c t o r : 1 . 3 , c o n n e c t i o n T i m e o u t : 4 e 3 , m a x R e t r i e s : 1 / 0 , m a x E n q u e u e d M e s s a g e s : 1 / 0 } ; ( f u n c t i o n ( ) { f u n c t i o n n ( e , t , i ) { v a r r = t h i s ; i = = = v o i d 0 & & ( i = { } ) , t h i s . _ l i s t e n e r s = { e r r o r : [ ] , m e s s a g e : [ ] , o p e n : [ ] , c l o s e : [ ] } , t h i s . _ r e t r y C o u n t = - 1 , t h i s . _ s h o u l d R e c o n n e c t = ! 0 , t h i s . _ c o n n e c t L o c k = ! 1 , t h i s . _ b i n a r y T y p e = " b l o b " , t h i s . _ c l o s e C a l l e d = ! 1 , t h i s . _ m e s s a g e Q u e u e = [ ] , t h i s . o n c l o s e = n u l l , t h i s . o n e r r o r = n u l l , t h i s . o n m e s s a g e = n u l l , t h i s . o n o p e n = n u l l , t h i s . _ h a n d l e O p e n = f u n c t i o n ( a ) { r . _ d e b u g ( " o p e n e v e n t " ) ; v a r l = r . _ o p t i o n s . m i n U p t i m e , o = l = = = v o i d 0 ? C g . m i n U p t i m e : l ; c l e a r T i m e o u t ( r . _ c o n n e c t T i m e o u t ) , r . _ u p t i m e T i m e o u t = s e t T i m e o u t ( f u n c t i o n ( ) { r e t u r n r . _ a c c e p t O p e n ( ) } , o ) , r . _ w s . b i n a r y T y p e = r . _ b i n a r y T y p e , r . _ m e s s a g e Q u e u e . f o r E a c h ( f u n c t i o n ( m ) { r e t u r n r . _ w s . s e n d ( m ) } ) , r . _ m e s s a g e Q u e u e = [ ] , r . o n o p e n & & r . o n o p e n ( a ) , r . _ l i s t e n e r s . o p e n . f o r E a c h ( f u n c t i o n ( m ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , m ) } ) } , t h i s . _ h a n d l e M e s s a g e = f u n c t i o n ( a ) { r . _ d e b u g ( " m e s s a g e e v e n t " ) , r . o n m e s s a g e & & r . o n m e s s a g e ( a ) , r . _ l i s t e n e r s . m e s s a g e . f o r E a c h ( f u n c t i o n ( l ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , l ) } ) } , t h i s . _ h a n d l e E r r o r = f u n c t i o n ( a ) { r . _ d e b u g ( " e r r o r e v e n t " , a . m e s s a g e ) , r . _ d i s c o n n e c t ( v o i d 0 , a . m e s s a g e = = = " T I M E O U T " ? " t i m e o u t " : v o i d 0 ) , r . o n e r r o r & & r . o n e r r o r ( a ) , r . _ d e b u g ( " e x e c e r r o r l i s t e n e r s " ) , r . _ l i s t e n e r s . e r r o r . f o r E a c h ( f u n c t i o n ( l ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , l ) } ) , r . _ c o n n e c t ( ) } , t h i s . _ h a n d l e C l o s e = f u n c t i o n ( a ) { r . _ d e b u g ( " c l o s e e v e n t " ) , r . _ c l e a r T i m e o u t s ( ) , r . _ s h o u l d R e c o n n e c t & & r . _ c o n n e c t ( ) , r . o n c l o s e & & r . o n c l o s e ( a ) , r . _ l i s t e n e r s . c l o s e . f o r E a c h ( f u n c t i o n ( l ) { r e t u r n r . _ c a l l E v e n t L i s t e n e r ( a , l ) } ) } , t h i s . _ u r l = e , t h i s . _ p r o t o c o l s = t , t h i s . _ o p t i o n s = i , t h i s . _ o p t i o n s . s t a r t C l o s e d & & ( t h i s . _ s h o u l d R e c o n n e c t = ! 1 ) , t h i s . _ c o n n 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 ( n , " C O N N E C T I N G " , { g e t : f u n c t i o n ( ) { r e t u r n 0 } , e n u m e r a b l e : ! 0 , 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 ( n , " O P E N " , { g e t : f u n c t i o n ( ) { r e t u r n 1 } , e n u m e r a b l e : ! 0 , 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 ( n , " C L O S I N G " , { g e t : f u n c t i o n ( ) { r e t u r n 2 } , e n u m e r a b l e : ! 0 , 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 ( n , " C L O S E D " , { g e t : f u n c t i o n ( ) { r e t u r n 3 } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " C O N N E C T I N G " , { g e t : f u n c t i o n ( ) { r e t u r n n . C O N N E C T I N G } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " O P E N " , { g e t : f u n c t i o n ( ) { r e t u r n n . O P E N } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " C L O S I N G " , { g e t : f u n c t i o n ( ) { r e t u r n n . C L O S I N G } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " C L O S E D " , { g e t : f u n c t i o n ( ) { r e t u r n n . C L O S E D } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " b i n a r y 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 . _ w s ? t h i s . _ w s . b i n a r y T y p e : t h i s . _ b i n a r y T y p e } , s e t : f u n c t i o n ( e ) { t h i s . _ b i n a r y T y p e = e , t h i s . _ w s & & ( t h i s . _ w s . b i n a r y T y p e = e ) } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " r e t r y C o u n t " , { g e t : f u n c t i o n ( ) { r e t u r n M a t h . m a x ( t h i s . _ r e t r y C o u n t , 0 ) } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " b u f f e r e d A m o u n t " , { g e t : f u n c t i o n ( ) { v a r e = t h i s . _ m e s s a g e Q u e u e . r e d u c e ( f u n c t i o n ( t , i ) { r e t u r n t y p e o f i = = " s t r i n g " ? t + = i . l e n g t h : i i n s t a n c e o f B l o b ? t + = i . s i z e : t + = i . b y t e L e n g t h , t } , 0 ) ; r e t u r n e + ( t h i s . _ w s ? t h i s . _ w s . b u f f e r e d A m o u n t : 0 ) } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " e x t e n s i o n s " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . e x t e n s i o n s : " " } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " p r o t o c o l " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . p r o t o c o l : " " } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " r e a d y S t a t e " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . r e a d y S t a t e : t h i s . _ o p t i o n s . s t a r t C l o s e d ? n . C L O S E D : n . C O N N E C T I N G } , e n u m e r a b l e : ! 0 , 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 ( n . p r o t o t y p e , " u r l " , { g e t : f u n c t i o n ( ) { r e t u r n t h i s . _ w s ? t h i s . _ w s . u r l : " " } , e n u m e r a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } ) , n . p r o t o t y p e . c l o s e = f u n c t i o n ( e , t ) { i f ( e = = = v o i d 0 & & ( e = 1 e 3 ) , t h i s . _ c l o s e C a l l e d = ! 0 , t h i s . _ s h o u l d R e c o n n e c t = ! 1 , t h i s . _ c l e a r T i m e o u t s ( ) , ! t h i s . _ w s ) { t h i s . _ d e b u g ( " c l o s e e n q u e u e d : n o w s i n s t a n c e " ) ; r e t u r n } i f ( t h i s . _ w s . r e a d y S t a t e = = = t h i s . C L O S E D ) { t h i s . _ d e b u g ( " c l o s e : a l r e a d y c l o s e d " ) ; r e t u r n } t h i s . _ w s . c l o s e ( e , t ) } , n . p r o t o t y p e . r e c o n n e c t = f u n c t i o n ( e , t ) { t h i s . _ s h o u l d R e c o n n e c t = ! 0 , t h i s . _ c l o s e C a l l e d = ! 1 , t h i s . _ r e t r y C o u n t = - 1 , ! t h i s . _ w s | | t h i s . _ w s . r e a d y S t a t e = = = t h i s . C L O S E D ? t h i s . _ c o n n e c t ( ) : ( t h i s . _ d i s c o n n e c t ( e , t ) , t h i s . _ c o n n e c t ( ) ) } , n . p r o t o t y p e . s e n d = f u n c t i o n ( e ) { i f ( t h i s . _ w s & & t h i s . _ w s . r e a d y S t a t e = = = t h i s . O P E N ) t h i s . _ d e b u g ( " s e n d " , e ) , t h i s . _ w s . s e n d ( e ) ; e l s e { v a r t = t h i s . _ o p t i o n s . m a x E n q u e u e d M e s s a g e s , i = t = = = v o i d 0 ? C g . m a x E n q u e u e d M e s s a g e s : t ; t h i s . _ m e s s a g e Q u e u e . l e n g t h < i & & ( t h i s . _ d e b u g ( " e n q u e u e " , e ) , t h i s . _ m e s s a g e Q u e u e . p u s h ( e ) ) } } , n . p r o t o t y p e . a d d E v e n t L i s t e n e r = f u n c t i o n ( e , t ) { t h i s . _ l i s t e n e r s [ e ] & & t h i s . _ l i s t e n e r s [ e ] . p u s h ( t ) } , n . p r o t o t y p e . d i s p a t c h E v e n t = f u n c t i o n ( e ) { v a r t , i , r = t h i s . _ l i s t e n e r s [ e . t y p e ] ; i f ( r ) t r y { f o r ( v a r a = Y d e ( r ) , l = a . n e x t ( ) ; ! l . d o n e ; l = a . n e x t ( ) ) { v a r o = l . v a l u e ; t h i s . _ c a l l E v e n t L i s t e n e r ( e , o ) } } c a t c h ( m ) { t = { e r r o r : m } } f i n a l l y { t r y { l & & ! l . d o n e & & ( i = a . r e t u r n ) & & i . c a l l ( a ) } f i n a l l y { i f ( t ) t h r o w t . e r r o r } } r e t u r n ! 0 } , n . p r o t o t y p e . r e m o v e E v e n t L i s t e n e r = f u n c t i o n ( e , t ) { t h i s . _ l i s t e Line truncated
//# sourceMappingURL=index-BIbB1_sK .js.map