/* to define device is mobile */
;(function ($, _, undefined)
{
	'use strict';

	var sUserAgent = window.navigator.userAgent || window.navigator.vendor || window.opera,
		isIOS = /iPhone|iPad|iPod/i.test(sUserAgent),
		isAndroid = /Android/i.test(sUserAgent),
		isMobile = /webOS|BlackBerry|IEMobile|Opera Mini/i.test(sUserAgent);

	_.isMobile = isIOS || isAndroid || isMobile;
	_.isAndroid = isAndroid;
	_.isIOS = isIOS;
	_.isTouchable = ('ontouchstart' in window) ||
		(window.DocumentTouch && document instanceof DocumentTouch) ||
		window.navigator.maxTouchPoints;

	_.isIE = !!(document.all && document.compatMode) || window.navigator.msPointerEnabled;
})(window.jQuery, window._);

/* to define device is mobile */
;(function ($, _, undefined)
{
	'use strict';

	var sUserAgent = window.navigator.userAgent || window.navigator.vendor || window.opera,
		isIOS = /iPhone|iPad|iPod/i.test(sUserAgent),
		isAndroid = /Android/i.test(sUserAgent),
		isMobile = /webOS|BlackBerry|IEMobile|Opera Mini/i.test(sUserAgent);

	_.isMobile = isIOS || isAndroid || isMobile;

	// test for iPadOS 13
	if (!_.isMobile && /Macintosh/i.test(sUserAgent) && /Intel Mac/i.test(sUserAgent) && /Version\/13/i.test(sUserAgent))
	{
		isIOS = true;
		_.isMobile = true;
	}

	_.isAndroid = isAndroid;
	_.isIOS = isIOS;
	_.isTouchable = ('ontouchstart' in window) ||
		(window.DocumentTouch && document instanceof DocumentTouch) ||
		window.navigator.maxTouchPoints;

	_.isIE = !!(document.all && document.compatMode) || window.navigator.msPointerEnabled;
})(window.jQuery, window._);

add detection of iPadOS 13