1<!DOCTYPE html> 2<html lang="es" xml:lang="es"> 3<head> 4 5 6 7 8 <!-- Global site tag (gtag.js) - Google Ads: 705285267 -->
vendor: 83 bytes, lines 8-10
8 9 10 <script async defer src="https://www.googletagmanager.com/gtag/js?id=
10AW-705285267
vendor: 20 bytes, lines 10-11
10"></script> 11
11<script> 12 window.dataLayer = window.dataLayer || []; 13 function gtag(){dataLayer.push(arguments);} 14 gtag('js', new Date()); 15 </script>
15 16 17 18
18<script> 19 try { 20 gtag('config', 'AW-705285267'); 21 } catch (e) { 22 console.warn('Error adding gtag config'); 23 console.warn(e); 24 } 25 26 </script>
26 27 28 29 30 31 32 33 <!-- Wihp -->
vendor: 77 bytes, lines 33-35
33 34 35 <script async src="https://www.googletagmanager.com/gtag/js?id=
35AW-10792875433
vendor: 20 bytes, lines 35-36
35"></script> 36
36<script> 37
vendor: 163 bytes, lines 37-40
37window.dataLayer = window.dataLayer || []; 38 function gtag() {dataLayer.push(arguments)} 39 gtag('js', new Date()); 40 gtag('config', '
40AW-10792875433
vendor: 16 bytes, lines 40-41
40'); 41
41gtag('config', 'HA-75', {'conversion_cookie_prefix': '_ha'}); 42 </script>
42 43 44 <!-- WIHP Global Site Tag (gtag.js) - GHA/Adwords --> 45
45<script type="text/javascript"> 46 (function() { 47 var wh = document.createElement('script'); wh.type = 'text/javascript'; wh.async = true; 48 wh.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'p.relay-t.io/wh.js'; 49 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wh, s); 50 })(); 51 </script>
51 52 53 54 55
55<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"13006875"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script>
55 56 57 <!-- End Wihp --> 58 59 60 61
61<script> 62 !function(f,b,e,v,n,t,s) 63 {if(f.fbq)return;n=f.fbq=function(){n.callMethod? 64 n.callMethod.apply(n,arguments):n.queue.push(arguments)}; 65 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; 66 n.queue=[];t=b.createElement(e);t.async=!0; 67 t.src=v;s=b.getElementsByTagName(e)[0]; 68 s.parentNode.insertBefore(t,s)}(window, document,'script', 69 'https://connect.facebook.net/en_US/fbevents.js'); 70 </script>
70 71 72 73 74 <title> Hotel Estival Park Resort****Sup | Tarragona | Web Oficial </title> 75 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> 76 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 77 78 <link rel="icon" href="https://cdn2.paraty.es/test8/images/ab642f6a2ef4881" type="image/x-icon"> 79 80 <meta name="keywords" content=""/> 81 <meta name="description" content="¡No busques más! En Estival Park Resort****Sup encontrarás todo lo que necesitas. Reserva ahora al mejor precio."/> 82 83 <meta name="revisit-after" content="2 days"/> 84 <meta http-equiv="Content-Language" content="es"/> 85 <meta name="dc.title" content=" Hotel Estival Park Resort****Sup | Tarragona | Web Oficial "/> 86 <meta name="dc.description" content="¡No busques más! En Estival Park Resort****Sup encontrarás todo lo que necesitas. Reserva ahora al mejor precio."/> 87 <meta name="dc.keywords" content=""/> 88 <meta name="dc.language" content="es"/> 89 <meta name="dc.creator" content="Hotel Estival Park Resort **** | Platja de la Pineda, Costa Dorada, Spain | Web Oficial"/> 90 <meta name="dc.format" content="text/html"/> 91 <meta name="namespace" content="estival-pineda"/> 92 <meta name="dc.identifier" content="https://www.estivalgroup.comes/noticias"/> 93 <meta name="format-detection" content="telephone=no"> 94 <!-- REVOLUTION BANNER CSS SETTINGS --> 95 <link rel="stylesheet" type="text/css" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/rs-plugin/css/settings_unified.min.css" media="screen"/> 96 <link rel="stylesheet" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/lightbox/css/lightbox.css" type="text/css" media="screen"/> 97 <link rel="stylesheet" type="text/css" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/css/templateBaseline.css" media="screen"/> 98 <link rel="stylesheet" type="text/css" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/css/1140/1140.css" media="screen"/> 99 <link rel="stylesheet" type="text/css" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/plugins/pricescalendar/styles.css" media="screen"/> 100 <link rel="stylesheet" type="text/css" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/plugins/dates-selector/css/datepicker_ext_inf.css" media="screen"/> 101 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.9.0/css/v4-shims.css"> 102 <link rel="stylesheet" type="text/css" href="/css/estil/banners.css?v=1.56" media="screen"/> 103 104 <link media="screen" rel="stylesheet" type="text/css" href="/css/estil/styles.css?v=202609221532"/> 105 106 <!--[if IE 8]><link media="screen" rel="stylesheet" type="text/css" href="/css/estil/ie8.css" /><![endif]--> 107 <!--[if lte IE 7]>
107<script type="text/javascript">alert('La versión de su navegador no está soportada. Por favor, utilice una versión más moderna o use otro navegador');</script>
107<![endif]--> 108 <!--[if lte IE 8]>
108<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
108<![endif]--> 109
109<script type="text/javascript"> 110 if (navigator.userAgent.match(/Android/i) 111 || navigator.userAgent.match(/webOS/i) 112 || navigator.userAgent.match(/iPhone/i) 113 || navigator.userAgent.match(/iPad/i) 114 || navigator.userAgent.match(/iPod/i) 115 || navigator.userAgent.match(/BlackBerry/i) 116 || navigator.userAgent.match(/Windows Phone/i)) { 117 document.write('<meta name="viewport" content="width=1160, initial-scale=1, user-scalable=yes">'); 118 } 119 </script>
119 120
120<script>
vendor: 93,524 bytes, line 120
120(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.
120jQuery&&define("jquery",[],function(){return v})})(window);</script>
120 121 <meta name="facebook-domain-verification" content="7mchgybezrm4d25uzazjwmukw7batc" /><link rel="alternate" hreflang="nl" href="https://www.estivalgroup.com/nl/" /><link rel="alternate" hreflang="en" href="https://www.estivalgroup.com/en/" /><link rel="alternate" hreflang="fr" href="https://www.estivalgroup.com/fr/" /><link rel="alternate" hreflang="x-default" href="https://www.estivalgroup.com/" /><link rel="alternate" hreflang="es" href="https://www.estivalgroup.com/" /><link rel="alternate" hreflang="ca" href="https://www.estivalgroup.com/ca/" /><link rel="alternate" hreflang="de" href="https://www.estivalgroup.com/de/" /><link rel="canonical" href="https://www.estivalgroup.com/" /><meta name="robots" content="index, follow" /> 122
122<script> 123 window.dataLayer = window.dataLayer || []; 124</script>
124 125 126 127 128 129 130 131
132<script type="text/javascript" crossorigin="anonymous" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/scripts/custom_cookies.min.js?v=202609221532" integrity="sha512-wp4DS8m2DtSsVnNyptFHzL+s7Qmjec9/pHZLnU9nu0UO8bUfhA+FxVsh1JSHeQUeUioqKgXZFuB43qJ0fSbgYA=="></script>
132 133 134 135 136
137<script type="text/javascript" crossorigin="anonymous" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/scripts/session_storage_controller.min.js?v=202609221532" integrity="sha512-6Dvink0VNQo+aKL2opHdqO/ZEZ6tJ6WVowJjgwKkju4n5szaS6eG+zkIXHU6RjMZAUEEg25rFEcBIa+Y3NuUng=="></script>
137 138 139<link rel="stylesheet" href="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/web_apps/assets/css/main_cookies_popup.css?v=202609221532">
140<script type="text/javascript" crossorigin="anonymous" src="https://cdn.paraty.es/static_files/estival-group/specific/202609221535/web_apps/cookies_popup.js?v=202609221532" integrity="sha512-AnI7XEJ6XLOY/dEE5IvtJu/iEkdJyKjvktdbKPPh8EaZOy9mfb96SEMAQfv7rATD9Z2lMt0NAa0GEygrLgd/GQ=="></script>
140 141
142<script> 143 function user_allowed_to_track() { 144 //Avoid track on localhost pages 145 if (window.navigator.userAgent.indexOf('Headless') > -1) { 146 console.log("Avoid tracking of robots"); 147 return false; 148 } 149 150 if (window.location.hostname.indexOf('localhost') > -1 || window.location.hostname.indexOf('0.0.0.0') > -1) { 151 if (['/booking1', '/booking2', '/booking3', '/booking4'].indexOf(window.location.pathname) === -1) { 152 return false; 153 } 154 } 155 156 return true; 157 } 158</script>
158 159 160 161 162 163 164 165 <!-- Meta event id registry --> 166 167 168
168<script > 169 // The browser pixel and the Conversions API must send the very same event_id for Meta to 170 // deduplicate them (same pixel, same event_name, 48h window). This registry is the single 171 // source of those ids and is declared before the GTM container, because a data layer 172 // variable is only readable while the page that published it is loaded. 173 window.paratyMetaEvents = (function () { 174 const PAGE_EVENT_NAME = 'PageView'; 175 const eventIds = {}; 176 177 function buildEventId(eventName) { 178 let uniquePart; 179 if (window.crypto && window.crypto.randomUUID) { 180 uniquePart = window.crypto.randomUUID(); 181 } else { 182 uniquePart = String(Date.now()) + '.' + String(Math.random()).slice(2); 183 } 184 185 return eventName + '.' + uniquePart; 186 } 187 188 return { 189 // Memoized per page load: page scoped events (PageView, ViewContent, 190 // InitiateCheckout, Purchase) happen once, so both channels must reuse the same id. 191 get: function (eventName) { 192 const name = eventName || PAGE_EVENT_NAME; 193 if (!eventIds[name]) { 194 eventIds[name] = buildEventId(name); 195 } 196 197 return eventIds[name]; 198 }, 199 200 // Forces a brand new id, for repeatable events such as AddToCart where every 201 // occurrence is a different conversion. 202 renew: function (eventName) { 203 eventIds[eventName] = buildEventId(eventName); 204 205 return eventIds[eventName]; 206 }, 207 208 pageEventName: function () { 209 return PAGE_EVENT_NAME; 210 } 211 }; 212 })(); 213 214 // Single entry point for AddToCart: delivers the same event id to whichever channels the 215 // hotel has configured (browser pixel, Conversions API, or both), so Meta deduplicates them. 216 window.paratyMetaAddToCart = function (metaEventId, items) { 217 // Resolved once and shared: a channel falling back to its own id would send the same 218 // AddToCart twice with two different ids, which is exactly what breaks deduplication. 219 metaEventId = metaEventId || window.paratyMetaEvents.renew('AddToCart'); 220 221 if (typeof facebook_api_controller !== 'undefined') { 222 facebook_api_controller.make_add_to_cart(metaEventId, items); 223 } 224 225 if (typeof window.paratyMetaPixelAddToCart === 'function') { 226 let itemsValue = 0; 227 for (const item of items || []) { 228 itemsValue += (item.price || 0) * (item.quantity || 1); 229 } 230 231 window.paratyMetaPixelAddToCart(metaEventId, itemsValue); 232 } 233 }; 234 235 // Initialized here like the GTM container snippet does, instead of relying on the one at 236 // the top of this file: that one carries no data-cookieconsent="ignore", so a blocker can 237 // defer it while this block, which does carry it, already ran. 238 window.dataLayer = window.dataLayer || []; 239 240 241 242 dataLayer.push({ 243 event: 'paraty_meta_event', 244 meta_event_name: window.paratyMetaEvents.pageEventName(), 245 meta_page_event_id: window.paratyMetaEvents.get() 246 }); 247 </script>
247 248 <!-- End Meta event id registry --> 249 250 251 252 <!-- Facebook Pixel Code__ --> 253
253<script> 254 function facebook_pixel_id_tracking() { 255 if (typeof fbq === 'undefined') return; 256 fbq('init', '615691482906182'); 257 fbq('track', 'PageView', { 258 259 currency: 'EUR' 260 }, {eventID: window.paratyMetaEvents?.get()}); 261 } 262 263 cookiesController.push_tracking_code(facebook_pixel_id_tracking, ['marketing', 'analytics']) 264 265 // Exposed for the booking scripts. booking2 no longer tracks AddToCart on page load, so 266 // without this the hotels that render this pixel and have no Meta tag in GTM would stop 267 // reporting AddToCart altogether. The event id is the one shared with the Conversions API. 268 window.paratyMetaPixelAddToCart = function (metaEventId, value) { 269 function trackAddToCart() { 270 if (typeof fbq === 'undefined') return; 271 272 const customData = {currency: 'EUR'}; 273 // Reported only when it is known: a hardcoded 0 would poison the campaigns that 274 // optimize towards the AddToCart value. 275 if (value) { 276 customData.value = value; 277 } 278 279 fbq('track', 'AddToCart', customData, {eventID: metaEventId}); 280 } 281 282 cookiesController.push_tracking_code(trackAddToCart, ['marketing', 'analytics']); 283 }; 284 </script>
284 285 <!-- End Facebook Pixel Code --> 286 287 288 289 <!-- GTM Datalayer -->
290<script type="text/javascript"> 291 292 let allowed_datalayer_register = true; 293 294 295 296 297 298 function addDataLayerDict() { 299 const allowedMergedDatalayer = typeof allowed_datalayer_register !== "undefined" ? allowed_datalayer_register : false; 300 let dataLayerData = '{"currency": "EUR", "currencyCode": "EUR", "hotel_name": "ESTIVAL Park Resort la Pineda", "namespace": "estival-pineda", "transactionTotalWithoutTax": "0", "city": "Tarragona", "country": "Espa\u00f1a", "hotel_brand": "Estival", "item_brand": "Hotel Estival Park Resort **** | Platja de la Pineda, Costa Dorada, Spain | Web Oficial", "region": "Catalu\u00f1a"}'; 301 let generalDataLayer = ''; 302 dataLayerData = dataLayerData ? JSON.parse(dataLayerData) : {}; 303 generalDataLayer = generalDataLayer ? JSON.parse(generalDataLayer) : {'language': document.documentElement.lang}; 304 305 const dataToAdd = allowedMergedDatalayer ? { ...generalDataLayer, ...dataLayerData } : generalDataLayer; 306 307 if (dataToAdd) { 308 dataToAdd.event = 'init'; 309 if (typeof dataLayer !== 'undefined') { 310 dataLayer.push(dataToAdd); 311 } else { 312 dataLayer = [dataToAdd]; 313 } 314 } 315 } 316 317 addDataLayerDict(); 318 319 320 321 if (allowed_datalayer_register) { 322 323 324 325 } 326 327</script>
327 328 329 330 331 332
332<script> 333 window.dataLayer = window.dataLayer || []; 334 function gtag() { 335 dataLayer.push(arguments); 336 } 337 338 339 340 341 </script>
341 342 343 344 <!-- Google Tag Manager Multi GTM --> 345 346 347
347<script > 348 if (navigator.userAgent.indexOf("Chrome-Lighthouse") === -1){
vendor: 448 bytes, lines 348-353
348 349 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 350 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 351 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 352 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 353 })(window,document,'script','dataLayer','
353GTM-WTZV27NF
vendor: 24 bytes, lines 353-354
353'); 354
354} 355 </script>
355 356 357 358 <!-- End Google Tag Manager --> 359 360 361 362 363 <!-- Hotjar Tracking Code --> 364
364<script> 365 function init_hotjar_tracking() {
vendor: 150 bytes, lines 365-368
365 366 (function(h,o,t,j,a,r){ 367 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 368 h._hjSettings={hjid:
3683415195
vendor: 306 bytes, lines 368-374
368,hjsv:6}; 369 a=o.getElementsByTagName('head')[0]; 370 r=o.createElement('script');r.async=1; 371 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 372 a.appendChild(r); 373 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 374
374} 375 376 cookiesController.push_tracking_code(init_hotjar_tracking, ['analytics']); 377 </script>
377 378 379 380 381 382 383 384 385 386 387
388<script> 389 window.dataLayer = window.dataLayer || []; 390 function gtag(){dataLayer.push(arguments);} 391 392 function sendRefundEvent(){ 393 if(!window.analyticsData) return; 394 395 try { 396 const eventData = JSON.parse(window.analyticsData); 397 gtag('event', 'refund', { 398 'send_to': [ 399 eventData.conversion_label, 400 eventData.namespace 401 ], 402 'transaction_id': eventData.identifier, 403 'value': eventData.total_price, 404 'currency': eventData.currency, 405 'items': [{ 406 'item_id': eventData.identifier, 407 'item_name': eventData.namespace, 408 'start_date': eventData.start_date.replaceAll("_", "/"), 409 'end_date': eventData.end_date.replaceAll("_", "/"), 410 }] 411 }); 412 } catch (error) { 413 console.error("Error dataLayer:", error); 414 } 415 } 416</script>
416 417 418 419</head> 420<body itemscope itemtype="//schema.org/Hotel" class=" estival-pineda"> 421 422 423 <!-- Google Tag Manager (noscript) Multi GTM-->
vendor: 106 bytes, lines 423-426
423 424 425 <noscript> 426 <iframe src="https://www.googletagmanager.com/ns.html?id=
426GTM-WTZV27NF
vendor: 113 bytes, lines 426-429
426" height="0" width="0" style="display:none;visibility:hidden"></iframe> 427 </noscript> 428 429
429<!-- End Google Tag Manager (noscript) --> 430 431 432 433 434
435<script> 436 window.addEventListener('load', function () { 437 const bookingErrorEventBody = { 438 sid: '', 439 expired_session: true , 440 unexistent_session: true , 441 error_page_displayed: false , 442 search_params:{}, 443 }; 444 445 pushBookingErrorEvent(bookingErrorEventBody); 446 }); 447 const pushBookingErrorEvent = (eventBody) => { 448 449 if (typeof dataLayer !== 'undefined') { 450 dataLayer.push({ 451 event: 'booking_error', 452 ecommerce: eventBody 453 }); 454 } else { 455 console.warn('[Ecommerce] Event not send because dataLayer is undefined'); 456 } 457 458 }; 459</script>
vendor: 1 bytes, line 459
459
460<script type="application/ld+json"> 461{ 462 "@context": "https://schema.org", 463 "@type": "Hotel", 464 "image": [ 465 "https://lh3.googleusercontent.com/128DoFnsNozn0q788kSD6PeK52WWIUuVomiM02qSwz1WjpkqKH_0iJLRRbfzTrzntqtSLUusFAGEJ9KDMwFMr18-bg=s1500", 466 "https://lh3.googleusercontent.com/NZew7iFh5XcwiH1Yt_Q3ARV6J_UEQ8uY7oePtcV7Iyv-uUYVg_TZXnvsFUjNeF3dGq6c1Qi4oEqtmTtOpkPBtgzk_A=s1500", 467 "https://lh3.googleusercontent.com/FIhMOX35RttGJO-A2piXgkWW6gTXPykhr_Ml6J4DuSlB3kIv4yfTtWktmtAKFkpfO2YwyzPaI6A_qODbY20BLrynqkQ=s1500" 468 ], 469 "@id": "https://www.estivalgroup.com/estival-park-silmar.html", 470 "name": "Estival Park Silmar", 471 "url": "https://www.estivalgroup.com/estival-park-silmar.html", 472 "telephone": "+34977358050", 473 "address": { 474 "@type": "PostalAddress", 475 "streetAddress": "Carrer Camí del Recó, 15", 476 "addressLocality": "Platja de la Pineda", 477 "addressRegion": "Tarragona", 478 "postalCode": "43481", 479 "addressCountry": "España" 480 }, 481 "geo": { 482 "@type": "GeoCoordinates", 483 "latitude": 41.07013060, 484 "longitude": 1.17456680 485 }, 486 "priceRange": "€40 - €180" 487} 488</script>
488 489<meta itemprop="description" content="¡No busques más! En Estival Park Resort****Sup encontrarás todo lo que necesitas. Reserva ahora al mejor precio."> 490<input type="hidden" id="lang_management" value="es"> 491<input type="hidden" id="lang_default" value="es"> 492 493 494 <!--Header--> 495 <header> 496 <div class="top_header"> 497 <div class="left_header"> 498 <div class="toggle_menu"> 499 <div class="open_menu"> 500 <span class="lines"></span> 501 <span class="menu_text">Menu</span> 502 </div> 503 </div> 504 <div id="logoDiv"> 505 <a href="https://www.estivalgroup.com/" id="logoDiv" itemprop="url"> 506 <img width="263" height="121" class="logo_dark" itemprop="logo"src="https://cdn2.paraty.es/estival-pineda/images/748468808490765" alt="Hotel Estival Park Resort **** | Platja de la Pineda, Costa Dorada, Spain | Web Oficial" title="Hotel Estival Park Resort **** | Platja de la Pineda, Costa Dorada, Spain | Web Oficial"/> 507 508 <img width="218" height="103" class="logo_light" itemprop="logo" src="https://cdn2.paraty.es/estival-pineda/images/b3698d85856e76c" alt="Hotel Estival Park Resort **** | Platja de la Pineda, Costa Dorada, Spain | Web Oficial" title="Hotel Estival Park Resort **** | Platja de la Pineda, Costa Dorada, Spain | Web Oficial"/> 509 510 </a> 511 </div> 512 <div class="logo_icon_wrapper"> 513 <a href="https://www.estivalgroup.com/"></a> 514 </div> 515 </div> 516 <div class="right_header"> 517 <div id="top-sections"> 518 519 520 <a href="https://www.estivalgroup.com/mis-reservas.html"> 521 522 <span>Mis reservas</span> 523 </a> 524 525 526 527 <a href="https://www.estivalgroup.com/contacto.html"> 528 529 <span>Contacto</span> 530 </a> 531 532 533 534 <a href="https://www.estivalgroup.com/galeria.html"> 535 536 <span>GalerÃa</span> 537 </a> 538 539 540 </div> 541 <div class="language_selector"> 542 <div id="header_language_selector"> 543 <span>es</span><i class="fas fa-globe-europe"></i> 544 </div> 545 <div class="header_lang"> 546 547 <a href="https://www.estivalgroup.com/" class="selected" > 548 es 549 </a> 550 551 <a href="https://www.estivalgroup.com/en/" > 552 en 553 </a> 554 555 <a href="https://www.estivalgroup.com/fr/" > 556 fr 557 </a> 558 559 <a href="https://www.estivalgroup.com/de/" > 560 de 561 </a> 562 563 <a href="https://www.estivalgroup.com/nl/" > 564 nl 565 </a> 566 567 <a href="https://www.estivalgroup.com/ca/" > 568 ca 569 </a> 570 571 </div> 572 </div> 573 </div> 574 </div> 575 <nav id="main_menu"> 576 <div class="container_hidden_menu"> 577 <div id="mainMenuDiv"><ul itemscope itemtype="//schema.org/SiteNavigationElement" id="main-sections-inner" class="container"> 578 579 <div class="main-section-div-wrapper " 580 > 581 582 583 <a itemprop="url" href="https://www.estivalgroup.com/habitaciones-y-apartamentos.html"> 584 <span itemprop="name">Habitaciones y Apartamentos</span> 585 </a> 586 587 588 589 </div> 590 591 <div class="main-section-div-wrapper has_subsection" 592 > 593 594 <a>
594Conoce nuestro resort</a> 595 596 597 <ul> 598 599 <li class="main-section-subsection oassium hotel"> 600 601 <a href="https://www.estivalgroup.com/oassium-hotel.html" 602 > 603 Oassium Hotel 604 </a> 605 606 </li> 607 608 <li class="main-section-subsection estival park silmar"> 609 610 <a href="https://www.estivalgroup.com/estival-park-silmar.html" 611 > 612 Estival Park Silmar 613 </a> 614 615 </li> 616 617 <li class="main-section-subsection estival park almaris"> 618 619 <a href="https://www.estivalgroup.com/estival-park-almaris.html" 620 > 621 Estival Park Almaris 622 </a> 623 624 </li> 625 626 <li class="main-section-subsection estival park marena"> 627 628 <a href="https://www.estivalgroup.com/estival-park-marena.html" 629 > 630 Estival Park Marena 631 </a> 632 633 </li> 634 635 <li class="main-section-subsection estival park apartamentos"> 636 637 <a href="https://www.estivalgroup.com/estival-park-apartamentos.html" 638 > 639 Estival Park Apartamentos 640 </a> 641 642 </li> 643 644 </ul> 645 646 </div> 647 648 <div class="main-section-div-wrapper " 649 > 650 651 652 <a itemprop="url" href="https://www.estivalgroup.com/ofertas.html"> 653 <span itemprop="name">Ofertas</span> 654 </a> 655 656 657 658 </div> 659 660 <div class="main-section-div-wrapper has_subsection" 661 > 662 663 <a>Gastronomia</a> 664 665 666 <ul> 667 668 <li class="main-section-subsection restaurante"> 669 670 <a href="https://www.estivalgroup.com/restaurante.html" 671 > 672 Restaurante 673 </a> 674 675 </li> 676 677 <li class="main-section-subsection todo incluido"> 678 679 <a href="https://www.estivalgroup.com/todo-incluido.html" 680 > 681 Todo Incluido 682 </a> 683 684 </li> 685 686 </ul> 687 688 </div> 689 690 <div class="main-section-div-wrapper has_subsection" 691 > 692 693 <a>Servicios e instalaciones</a> 694 695 696 <ul> 697 698 <li class="main-section-subsection servicios"> 699 700 <a href="https://www.estivalgroup.com/servicios.html" 701 > 702 Servicios 703 </a> 704 705 </li> 706 707 <li class="main-section-subsection deporte y wellness"> 708 709 <a href="https://www.estivalgroup.com/deporte-y-wellness.html" 710 > 711 Deporte y Wellness 712 </a> 713 714 </li> 715 716 <li class="main-section-subsection animación y actividades"> 717 718 <a href="https://www.estivalgroup.com/animacion-y-actividades.html" 719 > 720 Animación y Actividades 721 </a> 722 723 </li> 724 725 <li class="main-section-subsection zonas comunes"> 726 727 <a href="https://www.estivalgroup.com/zonas-comunes.html" 728 > 729 Zonas Comunes 730 </a> 731 732 </li> 733 734 </ul> 735 736 </div> 737 738 <div class="main-section-div-wrapper " 739 > 740 741 742 <a itemprop="url" href="https://www.estivalgroup.com/entorno.html">
743 <span itemprop="name">Entorno</span> 744 </a> 745 746 747 748 </div> 749 750 <div class="main-section-div-wrapper " 751 > 752 753 754 <a itemprop="url" href="https://www.estivalgroup.com/localizacion.html"> 755 <span itemprop="name">Localización</span> 756 </a> 757 758 759 760 </div> 761 762 <div class="main-section-div-wrapper " 763 > 764 765 766 <a itemprop="url" href="https://www.estivalgroup.com/faqs.html"> 767 <span itemprop="name">FAQs</span> 768 </a> 769 770 771 772 </div> 773 774</ul></div> 775 <div class="social_header"> 776 777 <a href="http://www.facebook.com/EstivalGroup" target="_blank"> 778 <i class="fab fa-facebook" aria-hidden="true"></i> 779 </a> 780 781 782 <a href="https://twitter.com/#!/estivalpark" target="_blank"> 783 <i class="fa fa-twitter" aria-hidden="true"></i> 784 </a> 785 786 787 788 <a href="https://www.youtube.com/user/EstivalPark" target="_blank"> 789 <i class="fa fa-youtube" aria-hidden="true"></i> 790 </a> 791 792 793 794 <a href="http://www.instagram.com/estivalgroup" target="_blank"> 795 <i class="fa fa-instagram" aria-hidden="true"></i> 796 </a> 797 798 </div> 799 </div> 800 </nav> 801 <div class="header_overlay"></div> 802</header> 803 804 805 <section id="slider_container" > 806 807 <style type="text/css"> 808 .tp-banner-container { 809 width: 100%; 810 position: relative; 811 padding: 0; 812 min-width: 1140px; 813 height: 650px; 814 } 815 816 .tp-banner { 817 width: 100%; 818 position: relative; 819 display: none; 820 } 821 822 .tp-arr-titleholder { 823 display: none !important; 824 } 825 826 .visually-hidden { 827 position: absolute !important; 828 width: 1px; 829 height: 1px; 830 margin: -1px; 831 padding: 0; 832 overflow: hidden; 833 clip: rect(0 0 0 0); 834 white-space: nowrap; 835 border: 0; 836 } 837</style> 838 839<!-- Accessible button to pause/resume the slider --> 840<button id="toggleSlider" aria-pressed="false" class="visually-hidden">Pausar</button> 841 842<div class="tp-banner-container"> 843 <div class="tp-banner"> 844 <ul> 845 846 <li data-title="" 847 data-delay='6000' 848 data-transition="fade" data-slotamount="7" data-masterspeed="800" data-link="estival-park-almaris.html" > 849 850 <img src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/images/dummy.png" data-bgposition="center center" data-lazyload="https://cdn2.paraty.es/estival-pineda/images/8c5fb5502b83571.webp=s1900" alt="ESTIVAL: Park Silmar, piscina infinita y tumbonas en azotea con vistas al mar."> 851 852 <div class="caption sfb start" data-easing="easeOutBack" data-speed="400" data-start="500"> 853 <div class="cartela1"> 854 <div class="cartela_title"> ¡NOVEDAD 2023!<big> ESTIVAL PARK ALMARIS</big><span class="underlined md"> descúbrelo </span> 855 </div> 856 </div> 857</div> 858 859 </li> 860 861 <li data-title="" 862 data-delay='6000' 863 data-transition="fade" data-slotamount="7" data-masterspeed="800" data-link="oassium-hotel.html" > 864 865 <img src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/images/dummy.png" data-bgposition="center center" data-lazyload="https://cdn2.paraty.es/estival-pineda/images/13ecc5c79b6be7c.webp=s1900" alt="Piscina y palmeras en ESTIVAL Park Silmar: resort mediterráneo perfecto."> 866 867 <div class="caption sfb start" data-easing="easeOutBack" data-speed="400" data-start="500"> 868<div class="cartela1"> 869<div class="cartela_title">DESCUBRE EL NUEVO <big> OASSIUM HOTEL </big><span class="underlined md">en la Costa Dorada</span></div> 870</div> 871</div> 872 873 </li> 874 875 <li data-title="" 876 data-delay='6000' 877 data-transition="fade" data-slotamount="7" data-masterspeed="800" > 878 879 <img src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/images/dummy.png" data-bgposition="center center" data-lazyload="https://cdn2.paraty.es/test8/images/69db387d7acbb1a.webp=s1900" alt="Mujer flotando en el mar cerca de ESTIVAL: Park Silmar."> 880 881 <div class="caption sfb start" data-easing="easeOutBack" data-speed="400" data-start="500"> 882 <div class="cartela1"> 883<div class="cartela_title">BIENVENIDOS A <big>
883ESTIVAL PARK RESORT</big><span class="underlined md">un Oasis en la Costa Dorada</span></div> 884</div> 885</div> 886 887 888 889 </li> 890 891 <li data-title="" 892 data-delay='6000' 893 data-transition="fade" data-slotamount="7" data-masterspeed="800" data-link="todo-incluido.html" > 894 895 <img src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/images/dummy.png" data-bgposition="center center" data-lazyload="https://cdn2.paraty.es/estival-corporativa/images/ff11c1c153e2eb9.webp=s1900" alt="Piernas de mujer relajándose en un flotador en la piscina del ESTIVAL: Park Silmar."> 896 897 <div class="caption sfb start" data-easing="easeOutBack" data-speed="400" data-start="500"> 898 <div class="cartela1"> 899 <div class="cartela_title"> DISFRUTA DE NUESTRO SERVICIO<big> "ALL INCLUSIVE"</big><span class="underlined md">saber más</span> 900 </div> 901 </div> 902</div> 903 904 </li> 905 906 </ul> 907 </div> 908</div> 909
910<script type="text/javascript" async> 911 const capitalize = text => text.charAt(0).toUpperCase() + text.slice(1); 912 913 var revapi; 914 915 916 jQuery(window).on('load', function () { 917 918 revapi = jQuery('.tp-banner').revolution({ 919 // Add a comment to this line 920 startwidth: 1140, 921 startheight: 650, 922 hideThumbs: 10, 923 fullWidth: "on", 924 forceFullWidth: "on", 925 fullScreen: "on", 926 onHoverStop: "on", 927 lazyLoad: "on", 928 navigationArrows: "solo", 929 navigationType: "bullet", 930 hideTimerBar: "on", 931 932 }); 933 934 $(".tp-banner").show(); 935 936 // Add the aria-labels to the arrows 937 function setAriaLabels() { 938 const $leftArrow = $('.tp-leftarrow'); 939 const $rightArrow = $('.tp-rightarrow'); 940 const previousLabel = `Anterior`; 941 const nextLabel = `Siguiente`; 942 943 if ($leftArrow.length && $rightArrow.length) { 944 $leftArrow.attr({ 945 tabindex: 0, 946 role: 'button', 947 'aria-label': previousLabel 948 }); 949 $rightArrow.attr({ 950 tabindex: 0, 951 role: 'button', 952 'aria-label': nextLabel 953 }); 954 955 if (!$leftArrow.find('.visually-hidden').length) { 956 $leftArrow.append('<span class="visually-hidden">' + previousLabel + '</span>'); 957 } 958 959 if (!$rightArrow.find('.visually-hidden').length) { 960 $rightArrow.append('<span class="visually-hidden">' + nextLabel + '</span>'); 961 } 962 963 console.log('Aria-labels and hidden text assigned'); 964 } 965 } 966 967 function applyAriaLiveToActiveSlide() { 968 $('.tp-revslider-slidesli').removeAttr('aria-live'); 969 $('.tp-revslider-slidesli:not(.tp-hide-revslide)').attr('aria-live', 'polite'); 970 } 971 972 applyAriaLiveToActiveSlide(); 973 974 revapi.on('revolution.slide.onchange', applyAriaLiveToActiveSlide); 975 revapi.on('revolution.slide.onloaded', setAriaLabels); 976 977 // Accessibility for pause/resume button 978 let sliderPaused = false; 979 const $toggleSlider = $('#toggleSlider'); 980 $toggleSlider.text(capitalize($toggleSlider.text())); 981 982 $toggleSlider.click(function () { 983 if (!sliderPaused) { 984 revapi.revpause(); 985 this.innerText = `Reanudar`; 986 this.setAttribute('aria-pressed', 'true'); 987 } else { 988 revapi.revresume(); 989 this.innerText = capitalize(`Pausar`); 990 this.setAttribute('aria-pressed', 'false'); 991 } 992 sliderPaused = !sliderPaused; 993 }); 994 }); //ready 995</script>
995 996 997 <div id="widgetBookingContainer" class="widget_columns "></div> 998 999 <div id="full_wrapper_booking"> 1000 <div id="wrapper_booking" class="container12"> 1001 <div id="booking" class="boking_widget_inline"> 1002 1003 <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,200italic,300italic&display=swap' rel='stylesheet' 1004 type='text/css'> 1005 1006 1007 1008 1009 1010 1011 1012 1013<span id="full-booking-engine-html-7" style="margin:0px;padding:0px;" class=""> 1014<!-- MY BOOKINGS INTEGRATED --> 1015 1016 1017 1018 1019<!-- TITULO --> 1020<div class="booking_form_title"> 1021 <p class="booking_title_1">Reservas</p> 1022 <p class="booking_title_2">Reserva ahora</p> 1023 <p class="best_price">RESERVA AL MEJOR PRECIO</p> 1024 1025 1026 1027 1028 1029 1030 1031</div> 1032<!-- END TITULO --> 1033 1034 1035 <div class='calendar_root_wrapper'> 1036 <div id="calendar-app-root" class="calendar_app" style="display: none"></div> 1037 </div> 1038
1038<script> 1039 window.calendar_data = { 1040 language: 'es', 1041 is_website: true, 1042 namespace: 'estival-pineda', 1043 1044 1045 1046 1047 1048 }; 1049 </script>
1049 1050 <input type="hidden" id="price_calendar_v2" value="true"> 1051
1051<script type="text/javascript" src="/static_1/web_apps/price_calendar.js?v=202609221532" crossorigin="anonymous"></script>
1051 1052 <link rel="stylesheet" type="text/css" href="/static_1/web_apps/assets/css/main_price_calendar.css?v=202609221532"> 1053 1054 1055<!-- booking engine 7 --> 1056<form class="booking_form booking-form-center-text paraty-booking-form " 1057 action="https://www.estivalgroup.com/booking1" method="post" data-initial-booking-url="https://www.estivalgroup.com/booking1" data-initial-namespace="estival-pineda"> 1058 1059<input type="hidden" id="language" name="language" value="SPANISH"/> 1060<input type="hidden" id="agesKid1" name="agesKid1"/> 1061<input type="hidden" id="agesKid2" name="agesKid2"/> 1062<input type="hidden" id="agesKid3" name="agesKid3"/> 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113<input id="roomType" type="hidden" name="roomType" value=""> 1114<input class="roomTypeValue" type="hidden" name="roomTypeValue" value=""> 1115 1116<input id="roomFilter" type="hidden" name="roomFilter" value=".*"> 1117<input id="roomFilterName" type="hidden" name="roomFilterName" value=""> 1118<input id="roomOrder" type="hidden" name="roomOrder" value=""> 1119<input id="roomSearch" type="hidden" name="roomSearch" value=""> 1120 1121<input type="hidden" id="roomtype_list_json" name="roomtype_list_json" value=""> 1122 1123 1124 1125 1126 1127<input type="hidden" id="namespace" name="namespace" value="estival-pineda"/> 1128 1129<input type="hidden" id="gclid" name="gclid" value=""/> 1130 1131<input type="hidden" value="" name="priceSeekerHotel" id="priceSeekerHotel"/> 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142<!-- BOOKING 0 --> 1143 1144 1145 1146 1147 1148 1149 1150<!-- END BOOKING 0--> 1151 1152<!-- EXTRA PARAMS --> 1153 1154<!-- END EXTRA PARAMS --> 1155 1156 1157 1158 1159 1160<!-- SELECTOR DE HOTEL--> 1161 1162 1163 1164 1165 1166 1167 <div class="destination_wrapper"> 1168 <div class="destination_field"> 1169 <label for="destination">Elige entre los</label> 1170 <input class="destination" readonly="readonly" id="destination" type="text" name="destination" 1171 placeholder="Espacios del Resort"></input> 1172 <input type="hidden" id="default_destination_placeholder" name="default_destination_placeholder" 1173 class="default_destination_placeholder" value="Espacios del Resort"> 1174 <i class="fal fa-angle-down"></i> 1175 </div> 1176</div> 1177 1178<div class="hotel_selector"> 1179 <div class="close_hotel_selector"><span></span><span></span></div> 1180 <div class="hotel_selector_inner"> 1181 <div class="hotel_selector_title"> 1182 <span class="title">Elige entre los</span> 1183 <span class="subtitle">Espacios del Resort</span> 1184 </div> 1185 <div class="hotel_cards_wrapper"> 1186 <ul class="hotel_list"> 1187 1188 1189 <li id="estival-pineda" class="estival-pineda hotel_selector_option"> 1190 <div class="cover_image_wrapper"> 1191 <img src="https://cdn2.paraty.es/estival-pineda/images/47b90ed02f5fe28.webp" alt="estival-pineda"> 1192 </div> 1193 <span class="title_selector">Estival Park Hoteles</span> 1194 <input type="hidden" id="url_booking_estival-pineda" value="-dot-estival-group.appspot.com/booking1"> 1195 <input type="hidden" id="namespace_estival-pineda" value="estival-pineda"> 1196 </li> 1197 1198 1199 1200 <li id="estival-park-aptos" class="estival-park-aptos hotel_selector_option"> 1201 <div class="cover_image_wrapper"> 1202 <img src="https://cdn2.paraty.es/estival-pineda/images/730bc2796ce78fc.webp" alt="estival-park-aptos"> 1203 </div> 1204 <span class="title_selector">Estival Park Apartamentos</span> 1205 <input type="hidden" id="url_booking_estival-park-aptos" value="-dot-estival-group.appspot.com/booking1"> 1206 <input type="hidden" id="namespace_estival-park-aptos" value="estival-park-aptos"> 1207 </li> 1208 1209 1210 1211 <li id="estival-club" class="estival-club hotel_selector_option"> 1212 <div class="cover_image_wrapper"> 1213 <img src="https://cdn2.paraty.es/estival-pineda/images/cf01375ed73f50b.webp" alt="estival-club"> 1214 </div>
1215 <span class="title_selector">OASSIUM <small>Hotel ****S Only Adults +18</small></span> 1216 <input type="hidden" id="url_booking_estival-club" value="-dot-estival-group.appspot.com/booking1"> 1217 <input type="hidden" id="namespace_estival-club" value="estival-club"> 1218 </li> 1219 1220 1221 1222 <li class="booking_0_hotel_selection" namespaces="estival-pineda;estival-park-aptos;estival-club"> 1223 <div class="cover_image_wrapper"> 1224 <img src="https://cdn2.paraty.es/estival-pineda/images/b2df491c42d5971.webp" alt="all_hotels"> 1225 </div> 1226 <span class="title_selector">Todo el Resort</span> 1227 </li> 1228 1229 </ul> 1230 </div> 1231 </div> 1232</div> 1233<!-- END SELECTOR DE HOTEL--> 1234 1235 1236<!-- HIDE FILTERS --> 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246<!-- HIDE FILTERS --> 1247 1248<!-- SELECCION FECHAS DE ENTRADA Y NUMERO HABITACIONES --> 1249<div class="stay_selection "> 1250 1251 <div class="entry_date_wrapper half_size"> 1252 <label class="entry_date_label">Entrada</label> 1253 1254 <div class="date_box entry_date"> 1255 <span class="date_day"></span> 1256 <span class="date_year"></span> 1257 <input name="startDate" type="hidden" class="has_datepicker entry_input" value=""/> 1258 1259 <div></div> 1260 </div> 1261 1262 1263 </div> 1264 1265 1266 1267 <div class="departure_date_wrapper"> 1268 <label class="departure_date_label">Salida</label> 1269 1270 <div class="date_box departure_date"> 1271 <span class="date_day"></span> 1272 <span class="date_year"></span> 1273 <input name="endDate" type="hidden" class="has_datepicker departure_input" value=""/> 1274 1275 <div></div> 1276 </div> 1277 </div> 1278 1279
1279<script> 1280 departure_date_selectable = true; 1281 </script>
1281 1282 1283 1284 1285 1286 1287</div> 1288 1289 1290 1291 1292<div class="dates_selector_personalized"> 1293 <label for="" class="dates_selector_label">Fechas</label> 1294 1295 <div class="start_end_date_wrapper"> 1296 <span type="text" class="start_date_personalized"></span> 1297 - 1298 <span type="text" class="end_date_personalized"></span> 1299 1300 <div class="nights_number_wrapper_personalized"> 1301 <span class="days_number_datepicker"></span> 1302 <span class="night_label"> Noche </span> 1303 </div> 1304 </div> 1305 1306 <div class="start_date_datepicker" type="text" data-role="date" data-inline="true" style="display: none"> 1307 <div class="close_calendar"></div> 1308 <span class="entry_label_calendar">Fecha de Entrada</span> 1309 </div> 1310 <div class="departure_datepicker" type="text" data-role="date" data-inline="true" style="display: none"> 1311 <div class="close_calendar"></div> 1312 <span class="departure_label_calendar">Fecha de salida</span> 1313 </div> 1314</div> 1315 1316 1317 1318 1319<div class="rooms_number_wrapper " > 1320 <label class="rooms_label" for="numRooms"> 1321 Habitaciones</label> 1322 <select name="numRooms" id="numRooms" class="rooms_number"> 1323 1324 <option value="1" selected="selected">1</option> 1325 1326 <option value="2" >2</option> 1327 1328 <option value="3" >3</option> 1329 1330 </select> 1331</div> 1332 1333<!-- END SELECCION FECHAS DE ENTRADA Y HABITACIONES --> 1334 1335 1336 1337<div class="guest_selector "> 1338 <label>Ocupación</label> 1339 1340 <span class="placeholder_text">Seleccionar</span><b class="button"></b> 1341 1342</div> 1343 1344<!-- LISTA DE HABITACIONES --> 1345<div class="room_list_wrapper"> 1346<i class="fa fa-times close_room_selector" aria-hidden="true" style="display: none;"></i> 1347 1348 1349<ul class="room_list "> 1350 1351 1352 1353 <!---------------------- ROOM 1----------------------> 1354 <li class="room room1 room_with_babies" > 1355 1356 <div class="room_title room_title_with_babies" 1357 > 1358 1359 Habitación 1</div> 1360 1361 <div class="adults_selector"> 1362 <label class="adults_label" for="adultsRoom1">Adultos 1363 1364 </label> 1365 <select name="adultsRoom1" class="adults_room_1 room_selector" id="adultsRoom1"> 1366 1367 <option value="1" > 1368 1 1369 </option> 1370 1371 <option value="2" selected="selected"> 1372 2 1373 </option> 1374 1375 <option value="3" > 1376 3 1377 </option> 1378 1379 <option value="4" > 1380 4 1381 </option> 1382 1383 <option value="5" > 1384 5 1385 </option> 1386 1387 <option value="6" > 1388 6 1389 </option> 1390 1391 <option value="7" > 1392 7 1393 </option> 1394 1395 <option value="8" > 1396 8 1397 </option> 1398 1399 </select> 1400 1401 </div> 1402 1403 <div class="children_selector range_label_enabled"> 1404 <label class="children_label" for="childrenRoom1">Niños 1405 1406 <span class="range-age"> 1407 1408 1409 1410 (<span class="kids_label">2-11 </span> años) 1411 1412 1413 1414 1415 </span> 1416 1417 </label> 1418 <select name="childrenRoom1" class="children_room_1 room_selector" id="childrenRoom1"> 1419 1420 <option value="0" selected="selected" > 1421 1422 0 1423 1424 </option> 1425 1426 <option value="1" > 1427 1428 1 1429 1430 </option> 1431 1432 <option value="2" > 1433 1434 2 1435 1436 </option> 1437 1438 <option value="3" > 1439 1440 3 1441 1442 </option> 1443 1444 <option value="4" > 1445 1446 4 1447 1448 </option> 1449 1450 </select> 1451 1452 </div> 1453 1454 1455 1456 1457 <div class="babies_selector"> 1458 <label for="babiesRoom1">Bebés 1459 </label> 1460 <select id="hab1_bebes" class="babies_room_1 room_selector" 1461 name="babiesRoom1"> 1462 1463 1464 <option value="0" >0</option> 1465 1466 <option value="1" >1</option> 1467 1468 <option value="2" >2</option> 1469 1470 </select> 1471 1472 </div> 1473 1474 1475 1476 1477 1478 </li> 1479 1480 1481 1482 1483 1484 <!---------------------- ROOM 2----------------------> 1485 <li class="room room2 room_with_babies" style="display: none"> 1486 1487 <div class="room_title room_title_with_babies" 1488 > 1489 1490 Habitación 2</div> 1491 1492 <div class="adults_selector"> 1493 <label class="adults_label" for="adultsRoom2">Adultos 1494 1495 </label> 1496 <select name="adultsRoom2" class="adults_room_2 room_selector" id="adultsRoom2"> 1497 1498 <option value="1" > 1499 1 1500 </option> 1501 1502 <option value="2" selected="selected"> 1503 2 1504 </option> 1505 1506 <option value="3" > 1507 3 1508 </option> 1509 1510 <option value="4" > 1511 4 1512 </option> 1513 1514 <option value="5" > 1515 5 1516 </option> 1517 1518 <option value="6" > 1519 6 1520 </option> 1521 1522 <option value="7" > 1523 7 1524 </option> 1525 1526 <option value="8" > 1527 8 1528 </option> 1529 1530 </select> 1531 1532 </div> 1533 1534 <div class="children_selector range_label_enabled"> 1535 <label class="children_label" for="childrenRoom2">Niños 1536
1537 <span class="range-age"> 1538 1539 1540 1541 (<span class="kids_label">2-11 </span> años) 1542 1543 1544 1545 1546 </span> 1547 1548 </label> 1549 <select name="childrenRoom2" class="children_room_2 room_selector" id="childrenRoom2"> 1550 1551 <option value="0" selected="selected" > 1552 1553 0 1554 1555 </option> 1556 1557 <option value="1" > 1558 1559 1 1560 1561 </option> 1562 1563 <option value="2" > 1564 1565 2 1566 1567 </option> 1568 1569 <option value="3" > 1570 1571 3 1572 1573 </option> 1574 1575 <option value="4" > 1576 1577 4 1578 1579 </option> 1580 1581 </select> 1582 1583 </div> 1584 1585 1586 1587 1588 <div class="babies_selector"> 1589 <label for="babiesRoom2">Bebés 1590 </label> 1591 <select id="hab2_bebes" class="babies_room_2 room_selector" 1592 name="babiesRoom2"> 1593 1594 1595 <option value="0" >0</option> 1596 1597 <option value="1" >1</option> 1598 1599 <option value="2" >2</option> 1600 1601 </select> 1602 1603 </div> 1604 1605 1606 1607 1608 1609 </li> 1610 1611 1612 1613 1614 1615 <!---------------------- ROOM 3----------------------> 1616 <li class="room room3 room_with_babies" style="display: none"> 1617 1618 <div class="room_title room_title_with_babies" 1619 > 1620 1621 Habitación 3</div> 1622 1623 <div class="adults_selector"> 1624 <label class="adults_label" for="adultsRoom3">Adultos 1625 1626 </label> 1627 <select name="adultsRoom3" class="adults_room_3 room_selector" id="adultsRoom3"> 1628 1629 <option value="1" > 1630 1 1631 </option> 1632 1633 <option value="2" selected="selected"> 1634 2 1635 </option> 1636 1637 <option value="3" > 1638 3 1639 </option> 1640 1641 <option value="4" > 1642 4 1643 </option> 1644 1645 <option value="5" > 1646 5 1647 </option> 1648 1649 <option value="6" > 1650 6 1651 </option> 1652 1653 <option value="7" > 1654 7 1655 </option> 1656 1657 <option value="8" > 1658 8 1659 </option> 1660 1661 </select> 1662 1663 </div> 1664 1665 <div class="children_selector range_label_enabled"> 1666 <label class="children_label" for="childrenRoom3">Niños 1667 1668 <span class="range-age"> 1669 1670 1671 1672 (<span class="kids_label">2-11 </span> años) 1673 1674 1675 1676 1677 </span> 1678 1679 </label> 1680 <select name="childrenRoom3" class="children_room_3 room_selector" id="childrenRoom3"> 1681 1682 <option value="0" selected="selected" > 1683 1684 0 1685 1686 </option> 1687 1688 <option value="1" > 1689 1690 1 1691 1692 </option> 1693 1694 <option value="2" > 1695 1696 2 1697 1698 </option> 1699 1700 <option value="3" > 1701 1702 3 1703 1704 </option> 1705 1706 <option value="4" > 1707 1708 4 1709 1710 </option> 1711 1712 </select> 1713 1714 </div> 1715 1716 1717 1718 1719 <div class="babies_selector"> 1720 <label for="babiesRoom3">Bebés 1721 </label> 1722 <select id="hab3_bebes" class="babies_room_3 room_selector" 1723 name="babiesRoom3"> 1724 1725 1726 <option value="0" >0</option> 1727 1728 <option value="1" >1</option> 1729 1730 <option value="2" >2</option> 1731 1732 </select> 1733 1734 </div> 1735 1736 1737 1738 1739 1740 </li> 1741 1742 1743 1744 1745 1746 1747</ul> 1748 1749 1750 1751 1752 1753 1754</div> 1755<!-- END LISTA DE HABITACIONES --> 1756 1757 1758<div class="wrapper_booking_button "> 1759 <div class="promocode_wrapper " > 1760 <label for="widget_promocode" class="promocode_label "> 1761 1762 1763 Código promocional 1764 1765 1766 </label> 1767 <input autocomplete="off" type="text" id="widget_promocode" class="promocode_input " name="promocode" 1768 placeholder="PROMOCODE" 1769 value="" 1770 tabindex="16" 1771 pattern="[a-zA-Z0-9.#&_\-]*" 1772
1773 oninput="this.value=this.value.replace(/[^a-zA-Z0-9.#&_-]/g,'')" 1774 > 1775 <input type="hidden" id="hidden_default_promocode" name="hidden_default_promocode"> 1776
1776<script data-cookieconsent="ignore"> 1777 //Reject injections by js in promocode input when invalid characters are detected 1778 (function ($) { 1779 let originalVal = $.fn.val; 1780 $.fn.val = function (value) { 1781 let label = $("label[for='widget_promocode']"); 1782 if (arguments.length > 0 && value !=='') { 1783 if (this.attr("name") === "promocode" && typeof value === "string" && !/^[a-zA-Z0-9.#&_-]+$/.test(value)) { 1784 document.dispatchEvent(new CustomEvent("invalid_promocode_injection", {})); 1785 return this; 1786 } 1787 } 1788 return originalVal.apply(this, arguments); ; 1789 }; 1790 })(jQuery); 1791 document.addEventListener("invalid_promocode_injection", function (event) { 1792 console.warn("Attempt of invalid promocode injection. Value rejected."); 1793 let promocode_input = $("#widget_promocode"); 1794 let promocode_label = $("label[for='widget_promocode']"); 1795 if (promocode_input.val() == "") { 1796 promocode_label.removeClass("hide"); 1797 } 1798 }); 1799 </script>
1799 1800 1801 1802 1803 1804 </div> 1805 1806 1807 1808 1809 1810 1811 1812 1813 <button type="submit" onclick="$(this).css('display','none');bookingSearchWithAgeSelection();return false;" class="submit_button buttonsearch-ratecheck" > 1814 1815 1816 1817 1818 Reservar 1819 1820 1821 </button> 1822 <div class="spinner_wrapper"></div> 1823 1824 1825 1826 1827</div> 1828 1829<div style="clear:both"></div> 1830 1831 1832 1833 1834 1835 1836 <img src="https://storage.googleapis.com/cdn.paraty.es/estival-caribou-apartaments/files/00EG%20-%20Espinete%20web.gif" style="display: none" alt="Loading" role="presentation"> 1837 1838 1839 <input type="hidden" id="booking-search-popup" name="booking-search-popup" value="true"> 1840 1841
1841<script> 1842 ($ => { 1843 window.show_booking_search_popup = function (myForm) { 1844 if (($.browser && $.browser.msie && parseFloat($.browser.version) <= 9)){ 1845 //if we are here, is because our browser don't accept setTimeOut 1846 //so we submit it directly 1847 myForm.submit(); 1848 } 1849 else { 1850 if (typeof(sending_form_custom_from_paraty) == 'undefined' || !sending_form_custom_from_paraty) { 1851 sending_form_custom_from_paraty = true; 1852 1853 setTimeout(function (myForm) { 1854 openBookingSearchPopup(myForm); 1855 }, 1000, myForm); 1856 } 1857 } 1858 } 1859 1860 window.openBookingSearchPopup = function (myForm) { 1861 1862 return openBookingSearchPopup_v2(myForm); 1863 1864 1865 var elements = [ 1866 1867 ] 1868 1869 var popup_description = ""; 1870 if (typeof(custom_popup_loading_description) != 'undefined') { 1871 popup_description = custom_popup_loading_description; 1872 } 1873 1874 1875 showGallery(elements); 1876 1877 1878 myForm.submit(); 1879 } 1880 1881 window.openBookingSearchPopup_v2 = function (myForm, show_popup=true) { 1882 var container_booking_popup = $('<div></div>').addClass('container_popup_booking').css('text-align', 'center'), 1883 loading_popup_top_text = `Actualizando para continuar con su reserva`; 1884 1885 try { 1886 var loading_popup_top_text = $(".site-header__logo img")[0].outerHTML; 1887 }catch(e){ 1888 console.log("Error trying to retreive logo") 1889 } 1890 1891 1892 var loading_popup_top_text = $("<img src='https://storage.googleapis.com/cdn.paraty.es/estival-caribou-apartaments/files/00EG%20-%20Espinete%20web.gif'>"); 1893 1894 1895 1896 1897 1898 var loading_popup_bottom_text = `<div style='color:#1d252e'> Nuestra mejor oferta web</div>`; 1899 1900 1901 1902 var descipription_top_booking_popup = $("<div></div>").addClass('description_top_popup_booking').html(loading_popup_top_text), 1903 descipription_bottom_booking_popup = $("<div></div>").addClass('description_bottom_popup_booking').html(loading_popup_bottom_text), 1904 gif_wrapper = $("<div></div>").addClass('gif_wrapper'), 1905 number_of_lines = 20; 1906 1907 for (var x = 0; x < number_of_lines; x++) { 1908 var target_delay_css = { 1909 '-webkit-animation-delay': -(1.5 - (0.1 * x)) + 's', 1910 '-moz-animation-delay': -(1.5 - (0.1 * x)) + 's', 1911 '-o-animation-delay': -(1.5 - (0.1 * x)) + 's', 1912 'animation-delay': -(1.5 - (0.1 * x)) + 's' 1913 }; 1914 var element_line_to_append = $("<div></div>").addClass("default_line_loading").css(target_delay_css); 1915 1916 element_line_to_append.css('background', '#0b132b'); 1917 1918 1919 element_line_to_append.appendTo(gif_wrapper); 1920 } 1921 1922 1923 container_booking_popup.css('border', '1px solid #0b132b'); 1924 1925 1926 1927 1928 1929 1930 1931 container_booking_popup.append(descipription_top_booking_popup).append(gif_wrapper).append(descipription_bottom_booking_popup); 1932 1933 1934 var selected_start_date = $("input[name='startDate']").val(), 1935 selected_end_date = $("input[name='endDate']").val(); 1936 1937 var custom_format_date = "%d %b %Y"; 1938 if (custom_format_date) { 1939 1940 var splitted_start_date = selected_start_date.split("/"), 1941 start_day = splitted_start_date[0], 1942 start_month = splitted_start_date[1], 1943 start_year = splitted_start_date[2], 1944 start_datetime = new Date(start_year, start_month - 1, start_day), 1945 week_start_day = start_datetime.getDay(); 1946 1947 var splitted_end_date = selected_end_date.split("/"), 1948 end_day = splitted_end_date[0], 1949 end_month = splitted_end_date[1], 1950 end_year = splitted_end_date[2], 1951 end_datetime = new Date(end_year, end_month - 1, end_day), 1952 week_end_day = end_datetime.getDay(); 1953 1954 var days_list = $.datepicker._defaults.dayNames; 1955 1956 //Start date 1957 selected_start_date = custom_format_date.replace("%m", start_month).replace("%d", start_day).replace("%Y", start_year); 1958 selected_start_date = selected_start_date.replace("%a", days_list[week_start_day]).replace("%bb", _monthNames[start_month - 1]).replace("%b", _monthNames[start_month - 1]); 1959 1960 //End date 1961 selected_end_date = custom_format_date.replace("%m", end_month).replace("%d", end_day).replace("%Y", end_year); 1962 selected_end_date = selected_end_date.replace("%a", days_list[week_end_day]).replace("%bb", _monthNames[end_month - 1]).replace("%b", _monthNames[end_month - 1]); 1963 } 1964 1965 //Protection for failures 1966 if(selected_start_date.indexOf('NaN') > -1 || selected_end_date.indexOf('NaN')){ 1967 container_booking_popup.html(container_booking_popup.html().replace("@@start_date@@", selected_start_date).replace("@@end_date@@", selected_end_date)); 1968 } else { 1969 container_booking_popup.find(".description_bottom_popup_booking").remove(); 1970 } 1971 if (show_popup) { 1972 var booking_loading_popup_params = { 1973 1974 width: 'auto', 1975 height: 'auto', 1976 fitToView: false, 1977 autoSize: false, 1978 padding: 0, 1979 closeClick: false, 1980 closeBtn: false, 1981 helpers: { 1982 overlay: { 1983 css: 1984 {'background': '#ffffff'}, 1985 closeClick: false 1986 }, // prevents closing when clicking OUTSIDE fancybox 1987 1988 }, 1989 wrapCSS: 'fancy-booking-search_v2 full_screen_engine custom_color_overlay', 1990 beforeShow: function () { 1991 if (navigator.userAgent.match(/iPhone/i) || 1992 navigator.userAgent.match(/iPad/i) || 1993 navigator.userAgent.match(/iPod/i) || 1994 (navigator.userAgent.match(/AppleWeb
1994Kit/i) && !navigator.userAgent.match(/Chrome/i))) { 1995 setTimeout(function () { 1996 $.fancybox.close(true); 1997 $("#full_wrapper_booking .wrapper_booking_button .submit_button").show(); 1998 sending_form_custom_from_paraty = undefined; 1999 }, 8000); 2000 } 2001 $('.fancybox-bg').css('background', '#ffffff'); 2002 } 2003 }; 2004 2005 if ($.fancybox.version.slice(0, 2) === '3.') { 2006 booking_loading_popup_params['baseClass'] = 'fancybox-wrap fancy-booking-search_v2 full_screen_engine custom_color_overlay'; 2007 booking_loading_popup_params['modal'] = true; 2008 $.fancybox.open(container_booking_popup, booking_loading_popup_params); 2009 } else { 2010 $.fancybox(container_booking_popup, booking_loading_popup_params); 2011 } 2012 2013 if (myForm) { 2014 if (!navigator.userAgent.match(/chrome/i) && (navigator.userAgent.match(/safari/i) || navigator.userAgent.match(/firefox/i))) { 2015 setTimeout(function () { 2016 myForm.submit(); 2017 }, 700); 2018 } else { 2019 myForm.submit(); 2020 } 2021 } 2022 } 2023 } 2024 2025 window.openCalendarPriceLoaderPopup = function () { 2026 if (window.location.href.includes('localhost')) { 2027 return; 2028 } 2029 2030 const container_booking_popup = $('<div class="container_popup_booking container_popup_calendar"></div>'); 2031 const description_top_booking_popup = $('<div class="description_top_popup_calendar"></div>').html(`La búsqueda que está realizando aplica restricciones<br> Le estamos redirigiendo al calendario de precios`); 2032 const description_bottom_booking_popup = $('<div class="description_bottom_popup_calendar"></div>').html(`Para que pueda continuar con su reserva, le hemos redirigido a nuestro calendario de disponibilidad para que pueda reservar sus próximas vacaciones con nosotros al mejor precio disponible.`); 2033 const animation_container = $("<div id='lottie_animation'></div>"); 2034 const center_container = $("<div class='center_container'></div>").append(description_top_booking_popup).append(animation_container); 2035 2036 container_booking_popup.append(center_container).append(description_bottom_booking_popup); 2037 2038 var booking_loading_popup_params = { 2039 width: 'auto', 2040 height: 'auto', 2041 fitToView: false, 2042 autoSize: false, 2043 padding: 0, 2044 closeClick: false, 2045 closeBtn: false, 2046 helpers: { 2047 overlay: { 2048 css: {'background': 'transparent', 'backdrop-filter': 'blur(50px)'}, 2049 closeClick: false}, // prevents closing when clicking OUTSIDE fancybox 2050 }, 2051 wrapCSS: 'fancy-booking-search_v2 full_screen_engine', 2052 beforeShow: function () { 2053 if(navigator.userAgent.match(/iPhone/i) || 2054 navigator.userAgent.match(/iPad/i) || 2055 navigator.userAgent.match(/iPod/i) || 2056 (navigator.userAgent.match(/AppleWebKit/i) && !navigator.userAgent.match(/Chrome/i))){ 2057 setTimeout(function () { 2058 if ($.fancybox.current?.wrapCSS.includes('fancy-booking-search_v2')) { 2059 $.fancybox.close(); 2060 } 2061 }, 5000); 2062 } 2063 $('.fancybox-bg').css('background','transparent').css('backdrop-filter','blur(50px)'); 2064 $('.fancybox-margin').css('margin', '0'); 2065 }, 2066 afterShow: function () { 2067 if (typeof loader_animation !== 'undefined') { 2068 let params = { 2069 container: $('#lottie_animation')[0], 2070 renderer: 'svg', 2071 loop: true, 2072 autoplay: true, 2073 animationData: loader_animation 2074 }; 2075 2076 let anim = lottie.loadAnimation(params); 2077 2078 setTimeout(function () { 2079 params['container'] = $('#lottie_animation_calendar')[0]; 2080 params['loop'] = false;
2081 2082 let anim_calendar = lottie.loadAnimation(params); 2083 2084 anim_calendar.addEventListener('complete', function() { 2085 anim_calendar.stop(); 2086 setTimeout(() => { 2087 anim_calendar.play(); 2088 }, 5000); 2089 }); 2090 }, 5000); 2091 } 2092 } 2093 }; 2094 2095 $.fancybox(container_booking_popup, booking_loading_popup_params); 2096 2097 setTimeout(function () { 2098 if ($.fancybox.current?.wrapCSS.includes('fancy-booking-search_v2')) { 2099 $.fancybox.close(); 2100 } 2101 setTimeout(function() { 2102 typeof resizeCallCenter !== 'undefined' && resizeCallCenter(); 2103 }, 5500); 2104 }, 5000); 2105 } 2106 2107 window.showGallery = function (elements) { 2108 var fancybox_params = { 2109 'modal': true, 2110 'closeBtn': false, 2111 'autoPlay': true, 2112 'playSpeed': 3000, 2113 'prevEffect': 'none', 2114 'nextEffect': 'none', 2115 'type': 'image', 2116 'arrows': false, 2117 'nextClick': false, 2118 'mouseWheel': false, 2119 'helpers': { 2120 title: { 2121 type: 'outside' 2122 }, 2123 overlay: { 2124 opacity: 0.8, 2125 css: { 2126 'background-color': '#000' 2127 } 2128 } 2129 }, 2130 'padding': 0 2131 }; 2132 if ($.fancybox.version.slice(0,2) === '3.') { 2133 $.fancybox.open(elements, fancybox_params); 2134 } else { 2135 $.fancybox(elements, fancybox_params); 2136 } 2137 } 2138 2139 //Preloading video is required to load correctly in some browsers 2140 $(function() { 2141 2142 }); 2143 2144 2145 })(jQuery); 2146 2147 </script>
2147 2148 2149 2150 2151 2152 2153 2154</form> 2155 2156 2157 2158 <style> 2159.ui-dialog { 2160 position: absolute; 2161 top: 0; 2162 left: 0; 2163 padding: .2em; 2164 outline: 0; 2165} 2166.ui-dialog .ui-dialog-titlebar { 2167 padding: .4em 1em; 2168 position: relative; 2169} 2170.ui-dialog .ui-dialog-title { 2171 float: left; 2172 margin: .1em 0; 2173 white-space: nowrap; 2174 width: 90%; 2175 overflow: hidden; 2176 text-overflow: ellipsis; 2177} 2178.ui-dialog .ui-dialog-titlebar-close { 2179 position: absolute; 2180 right: .3em; 2181 top: 50%; 2182 width: 21px; 2183 margin: -10px 0 0 0; 2184 padding: 1px; 2185 height: 20px; 2186} 2187.ui-dialog .ui-dialog-content { 2188 position: relative; 2189 border: 0; 2190 padding: .5em 1em; 2191 background: none; 2192 overflow: auto; 2193 text-align: center; 2194} 2195.ui-dialog .ui-dialog-buttonpane { 2196 text-align: left; 2197 border-width: 1px 0 0 0; 2198 background-image: none; 2199 margin-top: .5em; 2200 padding: .3em 1em .5em .4em; 2201} 2202.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { 2203 /*float: right;*/ 2204 float: none; 2205 text-align: center; 2206} 2207.ui-dialog .ui-dialog-buttonpane button { 2208 margin: .5em .4em .5em 0; 2209 cursor: pointer; 2210} 2211.ui-dialog .ui-resizable-se { 2212 width: 12px; 2213 height: 12px; 2214 right: -5px; 2215 bottom: -5px; 2216 background-position: 16px 16px; 2217} 2218.ui-dialog .ui-button-text { 2219 /*padding: 10px;*/ 2220 /*margin: 10px;*/ 2221} 2222 2223.ui-dialog .ui-button{ 2224 /*height: 30px;*/ 2225} 2226 2227.ui-draggable .ui-dialog-titlebar { 2228 cursor: move; 2229} 2230 2231.ui-dialog { 2232 min-width: 300px; 2233 z-index: 9999; 2234} 2235 2236</style> 2237 2238 <style> 2239 .ui-dialog-titlebar-close { 2240 display: none !important; 2241 } 2242 2243 #dialog-form{ 2244 padding: 10px; 2245 2246 } 2247 2248 .ui-dialog-titlebar{ 2249 padding: 5px; 2250 } 2251 2252 .kidAgesSelect, .babyAgesSelect{ 2253 margin-left: 10px; 2254 2255 } 2256 2257 .ui-dialog{ 2258 z-index: 99999; 2259 } 2260 2261 2262</style> 2263 2264<!-- New style Age popup --> 2265<style> 2266body .ui-widget-overlay.ui-front { 2267 background: rgba(0, 0, 0, 0.6); 2268 opacity: 1; 2269 z-index: 9998; 2270 position: fixed; 2271} 2272body .ui-dialog.ui-widget { 2273 padding: 20px 10px; 2274 border: 0; 2275 border-radius: 0; 2276 line-height: 1; 2277 width: 100% !important; 2278 max-width: 350px; 2279} 2280body .ui-dialog.ui-widget .ui-dialog-titlebar { 2281 background: none!important; 2282 padding: 0 0 20px 0; 2283 border-radius: 0; 2284 border: 0; 2285 color: black!important; 2286 border-bottom: 1px solid rgba(0, 0, 0, 0.2); 2287 text-align: center; 2288 margin-bottom: 20px; 2289} 2290body .ui-dialog.ui-widget .ui-dialog-titlebar .ui-dialog-title { 2291 width: 100%; 2292 margin: 0; 2293} 2294body .ui-dialog.ui-widget #dialog-form { 2295 padding: 0; 2296 text-align: left; 2297 width: 100% !important; 2298 max-width: 350px; 2299 overflow: visible; 2300} 2301body .ui-dialog.ui-widget #dialog-form form label { 2302 clear: both; 2303 width: 100%; 2304 float: left; 2305} 2306body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids { 2307 display: inline-block; 2308 width: 100%; 2309 float: left; 2310} 2311body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select { 2312 width: calc((100% - 10px)/2); 2313 margin: 0px 10px 10px 0; 2314 float: left; 2315 -webkit-appearance: none; 2316 -moz-appearance: none; 2317 appearance: none; 2318 border-radius: 0; 2319 padding: 5px 10px; 2320} 2321body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select:focus { 2322 opacity: 1 !important; 2323} 2324body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select:nth-child(even) { 2325 margin-right: 0; 2326} 2327body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select:nth-child(-n+2) { 2328 margin-top: 10px; 2329} 2330body .ui-dialog.ui-widget .ui-dialog-buttonpane { 2331 margin: 0; 2332 padding: 0; 2333 vertical-align: bottom; 2334 display: inline-block; 2335 float: left; 2336 width: 100% !important; 2337 max-width: 350px; 2338 border-radius: 0; 2339 margin-top: 10px; 2340} 2341body .ui-dialog.ui-widget .ui-dialog-buttonpane .ui-button { 2342 margin: 0; 2343 display: inline-block; 2344 width: 100% !important; 2345 max-width: 350px; 2346 border-radius: 0; 2347 background: #446ca9; 2348 color:white; 2349} 2350body .ui-dialog.ui-widget .ui-resizable-handle { 2351 display: none; 2352} 2353</style> 2354<!-- <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" type="text/css"/> --> 2355 <div id="dialog-form" title="Edades de los niños" style="display:none"> 2356 <form> 2357 2358 <label id="label1" for="name">Habitación 1</label> 2359 2360 <div class="wrapper_age_kids clearfix"> 2361 2362 2363 <select class="kidAgesSelect" id="agesRoom1_1" name="name" tabindex="1"> 2364 2365 <option value="2" selected="selected">2</option> 2366 2367 <option value="3" >3</option> 2368 2369 <option value="4" >4</option> 2370 2371 <option value="5" >5</option> 2372 2373 <option value="6" >6</option> 2374 2375 <option value="7" >7</option> 2376 2377 <option value="8" >8</option> 2378 2379 <option value="9" >9</option> 2380 2381 <option value="10" >10</option> 2382 2383 <option value="11" >11</option> 2384 2385 </select> 2386 2387 <select class="kidAgesSelect" id="agesRoom1_2" name="name" tabindex="1"> 2388 2389 <option value="2" selected="selected">2</option> 2390 2391 <option value="3" >3</option> 2392 2393 <option value="4" >4</option> 2394 2395 <option value="5" >5</option> 2396 2397 <option value="6" >6</option> 2398 2399 <option value="7" >7</option> 2400 2401 <option value="8" >8</option> 2402 2403 <option value="9" >9</option> 2404 2405 <option value="10" >10</option> 2406 2407 <option value="11" >11</option> 2408 2409 </select> 2410 2411 <select class="kidAgesSelect" id="agesRoom1_3" name="name" tabindex="1"> 2412 2413 <option value="2" selected="selected">2</option> 2414 2415 <option value="3" >3</option> 2416 2417 <option value="4" >4</option> 2418 2419 <option value="5" >5</option> 2420 2421 <option value="6" >6</option> 2422 2423 <option value="7" >7</option> 2424 2425 <option value="8" >8</option> 2426 2427 <option value="9" >9</option> 2428 2429 <option value="10" >10</option> 2430 2431 <option value="11" >11</option> 2432 2433 </select> 2434 2435 <select class="kidAgesSelect" id="agesRoom1_4" name="name" tabindex="1"> 2436 2437 <option value="2" selected="selected">2</option> 2438 2439 <option value="3" >3</option> 2440 2441 <option value="4" >4</option> 2442 2443 <option value="5" >5</option> 2444 2445 <option value="6" >6</option> 2446 2447 <option value="7" >7</option> 2448 2449 <option value="8" >8</option> 2450 2451 <option value="9" >9</option> 2452 2453 <option value="10" >10</option> 2454 2455 <option value="11" >11</option> 2456 2457 </select> 2458 2459 <select class="kidAgesSelect" id="agesRoom1_5" name="name" tabindex="1"> 2460 2461 <option value="2" selected="selected">2</option> 2462 2463 <option value="3" >3</option> 2464 2465 <option value="4" >4</option> 2466 2467 <option value="5" >5</option> 2468 2469 <option value="6" >6</option> 2470 2471 <option value="7" >7</option> 2472 2473 <option value="8" >8</option> 2474 2475 <option value="9" >9</option> 2476 2477 <option value="10" >10</option> 2478 2479 <option value="11" >11</option> 2480 2481 </select> 2482 2483 2484 </div> 2485 2486 2487 <br/> 2488 <br/> 2489 2490 <label id="label2" for="name">Habitación 2</label> 2491 2492 <div class="wrapper_age_kids clearfix"> 2493 2494 2495 <select class="kidAgesSelect" id="agesRoom2_1" name="name" tabindex="1"> 2496 2497 <option value="2" selected="selected">2</option> 2498 2499 <option value="3" >3</option> 2500 2501 <option value="4" >4</option> 2502 2503 <option value="5" >5</option> 2504 2505 <option value="6" >6</option> 2506 2507 <option value="7" >7</option> 2508 2509 <option value="8" >8</option> 2510 2511 <option value="9" >9</option> 2512 2513 <option value="10" >10</option> 2514 2515 <option value="11" >11</option> 2516 2517 </select> 2518 2519 <select class="kidAgesSelect" id="agesRoom2_2" name="name" tabindex="1"> 2520 2521 <option value="2" selected="selected">2</option> 2522 2523 <option value="3" >3</option> 2524 2525 <option value="4" >4</option> 2526 2527 <option value="5" >5</option> 2528 2529 <option value="6" >6</option> 2530 2531 <option value="7" >7</option> 2532 2533 <option value="8" >8</option> 2534 2535 <option value="9" >9</option> 2536 2537 <option value="10" >10</option> 2538 2539 <option value="11" >11</option> 2540 2541 </select> 2542 2543 <select class="kidAgesSelect" id="agesRoom2_3" name="name" tabindex="1"> 2544 2545 <option value="2" selected="selected">2</option> 2546 2547 <option value="3" >3</option> 2548 2549 <option value="4" >4</option> 2550 2551 <option value="5" >5</option> 2552 2553 <option value="6" >6</option> 2554 2555 <option value="7" >7</option> 2556 2557 <option value="8" >8</option> 2558 2559 <option value="9" >9</option> 2560 2561 <option value="10" >10</option> 2562 2563 <option value="11" >11</option> 2564 2565 </select> 2566 2567 <select class="kidAgesSelect" id="agesRoom2_4" name="name" tabindex="1"> 2568 2569 <option value="2" selected="selected">2</option> 2570 2571 <option value="3" >3</option> 2572 2573 <option value="4" >4</option> 2574 2575 <option value="5" >5</option> 2576 2577 <option value="6" >6</option> 2578 2579 <option value="7" >7</option> 2580 2581 <option value="8" >8</option> 2582 2583 <option value="9" >9</option> 2584 2585 <option value="10" >10</option> 2586 2587 <option value="11" >11</option> 2588 2589 </select> 2590 2591 <select class="kidAgesSelect" id="agesRoom2_5" name="name" tabindex="1"> 2592 2593 <option value="2" selected="selected">2</option> 2594 2595 <option value="3" >3</option> 2596 2597 <option value="4" >4</option> 2598 2599 <option value="5" >5</option> 2600 2601 <option value="6" >6</option> 2602 2603 <option value="7" >7</option> 2604 2605 <option value="8" >8</option> 2606 2607 <option value="9" >9</option> 2608 2609 <option value="10" >10</option> 2610 2611 <option value="11" >11</option> 2612 2613 </select> 2614 2615 2616 </div> 2617 2618 2619 <br/> 2620 <br/> 2621 2622 <label id="label3" for="name">Habitación 3</label> 2623 2624 <div class="wrapper_age_kids clearfix"> 2625 2626 2627 <select class="kidAgesSelect" id="agesRoom3_1" name="name" tabindex="1"> 2628 2629 <option value="2" selected="selected">2</option> 2630 2631 <option value="3" >3</option> 2632 2633 <option value="4" >4</option> 2634 2635 <option value="5" >5</option> 2636 2637 <option value="6" >6</option> 2638 2639 <option value="
26397" >7</option> 2640 2641 <option value="8" >8</option> 2642 2643 <option value="9" >9</option> 2644 2645 <option value="10" >10</option> 2646 2647 <option value="11" >11</option> 2648 2649 </select> 2650 2651 <select class="kidAgesSelect" id="agesRoom3_2" name="name" tabindex="1"> 2652 2653 <option value="2" selected="selected">2</option> 2654 2655 <option value="3" >3</option> 2656 2657 <option value="4" >4</option> 2658 2659 <option value="5" >5</option> 2660 2661 <option value="6" >6</option> 2662 2663 <option value="7" >7</option> 2664 2665 <option value="8" >8</option> 2666 2667 <option value="9" >9</option> 2668 2669 <option value="10" >10</option> 2670 2671 <option value="11" >11</option> 2672 2673 </select> 2674 2675 <select class="kidAgesSelect" id="agesRoom3_3" name="name" tabindex="1"> 2676 2677 <option value="2" selected="selected">2</option> 2678 2679 <option value="3" >3</option> 2680 2681 <option value="4" >4</option> 2682 2683 <option value="5" >5</option> 2684 2685 <option value="6" >6</option> 2686 2687 <option value="7" >7</option> 2688 2689 <option value="8" >8</option> 2690 2691 <option value="9" >9</option> 2692 2693 <option value="10" >10</option> 2694 2695 <option value="11" >11</option> 2696 2697 </select> 2698 2699 <select class="kidAgesSelect" id="agesRoom3_4" name="name" tabindex="1"> 2700 2701 <option value="2" selected="selected">2</option> 2702 2703 <option value="3" >3</option> 2704 2705 <option value="4" >4</option> 2706 2707 <option value="5" >5</option> 2708 2709 <option value="6" >6</option> 2710 2711 <option value="7" >7</option> 2712 2713 <option value="8" >8</option> 2714 2715 <option value="9" >9</option> 2716 2717 <option value="10" >10</option> 2718 2719 <option value="11" >11</option> 2720 2721 </select> 2722 2723 <select class="kidAgesSelect" id="agesRoom3_5" name="name" tabindex="1"> 2724 2725 <option value="2" selected="selected">2</option> 2726 2727 <option value="3" >3</option> 2728 2729 <option value="4" >4</option> 2730 2731 <option value="5" >5</option> 2732 2733 <option value="6" >6</option> 2734 2735 <option value="7" >7</option> 2736 2737 <option value="8" >8</option> 2738 2739 <option value="9" >9</option> 2740 2741 <option value="10" >10</option> 2742 2743 <option value="11" >11</option> 2744 2745 </select> 2746 2747 2748 </div> 2749 2750 2751 <br/> 2752 <br/> 2753 2754 2755 <input type="hidden" id="id_div_parent"> 2756 </form> 2757</div> 2758
2759<script type="text/javascript"> 2760 ($ => { 2761 const babiesNeedAgeSelection = false; 2762 2763 window.sendActiveForm = function () { 2764 return $(".booking_form").each(function () { 2765 2766 if ($(this).find(".submit_button:not(.popup_button)").css("display") == "none" || $(this).find(".submit_button:not(.popup_button)").attr("disabled") == "disabled") { 2767 if ($('#booking-search-popup').length) { 2768 show_booking_search_popup($(this)); 2769 return false; 2770 } 2771 2772 $(this).submit(); 2773 return true; 2774 } 2775 }); 2776 } 2777 2778 window.bookingSearchWithAgeSelection = function () { 2779 $(".booking_form").each(function () { 2780 const $booking_form = $(this); 2781 2782 let children_selected = false; 2783 const minor_room_selectors = '.children_selector select.room_selector' + (babiesNeedAgeSelection ? ', .babies_selector select.room_selector' : ''); 2784 $(minor_room_selectors).each(function(){ 2785 if ($(this).val() > 0) { 2786 children_selected = true; 2787 } 2788 }); 2789 2790 if ($('.ages_mandatory_wrapper').length && window.is_children_selector_changed && children_selected) { 2791 window.is_children_selector_changed = false; 2792 $('.ages_mandatory_wrapper').show(); 2793 toggle_guest_selector(true); 2794 2795 setTimeout(() => { 2796 $booking_form.find(".submit_button").css("display", "block"); 2797 }, 1000); 2798 2799 return false; 2800 } 2801 2802 const $submit_button = $booking_form.find(".submit_button:not(.popup_button)"); 2803 if ($submit_button.css("display") === "none" || $submit_button.attr("disabled") == "disabled") { 2804 //Check that user has selected startDate & endDate 2805 const start_date = $booking_form.find("input[name='startDate']").val(); 2806 const end_date = $booking_form.find("input[name='endDate']").val(); 2807 2808 if (!(start_date && end_date)) { 2809 $booking_form.find(".submit_button").css("display", "block"); 2810 if (!end_date) { 2811 if (typeof (open_departure_datepicker) != 'undefined') clearTimeout(open_departure_datepicker); 2812 open_departure_datepicker = setTimeout(function () { 2813 $(".departure_date_wrapper").trigger('click'); 2814 }, 200) 2815 } 2816 return false; 2817 } 2818 2819 if (kids_selected_in_widget($booking_form)) { 2820 const destination_field = $booking_form.find(".destination"); 2821 let booking_url = $booking_form.attr("action"); 2822 2823 if (destination_field.length && booking_url.indexOf("booking0") == -1 && destination_field.val() == "") { 2824 const $destination_wrapper = $booking_form.find(".destination_wrapper"); 2825 if ($destination_wrapper.length) { 2826 // If there is a destination selector wrapper, open it instead of submitting the form. 2827 $destination_wrapper.trigger('click'); 2828 return false; 2829 } 2830 2831 booking_url = $booking_form.attr("action", $booking_form.attr("action").replace("booking1", "booking0")).attr("action"); 2832 } 2833 2834 2835 updateAgesOptions(); 2836 $.fancybox.close(); 2837 var dialog_opt = { 2838 width: "auto", 2839 autoOpen: false, 2840 modal: true, 2841 buttons: { 2842 "Continuar": function () { 2843 for (let room_number = 1; room_number <= 3; room_number++) { 2844 const target_hidden_input = $("input[name=agesKid" + room_number + "]"); 2845 let ages_value_string = []; 2846 2847 2848 2849 for (let kid_number = 1; kid_number <= 5; kid_number++) { 2850 let age_selected = ''; 2851 const needed_age_id = `agesRoom${room_number}_${kid_number}`; 2852 2853 $(".kidAgesSelect:visible").each(function () { 2854 if ($(this).attr('id') == needed_age_id) { 2855 age_selected = $(this).val(); 2856 } 2857 }); 2858 2859 // avoid undefined or empty values 2860 if (age_selected) ages_value_string.push(age_selected); 2861 2862 2863 } 2864 2865 ages_value_string = ages_value_string.join(';'); 2866 target_hidden_input.each(function () { 2867 $(this).val(ages_value_string); 2868 }); 2869 2870 2871 } 2872 2873 $(this).dialog("close"); 2874 sendActiveForm(); 2875 } 2876 } 2877 }; 2878 $("#dialog-form").dialog(dialog_opt).dialog("open"); 2879 2880 } 2881 } 2882 }); 2883 } 2884 2885 window.kids_selected_in_widget = function (form) { 2886 let minors_are_selected = false;
2887 const minor_selectors = $(form).find('select[name^="childrenRoom"]' + (babiesNeedAgeSelection ? ', select[name^="babiesRoom"]' : '')); 2888 minor_selectors.each(function() { 2889 const selected_option = parseInt($(this).find("option:selected").val() ?? 0); 2890 if (selected_option > 0) { 2891 minors_are_selected = true; 2892 } 2893 }); 2894 2895 return minors_are_selected; 2896 } 2897 2898 window.prepare_kids_ages = function (force = false) { 2899 $(".booking_form").each(function () { 2900 const bookingForm = $(this); 2901 const submitButton = bookingForm.find(".submit_button:not(.popup_button)"); 2902 const isButtonHiddenOrDisabled = submitButton.css('display') === 'none' || 2903 submitButton.attr("disabled") === "disabled"; 2904 2905 if (force || isButtonHiddenOrDisabled) { 2906 let numRooms = bookingForm.find(".rooms_number option:selected").val(); 2907 2908 for (let i = 1; i <= numRooms; i++) { 2909 let roomKids = bookingForm.find(".children_room_" + i + " option:selected").val(), 2910 roomBabies = bookingForm.find(".babies_room_" + i + " option:selected").val(), 2911 roomAges = bookingForm.find(".room_ages_" + i), 2912 kidsAges = '', 2913 babiesAges = ''; 2914 2915 for (let j = 1; j <= roomKids; j++) { 2916 const selectElement = roomAges.find(`.kids_age_selection #agesRoom${i}_${j}`); 2917 const ageKid = selectElement.val() ?? selectElement.find('option:selected').val() ?? selectElement.find('option[selected]').val(); 2918 kidsAges += ageKid + ';'; 2919 } 2920 2921 for (let j = 1; j <= roomBabies; j++) { 2922 const selectElement = roomAges.find(`.babies_age_selection #babyAgesRoom${i}_${j}`); 2923 const ageBaby = selectElement.val() ?? selectElement.find('option:selected').val() ?? selectElement.find('option[selected]').val() ?? 0; 2924 babiesAges += ageBaby + ';'; 2925 } 2926 2927 // Check if input exists and create it if not 2928 if (bookingForm.find("#agesKid" + i).length == 0) { 2929 bookingForm.append('<input type="hidden" id="agesKid' + i + '" name="agesKid' + i + '" value="">'); 2930 } 2931 2932 if (bookingForm.find("#agesBaby" + i).length == 0) { 2933 bookingForm.append('<input type="hidden" id="agesBaby' + i + '" name="agesBaby' + i + '" value="">'); 2934 } 2935 2936 bookingForm.find("#agesKid" + i).val(kidsAges); 2937 bookingForm.find("#agesBaby" + i).val(babiesAges); 2938 } 2939 } 2940 }) 2941 }; 2942 2943 window.updateAgesOptions = function () { 2944 2945 2946 $(".booking_form").each(function () { 2947 2948 if ($(this).find(".submit_button:not(.popup_button)").css("display") == "none" || $(this).find(".submit_button:not(.popup_button)").attr("disabled") == "disabled") { 2949 2950 var numHab = $(this).find(".rooms_number option:selected").val(); 2951 for (var i = 3; i > 0; i--) { 2952 for (var j = 1; j <= 5; j++) { 2953 $("#agesRoom" + i + "_" + j).hide(); 2954 $("#agesRoom_baby" + i + "_" + j).hide(); 2955 2956 var roomElem = $("#agesRoom" + i + "_" + j); 2957 var babyElem = $("#agesRoom_baby" + i + "_" + j); 2958 2959 if (roomElem.parent().parent().hasClass('selectricWrapper')) { 2960 roomElem.parent().parent().hide(); 2961 } 2962 2963 if (babyElem.parent().parent().hasClass('selectricWrapper')) { 2964 babyElem.parent().parent().hide(); 2965 } 2966 } 2967 2968 $("#label" + i).hide(); 2969 $("#baby_label" + i).hide(); 2970 } 2971 2972 2973 2974 for (var i = numHab; i > 0; i--) { 2975 var childrenRoom = $(this).find(".children_room_" + i + " option:selected").val(); 2976 var babiesRoom = $(this).find(".babies_room_" + i + " option:selected").val(); 2977 2978 showAges("#label", i, childrenRoom); 2979 showAges("#baby_label", i, babiesRoom); 2980 } 2981 2982 function showAges(labelPrefix, i, num) { 2983 if (num > 0) { 2984 $(labelPrefix + i).show(); 2985 ageSelectPrefix = (labelPrefix === "#baby_label") ? "#agesRoom_baby" : "#agesRoom"; 2986 2987 for (var j = 1; j <= num; j++) {
2988 $(ageSelectPrefix + i + "_" + j).show(); 2989 if ($(ageSelectPrefix + i + "_" + j).parent().parent().hasClass('selectricWrapper')) { 2990 $(ageSelectPrefix + i + "_" + j).parent().parent().show(); 2991 } 2992 } 2993 } 2994 } 2995 } 2996 }); 2997 } 2998 2999 $(function () { 3000 updateAgesOptions(1); 3001 3002 setTimeout(() => { 3003 $(".children_selector select.room_selector, .babies_selector select.room_selector").change(function() { 3004 window.is_children_selector_changed = true; 3005 }); 3006 }, 1500); 3007 3008 $('.ages_mandatory_wrapper .button_mandatory_ages').click(function () { 3009 $(".booking_form .submit_button").click(); 3010 }); 3011 }); 3012 3013 3014 })(jQuery); 3015</script>
3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031</span> 3032 3033 3034 3035 3036 3037 3038 3039
3040<script> 3041 adult_tag = "Adulto"; 3042 adults_tag = "Adultos"; 3043 kid_tag = "Niño"; 3044 kids_tag = "Niños"; 3045 baby_tag = "Bebé"; 3046 babies_tag = "Bebés"; 3047 no_dispo_text = "No disponible"; 3048</script>
3048 3049
3050<script> 3051 night_tag = "Noche"; 3052 nights_tag = "Noches"; 3053</script>
3053 3054
3055<script> 3056 3057</script>
3057 3058
3059<script> 3060 $('.entry_date_wrapper, .departure_date_wrapper').on('click', function () { 3061 if ($('.room_list_wrapper').hasClass('active')) { 3062 $('.room_list_wrapper').removeClass('active'); 3063 } 3064 }); 3065 3066 $(document).on('click', '.close_button_datepicker', function () { 3067 const overlay = $('.black_overlay_guests'); 3068 3069 overlay.stop(true, true).fadeOut(300, function() { 3070 $(this).remove(); 3071 }); 3072 }); 3073</script>
3073 3074 3075 <!-- RESCUESEEKER --> 3076
3076<script async> 3077 ($ => { 3078 if (typeof window.only_once_rescueseeker == "undefined") { 3079 // Reserve synchronously so a concurrent re-injection does not fire a second load. 3080 window.only_once_rescueseeker = 1; 3081 $.getScript("https://rescueseeker-default-697653561069.europe-west1.run.app/static/rescue-seeker/common/js/rescue-seeker-widget.js?v=2") 3082 .done(function (script, textStatus) { 3083 if (typeof RescueSeeker === 'undefined') { 3084 console.error("RESCUE SEEKER: script loaded but global missing"); 3085 window.only_once_rescueseeker = undefined; // release so a later load can retry 3086 return; 3087 } 3088 console.log("RESCUE SEEKER: Main rescue seeker script loaded!"); 3089 3090 3091 RescueSeeker.config.email_controller = 'hotel-webs'; 3092 3093 RescueSeeker.load('estival-pineda', 'es', 'paraty'); 3094 }) 3095 .fail(function (jqxhr, settings, exception) { 3096 window.only_once_rescueseeker = undefined; // release on failure so a later load can retry 3097 console.error("RESCUE SEEKER: Main rescue seeker script NOT loaded!"); 3098 console.error(exception); 3099 }); 3100 } 3101 })(jQuery); 3102</script>
3102 3103 3104 3105 3106 3107 3108 <!-- RATECHECK --> 3109 3110 3111 3112 3113 </div> 3114 </div> 3115 <div id="occupancy_wrapper" class="hide"> 3116 <div class="title_wrapper">Habitaciones y ocupación</div> 3117 <div class="occupancy_options"> 3118 <div class="rooms_amount"> 3119 <label for="">Habitaciones</label> 3120 <div class="modification_buttons"> 3121 <i class="fal minus fa-minus-circle disabled"></i> 3122 <input type="text" target="numRooms" value="1" min-value="1" max-value="3" readonly> 3123 <i class="fal plus fa-plus-circle"></i> 3124 </div> 3125 </div> 3126 3127 3128 <div class="room_element_options room_num_1 "> 3129 <p class="room_title">Habitación 1</p> 3130 <div class="guest_controll adults_wrapper"> 3131 <label for="">Adultos</label> 3132 <div class="modification_buttons"> 3133 <i class="fal minus fa-minus-circle"></i> 3134 <input type="text" class="input_simulator" target="adultsRoom1" value="2" min-value="1" max-value="8" readonly> 3135 <i class="fal plus fa-plus-circle"></i> 3136 </div> 3137 </div> 3138 3139 3140 <div class="guest_controll kids_wrapper"> 3141 <label for="">Niños</label> 3142 <div class="modification_buttons"> 3143 <i class="fal minus fa-minus-circle disabled"></i> 3144 <input type="text" class="input_simulator" target="childrenRoom1" value="0" min-value="0" max-value="4" readonly> 3145 <i class="fal plus fa-plus-circle"></i> 3146 </div> 3147 3148 3149 </div> 3150 3151 3152 3153 <div class="guest_controll babies_wrapper"> 3154 <label for="">Bebés</label> 3155 <div class="modification_buttons"> 3156 <i class="fal minus fa-minus-circle disabled"></i> 3157 <input type="text" class="input_simulator" target="babiesRoom1" value="0" min-value="0" max-value="1" readonly> 3158 <i class="fal plus fa-plus-circle"></i> 3159 </div> 3160 </div> 3161 3162 </div> 3163 3164 <div class="room_element_options room_num_2 hide"> 3165 <p class="room_title">Habitación 2</p> 3166 <div class="guest_controll adults_wrapper"> 3167 <label for="">Adultos</label> 3168 <div class="modification_buttons"> 3169 <i class="fal minus fa-minus-circle"></i> 3170 <input type="text" class="input_simulator" target="adultsRoom2" value="2" min-value="1" max-value="8" readonly> 3171 <i class="fal plus fa-plus-circle"></i> 3172 </div> 3173 </div> 3174 3175 3176 <div class="guest_controll kids_wrapper"> 3177 <label for="">Niños</label> 3178 <div class="modification_buttons"> 3179 <i class="fal minus fa-minus-circle disabled"></i> 3180 <input type="text" class="input_simulator" target="childrenRoom2" value="0" min-value="0" max-value="4" readonly> 3181 <i class="fal plus fa-plus-circle"></i> 3182 </div> 3183 3184 3185 </div> 3186 3187 3188 3189 <div class="guest_controll babies_wrapper"> 3190 <label for="">Bebés</label> 3191 <div class="modification_buttons"> 3192 <i class="fal minus fa-minus-circle disabled"></i> 3193 <input type="text" class="input_simulator" target="babiesRoom2" value="0" min-value="0" max-value="1" readonly> 3194 <i class="fal plus fa-plus-circle"></i> 3195 </div> 3196 </div> 3197 3198 </div> 3199 3200 <div class="room_element_options room_num_3 hide"> 3201 <p class="room_title">
3201Habitación 3</p> 3202 <div class="guest_controll adults_wrapper"> 3203 <label for="">Adultos</label> 3204 <div class="modification_buttons"> 3205 <i class="fal minus fa-minus-circle"></i> 3206 <input type="text" class="input_simulator" target="adultsRoom3" value="2" min-value="1" max-value="8" readonly> 3207 <i class="fal plus fa-plus-circle"></i> 3208 </div> 3209 </div> 3210 3211 3212 <div class="guest_controll kids_wrapper"> 3213 <label for="">Niños</label> 3214 <div class="modification_buttons"> 3215 <i class="fal minus fa-minus-circle disabled"></i> 3216 <input type="text" class="input_simulator" target="childrenRoom3" value="0" min-value="0" max-value="4" readonly> 3217 <i class="fal plus fa-plus-circle"></i> 3218 </div> 3219 3220 3221 </div> 3222 3223 3224 3225 <div class="guest_controll babies_wrapper"> 3226 <label for="">Bebés</label> 3227 <div class="modification_buttons"> 3228 <i class="fal minus fa-minus-circle disabled"></i> 3229 <input type="text" class="input_simulator" target="babiesRoom3" value="
32290" min-value="0" max-value="1" readonly> 3230 <i class="fal plus fa-plus-circle"></i> 3231 </div> 3232 </div> 3233 3234 </div> 3235 3236 </div> 3237</div> 3238 </div> 3239 3240 </section> 3241 3242 3243 3244 <section id="content" > 3245 3246 3247 3248 3249 <div class="content_subtitle_wrapper"> 3250 <h1 class="content_subtitle_title"><span>ESTIVAL PARK RESORT ****Sup <small>Hotel Resort, Sport & Spa</small></span></h1> 3251 3252 3253 <div class="content_subtitle_description"> 3254 <div> 3255 Estival Park Resort es mucho más que un resort convencional: es un lugar único, una experiencia vacacional para todos tus momentos. Emplazado en el corazón del mediterráneo, Estival Park Resort es un homenaje a sus orígenes: proponiendo diferentes maneras de disfrutar de la esencia mediterránea. Una experiencia vacacional flexible que se adapta a las distintas necesidades y deseos que puedas tener en cada uno de los momentos de tu vida. Un lugar que cambia constantemente, que se transforma, que fluye y que vibra a un ritmo propio.</div> 3256 3257 3258 3259 </div> 3260 3261 </div> 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274<div class="banner4x_wrapper "> 3275 3276 <div class="banner"> 3277 <div class="content"> 3278 3279 <div class="title">Ofertas</div> 3280 3281 <div class="desc">Mantente siempre al tanto de todas las ofertas y promociones de Estival Park Resort. Sport & Spa ¡Al mejor precio posible!</div> 3282 </div> 3283 <div class="pic"> 3284 <img src="https://cdn2.paraty.es/estival-pineda/images/4739b577bc325b9.webp=s300-c" alt="Familia disfrutando atardecer en ESTIVAL: Park Silmar, playa familiar." > 3285 3286 <a href="ofertas.html"> 3287 <span>Saber más</span> 3288 </a> 3289 3290 </div> 3291 </div> 3292 3293 <div class="banner"> 3294 <div class="content"> 3295 3296 <div class="title">Servicios</div> 3297 3298 <div class="desc">En Estival Park Resort, ponemos a tu disposición la más completa infraestructura turÃstica, para que disfrutes de unas auténticas vacaciones.</div> 3299 </div> 3300 <div class="pic"> 3301 <img src="https://cdn2.paraty.es/estival-pineda/images/985b1e48e53fd83.webp=s300-c" alt="Piscina y vistas de ESTIVAL Park Silmar. Relax junto al mar." > 3302 3303 <a href="servicios.html"> 3304 <span>Saber más</span> 3305 </a> 3306 3307 </div> 3308 </div> 3309 3310 <div class="banner"> 3311 <div class="content"> 3312 3313 <div class="title">Deporte y Wellness</div> 3314 3315 <div class="desc">Estival Park Resort ofrece instalaciones y una amplia variedad de actividades wellness y servicios para ayudarte a sentirte bien durante todo el año.</div> 3316 </div> 3317 <div class="pic"> 3318 <img src="https://cdn2.paraty.es/estival-pineda/images/0b8d27df3e9c135.webp=s300-c" alt="Pareja relajándose en ESTIVAL: Park Silmar, jacuzzi con chorros de agua." > 3319 3320 <a href="deporte-y-wellness.html"> 3321 <span>Saber más</span> 3322 </a> 3323 3324 </div> 3325 </div> 3326 3327 <div class="banner"> 3328 <div class="content"> 3329 3330 <div class="title">Alojamiento</div> 3331 3332 <div class="desc">Confort y relax al alcance de tu mano. Descubre nuestras habitaciones y amplios apartamentos, totalmente equipados para cubrir tus necesidades y las de tu familia. 3333</div> 3334 </div> 3335 <div class="pic"> 3336 <img src="https://cdn2.paraty.es/estival-pineda/images/d45dcd351fb98a7.webp=s300-c" alt="Habitación doble con camas separadas en ESTIVAL: Park Silmar, decorada en tonos neutros y madera." > 3337 3338 <a href="habitaciones-y-apartamentos.html">
3339 <span>Saber más</span> 3340 </a> 3341 3342 </div> 3343 </div> 3344 3345</div>
3346<script> 3347 $(window).on('load', function () { 3348 3349 function banner4x_fx() { 3350 $(".banner4x_wrapper .banner").addnimation({ 3351 parent: $(".banner4x_wrapper"), 3352 class: "fadeInUp", 3353 reiteration: false 3354 }); 3355 } 3356 banner4x_fx(); 3357 $(window).scroll(banner4x_fx); 3358 3359 }); 3360</script>
3360 3361 3362 3363 3364 3365<div class="banner_map_wrapper"> 3366 <div class="banner_map"> 3367 <div class="title">Dónde Estamos</div> 3368 <div class="desc"><div> 3369 Carrer del Camí del Racó 15-17, 43481 Platja de la Pineda, Tarragona<br /> 3370 Teléfono de reservas: (+34) 977 358 060<br /> 3371 E-mail de reservas: <a href="mailto:[email protected]">[email protected]</a></div> 3372</div> 3373 <div class="iframe-google-maps-wrapper"> 3374 3375 <h3>Cómo llegar</h3><br> 3376 <input type="text" class="place" placeholder="desde..."><button class="go">Cómo llegar</button> 3377 3378 <div class="go_map"><i class="fa fa-angle-up"></i></div> 3379
3379<script language="JavaScript"> 3380 $(".iframe-google-maps-wrapper h3,.iframe-google-maps-wrapper .go_map").click(function () { 3381 $("h3,.place,.go,.go_map").slideToggle(); 3382 }); 3383 $(".go").click(function () { 3384 mapaUrl = "https://www.google.com/maps?saddr=@place@&daddr=estival+park&output=embed"; 3385 newurl = mapaUrl.replace("@place@", $(".place").val()); 3386 3387 $(".banner_map_wrapper iframe").attr("src",newurl); 3388 }); 3389 </script>
3389 3390 </div> 3391 </div> 3392 <div class="iframe_map_wrapper"><iframe src="https://www.google.com/maps/d/embed?mid=1OOuLj17ibe6a-t_m96ZVdkWRO_z-DHC5" loading="lazy" width="640" height="480"></iframe> 3393 3394</div> 3395</div> 3396
3397<script> 3398$(window).on('load', function () { 3399 3400 function banner_map_fx() { 3401 $(".banner_map_wrapper .banner_map").addnimation({parent:$(".banner_map_wrapper"),class:"fadeInUp",reiteration:false}); 3402 $(".banner_map_wrapper .iframe_map_wrapper iframe").addnimation({parent:$(".banner_map_wrapper .iframe_map_wrapper"),class:"fadeIn",reiteration:false}); 3403 } 3404 banner_map_fx(); 3405 $(window).scroll(banner_map_fx); 3406 3407}); 3408</script>
3408 3409 3410<div class="banner_stamps_wrapper container12"> 3411 <div class="banner_stamps_title"> 3412 3413 <strong>Premios y Compromisos</strong><br>Nuestra apuesta por la calidad y excelencia 3414 3415 </div> 3416 <div class="stamps_carousel_wrapper"> 3417 <div class="stamps_carousel owl-carousel"> 3418 3419 <a class="item"> 3420 <div class="image"> 3421 3422 <img src="https://cdn2.paraty.es/estival-pineda/images/800296787846917.webp=s178" alt="Nominee ESTIVAL: Park Silmar, mejor hotel familiar."> 3423 3424 </div> 3425 <div class="desc"> 3426 3427 <strong>Premios Solmar</strong><br> 3428Nominado a «mejor hotel infantil» 3429 3430 </div> 3431 </a> 3432 3433 <a class="item"> 3434 <div class="image"> 3435 3436 <img src="https://cdn2.paraty.es/demo7/images/c83c9787cb1e6dc.webp=s178" alt="Logo BIO9000 en ESTIVAL Park Silmar, sÃmbolo de calidad."> 3437 3438 </div> 3439 <div class="desc"> 3440 3441 <strong>BIO 9000</strong><br> 3442Prevención COVID19 3443 3444 </div> 3445 </a> 3446 3447 <a class="item"> 3448 <div class="image"> 3449 3450 <img src="https://cdn2.paraty.es/demo6/images/85322739f68cf0d.webp=s178" alt="ESTIVAL: Park Silmar - Reconocido en TripAdvisor."> 3451 3452 </div> 3453 <div class="desc"> 3454 3455 <strong>TRIPADVISOR</strong><br> 3456Recomendado en la plataforma 3457 3458 </div> 3459 </a> 3460 3461 <a class="item"> 3462 <div class="image"> 3463 3464 <img src="https://cdn2.paraty.es/demo7/images/ab382a881112f2f.webp=s178" alt="ESTIVAL Park Silmar: Patrocinador Plata 2020, Gavi, Caixa."> 3465 3466 </div> 3467 <div class="desc"> 3468 3469 <strong>FUNDACIÃN GAVI</strong><br> 3470Alianza vacunación infantil 3471 3472 </div> 3473 </a> 3474 3475 <a class="item"> 3476 <div class="image"> 3477 3478 <img src="https://cdn2.paraty.es/estival-corporativa/images/78bda24c2de2152.webp=s178" alt="Recomendado en HolidayCheck 2020 ESTIVAL: Park Silmar"> 3479 3480 </div> 3481 <div class="desc"> 3482 3483 <strong>HOLIDAY CHECK</strong><br> 3484Hoteles reconocidos por su calidad 3485 3486 </div> 3487 </a> 3488 3489 <a class="item"> 3490 <div class="image"> 3491 3492 <img src="https://cdn2.paraty.es/estival-corporativa/images/a59715891b7b467.webp=s178" alt="Logo "Destinació de Turisme Familiar" de ESTIVAL: Park Silmar."> 3493 3494 </div> 3495 <div class="desc"> 3496 3497 <strong>Destino de Turismo Familiar</strong><br> 3498Certificado por la ACT 3499 3500 </div> 3501 </a> 3502 3503 <a class="item" href="https://www.kayak.es/La-Pineda-Hoteles-Estival-Park-Hotel.205444.ksp" target="_blank"> 3504 <div class="image"> 3505 3506 <img src="https://cdn2.paraty.es/estival-pineda/images/6cdf92df9e8b62f.webp=s178" alt="Los Premios de Viajes Kayak en ESTIVAL: Park Silmar, un evento de prestigio."> 3507 3508 </div> 3509 <div class="desc"> 3510 3511 <strong>Kayak</strong> 3512 3513 </div> 3514 </a> 3515 3516 </div> 3517 </div> 3518 3519 3520 3521 <div class="subbanner"> 3522 <div class="content_wrapper"> 3523 3524 <div> 3525 <strong>Nuestro compromiso</strong><br /> 3526 Estival Group se compromete con la calidad y excelencia en todos los servicios. Nos avalan diversos premios y reconocimientos anuales galardonados por distintivas organizaciones, como por parte de nuestros clientes. <br /> 3527 Igualmente estamos orgullosos de ser una compañÃa con la gestión responsable, destacando nuestro compromiso con el medio ambiente. Todos nuestros establecimientos ya utilizan energÃa 100% renovable y para seguir liderando en la lucha por la conservación del medio ambiente trabajamos en los siguientes objetivos:<br /> 3528 - Uso de energÃas 100% renovables certificado<br /> 3529 - Eliminación del plástico de 1 solo uso<br /> 3530 - Amenities con certificado UE "OXO-biodegradable"<br /> 3531 - Uso de productos de limpieza biodegradable<br /> 3532 - Reposición de bombillas LED<br /> 3533 - Dispositivos para el control y la optimización de consumos de agua.<br><br/> 3534 Además Estival Group participa y colabora activamente en diferentes campañas para que el mundo que nos rodea sea mejor.</div> 3535 3536 </div> 3537 <div class="image_wrapper"> 3538 3539 <img src="https://cdn2.paraty.es/estival-pineda/images/7b49755466ecac2.webp" alt="Manos unidas en equipo en ESTIVAL Park Silmar para un servicio excepcional."> 3540 3541 </div> 3542 </div> 3543 3544</div>
3545<script> 3546 $(window).on('load', function () { 3547 $(".stamps_carousel.owl-carousel").owlCarousel({ 3548 loop: true, 3549 nav: true, 3550 navText: ['<i class="fal fa-angle-left"></i>', '<i class="fal fa-angle-right"></i>'], 3551 dots: false, 3552 items: 4, 3553 margin: 55, 3554 autoplay: false 3555 }); 3556 }); 3557</script>
3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 <div class="banner_testimonials_wrapper"> 3575 <div class="container12"> 3576 <div class="testimonials_carousel owl-carousel"> 3577 3578 <div class="testimonial_wrapper"> 3579 <div class="testimonial_info"> 3580 <div class="top_info"> 3581 <span class="author"> 3582 Elisa H 3583 </span> 3584 </div> 3585 3586 <span class="date">Septiembre 2021</span> 3587 3588 <div class="rating_logos_wrapper"> 3589 <div class="rating t5 booking"> 3590 <img width="20" height="12" src="https://cdn2.paraty.es/estival-torrequebrada/images/256f1d7584b1737.webp"> 3591 <div class="circle"></div> 3592 <div class="circle"></div> 3593 <div class="circle"></div> 3594 <div class="circle"></div> 3595 <div class="circle"></div> 3596 </div> 3597 </div> 3598 </div> 3599 <div class="desc"> 3600 <strong class="testimonial_title">Experiencia Perfecta </strong> 3601«IncreiÌble estancia, buenas instalaciones, personal muy agradable y atento sobre todo en el edificio 2 que es el que maÌs he frecuentado, camareros espectaculares, raÌpidos y siempre te atienden con una sonrisa, muy bien el comedor tambieÌn y sus camareros de cocina y destacar tambieÌn dos chicos de recepcioÌn majiÌsimos, repetiremos una y mil veces. Gracias Estival Park seguir asiÌ.» 3602 </div> 3603 3604 </div> 3605 3606 <div class="testimonial_wrapper"> 3607 <div class="testimonial_info"> 3608 <div class="top_info"> 3609 <span class="author"> 3610 Cristobal12 3611 </span> 3612 </div> 3613 3614 <span class="date">Agosto 2021</span> 3615 3616 <div class="rating_logos_wrapper"> 3617 <div class="rating t5 tripadvisor"> 3618 <img width="20" height="12" src="https://cdn2.paraty.es/estival-vendrell/images/f1fe75d85e489c4.webp"> 3619 <div class="circle"></div> 3620 <div class="circle"></div> 3621 <div class="circle"></div> 3622 <div class="circle"></div> 3623 <div class="circle"></div> 3624 </div> 3625 </div> 3626 </div> 3627 <div class="desc"> 3628 <strong class="testimonial_title">Muy satisfechos</strong> 3629 «Hemos estado dos diÌas y estamos muy contentos. El personal ha sido muy amable, haciÌa tiempo que no me sentiÌa tan bien atendida en ninguÌn lugar. El buffet dispone de gran variedad y estaba todo muy bueno. Estoy deseando tener otra pequenÌa escapada en el vuestro hotel.» 3630 </div> 3631 3632 </div> 3633 3634 <div class="testimonial_wrapper"> 3635 <div class="testimonial_info"> 3636 <div class="top_info"> 3637 <span class="author"> 3638 Anabel 3639 </span> 3640 </div> 3641 3642 <span class="date">Julio 2021</span> 3643 3644 <div class="rating_logos_wrapper"> 3645 <div class="rating t5 google"> 3646 <img width="20" height="12" src="https://cdn2.paraty.es/estival-centurion/images/ef84d5940097e06.webp"> 3647 <div class="circle"></div> 3648 <div class="circle"></div> 3649 <div class="circle"></div> 3650 <div class="circle"></div> 3651 <div class="circle"></div> 3652 </div> 3653 </div> 3654 </div> 3655 <div class="desc"> 3656 <strong class="testimonial_title">Para repetir una y mil veces</strong> 3657 «Excelente hotel. HabitacioÌn muy acogedora y muy limpia. El bufet muy variado y la comida de buena calidad. La situacioÌn del hotel es perfecta para ir a la playa. Muy contentas con nuestra estancia, ademaÌs teniÌamos incluido el acceso al Spa Aquum que es genial! Totalmente recomendable.» 3658 3659 3660 </div> 3661 3662 </div> 3663 3664 </div> 3665 </div> 3666</div>
3667<script> 3668 $(window).on("load", function () { 3669 $(".testimonials_carousel.owl-carousel").owlCarousel({ 3670 loop: true, 3671 nav: false, 3672 dots: true, 3673 items: 1, 3674 navText: false, 3675 autoplay: true, 3676 autoHeight: true 3677 }); 3678 }); 3679</script>
3679 3680 3681 3682 3683 3684 3685 3686 3687<div class="newsletter_wrapper" > 3688 <div class="newsletter_container container12"> 3689 <div class="newsletter_title">SUSCRÍBETE Y SÍGUENOS</div> 3690 <div class="newsletter_description">¡Entérate de nuestras noticias y ofertas antes que nadie!</div> 3691 3692 <form class="newsletter_form" action="/utils?action=newsletter" method="post"> 3693 3694 <input id="suscName" type="text" name="suscName" maxlength="150" placeholder="Nombre"> 3695 3696 <input id="suscEmail" class="input_email" type="text" name="suscEmail" placeholder="Introduce tu email"/> 3697 3698 <input id="suscDate" type="text" onfocus="(this.type='date')" name="suscDate" placeholder="Fecha de nacimiento"> 3699 3700 3701 <div class="button_newsletter"><span>Enviar</span></div> 3702 3703 3704 3705 <div class="check_newsletter"> 3706 <div class="newsletter_checkbox"> 3707 <input class="check_privacy" id="privacy" name="privacy" type="checkbox" value="privacy"/> 3708 <a data-fancybox data-options='{"caption" : "He leÃdo y acepto la polÃtica de privacidad", "src" : "/es/?sectionContent=politica-de-privacidad.html", "type" : "iframe", "width" : "100%", "max-width" : "100%"}' data-width="1200" class="myFancyPopup fancybox.iframe newsletter_popup" href="es/?sectionContent=politica-de-privacidad.html" rel="nofollow">He leÃdo y acepto la polÃtica de privacidad</a> 3709 </div> 3710 </div> 3711 3712 3713 3714 </form> 3715 3716 3717 </div> 3718</div> 3719 3720 3721
3722<script async type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/jquery.validate.js" crossorigin="anonymous" integrity="sha512-J1+XdM+HESLdslJXNUFo7LYvRJzmyO8VlBZteQJhPYMXpB+M9J8zhkL0GbyiTO4t6YFDcG5TSGq4KSa0NGB6Jw=="></script>
vendor: 1 bytes, line 3722
3722
3723<script type="text/javascript"> 3724 3725 $(window).on('load', function () { 3726 $(".newsletter_form").validate({ 3727 rules: { 3728 privacy: "required", 3729 promotions: "required", 3730 suscEmail: { 3731 required: true, 3732 email: true 3733 }, 3734 suscName: { 3735 required: true 3736 }, 3737 suscDate: { 3738 required: true, 3739 date: true 3740 } 3741 }, 3742 messages: { 3743 suscEmail: { 3744 required: "Este campo es obligatorio", 3745 email: "El valor de este campo no es correcto" 3746 }, 3747 suscName: { 3748 required: "Este campo es obligatorio" 3749 }, 3750 suscDate: { 3751 required: "Este campo es obligatorio", 3752 date: "El valor de este campo no es correcto" 3753 }, 3754 privacy: "Este campo es obligatorio", 3755 promotions: "Este campo es obligatorio", 3756 }, 3757 highlight: function (input) { 3758 $(input).parent().find("a").addClass('error_class'); 3759 $(input).parent().find("label").addClass('error_class'); 3760 $(input).parent().find("#suscEmail").addClass('error_class'); 3761 $(input).parent().find("#suscName").addClass('error_class'); 3762 $(input).parent().find("#suscDate").addClass('error_class'); 3763 }, 3764 errorPlacement: function (error, element) { 3765 //this keeps enable the validation but hides the error message 3766 } 3767 }); 3768 3769 $(".button_newsletter").unbind('click').click(function () { 3770 var clicked_button = $(this), 3771 form_newsletter = clicked_button.parent(".newsletter_form"); 3772 3773 if (form_newsletter.valid()) { 3774 if (!$("#g-recaptcha-response").length || $("#g-recaptcha-response").val()) { 3775 $.post("/utils?action=newsletter&language=SPANISH", 3776 { 3777 'email': form_newsletter.find("#suscEmail").val(), 3778 'name': form_newsletter.find("#suscName").val(), 3779 'birthdate': form_newsletter.find("#suscDate").val(), 3780 'g-recaptcha-response': $("#g-recaptcha-response").val() 3781 }, 3782 3783 function (data) { 3784 3785 alert("Gracias por suscribirte a nuestra newsletter"); 3786 3787 $("#suscEmail").val(""); 3788 $("#suscName").val(""); 3789 $("#suscDate").val(""); 3790 } 3791 ); 3792 } else { 3793 $(".g-recaptcha > div").css('border', '1px solid red'); 3794 } 3795 3796 } else { 3797 alert("* Campos obligatorios "); 3798 console.log("invalid"); 3799 } 3800 3801 }); 3802 3803 }); 3804</script>
3804 3805 3806<div class="banner_floating"> 3807 3808 <a class="banner" href="http://estivalpark.precheckin.estivalgroup.com/checkwizard/index/BD307A3EC329E10A2CFF8FB87480823DA114F8F4" target="_blank" > 3809 <i class="fal fa-luggage-cart"></i> 3810 3811 <span>CHECK-IN ONLINE</span> 3812 3813 </a> 3814 3815</div> 3816 3817<div class="modal"> 3818 <div class="modal_content"> 3819 <div class="modal_close"><span></span><span></span></div> 3820 <div class="content"></div> 3821 </div> 3822</div> 3823
3824<script> 3825$(window).on('load', function () { 3826 if("estival-pineda" == "test8") { 3827 $(".booking_form").each(function () { 3828 $(this).attr("action", "https://estival-pineda-dot-estival-group.appspot.com/booking1"); 3829 $(this).find("input#namespace").val("estival-pineda"); 3830 }); 3831 } 3832}); 3833</script>
3833 3834 </section> 3835 3836 3837 <footer> 3838 <div class="container12"> 3839 <div class="top_footer centered"> 3840 3841 <div class="col"> 3842 <a href="https://www.estivalgroup.com/" target="_blank"> 3843 <img width="280" height="170" src="https://cdn2.paraty.es/estival-pineda/images/f97acc5a8a3f2da.webp" alt="Logotipo de ESTIVAL: Park Silmar, hoteles y resorts."> 3844 </a> 3845 </div> 3846 3847 3848 <div class="col"> 3849 3850 <a href="#" target="_blank"> 3851 <img width="280" height="170" src="https://cdn2.paraty.es/test8/images/5edf7a3fa94c8a2.webp" alt="ESTIVAL: Park Silmar, logo de hotel con sol y texto blanco sobre fondo negro."> 3852 </a> 3853 3854 3855 <div class="desc"> 3856 <div> 3857 Carrer del Camà del Racó 15-17, 43481 Platja de la Pineda, Tarragona<br /> 3858 Teléfono de recepción: +34 977 35 80 50<br /> 3859 Email recepción: [email protected]</div> 3860 3861 </div> 3862 3863 </div> 3864 3865 3866 <div class="col"> 3867 <div class="social_wrapper"> 3868 3869 <a href="http://www.facebook.com/EstivalGroup" target="_blank" rel="nofollow"> 3870 <i class="fab fa-facebook" aria-hidden="true"></i> 3871 </a> 3872 3873 3874 <a href="https://twitter.com/#!/estivalpark" target="_blank" rel="nofollow"> 3875 <i class="fab fa-twitter" aria-hidden="true"></i> 3876 </a> 3877 3878 3879 <a href="https://www.youtube.com/user/EstivalPark" target="_blank" rel="nofollow"> 3880 <i class="fab fa-youtube" aria-hidden="true"></i> 3881 </a> 3882 3883 3884 3885 <a href="http://www.instagram.com/estivalgroup" target="_blank" rel="nofollow"> 3886 <i class="fab fa-instagram" aria-hidden="true"></i> 3887 </a> 3888 3889 3890 </div> 3891 </div> 3892 3893 3894 </div> 3895 <div class="extra_footer_logo"> 3896 3897 </div> 3898 <div class="bottom_footer"> 3899 <div class="filters_wrapper"> 3900 <ul class="filters_list"> 3901 3902 <li class="filter" data-filter="establecimientos"><span>Establecimientos</span></li> 3903 3904 <li class="filter" data-filter="sobre_nosotros"><span>Sobre Nosotros</span></li> 3905 3906 <li class="filter" data-filter="de_interes"><span>De Interés</span></li> 3907 3908 <li class="filter" data-filter="contacto"><span>Contacto</span></li> 3909 3910 </ul> 3911 </div> 3912 <div class="filters_content_wrapper"> 3913 3914 <div class="content_wrapper" id="establecimientos"> 3915 <div class="cols_wrapper"> 3916 3917 3918 <div class="col column_filtered"> 3919 3920 <div class="col_hotel"> 3921 3922 <h4 class="title">Costa Daurada</h4> 3923 3924 3925 <div class="desc"> 3926 <a href="https://www.estivalpark.es/" target="_blank"> 3927 Estival Park Resort **** 3928</a><br> 3929 3930<a href="https://www.apartamentosestivalpark.es/" target="_blank"> 3931 Apartamentos Estival Park **** 3932</a><br> 3933 3934<a href="https://www.centurionplaya.com/" target="_blank"> 3935 Hotel Estival Centurión ****S 3936</a><br> 3937<a href="https://www.estivaleldorado.com/" target="_blank"> 3938 Estival Eldorado Resort ****S 3939</a><br> 3940<a href="https://www.torredelamora.com/" target="_blank"> 3941 Camping Torre de la Mora 3942</a><br> 3943<a href="https://vendrellplatja.es/" target="_blank"> 3944 Camping Vendrell Platja 3945</a><br> 3946<a href="https://www.aquum.es/" target="_blank"> 3947 Aquum by Estival Park 3948</a><br> 3949 3950<a href="https://www.clubeurosport.cat/" target="_blank"> 3951 Club Euro Sport 3952</a><br> 3953 3954<a href="https://www.elbuffetdealtafulla.com/" target="_blank"> 3955 El buffet d'Altafulla 3956</a> 3957 </div> 3958 3959 </div> 3960 3961 </div> 3962 3963 <div class="col column_filtered"> 3964 3965 <div class="col_hotel"> 3966 3967 <h4 class="title">Barcelona</h4> 3968 3969 3970 <div class="desc"> 3971 <a href="https://www.hotelvilamari.com/" target="_blank"> 3972 Hotel Vilamarà Bcn **** 3973</a> 3974 </div> 3975 3976 </div> 3977 3978 <div class="col_hotel"> 3979 3980 <h4 class="title">Costa del Sol</h4> 3981 3982 3983 <div class="desc"> 3984 <a href="https://estivaltorrequebrada.com/" target="_blank"> 3985 Hotel Estival Torrequebrada **** 3986</a> 3987 </div> 3988 3989 </div> 3990 3991 </div> 3992 3993 <div class="col column_filtered"> 3994 3995 <div class="col_hotel"> 3996 3997 <h4 class="title">Costa de la Luz</h4> 3998 3999 4000 <div class="desc"> 4001 4002 4003 4004<a href="https://www.estivalislantilla.com/" target="_blank"> 4005 Hotel Estival Islantilla **** 4006 </a><br> 4007 4008<a href="https://www.estivalislacristina.com/" target="_blank" style="margin-bottom:20px;">
4009 Hotel Estival Isla Cristina **** 4010 </a> 4011 </div> 4012 4013 </div> 4014 4015 <div class="col_hotel"> 4016 4017 <h4 class="title">Andorra</h4> 4018 4019 4020 <div class="desc"> 4021 <a href="https://www.hotelsporting.ad/" target="_blank"> 4022 Hotel Sporting **** 4023</a> 4024<br> 4025 4026 4027<a href="https://www.hotelcristina.ad/" target="_blank"> 4028 Hotel Cristina *** 4029</a><br> 4030<a href="https://hotelcaribou.ad/" target="_blank"> 4031 Hotel Caribou *** 4032</a><br> 4033 4034<a href="https://www.apartamentscaribou.ad/" target="_blank"> 4035 Apartments Caribou *** 4036</a> 4037 </div> 4038 4039 </div> 4040 4041 </div> 4042 4043 4044 </div> 4045 </div> 4046 4047 <div class="content_wrapper" id="sobre_nosotros"> 4048 <div class="cols_wrapper"> 4049 4050 4051 <div class="col"> 4052 4053 4054 <div class="desc"> 4055 <a href="https://estivalgroup.com" target="_blank"> 4056 Estival Group Web Corporativa 4057</a> 4058 4059 </div> 4060 4061 </div> 4062 4063 <div class="col"> 4064 4065 4066 <div class="desc"> 4067 <a href="https://estivalgroup.com/estival-group.html" target="_blank"> 4068 Estival Group 4069</a> 4070 4071 </div> 4072 4073 </div> 4074 4075 <div class="col"> 4076 4077 4078 <div class="desc"> 4079 <a href="https://estivalgroup.com/premios-y-compromisos.html" target="_blank"> 4080 Premios y Certificados 4081</a> 4082 </div> 4083 4084 </div> 4085 4086 <div class="col"> 4087 4088 4089 <div class="desc"> 4090 <a href="https://estivalpark.complylaw-canaletico.es/public/56994f669271dbcc3e4c97b8920e45c9/formulario" target="_blank"> 4091 Canal Ãtico 4092</a> 4093 </div> 4094 4095 </div> 4096 4097 4098 </div> 4099 </div> 4100 4101 <div class="content_wrapper" id="de_interes"> 4102 <div class="cols_wrapper"> 4103 4104 4105 <div class="col"> 4106 4107 4108 <div class="desc"> 4109 4110 4111 4112<a href="https://estivalgroup.com/destinos-y-establecimientos.html" target="_blank"> 4113 Destinos y Establecimientos</a> 4114 4115 </div> 4116 4117 </div> 4118 4119 <div class="col"> 4120 4121 4122 <div class="desc"> 4123 4124 4125<a href="https://estivalgroup.com/ofertas.html" target="_blank"> 4126 Ofertas</a> 4127 4128 </div> 4129 4130 </div> 4131 4132 <div class="col"> 4133 4134 4135 <div class="desc"> 4136 <a href="/trabaja-con-nosotros.html" target="_blank"> 4137 Trabaja con nosotros</a> 4138 </div> 4139 4140 </div> 4141 4142 4143 </div> 4144 </div> 4145 4146 <div class="content_wrapper" id="contacto"> 4147 <div class="cols_wrapper"> 4148 4149 4150 <div class="col"> 4151 4152 4153 <div class="desc"> 4154 <a href="https://www.estivalgroup.com/es/contact" target="_blank"> 4155 Contacto 4156</a> 4157 4158 </div> 4159 4160 </div> 4161 4162 <div class="col"> 4163 4164 4165 <div class="desc"> 4166 <a href="https://www.estivalpark.es/mis-reservas.html" target="_blank"> 4167 Mis Reservas 4168</a> 4169 </div> 4170 4171 </div> 4172 4173 4174 </div> 4175 </div> 4176 4177 </div> 4178 </div> 4179 <div class="footer_legal_text_wrapper"> 4180 <div class="footer_links_wrapper"> 4181 4182 4183 <a rel="nofollow" data-src="/es/?sectionContent=politica-de-privacidad.html" 4184 data-type="iframe" data-fancybox class="myFancyPopup fancybox.iframe">PolÃtica de Privacidad</a> | 4185 4186 4187 4188 <a rel="nofollow" data-src="/es/?sectionContent=aviso-legal.html" 4189 data-type="iframe" data-fancybox class="myFancyPopup fancybox.iframe">Aviso Legal</a> | 4190 4191 4192 4193 <a rel="nofollow" data-src="/es/?sectionContent=politica-de-cookie
4193s.html" 4194 data-type="iframe" data-fancybox class="myFancyPopup fancybox.iframe">PolÃtica de Cookies</a> | 4195 4196 4197 4198 <a rel="nofollow" data-src="/es/?sectionContent=condiciones-de-reserva.html" 4199 data-type="iframe" data-fancybox class="myFancyPopup fancybox.iframe">Condiciones de reserva</a> | 4200 4201 4202 4203 <a rel="nofollow" href="javascript:cookiesController.open_cookies_banner()">Administrar cookies</a> | 4204 4205 4206 <a rel="nofollow" target="_blank" href="https://www.paratytech.com/motor-de-reservas.html" 4207 title="Motor de Reservas">Motor de Reservas</a> | 4208 <a target="_blank" href="/sitemap.xml" title="">Site Map</a> | 4209 <a rel="nofollow" target="_blank" href="/rss.xml">RSS</a> 4210 </div> 4211 4212 4213 <div class="legal_text"><p>© Copyright Estival Park Resort, S.A., 2021. Registro de Turismo: HT-000669 </p> 4214</div> 4215 </div> 4216 </div> 4217</footer>
4218<script> 4219 $(window).on('load', function () { 4220 $('footer .filters_wrapper .filter').click(function () { 4221 var dataFilter = $(this).data('filter'); 4222 4223 if ($(this).hasClass('active')) { 4224 $(this).removeClass('active') 4225 } else { 4226 $('footer .filters_wrapper .filter').removeClass('active'); 4227 $(this).addClass('active'); 4228 } 4229 4230 $('footer .content_wrapper').each(function () { 4231 if ($(this).attr('id') == dataFilter) { 4232 $(this).addClass('active'); 4233 } else { 4234 //$(this).removeClass('active'); 4235 $(this).removeClass('active'); 4236 } 4237 4238 if ($(this).hasClass('active')) { 4239 $(this).slideToggle(600); 4240 } else { 4241 $(this).slideUp(600); 4242 } 4243 }); 4244 4245 }) 4246 }) 4247</script>
4247 4248 4249 4250
4250<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/fancybox/jquery.fancybox-3.5.7.js" crossorigin="anonymous" integrity="sha512-QEe0ZYK8q+z092+XiCYfz00uqOtnTNuSzqTG5PXeCj6iuTa6Z0gvL7SGl7MdsxdkzGvdgdnGeRlKzh3/Ciblmg=="></script>
4250 4251 4252<style> 4253 body.compensate-for-scrollbar { 4254 overflow: hidden 4255 } 4256 4257 .fancybox-active { 4258 height: auto 4259 } 4260 4261 .fancybox-is-hidden { 4262 left: -9999px; 4263 margin: 0; 4264 position: absolute !important; 4265 top: -9999px; 4266 visibility: hidden 4267 } 4268 4269 .fancybox-container { 4270 -webkit-backface-visibility: hidden; 4271 height: 100%; 4272 left: 0; 4273 outline: none; 4274 position: fixed; 4275 -webkit-tap-highlight-color: transparent; 4276 top: 0; 4277 -ms-touch-action: manipulation; 4278 touch-action: manipulation; 4279 transform: translateZ(0); 4280 width: 100%; 4281 z-index: 99992 4282 } 4283 4284 .fancybox-container * { 4285 box-sizing: border-box 4286 } 4287 4288 .fancybox-bg, .fancybox-inner, .fancybox-outer, .fancybox-stage { 4289 bottom: 0; 4290 left: 0; 4291 position: absolute; 4292 right: 0; 4293 top: 0 4294 } 4295 4296 .fancybox-outer { 4297 -webkit-overflow-scrolling: touch; 4298 overflow-y: auto 4299 } 4300 4301 .fancybox-bg { 4302 background: #1e1e1e; 4303 opacity: 0; 4304 transition-duration: inherit; 4305 transition-property: opacity; 4306 transition-timing-function: cubic-bezier(.47, 0, .74, .71) 4307 } 4308 4309 .fancybox-is-open .fancybox-bg { 4310 opacity: .9; 4311 transition-timing-function: cubic-bezier(.22, .61, .36, 1) 4312 } 4313 4314 .fancybox-caption, .fancybox-infobar, .fancybox-navigation .fancybox-button, .fancybox-toolbar { 4315 direction: ltr; 4316 opacity: 0; 4317 position: absolute; 4318 transition: opacity .25s ease, visibility 0s ease .25s; 4319 visibility: hidden; 4320 z-index: 99997 4321 } 4322 4323 .fancybox-show-caption .fancybox-caption, .fancybox-show-infobar .fancybox-infobar, .fancybox-show-nav .fancybox-navigation .fancybox-button, .fancybox-show-toolbar .fancybox-toolbar { 4324 opacity: 1; 4325 transition: opacity .25s ease 0s, visibility 0s ease 0s; 4326 visibility: visible 4327 } 4328 4329 .fancybox-infobar { 4330 color: #ccc; 4331 font-size: 13px; 4332 -webkit-font-smoothing: subpixel-antialiased; 4333 height: 44px; 4334 left: 0; 4335 line-height: 44px; 4336 min-width: 44px; 4337 mix-blend-mode: difference; 4338 padding: 0 10px; 4339 pointer-events: none; 4340 top: 0; 4341 -webkit-touch-callout: none; 4342 -webkit-user-select: none; 4343 -moz-user-select: none; 4344 -ms-user-select: none; 4345 user-select: none 4346 } 4347 4348 .fancybox-toolbar { 4349 right: 0; 4350 top: 0 4351 } 4352 4353 .fancybox-stage { 4354 direction: ltr; 4355 overflow: visible; 4356 transform: translateZ(0); 4357 z-index: 99994 4358 } 4359 4360 .fancybox-is-open .fancybox-stage { 4361 overflow: hidden 4362 } 4363 4364 .fancybox-slide { 4365 -webkit-backface-visibility: hidden; 4366 display: none; 4367 height: 100%; 4368 left: 0; 4369 outline: none; 4370 overflow: auto; 4371 -webkit-overflow-scrolling: touch; 4372 padding: 44px; 4373 position: absolute; 4374 text-align: center; 4375 top: 0; 4376 transition-property: transform, opacity; 4377 white-space: normal; 4378 width: 100%; 4379 z-index: 99994 4380 } 4381 4382 .fancybox-slide:before { 4383 content: ""; 4384 display: inline-block; 4385 font-size: 0; 4386 height: 100%; 4387 vertical-align: middle; 4388 width: 0 4389 } 4390 4391 .fancybox-is-sliding .fancybox-slide, .fancybox-slide--current, .fancybox-slide--next, .fancybox-slide--previous { 4392 display: block 4393 } 4394 4395 .fancybox-slide--image { 4396 overflow: hidden; 4397 padding: 44px 0 4398 } 4399 4400 .fancybox-slide--image:before { 4401 display: none 4402 } 4403 4404 .fancybox-slide--html { 4405 padding: 6px 4406 } 4407 4408 .fancybox-content { 4409 background: #fff; 4410 display: inline-block; 4411 margin: 0; 4412 max-width: 100%; 4413 overflow: auto !important; 4414 -webkit-overflow-scrolling: touch; 4415 padding: 44px; 4416 position: relative; 4417 text-align: left; 4418 vertical-align: middle 4419 } 4420 4421 .fancybox-slide--image .fancybox-content { 4422 animation-timing-function: cubic-bezier(.5, 0, .14, 1); 4423 -webkit-backface-visibility: hidden; 4424 background: transparent; 4425 background-repeat: no-repeat; 4426 background-size: 100% 100%; 4427 left: 0; 4428 max-width: none; 4429 overflow: visible; 4430 padding: 0; 4431 position: absolute; 4432 top: 0; 4433 transform-origin: top left; 4434 transition-property: transform, opacity; 4435 -webkit-user-select: none; 4436 -moz-user-select: none;
4437 -ms-user-select: none; 4438 user-select: none; 4439 z-index: 99995 4440 } 4441 4442 .fancybox-can-zoomOut .fancybox-content { 4443 cursor: zoom-out 4444 } 4445 4446 .fancybox-can-zoomIn .fancybox-content { 4447 cursor: zoom-in 4448 } 4449 4450 .fancybox-can-pan .fancybox-content, .fancybox-can-swipe .fancybox-content { 4451 cursor: grab 4452 } 4453 4454 .fancybox-is-grabbing .fancybox-content { 4455 cursor: grabbing 4456 } 4457 4458 .fancybox-container [data-selectable=true] { 4459 cursor: text 4460 } 4461 4462 .fancybox-image, .fancybox-spaceball { 4463 background: transparent; 4464 border: 0; 4465 height: 100%; 4466 left: 0; 4467 margin: 0; 4468 max-height: none; 4469 max-width: none; 4470 padding: 0; 4471 position: absolute; 4472 top: 0; 4473 -webkit-user-select: none; 4474 -moz-user-select: none; 4475 -ms-user-select: none; 4476 user-select: none; 4477 width: 100% 4478 } 4479 4480 .fancybox-spaceball { 4481 z-index: 1 4482 } 4483 4484 .fancybox-slide--iframe .fancybox-content, .fancybox-slide--map .fancybox-content, .fancybox-slide--pdf .fancybox-content, .fancybox-slide--video .fancybox-content { 4485 height: 100%; 4486 overflow: visible; 4487 padding: 0; 4488 width: 100% 4489 } 4490 4491 .fancybox-slide--video .fancybox-content { 4492 background: #000 4493 } 4494 4495 .fancybox-slide--map .fancybox-content { 4496 background: #e5e3df 4497 } 4498 4499 .fancybox-slide--iframe .fancybox-content { 4500 background: #fff; 4501 height: inherit !important; 4502 } 4503 4504 .fancybox-iframe, .fancybox-video { 4505 background: transparent; 4506 border: 0; 4507 display: block; 4508 height: 100%; 4509 margin: 0; 4510 overflow: hidden; 4511 padding: 20px; 4512 width: 100% 4513 } 4514 4515 .fancybox-iframe { 4516 left: 0; 4517 position: absolute; 4518 top: 0 4519 } 4520 4521 .fancybox-error { 4522 background: #fff; 4523 cursor: default; 4524 max-width: 400px; 4525 padding: 40px; 4526 width: 100% 4527 } 4528 4529 .fancybox-error p { 4530 color: #444; 4531 font-size: 16px; 4532 line-height: 20px; 4533 margin: 0; 4534 padding: 0 4535 } 4536 4537 .fancybox-button { 4538 background: rgba(30, 30, 30, .6); 4539 border: 0; 4540 border-radius: 0; 4541 box-shadow: none; 4542 cursor: pointer; 4543 display: inline-block; 4544 height: 44px; 4545 margin: 0; 4546 padding: 10px; 4547 position: relative; 4548 transition: color .2s; 4549 vertical-align: top; 4550 visibility: inherit; 4551 width: 44px 4552 } 4553 4554 .fancybox-button, .fancybox-button:link, .fancybox-button:visited { 4555 color: #ccc 4556 } 4557 4558 .fancybox-button:hover { 4559 color: #fff 4560 } 4561 4562 .fancybox-button:focus { 4563 outline: none 4564 } 4565 4566 .fancybox-button.fancybox-focus { 4567 outline: 1px dotted 4568 } 4569 4570 .fancybox-button[disabled], .fancybox-button[disabled]:hover { 4571 color: #888; 4572 cursor: default; 4573 outline: none 4574 } 4575 4576 .fancybox-button div { 4577 height: 100% 4578 } 4579 4580 .fancybox-button svg { 4581 display: block; 4582 height: 100%; 4583 overflow: visible; 4584 position: relative; 4585 width: 100% 4586 } 4587 4588 .fancybox-button svg path { 4589 fill: currentColor; 4590 stroke-width: 0 4591 } 4592 4593 .fancybox-button--fsenter svg:nth-child(2), .fancybox-button--fsexit svg:first-child, .fancybox-button--pause svg:first-child, .fancybox-button--play svg:nth-child(2) { 4594 display: none 4595 } 4596 4597 .fancybox-progress { 4598 background: #ff5268; 4599 height: 2px; 4600 left: 0; 4601 position: absolute; 4602 right: 0; 4603 top: 0; 4604 transform: scaleX(0); 4605 transform-origin: 0; 4606 transition-property: transform; 4607 transition-timing-function: linear; 4608 z-index: 99998 4609 } 4610 4611 .fancybox-close-small { 4612 background: transparent; 4613 border: 0; 4614 border-radius: 0; 4615 color: #ccc; 4616 cursor: pointer; 4617 opacity: .8; 4618 padding: 8px; 4619 position: absolute; 4620 right: -12px; 4621 top: -44px; 4622 z-index: 401 4623 } 4624 4625 .fancybox-close-small:hover { 4626 color: #fff; 4627 opacity: 1 4628 } 4629 4630 .fancybox-slide--html .fancybox-close-small {
4631 color: currentColor; 4632 padding: 10px; 4633 right: 0; 4634 top: 0 4635 } 4636 4637 .fancybox-slide--image.fancybox-is-scaling .fancybox-content { 4638 overflow: hidden 4639 } 4640 4641 .fancybox-is-scaling .fancybox-close-small, .fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small { 4642 display: none 4643 } 4644 4645 .fancybox-navigation .fancybox-button { 4646 background-clip: content-box; 4647 height: 100px; 4648 opacity: 0; 4649 position: absolute; 4650 top: calc(50% - 50px); 4651 width: 70px 4652 } 4653 4654 .fancybox-navigation .fancybox-button div { 4655 padding: 7px 4656 } 4657 4658 .fancybox-navigation .fancybox-button--arrow_left { 4659 left: 0; 4660 left: env(safe-area-inset-left); 4661 padding: 31px 26px 31px 6px 4662 } 4663 4664 .fancybox-navigation .fancybox-button--arrow_right { 4665 padding: 31px 6px 31px 26px; 4666 right: 0; 4667 right: env(safe-area-inset-right) 4668 } 4669 4670 .fancybox-caption { 4671 background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .15) 65%, rgba(0, 0, 0, .075) 75.5%, rgba(0, 0, 0, .037) 82.85%, rgba(0, 0, 0, .019) 88%, transparent); 4672 bottom: 0; 4673 color: #eee; 4674 font-size: 14px; 4675 font-weight: 400; 4676 left: 0; 4677 line-height: 1.5; 4678 padding: 75px 44px 25px; 4679 pointer-events: none; 4680 right: 0; 4681 text-align: center; 4682 z-index: 99996 4683 } 4684 4685 @supports (padding:max(0px)) { 4686 .fancybox-caption { 4687 padding: 75px max(44px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(44px, env(safe-area-inset-left)) 4688 } 4689 } 4690 4691 .fancybox-caption--separate { 4692 margin-top: -50px 4693 } 4694 4695 .fancybox-caption__body { 4696 max-height: 50vh; 4697 overflow: auto; 4698 pointer-events: all 4699 } 4700 4701 .fancybox-caption a, .fancybox-caption a:link, .fancybox-caption a:visited { 4702 color: #ccc; 4703 text-decoration: none 4704 } 4705 4706 .fancybox-caption a:hover { 4707 color: #fff; 4708 text-decoration: underline 4709 } 4710 4711 .fancybox-loading { 4712 animation: a 1s linear infinite; 4713 background: transparent; 4714 border: 4px solid #888; 4715 border-bottom-color: #fff; 4716 border-radius: 50%; 4717 height: 50px; 4718 left: 50%; 4719 margin: -25px 0 0 -25px; 4720 opacity: .7; 4721 padding: 0; 4722 position: absolute; 4723 top: 50%; 4724 width: 50px; 4725 z-index: 99999 4726 } 4727 4728 @keyframes a { 4729 to { 4730 transform: rotate(1turn) 4731 } 4732 } 4733 4734 .fancybox-animated { 4735 transition-timing-function: cubic-bezier(0, 0, .25, 1) 4736 } 4737 4738 .fancybox-fx-slide.fancybox-slide--previous { 4739 opacity: 0; 4740 transform: translate3d(-100%, 0, 0) 4741 } 4742 4743 .fancybox-fx-slide.fancybox-slide--next { 4744 opacity: 0; 4745 transform: translate3d(100%, 0, 0) 4746 } 4747 4748 .fancybox-fx-slide.fancybox-slide--current { 4749 opacity: 1; 4750 transform: translateZ(0) 4751 } 4752 4753 .fancybox-fx-fade.fancybox-slide--next, .fancybox-fx-fade.fancybox-slide--previous { 4754 opacity: 0; 4755 transition-timing-function: cubic-bezier(.19, 1, .22, 1) 4756 } 4757 4758 .fancybox-fx-fade.fancybox-slide--current { 4759 opacity: 1 4760 } 4761 4762 .fancybox-fx-zoom-in-out.fancybox-slide--previous { 4763 opacity: 0; 4764 transform: scale3d(1.5, 1.5, 1.5) 4765 } 4766 4767 .fancybox-fx-zoom-in-out.fancybox-slide--next { 4768 opacity: 0; 4769 transform: scale3d(.5, .5, .5) 4770 } 4771 4772 .fancybox-fx-zoom-in-out.fancybox-slide--current { 4773 opacity: 1; 4774 transform: scaleX(1) 4775 } 4776 4777 .fancybox-fx-rotate.fancybox-slide--previous { 4778 opacity: 0; 4779 transform: rotate(-1turn) 4780 } 4781 4782 .fancybox-fx-rotate.fancybox-slide--next { 4783 opacity: 0; 4784 transform: rotate(1turn) 4785 } 4786 4787 .fancybox-fx-rotate.fancybox-slide--current { 4788 opacity: 1; 4789 transform: rotate(0deg) 4790 } 4791 4792 .fancybox-fx-circular.fancybox-slide--previous { 4793 opacity: 0; 4794 transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0) 4795 } 4796 4797 .fancybox-fx-circular.fancybox-slide--next { 4798 opacity: 0; 4799 transform: scale3d(0, 0, 0) translate3d(100%, 0, 0) 4800 } 4801 4802 .fancybox-fx-circular.fancybox-slide--current { 4803 opacity: 1; 4804 transform: scaleX(1) translateZ(0) 4805 } 4806 4807 .fancybox-fx-tube.fancybox-slide--previous {
4808 transform: translate3d(-100%, 0, 0) scale(.1) skew(-10deg) 4809 } 4810 4811 .fancybox-fx-tube.fancybox-slide--next { 4812 transform: translate3d(100%, 0, 0) scale(.1) skew(10deg) 4813 } 4814 4815 .fancybox-fx-tube.fancybox-slide--current { 4816 transform: translateZ(0) scale(1) 4817 } 4818 4819 @media (max-height: 576px) { 4820 .fancybox-slide { 4821 padding-left: 6px; 4822 padding-right: 6px 4823 } 4824 4825 .fancybox-slide--image { 4826 padding: 6px 0 4827 } 4828 4829 .fancybox-close-small { 4830 right: -6px 4831 } 4832 4833 .fancybox-slide--image .fancybox-close-small { 4834 background: #4e4e4e; 4835 color: #f2f4f6; 4836 height: 36px; 4837 opacity: 1; 4838 padding: 6px; 4839 right: 0; 4840 top: 0; 4841 width: 36px 4842 } 4843 4844 .fancybox-caption { 4845 padding-left: 12px; 4846 padding-right: 12px 4847 } 4848 4849 @supports (padding:max(0px)) { 4850 .fancybox-caption { 4851 padding-left: max(12px, env(safe-area-inset-left)); 4852 padding-right: max(12px, env(safe-area-inset-right)) 4853 } 4854 } 4855 } 4856 4857 .fancybox-share { 4858 background: #f4f4f4; 4859 border-radius: 3px; 4860 max-width: 90%; 4861 padding: 30px; 4862 text-align: center 4863 } 4864 4865 .fancybox-share h1 { 4866 color: #222; 4867 font-size: 35px; 4868 font-weight: 700; 4869 margin: 0 0 20px 4870 } 4871 4872 .fancybox-share p { 4873 margin: 0; 4874 padding: 0 4875 } 4876 4877 .fancybox-share__button { 4878 border: 0; 4879 border-radius: 3px; 4880 display: inline-block; 4881 font-size: 14px; 4882 font-weight: 700; 4883 line-height: 40px; 4884 margin: 0 5px 10px; 4885 min-width: 130px; 4886 padding: 0 15px; 4887 text-decoration: none; 4888 transition: all .2s; 4889 -webkit-user-select: none; 4890 -moz-user-select: none; 4891 -ms-user-select: none; 4892 user-select: none; 4893 white-space: nowrap 4894 } 4895 4896 .fancybox-share__button:link, .fancybox-share__button:visited { 4897 color: #fff 4898 } 4899 4900 .fancybox-share__button:hover { 4901 text-decoration: none 4902 } 4903 4904 .fancybox-share__button--fb { 4905 background: #3b5998 4906 } 4907 4908 .fancybox-share__button--fb:hover { 4909 background: #344e86 4910 } 4911 4912 .fancybox-share__button--pt { 4913 background: #bd081d 4914 } 4915 4916 .fancybox-share__button--pt:hover { 4917 background: #aa0719 4918 } 4919 4920 .fancybox-share__button--tw { 4921 background: #1da1f2 4922 } 4923 4924 .fancybox-share__button--tw:hover { 4925 background: #0d95e8 4926 } 4927 4928 .fancybox-share__button svg { 4929 height: 25px; 4930 margin-right: 7px; 4931 position: relative; 4932 top: -1px; 4933 vertical-align: middle; 4934 width: 25px 4935 } 4936 4937 .fancybox-share__button svg path { 4938 fill: #fff 4939 } 4940 4941 .fancybox-share__input { 4942 background: transparent; 4943 border: 0; 4944 border-bottom: 1px solid #d7d7d7; 4945 border-radius: 0; 4946 color: #5d5b5b; 4947 font-size: 14px; 4948 margin: 10px 0 0; 4949 outline: none; 4950 padding: 10px 15px; 4951 width: 100% 4952 } 4953 4954 .fancybox-thumbs { 4955 background: #ddd; 4956 bottom: 0; 4957 display: none; 4958 margin: 0; 4959 -webkit-overflow-scrolling: touch; 4960 -ms-overflow-style: -ms-autohiding-scrollbar; 4961 padding: 2px 2px 4px; 4962 position: absolute; 4963 right: 0; 4964 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 4965 top: 0; 4966 width: 212px; 4967 z-index: 99995 4968 } 4969 4970 .fancybox-thumbs-x { 4971 overflow-x: auto; 4972 overflow-y: hidden 4973 } 4974 4975 .fancybox-show-thumbs .fancybox-thumbs { 4976 display: block 4977 } 4978 4979 .fancybox-show-thumbs .fancybox-inner { 4980 right: 212px 4981 } 4982 4983 .fancybox-thumbs__list { 4984 font-size: 0; 4985 height: 100%; 4986 list-style: none; 4987 margin: 0; 4988 overflow-x: hidden; 4989 overflow-y: auto; 4990 padding: 0; 4991 position: relative; 4992 white-space: nowrap; 4993 width: 100% 4994 } 4995 4996 .fancybox-thumbs-x .fancybox-thumbs__list { 4997 overflow: hidden 4998 } 4999 5000 .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar {
5001 width: 7px 5002 } 5003 5004 .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track { 5005 background: #fff; 5006 border-radius: 10px; 5007 box-shadow: inset 0 0 6px rgba(0, 0, 0, .3) 5008 } 5009 5010 .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb { 5011 background: #2a2a2a; 5012 border-radius: 10px 5013 } 5014 5015 .fancybox-thumbs__list a { 5016 -webkit-backface-visibility: hidden; 5017 backface-visibility: hidden; 5018 background-color: rgba(0, 0, 0, .1); 5019 background-position: 50%; 5020 background-repeat: no-repeat; 5021 background-size: cover; 5022 cursor: pointer; 5023 float: left; 5024 height: 75px; 5025 margin: 2px; 5026 max-height: calc(100% - 8px); 5027 max-width: calc(50% - 4px); 5028 outline: none; 5029 overflow: hidden; 5030 padding: 0; 5031 position: relative; 5032 -webkit-tap-highlight-color: transparent; 5033 width: 100px 5034 } 5035 5036 .fancybox-thumbs__list a:before { 5037 border: 6px solid #ff5268; 5038 bottom: 0; 5039 content: ""; 5040 left: 0; 5041 opacity: 0; 5042 position: absolute; 5043 right: 0; 5044 top: 0; 5045 transition: all .2s cubic-bezier(.25, .46, .45, .94); 5046 z-index: 99991 5047 } 5048 5049 .fancybox-thumbs__list a:focus:before { 5050 opacity: .5 5051 } 5052 5053 .fancybox-thumbs__list a.fancybox-thumbs-active:before { 5054 opacity: 1 5055 } 5056 5057 @media (max-width: 576px) { 5058 .fancybox-thumbs { 5059 width: 110px 5060 } 5061 5062 .fancybox-show-thumbs .fancybox-inner { 5063 right: 110px 5064 } 5065 5066 .fancybox-thumbs__list a { 5067 max-width: calc(100% - 10px) 5068 } 5069 } 5070</style>
5070<script>(function($) {var __slice=Array.prototype.slice;var i18n={dict:null,load:function(i18n_dict){if(this.dict!==null){$.extend(this.dict,i18n_dict);}else{this.dict=i18n_dict;}},_:function(str) {dict=this.dict;if(dict&&dict.hasOwnProperty(str)){str=dict[str];}args=__slice.call(arguments);args[0]=str;return this.printf.apply(this, args);},printf:function(str,args){if(arguments.length<2)return str;args=$.isArray(args)?args:__slice.call(arguments,1);return str.replace(/([^%]|^)%(?:(\d+)\$)?s/g,function(p0,p,position){if(position){return p+args[parseInt(position)-1];}return p+args.shift();}).replace(/%%s/g,'%s');}};$.fn._t=function(str,params){return $(this).html(i18n._.apply(i18n,arguments));};$.i18n=i18n;})(jQuery);</script>
vendor: 4,487 bytes, lines 5070-5231
5070<script> 5071(function( $, undefined ) { 5072var uuid = 0, 5073 runiqueId = /^ui-id-\d+$/; 5074$.ui = $.ui || {}; 5075$.extend( $.ui, { 5076 version: "1.10.4", 5077 keyCode: { 5078 BACKSPACE: 8, 5079 COMMA: 188, 5080 DELETE: 46, 5081 DOWN: 40, 5082 END: 35, 5083 ENTER: 13, 5084 ESCAPE: 27, 5085 HOME: 36, 5086 LEFT: 37, 5087 NUMPAD_ADD: 107, 5088 NUMPAD_DECIMAL: 110, 5089 NUMPAD_DIVIDE: 111, 5090 NUMPAD_ENTER: 108, 5091 NUMPAD_MULTIPLY: 106, 5092 NUMPAD_SUBTRACT: 109, 5093 PAGE_DOWN: 34, 5094 PAGE_UP: 33, 5095 PERIOD: 190, 5096 RIGHT: 39, 5097 SPACE: 32, 5098 TAB: 9, 5099 UP: 38 5100 } 5101}); 5102$.fn.extend({ 5103 focus: (function( orig ) { 5104 return function( delay, fn ) { 5105 return typeof delay === "number" ? 5106 this.each(function() { 5107 var elem = this; 5108 setTimeout(function() { 5109 $( elem ).focus(); 5110 if ( fn ) { 5111 fn.call( elem ); 5112 } 5113 }, delay ); 5114 }) : 5115 orig.apply( this, arguments ); 5116 }; 5117 })( $.fn.focus ), 5118 scrollParent: function() { 5119 var scrollParent; 5120 if (($.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) { 5121 scrollParent = this.parents().filter(function() { 5122 return (/(relative|absolute|fixed)/).test($.css(this,"position")) && (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x")); 5123 }).eq(0); 5124 } else { 5125 scrollParent = this.parents().filter(function() { 5126 return (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x")); 5127 }).eq(0); 5128 } 5129 return (/fixed/).test(this.css("position")) || !scrollParent.length ? $(document) : scrollParent; 5130 }, 5131 zIndex: function( zIndex ) { 5132 if ( zIndex !== undefined ) { 5133 return this.css( "zIndex", zIndex ); 5134 } 5135 if ( this.length ) { 5136 var elem = $( this[ 0 ] ), position, value; 5137 while ( elem.length && elem[ 0 ] !== document ) { 5138 position = elem.css( "position" ); 5139 if ( position === "absolute" || position === "relative" || position === "fixed" ) { 5140 value = parseInt( elem.css( "zIndex" ), 10 ); 5141 if ( !isNaN( value ) && value !== 0 ) { 5142 return value; 5143 } 5144 } 5145 elem = elem.parent(); 5146 } 5147 } 5148 return 0; 5149 }, 5150 uniqueId: function() { 5151 return this.each(function() { 5152 if ( !this.id ) { 5153 this.id = "ui-id-" + (++uuid); 5154 } 5155 }); 5156 }, 5157 removeUniqueId: function() { 5158 return this.each(function() { 5159 if ( runiqueId.test( this.id ) ) { 5160 $( this ).removeAttr( "id" ); 5161 } 5162 }); 5163 } 5164}); 5165function focusable( element, isTabIndexNotNaN ) { 5166 var map, mapName, img, 5167 nodeName = element.nodeName.toLowerCase(); 5168 if ( "area" === nodeName ) { 5169 map = element.parentNode; 5170 mapName = map.name; 5171 if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) { 5172 return false; 5173 } 5174 img = $( "img[usemap=#" + mapName + "]" )[0]; 5175 return !!img && visible( img ); 5176 } 5177 return ( /input|select|textarea|button|object/.test( nodeName ) ? 5178 !element.disabled : 5179 "a" === nodeName ? 5180 element.href || isTabIndexNotNaN : 5181 isTabIndexNotNaN) && 5182 // the element and all of its ancestors must be visible 5183 visible( element ); 5184} 5185function visible( element ) { 5186 return $.expr.filters.visible( element ) && 5187 !$( element ).parents().addBack().filter(function() { 5188 return $.css( this, "visibility" ) === "hidden"; 5189 }).length; 5190} 5191$.extend( $.expr[ ":" ], { 5192 data: $.expr.createPseudo ? 5193 $.expr.createPseudo(function( dataName ) { 5194 return function( elem ) { 5195 return !!$.data( elem, dataName ); 5196 }; 5197 }) : 5198 function( elem, i, match ) { 5199 return !!$.data( elem, match[ 3 ] ); 5200 }, 5201 focusable: function( element ) { 5202 return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) ); 5203 }, 5204 tabbable: function( element ) { 5205 var tabIndex = $.attr( element, "tabindex" ), 5206 isTabIndexNaN = isNaN( tabIndex ); 5207 return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN ); 5208 } 5209}); 5210if ( !$( "<a>" ).outerWidth( 1 ).jquery ) { 5211 $.each( [ "Width", "Height" ], function( i, name ) { 5212 var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], 5213 type = name.toLowerCase(), 5214 orig = { 5215 innerWidth: $.fn.innerWidth, 5216 innerHeight: $.fn.innerHeight, 5217 outerWidth: $.fn.outerWidth, 5218 outerHeight: $.fn.outerHeight 5219 }; 5220 function reduce( elem, size, border, margin ) { 5221 $.each( side, function() { 5222 size -= parseFloat( $.css( elem, "padding" + this ) ) || 0; 5223 if ( border ) { 5224 size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0; 5225 } 5226 if ( margin ) { 5227 size -= parseFloat( $.css( elem, "margin" + this ) ) || 0; 5228 } 5229 }); 5230 return size; 5231 }
5232 $.fn[ "inner" + name ] = function( size ) { 5233 if ( size === undefined ) { 5234 return orig[ "inner" + name ].call( this ); 5235 } 5236 return this.each(function() { 5237 $( this ).css( type, reduce( this, size ) + "px" ); 5238 }); 5239 }; 5240 $.fn[ "outer" + name] = function( size, margin ) { 5241 if ( typeof size !== "number" ) { 5242 return orig[ "outer" + name ].call( this, size ); 5243 } 5244 return this.each(function() { 5245 $( this).css( type, reduce( this, size, true, margin ) + "px" ); 5246 }); 5247 }; 5248 }); 5249} 5250if ( !$.fn.addBack ) { 5251 $.fn.addBack = function( selector ) { 5252 return this.add( selector == null ? 5253 this.prevObject : this.prevObject.filter( selector ) 5254 ); 5255 }; 5256} 5257if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) { 5258 $.fn.removeData = (function( removeData ) { 5259 return function( key ) { 5260 if ( arguments.length ) { 5261 return removeData.call( this, $.camelCase( key ) ); 5262 } else { 5263 return removeData.call( this ); 5264 } 5265 }; 5266 })( $.fn.removeData ); 5267} 5268$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); 5269$.support.selectstart = "onselectstart" in document.createElement( "div" ); 5270$.fn.extend({ 5271 disableSelection: function() { 5272 return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) + 5273 ".ui-disableSelection", function( event ) { 5274 event.preventDefault(); 5275 }); 5276 }, 5277 enableSelection: function() { 5278 return this.unbind( ".ui-disableSelection" ); 5279 } 5280}); 5281$.extend( $.ui, { 5282 plugin: { 5283 add: function( module, option, set ) { 5284 var i, 5285 proto = $.ui[ module ].prototype; 5286 for ( i in set ) { 5287 proto.plugins[ i ] = proto.plugins[ i ] || []; 5288 proto.plugins[ i ].push( [ option, set[ i ] ] ); 5289 } 5290 }, 5291 call: function( instance, name, args ) { 5292 var i, 5293 set = instance.plugins[ name ]; 5294 if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) { 5295 return; 5296 } 5297 for ( i = 0; i < set.length; i++ ) { 5298 if ( instance.options[ set[ i ][ 0 ] ] ) { 5299 set[ i ][ 1 ].apply( instance.element, args ); 5300 } 5301 } 5302 } 5303 }, 5304 hasScroll: function( el, a ) { 5305 //If overflow is hidden, the element might have extra content, but the user wants to hide it 5306 if ( $( el ).css( "overflow" ) === "hidden") { 5307 return false; 5308 } 5309 var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop", 5310 has = false; 5311 if ( el[ scroll ] > 0 ) { 5312 return true; 5313 } 5314 el[ scroll ] = 1; 5315 has = ( el[ scroll ] > 0 ); 5316 el[ scroll ] = 0; 5317 return has; 5318 } 5319}); 5320})( jQuery ); 5321(function( $, undefined ) { 5322var uuid = 0, 5323 slice = Array.prototype.slice, 5324 _cleanData = $.cleanData; 5325$.cleanData = function( elems ) { 5326 for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { 5327 try { 5328 $( elem ).triggerHandler( "remove" ); 5329 } catch( e ) {} 5330 } 5331 _cleanData( elems ); 5332}; 5333$.widget = function( name, base, prototype ) { 5334 var fullName, existingConstructor, constructor, basePrototype, 5335 proxiedPrototype = {}, 5336 namespace = name.split( "." )[ 0 ]; 5337 name = name.split( "." )[ 1 ]; 5338 fullName = namespace + "-" + name; 5339 if ( !prototype ) { 5340 prototype = base; 5341 base = $.Widget; 5342 } 5343 $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) { 5344 return !!$.data( elem, fullName ); 5345 }; 5346 $[ namespace ] = $[ namespace ] || {}; 5347 existingConstructor = $[ namespace ][ name ]; 5348 constructor = $[ namespace ][ name ] = function( options, element ) { 5349 if ( !this._createWidget ) { 5350 return new constructor( options, element ); 5351 } 5352 if ( arguments.length ) { 5353 this._createWidget( options, element ); 5354 } 5355 }; 5356 $.extend( constructor, existingConstructor, { 5357 version: prototype.version, 5358 _proto: $.extend( {}, prototype ), 5359 _childConstructors: [] 5360 }); 5361 basePrototype = new base(); 5362 basePrototype.options = $.widget.extend( {}, basePrototype.options ); 5363 $.each( prototype, function( prop, value ) { 5364 if ( !$.isFunction( value ) ) { 5365 proxiedPrototype[ prop ] = value; 5366 return; 5367 } 5368 proxiedPrototype[ prop ] = (function() { 5369 var _super = function() { 5370 return base.prototype[ prop ].apply( this, arguments ); 5371 }, 5372 _superApply = function( args ) { 5373 return base.prototype[ prop ].apply( this, args ); 5374 }; 5375 return function() { 5376 var __super = this._super, 5377 __superApply = this._superApply, 5378 returnValue; 5379 this._super = _super; 5380 this._superApply = _superApply;
vendor: 9,998 bytes, lines 5381-5712
5381 returnValue = value.apply( this, arguments ); 5382 this._super = __super; 5383 this._superApply = __superApply; 5384 return returnValue; 5385 }; 5386 })(); 5387 }); 5388 constructor.prototype = $.widget.extend( basePrototype, { 5389 widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name 5390 }, proxiedPrototype, { 5391 constructor: constructor, 5392 namespace: namespace, 5393 widgetName: name, 5394 widgetFullName: fullName 5395 }); 5396 if ( existingConstructor ) { 5397 $.each( existingConstructor._childConstructors, function( i, child ) { 5398 var childPrototype = child.prototype; 5399 $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto ); 5400 }); 5401 delete existingConstructor._childConstructors; 5402 } else { 5403 base._childConstructors.push( constructor ); 5404 } 5405 $.widget.bridge( name, constructor ); 5406}; 5407$.widget.extend = function( target ) { 5408 var input = slice.call( arguments, 1 ), 5409 inputIndex = 0, 5410 inputLength = input.length, 5411 key, 5412 value; 5413 for ( ; inputIndex < inputLength; inputIndex++ ) { 5414 for ( key in input[ inputIndex ] ) { 5415 value = input[ inputIndex ][ key ]; 5416 if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) { 5417 if ( $.isPlainObject( value ) ) { 5418 target[ key ] = $.isPlainObject( target[ key ] ) ? 5419 $.widget.extend( {}, target[ key ], value ) : 5420 $.widget.extend( {}, value ); 5421 } else { 5422 target[ key ] = value; 5423 } 5424 } 5425 } 5426 } 5427 return target; 5428}; 5429$.widget.bridge = function( name, object ) { 5430 var fullName = object.prototype.widgetFullName || name; 5431 $.fn[ name ] = function( options ) { 5432 var isMethodCall = typeof options === "string", 5433 args = slice.call( arguments, 1 ), 5434 returnValue = this; 5435 options = !isMethodCall && args.length ? 5436 $.widget.extend.apply( null, [ options ].concat(args) ) : 5437 options; 5438 if ( isMethodCall ) { 5439 this.each(function() { 5440 var methodValue, 5441 instance = $.data( this, fullName ); 5442 if ( !instance ) { 5443 return $.error( "cannot call methods on " + name + " prior to initialization; " + 5444 "attempted to call method '" + options + "'" ); 5445 } 5446 if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) { 5447 return $.error( "no such method '" + options + "' for " + name + " widget instance" ); 5448 } 5449 methodValue = instance[ options ].apply( instance, args ); 5450 if ( methodValue !== instance && methodValue !== undefined ) { 5451 returnValue = methodValue && methodValue.jquery ? 5452 returnValue.pushStack( methodValue.get() ) : 5453 methodValue; 5454 return false; 5455 } 5456 }); 5457 } else { 5458 this.each(function() { 5459 var instance = $.data( this, fullName ); 5460 if ( instance ) { 5461 instance.option( options || {} )._init(); 5462 } else { 5463 $.data( this, fullName, new object( options, this ) ); 5464 } 5465 }); 5466 } 5467 return returnValue; 5468 }; 5469}; 5470$.Widget = function() {}; 5471$.Widget._childConstructors = []; 5472$.Widget.prototype = { 5473 widgetName: "widget", 5474 widgetEventPrefix: "", 5475 defaultElement: "<div>", 5476 options: { 5477 disabled: false, 5478 create: null 5479 }, 5480 _createWidget: function( options, element ) { 5481 element = $( element || this.defaultElement || this )[ 0 ]; 5482 this.element = $( element ); 5483 this.uuid = uuid++; 5484 this.eventNamespace = "." + this.widgetName + this.uuid; 5485 this.options = $.widget.extend( {}, 5486 this.options, 5487 this._getCreateOptions(), 5488 options ); 5489 this.bindings = $(); 5490 this.hoverable = $(); 5491 this.focusable = $(); 5492 if ( element !== this ) { 5493 $.data( element, this.widgetFullName, this ); 5494 this._on( true, this.element, { 5495 remove: function( event ) { 5496 if ( event.target === element ) { 5497 this.destroy(); 5498 } 5499 } 5500 }); 5501 this.document = $( element.style ? 5502 element.ownerDocument : 5503 element.document || element ); 5504 this.window = $( this.document[0].defaultView || this.document[0].parentWindow ); 5505 } 5506 this._create(); 5507 this._trigger( "create", null, this._getCreateEventData() ); 5508 this._init(); 5509 }, 5510 _getCreateOptions: $.noop, 5511 _getCreateEventData: $.noop, 5512 _create: $.noop, 5513 _init: $.noop, 5514 destroy: function() { 5515 this._destroy(); 5516 this.element 5517 .unbind( this.eventNamespace ) 5518 .removeData( this.widgetName ) 5519 .removeData( this.widgetFullName ) 5520 .removeData( $.camelCase( this.widgetFullName ) ); 5521 this.widget() 5522 .unbind( this.eventNamespace ) 5523 .removeAttr( "aria-disabled" ) 5524 .removeClass( 5525 this.widgetFullName + "-disabled " + 5526 "ui-state-disabled" ); 5527 this.bindings.unbind( this.eventNamespace ); 5528 this.hoverable.removeClass( "ui-state-hover" ); 5529 this.focusable.removeClass( "ui-state-focus" ); 5530 }, 5531 _destroy: $.noop, 5532 widget: function() { 5533 return this.element; 5534 }, 5535 option: function( key, value ) { 5536 var options = key, 5537 parts, 5538 curOption, 5539 i; 5540 if ( arguments.length === 0 ) { 5541 return $.widget.extend( {}, this.options ); 5542 } 5543 if ( typeof key === "string" ) { 5544 options = {}; 5545 parts = key.split( "." ); 5546 key = parts.shift(); 5547 if ( parts.length ) { 5548 curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] ); 5549 for ( i = 0; i < parts.length - 1; i++ ) { 5550 curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {}; 5551 curOption = curOption[ parts[ i ] ]; 5552 } 5553 key = parts.pop(); 5554 if ( arguments.length === 1 ) { 5555 return curOption[ key ] === undefined ? null : curOption[ key ]; 5556 } 5557 curOption[ key ] = value; 5558 } else { 5559 if ( arguments.length === 1 ) { 5560 return this.options[ key ] === undefined ? null : this.options[ key ]; 5561 } 5562 options[ key ] = value; 5563 } 5564 } 5565 this._setOptions( options ); 5566 return this; 5567 }, 5568 _setOptions: function( options ) { 5569 var key; 5570 for ( key in options ) { 5571 this._setOption( key, options[ key ] ); 5572 } 5573 return this; 5574 }, 5575 _setOption: function( key, value ) { 5576 this.options[ key ] = value; 5577 if ( key === "disabled" ) { 5578 this.widget() 5579 .toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value ) 5580 .attr( "aria-disabled", value ); 5581 this.hoverable.removeClass( "ui-state-hover" ); 5582 this.focusable.removeClass( "ui-state-focus" ); 5583 } 5584 return this; 5585 }, 5586 enable: function() { 5587 return this._setOption( "disabled", false ); 5588 }, 5589 disable: function() { 5590 return this._setOption( "disabled", true ); 5591 }, 5592 _on: function( suppressDisabledCheck, element, handlers ) { 5593 var delegateElement, 5594 instance = this; 5595 if ( typeof suppressDisabledCheck !== "boolean" ) { 5596 handlers = element; 5597 element = suppressDisabledCheck; 5598 suppressDisabledCheck = false; 5599 } 5600 if ( !handlers ) { 5601 handlers = element; 5602 element = this.element; 5603 delegateElement = this.widget(); 5604 } else { 5605 element = delegateElement = $( element ); 5606 this.bindings = this.bindings.add( element ); 5607 } 5608 $.each( handlers, function( event, handler ) { 5609 function handlerProxy() { 5610 if ( !suppressDisabledCheck && 5611 ( instance.options.disabled === true || 5612 $( this ).hasClass( "ui-state-disabled" ) ) ) { 5613 return; 5614 } 5615 return ( typeof handler === "string" ? instance[ handler ] : handler ) 5616 .apply( instance, arguments ); 5617 } 5618 if ( typeof handler !== "string" ) { 5619 handlerProxy.guid = handler.guid = 5620 handler.guid || handlerProxy.guid || $.guid++; 5621 } 5622 var match = event.match( /^(\w+)\s*(.*)$/ ), 5623 eventName = match[1] + instance.eventNamespace, 5624 selector = match[2]; 5625 if ( selector ) { 5626 delegateElement.delegate( selector, eventName, handlerProxy ); 5627 } else { 5628 element.bind( eventName, handlerProxy ); 5629 } 5630 }); 5631 }, 5632 _off: function( element, eventName ) { 5633 eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace; 5634 element.unbind( eventName ).undelegate( eventName ); 5635 }, 5636 _delay: function( handler, delay ) { 5637 function handlerProxy() { 5638 return ( typeof handler === "string" ? instance[ handler ] : handler ) 5639 .apply( instance, arguments ); 5640 } 5641 var instance = this; 5642 return setTimeout( handlerProxy, delay || 0 ); 5643 }, 5644 _hoverable: function( element ) { 5645 this.hoverable = this.hoverable.add( element ); 5646 this._on( element, { 5647 mouseenter: function( event ) { 5648 $( event.currentTarget ).addClass( "ui-state-hover" ); 5649 }, 5650 mouseleave: function( event ) { 5651 $( event.currentTarget ).removeClass( "ui-state-hover" ); 5652 } 5653 }); 5654 }, 5655 _focusable: function( element ) { 5656 this.focusable = this.focusable.add( element ); 5657 this._on( element, { 5658 focusin: function( event ) { 5659 $( event.currentTarget ).addClass( "ui-state-focus" ); 5660 }, 5661 focusout: function( event ) { 5662 $( event.currentTarget ).removeClass( "ui-state-focus" ); 5663 } 5664 }); 5665 }, 5666 _trigger: function( type, event, data ) { 5667 var prop, orig, 5668 callback = this.options[ type ]; 5669 5670 data = data || {}; 5671 event = $.Event( event ); 5672 event.type = ( type === this.widgetEventPrefix ? 5673 type : 5674 this.widgetEventPrefix + type ).toLowerCase(); 5675 event.target = this.element[ 0 ]; 5676 orig = event.originalEvent; 5677 if ( orig ) { 5678 for ( prop in orig ) { 5679 if ( !( prop in event ) ) { 5680 event[ prop ] = orig[ prop ]; 5681 } 5682 } 5683 } 5684 this.element.trigger( event, data ); 5685 return !( $.isFunction( callback ) && 5686 callback.apply( this.element[0], [ event ].concat( data ) ) === false || 5687 event.isDefaultPrevented() ); 5688 } 5689}; 5690$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { 5691 $.Widget.prototype[ "_" + method ] = function( element, options, callback ) { 5692 if ( typeof options === "string" ) { 5693 options = { effect: options }; 5694 } 5695 var hasOptions, 5696 effectName = !options ? 5697 method : 5698 options === true || typeof options === "number" ? 5699 defaultEffect : 5700 options.effect || defaultEffect; 5701 options = options || {}; 5702 if ( typeof options === "number" ) { 5703 options = { duration: options }; 5704 } 5705 hasOptions = !$.isEmptyObject( options ); 5706 options.complete = callback; 5707 if ( options.delay ) { 5708 element.delay( options.delay ); 5709 } 5710 if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) { 5711 element[ method ]( options ); 5712 } else if ( effectName !== method && element[ effectName ] ) {
vendor: 60,818 bytes, lines 5713-7488
5713 element[ effectName ]( options.duration, options.easing, callback ); 5714 } else { 5715 element.queue(function( next ) { 5716 $( this )[ method ](); 5717 if ( callback ) { 5718 callback.call( element[ 0 ] ); 5719 } 5720 next(); 5721 }); 5722 } 5723 }; 5724}); 5725})( jQuery ); 5726(function( $, undefined ) { 5727var mouseHandled = false; 5728$( document ).mouseup( function() { 5729 mouseHandled = false; 5730}); 5731$.widget("ui.mouse", { 5732 version: "1.10.4", 5733 options: { 5734 cancel: "input,textarea,button,select,option", 5735 distance: 1, 5736 delay: 0 5737 }, 5738 _mouseInit: function() { 5739 var that = this; 5740 this.element 5741 .bind("mousedown."+this.widgetName, function(event) { 5742 return that._mouseDown(event); 5743 }) 5744 .bind("click."+this.widgetName, function(event) { 5745 if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) { 5746 $.removeData(event.target, that.widgetName + ".preventClickEvent"); 5747 event.stopImmediatePropagation(); 5748 return false; 5749 } 5750 }); 5751 this.started = false; 5752 }, 5753 _mouseDestroy: function() { 5754 this.element.unbind("."+this.widgetName); 5755 if ( this._mouseMoveDelegate ) { 5756 $(document) 5757 .unbind("mousemove."+this.widgetName, this._mouseMoveDelegate) 5758 .unbind("mouseup."+this.widgetName, this._mouseUpDelegate); 5759 } 5760 }, 5761 _mouseDown: function(event) { 5762 if( mouseHandled ) { return; } 5763 (this._mouseStarted && this._mouseUp(event)); 5764 this._mouseDownEvent = event; 5765 var that = this, 5766 btnIsLeft = (event.which === 1), 5767 elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false); 5768 if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { 5769 return true; 5770 } 5771 this.mouseDelayMet = !this.options.delay; 5772 if (!this.mouseDelayMet) { 5773 this._mouseDelayTimer = setTimeout(function() { 5774 that.mouseDelayMet = true; 5775 }, this.options.delay); 5776 } 5777 if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { 5778 this._mouseStarted = (this._mouseStart(event) !== false); 5779 if (!this._mouseStarted) { 5780 event.preventDefault(); 5781 return true; 5782 } 5783 } 5784 if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) { 5785 $.removeData(event.target, this.widgetName + ".preventClickEvent"); 5786 } 5787 this._mouseMoveDelegate = function(event) { 5788 return that._mouseMove(event); 5789 }; 5790 this._mouseUpDelegate = function(event) { 5791 return that._mouseUp(event); 5792 }; 5793 $(document) 5794 .bind("mousemove."+this.widgetName, this._mouseMoveDelegate) 5795 .bind("mouseup."+this.widgetName, this._mouseUpDelegate); 5796 event.preventDefault(); 5797 mouseHandled = true; 5798 return true; 5799 }, 5800 _mouseMove: function(event) { 5801 if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) { 5802 return this._mouseUp(event); 5803 } 5804 if (this._mouseStarted) { 5805 this._mouseDrag(event); 5806 return event.preventDefault(); 5807 } 5808 if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { 5809 this._mouseStarted = 5810 (this._mouseStart(this._mouseDownEvent, event) !== false); 5811 (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); 5812 } 5813 return !this._mouseStarted; 5814 }, 5815 _mouseUp: function(event) { 5816 $(document) 5817 .unbind("mousemove."+this.widgetName, this._mouseMoveDelegate) 5818 .unbind("mouseup."+this.widgetName, this._mouseUpDelegate); 5819 if (this._mouseStarted) { 5820 this._mouseStarted = false; 5821 if (event.target === this._mouseDownEvent.target) { 5822 $.data(event.target, this.widgetName + ".preventClickEvent", true); 5823 } 5824 this._mouseStop(event); 5825 } 5826 return false; 5827 }, 5828 _mouseDistanceMet: function(event) { 5829 return (Math.max( 5830 Math.abs(this._mouseDownEvent.pageX - event.pageX), 5831 Math.abs(this._mouseDownEvent.pageY - event.pageY) 5832 ) >= this.options.distance 5833 ); 5834 }, 5835 _mouseDelayMet: function(/* event */) { 5836 return this.mouseDelayMet; 5837 }, 5838 _mouseStart: function(/* event */) {}, 5839 _mouseDrag: function(/* event */) {}, 5840 _mouseStop: function(/* event */) {}, 5841 _mouseCapture: function(/* event */) { return true; } 5842}); 5843})(jQuery); 5844(function( $, undefined ) { 5845$.ui = $.ui || {}; 5846var cachedScrollbarWidth, 5847 max = Math.max, 5848 abs = Math.abs, 5849 round = Math.round, 5850 rhorizontal = /left|center|right/, 5851 rvertical = /top|center|bottom/, 5852 roffset = /[\+\-]\d+(\.[\d]+)?%?/, 5853 rposition = /^\w+/, 5854 rpercent = /%$/, 5855 _position = $.fn.position; 5856function getOffsets( offsets, width, height ) { 5857 return [ 5858 parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ), 5859 parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 ) 5860 ]; 5861} 5862function parseCss( element, property ) { 5863 return parseInt( $.css( element, property ), 10 ) || 0; 5864} 5865function getDimensions( elem ) { 5866 var raw = elem[0]; 5867 if ( raw.nodeType === 9 ) { 5868 return { 5869 width: elem.width(), 5870 height: elem.height(), 5871 offset: { top: 0, left: 0 } 5872 }; 5873 } 5874 if ( $.isWindow( raw ) ) { 5875 return { 5876 width: elem.width(), 5877 height: elem.height(), 5878 offset: { top: elem.scrollTop(), left: elem.scrollLeft() } 5879 }; 5880 } 5881 if ( raw.preventDefault ) { 5882 return { 5883 width: 0, 5884 height: 0, 5885 offset: { top: raw.pageY, left: raw.pageX } 5886 }; 5887 } 5888 return { 5889 width: elem.outerWidth(), 5890 height: elem.outerHeight(), 5891 offset: elem.offset() 5892 }; 5893} 5894$.position = { 5895 scrollbarWidth: function() { 5896 if ( cachedScrollbarWidth !== undefined ) { 5897 return cachedScrollbarWidth; 5898 } 5899 var w1, w2, 5900 div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ), 5901 innerDiv = div.children()[0]; 5902 $( "body" ).append( div ); 5903 w1 = innerDiv.offsetWidth; 5904 div.css( "overflow", "scroll" ); 5905 w2 = innerDiv.offsetWidth; 5906 if ( w1 === w2 ) { 5907 w2 = div[0].clientWidth; 5908 } 5909 div.remove(); 5910 return (cachedScrollbarWidth = w1 - w2); 5911 }, 5912 getScrollInfo: function( within ) { 5913 var overflowX = within.isWindow || within.isDocument ? "" : 5914 within.element.css( "overflow-x" ), 5915 overflowY = within.isWindow || within.isDocument ? "" : 5916 within.element.css( "overflow-y" ), 5917 hasOverflowX = overflowX === "scroll" || 5918 ( overflowX === "auto" && within.width < within.element[0].scrollWidth ), 5919 hasOverflowY = overflowY === "scroll" || 5920 ( overflowY === "auto" && within.height < within.element[0].scrollHeight ); 5921 return { 5922 width: hasOverflowY ? $.position.scrollbarWidth() : 0, 5923 height: hasOverflowX ? $.position.scrollbarWidth() : 0 5924 }; 5925 }, 5926 getWithinInfo: function( element ) { 5927 var withinElement = $( element || window ), 5928 isWindow = $.isWindow( withinElement[0] ), 5929 isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9; 5930 return { 5931 element: withinElement, 5932 isWindow: isWindow, 5933 isDocument: isDocument, 5934 offset: withinElement.offset() || { left: 0, top: 0 }, 5935 scrollLeft: withinElement.scrollLeft(), 5936 scrollTop: withinElement.scrollTop(), 5937 width: isWindow ? withinElement.width() : withinElement.outerWidth(), 5938 height: isWindow ? withinElement.height() : withinElement.outerHeight() 5939 }; 5940 } 5941}; 5942$.fn.position = function( options ) { 5943 if ( !options || !options.of ) { 5944 return _position.apply( this, arguments ); 5945 } 5946 options = $.extend( {}, options ); 5947 var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions, 5948 target = $( options.of ), 5949 within = $.position.getWithinInfo( options.within ), 5950 scrollInfo = $.position.getScrollInfo( within ), 5951 collision = ( options.collision || "flip" ).split( " " ), 5952 offsets = {}; 5953 dimensions = getDimensions( target ); 5954 if ( target[0].preventDefault ) { 5955 options.at = "left top"; 5956 } 5957 targetWidth = dimensions.width; 5958 targetHeight = dimensions.height; 5959 targetOffset = dimensions.offset; 5960 // clone to reuse original targetOffset later 5961 basePosition = $.extend( {}, targetOffset ); 5962 $.each( [ "my", "at" ], function() { 5963 var pos = ( options[ this ] || "" ).split( " " ), 5964 horizontalOffset, 5965 verticalOffset; 5966 if ( pos.length === 1) { 5967 pos = rhorizontal.test( pos[ 0 ] ) ? 5968 pos.concat( [ "center" ] ) : 5969 rvertical.test( pos[ 0 ] ) ? 5970 [ "center" ].concat( pos ) : 5971 [ "center", "center" ]; 5972 } 5973 pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center"; 5974 pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center"; 5975 horizontalOffset = roffset.exec( pos[ 0 ] ); 5976 verticalOffset = roffset.exec( pos[ 1 ] ); 5977 offsets[ this ] = [ 5978 horizontalOffset ? horizontalOffset[ 0 ] : 0, 5979 verticalOffset ? verticalOffset[ 0 ] : 0 5980 ]; 5981 options[ this ] = [ 5982 rposition.exec( pos[ 0 ] )[ 0 ], 5983 rposition.exec( pos[ 1 ] )[ 0 ] 5984 ]; 5985 }); 5986 if ( collision.length === 1 ) { 5987 collision[ 1 ] = collision[ 0 ]; 5988 } 5989 if ( options.at[ 0 ] === "right" ) { 5990 basePosition.left += targetWidth; 5991 } else if ( options.at[ 0 ] === "center" ) { 5992 basePosition.left += targetWidth / 2; 5993 } 5994 if ( options.at[ 1 ] === "bottom" ) { 5995 basePosition.top += targetHeight; 5996 } else if ( options.at[ 1 ] === "center" ) { 5997 basePosition.top += targetHeight / 2; 5998 } 5999 atOffset = getOffsets( offsets.at, targetWidth, targetHeight ); 6000 basePosition.left += atOffset[ 0 ]; 6001 basePosition.top += atOffset[ 1 ]; 6002 return this.each(function() { 6003 var collisionPosition, using, 6004 elem = $( this ), 6005 elemWidth = elem.outerWidth(), 6006 elemHeight = elem.outerHeight(), 6007 marginLeft = parseCss( this, "marginLeft" ), 6008 marginTop = parseCss( this, "marginTop" ), 6009 collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width, 6010 collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height, 6011 position = $.extend( {}, basePosition ), 6012 myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() ); 6013 if ( options.my[ 0 ] === "right" ) { 6014 position.left -= elemWidth; 6015 } else if ( options.my[ 0 ] === "center" ) { 6016 position.left -= elemWidth / 2; 6017 } 6018 if ( options.my[ 1 ] === "bottom" ) { 6019 position.top -= elemHeight; 6020 } else if ( options.my[ 1 ] === "center" ) { 6021 position.top -= elemHeight / 2; 6022 } 6023 position.left += myOffset[ 0 ]; 6024 position.top += myOffset[ 1 ]; 6025 if ( !$.support.offsetFractions ) { 6026 position.left = round( position.left ); 6027 position.top = round( position.top ); 6028 } 6029 collisionPosition = { 6030 marginLeft: marginLeft, 6031 marginTop: marginTop 6032 }; 6033 $.each( [ "left", "top" ], function( i, dir ) { 6034 if ( $.ui.position[ collision[ i ] ] ) { 6035 $.ui.position[ collision[ i ] ][ dir ]( position, { 6036 targetWidth: targetWidth, 6037 targetHeight: targetHeight, 6038 elemWidth: elemWidth, 6039 elemHeight: elemHeight, 6040 collisionPosition: collisionPosition, 6041 collisionWidth: collisionWidth, 6042 collisionHeight: collisionHeight, 6043 offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ], 6044 my: options.my, 6045 at: options.at, 6046 within: within, 6047 elem : elem 6048 }); 6049 } 6050 }); 6051 if ( options.using ) { 6052 using = function( props ) { 6053 var left = targetOffset.left - position.left, 6054 right = left + targetWidth - elemWidth, 6055 top = targetOffset.top - position.top, 6056 bottom = top + targetHeight - elemHeight, 6057 feedback = { 6058 target: { 6059 element: target, 6060 left: targetOffset.left, 6061 top: targetOffset.top, 6062 width: targetWidth, 6063 height: targetHeight 6064 }, 6065 element: { 6066 element: elem, 6067 left: position.left, 6068 top: position.top, 6069 width: elemWidth, 6070 height: elemHeight 6071 }, 6072 horizontal: right < 0 ? "left" : left > 0 ? "right" : "center", 6073 vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle" 6074 }; 6075 if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) { 6076 feedback.horizontal = "center"; 6077 } 6078 if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) { 6079 feedback.vertical = "middle"; 6080 } 6081 if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) { 6082 feedback.important = "horizontal"; 6083 } else { 6084 feedback.important = "vertical"; 6085 } 6086 options.using.call( this, props, feedback ); 6087 }; 6088 } 6089 elem.offset( $.extend( position, { using: using } ) ); 6090 }); 6091}; 6092$.ui.position = { 6093 fit: { 6094 left: function( position, data ) { 6095 var within = data.within, 6096 withinOffset = within.isWindow ? within.scrollLeft : within.offset.left, 6097 outerWidth = within.width, 6098 collisionPosLeft = position.left - data.collisionPosition.marginLeft, 6099 overLeft = withinOffset - collisionPosLeft, 6100 overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset, 6101 newOverRight; 6102 if ( data.collisionWidth > outerWidth ) { 6103 if ( overLeft > 0 && overRight <= 0 ) { 6104 newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset; 6105 position.left += overLeft - newOverRight; 6106 } else if ( overRight > 0 && overLeft <= 0 ) { 6107 position.left = withinOffset; 6108 } else { 6109 if ( overLeft > overRight ) { 6110 position.left = withinOffset + outerWidth - data.collisionWidth; 6111 } else { 6112 position.left = withinOffset; 6113 } 6114 } 6115 } else if ( overLeft > 0 ) { 6116 position.left += overLeft; 6117 } else if ( overRight > 0 ) { 6118 position.left -= overRight; 6119 } else { 6120 position.left = max( position.left - collisionPosLeft, position.left ); 6121 } 6122 }, 6123 top: function( position, data ) { 6124 var within = data.within, 6125 withinOffset = within.isWindow ? within.scrollTop : within.offset.top, 6126 outerHeight = data.within.height, 6127 collisionPosTop = position.top - data.collisionPosition.marginTop, 6128 overTop = withinOffset - collisionPosTop, 6129 overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset, 6130 newOverBottom; 6131 if ( data.collisionHeight > outerHeight ) { 6132 if ( overTop > 0 && overBottom <= 0 ) { 6133 newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset; 6134 position.top += overTop - newOverBottom; 6135 } else if ( overBottom > 0 && overTop <= 0 ) { 6136 position.top = withinOffset; 6137 } else { 6138 if ( overTop > overBottom ) { 6139 position.top = withinOffset + outerHeight - data.collisionHeight; 6140 } else { 6141 position.top = withinOffset; 6142 } 6143 } 6144 } else if ( overTop > 0 ) { 6145 position.top += overTop; 6146 } else if ( overBottom > 0 ) { 6147 position.top -= overBottom; 6148 } else { 6149 position.top = max( position.top - collisionPosTop, position.top ); 6150 } 6151 } 6152 }, 6153 flip: { 6154 left: function( position, data ) { 6155 var within = data.within, 6156 withinOffset = within.offset.left + within.scrollLeft, 6157 outerWidth = within.width, 6158 offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left, 6159 collisionPosLeft = position.left - data.collisionPosition.marginLeft, 6160 overLeft = collisionPosLeft - offsetLeft, 6161 overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft, 6162 myOffset = data.my[ 0 ] === "left" ? 6163 -data.elemWidth : 6164 data.my[ 0 ] === "right" ? 6165 data.elemWidth : 6166 0, 6167 atOffset = data.at[ 0 ] === "left" ? 6168 data.targetWidth : 6169 data.at[ 0 ] === "right" ? 6170 -data.targetWidth : 6171 0, 6172 offset = -2 * data.offset[ 0 ], 6173 newOverRight, 6174 newOverLeft; 6175 6176 if ( overLeft < 0 ) { 6177 newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset; 6178 if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) { 6179 position.left += myOffset + atOffset + offset; 6180 } 6181 } 6182 else if ( overRight > 0 ) { 6183 newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft; 6184 if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) { 6185 position.left += myOffset + atOffset + offset; 6186 } 6187 } 6188 }, 6189 top: function( position, data ) { 6190 var within = data.within, 6191 withinOffset = within.offset.top + within.scrollTop, 6192 outerHeight = within.height, 6193 offsetTop = within.isWindow ? within.scrollTop : within.offset.top, 6194 collisionPosTop = position.top - data.collisionPosition.marginTop, 6195 overTop = collisionPosTop - offsetTop, 6196 overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop, 6197 top = data.my[ 1 ] === "top", 6198 myOffset = top ? 6199 -data.elemHeight : 6200 data.my[ 1 ] === "bottom" ? 6201 data.elemHeight : 6202 0, 6203 atOffset = data.at[ 1 ] === "top" ? 6204 data.targetHeight : 6205 data.at[ 1 ] === "bottom" ? 6206 -data.targetHeight : 6207 0, 6208 offset = -2 * data.offset[ 1 ], 6209 newOverTop, 6210 newOverBottom; 6211 if ( overTop < 0 ) { 6212 newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset; 6213 if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) { 6214 position.top += myOffset + atOffset + offset; 6215 } 6216 } 6217 else if ( overBottom > 0 ) { 6218 newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop; 6219 if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) { 6220 position.top += myOffset + atOffset + offset; 6221 } 6222 } 6223 } 6224 }, 6225 flipfit: { 6226 left: function() { 6227 $.ui.position.flip.left.apply( this, arguments ); 6228 $.ui.position.fit.left.apply( this, arguments ); 6229 }, 6230 top: function() { 6231 $.ui.position.flip.top.apply( this, arguments ); 6232 $.ui.position.fit.top.apply( this, arguments ); 6233 } 6234 } 6235}; 6236(function () { 6237 var testElement, testElementParent, testElementStyle, offsetLeft, i, 6238 body = document.getElementsByTagName( "body" )[ 0 ], 6239 div = document.createElement( "div" ); 6240 testElement = document.createElement( body ? "div" : "body" ); 6241 testElementStyle = { 6242 visibility: "hidden", 6243 width: 0, 6244 height: 0, 6245 border: 0, 6246 margin: 0, 6247 background: "none" 6248 }; 6249 if ( body ) { 6250 $.extend( testElementStyle, { 6251 position: "absolute", 6252 left: "-1000px", 6253 top: "-1000px" 6254 }); 6255 } 6256 for ( i in testElementStyle ) { 6257 testElement.style[ i ] = testElementStyle[ i ]; 6258 } 6259 testElement.appendChild( div ); 6260 testElementParent = body || document.documentElement; 6261 testElementParent.insertBefore( testElement, testElementParent.firstChild ); 6262 div.style.cssText = "position: absolute; left: 10.7432222px;"; 6263 offsetLeft = $( div ).offset().left; 6264 $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11; 6265 testElement.innerHTML = ""; 6266 testElementParent.removeChild( testElement ); 6267})(); 6268}( jQuery ) ); 6269(function( $, undefined ) { 6270$.widget("ui.draggable", $.ui.mouse, { 6271 version: "1.10.4", 6272 widgetEventPrefix: "drag", 6273 options: { 6274 addClasses: true, 6275 appendTo: "parent", 6276 axis: false, 6277 connectToSortable: false, 6278 containment: false, 6279 cursor: "auto", 6280 cursorAt: false, 6281 grid: false, 6282 handle: false, 6283 helper: "original", 6284 iframeFix: false, 6285 opacity: false, 6286 refreshPositions: false, 6287 revert: false, 6288 revertDuration: 500, 6289 scope: "default", 6290 scroll: true, 6291 scrollSensitivity: 20, 6292 scrollSpeed: 20, 6293 snap: false, 6294 snapMode: "both", 6295 snapTolerance: 20, 6296 stack: false, 6297 zIndex: false, 6298 drag: null, 6299 start: null, 6300 stop: null 6301 }, 6302 _create: function() { 6303 if (this.options.helper === "original" && !(/^(?:r|a|f)/).test(this.element.css("position"))) { 6304 this.element[0].style.position = "relative"; 6305 } 6306 if (this.options.addClasses){ 6307 this.element.addClass("ui-draggable"); 6308 } 6309 if (this.options.disabled){ 6310 this.element.addClass("ui-draggable-disabled"); 6311 } 6312 this._mouseInit(); 6313 }, 6314 _destroy: function() { 6315 this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" ); 6316 this._mouseDestroy(); 6317 }, 6318 _mouseCapture: function(event) { 6319 var o = this.options; 6320 if (this.helper || o.disabled || $(event.target).closest(".ui-resizable-handle").length > 0) { 6321 return false; 6322 } 6323 this.handle = this._getHandle(event); 6324 if (!this.handle) { 6325 return false; 6326 } 6327 $(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() { 6328 $("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>") 6329 .css({ 6330 width: this.offsetWidth+"px", height: this.offsetHeight+"px", 6331 position: "absolute", opacity: "0.001", zIndex: 1000 6332 }) 6333 .css($(this).offset()) 6334 .appendTo("body"); 6335 }); 6336 return true; 6337 }, 6338 _mouseStart: function(event) { 6339 var o = this.options; 6340 this.helper = this._createHelper(event); 6341 this.helper.addClass("ui-draggable-dragging"); 6342 this._cacheHelperProportions(); 6343 if($.ui.ddmanager) { 6344 $.ui.ddmanager.current = this; 6345 } 6346 this._cacheMargins(); 6347 this.cssPosition = this.helper.css( "position" ); 6348 this.scrollParent = this.helper.scrollParent(); 6349 this.offsetParent = this.helper.offsetParent(); 6350 this.offsetParentCssPosition = this.offsetParent.css( "position" ); 6351 this.offset = this.positionAbs = this.element.offset(); 6352 this.offset = { 6353 top: this.offset.top - this.margins.top, 6354 left: this.offset.left - this.margins.left 6355 }; 6356 this.offset.scroll = false; 6357 $.extend(this.offset, { 6358 click: { 6359 left: event.pageX - this.offset.left, 6360 top: event.pageY - this.offset.top 6361 }, 6362 parent: this._getParentOffset(), 6363 relative: this._getRelativeOffset() 6364 }); 6365 this.originalPosition = this.position = this._generatePosition(event); 6366 this.originalPageX = event.pageX; 6367 this.originalPageY = event.pageY; 6368 (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt)); 6369 this._setContainment(); 6370 if(this._trigger("start", event) === false) { 6371 this._clear(); 6372 return false; 6373 } 6374 this._cacheHelperProportions(); 6375 if ($.ui.ddmanager && !o.dropBehaviour) { 6376 $.ui.ddmanager.prepareOffsets(this, event); 6377 } 6378 this._mouseDrag(event, true); 6379 if ( $.ui.ddmanager ) { 6380 $.ui.ddmanager.dragStart(this, event); 6381 } 6382 return true; 6383 }, 6384 _mouseDrag: function(event, noPropagation) { 6385 if ( this.offsetParentCssPosition === "fixed" ) { 6386 this.offset.parent = this._getParentOffset(); 6387 } 6388 this.position = this._generatePosition(event); 6389 this.positionAbs = this._convertPositionTo("absolute"); 6390 if (!noPropagation) { 6391 var ui = this._uiHash(); 6392 if(this._trigger("drag", event, ui) === false) { 6393 this._mouseUp({}); 6394 return false; 6395 } 6396 this.position = ui.position; 6397 } 6398 if(!this.options.axis || this.options.axis !== "y") { 6399 this.helper[0].style.left = this.position.left+"px"; 6400 } 6401 if(!this.options.axis || this.options.axis !== "x") { 6402 this.helper[0].style.top = this.position.top+"px"; 6403 } 6404 if($.ui.ddmanager) { 6405 $.ui.ddmanager.drag(this, event); 6406 } 6407 return false; 6408 }, 6409 _mouseStop: function(event) { 6410 var that = this, 6411 dropped = false; 6412 if ($.ui.ddmanager && !this.options.dropBehaviour) { 6413 dropped = $.ui.ddmanager.drop(this, event); 6414 } 6415 if(this.dropped) { 6416 dropped = this.dropped; 6417 this.dropped = false; 6418 } 6419 if ( this.options.helper === "original" && !$.contains( this.element[ 0 ].ownerDocument, this.element[ 0 ] ) ) { 6420 return false; 6421 } 6422 if((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { 6423 $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() { 6424 if(that._trigger("stop", event) !== false) { 6425 that._clear(); 6426 } 6427 }); 6428 } else { 6429 if(this._trigger("stop", event) !== false) { 6430 this._clear(); 6431 } 6432 } 6433 return false; 6434 }, 6435 _mouseUp: function(event) { 6436 $("div.ui-draggable-iframeFix").each(function() { 6437 this.parentNode.removeChild(this); 6438 }); 6439 if( $.ui.ddmanager ) { 6440 $.ui.ddmanager.dragStop(this, event); 6441 } 6442 return $.ui.mouse.prototype._mouseUp.call(this, event); 6443 }, 6444 cancel: function() { 6445 if(this.helper.is(".ui-draggable-dragging")) { 6446 this._mouseUp({}); 6447 } else { 6448 this._clear(); 6449 } 6450 return this; 6451 }, 6452 _getHandle: function(event) { 6453 return this.options.handle ? 6454 !!$( event.target ).closest( this.element.find( this.options.handle ) ).length : 6455 true; 6456 }, 6457 _createHelper: function(event) { 6458 var o = this.options, 6459 helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper === "clone" ? this.element.clone().removeAttr("id") : this.element); 6460 if(!helper.parents("body").length) { 6461 helper.appendTo((o.appendTo === "parent" ? this.element[0].parentNode : o.appendTo)); 6462 } 6463 if(helper[0] !== this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) { 6464 helper.css("position", "absolute"); 6465 } 6466 return helper; 6467 }, 6468 _adjustOffsetFromHelper: function(obj) { 6469 if (typeof obj === "string") { 6470 obj = obj.split(" "); 6471 } 6472 if ($.isArray(obj)) { 6473 obj = {left: +obj[0], top: +obj[1] || 0}; 6474 } 6475 if ("left" in obj) { 6476 this.offset.click.left = obj.left + this.margins.left; 6477 } 6478 if ("right" in obj) { 6479 this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; 6480 } 6481 if ("top" in obj) { 6482 this.offset.click.top = obj.top + this.margins.top; 6483 } 6484 if ("bottom" in obj) { 6485 this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; 6486 } 6487 }, 6488 _getParentOffset: function() { 6489 var po = this.offsetParent.offset(); 6490 if(this.cssPosition === "absolute" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) { 6491 po.left += this.scrollParent.scrollLeft(); 6492 po.top += this.scrollParent.scrollTop(); 6493 } 6494 if((this.offsetParent[0] === document.body) || 6495 (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === "html" && $.ui.ie)) { 6496 po = { top: 0, left: 0 }; 6497 } 6498 return { 6499 top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), 6500 left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) 6501 }; 6502 }, 6503 _getRelativeOffset: function() { 6504 if(this.cssPosition === "relative") { 6505 var p = this.element.position(); 6506 return { 6507 top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), 6508 left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() 6509 }; 6510 } else { 6511 return { top: 0, left: 0 }; 6512 } 6513 }, 6514 _cacheMargins: function() { 6515 this.margins = { 6516 left: (parseInt(this.element.css("marginLeft"),10) || 0), 6517 top: (parseInt(this.element.css("marginTop"),10) || 0), 6518 right: (parseInt(this.element.css("marginRight"),10) || 0), 6519 bottom: (parseInt(this.element.css("marginBottom"),10) || 0) 6520 }; 6521 }, 6522 _cacheHelperProportions: function() { 6523 this.helperProportions = { 6524 width: this.helper.outerWidth(), 6525 height: this.helper.outerHeight() 6526 }; 6527 }, 6528 _setContainment: function() { 6529 var over, c, ce, 6530 o = this.options; 6531 if ( !o.containment ) { 6532 this.containment = null; 6533 return; 6534 } 6535 if ( o.containment === "window" ) { 6536 this.containment = [ 6537 $( window ).scrollLeft() - this.offset.relative.left - this.offset.parent.left, 6538 $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top, 6539 $( window ).scrollLeft() + $( window ).width() - this.helperProportions.width - this.margins.left, 6540 $( window ).scrollTop() + ( $( window ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top 6541 ]; 6542 return; 6543 } 6544 if ( o.containment === "document") { 6545 this.containment = [ 6546 0, 6547 0, 6548 $( document ).width() - this.helperProportions.width - this.margins.left, 6549 ( $( document ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top 6550 ]; 6551 return; 6552 } 6553 if ( o.containment.constructor === Array ) { 6554 this.containment = o.containment; 6555 return; 6556 } 6557 if ( o.containment === "parent" ) { 6558 o.containment = this.helper[ 0 ].parentNode; 6559 } 6560 c = $( o.containment ); 6561 ce = c[ 0 ]; 6562 if( !ce ) { 6563 return; 6564 } 6565 over = c.css( "overflow" ) !== "hidden"; 6566 this.containment = [ 6567 ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) + ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ), 6568 ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) + ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ) , 6569 ( over ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) - ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) - ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) - this.helperProportions.width - this.margins.left - this.margins.right, 6570 ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) - ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) - this.helperProportions.height - this.margins.top - this.margins.bottom 6571 ]; 6572 this.relative_container = c; 6573 }, 6574 _convertPositionTo: function(d, pos) { 6575 if(!pos) { 6576 pos = this.position; 6577 } 6578 var mod = d === "absolute" ? 1 : -1, 6579 scroll = this.cssPosition === "absolute" && !( this.scrollParent[ 0 ] !== document && $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? this.offsetParent : this.scrollParent; 6580 if (!this.offset.scroll) { 6581 this.offset.scroll = {top : scroll.scrollTop(), left : scroll.scrollLeft()}; 6582 } 6583 return { 6584 top: ( 6585 pos.top + 6586 this.offset.relative.top * mod + 6587 this.offset.parent.top * mod - 6588 ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : this.offset.scroll.top ) * mod ) 6589 ), 6590 left: ( 6591 pos.left + 6592 this.offset.relative.left * mod + 6593 this.offset.parent.left * mod - 6594 ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left ) * mod ) 6595 ) 6596 }; 6597 6598 }, 6599 _generatePosition: function(event) { 6600 var containment, co, top, left, 6601 o = this.options, 6602 scroll = this.cssPosition === "absolute" && !( this.scrollParent[ 0 ] !== document && $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? this.offsetParent : this.scrollParent, 6603 pageX = event.pageX, 6604 pageY = event.pageY; 6605 if (!this.offset.scroll) { 6606 this.offset.scroll = {top : scroll.scrollTop(), left : scroll.scrollLeft()}; 6607 } 6608 if ( this.originalPosition ) { 6609 if ( this.containment ) { 6610 if ( this.relative_container ){ 6611 co = this.relative_container.offset(); 6612 containment = [ 6613 this.containment[ 0 ] + co.left, 6614 this.containment[ 1 ] + co.top, 6615 this.containment[ 2 ] + co.left, 6616 this.containment[ 3 ] + co.top 6617 ]; 6618 } 6619 else { 6620 containment = this.containment; 6621 } 6622 if(event.pageX - this.offset.click.left < containment[0]) { 6623 pageX = containment[0] + this.offset.click.left; 6624 } 6625 if(event.pageY - this.offset.click.top < containment[1]) { 6626 pageY = containment[1] + this.offset.click.top; 6627 } 6628 if(event.pageX - this.offset.click.left > containment[2]) { 6629 pageX = containment[2] + this.offset.click.left; 6630 } 6631 if(event.pageY - this.offset.click.top > containment[3]) { 6632 pageY = containment[3] + this.offset.click.top; 6633 } 6634 } 6635 if(o.grid) { 6636 top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY; 6637 pageY = containment ? ((top - this.offset.click.top >= containment[1] || top - this.offset.click.top > containment[3]) ? top : ((top - this.offset.click.top >= containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; 6638 left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX; 6639 pageX = containment ? ((left - this.offset.click.left >= containment[0] || left - this.offset.click.left > containment[2]) ? left : ((left - this.offset.click.left >= containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; 6640 } 6641 } 6642 return { 6643 top: ( 6644 pageY - 6645 this.offset.click.top - 6646 this.offset.relative.top - 6647 this.offset.parent.top + 6648 ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : this.offset.scroll.top ) 6649 ), 6650 left: ( 6651 pageX - 6652 this.offset.click.left - 6653 this.offset.relative.left - 6654 this.offset.parent.left + 6655 ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left ) 6656 ) 6657 }; 6658 }, 6659 _clear: function() { 6660 this.helper.removeClass("ui-draggable-dragging"); 6661 if(this.helper[0] !== this.element[0] && !this.cancelHelperRemoval) { 6662 this.helper.remove(); 6663 } 6664 this.helper = null; 6665 this.cancelHelperRemoval = false; 6666 }, 6667 _trigger: function(type, event, ui) { 6668 ui = ui || this._uiHash(); 6669 $.ui.plugin.call(this, type, [event, ui]); 6670 if(type === "drag") { 6671 this.positionAbs = this._convertPositionTo("absolute"); 6672 } 6673 return $.Widget.prototype._trigger.call(this, type, event, ui); 6674 }, 6675 plugins: {}, 6676 _uiHash: function() { 6677 return { 6678 helper: this.helper, 6679 position: this.position, 6680 originalPosition: this.originalPosition, 6681 offset: this.positionAbs 6682 }; 6683 } 6684}); 6685$.ui.plugin.add("draggable", "connectToSortable", { 6686 start: function(event, ui) { 6687 var inst = $(this).data("ui-draggable"), o = inst.options, 6688 uiSortable = $.extend({}, ui, { item: inst.element }); 6689 inst.sortables = []; 6690 $(o.connectToSortable).each(function() { 6691 var sortable = $.data(this, "ui-sortable"); 6692 if (sortable && !sortable.options.disabled) { 6693 inst.sortables.push({ 6694 instance: sortable, 6695 shouldRevert: sortable.options.revert 6696 }); 6697 sortable.refreshPositions(); 6698 sortable._trigger("activate", event, uiSortable); 6699 } 6700 }); 6701 }, 6702 stop: function(event, ui) { 6703 var inst = $(this).data("ui-draggable"), 6704 uiSortable = $.extend({}, ui, { item: inst.element }); 6705 $.each(inst.sortables, function() { 6706 if(this.instance.isOver) { 6707 this.instance.isOver = 0; 6708 inst.cancelHelperRemoval = true; 6709 this.instance.cancelHelperRemoval = false; 6710 if(this.shouldRevert) { 6711 this.instance.options.revert = this.shouldRevert; 6712 } 6713 this.instance._mouseStop(event); 6714 this.instance.options.helper = this.instance.options._helper; 6715 if(inst.options.helper === "original") { 6716 this.instance.currentItem.css({ top: "auto", left: "auto" }); 6717 } 6718 } else { 6719 this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance 6720 this.instance._trigger("deactivate", event, uiSortable); 6721 } 6722 }); 6723 }, 6724 drag: function(event, ui) { 6725 var inst = $(this).data("ui-draggable"), that = this; 6726 $.each(inst.sortables, function() { 6727 var innermostIntersecting = false, 6728 thisSortable = this; 6729 this.instance.positionAbs = inst.positionAbs; 6730 this.instance.helperProportions = inst.helperProportions; 6731 this.instance.offset.click = inst.offset.click; 6732 if(this.instance._intersectsWith(this.instance.containerCache)) { 6733 innermostIntersecting = true; 6734 $.each(inst.sortables, function () { 6735 this.instance.positionAbs = inst.positionAbs; 6736 this.instance.helperProportions = inst.helperProportions; 6737 this.instance.offset.click = inst.offset.click; 6738 if (this !== thisSortable && 6739 this.instance._intersectsWith(this.instance.containerCache) && 6740 $.contains(thisSortable.instance.element[0], this.instance.element[0]) 6741 ) { 6742 innermostIntersecting = false; 6743 } 6744 return innermostIntersecting; 6745 }); 6746 } 6747 if(innermostIntersecting) { 6748 if(!this.instance.isOver) { 6749 this.instance.isOver = 1; 6750 this.instance.currentItem = $(that).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item", true); 6751 this.instance.options._helper = this.instance.options.helper; 6752 this.instance.options.helper = function() { return ui.helper[0]; }; 6753 event.target = this.instance.currentItem[0]; 6754 this.instance._mouseCapture(event, true); 6755 this.instance._mouseStart(event, true, true); 6756 this.instance.offset.click.top = inst.offset.click.top; 6757 this.instance.offset.click.left = inst.offset.click.left; 6758 this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left; 6759 this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top; 6760 inst._trigger("toSortable", event); 6761 inst.dropped = this.instance.element 6762 inst.currentItem = inst.element; 6763 this.instance.fromOutside = inst; 6764 } 6765 if(this.instance.currentItem) { 6766 this.instance._mouseDrag(event); 6767 } 6768 } else { 6769 if(this.instance.isOver) { 6770 this.instance.isOver = 0; 6771 this.instance.cancelHelperRemoval = true; 6772 this.instance.options.revert = false; 6773 this.instance._trigger("out", event, this.instance._uiHash(this.instance)); 6774 this.instance._mouseStop(event, true); 6775 this.instance.options.helper = this.instance.options._helper; 6776 this.instance.currentItem.remove(); 6777 if(this.instance.placeholder) { 6778 this.instance.placeholder.remove(); 6779 } 6780 inst._trigger("fromSortable", event); 6781 inst.dropped = false; 6782 } 6783 } 6784 }); 6785 } 6786}); 6787$.ui.plugin.add("draggable", "cursor", { 6788 start: function() { 6789 var t = $("body"), o = $(this).data("ui-draggable").options; 6790 if (t.css("cursor")) { 6791 o._cursor = t.css("cursor"); 6792 } 6793 t.css("cursor", o.cursor); 6794 }, 6795 stop: function() { 6796 var o = $(this).data("ui-draggable").options; 6797 if (o._cursor) { 6798 $("body").css("cursor", o._cursor); 6799 } 6800 } 6801}); 6802$.ui.plugin.add("draggable", "opacity", { 6803 start: function(event, ui) { 6804 var t = $(ui.helper), o = $(this).data("ui-draggable").options; 6805 if(t.css("opacity")) { 6806 o._opacity = t.css("opacity"); 6807 } 6808 t.css("opacity", o.opacity); 6809 }, 6810 stop: function(event, ui) { 6811 var o = $(this).data("ui-draggable").options; 6812 if(o._opacity) { 6813 $(ui.helper).css("opacity", o._opacity); 6814 } 6815 } 6816}); 6817$.ui.plugin.add("draggable", "scroll", { 6818 start: function() { 6819 var i = $(this).data("ui-draggable"); 6820 if(i.scrollParent[0] !== document && i.scrollParent[0].tagName !== "HTML") { 6821 i.overflowOffset = i.scrollParent.offset(); 6822 } 6823 }, 6824 drag: function( event ) { 6825 var i = $(this).data("ui-draggable"), o = i.options, scrolled = false; 6826 if(i.scrollParent[0] !== document && i.scrollParent[0].tagName !== "HTML") { 6827 if(!o.axis || o.axis !== "x") { 6828 if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) { 6829 i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; 6830 } else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) { 6831 i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; 6832 } 6833 } 6834 if(!o.axis || o.axis !== "y") { 6835 if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) { 6836 i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; 6837 } else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) { 6838 i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; 6839 } 6840 } 6841 } else { 6842 if(!o.axis || o.axis !== "x") { 6843 if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) { 6844 scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); 6845 } else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) { 6846 scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); 6847 } 6848 } 6849 if(!o.axis || o.axis !== "y") { 6850 if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) { 6851 scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); 6852 } else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) { 6853 scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); 6854 } 6855 } 6856 } 6857 if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) { 6858 $.ui.ddmanager.prepareOffsets(i, event); 6859 } 6860 } 6861}); 6862$.ui.plugin.add("draggable", "snap", { 6863 start: function() { 6864 var i = $(this).data("ui-draggable"), 6865 o = i.options; 6866 i.snapElements = []; 6867 $(o.snap.constructor !== String ? ( o.snap.items || ":data(ui-draggable)" ) : o.snap).each(function() { 6868 var $t = $(this), 6869 $o = $t.offset(); 6870 if(this !== i.element[0]) { 6871 i.snapElements.push({ 6872 item: this, 6873 width: $t.outerWidth(), height: $t.outerHeight(), 6874 top: $o.top, left: $o.left 6875 }); 6876 } 6877 }); 6878 }, 6879 drag: function(event, ui) { 6880 var ts, bs, ls, rs, l, r, t, b, i, first, 6881 inst = $(this).data("ui-draggable"), 6882 o = inst.options, 6883 d = o.snapTolerance, 6884 x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width, 6885 y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height; 6886 for (i = inst.snapElements.length - 1; i >= 0; i--){ 6887 l = inst.snapElements[i].left; 6888 r = l + inst.snapElements[i].width; 6889 t = inst.snapElements[i].top; 6890 b = t + inst.snapElements[i].height; 6891 if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || !$.contains( inst.snapElements[ i ].item.ownerDocument, inst.snapElements[ i ].item ) ) { 6892 if(inst.snapElements[i].snapping) { 6893 (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); 6894 } 6895 inst.snapElements[i].snapping = false; 6896 continue; 6897 } 6898 if(o.snapMode !== "inner") { 6899 ts = Math.abs(t - y2) <= d; 6900 bs = Math.abs(b - y1) <= d; 6901 ls = Math.abs(l - x2) <= d; 6902 rs = Math.abs(r - x1) <= d; 6903 if(ts) { 6904 ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top; 6905 } 6906 if(bs) { 6907 ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top - inst.margins.top; 6908 } 6909 if(ls) { 6910 ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left; 6911 } 6912 if(rs) { 6913 ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left - inst.margins.left; 6914 } 6915 } 6916 first = (ts || bs || ls || rs); 6917 if(o.snapMode !== "outer") { 6918 ts = Math.abs(t - y1) <= d; 6919 bs = Math.abs(b - y2) <= d; 6920 ls = Math.abs(l - x1) <= d; 6921 rs = Math.abs(r - x2) <= d; 6922 if(ts) { 6923 ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top - inst.margins.top; 6924 } 6925 if(bs) { 6926 ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top; 6927 } 6928 if(ls) { 6929 ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left - inst.margins.left; 6930 } 6931 if(rs) { 6932 ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left; 6933 } 6934 } 6935 if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) { 6936 (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); 6937 } 6938 inst.snapElements[i].snapping = (ts || bs || ls || rs || first); 6939 } 6940 } 6941}); 6942$.ui.plugin.add("draggable", "stack", { 6943 start: function() { 6944 var min, 6945 o = this.data("ui-draggable").options, 6946 group = $.makeArray($(o.stack)).sort(function(a,b) { 6947 return (parseInt($(a).css("zIndex"),10) || 0) - (parseInt($(b).css("zIndex"),10) || 0); 6948 }); 6949 if (!group.length) { return; } 6950 min = parseInt($(group[0]).css("zIndex"), 10) || 0; 6951 $(group).each(function(i) { 6952 $(this).css("zIndex", min + i); 6953 }); 6954 this.css("zIndex", (min + group.length)); 6955 } 6956}); 6957$.ui.plugin.add("draggable", "zIndex", { 6958 start: function(event, ui) { 6959 var t = $(ui.helper), o = $(this).data("ui-draggable").options; 6960 if(t.css("zIndex")) { 6961 o._zIndex = t.css("zIndex"); 6962 } 6963 t.css("zIndex", o.zIndex); 6964 }, 6965 stop: function(event, ui) { 6966 var o = $(this).data("ui-draggable").options; 6967 if(o._zIndex) { 6968 $(ui.helper).css("zIndex", o._zIndex); 6969 } 6970 } 6971}); 6972})(jQuery); 6973(function( $, undefined ) { 6974function num(v) { 6975 return parseInt(v, 10) || 0; 6976} 6977function isNumber(value) { 6978 return !isNaN(parseInt(value, 10)); 6979} 6980$.widget("ui.resizable", $.ui.mouse, { 6981 version: "1.10.4", 6982 widgetEventPrefix: "resize", 6983 options: { 6984 alsoResize: false, 6985 animate: false, 6986 animateDuration: "slow", 6987 animateEasing: "swing", 6988 aspectRatio: false, 6989 autoHide: false, 6990 containment: false, 6991 ghost: false, 6992 grid: false, 6993 handles: "e,s,se", 6994 helper: false, 6995 maxHeight: null, 6996 maxWidth: null, 6997 minHeight: 10, 6998 minWidth: 10, 6999 zIndex: 90, 7000 resize: null, 7001 start: null, 7002 stop: null 7003 }, 7004 _create: function() { 7005 var n, i, handle, axis, hname, 7006 that = this, 7007 o = this.options; 7008 this.element.addClass("ui-resizable"); 7009 $.extend(this, { 7010 _aspectRatio: !!(o.aspectRatio), 7011 aspectRatio: o.aspectRatio, 7012 originalElement: this.element, 7013 _proportionallyResizeElements: [], 7014 _helper: o.helper || o.ghost || o.animate ? o.helper || "ui-resizable-helper" : null 7015 }); 7016 if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) { 7017 this.element.wrap( 7018 $("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({ 7019 position: this.element.css("position"), 7020 width: this.element.outerWidth(), 7021 height: this.element.outerHeight(), 7022 top: this.element.css("top"), 7023 left: this.element.css("left") 7024 }) 7025 ); 7026 this.element = this.element.parent().data( 7027 "ui-resizable", this.element.data("ui-resizable") 7028 ); 7029 this.elementIsWrapper = true; 7030 this.element.css({ marginLeft: this.originalElement.css("marginLeft"), marginTop: this.originalElement.css("marginTop"), marginRight: this.originalElement.css("marginRight"), marginBottom: this.originalElement.css("marginBottom") }); 7031 this.originalElement.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0}); 7032 this.originalResizeStyle = this.originalElement.css("resize"); 7033 this.originalElement.css("resize", "none"); 7034 this._proportionallyResizeElements.push(this.originalElement.css({ position: "static", zoom: 1, display: "block" })); 7035 this.originalElement.css({ margin: this.originalElement.css("margin") }); 7036 this._proportionallyResize(); 7037 } 7038 this.handles = o.handles || (!$(".ui-resizable-handle", this.element).length ? "e,s,se" : { n: ".ui-resizable-n", e: ".ui-resizable-e", s: ".ui-resizable-s", w: ".ui-resizable-w", se: ".ui-resizable-se", sw: ".ui-resizable-sw", ne: ".ui-resizable-ne", nw: ".ui-resizable-nw" }); 7039 if(this.handles.constructor === String) { 7040 if ( this.handles === "all") { 7041 this.handles = "n,e,s,w,se,sw,ne,nw"; 7042 } 7043 n = this.handles.split(","); 7044 this.handles = {}; 7045 for(i = 0; i < n.length; i++) { 7046 handle = $.trim(n[i]); 7047 hname = "ui-resizable-"+handle; 7048 axis = $("<div class='ui-resizable-handle " + hname + "'></div>"); 7049 axis.css({ zIndex: o.zIndex }); 7050 if ("se" === handle) { 7051 axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se"); 7052 } 7053 this.handles[handle] = ".ui-resizable-"+handle; 7054 this.element.append(axis); 7055 } 7056 } 7057 this._renderAxis = function(target) { 7058 var i, axis, padPos, padWrapper; 7059 target = target || this.element; 7060 for(i in this.handles) { 7061 if(this.handles[i].constructor === String) { 7062 this.handles[i] = $(this.handles[i], this.element).show(); 7063 } 7064 if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) { 7065 axis = $(this.handles[i], this.element); 7066 padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth(); 7067 padPos = [ "padding", 7068 /ne|nw|n/.test(i) ? "Top" : 7069 /se|sw|s/.test(i) ? "Bottom" : 7070 /^e$/.test(i) ? "Right" : "Left" ].join(""); 7071 target.css(padPos, padWrapper); 7072 this._proportionallyResize(); 7073 } 7074 if(!$(this.handles[i]).length) { 7075 continue; 7076 } 7077 } 7078 }; 7079 this._renderAxis(this.element); 7080 this._handles = $(".ui-resizable-handle", this.element) 7081 .disableSelection(); 7082 this._handles.mouseover(function() { 7083 if (!that.resizing) { 7084 if (this.className) { 7085 axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i); 7086 } 7087 that.axis = axis && axis[1] ? axis[1] : "se"; 7088 } 7089 }); 7090 if (o.autoHide) { 7091 this._handles.hide(); 7092 $(this.element) 7093 .addClass("ui-resizable-autohide") 7094 .mouseenter(function() { 7095 if (o.disabled) { 7096 return; 7097 } 7098 $(this).removeClass("ui-resizable-autohide"); 7099 that._handles.show(); 7100 }) 7101 .mouseleave(function(){ 7102 if (o.disabled) { 7103 return; 7104 } 7105 if (!that.resizing) { 7106 $(this).addClass("ui-resizable-autohide"); 7107 that._handles.hide(); 7108 } 7109 }); 7110 } 7111 this._mouseInit(); 7112 }, 7113 _destroy: function() { 7114 this._mouseDestroy(); 7115 var wrapper, 7116 _destroy = function(exp) { 7117 $(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing") 7118 .removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove(); 7119 }; 7120 if (this.elementIsWrapper) { 7121 _destroy(this.element); 7122 wrapper = this.element; 7123 this.originalElement.css({ 7124 position: wrapper.css("position"), 7125 width: wrapper.outerWidth(), 7126 height: wrapper.outerHeight(), 7127 top: wrapper.css("top"), 7128 left: wrapper.css("left") 7129 }).insertAfter( wrapper ); 7130 wrapper.remove(); 7131 } 7132 this.originalElement.css("resize", this.originalResizeStyle); 7133 _destroy(this.originalElement); 7134 return this; 7135 }, 7136 _mouseCapture: function(event) { 7137 var i, handle, 7138 capture = false; 7139 for (i in this.handles) { 7140 handle = $(this.handles[i])[0]; 7141 if (handle === event.target || $.contains(handle, event.target)) { 7142 capture = true; 7143 } 7144 } 7145 return !this.options.disabled && capture; 7146 }, 7147 _mouseStart: function(event) { 7148 var curleft, curtop, cursor, 7149 o = this.options, 7150 iniPos = this.element.position(), 7151 el = this.element; 7152 this.resizing = true; 7153 if ( (/absolute/).test( el.css("position") ) ) { 7154 el.css({ position: "absolute", top: el.css("top"), left: el.css("left") }); 7155 } else if (el.is(".ui-draggable")) { 7156 el.css({ position: "absolute", top: iniPos.top, left: iniPos.left }); 7157 } 7158 this._renderProxy(); 7159 curleft = num(this.helper.css("left")); 7160 curtop = num(this.helper.css("top")); 7161 if (o.containment) { 7162 curleft += $(o.containment).scrollLeft() || 0; 7163 curtop += $(o.containment).scrollTop() || 0; 7164 } 7165 this.offset = this.helper.offset(); 7166 this.position = { left: curleft, top: curtop }; 7167 this.size = this._helper ? { width: this.helper.width(), height: this.helper.height() } : { width: el.width(), height: el.height() }; 7168 this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; 7169 this.originalPosition = { left: curleft, top: curtop }; 7170 this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() }; 7171 this.originalMousePosition = { left: event.pageX, top: event.pageY }; 7172 this.aspectRatio = (typeof o.aspectRatio === "number") ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1); 7173 cursor = $(".ui-resizable-" + this.axis).css("cursor"); 7174 $("body").css("cursor", cursor === "auto" ? this.axis + "-resize" : cursor); 7175 el.addClass("ui-resizable-resizing"); 7176 this._propagate("start", event); 7177 return true; 7178 }, 7179 _mouseDrag: function(event) { 7180 var data, 7181 el = this.helper, props = {}, 7182 smp = this.originalMousePosition, 7183 a = this.axis, 7184 prevTop = this.position.top, 7185 prevLeft = this.position.left, 7186 prevWidth = this.size.width, 7187 prevHeight = this.size.height, 7188 dx = (event.pageX-smp.left)||0, 7189 dy = (event.pageY-smp.top)||0, 7190 trigger = this._change[a]; 7191 if (!trigger) { 7192 return false; 7193 } 7194 data = trigger.apply(this, [event, dx, dy]); 7195 this._updateVirtualBoundaries(event.shiftKey); 7196 if (this._aspectRatio || event.shiftKey) { 7197 data = this._updateRatio(data, event); 7198 } 7199 data = this._respectSize(data, event); 7200 this._updateCache(data); 7201 this._propagate("resize", event); 7202 if (this.position.top !== prevTop) { 7203 props.top = this.position.top + "px"; 7204 } 7205 if (this.position.left !== prevLeft) { 7206 props.left = this.position.left + "px"; 7207 } 7208 if (this.size.width !== prevWidth) { 7209 props.width = this.size.width + "px"; 7210 } 7211 if (this.size.height !== prevHeight) { 7212 props.height = this.size.height + "px"; 7213 } 7214 el.css(props); 7215 if (!this._helper && this._proportionallyResizeElements.length) { 7216 this._proportionallyResize(); 7217 } 7218 if ( ! $.isEmptyObject(props) ) { 7219 this._trigger("resize", event, this.ui()); 7220 } 7221 return false; 7222 }, 7223 _mouseStop: function(event) { 7224 this.resizing = false; 7225 var pr, ista, soffseth, soffsetw, s, left, top, 7226 o = this.options, that = this; 7227 if(this._helper) { 7228 pr = this._proportionallyResizeElements; 7229 ista = pr.length && (/textarea/i).test(pr[0].nodeName); 7230 soffseth = ista && $.ui.hasScroll(pr[0], "left") /* TODO - jump height */ ? 0 : that.sizeDiff.height; 7231 soffsetw = ista ? 0 : that.sizeDiff.width; 7232 s = { width: (that.helper.width() - soffsetw), height: (that.helper.height() - soffseth) }; 7233 left = (parseInt(that.element.css("left"), 10) + (that.position.left - that.originalPosition.left)) || null; 7234 top = (parseInt(that.element.css("top"), 10) + (that.position.top - that.originalPosition.top)) || null; 7235 if (!o.animate) { 7236 this.element.css($.extend(s, { top: top, left: left })); 7237 } 7238 that.helper.height(that.size.height); 7239 that.helper.width(that.size.width); 7240 if (this._helper && !o.animate) { 7241 this._proportionallyResize(); 7242 } 7243 } 7244 $("body").css("cursor", "auto"); 7245 this.element.removeClass("ui-resizable-resizing"); 7246 this._propagate("stop", event); 7247 if (this._helper) { 7248 this.helper.remove(); 7249 } 7250 return false; 7251 }, 7252 _updateVirtualBoundaries: function(forceAspectRatio) { 7253 var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b, 7254 o = this.options; 7255 b = { 7256 minWidth: isNumber(o.minWidth) ? o.minWidth : 0, 7257 maxWidth: isNumber(o.maxWidth) ? o.maxWidth : Infinity, 7258 minHeight: isNumber(o.minHeight) ? o.minHeight : 0, 7259 maxHeight: isNumber(o.maxHeight) ? o.maxHeight : Infinity 7260 }; 7261 if(this._aspectRatio || forceAspectRatio) { 7262 pMinWidth = b.minHeight * this.aspectRatio; 7263 pMinHeight = b.minWidth / this.aspectRatio; 7264 pMaxWidth = b.maxHeight * this.aspectRatio; 7265 pMaxHeight = b.maxWidth / this.aspectRatio; 7266 if(pMinWidth > b.minWidth) { 7267 b.minWidth = pMinWidth; 7268 } 7269 if(pMinHeight > b.minHeight) { 7270 b.minHeight = pMinHeight; 7271 } 7272 if(pMaxWidth < b.maxWidth) { 7273 b.maxWidth = pMaxWidth; 7274 } 7275 if(pMaxHeight < b.maxHeight) { 7276 b.maxHeight = pMaxHeight; 7277 } 7278 } 7279 this._vBoundaries = b; 7280 }, 7281 _updateCache: function(data) { 7282 this.offset = this.helper.offset(); 7283 if (isNumber(data.left)) { 7284 this.position.left = data.left; 7285 } 7286 if (isNumber(data.top)) { 7287 this.position.top = data.top; 7288 } 7289 if (isNumber(data.height)) { 7290 this.size.height = data.height; 7291 } 7292 if (isNumber(data.width)) { 7293 this.size.width = data.width; 7294 } 7295 }, 7296 _updateRatio: function( data ) { 7297 var cpos = this.position, 7298 csize = this.size, 7299 a = this.axis; 7300 if (isNumber(data.height)) { 7301 data.width = (data.height * this.aspectRatio); 7302 } else if (isNumber(data.width)) { 7303 data.height = (data.width / this.aspectRatio); 7304 } 7305 if (a === "sw") { 7306 data.left = cpos.left + (csize.width - data.width); 7307 data.top = null; 7308 } 7309 if (a === "nw") { 7310 data.top = cpos.top + (csize.height - data.height); 7311 data.left = cpos.left + (csize.width - data.width); 7312 } 7313 return data; 7314 }, 7315 _respectSize: function( data ) { 7316 var o = this._vBoundaries, 7317 a = this.axis, 7318 ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height), 7319 isminw = isNumber(data.width) && o.minWidth && (o.minWidth > data.width), isminh = isNumber(data.height) && o.minHeight && (o.minHeight > data.height), 7320 dw = this.originalPosition.left + this.originalSize.width, 7321 dh = this.position.top + this.size.height, 7322 cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a); 7323 if (isminw) { 7324 data.width = o.minWidth; 7325 } 7326 if (isminh) { 7327 data.height = o.minHeight; 7328 } 7329 if (ismaxw) { 7330 data.width = o.maxWidth; 7331 } 7332 if (ismaxh) { 7333 data.height = o.maxHeight; 7334 } 7335 if (isminw && cw) { 7336 data.left = dw - o.minWidth; 7337 } 7338 if (ismaxw && cw) { 7339 data.left = dw - o.maxWidth; 7340 } 7341 if (isminh && ch) { 7342 data.top = dh - o.minHeight; 7343 } 7344 if (ismaxh && ch) { 7345 data.top = dh - o.maxHeight; 7346 } 7347 if (!data.width && !data.height && !data.left && data.top) { 7348 data.top = null; 7349 } else if (!data.width && !data.height && !data.top && data.left) { 7350 data.left = null; 7351 } 7352 return data; 7353 }, 7354 _proportionallyResize: function() { 7355 if (!this._proportionallyResizeElements.length) { 7356 return; 7357 } 7358 var i, j, borders, paddings, prel, 7359 element = this.helper || this.element; 7360 for ( i=0; i < this._proportionallyResizeElements.length; i++) { 7361 prel = this._proportionallyResizeElements[i]; 7362 if (!this.borderDif) { 7363 this.borderDif = []; 7364 borders = [prel.css("borderTopWidth"), prel.css("borderRightWidth"), prel.css("borderBottomWidth"), prel.css("borderLeftWidth")]; 7365 paddings = [prel.css("paddingTop"), prel.css("paddingRight"), prel.css("paddingBottom"), prel.css("paddingLeft")]; 7366 for ( j = 0; j < borders.length; j++ ) { 7367 this.borderDif[ j ] = ( parseInt( borders[ j ], 10 ) || 0 ) + ( parseInt( paddings[ j ], 10 ) || 0 ); 7368 } 7369 } 7370 prel.css({ 7371 height: (element.height() - this.borderDif[0] - this.borderDif[2]) || 0, 7372 width: (element.width() - this.borderDif[1] - this.borderDif[3]) || 0 7373 }); 7374 } 7375 }, 7376 _renderProxy: function() { 7377 var el = this.element, o = this.options; 7378 this.elementOffset = el.offset(); 7379 if(this._helper) { 7380 this.helper = this.helper || $("<div style='overflow:hidden;'></div>"); 7381 this.helper.addClass(this._helper).css({ 7382 width: this.element.outerWidth() - 1, 7383 height: this.element.outerHeight() - 1, 7384 position: "absolute", 7385 left: this.elementOffset.left +"px", 7386 top: this.elementOffset.top +"px", 7387 zIndex: ++o.zIndex 7388 }); 7389 this.helper 7390 .appendTo("body") 7391 .disableSelection(); 7392 } else { 7393 this.helper = this.element; 7394 } 7395 }, 7396 _change: { 7397 e: function(event, dx) { 7398 return { width: this.originalSize.width + dx }; 7399 }, 7400 w: function(event, dx) { 7401 var cs = this.originalSize, sp = this.originalPosition; 7402 return { left: sp.left + dx, width: cs.width - dx }; 7403 }, 7404 n: function(event, dx, dy) { 7405 var cs = this.originalSize, sp = this.originalPosition; 7406 return { top: sp.top + dy, height: cs.height - dy }; 7407 }, 7408 s: function(event, dx, dy) { 7409 return { height: this.originalSize.height + dy }; 7410 }, 7411 se: function(event, dx, dy) { 7412 return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); 7413 }, 7414 sw: function(event, dx, dy) { 7415 return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); 7416 }, 7417 ne: function(event, dx, dy) { 7418 return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); 7419 }, 7420 nw: function(event, dx, dy) { 7421 return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); 7422 } 7423 }, 7424 _propagate: function(n, event) { 7425 $.ui.plugin.call(this, n, [event, this.ui()]); 7426 (n !== "resize" && this._trigger(n, event, this.ui())); 7427 }, 7428 plugins: {}, 7429 ui: function() { 7430 return { 7431 originalElement: this.originalElement, 7432 element: this.element, 7433 helper: this.helper, 7434 position: this.position, 7435 size: this.size, 7436 originalSize: this.originalSize, 7437 originalPosition: this.originalPosition 7438 }; 7439 } 7440}); 7441$.ui.plugin.add("resizable", "animate", { 7442 stop: function( event ) { 7443 var that = $(this).data("ui-resizable"), 7444 o = that.options, 7445 pr = that._proportionallyResizeElements, 7446 ista = pr.length && (/textarea/i).test(pr[0].nodeName), 7447 soffseth = ista && $.ui.hasScroll(pr[0], "left") ? 0 : that.sizeDiff.height, 7448 soffsetw = ista ? 0 : that.sizeDiff.width, 7449 style = { width: (that.size.width - soffsetw), height: (that.size.height - soffseth) }, 7450 left = (parseInt(that.element.css("left"), 10) + (that.position.left - that.originalPosition.left)) || null, 7451 top = (parseInt(that.element.css("top"), 10) + (that.position.top - that.originalPosition.top)) || null; 7452 that.element.animate( 7453 $.extend(style, top && left ? { top: top, left: left } : {}), { 7454 duration: o.animateDuration, 7455 easing: o.animateEasing, 7456 step: function() { 7457 var data = { 7458 width: parseInt(that.element.css("width"), 10), 7459 height: parseInt(that.element.css("height"), 10), 7460 top: parseInt(that.element.css("top"), 10), 7461 left: parseInt(that.element.css("left"), 10) 7462 }; 7463 if (pr && pr.length) { 7464 $(pr[0]).css({ width: data.width, height: data.height }); 7465 } 7466 that._updateCache(data); 7467 that._propagate("resize", event); 7468 } 7469 } 7470 ); 7471 } 7472}); 7473$.ui.plugin.add("resizable", "containment", { 7474 start: function() { 7475 var element, p, co, ch, cw, width, height, 7476 that = $(this).data("ui-resizable"), 7477 o = that.options, 7478 el = that.element, 7479 oc = o.containment, 7480 ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc; 7481 if (!ce) { 7482 return; 7483 } 7484 that.containerElement = $(ce); 7485 if (/document/.test(oc) || oc === document) { 7486 that.containerOffset = { left: 0, top: 0 }; 7487 that.containerPosition = { left: 0, top: 0 }; 7488 that.parentData = {
7489 element: $(document), left: 0, top: 0, 7490 width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight 7491 }; 7492 } 7493 else { 7494 element = $(ce); 7495 p = []; 7496 $([ "Top", "Right", "Left", "Bottom" ]).each(function(i, name) { p[i] = num(element.css("padding" + name)); }); 7497 that.containerOffset = element.offset(); 7498 that.containerPosition = element.position(); 7499 that.containerSize = { height: (element.innerHeight() - p[3]), width: (element.innerWidth() - p[1]) }; 7500 co = that.containerOffset; 7501 ch = that.containerSize.height; 7502 cw = that.containerSize.width; 7503 width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ); 7504 height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch); 7505 that.parentData = { 7506 element: ce, left: co.left, top: co.top, width: width, height: height 7507 }; 7508 } 7509 }, 7510 resize: function( event ) { 7511 var woset, hoset, isParent, isOffsetRelative, 7512 that = $(this).data("ui-resizable"), 7513 o = that.options, 7514 co = that.containerOffset, cp = that.position, 7515 pRatio = that._aspectRatio || event.shiftKey, 7516 cop = { top:0, left:0 }, ce = that.containerElement; 7517 7518 if (ce[0] !== document && (/static/).test(ce.css("position"))) { 7519 cop = co; 7520 } 7521 if (cp.left < (that._helper ? co.left : 0)) { 7522 that.size.width = that.size.width + (that._helper ? (that.position.left - co.left) : (that.position.left - cop.left)); 7523 if (pRatio) { 7524 that.size.height = that.size.width / that.aspectRatio; 7525 } 7526 that.position.left = o.helper ? co.left : 0; 7527 } 7528 if (cp.top < (that._helper ? co.top : 0)) { 7529 that.size.height = that.size.height + (that._helper ? (that.position.top - co.top) : that.position.top); 7530 if (pRatio) { 7531 that.size.width = that.size.height * that.aspectRatio; 7532 } 7533 that.position.top = that._helper ? co.top : 0; 7534 } 7535 that.offset.left = that.parentData.left+that.position.left; 7536 that.offset.top = that.parentData.top+that.position.top; 7537 woset = Math.abs( (that._helper ? that.offset.left - cop.left : (that.offset.left - cop.left)) + that.sizeDiff.width ); 7538 hoset = Math.abs( (that._helper ? that.offset.top - cop.top : (that.offset.top - co.top)) + that.sizeDiff.height ); 7539 isParent = that.containerElement.get(0) === that.element.parent().get(0); 7540 isOffsetRelative = /relative|absolute/.test(that.containerElement.css("position")); 7541 if ( isParent && isOffsetRelative ) { 7542 woset -= Math.abs( that.parentData.left ); 7543 } 7544 if (woset + that.size.width >= that.parentData.width) { 7545 that.size.width = that.parentData.width - woset; 7546 if (pRatio) { 7547 that.size.height = that.size.width / that.aspectRatio; 7548 } 7549 } 7550 if (hoset + that.size.height >= that.parentData.height) { 7551 that.size.height = that.parentData.height - hoset; 7552 if (pRatio) { 7553 that.size.width = that.size.height * that.aspectRatio; 7554 } 7555 } 7556 }, 7557 stop: function(){ 7558 var that = $(this).data("ui-resizable"), 7559 o = that.options, 7560 co = that.containerOffset, 7561 cop = that.containerPosition, 7562 ce = that.containerElement, 7563 helper = $(that.helper), 7564 ho = helper.offset(), 7565 w = helper.outerWidth() - that.sizeDiff.width, 7566 h = helper.outerHeight() - that.sizeDiff.height; 7567 if (that._helper && !o.animate && (/relative/).test(ce.css("position"))) { 7568 $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); 7569 } 7570 if (that._helper && !o.animate && (/static/).test(ce.css("position"))) { 7571 $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); 7572 } 7573 } 7574}); 7575$.ui.plugin.add("resizable", "alsoResize", { 7576 start: function () { 7577 var that = $(this).data("ui-resizable"), 7578 o = that.options, 7579 _store = function (exp) { 7580 $(exp).each(function() { 7581 var el = $(this); 7582 el.data("ui-resizable-alsoresize", { 7583 width: parseInt(el.width(), 10), height: parseInt(el.height(), 10), 7584 left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10) 7585 }); 7586 }); 7587 }; 7588 if (typeof(o.alsoResize) === "object" && !o.alsoResize.parentNode) { 7589 if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); } 7590 else { $.each(o.alsoResize, function (exp) { _store(exp); }); } 7591 }else{ 7592 _store(o.alsoResize); 7593 } 7594 }, 7595 resize: function (event, ui) { 7596 var that = $(this).data("ui-resizable"), 7597 o = that.options, 7598 os = that.originalSize, 7599 op = that.originalPosition, 7600 delta = { 7601 height: (that.size.height - os.height) || 0, width: (that.size.width - os.width) || 0, 7602 top: (that.position.top - op.top) || 0, left: (that.position.left - op.left) || 0 7603 }, 7604 _alsoResize = function (exp, c) { 7605 $(exp).each(function() { 7606 var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {}, 7607 css = c && c.length ? c : el.parents(ui.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"];
vendor: 10,866 bytes, lines 7608-7971
7608 $.each(css, function (i, prop) { 7609 var sum = (start[prop]||0) + (delta[prop]||0); 7610 if (sum && sum >= 0) { 7611 style[prop] = sum || null; 7612 } 7613 }); 7614 el.css(style); 7615 }); 7616 }; 7617 if (typeof(o.alsoResize) === "object" && !o.alsoResize.nodeType) { 7618 $.each(o.alsoResize, function (exp, c) { _alsoResize(exp, c); }); 7619 }else{ 7620 _alsoResize(o.alsoResize); 7621 } 7622 }, 7623 stop: function () { 7624 $(this).removeData("resizable-alsoresize"); 7625 } 7626}); 7627$.ui.plugin.add("resizable", "ghost", { 7628 start: function() { 7629 var that = $(this).data("ui-resizable"), o = that.options, cs = that.size; 7630 that.ghost = that.originalElement.clone(); 7631 that.ghost 7632 .css({ opacity: 0.25, display: "block", position: "relative", height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 }) 7633 .addClass("ui-resizable-ghost") 7634 .addClass(typeof o.ghost === "string" ? o.ghost : ""); 7635 that.ghost.appendTo(that.helper); 7636 }, 7637 resize: function(){ 7638 var that = $(this).data("ui-resizable"); 7639 if (that.ghost) { 7640 that.ghost.css({ position: "relative", height: that.size.height, width: that.size.width }); 7641 } 7642 }, 7643 stop: function() { 7644 var that = $(this).data("ui-resizable"); 7645 if (that.ghost && that.helper) { 7646 that.helper.get(0).removeChild(that.ghost.get(0)); 7647 } 7648 } 7649}); 7650$.ui.plugin.add("resizable", "grid", { 7651 resize: function() { 7652 var that = $(this).data("ui-resizable"), 7653 o = that.options, 7654 cs = that.size, 7655 os = that.originalSize, 7656 op = that.originalPosition, 7657 a = that.axis, 7658 grid = typeof o.grid === "number" ? [o.grid, o.grid] : o.grid, 7659 gridX = (grid[0]||1), 7660 gridY = (grid[1]||1), 7661 ox = Math.round((cs.width - os.width) / gridX) * gridX, 7662 oy = Math.round((cs.height - os.height) / gridY) * gridY, 7663 newWidth = os.width + ox, 7664 newHeight = os.height + oy, 7665 isMaxWidth = o.maxWidth && (o.maxWidth < newWidth), 7666 isMaxHeight = o.maxHeight && (o.maxHeight < newHeight), 7667 isMinWidth = o.minWidth && (o.minWidth > newWidth), 7668 isMinHeight = o.minHeight && (o.minHeight > newHeight); 7669 o.grid = grid; 7670 if (isMinWidth) { 7671 newWidth = newWidth + gridX; 7672 } 7673 if (isMinHeight) { 7674 newHeight = newHeight + gridY; 7675 } 7676 if (isMaxWidth) { 7677 newWidth = newWidth - gridX; 7678 } 7679 if (isMaxHeight) { 7680 newHeight = newHeight - gridY; 7681 } 7682 if (/^(se|s|e)$/.test(a)) { 7683 that.size.width = newWidth; 7684 that.size.height = newHeight; 7685 } else if (/^(ne)$/.test(a)) { 7686 that.size.width = newWidth; 7687 that.size.height = newHeight; 7688 that.position.top = op.top - oy; 7689 } else if (/^(sw)$/.test(a)) { 7690 that.size.width = newWidth; 7691 that.size.height = newHeight; 7692 that.position.left = op.left - ox; 7693 } else { 7694 if ( newHeight - gridY > 0 ) { 7695 that.size.height = newHeight; 7696 that.position.top = op.top - oy; 7697 } else { 7698 that.size.height = gridY; 7699 that.position.top = op.top + os.height - gridY; 7700 } 7701 if ( newWidth - gridX > 0 ) { 7702 that.size.width = newWidth; 7703 that.position.left = op.left - ox; 7704 } else { 7705 that.size.width = gridX; 7706 that.position.left = op.left + os.width - gridX; 7707 } 7708 } 7709 } 7710}); 7711})(jQuery); 7712(function( $, undefined ) { 7713var lastActive, 7714 baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", 7715 typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only", 7716 formResetHandler = function() { 7717 var form = $( this ); 7718 setTimeout(function() { 7719 form.find( ":ui-button" ).button( "refresh" ); 7720 }, 1 ); 7721 }, 7722 radioGroup = function( radio ) { 7723 var name = radio.name, 7724 form = radio.form, 7725 radios = $( [] ); 7726 if ( name ) { 7727 name = name.replace( /'/g, "\\'" ); 7728 if ( form ) { 7729 radios = $( form ).find( "[name='" + name + "']" ); 7730 } else { 7731 radios = $( "[name='" + name + "']", radio.ownerDocument ) 7732 .filter(function() { 7733 return !this.form; 7734 }); 7735 } 7736 } 7737 return radios; 7738 }; 7739$.widget( "ui.button", { 7740 version: "1.10.4", 7741 defaultElement: "<button>", 7742 options: { 7743 disabled: null, 7744 text: true, 7745 label: null, 7746 icons: { 7747 primary: null, 7748 secondary: null 7749 } 7750 }, 7751 _create: function() { 7752 this.element.closest( "form" ) 7753 .unbind( "reset" + this.eventNamespace ) 7754 .bind( "reset" + this.eventNamespace, formResetHandler ); 7755 if ( typeof this.options.disabled !== "boolean" ) { 7756 this.options.disabled = !!this.element.prop( "disabled" ); 7757 } else { 7758 this.element.prop( "disabled", this.options.disabled ); 7759 } 7760 this._determineButtonType(); 7761 this.hasTitle = !!this.buttonElement.attr( "title" ); 7762 var that = this, 7763 options = this.options, 7764 toggleButton = this.type === "checkbox" || this.type === "radio", 7765 activeClass = !toggleButton ? "ui-state-active" : ""; 7766 if ( options.label === null ) { 7767 options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html()); 7768 } 7769 this._hoverable( this.buttonElement ); 7770 this.buttonElement 7771 .addClass( baseClasses ) 7772 .attr( "role", "button" ) 7773 .bind( "mouseenter" + this.eventNamespace, function() { 7774 if ( options.disabled ) { 7775 return; 7776 } 7777 if ( this === lastActive ) { 7778 $( this ).addClass( "ui-state-active" ); 7779 } 7780 }) 7781 .bind( "mouseleave" + this.eventNamespace, function() { 7782 if ( options.disabled ) { 7783 return; 7784 } 7785 $( this ).removeClass( activeClass ); 7786 }) 7787 .bind( "click" + this.eventNamespace, function( event ) { 7788 if ( options.disabled ) { 7789 event.preventDefault(); 7790 event.stopImmediatePropagation(); 7791 } 7792 }); 7793 this._on({ 7794 focus: function() { 7795 this.buttonElement.addClass( "ui-state-focus" ); 7796 }, 7797 blur: function() { 7798 this.buttonElement.removeClass( "ui-state-focus" ); 7799 } 7800 }); 7801 if ( toggleButton ) { 7802 this.element.bind( "change" + this.eventNamespace, function() { 7803 that.refresh(); 7804 }); 7805 } 7806 if ( this.type === "checkbox" ) { 7807 this.buttonElement.bind( "click" + this.eventNamespace, function() { 7808 if ( options.disabled ) { 7809 return false; 7810 } 7811 }); 7812 } else if ( this.type === "radio" ) { 7813 this.buttonElement.bind( "click" + this.eventNamespace, function() { 7814 if ( options.disabled ) { 7815 return false; 7816 } 7817 $( this ).addClass( "ui-state-active" ); 7818 that.buttonElement.attr( "aria-pressed", "true" ); 7819 7820 var radio = that.element[ 0 ]; 7821 radioGroup( radio ) 7822 .not( radio ) 7823 .map(function() { 7824 return $( this ).button( "widget" )[ 0 ]; 7825 }) 7826 .removeClass( "ui-state-active" ) 7827 .attr( "aria-pressed", "false" ); 7828 }); 7829 } else { 7830 this.buttonElement 7831 .bind( "mousedown" + this.eventNamespace, function() { 7832 if ( options.disabled ) { 7833 return false; 7834 } 7835 $( this ).addClass( "ui-state-active" ); 7836 lastActive = this; 7837 that.document.one( "mouseup", function() { 7838 lastActive = null; 7839 }); 7840 }) 7841 .bind( "mouseup" + this.eventNamespace, function() { 7842 if ( options.disabled ) { 7843 return false; 7844 } 7845 $( this ).removeClass( "ui-state-active" ); 7846 }) 7847 .bind( "keydown" + this.eventNamespace, function(event) { 7848 if ( options.disabled ) { 7849 return false; 7850 } 7851 if ( event.keyCode === $.ui.keyCode.SPACE || event.keyCode === $.ui.keyCode.ENTER ) { 7852 $( this ).addClass( "ui-state-active" ); 7853 } 7854 }) 7855 .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() { 7856 $( this ).removeClass( "ui-state-active" ); 7857 }); 7858 if ( this.buttonElement.is("a") ) { 7859 this.buttonElement.keyup(function(event) { 7860 if ( event.keyCode === $.ui.keyCode.SPACE ) { 7861 $( this ).click(); 7862 } 7863 }); 7864 } 7865 } 7866 this._setOption( "disabled", options.disabled ); 7867 this._resetButton(); 7868 }, 7869 _determineButtonType: function() { 7870 var ancestor, labelSelector, checked; 7871 if ( this.element.is("[type=checkbox]") ) { 7872 this.type = "checkbox"; 7873 } else if ( this.element.is("[type=radio]") ) { 7874 this.type = "radio"; 7875 } else if ( this.element.is("input") ) { 7876 this.type = "input"; 7877 } else { 7878 this.type = "button"; 7879 } 7880 if ( this.type === "checkbox" || this.type === "radio" ) { 7881 ancestor = this.element.parents().last(); 7882 labelSelector = "label[for='" + this.element.attr("id") + "']"; 7883 this.buttonElement = ancestor.find( labelSelector ); 7884 if ( !this.buttonElement.length ) { 7885 ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings(); 7886 this.buttonElement = ancestor.filter( labelSelector ); 7887 if ( !this.buttonElement.length ) { 7888 this.buttonElement = ancestor.find( labelSelector ); 7889 } 7890 } 7891 this.element.addClass( "ui-helper-hidden-accessible" ); 7892 checked = this.element.is( ":checked" ); 7893 if ( checked ) { 7894 this.buttonElement.addClass( "ui-state-active" ); 7895 } 7896 this.buttonElement.prop( "aria-pressed", checked ); 7897 } else { 7898 this.buttonElement = this.element; 7899 } 7900 }, 7901 widget: function() { 7902 return this.buttonElement; 7903 }, 7904 _destroy: function() { 7905 this.element 7906 .removeClass( "ui-helper-hidden-accessible" ); 7907 this.buttonElement 7908 .removeClass( baseClasses + " ui-state-active " + typeClasses ) 7909 .removeAttr( "role" ) 7910 .removeAttr( "aria-pressed" ) 7911 .html( this.buttonElement.find(".ui-button-text").html() ); 7912 7913 if ( !this.hasTitle ) { 7914 this.buttonElement.removeAttr( "title" ); 7915 } 7916 }, 7917 _setOption: function( key, value ) { 7918 this._super( key, value ); 7919 if ( key === "disabled" ) { 7920 this.element.prop( "disabled", !!value ); 7921 if ( value ) { 7922 this.buttonElement.removeClass( "ui-state-focus" ); 7923 } 7924 return; 7925 } 7926 this._resetButton(); 7927 }, 7928 refresh: function() { 7929 var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" ); 7930 if ( isDisabled !== this.options.disabled ) { 7931 this._setOption( "disabled", isDisabled ); 7932 } 7933 if ( this.type === "radio" ) { 7934 radioGroup( this.element[0] ).each(function() { 7935 if ( $( this ).is( ":checked" ) ) { 7936 $( this ).button( "widget" ) 7937 .addClass( "ui-state-active" ) 7938 .attr( "aria-pressed", "true" ); 7939 } else { 7940 $( this ).button( "widget" ) 7941 .removeClass( "ui-state-active" ) 7942 .attr( "aria-pressed", "false" ); 7943 } 7944 }); 7945 } else if ( this.type === "checkbox" ) { 7946 if ( this.element.is( ":checked" ) ) { 7947 this.buttonElement 7948 .addClass( "ui-state-active" ) 7949 .attr( "aria-pressed", "true" ); 7950 } else { 7951 this.buttonElement 7952 .removeClass( "ui-state-active" ) 7953 .attr( "aria-pressed", "false" ); 7954 } 7955 } 7956 }, 7957 _resetButton: function() { 7958 if ( this.type === "input" ) { 7959 if ( this.options.label ) { 7960 this.element.val( this.options.label ); 7961 } 7962 return; 7963 } 7964 var buttonElement = this.buttonElement.removeClass( typeClasses ), 7965 buttonText = $( "<span></span>", this.document[0] ) 7966 .addClass( "ui-button-text" ) 7967 .html( this.options.label ) 7968 .appendTo( buttonElement.empty() ) 7969 .text(), 7970 icons = this.options.icons, 7971 multipleIcons = icons.primary && icons.secondary,
vendor: 4,703 bytes, lines 7972-8126
7972 buttonClasses = []; 7973 if ( icons.primary || icons.secondary ) { 7974 if ( this.options.text ) { 7975 buttonClasses.push( "ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) ); 7976 } 7977 if ( icons.primary ) { 7978 buttonElement.prepend( "<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>" ); 7979 } 7980 if ( icons.secondary ) { 7981 buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" ); 7982 } 7983 if ( !this.options.text ) { 7984 buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" ); 7985 if ( !this.hasTitle ) { 7986 buttonElement.attr( "title", $.trim( buttonText ) ); 7987 } 7988 } 7989 } else { 7990 buttonClasses.push( "ui-button-text-only" ); 7991 } 7992 buttonElement.addClass( buttonClasses.join( " " ) ); 7993 } 7994}); 7995$.widget( "ui.buttonset", { 7996 version: "1.10.4", 7997 options: { 7998 items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)" 7999 }, 8000 _create: function() { 8001 this.element.addClass( "ui-buttonset" ); 8002 }, 8003 _init: function() { 8004 this.refresh(); 8005 }, 8006 _setOption: function( key, value ) { 8007 if ( key === "disabled" ) { 8008 this.buttons.button( "option", key, value ); 8009 } 8010 this._super( key, value ); 8011 }, 8012 refresh: function() { 8013 var rtl = this.element.css( "direction" ) === "rtl"; 8014 this.buttons = this.element.find( this.options.items ) 8015 .filter( ":ui-button" ) 8016 .button( "refresh" ) 8017 .end() 8018 .not( ":ui-button" ) 8019 .button() 8020 .end() 8021 .map(function() { 8022 return $( this ).button( "widget" )[ 0 ]; 8023 }) 8024 .removeClass( "ui-corner-all ui-corner-left ui-corner-right" ) 8025 .filter( ":first" ) 8026 .addClass( rtl ? "ui-corner-right" : "ui-corner-left" ) 8027 .end() 8028 .filter( ":last" ) 8029 .addClass( rtl ? "ui-corner-left" : "ui-corner-right" ) 8030 .end() 8031 .end(); 8032 }, 8033 _destroy: function() { 8034 this.element.removeClass( "ui-buttonset" ); 8035 this.buttons 8036 .map(function() { 8037 return $( this ).button( "widget" )[ 0 ]; 8038 }) 8039 .removeClass( "ui-corner-left ui-corner-right" ) 8040 .end() 8041 .button( "destroy" ); 8042 } 8043}); 8044}( jQuery ) ); 8045(function( $, undefined ) { 8046$.extend($.ui, { datepicker: { version: "1.10.4" } }); 8047var PROP_NAME = "datepicker", 8048 instActive; 8049function Datepicker() { 8050 this._curInst = null; 8051 this._keyEvent = false; 8052 this._disabledInputs = []; 8053 this._datepickerShowing = false; 8054 this._inDialog = false; 8055 this._mainDivId = "ui-datepicker-div"; 8056 this._inlineClass = "ui-datepicker-inline"; 8057 this._appendClass = "ui-datepicker-append"; 8058 this._triggerClass = "ui-datepicker-trigger"; 8059 this._dialogClass = "ui-datepicker-dialog"; 8060 this._disableClass = "ui-datepicker-disabled"; 8061 this._unselectableClass = "ui-datepicker-unselectable"; 8062 this._currentClass = "ui-datepicker-current-day"; 8063 this._dayOverClass = "ui-datepicker-days-cell-over"; 8064 this.regional = []; 8065 this.regional[""] = { 8066 closeText: "Done", 8067 prevText: "Prev", 8068 nextText: "Next", 8069 currentText: "Today", 8070 monthNames: ["January","February","March","April","May","June", 8071 "July","August","September","October","November","December"], 8072 monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 8073 dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], 8074 dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 8075 dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"], 8076 weekHeader: "Wk", 8077 dateFormat: "mm/dd/yy", 8078 firstDay: 0, 8079 isRTL: false, 8080 showMonthAfterYear: false, 8081 yearSuffix: "" 8082 }; 8083 this._defaults = { 8084 showOn: "focus", 8085 showAnim: "show", 8086 showOptions: {}, 8087 defaultDate: null, 8088 appendText: "", 8089 buttonText: "...", 8090 buttonImage: "", 8091 buttonImageOnly: false, 8092 hideIfNoPrevNext: false, 8093 navigationAsDateFormat: false, 8094 gotoCurrent: false, 8095 changeMonth: false, 8096 changeYear: false, 8097 yearRange: "c-10:c+10", 8098 showOtherMonths: false, 8099 selectOtherMonths: false, 8100 showWeek: false, 8101 calculateWeek: this.iso8601Week, 8102 shortYearCutoff: "+10", 8103 minDate: null, 8104 maxDate: null, 8105 duration: "fast", 8106 beforeShowDay: null, 8107 beforeShow: null, 8108 onSelect: null, 8109 onChangeMonthYear: null, 8110 onClose: null, 8111 numberOfMonths: 1, 8112 showCurrentAtPos: 0, 8113 stepMonths: 1, 8114 stepBigMonths: 12, 8115 altField: "", 8116 altFormat: "", 8117 constrainInput: true, 8118 showButtonPanel: false, 8119 autoSize: false, 8120 disabled: false 8121 }; 8122 $.extend(this._defaults, this.regional[""]); 8123 this.dpDiv = bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")); 8124} 8125$.extend(Datepicker.prototype, { 8126 markerClassName: "hasDatepicker",
vendor: 6,228 bytes, lines 8127-8304
8127 maxRows: 4, 8128 _widgetDatepicker: function() { 8129 return this.dpDiv; 8130 }, 8131 setDefaults: function(settings) { 8132 extendRemove(this._defaults, settings || {}); 8133 return this; 8134 }, 8135 _attachDatepicker: function(target, settings) { 8136 var nodeName, inline, inst; 8137 nodeName = target.nodeName.toLowerCase(); 8138 inline = (nodeName === "div" || nodeName === "span"); 8139 if (!target.id) { 8140 this.uuid += 1; 8141 target.id = "dp" + this.uuid; 8142 } 8143 inst = this._newInst($(target), inline); 8144 inst.settings = $.extend({}, settings || {}); 8145 if (nodeName === "input") { 8146 this._connectDatepicker(target, inst); 8147 } else if (inline) { 8148 this._inlineDatepicker(target, inst); 8149 } 8150 }, 8151 _newInst: function(target, inline) { 8152 var id = target[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"); 8153 return {id: id, input: target, 8154 selectedDay: 0, selectedMonth: 0, selectedYear: 0, 8155 drawMonth: 0, drawYear: 0, 8156 inline: inline, 8157 dpDiv: (!inline ? this.dpDiv : 8158 bindHover($("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))}; 8159 }, 8160 _connectDatepicker: function(target, inst) { 8161 var input = $(target); 8162 inst.append = $([]); 8163 inst.trigger = $([]); 8164 if (input.hasClass(this.markerClassName)) { 8165 return; 8166 } 8167 this._attachments(input, inst); 8168 input.addClass(this.markerClassName).keydown(this._doKeyDown). 8169 keypress(this._doKeyPress).keyup(this._doKeyUp); 8170 this._autoSize(inst); 8171 $.data(target, PROP_NAME, inst); 8172 if( inst.settings.disabled ) { 8173 this._disableDatepicker( target ); 8174 } 8175 }, 8176 _attachments: function(input, inst) { 8177 var showOn, buttonText, buttonImage, 8178 appendText = this._get(inst, "appendText"), 8179 isRTL = this._get(inst, "isRTL"); 8180 if (inst.append) { 8181 inst.append.remove(); 8182 } 8183 if (appendText) { 8184 inst.append = $("<span class='" + this._appendClass + "'>" + appendText + "</span>"); 8185 input[isRTL ? "before" : "after"](inst.append); 8186 } 8187 input.unbind("focus", this._showDatepicker); 8188 if (inst.trigger) { 8189 inst.trigger.remove(); 8190 } 8191 showOn = this._get(inst, "showOn"); 8192 if (showOn === "focus" || showOn === "both") { 8193 input.focus(this._showDatepicker); 8194 } 8195 if (showOn === "button" || showOn === "both") { 8196 buttonText = this._get(inst, "buttonText"); 8197 buttonImage = this._get(inst, "buttonImage"); 8198 inst.trigger = $(this._get(inst, "buttonImageOnly") ? 8199 $("<img/>").addClass(this._triggerClass). 8200 attr({ src: buttonImage, alt: buttonText, title: buttonText }) : 8201 $("<button type='button'></button>").addClass(this._triggerClass). 8202 html(!buttonImage ? buttonText : $("<img/>").attr( 8203 { src:buttonImage, alt:buttonText, title:buttonText }))); 8204 input[isRTL ? "before" : "after"](inst.trigger); 8205 inst.trigger.click(function() { 8206 if ($.datepicker._datepickerShowing && $.datepicker._lastInput === input[0]) { 8207 $.datepicker._hideDatepicker(); 8208 } else if ($.datepicker._datepickerShowing && $.datepicker._lastInput !== input[0]) { 8209 $.datepicker._hideDatepicker(); 8210 $.datepicker._showDatepicker(input[0]); 8211 } else { 8212 $.datepicker._showDatepicker(input[0]); 8213 } 8214 return false; 8215 }); 8216 } 8217 }, 8218 _autoSize: function(inst) { 8219 if (this._get(inst, "autoSize") && !inst.inline) { 8220 var findMax, max, maxI, i, 8221 date = new Date(2009, 12 - 1, 20), 8222 dateFormat = this._get(inst, "dateFormat"); 8223 if (dateFormat.match(/[DM]/)) { 8224 findMax = function(names) { 8225 max = 0; 8226 maxI = 0; 8227 for (i = 0; i < names.length; i++) { 8228 if (names[i].length > max) { 8229 max = names[i].length; 8230 maxI = i; 8231 } 8232 } 8233 return maxI; 8234 }; 8235 date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ? 8236 "monthNames" : "monthNamesShort")))); 8237 date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ? 8238 "dayNames" : "dayNamesShort"))) + 20 - date.getDay()); 8239 } 8240 inst.input.attr("size", this._formatDate(inst, date).length); 8241 } 8242 }, 8243 _inlineDatepicker: function(target, inst) { 8244 var divSpan = $(target); 8245 if (divSpan.hasClass(this.markerClassName)) { 8246 return; 8247 } 8248 divSpan.addClass(this.markerClassName).append(inst.dpDiv); 8249 $.data(target, PROP_NAME, inst); 8250 this._setDate(inst, this._getDefaultDate(inst), true); 8251 this._updateDatepicker(inst); 8252 this._updateAlternate(inst); 8253 if( inst.settings.disabled ) { 8254 this._disableDatepicker( target ); 8255 } 8256 inst.dpDiv.css( "display", "block" ); 8257 }, 8258 _dialogDatepicker: function(input, date, onSelect, settings, pos) { 8259 var id, browserWidth, browserHeight, scrollX, scrollY, 8260 inst = this._dialogInst; 8261 if (!inst) { 8262 this.uuid += 1; 8263 id = "dp" + this.uuid; 8264 this._dialogInput = $("<input type='text' id='" + id + 8265 "' style='position: absolute; top: -100px; width: 0px;'/>"); 8266 this._dialogInput.keydown(this._doKeyDown); 8267 $("body").append(this._dialogInput); 8268 inst = this._dialogInst = this._newInst(this._dialogInput, false); 8269 inst.settings = {}; 8270 $.data(this._dialogInput[0], PROP_NAME, inst); 8271 } 8272 extendRemove(inst.settings, settings || {}); 8273 date = (date && date.constructor === Date ? this._formatDate(inst, date) : date); 8274 this._dialogInput.val(date); 8275 this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null); 8276 if (!this._pos) { 8277 browserWidth = document.documentElement.clientWidth; 8278 browserHeight = document.documentElement.clientHeight; 8279 scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; 8280 scrollY = document.documentElement.scrollTop || document.body.scrollTop; 8281 this._pos = 8282 [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY]; 8283 } 8284 this._dialogInput.css("left", (this._pos[0] + 20) + "px").css("top", this._pos[1] + "px"); 8285 inst.settings.onSelect = onSelect; 8286 this._inDialog = true; 8287 this.dpDiv.addClass(this._dialogClass); 8288 this._showDatepicker(this._dialogInput[0]); 8289 if ($.blockUI) { 8290 $.blockUI(this.dpDiv); 8291 } 8292 $.data(this._dialogInput[0], PROP_NAME, inst); 8293 return this; 8294 }, 8295 _destroyDatepicker: function(target) { 8296 var nodeName, 8297 $target = $(target), 8298 inst = $.data(target, PROP_NAME); 8299 if (!$target.hasClass(this.markerClassName)) { 8300 return; 8301 } 8302 nodeName = target.nodeName.toLowerCase(); 8303 $.removeData(target, PROP_NAME); 8304 if (nodeName === "input") {
vendor: 9,764 bytes, lines 8305-8592
8305 inst.append.remove(); 8306 inst.trigger.remove(); 8307 $target.removeClass(this.markerClassName). 8308 unbind("focus", this._showDatepicker). 8309 unbind("keydown", this._doKeyDown). 8310 unbind("keypress", this._doKeyPress). 8311 unbind("keyup", this._doKeyUp); 8312 } else if (nodeName === "div" || nodeName === "span") { 8313 $target.removeClass(this.markerClassName).empty(); 8314 } 8315 }, 8316 _enableDatepicker: function(target) { 8317 var nodeName, inline, 8318 $target = $(target), 8319 inst = $.data(target, PROP_NAME); 8320 if (!$target.hasClass(this.markerClassName)) { 8321 return; 8322 } 8323 nodeName = target.nodeName.toLowerCase(); 8324 if (nodeName === "input") { 8325 target.disabled = false; 8326 inst.trigger.filter("button"). 8327 each(function() { this.disabled = false; }).end(). 8328 filter("img").css({opacity: "1.0", cursor: ""}); 8329 } else if (nodeName === "div" || nodeName === "span") { 8330 inline = $target.children("." + this._inlineClass); 8331 inline.children().removeClass("ui-state-disabled"); 8332 inline.find("select.ui-datepicker-month, select.ui-datepicker-year"). 8333 prop("disabled", false); 8334 } 8335 this._disabledInputs = $.map(this._disabledInputs, 8336 function(value) { return (value === target ? null : value); }); // delete entry 8337 }, 8338 _disableDatepicker: function(target) { 8339 var nodeName, inline, 8340 $target = $(target), 8341 inst = $.data(target, PROP_NAME); 8342 if (!$target.hasClass(this.markerClassName)) { 8343 return; 8344 } 8345 nodeName = target.nodeName.toLowerCase(); 8346 if (nodeName === "input") { 8347 target.disabled = true; 8348 inst.trigger.filter("button"). 8349 each(function() { this.disabled = true; }).end(). 8350 filter("img").css({opacity: "0.5", cursor: "default"}); 8351 } else if (nodeName === "div" || nodeName === "span") { 8352 inline = $target.children("." + this._inlineClass); 8353 inline.children().addClass("ui-state-disabled"); 8354 inline.find("select.ui-datepicker-month, select.ui-datepicker-year"). 8355 prop("disabled", true); 8356 } 8357 this._disabledInputs = $.map(this._disabledInputs, 8358 function(value) { return (value === target ? null : value); }); 8359 this._disabledInputs[this._disabledInputs.length] = target; 8360 }, 8361 _isDisabledDatepicker: function(target) { 8362 if (!target) { 8363 return false; 8364 } 8365 for (var i = 0; i < this._disabledInputs.length; i++) { 8366 if (this._disabledInputs[i] === target) { 8367 return true; 8368 } 8369 } 8370 return false; 8371 }, 8372 _getInst: function(target) { 8373 try { 8374 return $.data(target, PROP_NAME); 8375 } 8376 catch (err) { 8377 throw "Missing instance data for this datepicker"; 8378 } 8379 }, 8380 _optionDatepicker: function(target, name, value) { 8381 var settings, date, minDate, maxDate, 8382 inst = this._getInst(target); 8383 if (arguments.length === 2 && typeof name === "string") { 8384 return (name === "defaults" ? $.extend({}, $.datepicker._defaults) : 8385 (inst ? (name === "all" ? $.extend({}, inst.settings) : 8386 this._get(inst, name)) : null)); 8387 } 8388 settings = name || {}; 8389 if (typeof name === "string") { 8390 settings = {}; 8391 settings[name] = value; 8392 } 8393 if (inst) { 8394 if (this._curInst === inst) { 8395 this._hideDatepicker(); 8396 } 8397 date = this._getDateDatepicker(target, true); 8398 minDate = this._getMinMaxDate(inst, "min"); 8399 maxDate = this._getMinMaxDate(inst, "max"); 8400 extendRemove(inst.settings, settings); 8401 if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) { 8402 inst.settings.minDate = this._formatDate(inst, minDate); 8403 } 8404 if (maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined) { 8405 inst.settings.maxDate = this._formatDate(inst, maxDate); 8406 } 8407 if ( "disabled" in settings ) { 8408 if ( settings.disabled ) { 8409 this._disableDatepicker(target); 8410 } else { 8411 this._enableDatepicker(target); 8412 } 8413 } 8414 this._attachments($(target), inst); 8415 this._autoSize(inst); 8416 this._setDate(inst, date); 8417 this._updateAlternate(inst); 8418 this._updateDatepicker(inst); 8419 } 8420 }, 8421 _changeDatepicker: function(target, name, value) { 8422 this._optionDatepicker(target, name, value); 8423 }, 8424 _refreshDatepicker: function(target) { 8425 var inst = this._getInst(target); 8426 if (inst) { 8427 this._updateDatepicker(inst); 8428 } 8429 }, 8430 _setDateDatepicker: function(target, date) { 8431 var inst = this._getInst(target); 8432 if (inst) { 8433 this._setDate(inst, date); 8434 this._updateDatepicker(inst); 8435 this._updateAlternate(inst); 8436 } 8437 }, 8438 _getDateDatepicker: function(target, noDefault) { 8439 var inst = this._getInst(target); 8440 if (inst && !inst.inline) { 8441 this._setDateFromField(inst, noDefault); 8442 } 8443 return (inst ? this._getDate(inst) : null); 8444 }, 8445 _doKeyDown: function(event) { 8446 var onSelect, dateStr, sel, 8447 inst = $.datepicker._getInst(event.target), 8448 handled = true, 8449 isRTL = inst.dpDiv.is(".ui-datepicker-rtl"); 8450 inst._keyEvent = true; 8451 if ($.datepicker._datepickerShowing) { 8452 switch (event.keyCode) { 8453 case 9: $.datepicker._hideDatepicker(); 8454 handled = false; 8455 break; // hide on tab out 8456 case 13: sel = $("td." + $.datepicker._dayOverClass + ":not(." + 8457 $.datepicker._currentClass + ")", inst.dpDiv); 8458 if (sel[0]) { 8459 $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]); 8460 } 8461 onSelect = $.datepicker._get(inst, "onSelect"); 8462 if (onSelect) { 8463 dateStr = $.datepicker._formatDate(inst); 8464 onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); 8465 } else { 8466 $.datepicker._hideDatepicker(); 8467 } 8468 return false; 8469 case 27: $.datepicker._hideDatepicker(); 8470 break; 8471 case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ? 8472 -$.datepicker._get(inst, "stepBigMonths") : 8473 -$.datepicker._get(inst, "stepMonths")), "M"); 8474 break; 8475 case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ? 8476 +$.datepicker._get(inst, "stepBigMonths") : 8477 +$.datepicker._get(inst, "stepMonths")), "M"); 8478 break; 8479 case 35: if (event.ctrlKey || event.metaKey) { 8480 $.datepicker._clearDate(event.target); 8481 } 8482 handled = event.ctrlKey || event.metaKey; 8483 break; 8484 case 36: if (event.ctrlKey || event.metaKey) { 8485 $.datepicker._gotoToday(event.target); 8486 } 8487 handled = event.ctrlKey || event.metaKey; 8488 break; 8489 case 37: if (event.ctrlKey || event.metaKey) { 8490 $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), "D"); 8491 } 8492 handled = event.ctrlKey || event.metaKey; 8493 if (event.originalEvent.altKey) { 8494 $.datepicker._adjustDate(event.target, (event.ctrlKey ? 8495 -$.datepicker._get(inst, "stepBigMonths") : 8496 -$.datepicker._get(inst, "stepMonths")), "M"); 8497 } 8498 break; 8499 case 38: if (event.ctrlKey || event.metaKey) { 8500 $.datepicker._adjustDate(event.target, -7, "D"); 8501 } 8502 handled = event.ctrlKey || event.metaKey; 8503 break; // -1 week on ctrl or command +up 8504 case 39: if (event.ctrlKey || event.metaKey) { 8505 $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), "D"); 8506 } 8507 handled = event.ctrlKey || event.metaKey; 8508 if (event.originalEvent.altKey) { 8509 $.datepicker._adjustDate(event.target, (event.ctrlKey ? 8510 +$.datepicker._get(inst, "stepBigMonths") : 8511 +$.datepicker._get(inst, "stepMonths")), "M"); 8512 } 8513 break; 8514 case 40: if (event.ctrlKey || event.metaKey) { 8515 $.datepicker._adjustDate(event.target, +7, "D"); 8516 } 8517 handled = event.ctrlKey || event.metaKey; 8518 break; 8519 default: handled = false; 8520 } 8521 } else if (event.keyCode === 36 && event.ctrlKey) { 8522 $.datepicker._showDatepicker(this); 8523 } else { 8524 handled = false; 8525 } 8526 if (handled) { 8527 event.preventDefault(); 8528 event.stopPropagation(); 8529 } 8530 }, 8531 _doKeyPress: function(event) { 8532 var chars, chr, 8533 inst = $.datepicker._getInst(event.target); 8534 if ($.datepicker._get(inst, "constrainInput")) { 8535 chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat")); 8536 chr = String.fromCharCode(event.charCode == null ? event.keyCode : event.charCode); 8537 return event.ctrlKey || event.metaKey || (chr < " " || !chars || chars.indexOf(chr) > -1); 8538 } 8539 }, 8540 _doKeyUp: function(event) { 8541 var date, 8542 inst = $.datepicker._getInst(event.target); 8543 if (inst.input.val() !== inst.lastVal) { 8544 try { 8545 date = $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"), 8546 (inst.input ? inst.input.val() : null), 8547 $.datepicker._getFormatConfig(inst)); 8548 if (date) { 8549 $.datepicker._setDateFromField(inst); 8550 $.datepicker._updateAlternate(inst); 8551 $.datepicker._updateDatepicker(inst); 8552 } 8553 } 8554 catch (err) { 8555 } 8556 } 8557 return true; 8558 }, 8559 _showDatepicker: function(input) { 8560 input = input.target || input; 8561 if (input.nodeName.toLowerCase() !== "input") { 8562 input = $("input", input.parentNode)[0]; 8563 } 8564 if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput === input) { 8565 return; 8566 } 8567 var inst, beforeShow, beforeShowSettings, isFixed, 8568 offset, showAnim, duration; 8569 inst = $.datepicker._getInst(input); 8570 if ($.datepicker._curInst && $.datepicker._curInst !== inst) { 8571 $.datepicker._curInst.dpDiv.stop(true, true); 8572 if ( inst && $.datepicker._datepickerShowing ) { 8573 $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] ); 8574 } 8575 } 8576 beforeShow = $.datepicker._get(inst, "beforeShow"); 8577 beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {}; 8578 if(beforeShowSettings === false){ 8579 return; 8580 } 8581 extendRemove(inst.settings, beforeShowSettings); 8582 inst.lastVal = null; 8583 $.datepicker._lastInput = input; 8584 $.datepicker._setDateFromField(inst); 8585 if ($.datepicker._inDialog) { // hide cursor 8586 input.value = ""; 8587 } 8588 if (!$.datepicker._pos) { 8589 $.datepicker._pos = $.datepicker._findPos(input); 8590 $.datepicker._pos[1] += input.offsetHeight; 8591 } 8592 isFixed = false;
vendor: 4,824 bytes, lines 8593-8707
8593 $(input).parents().each(function() { 8594 isFixed |= $(this).css("position") === "fixed"; 8595 return !isFixed; 8596 }); 8597 offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]}; 8598 $.datepicker._pos = null; 8599 inst.dpDiv.empty(); 8600 inst.dpDiv.css({position: "absolute", display: "block", top: "-1000px"}); 8601 $.datepicker._updateDatepicker(inst); 8602 offset = $.datepicker._checkOffset(inst, offset, isFixed); 8603 inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ? 8604 "static" : (isFixed ? "fixed" : "absolute")), display: "none", 8605 left: offset.left + "px", top: offset.top + "px"}); 8606 if (!inst.inline) { 8607 showAnim = $.datepicker._get(inst, "showAnim"); 8608 duration = $.datepicker._get(inst, "duration"); 8609 inst.dpDiv.zIndex($(input).zIndex()+1); 8610 $.datepicker._datepickerShowing = true; 8611 if ( $.effects && $.effects.effect[ showAnim ] ) { 8612 inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration); 8613 } else { 8614 inst.dpDiv[showAnim || "show"](null); 8615 frozen_timeout = setTimeout(function(){ 8616 datepicker_frozen = inst.dpDiv.css('display') == 'none' ? true : false; 8617 }, 2000); 8618 } 8619 if ( $.datepicker._shouldFocusInput( inst ) ) { 8620 inst.input.focus(); 8621 } 8622 $.datepicker._curInst = inst; 8623 } 8624 }, 8625 _updateDatepicker: function(inst) { 8626 this.maxRows = 4; 8627 instActive = inst; 8628 inst.dpDiv.empty().append(this._generateHTML(inst)); 8629 this._attachHandlers(inst); 8630 inst.dpDiv.find("." + this._dayOverClass + " a").mouseover(); 8631 var origyearshtml, 8632 numMonths = this._getNumberOfMonths(inst), 8633 cols = numMonths[1], 8634 width = 17; 8635 inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""); 8636 if (cols > 1) { 8637 inst.dpDiv.addClass("ui-datepicker-multi-" + cols).css("width", (width * cols) + "em"); 8638 } 8639 inst.dpDiv[(numMonths[0] !== 1 || numMonths[1] !== 1 ? "add" : "remove") + 8640 "Class"]("ui-datepicker-multi"); 8641 inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") + 8642 "Class"]("ui-datepicker-rtl"); 8643 if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) { 8644 inst.input.focus(); 8645 } 8646 if( inst.yearshtml ){ 8647 origyearshtml = inst.yearshtml; 8648 setTimeout(function(){ 8649 if( origyearshtml === inst.yearshtml && inst.yearshtml ){ 8650 inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml); 8651 } 8652 origyearshtml = inst.yearshtml = null; 8653 }, 0); 8654 } 8655 }, 8656 _shouldFocusInput: function( inst ) { 8657 return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" ); 8658 }, 8659 _checkOffset: function(inst, offset, isFixed) { 8660 var dpWidth = inst.dpDiv.outerWidth(), 8661 dpHeight = inst.dpDiv.outerHeight(), 8662 inputWidth = inst.input ? inst.input.outerWidth() : 0, 8663 inputHeight = inst.input ? inst.input.outerHeight() : 0, 8664 viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()), 8665 viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop()); 8666 offset.left -= (this._get(inst, "isRTL") ? (dpWidth - inputWidth) : 0); 8667 offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0; 8668 offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0; 8669 offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ? 8670 Math.abs(offset.left + dpWidth - viewWidth) : 0); 8671 offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ? 8672 Math.abs(dpHeight + inputHeight) : 0); 8673 return offset; 8674 }, 8675 _findPos: function(obj) { 8676 var position, 8677 inst = this._getInst(obj), 8678 isRTL = this._get(inst, "isRTL"); 8679 while (obj && (obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden(obj))) { 8680 obj = obj[isRTL ? "previousSibling" : "nextSibling"]; 8681 } 8682 position = $(obj).offset(); 8683 return [position.left, position.top]; 8684 }, 8685 _hideDatepicker: function(input) { 8686 var showAnim, duration, postProcess, onClose, 8687 inst = this._curInst; 8688 if (!inst || (input && inst !== $.data(input, PROP_NAME))) { 8689 return; 8690 } 8691 if (this._datepickerShowing) { 8692 showAnim = this._get(inst, "showAnim"); 8693 duration = this._get(inst, "duration"); 8694 postProcess = function() { 8695 $.datepicker._tidyDialog(inst); 8696 }; 8697 if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) { 8698 inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess); 8699 } else { 8700 inst.dpDiv[(showAnim === "slideDown" ? "slideUp" : 8701 (showAnim === "fadeIn" ? "fadeOut" : "hide"))]((null), postProcess); 8702 } 8703 clearTimeout(frozen_timeout); 8704 if (!showAnim) { 8705 postProcess(); 8706 } 8707 this._datepickerShowing = false;
vendor: 4,939 bytes, lines 8708-8855
8708 onClose = this._get(inst, "onClose"); 8709 if (onClose) { 8710 onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst]); 8711 } 8712 this._lastInput = null; 8713 if (this._inDialog) { 8714 this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" }); 8715 if ($.blockUI) { 8716 $.unblockUI(); 8717 $("body").append(this.dpDiv); 8718 } 8719 } 8720 this._inDialog = false; 8721 } 8722 }, 8723 _tidyDialog: function(inst) { 8724 inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar"); 8725 }, 8726 _checkExternalClick: function(event) { 8727 if (!$.datepicker._curInst) { 8728 return; 8729 } 8730 var $target = $(event.target), 8731 inst = $.datepicker._getInst($target[0]); 8732 if ( ( ( $target[0].id !== $.datepicker._mainDivId && 8733 $target.parents("#" + $.datepicker._mainDivId).length === 0 && 8734 !$target.hasClass($.datepicker.markerClassName) && 8735 !$target.closest("." + $.datepicker._triggerClass).length && 8736 $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) || 8737 ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst !== inst ) ) { 8738 $.datepicker._hideDatepicker(); 8739 } 8740 }, 8741 _adjustDate: function(id, offset, period) { 8742 var target = $(id), 8743 inst = this._getInst(target[0]); 8744 if (this._isDisabledDatepicker(target[0])) { 8745 return; 8746 } 8747 this._adjustInstDate(inst, offset + 8748 (period === "M" ? this._get(inst, "showCurrentAtPos") : 0), // undo positioning 8749 period); 8750 this._updateDatepicker(inst); 8751 }, 8752 _gotoToday: function(id) { 8753 var date, 8754 target = $(id), 8755 inst = this._getInst(target[0]); 8756 if (this._get(inst, "gotoCurrent") && inst.currentDay) { 8757 inst.selectedDay = inst.currentDay; 8758 inst.drawMonth = inst.selectedMonth = inst.currentMonth; 8759 inst.drawYear = inst.selectedYear = inst.currentYear; 8760 } else { 8761 date = new Date(); 8762 inst.selectedDay = date.getDate(); 8763 inst.drawMonth = inst.selectedMonth = date.getMonth(); 8764 inst.drawYear = inst.selectedYear = date.getFullYear(); 8765 } 8766 this._notifyChange(inst); 8767 this._adjustDate(target); 8768 }, 8769 _selectMonthYear: function(id, select, period) { 8770 var target = $(id), 8771 inst = this._getInst(target[0]); 8772 inst["selected" + (period === "M" ? "Month" : "Year")] = 8773 inst["draw" + (period === "M" ? "Month" : "Year")] = 8774 parseInt(select.options[select.selectedIndex].value,10); 8775 this._notifyChange(inst); 8776 this._adjustDate(target); 8777 }, 8778 _selectDay: function(id, month, year, td) { 8779 var inst, 8780 target = $(id); 8781 if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) { 8782 return; 8783 } 8784 inst = this._getInst(target[0]); 8785 inst.selectedDay = inst.currentDay = $("a", td).html(); 8786 inst.selectedMonth = inst.currentMonth = month; 8787 inst.selectedYear = inst.currentYear = year; 8788 this._selectDate(id, this._formatDate(inst, 8789 inst.currentDay, inst.currentMonth, inst.currentYear)); 8790 }, 8791 _clearDate: function(id) { 8792 var target = $(id); 8793 this._selectDate(target, ""); 8794 }, 8795 _selectDate: function(id, dateStr) { 8796 var onSelect, 8797 target = $(id), 8798 inst = this._getInst(target[0]); 8799 dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); 8800 if (inst.input) { 8801 inst.input.val(dateStr); 8802 } 8803 this._updateAlternate(inst); 8804 onSelect = this._get(inst, "onSelect"); 8805 if (onSelect) { 8806 onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); 8807 } else if (inst.input) { 8808 inst.input.trigger("change"); 8809 } 8810 if (inst.inline){ 8811 this._updateDatepicker(inst); 8812 } else { 8813 this._hideDatepicker(); 8814 this._lastInput = inst.input[0]; 8815 if (typeof(inst.input[0]) !== "object") { 8816 inst.input.focus(); 8817 } 8818 this._lastInput = null; 8819 } 8820 }, 8821 _updateAlternate: function(inst) { 8822 var altFormat, date, dateStr, 8823 altField = this._get(inst, "altField"); 8824 if (altField) { 8825 altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat"); 8826 date = this._getDate(inst); 8827 dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst)); 8828 $(altField).each(function() { $(this).val(dateStr); }); 8829 } 8830 }, 8831 noWeekends: function(date) { 8832 var day = date.getDay(); 8833 return [(day > 0 && day < 6), ""]; 8834 }, 8835 iso8601Week: function(date) { 8836 var time, 8837 checkDate = new Date(date.getTime()); 8838 checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); 8839 time = checkDate.getTime(); 8840 checkDate.setMonth(0); // Compare with Jan 1 8841 checkDate.setDate(1); 8842 return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1; 8843 }, 8844 parseDate: function (format, value, settings) { 8845 if (format == null || value == null) { 8846 throw "Invalid arguments"; 8847 } 8848 value = (typeof value === "object" ? value.toString() : value + ""); 8849 if (value === "") { 8850 return null; 8851 } 8852 var iFormat, dim, extra, 8853 iValue = 0, 8854 shortYearCutoffTemp = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff, 8855 shortYearCutoff = (typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp
vendor: 5,115 bytes, lines 8855-9032
8855: 8856 new Date().getFullYear() % 100 + parseInt(shortYearCutoffTemp, 10)), 8857 dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort, 8858 dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames, 8859 monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort, 8860 monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames, 8861 year = -1, 8862 month = -1, 8863 day = -1, 8864 doy = -1, 8865 literal = false, 8866 date, 8867 lookAhead = function(match) { 8868 var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match); 8869 if (matches) { 8870 iFormat++; 8871 } 8872 return matches; 8873 }, 8874 getNumber = function(match) { 8875 var isDoubled = lookAhead(match), 8876 size = (match === "@" ? 14 : (match === "!" ? 20 : 8877 (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))), 8878 digits = new RegExp("^\\d{1," + size + "}"), 8879 num = value.substring(iValue).match(digits); 8880 if (!num) { 8881 throw "Missing number at position " + iValue; 8882 } 8883 iValue += num[0].length; 8884 return parseInt(num[0], 10); 8885 }, 8886 getName = function(match, shortNames, longNames) { 8887 var index = -1, 8888 names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) { 8889 return [ [k, v] ]; 8890 }).sort(function (a, b) { 8891 return -(a[1].length - b[1].length); 8892 }); 8893 $.each(names, function (i, pair) { 8894 var name = pair[1]; 8895 if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) { 8896 index = pair[0]; 8897 iValue += name.length; 8898 return false; 8899 } 8900 }); 8901 if (index !== -1) { 8902 return index + 1; 8903 } else { 8904 throw "Unknown name at position " + iValue; 8905 } 8906 }, 8907 checkLiteral = function() { 8908 if (value.charAt(iValue) !== format.charAt(iFormat)) { 8909 throw "Unexpected literal at position " + iValue; 8910 } 8911 iValue++; 8912 }; 8913 for (iFormat = 0; iFormat < format.length; iFormat++) { 8914 if (literal) { 8915 if (format.charAt(iFormat) === "'" && !lookAhead("'")) { 8916 literal = false; 8917 } else { 8918 checkLiteral(); 8919 } 8920 } else { 8921 switch (format.charAt(iFormat)) { 8922 case "d": 8923 day = getNumber("d"); 8924 break; 8925 case "D": 8926 getName("D", dayNamesShort, dayNames); 8927 break; 8928 case "o": 8929 doy = getNumber("o"); 8930 break; 8931 case "m": 8932 month = getNumber("m"); 8933 break; 8934 case "M": 8935 month = getName("M", monthNamesShort, monthNames); 8936 break; 8937 case "y": 8938 year = getNumber("y"); 8939 break; 8940 case "@": 8941 date = new Date(getNumber("@")); 8942 year = date.getFullYear(); 8943 month = date.getMonth() + 1; 8944 day = date.getDate(); 8945 break; 8946 case "!": 8947 date = new Date((getNumber("!") - this._ticksTo1970) / 10000); 8948 year = date.getFullYear(); 8949 month = date.getMonth() + 1; 8950 day = date.getDate(); 8951 break; 8952 case "'": 8953 if (lookAhead("'")){ 8954 checkLiteral(); 8955 } else { 8956 literal = true; 8957 } 8958 break; 8959 default: 8960 checkLiteral(); 8961 } 8962 } 8963 } 8964 if (iValue < value.length){ 8965 extra = value.substr(iValue); 8966 if (!/^\s+/.test(extra)) { 8967 throw "Extra/unparsed characters found in date: " + extra; 8968 } 8969 } 8970 if (year === -1) { 8971 year = new Date().getFullYear(); 8972 } else if (year < 100) { 8973 year += new Date().getFullYear() - new Date().getFullYear() % 100 + 8974 (year <= shortYearCutoff ? 0 : -100); 8975 } 8976 if (doy > -1) { 8977 month = 1; 8978 day = doy; 8979 do { 8980 dim = this._getDaysInMonth(year, month - 1); 8981 if (day <= dim) { 8982 break; 8983 } 8984 month++; 8985 day -= dim; 8986 } while (true); 8987 } 8988 date = this._daylightSavingAdjust(new Date(year, month - 1, day)); 8989 if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) { 8990 throw "Invalid date"; // E.g. 31/02/00 8991 } 8992 return date; 8993 }, 8994 ATOM: "yy-mm-dd", 8995 COOKIE: "D, dd M yy", 8996 ISO_8601: "yy-mm-dd", 8997 RFC_822: "D, d M y", 8998 RFC_850: "DD, dd-M-y", 8999 RFC_1036: "D, d M y", 9000 RFC_1123: "D, d M yy", 9001 RFC_2822: "D, d M yy", 9002 RSS: "D, d M y", 9003 TICKS: "!", 9004 TIMESTAMP: "@", 9005 W3C: "yy-mm-dd", 9006 _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + 9007 Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000), 9008 formatDate: function (format, date, settings) { 9009 if (!date) { 9010 return ""; 9011 } 9012 var iFormat, 9013 dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort, 9014 dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames, 9015 monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort, 9016 monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames, 9017 lookAhead = function(match) { 9018 var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match); 9019 if (matches) { 9020 iFormat++; 9021 } 9022 return matches; 9023 }, 9024 formatNumber = function(match, value, len) { 9025 var num = "" + value; 9026 if (lookAhead(match)) { 9027 while (num.length < len) { 9028 num = "0" + num; 9029 } 9030 } 9031 return num; 9032 },
vendor: 8,713 bytes, lines 9033-9290
9033 formatName = function(match, value, shortNames, longNames) { 9034 return (lookAhead(match) ? longNames[value] : shortNames[value]); 9035 }, 9036 output = "", 9037 literal = false; 9038 if (date) { 9039 for (iFormat = 0; iFormat < format.length; iFormat++) { 9040 if (literal) { 9041 if (format.charAt(iFormat) === "'" && !lookAhead("'")) { 9042 literal = false; 9043 } else { 9044 output += format.charAt(iFormat); 9045 } 9046 } else { 9047 switch (format.charAt(iFormat)) { 9048 case "d": 9049 output += formatNumber("d", date.getDate(), 2); 9050 break; 9051 case "D": 9052 output += formatName("D", date.getDay(), dayNamesShort, dayNames); 9053 break; 9054 case "o": 9055 output += formatNumber("o", 9056 Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3); 9057 break; 9058 case "m": 9059 output += formatNumber("m", date.getMonth() + 1, 2); 9060 break; 9061 case "M": 9062 output += formatName("M", date.getMonth(), monthNamesShort, monthNames); 9063 break; 9064 case "y": 9065 output += (lookAhead("y") ? date.getFullYear() : 9066 (date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100); 9067 break; 9068 case "@": 9069 output += date.getTime(); 9070 break; 9071 case "!": 9072 output += date.getTime() * 10000 + this._ticksTo1970; 9073 break; 9074 case "'": 9075 if (lookAhead("'")) { 9076 output += "'"; 9077 } else { 9078 literal = true; 9079 } 9080 break; 9081 default: 9082 output += format.charAt(iFormat); 9083 } 9084 } 9085 } 9086 } 9087 return output; 9088 }, 9089 _possibleChars: function (format) { 9090 var iFormat, 9091 chars = "", 9092 literal = false, 9093 lookAhead = function(match) { 9094 var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match); 9095 if (matches) { 9096 iFormat++; 9097 } 9098 return matches; 9099 }; 9100 for (iFormat = 0; iFormat < format.length; iFormat++) { 9101 if (literal) { 9102 if (format.charAt(iFormat) === "'" && !lookAhead("'")) { 9103 literal = false; 9104 } else { 9105 chars += format.charAt(iFormat); 9106 } 9107 } else { 9108 switch (format.charAt(iFormat)) { 9109 case "d": case "m": case "y": case "@": 9110 chars += "0123456789"; 9111 break; 9112 case "D": case "M": 9113 return null; // Accept anything 9114 case "'": 9115 if (lookAhead("'")) { 9116 chars += "'"; 9117 } else { 9118 literal = true; 9119 } 9120 break; 9121 default: 9122 chars += format.charAt(iFormat); 9123 } 9124 } 9125 } 9126 return chars; 9127 }, 9128 _get: function(inst, name) { 9129 return inst.settings[name] !== undefined ? 9130 inst.settings[name] : this._defaults[name]; 9131 }, 9132 _setDateFromField: function(inst, noDefault) { 9133 if (inst.input.val() === inst.lastVal) { 9134 return; 9135 } 9136 var dateFormat = this._get(inst, "dateFormat"), 9137 dates = inst.lastVal = inst.input ? inst.input.val() : null, 9138 defaultDate = this._getDefaultDate(inst), 9139 date = defaultDate, 9140 settings = this._getFormatConfig(inst); 9141 try { 9142 date = this.parseDate(dateFormat, dates, settings) || defaultDate; 9143 } catch (event) { 9144 dates = (noDefault ? "" : dates); 9145 } 9146 inst.selectedDay = date.getDate(); 9147 inst.drawMonth = inst.selectedMonth = date.getMonth(); 9148 inst.drawYear = inst.selectedYear = date.getFullYear(); 9149 inst.currentDay = (dates ? date.getDate() : 0); 9150 inst.currentMonth = (dates ? date.getMonth() : 0); 9151 inst.currentYear = (dates ? date.getFullYear() : 0); 9152 this._adjustInstDate(inst); 9153 }, 9154 _getDefaultDate: function(inst) { 9155 return this._restrictMinMax(inst, 9156 this._determineDate(inst, this._get(inst, "defaultDate"), new Date())); 9157 }, 9158 _determineDate: function(inst, date, defaultDate) { 9159 var offsetNumeric = function(offset) { 9160 var date = new Date(); 9161 date.setDate(date.getDate() + offset); 9162 return date; 9163 }, 9164 offsetString = function(offset) { 9165 try { 9166 return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"), 9167 offset, $.datepicker._getFormatConfig(inst)); 9168 } 9169 catch (e) { 9170 } 9171 var date = (offset.toLowerCase().match(/^c/) ? 9172 $.datepicker._getDate(inst) : null) || new Date(), 9173 year = date.getFullYear(), 9174 month = date.getMonth(), 9175 day = date.getDate(), 9176 pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, 9177 matches = pattern.exec(offset); 9178 while (matches) { 9179 switch (matches[2] || "d") { 9180 case "d" : case "D" : 9181 day += parseInt(matches[1],10); break; 9182 case "w" : case "W" : 9183 day += parseInt(matches[1],10) * 7; break; 9184 case "m" : case "M" : 9185 month += parseInt(matches[1],10); 9186 day = Math.min(day, $.datepicker._getDaysInMonth(year, month)); 9187 break; 9188 case "y": case "Y" : 9189 year += parseInt(matches[1],10); 9190 day = Math.min(day, $.datepicker._getDaysInMonth(year, month)); 9191 break; 9192 } 9193 matches = pattern.exec(offset); 9194 } 9195 return new Date(year, month, day); 9196 }, 9197 newDate = (date == null || date === "" ? defaultDate : (typeof date === "string" ? offsetString(date) : 9198 (typeof date === "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime())))); 9199 newDate = (newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate); 9200 if (newDate) { 9201 newDate.setHours(0); 9202 newDate.setMinutes(0); 9203 newDate.setSeconds(0); 9204 newDate.setMilliseconds(0); 9205 } 9206 return this._daylightSavingAdjust(newDate); 9207 }, 9208 _daylightSavingAdjust: function(date) { 9209 if (!date) { 9210 return null; 9211 } 9212 date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); 9213 return date; 9214 }, 9215 _setDate: function(inst, date, noChange) { 9216 var clear = !date, 9217 origMonth = inst.selectedMonth, 9218 origYear = inst.selectedYear, 9219 newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date())); 9220 inst.selectedDay = inst.currentDay = newDate.getDate(); 9221 inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth(); 9222 inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear(); 9223 if ((origMonth !== inst.selectedMonth || origYear !== inst.selectedYear) && !noChange) { 9224 this._notifyChange(inst); 9225 } 9226 this._adjustInstDate(inst); 9227 if (inst.input) { 9228 inst.input.val(clear ? "" : this._formatDate(inst)); 9229 } 9230 }, 9231 _getDate: function(inst) { 9232 var startDate = (!inst.currentYear || (inst.input && inst.input.val() === "") ? null : 9233 this._daylightSavingAdjust(new Date( 9234 inst.currentYear, inst.currentMonth, inst.currentDay))); 9235 return startDate; 9236 }, 9237 _attachHandlers: function(inst) { 9238 var stepMonths = this._get(inst, "stepMonths"), 9239 id = "#" + inst.id.replace( /\\\\/g, "\\" ); 9240 inst.dpDiv.find("[data-handler]").map(function () { 9241 var handler = { 9242 prev: function () { 9243 $.datepicker._adjustDate(id, -stepMonths, "M"); 9244 }, 9245 next: function () { 9246 $.datepicker._adjustDate(id, +stepMonths, "M"); 9247 }, 9248 hide: function () { 9249 $.datepicker._hideDatepicker(); 9250 }, 9251 today: function () { 9252 $.datepicker._gotoToday(id); 9253 }, 9254 selectDay: function () { 9255 $.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this); 9256 return false; 9257 }, 9258 selectMonth: function () { 9259 $.datepicker._selectMonthYear(id, this, "M"); 9260 return false; 9261 }, 9262 selectYear: function () { 9263 $.datepicker._selectMonthYear(id, this, "Y"); 9264 return false; 9265 } 9266 }; 9267 $(this).bind(this.getAttribute("data-event"), handler[this.getAttribute("data-handler")]); 9268 }); 9269 }, 9270 _generateHTML: function(inst) { 9271 var maxDraw, prevText, prev, nextText, next, currentText, gotoDate, 9272 controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin, 9273 monthNames, monthNamesShort, beforeShowDay, showOtherMonths, 9274 selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate, 9275 cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows, 9276 printDate, dRow, tbody, daySettings, otherMonth, unselectable, 9277 tempDate = new Date(), 9278 today = this._daylightSavingAdjust( 9279 new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate())), // clear time 9280 isRTL = this._get(inst, "isRTL"), 9281 showButtonPanel = this._get(inst, "showButtonPanel"), 9282 hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext"), 9283 navigationAsDateFormat = this._get(inst, "navigationAsDateFormat"), 9284 numMonths = this._getNumberOfMonths(inst), 9285 showCurrentAtPos = this._get(inst, "showCurrentAtPos"), 9286 stepMonths = this._get(inst, "stepMonths"), 9287 isMultiMonth = (numMonths[0] !== 1 || numMonths[1] !== 1), 9288 currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : 9289 new Date(inst.currentYear, inst.currentMonth, inst.currentDay))), 9290 minDate = this._getMinMaxDate(inst, "min"),
vendor: 33,347 bytes, lines 9291-10238
9291 maxDate = this._getMinMaxDate(inst, "max"), 9292 drawMonth = inst.drawMonth - showCurrentAtPos, 9293 drawYear = inst.drawYear; 9294 9295 if (drawMonth < 0) { 9296 drawMonth += 12; 9297 drawYear--; 9298 } 9299 if (maxDate) { 9300 maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), 9301 maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate())); 9302 maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw); 9303 while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) { 9304 drawMonth--; 9305 if (drawMonth < 0) { 9306 drawMonth = 11; 9307 drawYear--; 9308 } 9309 } 9310 } 9311 inst.drawMonth = drawMonth; 9312 inst.drawYear = drawYear; 9313 prevText = this._get(inst, "prevText"); 9314 prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, 9315 this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), 9316 this._getFormatConfig(inst))); 9317 prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? 9318 "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" + 9319 " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>" : 9320 (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+ prevText +"'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>")); 9321 nextText = this._get(inst, "nextText"); 9322 nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, 9323 this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), 9324 this._getFormatConfig(inst))); 9325 next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? 9326 "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" + 9327 " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>" : 9328 (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+ nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>")); 9329 currentText = this._get(inst, "currentText"); 9330 gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today); 9331 currentText = (!navigationAsDateFormat ? currentText : 9332 this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); 9333 controls = (!inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" + 9334 this._get(inst, "closeText") + "</button>" : ""); 9335 buttonPanel = (showButtonPanel) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (isRTL ? controls : "") + 9336 (this._isInRange(inst, gotoDate) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" + 9337 ">" + currentText + "</button>" : "") + (isRTL ? "" : controls) + "</div>" : ""; 9338 firstDay = parseInt(this._get(inst, "firstDay"),10); 9339 firstDay = (isNaN(firstDay) ? 0 : firstDay); 9340 showWeek = this._get(inst, "showWeek"); 9341 dayNames = this._get(inst, "dayNames"); 9342 dayNamesMin = this._get(inst, "dayNamesMin"); 9343 monthNames = this._get(inst, "monthNames"); 9344 monthNamesShort = this._get(inst, "monthNamesShort"); 9345 beforeShowDay = this._get(inst, "beforeShowDay"); 9346 showOtherMonths = this._get(inst, "showOtherMonths"); 9347 selectOtherMonths = this._get(inst, "selectOtherMonths"); 9348 defaultDate = this._getDefaultDate(inst); 9349 html = ""; 9350 dow; 9351 for (row = 0; row < numMonths[0]; row++) { 9352 group = ""; 9353 this.maxRows = 4; 9354 for (col = 0; col < numMonths[1]; col++) { 9355 selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); 9356 cornerClass = " ui-corner-all"; 9357 calender = ""; 9358 if (isMultiMonth) { 9359 calender += "<div class='ui-datepicker-group"; 9360 if (numMonths[1] > 1) { 9361 switch (col) { 9362 case 0: calender += " ui-datepicker-group-first"; 9363 cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break; 9364 case numMonths[1]-1: calender += " ui-datepicker-group-last"; 9365 cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break; 9366 default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break; 9367 } 9368 } 9369 calender += "'>"; 9370 } 9371 calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" + 9372 (/all|left/.test(cornerClass) && row === 0 ? (isRTL ? next : prev) : "") + 9373 (/all|right/.test(cornerClass) && row === 0 ? (isRTL ? prev : next) : "") + 9374 this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, 9375 row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers 9376 "</div><table class='ui-datepicker-calendar'><caption style='display:none;'>Calendar</caption><thead>" + 9377 "<tr>"; 9378 thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : ""); 9379 for (dow = 0; dow < 7; dow++) { // days of the week 9380 day = (dow + firstDay) % 7; 9381 thead += "<th" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" + 9382 "<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>"; 9383 } 9384 calender += thead + "</tr></thead><tbody>"; 9385 daysInMonth = this._getDaysInMonth(drawYear, drawMonth); 9386 if (drawYear === inst.selectedYear && drawMonth === inst.selectedMonth) { 9387 inst.selectedDay = Math.min(inst.selectedDay, daysInMonth); 9388 } 9389 leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; 9390 curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate 9391 numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043) 9392 this.maxRows = numRows; 9393 printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); 9394 for (dRow = 0; dRow < numRows; dRow++) { // create date picker rows 9395 calender += "<tr>"; 9396 tbody = (!showWeek ? "" : "<td class='ui-datepicker-week-col'>" + 9397 this._get(inst, "calculateWeek")(printDate) + "</td>"); 9398 for (dow = 0; dow < 7; dow++) { // create date picker days 9399 daySettings = (beforeShowDay ? 9400 beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]); 9401 otherMonth = (printDate.getMonth() !== drawMonth); 9402 unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] || 9403 (minDate && printDate < minDate) || (maxDate && printDate > maxDate); 9404 tbody += "<td class='" + 9405 ((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + // highlight weekends 9406 (otherMonth ? " ui-datepicker-other-month" : "") + // highlight days from other months 9407 ((printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent) || // user pressed key 9408 (defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime()) ? 9409 // or defaultDate is current printedDate and defaultDate is selectedDate 9410 " " + this._dayOverClass : "") + // highlight selected day 9411 (unselectable ? " " + this._unselectableClass + " ui-state-disabled": "") + // highlight unselectable days 9412 (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates 9413 (printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day 9414 (printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different) 9415 ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title 9416 (unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions 9417 (otherMonth && !showOtherMonths ? " " : // display for other months 9418 (unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" + 9419 (printDate.getTime() === today.getTime() ? " ui-state-highlight" : "") + 9420 (printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "") + // highlight selected day 9421 (otherMonth ? " ui-priority-secondary" : "") + // distinguish dates from other months 9422 "' href='#'>" + printDate.getDate() + "</a>")) + "</td>"; // display selectable date 9423 printDate.setDate(printDate.getDate() + 1); 9424 printDate = this._daylightSavingAdjust(printDate); 9425 } 9426 calender += tbody + "</tr>"; 9427 } 9428 drawMonth++; 9429 if (drawMonth > 11) { 9430 drawMonth = 0; 9431 drawYear++; 9432 } 9433 calender += "</tbody></table>" + (isMultiMonth ? "</div>" + 9434 ((numMonths[0] > 0 && col === numMonths[1]-1) ? "<div class='ui-datepicker-row-break'></div>" : "") : ""); 9435 group += calender; 9436 } 9437 html += group; 9438 } 9439 html += buttonPanel; 9440 inst._keyEvent = false; 9441 return html; 9442 }, 9443 _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, 9444 secondary, monthNames, monthNamesShort) { 9445 var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear, 9446 changeMonth = this._get(inst, "changeMonth"), 9447 changeYear = this._get(inst, "changeYear"), 9448 showMonthAfterYear = this._get(inst, "showMonthAfterYear"), 9449 html = "<div class='ui-datepicker-title'>", 9450 monthHtml = ""; 9451 if (secondary || !changeMonth) { 9452 monthHtml += "<span class='ui-datepicker-month'>" + monthNames[drawMonth] + "</span>"; 9453 } else { 9454 inMinYear = (minDate && minDate.getFullYear() === drawYear); 9455 inMaxYear = (maxDate && maxDate.getFullYear() === drawYear); 9456 monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>"; 9457 for ( month = 0; month < 12; month++) { 9458 if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) { 9459 monthHtml += "<option value='" + month + "'" + 9460 (month === drawMonth ? " selected='selected'" : "") + 9461 ">" + monthNamesShort[month] + "</option>"; 9462 } 9463 } 9464 monthHtml += "</select>"; 9465 } 9466 if (!showMonthAfterYear) { 9467 html += monthHtml + (secondary || !(changeMonth && changeYear) ? " " : ""); 9468 } 9469 if ( !inst.yearshtml ) { 9470 inst.yearshtml = ""; 9471 if (secondary || !changeYear) { 9472 html += "<span class='ui-datepicker-year'>" + drawYear + "</span>"; 9473 } else { 9474 years = this._get(inst, "yearRange").split(":"); 9475 thisYear = new Date().getFullYear(); 9476 determineYear = function(value) { 9477 var year = (value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) : 9478 (value.match(/[+\-].*/) ? thisYear + parseInt(value, 10) : 9479 parseInt(value, 10))); 9480 return (isNaN(year) ? thisYear : year); 9481 }; 9482 year = determineYear(years[0]); 9483 endYear = Math.max(year, determineYear(years[1] || "")); 9484 year = (minDate ? Math.max(year, minDate.getFullYear()) : year); 9485 endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear); 9486 inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>"; 9487 for (; year <= endYear; year++) { 9488 inst.yearshtml += "<option value='" + year + "'" + 9489 (year === drawYear ? " selected='selected'" : "") + 9490 ">" + year + "</option>"; 9491 } 9492 inst.yearshtml += "</select>"; 9493 9494 html += inst.yearshtml; 9495 inst.yearshtml = null; 9496 } 9497 } 9498 html += this._get(inst, "yearSuffix"); 9499 if (showMonthAfterYear) { 9500 html += (secondary || !(changeMonth && changeYear) ? " " : "") + monthHtml; 9501 } 9502 html += "</div>"; // Close datepicker_header 9503 return html; 9504 }, 9505 _adjustInstDate: function(inst, offset, period) { 9506 var year = inst.drawYear + (period === "Y" ? offset : 0), 9507 month = inst.drawMonth + (period === "M" ? offset : 0), 9508 day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period === "D" ? offset : 0), 9509 date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day))); 9510 inst.selectedDay = date.getDate(); 9511 inst.drawMonth = inst.selectedMonth = date.getMonth(); 9512 inst.drawYear = inst.selectedYear = date.getFullYear(); 9513 if (period === "M" || period === "Y") { 9514 this._notifyChange(inst); 9515 } 9516 }, 9517 _restrictMinMax: function(inst, date) { 9518 var minDate = this._getMinMaxDate(inst, "min"), 9519 maxDate = this._getMinMaxDate(inst, "max"), 9520 newDate = (minDate && date < minDate ? minDate : date); 9521 return (maxDate && newDate > maxDate ? maxDate : newDate); 9522 }, 9523 _notifyChange: function(inst) { 9524 var onChange = this._get(inst, "onChangeMonthYear"); 9525 if (onChange) { 9526 onChange.apply((inst.input ? inst.input[0] : null), 9527 [inst.selectedYear, inst.selectedMonth + 1, inst]); 9528 } 9529 }, 9530 _getNumberOfMonths: function(inst) { 9531 var numMonths = this._get(inst, "numberOfMonths"); 9532 return (numMonths == null ? [1, 1] : (typeof numMonths === "number" ? [1, numMonths] : numMonths)); 9533 }, 9534 _getMinMaxDate: function(inst, minMax) { 9535 return this._determineDate(inst, this._get(inst, minMax + "Date"), null); 9536 }, 9537 _getDaysInMonth: function(year, month) { 9538 return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate(); 9539 }, 9540 _getFirstDayOfMonth: function(year, month) { 9541 return new Date(year, month, 1).getDay(); 9542 }, 9543 _canAdjustMonth: function(inst, offset, curYear, curMonth) { 9544 var numMonths = this._getNumberOfMonths(inst), 9545 date = this._daylightSavingAdjust(new Date(curYear, 9546 curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1)); 9547 9548 if (offset < 0) { 9549 date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth())); 9550 } 9551 return this._isInRange(inst, date); 9552 }, 9553 _isInRange: function(inst, date) { 9554 var yearSplit, currentYear, 9555 minDate = this._getMinMaxDate(inst, "min"), 9556 maxDate = this._getMinMaxDate(inst, "max"), 9557 minYear = null, 9558 maxYear = null, 9559 years = this._get(inst, "yearRange"); 9560 if (years){ 9561 yearSplit = years.split(":"); 9562 currentYear = new Date().getFullYear(); 9563 minYear = parseInt(yearSplit[0], 10); 9564 maxYear = parseInt(yearSplit[1], 10); 9565 if ( yearSplit[0].match(/[+\-].*/) ) { 9566 minYear += currentYear; 9567 } 9568 if ( yearSplit[1].match(/[+\-].*/) ) { 9569 maxYear += currentYear; 9570 } 9571 } 9572 return ((!minDate || date.getTime() >= minDate.getTime()) && 9573 (!maxDate || date.getTime() <= maxDate.getTime()) && 9574 (!minYear || date.getFullYear() >= minYear) && 9575 (!maxYear || date.getFullYear() <= maxYear)); 9576 }, 9577 _getFormatConfig: function(inst) { 9578 var shortYearCutoff = this._get(inst, "shortYearCutoff"); 9579 shortYearCutoff = (typeof shortYearCutoff !== "string" ? shortYearCutoff : 9580 new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); 9581 return {shortYearCutoff: shortYearCutoff, 9582 dayNamesShort: this._get(inst, "dayNamesShort"), dayNames: this._get(inst, "dayNames"), 9583 monthNamesShort: this._get(inst, "monthNamesShort"), monthNames: this._get(inst, "monthNames")}; 9584 }, 9585 _formatDate: function(inst, day, month, year) { 9586 if (!day) { 9587 inst.currentDay = inst.selectedDay; 9588 inst.currentMonth = inst.selectedMonth; 9589 inst.currentYear = inst.selectedYear; 9590 } 9591 var date = (day ? (typeof day === "object" ? day : 9592 this._daylightSavingAdjust(new Date(year, month, day))) : 9593 this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); 9594 return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst)); 9595 } 9596}); 9597function bindHover(dpDiv) { 9598 var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; 9599 return dpDiv.delegate(selector, "mouseout", function() { 9600 $(this).removeClass("ui-state-hover"); 9601 if (this.className.indexOf("ui-datepicker-prev") !== -1) { 9602 $(this).removeClass("ui-datepicker-prev-hover"); 9603 } 9604 if (this.className.indexOf("ui-datepicker-next") !== -1) { 9605 $(this).removeClass("ui-datepicker-next-hover"); 9606 } 9607 }) 9608 .delegate(selector, "mouseover", function(){ 9609 if (!$.datepicker._isDisabledDatepicker( instActive.inline ? dpDiv.parent()[0] : instActive.input[0])) { 9610 $(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"); 9611 $(this).addClass("ui-state-hover"); 9612 if (this.className.indexOf("ui-datepicker-prev") !== -1) { 9613 $(this).addClass("ui-datepicker-prev-hover"); 9614 } 9615 if (this.className.indexOf("ui-datepicker-next") !== -1) { 9616 $(this).addClass("ui-datepicker-next-hover"); 9617 } 9618 } 9619 }); 9620} 9621function extendRemove(target, props) { 9622 $.extend(target, props); 9623 for (var name in props) { 9624 if (props[name] == null) { 9625 target[name] = props[name]; 9626 } 9627 } 9628 return target; 9629} 9630$.fn.datepicker = function(options){ 9631 if ( !this.length ) { 9632 return this; 9633 } 9634 if (!$.datepicker.initialized) { 9635 $(document).mousedown($.datepicker._checkExternalClick); 9636 $.datepicker.initialized = true; 9637 } 9638 if ($("#"+$.datepicker._mainDivId).length === 0) { 9639 $("body").append($.datepicker.dpDiv); 9640 } 9641 var otherArgs = Array.prototype.slice.call(arguments, 1); 9642 if (typeof options === "string" && (options === "isDisabled" || options === "getDate" || options === "widget")) { 9643 return $.datepicker["_" + options + "Datepicker"]. 9644 apply($.datepicker, [this[0]].concat(otherArgs)); 9645 } 9646 if (options === "option" && arguments.length === 2 && typeof arguments[1] === "string") { 9647 return $.datepicker["_" + options + "Datepicker"]. 9648 apply($.datepicker, [this[0]].concat(otherArgs)); 9649 } 9650 return this.each(function() { 9651 typeof options === "string" ? 9652 $.datepicker["_" + options + "Datepicker"]. 9653 apply($.datepicker, [this].concat(otherArgs)) : 9654 $.datepicker._attachDatepicker(this, options); 9655 }); 9656}; 9657$.datepicker = new Datepicker(); 9658$.datepicker.initialized = false; 9659$.datepicker.uuid = new Date().getTime(); 9660$.datepicker.version = "1.10.4"; 9661})(jQuery); 9662(function( $, undefined ) { 9663var sizeRelatedOptions = { 9664 buttons: true, 9665 height: true, 9666 maxHeight: true, 9667 maxWidth: true, 9668 minHeight: true, 9669 minWidth: true, 9670 width: true 9671 }, 9672 resizableRelatedOptions = { 9673 maxHeight: true, 9674 maxWidth: true, 9675 minHeight: true, 9676 minWidth: true 9677 }; 9678$.widget( "ui.dialog", { 9679 version: "1.10.4", 9680 options: { 9681 appendTo: "body", 9682 autoOpen: true, 9683 buttons: [], 9684 closeOnEscape: true, 9685 closeText: "close", 9686 dialogClass: "", 9687 draggable: true, 9688 hide: null, 9689 height: "auto", 9690 maxHeight: null, 9691 maxWidth: null, 9692 minHeight: 150, 9693 minWidth: 150, 9694 modal: false, 9695 position: { 9696 my: "center", 9697 at: "center", 9698 of: window, 9699 collision: "fit", 9700 using: function( pos ) { 9701 var topOffset = $( this ).css( pos ).offset().top; 9702 if ( topOffset < 0 ) { 9703 $( this ).css( "top", pos.top - topOffset ); 9704 } 9705 } 9706 }, 9707 resizable: true, 9708 show: null, 9709 title: null, 9710 width: 300, 9711 beforeClose: null, 9712 close: null, 9713 drag: null, 9714 dragStart: null, 9715 dragStop: null, 9716 focus: null, 9717 open: null, 9718 resize: null, 9719 resizeStart: null, 9720 resizeStop: null 9721 }, 9722 _create: function() { 9723 this.originalCss = { 9724 display: this.element[0].style.display, 9725 width: this.element[0].style.width, 9726 minHeight: this.element[0].style.minHeight, 9727 maxHeight: this.element[0].style.maxHeight, 9728 height: this.element[0].style.height 9729 }; 9730 this.originalPosition = { 9731 parent: this.element.parent(), 9732 index: this.element.parent().children().index( this.element ) 9733 }; 9734 this.originalTitle = this.element.attr("title"); 9735 this.options.title = this.options.title || this.originalTitle; 9736 this._createWrapper(); 9737 this.element 9738 .show() 9739 .removeAttr("title") 9740 .addClass("ui-dialog-content ui-widget-content") 9741 .appendTo( this.uiDialog ); 9742 this._createTitlebar(); 9743 this._createButtonPane(); 9744 if ( this.options.draggable && $.fn.draggable ) { 9745 this._makeDraggable(); 9746 } 9747 if ( this.options.resizable && $.fn.resizable ) { 9748 this._makeResizable(); 9749 } 9750 this._isOpen = false; 9751 }, 9752 _init: function() { 9753 if ( this.options.autoOpen ) { 9754 this.open(); 9755 } 9756 }, 9757 _appendTo: function() { 9758 var element = this.options.appendTo; 9759 if ( element && (element.jquery || element.nodeType) ) { 9760 return $( element ); 9761 } 9762 return this.document.find( element || "body" ).eq( 0 ); 9763 }, 9764 _destroy: function() { 9765 var next, 9766 originalPosition = this.originalPosition; 9767 this._destroyOverlay(); 9768 this.element 9769 .removeUniqueId() 9770 .removeClass("ui-dialog-content ui-widget-content") 9771 .css( this.originalCss ) 9772 .detach(); 9773 this.uiDialog.stop( true, true ).remove(); 9774 if ( this.originalTitle ) { 9775 this.element.attr( "title", this.originalTitle ); 9776 } 9777 next = originalPosition.parent.children().eq( originalPosition.index ); 9778 if ( next.length && next[0] !== this.element[0] ) { 9779 next.before( this.element ); 9780 } else { 9781 originalPosition.parent.append( this.element ); 9782 } 9783 }, 9784 widget: function() { 9785 return this.uiDialog; 9786 }, 9787 disable: $.noop, 9788 enable: $.noop, 9789 close: function( event ) { 9790 var activeElement, 9791 that = this; 9792 if ( !this._isOpen || this._trigger( "beforeClose", event ) === false ) { 9793 return; 9794 } 9795 this._isOpen = false; 9796 this._destroyOverlay(); 9797 if ( !this.opener.filter(":focusable").focus().length ) { 9798 try { 9799 activeElement = this.document[ 0 ].activeElement; 9800 if ( activeElement && activeElement.nodeName.toLowerCase() !== "body" ) { 9801 $( activeElement ).blur(); 9802 } 9803 } catch ( error ) {} 9804 } 9805 this._hide( this.uiDialog, this.options.hide, function() { 9806 that._trigger( "close", event ); 9807 }); 9808 }, 9809 isOpen: function() { 9810 return this._isOpen; 9811 }, 9812 moveToTop: function() { 9813 this._moveToTop(); 9814 }, 9815 _moveToTop: function( event, silent ) { 9816 var moved = !!this.uiDialog.nextAll(":visible").insertBefore( this.uiDialog ).length; 9817 if ( moved && !silent ) { 9818 this._trigger( "focus", event ); 9819 } 9820 return moved; 9821 }, 9822 open: function() { 9823 var that = this; 9824 if ( this._isOpen ) { 9825 if ( this._moveToTop() ) { 9826 this._focusTabbable(); 9827 } 9828 return; 9829 } 9830 this._isOpen = true; 9831 this.opener = $( this.document[0].activeElement ); 9832 this._size(); 9833 this._position(); 9834 this._createOverlay(); 9835 this._moveToTop( null, true ); 9836 this._show( this.uiDialog, this.options.show, function() { 9837 that._focusTabbable(); 9838 that._trigger("focus"); 9839 }); 9840 this._trigger("open"); 9841 }, 9842 _focusTabbable: function() { 9843 var hasFocus = this.element.find("[autofocus]"); 9844 if ( !hasFocus.length ) { 9845 hasFocus = this.element.find(":tabbable"); 9846 } 9847 if ( !hasFocus.length ) { 9848 hasFocus = this.uiDialogButtonPane.find(":tabbable"); 9849 } 9850 if ( !hasFocus.length ) { 9851 hasFocus = this.uiDialogTitlebarClose.filter(":tabbable"); 9852 } 9853 if ( !hasFocus.length ) { 9854 hasFocus = this.uiDialog; 9855 } 9856 hasFocus.eq( 0 ).focus(); 9857 }, 9858 _keepFocus: function( event ) { 9859 function checkFocus() { 9860 var activeElement = this.document[0].activeElement, 9861 isActive = this.uiDialog[0] === activeElement || 9862 $.contains( this.uiDialog[0], activeElement ); 9863 if ( !isActive ) { 9864 this._focusTabbable(); 9865 } 9866 } 9867 event.preventDefault(); 9868 checkFocus.call( this ); 9869 this._delay( checkFocus ); 9870 }, 9871 _createWrapper: function() { 9872 this.uiDialog = $("<div>") 9873 .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " + 9874 this.options.dialogClass ) 9875 .hide() 9876 .attr({ 9877 tabIndex: -1, 9878 role: "dialog" 9879 }) 9880 .appendTo( this._appendTo() ); 9881 this._on( this.uiDialog, { 9882 keydown: function( event ) { 9883 if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && 9884 event.keyCode === $.ui.keyCode.ESCAPE ) { 9885 event.preventDefault(); 9886 this.close( event ); 9887 return; 9888 } 9889 if ( event.keyCode !== $.ui.keyCode.TAB ) { 9890 return; 9891 } 9892 var tabbables = this.uiDialog.find(":tabbable"), 9893 first = tabbables.filter(":first"), 9894 last = tabbables.filter(":last"); 9895 if ( ( event.target === last[0] || event.target === this.uiDialog[0] ) && !event.shiftKey ) { 9896 first.focus( 1 ); 9897 event.preventDefault(); 9898 } else if ( ( event.target === first[0] || event.target === this.uiDialog[0] ) && event.shiftKey ) { 9899 last.focus( 1 ); 9900 event.preventDefault(); 9901 } 9902 }, 9903 mousedown: function( event ) { 9904 if ( this._moveToTop( event ) ) { 9905 this._focusTabbable(); 9906 } 9907 } 9908 }); 9909 if ( !this.element.find("[aria-describedby]").length ) { 9910 this.uiDialog.attr({ 9911 "aria-describedby": this.element.uniqueId().attr("id") 9912 }); 9913 } 9914 }, 9915 _createTitlebar: function() { 9916 var uiDialogTitle; 9917 this.uiDialogTitlebar = $("<div>") 9918 .addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix") 9919 .prependTo( this.uiDialog ); 9920 this._on( this.uiDialogTitlebar, { 9921 mousedown: function( event ) { 9922 if ( !$( event.target ).closest(".ui-dialog-titlebar-close") ) { 9923 this.uiDialog.focus(); 9924 } 9925 } 9926 }); 9927 this.uiDialogTitlebarClose = $( "<button type='button'></button>" ) 9928 .button({ 9929 label: this.options.closeText, 9930 icons: { 9931 primary: "ui-icon-closethick" 9932 }, 9933 text: false 9934 }) 9935 .addClass("ui-dialog-titlebar-close") 9936 .appendTo( this.uiDialogTitlebar ); 9937 this._on( this.uiDialogTitlebarClose, { 9938 click: function( event ) { 9939 event.preventDefault(); 9940 this.close( event ); 9941 } 9942 }); 9943 uiDialogTitle = $("<span>") 9944 .uniqueId() 9945 .addClass("ui-dialog-title") 9946 .prependTo( this.uiDialogTitlebar ); 9947 this._title( uiDialogTitle ); 9948 this.uiDialog.attr({ 9949 "aria-labelledby": uiDialogTitle.attr("id") 9950 }); 9951 }, 9952 _title: function( title ) { 9953 if ( !this.options.title ) { 9954 title.html(" "); 9955 } 9956 title.text( this.options.title ); 9957 }, 9958 _createButtonPane: function() { 9959 this.uiDialogButtonPane = $("<div>") 9960 .addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"); 9961 this.uiButtonSet = $("<div>") 9962 .addClass("ui-dialog-buttonset") 9963 .appendTo( this.uiDialogButtonPane ); 9964 this._createButtons(); 9965 }, 9966 _createButtons: function() { 9967 var that = this, 9968 buttons = this.options.buttons; 9969 this.uiDialogButtonPane.remove(); 9970 this.uiButtonSet.empty(); 9971 if ( $.isEmptyObject( buttons ) || ($.isArray( buttons ) && !buttons.length) ) { 9972 this.uiDialog.removeClass("ui-dialog-buttons"); 9973 return; 9974 } 9975 $.each( buttons, function( name, props ) { 9976 var click, buttonOptions; 9977 props = $.isFunction( props ) ? 9978 { click: props, text: name } : 9979 props; 9980 props = $.extend( { type: "button" }, props ); 9981 click = props.click; 9982 props.click = function() { 9983 click.apply( that.element[0], arguments ); 9984 }; 9985 buttonOptions = { 9986 icons: props.icons, 9987 text: props.showText 9988 }; 9989 delete props.icons; 9990 delete props.showText; 9991 $( "<button></button>", props ) 9992 .button( buttonOptions ) 9993 .appendTo( that.uiButtonSet ); 9994 }); 9995 this.uiDialog.addClass("ui-dialog-buttons"); 9996 this.uiDialogButtonPane.appendTo( this.uiDialog ); 9997 }, 9998 _makeDraggable: function() { 9999 var that = this, 10000 options = this.options; 10001 function filteredUi( ui ) { 10002 return { 10003 position: ui.position, 10004 offset: ui.offset 10005 }; 10006 } 10007 this.uiDialog.draggable({ 10008 cancel: ".ui-dialog-content, .ui-dialog-titlebar-close", 10009 handle: ".ui-dialog-titlebar", 10010 containment: "document", 10011 start: function( event, ui ) { 10012 $( this ).addClass("ui-dialog-dragging"); 10013 that._blockFrames(); 10014 that._trigger( "dragStart", event, filteredUi( ui ) ); 10015 }, 10016 drag: function( event, ui ) { 10017 that._trigger( "drag", event, filteredUi( ui ) ); 10018 }, 10019 stop: function( event, ui ) { 10020 options.position = [ 10021 ui.position.left - that.document.scrollLeft(), 10022 ui.position.top - that.document.scrollTop() 10023 ]; 10024 $( this ).removeClass("ui-dialog-dragging"); 10025 that._unblockFrames(); 10026 that._trigger( "dragStop", event, filteredUi( ui ) ); 10027 } 10028 }); 10029 }, 10030 _makeResizable: function() { 10031 var that = this, 10032 options = this.options, 10033 handles = options.resizable, 10034 position = this.uiDialog.css("position"), 10035 resizeHandles = typeof handles === "string" ? 10036 handles : 10037 "n,e,s,w,se,sw,ne,nw"; 10038 function filteredUi( ui ) { 10039 return { 10040 originalPosition: ui.originalPosition, 10041 originalSize: ui.originalSize, 10042 position: ui.position, 10043 size: ui.size 10044 }; 10045 } 10046 this.uiDialog.resizable({ 10047 cancel: ".ui-dialog-content", 10048 containment: "document", 10049 alsoResize: this.element, 10050 maxWidth: options.maxWidth, 10051 maxHeight: options.maxHeight, 10052 minWidth: options.minWidth, 10053 minHeight: this._minHeight(), 10054 handles: resizeHandles, 10055 start: function( event, ui ) { 10056 $( this ).addClass("ui-dialog-resizing"); 10057 that._blockFrames(); 10058 that._trigger( "resizeStart", event, filteredUi( ui ) ); 10059 }, 10060 resize: function( event, ui ) { 10061 that._trigger( "resize", event, filteredUi( ui ) ); 10062 }, 10063 stop: function( event, ui ) { 10064 options.height = $( this ).height(); 10065 options.width = $( this ).width(); 10066 $( this ).removeClass("ui-dialog-resizing"); 10067 that._unblockFrames(); 10068 that._trigger( "resizeStop", event, filteredUi( ui ) ); 10069 } 10070 }) 10071 .css( "position", position ); 10072 }, 10073 _minHeight: function() { 10074 var options = this.options; 10075 return options.height === "auto" ? 10076 options.minHeight : 10077 Math.min( options.minHeight, options.height ); 10078 }, 10079 _position: function() { 10080 var isVisible = this.uiDialog.is(":visible"); 10081 if ( !isVisible ) { 10082 this.uiDialog.show(); 10083 } 10084 this.uiDialog.position( this.options.position ); 10085 if ( !isVisible ) { 10086 this.uiDialog.hide(); 10087 } 10088 }, 10089 _setOptions: function( options ) { 10090 var that = this, 10091 resize = false, 10092 resizableOptions = {}; 10093 $.each( options, function( key, value ) { 10094 that._setOption( key, value ); 10095 if ( key in sizeRelatedOptions ) { 10096 resize = true; 10097 } 10098 if ( key in resizableRelatedOptions ) { 10099 resizableOptions[ key ] = value; 10100 } 10101 }); 10102 if ( resize ) { 10103 this._size(); 10104 this._position(); 10105 } 10106 if ( this.uiDialog.is(":data(ui-resizable)") ) { 10107 this.uiDialog.resizable( "option", resizableOptions ); 10108 } 10109 }, 10110 _setOption: function( key, value ) { 10111 var isDraggable, isResizable, 10112 uiDialog = this.uiDialog; 10113 if ( key === "dialogClass" ) { 10114 uiDialog 10115 .removeClass( this.options.dialogClass ) 10116 .addClass( value ); 10117 } 10118 if ( key === "disabled" ) { 10119 return; 10120 } 10121 this._super( key, value ); 10122 if ( key === "appendTo" ) { 10123 this.uiDialog.appendTo( this._appendTo() ); 10124 } 10125 if ( key === "buttons" ) { 10126 this._createButtons(); 10127 } 10128 if ( key === "closeText" ) { 10129 this.uiDialogTitlebarClose.button({ 10130 label: "" + value 10131 }); 10132 } 10133 if ( key === "draggable" ) { 10134 isDraggable = uiDialog.is(":data(ui-draggable)"); 10135 if ( isDraggable && !value ) { 10136 uiDialog.draggable("destroy"); 10137 } 10138 if ( !isDraggable && value ) { 10139 this._makeDraggable(); 10140 } 10141 } 10142 if ( key === "position" ) { 10143 this._position(); 10144 } 10145 if ( key === "resizable" ) { 10146 isResizable = uiDialog.is(":data(ui-resizable)"); 10147 if ( isResizable && !value ) { 10148 uiDialog.resizable("destroy"); 10149 } 10150 if ( isResizable && typeof value === "string" ) { 10151 uiDialog.resizable( "option", "handles", value ); 10152 } 10153 if ( !isResizable && value !== false ) { 10154 this._makeResizable(); 10155 } 10156 } 10157 if ( key === "title" ) { 10158 this._title( this.uiDialogTitlebar.find(".ui-dialog-title") ); 10159 } 10160 }, 10161 _size: function() { 10162 var nonContentHeight, minContentHeight, maxContentHeight, 10163 options = this.options; 10164 this.element.show().css({ 10165 width: "auto", 10166 minHeight: 0, 10167 maxHeight: "none", 10168 height: 0 10169 }); 10170 if ( options.minWidth > options.width ) { 10171 options.width = options.minWidth; 10172 } 10173 nonContentHeight = this.uiDialog.css({ 10174 height: "auto", 10175 width: options.width 10176 }) 10177 .outerHeight(); 10178 minContentHeight = Math.max( 0, options.minHeight - nonContentHeight ); 10179 maxContentHeight = typeof options.maxHeight === "number" ? 10180 Math.max( 0, options.maxHeight - nonContentHeight ) : 10181 "none"; 10182 if ( options.height === "auto" ) { 10183 this.element.css({ 10184 minHeight: minContentHeight, 10185 maxHeight: maxContentHeight, 10186 height: "auto" 10187 }); 10188 } else { 10189 this.element.height( Math.max( 0, options.height - nonContentHeight ) ); 10190 } 10191 if (this.uiDialog.is(":data(ui-resizable)") ) { 10192 this.uiDialog.resizable( "option", "minHeight", this._minHeight() ); 10193 } 10194 }, 10195 _blockFrames: function() { 10196 this.iframeBlocks = this.document.find( "iframe" ).map(function() { 10197 var iframe = $( this ); 10198 return $( "<div>" ) 10199 .css({ 10200 position: "absolute", 10201 width: iframe.outerWidth(), 10202 height: iframe.outerHeight() 10203 }) 10204 .appendTo( iframe.parent() ) 10205 .offset( iframe.offset() )[0]; 10206 }); 10207 }, 10208 _unblockFrames: function() { 10209 if ( this.iframeBlocks ) { 10210 this.iframeBlocks.remove(); 10211 delete this.iframeBlocks; 10212 } 10213 }, 10214 _allowInteraction: function( event ) { 10215 if ( $( event.target ).closest(".ui-dialog").length ) { 10216 return true; 10217 } 10218 return !!$( event.target ).closest(".ui-datepicker").length; 10219 }, 10220 _createOverlay: function() { 10221 if ( !this.options.modal ) { 10222 return; 10223 } 10224 var that = this, 10225 widgetFullName = this.widgetFullName; 10226 if ( !$.ui.dialog.overlayInstances ) { 10227 this._delay(function() { 10228 if ( $.ui.dialog.overlayInstances ) { 10229 this.document.bind( "focusin.dialog", function( event ) { 10230 if ( !that._allowInteraction( event ) ) { 10231 event.preventDefault(); 10232 $(".ui-dialog:visible:last .ui-dialog-content") 10233 .data( widgetFullName )._focusTabbable(); 10234 } 10235 }); 10236 } 10237 }); 10238 }
10239 this.overlay = $("<div>") 10240 .addClass("ui-widget-overlay ui-front") 10241 .appendTo( this._appendTo() ); 10242 this._on( this.overlay, { 10243 mousedown: "_keepFocus" 10244 }); 10245 $.ui.dialog.overlayInstances++; 10246 }, 10247 _destroyOverlay: function() { 10248 if ( !this.options.modal ) { 10249 return; 10250 } 10251 if ( this.overlay ) { 10252 $.ui.dialog.overlayInstances--; 10253 10254 if ( !$.ui.dialog.overlayInstances ) { 10255 this.document.unbind( "focusin.dialog" ); 10256 } 10257 this.overlay.remove(); 10258 this.overlay = null; 10259 } 10260 } 10261}); 10262$.ui.dialog.overlayInstances = 0; 10263if ( $.uiBackCompat !== false ) { 10264 $.widget( "ui.dialog", $.ui.dialog, { 10265 _position: function() { 10266 var position = this.options.position, 10267 myAt = [], 10268 offset = [ 0, 0 ], 10269 isVisible; 10270 if ( position ) { 10271 if ( typeof position === "string" || (typeof position === "object" && "0" in position ) ) { 10272 myAt = position.split ? position.split(" ") : [ position[0], position[1] ]; 10273 if ( myAt.length === 1 ) { 10274 myAt[1] = myAt[0]; 10275 } 10276 $.each( [ "left", "top" ], function( i, offsetPosition ) { 10277 if ( +myAt[ i ] === myAt[ i ] ) { 10278 offset[ i ] = myAt[ i ]; 10279 myAt[ i ] = offsetPosition; 10280 } 10281 }); 10282 position = { 10283 my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " + 10284 myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]), 10285 at: myAt.join(" ") 10286 }; 10287 } 10288 position = $.extend( {}, $.ui.dialog.prototype.options.position, position ); 10289 } else { 10290 position = $.ui.dialog.prototype.options.position; 10291 } 10292 isVisible = this.uiDialog.is(":visible"); 10293 if ( !isVisible ) { 10294 this.uiDialog.show(); 10295 } 10296 this.uiDialog.position( position ); 10297 if ( !isVisible ) { 10298 this.uiDialog.hide(); 10299 } 10300 } 10301 }); 10302} 10303}( jQuery ) ); 10304(function( $ ) { 10305function modifier( fn ) { 10306 return function() { 10307 var previous = this.element.val(); 10308 fn.apply( this, arguments ); 10309 this._refresh(); 10310 if ( previous !== this.element.val() ) { 10311 this._trigger( "change" ); 10312 } 10313 }; 10314} 10315$.widget( "ui.spinner", { 10316 version: "1.10.4", 10317 defaultElement: "<input>", 10318 widgetEventPrefix: "spin", 10319 options: { 10320 culture: null, 10321 icons: { 10322 down: "ui-icon-triangle-1-s", 10323 up: "ui-icon-triangle-1-n" 10324 }, 10325 incremental: true, 10326 max: null, 10327 min: null, 10328 numberFormat: null, 10329 page: 10, 10330 step: 1, 10331 10332 change: null, 10333 spin: null, 10334 start: null, 10335 stop: null 10336 }, 10337 _create: function() { 10338 // handle string values that need to be parsed 10339 this._setOption( "max", this.options.max ); 10340 this._setOption( "min", this.options.min ); 10341 this._setOption( "step", this.options.step ); 10342 if ( this.value() !== "" ) { 10343 // Format the value, but don't constrain. 10344 this._value( this.element.val(), true ); 10345 } 10346 this._draw(); 10347 this._on( this._events ); 10348 this._refresh(); 10349 this._on( this.window, { 10350 beforeunload: function() { 10351 this.element.removeAttr( "autocomplete" ); 10352 } 10353 }); 10354 }, 10355 _getCreateOptions: function() { 10356 var options = {}, 10357 element = this.element; 10358 $.each( [ "min", "max", "step" ], function( i, option ) { 10359 var value = element.attr( option ); 10360 if ( value !== undefined && value.length ) { 10361 options[ option ] = value; 10362 } 10363 }); 10364 return options; 10365 }, 10366 _events: { 10367 keydown: function( event ) { 10368 if ( this._start( event ) && this._keydown( event ) ) { 10369 event.preventDefault(); 10370 } 10371 }, 10372 keyup: "_stop", 10373 focus: function() { 10374 this.previous = this.element.val(); 10375 }, 10376 blur: function( event ) { 10377 if ( this.cancelBlur ) { 10378 delete this.cancelBlur; 10379 return; 10380 } 10381 this._stop(); 10382 this._refresh(); 10383 if ( this.previous !== this.element.val() ) { 10384 this._trigger( "change", event ); 10385 } 10386 }, 10387 mousewheel: function( event, delta ) { 10388 if ( !delta ) { 10389 return; 10390 } 10391 if ( !this.spinning && !this._start( event ) ) { 10392 return false; 10393 } 10394 10395 this._spin( (delta > 0 ? 1 : -1) * this.options.step, event ); 10396 clearTimeout( this.mousewheelTimer ); 10397 this.mousewheelTimer = this._delay(function() { 10398 if ( this.spinning ) { 10399 this._stop( event ); 10400 } 10401 }, 100 ); 10402 event.preventDefault(); 10403 }, 10404 "mousedown .ui-spinner-button": function( event ) { 10405 var previous; 10406 previous = this.element[0] === this.document[0].activeElement ? 10407 this.previous : this.element.val(); 10408 function checkFocus() { 10409 var isActive = this.element[0] === this.document[0].activeElement; 10410 if ( !isActive ) { 10411 this.element.focus(); 10412 this.previous = previous; 10413 this._delay(function() { 10414 this.previous = previous; 10415 }); 10416 } 10417 } 10418 event.preventDefault();
vendor: 11,899 bytes, lines 10419-10852
10419 checkFocus.call( this ); 10420 this.cancelBlur = true; 10421 this._delay(function() { 10422 delete this.cancelBlur; 10423 checkFocus.call( this ); 10424 }); 10425 if ( this._start( event ) === false ) { 10426 return; 10427 } 10428 this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event ); 10429 }, 10430 "mouseup .ui-spinner-button": "_stop", 10431 "mouseenter .ui-spinner-button": function( event ) { 10432 if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) { 10433 return; 10434 } 10435 if ( this._start( event ) === false ) { 10436 return false; 10437 } 10438 this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event ); 10439 }, 10440 "mouseleave .ui-spinner-button": "_stop" 10441 }, 10442 _draw: function() { 10443 var uiSpinner = this.uiSpinner = this.element 10444 .addClass( "ui-spinner-input" ) 10445 .attr( "autocomplete", "off" ) 10446 .wrap( this._uiSpinnerHtml() ) 10447 .parent() 10448 // add buttons 10449 .append( this._buttonHtml() ); 10450 this.element.attr( "role", "spinbutton" ); 10451 this.buttons = uiSpinner.find( ".ui-spinner-button" ) 10452 .attr( "tabIndex", -1 ) 10453 .button() 10454 .removeClass( "ui-corner-all" ); 10455 if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) && 10456 uiSpinner.height() > 0 ) { 10457 uiSpinner.height( uiSpinner.height() ); 10458 } 10459 if ( this.options.disabled ) { 10460 this.disable(); 10461 } 10462 }, 10463 _keydown: function( event ) { 10464 var options = this.options, 10465 keyCode = $.ui.keyCode; 10466 switch ( event.keyCode ) { 10467 case keyCode.UP: 10468 this._repeat( null, 1, event ); 10469 return true; 10470 case keyCode.DOWN: 10471 this._repeat( null, -1, event ); 10472 return true; 10473 case keyCode.PAGE_UP: 10474 this._repeat( null, options.page, event ); 10475 return true; 10476 case keyCode.PAGE_DOWN: 10477 this._repeat( null, -options.page, event ); 10478 return true; 10479 } 10480 10481 return false; 10482 }, 10483 _uiSpinnerHtml: function() { 10484 return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"; 10485 }, 10486 _buttonHtml: function() { 10487 return "" + 10488 "<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>" + 10489 "<span class='ui-icon " + this.options.icons.up + "'>▲</span>" + 10490 "</a>" + 10491 "<a class='ui-spinner-button ui-spinner-down ui-corner-br'>" + 10492 "<span class='ui-icon " + this.options.icons.down + "'>▼</span>" + 10493 "</a>"; 10494 }, 10495 _start: function( event ) { 10496 if ( !this.spinning && this._trigger( "start", event ) === false ) { 10497 return false; 10498 } 10499 if ( !this.counter ) { 10500 this.counter = 1; 10501 } 10502 this.spinning = true; 10503 return true; 10504 }, 10505 _repeat: function( i, steps, event ) { 10506 i = i || 500; 10507 clearTimeout( this.timer ); 10508 this.timer = this._delay(function() { 10509 this._repeat( 40, steps, event ); 10510 }, i ); 10511 this._spin( steps * this.options.step, event ); 10512 }, 10513 _spin: function( step, event ) { 10514 var value = this.value() || 0; 10515 if ( !this.counter ) { 10516 this.counter = 1; 10517 } 10518 value = this._adjustValue( value + step * this._increment( this.counter ) ); 10519 if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false) { 10520 this._value( value ); 10521 this.counter++; 10522 } 10523 }, 10524 _increment: function( i ) { 10525 var incremental = this.options.incremental; 10526 if ( incremental ) { 10527 return $.isFunction( incremental ) ? 10528 incremental( i ) : 10529 Math.floor( i*i*i/50000 - i*i/500 + 17*i/200 + 1 ); 10530 } 10531 return 1; 10532 }, 10533 _precision: function() { 10534 var precision = this._precisionOf( this.options.step ); 10535 if ( this.options.min !== null ) { 10536 precision = Math.max( precision, this._precisionOf( this.options.min ) ); 10537 } 10538 return precision; 10539 }, 10540 _precisionOf: function( num ) { 10541 var str = num.toString(), 10542 decimal = str.indexOf( "." ); 10543 return decimal === -1 ? 0 : str.length - decimal - 1; 10544 }, 10545 _adjustValue: function( value ) { 10546 var base, aboveMin, 10547 options = this.options; 10548 base = options.min !== null ? options.min : 0; 10549 aboveMin = value - base; 10550 aboveMin = Math.round(aboveMin / options.step) * options.step; 10551 value = base + aboveMin; 10552 value = parseFloat( value.toFixed( this._precision() ) ); 10553 if ( options.max !== null && value > options.max) { 10554 return options.max; 10555 } 10556 if ( options.min !== null && value < options.min ) { 10557 return options.min; 10558 } 10559 return value; 10560 }, 10561 _stop: function( event ) { 10562 if ( !this.spinning ) { 10563 return; 10564 } 10565 clearTimeout( this.timer ); 10566 clearTimeout( this.mousewheelTimer ); 10567 this.counter = 0; 10568 this.spinning = false; 10569 this._trigger( "stop", event ); 10570 }, 10571 _setOption: function( key, value ) { 10572 if ( key === "culture" || key === "numberFormat" ) { 10573 var prevValue = this._parse( this.element.val() ); 10574 this.options[ key ] = value; 10575 this.element.val( this._format( prevValue ) ); 10576 return; 10577 } 10578 if ( key === "max" || key === "min" || key === "step" ) { 10579 if ( typeof value === "string" ) { 10580 value = this._parse( value ); 10581 } 10582 } 10583 if ( key === "icons" ) { 10584 this.buttons.first().find( ".ui-icon" ) 10585 .removeClass( this.options.icons.up ) 10586 .addClass( value.up ); 10587 this.buttons.last().find( ".ui-icon" ) 10588 .removeClass( this.options.icons.down ) 10589 .addClass( value.down ); 10590 } 10591 this._super( key, value ); 10592 if ( key === "disabled" ) { 10593 if ( value ) { 10594 this.element.prop( "disabled", true ); 10595 this.buttons.button( "disable" ); 10596 } else { 10597 this.element.prop( "disabled", false ); 10598 this.buttons.button( "enable" ); 10599 } 10600 } 10601 }, 10602 _setOptions: modifier(function( options ) { 10603 this._super( options ); 10604 this._value( this.element.val() ); 10605 }), 10606 _parse: function( val ) { 10607 if ( typeof val === "string" && val !== "" ) { 10608 val = window.Globalize && this.options.numberFormat ? 10609 Globalize.parseFloat( val, 10, this.options.culture ) : +val; 10610 } 10611 return val === "" || isNaN( val ) ? null : val; 10612 }, 10613 _format: function( value ) { 10614 if ( value === "" ) { 10615 return ""; 10616 } 10617 return window.Globalize && this.options.numberFormat ? 10618 Globalize.format( value, this.options.numberFormat, this.options.culture ) : 10619 value; 10620 }, 10621 _refresh: function() { 10622 this.element.attr({ 10623 "aria-valuemin": this.options.min, 10624 "aria-valuemax": this.options.max, 10625 // TODO: what should we do with values that can't be parsed? 10626 "aria-valuenow": this._parse( this.element.val() ) 10627 }); 10628 }, 10629 _value: function( value, allowAny ) { 10630 var parsed; 10631 if ( value !== "" ) { 10632 parsed = this._parse( value ); 10633 if ( parsed !== null ) { 10634 if ( !allowAny ) { 10635 parsed = this._adjustValue( parsed ); 10636 } 10637 value = this._format( parsed ); 10638 } 10639 } 10640 this.element.val( value ); 10641 this._refresh(); 10642 }, 10643 _destroy: function() { 10644 this.element 10645 .removeClass( "ui-spinner-input" ) 10646 .prop( "disabled", false ) 10647 .removeAttr( "autocomplete" ) 10648 .removeAttr( "role" ) 10649 .removeAttr( "aria-valuemin" ) 10650 .removeAttr( "aria-valuemax" ) 10651 .removeAttr( "aria-valuenow" ); 10652 this.uiSpinner.replaceWith( this.element ); 10653 }, 10654 stepUp: modifier(function( steps ) { 10655 this._stepUp( steps ); 10656 }), 10657 _stepUp: function( steps ) { 10658 if ( this._start() ) { 10659 this._spin( (steps || 1) * this.options.step ); 10660 this._stop(); 10661 } 10662 }, 10663 stepDown: modifier(function( steps ) { 10664 this._stepDown( steps ); 10665 }), 10666 _stepDown: function( steps ) { 10667 if ( this._start() ) { 10668 this._spin( (steps || 1) * -this.options.step ); 10669 this._stop(); 10670 } 10671 }, 10672 pageUp: modifier(function( pages ) { 10673 this._stepUp( (pages || 1) * this.options.page ); 10674 }), 10675 pageDown: modifier(function( pages ) { 10676 this._stepDown( (pages || 1) * this.options.page ); 10677 }), 10678 value: function( newVal ) { 10679 if ( !arguments.length ) { 10680 return this._parse( this.element.val() ); 10681 } 10682 modifier( this._value ).call( this, newVal ); 10683 }, 10684 widget: function() { 10685 return this.uiSpinner; 10686 } 10687}); 10688}( jQuery ) ); 10689(function( $ ) { 10690var increments = 0; 10691function addDescribedBy( elem, id ) { 10692 var describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ); 10693 describedby.push( id ); 10694 elem 10695 .data( "ui-tooltip-id", id ) 10696 .attr( "aria-describedby", $.trim( describedby.join( " " ) ) ); 10697} 10698function removeDescribedBy( elem ) { 10699 var id = elem.data( "ui-tooltip-id" ), 10700 describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ), 10701 index = $.inArray( id, describedby ); 10702 if ( index !== -1 ) { 10703 describedby.splice( index, 1 ); 10704 } 10705 elem.removeData( "ui-tooltip-id" ); 10706 describedby = $.trim( describedby.join( " " ) ); 10707 if ( describedby ) { 10708 elem.attr( "aria-describedby", describedby ); 10709 } else { 10710 elem.removeAttr( "aria-describedby" ); 10711 } 10712} 10713$.widget( "ui.tooltip", { 10714 version: "1.10.4", 10715 options: { 10716 content: function() { 10717 var title = $( this ).attr( "title" ) || ""; 10718 return $( "<a>" ).text( title ).html(); 10719 }, 10720 hide: true, 10721 items: "[title]:not([disabled])", 10722 position: { 10723 my: "left top+15", 10724 at: "left bottom", 10725 collision: "flipfit flip" 10726 }, 10727 show: true, 10728 tooltipClass: null, 10729 track: false, 10730 close: null, 10731 open: null 10732 }, 10733 _create: function() { 10734 this._on({ 10735 mouseover: "open", 10736 focusin: "open" 10737 }); 10738 this.tooltips = {}; 10739 this.parents = {}; 10740 if ( this.options.disabled ) { 10741 this._disable(); 10742 } 10743 }, 10744 _setOption: function( key, value ) { 10745 var that = this; 10746 if ( key === "disabled" ) { 10747 this[ value ? "_disable" : "_enable" ](); 10748 this.options[ key ] = value; 10749 return; 10750 } 10751 this._super( key, value ); 10752 if ( key === "content" ) { 10753 $.each( this.tooltips, function( id, element ) { 10754 that._updateContent( element ); 10755 }); 10756 } 10757 }, 10758 _disable: function() { 10759 var that = this; 10760 $.each( this.tooltips, function( id, element ) { 10761 var event = $.Event( "blur" ); 10762 event.target = event.currentTarget = element[0]; 10763 that.close( event, true ); 10764 }); 10765 this.element.find( this.options.items ).addBack().each(function() { 10766 var element = $( this ); 10767 if ( element.is( "[title]" ) ) { 10768 element 10769 .data( "ui-tooltip-title", element.attr( "title" ) ) 10770 .attr( "title", "" ); 10771 } 10772 }); 10773 }, 10774 _enable: function() { 10775 this.element.find( this.options.items ).addBack().each(function() { 10776 var element = $( this ); 10777 if ( element.data( "ui-tooltip-title" ) ) { 10778 element.attr( "title", element.data( "ui-tooltip-title" ) ); 10779 } 10780 }); 10781 }, 10782 open: function( event ) { 10783 var that = this, 10784 target = $( event ? event.target : this.element ) 10785 .closest( this.options.items ); 10786 if ( !target.length || target.data( "ui-tooltip-id" ) ) { 10787 return; 10788 } 10789 if ( target.attr( "title" ) ) { 10790 target.data( "ui-tooltip-title", target.attr( "title" ) ); 10791 } 10792 target.data( "ui-tooltip-open", true ); 10793 if ( event && event.type === "mouseover" ) { 10794 target.parents().each(function() { 10795 var parent = $( this ), 10796 blurEvent; 10797 if ( parent.data( "ui-tooltip-open" ) ) { 10798 blurEvent = $.Event( "blur" ); 10799 blurEvent.target = blurEvent.currentTarget = this; 10800 that.close( blurEvent, true ); 10801 } 10802 if ( parent.attr( "title" ) ) { 10803 parent.uniqueId(); 10804 that.parents[ this.id ] = { 10805 element: this, 10806 title: parent.attr( "title" ) 10807 }; 10808 parent.attr( "title", "" ); 10809 } 10810 }); 10811 } 10812 this._updateContent( target, event ); 10813 }, 10814 _updateContent: function( target, event ) { 10815 var content, 10816 contentOption = this.options.content, 10817 that = this, 10818 eventType = event ? event.type : null; 10819 10820 if ( typeof contentOption === "string" ) { 10821 return this._open( event, target, contentOption ); 10822 } 10823 content = contentOption.call( target[0], function( response ) { 10824 if ( !target.data( "ui-tooltip-open" ) ) { 10825 return; 10826 } 10827 that._delay(function() { 10828 if ( event ) { 10829 event.type = eventType; 10830 } 10831 this._open( event, target, response ); 10832 }); 10833 }); 10834 if ( content ) { 10835 this._open( event, target, content ); 10836 } 10837 }, 10838 _open: function( event, target, content ) { 10839 var tooltip, events, delayedShow, 10840 positionOption = $.extend( {}, this.options.position ); 10841 if ( !content ) { 10842 return; 10843 } 10844 tooltip = this._find( target ); 10845 if ( tooltip.length ) { 10846 tooltip.find( ".ui-tooltip-content" ).html( content ); 10847 return; 10848 } 10849 if ( target.is( "[title]" ) ) { 10850 if ( event && event.type === "mouseover" ) { 10851 target.attr( "title", "" ); 10852 } else {
10853 target.removeAttr( "title" ); 10854 } 10855 } 10856 tooltip = this._tooltip( target ); 10857 addDescribedBy( target, tooltip.attr( "id" ) ); 10858 tooltip.find( ".ui-tooltip-content" ).html( content ); 10859 function position( event ) { 10860 positionOption.of = event; 10861 if ( tooltip.is( ":hidden" ) ) { 10862 return; 10863 } 10864 tooltip.position( positionOption ); 10865 } 10866 if ( this.options.track && event && /^mouse/.test( event.type ) ) { 10867 this._on( this.document, { 10868 mousemove: position 10869 }); 10870 position( event ); 10871 } else { 10872 tooltip.position( $.extend({ 10873 of: target 10874 }, this.options.position ) ); 10875 } 10876 tooltip.hide(); 10877 this._show( tooltip, this.options.show ); 10878 if ( this.options.show && this.options.show.delay ) { 10879 delayedShow = this.delayedShow = setInterval(function() { 10880 if ( tooltip.is( ":visible" ) ) { 10881 position( positionOption.of ); 10882 clearInterval( delayedShow ); 10883 } 10884 }, $.fx.interval ); 10885 } 10886 this._trigger( "open", event, { tooltip: tooltip } ); 10887 events = { 10888 keyup: function( event ) { 10889 if ( event.keyCode === $.ui.keyCode.ESCAPE ) { 10890 var fakeEvent = $.Event(event); 10891 fakeEvent.currentTarget = target[0]; 10892 this.close( fakeEvent, true ); 10893 } 10894 }, 10895 remove: function() { 10896 this._removeTooltip( tooltip ); 10897 } 10898 }; 10899 if ( !event || event.type === "mouseover" ) { 10900 events.mouseleave = "close"; 10901 } 10902 if ( !event || event.type === "focusin" ) { 10903 events.focusout = "close"; 10904 } 10905 this._on( true, target, events ); 10906 }, 10907 close: function( event ) { 10908 var that = this, 10909 target = $( event ? event.currentTarget : this.element ), 10910 tooltip = this._find( target ); 10911 if ( this.closing ) { 10912 return; 10913 } 10914 clearInterval( this.delayedShow ); 10915 if ( target.data( "ui-tooltip-title" ) ) { 10916 target.attr( "title", target.data( "ui-tooltip-title" ) ); 10917 } 10918 removeDescribedBy( target ); 10919 tooltip.stop( true ); 10920 this._hide( tooltip, this.options.hide, function() { 10921 that._removeTooltip( $( this ) ); 10922 }); 10923 target.removeData( "ui-tooltip-open" ); 10924 this._off( target, "mouseleave focusout keyup" ); 10925 if ( target[0] !== this.element[0] ) { 10926 this._off( target, "remove" ); 10927 } 10928 this._off( this.document, "mousemove" ); 10929 if ( event && event.type === "mouseleave" ) { 10930 $.each( this.parents, function( id, parent ) { 10931 $( parent.element ).attr( "title", parent.title ); 10932 delete that.parents[ id ]; 10933 }); 10934 } 10935 this.closing = true; 10936 this._trigger( "close", event, { tooltip: tooltip } ); 10937 this.closing = false; 10938 }, 10939 _tooltip: function( element ) { 10940 var id = "ui-tooltip-" + increments++, 10941 tooltip = $( "<div>" ) 10942 .attr({ 10943 id: id, 10944 role: "tooltip" 10945 }) 10946 .addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " + 10947 ( this.options.tooltipClass || "" ) ); 10948 $( "<div>" ) 10949 .addClass( "ui-tooltip-content" ) 10950 .appendTo( tooltip ); 10951 tooltip.appendTo( this.document[0].body ); 10952 this.tooltips[ id ] = element; 10953 return tooltip; 10954 }, 10955 _find: function( target ) { 10956 var id = target.data( "ui-tooltip-id" ); 10957 return id ? $( "#" + id ) : $(); 10958 }, 10959 _removeTooltip: function( tooltip ) { 10960 tooltip.remove(); 10961 delete this.tooltips[ tooltip.attr( "id" ) ]; 10962 }, 10963 _destroy: function() { 10964 var that = this; 10965 $.each( this.tooltips, function( id, element ) { 10966 var event = $.Event( "blur" ); 10967 event.target = event.currentTarget = element[0]; 10968 that.close( event, true ); 10969 $( "#" + id ).remove(); 10970 if ( element.data( "ui-tooltip-title" ) ) { 10971 element.attr( "title", element.data( "ui-tooltip-title" ) ); 10972 element.removeData( "ui-tooltip-title" ); 10973 } 10974 }); 10975 } 10976}); 10977}(jQuery)); 10978</script>
10978<script>jQuery(function(a){a.datepicker.regional.es={closeText:"Cerrar",preposition:"de ",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:"Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre".split(" "),monthNamesShort:"Ene Feb Mar Abr May Jun Jul Ago Sep Oct Nov Dic".split(" "),dayNames:"Domingo Lunes Martes Miércoles Jueves Viernes Sábado".split(" "),dayNamesShort:"Dom Lun Mar Mié Juv Vie Sáb".split(" "),dayNamesMin:"Do Lu Ma Mi Ju Vi Sá".split(" "),weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.es)});</script>
10978<script> 10979(function() { 10980 var $ = jQuery; 10981 var LightboxOptions = (function() { 10982 function LightboxOptions() { 10983 this.fadeDuration = 500; 10984 this.fitImagesInViewport = true; 10985 this.resizeDuration = 700; 10986 this.positionFromTop = 50; 10987 this.showImageNumberLabel = true; 10988 this.alwaysShowNavOnTouchDevices = false; 10989 this.wrapAround = false; 10990 } 10991 LightboxOptions.prototype.albumLabel = function(curImageNum, albumSize) { 10992 return "Image " + curImageNum + " of " + albumSize; 10993 }; 10994 return LightboxOptions; 10995 })(); 10996 var Lightbox = (function() { 10997 function Lightbox(options) { 10998 this.options = options; 10999 this.album = []; 11000 this.currentImageIndex = void 0; 11001 this.init(); 11002 } 11003 Lightbox.prototype.init = function() { 11004 this.enable(); 11005 this.build(); 11006 }; 11007 Lightbox.prototype.enable = function() { 11008 var self = this; 11009 $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]', function(event) { 11010 self.start($(event.currentTarget)); 11011 return false; 11012 }); 11013 }; 11014 Lightbox.prototype.build = function() { 11015 var self = this; 11016 $("<div id='lightboxOverlay' class='lightboxOverlay'></div><div id='lightbox' class='lightbox'><div class='lb-outerContainer'><div class='lb-container'><img class='lb-image' src='' /><div class='lb-nav'><a class='lb-prev' href='' ></a><a class='lb-next' href='' ></a></div><div class='lb-loader'><a class='lb-cancel'></a></div></div></div><div class='lb-dataContainer'><div class='lb-data'><div class='lb-details'><span class='lb-caption'></span><span class='lb-number'></span></div><div class='lb-closeContainer'><a class='lb-close'></a></div></div></div></div>").appendTo($('body')); 11017 this.$lightbox = $('#lightbox'); 11018 this.$overlay = $('#lightboxOverlay'); 11019 this.$outerContainer = this.$lightbox.find('.lb-outerContainer'); 11020 this.$container = this.$lightbox.find('.lb-container'); 11021 this.containerTopPadding = parseInt(this.$container.css('padding-top'), 10); 11022 this.containerRightPadding = parseInt(this.$container.css('padding-right'), 10); 11023 this.containerBottomPadding = parseInt(this.$container.css('padding-bottom'), 10); 11024 this.containerLeftPadding = parseInt(this.$container.css('padding-left'), 10); 11025 this.$overlay.hide().on('click', function() { 11026 self.end(); 11027 return false; 11028 }); 11029 this.$lightbox.hide().on('click', function(event) { 11030 if ($(event.target).attr('id') === 'lightbox') { 11031 self.end(); 11032 } 11033 return false; 11034 }); 11035 this.$outerContainer.on('click', function(event) { 11036 if ($(event.target).attr('id') === 'lightbox') { 11037 self.end(); 11038 } 11039 return false; 11040 }); 11041 this.$lightbox.find('.lb-prev').on('click', function() { 11042 if (self.currentImageIndex === 0) { 11043 self.changeImage(self.album.length - 1); 11044 } else { 11045 self.changeImage(self.currentImageIndex - 1); 11046 } 11047 return false; 11048 }); 11049 this.$lightbox.find('.lb-next').on('click', function() { 11050 if (self.currentImageIndex === self.album.length - 1) { 11051 self.changeImage(0); 11052 } else { 11053 self.changeImage(self.currentImageIndex + 1); 11054 } 11055 return false; 11056 }); 11057 this.$lightbox.find('.lb-loader, .lb-close').on('click', function() { 11058 self.end(); 11059 return false; 11060 }); 11061 }; 11062 Lightbox.prototype.start = function($link) { 11063 var self = this; 11064 var $window = $(window); 11065 $window.on('resize', $.proxy(this.sizeOverlay, this)); 11066 $('select, object, embed').css({ 11067 visibility: "hidden" 11068 }); 11069 this.sizeOverlay(); 11070 this.album = []; 11071 var imageNumber = 0; 11072 function addToAlbum($link) { 11073 self.album.push({ 11074 link: $link.attr('href'), 11075 title: $link.attr('data-title') || $link.attr('title') 11076 }); 11077 } 11078 var dataLightboxValue = $link.attr('data-lightbox'); 11079 var $links; 11080 if (dataLightboxValue) { 11081 $links = $($link.prop("tagName") + '[data-lightbox="' + dataLightboxValue + '"]'); 11082 for (var i = 0; i < $links.length; i = ++i) { 11083 addToAlbum($($links[i])); 11084 if ($links[i] === $link[0]) { 11085 imageNumber = i; 11086 } 11087 } 11088 } else { 11089 if ($link.attr('rel') === 'lightbox') { 11090 // If image is not part of a set 11091 addToAlbum($link); 11092 } else { 11093 // If image is part of a set 11094 $links = $($link.prop("tagName") + '[rel="' + $link.attr('rel') + '"]'); 11095 for (var j = 0; j < $links.length; j = ++j) { 11096 addToAlbum($($links[j])); 11097 if ($links[j] === $link[0]) { 11098 imageNumber = j; 11099 } 11100 } 11101 } 11102 } 11103 var top = $window.scrollTop() + this.options.positionFromTop; 11104 var left = $window.scrollLeft(); 11105 this.$lightbox.css({ 11106 top: top + 'px', 11107 left: left + 'px' 11108 }).fadeIn(this.options.fadeDuration); 11109 this.changeImage(imageNumber); 11110 }; 11111 Lightbox.prototype.changeImage = function(imageNumber) { 11112 var self = this; 11113 this.disableKeyboardNav(); 11114 var $image = this.$lightbox.find('.lb-image'); 11115 this.$overlay.fadeIn(this.options.fadeDuration); 11116 $('.lb-loader').fadeIn('slow'); 11117 this.$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide(); 11118 this.$outerContainer.addClass('animating'); 11119 var preloader = new Image(); 11120 preloader.onload = function() { 11121 var $preloader, imageHeight, imageWidth, maxImageHeight, maxImageWidth, windowHeight, windowWidth; 11122 $image.attr('src', self.album[imageNumber].link); 11123 $preloader = $(preloader); 11124 $image.width(preloader.width); 11125 $image.height(preloader.height); 11126 if (self.options.fitImagesInViewport) { 11127 windowWidth = $(window).width(); 11128 windowHeight = $(window).height(); 11129 maxImageWidth = windowWidth - self.containerLeftPadding - self.containerRightPadding - 20; 11130 maxImageHeight = windowHeight - self.containerTopPadding - self.containerBottomPadding - 120; 11131 if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) { 11132 if ((preloader.width / maxImageWidth) > (preloader.height / maxImageHeight)) { 11133 imageWidth = maxImageWidth; 11134 imageHeight = parseInt(preloader.height / (preloader.width / imageWidth), 10); 11135 $image.width(imageWidth); 11136 $image.height(imageHeight); 11137 } else { 11138 imageHeight = maxImageHeight; 11139 imageWidth = parseInt(preloader.width / (preloader.height / imageHeight), 10); 11140 $image.width(imageWidth); 11141 $image.height(imageHeight); 11142 } 11143 } 11144 } 11145 self.sizeContainer($image.width(), $image.height()); 11146 }; 11147 preloader.src = this.album[imageNumber].link; 11148 this.currentImageIndex = imageNumber; 11149 }; 11150 Lightbox.prototype.sizeOverlay = function() { 11151 this.$overlay 11152 .width($(window).width()) 11153 .height($(document).height()); 11154 }; 11155 Lightbox.prototype.sizeContainer = function(imageWidth, imageHeight) { 11156 var self = this; 11157 var oldWidth = this.$outerContainer.outerWidth(); 11158 var oldHeight = this.$outerContainer.outerHeight(); 11159 var newWidth = imageWidth + this.containerLeftPadding + this.containerRightPadding; 11160 var newHeight = imageHeight + this.containerTopPadding + this.containerBottomPadding; 11161 function postResize() { 11162 self.$lightbox.find('.lb-dataContainer').width(newWidth); 11163 self.$lightbox.find('.lb-prevLink').height(newHeight); 11164 self.$lightbox.find('.lb-nextLink').height(newHeight); 11165 self.showImage(); 11166 } 11167 if (oldWidth !== newWidth || oldHeight !== newHeight) { 11168 this.$outerContainer.animate({ 11169 width: newWidth, 11170 height: newHeight 11171 }, this.options.resizeDuration, 'swing', function() { 11172 postResize(); 11173 }); 11174 } else { 11175 postResize(); 11176 } 11177 }; 11178 Lightbox.prototype.showImage = function() { 11179 this.$lightbox.find('.lb-loader').hide(); 11180 this.$lightbox.find('.lb-image').fadeIn('slow'); 11181 this.updateNav(); 11182 this.updateDetails(); 11183 this.preloadNeighboringImages(); 11184 this.enableKeyboardNav(); 11185 }; 11186 Lightbox.prototype.updateNav = function() { 11187 var alwaysShowNav = false;
11188 try { 11189 document.createEvent("TouchEvent"); 11190 alwaysShowNav = (this.options.alwaysShowNavOnTouchDevices)? true: false; 11191 } catch (e) {} 11192 this.$lightbox.find('.lb-nav').show(); 11193 if (this.album.length > 1) { 11194 if (this.options.wrapAround) { 11195 if (alwaysShowNav) { 11196 this.$lightbox.find('.lb-prev, .lb-next').css('opacity', '1'); 11197 } 11198 this.$lightbox.find('.lb-prev, .lb-next').show(); 11199 } else { 11200 if (this.currentImageIndex > 0) { 11201 this.$lightbox.find('.lb-prev').show(); 11202 if (alwaysShowNav) { 11203 this.$lightbox.find('.lb-prev').css('opacity', '1'); 11204 } 11205 } 11206 if (this.currentImageIndex < this.album.length - 1) { 11207 this.$lightbox.find('.lb-next').show(); 11208 if (alwaysShowNav) { 11209 this.$lightbox.find('.lb-next').css('opacity', '1'); 11210 } 11211 } 11212 } 11213 } 11214 }; 11215 Lightbox.prototype.updateDetails = function() { 11216 var self = this; 11217 if (typeof this.album[this.currentImageIndex].title !== 'undefined' && this.album[this.currentImageIndex].title !== "") { 11218 this.$lightbox.find('.lb-caption') 11219 .html(this.album[this.currentImageIndex].title) 11220 .fadeIn('fast') 11221 .find('a').on('click', function(event){ 11222 location.href = $(this).attr('href'); 11223 }); 11224 } 11225 if (this.album.length > 1 && this.options.showImageNumberLabel) { 11226 this.$lightbox.find('.lb-number').text(this.options.albumLabel(this.currentImageIndex + 1, this.album.length)).fadeIn('fast'); 11227 } else { 11228 this.$lightbox.find('.lb-number').hide(); 11229 } 11230 this.$outerContainer.removeClass('animating'); 11231 this.$lightbox.find('.lb-dataContainer').fadeIn(this.options.resizeDuration, function() { 11232 return self.sizeOverlay(); 11233 }); 11234 }; 11235 Lightbox.prototype.preloadNeighboringImages = function() { 11236 if (this.album.length > this.currentImageIndex + 1) { 11237 var preloadNext = new Image(); 11238 preloadNext.src = this.album[this.currentImageIndex + 1].link; 11239 } 11240 if (this.currentImageIndex > 0) { 11241 var preloadPrev = new Image(); 11242 preloadPrev.src = this.album[this.currentImageIndex - 1].link; 11243 } 11244 }; 11245 Lightbox.prototype.enableKeyboardNav = function() { 11246 $(document).on('keyup.keyboard', $.proxy(this.keyboardAction, this)); 11247 }; 11248 Lightbox.prototype.disableKeyboardNav = function() { 11249 $(document).off('.keyboard'); 11250 }; 11251 Lightbox.prototype.keyboardAction = function(event) { 11252 var KEYCODE_ESC = 27; 11253 var KEYCODE_LEFTARROW = 37; 11254 var KEYCODE_RIGHTARROW = 39; 11255 var keycode = event.keyCode; 11256 var key = String.fromCharCode(keycode).toLowerCase(); 11257 if (keycode === KEYCODE_ESC || key.match(/x|o|c/)) { 11258 this.end(); 11259 } else if (key === 'p' || keycode === KEYCODE_LEFTARROW) { 11260 if (this.currentImageIndex !== 0) { 11261 this.changeImage(this.currentImageIndex - 1); 11262 } else if (this.options.wrapAround && this.album.length > 1) { 11263 this.changeImage(this.album.length - 1); 11264 } 11265 } else if (key === 'n' || keycode === KEYCODE_RIGHTARROW) { 11266 if (this.currentImageIndex !== this.album.length - 1) { 11267 this.changeImage(this.currentImageIndex + 1); 11268 } else if (this.options.wrapAround && this.album.length > 1) { 11269 this.changeImage(0); 11270 } 11271 } 11272 }; 11273 Lightbox.prototype.end = function() { 11274 this.disableKeyboardNav(); 11275 $(window).off("resize", this.sizeOverlay); 11276 this.$lightbox.fadeOut(this.options.fadeDuration); 11277 this.$overlay.fadeOut(this.options.fadeDuration); 11278 $('select, object, embed').css({ 11279 visibility: "visible" 11280 }); 11281 }; 11282 return Lightbox; 11283 })(); 11284 $(function() { 11285 var options = new LightboxOptions(); 11286 var lightbox = new Lightbox(options); 11287 }); 11288}).call(this); 11289</script>
11289<script>!function(a){var b="selectric",c=function(a){var b,c="40-46 50-53 54-57 62-70 71-74 61 47 77".replace(/\d+/g,"\\3$&").split(" ");for(b in c){if(!c.hasOwnProperty(b))return;a=a.toLowerCase().replace(RegExp("["+c[b]+"]","g"),"aeiouncy".charAt(b))}return a},d=function(a){var b=arguments;return(""+a).replace(/{(\d+|(\w+))}/g,function(a,c,d){return d&&b[1]?b[1][d]:b[c]})},e=function(e,f){function g(){function e(a){/^(9|13|27)$/.test(a.keyCode||a.which)&&(a.stopPropagation(),l(x,!0))}var g=D.children(),h="<ul>",j=g.filter(":"+R).index();y=x=~j?j:0,(C=g.length)&&(g.each(function(b){var e=a(this),g=e.html(),i=e.prop("disabled"),j=f.optionsItemBuilder;I[b]={value:e.val(),text:g,slug:c(g),disabled:i},h+=d('<li class="{1}">{2}</li>',a.trim([b==y?R:"",b==C-1?"last":"",i?"disabled":""].join(" ")),a.isFunction(j)?j(I[b],e,b):d(j,I[b]))}),G.html(h+"</ul>"),J.html(I[y].text)),F.add(D).off(K),H.data(b,!0).prop("class",[s[6],D.prop("class"),P,f.responsive?s[8]:""].join(" ")),D.prop("disabled")?E.prop("disabled",!0):(H.removeClass(P).hover(function(){a(this).toggleClass(s[7])}),f.openOnHover&&F.on("mouseenter"+K,i),F.on(N,function(a){u?k():i(a)}),E.prop("disabled",!1).off().on({keypress:e,keydown:function(a){e(a),clearTimeout(w),w=setTimeout(function(){E.val("")},f.keySearchTimeout);var b=a.keyCode||a.which;b>36&&41>b&&l(39>b?o():n())},focusin:function(a){E.one("blur",function(){E.blur()}),u||i(a)}}).on(S,function(){E.val().length&&a.each(I,function(a,b){return RegExp("^"+E.val(),"i").test(b.slug)&&!b.disabled?(l(a),!1):void 0})}),v=a("li",G.removeAttr("style")).click(function(){return l(a(this).index(),!0),!1}))}function h(){var a=G.closest(":visible").children(":hidden"),b=f.maxHeight;a.addClass(Q);var c=G.outerWidth(),d=F.outerWidth()-(c-G.width());!f.expandToItemText||d>c?B=d:(G.css("overflow","scroll"),H.width(9e4),B=G.width(),G.css("overflow",""),H.width("")),G.width(B).height()>b&&G.height(b),a.removeClass(Q)}function i(b){b.preventDefault(),b.stopPropagation(),h(),a("."+O).removeClass(O),u=!0,z=G.outerHeight(),E.val("").is(":focus")||E.focus(),L.on(N,k).on("scroll"+K,j),j(),f.openOnHover&&(clearTimeout(A),H.one("mouseleave"+K,function(){A=setTimeout(k,500)})),H.addClass(O),m(x),f.onOpen(e)}function j(){h(),G.css("top",H.offset().top+H.outerHeight()+z>M.scrollTop()+M.height()?-z:"")}function k(a){if(!a&&y!=x){var b=I[x].text;D.prop("selectedIndex",y=x).data("value",b).trigger("change",[b,y]),f.onChange(e),J.html(b)}L.off(K),H.removeClass(O),u=!1,f.onClose(e)}function l(a,b){I[x=a].disabled||(v.removeClass(R).eq(a).addClass(R),m(a),b&&k())}function m(a){var b=v.eq(a).outerHeight(),c=v[a].offsetTop,d=G.scrollTop(),e=c+2*b;G.scrollTop(e>d+z?e-z:d>c-b?c-b:d)}function n(a){if(I[a=(x+1)%C].disabled)for(;I[a=(a+1)%C].disabled;);return a}function o(a){if(I[a=(x>0?x:C)-1].disabled)for(;I[a=(a>0?a:C)-1].disabled;);return a}f=a.extend(!0,{onOpen:a.noop,onClose:a.noop,onChange:a.noop,maxHeight:300,keySearchTimeout:500,arrowButtonMarkup:'<b class="button">▾</b>',disableOnMobile:!0,openOnHover:!1,expandToItemText:!1,responsive:!1,customClass:{prefix:"selectric",postfixes:"Input Items Open Disabled TempShow HideSelect Wrapper Hover Responsive",camelCase:!0},optionsItemBuilder:"{text}"},f);var p,q=f.customClass,r=q.postfixes.split(" "),s=[];if(!f.disableOnMobile||!/andrroid|ipp(hone|od|ad)/i.test(navigator.userAgent)){for(;p=r.shift();){var t=q.prefix+p;s.push(q.camelCase?t:t.replace(/([A-Z])/g,"-$&").toLowerCase())}var u,v,w,x,y,z,A,B,C,D=a(e),E=a('<input type="text" class="'+s[0]+'"/>'),F=a('<div class="'+q.prefix+'"><p class="label"/>'+f.arrowButtonMarkup+"</div>"),G=a('<div class="'+s[1]+'" tabindex="-1"></div>'),H=D.data(b,!0).wrap("<div>").parent().append(F.add(G).add(E)),I=[],J=a(".label",F),K=".sl",L=a(document),M=a(window),N="click"+K,O=s[2],P=s[3],Q=s[4],R="selected",S="oninput"in E[0]?"input":"keyup";D.wrap('<div class="'+s[5]+'">'),g(),D.on({refresh:g,destroy:function(){G.add(F).add(E).remove(),D.removeData(b).removeData("value").off(K+" refresh destroy open close").unwrap().unwrap()},open:i,close:k})}};a.fn[b]=function(c,d){return this.each(function(){a(this).data(b)?""+c===c&&a(this).trigger(c):e(this,c||d)})}}(jQuery);</script>
11289<script>!function(t){t.fn.unveil=function(i,e){function n(){var i=l.filter(function(){var i=t(this);if(!i.is(":hidden")){var e=o.scrollTop(),n=e+o.height(),r=i.offset().top;return r+i.height()>=e-u&&r<=n+u}});r=i.trigger("unveil"),l=l.not(r)}var r,o=t(window),u=i||0,s=window.devicePixelRatio>1?"data-src-retina":"data-src",l=this;return this.one("unveil",function(){var t=this.getAttribute(s);(t=t||this.getAttribute("data-src"))&&(this.setAttribute("src",t),"function"==typeof e&&e.call(this))}),o.on("scroll.unveil resize.unveil lookup.unveil",n),n(),this}}(window.jQuery||window.Zepto);</script>
vendor: 4,009 bytes, line 11289
11289<script>(function(a,b,c){function g(a,c){var d=b.createElement(a||"div"),e;for(e in c)d[e]=c[e];return d}function h(a){for(var b=1,c=arguments.length;b<c;b++)a.appendChild(arguments[b]);return a}function j(a,b,c,d){var g=["opacity",b,~~(a*100),c,d].join("-"),h=.01+c/d*100,j=Math.max(1-(1-a)/b*(100-h),a),k=f.substring(0,f.indexOf("Animation")).toLowerCase(),l=k&&"-"+k+"-"||"";return e[g]||(i.insertRule("@"+l+"keyframes "+g+"{"+"0%{opacity:"+j+"}"+h+"%{opacity:"+a+"}"+(h+.01)+"%{opacity:1}"+(h+b)%100+"%{opacity:"+a+"}"+"100%{opacity:"+j+"}"+"}",0),e[g]=1),g}function k(a,b){var e=a.style,f,g;if(e[b]!==c)return b;b=b.charAt(0).toUpperCase()+b.slice(1);for(g=0;g<d.length;g++){f=d[g]+b;if(e[f]!==c)return f}}function l(a,b){for(var c in b)a.style[k(a,c)||c]=b[c];return a}function m(a){for(var b=1;b<arguments.length;b++){var d=arguments[b];for(var e in d)a[e]===c&&(a[e]=d[e])}return a}function n(a){var b={x:a.offsetLeft,y:a.offsetTop};while(a=a.offsetParent)b.x+=a.offsetLeft,b.y+=a.offsetTop;return b}var d=["webkit","Moz","ms","O"],e={},f,i=function(){var a=g("style");return h(b.getElementsByTagName("head")[0],a),a.sheet||a.styleSheet}(),o={lines:12,length:7,width:5,radius:10,rotate:0,color:"#000",speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto"},p=function q(a){if(!this.spin)return new q(a);this.opts=m(a||{},q.defaults,o)};p.defaults={},m(p.prototype,{spin:function(a){this.stop();var b=this,c=b.opts,d=b.el=l(g(0,{className:c.className}),{position:"relative",zIndex:c.zIndex}),e=c.radius+c.length+c.width,h,i;a&&(a.insertBefore(d,a.firstChild||null),i=n(a),h=n(d),l(d,{left:(c.left=="auto"?i.x-h.x+(a.offsetWidth>>1):c.left+e)+"px",top:(c.top=="auto"?i.y-h.y+(a.offsetHeight>>1):c.top+e)+"px"})),d.setAttribute("aria-role","progressbar"),b.lines(d,b.opts);if(!f){var j=0,k=c.fps,m=k/c.speed,o=(1-c.opacity)/(m*c.trail/100),p=m/c.lines;!function q(){j++;for(var a=c.lines;a;a--){var e=Math.max(1-(j+a*p)%m*o,c.opacity);b.opacity(d,c.lines-a,e,c)}b.timeout=b.el&&setTimeout(q,~~(1e3/k))}()}return b},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=c),this},lines:function(a,b){function e(a,d){return l(g(),{position:"absolute",width:b.length+b.width+"px",height:b.width+"px",background:a,boxShadow:d,transformOrigin:"left",transform:"rotate("+~~(360/b.lines*c+b.rotate)+"deg) translate("+b.radius+"px"+",0)",borderRadius:(b.width>>1)+"px"})}var c=0,d;for(;c<b.lines;c++)d=l(g(),{position:"absolute",top:1+~(b.width/2)+"px",transform:b.hwaccel?"translate3d(0,0,0)":"",opacity:b.opacity,animation:f&&j(b.opacity,b.trail,c,b.lines)+" "+1/b.speed+"s linear infinite"}),b.shadow&&h(d,l(e("#000","0 0 4px #000"),{top:"2px"})),h(a,h(d,e(b.color,"0 0 1px rgba(0,0,0,.1)")));return a},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}}),!function(){function a(a,b){return g("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',b)}var b=l(g("group"),{behavior:"url(#default#VML)"});!k(b,"transform")&&b.adj?(i.addRule(".spin-vml","behavior:url(#default#VML)"),p.prototype.lines=function(b,c){function f(){return l(a("group",{coordsize:e+" "+e,coordorigin:-d+" "+ -d}),{width:e,height:e})}function k(b,e,g){h(i,h(l(f(),{rotation:360/c.lines*b+"deg",left:~~e}),h(l(a("roundrect",{arcsize:1}),{width:d,height:c.width,left:c.radius,top:-c.width>>1,filter:g}),a("fill",{color:c.color,opacity:c.opacity}),a("stroke",{opacity:0}))))}var d=c.length+c.width,e=2*d,g=-(c.width+c.length)*2+"px",i=l(f(),{position:"absolute",top:g,left:g}),j;if(c.shadow)for(j=1;j<=c.lines;j++)k(j,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(j=1;j<=c.lines;j++)k(j);return h(b,i)},p.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}):f=k(b,"animation")}(),a.Spinner=p})(window,document);</script>
vendor: 34,297 bytes, lines 11289-11307
11289<script> 11290(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",A="tap",j="doubletap",b="longtap",y="hold",D="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};f.fn.swipe=function(G){var F=f(this),E=F.data(B);if(E&&typeof G==="string"){if(E[G]){return E[G].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+G+" does not exist on jQuery.swipe")}}else{if(!E&&(typeof G==="object"||!G)){return w.apply(this,arguments)}}return F};f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:z};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:D,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(E){if(E&&(E.allowPageScroll===undefined&&(E.swipe!==undefined||E.swipeStatus!==undefined))){E.allowPageScroll=m}if(E.click!==undefined&&E.tap===undefined){E.tap=E.click}if(!E){E={}}E=f.extend({},f.fn.swipe.defaults,E);return this.each(function(){var G=f(this);var F=G.data(B);if(!F){F=new C(this,E);G.data(B,F)}})}function C(a4,av){var az=(a||d||!av.fallbackToMouseEvents),J=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",U=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",S=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ab=0,a1=0,aZ=0,G=1,aq=0,aJ=0,M=null;var aR=f(a4);var Z="start";var W=0;var aQ=null;var T=0,a2=0,a5=0,ad=0,N=0;var aW=null,af=null;try{aR.bind(J,aN);aR.bind(aD,a9)}catch(ak){f.error("events not supported "+J+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(J,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(B,null);return aR};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(av.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bb=a?be.touches[0]:be;Z=g;if(a){W=be.touches.length}else{bd.preventDefault()}ag=0;aP=null;aJ=null;ab=0;a1=0;aZ=0;G=1;aq=0;aQ=aj();M=aa();R();if(!a||(W===av.fingers||av.fingers===i)||aX()){ai(0,bb);T=at();if(W==2){ai(1,be.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}if(av.swipeStatus||av.pinchStatus){bc=O(be,Z)}}else{bc=false}if(bc===false){Z=q;O(be,Z);return bc}else{if(av.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(aR,be,be.target)}},this),av.longTapThreshold)}ao(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(Z===h||Z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=aH(bc);a2=at();if(a){W=bh.touches.length}if(av.hold){clearTimeout(af)}Z=k;if(W==2){if(a1==0){ai(1,bh.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}else{aH(bh.touches[1]);aZ=au(aQ[0].end,aQ[1].end);aJ=ar(aQ[0].end,aQ[1].end)}G=a7(a1,aZ);aq=Math.abs(a1-aZ)}if((W===av.fingers||av.fingers===i)||!a||aX()){aP=aL(bf.start,bf.end);al(be,aP);ag=aS(bf.start,bf.end);ab=aM();aI(aP,ag);if(av.swipeStatus||av.pinchStatus){bd=O(bh,Z)}if(!av.triggerOnTouchEnd||av.triggerOnTouchLeave){var bb=true;if(av.triggerOnTouchLeave){var bg=aY(this);bb=E(bf.end,bg)}if(!av.triggerOnTouchEnd&&bb){Z=aC(k)}else{if(av.triggerOnTouchLeave&&!bb){Z=aC(h)}}if(Z==q||Z==h){O(bh,Z)}}}else{Z=q;O(bh,Z)}if(bd===false){Z=q;O(bh,Z)}}function L(bb){var bc=bb.originalEvent;if(a){if(bc.touches.length>0){F();return true}}if(am()){W=ad}a2=at();ab=aM();if(ba()||!an()){Z=q;O(bc,Z)}else{if(av.triggerOnTouchEnd||(av.triggerOnTouchEnd==false&&Z===k)){bb.preventDefault();Z=h;O(bc,Z)}else{if(!av.triggerOnTouchEnd&&a6()){Z=h;aF(bc,Z,A)}else{if(Z===k){Z=q;O(bc,Z)}}}}ao(false);return null}function a9(){W=0;a2=0;T=0;a1=0;aZ=0;G=1;R();ao(false)}function K(bb){var bc=bb.originalEvent;if(av.triggerOnTouchLeave){Z=aC(h);O(bc,Z)}}function aK(){aR.unbind(J,aN);aR.unbind(aD,a9);aR.unbind(ay,a3);aR.unbind(U,L);if(S){aR.unbind(S,K)}ao(false)}function aC(bf){var be=bf;var bd=aA();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerOnTouchEnd||av.triggerOnTouchLeave)){be=h}else{if(!bc&&bf==h&&av.triggerOnTouchLeave){be=q}}}return be}function O(bd,bb){var bc=undefined;if(I()||V()){bc=aF(bd,bb,l)}else{if((P()||aX())&&bc!==false){bc=aF(bd,bb,t)}}if(aG()&&bc!==false){bc=aF(bd,bb,j)}else{if(ap()&&bc!==false){bc=aF(bd,bb,b)}else{if(ah()&&bc!==false){bc=aF(bd,bb,A)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function aF(be,bb,bd){var bc=undefined;if(bd==l){aR.trigger("swipeStatus",[bb,aP||null,ag||0,ab||0,W,aQ]);if(av.swipeStatus){bc=av.swipeStatus.call(aR,be,bb,aP||null,ag||0,ab||0,W,aQ);if(bc===false){return false}}if(bb==h&&aV()){aR.trigger("swipe",[aP,ag,ab,W,aQ]);if(av.swipe){bc=av.swipe.call(aR,be,aP,ag,ab,W,aQ);if(bc===false){return false}}switch(aP){case p:aR.trigger("swipeLeft",[aP,ag,ab,W,aQ]);if(av.swipeLeft){bc=av.swipeLeft.call(aR,be,aP,ag,ab,W,aQ)}break;case o:aR.trigger("swipeRight",[aP,ag,ab,W,aQ]);if(av.swipeRight){bc=av.swipeRight.call(aR,be,aP,ag,ab,W,aQ)}break;case e:aR.trigger("swipeUp",[aP,ag,ab,W,aQ]);if(av.swipeUp){bc=av.swipeUp.call(aR,be,aP,ag,ab,W,aQ)}break;case x:aR.trigger("swipeDown",[aP,ag,ab,W,aQ]);if(av.swipeDown){bc=av.swipeDown.call(aR,be,aP,ag,ab,W,aQ)}break}}}if(bd==t){aR.trigger("pinchStatus",[bb,aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchStatus){bc=av.pinchStatus.call(aR,be,bb,aJ||null,aq||0,ab||0,W,G,aQ);if(bc===false){return false}}if(bb==h&&a8()){switch(aJ){case c:aR.trigger("pinchIn",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchIn){bc=av.pinchIn.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break;case z:aR.trigger("pinchOut",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchOut){bc=av.pinchOut.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break}}}if(bd==A){if(bb===q||bb===h){clearTimeout(aW);clearTimeout(af);if(Y()&&!H()){N=at();aW=setTimeout(f.proxy(function(){N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}},this),av.doubleTapThreshold)}else{N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("doubletap",[be.target]);if(av.doubleTap){bc=av.doubleTap.call(aR,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("longtap",[be.target]);if(av.longTap){bc=av.longTap.call(aR,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelThreshold!==null&&aP!==null){bb=(aT(aP)-ag)>=av.cancelThreshold}return bb}function ae(){if(av.pinchThreshold!==null){return aq>=av.pinchThreshold}return true}function aA(){var bb;if(av.maxTimeThreshold){if(ab>=av.maxTimeThreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowPageScroll===m||aX()){bb.preventDefault()}else{var bd=av.allowPageScroll===s;switch(bc){case p:if((av.swipeLeft&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case o:if((av.swipeRight&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case e:if((av.swipeUp&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break;case x:if((av.swipeDown&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break}}}function a8(){var bc=aO();var bb=X();var bd=ae();return bc&&bb&&bd}function aX(){return !!(av.pinchStatus||av.pinchIn||av.pinchOut)}function P(){return !!(a8()&&aX())}function aV(){var be=aA();var bg=an();var bd=aO();var bb=X();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function V(){return !!(av.swipe||av.swipeStatus||av.swipeLeft||av.swipeRight||av.swipeUp||av.swipeDown)}function I(){return !!(aV()&&V())}function aO(){return((W===av.fingers||av.fingers===i)||!a)}function X(){return aQ[0].end.x!==0}function a6(){return !!(av.tap)}function Y(){return !!(av.doubleTap)}function aU(){return !!(av.longTap)}function Q(){if(N==null){return false}var bb=at();return(Y()&&((bb-N)<=av.doubleTapThreshold))}function H(){return Q()}function ax(){return((W===1||!a)&&(isNaN(ag)||ag<av.threshold))}function a0(){return((ab>av.longTapThreshold)&&(ag<r))}function ah(){return !!(ax()&&a6())}function aG(){return !!(Q()&&Y())}function ap(){return !!(a0()&&aU())}function F(){a5=at();ad=event.touches.length+1}function R(){a5=0;ad=0}function am(){var bb=false;if(a5){var bc=at()-a5;if(bc<=av.fingerReleaseThreshold){bb=true}}return bb}function aB(){return !!(aR.data(B+"_intouch")===true)}function ao(bb){if(bb===true){aR.bind(ay,a3);aR.bind(U,L);if(S){aR.bind(S,K)}}else{aR.unbind(ay,a3,false);aR.unbind(U,L,false);if(S){aR.unbind(S,K,false)}}aR.data(B+"_intouch",bb===true)}function ai(bc,bb){var bd=bb.identifier!==undefined?bb.identifier:0;aQ[bc].identifier=bd;aQ[bc].start.x=aQ[bc].end.x=bb.pageX||bb.clientX;aQ[bc].start.y=aQ[bc].end.y=bb.pageY||bb.clientY;return aQ[bc]}function aH(bb){var bd=bb.identifier!==undefined?bb.identifier:0;var bc=ac(bd);bc.end.x=bb.pageX||bb.clientX;bc.end.y=bb.pageY||bb.clientY;return bc}function ac(bc){for(var bb=0;bb<aQ.length;bb++){if(aQ[bb].identifier==bc){return aQ[bb]}}}function aj(){var bb=[];for(var bc=0;bc<=5;bc++){bb.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return bb}function aI(bb,bc){bc=Math.max(bc,aT(bb));M[bb].distance=bc}function aT(bb){if(M[bb]){return M[bb].distance}return undefined}function aa(){var bb={};bb[p]=aw(p);bb[o]=aw(o);bb[e]=aw(e);bb[x]=aw(x);return bb}function aw(bb){return{direction:bb,distance:0}}function aM(){return a2-T}function au(be,bd){var bc=Math.abs(be.x-bd.x);var bb=Math.abs(be.y-bd.y);return Math.round(Math.sqrt(bc*bc+bb*bb))}function a7(bb,bc){var bd=(bc/bb)*1;return bd.toFixed(2)}function ar(){if(G<1){return z}else{return c}}function aS(bc,bb){return Math.round(Math.sqrt(Math.pow(bb.x-bc.x,2)+Math.pow(bb.y-bc.y,2)))}function aE(be,bc){var bb=be.x-bc.x;var bg=bc.y-be.y;var bd=Math.atan2(bg,bb);var bf=Math.round(bd*180/Math.PI);if(bf<0){bf=360-Math.abs(bf)}return bf}function aL(bc,bb){var bd=aE(bc,bb);if((bd<=45)&&(bd>=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new Date();return bb.getTime()}function aY(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerWidth(),top:bd.top,bottom:bd.top+bb.outerHeight()};return bc}function E(bb,bc){return(bb.x>bc.left&&bb.x<bc.right&&bb.y>bc.top&&bb.y<bc.bottom)}}})); 11291if(typeof(console) === 'undefined') { 11292 var console = {} 11293 console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = console.groupCollapsed = function() {}; 11294} 11295if (window.tplogs==true) 11296 try { 11297 console.groupCollapsed("ThemePunch GreenSocks Logs"); 11298 } catch(e) { } 11299var oldgs = window.GreenSockGlobals; 11300 oldgs_queue = window._gsQueue; 11301var punchgs = window.GreenSockGlobals = {}; 11302if (window.tplogs==true) 11303 try { 11304 console.info("Build GreenSock SandBox for ThemePunch Plugins"); 11305 console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin"); 11306 } catch(e) {} 11307(function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var s,r,n,a,o,l=function(t){var e,s=t.split("."),r=i;for(e=0;s.length>e;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},p=function(s,r,n,a){this.sc=c[s]?c[s].sc:[],c[s]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,m,f,d=r.length,v=d;--d>-1;)(_=c[r[d]]||new p(r[d],[])).gsClass?(o[d]=_.gsClass,v--):h&&_.sc.push(this);if(0===v&&n)for(u=("com.greensock."+s).split("."),m=u.pop(),f=l(u.join("."))[m]=this.gsClass=n.apply(n,o),a&&(i[m]=f,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return f}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],T=[],y=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},P=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getRatio?t:t[o]||new t};for(n=y.prototype,n._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=s.length;--r>-1;)n=s[r]+",Power"+r,P(new y(null,null,1,r),n,"easeOut",!0),P(new y(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),P(new y(null,null,3,r),n,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});n=b.prototype,n.addEventListener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestAnimationFrame,A=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},x=S();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"RequestAnimationFrame"],A=t[s[r]+"CancelAnimationFrame"]||t[s[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,r,n,l,h=this,u=S(),f=e!==!1&&k,c=500,p=33,d=function(t){var e,a,o=S()-x;o>c&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(d)),a&&h.dispatchEvent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagSmoothing=function(t,e){c=t||1/_,p=Math.min(e,c,0)},h.sleep=function(){null!=r&&(f&&A?A(r):clearTimeout(r),s=m,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=S()-c+5),s=0===i?m:f&&k?k:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),f=t,h.fps(i),void 0):f},h.fps(t),setTimeout(function(){f&&(!r||5>h.frame)&&h.useRAF(!1)},1500)}),n=h.Ticker.prototype=new h.events.EventDispatcher,n.constructor=h.Ticker;var R=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,B){o||a.wake();var i=this.vars.useFrames?q:B;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=R.ticker=new h.Ticker,n=R.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var C=function(){o&&S()-x>2e3&&a.wake(),setTimeout(C,2e3)};C(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),z.length&&M())}return this},n.progress=n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||_,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawTime(),s=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=s,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){R.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});n=D.prototype=new R,n.constructor=D,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},n.rawTime=function(){return o||a.wake(),this._totalTime};var I=v("TweenLite",function(e,i,s){if(R.call(this,i,s),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Q[I.defaultOverwrite]:"number"==typeof l?l>>0:Q[l],(o||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=$(n,this,!1),1===l&&this._siblings[r].length>1&&H(n,this,null,1,this._siblings[r])):(n=a[r--]=I.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&H(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},O=function(t,e){var i,s={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};n=I.prototype=new R,n.constructor=I,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,I.version="1.14.2",I.defaultEase=n._ease=new y(null,null,1,1),I.defaultOverwrite="auto",I.ticker=a,I.autoSleep=!0,I.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(I.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var z=[],L={},N=I._internals={isArray:f,isSelector:E,lazyTweens:z},U=I._plugins={},F=N.tweenLookup={},j=0,G=N.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},q=R._rootFramesTimeline=new D,B=R._rootTimeline=new D,M=N.lazyRender=function(){var t,e=z.length;for(L={};--e>-1;)t=z[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};B._startTime=a.time,q._startTime=a.frame,B._active=q._active=!0,setTimeout(M,1),R._updateRoot=I.render=function(){var t,e,i;if(z.length&&M(),B.render((a.time-B._startTime)*B._timeScale,!1,!1),q.render((a.frame-q._startTime)*q._timeScale,!1,!1),z.length&&M(),!(a.frame%120)){for(i in F){for(e=F[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete F[i]}if(i=B._first,(!i||i._paused)&&I.autoSleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",R._updateRoot);var $=function(t,e,i){var s,r,n=t._gsTweenID;if(F[n||(t._gsTweenID=n="t"+j++)]||(F[n]={target:t,tweens:[]}),e&&(s=F[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return F[n].tweens},K=function(t,e,i,s){var r,n,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,s)),a=I.onOverwrite,a&&(n=a(t,e,i,s)),r!==!1&&n!==!1},H=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||K(o,e)&&o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._startTime+_,m=[],f=0,c=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||J(e,0,c),0===J(o,h,c)&&(m[f++]=o)):u>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&2e-10>=u-o._startTime||(m[f++]=o)));for(n=f;--n>-1;)if(o=m[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!K(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},J=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalDuration()/t._timeScale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenProps,o=this._duration,l=!!n.immediateRender,h=n.ease;if(n.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(s in n.startAt)r[s]=n.startAt[s];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&n.lazy!==!1,r.startAt=r.delay=null,this._startAt=I.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(n.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),i={};for(s in n)G[s]&&"autoCSS"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&n.lazy!==!1,i.immediateRender=l,this._startAt=I.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,n.easeParams):w[h]||I.defaultEase:I.defaultEase,n.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,n.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&I._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=n.onUpdate,this._initted=!0},n._initProps=function(e,i,s,r){var n,a,o,l,h,_;if(null==e)return!1;L[e._gsTweenID]&&M(),this.vars.css||e.style&&e!==t&&e.nodeType&&U.css&&this.vars.autoCSS!==!1&&O(this.vars,e);for(n in this.vars){if(_=this.vars[n],G[n])_&&(_ instanceof Array||_.push&&f(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[n]=_=this._swapSelfInParams(_,this));else if(U[n]&&(l=new U[n])._onInitTween(e,this.vars[n],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:n,pg:!0,pr:l._priority},a=l._overwriteProps.length;--a>-1;)i[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[n]=h={_next:this._firstPT,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},h.s=h.f?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),h.c="string"==typeof _&&"="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*Number(_.substr(2)):Number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return r&&this._kill(r,e)?this._initProps(e,i,s,r):this._overwrite>1&&this._firstPT&&s.length>1&&H(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(r="onReverseComplete",s=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:_)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,m=this._easeType,f=this._easePower;(1===m||3===m&&u>=.5)&&(u=1-u),3===m&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),this.ratio=1===m?1-u:2===m?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||T))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||T)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||T),0===l&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var s,r,n,a,o,l,h,_,u;if((f(e)||E(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s])&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if(!K(this,i,e,u))return!1}for(n in h)(a=o[n])&&(a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],R.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(-this._delay)),this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return R.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?I._onPluginEvent(t?"_onEnable":"_onDisable",this):!1}
vendor: 4,225 bytes, lines 11307-11308
11307,I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new I(t,e,s)},I.delayedCall=function(t,e,i,s,r){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:r,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:I.selector(t)||t;var i,s,r,n;if((f(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(I.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=I.getTweensOf(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var V=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=V.prototype},!0);if(n=V.prototype,V.version="1.10.1",V.API=2,n._firstPT=null,n._addTween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setRatio=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},I._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},V.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===V.API&&(U[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){V.call(this,i,s),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new V(i);o.constructor=a,a.API=t.API;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,V.activate([a]),a},s=t._gsQueue){for(r=0;s.length>r;r++)s[r]();for(n in c)c[n].func||t.console.log("GSAP encountered missing dependency: com.greensock."+n)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"); 11308var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],o(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=n.isSelector,o=n.isArray,h=n.lazyTweens,l=n.lazyRender,_=[],u=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i}
11308,p=function(t,e,i,s){var r=t._timeline._totalTime;(e||!this._forcingPlayhead)&&(t._timeline.pause(t._startTime),e&&e.apply(s||t._timeline,i||_),this._forcingPlayhead&&t._timeline.seek(r))},f=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.14.2",m.constructor=s,m.kill()._gc=m._forcingPlayhead=!1,m.to=function(t,e,s,r){var n=s.repeat&&u.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},m.from=function(t,e,s,r){return this.add((s.repeat&&u.TweenMax||i).from(t,e,s),r)},m.fromTo=function(t,e,s,r,n){var a=r.repeat&&u.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},m.staggerTo=function(t,e,r,n,o,h,l,_){var u,p=new s({onComplete:h,onCompleteParams:l,onCompleteScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=f(t)),n=n||0,0>n&&(t=f(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startAt&&(r.startAt=c(r.startAt)),p.to(t[u],e,c(r),u*n);return this.add(p,o)},m.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},m.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},m.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},m.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},m.add=function(r,n,a,h){var l,_,u,c,p,f;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&o(r)){for(a=a||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)o(c=r[u])&&(c=new s({tweens:c})),this.add(c,l),"string"!=typeof c&&"function"!=typeof c&&("sequence"===a?l=c._startTime+c.totalDuration()/c._timeScale:"start"===a&&(c._startTime-=c.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=this,f=p.rawTime()>r._startTime;p._timeline;)f&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&o(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,i,s){return this.call(p,["{self}",e,i,s],this,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)}
11308,m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,u,c=this._dirty?this.totalDuration():this._totalDuration,p=this._time,f=this._startTime,m=this._timeScale,d=this._paused;if(t>=c?(this._totalTime=this._time=c,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(u=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=c+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(u=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(u=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==p&&this._first||i||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||_)),this._time>=p)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||p>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(h.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_))),o&&(this._gc||(f===this._startTime||m!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(n&&(h.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||_)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},m.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)}
vendor: 7,311 bytes, lines 11308-11310
11308,m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite"); 11309var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},f=u("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/u*p,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=Math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(Math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*a/this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*a/this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(); 11310var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o={},l=a.prototype=new t("css");l.constructor=a,a.version="1.14.2",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",l="px",a.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l,lineHeight:""};var h,u,f,p,_,c,d=/(?:\d|\-\d|\.\d|\-\.\d)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?
11310:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|e[+-]\d+)[^0-9]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,P=/([A-Z])/g,S=/-([a-z])/gi,R=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,C=function(t,e){return e.toUpperCase()},k=/(?:Left|Right|Width)/i,O=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,M=Math.PI/180,L=180/Math.PI,N={},z=document,X=z.createElement("div"),I=z.createElement("img"),E=a._internals={_specialProps:o},F=navigator.userAgent,Y=function(){var t,e=F.indexOf("Android"),i=z.createElement("div");return f=-1!==F.indexOf("Safari")&&-1===F.indexOf("Chrome")&&(-1===e||Number(F.substr(e+8,1))>3),_=f&&6>Number(F.substr(F.indexOf("Version/")+8,1)),p=-1!==F.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(F)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(F))&&(c=parseFloat(RegExp.$1)),i.innerHTML="<a style='top:1px;opacity:.55;'>a</a>",t=i.getElementsByTagName("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),B=function(t){return x.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},U=function(t){window.console&&console.log(t)},j="",W="",V=function(t,e){e=e||X;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(W=3===r?"ms":i[r],j="-"+W.toLowerCase()+"-",W+t):null},q=z.defaultView?z.defaultView.getComputedStyle:function(){},H=a.getStyle=function(t,e,i,r,s){var n;return Y||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||q(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):B(t)},G=E.convertToPixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=k.test(i),f=t,p=X.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+H(t,"position")+";line-height:0;","%"!==s&&f.appendChild)p[u?"borderLeftWidth":"borderTopWidth"]=r+s;else{if(f=t.parentNode||z.body,l=f._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+s}f.appendChild(X),o=parseFloat(X[u?"offsetWidth":"offsetHeight"]),f.removeChild(X),u&&"%"===s&&a.cacheWidths!==!1&&(l=f._gsCache=f._gsCache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=G(t,i,r,s,!0))}return _?-o:o},Q=E.calculateOffset=function(t,e,i){if("absolute"!==H(t,"position",i))return 0;var r="left"===e?"Left":"Top",s=H(t,"margin"+r,i);return t["offset"+r]-(G(t,e,parseFloat(s),s.replace(y,""))||0)},Z=function(t,e){var i,r,s={};if(e=e||q(t,null))if(i=e.length)for(;--i>-1;)s[e[i].replace(S,C)]=e.getPropertyValue(e[i]);else for(i in e)s[i]=e[i];else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(S,C)]=e[i]);return Y||(s.opacity=B(t)),r=Ae(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,be&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},$=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:Q(t,a),void 0!==h[a]&&(o=new fe(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},K={width:["Left","Right"],height:["Top","Bottom"]},J=["marginLeft","marginRight","marginTop","marginBottom"],te=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=K[e],n=s.length;for(i=i||q(t,null);--n>-1;)r-=parseFloat(H(t,"padding"+s[n],i,!0))||0,r-=parseFloat(H(t,"border"+s[n]+"Width",i,!0))||0;return r},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==s?s="0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(v,"")),e.oy=parseFloat(s.replace(v,""))),r+" "+s+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},re=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)}
11310,se=function(t,e,i,r){var s,n,a,o,l=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),a=Number(n[0].replace(v,""))*(-1===t.indexOf("rad")?1:L)-("="===t.charAt(1)?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),l>o&&o>-l&&(o=0),o},ne={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=a.parseColor=function(t){var e,i,r,s,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),r=t.charAt(3),t="#"+e+e+i+i+r+r),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(d),s=Number(t[0])%360/360,n=Number(t[1])/100,a=Number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=Number(t[3])),t[0]=ae(s+1/3,e,i),t[1]=ae(s,e,i),t[2]=ae(s-1/3,e,i),t):(t=t.match(d)||ne.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):ne.black},le="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(l in ne)le+="|"+l+"\\b";le=RegExp(le+")","gi");var he=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(le)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,f=u>0?a[0].replace(d,""):"";return u?s=e?function(t){var e,p,_,c;if("number"==typeof t)t+=f;else if(r&&D.test(t)){for(c=t.replace(D,"|").split("|"),_=0;c.length>_;_++)c[_]=s(c[_]);return c.join(",")}if(e=(t.match(le)||[n])[0],p=t.split(e).join("").match(g)||[],_=p.length,u>_--)for(;u>++_;)p[_]=i?p[0|(_-1)/2]:a[_];return o+p.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=f;else if(r&&D.test(t)){for(n=t.replace(D,"|").split("|"),p=0;n.length>p;p++)n[p]=s(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(h)+l}:function(t){return t}},ue=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},fe=(E._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstMPT,l=1e-6;o;)e=a[o.v],o.r?e=Math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autoRotate&&(n.autoRotate.rotation=a.rotation),1===t)for(o=n.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),pe=(E._parseToProxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,p={},_={},c=i._transform,d=N;for(i._transform=null,N=e,r=u=i.parse(t,e,r,s),N=d,n&&(i._transform=c,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,_[o]=r.s+r.c,p[o]=r.s,n||(h=new fe(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,_[o]=r.data[l],p[o]=r[l],n||(h=new fe(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:_,firstMPT:h,pt:u}},E.CSSPropTween=function(t,e,r,s,a,o,l,h,u,f,p){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof pe||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),_e=a.parseComplex=function(t,e,i,r,s,n,a,o,l,u){i=i||n||"",a=new pe(t,e,0,0,a,u?2:1,null,!1,o,i,r),r+="";var f,p,_,c,g,v,y,x,T,w,P,S,R=i.split(", ").join(",").split(" "),C=r.split(", ").join(",").split(" "),k=R.length,O=h!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(R=R.join(" ").replace(D,", ").split(" "),C=C.join(" ").replace(D,", ").split(" "),k=R.length),k!==C.length&&(R=(n||"").split(" "),k=R.length),a.plugin=l,a.setRatio=u,f=0;k>f;f++)if(c=R[f],g=C[f],x=parseFloat(c),x||0===x)a.appendXtra("",x,ie(g,x),g.replace(m,""),O&&-1!==g.indexOf("px"),!0);else if(s&&("#"===c.charAt(0)||ne[c]||b.test(c)))S=","===g.charAt(g.length-1)?"),":")",c=oe(c),g=oe(g),T=c.length+g.length>6,T&&!Y&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(C[f]).join("transparent")):(Y||(T=!1),a.appendXtra(T?"rgba(":"rgb(",c[0],g[0]-c[0],",",!0,!0).appendXtra("",c[1],g[1]-c[1],",",!0).appendXtra("",c[2],g[2]-c[2],T?",":S,!0),T&&(c=4>c.length?1:c[3],a.appendXtra("",c,(4>g.length?1:g[3])-c,S,!1)));else if(v=c.match(d)){if(y=g.match(m),!y||y.length!==v.length)return a;for(_=0,p=0;v.length>p;p++)P=v[p],w=c.indexOf(P,_),a.appendXtra(c.substr(_,w-_),Number(P),ie(y[p],P),"",O&&"px"===c.substr(w+P.length,2),0===p),_=w+P.length;a["xs"+a.l]+=c.substr(_)}else a["xs"+a.l]+=a.l?" "+c:c;
11310if(-1!==r.indexOf("=")&&a.data){for(S=a.xs0+a.data.s,f=1;a.l>f;f++)S+=a["xs"+f]+a.data["xn"+f];a.e=S+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},ce=9;for(l=pe.prototype,l.l=l.pr=0;--ce>0;)l["xn"+ce]=0,l["xs"+ce]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setRatio=l.rxp=null,l.appendXtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var de=function(t,e){e=e||{},this.p=e.prefix?V(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||he(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},me=E._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultValue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||a,s=new de(n[r],e)},ge=function(t){if(!o[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";me(t,{parser:function(t,i,r,s,n,a,l){var h=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[e];return h?(h._cssRegister(),o[r].parse(t,i,r,s,n,a,l)):(U("Error: "+e+" js file not loaded."),n)}})}};l=de.prototype,l.parseComplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,p=this.keyword;if(this.multi&&(D.test(i)||D.test(e)?(o=e.replace(D,"|").split("|"),l=i.replace(D,"|").split("|")):p&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(u=e.indexOf(p),f=i.indexOf(p),u!==f&&(i=-1===f?l:o,i[a]+=" "+p));e=o.join(", "),i=l.join(", ")}return _e(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},l.parse=function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(H(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerSpecialProp=function(t,e,i){me(t,{parser:function(t,r,s,n,a,o){var l=new pe(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setRatio=e(t,r,n._tween,s),l},priority:i})};var ve,ye="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),xe=V("transform"),Te=j+"transform",we=V("transformOrigin"),be=null!==V("perspective"),Pe=E.Transform=function(){this.skewY=0},Se=window.SVGElement,Re=function(t,e,i){var r,s=z.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(r in i)s.setAttributeNS(null,r.replace(n,"$1-$2").toLowerCase(),i[r]);return e.appendChild(s),s},Ce=document.documentElement,ke=function(){var t,e,i,r=c||/Android/i.test(F)&&!window.chrome;return z.createElementNS&&!r&&(t=Re("svg",Ce),e=Re("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().left,e.style[we]="50% 50%",e.style[xe]="scale(0.5,0.5)",r=i===e.getBoundingClientRect().left,Ce.removeChild(t)),r}(),Oe=function(t,e,i){var r=t.getBBox();e=ee(e).split(" "),i.xOrigin=(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*r.width:parseFloat(e[0]))+r.x,i.yOrigin=(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*r.height:parseFloat(e[1]))+r.y},Ae=E.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,o,l,h,u,f,p,_,c,d,m,g,v,y=i?t._gsTransform||new Pe:new Pe,x=0>y.scaleX,T=2e-5,w=1e5,b=179.99,P=b*M,S=be?parseFloat(H(t,we,e,!1,"0 0 0").split(" ")[2])||y.zOrigin||0:0,R=parseFloat(a.defaultTransformPerspective)||0;if(xe?n=H(t,Te,e,!0):t.currentStyle&&(n=t.currentStyle.filter.match(O),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),y.x||0,y.y||0].join(","):""),n&&"none"!==n&&"matrix(1, 0, 0, 1, 0, 0)"!==n){for(o=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],l=o.length;--l>-1;)h=Number(o[l]),o[l]=(u=h-(h|=0))?(0|u*w+(0>u?-.5:.5))/w+h:h;if(16===o.length){var C=o[8],k=o[9],A=o[10],D=o[12],N=o[13],z=o[14];if(y.zOrigin&&(z=-y.zOrigin,D=C*z-o[12],N=k*z-o[13],z=A*z+y.zOrigin-o[14]),!i||r||null==y.rotationX){var X,I,E,F,Y,B,U,j=o[0],W=o[1],V=o[2],q=o[3],G=o[4],Q=o[5],Z=o[6],$=o[7],K=o[11],J=Math.atan2(Z,A),te=-P>J||J>P;y.rotationX=J*L,J&&(F=Math.cos(-J),Y=Math.sin(-J),X=G*F+C*Y,I=Q*F+k*Y,E=Z*F+A*Y,C=G*-Y+C*F,k=Q*-Y+k*F,A=Z*-Y+A*F,K=$*-Y+K*F,G=X,Q=I,Z=E),J=Math.atan2(C,j),y.rotationY=J*L,J&&(B=-P>J||J>P,F=Math.cos(-J),Y=Math.sin(-J),X=j*F-C*Y,I=W*F-k*Y,E=V*F-A*Y,k=W*Y+k*F,A=V*Y+A*F,K=q*Y+K*F,j=X,W=I,V=E),J=Math.atan2(W,Q),y.rotation=J*L,J&&(U=-P>J||J>P,F=Math.cos(-J),Y=Math.sin(-J),j=j*F+G*Y,I=W*F+Q*Y,Q=W*-Y+Q*F,Z=V*-Y+Z*F,W=I),U&&te?y.rotation=y.rotationX=0:U&&B?y.rotation=y.rotationY=0:B&&te&&(y.rotationY=y.rotationX=0),y.scaleX=(0|Math.sqrt(j*j+W*W)*w+.5)/w,y.scaleY=(0|Math.sqrt(Q*Q+k*k)*w+.5)/w,y.scaleZ=(0|Math.sqrt(Z*Z+A*A)*w+.5)/w,y.skewX=0,y.perspective=K?1/(0>K?-K:K):0,y.x=D,y.y=N,y.z=z}}else if(!(be&&!r&&o.length&&y.x===o[4]&&y.y===o[5]&&(y.rotationX||y.rotationY)||void 0!==y.x&&"none"===H(t,"display",e))){var ee=o.length>=6,ie=ee?o[0]:1,re=o[1]||0,se=o[2]||0,ne=ee?o[3]:1;y.x=o[4]||0,y.y=o[5]||0,f=Math.sqrt(ie*ie+re*re),p=Math.sqrt(ne*ne+se*se),_=ie||re?Math.atan2(re,ie)*L:y.rotation||0,c=se||ne?Math.atan2(se,ne)*L+_:y.skewX||0,d=f-Math.abs(y.scaleX||0),m=p-Math.abs(y.scaleY||0),Math.abs(c)>90&&270>Math.abs(c)&&(x?(f*=-1,c+=0>=_?180:-180,_+=0>=_?180:-180):(p*=-1,c+=0>=c?180:-180)),g=(_-y.rotation)%180,v=(c-y.skewX)%180,(void 0===y.skewX||d>T||-T>d||m>T||-T>m||g>-b&&b>g&&false|g*w||v>-b&&b>v&&false|v*w)&&(y.scaleX=f,y.scaleY=p,y.rotation=_,y.skewX=c),be&&(y.rotationX=y.rotationY=y.z=0,y.perspective=R,y.scaleZ=1)}y.zOrigin=S;for(l in y)T>y[l]&&y[l]>-T&&(y[l]=0)}else y={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,perspective:R,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(t._gsTransform=y),y.svg=Se&&t instanceof Se&&t.parentNode instanceof Se,y.svg&&(Oe(t,H(t,we,s,!1,"50% 50%")+"",y),ve=a.useSVGTransformAttr||ke),y.xPercent=y.yPercent=0,y},De=function(t){var e,i,r=this.data,s=-r.rotation*M,n=s+r.skewX*M,a=1e5,o=(0|Math.cos(s)*r.scaleX*a)/a,l=(0|Math.sin(s)*r.scaleX*a)/a,h=(0|Math.sin(n)*-r.scaleY*a)/a,u=(0|Math.cos(n)*r.scaleY*a)/a,f=this.t.style,p=this.t.currentStyle;
11310if(p){i=l,l=-h,h=-i,e=p.filter,f.filter="";var _,d,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==p.position,T="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,w=r.x+m*r.xPercent/100,b=r.y+g*r.yPercent/100;if(null!=r.ox&&(_=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=_-(_*o+d*l),b+=d-(_*h+d*u)),v?(_=m/2,d=g/2,T+=", Dx="+(_-(_*o+d*l)+w)+", Dy="+(d-(_*h+d*u)+b)+")"):T+=", sizingMethod='auto expand')",f.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(A,T):T+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===T.indexOf("Dx=0, Dy=0")||x.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&f.removeAttribute("filter")),!v){var P,S,R,C=8>c?1:-1;for(_=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),ce=0;4>ce;ce++)S=J[ce],P=p[S],i=-1!==P.indexOf("px")?parseFloat(P):G(this.t,S,parseFloat(P),P.replace(y,""))||0,R=i!==r[S]?2>ce?-r.ieOffsetX:-r.ieOffsetY:2>ce?_-r.ieOffsetX:d-r.ieOffsetY,f[S]=(r[S]=Math.round(i-R*(0===ce||2===ce?1:C)))+"px"}}},Me=E.set3DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,_,c,d,m,g,v,y,x,T,w,b,P,S=this.data,R=this.t.style,C=S.rotation*M,k=S.scaleX,O=S.scaleY,A=S.scaleZ,D=S.x,L=S.y,N=S.z,z=S.perspective;if(!(1!==t&&0!==t||"auto"!==S.force3D||S.rotationY||S.rotationX||1!==A||z||N))return Le.call(this,t),void 0;if(p){var X=1e-4;X>k&&k>-X&&(k=A=2e-5),X>O&&O>-X&&(O=A=2e-5),!z||S.z||S.rotationX||S.rotationY||(z=0)}if(C||S.skewX)y=Math.cos(C),x=Math.sin(C),e=y,n=x,S.skewX&&(C-=S.skewX*M,y=Math.cos(C),x=Math.sin(C),"simple"===S.skewType&&(T=Math.tan(S.skewX*M),T=Math.sqrt(1+T*T),y*=T,x*=T)),i=-x,a=y;else{if(!(S.rotationY||S.rotationX||1!==A||z||S.svg))return R[xe]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+L+"px,"+N+"px)"+(1!==k||1!==O?" scale("+k+","+O+")":""),void 0;e=a=1,i=n=0}f=1,r=s=o=l=h=u=_=c=d=0,m=z?-1/z:0,g=S.zOrigin,v=1e5,C=S.rotationY*M,C&&(y=Math.cos(C),x=Math.sin(C),h=f*-x,c=m*-x,r=e*x,o=n*x,f*=y,m*=y,e*=y,n*=y),C=S.rotationX*M,C&&(y=Math.cos(C),x=Math.sin(C),T=i*y+r*x,w=a*y+o*x,b=u*y+f*x,P=d*y+m*x,r=i*-x+r*y,o=a*-x+o*y,f=u*-x+f*y,m=d*-x+m*y,i=T,a=w,u=b,d=P),1!==A&&(r*=A,o*=A,f*=A,m*=A),1!==O&&(i*=O,a*=O,u*=O,d*=O),1!==k&&(e*=k,n*=k,h*=k,c*=k),g&&(_-=g,s=r*_,l=o*_,_=f*_+g),S.svg&&(s+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i),l+=S.yOrigin-(S.xOrigin*n+S.yOrigin*a)),s=(T=(s+=D)-(s|=0))?(0|T*v+(0>T?-.5:.5))/v+s:s,l=(T=(l+=L)-(l|=0))?(0|T*v+(0>T?-.5:.5))/v+l:l,_=(T=(_+=N)-(_|=0))?(0|T*v+(0>T?-.5:.5))/v+_:_,R[xe]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|n*v)/v,(0|h*v)/v,(0|c*v)/v,(0|i*v)/v,(0|a*v)/v,(0|u*v)/v,(0|d*v)/v,(0|r*v)/v,(0|o*v)/v,(0|f*v)/v,(0|m*v)/v,s,l,_,z?1+-_/z:1].join(",")+")"},Le=E.set2DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,p=this.data,_=this.t,c=_.style,d=p.x,m=p.y;return!(p.rotationX||p.rotationY||p.z||p.force3D===!0||"auto"===p.force3D&&1!==t&&0!==t)||p.svg&&ve||!be?(s=p.scaleX,n=p.scaleY,p.rotation||p.skewX||p.svg?(e=p.rotation*M,i=e-p.skewX*M,r=1e5,a=Math.cos(e)*s,o=Math.sin(e)*s,l=Math.sin(i)*-n,h=Math.cos(i)*n,p.svg&&(d+=p.xOrigin-(p.xOrigin*a+p.yOrigin*l),m+=p.yOrigin-(p.xOrigin*o+p.yOrigin*h),f=1e-6,f>d&&d>-f&&(d=0),f>m&&m>-f&&(m=0)),u=(0|a*r)/r+","+(0|o*r)/r+","+(0|l*r)/r+","+(0|h*r)/r+","+d+","+m+")",p.svg&&ve?_.setAttribute("transform","matrix("+u):c[xe]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+u):c[xe]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+s+",0,0,"+n+","+d+","+m+")",void 0):(this.setRatio=Me,Me.call(this,t),void 0)};me("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,r,n,o,l){if(r._transform)return n;var h,u,f,p,_,c,d,m=r._transform=Ae(t,s,!0,l.parseTransform),g=t.style,v=1e-6,y=ye.length,x=l,T={};if("string"==typeof x.transform&&xe)f=X.style,f[xe]=x.transform,f.display="block",f.position="absolute",z.body.appendChild(X),h=Ae(X,null,!1),z.body.removeChild(X);else if("object"==typeof x){if(h={scaleX:re(null!=x.scaleX?x.scaleX:x.scale,m.scaleX),scaleY:re(null!=x.scaleY?x.scaleY:x.scale,m.scaleY),scaleZ:re(x.scaleZ,m.scaleZ),x:re(x.x,m.x),y:re(x.y,m.y),z:re(x.z,m.z),xPercent:re(x.xPercent,m.xPercent),yPercent:re(x.yPercent,m.yPercent),perspective:re(x.transformPerspective,m.perspective)},d=x.directionalRotation,null!=d)if("object"==typeof d)for(f in d)x[f]=d[f];else x.rotation=d;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(h.x=0,h.xPercent=re(x.x,m.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(h.y=0,h.yPercent=re(x.y,m.yPercent)),h.rotation=se("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:m.rotation,m.rotation,"rotation",T),be&&(h.rotationX=se("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",T),h.rotationY=se("rotationY"
11310in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",T)),h.skewX=null==x.skewX?m.skewX:se(x.skewX,m.skewX),h.skewY=null==x.skewY?m.skewY:se(x.skewY,m.skewY),(u=h.skewY-m.skewY)&&(h.skewX+=u,h.rotation+=u)}for(be&&null!=x.force3D&&(m.force3D=x.force3D,c=!0),m.skewType=x.skewType||m.skewType||a.defaultSkewType,_=m.force3D||m.z||m.rotationX||m.rotationY||h.z||h.rotationX||h.rotationY||h.perspective,_||null==x.scale||(h.scaleZ=1);--y>-1;)i=ye[y],p=h[i]-m[i],(p>v||-v>p||null!=x[i]||null!=N[i])&&(c=!0,n=new pe(m,i,m[i],p,n),i in T&&(n.e=T[i]),n.xs0=0,n.plugin=o,r._overwriteProps.push(n.n));return p=x.transformOrigin,p&&m.svg&&(Oe(t,p,h),n=new pe(m,"xOrigin",m.xOrigin,h.xOrigin-m.xOrigin,n,-1,"transformOrigin"),n.b=m.xOrigin,n.e=n.xs0=h.xOrigin,n=new pe(m,"yOrigin",m.yOrigin,h.yOrigin-m.yOrigin,n,-1,"transformOrigin"),n.b=m.yOrigin,n.e=n.xs0=h.yOrigin,p="0px 0px"),(p||be&&_&&m.zOrigin)&&(xe?(c=!0,i=we,p=(p||H(t,i,s,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformOrigin"),n.b=g[i],n.plugin=o,be?(f=m.zOrigin,p=p.split(" "),m.zOrigin=(p.length>2&&(0===f||"0px"!==p[2])?parseFloat(p[2]):f)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(m,"zOrigin",0,0,n,-1,n.n),n.b=f,n.xs0=n.e=m.zOrigin):n.xs0=n.e=p):ee(p+"",m)),c&&(r._transformType=m.svg&&ve||!_&&3!==this._transformType?2:3),n},prefix:!0}),me("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),me("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,p,_,c,d,m,g,v,y,x,T,w,b=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(d=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexOf("border")&&(b[l]=V(b[l])),f=u=H(t,b[l],s,!1,"0px"),-1!==f.indexOf(" ")&&(u=f.split(" "),f=u[0],u=u[1]),p=h=o[l],_=parseFloat(f),v=f.substr((_+"").length),y="="===p.charAt(1),y?(c=parseInt(p.charAt(0)+"1",10),p=
vendor: 9,734 bytes, lines 11310-11311
11310p.substr(2),c*=parseFloat(p),g=p.substr((c+"").length-(0>c?1:0))||""):(c=parseFloat(p),g=p.substr((c+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=G(t,"borderLeft",_,v),T=G(t,"borderTop",_,v),"%"===g?(f=100*(x/d)+"%",u=100*(T/m)+"%"):"em"===g?(w=G(t,"borderLeft",1,"em"),f=x/w+"em",u=T/w+"em"):(f=x+"px",u=T+"px"),y&&(p=parseFloat(f)+c+g,h=parseFloat(u)+c+g)),a=_e(P,b[l],f+" "+u,p+" "+h,!1,"0px",a);return a},prefix:!0,formatter:he("0px 0px 0px 0px",!1,!0)}),me("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,p,_="background-position",d=s||q(t,null),m=this.format((d?c?d.getPropertyValue(_+"-x")+" "+d.getPropertyValue(_+"-y"):d.getPropertyValue(_):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&(p=H(t,"backgroundImage").replace(R,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),I.setAttribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(f=0===h?t.offsetWidth-I.width:t.offsetHeight-I.height,o[h]=u?parseFloat(m)/100*f+"px":100*(parseFloat(m)/f)+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,n,a)},formatter:ee}),me("backgroundSize",{defaultValue:"0 0",formatter:ee}),me("perspective",{defaultValue:"0px",prefix:!0}),me("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),me("transformStyle",{prefix:!0}),me("backfaceVisibility",{prefix:!0}),me("userSelect",{prefix:!0}),me("margin",{parser:ue("marginTop,marginRight,marginBottom,marginLeft")}),me("padding",{parser:ue("paddingTop,paddingRight,paddingBottom,paddingLeft")}),me("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>c?(l=t.currentStyle,h=8>c?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(H(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),me("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),me("autoRound,strictUnits",{parser:function(t,e,i,r,s){return s}}),me("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(H(t,"borderTopWidth",s,!1,"0px")+" "+H(t,"borderTopStyle",s,!1,"solid")+" "+H(t,"borderTopColor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(le)||["#000"])[0]}}),me("borderWidth",{parser:ue("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),me("float,cssFloat,styleFloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssFloat"in n?"cssFloat":"styleFloat";return new pe(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var Ne=function(t){var e,i=this.t,r=i.filter||H(this.data,"filter")||"",s=0|this.s+this.c*t;100===s&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!H(this.data,"filter")):(i.filter=r.replace(w,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexOf("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(x,"opacity="+s))};me("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,a){var o=parseFloat(H(t,"opacity",s,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===H(t,"visibility",s)&&0!==e&&(o=0),Y?n=new pe(l,"opacity",o,e-o,n):(n=new pe(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=Ne),h&&(n=new pe(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});var ze=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Xe=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ze(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};me("className",{parser:function(t,e,r,n,a,o,l){var h,u,f,p,_,c=t.getAttribute("class")||"",d=t.style.cssText;if(a=n._classNamePT=new pe(t,r,0,0,a,2),a.setRatio=Xe,a.pr=-11,i=!0,a.b=c,u=Z(t,s),f=t._gsClassPT){for(p={},_=f.data;_;)p[_.p]=1,_=_._next;f.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:c.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),n._tween._duration&&(t.setAttribute("class",a.e),h=$(t,u,Z(t),l,p),t.setAttribute("class",c),a.data=h.firstMPT,t.style.cssText=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var Ie=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,s,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],o[i]&&(o[i].parse===a?s=!0:i="transformOrigin"===i?we:o[i].p),ze(n,i);s&&(ze(n,xe),this.t._gsTransform&&delete this.t._gsTransform)}};for(me("clearProps",{parser:function(t,e,r,s,n){return n=new pe(t,r,0,0,n,2),n.setRatio=Ie,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),l="bezier,throwProps,physicsProps,physics2D".split(","),ce=l.length;ce--;)ge(l[ce]);l=a.prototype,l._firstPT=null,l._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,h=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,s=q(t,""),n=this._overwriteProps;var l,p,c,d,m,g,v,y,x,w=t.style;if(u&&""===w.zIndex&&(l=H(t,"zIndex",s),("auto"===l||""===l)&&this._addLazySet(w,"zIndex",0)),"string"==typeof e&&(d=w.cssText,l=Z(t,s),w.cssText=d+";"+e,l=$(t,l,Z(t)).difs,!Y&&T.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,w.cssText=d),this._firstPT=p=this.parse(t,e,null),this._transformType){for(x=3===this._transformType,xe?f&&(u=!0,""===w.zIndex&&(v=H(t,"zIndex",s),("auto"===v||""===v)&&this._addLazySet(w,"zIndex",0)),_&&this._addLazySet(w,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(x?"visible":"hidden"))):w.zoom=1,c=p;c&&c._next;)c=c._next;y=new pe(t,"transform",0,0,null,2),this._linkCSSP(y,null,c),y.setRatio=x&&be?Me:xe?Le:De,y.data=this._transform||Ae(t,s,!0),n.pop()}if(i){for(;p;){for(g=p._next,c=d;c&&c.pr>p.pr;)c=c._next;(p._prev=c?c._prev:m)?p._prev._next=p:d=p,(p._next=c)?c._prev=p:m=p,p=g}this._firstPT=d}return!0},l.parse=function(t,e,i,n){var a,l,u,f,p,_,c,d,m,g,v=t.style;for(a in e)_=e[a],l=o[a],l?i=l.parse(t,_,a,this,i,n,e):(p=H(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&b.test(_)?(m||(_=oe(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=_e(v,a,p,_,!0,"transparent",i,0,n)):!m||-1===_.indexOf(" ")&&-1===_.indexOf(",")?(u=parseFloat(p),c=u||0===u?p.substr((u+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(u=te(t,a,s),c="px"):"left"===a||"top"===a?(u=Q(t,a,s),c="px"):(u="opacity"!==a?0:1,c="")),g=m&&"="===_.charAt(1),g?(f=parseInt(_.charAt(0)+"1",10),_=_.substr(2),f*=parseFloat(_),d=_.replace(y,"")):(f=parseFloat(_),d=m?_.substr((f+"").length)||"":""),""===d&&(d=a in r?r[a]:c),_=f||0===f?(g?f+u:f)+d:e[a],c!==d&&""!==d&&(f||0===f)&&u&&(u=G(t,a,u,c),"%"===d?(u/=G(t,a,100,"%")/100,e.strictUnits!==!0&&(p=u+"%")):"em"===d?u/=G(t,a,1,"em"):"px"!==d&&(f=G(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+u+d)),g&&(f+=u),!u&&0!==u||!f&&0!==f?void 0!==v[a]&&(_||"NaN"!=_+""&&null!=_)?(i=new pe(v,a,f||u||0,0,i,-1,a,!1,0,p,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexOf("Style")?_:p):U("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,u,f-u,i,0,a,h!==!1&&("px"===d||"zIndex"===a),0,p,_),i.xs0=d)):i=_e(v,a,p,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n); 11311return i},l.setRatio=function(t){var e,i,r,s=this._firstPT,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;)2!==s.type?s.t[s.p]=s.e:s.setRatio(t),s=s._next},l._enableTransforms=function(t){this._transform=this._transform||Ae(this._target,s,!0),this._transformType=this._transform.svg&&ve||!t&&3!==this._transformType?2:3};var Ee=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};l._addLazySet=function(t,e,i){var r=this._firstPT=new pe(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Ee,r.data=this},l._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},l._kill=function(e){var i,r,s,n=e;if(e.autoAlpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}return e.className&&(i=this._classNamePT)&&(s=i.xfirst,s&&s._prev?this._linkCSSP(s._prev,i._next,s._prev._prev):s===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,
11311s._prev),this._classNamePT=null),t.prototype._kill.call(this,n)};var Fe=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)Fe(t[s],e,i);else for(r=t.childNodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(Z(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||Fe(n,e,i)};return a.cascadeTo=function(t,i,r){var s,n,a,o=e.to(t,i,r),l=[o],h=[],u=[],f=[],p=e._internals.reservedProps;for(t=o._targets||o.target,Fe(t,h,f),o.render(i,!0),Fe(t,u),o.render(0,!0),o._enabled(!0),s=f.length;--s>-1;)if(n=$(f[s],h[s],u[s]),n.firstMPT){n=n.difs;for(a in r)p[a]&&(n[a]=r[a]);l.push(e.to(f[s],i,n))}return l},t.activate([a]),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSPlugin"); 11312var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===e||4===e)return t.nodeValue;return i},n=document,a=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,h=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),r=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,r=i[e]),s?r:parseInt(r,10)||0},l=function(t){return t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],l(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:<br>|<br\/>|<br \/>)/gi,p=n.all&&!n.addEventListener,f="<div style='position:relative;display:inline-block;"+(p?"*display:inline;*zoom:1;'":"'"),m=function(t){t=t||"";var e=-1!==t.indexOf("++"),i=1;return e&&(t=t.split("++").join("")),function(){return f+(t?" class='"+t+(e?i++:"")+"'>":">")}},d=s.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=l(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodeType;if(1===s||9===s||11===s)for(t=t.firstChild;t;t=t.nextSibling)g(t,e,i);else(3===s||4===s)&&(t.nodeValue=t.nodeValue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(c,u));var l,_,p,f,d,y,T,w,b,x,P,S,C,k,R=r(t),A=e.type||e.split||"chars,words,lines",O=-1!==A.indexOf("lines")?[]:null,D=-1!==A.indexOf("words"),M=-1!==A.indexOf("chars"),L="absolute"===e.position||e.absolute===!0,z=L?"­ ":" ",I=-999,E=a(t),N=h(t,"paddingLeft",E),F=h(t,"borderBottomWidth",E)+h(t,"borderTopWidth",E),X=h(t,"borderLeftWidth",E)+h(t,"borderRightWidth",E),U=h(t,"paddingTop",E)+h(t,"paddingBottom",E),B=h(t,"paddingLeft",E)+h(t,"paddingRight",E),j=h(t,"textAlign",E,!0),Y=t.clientHeight,q=t.clientWidth,G="</div>",V=m(e.wordsClass),Q=m(e.charsClass),W=-1!==(e.linesClass||"").indexOf("++"),H=e.linesClass,Z=-1!==R.indexOf("<"),$=!0,K=[],J=[],te=[];for(W&&(H=H.split("++").join("")),Z&&(R=R.split("<").join("")),l=R.length,f=V(),d=0;l>d;d++)if(T=R.charAt(d),")"===T&&R.substr(d,20)===u)f+=($?G:"")+"<BR/>",$=!1,d!==l-20&&R.substr(d+20,20)!==u&&(f+=" "+V(),$=!0),d+=19;else if(" "===T&&" "!==R.charAt(d-1)&&d!==l-1&&R.substr(d-20,20)!==u){for(f+=$?G:"",$=!1;" "===R.charAt(d+1);)f+=z,d++;(")"!==R.charAt(d+1)||R.substr(d+1,20)!==u)&&(f+=z+V(),$=!0)}else f+=M&&" "!==T?Q()+T+"</div>":T;for(t.innerHTML=f+($?G:""),Z&&g(t,"","<"),y=t.getElementsByTagName("*"),l=y.length,w=[],d=0;l>d;d++)w[d]=y[d];if(O||L)for(d=0;l>d;d++)b=w[d],p=b.parentNode===t,(p||L||M&&!D)&&(x=b.offsetTop,O&&p&&x!==I&&"BR"!==b.nodeName&&(_=[],O.push(_),I=x),L&&(b._x=b.offsetLeft,b._y=x,b._w=b.offsetWidth,b._h=b.offsetHeight),O&&(D!==p&&M||(_.push(b),b._x-=N),p&&d&&(w[d-1]._wordEnd=!0),"BR"===b.nodeName&&b.nextSibling&&"BR"===b.nextSibling.nodeName&&O.push([])));for(d=0;l>d;d++)b=w[d],p=b.parentNode===t,"BR"!==b.nodeName?(L&&(S=b.style,D||p||(b._x+=b.parentNode._x,b._y+=b.parentNode._y),S.left=b._x+"px",S.top=b._y+"px",S.position="absolute",
vendor: 4,096 bytes, lines 11312-11332
11312S.display="block",S.width=b._w+1+"px",S.height=b._h+"px"),D?p&&""!==b.innerHTML?J.push(b):M&&K.push(b):p?(t.removeChild(b),w.splice(d--,1),l--):!p&&M&&(x=!O&&!L&&b.nextSibling,t.appendChild(b),x||t.appendChild(n.createTextNode(" ")),K.push(b))):O||L?(t.removeChild(b),w.splice(d--,1),l--):D||t.appendChild(b);if(O){for(L&&(P=n.createElement("div"),t.appendChild(P),C=P.offsetWidth+"px",x=P.offsetParent===t?0:t.offsetLeft,t.removeChild(P)),S=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(k=!L||!D&&!M,d=0;O.length>d;d++){for(_=O[d],P=n.createElement("div"),P.style.cssText="display:block;text-align:"+j+";position:"+(L?"absolute;":"relative;"),H&&(P.className=H+(W?d+1:"")),te.push(P),l=_.length,y=0;l>y;y++)"BR"!==_[y].nodeName&&(b=_[y],P.appendChild(b),k&&(b._wordEnd||D)&&P.appendChild(n.createTextNode(" ")),L&&(0===y&&(P.style.top=b._y+"px",P.style.left=N+x+"px"),b.style.top="0px",x&&(b.style.left=b._x-x+"px")));0===l&&(P.innerHTML=" "),D||M||(P.innerHTML=r(P).split(String.fromCharCode(160)).join(" ")),L&&(P.style.width=C,P.style.height=b._h+"px"),t.appendChild(P)}t.style.cssText=S}L&&(Y>t.clientHeight&&(t.style.height=Y-U+"px",Y>t.clientHeight&&(t.style.height=Y+F+"px")),q>t.clientWidth&&(t.style.width=q-B+"px",q>t.clientWidth&&(t.style.width=q+X+"px"))),v(i,K),v(s,J),v(o,te)},T=d.prototype;T.split=function(t){this.isSplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerHTML,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},T.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},d.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},d.version="0.3.3"})(_gsScope),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("SplitText"); 11313try{ 11314 window.GreenSockGlobals = null; 11315 window._gsQueue = null; 11316 window._gsDefine = null; 11317 delete(window.GreenSockGlobals); 11318 delete(window._gsQueue); 11319 delete(window._gsDefine); 11320 } catch(e) {} 11321try{ 11322 window.GreenSockGlobals = oldgs; 11323 window._gsQueue = oldgs_queue; 11324 } catch(e) {} 11325if (window.tplogs==true) 11326 try { 11327 console.groupEnd(); 11328 } catch(e) {} 11329(function(e,t){ 11330 e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; 11331})(jQuery) 11332function revslider_showDoubleJqueryError(a){var b="Revolution Slider Error: You have some jquery.js library include that c
11332omes after the revolution files js include.";b+="<br> This includes make eliminates the revolution slider libraries, and make it not work.",b+="<br><br> To fix it you can:<br> 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true.",b+="<br> 2. Find the double jquery.js include and remove it.",b="<span style='font-size:16px;color:#BC0C06;'>"+b+"</span>",jQuery(a).show().html(b)}!function(a,b){function c(){var a=!1;return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?navigator.userAgent.match(/OS 4_\d like Mac OS X/i)&&(a=!0):a=!1,a}function d(d,e){if(d==b)return!1;if(d.data("aimg")!=b&&("enabled"==d.data("aie8")&&i(8)||"enabled"==d.data("amobile")&&W())&&d.html('<img class="tp-slider-alternative-image" src="'+d.data("aimg")+'">'),"preview1"!=e.navigationStyle&&"preview3"!=e.navigationStyle&&"preview4"!=e.navigationStyle||(e.soloArrowLeftHalign="left",e.soloArrowLeftValign="center",e.soloArrowLeftHOffset=0,e.soloArrowLeftVOffset=0,e.soloArrowRightHalign="right",e.soloArrowRightValign="center",e.soloArrowRightHOffset=0,e.soloArrowRightVOffset=0,e.navigationArrows="solo"),"on"==e.simplifyAll&&(i(8)||c())&&(d.find(".tp-caption").each(function(){var b=a(this);b.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout"),b.data("splitin",""),b.data("speed",400)}),d.find(">ul>li").each(function(){var b=a(this);b.data("transition","fade"),b.data("masterspeed",500),b.data("slotamount",1);var c=b.find(">img").first();c.data("kenburns","off")})),e.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),"on"!=e.fullWidth&&"on"!=e.fullScreen&&(e.autoHeight="off"),"on"==e.fullScreen&&(e.autoHeight="on"),"on"!=e.fullWidth&&"on"!=e.fullScreen&&(forceFulWidth="off"),"on"==e.fullWidth&&"off"==e.autoHeight&&d.css({maxHeight:e.startheight+"px"}),W()&&"on"==e.hideThumbsOnMobile&&"thumb"==e.navigationType&&(e.navigationType="none"),W()&&"on"==e.hideBulletsOnMobile&&"bullet"==e.navigationType&&(e.navigationType="none"),W()&&"on"==e.hideBulletsOnMobile&&"both"==e.navigationType&&(e.navigationType="none"),W()&&"on"==e.hideArrowsOnMobile&&(e.navigationArrows="none"),"on"==e.forceFullWidth&&0==d.closest(".forcefullwidth_wrapper_tp_banner").length){var j=d.parent().offset().left,p=d.parent().css("marginBottom"),q=d.parent().css("marginTop");p==b&&(p=0),q==b&&(q=0),d.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+q+";margin-bottom:"+p+'" class="forcefullwidth_wrapper_tp_banner"></div>'),d.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+d.height()+'px"></div>'),d.css({backgroundColor:d.parent().css("backgroundColor"),backgroundImage:d.parent().css("backgroundImage")}),d.parent().css({left:0-j+"px",position:"absolute",width:a(window).width()}),e.width=a(window).width()}try{e.hideThumbsUnderResolution>a(window).width()&&0!=e.hideThumbsUnderResolution?d.parent().find(".tp-bullets.tp-thumbs").css({display:"none"}):d.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}catch(a){}if(!d.hasClass("revslider-initialised")){d.addClass("revslider-initialised"),d.attr("id")==b&&d.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),e.firefox13=!1,e.ie=!a.support.opacity,e.ie9=9==document.documentMode,e.origcd=e.delay;var r=a.fn.jquery.split("."),t=parseFloat(r[0]),u=parseFloat(r[1]);parseFloat(r[2]||"0");1==t&&u<7&&d.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+r+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),t>1&&(e.ie=!1),a.support.transition||(a.fn.transition=a.fn.animate),d.find(".caption").each(function(){a(this).addClass("tp-caption")}
11332),W()&&(!navigator.userAgent.split("ipad").length>1||!navigator.userAgent.split("iPad").length>1)&&d.find(".tp-caption").each(function(){var b=a(this);1!=b.data("autoplayonlyfirsttime")&&"true"!=b.data("autoplayonlyfirsttime")||b.data("autoplayonlyfirsttime","false"),1!=b.data("autoplay")&&"true"!=b.data("autoplay")||b.data("autoplay",!1)});var w=0,x=0,A="http";if("https:"===location.protocol&&(A="https"),d.find(".tp-caption").each(function(c){try{if((a(this).data("ytid")!=b||a(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&0==w){w=1;var d=document.createElement("script"),e="https";d.src=e+"://www.youtube.com/iframe_api";var f=document.getElementsByTagName("script")[0],g=!0;a("head").find("*").each(function(){a(this).attr("src")==e+"://www.youtube.com/iframe_api"&&(g=!1)}),g&&f.parentNode.insertBefore(d,f)}}catch(a){}try{if((a(this).data("vimeoid")!=b||a(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&0==x){x=1;var h=document.createElement("script");h.src=A+"://a.vimeocdn.com/js/froogaloop2.min.js";var f=document.getElementsByTagName("script")[0],g=!0;a("head").find("*").each(function(){a(this).attr("src")==A+"://a.vimeocdn.com/js/froogaloop2.min.js"&&(g=!1)}),g&&f.parentNode.insertBefore(h,f)}}catch(a){}try{a(this).data("videomp4")!=b||a(this).data("videowebm")!=b}catch(a){}}),d.find(".tp-caption video").each(function(b){a(this).removeClass("video-js").removeClass("vjs-default-skin"),a(this).attr("preload",""),a(this).css({display:"none"})}),d.find(">ul:first-child >li").each(function(){var b=a(this);b.data("origindex",b.index())}),"on"==e.shuffle){var B=new Object,C=d.find(">ul:first-child >li:first-child");B.fstransition=C.data("fstransition"),B.fsmasterspeed=C.data("fsmasterspeed"),B.fsslotamount=C.data("fsslotamount");for(var D=0;D<d.find(">ul:first-child >li").length;D++){var E=Math.round(Math.random()*d.find(">ul:first-child >li").length);d.find(">ul:first-child >li:eq("+E+")").prependTo(d.find(">ul:first-child"))}var F=d.find(">ul:first-child >li:first-child");F.data("fstransition",B.fstransition),F.data("fsmasterspeed",B.fsmasterspeed),F.data("fsslotamount",B.fsslotamount)}e.slots=4,e.act=-1,e.next=0,e.startWithSlide!=b&&(e.next=e.startWithSlide);var G=g("#")[0];if(G.length<9&&G.split("slide").length>1){var H=parseInt(G.split("slide")[1],0);H<1&&(H=1),H>d.find(">ul:first >li").length&&(H=d.find(">ul:first >li").length),e.next=H-1}e.firststart=1,e.navigationHOffset==b&&(e.navOffsetHorizontal=0),e.navigationVOffset==b&&(e.navOffsetVertical=0),d.append('<div class="tp-loader '+e.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'),0==d.find(".tp-bannertimer").length&&d.append('<div class="tp-bannertimer" style="visibility:hidden"></div>');var I=d.find(".tp-bannertimer");if(I.length>0&&I.css({width:"0%"}),d.addClass("tp-simpleresponsive"),e.container=d,e.slideamount=d.find(">ul:first >li").length,0==d.height()&&d.height(e.startheight),e.startwidth!=b&&0!=e.startwidth||(e.startwidth=d.width()),e.startheight!=b&&0!=e.startheight||(e.startheight=d.height()),e.width=d.width(),e.height=d.height(),e.bw=e.startwidth/d.width(),e.bh=e.startheight/d.height(),e.width!=e.startwidth&&(e.height=Math.round(e.startheight*(e.width/e.startwidth)),d.height(e.height)),0!=e.shadow){d.parent().append('<div class="tp-bannershadow tp-shadow'+e.shadow+'"></div>');var j=0;"on"==e.forceFullWidth&&(j=0-e.container.parent().offset().left),d.parent().find(".tp-bannershadow").css({width:e.width,left:j})}d.find("ul").css({display:"none"});d.find("ul").css({display:"block"}),s(d,e),"off"!=e.parallax&&aa(d,e),e.slideamount>1&&k(d,e),e.slideamount>1&&"thumb"==e.navigationType&&ca(d,e),e.slideamount>1&&l(d,e),"on"==e.keyboardNavigation&&m(d,e),n(d,e),e.hideThumbs>0&&o(d,e),setTimeout(function(){z(d,e)},e.startDelay),e.startDelay=0,e.slideamount>1&&V(d,e),setTimeout(function(){d.trigger("revolution.slide.onloaded")},500),a("body").data("rs-fullScreenMode",!1),a(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){a("body").data("rs-fullScreenMode",!a("body").data("rs-fullScreenMode")),a("body").data("rs-fullScreenMode")&&setTimeout(function(){a(window).trigger("resize")},200)});var K="resize.revslider-"+d.attr("id");a(window).on(K,function(){if(d==b)return!1;if(0!=a("body").find(d)&&"on"==e.forceFullWidth){var c=e.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;e.container.parent().css({left:0-c+"px",width:a(window).width()})}(d.outerWidth(!0)!=e.width||d.is(":hidden"))&&h(d,e)});try{0!=e.hideThumbsUnderResoluition&&"thumb"==e.navigationType&&(e.hideThumbsUnderResoluition>
11332a(window).width()?a(".tp-bullets").css({display:"none"}):a(".tp-bullets").css({display:"block"}))}catch(a){}d.find(".tp-scrollbelowslider").on("click",function(){var b=0;try{b=a("body").find(e.fullScreenOffsetContainer).height()}catch(a){}try{b-=parseInt(a(this).data("scrolloffset"),0)}catch(a){}a("body,html").animate({scrollTop:d.offset().top+d.find(">ul >li").height()-b+"px"},{duration:400})});var L=d.parent();a(window).width()<e.hideSliderAtLimit&&(d.trigger("stoptimer"),"none"!=L.css("display")&&L.data("olddisplay",L.css("display")),L.css({display:"none"})),f(d,e)}}a.fn.extend({revolution:function(c){var e={delay:9e3,startheight:500,startwidth:960,fullScreenAlignForce:"off",autoHeight:"off",hideTimerBar:"off",hideThumbs:200,hideNavDelayOnMobile:1500,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationInGrid:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,keyboardNavigation:"on",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,shadow:0,fullWidth:"off",fullScreen:"off",minFullScreenHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"0",dottedOverlay:"none",forceFullWidth:"off",spinner:"spinner0",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,isJoomla:!1,parallax:"off",parallaxLevels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],parallaxBgFreeze:"off",parallaxOpacity:"on",parallaxDisableOnMobile:"off",panZoomDisableOnMobile:"off",simplifyAll:"on",minHeight:0,nextSlideOnWindowFocus:"off",startDelay:0};return c=a.extend({},e,c),this.each(function(){if(1==window.tplogs)try{console.groupCollapsed("Slider Revolution 4.6.3 Initialisation on "+a(this).attr("id")),console.groupCollapsed("Used Options:"),console.info(c),console.groupEnd(),console.groupCollapsed("Tween Engine:")}catch(a){}if(punchgs.TweenLite==b){if(1==window.tplogs)try{console.error("GreenSock Engine Does not Exist!")}catch(a){}return!1}if(punchgs.force3D=!0,1==window.tplogs)try{console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version)}catch(a){}if("on"==c.simplifyAll||(punchgs.TweenLite.lagSmoothing(1e3,16),punchgs.force3D="true"),1==window.tplogs)try{console.groupEnd(),console.groupEnd()}catch(a){}d(a(this),c)})},revscroll:function(c){return this.each(function(){var d=a(this);d!=b&&d.length>0&&a("body").find("#"+d.attr("id")).length>0&&a("body,html").animate({scrollTop:d.offset().top+d.find(">ul >li").height()-c+"px"},{duration:400})})},revredraw:function(c){return this.each(function(){var c=a(this);if(c!=b&&c.length>0&&a("body").find("#"+c.attr("id")).length>0){var d=c.parent().find(".tp-bannertimer"),e=d.data("opt");h(c,e)}})},revkill:function(c){var d=this,e=a(this);if(e!=b&&e.length>0&&a("body").find("#"+e.attr("id")).length>0){e.data("conthover",1),e.data("conthover-changed",1),e.trigger("revolution.slide.onpause");var f=e.parent().find(".tp-bannertimer"),g=f.data("opt");g.bannertimeronpause=!0,e.trigger("stoptimer"),punchgs.TweenLite.killTweensOf(e.find("*"),!1),punchgs.TweenLite.killTweensOf(e,!1),e.unbind("hover, mouseover, mouseenter,mouseleave, resize");var h="resize.revslider-"+e.attr("id");a(window).off(h),e.find("*").each(function(){var c=a(this);c.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),c.off("on, hover, mouseenter,mouseleave,mouseover, resize"),c.data("mySplitText",null),c.data("ctl",null),c.data("tween")!=b&&c.data("tween").kill(),c.data("kenburn")!=b&&c.data("kenburn").kill(),c.remove(),c.empty(),c=null}),punchgs.TweenLite.killTweensOf(e.find("*"),!1),punchgs.TweenLite.killTweensOf(e,!1),f.remove();try{e.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(a){}try{e.closest(".rev_slider_wrapper").remove()}catch(a){}try{e.remove()}catch(a){}return e.empty(),e.html(),e=null,g=null,delete d.container,delete d.opt,!0}return!1},revpause:function(c){return this.each(function(){var c=a(this);if(c!=b&&c.length>0&&a("body").find("#"+c.attr("id")).length>
113320){c.data("conthover",1),c.data("conthover-changed",1),c.trigger("revolution.slide.onpause");var d=c.parent().find(".tp-bannertimer"),e=d.data("opt");e.bannertimeronpause=!0,c.trigger("stoptimer")}})},revresume:function(c){return this.each(function(){var c=a(this);if(c!=b&&c.length>0&&a("body").find("#"+c.attr("id")).length>0){c.data("conthover",0),c.data("conthover-changed",1),c.trigger("revolution.slide.onresume");var d=c.parent().find(".tp-bannertimer"),e=d.data("opt");e.bannertimeronpause=!1,c.trigger("starttimer")}})},revnext:function(c){return this.each(function(){var c=a(this);c!=b&&c.length>0&&a("body").find("#"+c.attr("id")).length>0&&c.parent().find(".tp-rightarrow").click()})},revprev:function(c){return this.each(function(){var c=a(this);c!=b&&c.length>0&&a("body").find("#"+c.attr("id")).length>0&&c.parent().find(".tp-leftarrow").click()})},revmaxslide:function(b){return a(this).find(">ul:first-child >li").length},revcurrentslide:function(c){var d=a(this);if(d!=b&&d.length>0&&a("body").find("#"+d.attr("id")).length>0){var e=d.parent().find(".tp-bannertimer"),f=e.data("opt");return f.act}},revlastslide:function(c){var d=a(this);if(d!=b&&d.length>0&&a("body").find("#"+d.attr("id")).length>0){var e=d.parent().find(".tp-bannertimer"),f=e.data("opt");return f.lastslide}},revshowslide:function(c){return this.each(function(){var d=a(this);d!=b&&d.length>0&&a("body").find("#"+d.attr("id")).length>0&&(d.data("showus",c),d.parent().find(".tp-rightarrow").click())})}});var f=(function(){var a,b,c={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(a in c)if(a in document){b=c[a];break}return function(c){return c&&document.addEventListener(b,c),!document[a]}}(),function(c,d){var e=document.documentMode===b,f=window.chrome;e&&!f?a(window).on("focusin",function(){return c!=b&&void setTimeout(function(){"on"==d.nextSlideOnWindowFocus&&c.revnext(),c.revredraw()},300)}).on("focusout",function(){}):window.addEventListener?(window.addEventListener("focus",function(a){return c!=b&&void setTimeout(function(){"on"==d.nextSlideOnWindowFocus&&c.revnext(),c.revredraw()},300)},!1),window.addEventListener("blur",function(a){},!1)):(window.attachEvent("focus",function(a){setTimeout(function(){return c!=b&&("on"==d.nextSlideOnWindowFocus&&c.revnext(),void c.revredraw())},300)}),window.attachEvent("blur",function(a){}))}),g=function(a){for(var c,b=[],d=window.location.href.slice(window.location.href.indexOf(a)+1).split("_"),e=0;e<d.length;e++)d[e]=d[e].replace("%3D","="),c=d[e].split("="),b.push(c[0]),b[c[0]]=c[1];return b},h=function(c,d){if(c==b)return!1;try{0!=d.hideThumbsUnderResoluition&&"thumb"==d.navigationType&&(d.hideThumbsUnderResoluition>a(window).width()?a(".tp-bullets").css({display:"none"}):a(".tp-bullets").css({display:"block"}))}catch(a){}c.find(".defaultimg").each(function(b){r(a(this),d)});var e=c.parent();a(window).width()<d.hideSliderAtLimit?(c.trigger("stoptimer"),"none"!=e.css("display")&&e.data("olddisplay",e.css("display")),e.css({display:"none"})):c.is(":hidden")&&(e.data("olddisplay")!=b&&"undefined"!=e.data("olddisplay")&&"none"!=e.data("olddisplay")?e.css({display:e.data("olddisplay")}):e.css({display:"block"}),c.trigger("restarttimer"),setTimeout(function(){h(c,d)},150));var f=0;"on"==d.forceFullWidth&&(f=0-d.container.parent().offset().left);try{c.parent().find(".tp-bannershadow").css({width:d.width,left:f})}catch(a){}var g=c.find(">ul >li:eq("+d.act+") .slotholder"),i=c.find(">ul >li:eq("+d.next+") .slotholder");v(c,d,c),punchgs.TweenLite.set(i.find(".defaultimg"),{opacity:0}),g.find(".defaultimg").css({opacity:1}),i.find(".defaultimg").each(function(){var e=a(this);"on"==d.panZoomDisableOnMobile||e.data("kenburn")!=b&&(e.data("kenburn").restart(),Y(c,d,!0))});var j=c.find(">ul >li:eq("+d.next+")"),k=c.parent().find(".tparrows");k.hasClass("preview2")&&k.css({width:parseInt(k.css("minWidth"),0)}),L(j,d,!0),p(c,d)},i=function(b,c){var d=a('<div style="display:none;"/>').appendTo(a("body"));d.html("<!--[if "+(c||"")+" IE "+(b||"")+"]><a> </a><![endif]-->");var e=d.find("a").length;return d.remove(),e},j=function(a,b){a.next==b.find(">ul >li").length-1&&(a.looptogo=a.looptogo-1,a.looptogo<=0&&(a.stopLoop="on")),z(b,a)},k=function(b,c){var d="hidebullets";0==c.hideThumbs&&(d=""),"bullet"!=c.navigationType&&"both"!=c.navigationType||b.parent().append('<div class="tp-bullets '+d+" simplebullets "+c.navigationStyle+'"></div>');var e=b.parent().find(".tp-bullets");b.find(">ul:first >li").each(function(a){b.find(">ul:first >li:eq("+a+") img:first").attr("src");e.append('<div class="bullet"></div>');e.find(".bullet:first")}),e.find(".bullet").each(function(d){var e=a(this);d==c.slideamount-1&&e.addClass("last"),0==d&&e.addClass("first"),e.click(function(){var a=!1,d=e.index();"withbullet"!=c.navigationArrows&&"nexttobullets"!=c.navigationArrows||(d=e.index()-1),d==c.act&&(a=!0),0!=c.transition||a||(c.next=d,j(c,b))})}),e.append('<div class="tpclear"></div>'),p(b,c)},l=function(a,c){function h(b){a.parent().append('<div style="'+e+'" class="tp-'+b+"arrow "+f+" tparrows "+g+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>')}var e=(a.find(".tp-bullets"),""),f="hidearrows",g=c.navigationStyle;0==c.hideThumbs&&(f=""),"none"==c.navigationArrows&&(e="visibility:hidden;display:none"),c.soloArrowStyle="default "+c.navigationStyle,"none"!=c.navigationArrows&&"nexttobullets"!=c.navigationArrows&&(g=c.soloArrowStyle),h("left"),h("right"),a.parent().find(".tp-rightarrow").click(function(){0==c.transition&&(a.data("showus")!=b&&a.data("showus")!=-1?c.next=a.data("showus")-1:c.next=c.next+1,a.data("showus",-1),c.next>=c.slideamount&&(c.next=0),c.next<0&&(c.next=0),c.act!=c.next&&j(c,a))}),a.parent().find(".tp-leftarrow").click(function(){0==c.transition&&(c.next=c.next-1,c.leftarrowpressed=1,c.next<0&&(c.next=c.slideamount-1),j(c,a))}),p(a,c)},m=function(c,d){a(document).keydown(function(a){0==d.transition&&39==a.keyCode&&(c.data("showus")!=b&&c.data("showus")!=-1?d.next=c.data("showus")-1:d.next=d.next+1,c.data("showus",-1),d.next>=d.slideamount&&(d.next=0),d.next<0&&(d.next=0),d.act!=d.next&&j(d,c)),0==d.transition&&37==a.keyCode&&(d.next=d.next-1,d.leftarrowpressed=1,d.next<0&&(d.next=d.slideamount-1),j(d,c))}),p(c,d)},n=function(b,c){var d="vertical";"on"==c.touchenabled&&(1==c.drag_block_vertical&&(d="none"),b.swipe({allowPageScroll:d,fingers:c.swipe_min_touches,treshold:c.swipe_treshold,swipe:function(e,f,g,h,i,k){switch(f){case"left":0==c.transition&&(c.next=c.next+1,c.next==c.slideamount&&(c.next=0),j(c,b));break;case"right":0==c.transition&&(c.next=c.next-1,c.leftarrowpressed=1,c.next<0&&(c.next=c.slideamount-1),j(c,b));break;case"up":"none"==d&&a("html, body").animate({scrollTop:b.offset().top+b.height()+"px"});break;case"down":"none"==d&&a("html, body").animate({scrollTop:b.offset().top-a(window).height()+"px"})}}}))},o=function(a,b){var c=a.parent().find(".tp-bullets"),d=a.parent().find(".tparrows");if(null==c){a.append('<div class=".tp-bullets"></div>');var c=a.parent().find(".tp-bullets")}if(null==d){a.append('<div class=".tparrows"></div>');var d=a.parent().find(".tparrows")}if(a.data("hideThumbs",b.hideThumbs),c.addClass("hidebullets"),d.addClass("hidearrows"),W())try{a.hammer().on("touch",function(){a.addClass("hovered"),"on"==b.onHoverStop&&a.trigger("stoptimer"),clearTimeout(a.data("hideThumbs")),c.removeClass("hidebullets"),d.removeClass("hidearrows")}),a.hammer().on("release",function(){a.removeClass("hovered"),a.trigger("starttimer"),a.hasClass("hovered")||c.hasClass("hovered")||a.data("hideThumbs",setTimeout(function(){c.addClass("hidebullets"),d.addClass("hidearrows"),a.trigger("starttimer")},b.hideNavDelayOnMobile))})}catch(a){}else c.hover(function(){b.overnav=!0,"on"==b.onHoverStop&&a.trigger("stoptimer"),c.addClass("hovered"),clearTimeout(a.data("hideThumbs")),c.removeClass("hidebullets"),d.removeClass("hidearrows")},function(){b.overnav=!1,a.trigger("starttimer"),c.removeClass("hovered"),a.hasClass("hovered")||c.hasClass("hovered")||a.data("hideThumbs",setTimeout(function(){c.addClass("hidebullets"),d.addClass("hidearrows")},b.hideThumbs))}),d.hover(function(){b.overnav=!0,"on"==b.onHoverStop&&a.trigger("stoptimer"),c.addClass("hovered"),clearTimeout(a.data("hideThumbs")),c.removeClass("hidebullets"),d.removeClass("hidearrows")},function(){b.overnav=!1,a.trigger("starttimer"),c.removeClass("hovered")}),a.on("mouseenter",function(){a.addClass("hovered"),"on"==b.onHoverStop&&a.trigger("stoptimer"),clearTimeout(a.data("hideThumbs")),c.removeClass("hidebullets"),d.removeClass("hidearrows")}),a.on("mouseleave",function(){a.removeClass("hovered"),a.trigger("starttimer"),a.hasClass("hovered")||c.hasClass("hovered")||a.data("hideThumbs",setTimeout(function(){c.addClass("hidebullets"),d.addClass("hidearrows")},b.hideThumbs))})},p=function(b,c){var d=b.parent(),e=d.find(".tp-bullets");if("thumb"==c.navigationType){e.find(".thumb").each(function(b){var d=a(this);
11332d.css({width:c.thumbWidth*c.bw+"px",height:c.thumbHeight*c.bh+"px"})});var f=e.find(".tp-mask");f.width(c.thumbWidth*c.thumbAmount*c.bw),f.height(c.thumbHeight*c.bh),f.parent().width(c.thumbWidth*c.thumbAmount*c.bw),f.parent().height(c.thumbHeight*c.bh)}var g=d.find(".tp-leftarrow"),h=d.find(".tp-rightarrow");"thumb"==c.navigationType&&"nexttobullets"==c.navigationArrows&&(c.navigationArrows="solo"),"nexttobullets"==c.navigationArrows&&(g.prependTo(e).css({float:"left"}),h.insertBefore(e.find(".tpclear")).css({float:"left"}));var i=0;"on"==c.forceFullWidth&&(i=0-c.container.parent().offset().left);var j=0,k=0;if("on"==c.navigationInGrid&&(j=b.width()>c.startwidth?(b.width()-c.startwidth)/2:0,k=b.height()>c.startheight?(b.height()-c.startheight)/2:0),"none"!=c.navigationArrows&&"nexttobullets"!=c.navigationArrows){var l=c.soloArrowLeftValign,m=c.soloArrowLeftHalign,n=c.soloArrowRightValign,o=c.soloArrowRightHalign,p=c.soloArrowLeftVOffset,q=c.soloArrowLeftHOffset,r=c.soloArrowRightVOffset,s=c.soloArrowRightHOffset;g.css({position:"absolute"}),h.css({position:"absolute"}),"center"==l?g.css({top:"50%",marginTop:p-Math.round(g.innerHeight()/2)+"px"}):"bottom"==l?g.css({top:"auto",bottom:0+p+"px"}):"top"==l&&g.css({bottom:"auto",top:0+p+"px"}),"center"==m?g.css({left:"50%",marginLeft:i+q-Math.round(g.innerWidth()/2)+"px"}):"left"==m?g.css({left:j+q+i+"px"}):"right"==m&&g.css({right:j+q-i+"px"}),"center"==n?h.css({top:"50%",marginTop:r-Math.round(h.innerHeight()/2)+"px"}):"bottom"==n?h.css({top:"auto",bottom:0+r+"px"}):"top"==n&&h.css({bottom:"auto",top:0+r+"px"}),"center"==o?h.css({left:"50%",marginLeft:i+s-Math.round(h.innerWidth()/2)+"px"}):"left"==o?h.css({left:j+s+i+"px"}):"right"==o&&h.css({right:j+s-i+"px"}),null!=g.position()&&g.css({top:Math.round(parseInt(g.position().top,0))+"px"}),null!=h.position()&&h.css({top:Math.round(parseInt(h.position().top,0))+"px"})}"none"==c.navigationArrows&&(g.css({visibility:"hidden"}),h.css({visibility:"hidden"}));var t=c.navigationVAlign,u=c.navigationHAlign,v=c.navigationVOffset*c.bh,w=c.navigationHOffset*c.bw;"center"==t&&e.css({top:"50%",marginTop:v-Math.round(e.innerHeight()/2)+"px"}),"bottom"==t&&e.css({bottom:0+v+"px"}),"top"==t&&e.css({top:0+v+"px"}),"center"==u&&e.css({left:"50%",marginLeft:i+w-Math.round(e.innerWidth()/2)+"px"}),"left"==u&&e.css({left:0+w+i+"px"}),"right"==u&&e.css({right:0+w-i+"px"})},q=function(c){var d=c.container;c.beforli=c.next-1,c.comingli=c.next+1,c.beforli<0&&(c.beforli=c.slideamount-1),c.comingli>=c.slideamount&&(c.comingli=0);var e=d.find(">ul:first-child >li:eq("+c.comingli+")"),f=d.find(">ul:first-child >li:eq("+c.beforli+")"),g=f.find(".defaultimg").attr("src"),h=e.find(".defaultimg").attr("src");c.arr==b&&(c.arr=d.parent().find(".tparrows"),c.rar=d.parent().find(".tp-rightarrow"),c.lar=d.parent().find(".tp-leftarrow"),c.raimg=c.rar.find(".tp-arr-imgholder"),c.laimg=c.lar.find(".tp-arr-imgholder"),c.raimg_b=c.rar.find(".tp-arr-imgholder2"),c.laimg_b=c.lar.find(".tp-arr-imgholder2"),c.ratit=c.rar.find(".tp-arr-titleholder"),c.latit=c.lar.find(".tp-arr-titleholder"));var i=c.arr,j=c.rar,k=c.lar,l=c.raimg,m=c.laimg,n=c.raimg_b,o=c.laimg_b,p=c.ratit,q=c.latit;if(e.data("title")!=b&&p.html(e.data("title")),f.data("title")!=b&&q.html(f.data("title")),j.hasClass("itishovered")&&j.width(p.outerWidth(!0)+parseInt(j.css("minWidth"),0)),k.hasClass("itishovered")&&k.width(q.outerWidth(!0)+parseInt(k.css("minWidth"),0)),i.hasClass("preview2")&&!i.hasClass("hashoveralready"))if(i.addClass("hashoveralready"),W()){var i=a(this),r=i.find(".tp-arr-titleholder");r.addClass("alwayshidden"),punchgs.TweenLite.set(r,{autoAlpha:0})}else i.hover(function(){var b=a(this),c=b.find(".tp-arr-titleholder");a(window).width()>767&&b.width(c.outerWidth(!0)+parseInt(b.css("minWidth"),0)),b.addClass("itishovered")},function(){var b=a(this);b.find(".tp-arr-titleholder");b.css({width:parseInt(b.css("minWidth"),0)}),b.removeClass("itishovered")});f.data("thumb")!=b&&(g=f.data("thumb")),e.data("thumb")!=b&&(h=e.data("thumb")),i.hasClass("preview4")?(n.css({backgroundImage:"url("+h+")"}),o.css({backgroundImage:"url("+g+")"}),punchgs.TweenLite.fromTo(n,.8,{force3D:punchgs.force3d,x:0},{x:-l.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){l.css({backgroundImage:"url("+h+")"}),punchgs.TweenLite.set(n,{x:0})}}),punchgs.TweenLite.fromTo(o,.8,{force3D:punchgs.force3d,x:0},{x:l.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){m.css({backgroundImage:"url("+g+")"}),punchgs.TweenLite.set(o,{x:0})}}),punchgs.TweenLite.fromTo(l,.8,{x:0},{force3D:punchgs.force3d,x:-l.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(l,{x:0})}}),punchgs.TweenLite.fromTo(m,.8,{x:0},{force3D:punchgs.force3d,x:l.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(m,{x:0})}})):(punchgs.TweenLite.to(l,.5,{autoAlpha:0,onComplete:function(){l.css({backgroundImage:"url("+h+")"}),m.css({backgroundImage:"url("+g+")"})}}),punchgs.TweenLite.to(m,.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(l,.5,{autoAlpha:1,delay:.2}),punchgs.TweenLite.to(m,.5,{autoAlpha:1,delay:.2})}})),j.hasClass("preview4")&&!j.hasClass("hashoveralready")&&(j.addClass("hashoveralready"),j.hover(function(){var b=a(this).find(".tp-arr-iwrapper"),c=a(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(b,.4,{x:b.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"}),punchgs.TweenLite.to(c,.2,{autoAlpha:1,overwrite:"all"})},function(){var b=a(this).find(".tp-arr-iwrapper"),c=a(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(b,.4,{x:b.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"}),punchgs.TweenLite.to(c,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}),k.hover(function(){var b=a(this).find(".tp-arr-iwrapper"),c=a(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(b,.4,{x:0-b.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"}),punchgs.TweenLite.to(c,.2,{autoAlpha:1,overwrite:"all"})},function(){var b=a(this).find(".tp-arr-iwrapper"),c=a(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(b,.4,{x:0-b.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"}),punchgs.TweenLite.to(c,.2,{delay:.6,autoAlpha:0,overwrite:"all"})}))},r=function(c,d){if(d.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:d.container.height()}),d.container.closest(".rev_slider_wrapper").css({height:d.container.height()}),d.width=parseInt(d.container.width(),0),d.height=parseInt(d.container.height(),0),d.bw=d.width/d.startwidth,d.bh=d.height/d.startheight,d.bh>d.bw&&(d.bh=d.bw),d.bh<d.bw&&(d.bw=d.bh),d.bw<d.bh&&(d.bh=d.bw),d.bh>1&&(d.bw=1,d.bh=1),d.bw>1&&(d.bw=1,d.bh=1),d.height=Math.round(d.startheight*(d.width/d.startwidth)),d.height>d.startheight&&"on"!=d.autoHeight&&(d.height=d.startheight),"on"==d.fullScreen){d.height=d.bw*d.startheight;var f=(d.container.parent().width(),a(window).height());if(d.fullScreenOffsetContainer!=b){try{var g=d.fullScreenOffsetContainer.split(",");a.each(g,function(b,c){f-=a(c).outerHeight(!0),f<d.minFullScreenHeight&&(f=d.minFullScreenHeight)})}catch(a){}try{d.fullScreenOffset.split("%").length>1&&d.fullScreenOffset!=b&&d.fullScreenOffset.length>0?f-=a(window).height()*parseInt(d.fullScreenOffset,0)/100:d.fullScreenOffset!=b&&d.fullScreenOffset.length>0&&(f-=parseInt(d.fullScreenOffset,0)),f<d.minFullScreenHeight&&(f=d.minFullScreenHeight)}catch(a){}}d.container.parent().height(f),d.container.closest(".rev_slider_wrapper").height(f),d.container.css({height:"100%"}),d.height=f,d.minHeight!=b&&d.height<d.minHeight&&(d.height=d.minHeight)}else d.minHeight!=b&&d.height<d.minHeight&&(d.height=d.minHeight),d.container.height(d.height);d.slotw=Math.ceil(d.width/d.slots),"on"==d.fullScreen?d.sloth=Math.ceil(a(window).height()/d.slots):d.sloth=Math.ceil(d.height/d.slots),"on"==d.autoHeight&&(d.sloth=Math.ceil(c.height()/d.slots))},s=function(c,d){c.find(".tp-caption").each(function(){a(this).addClass(a(this).data("transition")),a(this).addClass("start")}),c.find(">
11332ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:c.parent().css("maxHeight")}).addClass("tp-revslider-mainul"),"on"==d.autoHeight&&(c.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),c.css({maxHeight:"none"}),c.parent().css({maxHeight:"none"})),c.find(">ul:first >li").each(function(d){var e=a(this);if(e.addClass("tp-revslider-slidesli"),e.css({width:"100%",height:"100%",overflow:"hidden"}),e.data("link")!=b){var f=e.data("link"),g="_self",h=60;"back"==e.data("slideindex")&&(h=0);var i=checksl=e.data("linktoslide");i!=b&&"next"!=i&&"prev"!=i&&c.find(">ul:first-child >li").each(function(){var b=a(this);b.data("origindex")+1==checksl&&(i=b.index()+1)}),e.data("target")!=b&&(g=e.data("target")),"slide"!=f&&(i="no");var j='<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+h+';" data-x="center" data-y="center" data-linktoslide="'+i+'" data-start="0"><a style="width:100%;height:100%;display:block"';"slide"!=f&&(j=j+' target="'+g+'" href="'+f+'"'),j+='><span style="width:100%;height:100%;display:block"></span></a></div>',e.append(j)}}),c.parent().css({overflow:"visible"}),c.find(">ul:first >li >img").each(function(c){var e=a(this);e.addClass("defaultimg"),e.data("lazyload")!=b&&1!=e.data("lazydone")||r(e,d),i(8)&&e.data("kenburns","off"),"on"==d.panZoomDisableOnMobile&&W()&&(e.data("kenburns","off"),e.data("bgfit","cover")),e.wrap('<div class="slotholder" style="width:100%;height:100%;"data-duration="'+e.data("duration")+'"data-zoomstart="'+e.data("zoomstart")+'"data-zoomend="'+e.data("zoomend")+'"data-rotationstart="'+e.data("rotationstart")+'"data-rotationend="'+e.data("rotationend")+'"data-ease="'+e.data("ease")+'"data-duration="'+e.data("duration")+'"data-bgpositionend="'+e.data("bgpositionend")+'"data-bgposition="'+e.data("bgposition")+'"data-duration="'+e.data("duration")+'"data-kenburns="'+e.data("kenburns")+'"data-easeme="'+e.data("ease")+'"data-bgfit="'+e.data("bgfit")+'"data-bgfitend="'+e.data("bgfitend")+'"data-owidth="'+e.data("owidth")+'"data-oheight="'+e.data("oheight")+'"></div>'), 11333"none"!=d.dottedOverlay&&d.dottedOverlay!=b&&e.closest(".slotholder").append('<div class="tp-dottedoverlay '+d.dottedOverlay+'"></div>');var f=e.attr("src"),h=(e.data("lazyload"),e.data("bgfit")),j=e.data("bgrepeat"),k=e.data("bgposition");h==b&&(h="cover"),j==b&&(j="no-repeat"),k==b&&(k="center center");var l=e.closest(".slotholder");e.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="'+e.data("lazyload")+'" data-bgfit="'+h+'"data-bgposition="'+k+'" data-bgrepeat="'+j+'" data-lazydone="'+e.data("lazydone")+'" src="'+f+'" data-src="'+f+'" style="background-color:'+e.css("backgroundColor")+";background-repeat:"+j+";background-image:url("+f+");background-size:"+h+";background-position:"+k+';width:100%;height:100%;"></div>'),i(8)&&(l.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"}),l.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="'+f+'" style="width:100%">')),e.css({opacity:0}),e.data("li-id",c)})},t=function(a,c,d,e){var f=a,g=f.find(".defaultimg"),h=f.data("zoomstart"),j=f.data("rotationstart");g.data("currotate")!=b&&(j=g.data("currotate")),g.data("curscale")!=b&&"box"==e?h=100*g.data("curscale"):g.data("curscale")!=b&&(h=g.data("curscale")),r(g,c);var k=g.data("src"),l=g.css("backgroundColor"),m=c.width,n=c.height,o=g.data("fxof"),p=0;"on"==c.autoHeight&&(n=c.container.height()),o==b&&(o=0);var q=0,s=g.data("bgfit"),t=g.data("bgrepeat"),v=g.data("bgposition");if(s==b&&(s="cover"),t==b&&(t="no-repeat"),v==b&&(v="center center"),i(8)){f.data("kenburns","off");var w=k;k=""}switch(e){case"box":var x=0,y=0,z=0;if(x=c.sloth>c.slotw?c.sloth:c.slotw,!d)var q=0-x;c.slotw=x,c.sloth=x;var y=0,z=0;"on"==f.data("kenburns")&&(s=h,s.toString().length<4&&(s=X(s,f,c)));for(var A=0;A<c.slots;A++){z=0;for(var B=0;B<c.slots;B++)f.append('<div class="slot" style="position:absolute;top:'+(p+z)+"px;left:"+(o+y)+"px;width:"+x+"px;height:"+x+'px;overflow:hidden;"><div class="slotslide" data-x="'+y+'" data-y="'+z+'" style="position:absolute;top:0px;left:0px;width:'+x+"px;height:"+x+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-z)+"px;left:"+(0-y)+"px;width:"+m+"px;height:"+n+"px;background-color:"+l+";background-image:url("+k+");background-repeat:"+t+";background-size:"+s+";background-position:"+v+';"></div></div></div>'),z+=x,i(8)&&(f.find(".slot ").last().find(".slotslide").append('<img src="'+w+'">
11333'),u(f,c)),h!=b&&j!=b&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:j});y+=x}break;case"vertical":case"horizontal":if("on"==f.data("kenburns")&&(s=h,s.toString().length<4&&(s=X(s,f,c))),"horizontal"==e){if(!d)var q=0-c.slotw;for(var B=0;B<c.slots;B++)f.append('<div class="slot" style="position:absolute;top:'+(0+p)+"px;left:"+(o+B*c.slotw)+"px;overflow:hidden;width:"+(c.slotw+.6)+"px;height:"+n+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+q+"px;width:"+(c.slotw+.6)+"px;height:"+n+'px;overflow:hidden;"><div style="background-color:'+l+";position:absolute;top:0px;left:"+(0-B*c.slotw)+"px;width:"+m+"px;height:"+n+"px;background-image:url("+k+");background-repeat:"+t+";background-size:"+s+";background-position:"+v+';"></div></div></div>'),h!=b&&j!=b&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:j}),i(8)&&(f.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+w+'" style="width:100%;height:auto">'),u(f,c))}else{if(!d)var q=0-c.sloth;for(var B=0;B<c.slots+2;B++)f.append('<div class="slot" style="position:absolute;top:'+(p+B*c.sloth)+"px;left:"+o+"px;overflow:hidden;width:"+m+"px;height:"+c.sloth+'px"><div class="slotslide" style="position:absolute;top:'+q+"px;left:0px;width:"+m+"px;height:"+c.sloth+'px;overflow:hidden;"><div style="background-color:'+l+";position:absolute;top:"+(0-B*c.sloth)+"px;left:0px;width:"+m+"px;height:"+n+"px;background-image:url("+k+");background-repeat:"+t+";background-size:"+s+";background-position:"+v+';"></div></div></div>'),h!=b&&j!=b&&punchgs.TweenLite.set(f.find(".slot").last(),{rotationZ:j}),i(8)&&(f.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+w+'" style="width:100%;height:auto;">'),u(f,c))}}},u=function(a,b){if(i(8)){var c=a.find(".ieeightfallbackimage");c.width(),c.height();b.startwidth/b.startheight<a.data("owidth")/a.data("oheight")?c.css({width:"auto",height:"100%"}):c.css({width:"100%",height:"auto"}),setTimeout(function(){var d=c.width(),e=c.height(),f=a.data("bgposition");"center center"==f&&c.css({position:"absolute",top:b.height/2-e/2+"px",left:b.width/2-d/2+"px"}),"center top"!=f&&"top center"!=f||c.css({position:"absolute",top:"0px",left:b.width/2-d/2+"px"}),"center bottom"!=f&&"bottom center"!=f||c.css({position:"absolute",bottom:"0px",left:b.width/2-d/2+"px"}),"right top"!=f&&"top right"!=f||c.css({position:"absolute",top:"0px",right:"0px"}),"right bottom"!=f&&"bottom right"!=f||c.css({position:"absolute",bottom:"0px",right:"0px"}),"right center"!=f&&"center right"!=f||c.css({position:"absolute",top:b.height/2-e/2+"px",right:"0px"}),"left bottom"!=f&&"bottom left"!=f||c.css({position:"absolute",bottom:"0px",left:"0px"}),"left center"!=f&&"center left"!=f||c.css({position:"absolute",top:b.height/2-e/2+"px",left:"0px"})},20)}},v=function(b,c,d){d.find(".slot").each(function(){a(this).remove()}),c.transition=0},w=function(c,d){c.find("img, .defaultimg").each(function(c){var e=a(this),f=e.data("lazyload");if(f!=e.attr("src")&&d<3&&f!=b&&"undefined"!=f){if(f!=b&&"undefined"!=f){e.attr("src",f);var g=new Image;g.onload=function(a){e.data("lazydone",1),e.hasClass("defaultimg")&&x(e,g)},g.error=function(){e.data("lazydone",1)},g.src=e.attr("src"),g.complete&&(e.hasClass("defaultimg")&&x(e,g),e.data("lazydone",1))}}else if((f===b||"undefined"===f)&&1!=e.data("lazydone")){var g=new Image;g.onload=function(){e.hasClass("defaultimg")&&x(e,g),e.data("lazydone",1)},g.error=function(){e.data("lazydone",1)},e.attr("src")!=b&&"undefined"!=e.attr("src")?g.src=e.attr("src"):g.src=e.data("src"),g.complete&&(e.hasClass("defaultimg")&&x(e,g),e.data("lazydone",1))}})},x=function(a,b){var c=a.closest("li"),d=b.width,e=b.height;c.data("owidth",d),c.data("oheight",e),c.find(".slotholder").data("owidth",d),c.find(".slotholder").data("oheight",e),c.data("loadeddone",1)},y=function(c,d,e){w(c,0);var f=setInterval(function(){e.bannertimeronpause=!0,e.container.trigger("stoptimer"),e.cd=0;var g=0;c.find("img, .defaultimg").each(function(b){1!=a(this).data("lazydone")&&g++}),g>0?w(c,g):(clearInterval(f),d!=b&&d())},100)},z=function(a,c){try{a.find(">ul:first-child >li:eq("+c.act+")")}catch(b){a.find(">ul:first-child >li:eq(1)")}c.lastslide=c.act;var e=a.find(">ul:first-child >li:eq("+c.next+")"),f=e.find(".defaultimg");c.bannertimeronpause=!0,a.trigger("stoptimer"),c.cd=0,f.data("lazyload")!=b&&"undefined"!=f.data("lazyload")&&1!=f.data("lazydone")?(i(8)?f.attr("src",e.find(".defaultimg").data("lazyload")):f.css({backgroundImage:'url("'+e.find(".defaultimg").data("lazyload")+'")'}),f.data("src",e.find(".defaultimg").data("lazyload")),f.data("lazydone",1),f.data("orgw",0),e.data("loadeddone",1),a.find(".tp-loader").css({display:"block"}),y(a.find(".tp-static-layers"),function(){y(e,function(){var b=e.find(".slotholder");if("on"==b.data("kenburns"))var d=setInterval(function(){var e=b.data("owidth");e>=0&&(clearInterval(d),A(c,f,a))},10);else A(c,f,a)},c)},c)):e.data("loadeddone")===b?(e.data("loadeddone",1),y(e,function(){A(c,f,a)},c)):A(c,f,a)},A=function(a,b,c){a.bannertimeronpause=!1,a.cd=0,c.trigger("nulltimer"),c.find(".tp-loader").css({display:"none"}),r(b,a),p(c,a),r(b,a),B(c,a)},B=function(a,c){a.trigger("revolution.slide.onbeforeswap"),c.transition=1,c.videoplaying=!1;try{var d=a.find(">ul:first-child >li:eq("+c.act+")")}catch(b){var d=a.find(">ul:first-child >li:eq(1)")}c.lastslide=c.act;var e=a.find(">ul:first-child >li:eq("+c.next+")");setTimeout(function(){q(c)},200);var f=d.find(".slotholder"),g=e.find(".slotholder");"on"!=g.data("kenburns")&&"on"!=f.data("kenburns")||(_(a,c),a.find(".kenburnimg").remove()),e.data("delay")!=b?(c.cd=0,c.delay=e.data("delay")):c.delay=c.origcd,1==c.firststart&&punchgs.TweenLite.set(d,{autoAlpha:0}),punchgs.TweenLite.set(d,{zIndex:18}),punchgs.TweenLite.set(e,{autoAlpha:0,zIndex:20});var h=0;d.index()!=e.index()&&1!=c.firststart&&(h=R(d,c)),"on"!=d.data("saveperformance")&&(h=0),setTimeout(function(){a.trigger("restarttimer"),C(a,c,e,d,f,g)},h)},C=function(c,d,e,f,g,h){function x(){a.each(o,function(a,b){b[0]!=m&&b[8]!=m||(j=b[1],n=b[2],r=s),s+=1})}"prepared"==e.data("differentissplayed")&&(e.data("differentissplayed","done"),e.data("transition",e.data("savedtransition")),e.data("slotamount",e.data("savedslotamount")),e.data("masterspeed",e.data("savedmasterspeed"))),e.data("fstransition")!=b&&"done"!=e.data("differentissplayed")&&(e.data("savedtransition",e.data("transition")),e.data("savedslotamount",e.data("slotamount")),e.data("savedmasterspeed",e.data("masterspeed")),e.data("transition",e.data("fstransition")),e.data("slotamount",e.data("fsslotamount")),e.data("masterspeed",e.data("fsmasterspeed")),e.data("differentissplayed","prepared")),c.find(".active-revslide").removeClass(".active-revslide"),e.addClass("active-revslide"),e.data("transition")==b&&e.data("transition","random");var j=0,k=e.data("transition").split(","),l=e.data("nexttransid")==b?-1:e.data("nexttransid");"on"==e.data("randomtransition")?l=Math.round(Math.random()*k.length):l+=1,l==k.length&&(l=0),e.data("nexttransid",l);var m=k[l];d.ie&&("boxfade"==m&&(m="boxslide"),"slotfade-vertical"==m&&(m="slotzoom-vertical"),"slotfade-horizontal"==m&&(m="slotzoom-horizontal")),i(8)&&(m=11);var n=0;"scroll"==d.parallax&&d.parallaxFirstGo==b&&(d.parallaxFirstGo=!0,ba(c,d),setTimeout(function(){ba(c,d)},210),setTimeout(function(){ba(c,d)},420)),"slidehorizontal"==m&&(m="slideleft",1==d.leftarrowpressed&&(m="slideright")),"slidevertical"==m&&(m="slideup",1==d.leftarrowpressed&&(m="slidedown")),"parallaxhorizontal"==m&&(m="parallaxtoleft",1==d.leftarrowpressed&&(m="parallaxtoright")),"parallaxvertical"==m&&(m="parallaxtotop",1==d.leftarrowpressed&&(m="parallaxtobottom"));
11333var o=[["boxslide",0,1,10,0,"box",!1,null,0],["boxfade",1,0,10,0,"box",!1,null,1],["slotslide-horizontal",2,0,0,200,"horizontal",!0,!1,2],["slotslide-vertical",3,0,0,200,"vertical",!0,!1,3],["curtain-1",4,3,0,0,"horizontal",!0,!0,4],["curtain-2",5,3,0,0,"horizontal",!0,!0,5],["curtain-3",6,3,25,0,"horizontal",!0,!0,6],["slotzoom-horizontal",7,0,0,400,"horizontal",!0,!0,7],["slotzoom-vertical",8,0,0,0,"vertical",!0,!0,8],["slotfade-horizontal",9,0,0,500,"horizontal",!0,null,9],["slotfade-vertical",10,0,0,500,"vertical",!0,null,10],["fade",11,0,1,300,"horizontal",!0,null,11],["slideleft",12,0,1,0,"horizontal",!0,!0,12],["slideup",13,0,1,0,"horizontal",!0,!0,13],["slidedown",14,0,1,0,"horizontal",!0,!0,14],["slideright",15,0,1,0,"horizontal",!0,!0,15],["papercut",16,0,0,600,"",null,null,16],["3dcurtain-horizontal",17,0,20,100,"vertical",!1,!0,17],["3dcurtain-vertical",18,0,10,100,"horizontal",!1,!0,18],["cubic",19,0,20,600,"horizontal",!1,!0,19],["cube",19,0,20,600,"horizontal",!1,!0,20],["flyin",20,0,4,600,"vertical",!1,!0,21],["turnoff",21,0,1,1600,"horizontal",!1,!0,22],["incube",22,0,20,200,"horizontal",!1,!0,23],["cubic-horizontal",23,0,20,500,"vertical",!1,!0,24],["cube-horizontal",23,0,20,500,"vertical",!1,!0,25],["incube-horizontal",24,0,20,500,"vertical",!1,!0,26],["turnoff-vertical",25,0,1,200,"horizontal",!1,!0,27],["fadefromright",12,1,1,0,"horizontal",!0,!0,28],["fadefromleft",15,1,1,0,"horizontal",!0,!0,29],["fadefromtop",14,1,1,0,"horizontal",!0,!0,30],["fadefrombottom",13,1,1,0,"horizontal",!0,!0,31],["fadetoleftfadefromright",12,2,1,0,"horizontal",!0,!0,32],["fadetorightfadetoleft",15,2,1,0,"horizontal",!0,!0,33],["fadetobottomfadefromtop",14,2,1,0,"horizontal",!0,!0,34],["fadetotopfadefrombottom",13,2,1,0,"horizontal",!0,!0,35],["parallaxtoright",12,3,1,0,"horizontal",!0,!0,36],["parallaxtoleft",15,3,1,0,"horizontal",!0,!0,37],["parallaxtotop",14,3,1,0,"horizontal",!0,!0,38],["parallaxtobottom",13,3,1,0,"horizontal",!0,!0,39],["scaledownfromright",12,4,1,0,"horizontal",!0,!0,40],["scaledownfromleft",15,4,1,0,"horizontal",!0,!0,41],["scaledownfromtop",14,4,1,0,"horizontal",!0,!0,42],["scaledownfrombottom",13,4,1,0,"horizontal",!0,!0,43],["zoomout",13,5,1,0,"horizontal",!0,!0,44],["zoomin",13,6,1,0,"horizontal",!0,!0,45],["notransition",26,0,1,0,"horizontal",!0,null,46]],p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],q=[16,17,18,19,20,21,22,23,24,25,26,27],j=0,n=1,r=0,s=0,u=new Array;"on"==h.data("kenburns")&&("boxslide"!=m&&0!=m&&"boxfade"!=m&&1!=m&&"papercut"!=m&&16!=m||(m=11),Y(c,d,!0,!0)),"random"==m&&(m=Math.round(Math.random()*o.length-1),m>o.length-1&&(m=o.length-1)),"random-static"==m&&(m=Math.round(Math.random()*p.length-1),m>p.length-1&&(m=p.length-1),m=p[m]),"random-premium"==m&&(m=Math.round(Math.random()*q.length-1),m>q.length-1&&(m=q.length-1),m=q[m]);var v=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(1==d.isJoomla&&window.MooTools!=b&&v.indexOf(m)!=-1){var w=Math.round(Math.random()*(q.length-2))+1;w>q.length-1&&(w=q.length-1),0==w&&(w=1),m=q[w]}x(),i(8)&&j>15&&j<28&&(m=Math.round(Math.random()*p.length-1),m>p.length-1&&(m=p.length-1),m=p[m],s=0,x());var y=-1;(1==d.leftarrowpressed||d.act>d.next)&&(y=1),d.leftarrowpressed=0,j>26&&(j=26),j<0&&(j=0);var z=300;e.data("masterspeed")!=b&&e.data("masterspeed")>99&&e.data("masterspeed")<d.delay&&(z=e.data("masterspeed")),e.data("masterspeed")!=b&&e.data("masterspeed")>d.delay&&(z=d.delay),u=o[r],c.parent().find(".bullet").each(function(){var b=a(this),c=b.index();b.removeClass("selected"),"withbullet"!=d.navigationArrows&&"nexttobullets"!=d.navigationArrows||(c=b.index()-1),c==d.next&&b.addClass("selected")});var A=new punchgs.TimelineLite({onComplete:function(){D(c,d,h,g,e,f,A)}});if(A.add(punchgs.TweenLite.set(h.find(".defaultimg"),{opacity:0})),A.pause(),e.data("slotamount")==b||e.data("slotamount")<1?(d.slots=Math.round(12*Math.random()+4),"boxslide"==m?d.slots=Math.round(6*Math.random()+3):"flyin"==m&&(d.slots=Math.round(4*Math.random()+1))):d.slots=e.data("slotamount"),e.data("rotate")==b?d.rotate=0:999==e.data("rotate")?d.rotate=Math.round(360*Math.random()):d.rotate=e.data("rotate"),(!a.support.transition||d.ie||d.ie9)&&(d.rotate=0),1==d.firststart&&(d.firststart=0),z+=u[4],(4==j||5==j||6==j)&&d.slots<3&&(d.slots=3),0!=u[3]&&(d.slots=Math.min(d.slots,u[3])),9==j&&(d.slots=d.width/20),10==j&&(d.slots=d.height/20),null!=u[7]&&t(g,d,u[7],u[5]),null!=u[6]&&t(h,d,u[6],u[5]),0==j){var B=Math.ceil(d.height/d.sloth),C=0;h.find(".slotslide").each(function(b){var c=a(this);C+=1,C==B&&(C=0),A.add(punchgs.TweenLite.from(c,z/600,{opacity:0,top:0-d.sloth,left:0-d.slotw,rotation:d.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}
11333),(15*b+30*C)/1500)})}if(1==j){var E,F=0;h.find(".slotslide").each(function(b){var c=a(this),e=Math.random()*z+300,f=500*Math.random()+200;e+f>E&&(E=f+f,F=b),A.add(punchgs.TweenLite.from(c,e/1e3,{autoAlpha:0,force3D:"auto",rotation:d.rotate,ease:punchgs.Power2.easeInOut}),f/1e3)})}if(2==j){var G=new punchgs.TimelineLite;g.find(".slotslide").each(function(){var b=a(this);G.add(punchgs.TweenLite.to(b,z/1e3,{left:d.slotw,force3D:"auto",rotation:0-d.rotate}),0),A.add(G,0)}),h.find(".slotslide").each(function(){var b=a(this);G.add(punchgs.TweenLite.from(b,z/1e3,{left:0-d.slotw,force3D:"auto",rotation:d.rotate}),0),A.add(G,0)})}if(3==j){var G=new punchgs.TimelineLite;g.find(".slotslide").each(function(){var b=a(this);G.add(punchgs.TweenLite.to(b,z/1e3,{top:d.sloth,rotation:d.rotate,force3D:"auto",transformPerspective:600}),0),A.add(G,0)}),h.find(".slotslide").each(function(){var b=a(this);G.add(punchgs.TweenLite.from(b,z/1e3,{top:0-d.sloth,rotation:d.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0),A.add(G,0)})}if(4==j||5==j){setTimeout(function(){g.find(".defaultimg").css({opacity:0})},100);var H=z/1e3,G=new punchgs.TimelineLite;g.find(".slotslide").each(function(b){var c=a(this),e=b*H/d.slots;5==j&&(e=(d.slots-b-1)*H/d.slots/1.5),G.add(punchgs.TweenLite.to(c,3*H,{transformPerspective:600,force3D:"auto",top:0+d.height,opacity:.5,rotation:d.rotate,ease:punchgs.Power2.easeInOut,delay:e}),0),A.add(G,0)}),h.find(".slotslide").each(function(b){var c=a(this),e=b*H/d.slots;5==j&&(e=(d.slots-b-1)*H/d.slots/1.5),G.add(punchgs.TweenLite.from(c,3*H,{top:0-d.height,opacity:.5,rotation:d.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:e}),0),A.add(G,0)})}if(6==j){d.slots<2&&(d.slots=2),d.slots%2&&(d.slots=d.slots+1);var G=new punchgs.TimelineLite;setTimeout(function(){g.find(".defaultimg").css({opacity:0})},100),g.find(".slotslide").each(function(b){var c=a(this);if(b+1<d.slots/2)var e=90*(b+2);else var e=90*(2+d.slots-b);G.add(punchgs.TweenLite.to(c,(z+e)/1e3,{top:0+d.height,opacity:1,force3D:"auto",rotation:d.rotate,ease:punchgs.Power2.easeInOut}),0),A.add(G,0)}),h.find(".slotslide").each(function(b){var c=a(this);if(b+1<d.slots/2)var e=90*(b+2);else var e=90*(2+d.slots-b);G.add(punchgs.TweenLite.from(c,(z+e)/1e3,{top:0-d.height,opacity:1,force3D:"auto",rotation:d.rotate,ease:punchgs.Power2.easeInOut}),0),A.add(G,0)})}if(7==j){z*=2,z>d.delay&&(z=d.delay);var G=new punchgs.TimelineLite;setTimeout(function(){g.find(".defaultimg").css({opacity:0})},100),g.find(".slotslide").each(function(){var b=a(this).find("div");G.add(punchgs.TweenLite.to(b,z/1e3,{left:0-d.slotw/2+"px",top:0-d.height/2+"px",width:2*d.slotw+"px",height:2*d.height+"px",opacity:0,rotation:d.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0),A.add(G,0)}),h.find(".slotslide").each(function(b){var c=a(this).find("div");G.add(punchgs.TweenLite.fromTo(c,z/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-b*d.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:"0px",width:d.width,height:d.height,opacity:1,rotation:0,delay:.1}),0),A.add(G,0)})}if(8==j){z*=3,z>d.delay&&(z=d.delay);var G=new punchgs.TimelineLite;g.find(".slotslide").each(function(){var b=a(this).find("div");G.add(punchgs.TweenLite.to(b,z/1e3,{left:0-d.width/2+"px",top:0-d.sloth/2+"px",width:2*d.width+"px",height:2*d.sloth+"px",force3D:"auto",opacity:0,rotation:d.rotate}),0),A.add(G,0)}),h.find(".slotslide").each(function(b){var c=a(this).find("div");G.add(punchgs.TweenLite.fromTo(c,z/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:"0px",top:0-b*d.sloth+"px",width:h.find(".defaultimg").data("neww")+"px",height:h.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0),A.add(G,0)})}if(9==j||10==j){var J=0;h.find(".slotslide").each(function(b){var c=a(this);J++,A.add(punchgs.TweenLite.fromTo(c,z/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:5*b/1e3}),0)})}if(11==j||26==j){var J=0;26==j&&(z=0),h.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.from(c,z/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})}if(12==j||13==j||14==j||15==j){z=z,z>d.delay&&(z=d.delay),setTimeout(function(){punchgs.TweenLite.set(g.find(".defaultimg"),{autoAlpha:0})},100);var K=d.width,M=d.height,N=h.find(".slotslide"),O=0,P=0,Q=1,R=1,S=1,T=punchgs.Power2.easeInOut,U=punchgs.Power2.easeInOut,V=z/1e3,W=V;"on"!=d.fullWidth&&"on"!=d.fullScreen||(K=N.width(),M=N.height()),12==j?O=K:15==j?O=0-K:13==j?P=M:14==j&&(P=0-M),1==n&&(Q=0),2==n&&(Q=0),3==n&&(T=punchgs.Power2.easeInOut,U=punchgs.Power1.easeInOut,V=z/1200),4!=n&&5!=n||(R=.6),6==n&&(R=1.4),5!=n&&6!=n||(S=1.4,Q=0,K=0,M=0,O=0,P=0),6==n&&(S=.6);A.add(punchgs.TweenLite.from(N,V,{left:O,top:P,scale:S,opacity:Q,rotation:d.rotate,ease:U,force3D:"auto"}),0);var Z=g.find(".slotslide");if(4!=n&&5!=n||(K=0,M=0),1!=n)switch(j){case 12:A.add(punchgs.TweenLite.to(Z,W,{left
vendor: 5,193 bytes, line 11333
11333:0-K+"px",force3D:"auto",scale:R,opacity:Q,rotation:d.rotate,ease:T}),0);break;case 15:A.add(punchgs.TweenLite.to(Z,W,{left:K+"px",force3D:"auto",scale:R,opacity:Q,rotation:d.rotate,ease:T}),0);break;case 13:A.add(punchgs.TweenLite.to(Z,W,{top:0-M+"px",force3D:"auto",scale:R,opacity:Q,rotation:d.rotate,ease:T}),0);break;case 14:A.add(punchgs.TweenLite.to(Z,W,{top:M+"px",force3D:"auto",scale:R,opacity:Q,rotation:d.rotate,ease:T}),0)}}if(16==j){var G=new punchgs.TimelineLite;A.add(punchgs.TweenLite.set(f,{position:"absolute","z-index":20}),0),A.add(punchgs.TweenLite.set(e,{position:"absolute","z-index":15}),0),f.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>'),f.find(".tp-half-one").clone(!0).appendTo(f).addClass("tp-half-two"),f.find(".tp-half-two").removeClass("tp-half-one");var K=d.width,M=d.height;"on"==d.autoHeight&&(M=c.height()),f.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+K+"px;height:"+M+'px;"></div>'),f.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+K+"px;height:"+M+'px;"></div>'),f.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"}),f.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>'),A.add(punchgs.TweenLite.set(f.find(".tp-half-two"),{width:K,height:M,overflow:"hidden",zIndex:15,position:"absolute",top:M/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0),A.add(punchgs.TweenLite.set(f.find(".tp-half-one"),{width:K,height:M/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var _=(f.find(".defaultimg"),Math.round(20*Math.random()-10)),aa=Math.round(20*Math.random()-10),ca=Math.round(20*Math.random()-10),da=.4*Math.random()-.2,ea=.4*Math.random()-.2,fa=1*Math.random()+1,ga=1*Math.random()+1,ha=.3*Math.random()+.3;A.add(punchgs.TweenLite.set(f.find(".tp-half-one"),{overflow:"hidden"}),0),A.add(punchgs.TweenLite.fromTo(f.find(".tp-half-one"),z/800,{width:K,height:M/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:fa,rotation:_,y:0-M-M/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0),A.add(punchgs.TweenLite.fromTo(f.find(".tp-half-two"),z/800,{width:K,height:M,overflow:"hidden",position:"absolute",top:M/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:ga,rotation:aa,y:M+M/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(f,{position:"absolute","z-index":15}),punchgs.TweenLite.set(e,{position:"absolute","z-index":20}),f.find(".tp-half-one").length>0&&(f.find(".tp-half-one .defaultimg").unwrap(),f.find(".tp-half-one .slotholder").unwrap()),f.find(".tp-half-two").remove()}}),0),G.add(punchgs.TweenLite.set(h.find(".defaultimg"),{autoAlpha:1}),0),null!=f.html()&&A.add(punchgs.TweenLite.fromTo(e,(z-200)/1e3,{scale:ha,x:d.width/4*da,y:M/4*ea,rotation:ca,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0),A.add(G,0)}if(17==j&&h.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:.06*b}),0)}),18==j&&h.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/500,{autoAlpha:0,rotationY:310,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:.06*b}),0)}),19==j||22==j){var G=new punchgs.TimelineLite;A.add(punchgs.TweenLite.set(f,{zIndex:20}),0),A.add(punchgs.TweenLite.set(e,{zIndex:20}),0),setTimeout(function(){g.find(".defaultimg").css({opacity:0})},100);var ka=(e.css("z-index"),f.css("z-index"),90),Q=1,la="center center ";1==y&&(ka=-90),19==j?(la=la+"-"+d.height/2,Q=0):la+=d.height/2,punchgs.TweenLite.set(c,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),h.find(".slotslide").each(function(b){var c=a(this);G.add(punchgs.TweenLite.fromTo(c,z/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:d.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationX:ka},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:50*b/1e3,ease:punchgs.Power2.easeInOut}),0),G.add(punchgs.TweenLite.to(c,.1,{autoAlpha:1,delay:50*b/1e3}),0),A.add(G)}),g.find(".slotslide").each(function(b){var c=a(this),e=-90;1==y&&(e=90),G.add(punchgs.TweenLite.fromTo(c,z/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationX:0},{autoAlpha:1,rotationY:d.rotate,top:0,z:10,scale:1,rotationX:e,delay:50*b/1e3,force3D:"auto",ease:punchgs.Power2.easeInOut}),0),A.add(G)})}if(20==j){setTimeout(function(){g.find(".defaultimg").css({opacity:0}
11333)},100);e.css("z-index"),f.css("z-index");if(1==y)var ma=-d.width,ka=70,la="left center -"+d.height/2;else var ma=d.width,ka=-70,la="right center -"+d.height/2;h.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/1500,{left:ma,rotationX:40,z:-600,opacity:Q,top:0,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationY:ka},{left:0,delay:50*b/1e3,ease:punchgs.Power2.easeInOut}),0),A.add(punchgs.TweenLite.fromTo(c,z/1e3,{rotationX:40,z:-600,opacity:Q,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationY:ka},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:50*b/1e3,ease:punchgs.Power2.easeInOut}),0),A.add(punchgs.TweenLite.to(c,.1,{opacity:1,force3D:"auto",delay:50*b/1e3+z/2e3}),0)}),g.find(".slotslide").each(function(b){var c=a(this);if(1!=y)var e=-d.width,f=70,g="left center -"+d.height/2;else var e=d.width,f=-70,g="right center -"+d.height/2;A.add(punchgs.TweenLite.fromTo(c,z/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:g,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:e,force3D:"auto",scale:.8,rotationY:f,delay:50*b/1e3,ease:punchgs.Power2.easeInOut}),0),A.add(punchgs.TweenLite.to(c,.1,{force3D:"auto",opacity:0,delay:50*b/1e3+(z/1e3-z/1e4)}),0)})}if(21==j||25==j){setTimeout(function(){g.find(".defaultimg").css({opacity:0})},100);var ka=(e.css("z-index"),f.css("z-index"),90),ma=-d.width,na=-ka;if(1==y)if(25==j){var la="center top 0";ka=d.rotate}else{var la="left center 0";na=d.rotate}else if(ma=d.width,ka=-90,25==j){var la="center bottom 0";na=-ka,ka=d.rotate}else{var la="right center 0";na=d.rotate}h.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/1e3,{left:0,transformStyle:"flat",rotationX:na,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationY:ka},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)}),1!=y?(ma=-d.width,ka=90,25==j?(la="center top 0",na=-ka,ka=d.rotate):(la="left center 0",na=d.rotate)):(ma=d.width,ka=-90,25==j?(la="center bottom 0",na=-ka,ka=d.rotate):(la="right center 0",na=d.rotate)),g.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationY:0},{left:0,rotationX:na,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:ka,ease:punchgs.Power1.easeInOut}),0)})}if(23==j||24==j){setTimeout(function(){g.find(".defaultimg").css({opacity:0})},100);var ka=(e.css("z-index"),f.css("z-index"),-90),Q=1,oa=0;if(1==y&&(ka=90),23==j){var la="center center -"+d.width/2;Q=0}else var la="center center "+d.width/2;punchgs.TweenLite.set(c,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}),h.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/1e3,{left:oa,rotationX:d.rotate,force3D:"auto",opacity:Q,top:0,scale:1,transformPerspective:600,transformOrigin:la,rotationY:ka},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:50*b/500,ease:punchgs.Power2.easeInOut}),0)}),ka=90,1==y&&(ka=-90),g.find(".slotslide").each(function(b){var c=a(this);A.add(punchgs.TweenLite.fromTo(c,z/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:la,rotationY:0},{left:oa,autoAlpha:1,rotationX:d.rotate,top:0,scale:1,rotationY:ka,delay:50*b/500,ease:punchgs.Power2.easeInOut}),0)})}A.pause(),L(e,d,null,A),punchgs.TweenLite.to(e,.001,{autoAlpha:1});var pa={};pa.slideIndex=d.next+1,pa.slide=e,c.trigger("revolution.slide.onchange",pa),setTimeout(function(){c.trigger("revolution.slide.onafterswap")},z),c.trigger("revolution.slide.onvideostop")},D=function(a,b,c,d,e,f,g){punchgs.TweenLite.to(c.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){v(a,b,e)}}),e.index()!=f.index()&&punchgs.TweenLite.to(f,.2,{autoAlpha:0,onComplete:function(){v(a,b,f)}}),b.act=b.next,"thumb"==b.navigationType&&da(a),"on"==c.data("kenburns")&&Y(a,b),a.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible"),e.addClass("current-sr-slide-visible"),"scroll"!=b.parallax&&"scroll+mouse"!=b.parallax&&"mouse+scroll"!=b.parallax||ba(a,b),g.clear()},E=function(b){var c=b.target.getVideoEmbedCode(),d=a("#"+c.split('id="')[1].split('"')[0]),e=d.closest(".tp-simpleresponsive"),f=d.parent().data("player");if(b.data==YT.PlayerState.PLAYING){var g=e.find(".tp-bannertimer"),h=g.data("opt");"mute"==d.closest(".tp-caption").data("volume")&&f.mute(),h.videoplaying=!0,e.trigger("stoptimer"),e.trigger("revolution.slide.onvideoplay")}else{var g=e.find(".tp-bannertimer"),h=g.data("opt");b.data!=-1&&3!=b.data&&(h.videoplaying=!1,e.trigger("starttimer"),e.trigger("revolution.slide.onvideostop")),0==b.data&&1==h.nextslideatend?h.container.revnext():(h.videoplaying=!1,e.trigger("starttimer"),e.trigger("revolution.slide.onvideostop"))}},F=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent(b,c,!1)},G=function(b,c){var d=$f(b),e=a("#"+b),f=e.closest(".tp-simpleresponsive"),g=e.closest(".tp-caption");setTimeout(function(){d.addEvent("ready",function(b){c&&d.api("play"),d.addEvent("play",function(a){var b=f.find(".tp-bannertimer"),c=b.data("opt");c.videoplaying=!0,f.trigger("stoptimer"),"mute"==g.data("volume")&&d.api("setVolume","0")}),d.addEvent("finish",function(a){var b=f.find(".tp-bannertimer"),c=b.data("opt");c.videoplaying=!1,f.trigger("starttimer"),f.trigger("revolution.slide.onvideoplay"),
113331==c.nextslideatend&&c.container.revnext()}),d.addEvent("pause",function(a){var b=f.find(".tp-bannertimer"),c=b.data("opt");c.videoplaying=!1,f.trigger("starttimer"),f.trigger("revolution.slide.onvideostop")}),g.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(a(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),d.api("play")})})},150)},H=function(a,c){var d=c.width(),e=c.height(),f=a.data("mediaAspect");f==b&&(f=1);var g=d/e;a.css({position:"absolute"});a.find("video");g<f?punchgs.TweenLite.to(a,1e-4,{width:e*f,force3D:"auto",top:0,left:0-(e*f-d)/2,height:e}):punchgs.TweenLite.to(a,1e-4,{width:d,force3D:"auto",top:0-(d/f-e)/2,left:0,height:d/f})},I=function(){var a=new Object;return a.x=0,a.y=0,a.rotationX=0,a.rotationY=0,a.rotationZ=0,a.scale=1,a.scaleX=1,a.scaleY=1,a.skewX=0,a.skewY=0,a.opacity=0,a.transformOrigin="center, center",a.transformPerspective=400,a.rotation=0,a},J=function(b,c){var d=c.split(";");return a.each(d,function(a,c){c=c.split(":");var d=c[0],e=c[1];"rotationX"==d&&(b.rotationX=parseInt(e,0)),"rotationY"==d&&(b.rotationY=parseInt(e,0)),"rotationZ"==d&&(b.rotationZ=p
11333arseInt(e,0)),"rotationZ"==d&&(b.rotation=parseInt(e,0)),"scaleX"==d&&(b.scaleX=parseFloat(e)),"scaleY"==d&&(b.scaleY=parseFloat(e)),"opacity"==d&&(b.opacity=parseFloat(e)), 11334"skewX"==d&&(b.skewX=parseInt(e,0)),"skewY"==d&&(b.skewY=parseInt(e,0)),"x"==d&&(b.x=parseInt(e,0)),"y"==d&&(b.y=parseInt(e,0)),"z"==d&&(b.z=parseInt(e,0)),"transformOrigin"==d&&(b.transformOrigin=e.toString()),"transformPerspective"==d&&(b.transformPerspective=parseInt(e,0))}),b},K=function(b){var c=b.split("animation:"),d=new Object;d.animation=J(I(),c[1]);var e=c[0].split(";");return a.each(e,function(a,b){b=b.split(":");var c=b[0],e=b[1];"typ"==c&&(d.typ=e),"speed"==c&&(d.speed=parseInt(e,0)/1e3),"start"==c&&(d.start=parseInt(e,0)/1e3),"elementdelay"==c&&(d.elementdelay=parseFloat(e)),"ease"==c&&(d.ease=e)}),d},L=function(c,d,e,f){function g(){}function h(){}c.data("ctl")==b&&c.data("ctl",new punchgs.TimelineLite);var j=c.data("ctl"),k=0,l=0,m=c.find(".tp-caption"),n=d.container.find(".tp-static-layers").find(".tp-caption");j.pause(),a.each(n,function(a,b){m.push(b)}),m.each(function(c){var f=e,j=-1,m=a(this);if(m.hasClass("tp-static-layer")){var n=m.data("startslide"),o=m.data("endslide");n!=-1&&"-1"!=n||m.data("startslide",0),o!=-1&&"-1"!=o||m.data("endslide",d.slideamount),0==n&&o==d.slideamount-1&&m.data("endslide",d.slideamount+1),n=m.data("startslide"),o=m.data("endslide"),m.hasClass("tp-is-shown")?j=o==d.next||n>d.next||o<d.next?2:0:n<=d.next&&o>=d.next||n==d.next||o==d.next?(m.addClass("tp-is-shown"),j=1):j=0}k=d.width/2-d.startwidth*d.bw/2;var p=d.bw;d.bh;"on"==d.fullScreen&&(l=d.height/2-d.startheight*d.bh/2),("on"==d.autoHeight||d.minHeight!=b&&d.minHeight>0)&&(l=d.container.height()/2-d.startheight*d.bh/2),l<0&&(l=0);var r=0;if(d.width<d.hideCaptionAtLimit&&"on"==m.data("captionhidden")?(m.addClass("tp-hidden-caption"),r=1):d.width<d.hideAllCaptionAtLimit||d.width<d.hideAllCaptionAtLilmit?(m.addClass("tp-hidden-caption"),r=1):m.removeClass("tp-hidden-caption"),0==r){if(m.data("linktoslide")==b||m.hasClass("hasclicklistener")||(m.addClass("hasclicklistener"),m.css({cursor:"pointer"}),"no"!=m.data("linktoslide")&&m.click(function(){var b=a(this),c=b.data("linktoslide");"next"!=c&&"prev"!=c?(d.container.data("showus",c),d.container.parent().find(".tp-rightarrow").click()):"next"==c?d.container.parent().find(".tp-rightarrow").click():"prev"==c&&d.container.parent().find(".tp-leftarrow").click()})),k<0&&(k=0),m.hasClass("tp-videolayer")||m.find("iframe").length>0||m.find("video").length>0){var s="iframe"+Math.round(1e5*Math.random()+1),t=m.data("videowidth"),u=m.data("videoheight"),v=m.data("videoattributes"),w=m.data("ytid"),x=m.data("vimeoid"),y=m.data("videpreload"),z=m.data("videomp4"),A=m.data("videowebm"),B=m.data("videoogv"),C=m.data("videocontrols"),D="http",L="loop"==m.data("videoloop")?"loop":"loopandnoslidestop"==m.data("videoloop")?"loop":"";if(m.data("thumbimage")!=b&&m.data("videoposter")==b&&m.data("videoposter",m.data("thumbimage")),w!=b&&String(w).length>1&&0==m.find("iframe").length&&(D="https","none"==C&&(v=v.replace("controls=1","controls=0"),v.toLowerCase().indexOf("controls")==-1&&(v+="&controls=0")),m.append('<iframe style="visible:hidden" src="'+D+"://www.youtube.com/embed/"+w+"?"+v+'" width="'+t+'" height="'+u+'" style="width:'+t+"px;height:"+u+'px"></iframe>')),x!=b&&String(x).length>1&&0==m.find("iframe").length&&("https:"===location.protocol&&(D="https"),m.append('<iframe style="visible:hidden" src="'+D+"://player.vimeo.com/video/"+x+"?"+v+'" width="'+t+'" height="'+u+'" style="width:'+t+"px;height:"+u+'px"></iframe>')),(z!=b||A!=b)&&0==m.find("video").length){"controls"!=C&&(C="");var N='<video style="visible:hidden" class="" '+L+' preload="'+y+'" width="'+t+'" height="'+u+'"';m.data("videoposter")!=b&&m.data("videoposter")!=b&&(N=N+'poster="'+m.data("videoposter")+'">'),A!=b&&"firefox"==M().toLowerCase()&&(N=N+'<source src="'+A+'" type="video/webm" />'),z!=b&&(N=N+'<source src="'+z+'" type="video/mp4" />'),B!=b&&(N=N+'<source src="'+B+'" type="video/ogg" />'),N+="</video>",m.append(N),"controls"==C&&m.append('<div class="tp-video-controls"><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-play-pause">Play</button></div><div class="tp-video-seek-bar-wrap">
11334<input type="range" class="tp-seek-bar" value="0"></div><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-mute">Mute</button></div><div class="tp-video-vol-bar-wrap"><input type="range" class="tp-volume-bar" min="0" max="1" step="0.1" value="1"></div><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-full-screen">Full-Screen</button></div></div>')}var R=!1;1!=m.data("autoplayonlyfirsttime")&&"true"!=m.data("autoplayonlyfirsttime")&&1!=m.data("autoplay")||(m.data("autoplay",!0),R=!0),m.find("iframe").each(function(){var c=a(this);if(punchgs.TweenLite.to(c,.1,{autoAlpha:1,zIndex:0,transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"}),W()){var g=c.attr("src");c.attr("src",""),c.attr("src",g)}if(d.nextslideatend=m.data("nextslideatend"),m.data("videoposter")!=b&&m.data("videoposter").length>2&&1!=m.data("autoplay")&&!f&&(0==m.find(".tp-thumb-image").length?m.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+m.data("videoposter")+'); background-size:cover"></div>'):punchgs.TweenLite.set(m.find(".tp-thumb-image"),{autoAlpha:1})),c.attr("src").toLowerCase().indexOf("youtube")>=0)if(c.hasClass("HasListener")){if(!e){var h=m.data("player");"on"!=m.data("forcerewind")||W()||h.seekTo(0),(!W()&&1==m.data("autoplay")||R)&&m.data("timerplay",setTimeout(function(){h.playVideo()},m.data("start")))}}else try{c.attr("id",s);var h,i=setInterval(function(){YT!=b&&typeof YT.Player!=b&&"undefined"!=typeof YT.Player&&(h=new YT.Player(s,{events:{onStateChange:E,onReady:function(c){var d=c.target.getVideoEmbedCode(),e=a("#"+d.split('id="')[1].split('"')[0]),f=e.closest(".tp-caption"),g=f.data("videorate");f.data("videostart");g!=b&&c.target.setPlaybackRate(parseFloat(g)),(!W()&&1==f.data("autoplay")||R)&&f.data("timerplay",setTimeout(function(){c.target.playVideo()},f.data("start"))),f.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(a(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),W()||h.playVideo()})}}})),c.addClass("HasListener"),m.data("player",h),clearInterval(i)},100)}catch(a){}else if(c.attr("src").toLowerCase().indexOf("vimeo")>=0)if(c.hasClass("HasListener")){if(!(e||W()||1!=m.data("autoplay")&&"on"!=m.data("forcerewind"))){var c=m.find("iframe"),q=c.attr("id"),r=$f(q);"on"==m.data("forcerewind")&&r.api("seekTo",0),m.data("timerplay",setTimeout(function(){1==m.data("autoplay")&&r.api("play")},m.data("start")))}}else{c.addClass("HasListener"),c.attr("id",s);for(var o,j=c.attr("src"),k={},l=j,n=/([^&=]+)=([^&]*)/g;o=n.exec(l);)k[decodeURIComponent(o[1])]=decodeURIComponent(o[2]);j=k.player_id!=b?j.replace(k.player_id,s):j+"&player_id="+s;try{j=j.replace("api=0","api=1")}catch(a){}j+="&api=1",c.attr("src",j);var h=m.find("iframe")[0],p=setInterval(function(){$f!=b&&typeof $f(s).api!=b&&"undefined"!=typeof $f(s).api&&($f(h).addEvent("ready",function(){G(s,R)}),clearInterval(p))},100)}}),(W()&&1==m.data("disablevideoonmobile")||i(8))&&m.find("video").remove(),m.find("video").length>0&&m.find("video").each(function(c){var e=this,f=a(this);f.parent().hasClass("html5vid")||f.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"></div>');var g=f.parent();F(e,"loadedmetadata",function(a){a.data("metaloaded",1)}(g)),clearInterval(g.data("interval")),g.data("interval",setInterval(function(){if(1==g.data("metaloaded")||NaN!=e.duration){if(clearInterval(g.data("interval")),!g.hasClass("HasListener")){g.addClass("HasListener"),"none"!=m.data("dottedoverlay")&&m.data("dottedoverlay")!=b&&1!=m.find(".tp-dottedoverlay").length&&g.append('<div class="tp-dottedoverlay '+m.data("dottedoverlay")+'"></div>'),f.attr("control")==b&&(0==g.find(".tp-video-play-button").length&&g.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><div class="tp-revstop"></div></div>'),g.find("video, .tp-poster, .tp-video-play-button").click(function(){g.hasClass("videoisplaying")?e.pause():e.play()})),(1==m.data("forcecover")||m.hasClass("fullscreenvideo"))&&(1==m.data("forcecover")&&(H(g,d.container),g.addClass("fullcoveredvideo"),m.addClass("fullcoveredvideo")),g.css({width:"100%",height:"100%"}));
11334var a=m.find(".tp-vid-play-pause")[0],c=m.find(".tp-vid-mute")[0],h=m.find(".tp-vid-full-screen")[0],i=m.find(".tp-seek-bar")[0],j=m.find(".tp-volume-bar")[0];a!=b&&(F(a,"click",function(){1==e.paused?e.play():e.pause()}),F(c,"click",function(){0==e.muted?(e.muted=!0,c.innerHTML="Unmute"):(e.muted=!1,c.innerHTML="Mute")}),F(h,"click",function(){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}),F(i,"change",function(){var a=e.duration*(i.value/100);e.currentTime=a}),F(e,"timeupdate",function(){var a=100/e.duration*e.currentTime;i.value=a}),F(i,"mousedown",function(){e.pause()}),F(i,"mouseup",function(){e.play()}),F(j,"change",function(){e.volume=j.value})),F(e,"play",function(){"mute"==m.data("volume")&&(e.muted=!0),g.addClass("videoisplaying"),"loopandnoslidestop"==m.data("videoloop")?(d.videoplaying=!1,d.container.trigger("starttimer"),d.container.trigger("revolution.slide.onvideostop")):(d.videoplaying=!0,d.container.trigger("stoptimer"),d.container.trigger("revolution.slide.onvideoplay"));var a=m.find(".tp-vid-play-pause")[0],c=m.find(".tp-vid-mute")[0];a!=b&&(a.innerHTML="Pause"),c!=b&&e.muted&&(c.innerHTML="Unmute")}),F(e,"pause",function(){g.removeClass("videoisplaying"),d.videoplaying=!1,d.container.trigger("starttimer"),d.container.trigger("revolution.slide.onvideostop");var a=m.find(".tp-vid-play-pause")[0];a!=b&&(a.innerHTML="Play")}),F(e,"ended",function(){g.removeClass("videoisplaying"),d.videoplaying=!1,d.container.trigger("starttimer"),d.container.trigger("revolution.slide.onvideostop"),1==d.nextslideatend&&d.container.revnext()})}var k=!1;1!=m.data("autoplayonlyfirsttime")&&"true"!=m.data("autoplayonlyfirsttime")||(k=!0);var l=16/9;if("4:3"==m.data("aspectratio")&&(l=4/3),g.data("mediaAspect",l),1==g.closest(".tp-caption").data("forcecover")&&(H(g,d.container),g.addClass("fullcoveredvideo")),f.css({display:"block"}),d.nextslideatend=m.data("nextslideatend"),1!=m.data("autoplay")&&1!=k||("loopandnoslidestop"==m.data("videoloop")?(d.videoplaying=!1,d.container.trigger("starttimer"),d.container.trigger("revolution.slide.onvideostop")):(d.videoplaying=!0,d.container.trigger("stoptimer"),d.container.trigger("revolution.slide.onvideoplay")),"on"!=m.data("forcerewind")||g.hasClass("videoisplaying")||e.currentTime>0&&(e.currentTime=0),"mute"==m.data("volume")&&(e.muted=!0),g.data("timerplay",setTimeout(function(){"on"!=m.data("forcerewind")||g.hasClass("videoisplaying")||e.currentTime>0&&(e.currentTime=0),"mute"==m.data("volume")&&(e.muted=!0),e.play()},10+m.data("start")))),g.data("ww")==b&&g.data("ww",f.attr("width")),g.data("hh")==b&&g.data("hh",f.attr("height")),!m.hasClass("fullscreenvideo")&&1==m.data("forcecover"))try{g.width(g.data("ww")*d.bw),g.height(g.data("hh")*d.bh)}catch(a){}clearInterval(g.data("interval"))}}),100)}),1==m.data("autoplay")&&(setTimeout(function(){"loopandnoslidestop"!=m.data("videoloop")&&(d.videoplaying=!0,d.container.trigger("stoptimer"))},200),"loopandnoslidestop"!=m.data("videoloop")&&(d.videoplaying=!0,d.container.trigger("stoptimer")),1!=m.data("autoplayonlyfirsttime")&&"true"!=m.data("autoplayonlyfirsttime")||(m.data("autoplay",!1),m.data("autoplayonlyfirsttime",!1)))}var U=0,V=0;if(m.find("img").length>0){var X=m.find("img");0==X.width()&&X.css({width:"auto"}),0==X.height()&&X.css({height:"auto"}),X.data("ww")==b&&X.width()>0&&X.data("ww",X.width()),X.data("hh")==b&&X.height()>0&&X.data("hh",X.height());var Y=X.data("ww"),Z=X.data("hh");Y==b&&(Y=0),Z==b&&(Z=0),X.width(Y*d.bw),X.height(Z*d.bh),U=X.width(),V=X.height()}else if(m.find("iframe").length>0||m.find("video").length>0){var $=!1,X=m.find("iframe");0==X.length&&(X=m.find("video"),$=!0),X.css({display:"block"}),m.data("ww")==b&&m.data("ww",X.width()),m.data("hh")==b&&m.data("hh",X.height());var Y=m.data("ww"),Z=m.data("hh"),_=m;_.data("fsize")==b&&_.data("fsize",parseInt(_.css("font-size"),0)||0),_.data("pt")==b&&_.data("pt",parseInt(_.css("paddingTop"),0)||0),_.data("pb")==b&&_.data("pb",parseInt(_.css("paddingBottom"),0)||0),_.data("pl")==b&&_.data("pl",parseInt(_.css("paddingLeft"),0)||0),_.data("pr")==b&&_.data("pr",parseInt(_.css("paddingRight"),0)||0),_.data("mt")==b&&_.data("mt",parseInt(_.css("marginTop"),
113340)||0),_.data("mb")==b&&_.data("mb",parseInt(_.css("marginBottom"),0)||0),_.data("ml")==b&&_.data("ml",parseInt(_.css("marginLeft"),0)||0),_.data("mr")==b&&_.data("mr",parseInt(_.css("marginRight"),0)||0),_.data("bt")==b&&_.data("bt",parseInt(_.css("borderTop"),0)||0),_.data("bb")==b&&_.data("bb",parseInt(_.css("borderBottom"),0)||0),_.data("bl")==b&&_.data("bl",parseInt(_.css("borderLeft"),0)||0),_.data("br")==b&&_.data("br",parseInt(_.css("borderRight"),0)||0),_.data("lh")==b&&_.data("lh",parseInt(_.css("lineHeight"),0)||0),"auto"==_.data("lh")&&_.data("lh",_.data("fsize")+4);var aa=d.width,ba=d.height;if(aa>d.startwidth&&(aa=d.startwidth),ba>d.startheight&&(ba=d.startheight),m.hasClass("fullscreenvideo")){k=0,l=0,m.data("x",0),m.data("y",0);var ca=d.height;"on"==d.autoHeight&&(ca=d.container.height()),m.css({width:d.width,height:ca})}else m.css({"font-size":_.data("fsize")*d.bw+"px","padding-top":_.data("pt")*d.bh+"px","padding-bottom":_.data("pb")*d.bh+"px","padding-left":_.data("pl")*d.bw+"px","padding-right":_.data("pr")*d.bw+"px","margin-top":_.data("mt")*d.bh+"px","margin-bottom":_.data("mb")*d.bh+"px","margin-left":_.data("ml")*d.bw+"px","margin-right":_.data("mr")*d.bw+"px","border-top":_.data("bt")*d.bh+"px","border-bottom":_.data("bb")*d.bh+"px","border-left":_.data("bl")*d.bw+"px","border-right":_.data("br")*d.bw+"px","line-height":_.data("lh")*d.bh+"px",height:Z*d.bh+"px"});0==$?(X.width(Y*d.bw),X.height(Z*d.bh)):1==m.data("forcecover")||m.hasClass("fullscreenvideo")||(X.width(Y*d.bw),X.height(Z*d.bh)),U=X.width(),V=X.height()}else{m.find(".tp-resizeme, .tp-resizeme *").each(function(){O(a(this),d)}),m.hasClass("tp-resizeme")&&m.find("*").each(function(){O(a(this),d)}),O(m,d),V=m.outerHeight(!0),U=m.outerWidth(!0);var da=m.outerHeight(),ea=m.css("backgroundColor");m.find(".frontcorner").css({borderWidth:da+"px",left:0-da+"px",borderRight:"0px solid transparent",borderTopColor:ea}),m.find(".frontcornertop").css({borderWidth:da+"px",left:0-da+"px",borderRight:"0px solid transparent",borderBottomColor:ea}),m.find(".backcorner").css({borderWidth:da+"px",right:0-da+"px",borderLeft:"0px solid transparent",borderBottomColor:ea}),m.find(".backcornertop").css({borderWidth:da+"px",right:0-da+"px",borderLeft:"0px solid transparent",borderTopColor:ea})}"on"==d.fullScreenAlignForce&&(k=0,l=0),m.data("voffset")==b&&m.data("voffset",0),m.data("hoffset")==b&&m.data("hoffset",0);var fa=m.data("voffset")*p,ga=m.data("hoffset")*p,ha=d.startwidth*p,ia=d.startheight*p;"on"==d.fullScreenAlignForce&&(ha=d.container.width(),ia=d.container.height()),"center"!=m.data("x")&&"center"!=m.data("xcenter")||(m.data("xcenter","center"),m.data("x",ha/2-m.outerWidth(!0)/2+ga)),"left"!=m.data("x")&&"left"!=m.data("xleft")||(m.data("xleft","left"),m.data("x",0/p+ga)),"right"!=m.data("x")&&"right"!=m.data("xright")||(m.data("xright","right"),m.data("x",(ha-m.outerWidth(!0)+ga)/p)),"center"!=m.data("y")&&"center"!=m.data("ycenter")||(m.data("ycenter","center"),m.data("y",ia/2-m.outerHeight(!0)/2+fa)),"top"!=m.data("y")&&"top"!=m.data("ytop")||(m.data("ytop","top"),m.data("y",0/d.bh+fa)),"bottom"!=m.data("y")&&"bottom"!=m.data("ybottom")||(m.data("ybottom","bottom"),m.data("y",(ia-m.outerHeight(!0)+fa)/p)),m.data("start")==b&&m.data("start",1e3);var ja=m.data("easing");ja==b&&(ja="punchgs.Power1.easeOut");var ka=m.data("start")/1e3,la=m.data("speed")/1e3;if("center"==m.data("x")||"center"==m.data("xcenter"))var ma=m.data("x")+k;else var ma=p*m.data("x")+k;if("center"==m.data("y")||"center"==m.data("ycenter"))var na=m.data("y")+l;else var na=d.bh*m.data("y")+l;if(punchgs.TweenLite.set(m,{top:na,left:ma,overwrite:"auto"}),0==j&&(f=!0),m.data("timeline")==b||f||(2!=j&&m.data("timeline").gotoAndPlay(0),f=!0),!f){m.data("timeline")!=b;var oa=new punchgs.TimelineLite({smoothChildTiming:!0,onStart:h});oa.pause(),"on"==d.fullScreenAlignForce;var pa=m;m.data("mySplitText")!=b&&m.data("mySplitText").revert(),"chars"!=m.data("splitin")&&"words"!=m.data("splitin")&&"lines"!=m.data("splitin")&&"chars"!=m.data("splitout")&&"words"!=m.data("splitout")&&"lines"!=m.data("splitout")||(m.find("a").length>0?m.data("mySplitText",new punchgs.SplitText(m.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):m.find(".tp-layer-inner-rotation").length>0?m.data("mySplitText",new punchgs.SplitText(m.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})):m.data("mySplitText",new punchgs.SplitText(m,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})),m.addClass("splitted")),"chars"==m.data("splitin")&&(pa=m.data("mySplitText").chars),"words"==m.data("splitin")&&(pa=m.data("mySplitText").words),"lines"==m.data("splitin")&&(pa=m.data("mySplitText").lines);var qa=I(),ra=I();m.data("repeat")!=b&&(repeatV=m.data("repeat")),m.data("yoyo")!=b&&(yoyoV=m.data("yoyo")),m.data("repeatdelay")!=b&&(repeatdelayV=m.data("repeatdelay"));var sa=m.attr("class");sa.match("customin")?qa=J(qa,m.data("customin")):sa.match("randomrotate")?(qa.scale=3*Math.random()+1,qa.rotation=Math.round(200*Math.random()-100),qa.x=Math.round(200*Math.random()-100),qa.y=Math.round(200*Math.random()-100)):sa.match("lfr")||sa.match("skewfromright")?qa.x=15+d.width:sa.match("lfl")||sa.match("skewfromleft")?qa.x=-1
113345-U:sa.match("sfl")||sa.match("skewfromleftshort")?qa.x=-50:sa.match("sfr")||sa.match("skewfromrightshort")?qa.x=50:sa.match("lft")?qa.y=-25-V:sa.match("lfb")?qa.y=25+d.height:sa.match("sft")?qa.y=-50:sa.match("sfb")&&(qa.y=50),sa.match("skewfromright")||m.hasClass("skewfromrightshort")?qa.skewX=-85:(sa.match("skewfromleft")||m.hasClass("skewfromleftshort"))&&(qa.skewX=85),(sa.match("fade")||sa.match("sft")||sa.match("sfl")||sa.match("sfb")||sa.match("skewfromleftshort")||sa.match("sfr")||sa.match("skewfromrightshort"))&&(qa.opacity=0),"safari"==M().toLowerCase();var ta=m.data("elementdelay")==b?0:m.data("elementdelay");ra.ease=qa.ease=m.data("easing")==b?punchgs.Power1.easeInOut:m.data("easing"),qa.data=new Object,qa.data.oldx=qa.x,qa.data.oldy=qa.y,ra.data=new Object,ra.data.oldx=ra.x,ra.data.oldy=ra.y,qa.x=qa.x*p,qa.y=qa.y*p;var ua=new punchgs.TimelineLite;if(2!=j)if(sa.match("customin"))pa!=m&&oa.add(punchgs.TweenLite.set(m,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"})),qa.visibility="hidden",ra.visibility="visible",ra.overwrite="all",ra.opacity=1,ra.onComplete=g(),ra.delay=ka,ra.force3D="auto",oa.add(ua.staggerFromTo(pa,la,qa,ra,ta),"frame0");else if(qa.visibility="visible",qa.transformPerspective=600,pa!=m&&oa.add(punchgs.TweenLite.set(m,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"})),ra.visibility="visible",ra.delay=ka,ra.onComplete=g(),ra.opacity=1,ra.force3D="auto",sa.match("randomrotate")&&pa!=m)for(var c=0;c<pa.length;c++){var va=new Object,wa=new Object;a.extend(va,qa),a.extend(wa,ra),qa.scale=3*Math.random()+1,qa.rotation=Math.round(200*Math.random()-100),qa.x=Math.round(200*Math.random()-100),qa.y=Math.round(200*Math.random()-100),0!=c&&(wa.delay=ka+c*ta),oa.append(punchgs.TweenLite.fromTo(pa[c],la,va,wa),"frame0")}else oa.add(ua.staggerFromTo(pa,la,qa,ra,ta),"frame0");m.data("timeline",oa);new Array;if(m.data("frames")!=b){var ya=m.data("frames");ya=ya.replace(/\s+/g,""),ya=ya.replace("{","");var za=ya.split("}");a.each(za,function(a,b){if(b.length>0){var c=K(b);S(m,d,c,"frame"+(a+10),p)}})}oa=m.data("timeline"),m.data("end")==b||j!=-1&&2!=j?j==-1||2==j?T(m,d,999999,qa,"frame99",p):T(m,d,200,qa,"frame99",p):T(m,d,m.data("end")/1e3,qa,"frame99",p),oa=m.data("timeline"),m.data("timeline",oa),P(m,p),oa.resume()}}if(f&&(Q(m),P(m,p),m.data("timeline")!=b)){var Aa=m.data("timeline").getTweensOf();a.each(Aa,function(a,c){if(c.vars.data!=b){var d=c.vars.data.oldx*p,e=c.vars.data.oldy*p;if(1!=c.progress()&&0!=c.progress())try{c.vars.x=d,c.vary.y=e}catch(a){}else 1==c.progress()&&punchgs.TweenLite.set(c.target,{x:d,y:e})}})}});var o=a("body").find("#"+d.container.attr("id")).find(".tp-bannertimer");o.data("opt",d),f!=b&&setTimeout(function(){f.resume()},30)},M=function(){var c,a=navigator.appName,b=navigator.userAgent,d=b.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return d&&null!=(c=b.match(/version\/([\.\d]+)/i))&&(d[2]=c[1]),d=d?[d[1],d[2]]:[a,navigator.appVersion,"-?"],d[0]},O=function(a,c){a.data("fsize")==b&&a.data("fsize",parseInt(a.css("font-size"),0)||0),a.data("pt")==b&&a.data("pt",parseInt(a.css("paddingTop"),0)||0),a.data("pb")==b&&a.data("pb",parseInt(a.css("paddingBottom"),0)||0),a.data("pl")==b&&a.data("pl",parseInt(a.css("paddingLeft"),0)||0),a.data("pr")==b&&a.data("pr",parseInt(a.css("paddingRight"),0)||0),a.data("mt")==b&&a.data("mt",parseInt(a.css("marginTop"),0)||0),a.data("mb")==b&&a.data("mb",parseInt(a.css("marginBottom"),0)||0),a.data("ml")==b&&a.data("ml",parseInt(a.css("marginLeft"),0)||0),a.data("mr")==b&&a.data("mr",parseInt(a.css("marginRight"),0)||0),a.data("bt")==b&&a.data("bt",parseInt(a.css("borderTopWidth"),0)||0),a.data("bb")==b&&a.data("bb",parseInt(a.css("borderBottomWidth"),0)||0),a.data("bl")==b&&a.data("bl",parseInt(a.css("borderLeftWidth"),0)||0),a.data("br")==b&&a.data("br",parseInt(a.css("borderRightWidth"),0)||0),a.data("ls")==b&&a.data("ls",parseInt(a.css("letterSpacing"),0)||0),a.data("lh")==b&&a.data("lh",parseInt(a.css("lineHeight"),0)||"auto"),a.data("minwidth")==b&&a.data("minwidth",parseInt(a.css("minWidth"),0)||0),a.data("minheight")==b&&a.data("minheight",parseInt(a.css("minHeight"),0)||0),a.data("maxwidth")==b&&a.data("maxwidth",parseInt(a.css("maxWidth"),0)||"none"),a.data("maxheight")==b&&a.data("maxheight",parseInt(a.css("maxHeight"),0)||"none"),a.data("wii")==b&&a.data("wii",parseInt(a.css("width"),0)||0),a.data("hii")==b&&a.data("hii",parseInt(a.css("height"),0)||0),a.data("wan")==b&&a.data("wan",a.css("-webkit-transition")),a.data("moan")==b&&a.data("moan",a.css("-moz-animation-transition")),a.data("man")==b&&a.data("man",a.css("-ms-animation-transition")),a.data("ani")==b&&a.data("ani",a.css("transition")),"auto"==a.data("lh")&&a.data("lh",a.data("fsize")+4),a.hasClass("tp-splitted")||(a.css("-webkit-transition","none"),a.css("-moz-transition","none"),a.css("-ms-transition","none"),a.css("transition","none"),punchgs.TweenLite.set(a,{fontSize:Math.round(a.data("fsize")*c.bw)+"px",letterSpacing:Math.floor(a.data("ls")*c.bw)+"px",paddingTop:Math.round(a.data("pt")*c.bh)+"px",paddingBottom:Math.round(a.data("pb")*c.bh)+"px",paddingLeft:Math.round(a.data("pl")*c.bw)+"px",paddingRight:Math.round(a.data("pr")*c.bw)+"px",marginTop:a.data("mt")*c.bh+"px",marginBottom:a.data("mb")*c.bh+"px",marginLeft:a.data("ml")*c.bw+"px",marginRight:a.data("mr")*c.bw+"px",borderTopWidth:Math.round(a.data("bt")*c.bh)+"px",borderBottomWidth:Math.round(a.data("bb")*c.bh)+"px",borderLeftWidth:Math.round(a.data("bl")*c.bw)+"px",borderRightWidth:Math.round(a.data("br")*c.bw)+"px",lineHeight:Math.round(a.data("lh")*c.bh)+"px",minWidth:a.data("minwidth")*c.bw+"px",minHeight:a.data("minheight")*c.bh+"px",overwrite:"auto"}),setTimeout(function(){a.css("-webkit-transition",a.data("wan")),a.css("-moz-transition",a.data("moan")),a.css("-ms-transition",a.data("man")),a.css("transition",a.data("ani"))},30),"none"!=a.data("maxheight")&&a.css({maxHeight:a.data("maxheight")*c.bh+"px"}),"none"!=a.data("maxwidth")&&a.css({maxWidth:a.data("maxwidth")*c.bw+"px"}))},P=function(c,d){c.find(".rs-pendulum").each(function(){var c=a(this);if(c.data("timeline")==b){c.data("timeline",new punchgs.TimelineLite);var e=c.data("startdeg")==b?-20:c.data("startdeg"),f=c.data("enddeg")==b?20:c.data("enddeg"),g=c.data("speed")==b?2:c.data("speed"),h=c.data("origin")==b?"50% 50%":c.data("origin"),i=c.data("easing")==b?punchgs.Power2.easeInOut:c.data("ease");e*=d,f*=d,c.data("timeline").append(new punchgs.TweenLite.fromTo(c,g,{force3D:"auto",rotation:e,transformOrigin:h},{rotation:f,ease:i})),c.data("timeline").append(new punchgs.TweenLite.fromTo(c,g,{force3D:"auto",rotation:f,transformOrigin:h},{rotation:e,ease:i,onComplete:function(){c.data("timeline").restart()}}))}}),c.find(".rs-rotate").each(function(){var c=a(this);if(c.data("timeline")==b){c.data("timeline",new punchgs.TimelineLite);var e=c.data("startdeg")==b?0:c.data("startdeg"),f=c.data("enddeg")==b?360:c.data("enddeg");speed=c.data("speed")==b?2:c.data("speed"),origin=c.data("origin")==b?"50% 50%":c.data("origin"),easing=c.data("easing")==b?punchgs.Power2.easeInOut:c.data("easing"),e*=d,f*=d,c.data("timeline").append(new punchgs.TweenLite.fromTo(c,speed,{force3D:"auto",rotation:e,transformOrigin:origin},{rotation:f,ease:easing,onComplete:function(){c.data("timeline").restart()}}))}}),c.find(".rs-slideloop").each(function(){var c=a(this);if(c.data("timeline")==b){c.data("timeline",new punchgs.TimelineLite);var e=c.data("xs")==b?0:c.data("xs"),f=c.data("ys")==b?0:c.data("ys"),g=c.data("xe")==b?0:c.data("xe"),h=c.data("ye")==b?0:c.data("ye"),i=c.data("speed")==b?2:c.data("speed"),j=c.data("easing")==b?punchgs.Power2.easeInOut:c.data("easing");e*=d,f*=d,g*=d,h*=d,c.data("timeline").append(new punchgs.TweenLite.fromTo(c,i,{force3D:"auto",x:e,y:f},{x:g,y:h,ease:j})),c.data("timeline").append(new punchgs.TweenLite.fromTo(c,i,{force3D:"auto",x:g,y:h},{x:e,y:f,onComplete:function(){c.data("timeline").restart()}}))}}),c.find(".rs-pulse").each(function(){var c=a(this);if(c.data("timeline")==b){c.data("timeline",new punchgs.TimelineLite);var d=c.data("zoomstart")==b?0:c.data("zoomstart"),e=c.data("zoomend")==b?0:c.data("zoomend"),f=c.data("speed")==b?2:c.data("speed"),g=c.data("easing")==b?punchgs.Power2.easeInOut:c.data("easing");c.data("timeline").append(new punchgs.TweenLite.fromTo(c,f,{force3D:"auto",scale:d},{scale:e,ease:g})),c.data("timeline").append(new punchgs.TweenLite.fromTo(c,f,{force3D:"auto",scale:e},{scale:d,onComplete:function(){c.data("timeline").restart()}}))}}),c.find(".rs-wave").each(function(){var c=a(this);if(c.data("timeline")==b){c.data("timeline",new punchgs.TimelineLite);var e=c.data("angle")==b?10:c.data("angle"),f=c.data("radius")==b?10:c.data("radius"),g=c.data("speed")==b?-20:c.data("speed");c.data("origin")==b?-20:c.data("origin");e*=d,f*=d;var i={a:0,ang:e,element:c,unit:f};c.data("timeline").append(new punchgs.TweenLite.fromTo(i,g,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var a=i.a*(Math.PI/180);punchgs.TweenLite.to(i.element,.1,{force3D:"auto",x:Math.cos(a)*i.unit,y:i.unit*(1-Math.sin(a))})},onComplete:function(){c.data("timeline").restart()}}))}})},Q=function(c){c.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var c=a(this);c.data("timeline")!=b&&(c.data("timeline").pause(),c.data("timeline",null))})},R=function(c,d){var e=0,f=c.find(".tp-caption"),g=d.container.find(".tp-static-layers").find(".tp-caption");return a.each(g,function(a,b){f.push(b)}),f.each(function(c){var f=-1,g=a(this);if(g.hasClass("tp-static-layer")&&(g.data("startslide")!=-1&&"-1"!=g.data("startslide")||g.data("startslide",0),g.data("endslide")!=-1&&"-1"!=g.data("endslide")||g.data("endslide",d.slideamount),g.hasClass("tp-is-shown")?g.data("startslide")>d.next||g.data("endslide")<d.next?(f=2,g.removeClass("tp-is-shown")):f=0:f=2),0!=f){if(Q(g),g.find("iframe").length>0){punchgs.TweenLite.to(g.find("iframe"),.2,{autoAlpha:0}),W()&&g.find("iframe").remove();try{var h=g.find("iframe"),i=h.attr("id"),j=$f(i);j.api("pause"),clearTimeout(g.data("timerplay"))}catch(a){}try{var k=g.data("player");k.stopVideo(),clearTimeout(g.data("timerplay"))}catch(a){}}if(g.find("video").length>0)try{g.find("video").each(function(b){var c=a(this).parent();c.attr("id");clearTimeout(c.data("timerplay"));var e=this;e.pause()})}catch(a){}try{var l=g.data("timeline"),m=l.getLabelTime("frame99"),n=l.time();if(m>n){var o=l.getTweensOf(g);if(a.each(o,function(a,b){0!=a&&b.pause()}),0!=g.css("opacity")){var p=g.data("endspeed")==b?g.data("speed"):g.data("endspeed");p>e&&(e=p),l.play("frame99")}else l.progress(1,!1)}}catch(a){}}}),e},S=function(a,c,d,e,f){var g=a.data("timeline"),h=new punchgs.TimelineLite,i=a;"chars"==d.typ?i=a.data("mySplitText").chars:"words"==d.typ?i=a.data("mySplitText").words:"lines"==d.typ&&(i=a.data("mySplitText").lines),d.animation.ease=d.ease,d.animation.rotationZ!=b&&(d.animation.rotation=d.animation.rotationZ),d.animation.data=new Object,d.animation.data.oldx=d.animation.x,d.animation.data.oldy=d.animation.y,d.animation.x=d.animation.x*f,d.animation.y=d.animation.y*f,g.add(h.staggerTo(i,d.speed,d.animation,d.elementdelay),d.start),g.addLabel(e,d.start),a.data("timeline",g)},T=function(a,c,d,e,f,g){var h=a.data("timeline"),i=new punchgs.TimelineLite,j=I(),k=a.data("endspeed")==b?a.data("speed"):a.data("endspeed"),l=a.attr("class");if(j.ease=a.data("endeasing")==b?punchgs.Power1.easeInOut:a.data("endeasing"),k/=1e3,l.match("ltr")||l.match("ltl")||l.match("str")||l.match("stl")||l.match("ltt")||l.match("ltb")||l.match("stt")||l.match("stb")||l.match("skewtoright")||l.match("skewtorightshort")||l.match("skewtoleft")||l.match("skewtoleftshort")||l.match("fadeout")||l.match("randomrotateout")){l.match("skewtoright")||l.match("skewtorightshort")?j.skewX=35:(l.match("skewtoleft")||l.match("skewtoleftshort"))&&(j.skewX=-35),l.match("ltr")||l.match("skewtoright")?j.x=c.width+60:l.match("ltl")||l.match("skewtoleft")?j.x=0-(c.width+60):l.match("ltt")?j.y=0-(c.height+60):l.match("ltb")?j.y=c.height+60:l.match("str")||l.match("skewtorightshort")?(j.x=50,j.opacity=0):l.match("stl")||l.match("skewtoleftshort")?(j.x=-50,j.opacity=0):l.match("stt")?(j.y=-50,j.opacity=0):l.match("stb")?(j.y=50,j.opacity=0):l.match("randomrotateout")?(j.x=Math.random()*c.width,j.y=Math.random()*c.height,j.scale=2*Math.random()+.3,j.rotation=360*Math.random()-180,j.opacity=0):l.match("fadeout")&&(j.opacity=0),l.match("skewtorightshort")?j.x=270:l.match("skewtoleftshort")&&(j.x=-270),j.data=new Object,j.data.oldx=j.x,j.data.oldy=j.y,j.x=j.x*g,j.y=j.y*g,j.overwrite="auto";var m=a,m=a;"chars"==a.data("splitout")?m=a.data("mySplitText").chars:"words"==a.data("splitout")?m=a.data("mySplitText").words:"lines"==a.data("splitout")&&(m=a.data("mySplitText").lines);var n=a.data("endelementdelay")==b?0:a.data("endelementdelay");h.add(i.staggerTo(m,k,j,n),d)}else if(a.hasClass("customout")){j=J(j,a.data("customout"));var m=a;"chars"==a.data("splitout")?m=a.data("mySplitText").chars:"words"==a.data("splitout")?m=a.data("mySplitText").words:"lines"==a.data("splitout")&&(m=a.data("mySplitText").lines);var n=a.data("endelementdelay")==b?0:a.data("endelementdelay");j.onStart=function(){punchgs.TweenLite.set(a,{transformPerspective:j.transformPerspective,transformOrigin:j.transformOrigin,overwrite:"auto"})},j.data=new Object,j.data.oldx=j.x,j.data.oldy=j.y,j.x=j.x*g,j.y=j.y*g,h.add(i.staggerTo(m,k,j,n),d)}else e.delay=0,h.add(punchgs.TweenLite.to(a,k,e),d);h.addLabel(f,d),a.data("timeline",h)},U=function(b,c){b.children().each(function(){try{a(this).die("click")}catch(a){}try{a(this).die("mouseenter")}catch(a){}try{a(this).die("mouseleave")}catch(a){}try{ 11335a(this).unbind("hover")}catch(a){}});try{b.die("click","mouseenter","mouseleave")}catch(a){}clearInterval(c.cdint),b=null},V=function(c,d){if(d.cd=0,d.loop=0,d.stopAfterLoops!=b&&d.stopAfterLoops>-1?d.looptogo=d.stopAfterLoops:d.looptogo=9999999,d.stopAtSlide!=b&&d.stopAtSlide>-1?d.lastslidetoshow=d.stopAtSlide:d.lastslidetoshow=999,d.stopLoop="off",0==d.looptogo&&(d.stopLoop="on"),d.slideamount>1&&(0!=d.stopAfterLoops||1!=d.stopAtSlide)){var e=c.find(".tp-bannertimer");c.on("stoptimer",function(){var b=a(this).find(".tp-bannertimer");b.data("tween").pause(),"on"==d.hideTimerBar&&b.css({visibility:"hidden"})}),c.on("starttimer",function(){1!=d.conthover&&1!=d.videoplaying&&d.width>d.hideSliderAtLimit&&1!=d.bannertimeronpause&&1!=d.overnav&&("on"==d.stopLoop&&d.next==d.lastslidetoshow-1||1==d.noloopanymore?d.noloopanymore=1:(e.css({visibility:"visible"}),e.data("tween").resume())),"on"==d.hideTimerBar&&e.css({visibility:"hidden"})}),c.on("restarttimer",function(){var b=a(this).find(".tp-bannertimer");"on"==d.stopLoop&&d.next==d.lastslidetoshow-1||1==d.noloopanymore?d.noloopanymore=1:(b.css({visibility:"visible"}),b.data("tween").kill(),b.data("tween",punchgs.TweenLite.fromTo(b,d.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:f,delay:1}))),"on"==d.hideTimerBar&&b.css({visibility:"hidden"})}),c.on("nulltimer",function(){e.data("tween").pause(0),"on"==d.hideTimerBar&&e.css({visibility:"hidden"})});var f=function(){0==a("body").find(c).length&&(U(c,d),clearInterval(d.cdint)),c.trigger("revolution.slide.slideatend"),1==c.data("c
11335onthover-changed")&&(d.conthover=c.data("conthover"),c.data("conthover-changed",0)),d.act=d.next,d.next=d.next+1,d.next>c.find(">ul >li").length-1&&(d.next=0,d.looptogo=d.looptogo-1,d.looptogo<=0&&(d.stopLoop="on")),"on"==d.stopLoop&&d.next==d.lastslidetoshow-1?(c.find(".tp-bannertimer").css({visibility:"hidden"}),c.trigger("revolution.slide.onstop"),d.noloopanymore=1):e.data("tween").restart(),z(c,d)};e.data("tween",punchgs.TweenLite.fromTo(e,d.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:f,delay:1})),e.data("opt",d),c.hover(function(){if("on"==d.onHoverStop&&!W()){c.trigger("stoptimer"),c.trigger("revolution.slide.onpause");var e=c.find(">ul >li:eq("+d.next+") .slotholder");e.find(".defaultimg").each(function(){var c=a(this);c.data("kenburn")!=b&&c.data("kenburn").pause()})}},function(){if(1!=c.data("conthover")){c.trigger("revolution.slide.onresume"),c.trigger("starttimer");var e=c.find(">ul >li:eq("+d.next+") .slotholder");e.find(".defaultimg").each(function(){var c=a(this);c.data("kenburn")!=b&&c.data("kenburn").play()})}})}},W=function(){var a=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],b=!1;
11335for(var c in a)navigator.userAgent.split(a[c]).length>1&&(b=!0);return b},X=function(a,b,c){var d=b.data("owidth"),e=b.data("oheight");if(d/e>c.width/c.height){var f=c.container.width()/d,g=e*f,h=g/c.container.height()*a;return a*=100/h,h=100,a=a,a+"% "+h+"% 1"}var f=c.container.width()/d,g=e*f,h=g/c.container.height()*a;return a+"% "+h+"%"},Y=function(c,d,e,f){try{c.find(">ul:first-child >li:eq("+d.act+")")}catch(a){c.find(">ul:first-child >li:eq(1)")}d.lastslide=d.act;var h=c.find(">ul:first-child >li:eq("+d.next+")"),j=h.find(".slotholder"),k=j.data("bgposition"),l=j.data("bgpositionend"),m=j.data("zoomstart")/100,n=j.data("zoomend")/100,o=j.data("rotationstart"),p=j.data("rotationend"),q=j.data("bgfit"),r=j.data("bgfitend"),s=j.data("easeme"),t=j.data("duration")/1e3,u=100;q==b&&(q=100),r==b&&(r=100);var v=q,w=r;q=X(q,j,d),r=X(r,j,d),u=X(100,j,d),m==b&&(m=1),n==b&&(n=1),o==b&&(o=0),p==b&&(p=0),m<1&&(m=1),n<1&&(n=1);var x=new Object;x.w=parseInt(u.split(" ")[0],0),x.h=parseInt(u.split(" ")[1],0);var y=!1;"1"==u.split(" ")[2]&&(y=!0),j.find(".defaultimg").each(function(){var b=a(this);0==j.find(".kenburnimg").length?j.append('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="'+b.attr("src")+'" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:'+x.w+"%;height:"+x.h+'%;"></div>'):j.find(".kenburnimg img").css({width:x.w+"%",height:x.h+"%"});var c=j.find(".kenburnimg img"),e=Z(d,k,q,c,y),g=Z(d,l,r,c,y);if(y&&(e.w=v/100,g.w=w/100),f){punchgs.TweenLite.set(c,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:e.w,x:e.x,y:e.y});var h=e.w,m=h*c.width()-d.width,n=h*c.height()-d.height,o=Math.abs(e.x/m*100),u=Math.abs(e.y/n*100);0==n&&(u=0),0==m&&(o=0),b.data("bgposition",o+"% "+u+"%"),i(8)||b.data("currotate",$(c)),i(8)||b.data("curscale",x.w*h+"% "+(x.h*h+"%")),j.find(".kenburnimg").remove()}else b.data("kenburn",punchgs.TweenLite.fromTo(c,t,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:e.w,x:e.x,y:e.y},{autoAlpha:1,rotationZ:p,ease:s,x:g.x,y:g.y,scale:g.w,onUpdate:function(){var a=c[0]._gsTransform.scaleX,e=a*c.width()-d.width,f=a*c.height()-d.height,g=Math.abs(c[0]._gsTransform.x/e*100),h=Math.abs(c[0]._gsTransform.y/f*100);0==f&&(h=0),0==e&&(g=0),b.data("bgposition",g+"% "+h+"%"),i(8)||b.data("currotate",$(c)),i(8)||b.data("curscale",x.w*a+"% "+(x.h*a+"%"))}}))})},Z=function(a,b,c,d,e){var f=new Object;switch(e?f.w=parseInt(c.split(" ")[1],0)/100:f.w=parseInt(c.split(" ")[0],0)/100,b){case"left top":case"top left":f.x=0,f.y=0;break;case"center top":case"top center":f.x=((0-d.width())*f.w+parseInt(a.width,0))/2,f.y=0;break;case"top right":case"right top":f.x=(0-d.width())*f.w+parseInt(a.width,0),f.y=0;break;case"center left":case"left center":f.x=0,f.y=((0-d.height())*f.w+parseInt(a.height,0))/2;break;case"center center":f.x=((0-d.width())*f.w+parseInt(a.width,0))/2,f.y=((0-d.height())*f.w+parseInt(a.height,0))/2;break;case"center right":case"right center":f.x=(0-d.width())*f.w+parseInt(a.width,0),f.y=((0-d.height())*f.w+parseInt(a.height,0))/2;break;case"bottom left":case"left bottom":f.x=0,f.y=(0-d.height())*f.w+parseInt(a.height,0);break;
11335case"bottom center":case"center bottom":f.x=((0-d.width())*f.w+parseInt(a.width,0))/2,f.y=(0-d.height())*f.w+parseInt(a.height,0);break;case"bottom right":case"right bottom":f.x=(0-d.width())*f.w+parseInt(a.width,0),f.y=(0-d.height())*f.w+parseInt(a.height,0)}return f},$=function(a){var b=a.css("-webkit-transform")||a.css("-moz-transform")||a.css("-ms-transform")||a.css("-o-transform")||a.css("transform");if("none"!==b)var c=b.split("(")[1].split(")")[0].split(","),d=c[0],e=c[1],f=Math.round(Math.atan2(e,d)*(180/Math.PI));else var f=0;return f<0?f+=360:f},_=function(c,d){try{var e=c.find(">ul:first-child >li:eq("+d.act+")")}catch(a){var e=c.find(">ul:first-child >li:eq(1)")}d.lastslide=d.act;var f=c.find(">ul:first-child >li:eq("+d.next+")");e.find(".slotholder"),f.find(".slotholder");c.find(".defaultimg").each(function(){var c=a(this);punchgs.TweenLite.killTweensOf(c,!1),punchgs.TweenLite.set(c,{scale:1,rotationZ:0}),punchgs.TweenLite.killTweensOf(c.data("kenburn img"),!1),c.data("kenburn")!=b&&c.data("kenburn").pause(),c.data("currotate")!=b&&c.data("bgposition")!=b&&c.data("curscale")!=b&&punchgs.TweenLite.set(c,{rotation:c.data("currotate"),backgroundPosition:c.data("bgposition"),backgroundSize:c.data("curscale")}),c!=b&&c.data("kenburn img")!=b&&c.data("kenburn img").length>0&&punchgs.TweenLite.set(c.data("kenburn img"),{autoAlpha:0})})},aa=function(b,c){return(!W()||"on"!=c.parallaxDisableOnMobile)&&(b.find(">ul:first-child >li").each(function(){for(var b=a(this),d=1;d<=10;d++)b.find(".rs-parallaxlevel-"+d).each(function(){var b=a(this);b.wrap('<div style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+b.css("zIndex")+'" class="tp-parallax-container" data-parallaxlevel="'+c.parallaxLevels[d-1]+'"></div>')})}),"mouse"!=c.parallax&&"scroll+mouse"!=c.parallax&&"mouse+scroll"!=c.parallax||(b.mouseenter(function(a){var c=b.find(".current-sr-slide-visible"),d=b.offset().top,e=b.offset().left,f=a.pageX-e,g=a.pageY-d;c.data("enterx",f),c.data("entery",g)}),b.on("mousemove.hoverdir, mouseleave.hoverdir",function(d){var e=b.find(".current-sr-slide-visible");switch(d.type){case"mousemove":var f=b.offset().top,g=b.offset().left,h=e.data("enterx"),i=e.data("entery"),j=h-(d.pageX-g),k=i-(d.pageY-f);e.find(".tp-parallax-container").each(function(){var b=a(this),d=parseInt(b.data("parallaxlevel"),0)/100,e=j*d,f=k*d;"scroll+mouse"==c.parallax||"mouse+scroll"==c.parallax?punchgs.TweenLite.to(b,.4,{force3D:"auto",x:e,ease:punchgs.Power3.easeOut,overwrite:"all"}):punchgs.TweenLite.to(b,.4,{force3D:"auto",x:e,y:f,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":e.find(".tp-parallax-container").each(function(){var b=a(this);"scroll+mouse"==c.parallax||"mouse+scroll"==c.parallax?punchgs.TweenLite.to(b,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut}):punchgs.TweenLite.to(b,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})})}}),W()&&(window.ondeviceorientation=function(c){var d=Math.round(c.beta||0),e=Math.round(c.gamma||0),f=b.find(".current-sr-slide-visible");if(a(window).width()>a(window).height()){var g=e;e=d,d=g}var h=360/b.width()*e,i=180/b.height()*d;f.find(".tp-parallax-container").each(function(){var b=a(this),c=parseInt(b.data("parallaxlevel"),0)/100,d=h*c,e=i*c;punchgs.TweenLite.to(b,.2,{force3D:"auto",x:d,y:e,ease:punchgs.Power3.easeOut})})})),void("scroll"!=c.parallax&&"scroll+mouse"!=c.parallax&&"mouse+scroll"!=c.parallax||a(window).on("scroll",function(a){ba(b,c)})))},ba=function(b,c){if(W()&&"on"==c.parallaxDisableOnMobile)return!1;var d=b.offset().top,e=a(window).scrollTop(),f=d+b.height()/2,g=d+b.height()/2-e,h=a(window).height()/2,i=h-g;f<h&&(i-=h-f);b.find(".current-sr-slide-visible");if(b.find(".tp-parallax-container").each(function(b){var c=a(this),d=parseInt(c.data("parallaxlevel"),0)/100,e=i*d;c.data("parallaxoffset",e),punchgs.TweenLite.to(c,.2,{force3D:"auto",y:e,ease:punchgs.Power3.easeOut})}),"on"!=c.parallaxBgFreeze){var k=c.parallaxLevels[0]/100,l=i*k;punchgs.TweenLite.to(b,.2,{force3D:"auto",y:l,ease:punchgs.Power3.easeOut})}},ca=function(c,d){var e=c.parent();"thumb"!=d.navigationType&&"both"!=d.navsecond||e.append('<div class="tp-bullets tp-thumbs '+d.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>');var f=e.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),g=f.parent();
11335g.width(d.thumbWidth*d.thumbAmount),g.height(d.thumbHeight),g.parent().width(d.thumbWidth*d.thumbAmount),g.parent().height(d.thumbHeight),c.find(">ul:first >li").each(function(a){var e=c.find(">ul:first >li:eq("+a+")"),g=e.find(".defaultimg").css("backgroundColor");if(e.data("thumb")!=b)var h=e.data("thumb");else var h=e.find("img:first").attr("src");f.append('<div class="bullet thumb" style="background-color:'+g+";position:relative;width:"+d.thumbWidth+"px;height:"+d.thumbHeight+"px;background-image:url("+h+') !important;background-size:cover;background-position:center center;"></div>');f.find(".bullet:first")});var h=10;f.find(".bullet").each(function(b){var e=a(this);b==d.slideamount-1&&e.addClass("last"),0==b&&e.addClass("first"),e.width(d.thumbWidth),e.height(d.thumbHeight),h<e.outerWidth(!0)&&(h=e.outerWidth(!0)),e.click(function(){0==d.transition&&e.index()!=d.act&&(d.next=e.index(),j(d,c))})});var i=h*c.find(">ul:first >li").length,k=f.parent().width();d.thumbWidth=h,k<i&&(a(document).mousemove(function(b){a("body").data("mousex",b.pageX)}),f.parent().mouseenter(function(){var b=a(this),d=b.offset(),e=a("body").data("mousex")-d.left,f=b.width(),g=b.find(".bullet:first").outerWidth(!0),h=g*c.find(">ul:first >li").length,i=h-f+15,j=i/f;b.addClass("over"),e-=30;var k=0-e*j;k>0&&(k=0),k<0-h+f&&(k=0-h+f),ea(b,k,200)}),f.parent().mousemove(function(){var b=a(this),d=b.offset(),e=a("body").data("mousex")-d.left,f=b.width(),g=b.find(".bullet:first").outerWidth(!0),h=g*c.find(">ul:first >li").length-1,i=h-f+15,j=i/f;e-=3,e<6&&(e=0),e+3>f-6&&(e=f);var k=0-e*j;k>0&&(k=0),k<0-h+f&&(k=0-h+f),ea(b,k,0)}),f.parent().mouseleave(function(){var b=a(this);b.removeClass("over"),da(c)}))},da=function(a){var b=a.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),c=b.parent(),e=(c.offset(),c.find(".bullet:first").outerWidth(!0)),f=c.find(".bullet.selected").index()*e,g=c.width(),e=c.find(".bullet:first").outerWidth(!0),h=e*a.find(">ul:first >li").length,k=0-f;k>0&&(k=0),k<0-h+g&&(k=0-h+g),c.hasClass("over")||ea(c,k,200)},ea=function(a,b,c){punchgs.TweenLite.to(a.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:b,ease:punchgs.Power3.easeOut,overwrite:"auto"})}}(jQuery); 11336</script>
11336 11337
11337<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/i18n/messages_es.js" crossorigin="anonymous"></script>
11337 11338
11338<script async defer src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/owlcarousel/owl.carousel.min.js" crossorigin="anonymous" integrity="sha512-w3VtLstKUtGqSqUX5T04jDbyz27PkqkEKRuTlQU7cxu934A5KktmSFOB0zUIzPLS3F+XCWj8v+9/dvOBxvVWkA=="></script>
11338 11339
11339<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/scripts/common.js?v=1.11" crossorigin="anonymous" integrity="sha512-VyECRYNJV3bErzmFx1HqVSN8f9cXr2+bZ5exjb9pZJ08OzkNprDaqJVWmrNX8b8HQdB1ezB05PXpwSDZ0ATDxQ=="></script>
11339 11340
11340<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/plugins/pricescalendar/calendar.plugin.js" crossorigin="anonymous" integrity="sha512-KYqhHCTmAyEOi/m5SOIxfDKt+FEOtV4DdxvfDpbuqIcm0zPDDpUKpmKEEbsy+8NH+4WsJ3i9t/KrA7NykGGlrw=="></script>
11340 11341
11341<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/plugins/dates-selector/datepicker_v1.js?v=1.02" crossorigin="anonymous" integrity="sha512-NRmdihwFdZn8IRkR9uQ11UpI9GYFc83z09xYgakibrmGU6LDAZiUlyG5gSQkWwr3dfb+PnFG5VVU5ir5Qrqd3Q=="></script>
11341 11342
11342<script> 11343 function opened_datepicker() { 11344 $("body").addClass('datepicker_shown'); 11345 } 11346 function closed_datepicker() { 11347 $("body").removeClass('datepicker_shown'); 11348 } 11349 $(function () { 11350 DP_extend_info.config.booking_version = '7'; 11351 DP_extend_info.config.months_show = 2; 11352 DP_extend_info.config.custom_format_day_month = function (dateComponents) { 11353 dateComponents = dateComponents.split("/"); 11354 var month_short = $.datepicker._defaults['monthNamesShort'][parseInt(dateComponents[1], 10) - 1]; 11355 return "<div class='day'>" + dateComponents[0] + "</div><div class='month'>" + month_short + "</div><div class='year'>" + dateComponents[2] + "</div>"; 11356 }; 11357 DP_extend_info.config.show_callback = opened_datepicker; 11358 DP_extend_info.config.hide_callback = closed_datepicker; 11359 DP_extend_info.config.short_days_names = true; 11360 11361 $.i18n.dict["entry_date_select"] = "Fechas"; 11362 $.i18n.dict["departure_date_select"] = "Fechas"; 11363 });$(window).on('load', function () { 11364 DP_extend_info.init(); 11365 $("label.dates_selector_label").html("<span>Entrada</span>-<span>Salida</span>"); 11366 });</script>
11366 11367
11367<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/addAnimation.js" crossorigin="anonymous" integrity="sha512-X026I6gXpvAcNDyh5xwgvquH2vTCS3fmKp/3G7hsTDl8HhnAOF88XzmBthnjo3NERIUjwE4ns120cXXQZ7jZ3A=="></script>
11367 11368
11368<script async type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/scripts/booking_7.js" crossorigin="anonymous" integrity="sha512-YsB6ZzwjCjUbxUbhatw0XJay9bs100BMzxh+fLx0tGlygGZ6gsb6heqFIfZ6lRQUORUEvkfW9KsUzgo6WywCTw=="></script>
11368 11369
11369<script async type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/scripts/booking_full_popup.js" crossorigin="anonymous" integrity="sha512-FADz3wfZ+rjOlYy8l6VwdMIReyc8ho8cTOQNKsfoYtG/YLODRfXw+TdsxeR2CG9w3QOvxI3WIiybGIpYKODbBw=="></script>
11369 11370
11370<script async type="text/javascript" type="text/javascript" src="/js/estil/booking_engine_personalize.js?v=1.15"></script>
11370 11371
11371<script async type="text/javascript" type="text/javascript" src="/js/estil/functions.js?v=1.37"></script>
11371 11372
11372<script async type="text/javascript" src="//www.tripadvisor.com/js3/conversion/pixel.js" crossorigin="anonymous" integrity="sha512-SqG9s7MDCO3rsgQClul/Zc+o4IfKK0trb4ozTj2bwIz1jKACSgBThnpH85WWGMviEKs33h60W4XE5WwHllfYMQ=="></script>
11372 11373 11374 <div style="display: none;"> 11375 <div id="data"> 11376 <div id="wrapper_booking_fancybox"> 11377 <div id="booking_widget_popup" class="booking_widget_fancybox"> 11378 11379 11380 11381 11382 11383<div id="motor_reserva"> 11384<!-- booking engine 2 --> 11385 <form action="https://www.estivalgroup.com/booking1" name="searchForm" id="searchForm" method="post" class="paraty-booking-form motor2"> 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 <input type="hidden" id="language" name="language" value="SPANISH" /> 11397 <input type="hidden" id="agesKid1" name="agesKid1" value="" /> 11398 <input type="hidden" id="agesKid2" name="agesKid2" value="" /> 11399 <input type="hidden" id="agesKid3" name="agesKid3" value="" /> 11400 11401 <input id="roomType" type="hidden" name="roomType" value=""> 11402 <input class="roomTypeValue" type="hidden" name="roomTypeValue" value=""> 11403 11404 <input id="roomFilter" type="hidden" name="roomFilter" value=""> 11405 <input id="roomFilterName" type="hidden" name="roomFilterName" value=""> 11406 11407 <input type="hidden" id="roomtype_list_json" name="roomtype_list_json" value=""> 11408 11409 <input id="boardFilter" type="hidden" name="boardFilter" value=""> 11410 <input id="keyBooking0Source" type="hidden" name="keyBooking0Source" value=""> 11411 11412 11413 11414 <input type="hidden" value="" name="priceSeekerHotel" id="priceSeekerHotel"/> 11415 11416 11417 11418 11419 11420 11421 11422 <!-- EXTRA PARAMS --> 11423 11424 <!-- END EXTRA PARAMS --> 11425 11426 <input type="hidden" id="gclid" name="gclid" value="" /> 11427 11428 <input type="hidden" id="using_booking_0" name="using_booking_0" value="" /> 11429 11430 11431 11432 11433 11434 <input type="hidden" id="namespace" name="namespace" value="estival-pineda" /> 11435 11436 <div id="booking_engine_title"> 11437 11438 <h4 id="booking_title1">Reservas</h4> 11439 <h4 id="booking_title2">Reserva ahora</h4> 11440 <h3 id="best_price">MEJOR PRECIO ONLINE</h3> 11441 11442 11443 </div> 11444 11445 11446 11447 11448 11449 <div id="contenedor_hotel"> 11450 11451 11452 11453 11454 11455 11456 11457 11458 </div> 11459 11460 <fieldset id="contenedor_fechas"> 11461 <legend class="sr-only">Fechas</legend> 11462 <div id="fecha_entrada" class="colocar_fechas fecha_entrada"> 11463 <label id="titulo_fecha_entrada" class="float_fecha" for="datepicker1">Fecha de Entrada</label> 11464 <input type="text" class="float_fecha classdatepicker1" name="startDate" id="datepicker1" tabindex="4" readonly="readonly" autocomplete="off"/> 11465 </div> 11466 <div id="fecha_salida" class="colocar_fechas fecha_salida"> 11467 <label id="titulo_fecha_salida" class="float_fecha" for="datepicker2">Fecha de salida</label> 11468 <input type="text" class="float_fecha classdatepicker2" name="endDate" id="datepicker2" tabindex="5" readonly="readonly" autocomplete="off"/> 11469 </div> 11470 <div id="contador_noches" class="colocar_fechas"> 11471 <p class="float_fecha">Número de noches: X</p> 11472 </div> 11473 </fieldset> 11474 11475 11476 <fieldset id="contenedor_habitaciones" > 11477 <legend class="sr-only">Habitaciones</legend> 11478 <label for="selector_habitaciones"> Habitaciones </label> 11479 <select id="selector_habitaciones" name="numRooms" onchange="mostrarHabitaciones(this.value);" tabindex="6"> 11480 11481 <option value="1" selected="selected">1</option> 11482 11483 <option value="2" >2</option> 11484 11485 <option value="3" >3</option> 11486 11487 </select> 11488 </fieldset> 11489 <fieldset id="contenedor_opciones" class="contenedor_opciones_babies"> 11490 <legend class="sr-only">Ocupación</legend> 11491 <div id="hab1"> 11492 <label class="numero_habitacion"> Habitación 1</label> 11493 <div class="adultos numero_personas"> 11494 <label class="selector_adultos" id="titulo_adultos">Adultos</label> 11495 <select class="selector_adultos" id="hab1_adultos" name="adultsRoom1" tabindex="7"> 11496 11497 <option value="1" >1</option> 11498 11499 <option value="2" selected="selected">2</option> 11500 11501 <option value="3" >3</option> 11502 11503 <option value="4" >4</option> 11504 11505 <option value="5" >5</option> 11506 11507 <option value="6" >6</option> 11508 11509 <option value="7" >7</option> 11510 11511 <option value="8" >8</option> 11512 11513 </select> 11514 </div> 11515 <div class="ninos numero_personas ninos-con-babies" title="Bebés gratis"> 11516 <label for="childrenRoom1" id="titulo_ninos" class="selector_ninos">Niños</label> 11517 <select id="hab1_ninos" class="selector_ninos" name="childrenRoom1" onchange="" tabindex="8"> 11518 11519 <option value="0" selected="selected" > 11520 11521 0 11522 11523 </option> 11524 11525 <option value="1" > 11526 11527 1 11528 11529 </option> 11530 11531 <option value="2" > 11532 11533 2 11534 11535 </option> 11536 11537 <option value="3" > 11538 11539 3 11540 11541 </option> 11542 11543 <option value="4" > 11544 11545 4 11546 11547 </option> 11548 11549 </select> 11550 <label id="info_ninos" class="selector_ninos"> 11551 11552 11553 (De 2 a 11 años) 11554 11555 11556 </label> 11557 </div> 11558 11559 11560 <div class="numero_personas bebes"> 11561 <label class="selector_bebes">Bebés </label> 11562 <select id="hab1_bebes" class="selector_bebes" name="babiesRoom1" onchange="" tabindex="9"> 11563 11564 <option value="0" >0</option> 11565 11566 <option value="1" >1</option> 11567 11568 <option value="2" >2</option> 11569 11570 </select> 11571 </div> 11572 11573 </div> 11574 11575 11576 <div id="hab2"> 11577 <label class="numero_habitacion">Habitación 2</label> 11578 <div class="adultos numero_personas"> 11579 <select class="selector_adultos" id="hab2_adultos" name="adultsRoom2" tabindex="10"> 11580 11581 <option value="1" >1</option> 11582 11583 <option value="2" selected="selected">2</option> 11584 11585 <option value="3" >3</option> 11586 11587 <option value="4" >4</option> 11588 11589 <option value="5" >5</option> 11590 11591 <option value="6" >6</option> 11592 11593 <option value="7" >7</option> 11594 11595 <option value="8" >8</option> 11596 11597 </select> 11598 </div> 11599 <div class="ninos numero_personas ninos-con-babies" title="Bebés gratis"> 11600 <select id="hab2_ninos" class="selector_ninos" name="childrenRoom2" onchange="" tabindex="11"> 11601 11602 <option value="0" selected="selected" > 11603 11604 0 11605 11606 </option> 11607 11608 <option value="1" > 11609 11610 1 11611 11612 </option> 11613 11614 <option value="2" > 11615 11616 2 11617 11618 </option> 11619 11620 <option value="3" > 11621 11622 3 11623 11624 </option> 11625 11626 <option value="4" > 11627 11628 4 11629 11630 </option> 11631 11632 </select> 11633 </div> 11634 11635 11636 <div class="numero_personas bebes"> 11637 <select id="hab2_bebes" class="selector_bebes" name="babiesRoom2" onchange="" tabindex="12"> 11638 <option value="0" selected="selected">0</option> 11639 <option value="1">1</option> 11640 <option value="2">2</option> 11641 </select> 11642 </div> 11643 11644 </div> 11645 11646 <div id="hab3"> 11647 <label class="numero_habitacion">Habitación 3</label> 11648 <div class="adultos numero_personas"> 11649 <select class="selector_adultos" id="hab3_adultos" name="adultsRoom3" tabindex="13"> 11650 11651 <option value="1" >1</option> 11652 11653 <option value="2" selected="selected">2</option> 11654 11655 <option value="3" >3</option> 11656 11657 <option value="4" >4</option> 11658 11659 <option value="5" >5</option> 11660 11661 <option value="6" >6</option> 11662 11663 <option value="7" >7</option> 11664 11665 <option value="8" >8</option> 11666 11667 </select> 11668 </div> 11669 <div class="ninos numero_personas ninos-con-babies" title="Bebés gratis"> 11670 <select id="hab3_ninos" class="selector_ninos" name="childrenRoom3" onchange="" tabindex="14"> 11671 11672 <option value="0" selected="selected" > 11673 11674 0 11675 11676 </option> 11677 11678 <option value="1" > 11679 11680 1 11681 11682 </option> 11683 11684 <option value="2" > 11685 11686 2 11687 11688 </option> 11689 11690 <option value="3" > 11691 11692 3 11693 11694 </option> 11695 11696 <option value="4" > 11697 11698 4 11699 11700 </option> 11701 11702 </select> 11703 </div> 11704 11705 11706 <div class="numero_personas bebes"> 11707 <select id="hab3_bebes" class="selector_bebes" name="babiesRoom3" onchange="" tabindex="15"> 11708 <option value="0" selected="selected">0</option> 11709 <option value="1">1</option> 11710 <option value="2">2</option> 11711 </select> 11712 </div> 11713 11714 </div> 11715 </fieldset> 11716 11717 <fieldset id="envio"> 11718 <legend class="sr-only">Reservar</legend> 11719 11720 <input type="text" id="promocode" class="colocar_envio promocode_input_class" name="promocode" aria-label="Código promocional" 11721 placeholder="Código promocional" 11722 value="" 11723 tabindex="16"> 11724 11725 11726 11727 11728 <button type="submit" onclick="$(this).addClass('clicked_button');return bookingSearchWithAgeSelection2() " id="search-button" class="colocar_envio buttonsearch-ratecheck" tabindex="17">Reservar</button> 11729 <div id="envio_spinner"></div> 11730 </fieldset> 11731 11732 11733 11734 <input type="hidden" id="booking-search-popup" name="booking-search-popup" value="true"> 11735 11736
11736<script> 11737 11738 function show_booking_search_popup(myForm) { 11739 if (typeof(sending_form_custom_from_paraty) == 'undefined'){ 11740 sending_form_custom_from_paraty = true; 11741 setTimeout( function(myForm) { openBookingSearchPopup(myForm); }, 1000, myForm ); 11742 } 11743 }; 11744 11745 function openBookingSearchPopup(myForm) { 11746 11747 return openBookingSearchPopup_v2(myForm); 11748 11749 11750 var elements = [ 11751 11752 ] 11753 11754 var popup_description = ""; 11755 if (typeof(custom_popup_loading_description) != 'undefined') { 11756 popup_description = custom_popup_loading_description; 11757 } 11758 11759 11760 11761 showGallery(elements); 11762 11763 11764 myForm.submit(); 11765 11766 } 11767 11768 function openBookingSearchPopup_v2(myForm, show_popup=true) { 11769 11770 if ((window.location !== window.parent.location) && show_popup) { 11771 const parentMessage = { 11772 message: 'resize_iframe', 11773 height: 700, 11774 }; 11775 11776 window.parent.postMessage(parentMessage, '*'); 11777 } 11778 11779 var container_booking_popup = $('<div></div>').addClass('container_popup_booking').css('text-align', 'center'), 11780 loading_popup_top_text = `Actualizando para continuar con su reserva`; 11781 11782 11783 var loading_popup_top_text = $("<img src='https://storage.googleapis.com/cdn.paraty.es/estival-caribou-apartaments/files/00EG%20-%20Espinete%20web.gif'>"); 11784 11785 11786 if ($('.logo_namespace').length) { 11787 var logo_namespace = $("input[name='namespace']").val(); 11788 var url_logo = $('#logo_' + logo_namespace).val(); 11789 loading_popup_top_text = $("<img src='"+ url_logo +"'>"); 11790 } 11791 11792 let loading_popup_bottom_text = `<div style='color:#1d252e'> Nuestra mejor oferta web</div>`, 11793 descipription_top_booking_popup = $("<div></div>").addClass('description_top_popup_booking').html(loading_popup_top_text); 11794 11795 const specialLoadingTextElem = $('input[name="special_loading_text"]'); 11796 if(specialLoadingTextElem.length && specialLoadingTextElem.val()){ 11797 loading_popup_bottom_text = specialLoadingTextElem.val(); 11798 } 11799 11800 let descipription_bottom_booking_popup = $("<div></div>").addClass('description_bottom_popup_booking').html(loading_popup_bottom_text), 11801 gif_wrapper = $("<div></div>").addClass('gif_wrapper'), 11802 number_of_lines = 20; 11803 11804 for (var x = 0; x < number_of_lines; x++) { 11805 var target_delay_css = { 11806 '-webkit-animation-delay': -(1.5 - (0.1 * x)) + 's', 11807 '-moz-animation-delay': -(1.5 - (0.1 * x)) + 's', 11808 '-o-animation-delay': -(1.5 - (0.1 * x)) + 's', 11809 'animation-delay': -(1.5 - (0.1 * x)) + 's' 11810 }; 11811 var element_line_to_append = $("<div></div>").addClass("default_line_loading").css(target_delay_css); 11812 11813 element_line_to_append.css('background', '#0b132b'); 11814 11815 11816 element_line_to_append.appendTo(gif_wrapper); 11817 } 11818 11819 11820 container_booking_popup.css('border', '1px solid #0b132b'); 11821 11822 11823 11824 11825 11826 11827 11828 container_booking_popup.append(descipription_top_booking_popup).append(gif_wrapper).append(descipription_bottom_booking_popup); 11829 11830 11831 var selected_start_date = $("input.has_datepicker[name='startDate']").val() || $("input[name='startDate']").val(); 11832 selected_end_date = $("input.has_datepicker[name='endDate']").val() || $("input[name='endDate']").val(); 11833 if(selected_start_date === ''){ 11834 var today = new Date(); 11835 var dd = today.getDate(); 11836 var mm = today.getMonth()+1; //January is 0! 11837 var yyyy = today.getFullYear(); 11838 if(dd<10) {dd = '0'+dd} 11839 if(mm<10) {mm = '0'+mm} 11840 today = dd + '/' + mm + '/' + yyyy; 11841 selected_start_date = today; 11842 } 11843 11844 var custom_format_date = "%d %b %Y"; 11845 if (custom_format_date) { 11846 11847 var splitted_start_date = selected_start_date.split("/"), 11848 start_day = splitted_start_date[0], 11849 start_month = splitted_start_date[1], 11850 start_year = splitted_start_date[2], 11851 start_datetime = new Date(start_year, start_month - 1, start_day), 11852 week_start_day = start_datetime.getDay(); 11853 11854 var splitted_end_date = selected_end_date.split("/"), 11855 end_day = splitted_end_date[0], 11856 end_month = splitted_end_date[1], 11857 end_year = splitted_end_date[2], 11858 end_datetime = new Date(end_year, end_month - 1, end_day), 11859 week_end_day = end_datetime.getDay(); 11860 11861 var days_list = $.datepicker._defaults.dayNames; 11862 11863 //Start date 11864 selected_start_date = custom_format_date.replace("%m", start_month).replace("%d", start_day).replace("%Y", start_year); 11865 selected_start_date = selected_start_date.replace("%a", days_list[week_start_day]).replace("%bb", _monthNames[start_month - 1]).replace("%b", _monthNames[start_month - 1]); 11866 11867 //End date 11868 selected_end_date = custom_format_date.replace("%m", end_month).replace("%d", end_day).replace("%Y", end_year); 11869 selected_end_date = selected_end_date.replace("%a", days_list[week_end_day]).replace("%bb", _monthNames[end_month - 1]).replace("%b", _monthNames[end_month - 1]); 11870 } 11871 11872 //Protection for failures 11873 if(selected_start_date.indexOf('NaN') > -1 || selected_end_date.indexOf('NaN')){ 11874 container_booking_popup.html(container_booking_popup.html().replace("@@start_date@@", selected_start_date).replace("@@end_date@@", selected_end_date)); 11875 } else { 11876 container_booking_popup.find(".description_bottom_popup_booking").remove(); 11877 } 11878 if (show_popup) { 11879 var fancybox_params = { 11880 width: 'auto', 11881 maxWidth: 800, 11882 height: 'auto', 11883 fitToView: false, 11884 autoSize: false, 11885 padding: 0, 11886 closeClick: false, 11887 closeBtn: false, 11888 helpers: { 11889 overlay: { 11890 css: 11891 {'background': '#ffffff'}, 11892 closeClick: false 11893 } // prevents closing when clicking OUTSIDE fancybox 11894 }, 11895 wrapCSS: 'fancy-booking-search_v2 full_screen_engine custom_color_overlay', 11896 beforeShow: function () { 11897 $('.fancybox-bg').css('background', '#ffffff');
11898 if (typeof (cookiesController) !== 'undefined' && cookiesController.search_cookie("step_history_back")) { 11899 cookiesController.delete_cookie("step_history_back"); 11900 } 11901 } 11902 }; 11903 if ($.fancybox.version.slice(0, 2) === '3.') { 11904 fancybox_params['baseClass'] = 'fancybox-wrap fancy-booking-search_v2 full_screen_engine custom_color_overlay'; 11905 fancybox_params['modal'] = true; 11906 $.fancybox.open(container_booking_popup, fancybox_params); 11907 } else { 11908 $.fancybox(container_booking_popup, fancybox_params); 11909 } 11910 if (myForm) { 11911 if (!navigator.userAgent.match(/chrome/i) && (navigator.userAgent.match(/safari/i) || !navigator.userAgent.match(/firefox/i))) { 11912 setTimeout(function () { 11913 myForm.submit(); 11914 }, 700); 11915 } else { 11916 myForm.submit(); 11917 } 11918 } 11919 } 11920 } 11921 11922 11923 11924 11925 function showGallery(elements) { 11926 $.fancybox(elements, { 11927 'modal': true, 11928 'closeBtn': false, 11929 'autoPlay': true, 11930 'playSpeed': 3000, 11931 'prevEffect': 'none', 11932 'nextEffect': 'none', 11933 'type': 'image', 11934 'arrows': false, 11935 'nextClick': false, 11936 'mouseWheel': false, 11937 'helpers': { 11938 title: { 11939 type: 'outside' 11940 }, 11941 overlay: { 11942 opacity: 0.8, 11943 css: { 11944 'background-color': '#000' 11945 } 11946 } 11947 }, 11948 'padding': 0 11949 }); 11950 } 11951 11952 </script>
11952 11953 11954 11955 11956 </form> 11957 11958 11959 11960 </div> 11961 11962 11963 <!-- Javascript at the bottom to increase speed --> 11964 11965
11966<script src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/js/datepicker/jquery.ui.datepicker-es.js?v=1.3" type="text/javascript" crossorigin="anonymous"></script>
11966 11967 11968
11969<script type="text/javascript" src="https://cdn.paraty.es/static_files/estival-group/generic/202609221129/lib/spin.min.js" crossorigin="anonymous" integrity="sha512-V8YgI4rsECe0shqE5P2p/ecolN3asrnTMTChlJ1pwxjrtc2nxJyYDP3k55/9Yxp+qsTDUMrUoAd7q62sC998Gw=="></script>
11969 11970 11971 11972<!-- Javascript at the bottom to increase speed --> 11973 11974 11975<style> 11976.ui-dialog { 11977 position: absolute; 11978 top: 0; 11979 left: 0; 11980 padding: .2em; 11981 outline: 0; 11982} 11983.ui-dialog .ui-dialog-titlebar { 11984 padding: .4em 1em; 11985 position: relative; 11986} 11987.ui-dialog .ui-dialog-title { 11988 float: left; 11989 margin: .1em 0; 11990 white-space: nowrap; 11991 width: 90%; 11992 overflow: hidden; 11993 text-overflow: ellipsis; 11994} 11995.ui-dialog .ui-dialog-titlebar-close { 11996 position: absolute; 11997 right: .3em; 11998 top: 50%; 11999 width: 21px; 12000 margin: -10px 0 0 0; 12001 padding: 1px; 12002 height: 20px; 12003} 12004.ui-dialog .ui-dialog-content { 12005 position: relative; 12006 border: 0; 12007 padding: .5em 1em; 12008 background: none; 12009 overflow: auto; 12010 text-align: center; 12011} 12012.ui-dialog .ui-dialog-buttonpane { 12013 text-align: left; 12014 border-width: 1px 0 0 0; 12015 background-image: none; 12016 margin-top: .5em; 12017 padding: .3em 1em .5em .4em; 12018} 12019.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { 12020 /*float: right;*/ 12021 float: none; 12022 text-align: center; 12023} 12024.ui-dialog .ui-dialog-buttonpane button { 12025 margin: .5em .4em .5em 0; 12026 cursor: pointer; 12027} 12028.ui-dialog .ui-resizable-se { 12029 width: 12px; 12030 height: 12px; 12031 right: -5px; 12032 bottom: -5px; 12033 background-position: 16px 16px; 12034} 12035.ui-dialog .ui-button-text { 12036 /*padding: 10px;*/ 12037 /*margin: 10px;*/ 12038} 12039 12040.ui-dialog .ui-button{ 12041 /*height: 30px;*/ 12042} 12043 12044.ui-draggable .ui-dialog-titlebar { 12045 cursor: move; 12046} 12047 12048.ui-dialog { 12049 min-width: 300px; 12050 z-index: 9999; 12051} 12052 12053</style> 12054 12055 <style> 12056 .ui-dialog-titlebar-close { 12057 display: none !important; 12058 } 12059 12060 #dialog-form{ 12061 padding: 10px; 12062 } 12063 12064 .ui-dialog-titlebar{ 12065 padding: 5px; 12066 } 12067 12068 .kidAgesSelect{ 12069 margin-left: 10px; 12070 12071 } 12072 12073 12074</style> 12075 12076<!-- New style Age popup --> 12077<style> 12078body .ui-widget-overlay.ui-front { 12079 background: rgba(0, 0, 0, 0.6); 12080 opacity: 1; 12081 z-index: 9998; 12082 position: fixed; 12083} 12084body .ui-dialog.ui-widget { 12085 padding: 20px 10px; 12086 border: 0; 12087 border-radius: 0; 12088 line-height: 1; 12089 max-width: 370px; 12090 width: 100% !important; 12091 box-sizing: border-box; 12092} 12093body .ui-dialog.ui-widget .ui-dialog-titlebar { 12094 background: none!important; 12095 padding: 0 0 20px 0; 12096 border-radius: 0; 12097 border: 0; 12098 color: black!important; 12099 border-bottom: 1px solid rgba(0, 0, 0, 0.2); 12100 text-align: center; 12101 margin-bottom: 20px; 12102} 12103body .ui-dialog.ui-widget .ui-dialog-titlebar .ui-dialog-title { 12104 width: 100%; 12105 margin: 0; 12106} 12107body .ui-dialog.ui-widget #dialog-form { 12108 padding: 0; 12109 text-align: left; 12110 width: 100% !important; 12111 max-width: 350px; 12112} 12113body .ui-dialog.ui-widget #dialog-form form label { 12114 clear: both; 12115 width: 100%; 12116 float: left; 12117} 12118body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids { 12119 display: inline-block; 12120 width: 100%; 12121 float: left; 12122} 12123body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select { 12124 width: calc((100% - 10px)/2); 12125 margin: 0px 10px 10px 0; 12126 float: left; 12127 -webkit-appearance: none; 12128 -moz-appearance: none; 12129 appearance: none; 12130 border-radius: 0; 12131 padding: 5px 10px; 12132} 12133body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select:nth-child(even) { 12134 margin-right: 0; 12135} 12136body .ui-dialog.ui-widget #dialog-form form .wrapper_age_kids select:nth-child(-n+2) { 12137 margin-top: 10px; 12138} 12139body .ui-dialog.ui-widget .ui-dialog-buttonpane { 12140 margin: 0; 12141 padding: 0; 12142 vertical-align: bottom; 12143 display: inline-block; 12144 float: left; 12145 width: 100% !important; 12146 max-width: 350px; 12147 border-radius: 0; 12148 margin-top: 10px; 12149} 12150body .ui-dialog.ui-widget .ui-dialog-buttonpane .ui-button { 12151 margin: 0; 12152 display: inline-block; 12153 width: 100% !important; 12154 max-width: 350px; 12155 border-radius: 0; 12156 background: #446ca9; 12157 color:white; 12158} 12159body .ui-dialog.ui-widget .ui-resizable-handle { 12160 display: none; 12161} 12162</style> 12163<!-- <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" type="text/css"/> --> 12164 <div id="dialog-form" title="Edades de los niños" style="display:none"> 12165 <form> 12166 12167 <label id="label1" for="name">Habitación 1</label> 12168 <div class="wrapper_age_kids clearfix"> 12169 12170 12171 12172 <select class="kidAgesSelect" id="agesRoom1_1" name="name" tabindex="1"> 12173 12174 <option value="2" selected="selected">2</option> 12175 12176 <option value="3" >3</option> 12177 12178 <option value="4" >4</option> 12179 12180 <option value="5" >5</option> 12181 12182 <option value="6" >6</option> 12183 12184 <option value="7" >7</option> 12185 12186 <option value="8" >8</option> 12187 12188 <option value="9" >9</option> 12189 12190 <option value="10" >10</option> 12191 12192 <option value="11" >11</option> 12193 12194 </select> 12195 12196 12197 12198 <select class="kidAgesSelect" id="agesRoom1_2" name="name" tabindex="1"> 12199 12200 <option value="2" selected="selected">2</option> 12201 12202 <option value="3" >3</option> 12203 12204 <option value="4" >4</option> 12205 12206 <option value="5" >5</option> 12207 12208 <option value="6" >6</option> 12209 12210 <option value="7" >7</option> 12211 12212 <option value="8" >8</option> 12213 12214 <option value="9" >9</option> 12215 12216 <option value="10" >10</option> 12217 12218 <option value="11" >11</option> 12219 12220 </select> 12221 12222 12223 12224 <select class="kidAgesSelect" id="agesRoom1_3" name="name" tabindex="1"> 12225 12226 <option value="2" selected="selected">2</option> 12227 12228 <option value="3" >3</option> 12229 12230 <option value="4" >4</option> 12231 12232 <option value="5" >5</option> 12233 12234 <option value="6" >6</option> 12235 12236 <option value="7" >7</option> 12237 12238 <option value="8" >8</option> 12239 12240 <option value="9" >9</option> 12241 12242 <option value="10" >10</option> 12243 12244 <option value="11" >11</option> 12245 12246 </select> 12247 12248 12249 12250 <select class="kidAgesSelect" id="agesRoom1_4" name="name" tabindex="1"> 12251 12252 <option value="2" selected="selected">2</option> 12253 12254 <option value="3" >3</option> 12255 12256 <option value="4" >4</option> 12257 12258 <option value="5" >5</option> 12259 12260 <option value="6" >6</option> 12261 12262 <option value="7" >7</option> 12263 12264 <option value="8" >8</option> 12265 12266 <option value="9" >9</option> 12267 12268 <option value="10" >10</option> 12269 12270 <option value="11" >11</option> 12271 12272 </select> 12273 12274 12275 12276 </div> 12277 12278 12279 <label id="label2" for="name">Habitación 2</label> 12280 <div class="wrapper_age_kids clearfix"> 12281 12282 12283 12284 <select class="kidAgesSelect" id="agesRoom2_1" name="name" tabindex="1"> 12285 12286 <option value="2" selected="selected">2</option> 12287 12288 <option value="3" >3</option> 12289 12290 <option value="4" >4</option> 12291 12292 <option value="5" >5</option> 12293 12294 <option value="6" >6</option> 12295 12296 <option value="7" >7</option> 12297 12298 <option value="8" >8</option> 12299 12300 <option value="9" >9</option> 12301 12302 <option value="10" >10</option> 12303 12304 <option value="11" >11</option> 12305 12306 </select> 12307 12308 12309 12310 <select class="kidAgesSelect" id="agesRoom2_2" name="name" tabindex="1"> 12311 12312 <option value="2" selected="selected">2</option> 12313 12314 <option value="3" >3</option> 12315 12316 <option value="4" >4</option> 12317 12318 <option value="5" >5</option> 12319 12320 <option value="6" >6</option> 12321 12322 <option value="7" >7</option> 12323 12324 <option value="8" >8</option> 12325 12326 <option value="9" >9</option> 12327 12328 <option value="10" >10</option> 12329 12330 <option value="11" >11</option> 12331 12332 </select> 12333 12334 12335 12336 <select class="kidAgesSelect" id="agesRoom2_3" name="name" tabindex="1"> 12337 12338 <option value="2" selected="selected">2</option> 12339 12340 <option value="3" >3</option> 12341 12342 <option value="4" >4</option> 12343 12344 <option value="5" >5</option> 12345 12346 <option value="6" >6</option> 12347 12348 <option value="7" >7</option> 12349 12350 <option value="8" >8</option> 12351 12352 <option value="9" >9</option> 12353 12354 <option value="10" >10</option> 12355 12356 <option value="11" >11</option> 12357 12358 </select> 12359 12360 12361 12362 <select class="kidAgesSelect" id="agesRoom2_4" name="name" tabindex="1"> 12363 12364 <option value="2" selected="selected">2</option> 12365 12366 <option value="3" >3</option> 12367 12368 <option value="4" >4</option> 12369 12370 <option value="5" >5</option> 12371 12372 <option value="6" >6</option> 12373 12374 <option value="7" >7</option> 12375 12376 <option value="8" >8</option> 12377 12378 <option value="9" >9</option> 12379 12380 <option value="10" >10</option> 12381 12382 <option value="11" >11</option> 12383 12384 </select> 12385 12386 12387 12388 </div> 12389 12390 12391 <label id="label3" for="name">Habitación 3</label> 12392 <div class="wrapper_age_kids clearfix"> 12393 12394 12395 12396 <select class="kidAgesSelect" id="agesRoom3_1" name="name" tabindex="1"> 12397 12398 <option value="2" selected="selected">2</option> 12399 12400 <option value="3" >3</option> 12401 12402 <option value="4" >4</option> 12403 12404 <option value="5" >5</option> 12405 12406 <option value="6" >6</option> 12407 12408 <option value="7" >7</option> 12409 12410 <option value="8" >8</option> 12411 12412 <option value="9" >9</option> 12413 12414 <option value="10" >10</option> 12415 12416 <option value="11" >11</option> 12417 12418 </select> 12419 12420 12421 12422 <select class="kidAgesSelect" id="agesRoom3_2" name="name" tabindex="1"> 12423 12424 <option value="2" selected="selected">2</option> 12425 12426 <option value="3" >3</option> 12427 12428 <option value="4" >4</option> 12429 12430 <option value="5" >5</option> 12431 12432 <option value="6" >6</option> 12433 12434 <option value="7" >7</option> 12435 12436 <option value="8" >8</option> 12437 12438 <option value="9" >9</option> 12439 12440 <option value="10" >10</option> 12441 12442 <option value="11" >11</option> 12443 12444 </select> 12445 12446 12447 12448 <select class="kidAgesSelect" id="agesRoom3_3" name="name" tabindex="1"> 12449 12450 <option value="2" selected="selected">2</option> 12451 12452 <option value="3" >3</option> 12453 12454 <option value="4" >4</option> 12455 12456 <option value="5" >5</option> 12457 12458 <option value="6" >6</option> 12459 12460 <option value="7" >7</option> 12461 12462 <option value="8" >8</option> 12463 12464 <option value="9" >9</option> 12465 12466 <option value="10" >10</option> 12467 12468 <option value="11" >11</option> 12469 12470 </select> 12471 12472 12473 12474 <select class="kidAgesSelect" id="agesRoom3_4" name="name" tabindex="1"> 12475 12476 <option value="2" selected="selected">2</option> 12477 12478 <option value="3" >3</option> 12479 12480 <option value="4" >4</option> 12481 12482 <option value="5" >5</option> 12483 12484 <option value="6" >6</option> 12485 12486 <option value="7" >7</option> 12487 12488 <option value="8" >8</option> 12489 12490 <option value="9" >9</option> 12491 12492 <option value="10" >10</option> 12493 12494 <option value="11" >11</option> 12495 12496 </select> 12497 12498 12499 12500 </div> 12501 12502 12503 </form> 12504</div> 12505
12506<script type="text/javascript"> 12507 12508 function sendActiveForm_booking_engine2() { 12509 12510 $(".booking_form").each(function () { 12511 if ($(this).find(".submit_button").css("display") == "none" || $(this).find(".submit_button").hasClass('clicked_button')) { 12512 if ($('#booking-search-popup').length) { 12513 show_booking_search_popup($(this)); 12514 return false; 12515 } 12516 12517 $(this).submit(); 12518 return true; 12519 } 12520 }); 12521 12522 $("#searchForm").each(function () { 12523 if ($(this).find("#search-button").css("display") == "none") { 12524 if ($('#booking-search-popup').length) { 12525 show_booking_search_popup($(this)); 12526 return false; 12527 } 12528 12529 $(this).submit(); 12530 return true; 12531 } 12532 }); 12533 12534 12535 } 12536 12537function bookingSearchWithAgeSelection2(){ 12538 if (!checkDates()){ 12539 return false; 12540 }; 12541 12542 kids1 = $('#hab1_ninos').val(); 12543 kids2 = $('#hab2_ninos').val(); 12544 kids3 = $('#hab3_ninos').val(); 12545 numRooms = $("input[name='numRooms']").val(); 12546 12547 if (kids1 == "0" && (kids2 == "0" || numRooms == '1') && (kids3 == "0" || numRooms == '1' || numRooms == '2')){ 12548 if (bookingSearch()){ 12549 12550 $('#searchForm').submit(); 12551 } 12552 } else { 12553 updateAgesOptions2(); 12554 $("#dialog-form").dialog("open"); 12555 return false; 12556 } 12557} 12558 12559function updateAgesOptions2() { 12560 12561 var numHab = $("#selector_habitaciones").val(); 12562 12563 for ( var i = 3; i > 0; i--) { 12564 12565 $("#label" + i).hide(); 12566 $("#dialog-form #agesRoom" + i + "_1, #full_wrapper_booking #agesRoom" + i +"_1").hide(); 12567 $("#dialog-form #agesRoom" + i + "_2, #full_wrapper_booking #agesRoom" + i +"_2").hide(); 12568 $("#dialog-form #agesRoom" + i + "_3, #full_wrapper_booking #agesRoom" + i +"_3").hide(); 12569 $("#dialog-form #agesRoom" + i + "_4, #full_wrapper_booking #agesRoom" + i +"_4").hide(); 12570 } 12571 for ( var i = numHab; i > 0; i--) { 12572 numKids = $("#hab" + i + "_ninos").val(); 12573 if (numKids > 0){ 12574 $("#label" + i).show(); 12575 12576 $("#dialog-form #agesRoom" + i + "_1, #full_wrapper_booking #agesRoom" + i +"_1").show(); 12577 if (numKids > 1) 12578 $("#dialog-form #agesRoom" + i + "_2, #full_wrapper_booking #agesRoom" + i +"_2").show(); 12579 if (numKids > 2) 12580 $("#dialog-form #agesRoom" + i + "_3, #full_wrapper_booking #agesRoom" + i +"_3").show(); 12581 if (numKids > 3) 12582 $("#dialog-form #agesRoom" + i + "_4, #full_wrapper_booking #agesRoom" + i +"_4").show(); 12583 } 12584 } 12585} 12586 12587$(function() { 12588 if (!$("#dialog-form").hasClass('ui-dialog-content')) { 12589 $("#dialog-form").dialog({ 12590 width: "auto", 12591 autoOpen: false, 12592 12593 modal: true, 12594 buttons: { 12595 "Continuar": function() { 12596 $( this ).dialog( "close" ); 12597 var dialog_wrapper = $(this); 12598 12599 $("input[name='agesKid1']").each(function() { 12600 var age_1_1 = dialog_wrapper.find("#agesRoom1_1").val(); 12601 var age_1_2 = dialog_wrapper.find("#agesRoom1_2").val(); 12602 var age_1_3 = dialog_wrapper.find("#agesRoom1_3").val(); 12603 var age_1_4 = dialog_wrapper.find("#agesRoom1_4").val(); 12604 $(this).val(age_1_1 + ";" + age_1_2 + ";" + age_1_3 + ";" + age_1_4); 12605 }); 12606 $("input[name='agesKid2']").each(function () { 12607 var age_2_1 = dialog_wrapper.find("#agesRoom2_1").val(); 12608 var age_2_2 = dialog_wrapper.find("#agesRoom2_2").val(); 12609 var age_2_3 = dialog_wrapper.find("#agesRoom2_3").val(); 12610 var age_2_4 = dialog_wrapper.find("#agesRoom2_4").val(); 12611 $(this).val(age_2_1 + ";" + age_2_2 + ";" + age_2_3 + ";" + age_2_4); 12612 }); 12613 $("input[name='agesKid3']").each(function () { 12614 var age_3_1 = dialog_wrapper.find("#agesRoom3_1").val(); 12615 var age_3_2 = dialog_wrapper.find("#agesRoom3_2").val(); 12616 var age_3_3 = dialog_wrapper.find("#agesRoom3_3").val(); 12617 var age_3_4 = dialog_wrapper.find("#agesRoom3_4").val(); 12618 $(this).val(age_3_1 + ";" + age_3_2 + ";" + age_3_3 + ";" + age_3_4); 12619 }); 12620 12621 bookingSearch(); 12622 sendActiveForm_booking_engine2(); 12623 } 12624 } 12625 }); 12626 } 12627 12628 updateAgesOptions2(1); 12629}); 12630</script>
12630 12631 12632
12633<script type="text/javascript"> 12634 12635 12636 12637 var datePicker1Selector = ".classdatepicker1"; 12638 var datePicker2Selector = ".classdatepicker2"; 12639 12640 12641 12642 12643$("#hotel_destino").change(function() { 12644 var action = $(this).val(); 12645 $("#searchForm").attr("action", action); 12646 var newNamespace = namespaces[action]; 12647 $("#namespace").val(newNamespace); 12648 12649 }); 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659$(function(){ 12660 $.datepicker.setDefaults($.datepicker.regional["es"]); 12661}); 12662 12663var checkDates = function() { 12664 12665 12666 var date1_str = $(datePicker1Selector).val(); 12667 var date2_str = $(datePicker2Selector).val(); 12668 12669 if (date1_str == "" || date2_str == ""){ 12670 return false; 12671 } else { 12672 return true; 12673 } 12674} 12675 12676$(document).ready(function () { 12677 12678 if ($('#internalStartDate').length != 0) { 12679 var startDate = $('#internalStartDate').val(); 12680 var startYear = startDate.substring(0,4); 12681 var startMonth = startDate.substring(5,7); 12682 var startDay = startDate.substring(8,10); 12683 var startParse = startDay + "/" + startMonth + "/" + startYear; 12684 var endDate = $('#internalEndDate').val(); 12685 var endYear = endDate.substring(0,4); 12686 var endMonth = endDate.substring(5,7); 12687 var endDay = endDate.substring(8,10); 12688 var endParse = endDay + "/" + endMonth + "/" + endYear; 12689 } else { 12690 var startParse = ""; 12691 var endParse = ""; 12692 } 12693 12694 $(datePicker1Selector).val(startParse); 12695 $(datePicker2Selector).val(endParse); 12696 12697 if ($(".internalUrlParamsTransfer").length){ 12698 12699 let target_value = $(".internalUrlParamsTransfer").val(); 12700 if (!$(".transfer_to_booking").length) { 12701 $(".paraty-booking-form").each(function(){ 12702 $(this).append($("<input type='hidden' class='transfer_to_booking' name='transfer_url_params' value='" + target_value + "'>")); 12703 }) 12704 } else { 12705 $(".transfer_to_booking").val(target_value) 12706 } 12707 } 12708 12709 if ($('#internalNumRooms').length != 0){ 12710 12711 $("#selector_habitaciones").val($("#internalNumRooms").val()); 12712 $("#selector_habitaciones").change(); 12713 12714 var internalNum1AdultsRooms = 2; 12715 var internalNum2AdultsRooms = 2; 12716 var internalNum3AdultsRooms = 2; 12717 12718 var internalNum1BabiesRooms = 0; 12719 var internalNum2BabiesRooms = 0; 12720 var internalNum3BabiesRooms = 0; 12721 12722 if ($('#internalNum1AdultsRooms').length != 0) internalNum1AdultsRooms = $("#internalNum1AdultsRooms").val() 12723 if ($('#internalNum2AdultsRooms').length != 0) internalNum2AdultsRooms = $("#internalNum2AdultsRooms").val() 12724 if ($('#internalNum3AdultsRooms').length != 0) internalNum3AdultsRooms = $("#internalNum3AdultsRooms").val() 12725 12726 12727 if ($('#internalNum1BabiesRooms').length != 0) internalNum1BabiesRooms = $("#internalNum1BabiesRooms").val() 12728 if ($('#internalNum2BabiesRooms').length != 0) internalNum2BabiesRooms = $("#internalNum2BabiesRooms").val() 12729 if ($('#internalNum3BabiesRooms').length != 0) internalNum3BabiesRooms = $("#internalNum3BabiesRooms").val() 12730 12731 12732 $("#hab1_adultos").val(internalNum1AdultsRooms); 12733 $("#hab2_adultos").val(internalNum2AdultsRooms); 12734 $("#hab3_adultos").val(internalNum3AdultsRooms); 12735 $("#hab1_ninos").val($("#internalNum1KidsRooms").val()); 12736 $("#hab2_ninos").val($("#internalNum2KidsRooms").val()); 12737 $("#hab3_ninos").val($("#internalNum3KidsRooms").val()); 12738 $("#hab1_bebes").val(internalNum1BabiesRooms); 12739 $("#hab2_bebes").val(internalNum2BabiesRooms); 12740 $("#hab3_bebes").val(internalNum3BabiesRooms); 12741 12742 12743 12744 12745 } 12746 12747 12748if ($("#internalPromocode") && $("#internalPromocode").val()){ 12749 12750 $("#promocode").val($("#internalPromocode").val()); 12751} 12752 12753 12754 12755 12756 if (typeof(DP_extend_info) === 'undefined' || !DP_extend_info.config.initialized || DP_extend_info.config.start_datepicker_input !== datePicker1Selector) { 12757 $(datePicker1Selector).datepicker({ 12758 12759 12760 minDate: new Date(), 12761 altFormat: "dd/mm/yy", 12762 dateFormat: "dd/mm/yy", 12763 12764 onClose: function (selectedDate, inst) { 12765 if (selectedDate) { 12766 var theDate = $.datepicker.parseDate("dd/mm/yy", selectedDate); 12767 12768 var theSelectedDate = $.datepicker.parseDate("dd/mm/yy", selectedDate); 12769 theSelectedDate.setDate(theSelectedDate.getDate()); 12770 $(datePicker1Selector).datepicker('setDate', theSelectedDate); 12771 12772 if (typeof(min_stay_number) != 'undefined'){ 12773 theDate.setDate(theDate.getDate() + min_stay_number); 12774 } else { 12775 theDate.setDate(theDate.getDate() + 1); 12776 } 12777 $(datePicker2Selector).datepicker("option", "minDate", theDate); 12778 $(datePicker2Selector).datepicker('setDate', theDate); 12779 $(this).closest("#contenedor_fechas").find(datePicker2Selector).datepicker("show"); 12780 } 12781 } 12782 }); 12783 12784 12785 $(datePicker2Selector).datepicker({ 12786 12787 12788 minDate: minDateDeparture(), 12789 altFormat: "dd/mm/yy", 12790 dateFormat: "dd/mm/yy" 12791 }); 12792 12793 12794 $(datePicker1Selector).change(function () { 12795 var date2 = $(this).datepicker('getDate', '+3d'); 12796 $(datePicker1Selector).datepicker('setDate', date2); 12797 date2.setDate(date2.getDate() + 1); 12798 $(datePicker2Selector).datepicker('setDate', date2); 12799 checkDates(); 12800 }); 12801 12802 $(datePicker2Selector).change(function () { 12803 var date2 = $(this).datepicker('getDate', '+3d'); 12804 $(datePicker2Selector).datepicker('setDate', date2); 12805 checkDates(); 12806 }); 12807 12808 $(datePicker1Selector).removeAttr('disabled'); 12809 $(datePicker2Selector).removeAttr('disabled'); 12810 } 12811 12812 12813 12814 12815}); 12816 12817 12818 12819 12820function minDateDeparture(){ 12821 12822 if ($(datePicker1Selector).val()){ 12823 var theDate = $.datepicker.parseDate("dd/mm/yy", $(datePicker1Selector).val()); 12824 theDate.setDate(theDate.getDate() + 1 ); 12825 } 12826 else{ 12827 var theDate = new Date(); 12828 } 12829 12830 return theDate; 12831 12832} 12833 12834function mostrarHabitaciones(selector_habitaciones) { 12835 12836 12837 12838 for ( var i = 3; i > selector_habitaciones; i--) { 12839 12840 //$('#hab' + i).hide(); 12841 $('[id="hab'+ i + '"]').each(function() { 12842 $(this).hide(); 12843 }); 12844
12845 //$('#childrenRoom' + (i + 1)).val("0"); 12846 $('[id="childrenRoom'+ (i + 1) + '"]').each(function() { 12847 $(this).val("0"); 12848 }); 12849 } 12850 for ( var i = selector_habitaciones; i > 0; i--) { 12851 //$('#hab' + i).show(); 12852 12853 $('[id="hab'+ i + '"]').each(function() { 12854 $(this).show(); 12855 12856 }); 12857 } 12858} 12859 12860function bookingSearch(){ 12861 12862 if (!checkDates()){ 12863 return false; 12864 } 12865 12866 var destination_input = $("form.paraty-booking-form.motor2").find(".destination"); 12867 if(destination_input.length && destination_input.val() == ''){ 12868 $("form.paraty-booking-form .destination_field, form.paraty-booking-form.motor2 .destination_wrapper").show(); 12869 return false; 12870 } 12871 12872 try { 12873 ga(function (tracker) { 12874 client_id = tracker.get('clientId'); 12875 }); 12876 $('<input>').attr({ 12877 type: 'hidden', 12878 id: '_ga', 12879 name: '_ga', 12880 value: client_id 12881 }).appendTo($("#search-button").closest('form')); 12882 } 12883 catch (err) { 12884 console.log("Google Analytics defined incorrectly (May use a old version)"); 12885 } 12886 12887 var opts = { 12888 lines: 13, // The number of lines to draw 12889 length: 4, // The length of each line 12890 width: 3, // The line thickness 12891 radius: 10, // The radius of the inner circle 12892 rotate: 0, // The rotation offset 12893 color: '#e1e1e1', // #rgb or #rrggbb 12894 speed: 1.5, // Rounds per second 12895 trail: 60, // Afterglow percentage 12896 shadow: false, // Whether to render a shadow 12897 hwaccel: false, // Whether to use hardware acceleration 12898 className: 'spinner', // The CSS class to assign to the spinner 12899 zIndex: 2e9, // The z-index (defaults to 2000000000) 12900 top: 'auto', // Top position relative to parent in px 12901 left: 'auto' // Left position relative to parent in px 12902 }; 12903 12904 12905 var target = document.getElementById('envio_spinner'); 12906 12907 if( $('#booking-search-popup').length ) { 12908 show_booking_search_popup($('#searchForm')); 12909 return false; 12910 12911 } else { 12912 $("#search-button").hide(); 12913 var spinner = new Spinner(opts).spin(target); 12914 $('#searchForm').submit(); 12915 } 12916}; 12917 12918</script>
12918 12919 12920
12921<script> 12922 adult_tag = "Adulto"; 12923 adults_tag = "Adultos"; 12924 kid_tag = "Niño"; 12925 kids_tag = "Niños"; 12926 baby_tag = "Bebé"; 12927 babies_tag = "Bebés"; 12928 no_dispo_text = "No disponible"; 12929</script>
12929 12930 12931 12932 12933 12934
12935<script async> 12936 ($ => { 12937 if (typeof window.only_once_rescueseeker == "undefined") { 12938 // Reserve synchronously so a concurrent re-injection does not fire a second load. 12939 window.only_once_rescueseeker = 1; 12940 $.getScript("https://rescueseeker-default-697653561069.europe-west1.run.app/static/rescue-seeker/common/js/rescue-seeker-widget.js?v=2") 12941 .done(function (script, textStatus) { 12942 if (typeof RescueSeeker === 'undefined') { 12943 console.error("RESCUE SEEKER: script loaded but global missing"); 12944 window.only_once_rescueseeker = undefined; // release so a later load can retry 12945 return; 12946 } 12947 console.log("RESCUE SEEKER: Main rescue seeker script loaded!"); 12948 12949 12950 RescueSeeker.config.email_controller = 'hotel-webs'; 12951 12952 RescueSeeker.load('estival-pineda', 'es', 'paraty'); 12953 }) 12954 .fail(function (jqxhr, settings, exception) { 12955 window.only_once_rescueseeker = undefined; // release on failure so a later load can retry 12956 console.error("RESCUE SEEKER: Main rescue seeker script NOT loaded!"); 12957 console.error(exception); 12958 }); 12959 } 12960 })(jQuery); 12961</script>
12961 12962 12963 12964 12965 12966 12967 12968</div> 12969 </div> 12970 </div> 12971 </div> 12972 12973 12974 12975
12976<script> 12977 $(document).on('popupSeekerReady', function () { 12978 const sid = new URL(window.location.href).searchParams.get('sid'); 12979 const sidParam = sid ? `&sid=${encodeURIComponent(sid)}` : ''; 12980 $.post(`/utils?action=get_last_search&namespace=estival-pineda${sidParam}`) 12981 .done(function (data) { 12982 if (data.event_name && data.event_data) { 12983 $(document).trigger(data.event_name, data.event_data); 12984 } 12985 }) 12986 .fail(function (jqxhr, settings, exception) { 12987 console.error("LAST SEARCH: get_last_search request failed!"); 12988 console.error(exception); 12989 }); 12990 }); 12991 12992 $(document).on('last_search.copy_url', function (event, eventData) { 12993 const shareElement = $("#share_last_search"); 12994 const path = (shareElement.data('link') || '').trim() || window.last_search?.search_url; 12995 12996 if (!path) { 12997 showCopyErrorNotification(''); 12998 return; 12999 } 13000 13001 const link = window.location.origin + path; 13002 13003 if (navigator.clipboard && navigator.clipboard.writeText) { 13004 navigator.clipboard.writeText(link).then(function() { 13005 showCopySuccessNotification(); 13006 }).catch(function(err) { 13007 fallbackCopyToClipboard(link); 13008 }); 13009 } else { 13010 fallbackCopyToClipboard(link); 13011 } 13012 13013 // Fallback for older browsers or errors 13014 function fallbackCopyToClipboard(text) { 13015 try { 13016 const tempInput = $('<input>'); 13017 $('body').append(tempInput); 13018 tempInput.val(text).select(); 13019 13020 const successful = document.execCommand('copy'); 13021 tempInput.remove(); 13022 13023 if (successful) { 13024 showCopySuccessNotification(); 13025 } else { 13026 showCopyErrorNotification(text); 13027 } 13028 } catch (err) { 13029 showCopyErrorNotification(text); 13030 } 13031 } 13032 13033 function showCopySuccessNotification() { 13034 try { 13035 $(document).trigger("notification.popup.seeker", { 13036 type: 'success', 13037 title: '¡Copiado!', 13038 content: 'El enlace de búsqueda se ha copiado a su portapapeles' 13039 }); 13040 } catch { 13041 alert('El enlace de búsqueda se ha copiado a su portapapeles'); 13042 } 13043 } 13044 13045 function showCopyErrorNotification(link) { 13046 try { 13047 $(document).trigger("notification.popup.seeker", { 13048 type: 'error', 13049 title: "Error de copia", 13050 content: `No se puede copiar el enlace al portapapeles. Inténtalo de nuevo o copia la URL manualmente. ${link}` 13051 }); 13052 } catch { 13053 alert(`No se puede copiar el enlace al portapapeles. Inténtalo de nuevo o copia la URL manualmente. ${link}`); 13054 } 13055 } 13056 }); 13057</script>
13057<script data-cookieconsent="ignore" src="https://popup-seeker-296770026789.europe-west1.run.app/script.js?v=1.00"></script>
vendor: 1 bytes, line 13057
13057
13058<script> 13059 $(function () { 13060 try { 13061 POPUP_SEEKER.init({ 13062 13063 13064 13065 public_captcha_key: '6LdPSXsaAAAAAA90b_aU2tr2mb7FlE2mMEbmF0OV', 13066 13067 language_code: 'es', 13068 hotel_code: 'estival-pineda', 13069 13070 is_mobile: false, 13071 13072 section_type: 'Inicio', 13073 section_key: 'ag9lfmVzdGl2YWwtZ3JvdXByFwsSCldlYlNlY3Rpb24YgICAgtzfrQsMogEOZXN0aXZhbC1waW5lZGE', 13074 user_type: ['normal'], 13075 }); 13076 } catch (e) { 13077 console.warn('Error initializing Popup Seeker'); 13078 console.warn(e); 13079 } 13080 }); 13081</script>
13081 13082 13083 13084 13085 13086 13087
13087<script> 13088 var facebook_api_controller = function () { 13089 return { 13090 get_url_paramater: function(sParam) { 13091 let sPageURL = window.location.search.substring(1), 13092 sURLVariables = sPageURL.split('&'); 13093 for (var i = 0; i < sURLVariables.length; i++) { 13094 var sParameterName = sURLVariables[i].split('='); 13095 if (sParameterName[0] === sParam) { 13096 return sParameterName[1]; 13097 } 13098 } 13099 return ""; 13100 }, 13101 13102 // Sends the canonical event of the current page (PageView, ViewContent or 13103 // InitiateCheckout), the same one the browser pixel tracks. 13104 make_page_event: function () { 13105 // Guarded like every other use of the registry: a consent blocker deferring it 13106 // would otherwise throw here and skip the _fbp/_fbc inputs injected below, 13107 // leaving the Conversions API without attribution. 13108 if (!window.paratyMetaEvents) { 13109 return; 13110 } 13111 13112 const payload = { 13113 event: window.paratyMetaEvents.pageEventName() 13114 }; 13115 13116 13117 13118 facebook_api_controller.make_ajax_request(payload); 13119 }, 13120 13121 make_add_to_cart: function(meta_event_id, items) { 13122 const payload = { 13123 event: "AddToCart", 13124 event_id: meta_event_id 13125 }; 13126 13127 if (items && items.length) { 13128 payload.items = JSON.stringify(items); 13129 } 13130 13131 facebook_api_controller.make_ajax_request(payload); 13132 }, 13133 13134 make_add_payment_info: function(meta_event_id) { 13135 facebook_api_controller.make_ajax_request({ 13136 event: "AddPaymentInfo", 13137 event_id: meta_event_id 13138 }); 13139 }, 13140 13141 make_ajax_request: function(payload) { 13142 // Same consent gate as the browser pixel: the Conversions API sends the visitor 13143 // ip, user agent and Meta cookies, so it must not run before marketing consent 13144 // is granted. The event id is resolved when the call actually runs, which is 13145 // safe: page scoped ids are memoized and repeatable ones travel in the payload. 13146 if (window.cookies_selection === 'disabled') { 13147 // An external consent manager (Cookiebot, CookieYes) owns the decision here, 13148 // or the hotel disabled the popup. The queue would never drain, so the event 13149 // would be lost instead of deferred. 13150 facebook_api_controller.send_event(payload); 13151 13152 return; 13153 } 13154 13155 cookiesController.push_tracking_code(function () { 13156 facebook_api_controller.send_event(payload); 13157 }, ['marketing', 'analytics']); 13158 }, 13159 13160 send_event: function(payload) { 13161 const sidParam = facebook_api_controller.get_url_paramater("sid"); 13162 const sid = sidParam || ""; 13163 13164 // The server cannot rebuild the page url: with a payment gateway in between the 13165 // request is internal and carries no referrer. 13166 payload.event_source_url = window.location.href; 13167 if (!payload.event_id) { 13168 payload.event_id = window.paratyMetaEvents?.get(payload.event) || ''; 13169 } 13170 13171 $.ajax({ 13172 url: "/utils?action=facebook_api&sid=" + sid, 13173 method: "POST", 13174 data: payload, 13175 success: function(response) { 13176 console.debug(response); 13177 } 13178 }) 13179 }, 13180 13181 cookie: function(name_cookie) { 13182 var value = "; " + document.cookie; 13183 var parts = value.split("; " + name_cookie + "="); 13184 if (parts.length === 2){ 13185 return parts.pop().split(";").shift(); 13186 } 13187 13188 return ""; 13189 } 13190 } 13191 }(); 13192 13193 facebook_api_controller.make_page_event(); 13194 $(".paraty-booking-form").each(function() { 13195 if (facebook_api_controller.cookie("_fbp")) { 13196 $(this).append($('<input name="_fbp" type="hidden">').val(facebook_api_controller.cookie("_fbp"))); 13197 } 13198 13199 if (facebook_api_controller.cookie("_fbc")) { 13200 $(this).append($('<input name="_fbc" type="hidden">').val(facebook_api_controller.cookie("_fbc"))); 13201 } 13202 }); 13203 </script>
13203 13204 13205 13206 13207</body> 13208</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.