-
Notifications
You must be signed in to change notification settings - Fork 0
/
restive.min.js
executable file
·2 lines (2 loc) · 64.8 KB
/
restive.min.js
1
2
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;i<count(e);i++)a+=n+e[i],n=t;else for(i in e)a+=n+e[i],n=t;return a}return e}function explode(t,e,r){if(arguments.length<2||"undefined"==typeof t||"undefined"==typeof e)return null;if(""===t||t===!1||null===t)return!1;if("function"==typeof t||"object"==typeof t||"function"==typeof e||"object"==typeof e)return{0:""};t===!0&&(t="1"),t+="",e+="";var s=e.split(t);return"undefined"==typeof r?s:(0===r&&(r=1),r>0?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;i<r.length;i++)n[r[i][0]]=r[i][1];return a||n}function microtime(t){var e=(new Date).getTime()/1e3,r=parseInt(e,10);return t?e:Math.round(1e3*(e-r))/1e3+" "+r}function substr_count(t,e){var r=e.replace(/(?=[\\^$*+?.\(\)|{\}[\]])/g,"\\"),s=new RegExp(""+r,"g"),i=t.match(s);return i?i.length:0}function isString(t){return"string"==typeof t}function isNumber(t){return!isNaN(parseFloat(t))&&isFinite(t)}function isBool(t){return t===!0||t===!1}function isArray(t){return"[object Array]"===Object.prototype.toString.call(t)}function isObject(t){switch(!0){case isArray(t):return!1}var e;for(var r in t)if(t.hasOwnProperty(r)){e=!1;break}switch(e=isBool(e)?e:!0,!0){case"object"==typeof t&&e===!1:return!0}return!1}function isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)}function arrayToInteger(t){var e,r,s=[],i=[],a=[],n=[];s=array_keys(t),i=array_values(t),r=count(t);for(var o=0;r>o;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;r<t.length;r++)e.push({key:r,value:t[r]});e.sort(function(t,e){return t.value<e.value?-1:t.value>e.value?1:0});for(var s=[],r=0;r<e.length;r++)s.push(e[r].key);return s}function getClosestNumberMatchArray(t,e){var r,s,i,a,n=Array.prototype.slice.call(arguments),o=isBool(n[2])?n[2]:!1,c=isBool(n[3])?n[3]:!0,u=isNumber(n[4])?n[4]:0,l=[],p=[];t=arrayToInteger(t),e=parseInt(e);for(var v=0;v<count(t);v++)r=e-t[v],r=Math.abs(r),p.push(r);switch(l=getSortedKeys(p),s=l[0],i=t[s],a=i-e,a=Math.abs(a),!0){case e>i: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<<v|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<s;t[r]=(e=t[r].charCodeAt(0))>=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;_<count(u);_++)r(u[_],null);return null}r(a,null),r(a,n,c)}catch(d){alert(d),console.log(d)}}function u(t,e){var s,i,a=Array.prototype.slice.call(arguments),n=isString(a[2])&&""!=a[2]?a[2]:"ck",o=isBool(a[3])?a[3]:!1,u=isNumber(a[4])||isString(a[4])?parseInt(a[4]):"",l=isNumber(a[4])||isString(a[4])?parseInt(a[4]):30,p=isBool(a[5])?a[5]:!0,v=isString(a[6])&&""!=a[6]?a[6]:"-!",_=isNumber(a[7])||isString(a[7])?parseInt(a[7]):60,d=[],h=[];switch(s="ls"==n?c(t):r.cookie(t),!0){case null===s||"undefined"==typeof s:return"ls"==n?c(t,e,"",{expires:u}):r.cookie(t,e,{expires:l,path:"/"}),!0;case"undefined"!=typeof s&&null!==s&&""!=s:switch(d=explode(v,s),!0){case in_array(e,d)&&o:return!1;default:switch(!0){case p:d.unshift(e),h=d.slice(0,_),i=implode(v,h);break;default:d.push(e),i=implode(v,d)}return"ls"==n?c(t,i,"",{expires:u}):r.cookie(t,i,{expires:l,path:"/"}),!0}}}function l(t,e){var s=Array.prototype.slice.call(arguments),i=isString(s[2])&&""!=s[2]?s[2]:"ck",a=isString(s[3])&&""!=s[3]?s[3]:"-!",n="ls"==i?c(e):r.cookie(e);switch(!0){case"undefined"!=typeof n&&null!==n&&""!=n:var o=[];switch(o=explode(a,n),!0){case in_array(t,o):return!0;default:return!1}break;default:return!1}}function p(t){var e=Array.prototype.slice.call(arguments),r=e[1],s=c(""+t),i=!("undefined"==typeof r||null===r),a=!1;switch(!0){case isBool(s)||null!==s&&"undefined"!=typeof s&&""!=s:a=!0}switch(!0){case!i:return a}switch(!0){case!a:c(t,r)}}function v(t){var e,r=Array.prototype.slice.call(arguments),s=isNumber(r[1])?r[1]:1,i=isBool(r[2])?r[2]:!1;switch(e=parseInt(c(t)),!0){case!isNumber(e):return!1}return e=i?e-s:e+s,c(t,e),e}function _(t){var e=[120,128,160,200,240,272,300,320,352,360,480,540,576,600,640,720,768,800,864,900,1024,1050,1080,1152,1200,1440,1536,1600,1800,2048,2160,2400,3072,3200,4096,4320,4800],r=[160,240,260,320,400,432,480,640,720,800,854,960,1024,1136,1152,1280,1360,1366,1400,1440,1600,1680,1920,2048,2560,2880,3200,3840,4096,5120,6400,7680];switch(!0){case"w"==t:return e;case"h"==t:return r}}function d(t){var e,r,s,i=Array.prototype.slice.call(arguments),a=isBool(i[1])?i[1]:!0,n=!1,o=!(!D()&&!J()),u=S(),l=c("rstv_var_win_outer_w"),p=c("rstv_var_win_outer_h"),v=c("rstv_var_doc_client_w"),d=c("rstv_var_doc_client_h"),h=c("rstv_var_win_screen_w"),m=c("rstv_var_win_screen_h");switch(!0){case o:switch(!0){case"vW"==t:e=v;break;case"vH"==t:e=d;break;case"sW"==t:e=h;break;case"sH"==t:e=m}switch(!0){case"vW"==t||"vH"==t:e=u>=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;z<count(O);z++)switch(t=a[M[z]],e=t.getFuncBody().length,!0){case r.isFunction(t)&&e>0: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;f<count(_);f++){switch(l=getValueAfterExplode(_[f],"=",0),p=getValueAfterExplode(_[f],"=",1),!0){case"is_mobile"==l:switch(i=1==e.force_dip?Restive.cSpan(0,o):Restive.vSpan(0,o),!0){case i:switch(d+=" "+p,h=!0,!0){case!m&&h:Restive.store("rstv_turbo_classes_reflow_status_in",!0),s._callbackManager(e,["turboclassesreflow","in"])}break;default:switch(h=!1,!0){case m&&!h:Restive.store("rstv_turbo_classes_reflow_status_in",!1),s._callbackManager(e,["turboclassesreflow","out"])}}}switch(!0){case"is_phone"==l:a=1==e.force_dip?Restive.cSpan(0,c):Restive.vSpan(0,c),d=a?d+" "+p:d}switch(!0){case"is_tablet"==l:u=c+1,n=1==e.force_dip?Restive.cSpan(u,o):Restive.vSpan(u,o),d=n?d+" "+p:d}}return d}}}return t},_addTurboClasses:function(t,e){switch(!0){case!isString(e)||""==e:return t}var r,i,a,n,o=[],c=[],u="",l="",p={is_mobile:"isMobile",is_non_mobile:"isNonMobile",is_retina:"isRetina",is_phone:"isPhone",is_tablet:"isTablet",is_tv:"isTV",is_pc:"isPC",is_portrait:"isPortrait",is_landscape:"isLandscape"};o=explode(",",e);for(var v=0;v<count(o);v++)switch(r=getValueAfterExplode(o[v],"=",0),i=getValueAfterExplode(o[v],"=",1),a=p[r],!0){case isString(a)&&""!=a:switch(n=s[a],!0){case n():c.push(i)}}return u=implode(" ",c,!0),l=""!=u?u+" "+t:t},setElementDOM:function(t,e,r){var i,a=md5(getSelector(t)),n="rstv_bpm_class_"+a;switch(i=isString(Restive.store(n))&&""!=Restive.store(n)?Restive.store(n):"",!0){case""!=i:switch(t.removeClass(i).addClass(e),!0){case i!=e:s._callbackManager(r,["removeclass",""+i])}break;default:t.addClass(e)}Restive.store(n,e),s._callbackManager(r,["addclass",""+e])},unsetElementDOM:function(t,e){var r,i=md5(getSelector(t)),a="rstv_bpm_class_"+i;r=isString(Restive.store(a))&&""!=Restive.store(a)?Restive.store(a):"",t.removeClass(r),s._callbackManager(e,["removeclass",""+r])},_extVarTracker:function(t,e){var r=Array.prototype.slice.call(arguments),s=isString(r[2])&&""!=r[2]?r[2]:"ck",i=isBool(r[3])?r[3]:!1,a=isNumber(r[4])||isString(r[4])?parseInt(r[4]):"",n=isBool(r[5])?r[5]:!0,o=isString(r[6])&&""!=r[6]?r[6]:"-!",c=isNumber(r[7])||isString(r[7])?parseInt(r[7]):80;return Restive.storeVarTracker(t,e,s,i,a,n,o,c)},_multiConstructorSelectPos:function(){var t,e=Restive.store("rstv_cache_bpm"),r=explode("-!",e),s=parseInt(Restive.store("rstv_multi_bpm_idx"));t=implode("",r);var i,a,n=new RegExp("^[^h]*h[^h]*$","gi"),o=new RegExp("^m+$","gi");switch(!0){case n.test(t):i=strrpos(t,"h");break;case o.test(t):Restive.store("rstv_cache_bpm_all_miss",!0,"",{expires:2e3}),i=strrpos(t,"m");break;case substr_count(t,"h")>1: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);