<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">define(['jquery'], function($){
    var sideMenu = $('.side_menu');
    sideMenu.find('.m_con li').each(function(){
        var self        = $(this),
            uls         = self.find('ul'),
            arrow       = $('&lt;b&gt;').addClass('arr').html('&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;'),
            opaActive   = function(e){
                if(e.is(':visible')){
                    e.parent('li').addClass('active');
                }else{
                    e.parent('li').removeClass('active');
                }
            };
        
        if(self.parent('ul').parent('div').length){
            arrow.prependTo(self);
        }else{
            if(self.find('ul').length){
                arrow.prependTo(self);
            }
        }
        
        opaActive(uls);
        
        self.on('click', '&gt;a', function(){
            var theUls = $(this).next('ul');
            if(theUls.length){
                if(theUls.is(':visible')){
                    theUls.hide();
                }else{
                    theUls.show();
                }
                opaActive(theUls);
            }
        });
    });
    
    var location = $('.location'),
        mobileSildeMenu = location.find('.m_side_menu');
    mobileSildeMenu.on('click', function(){
        var msm = location.next('.side_menu');
        if(msm.length){
            msm.remove();
        }else{
            sideMenu.clone(true).insertAfter(location).show();
        }
    });
    
    $(window).resize(function(){
        if($(window).width() &gt;= 686){
            if(location.next('.side_menu').length){
                location.next('.side_menu').remove();
            }
        }
    }).resize();
});</pre></body></html>