diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c522d4..b0b47c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## 1.3.6 +- Update private browsing detection + ## 1.3.5 - Update user agent string regular expression in getUserAgent method of Restive class diff --git a/bower.json b/bower.json index 57dfc75..bef425f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "restive", - "version": "1.3.4", + "version": "1.3.6", "homepage": "https://github.com/obihill/restive.js", "authors": [ "Obinwanne Hill " diff --git a/restive.jquery.json b/restive.jquery.json index ad6cca9..5a7d926 100644 --- a/restive.jquery.json +++ b/restive.jquery.json @@ -1,6 +1,6 @@ { "name": "restive", - "version": "1.3.4", + "version": "1.3.6", "title": "Restive.JS", "author": { "name": "Obinwanne Hill", diff --git a/restive.js b/restive.js index 3c79314..47ccd24 100644 --- a/restive.js +++ b/restive.js @@ -612,7 +612,7 @@ function microtime (get_as_float) { return MD5_hexhash(s); } })(); - + /*! json2.js | @link https://github.com/douglascrockford/JSON-js | @copyright Douglas Crockford */ // Create a JSON object only if one does not already exist. We create the @@ -1291,7 +1291,7 @@ if (typeof JSON !== 'object') { })( this ); - + /*! jQuery resize event - v1.1 | @link http://benalman.com/projects/jquery-resize-plugin/ | Copyright (c) 2010 "Cowboy" Ben Alman | @license MIT/GPL */ // Script: jQuery resize event // @@ -1917,7 +1917,7 @@ function getUrl() })(jQuery); - + /*! Restive.JS | @copyright 2013 Obinwanne Hill */ var Restive = (function(window, document, $) { @@ -2132,7 +2132,10 @@ var Restive = (function(window, document, $) { } catch (e) { - if (/QUOTA_?EXCEEDED/i.test(e.name)) { + var is_local_storage_notset_bool = /localStorage.*?(undefined|denied|null)|setItem.*?(undefined|null)|security *error.*?dom +exception +18/i.test(e.message); + var is_quota_exceeded_bool = /quota.*?(exceeded|reached)/i.test(e.name); + + if (is_local_storage_notset_bool || is_quota_exceeded_bool) { return true; } } @@ -2231,7 +2234,7 @@ var Restive = (function(window, document, $) { } catch(e){ alert(e); - + console.log(e); } } @@ -4565,7 +4568,7 @@ var Restive = (function(window, document, $) { return Restive; })(window, document, jQuery); - + /* * Restive.JS Plugin v1.3.3 * http://restivejs.com diff --git a/restive.min.js b/restive.min.js index 9c96bc9..99abd40 100644 --- a/restive.min.js +++ b/restive.min.js @@ -1,16 +1,2 @@ -/*! - * Restive.JS v1.3.5 - * http://restivejs.com - * - * Copyright 2015 Obinwanne Hill - * Released under MIT License -*/ -/*! PHP-JS | @link https://github.com/kvz/phpjs | @copyright Kevin van Zonneveld | @license MIT and GPL */ -function count(a,b){var c,d=!1,e=0;switch(!0){case null===a||"undefined"==typeof a:return 0;case!isArray(a)&&!isObject(a):d=!0}switch(!0){case a.hasOwnProperty("length"):return a.length}switch(!0){case d:return 1}switch(!0){case"COUNT_RECURSIVE"===b:b=1}switch(!0){case 1!=b:b=0}for(c in a)switch(!0){case a.hasOwnProperty(c):switch(e++,!0){case 1==b&&a[c]&&(isArray(a[c])||isObject(a[c])):e+=this.count(a[c],1)}}return e}function in_array(a,b,c){var d="",e=!!c;if(e){for(d in b)if(b[d]===a)return!0}else for(d in b)if(b[d]==a)return!0;return!1}function array_search(a,b,c){var d=!!c,e="";if(b&&"object"==typeof b&&b.change_key_case)return b.search(a,c);if("object"==typeof a&&a.exec){if(!d){var f="i"+(a.global?"g":"")+(a.multiline?"m":"")+(a.sticky?"y":"");a=new RegExp(a.source,f)}for(e in b)if(a.test(b[e]))return e;return!1}for(e in b)if(d&&b[e]===a||!d&&b[e]==a)return e;return!1}function array_keys(a,b,c){var d="undefined"!=typeof b,e=[],f=!!c,g=!0,h="";if(a&&"object"==typeof a&&a.change_key_case)return a.keys(b,c);for(h in a)a.hasOwnProperty(h)&&(g=!0,d&&(f&&a[h]!==b?g=!1:a[h]!=b&&(g=!1)),g&&(e[e.length]=h));return e}function array_values(a){var b=[],c="";if(a&&"object"==typeof a&&a.change_key_case)return a.values();for(c in a)b[b.length]=a[c];return b}function array_combine(a,b){var c={},d=a&&a.length,e=0;if("object"!=typeof a||"object"!=typeof b||"number"!=typeof d||"number"!=typeof b.length||!d)return!1;if(d!=b.length)return!1;for(e=0;d>e;e++)c[a[e]]=b[e];return c}function implode(a,b){var c=Array.prototype.slice.call(arguments),d=c[2],e="",f="",g="";if(1===arguments.length&&(b=a,a=""),"object"==typeof b){if(d)for(e=0;e0?c>=d.length?d:d.slice(0,c-1).concat([d.slice(c-1).join(a)]):-c>=d.length?[]:(d.splice(d.length+c),d))}function urlencode(a){return a=(a+"").toString(),encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function strrpos(a,b,c){var d=-1;return c?(d=(a+"").slice(c).lastIndexOf(b),-1!==d&&(d+=c)):d=(a+"").lastIndexOf(b),d>=0?d:!1}function uasort(a,b){var c=[],d="",e=0,f=!1,g={};"string"==typeof b?b=this[b]:"[object Array]"===Object.prototype.toString.call(b)&&(b=this[b[0]][b[1]]),this.php_js=this.php_js||{},this.php_js.ini=this.php_js.ini||{},f=this.php_js.ini["phpjs.strictForIn"]&&this.php_js.ini["phpjs.strictForIn"].local_value&&"off"!==this.php_js.ini["phpjs.strictForIn"].local_value,g=f?a:g;for(d in a)a.hasOwnProperty(d)&&(c.push([d,a[d]]),f&&delete a[d]);for(c.sort(function(a,c){return b(a[1],c[1])}),e=0;eh;h++)b=parseInt(e[h]),f.push(b);return g=array_combine(d,f)}function arrayHasDuplicates(a){for(var b={},c=count(a),d=0;c>d;++d){var e=a[d];if(Object.prototype.hasOwnProperty.call(b,e))return!0;b[e]=!0}return!1}function getValueAfterExplode(a,b,c){var d=explode(b,a);return d[c]}function getSortedKeys(a){for(var b=[],c=0;cb.value?1:0});for(var d=[],c=0;ce:i=j>=f?!1:i,d=i?d+1:d}return e=a[d],h?d:e}function isEvenDecimal(a){var b,c,d=Array.prototype.slice.call(arguments),e=isBool(d[1])?d[1]:!1;switch(b=0>a&&e?-1*a:a,c=b%1,!0){case!isNumber(b)||1>b||0==c:return!1}return b=Math.floor(b),c=b%2,!(0!=c)}function getUrl(){var a,b=Array.prototype.slice.call(arguments),c=isString(b[0])&&""!=b[0]?b[0]:"",d=isString(b[1])&&""!=b[1]?b[1]:document.URL,e=[],f=/\?+/.test(d),g=d.match(/^([h|f]{1}[t]{0,1}tp[s]{0,1}\:\/\/)([^ ]+?)\?([^ ]*)/i);switch(!0){case"basepath"==c||"bp"==c:return f?g[1]+g[2]:d;case"basedir"==c||"bd"==c:return a=f?g[1]+g[2]:d,e=explode("/",a),e.pop(),implode("/",e);case"query"==c||"q"==c:return f?g[3]:"";default:return d}}/*! md5.js - MD5 Message-Digest - v2.0.0 | @copyright 1999,2002 Masanao Izumo */ -!function(){function a(a,b,c){return a&b|~a&c}function b(a,b,c){return a&c|b&~c}function c(a,b,c){return a^b^c}function d(a,b,c){return b^(a|~c)}function e(a){return String.fromCharCode(255&a)+String.fromCharCode(a>>>8&255)+String.fromCharCode(a>>>16&255)+String.fromCharCode(a>>>24&255)}function f(a){for(;0>a;)a+=4294967296;for(;a>4294967295;)a-=4294967296;return a}function g(a,b,c,d,e){var g,h,i,j,l,m,n,o,p;g=d[0],h=d[1],i=d[2],j=d[3],l=e[0],m=e[1],n=e[2],p=c(b[h],b[i],b[j]),o=b[g]+p+a[l]+k[n],o=f(o),o=o<>>32-m,o+=b[h],b[g]=f(o)}function h(a){for(var b,c=-1,d=(a=a.split("")).length,e=String.fromCharCode;++c=127?e(192|b>>>6)+e(128|63&b):a[c]);return a.join("")}function i(a){var b,c,d,i,j,k,l,m,n,o,q,r,s;if(/[\x80-\xFF]/.test(a)&&(a=h(a)),d=new Array(1732584193,4023233417,2562383102,271733878),j=a.length,k=63&j,l=56>k?56-k:120-k,l>0)for(a+="€",o=0;l-1>o;o++)a+="\x00";for(a+=e(8*j),a+=e(0),j+=l+8,b=new Array(0,1,2,3),c=new Array(16),i=new Array(4),r=0;j>r;r+=64){for(o=0,q=r;16>o;o++,q+=4)c[o]=a.charCodeAt(q)|a.charCodeAt(q+1)<<8|a.charCodeAt(q+2)<<16|a.charCodeAt(q+3)<<24;for(o=0;4>o;o++)i[o]=d[o];for(o=0;4>o;o++)for(m=p[o][0],n=p[o][1],q=0;16>q;q++)g(c,i,m,b,n[q]),s=b[0],b[0]=b[3],b[3]=b[2],b[2]=b[1],b[1]=s;for(o=0;4>o;o++)d[o]+=i[o],d[o]=f(d[o])}return e(d[0])+e(d[1])+e(d[2])+e(d[3])}function j(a){var b,c,d,e;for(e=i(a),c="",b=0;16>b;b++)d=e.charCodeAt(b),c+="0123456789abcdef".charAt(d>>4&15),c+="0123456789abcdef".charAt(15&d);return c}var k=new Array(0,3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745),l=new Array(new Array(0,7,1),new Array(1,12,2),new Array(2,17,3),new Array(3,22,4),new Array(4,7,5),new Array(5,12,6),new Array(6,17,7),new Array(7,22,8),new Array(8,7,9),new Array(9,12,10),new Array(10,17,11),new Array(11,22,12),new Array(12,7,13),new Array(13,12,14),new Array(14,17,15),new Array(15,22,16)),m=new Array(new Array(1,5,17),new Array(6,9,18),new Array(11,14,19),new Array(0,20,20),new Array(5,5,21),new Array(10,9,22),new Array(15,14,23),new Array(4,20,24),new Array(9,5,25),new Array(14,9,26),new Array(3,14,27),new Array(8,20,28),new Array(13,5,29),new Array(2,9,30),new Array(7,14,31),new Array(12,20,32)),n=new Array(new Array(5,4,33),new Array(8,11,34),new Array(11,16,35),new Array(14,23,36),new Array(1,4,37),new Array(4,11,38),new Array(7,16,39),new Array(10,23,40),new Array(13,4,41),new Array(0,11,42),new Array(3,16,43),new Array(6,23,44),new Array(9,4,45),new Array(12,11,46),new Array(15,16,47),new Array(2,23,48)),o=new Array(new Array(0,6,49),new Array(7,10,50),new Array(14,15,51),new Array(5,21,52),new Array(12,6,53),new Array(3,10,54),new Array(10,15,55),new Array(1,21,56),new Array(8,6,57),new Array(15,10,58),new Array(6,15,59),new Array(13,21,60),new Array(4,6,61),new Array(11,10,62),new Array(2,15,63),new Array(9,21,64)),p=new Array(new Array(a,l),new Array(b,m),new Array(c,n),new Array(d,o));md5=function(a){return j(a)}}(),/*! json2.js | @link https://github.com/douglascrockford/JSON-js | @copyright Douglas Crockford */ -"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(a){return 10>a?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return"string"==typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g,h=gap,i=b[a];switch(i&&"object"==typeof i&&"function"==typeof i.toJSON&&(i=i.toJSON(a)),"function"==typeof rep&&(i=rep.call(b,a,i)),typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";if(gap+=indent,g=[],"[object Array]"===Object.prototype.toString.apply(i)){for(f=i.length,c=0;f>c;c+=1)g[c]=str(c,i)||"null";return e=0===g.length?"[]":gap?"[\n"+gap+g.join(",\n"+gap)+"\n"+h+"]":"["+g.join(",")+"]",gap=h,e}if(rep&&"object"==typeof rep)for(f=rep.length,c=0;f>c;c+=1)"string"==typeof rep[c]&&(d=rep[c],e=str(d,i),e&&g.push(quote(d)+(gap?": ":":")+e));else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&g.push(quote(d)+(gap?": ":":")+e));return e=0===g.length?"{}":gap?"{\n"+gap+g.join(",\n"+gap)+"\n"+h+"}":"{"+g.join(",")+"}",gap=h,e}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(a,b,c){var d;if(gap="",indent="","number"==typeof c)for(d=0;c>d;d+=1)indent+=" ";else"string"==typeof c&&(indent=c);if(rep=b,b&&"function"!=typeof b&&("object"!=typeof b||"number"!=typeof b.length))throw new Error("JSON.stringify");return str("",{"":a})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&"object"==typeof e)for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),void 0!==d?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),/*! AmplifyJS-Store - v1.1.0 | @link http://amplifyjs.com/api/store/ | @copyright 2012 AppendTo | @license MIT and GPL V2 */ -function(a,b){function c(a,c){d.addType(a,function(f,g,h){var i,j,k,l,m=g,n=(new Date).getTime();if(!f){m={},l=[],k=0;try{for(f=c.length;f=c.key(k++);)e.test(f)&&(j=JSON.parse(c.getItem(f)),j.expires&&j.expires<=n?l.push(f):m[f.replace(e,"")]=j.data);for(;f=l.pop();)c.removeItem(f)}catch(o){}return m}if(f="__amplify__"+f,g===b){if(i=c.getItem(f),j=i?JSON.parse(i):{expires:-1},!(j.expires&&j.expires<=n))return j.data;c.removeItem(f)}else if(null===g)c.removeItem(f);else{j=JSON.stringify({data:g,expires:h.expires?n+h.expires:null});try{c.setItem(f,j)}catch(o){d[a]();try{c.setItem(f,j)}catch(o){throw d.error()}}}return m})}var d=a.store=function(a,b,c){var e=d.type;return c&&c.type&&c.type in d.types&&(e=c.type),d.types[e](a,b,c||{})};d.types={},d.type=null,d.addType=function(a,b){d.type||(d.type=a),d.types[a]=b,d[a]=function(b,c,e){return e=e||{},e.type=a,d(b,c,e)}},d.error=function(){return"amplify.store quota exceeded"};var e=/^__amplify__/;for(var f in{localStorage:1,sessionStorage:1})try{window[f].setItem("__amplify__","x"),window[f].removeItem("__amplify__"),c(f,window[f])}catch(g){}if(!d.types.localStorage&&window.globalStorage)try{c("globalStorage",window.globalStorage[window.location.hostname]),"sessionStorage"===d.type&&(d.type="globalStorage")}catch(g){}!function(){if(!d.types.localStorage){var a=document.createElement("div"),c="amplify";a.style.display="none",document.getElementsByTagName("head")[0].appendChild(a);try{a.addBehavior("#default#userdata"),a.load(c)}catch(e){return void a.parentNode.removeChild(a)}d.addType("userData",function(e,f,g){a.load(c);var h,i,j,k,l,m=f,n=(new Date).getTime();if(!e){for(m={},l=[],k=0;h=a.XMLDocument.documentElement.attributes[k++];)i=JSON.parse(h.value),i.expires&&i.expires<=n?l.push(h.name):m[h.name]=i.data;for(;e=l.pop();)a.removeAttribute(e);return a.save(c),m}if(e=e.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),e=e.replace(/^-/,"_-"),f===b){if(h=a.getAttribute(e),i=h?JSON.parse(h):{expires:-1},!(i.expires&&i.expires<=n))return i.data;a.removeAttribute(e)}else null===f?a.removeAttribute(e):(j=a.getAttribute(e),i=JSON.stringify({data:f,expires:g.expires?n+g.expires:null}),a.setAttribute(e,i));try{a.save(c)}catch(o){null===j?a.removeAttribute(e):a.setAttribute(e,j),d.userData();try{a.setAttribute(e,i),a.save(c)}catch(o){throw null===j?a.removeAttribute(e):a.setAttribute(e,j),d.error()}}return m})}}(),function(){function a(a){return a===b?b:JSON.parse(JSON.stringify(a))}var c={},e={};d.addType("memory",function(d,f,g){return d?f===b?a(c[d]):(e[d]&&(clearTimeout(e[d]),delete e[d]),null===f?(delete c[d],null):(c[d]=f,g.expires&&(e[d]=setTimeout(function(){delete c[d],delete e[d]},g.expires)),f)):a(c)})}()}(this.amplify=this.amplify||{}),/*! ios-orientationchange-fix.js | Script by @scottjehl rebound by @wilto, modified by Peter Wooster | @link https://github.com/scottjehl/iOS-Orientationchange-Fix | @copyright Scott Jehl <@scottjehl> | @license MIT / GPLV2 */ -function(a){function b(){g.setAttribute("content",m),n=!0}function c(){g.setAttribute("content",l),n=!1}function d(d){a.orientation;return 90==Math.abs(a.orientation)?void(n&&b()):(j=d.accelerationIncludingGravity,h=Math.abs(j.x),i=Math.abs(j.y),void(0==i||h/i>1.2?n&&c():n||b()))}var e=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(navigator.platform.toLowerCase())&&/os [1-5]_[0-9_]* like mac os x/i.test(e)&&e.indexOf("applewebkit")>-1&&-1==e.indexOf("crios")){var f=a.document;if(f.querySelector){var g=f.querySelector("meta[name=viewport]");if(g){var h,i,j,k=g&&g.getAttribute("content"),l=k+",maximum-scale=1",m=k+",maximum-scale=10",n=!0;a.addEventListener("orientationchange",b,!1),a.addEventListener("devicemotion",d,!1)}}}}(this),/*! jQuery resize event - v1.1 | @link http://benalman.com/projects/jquery-resize-plugin/ | Copyright (c) 2010 "Cowboy" Ben Alman | @license MIT/GPL */ -function(a,b,c){"$:nomunge";function d(){e=b[h](function(){f.each(function(){var b=a(this),c=b.width(),d=b.height(),e=a.data(this,j);(c!==e.w||d!==e.h)&&b.trigger(i,[e.w=c,e.h=d])}),d()},g[k])}var e,f=a([]),g=a.resizecontainer=a.extend(a.resize,{}),h="setTimeout",i="resizecontainer",j=i+"-special-event",k="delay",l="throttleWindow";g[k]=250,g[l]=!0,a.event.special[i]={setup:function(){if(!g[l]&&this[h])return!1;var b=a(this);f=f.add(b),a.data(this,j,{w:b.width(),h:b.height()}),1===f.length&&d()},teardown:function(){if(!g[l]&&this[h])return!1;var b=a(this);f=f.not(b),b.removeData(j),f.length||clearTimeout(e)},add:function(b){function d(b,d,f){var g=a(this),h=a.data(this,j);h.w=d!==c?d:g.width(),h.h=f!==c?f:g.height(),e.apply(this,arguments)}if(!g[l]&&this[h])return!1;var e;return a.isFunction(b)?(e=b,d):(e=b.handler,void(b.handler=d))}}}(jQuery,window),function(a){window.elementIsChildOf=function(b,c){var d=!1,e=a(""+b),f=a(""+c);switch(!0){case-1!=a(f).parents().index(e):d=!0}return d},window.getSelector=function(b){var c=a(b),d=c.attr("id");if(d)return"#"+d;var e=c[0].nodeName.toLowerCase();if("html"==e||"body"==e)return e;var f=c.parents().map(function(){return this.tagName}).get().reverse().join(" ");f&&(f+=" "+c[0].nodeName);var g=c.attr("class");g&&(f+="."+a.trim(g).replace(/\s/gi,"."));var h=c.attr("name");if(h&&(f+="[name='"+h+"']"),!h){var i=c.index();i&&(i+=1,f+=":nth-child("+i+")")}return f}}(jQuery);/*! Restive.JS | @copyright 2013 Obinwanne Hill */ -var Restive=function(a,b,c){function d(){i("rstv_timestamp_curr",microtime(!0)),i("rstv_timestamp_init",i("rstv_timestamp_curr")),e(),z(),i("rstv_ort_init",V()),i("rstv_ort_curr",V())}function e(){i("rstv_var_doc_client_w",qb.clientWidth),i("rstv_var_doc_client_h",qb.clientHeight),i("rstv_var_win_outer_w",a.outerWidth),i("rstv_var_win_outer_h",a.outerHeight),i("rstv_var_win_screen_w",sb.width),i("rstv_var_win_screen_h",sb.height)}function f(){var a=parseInt(i("rstv_loaded_count"));switch(!0){case!isNumber(a):a=0}a++,i("rstv_loaded_count",a,"",{expires:1500})}function g(){var a=parseInt(i("rstv_loaded_count")),b=i("rstv_ffld_is_init");switch(!0){case a>1:switch(i("rstv_viewportW rstv_viewportW_dip rstv_viewportH rstv_viewportH_dip rstv_screenW rstv_screenH",null),i("rstv_is_ios rstv_is_android rstv_is_blackberry rstv_is_symbian rstv_is_windows rstv_is_windows_phone",null),i("rstv_is_android_1_ rstv_is_android_2_ rstv_is_android_3_",null),i("rstv_is_phone rstv_is_tablet rstv_is_tv rstv_is_pc",null),i("rstv_ort_curr rstv_timestamp_curr rstv_is_portrait rstv_is_landscape",null),i("rstv_multi_count rstv_multi_bpm_idx rstv_cache_bpm rstv_cache_bpm_lock rstv_cache_req rstv_cache_bpm_viewport_diff",null),i("rstv_user_agent",null),i("rstv_timestamp_curr",microtime(!0)),i("rstv_ort_curr",V()),!0){case!b:i("rstv_timestamp_init",i("rstv_timestamp_curr")),i("rstv_ort_init",V()),i("rstv_ffld_is_init",!0)}}}function h(){try{localStorage.setItem("__test","data")}catch(a){if(/QUOTA_?EXCEEDED/i.test(a.name))return!0}return!1}function i(){var b,c,d=Array.prototype.slice.call(arguments),e=a.rstv_store.main.rstv_is_priv_browsing,f=d[0],g=d[1],h="undefined"!=typeof d[2]&&null!==d[2]&&isString(d[2])&&""!=d[2]?d[2]:"ss",i=d[3],j=[],k=isString(f)&&""!=f?!1:!0,l=!("undefined"==typeof g||null===g||!(isString(g)&&""!=g||isNumber(g)||isArray(g)&&count(g)>0||isBool(g)||isObject(g))),m=!(null!==g);try{switch(!0){case e:b="storage",c=a.rstv_store[b];break;default:switch(!0){case"ls"==h:b="localStorage";break;default:b="sessionStorage"}switch(c=amplify.store[b],!0){case!a.sessionStorage||!a.localStorage:c=amplify.store}switch(!0){case k:return c()}}switch(!0){case!l&&!m:return c(f)}switch(!0){case m:j=explode(" ",f);for(var n=0;n=1.5?b*j:b}return b=Math.floor(b)}var r,s,t,u,v,w,x,y,z,B,C=D(),E=/opera.+(mini|mobi)/i.test(C),F=!!G(),H=!!J(),K=!!L(),M=!!I(),N=!!I("1."),O=!!I("2."),P=!!(N||O||H||K),Q=p,T=q,U=Q,V=n("w"),W=n("h"),X=V,Y=W;switch(!0){case P:r=0>=k?m:k,s=0>=l?o:l,t=r,u=s;break;default:r=m,s=o,t=m,u=o}switch(!0){case(O||H)&&!E:Q=0>=k?Q:k,T=0>=l?T:l}switch(w=Q/T,v=Q-r,v=Math.abs(v),B=E&&260>r?4>=v&&w>=1?!0:!1:!0,y=!!(t>=u&&B),z=!!(Q>=T),!0){case F:X=X.slice(7),Y=Y.slice(6);break;case M:X=X.slice(4),Y=Y.slice(3);break;case H:X=X.slice(4)}switch(!0){case y:V=Y,W=X;break;default:V=X,W=Y}switch(!0){case"vW"==a:b=r;break;case"vH"==a:b=s;break;case"sW"==a:x=!!(y===!0&&z===!1||y===!1&&z===!0),b=x?T:Q,U=x?T:Q,c=b*j,g=f?in_array(b,V)||in_array(c,V)?!1:!0:!1;break;case"sH"==a:x=!!(y===!0&&z===!1||y===!1&&z===!0),b=x?Q:T,U=x?T:Q,c=b*j,g=f?in_array(b,W)||in_array(c,W)?!1:!0:!1}switch(d=U/r,!0){case 1>=j&&1.1>=d:switch(!0){case"sW"==a&&g:b=getClosestNumberMatchArray(V,b,"","",8);break;case"sH"==a&&g:b=getClosestNumberMatchArray(W,b,"","",8)}return b}switch(!0){case F:b*=j;break;default:switch(!0){case!O:switch(!0){case 1>=j&&d>1.1:b=in_array(a,["vW","vH"])?b*d:b;break;case j>1&&1.1>=d:switch(!0){case 1.1>=j:switch(!0){case in_array(a,["vW","vH"]):b*=j,b=isEvenDecimal(b)?Math.floor(b):b}break;default:b*=j}break;case j>1&&d>1.1:switch(!0){case in_array(a,["vW","vH"]):b*=j,b=isEvenDecimal(b)?Math.floor(b):Math.ceil(b)}}}switch(!0){case"sW"==a&&g:b=getClosestNumberMatchArray(V,b,"","",8);break;case"sH"==a&&g:b=getClosestNumberMatchArray(W,b,"","",8)}}return b=Math.floor(b)}function p(a){var b,c=!("w"!=a),d=!(!S()&&!R()),e=A();switch(!0){case d:e=1.5>=e?1:e}return b=c?t()/e:u()/e,Math.round(b)}function q(a,b){var c,d=Array.prototype.slice.call(arguments),e=isString(d[2])&&""!=d[2]?d[2]:"d",f=isBool(d[3])?d[3]:!1;switch(b=b.toLowerCase(),!0){case"w"==b:switch(!0){case"i"==e:c=a.innerWidth();break;case"o"==e:c=a.outerWidth();break;default:c=a.width()}break;case"h"==b:switch(!0){case"i"==e:c=a.innerHeight();break;case"o"==e:c=a.outerHeight();break;default:c=a.height()}break;default:c=!1}switch(!0){case f===!1:c*=A()}return c}function r(a){var b=Array.prototype.slice.call(arguments),c=b[1],d=b[2];return q(a,"w",c,d)}function s(a){var b=Array.prototype.slice.call(arguments),c=b[1],d=b[2];return q(a,"h",c,d)}function t(){return l("rstv_viewportW")?i("rstv_viewportW"):o("vW",i("rstv_is_getdim_screen_adj"))}function u(){return l("rstv_viewportH")?i("rstv_viewportH"):o("vH",i("rstv_is_getdim_screen_adj"))}function v(){return l("rstv_screenW")?i("rstv_screenW"):o("sW",i("rstv_is_getdim_screen_adj"))}function w(){return l("rstv_screenH")?i("rstv_screenH"):o("sH",i("rstv_is_getdim_screen_adj"))}function x(){return l("rstv_viewportW_dip")?i("rstv_viewportW_dip"):p("w")}function y(){return l("rstv_viewportH_dip")?i("rstv_viewportH_dip"):p("h")}function z(){i("rstv_viewportW rstv_viewportW_dip rstv_viewportH rstv_viewportH_dip rstv_screenW rstv_screenH",null),i("rstv_viewportW",t()),i("rstv_viewportH",u()),i("rstv_screenW",v()),i("rstv_screenH",w()),i("rstv_viewportW_dip",x()),i("rstv_viewportH_dip",y())}function A(a){switch(!0){case l("rstv_pixel_ratio"):return i("rstv_pixel_ratio")}var b,c,d,e,f=D(),g=/opera.+(mini|mobi)/i.test(f),h=i("rstv_var_doc_client_w"),j=i("rstv_var_win_outer_w"),k=i("rstv_var_win_screen_w"),m=!!J(),n=!!L(),o=!!I("1."),p=!!I("2."),q=!!(o||p||m||n),r=!(!n&&!m),s=q?0>=j?h:j:h,t=!p&&!m||g?k:0>=j?k:j;switch(c=pb.devicePixelRatio,!0){case 0>=c||"undefined"==typeof c||null===c:switch(d=t/s,b=d,!0){case r:switch(!0){case b>.5&&1.2>b:b=1;break;case b>=1.2&&2>b:b=1.5;break;case b>=2&&3>b:b=2;break;case b>=3:b=3;break;default:b=1}}i("rstv_pixel_ratio_virtual",d);break;default:b=c}switch(!0){case!isNumber(a):return e=b||(A(3)?3:A(2)?2:A(1.5)?1.5:A(1)?1:0),i("rstv_pixel_ratio",e),e}switch(!0){case!isFinite(a):return!1}switch(!0){case b&&b>0:return b>=a}switch(a="only all and (min--moz-device-pixel-ratio:"+a+")",!0){case tb(a).matches:return!0}return!!tb(a.replace("-moz-","")).matches}function B(){var a=A();switch(!0){case a>=2:return!0}return!1}function C(a){return function(b,c){var d,e=Array.prototype.slice.call(arguments),f=e[2],g=!(!isObject(f)||"undefined"==typeof f||null===f),h=e[3],i=e[4],j=g?a(f,h,i):a();return d=j>=(b||0),c?d&&c>=j:d}}function D(){switch(!0){case l("rstv_user_agent"):return i("rstv_user_agent")}var a,b=navigator.userAgent.toLowerCase();switch(a=/mozilla.+x11(?!.*?(ubuntu|firefox|chrome|safari|opera|opr|qupzilla))/i.test(b),!0){case a:c.ajax({type:"GET",async:!1,crossDomain:!0,url:"http://www.restive.io/ping/ua.php",headers:{"Cache-Control":"no-cache",Pragma:"no-cache"},success:function(a){b=a},error:function(){console.log("error")}})}return i("rstv_user_agent",b),b}function E(){switch(!0){case F("ios"):return"ios";case F("android"):return"android";case F("symbian"):return"symbian";case F("blackberry"):return"blackberry";case F("windows"):return"windows";default:return"other"}}function F(a){var b=Array.prototype.slice.call(arguments),c=!(!isString(b[1])||""==b[1]),d="",e="",f="";switch(!0){case c:d=b[1],d=d.replace(/^\s+|\s+$/g,""),e=" "+d,f="_"+d.replace(".","_")}switch(!0){case l("rstv_is_"+a+f):return i("rstv_is_"+a+f)}var g=D(),h=!1;switch(!0){case"ios"==a:h=/\bipad|\biphone|\bipod/i.test(g);break;case"android"==a:var j=new RegExp("\\bandroid"+e,"i");h=j.test(g);break;case"symbian"==a:h=/series(4|6)0|symbian|symbos|syb-[0-9]+|\bs60\b/i.test(g);break;case"blackberry"==a:h=/bb[0-9]+|blackberry|playbook|rim +tablet/i.test(g);break;case"windows"==a:h=/window mobile|windows +(ce|phone)|windows +nt.+arm|windows +nt.+touch|xblwp7|zunewp7/i.test(g);break;case"windows_phone"==a:h=/windows +phone|xblwp7|zunewp7/i.test(g);break;default:return!1}return i("rstv_is_"+a+f,h),!!h}function G(){return F("ios")}function H(){return F("ios")}function I(){var a=Array.prototype.slice.call(arguments),b=a[0];return F("android",b)}function J(){return F("symbian")}function K(){return F("blackberry")}function L(){return F("windows")}function M(){return F("windows_phone")}function N(a){return/android|android.+mobile|avantgo|bada\/|\bbb[0-9]+|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|\bip(hone|od|ad)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|motorola|mobile.+firefox|netfront|nokia|nintendo +3ds|opera m(ob|in)i|palm|palm( os)?|phone|p(ixi|re)\/|playbook|rim +tablet|playstation.+vita|plucker|pocket|psp|samsung|(gt\-|bgt\-|sgh\-|sph\-|sch\-)[a-z][0-9]+|series(4|6)0|symbian|symbos|\bs60\b|treo|up\.(browser|link)|vertu|vodafone|wap|windows (ce|phone)|windows +nt.+arm|windows +nt.+touch|xda|xiino|xblwp7|zunewp7/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb|b\-[0-9]+)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))}function O(){var a="";switch(!0){case Q():a="tablet";break;case R():a="tv";break;default:switch(!0){case P():a="phone";break;default:a="pc"}}return a}function P(){switch(!0){case l("rstv_is_phone"):return i("rstv_is_phone")}switch(!0){case Q(!0)||R():return i("rstv_is_phone",!1),!1}switch(!0){case N(D()||navigator.vendor.toLowerCase()||a.opera):return i("rstv_is_phone",!0),!0}return i("rstv_is_phone",!1),!1}function Q(){var a=Array.prototype.slice.call(arguments),b=isBool(a[0])?a[0]:!1;switch(!0){case l("rstv_is_tablet"):return i("rstv_is_tablet")}var c,d,e,f=D(),g=parseInt(i("rstv_viewportW_dip")),h=parseInt(i("rstv_viewportH_dip")),j=i("rstv_is_portrait")?g:h;switch(d=new RegExp("ipad|playbook|rim +tablet","i"),e=d.test(f),!0){case e:return b||i("rstv_is_tablet",!0),!0}switch(d=new RegExp("windows +nt.+arm|windows +nt.+touch","i"),e=d.test(f),!0){case e:switch(!0){case isNumber(j)&&520>=j:return b||(i("rstv_is_tablet",!1),i("rstv_is_phone")===!1&&i("rstv_is_phone",!0)),!1;default:return b||i("rstv_is_tablet",!0),!0}}switch(c="android.+kindle|kindle +fire|android.+silk|silk.*accelerated|android.+nexus +(7|10)|samsung.*tablet|galaxy.*tab|sc-01c|gt-p1000|gt-p1003|gt-p1010|gt-p3105|gt-p6210|gt-p6800|gt-p6810|gt-p7100|gt-p7300|gt-p7310|gt-p7500|gt-p7510|sch-i800|sch-i815|sch-i905|sgh-i957|sgh-i987|sgh-t849|sgh-t859|sgh-t869|sph-p100|gt-p3100|gt-p3108|gt-p3110|gt-p5100|gt-p5110|gt-p6200|gt-p7320|gt-p7511|gt-n8000|gt-p8510|sgh-i497|sph-p500|sgh-t779|sch-i705|sch-i915|gt-n8013|gt-p3113|gt-p5113|gt-p8110|gt-n8010|gt-n8005|gt-n8020|gt-p1013|gt-p6201|gt-p7501|gt-n5100|gt-n5110|shv-e140k|shv-e140l|shv-e140s|shv-e150s|shv-e230k|shv-e230l|shv-e230s|shw-m180k|shw-m180l|shw-m180s|shw-m180w|shw-m300w|shw-m305w|shw-m380k|shw-m380s|shw-m380w|shw-m430w|shw-m480k|shw-m480s|shw-m480w|shw-m485w|shw-m486w|shw-m500w|gt-i9228|sch-p739|sch-i925|gt-i9200|gt-i9205|gt-p5200|gt-p5210|sm-t311|sm-t310|sm-t210|sm-t210r|sm-t211|sm-p600|sm-p601|sm-p605|sm-p900|sm-t217|sm-t217a|sm-t217s|sm-p6000|sm-t3100|sgh-i467|xe500|htc flyer|htc jetstream|htc-p715a|htc evo view 4g|pg41200|xoom|sholest|mz615|mz605|mz505|mz601|mz602|mz603|mz604|mz606|mz607|mz608|mz609|mz615|mz616|mz617|transformer|^.*padfone((?!mobile).)*$|tf101|tf201|tf300|tf700|tf701|tf810|me171|me301t|me302c|me371mg|me370t|me372mg|me172v|me173x|me400c|slider *sl101|android.+nook|nookcolor|nook browser|bnrv200|bnrv200a|bntv250|bntv250a|bntv400|bntv600|logicpd zoom2|android.*\\b(a100|a101|a110|a200|a210|a211|a500|a501|a510|a511|a700|a701|w500|w500p|w501|w501p|w510|w511|w700|g100|g100w|b1-a71|b1-710|b1-711|a1-810)\\b|w3-810|android.*(at100|at105|at200|at205|at270|at275|at300|at305|at1s5|at500|at570|at700|at830)|toshiba.*folio|\\bl-06c|lg-v900|lg-v905|lg-v909|android.+(xenta.+tab|tab210|tab211|tab224|tab250|tab260|tab264|tab310|tab360|tab364|tab410|tab411|tab420|tab424|tab450|tab460|tab461|tab464|tab465|tab467|tab468|tab469)|android.+\\boyo\\b|life.*(p9212|p9514|p9516|s9512)|lifetab|an10g2|an7bg3|an7fg3|an8g3|an8cg3|an7g3|an9g3|an7dg3|an7dg3st|an7dg3childpad|an10bg3|an10bg3dt|android.+archos|\\b(101g9|80g9|a101it)\\b|qilive 97r|novo7|novo7aurora|novo7basic|novo7paladin|novo8|novo9|novo10|sony tablet|sony tablet s|sgpt12|sgpt121|sgpt122|sgpt123|sgpt111|sgpt112|sgpt113|sgpt211|sgpt213|ebrd1101|ebrd1102|ebrd1201|sgpt311|sgpt312|sonyso-03e|android.*(k8gt|u9gt|u10gt|u16gt|u17gt|u18gt|u19gt|u20gt|u23gt|u30gt)|cube u8gt|mid1042|mid1045|mid1125|mid1126|mid7012|mid7014|mid7034|mid7035|mid7036|mid7042|mid7048|mid7127|mid8042|mid8048|mid8127|mid9042|mid9740|mid9742|mid7022|mid7010|android.*(\\bmid\\b|mid-560|mtv-t1200|mtv-pnd531|mtv-p1101|mtv-pnd530)|android.*(rk2818|rk2808a|rk2918|rk3066)|rk2738|rk2808a|t-hub2|iq310|fly vision|bq.*(elcano|curie|edison|maxwell|kepler|pascal|tesla|hypatia|platon|newton|livingstone|cervantes|avant)|mediapad|ideos s7|s7-201c|s7-202u|s7-101|s7-103|s7-104|s7-105|s7-106|s7-201|s7-slim|\\bn-06d|\\bn-08d|pantech.*p4100|broncho.*(n701|n708|n802|a710)|touchpad.*[78910]|\\btouchtab\\b|z1000|z99 2g|z99|z930|z999|z990|z909|z919|z900|tb07sta|tb10sta|tb07fta|tb10fta|android.*\\bnabi|playstation.*(portable|vita)|dell.*streak|milagrow +tab.*top|android.+(ideapad|ideatab|lenovo +a1|s2110|s6000|k3011|a3000|a1000|a2107|a2109|a1107)|android.+f8-sup|android.*(k080|arc|vox)|android.*(msi.+enjoy|enjoy +7|enjoy +10)|dropad.+a8|android.+c906|android.+iberry.+auxus|android.+aigopad|android.*(airpad|liquid metal)|android.+hcl.+tablet|connect-3g-2.0|connect-2g-2.0|me tablet u1|me tablet u2|me tablet g1|me tablet x1|me tablet y2|me tablet sync|android.*(a39|a37|a34|st8|st10|st7|smarttab|smart +tab)|android.*(micromax.+funbook|funbook|p250|p275|p300|p350|p362|p500|p600)|micromax.*(p250|p275|p350|p362|p500|p600)|funbook|android.+penta|android.*(celkon.+ct|ct-[0-9])|android.+i-buddy|android.*(viewbook|viewpad)|android.*(v9|zte.+v8110|light tab|light pro|beeline|base.*tab)|chagall|android.*(vandroid|t3i)|android.*(ziio7|ziio10)|android.*(v-t100|v-tw100|v-tr200|v-t300)|android.+vtab1008|bookeen|cybook|android.*lifetab_(s9512|p9514|p9516)|m702pro|irulu-al101|pmp3170b|pmp3270b|pmp3470b|pmp7170b|pmp3370b|pmp3570c|pmp5870c|pmp3670b|pmp5570c|pmp5770d|pmp3970b|pmp3870c|pmp5580c|pmp5880d|pmp5780d|pmp5588c|pmp7280c|pmp7280|pmp7880d|pmp5597d|pmp5597|pmp7100d|per3464|per3274|per3574|per3884|per5274|per5474|pmp5097cpro|pmp5097|pmp7380d|pmp5297c|pmp5297c_quad|allview.*(viva|alldro|city|speed|all tv|frenzy|quasar|shine|tx1|ax1|ax2)|megafon +v9|android.+(z7c|z7h|z7s)|android.+iball.+slide.+(3g *7271|3g *7334|3g *7307|3g *7316|i7119|i7011)|android.+iball.+i6012|navipad|tb-772a|tm-7045|tm-7055|tm-9750|tm-7016|tm-7024|tm-7026|tm-7041|tm-7043|tm-7047|tm-8041|tm-9741|tm-9747|tm-9748|tm-9751|tm-7022|tm-7021|tm-7020|tm-7011|tm-7010|tm-7023|tm-7025|tm-7037w|tm-7038w|tm-7027w|tm-9720|tm-9725|tm-9737w|tm-1020|tm-9738w|tm-9740|tm-9743w|tb-807a|tb-771a|tb-727a|tb-725a|tb-719a|tb-823a|tb-805a|tb-723a|tb-715a|tb-707a|tb-705a|tb-709a|tb-711a|tb-890hd|tb-880hd|tb-790hd|tb-780hd|tb-770hd|tb-721hd|tb-710hd|tb-434hd|tb-860hd|tb-840hd|tb-760hd|tb-750hd|tb-740hd|tb-730hd|tb-722hd|tb-720hd|tb-700hd|tb-500hd|tb-470hd|tb-431hd|tb-430hd|tb-506|tb-504|tb-446|tb-436|tb-416|tb-146se|tb-126se|android.*\\bg1\\b|tx-a1301|tx-m9002|q702|ly-f528|android.+dslide.*\\b(700|701r|702|703r|704|802|970|971|972|973|974|1010|1012)\\b|m9701|m9000|m9100|m806|m1052|m806|t703|mid701|mid713|mid710|mid727|mid760|mid830|mid728|mid933|mid125|mid810|mid732|mid120|mid930|mid800|mid731|mid900|mid100|mid820|mid735|mid980|mid130|mid833|mid737|mid960|mid135|mid860|mid736|mid140|mid930|mid835|mid733|android.*\\b(f-01d|f-05e|f-10d|m532|q572)\\b|android.+casiatab8|android.+hudl|android.*(polaroid.*tablet|pmid1000|pmid10c|pmid800|pmid700|pmid4311|pmid701c|pmid701i|pmid705|pmid706|pmid70dc|pmid70c|pmid720|pmid80c|pmid901|ptab7200|ptab4300|ptab750|midc010|midc407|midc409|midc410|midc497|midc700|midc800|midc801|midc802|midc901)|e-boda.+(supreme|impresspeed|izzycomm|essential)|hp slate 7|hp elitepad 900|hp-tablet|elitebook.*touch|fine7 genius|fine7 shine|fine7 air|fine8 style|fine9 more|fine10 joy|fine11 wide|android.*\\b(n10|n10-4core|n78|n79|n83|n90 ii)\\b|\\b(pem63|plt1023g|plt1041|plt1044|plt1044g|plt1091|plt4311|plt4311pl|plt4315|plt7030|plt7033|plt7033d|plt7035|plt7035d|plt7044k|plt7045k|plt7045kb|plt7071kg|plt7072|plt7223g|plt7225g|plt7777g|plt7810k|plt7849g|plt7851g|plt7852g|plt8015|plt8031|plt8034|plt8036|plt8080k|plt8082|plt8088|plt8223g|plt8234g|plt8235g|plt8816k|plt9011|plt9045k|plt9233g|plt9735|plt9760g|plt9770g)\\b|bq1078|bc1003|bc1077|rk9702|bc9730|bc9001|it9001|bc7008|bc7010|bc708|bc728|bc7012|bc7030|bc7027|bc7026|tpc7102|tpc7103|tpc7105|tpc7106|tpc7107|tpc7201|tpc7203|tpc7205|tpc7210|tpc7708|tpc7709|tpc7712|tpc7110|tpc8101|tpc8103|tpc8105|tpc8106|tpc8203|tpc8205|tpc8503|tpc9106|tpc9701|tpc97101|tpc97103|tpc97105|tpc97106|tpc97111|tpc97113|tpc97203|tpc97603|tpc97809|tpc97205|tpc10101|tpc10103|tpc10106|tpc10111|tpc10203|tpc10205|tpc10503|android.*(roverpad|rp3wg70)|tab-p506|tab-navi-7-3g-m|tab-p517|tab-p-527|tab-p701|tab-p703|tab-p721|tab-p731n|tab-p741|tab-p825|tab-p905|tab-p925|tab-pr945|tab-pl1015|tab-p1025|tab-pi1045|tab-p1325|tab-protab[0-9]+|tab-protab25|tab-protab26|tab-protab27|tab-protab26xl|tab-protab2-ips9|tab-protab30-ips9|tab-protab25xxl|tab-protab26-ips10|tab-protab30-ips10|android.*ov-(steelcore|newbase|basecore|baseone|exellen|quattor|edutab|solution|action|basictab|teddytab|magictab|stream|tb-08|tb-09)|dps dream 9|dps dual 7|v97 hd|i75 3g|visture v4( hd)?|visture v5( hd)?|visture v10|ctp(-)?810|ctp(-)?818|ctp(-)?828|ctp(-)?838|ctp(-)?888|ctp(-)?978|ctp(-)?980|ctp(-)?987|ctp(-)?988|ctp(-)?989|android.*\\b97d\\b|tablet(?!.*pc)|viewpad7|lg-v909|mid7015|bntv250a|logicpd zoom2|\\ba7eb\\b|catnova8|a1_07|ct704|ct1002|\\bm721\\b|rk30sdk|\\bevotab\\b|smarttabii10|smarttab10",d=new RegExp(c,"i"),e=d.test(f),!0){case e:return b||i("rstv_is_tablet",!0),!0}var k=/android/i.test(f),m=!/mobile/i.test(f);switch(!0){case k:switch(!0){case isNumber(j)&&j>=520&&810>=j:return b||(i("rstv_is_tablet",!0),i("rstv_is_phone")&&i("rstv_is_phone",!1)),!0}switch(!0){case m:return b||i("rstv_is_tablet",!0),!0}}return b||i("rstv_is_tablet",!1),!1}function R(){switch(!0){case l("rstv_is_tv"):return i("rstv_is_tv")}var a=D(),b=/googletv|smart\-tv|smarttv|internet +tv|netcast|nettv|appletv|boxee|kylo|roku|vizio|dlnadoc|ce\-html|ouya|xbox|playstation *(3|4)|wii/i.test(a);switch(!0){case b:return i("rstv_is_tv",!0),!0}return i("rstv_is_tv",!1),!1}function S(){switch(!0){case l("rstv_is_pc"):return i("rstv_is_pc")}switch(!0){case T()===!1&&R()===!1:return i("rstv_is_pc",!0),!0}return i("rstv_is_pc",!1),!1}function T(){switch(!0){case P()||Q(!0):return!0;default:return!1}}function U(){switch(!0){case!T():return!0;default:return!1}}function V(){var a,b=Array.prototype.slice.call(arguments),c=isBool(b[0])?b[0]:!1;switch(!0){case l("rstv_ort_curr")&&!c:return i("rstv_ort_curr")}switch(!0){case c:i("rstv_viewportW rstv_viewportW_dip rstv_viewportH rstv_viewportH_dip rstv_screenW rstv_screenH",null)}var d,e,f=D(),g=/opera.+(mini|mobi)/i.test(f),h=t(),j=u(),k=v(),m=w(),n=k/m,o=k-h;switch(o=Math.abs(o),d=g&&260>h?4>=o&&n>=1?!0:!1:!0,e=!!(h>=j&&d),!0){case e:switch(a="landscape",!0){case!c:i("rstv_is_portrait",!1),i("rstv_is_landscape",!0)}break;default:switch(a="portrait",!0){case!c:i("rstv_is_portrait",!0),i("rstv_is_landscape",!1)}}return a}function W(){i("rstv_ort_curr rstv_is_portrait rstv_is_landscape",null),i("rstv_ort_curr",V())}function X(){switch(!0){case l("rstv_is_portrait"):return i("rstv_is_portrait")}return!("portrait"!=V())}function Y(){switch(!0){case l("rstv_is_landscape"):return i("rstv_is_landscape")}return!("landscape"!=V())}function Z(){var a,b,c=Y(),d=v(),e=w(),f=n(c?"h":"w"),g=n(c?"w":"h"),h=getClosestNumberMatchArray(f,d),i=getClosestNumberMatchArray(g,e),j=_();switch(!0){case h>=i:a=i+"_"+h;break;default:a=h+"_"+i}return b=array_search(a,j)}function $(){switch(!0){case l("rstv_is_cache_res_list"):return i("rstv_cache_res_list")}var a=["qqvga","qqvgax1","hqvga","hqvgax1","hqvgax2","hvgax1","qvga","wqvga","wqvga1","hvga","hvga1","hvga2","hvga3","hvgax1","hvgax2","vga","wvga","wvgax1","fwvga","svga","dvga","dvgax1","wsvga","wsvga1","xga","wxga","wxga1","wxga2","wxga3","wxga4","wxga5","xga+","wxga+","sxga","sxga+","wsxga+","uxga","wuxga","qwxga","qxga","wqxga","qsxga","wqsxga","quxga","wquxga","hxga","whxga","hsxga","whsxga","huxga","whuxga","nhd","nhdx1","qhd","hd","720p","fhd","1080p","1080i","wqhd","mbprhd","4kuhd","8kuhd"];return i("rstv_is_cache_res_list",!0),i("rstv_cache_res_list",a),a}function _(){switch(!0){case l("rstv_is_cache_res_matrix"):return i("rstv_cache_res_matrix")}var a={qqvga:"120_160",qqvgax1:"128_160",hqvga:"160_240",hqvgax1:"240_240",hqvgax2:"240_260",qvga:"240_320",wqvga:"240_400",wqvga1:"240_432",hvga:"320_480",hvga1:"360_480",hvga2:"272_480",hvga3:"240_640",hvgax1:"200_640",hvgax2:"300_640",hvgax3:"360_400",vga:"480_640",wvga:"480_800",wvgax1:"352_800",fwvga:"480_854",svga:"600_800",dvga:"640_960",dvgax1:"640_1136",wsvga:"576_1024",wsvga1:"600_1024",xga:"768_1024",wxga:"768_1280",wxga1:"720_1280",wxga2:"800_1280",wxga3:"768_1360",wxga4:"768_1366",wxga5:"720_720","xga+":"864_1152","wxga+":"900_1440",sxga:"1024_1280","sxga+":"1050_1400","wsxga+":"1050_1680",uxga:"1200_1600",wuxga:"1200_1920",qwxga:"1152_2048",qxga:"1536_2048",wqxga:"1600_2560","wqxga+":"1800_3200",qsxga:"2048_2560",wqsxga:"2048_3200",quxga:"2400_3200",wquxga:"2400_3840",hxga:"3072_4096",whxga:"3200_5120",hsxga:"4096_5120",whsxga:"4096_6400",huxga:"4800_6400",whuxga:"4800_7680",nhd:"360_640",nhdx1:"320_640",qhd:"540_960",hd:"720_1280","720p":"720_1280",fhd:"1080_1920","1080p":"1080_1920","1080i":"1080_1920",wqhd:"1440_2560",mbprhd:"1800_2880","4kuhd":"2160_3840","8kuhd":"4320_7680"};return i("rstv_is_cache_res_matrix",!0),i("rstv_cache_res_matrix",a),a}function ab(a,b){try{var c,d,e,f,g,h,i,j=[],k="",l="",m="",n=[],o="",p=[],q="",r=[],s=[],t=[],u=[],v=!1,w=!1,x=0,y="",z=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","aa","ab","ac","ad","ae","af","ag","ah","ai","aj","ak","al","am","an","ao","ap","aq","ar","as","at","au","av","aw","ax"],A=[],B=[],C=count(a),D=count(b),E=count(j);switch(!0){case!isArray(a):throw new Error("The first argument must be an array!");case isArray(a)&&0==C:throw new Error("The first argument must not be empty!")}switch(!0){case D>0&&E>0:throw new Error("You can only define either 'Classes' or 'Attributes' settings!")}switch(!0){case D>0:switch(v=!0,!0){case D!==C:throw new Error("The number items for 'Breakpoints' and 'Classes' settings must match")}}switch(!0){case E>0:switch(w=!0,!0){case E!==C:throw new Error("The number items for 'Breakpoints' and 'Attributes' settings must match")}}c=$(),d=_();for(var F=0;C>F;F++){switch(e=a[F],y=z[F],!0){case/-+/i.test(e)&&!/^[^-]*-[^-]*$/i.test(e):m+="2"}switch(k="",l="",!0){case substr_count(e,"-p")>0:k="p",l="-p",s.push("p");break;case substr_count(e,"-l")>0:k="l",l="-l",s.push("l");break;default:s.push("x")}switch(f=e.replace(""+l,""),!0){case in_array(f,c):switch(g=d[""+f],u=arrayToInteger(explode("_",g)),o=parseInt(u[0]),q=parseInt(u[1]),h=o,i=q,!0){case"l"==k:h=q,i=o}n[y]=h,p[y]=i,r.push("r");break;case/[0-9]+/i.test(f):n[y]=parseInt(f),p[y]=parseInt(f),r.push("v");break;default:m+="1"}A.push(y),x++}switch(!0){case/[1]+/i.test(m):throw new Error("There are errors in your 'Breakpoints' settings!");case/[2]+/i.test(m):throw new Error("There are errors in your 'Breakpoints' settings with regard to the way you have defined orientation markers e.g. -p or -l!")}var G,H,I=function(a,b){return a==b?0:b>a?-1:1},J=[],K=[],L=[],M=[],N=[],O=[],P=[];O=j,J=uasort(n,I),B=array_keys(J);for(var Q=count(J),F=0;Q>F;F++)G=B[F],H=array_search(G,A),K[G]=p[G],L[F]=r[H],M[F]=s[H],N[F]=b[H],P[F]=O[H];switch(t.bp_w=implode("|",J),t.bp_h=implode("|",K),t.bp_o=implode("|",M),t.bp_t=implode("|",L),!0){case v:var R=implode("|",N);t.bp_c=R}switch(!0){case w:var S=implode("|",P);t.bp_a=S}return t}catch(T){var U="There was an error: "+T.message;alert(U)}}function bb(a,b){var c=[];return c=ab(a,b)}function cb(){var b=Array.prototype.slice.call(arguments),d=isNumber(b[0])?"_"+b[0]:"",f=function(){var b=i("rstv_viewportW"),f=i("rstv_viewportH");e();var g,h,j,k,l,m,n,o,p=T(),q=V(!0),r=i("rstv_ort_curr"),s=!1;switch(z(),!0){case p:switch(g=i("rstv_viewportW"),h=i("rstv_viewportH"),j=g-b,m=h-f,k=Math.abs(j),n=Math.abs(m),l=k/b*100,o=n/f*100,!0){case 1>l:switch(!0){case o>35&&0>m:s=!0;break;case o>35&&m>0:s=!0;break;case o>12&&35>=o&&m>0:s=!0;break;case 0==o:s=!0}}}switch(!0){case!s:switch(!0){case r!==q:W(),c(a).trigger("change_orientation"+d);break;default:switch(!0){case!p:c(a).trigger("resize_viewport"+d)}}}};eb(f)}function db(b){var d=Array.prototype.slice.call(arguments),e=isNumber(d[1])?"_"+d[1]:"",f=function(){c(a).trigger("resize_container"+e)};fb(b,f)}function eb(a){return rb.on("resize",a),gb}function fb(a,b){return a.on("resizecontainer",b),gb}switch(!0){case"function"!=typeof c:throw"Restive.JS requires JQuery to run!"}var gb,hb,ib,jb,kb,lb,mb,nb,ob,pb=a,qb=b.documentElement,rb=c(pb),sb=pb.screen,tb=pb.matchMedia||pb.msMatchMedia||Object;a.rstv_store={main:{}},a.parent.rstv_store={main:{}},a.rstv_store.storage=function(){var b=Array.prototype.slice.call(arguments),c=b[0],d=b[1],e=!("undefined"==typeof d||null===d||!(isString(d)&&""!=d||isNumber(d)||isArray(d)&&count(d)>0||isBool(d)||isObject(d))),f=!(null!==d);switch(!0){case e:return void(a.rstv_store.main[""+c]=d);case f:return void(a.rstv_store.main[""+c]=null);default:return a.rstv_store.main[""+c]}};var ub=function(){a.rstv_store.main.rstv_is_priv_browsing=!!h();var b,c=i("rstv_is_init");switch(!0){case c:i("rstv_timestamp_curr",microtime(!0)),i("rstv_url",getUrl("bp")),f(),g(),e(),z(),W(),b=!1;break;default:i("rstv_timestamp_curr",microtime(!0)),i("rstv_timestamp_init",i("rstv_timestamp_curr")),i("rstv_loaded_count",0,"",{expires:1500}),i("rstv_is_init",!0),i("rstv_url",getUrl("bp")),i("rstv_url_hash",md5(getUrl("bp"))),e(),z(),i("rstv_ort_init",V()),i("rstv_ort_curr",V()),f(),b=!0}return b};return hb=C(t),ib=C(u),lb=C(v),mb=C(w),jb=C(x),kb=C(y),nb=C(r),ob=C(s),gb={init:ub(),reInit:d,getUserAgent:D,isStorageValueSet:l,store:i,storeVarTracker:j,storeVarValidator:k,incrementStorageValue:m,getBreakpoints:bb,viewportW:t,viewportH:u,screenW:v,screenH:w,pixelW:x,pixelH:y,vSpan:hb,vPitch:ib,dSpan:lb,dPitch:mb,cSpan:jb,cPitch:kb,eSpan:nb,ePitch:ob,isRetina:B,getPixelRatio:A,getPlatform:E,getFormFactor:O,getOrientation:V,getResolution:Z,isPortrait:X,isLandscape:Y,viewportMonitor:cb,containerMonitor:db,isMobile:T,isNonMobile:U,isPhone:P,isTablet:Q,isPC:S,isTV:R,isIOS:G,isApple:H,isAndroid:I,isSymbian:J,isBlackberry:K,isWindows:L,isWindowsPhone:M,resize:eb,resizeContainer:fb}}(window,document,jQuery);!function(a,b,c){Function.prototype.getFuncBody=function(){var a=this.toString().match(/\{([\s\S]*)\}/m)[1];return a.replace(/^\s*\/\/.*$/gm,"")};var d={init:function(b){try{d._multiConstructorCounter(),d._multiConstructorManager();var e,f,g=b,h=["all","ios","android","symbian","blackberry","windows"],i=["all","pc","tv","tablet","phone"],j=b.platform,k=b.formfactor,l=Restive.store("rstv_multi_start"),m=Restive.store("rstv_multi_count"),n=Restive.store("rstv_multi_abort_2");switch(!0){case in_array(j,h)===!1:return d._error("rstv_error_001",'"'+j+'" is not a valid Platform option!'),!1}switch(!0){case in_array(k,i)===!1:return d._error("rstv_error_002",'"'+k+'" is not a valid Form Factor option!'),!1}switch(!0){case n:return d._error("rstv_error_003","If you are calling the Restive.JS Constructor more than once, you must call $.restive.endMulti() at the end!"),!1}var o=[],p=[],q=[];p=b.breakpoints,q=b.classes,o=d.getBreakpoints(p,q);var r=[];switch(r.platform=d.getPlatform(),r.formfactor=d.getFormFactor(),r.is_mobile=d.isMobile(),r.pixelratio=d.getPixelRatio(),r.orientation=d.getOrientation(),r.selector=getSelector(this),r.tagname=this.prop("tagName").toLowerCase(),e=d._responsiveBasis(g,r),f=!("c"!=e),r.is_resp_basis_container=f,!0){case f:d._containerMonitor(o,this,g,r); -break;default:switch(!0){case!l:d._viewportMonitor(o,this,g,r),d._callbackManager(g,["ready","init"]);break;default:a.parent.rstv_store.main["rstv_breakpoints_"+m]=o,a.parent.rstv_store.main["rstv_this_"+m]=this,a.parent.rstv_store.main["rstv_options_"+m]=g,a.parent.rstv_store.main["rstv_core_info_"+m]=r,a.rstv_store.main=a.parent.rstv_store.main}}return Restive.store("rstv_turbo_classes_reflow_status_in",null),this.each(function(){var a=c(this);d.setBreakpoints(o,a,g,r)})}catch(s){alert(s),console.log(s)}},_error:function(a,b){var c=!("true"!==String(Restive.store(a+"_init")).toLowerCase());switch(!0){case!c:throw Restive.store(a+"_init",!0),new Error(b)}},_callbackManager:function(){var a,b,e=Array.prototype.slice.call(arguments),f=e[0],g=e[1];switch(!0){case in_array("ready",g):var h=f.onReady,i=f.onReady.getFuncBody().length;switch(!0){case c.isFunction(h)&&i>0:h()}}switch(!0){case in_array("resize",g):var j=f.onResize,k=f.onResize.getFuncBody().length;switch(!0){case c.isFunction(j)&&k>0:j()}}switch(!0){case in_array("turboclassesreflow",g):var l=g[1],m=f.onTurboClassReflow,n=f.onTurboClassReflow.getFuncBody().length;switch(!0){case c.isFunction(m)&&n>0:m()}var o=f.onTurboClassReflowIn,p=f.onTurboClassReflowIn.getFuncBody().length;switch(!0){case c.isFunction(o)&&p>0:switch(!0){case"in"==l:o()}}var q=f.onTurboClassReflowOut,r=f.onTurboClassReflowOut.getFuncBody().length;switch(!0){case c.isFunction(q)&&r>0:switch(!0){case"out"==l:q()}}}switch(!0){case in_array("rotate",g):var s=Restive.getOrientation(),t=f.onRotate,u=f.onRotate.getFuncBody().length;switch(!0){case c.isFunction(t)&&u>0:t()}var v=f.onRotateToP,w=f.onRotateToP.getFuncBody().length;switch(!0){case c.isFunction(v)&&w>0:switch(!0){case"portrait"==s:v()}}var x=f.onRotateToL,y=f.onRotateToL.getFuncBody().length;switch(!0){case c.isFunction(x)&&y>0:switch(!0){case"landscape"==s:x()}}}switch(!0){case in_array("addclass",g)||in_array("removeclass",g):var z=g[0],A=g[1],B={addclass:"onAddClass",removeclass:"onRemoveClass"};switch(a=f[B[""+z]],b=a.getFuncBody().length,!0){case c.isFunction(a)&&b>0:a(A)}}switch(!0){case in_array("init",g):switch(!0){case in_array("init",g):for(var C=["onPortrait","onLandscape","onRetina","onPhone","onTablet","onPC","onTV","onIOS","onAndroid","onSymbian","onBlackberry","onWindows","onWindowsPhone","onMobile","onNonMobile"],D=["isPortrait","isLandscape","isRetina","isPhone","isTablet","isPC","isTV","isIOS","isAndroid","isSymbian","isBlackberry","isWindows","isWindowsPhone","isMobile","isNonMobile"],E=0;E0:var F=d[D[E]],G=F();switch(!0){case G:a()}}}}},_URLMonitor:function(){var a=Restive.store("rstv_url"),b=Restive.store("rstv_url_hash"),c=md5(a);switch(!0){case c!=b:Restive.store("rstv_multi_bpm_idx rstv_cache_bpm rstv_cache_bpm_lock rstv_cache_req rstv_cache_bpm_viewport_diff",null),Restive.store("rstv_url_hash",c)}},_responsiveBasis:function(a,b){var c,d=b.selector,e=/^#[^\s]+$/i.test(d),f=elementIsChildOf("body",d),g=a.anchor;try{switch(!0){case f&&("element"==g||"e"==g):switch(!0){case!e:throw new Error("You must use only the JQuery ID selector when the 'anchor' option is set to 'e' or 'element'!")}c="c";break;default:c="v",Restive.store("rstv_resp_basis_viewport_init",!0)}return c}catch(h){alert(h),console.log(h)}},_viewportMonitor:function(b,e,f,g){var h="resize_viewport",i="change_orientation";c(a).on(h,function(){d._onResizeViewport(b,e,f,g)}),c(a).on(i,function(){d._onChangeOrientation(b,e,f,g)}),Restive.viewportMonitor()},_containerMonitor:function(a,b,c,e){var f="resizecontainer";b.on(f,function(){d._onResizeContainer(a,b,c,e)})},_onResizeViewport:function(a,b,e,f){try{return b.each(function(){var b=c(this);d.setBreakpoints(a,b,e,f,"rv"),d._callbackManager(e,["resize"])})}catch(g){alert(g),console.log(g)}},_onResizeContainer:function(a,b,e,f){try{return b.each(function(){var b=c(this);d.setBreakpoints(a,b,e,f,"rc")})}catch(g){alert(g),console.log(g)}},_onChangeOrientation:function(a,b,e,f){try{return b.each(function(){var b=c(this);d.setBreakpoints(a,b,e,f,"co"),d._callbackManager(e,["rotate"])})}catch(g){alert(g),console.log(g)}},getBreakpoints:function(a,b){return Restive.getBreakpoints(a,b)},setBreakpoints:function(){var a=Array.prototype.slice.call(arguments),b=a[0],c=a[1],e=a[2],f=a[3],g=a[4],h=!1,i=!1,j=!1,k=f.is_resp_basis_container,l=Restive.store("rstv_multi_abort_1");switch(!0){case"co"==g:h=!0}switch(!0){case"rv"==g:i=!0}switch(!0){case"rc"==g:j=!0}switch(!0){case l:return d._error("rstv_error_004","If you are calling the Restive.JS Constructor more than once, you must call $.restive.startMulti() before calling these constructors!"),!1}var m=Restive.store("rstv_multi_start"),n=parseInt(Restive.store("rstv_multi_count")),o=parseInt(Restive.store("rstv_multi_bpm_idx")),p=Restive.store("rstv_cache_bpm_lock");switch(!0){case!k:switch(!0){case m&&!h&&p:switch(!0){case isNumber(n)&&isNumber(o)&&n!=o:return!1}}}var q,r,s,t,u,v,w,x=(Restive.getUserAgent(),e.platform,e.formfactor,e.force_dip),y=f.platform,z=f.formfactor,A=(f.pixelratio,1==f.is_mobile?"true":"false",Restive.store("rstv_ort_init"),Restive.store("rstv_ort_curr"),Restive.isPortrait()),B=A===!0?!1:!0,C=[],D=!1,E=b.bp_w,F=b.bp_h,G=b.bp_o,H=b.bp_t,I=b.bp_c,J=[],K=[],L=[],M=[];switch(q=Restive.viewportW(),w=q,r=Restive.viewportH(),s=Restive.screenW(),t=Restive.screenH(),u=Restive.pixelW(),v=Restive.pixelH(),!0){case 1==x:w=Restive.pixelW()}switch(J=arrayToInteger(explode("|",E)),K=arrayToInteger(explode("|",F)),L=explode("|",G),M=explode("|",H),!0){case"undefined"!=typeof I||null!=I:D=!0,C=explode("|",I)}var N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,ab,bb,cb,db,eb,fb="",gb=!0,hb=!0,ib=!1,jb=!1,kb=!1,lb=!0,mb=!0,nb="",ob=count(J);N=arrayHasDuplicates(J),O=N?!1:!0;for(var pb=0;ob>pb;pb++){switch(!0){case"all"!=e.platform&&e.platform!=y:lb=!1}switch(!0){case"all"!=e.formfactor&&e.formfactor!=z:mb=!1}if(!lb||!mb)break;var qb=pb-1;switch(P=J[pb],!0){case pb>0:Q=J[qb];break;default:Q=0,R=0}switch(V=K[pb],$=M[pb],_=L[pb],hb=gb,!0){case"p"==_:db=A?!0:!1,ib=!0,gb=db,fb=hb===!1?R:fb;break;case"l"==_:db=B?!0:!1,ib=!0,gb=db,fb=hb===!1?R:fb;break;default:fb=ib===!0&&hb===!1?R:fb,R=pb>0?P:0,db=!0,gb=db}switch(!0){case 0==pb:S=0,fb=P;break;case pb>=1:switch(!0){case P!==Q:fb=P+"-!"+fb}S=parseInt(getValueAfterExplode(fb,"-!",1))}switch(ab=C[pb],!0){case 0==pb:T=S,U=P;break;default:T=0==S?S:S+1,U=P}switch(!0){case k:cb=Restive.eSpan(T,U,c,e.anchor_e_df,e.force_dip);break;default:cb=1==x?Restive.cSpan(T,U):Restive.vSpan(T,U)}switch(!0){case cb&&db:switch(!0){case k:jb=!0;break;default:switch(W=U-w,X=Math.abs(W),Y=w-T,Z=.1*U,Z=Math.round(Z),!0){case h:switch(!0){case W>Z:nb="4";break;default:nb="2"}break;default:switch(!0){case W>Z:nb="3";break;default:nb="1"}}switch(jb=!0,!0){case jb:switch(kb=!0,bb=ab,!0){case"x"!=_:O=!0}}}break;default:jb=!1}if(jb&&O)break}switch(!0){case kb:jb=!0,ab=bb}switch(!0){case!jb:switch(!0){case k:return void d.unsetElementDOM(c,e)}switch(T=0,U=0,!0){case!Restive.store("rstv_multi_start")||h:d.unsetElementDOM(c,e)}switch(!0){case!lb&&mb:nb="7";break;case!mb&&lb:nb="8";break;case!mb&&!lb:nb="9";break;default:switch(!0){case h:nb="6";break;default:nb="5"}}switch(eb=d._addTurboClasses("",e.turbo_classes),eb=d._addTurboClassesReflow(eb,e),!0){case!Restive.store("rstv_multi_start")||h:d.setElementDOM(c,eb,e)}Restive.store("rstv_breakpoint_match_curr",!1);break;case jb:switch(eb=d._addTurboClasses(ab,e.turbo_classes),eb=d._addTurboClassesReflow(eb,e),!0){case k:return void d.setElementDOM(c,eb,e)}switch(!0){case Restive.store("rstv_multi_start"):var rb=parseInt(Restive.store("rstv_bpm_h_counter"));switch(!0){case h:d.setElementDOM(c,eb,e);break;default:switch(!0){case rb>1:var sb=parseInt(Restive.store("rstv_cache_bpm_viewport_diff"));switch(!0){case sb>X:switch(d.setElementDOM(c,eb,e),!0){case!p:Restive.store("rstv_multi_bpm_idx",n)}Restive.store("rstv_cache_bpm_viewport_diff",X)}break;default:switch(d.setElementDOM(c,eb,e),!0){case!p:Restive.store("rstv_multi_bpm_idx",n)}Restive.store("rstv_cache_bpm_viewport_diff",X)}rb++,Restive.store("rstv_bpm_h_counter",rb,"",{expires:1e3})}break;default:d.setElementDOM(c,eb,e)}Restive.store("rstv_breakpoint_match_curr",!0)}var tb=Restive.store("rstv_cache_bpm_lock");switch(!0){case m&&!h&&!(isString(tb)&&""!=tb||isBool(tb)):Restive.store("rstv_breakpoint_match_curr")?d._extVarTracker("rstv_cache_bpm","h","ls",!1,"",!1):d._extVarTracker("rstv_cache_bpm","m","ls",!1,"",!1)}switch(!0){case jb:return!0}return!1},_addTurboClassesReflow:function(a,b){switch(!0){case d.isPC():switch(!0){case b.turbo_classes_reflow&&isString(b.turbo_classes)&&""!=b.turbo_classes:var c,e,f,g,h,i,j,k,l,m=[],n=[],o=a,p=!1,q=Restive.store("rstv_turbo_classes_reflow_status_in");switch(m=explode(",",b.turbo_classes_reflow_limits),i=parseInt(m[0]),h=parseInt(m[1]),c=/is_mobile=/i.test(b.turbo_classes),!0){case c:n=explode(",",b.turbo_classes);for(var r=0;r1:e=d-1}return f=e+1,Restive.store("rstv_multi_bpm_idx",f),e},_multiConstructorManageEvents:function(b){c(a).off("resize");var e=parseInt(b)+1,f=a.parent.rstv_store.main["rstv_breakpoints_"+e],g=a.parent.rstv_store.main["rstv_this_"+e],h=a.parent.rstv_store.main["rstv_options_"+e],i=a.parent.rstv_store.main["rstv_core_info_"+e];switch(!0){case Restive.store("rstv_resp_basis_viewport_init"):d._viewportMonitor(f,g,h,i),d._callbackManager(h,["ready","init"])}},_multiConstructorFinalize:function(){var a=d._multiConstructorSelectPos();d._multiConstructorManageEvents(a),Restive.store("rstv_cache_bpm_lock",!0),Restive.store("rstv_cache_req",null),Restive.store("rstv_multi_count",null)},_multiConstructorStart:function(){switch(Restive.store("rstv_multi_count",0),Restive.store("rstv_multi_start",!0),Restive.store("rstv_multi_abort_1",!1),Restive.store("rstv_multi_abort_2",!1),Restive.store("rstv_bpm_h_counter",1,"",{expires:1e3}),Restive.store("rstv_bpm_m_counter",1,"",{expires:1e3}),!0){case!Restive.isStorageValueSet("rstv_multi_start_count"):Restive.store("rstv_multi_start_count",1),Restive.store("rstv_multi_end",!1);break;default:Restive.incrementStorageValue("rstv_multi_start_count")}},_multiConstructorManager:function(){var a=Restive.store("rstv_multi_start"),b=Restive.store("rstv_multi_end"),c=parseInt(Restive.store("rstv_multi_count")),e=parseInt(Restive.store("rstv_multi_start_count"));switch(!0){case c>1:switch(!0){case a===!1:Restive.store("rstv_multi_abort_1",!0)}}switch(!0){case e>1&&b===!1:Restive.store("rstv_multi_abort_2",!0)}d._URLMonitor()},_multiConstructorCounter:function(){Restive.incrementStorageValue("rstv_multi_count")},_multiConstructorEnd:function(){Restive.store("rstv_multi_start_count",0),Restive.store("rstv_multi_end",!0),d._multiConstructorFinalize()},getUserAgent:function(){return Restive.getUserAgent()},getPlatform:function(){return Restive.getPlatform()},getFormFactor:function(){return Restive.getFormFactor()},getOrientation:function(){return Restive.getOrientation()},getResolution:function(){return Restive.getResolution()},getPixelRatio:function(a){return Restive.getPixelRatio(a)},getViewportW:function(){return Restive.viewportW()},getViewportH:function(){return Restive.viewportH()},getScreenW:function(){return Restive.screenW()},getScreenH:function(){return Restive.screenH()},getPixelW:function(){return Restive.pixelW()},getPixelH:function(){return Restive.pixelH()},isRetina:function(){return Restive.isRetina()},isMobile:function(){return Restive.isMobile()},isNonMobile:function(){return Restive.isNonMobile()},isPhone:function(){return Restive.isPhone()},isTablet:function(){return Restive.isTablet()},isTV:function(){return Restive.isTV()},isPC:function(){return Restive.isPC()},isIOS:function(){return Restive.isIOS()},isApple:function(){return Restive.isApple()},isAndroid:function(){return Restive.isAndroid()},isSymbian:function(){return Restive.isSymbian()},isBlackberry:function(){return Restive.isBlackberry()},isWindows:function(){return Restive.isWindows()},isWindowsPhone:function(){return Restive.isWindowsPhone()},isPortrait:function(){return Restive.isPortrait()},isLandscape:function(){return Restive.isLandscape()}};c.fn.restive=function(a){if(d[a])return d[a].apply(this,Array.prototype.slice.call(arguments,1));if("object"==typeof a||!a){var b=c.extend({},c.fn.restive.defaults,a),e=new Array(b);return d.init.apply(this,e)}c.error("Method "+a+" does not exist on Restive.JS")},c.fn.restive.defaults={breakpoints:[],classes:[],anchor:"window",anchor_e_df:"w",platform:"all",formfactor:"all",turbo_classes:"",turbo_classes_reflow:!1,turbo_classes_reflow_limits:"480,960",force_dip:!1,onReady:function(){},onResize:function(){},onRotate:function(){},onRotateToP:function(){},onRotateToL:function(){},onPortrait:function(){},onLandscape:function(){},onRetina:function(){},onPhone:function(){},onTablet:function(){},onPC:function(){},onTV:function(){},onIOS:function(){},onAndroid:function(){},onSymbian:function(){},onBlackberry:function(){},onWindows:function(){},onWindowsPhone:function(){},onMobile:function(){},onNonMobile:function(){},onTurboClassReflow:function(){},onTurboClassReflowIn:function(){},onTurboClassReflowOut:function(){},onAddClass:function(){},onRemoveClass:function(){}};var e=c.restive=function(){};c.extend(e,{getUserAgent:function(){return d.getUserAgent()},getPlatform:function(){return d.getPlatform()},getFormFactor:function(){return d.getFormFactor()},getOrientation:function(){return d.getOrientation()},getResolution:function(){return d.getResolution()},getPixelRatio:function(a){return d.getPixelRatio(a)},getViewportW:function(){return d.getViewportW()},getViewportH:function(){return d.getViewportH()},getScreenW:function(){return d.getScreenW()},getScreenH:function(){return d.getScreenH()},getPixelW:function(){return d.getPixelW()},getPixelH:function(){return d.getPixelH()},isRetina:function(){return d.isRetina()},isMobile:function(){return d.isMobile()},isNonMobile:function(){return d.isNonMobile()},isPhone:function(){return d.isPhone()},isTablet:function(){return d.isTablet()},isTV:function(){return d.isTV()},isPC:function(){return d.isPC()},isIOS:function(){return d.isIOS()},isApple:function(){return d.isIOS()},isAndroid:function(){return d.isAndroid()},isSymbian:function(){return d.isSymbian()},isBlackberry:function(){return d.isBlackberry()},isWindows:function(){return d.isWindows()},isWindowsPhone:function(){return d.isWindowsPhone()},isPortrait:function(){return d.isPortrait()},isLandscape:function(){return d.isLandscape()},startMulti:function(){d._multiConstructorStart()},endMulti:function(){d._multiConstructorEnd()}})}(window,document,jQuery); \ No newline at end of file +function count(t,e){var r,s=!1,i=0;switch(!0){case null===t||"undefined"==typeof t:return 0;case!isArray(t)&&!isObject(t):s=!0}switch(!0){case t.hasOwnProperty("length"):return t.length}switch(!0){case s:return 1}switch(!0){case"COUNT_RECURSIVE"===e:e=1}switch(!0){case 1!=e:e=0}for(r in t)switch(!0){case t.hasOwnProperty(r):switch(i++,!0){case 1==e&&t[r]&&(isArray(t[r])||isObject(t[r])):i+=this.count(t[r],1)}}return i}function in_array(t,e,r){var s="",i=!!r;if(i){for(s in e)if(e[s]===t)return!0}else for(s in e)if(e[s]==t)return!0;return!1}function array_search(t,e,r){var s=!!r,i="";if(e&&"object"==typeof e&&e.change_key_case)return e.search(t,r);if("object"==typeof t&&t.exec){if(!s){var a="i"+(t.global?"g":"")+(t.multiline?"m":"")+(t.sticky?"y":"");t=new RegExp(t.source,a)}for(i in e)if(t.test(e[i]))return i;return!1}for(i in e)if(s&&e[i]===t||!s&&e[i]==t)return i;return!1}function array_keys(t,e,r){var s="undefined"!=typeof e,i=[],a=!!r,n=!0,o="";if(t&&"object"==typeof t&&t.change_key_case)return t.keys(e,r);for(o in t)t.hasOwnProperty(o)&&(n=!0,s&&(a&&t[o]!==e?n=!1:t[o]!=e&&(n=!1)),n&&(i[i.length]=o));return i}function array_values(t){var e=[],r="";if(t&&"object"==typeof t&&t.change_key_case)return t.values();for(r in t)e[e.length]=t[r];return e}function array_combine(t,e){var r={},s=t&&t.length,i=0;if("object"!=typeof t||"object"!=typeof e||"number"!=typeof s||"number"!=typeof e.length||!s)return!1;if(s!=e.length)return!1;for(i=0;s>i;i++)r[t[i]]=e[i];return r}function implode(t,e){var r=Array.prototype.slice.call(arguments),s=r[2],i="",a="",n="";if(1===arguments.length&&(e=t,t=""),"object"==typeof e){if(s)for(i=0;i0?r>=s.length?s:s.slice(0,r-1).concat([s.slice(r-1).join(t)]):-r>=s.length?[]:(s.splice(s.length+r),s))}function urlencode(t){return t=(t+"").toString(),encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function strrpos(t,e,r){var s=-1;return r?(s=(t+"").slice(r).lastIndexOf(e),-1!==s&&(s+=r)):s=(t+"").lastIndexOf(e),s>=0?s:!1}function uasort(t,e){var r=[],s="",i=0,a=!1,n={};"string"==typeof e?e=this[e]:"[object Array]"===Object.prototype.toString.call(e)&&(e=this[e[0]][e[1]]),this.php_js=this.php_js||{},this.php_js.ini=this.php_js.ini||{},a=this.php_js.ini["phpjs.strictForIn"]&&this.php_js.ini["phpjs.strictForIn"].local_value&&"off"!==this.php_js.ini["phpjs.strictForIn"].local_value,n=a?t:n;for(s in t)t.hasOwnProperty(s)&&(r.push([s,t[s]]),a&&delete t[s]);for(r.sort(function(t,r){return e(t[1],r[1])}),i=0;io;o++)e=parseInt(i[o]),a.push(e);return n=array_combine(s,a)}function arrayHasDuplicates(t){for(var e={},r=count(t),s=0;r>s;++s){var i=t[s];if(Object.prototype.hasOwnProperty.call(e,i))return!0;e[i]=!0}return!1}function getValueAfterExplode(t,e,r){var s=explode(e,t);return s[r]}function getSortedKeys(t){for(var e=[],r=0;re.value?1:0});for(var s=[],r=0;ri:c=u>=a?!1:c,s=c?s+1:s}return i=t[s],o?s:i}function isEvenDecimal(t){var e,r,s=Array.prototype.slice.call(arguments),i=isBool(s[1])?s[1]:!1;switch(e=0>t&&i?-1*t:t,r=e%1,!0){case!isNumber(e)||1>e||0==r:return!1}return e=Math.floor(e),r=e%2,!(0!=r)}function getUrl(){var t,e=Array.prototype.slice.call(arguments),r=isString(e[0])&&""!=e[0]?e[0]:"",s=isString(e[1])&&""!=e[1]?e[1]:document.URL,i=[],a=/\?+/.test(s),n=s.match(/^([h|f]{1}[t]{0,1}tp[s]{0,1}\:\/\/)([^ ]+?)\?([^ ]*)/i);switch(!0){case"basepath"==r||"bp"==r:return a?n[1]+n[2]:s;case"basedir"==r||"bd"==r:return t=a?n[1]+n[2]:s,i=explode("/",t),i.pop(),implode("/",i);case"query"==r||"q"==r:return a?n[3]:"";default:return s}}!function(){function t(t,e,r){return t&e|~t&r}function e(t,e,r){return t&r|e&~r}function r(t,e,r){return t^e^r}function s(t,e,r){return e^(t|~r)}function i(t){return String.fromCharCode(255&t)+String.fromCharCode(t>>>8&255)+String.fromCharCode(t>>>16&255)+String.fromCharCode(t>>>24&255)}function a(t){for(;0>t;)t+=4294967296;for(;t>4294967295;)t-=4294967296;return t}function n(t,e,r,s,i){var n,o,c,u,p,v,_,d,h;n=s[0],o=s[1],c=s[2],u=s[3],p=i[0],v=i[1],_=i[2],h=r(e[o],e[c],e[u]),d=e[n]+h+t[p]+l[_],d=a(d),d=d<>>32-v,d+=e[o],e[n]=a(d)}function o(t){for(var e,r=-1,s=(t=t.split("")).length,i=String.fromCharCode;++r=127?i(192|e>>>6)+i(128|63&e):t[r]);return t.join("")}function c(t){var e,r,s,c,u,l,p,v,_,d,m,f,b;if(/[\x80-\xFF]/.test(t)&&(t=o(t)),s=new Array(1732584193,4023233417,2562383102,271733878),u=t.length,l=63&u,p=56>l?56-l:120-l,p>0)for(t+="€",d=0;p-1>d;d++)t+="\x00";for(t+=i(8*u),t+=i(0),u+=p+8,e=new Array(0,1,2,3),r=new Array(16),c=new Array(4),f=0;u>f;f+=64){for(d=0,m=f;16>d;d++,m+=4)r[d]=t.charCodeAt(m)|t.charCodeAt(m+1)<<8|t.charCodeAt(m+2)<<16|t.charCodeAt(m+3)<<24;for(d=0;4>d;d++)c[d]=s[d];for(d=0;4>d;d++)for(v=h[d][0],_=h[d][1],m=0;16>m;m++)n(r,c,v,e,_[m]),b=e[0],e[0]=e[3],e[3]=e[2],e[2]=e[1],e[1]=b;for(d=0;4>d;d++)s[d]+=c[d],s[d]=a(s[d])}return i(s[0])+i(s[1])+i(s[2])+i(s[3])}function u(t){var e,r,s,i;for(i=c(t),r="",e=0;16>e;e++)s=i.charCodeAt(e),r+="0123456789abcdef".charAt(s>>4&15),r+="0123456789abcdef".charAt(15&s);return r}var l=new Array(0,3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745),p=new Array(new Array(0,7,1),new Array(1,12,2),new Array(2,17,3),new Array(3,22,4),new Array(4,7,5),new Array(5,12,6),new Array(6,17,7),new Array(7,22,8),new Array(8,7,9),new Array(9,12,10),new Array(10,17,11),new Array(11,22,12),new Array(12,7,13),new Array(13,12,14),new Array(14,17,15),new Array(15,22,16)),v=new Array(new Array(1,5,17),new Array(6,9,18),new Array(11,14,19),new Array(0,20,20),new Array(5,5,21),new Array(10,9,22),new Array(15,14,23),new Array(4,20,24),new Array(9,5,25),new Array(14,9,26),new Array(3,14,27),new Array(8,20,28),new Array(13,5,29),new Array(2,9,30),new Array(7,14,31),new Array(12,20,32)),_=new Array(new Array(5,4,33),new Array(8,11,34),new Array(11,16,35),new Array(14,23,36),new Array(1,4,37),new Array(4,11,38),new Array(7,16,39),new Array(10,23,40),new Array(13,4,41),new Array(0,11,42),new Array(3,16,43),new Array(6,23,44),new Array(9,4,45),new Array(12,11,46),new Array(15,16,47),new Array(2,23,48)),d=new Array(new Array(0,6,49),new Array(7,10,50),new Array(14,15,51),new Array(5,21,52),new Array(12,6,53),new Array(3,10,54),new Array(10,15,55),new Array(1,21,56),new Array(8,6,57),new Array(15,10,58),new Array(6,15,59),new Array(13,21,60),new Array(4,6,61),new Array(11,10,62),new Array(2,15,63),new Array(9,21,64)),h=new Array(new Array(t,p),new Array(e,v),new Array(r,_),new Array(s,d));md5=function(t){return u(t)}}(),"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return 10>t?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var r,s,i,a,n,o=gap,c=e[t];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(t)),"function"==typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,n=[],"[object Array]"===Object.prototype.toString.apply(c)){for(a=c.length,r=0;a>r;r+=1)n[r]=str(r,c)||"null";return i=0===n.length?"[]":gap?"[\n"+gap+n.join(",\n"+gap)+"\n"+o+"]":"["+n.join(",")+"]",gap=o,i}if(rep&&"object"==typeof rep)for(a=rep.length,r=0;a>r;r+=1)"string"==typeof rep[r]&&(s=rep[r],i=str(s,c),i&&n.push(quote(s)+(gap?": ":":")+i));else for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&(i=str(s,c),i&&n.push(quote(s)+(gap?": ":":")+i));return i=0===n.length?"{}":gap?"{\n"+gap+n.join(",\n"+gap)+"\n"+o+"}":"{"+n.join(",")+"}",gap=o,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(t,e,r){var s;if(gap="",indent="","number"==typeof r)for(s=0;r>s;s+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var r,s,i=t[e];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(s=walk(i,r),void 0!==s?i[r]=s:delete i[r]);return reviver.call(t,e,i)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(t,e){function r(t,r){s.addType(t,function(a,n,o){var c,u,l,p,v=n,_=(new Date).getTime();if(!a){v={},p=[],l=0;try{for(a=r.length;a=r.key(l++);)i.test(a)&&(u=JSON.parse(r.getItem(a)),u.expires&&u.expires<=_?p.push(a):v[a.replace(i,"")]=u.data);for(;a=p.pop();)r.removeItem(a)}catch(d){}return v}if(a="__amplify__"+a,n===e){if(c=r.getItem(a),u=c?JSON.parse(c):{expires:-1},!(u.expires&&u.expires<=_))return u.data;r.removeItem(a)}else if(null===n)r.removeItem(a);else{u=JSON.stringify({data:n,expires:o.expires?_+o.expires:null});try{r.setItem(a,u)}catch(d){s[t]();try{r.setItem(a,u)}catch(d){throw s.error()}}}return v})}var s=t.store=function(t,e,r){var i=s.type;return r&&r.type&&r.type in s.types&&(i=r.type),s.types[i](t,e,r||{})};s.types={},s.type=null,s.addType=function(t,e){s.type||(s.type=t),s.types[t]=e,s[t]=function(e,r,i){return i=i||{},i.type=t,s(e,r,i)}},s.error=function(){return"amplify.store quota exceeded"};var i=/^__amplify__/;for(var a in{localStorage:1,sessionStorage:1})try{window[a].setItem("__amplify__","x"),window[a].removeItem("__amplify__"),r(a,window[a])}catch(n){}if(!s.types.localStorage&&window.globalStorage)try{r("globalStorage",window.globalStorage[window.location.hostname]),"sessionStorage"===s.type&&(s.type="globalStorage")}catch(n){}!function(){if(!s.types.localStorage){var t=document.createElement("div"),r="amplify";t.style.display="none",document.getElementsByTagName("head")[0].appendChild(t);try{t.addBehavior("#default#userdata"),t.load(r)}catch(i){return void t.parentNode.removeChild(t)}s.addType("userData",function(i,a,n){t.load(r);var o,c,u,l,p,v=a,_=(new Date).getTime();if(!i){for(v={},p=[],l=0;o=t.XMLDocument.documentElement.attributes[l++];)c=JSON.parse(o.value),c.expires&&c.expires<=_?p.push(o.name):v[o.name]=c.data;for(;i=p.pop();)t.removeAttribute(i);return t.save(r),v}if(i=i.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),i=i.replace(/^-/,"_-"),a===e){if(o=t.getAttribute(i),c=o?JSON.parse(o):{expires:-1},!(c.expires&&c.expires<=_))return c.data;t.removeAttribute(i)}else null===a?t.removeAttribute(i):(u=t.getAttribute(i),c=JSON.stringify({data:a,expires:n.expires?_+n.expires:null}),t.setAttribute(i,c));try{t.save(r)}catch(d){null===u?t.removeAttribute(i):t.setAttribute(i,u),s.userData();try{t.setAttribute(i,c),t.save(r)}catch(d){throw null===u?t.removeAttribute(i):t.setAttribute(i,u),s.error()}}return v})}}(),function(){function t(t){return t===e?e:JSON.parse(JSON.stringify(t))}var r={},i={};s.addType("memory",function(s,a,n){return s?a===e?t(r[s]):(i[s]&&(clearTimeout(i[s]),delete i[s]),null===a?(delete r[s],null):(r[s]=a,n.expires&&(i[s]=setTimeout(function(){delete r[s],delete i[s]},n.expires)),a)):t(r)})}()}(this.amplify=this.amplify||{}),function(t){function e(){n.setAttribute("content",v),_=!0}function r(){n.setAttribute("content",p),_=!1}function s(s){t.orientation;return 90==Math.abs(t.orientation)?void(_&&e()):(u=s.accelerationIncludingGravity,o=Math.abs(u.x),c=Math.abs(u.y),void(0==c||o/c>1.2?_&&r():_||e()))}var i=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(navigator.platform.toLowerCase())&&/os [1-5]_[0-9_]* like mac os x/i.test(i)&&i.indexOf("applewebkit")>-1&&-1==i.indexOf("crios")){var a=t.document;if(a.querySelector){var n=a.querySelector("meta[name=viewport]");if(n){var o,c,u,l=n&&n.getAttribute("content"),p=l+",maximum-scale=1",v=l+",maximum-scale=10",_=!0;t.addEventListener("orientationchange",e,!1),t.addEventListener("devicemotion",s,!1)}}}}(this),function(t,e,r){"$:nomunge";function s(){i=e[o](function(){a.each(function(){var e=t(this),r=e.width(),s=e.height(),i=t.data(this,u);(r!==i.w||s!==i.h)&&e.trigger(c,[i.w=r,i.h=s])}),s()},n[l])}var i,a=t([]),n=t.resizecontainer=t.extend(t.resize,{}),o="setTimeout",c="resizecontainer",u=c+"-special-event",l="delay",p="throttleWindow";n[l]=250,n[p]=!0,t.event.special[c]={setup:function(){if(!n[p]&&this[o])return!1;var e=t(this);a=a.add(e),t.data(this,u,{w:e.width(),h:e.height()}),1===a.length&&s()},teardown:function(){if(!n[p]&&this[o])return!1;var e=t(this);a=a.not(e),e.removeData(u),a.length||clearTimeout(i)},add:function(e){function s(e,s,a){var n=t(this),o=t.data(this,u);o.w=s!==r?s:n.width(),o.h=a!==r?a:n.height(),i.apply(this,arguments)}if(!n[p]&&this[o])return!1;var i;return t.isFunction(e)?(i=e,s):(i=e.handler,void(e.handler=s))}}}(jQuery,window),function(t){window.elementIsChildOf=function(e,r){var s=!1,i=t(""+e),a=t(""+r);switch(!0){case-1!=t(a).parents().index(i):s=!0}return s},window.getSelector=function(e){var r=t(e),s=r.attr("id");if(s)return"#"+s;var i=r[0].nodeName.toLowerCase();if("html"==i||"body"==i)return i;var a=r.parents().map(function(){return this.tagName}).get().reverse().join(" ");a&&(a+=" "+r[0].nodeName);var n=r.attr("class");n&&(a+="."+t.trim(n).replace(/\s/gi,"."));var o=r.attr("name");if(o&&(a+="[name='"+o+"']"),!o){var c=r.index();c&&(c+=1,a+=":nth-child("+c+")")}return a}}(jQuery);var Restive=function(t,e,r){function s(){c("rstv_timestamp_curr",microtime(!0)),c("rstv_timestamp_init",c("rstv_timestamp_curr")),i(),A(),c("rstv_ort_init",$()),c("rstv_ort_curr",$())}function i(){c("rstv_var_doc_client_w",me.clientWidth),c("rstv_var_doc_client_h",me.clientHeight),c("rstv_var_win_outer_w",t.outerWidth),c("rstv_var_win_outer_h",t.outerHeight),c("rstv_var_win_screen_w",be.width),c("rstv_var_win_screen_h",be.height)}function a(){var t=parseInt(c("rstv_loaded_count"));switch(!0){case!isNumber(t):t=0}t++,c("rstv_loaded_count",t,"",{expires:1500})}function n(){var t=parseInt(c("rstv_loaded_count")),e=c("rstv_ffld_is_init");switch(!0){case t>1:switch(c("rstv_viewportW rstv_viewportW_dip rstv_viewportH rstv_viewportH_dip rstv_screenW rstv_screenH",null),c("rstv_is_ios rstv_is_android rstv_is_blackberry rstv_is_symbian rstv_is_windows rstv_is_windows_phone",null),c("rstv_is_android_1_ rstv_is_android_2_ rstv_is_android_3_",null),c("rstv_is_phone rstv_is_tablet rstv_is_tv rstv_is_pc",null),c("rstv_ort_curr rstv_timestamp_curr rstv_is_portrait rstv_is_landscape",null),c("rstv_multi_count rstv_multi_bpm_idx rstv_cache_bpm rstv_cache_bpm_lock rstv_cache_req rstv_cache_bpm_viewport_diff",null),c("rstv_user_agent",null),c("rstv_timestamp_curr",microtime(!0)),c("rstv_ort_curr",$()),!0){case!e:c("rstv_timestamp_init",c("rstv_timestamp_curr")),c("rstv_ort_init",$()),c("rstv_ffld_is_init",!0)}}}function o(){try{localStorage.setItem("__test","data")}catch(t){var e=/localStorage.*?(undefined|denied|null)|setItem.*?(undefined|null)|security *error.*?dom +exception +18/i.test(t.message),r=/quota.*?(exceeded|reached)/i.test(t.name);if(e||r)return!0}return!1}function c(){var e,r,s=Array.prototype.slice.call(arguments),i=t.rstv_store.main.rstv_is_priv_browsing,a=s[0],n=s[1],o="undefined"!=typeof s[2]&&null!==s[2]&&isString(s[2])&&""!=s[2]?s[2]:"ss",c=s[3],u=[],l=isString(a)&&""!=a?!1:!0,p=!("undefined"==typeof n||null===n||!(isString(n)&&""!=n||isNumber(n)||isArray(n)&&count(n)>0||isBool(n)||isObject(n))),v=!(null!==n);try{switch(!0){case i:e="storage",r=t.rstv_store[e];break;default:switch(!0){case"ls"==o:e="localStorage";break;default:e="sessionStorage"}switch(r=amplify.store[e],!0){case!t.sessionStorage||!t.localStorage:r=amplify.store}switch(!0){case l:return r()}}switch(!0){case!p&&!v:return r(a)}switch(!0){case v:u=explode(" ",a);for(var _=0;_=1.5?e*u:e}return e=Math.floor(e)}var f,b,w,g,y,x,k,R,A,C,M=O(),z=/opera.+(mini|mobi)/i.test(M),T=!!j(),P=!!I(),q=!!N(),H=!!W(),B=!!W("1."),E=!!W("2."),F=!!(B||E||P||q),V=h,L=m,U=V,$=_("w"),Q=_("h"),Y=$,G=Q;switch(!0){case F:f=0>=l?v:l,b=0>=p?d:p,w=f,g=b;break;default:f=v,b=d,w=v,g=d}switch(!0){case(E||P)&&!z:V=0>=l?V:l,L=0>=p?L:p}switch(x=V/L,y=V-f,y=Math.abs(y),C=z&&260>f?4>=y&&x>=1?!0:!1:!0,R=!!(w>=g&&C),A=!!(V>=L),!0){case T:Y=Y.slice(7),G=G.slice(6);break;case H:Y=Y.slice(4),G=G.slice(3);break;case P:Y=Y.slice(4)}switch(!0){case R:$=G,Q=Y;break;default:$=Y,Q=G}switch(!0){case"vW"==t:e=f;break;case"vH"==t:e=b;break;case"sW"==t:k=!!(R===!0&&A===!1||R===!1&&A===!0),e=k?L:V,U=k?L:V,r=e*u,n=a?in_array(e,$)||in_array(r,$)?!1:!0:!1;break;case"sH"==t:k=!!(R===!0&&A===!1||R===!1&&A===!0),e=k?V:L,U=k?L:V,r=e*u,n=a?in_array(e,Q)||in_array(r,Q)?!1:!0:!1}switch(s=U/f,!0){case 1>=u&&1.1>=s:switch(!0){case"sW"==t&&n:e=getClosestNumberMatchArray($,e,"","",8);break;case"sH"==t&&n:e=getClosestNumberMatchArray(Q,e,"","",8)}return e}switch(!0){case T:e*=u;break;default:switch(!0){case!E:switch(!0){case 1>=u&&s>1.1:e=in_array(t,["vW","vH"])?e*s:e;break;case u>1&&1.1>=s:switch(!0){case 1.1>=u:switch(!0){case in_array(t,["vW","vH"]):e*=u,e=isEvenDecimal(e)?Math.floor(e):e}break;default:e*=u}break;case u>1&&s>1.1:switch(!0){case in_array(t,["vW","vH"]):e*=u,e=isEvenDecimal(e)?Math.floor(e):Math.ceil(e)}}}switch(!0){case"sW"==t&&n:e=getClosestNumberMatchArray($,e,"","",8);break;case"sH"==t&&n:e=getClosestNumberMatchArray(Q,e,"","",8)}}return e=Math.floor(e)}function h(t){var e,r=!("w"!=t),s=!(!D()&&!J()),i=S();switch(!0){case s:i=1.5>=i?1:i}return e=r?w()/i:g()/i,Math.round(e)}function m(t,e){var r,s=Array.prototype.slice.call(arguments),i=isString(s[2])&&""!=s[2]?s[2]:"d",a=isBool(s[3])?s[3]:!1;switch(e=e.toLowerCase(),!0){case"w"==e:switch(!0){case"i"==i:r=t.innerWidth();break;case"o"==i:r=t.outerWidth();break;default:r=t.width()}break;case"h"==e:switch(!0){case"i"==i:r=t.innerHeight();break;case"o"==i:r=t.outerHeight();break;default:r=t.height()}break;default:r=!1}switch(!0){case a===!1:r*=S()}return r}function f(t){var e=Array.prototype.slice.call(arguments),r=e[1],s=e[2];return m(t,"w",r,s)}function b(t){var e=Array.prototype.slice.call(arguments),r=e[1],s=e[2];return m(t,"h",r,s)}function w(){return p("rstv_viewportW")?c("rstv_viewportW"):d("vW",c("rstv_is_getdim_screen_adj"))}function g(){return p("rstv_viewportH")?c("rstv_viewportH"):d("vH",c("rstv_is_getdim_screen_adj"))}function y(){return p("rstv_screenW")?c("rstv_screenW"):d("sW",c("rstv_is_getdim_screen_adj"))}function x(){return p("rstv_screenH")?c("rstv_screenH"):d("sH",c("rstv_is_getdim_screen_adj"))}function k(){return p("rstv_viewportW_dip")?c("rstv_viewportW_dip"):h("w")}function R(){return p("rstv_viewportH_dip")?c("rstv_viewportH_dip"):h("h")}function A(){c("rstv_viewportW rstv_viewportW_dip rstv_viewportH rstv_viewportH_dip rstv_screenW rstv_screenH",null),c("rstv_viewportW",w()),c("rstv_viewportH",g()),c("rstv_screenW",y()),c("rstv_screenH",x()),c("rstv_viewportW_dip",k()),c("rstv_viewportH_dip",R())}function S(t){switch(!0){case p("rstv_pixel_ratio"):return c("rstv_pixel_ratio")}var e,r,s,i,a=O(),n=/opera.+(mini|mobi)/i.test(a),o=c("rstv_var_doc_client_w"),u=c("rstv_var_win_outer_w"),l=c("rstv_var_win_screen_w"),v=!!I(),_=!!N(),d=!!W("1."),h=!!W("2."),m=!!(d||h||v||_),f=!(!_&&!v),b=m?0>=u?o:u:o,w=!h&&!v||n?l:0>=u?l:u;switch(r=he.devicePixelRatio,!0){case 0>=r||"undefined"==typeof r||null===r:switch(s=w/b,e=s,!0){case f:switch(!0){case e>.5&&1.2>e:e=1;break;case e>=1.2&&2>e:e=1.5;break;case e>=2&&3>e:e=2;break;case e>=3:e=3;break;default:e=1}}c("rstv_pixel_ratio_virtual",s);break;default:e=r}switch(!0){case!isNumber(t):return i=e||(S(3)?3:S(2)?2:S(1.5)?1.5:S(1)?1:0),c("rstv_pixel_ratio",i),i}switch(!0){case!isFinite(t):return!1}switch(!0){case e&&e>0:return e>=t}switch(t="only all and (min--moz-device-pixel-ratio:"+t+")",!0){case we(t).matches:return!0}return!!we(t.replace("-moz-","")).matches}function C(){var t=S();switch(!0){case t>=2:return!0}return!1}function M(t){return function(e,r){var s,i=Array.prototype.slice.call(arguments),a=i[2],n=!(!isObject(a)||"undefined"==typeof a||null===a),o=i[3],c=i[4],u=n?t(a,o,c):t();return s=u>=(e||0),r?s&&r>=u:s}}function O(){switch(!0){case p("rstv_user_agent"):return c("rstv_user_agent")}var t,e=navigator.userAgent.toLowerCase();switch(t=/mozilla.+x11(?!.*?(ubuntu|firefox|chrome|safari|opera|opr|qupzilla))/i.test(e),!0){case t:r.ajax({type:"GET",async:!1,crossDomain:!0,url:"http://www.restive.io/ping/ua.php",headers:{"Cache-Control":"no-cache",Pragma:"no-cache"},success:function(t){e=t},error:function(){console.log("error")}})}return c("rstv_user_agent",e),e}function z(){switch(!0){case T("ios"):return"ios";case T("android"):return"android";case T("symbian"):return"symbian";case T("blackberry"):return"blackberry";case T("windows"):return"windows";default:return"other"}}function T(t){var e=Array.prototype.slice.call(arguments),r=!(!isString(e[1])||""==e[1]),s="",i="",a="";switch(!0){case r:s=e[1],s=s.replace(/^\s+|\s+$/g,""),i=" "+s,a="_"+s.replace(".","_")}switch(!0){case p("rstv_is_"+t+a):return c("rstv_is_"+t+a)}var n=O(),o=!1;switch(!0){case"ios"==t:o=/\bipad|\biphone|\bipod/i.test(n);break;case"android"==t:var u=new RegExp("\\bandroid"+i,"i");o=u.test(n);break;case"symbian"==t:o=/series(4|6)0|symbian|symbos|syb-[0-9]+|\bs60\b/i.test(n);break;case"blackberry"==t:o=/bb[0-9]+|blackberry|playbook|rim +tablet/i.test(n);break;case"windows"==t:o=/window mobile|windows +(ce|phone)|windows +nt.+arm|windows +nt.+touch|xblwp7|zunewp7/i.test(n);break;case"windows_phone"==t:o=/windows +phone|xblwp7|zunewp7/i.test(n);break;default:return!1}return c("rstv_is_"+t+a,o),!!o}function j(){return T("ios")}function P(){return T("ios")}function W(){var t=Array.prototype.slice.call(arguments),e=t[0];return T("android",e)}function I(){return T("symbian")}function q(){return T("blackberry")}function N(){return T("windows")}function H(){return T("windows_phone")}function B(t){return/android|android.+mobile|avantgo|bada\/|\bbb[0-9]+|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|\bip(hone|od|ad)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|motorola|mobile.+firefox|netfront|nokia|nintendo +3ds|opera m(ob|in)i|palm|palm( os)?|phone|p(ixi|re)\/|playbook|rim +tablet|playstation.+vita|plucker|pocket|psp|samsung|(gt\-|bgt\-|sgh\-|sph\-|sch\-)[a-z][0-9]+|series(4|6)0|symbian|symbos|\bs60\b|treo|up\.(browser|link)|vertu|vodafone|wap|windows (ce|phone)|windows +nt.+arm|windows +nt.+touch|xda|xiino|xblwp7|zunewp7/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb|b\-[0-9]+)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))}function E(){var t="";switch(!0){case V():t="tablet";break;case J():t="tv";break;default:switch(!0){case F():t="phone";break;default:t="pc"}}return t}function F(){switch(!0){case p("rstv_is_phone"):return c("rstv_is_phone")}switch(!0){case V(!0)||J():return c("rstv_is_phone",!1),!1}switch(!0){case B(O()||navigator.vendor.toLowerCase()||t.opera):return c("rstv_is_phone",!0),!0}return c("rstv_is_phone",!1),!1}function V(){var t=Array.prototype.slice.call(arguments),e=isBool(t[0])?t[0]:!1;switch(!0){case p("rstv_is_tablet"):return c("rstv_is_tablet")}var r,s,i,a=O(),n=parseInt(c("rstv_viewportW_dip")),o=parseInt(c("rstv_viewportH_dip")),u=c("rstv_is_portrait")?n:o;switch(s=new RegExp("ipad|playbook|rim +tablet","i"),i=s.test(a),!0){case i:return e||c("rstv_is_tablet",!0),!0}switch(s=new RegExp("windows +nt.+arm|windows +nt.+touch","i"),i=s.test(a),!0){case i:switch(!0){case isNumber(u)&&520>=u:return e||(c("rstv_is_tablet",!1),c("rstv_is_phone")===!1&&c("rstv_is_phone",!0)),!1;default:return e||c("rstv_is_tablet",!0),!0}}switch(r="android.+kindle|kindle +fire|android.+silk|silk.*accelerated|android.+nexus +(7|10)|samsung.*tablet|galaxy.*tab|sc-01c|gt-p1000|gt-p1003|gt-p1010|gt-p3105|gt-p6210|gt-p6800|gt-p6810|gt-p7100|gt-p7300|gt-p7310|gt-p7500|gt-p7510|sch-i800|sch-i815|sch-i905|sgh-i957|sgh-i987|sgh-t849|sgh-t859|sgh-t869|sph-p100|gt-p3100|gt-p3108|gt-p3110|gt-p5100|gt-p5110|gt-p6200|gt-p7320|gt-p7511|gt-n8000|gt-p8510|sgh-i497|sph-p500|sgh-t779|sch-i705|sch-i915|gt-n8013|gt-p3113|gt-p5113|gt-p8110|gt-n8010|gt-n8005|gt-n8020|gt-p1013|gt-p6201|gt-p7501|gt-n5100|gt-n5110|shv-e140k|shv-e140l|shv-e140s|shv-e150s|shv-e230k|shv-e230l|shv-e230s|shw-m180k|shw-m180l|shw-m180s|shw-m180w|shw-m300w|shw-m305w|shw-m380k|shw-m380s|shw-m380w|shw-m430w|shw-m480k|shw-m480s|shw-m480w|shw-m485w|shw-m486w|shw-m500w|gt-i9228|sch-p739|sch-i925|gt-i9200|gt-i9205|gt-p5200|gt-p5210|sm-t311|sm-t310|sm-t210|sm-t210r|sm-t211|sm-p600|sm-p601|sm-p605|sm-p900|sm-t217|sm-t217a|sm-t217s|sm-p6000|sm-t3100|sgh-i467|xe500|htc flyer|htc jetstream|htc-p715a|htc evo view 4g|pg41200|xoom|sholest|mz615|mz605|mz505|mz601|mz602|mz603|mz604|mz606|mz607|mz608|mz609|mz615|mz616|mz617|transformer|^.*padfone((?!mobile).)*$|tf101|tf201|tf300|tf700|tf701|tf810|me171|me301t|me302c|me371mg|me370t|me372mg|me172v|me173x|me400c|slider *sl101|android.+nook|nookcolor|nook browser|bnrv200|bnrv200a|bntv250|bntv250a|bntv400|bntv600|logicpd zoom2|android.*\\b(a100|a101|a110|a200|a210|a211|a500|a501|a510|a511|a700|a701|w500|w500p|w501|w501p|w510|w511|w700|g100|g100w|b1-a71|b1-710|b1-711|a1-810)\\b|w3-810|android.*(at100|at105|at200|at205|at270|at275|at300|at305|at1s5|at500|at570|at700|at830)|toshiba.*folio|\\bl-06c|lg-v900|lg-v905|lg-v909|android.+(xenta.+tab|tab210|tab211|tab224|tab250|tab260|tab264|tab310|tab360|tab364|tab410|tab411|tab420|tab424|tab450|tab460|tab461|tab464|tab465|tab467|tab468|tab469)|android.+\\boyo\\b|life.*(p9212|p9514|p9516|s9512)|lifetab|an10g2|an7bg3|an7fg3|an8g3|an8cg3|an7g3|an9g3|an7dg3|an7dg3st|an7dg3childpad|an10bg3|an10bg3dt|android.+archos|\\b(101g9|80g9|a101it)\\b|qilive 97r|novo7|novo7aurora|novo7basic|novo7paladin|novo8|novo9|novo10|sony tablet|sony tablet s|sgpt12|sgpt121|sgpt122|sgpt123|sgpt111|sgpt112|sgpt113|sgpt211|sgpt213|ebrd1101|ebrd1102|ebrd1201|sgpt311|sgpt312|sonyso-03e|android.*(k8gt|u9gt|u10gt|u16gt|u17gt|u18gt|u19gt|u20gt|u23gt|u30gt)|cube u8gt|mid1042|mid1045|mid1125|mid1126|mid7012|mid7014|mid7034|mid7035|mid7036|mid7042|mid7048|mid7127|mid8042|mid8048|mid8127|mid9042|mid9740|mid9742|mid7022|mid7010|android.*(\\bmid\\b|mid-560|mtv-t1200|mtv-pnd531|mtv-p1101|mtv-pnd530)|android.*(rk2818|rk2808a|rk2918|rk3066)|rk2738|rk2808a|t-hub2|iq310|fly vision|bq.*(elcano|curie|edison|maxwell|kepler|pascal|tesla|hypatia|platon|newton|livingstone|cervantes|avant)|mediapad|ideos s7|s7-201c|s7-202u|s7-101|s7-103|s7-104|s7-105|s7-106|s7-201|s7-slim|\\bn-06d|\\bn-08d|pantech.*p4100|broncho.*(n701|n708|n802|a710)|touchpad.*[78910]|\\btouchtab\\b|z1000|z99 2g|z99|z930|z999|z990|z909|z919|z900|tb07sta|tb10sta|tb07fta|tb10fta|android.*\\bnabi|playstation.*(portable|vita)|dell.*streak|milagrow +tab.*top|android.+(ideapad|ideatab|lenovo +a1|s2110|s6000|k3011|a3000|a1000|a2107|a2109|a1107)|android.+f8-sup|android.*(k080|arc|vox)|android.*(msi.+enjoy|enjoy +7|enjoy +10)|dropad.+a8|android.+c906|android.+iberry.+auxus|android.+aigopad|android.*(airpad|liquid metal)|android.+hcl.+tablet|connect-3g-2.0|connect-2g-2.0|me tablet u1|me tablet u2|me tablet g1|me tablet x1|me tablet y2|me tablet sync|android.*(a39|a37|a34|st8|st10|st7|smarttab|smart +tab)|android.*(micromax.+funbook|funbook|p250|p275|p300|p350|p362|p500|p600)|micromax.*(p250|p275|p350|p362|p500|p600)|funbook|android.+penta|android.*(celkon.+ct|ct-[0-9])|android.+i-buddy|android.*(viewbook|viewpad)|android.*(v9|zte.+v8110|light tab|light pro|beeline|base.*tab)|chagall|android.*(vandroid|t3i)|android.*(ziio7|ziio10)|android.*(v-t100|v-tw100|v-tr200|v-t300)|android.+vtab1008|bookeen|cybook|android.*lifetab_(s9512|p9514|p9516)|m702pro|irulu-al101|pmp3170b|pmp3270b|pmp3470b|pmp7170b|pmp3370b|pmp3570c|pmp5870c|pmp3670b|pmp5570c|pmp5770d|pmp3970b|pmp3870c|pmp5580c|pmp5880d|pmp5780d|pmp5588c|pmp7280c|pmp7280|pmp7880d|pmp5597d|pmp5597|pmp7100d|per3464|per3274|per3574|per3884|per5274|per5474|pmp5097cpro|pmp5097|pmp7380d|pmp5297c|pmp5297c_quad|allview.*(viva|alldro|city|speed|all tv|frenzy|quasar|shine|tx1|ax1|ax2)|megafon +v9|android.+(z7c|z7h|z7s)|android.+iball.+slide.+(3g *7271|3g *7334|3g *7307|3g *7316|i7119|i7011)|android.+iball.+i6012|navipad|tb-772a|tm-7045|tm-7055|tm-9750|tm-7016|tm-7024|tm-7026|tm-7041|tm-7043|tm-7047|tm-8041|tm-9741|tm-9747|tm-9748|tm-9751|tm-7022|tm-7021|tm-7020|tm-7011|tm-7010|tm-7023|tm-7025|tm-7037w|tm-7038w|tm-7027w|tm-9720|tm-9725|tm-9737w|tm-1020|tm-9738w|tm-9740|tm-9743w|tb-807a|tb-771a|tb-727a|tb-725a|tb-719a|tb-823a|tb-805a|tb-723a|tb-715a|tb-707a|tb-705a|tb-709a|tb-711a|tb-890hd|tb-880hd|tb-790hd|tb-780hd|tb-770hd|tb-721hd|tb-710hd|tb-434hd|tb-860hd|tb-840hd|tb-760hd|tb-750hd|tb-740hd|tb-730hd|tb-722hd|tb-720hd|tb-700hd|tb-500hd|tb-470hd|tb-431hd|tb-430hd|tb-506|tb-504|tb-446|tb-436|tb-416|tb-146se|tb-126se|android.*\\bg1\\b|tx-a1301|tx-m9002|q702|ly-f528|android.+dslide.*\\b(700|701r|702|703r|704|802|970|971|972|973|974|1010|1012)\\b|m9701|m9000|m9100|m806|m1052|m806|t703|mid701|mid713|mid710|mid727|mid760|mid830|mid728|mid933|mid125|mid810|mid732|mid120|mid930|mid800|mid731|mid900|mid100|mid820|mid735|mid980|mid130|mid833|mid737|mid960|mid135|mid860|mid736|mid140|mid930|mid835|mid733|android.*\\b(f-01d|f-05e|f-10d|m532|q572)\\b|android.+casiatab8|android.+hudl|android.*(polaroid.*tablet|pmid1000|pmid10c|pmid800|pmid700|pmid4311|pmid701c|pmid701i|pmid705|pmid706|pmid70dc|pmid70c|pmid720|pmid80c|pmid901|ptab7200|ptab4300|ptab750|midc010|midc407|midc409|midc410|midc497|midc700|midc800|midc801|midc802|midc901)|e-boda.+(supreme|impresspeed|izzycomm|essential)|hp slate 7|hp elitepad 900|hp-tablet|elitebook.*touch|fine7 genius|fine7 shine|fine7 air|fine8 style|fine9 more|fine10 joy|fine11 wide|android.*\\b(n10|n10-4core|n78|n79|n83|n90 ii)\\b|\\b(pem63|plt1023g|plt1041|plt1044|plt1044g|plt1091|plt4311|plt4311pl|plt4315|plt7030|plt7033|plt7033d|plt7035|plt7035d|plt7044k|plt7045k|plt7045kb|plt7071kg|plt7072|plt7223g|plt7225g|plt7777g|plt7810k|plt7849g|plt7851g|plt7852g|plt8015|plt8031|plt8034|plt8036|plt8080k|plt8082|plt8088|plt8223g|plt8234g|plt8235g|plt8816k|plt9011|plt9045k|plt9233g|plt9735|plt9760g|plt9770g)\\b|bq1078|bc1003|bc1077|rk9702|bc9730|bc9001|it9001|bc7008|bc7010|bc708|bc728|bc7012|bc7030|bc7027|bc7026|tpc7102|tpc7103|tpc7105|tpc7106|tpc7107|tpc7201|tpc7203|tpc7205|tpc7210|tpc7708|tpc7709|tpc7712|tpc7110|tpc8101|tpc8103|tpc8105|tpc8106|tpc8203|tpc8205|tpc8503|tpc9106|tpc9701|tpc97101|tpc97103|tpc97105|tpc97106|tpc97111|tpc97113|tpc97203|tpc97603|tpc97809|tpc97205|tpc10101|tpc10103|tpc10106|tpc10111|tpc10203|tpc10205|tpc10503|android.*(roverpad|rp3wg70)|tab-p506|tab-navi-7-3g-m|tab-p517|tab-p-527|tab-p701|tab-p703|tab-p721|tab-p731n|tab-p741|tab-p825|tab-p905|tab-p925|tab-pr945|tab-pl1015|tab-p1025|tab-pi1045|tab-p1325|tab-protab[0-9]+|tab-protab25|tab-protab26|tab-protab27|tab-protab26xl|tab-protab2-ips9|tab-protab30-ips9|tab-protab25xxl|tab-protab26-ips10|tab-protab30-ips10|android.*ov-(steelcore|newbase|basecore|baseone|exellen|quattor|edutab|solution|action|basictab|teddytab|magictab|stream|tb-08|tb-09)|dps dream 9|dps dual 7|v97 hd|i75 3g|visture v4( hd)?|visture v5( hd)?|visture v10|ctp(-)?810|ctp(-)?818|ctp(-)?828|ctp(-)?838|ctp(-)?888|ctp(-)?978|ctp(-)?980|ctp(-)?987|ctp(-)?988|ctp(-)?989|android.*\\b97d\\b|tablet(?!.*pc)|viewpad7|lg-v909|mid7015|bntv250a|logicpd zoom2|\\ba7eb\\b|catnova8|a1_07|ct704|ct1002|\\bm721\\b|rk30sdk|\\bevotab\\b|smarttabii10|smarttab10",s=new RegExp(r,"i"),i=s.test(a),!0){case i:return e||c("rstv_is_tablet",!0),!0 +}var l=/android/i.test(a),v=!/mobile/i.test(a);switch(!0){case l:switch(!0){case isNumber(u)&&u>=520&&810>=u:return e||(c("rstv_is_tablet",!0),c("rstv_is_phone")&&c("rstv_is_phone",!1)),!0}switch(!0){case v:return e||c("rstv_is_tablet",!0),!0}}return e||c("rstv_is_tablet",!1),!1}function J(){switch(!0){case p("rstv_is_tv"):return c("rstv_is_tv")}var t=O(),e=/googletv|smart\-tv|smarttv|internet +tv|netcast|nettv|appletv|boxee|kylo|roku|vizio|dlnadoc|ce\-html|ouya|xbox|playstation *(3|4)|wii/i.test(t);switch(!0){case e:return c("rstv_is_tv",!0),!0}return c("rstv_is_tv",!1),!1}function D(){switch(!0){case p("rstv_is_pc"):return c("rstv_is_pc")}switch(!0){case L()===!1&&J()===!1:return c("rstv_is_pc",!0),!0}return c("rstv_is_pc",!1),!1}function L(){switch(!0){case F()||V(!0):return!0;default:return!1}}function U(){switch(!0){case!L():return!0;default:return!1}}function $(){var t,e=Array.prototype.slice.call(arguments),r=isBool(e[0])?e[0]:!1;switch(!0){case p("rstv_ort_curr")&&!r:return c("rstv_ort_curr")}switch(!0){case r:c("rstv_viewportW rstv_viewportW_dip rstv_viewportH rstv_viewportH_dip rstv_screenW rstv_screenH",null)}var s,i,a=O(),n=/opera.+(mini|mobi)/i.test(a),o=w(),u=g(),l=y(),v=x(),_=l/v,d=l-o;switch(d=Math.abs(d),s=n&&260>o?4>=d&&_>=1?!0:!1:!0,i=!!(o>=u&&s),!0){case i:switch(t="landscape",!0){case!r:c("rstv_is_portrait",!1),c("rstv_is_landscape",!0)}break;default:switch(t="portrait",!0){case!r:c("rstv_is_portrait",!0),c("rstv_is_landscape",!1)}}return t}function Q(){c("rstv_ort_curr rstv_is_portrait rstv_is_landscape",null),c("rstv_ort_curr",$())}function Y(){switch(!0){case p("rstv_is_portrait"):return c("rstv_is_portrait")}return!("portrait"!=$())}function G(){switch(!0){case p("rstv_is_landscape"):return c("rstv_is_landscape")}return!("landscape"!=$())}function K(){var t,e,r=G(),s=y(),i=x(),a=_(r?"h":"w"),n=_(r?"w":"h"),o=getClosestNumberMatchArray(a,s),c=getClosestNumberMatchArray(n,i),u=X();switch(!0){case o>=c:t=c+"_"+o;break;default:t=o+"_"+c}return e=array_search(t,u)}function Z(){switch(!0){case p("rstv_is_cache_res_list"):return c("rstv_cache_res_list")}var t=["qqvga","qqvgax1","hqvga","hqvgax1","hqvgax2","hvgax1","qvga","wqvga","wqvga1","hvga","hvga1","hvga2","hvga3","hvgax1","hvgax2","vga","wvga","wvgax1","fwvga","svga","dvga","dvgax1","wsvga","wsvga1","xga","wxga","wxga1","wxga2","wxga3","wxga4","wxga5","xga+","wxga+","sxga","sxga+","wsxga+","uxga","wuxga","qwxga","qxga","wqxga","qsxga","wqsxga","quxga","wquxga","hxga","whxga","hsxga","whsxga","huxga","whuxga","nhd","nhdx1","qhd","hd","720p","fhd","1080p","1080i","wqhd","mbprhd","4kuhd","8kuhd"];return c("rstv_is_cache_res_list",!0),c("rstv_cache_res_list",t),t}function X(){switch(!0){case p("rstv_is_cache_res_matrix"):return c("rstv_cache_res_matrix")}var t={qqvga:"120_160",qqvgax1:"128_160",hqvga:"160_240",hqvgax1:"240_240",hqvgax2:"240_260",qvga:"240_320",wqvga:"240_400",wqvga1:"240_432",hvga:"320_480",hvga1:"360_480",hvga2:"272_480",hvga3:"240_640",hvgax1:"200_640",hvgax2:"300_640",hvgax3:"360_400",vga:"480_640",wvga:"480_800",wvgax1:"352_800",fwvga:"480_854",svga:"600_800",dvga:"640_960",dvgax1:"640_1136",wsvga:"576_1024",wsvga1:"600_1024",xga:"768_1024",wxga:"768_1280",wxga1:"720_1280",wxga2:"800_1280",wxga3:"768_1360",wxga4:"768_1366",wxga5:"720_720","xga+":"864_1152","wxga+":"900_1440",sxga:"1024_1280","sxga+":"1050_1400","wsxga+":"1050_1680",uxga:"1200_1600",wuxga:"1200_1920",qwxga:"1152_2048",qxga:"1536_2048",wqxga:"1600_2560","wqxga+":"1800_3200",qsxga:"2048_2560",wqsxga:"2048_3200",quxga:"2400_3200",wquxga:"2400_3840",hxga:"3072_4096",whxga:"3200_5120",hsxga:"4096_5120",whsxga:"4096_6400",huxga:"4800_6400",whuxga:"4800_7680",nhd:"360_640",nhdx1:"320_640",qhd:"540_960",hd:"720_1280","720p":"720_1280",fhd:"1080_1920","1080p":"1080_1920","1080i":"1080_1920",wqhd:"1440_2560",mbprhd:"1800_2880","4kuhd":"2160_3840","8kuhd":"4320_7680"};return c("rstv_is_cache_res_matrix",!0),c("rstv_cache_res_matrix",t),t}function te(t,e){try{var r,s,i,a,n,o,c,u=[],l="",p="",v="",_=[],d="",h=[],m="",f=[],b=[],w=[],g=[],y=!1,x=!1,k=0,R="",A=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","aa","ab","ac","ad","ae","af","ag","ah","ai","aj","ak","al","am","an","ao","ap","aq","ar","as","at","au","av","aw","ax"],S=[],C=[],M=count(t),O=count(e),z=count(u);switch(!0){case!isArray(t):throw new Error("The first argument must be an array!");case isArray(t)&&0==M:throw new Error("The first argument must not be empty!")}switch(!0){case O>0&&z>0:throw new Error("You can only define either 'Classes' or 'Attributes' settings!")}switch(!0){case O>0:switch(y=!0,!0){case O!==M:throw new Error("The number items for 'Breakpoints' and 'Classes' settings must match")}}switch(!0){case z>0:switch(x=!0,!0){case z!==M:throw new Error("The number items for 'Breakpoints' and 'Attributes' settings must match")}}r=Z(),s=X();for(var T=0;M>T;T++){switch(i=t[T],R=A[T],!0){case/-+/i.test(i)&&!/^[^-]*-[^-]*$/i.test(i):v+="2"}switch(l="",p="",!0){case substr_count(i,"-p")>0:l="p",p="-p",b.push("p");break;case substr_count(i,"-l")>0:l="l",p="-l",b.push("l");break;default:b.push("x")}switch(a=i.replace(""+p,""),!0){case in_array(a,r):switch(n=s[""+a],g=arrayToInteger(explode("_",n)),d=parseInt(g[0]),m=parseInt(g[1]),o=d,c=m,!0){case"l"==l:o=m,c=d}_[R]=o,h[R]=c,f.push("r");break;case/[0-9]+/i.test(a):_[R]=parseInt(a),h[R]=parseInt(a),f.push("v");break;default:v+="1"}S.push(R),k++}switch(!0){case/[1]+/i.test(v):throw new Error("There are errors in your 'Breakpoints' settings!");case/[2]+/i.test(v):throw new Error("There are errors in your 'Breakpoints' settings with regard to the way you have defined orientation markers e.g. -p or -l!")}var j,P,W=function(t,e){return t==e?0:e>t?-1:1},I=[],q=[],N=[],H=[],B=[],E=[],F=[];E=u,I=uasort(_,W),C=array_keys(I);for(var V=count(I),T=0;V>T;T++)j=C[T],P=array_search(j,S),q[j]=h[j],N[T]=f[P],H[T]=b[P],B[T]=e[P],F[T]=E[P];switch(w.bp_w=implode("|",I),w.bp_h=implode("|",q),w.bp_o=implode("|",H),w.bp_t=implode("|",N),!0){case y:var J=implode("|",B);w.bp_c=J}switch(!0){case x:var D=implode("|",F);w.bp_a=D}return w}catch(L){var U="There was an error: "+L.message;alert(U)}}function ee(t,e){var r=[];return r=te(t,e)}function re(){var e=Array.prototype.slice.call(arguments),s=isNumber(e[0])?"_"+e[0]:"",a=function(){var e=c("rstv_viewportW"),a=c("rstv_viewportH");i();var n,o,u,l,p,v,_,d,h=L(),m=$(!0),f=c("rstv_ort_curr"),b=!1;switch(A(),!0){case h:switch(n=c("rstv_viewportW"),o=c("rstv_viewportH"),u=n-e,v=o-a,l=Math.abs(u),_=Math.abs(v),p=l/e*100,d=_/a*100,!0){case 1>p:switch(!0){case d>35&&0>v:b=!0;break;case d>35&&v>0:b=!0;break;case d>12&&35>=d&&v>0:b=!0;break;case 0==d:b=!0}}}switch(!0){case!b:switch(!0){case f!==m:Q(),r(t).trigger("change_orientation"+s);break;default:switch(!0){case!h:r(t).trigger("resize_viewport"+s)}}}};ie(a)}function se(e){var s=Array.prototype.slice.call(arguments),i=isNumber(s[1])?"_"+s[1]:"",a=function(){r(t).trigger("resize_container"+i)};ae(e,a)}function ie(t){return fe.on("resize",t),ne}function ae(t,e){return t.on("resizecontainer",e),ne}switch(!0){case"function"!=typeof r:throw"Restive.JS requires JQuery to run!"}var ne,oe,ce,ue,le,pe,ve,_e,de,he=t,me=e.documentElement,fe=r(he),be=he.screen,we=he.matchMedia||he.msMatchMedia||Object;t.rstv_store={main:{}},t.parent.rstv_store={main:{}},t.rstv_store.storage=function(){var e=Array.prototype.slice.call(arguments),r=e[0],s=e[1],i=!("undefined"==typeof s||null===s||!(isString(s)&&""!=s||isNumber(s)||isArray(s)&&count(s)>0||isBool(s)||isObject(s))),a=!(null!==s);switch(!0){case i:return void(t.rstv_store.main[""+r]=s);case a:return void(t.rstv_store.main[""+r]=null);default:return t.rstv_store.main[""+r]}};var ge=function(){t.rstv_store.main.rstv_is_priv_browsing=!!o();var e,r=c("rstv_is_init");switch(!0){case r:c("rstv_timestamp_curr",microtime(!0)),c("rstv_url",getUrl("bp")),a(),n(),i(),A(),Q(),e=!1;break;default:c("rstv_timestamp_curr",microtime(!0)),c("rstv_timestamp_init",c("rstv_timestamp_curr")),c("rstv_loaded_count",0,"",{expires:1500}),c("rstv_is_init",!0),c("rstv_url",getUrl("bp")),c("rstv_url_hash",md5(getUrl("bp"))),i(),A(),c("rstv_ort_init",$()),c("rstv_ort_curr",$()),a(),e=!0}return e};return oe=M(w),ce=M(g),pe=M(y),ve=M(x),ue=M(k),le=M(R),_e=M(f),de=M(b),ne={init:ge(),reInit:s,getUserAgent:O,isStorageValueSet:p,store:c,storeVarTracker:u,storeVarValidator:l,incrementStorageValue:v,getBreakpoints:ee,viewportW:w,viewportH:g,screenW:y,screenH:x,pixelW:k,pixelH:R,vSpan:oe,vPitch:ce,dSpan:pe,dPitch:ve,cSpan:ue,cPitch:le,eSpan:_e,ePitch:de,isRetina:C,getPixelRatio:S,getPlatform:z,getFormFactor:E,getOrientation:$,getResolution:K,isPortrait:Y,isLandscape:G,viewportMonitor:re,containerMonitor:se,isMobile:L,isNonMobile:U,isPhone:F,isTablet:V,isPC:D,isTV:J,isIOS:j,isApple:P,isAndroid:W,isSymbian:I,isBlackberry:q,isWindows:N,isWindowsPhone:H,resize:ie,resizeContainer:ae}}(window,document,jQuery);!function(t,e,r){Function.prototype.getFuncBody=function(){var t=this.toString().match(/\{([\s\S]*)\}/m)[1];return t.replace(/^\s*\/\/.*$/gm,"")};var s={init:function(e){try{s._multiConstructorCounter(),s._multiConstructorManager();var i,a,n=e,o=["all","ios","android","symbian","blackberry","windows"],c=["all","pc","tv","tablet","phone"],u=e.platform,l=e.formfactor,p=Restive.store("rstv_multi_start"),v=Restive.store("rstv_multi_count"),_=Restive.store("rstv_multi_abort_2");switch(!0){case in_array(u,o)===!1:return s._error("rstv_error_001",'"'+u+'" is not a valid Platform option!'),!1}switch(!0){case in_array(l,c)===!1:return s._error("rstv_error_002",'"'+l+'" is not a valid Form Factor option!'),!1}switch(!0){case _:return s._error("rstv_error_003","If you are calling the Restive.JS Constructor more than once, you must call $.restive.endMulti() at the end!"),!1}var d=[],h=[],m=[];h=e.breakpoints,m=e.classes,d=s.getBreakpoints(h,m);var f=[];switch(f.platform=s.getPlatform(),f.formfactor=s.getFormFactor(),f.is_mobile=s.isMobile(),f.pixelratio=s.getPixelRatio(),f.orientation=s.getOrientation(),f.selector=getSelector(this),f.tagname=this.prop("tagName").toLowerCase(),i=s._responsiveBasis(n,f),a=!("c"!=i),f.is_resp_basis_container=a,!0){case a:s._containerMonitor(d,this,n,f);break;default:switch(!0){case!p:s._viewportMonitor(d,this,n,f),s._callbackManager(n,["ready","init"]);break;default:t.parent.rstv_store.main["rstv_breakpoints_"+v]=d,t.parent.rstv_store.main["rstv_this_"+v]=this,t.parent.rstv_store.main["rstv_options_"+v]=n,t.parent.rstv_store.main["rstv_core_info_"+v]=f,t.rstv_store.main=t.parent.rstv_store.main}}return Restive.store("rstv_turbo_classes_reflow_status_in",null),this.each(function(){var t=r(this);s.setBreakpoints(d,t,n,f)})}catch(b){alert(b),console.log(b)}},_error:function(t,e){var r=!("true"!==String(Restive.store(t+"_init")).toLowerCase());switch(!0){case!r:throw Restive.store(t+"_init",!0),new Error(e)}},_callbackManager:function(){var t,e,i=Array.prototype.slice.call(arguments),a=i[0],n=i[1];switch(!0){case in_array("ready",n):var o=a.onReady,c=a.onReady.getFuncBody().length;switch(!0){case r.isFunction(o)&&c>0:o()}}switch(!0){case in_array("resize",n):var u=a.onResize,l=a.onResize.getFuncBody().length;switch(!0){case r.isFunction(u)&&l>0:u()}}switch(!0){case in_array("turboclassesreflow",n):var p=n[1],v=a.onTurboClassReflow,_=a.onTurboClassReflow.getFuncBody().length;switch(!0){case r.isFunction(v)&&_>0:v()}var d=a.onTurboClassReflowIn,h=a.onTurboClassReflowIn.getFuncBody().length;switch(!0){case r.isFunction(d)&&h>0:switch(!0){case"in"==p:d()}}var m=a.onTurboClassReflowOut,f=a.onTurboClassReflowOut.getFuncBody().length;switch(!0){case r.isFunction(m)&&f>0:switch(!0){case"out"==p:m()}}}switch(!0){case in_array("rotate",n):var b=Restive.getOrientation(),w=a.onRotate,g=a.onRotate.getFuncBody().length;switch(!0){case r.isFunction(w)&&g>0:w()}var y=a.onRotateToP,x=a.onRotateToP.getFuncBody().length;switch(!0){case r.isFunction(y)&&x>0:switch(!0){case"portrait"==b:y()}}var k=a.onRotateToL,R=a.onRotateToL.getFuncBody().length;switch(!0){case r.isFunction(k)&&R>0:switch(!0){case"landscape"==b:k()}}}switch(!0){case in_array("addclass",n)||in_array("removeclass",n):var A=n[0],S=n[1],C={addclass:"onAddClass",removeclass:"onRemoveClass"};switch(t=a[C[""+A]],e=t.getFuncBody().length,!0){case r.isFunction(t)&&e>0:t(S)}}switch(!0){case in_array("init",n):switch(!0){case in_array("init",n):for(var M=["onPortrait","onLandscape","onRetina","onPhone","onTablet","onPC","onTV","onIOS","onAndroid","onSymbian","onBlackberry","onWindows","onWindowsPhone","onMobile","onNonMobile"],O=["isPortrait","isLandscape","isRetina","isPhone","isTablet","isPC","isTV","isIOS","isAndroid","isSymbian","isBlackberry","isWindows","isWindowsPhone","isMobile","isNonMobile"],z=0;z0:var T=s[O[z]],j=T();switch(!0){case j:t()}}}}},_URLMonitor:function(){var t=Restive.store("rstv_url"),e=Restive.store("rstv_url_hash"),r=md5(t);switch(!0){case r!=e:Restive.store("rstv_multi_bpm_idx rstv_cache_bpm rstv_cache_bpm_lock rstv_cache_req rstv_cache_bpm_viewport_diff",null),Restive.store("rstv_url_hash",r)}},_responsiveBasis:function(t,e){var r,s=e.selector,i=/^#[^\s]+$/i.test(s),a=elementIsChildOf("body",s),n=t.anchor;try{switch(!0){case a&&("element"==n||"e"==n):switch(!0){case!i:throw new Error("You must use only the JQuery ID selector when the 'anchor' option is set to 'e' or 'element'!")}r="c";break;default:r="v",Restive.store("rstv_resp_basis_viewport_init",!0)}return r}catch(o){alert(o),console.log(o)}},_viewportMonitor:function(e,i,a,n){var o="resize_viewport",c="change_orientation";r(t).on(o,function(){s._onResizeViewport(e,i,a,n)}),r(t).on(c,function(){s._onChangeOrientation(e,i,a,n)}),Restive.viewportMonitor()},_containerMonitor:function(t,e,r,i){var a="resizecontainer";e.on(a,function(){s._onResizeContainer(t,e,r,i)})},_onResizeViewport:function(t,e,i,a){try{return e.each(function(){var e=r(this);s.setBreakpoints(t,e,i,a,"rv"),s._callbackManager(i,["resize"])})}catch(n){alert(n),console.log(n)}},_onResizeContainer:function(t,e,i,a){try{return e.each(function(){var e=r(this);s.setBreakpoints(t,e,i,a,"rc")})}catch(n){alert(n),console.log(n)}},_onChangeOrientation:function(t,e,i,a){try{return e.each(function(){var e=r(this);s.setBreakpoints(t,e,i,a,"co"),s._callbackManager(i,["rotate"])})}catch(n){alert(n),console.log(n)}},getBreakpoints:function(t,e){return Restive.getBreakpoints(t,e)},setBreakpoints:function(){var t=Array.prototype.slice.call(arguments),e=t[0],r=t[1],i=t[2],a=t[3],n=t[4],o=!1,c=!1,u=!1,l=a.is_resp_basis_container,p=Restive.store("rstv_multi_abort_1");switch(!0){case"co"==n:o=!0}switch(!0){case"rv"==n:c=!0}switch(!0){case"rc"==n:u=!0}switch(!0){case p:return s._error("rstv_error_004","If you are calling the Restive.JS Constructor more than once, you must call $.restive.startMulti() before calling these constructors!"),!1}var v=Restive.store("rstv_multi_start"),_=parseInt(Restive.store("rstv_multi_count")),d=parseInt(Restive.store("rstv_multi_bpm_idx")),h=Restive.store("rstv_cache_bpm_lock");switch(!0){case!l:switch(!0){case v&&!o&&h:switch(!0){case isNumber(_)&&isNumber(d)&&_!=d:return!1}}}var m,f,b,w,g,y,x,k=(Restive.getUserAgent(),i.platform,i.formfactor,i.force_dip),R=a.platform,A=a.formfactor,S=(a.pixelratio,1==a.is_mobile?"true":"false",Restive.store("rstv_ort_init"),Restive.store("rstv_ort_curr"),Restive.isPortrait()),C=S===!0?!1:!0,M=[],O=!1,z=e.bp_w,T=e.bp_h,j=e.bp_o,P=e.bp_t,W=e.bp_c,I=[],q=[],N=[],H=[];switch(m=Restive.viewportW(),x=m,f=Restive.viewportH(),b=Restive.screenW(),w=Restive.screenH(),g=Restive.pixelW(),y=Restive.pixelH(),!0){case 1==k:x=Restive.pixelW()}switch(I=arrayToInteger(explode("|",z)),q=arrayToInteger(explode("|",T)),N=explode("|",j),H=explode("|",P),!0){case"undefined"!=typeof W||null!=W:O=!0,M=explode("|",W)}var B,E,F,V,J,D,L,U,$,Q,Y,G,K,Z,X,te,ee,re,se,ie,ae="",ne=!0,oe=!0,ce=!1,ue=!1,le=!1,pe=!0,ve=!0,_e="",de=count(I);B=arrayHasDuplicates(I),E=B?!1:!0;for(var he=0;de>he;he++){switch(!0){case"all"!=i.platform&&i.platform!=R:pe=!1}switch(!0){case"all"!=i.formfactor&&i.formfactor!=A:ve=!1}if(!pe||!ve)break;var me=he-1;switch(F=I[he],!0){case he>0:V=I[me];break;default:V=0,J=0}switch($=q[he],Z=H[he],X=N[he],oe=ne,!0){case"p"==X:se=S?!0:!1,ce=!0,ne=se,ae=oe===!1?J:ae;break;case"l"==X:se=C?!0:!1,ce=!0,ne=se,ae=oe===!1?J:ae;break;default:ae=ce===!0&&oe===!1?J:ae,J=he>0?F:0,se=!0,ne=se}switch(!0){case 0==he:D=0,ae=F;break;case he>=1:switch(!0){case F!==V:ae=F+"-!"+ae}D=parseInt(getValueAfterExplode(ae,"-!",1))}switch(te=M[he],!0){case 0==he:L=D,U=F;break;default:L=0==D?D:D+1,U=F}switch(!0){case l:re=Restive.eSpan(L,U,r,i.anchor_e_df,i.force_dip);break;default:re=1==k?Restive.cSpan(L,U):Restive.vSpan(L,U)}switch(!0){case re&&se:switch(!0){case l:ue=!0;break;default:switch(Q=U-x,Y=Math.abs(Q),G=x-L,K=.1*U,K=Math.round(K),!0){case o:switch(!0){case Q>K:_e="4";break;default:_e="2"}break;default:switch(!0){case Q>K:_e="3";break;default:_e="1"}}switch(ue=!0,!0){case ue:switch(le=!0,ee=te,!0){case"x"!=X:E=!0}}}break;default:ue=!1}if(ue&&E)break}switch(!0){case le:ue=!0,te=ee}switch(!0){case!ue:switch(!0){case l:return void s.unsetElementDOM(r,i)}switch(L=0,U=0,!0){case!Restive.store("rstv_multi_start")||o:s.unsetElementDOM(r,i)}switch(!0){case!pe&&ve:_e="7";break;case!ve&&pe:_e="8";break;case!ve&&!pe:_e="9";break;default:switch(!0){case o:_e="6";break;default:_e="5"}}switch(ie=s._addTurboClasses("",i.turbo_classes),ie=s._addTurboClassesReflow(ie,i),!0){case!Restive.store("rstv_multi_start")||o:s.setElementDOM(r,ie,i)}Restive.store("rstv_breakpoint_match_curr",!1);break;case ue:switch(ie=s._addTurboClasses(te,i.turbo_classes),ie=s._addTurboClassesReflow(ie,i),!0){case l:return void s.setElementDOM(r,ie,i)}switch(!0){case Restive.store("rstv_multi_start"):var fe=parseInt(Restive.store("rstv_bpm_h_counter"));switch(!0){case o:s.setElementDOM(r,ie,i);break;default:switch(!0){case fe>1:var be=parseInt(Restive.store("rstv_cache_bpm_viewport_diff"));switch(!0){case be>Y:switch(s.setElementDOM(r,ie,i),!0){case!h:Restive.store("rstv_multi_bpm_idx",_)}Restive.store("rstv_cache_bpm_viewport_diff",Y)}break;default:switch(s.setElementDOM(r,ie,i),!0){case!h:Restive.store("rstv_multi_bpm_idx",_)}Restive.store("rstv_cache_bpm_viewport_diff",Y)}fe++,Restive.store("rstv_bpm_h_counter",fe,"",{expires:1e3})}break;default:s.setElementDOM(r,ie,i)}Restive.store("rstv_breakpoint_match_curr",!0)}var we=Restive.store("rstv_cache_bpm_lock");switch(!0){case v&&!o&&!(isString(we)&&""!=we||isBool(we)):Restive.store("rstv_breakpoint_match_curr")?s._extVarTracker("rstv_cache_bpm","h","ls",!1,"",!1):s._extVarTracker("rstv_cache_bpm","m","ls",!1,"",!1)}switch(!0){case ue:return!0}return!1},_addTurboClassesReflow:function(t,e){switch(!0){case s.isPC():switch(!0){case e.turbo_classes_reflow&&isString(e.turbo_classes)&&""!=e.turbo_classes:var r,i,a,n,o,c,u,l,p,v=[],_=[],d=t,h=!1,m=Restive.store("rstv_turbo_classes_reflow_status_in");switch(v=explode(",",e.turbo_classes_reflow_limits),c=parseInt(v[0]),o=parseInt(v[1]),r=/is_mobile=/i.test(e.turbo_classes),!0){case r:_=explode(",",e.turbo_classes);for(var f=0;f1:i=s-1}return a=i+1,Restive.store("rstv_multi_bpm_idx",a),i},_multiConstructorManageEvents:function(e){r(t).off("resize");var i=parseInt(e)+1,a=t.parent.rstv_store.main["rstv_breakpoints_"+i],n=t.parent.rstv_store.main["rstv_this_"+i],o=t.parent.rstv_store.main["rstv_options_"+i],c=t.parent.rstv_store.main["rstv_core_info_"+i];switch(!0){case Restive.store("rstv_resp_basis_viewport_init"):s._viewportMonitor(a,n,o,c),s._callbackManager(o,["ready","init"])}},_multiConstructorFinalize:function(){var t=s._multiConstructorSelectPos();s._multiConstructorManageEvents(t),Restive.store("rstv_cache_bpm_lock",!0),Restive.store("rstv_cache_req",null),Restive.store("rstv_multi_count",null)},_multiConstructorStart:function(){switch(Restive.store("rstv_multi_count",0),Restive.store("rstv_multi_start",!0),Restive.store("rstv_multi_abort_1",!1),Restive.store("rstv_multi_abort_2",!1),Restive.store("rstv_bpm_h_counter",1,"",{expires:1e3}),Restive.store("rstv_bpm_m_counter",1,"",{expires:1e3}),!0){case!Restive.isStorageValueSet("rstv_multi_start_count"):Restive.store("rstv_multi_start_count",1),Restive.store("rstv_multi_end",!1);break;default:Restive.incrementStorageValue("rstv_multi_start_count")}},_multiConstructorManager:function(){var t=Restive.store("rstv_multi_start"),e=Restive.store("rstv_multi_end"),r=parseInt(Restive.store("rstv_multi_count")),i=parseInt(Restive.store("rstv_multi_start_count"));switch(!0){case r>1:switch(!0){case t===!1:Restive.store("rstv_multi_abort_1",!0)}}switch(!0){case i>1&&e===!1:Restive.store("rstv_multi_abort_2",!0)}s._URLMonitor()},_multiConstructorCounter:function(){Restive.incrementStorageValue("rstv_multi_count")},_multiConstructorEnd:function(){Restive.store("rstv_multi_start_count",0),Restive.store("rstv_multi_end",!0),s._multiConstructorFinalize()},getUserAgent:function(){return Restive.getUserAgent()},getPlatform:function(){return Restive.getPlatform()},getFormFactor:function(){return Restive.getFormFactor()},getOrientation:function(){return Restive.getOrientation()},getResolution:function(){return Restive.getResolution()},getPixelRatio:function(t){return Restive.getPixelRatio(t)},getViewportW:function(){return Restive.viewportW()},getViewportH:function(){return Restive.viewportH()},getScreenW:function(){return Restive.screenW()},getScreenH:function(){return Restive.screenH()},getPixelW:function(){return Restive.pixelW()},getPixelH:function(){return Restive.pixelH()},isRetina:function(){return Restive.isRetina()},isMobile:function(){return Restive.isMobile()},isNonMobile:function(){return Restive.isNonMobile()},isPhone:function(){return Restive.isPhone()},isTablet:function(){return Restive.isTablet()},isTV:function(){return Restive.isTV()},isPC:function(){return Restive.isPC()},isIOS:function(){return Restive.isIOS()},isApple:function(){return Restive.isApple()},isAndroid:function(){return Restive.isAndroid()},isSymbian:function(){return Restive.isSymbian()},isBlackberry:function(){return Restive.isBlackberry()},isWindows:function(){return Restive.isWindows()},isWindowsPhone:function(){return Restive.isWindowsPhone()},isPortrait:function(){return Restive.isPortrait()},isLandscape:function(){return Restive.isLandscape()}};r.fn.restive=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if("object"==typeof t||!t){var e=r.extend({},r.fn.restive.defaults,t),i=new Array(e);return s.init.apply(this,i)}r.error("Method "+t+" does not exist on Restive.JS")},r.fn.restive.defaults={breakpoints:[],classes:[],anchor:"window",anchor_e_df:"w",platform:"all",formfactor:"all",turbo_classes:"",turbo_classes_reflow:!1,turbo_classes_reflow_limits:"480,960",force_dip:!1,onReady:function(){},onResize:function(){},onRotate:function(){},onRotateToP:function(){},onRotateToL:function(){},onPortrait:function(){},onLandscape:function(){},onRetina:function(){},onPhone:function(){},onTablet:function(){},onPC:function(){},onTV:function(){},onIOS:function(){},onAndroid:function(){},onSymbian:function(){},onBlackberry:function(){},onWindows:function(){},onWindowsPhone:function(){},onMobile:function(){},onNonMobile:function(){},onTurboClassReflow:function(){},onTurboClassReflowIn:function(){},onTurboClassReflowOut:function(){},onAddClass:function(){},onRemoveClass:function(){}};var i=r.restive=function(){};r.extend(i,{getUserAgent:function(){return s.getUserAgent()},getPlatform:function(){return s.getPlatform()},getFormFactor:function(){return s.getFormFactor()},getOrientation:function(){return s.getOrientation()},getResolution:function(){return s.getResolution()},getPixelRatio:function(t){return s.getPixelRatio(t)},getViewportW:function(){return s.getViewportW()},getViewportH:function(){return s.getViewportH()},getScreenW:function(){return s.getScreenW()},getScreenH:function(){return s.getScreenH()},getPixelW:function(){return s.getPixelW()},getPixelH:function(){return s.getPixelH()},isRetina:function(){return s.isRetina()},isMobile:function(){return s.isMobile()},isNonMobile:function(){return s.isNonMobile()},isPhone:function(){return s.isPhone()},isTablet:function(){return s.isTablet()},isTV:function(){return s.isTV()},isPC:function(){return s.isPC()},isIOS:function(){return s.isIOS()},isApple:function(){return s.isIOS()},isAndroid:function(){return s.isAndroid()},isSymbian:function(){return s.isSymbian()},isBlackberry:function(){return s.isBlackberry()},isWindows:function(){return s.isWindows()},isWindowsPhone:function(){return s.isWindowsPhone()},isPortrait:function(){return s.isPortrait()},isLandscape:function(){return s.isLandscape()},startMulti:function(){s._multiConstructorStart()},endMulti:function(){s._multiConstructorEnd()}})}(window,document,jQuery); \ No newline at end of file