nl_tokens: Get a cookie value .
pl_tokens: function get ( key , <mask> ) { var i , parts , name , cookie ; var result = key ? undefined : { } ; /* istanbul ignore next */ var cookies = ( document . cookie || '' ) . split ( '; ' ) ; for ( i = 0 ; i < cookies . length ; i ++ ) { parts = cookies [ i ] . split ( '=' ) ; name = this . decode ( parts . shift ( ) ) ; cookie = parts . join ( '=' ) ; if ( key && key === name ) { // if second argument (value) is a function it's a converter result = this . read ( cookie , value ) ; break ; } // prevent storing a cookie that we couldn't decode if ( ! key && ( cookie = this . read ( cookie ) ) !== undefined ) { result [ name ] = cookie ; } } return result ; }