var MonsterInsights=function(){var e=[],i='',r=!1;this.setLastClicked=function(t,n,i){t=typeof t!=='undefined'?t:[];n=typeof n!=='undefined'?n:[];i=typeof i!=='undefined'?i:!1;e.valuesArray=t;e.fieldsArray=n};this.getLastClicked=function(){return e};this.setInternalAsOutboundCategory=function(e){i=e};this.getInternalAsOutboundCategory=function(){return i};this.sendEvent=function(e,t,n){b(e,t,n,[])};function d(){if(window.monsterinsights_debug_mode){return!0}else{return!1}};function v(e,t,n){var l={};for(var i in e){if(!e.hasOwnProperty(i)){continue};if(t&&t.indexOf(i)===-1){continue};if(n&&n.indexOf(i)>-1){continue};l[i]=e[i]};return l};function y(e,t,n){if(!monsterinsights_frontend.v4_id||e!=='event'){return};var i=n.event_category||'',a=['event_name','event_category','event_label','value',],l=v(n,null,a);l.action=t;l.send_to=monsterinsights_frontend.v4_id;let hitType=i.replace('-','_');if(i.indexOf('outbound-link')!==-1){hitType='click'}else if(i==='download'){hitType='file_download'};__gtagTracker(e,hitType,l)};function l(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};y(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function b(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};__gtagTracker(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function t(t){t=typeof t!=='undefined'?t:[];e.valuesArray=t;e.fieldsArray=[];e.tracked=!1;n('Not Tracked: '+t.exit);n(e)};function n(e){if(d()){console.dir(e)}};function o(e){return e.replace(/^\s+|\s+$/gm,'')};function u(){var n=0,e=document.domain,i=e.split('.'),t='_gd'+(new Date()).getTime();while(n<(i.length-1)&&document.cookie.indexOf(t+'='+t)==-1){e=i.slice(-1-(++n)).join('.');document.cookie=t+'='+t+';domain='+e+';'};document.cookie=t+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain='+e+';';return e};function c(e){e=e.toString();e=e.substring(0,(e.indexOf('#')==-1)?e.length:e.indexOf('#'));e=e.substring(0,(e.indexOf('?')==-1)?e.length:e.indexOf('?'));e=e.substring(e.lastIndexOf('/')+1,e.length);if(e.length>0&&e.indexOf('.')!==-1){e=e.substring(e.lastIndexOf('.')+1);return e}else{return''}};function x(e){return e.which==1||e.which==2||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey};function h(){var e=[];if(typeof monsterinsights_frontend.download_extensions=='string'){e=monsterinsights_frontend.download_extensions.split(',')};return e};function g(){var e=[];if(typeof monsterinsights_frontend.inbound_paths=='string'){e=JSON.parse(monsterinsights_frontend.inbound_paths)};return e};function w(e){if(e.which==1){return'event.which=1'}else if(e.which==2){return'event.which=2'}else if(e.metaKey){return'metaKey'}else if(e.ctrlKey){return'ctrlKey'}else if(e.shiftKey){return'shiftKey'}else if(e.altKey){return'altKey'}else{return''}};function A(e){var f=h(),l=g(),t='unknown',d=e.href,p=c(e.href),k=u(),r=e.hostname,a=e.protocol,m=e.pathname;d=d.toString();var s,v,y=e.getAttribute('data-vars-ga-category');if(y){return y};if(d.match(/^javascript\:/i)){t='internal'}else if(a&&a.length>0&&(o(a)=='tel'||o(a)=='tel:')){t='tel'}else if(a&&a.length>0&&(o(a)=='mailto'||o(a)=='mailto:')){t='mailto'}else if(r&&k&&r.length>0&&k.length>0&&!r.endsWith('.'+k)&&r!==k){t='external'}else if(m&&JSON.stringify(l)!='{}'&&m.length>0){var b=l.length;for(var n=0;n<b;n++){if(l[n].path&&l[n].label&&l[n].path.length>0&&l[n].label.length>0&&m.startsWith(l[n].path)){t='internal-as-outbound';i='outbound-link-'+l[n].label;break}}}else if(r&&window.monsterinsights_experimental_mode&&r.length>0&&document.domain.length>0&&r!==document.domain){t='cross-hostname'};if(p&&(t==='unknown'||'external'===t)&&f.length>0&&p.length>0){for(s=0,v=f.length;s<v;++s){if(f[s].length>0&&(d.endsWith(f[s])||f[s]==p)){t='download';break}}};if(t==='unknown'){t='internal'};return t};function T(e,t){var n=(e.target&&!e.target.match(/^_(self|parent|top)$/i))?e.target:!1;if(t.ctrlKey||t.shiftKey||t.metaKey||t.which==2){n='_blank'};return n};function k(e){if(e.getAttribute('data-vars-ga-label')&&e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')){return e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')}else if(e.title&&e.title.replace(/\n/ig,'')){return e.title.replace(/\n/ig,'')}else if(e.innerText&&e.innerText.replace(/\n/ig,'')){return e.innerText.replace(/\n/ig,'')}else if(e.getAttribute('aria-label')&&e.getAttribute('aria-label').replace(/\n/ig,'')){return e.getAttribute('aria-label').replace(/\n/ig,'')}else if(e.alt&&e.alt.replace(/\n/ig,'')){return e.alt.replace(/\n/ig,'')}else if(e.textContent&&e.textContent.replace(/\n/ig,'')){return e.textContent.replace(/\n/ig,'')}else if(e.firstChild&&e.firstChild.tagName=='IMG'){return e.firstChild.src}else{return undefined}};function O(e){var i=e.children,l=0,a,n;for(var t=0;t<i.length;t++){a=i[t];n=k(a);if(n){return n};if(l==99){return undefined};l++};return undefined};function p(n){var a=n.srcElement||n.target,e=[],m;e.el=a;e.click_type=w(n);if('undefined'===typeof __gtagTracker||!x(n)){e.exit='loaded';t(e);return}
while(a&&(typeof a.tagName=='undefined'||a.tagName.toLowerCase()!='a'||!a.href)){a=a.parentNode};if(a&&a.href&&!a.hasAttribute('xlink:href')){var p=a.href,M=c(a.href),N=h(),S=g(),D=monsterinsights_frontend.home_url,L=u(),o=A(a),K=T(a,n),y=a.getAttribute('data-vars-ga-action'),f=a.getAttribute('data-vars-ga-label');e.el=a;e.el_href=a.href;e.el_protocol=a.protocol;e.el_hostname=a.hostname;e.el_port=a.port;e.el_pathname=a.pathname;e.el_search=a.search;e.el_hash=a.hash;e.el_host=a.host;e.el_classes=a.getAttribute('class');e.el_id=a.id;e.debug_mode=d();e.download_extensions=N;e.inbound_paths=S;e.home_url=D;e.link=p;e.extension=M;e.type=o;e.target=K;e.title=k(a);if(!e.label&&!e.title){e.title=O(a)};if(o!=='internal'&&o!=='javascript'){var b=!1,v=function(){if(b){return};s();b=!0;if(a.attributes.download){var e=document.createElement('a');e.href=a.href;e.download=a.download;e.click()}else{window.location.href=p}},E=function(){e.exit='external';t(e)},C=function(){e.exit='internal-as-outbound';t(e)},I=function(){e.exit='cross-hostname';t(e)};if(K||o=='mailto'||o=='tel'){if(o=='download'){m={event_category:'download',event_label:f||e.title,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}}else if(o=='tel'){m={event_category:'tel',event_label:f||e.title.replace('tel:',''),tel_number:p.replace('tel:',''),link_text:f||e.title,link_url:p,link_type:'tel',link_classes:e.el_classes,link_id:e.el_id,}}else if(o=='mailto'){m={event_category:'mailto',event_label:f||e.title.replace('mailto:',''),email_address:p.replace('mailto:',''),link_text:f||e.title.replace('mailto:',''),link_url:p,link_type:'mailto',link_classes:e.el_classes,link_id:e.el_id,}}else if(o=='internal-as-outbound'){m={event_category:i,event_label:f||e.title,event_name:'click',is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}else if(o=='external'){m={event_category:'outbound-link',event_label:f||e.title,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}else if(o=='cross-hostname'){m={event_category:'cross-hostname',event_label:f||e.title,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}};if(m){l('event',y||p,m,e)}else{if(o&&o!='internal'){m={event_category:o,event_label:f||e.title,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}else{e.exit='type';t(e)}}}else{if(o!='cross-hostname'&&o!='external'&&o!='internal-as-outbound'){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}else{n.returnValue=!1}}};if(o=='download'){m={event_category:'download',event_label:f||e.title,event_callback:v,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}else if(o=='internal-as-outbound'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}else{n.returnValue=!1}};m={event_category:i,event_label:f||e.title,event_callback:v,is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}else if(o=='external'){r=!0;window.onbeforeunload=function(t){m={event_category:'outbound-link',event_label:f||e.title,event_callback:v,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e)}}else if(o=='cross-hostname'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}else{n.returnValue=!1}};m={event_category:'cross-hostname',event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}else{if(o&&o!=='internal'){m={event_category:o,event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}else{e.exit='type';t(e)}};if(o!='external'&&o!='cross-hostname'&&o!='internal-as-outbound'){setTimeout(v,1000)}else{if(o=='external'){setTimeout(E,1100)}else if(o=='cross-hostname'){setTimeout(I,1100)}else{setTimeout(C,1100)}};setTimeout(s,100)}}else{s();e.exit='internal';t(e)}}else{e.exit='notlink';t(e)}};var f=window.location.hash;function m(){if(monsterinsights_frontend.hash_tracking==='true'&&f!=window.location.hash&&monsterinsights_frontend.v4_id){f=window.location.hash;__gtagTracker('config',monsterinsights_frontend.v4_id,{page_path:location.pathname+location.search+location.hash,});n('Hash change to: '+location.pathname+location.search+location.hash)}else{n('Hash change to (untracked): '+location.pathname+location.search+location.hash)}};function s(){if(r){window.onbeforeunload=null}};var a=window;if(a.addEventListener){a.addEventListener('load',function(){document.body.addEventListener('click',p,!1)},!1);window.addEventListener('hashchange',m,!1)}else{if(a.attachEvent){a.attachEvent('onload',function(){document.body.attachEvent('onclick',p)});window.attachEvent('onhashchange',m)}};if(typeof String.prototype.endsWith!=='function'){String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}};if(typeof String.prototype.startsWith!=='function'){String.prototype.startsWith=function(e){return this.indexOf(e)===0}};if(typeof Array.prototype.lastIndexOf!=='function'){Array.prototype.lastIndexOf=function(e){'use strict';if(this===void 0||this===null){throw new TypeError()};var t,n,l=Object(this),i=l.length>>>0;if(i===0){return-1};t=i-1;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0}else if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}};for(n=t>=0?Math.min(t,i-1):i-Math.abs(t);n>=0;n--){if(n in l&&l[n]===e){return n}};return-1}}},MonsterInsightsObject=new MonsterInsights();var monsterinsights_frontend={"js_events_tracking":"true","download_extensions":"doc,pdf,ppt,zip,xls,docx,pptx,xlsx","inbound_paths":"[]","home_url":"https:\/\/pix-geeks.com","hash_tracking":"false","v4_id":"G-CLK0QDTXTW"};/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.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):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});jQuery.noConflict();/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});(function($){'use strict';var createCookie=function(name,value,time){var expires;if(time){var date=new Date();var ms=time;if(typeof time==='object'){ms=time.value;switch(time.type){case 'days':ms=ms*24*60*60*1000;break}}
date.setTime(date.getTime()+ms);expires='; expires='+date.toGMTString()}else{expires=''}
document.cookie=name+'='+value+expires+'; path=/'};var readCookie=function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i+=1){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length)}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length)}}
return null};var slideUp=function(){var
$slideUpSlotWrap=$('.adace-slideup-slot-wrap'),$slideUpCloserBtn=$slideUpSlotWrap.find('.adace-slideup-slot-closer'),SlideupCookie=readCookie('adace_slideup_disabled');$slideUpCloserBtn.on('click',function(e){e.preventDefault();$slideUpSlotWrap.addClass('hidden');createCookie('adace_slideup_disabled',1,24*60*60*1000)});if(SlideupCookie){$slideUpSlotWrap.remove()}};$(document).ready(function(){slideUp()})})(jQuery);(function($){'use strict';$(document).ready(function(){$('.shoppable-image').each(function(){shoppable_image($(this))});$('body').on('shoppableImages',function(e,$content){$content.find('.shoppable-image').each(function(){shoppable_image($(this))})})});var shoppable_image=function(ThisImagemap){if(ThisImagemap.data('aceShoppableImageLoaded')){return}
var Map=ThisImagemap.find('.shoppable-image-map'),HideBtn=ThisImagemap.find('.shoppable-image-hideshow-btn');new Waypoint({element:ThisImagemap,handler:function(direction){if(direction==='down'){ThisImagemap.addClass('pins-visible')}else{ThisImagemap.removeClass('pins-visible')}},offset:'80%'});HideBtn.click(function(e){e.preventDefault();Map.toggleClass('hide-pins')});shoppable_image_resize(ThisImagemap);$(window).resize(function(){shoppable_image_resize(ThisImagemap)});ThisImagemap.data('aceShoppableImageLoaded',!0)};var shoppable_image_resize=function(ThisImagemap){var
Pins=ThisImagemap.find('.shoppable-image-pin');Pins.each(function(){var
ThisPinBody=$(this).find('.shoppable-image-pin-body');ThisPinBody.css({"margin-left":"auto"});var BodyRect=ThisPinBody[0].getBoundingClientRect(),OffsetLeft=BodyRect.x,OffsetRight=(BodyRect.x+BodyRect.width)-window.innerWidth;if(OffsetLeft<0){ThisPinBody.css({"margin-left":-OffsetLeft+'px'})}
if(OffsetRight>0){ThisPinBody.css({"margin-left":-OffsetRight+'px'})}})}})(jQuery);(function($){'use strict';var copyCoupon=function(){var
Coupons=$('.adace-coupon-wrap');Coupons.each(function(){if($(this).hasClass('active')){return}else{$(this).addClass('active')}
var CopyBtn=$(this).find('.coupon-copy'),CopyAction=$(this).find('.coupon-action'),CopyActionText=CopyAction.text(),CopyCode=$(this).find('.coupon-code'),CopyCodeText=CopyCode.text();CopyBtn.click(function(e){e.preventDefault();var CopyArea=$('<input class="copy-area" style="visibillity:hidden;" value="'+CopyCodeText+'" />');CopyCode.prepend(CopyArea);CopyArea=$('.copy-area');CopyArea.select();try{document.execCommand('copy')}catch(err){alert('This feature is not supported in your browser, please copy the coupon manually.');$('.adace-coupon-code').select()}
CopyArea.blur().remove();if(CopyBtn.hasClass('copied')){return}
CopyBtn.addClass('copied blink');setTimeout(function(){CopyAction.html(CopyAction.data('copied'));CopyBtn.removeClass('blink')},375);setTimeout(function(){CopyBtn.addClass('blink')},4625);setTimeout(function(){CopyAction.html(CopyActionText);CopyBtn.removeClass('copied blink')},5000)})})};$(document).ready(function(){copyCoupon()})})(jQuery);jQuery(document).ready(function($){function str_rot13(str){return(str+'').replace(/[a-z]/gi,function(s){return String.fromCharCode(s.charCodeAt(0)+(s.toLowerCase()<'n'?13:-13))})}
$(".obf").click(function(){if($(this).attr("new")){window.open(str_rot13($(this).attr("obf")))}else{window.location=str_rot13($(this).attr("obf"))}
return!1})});/**
 * Owl carousel
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 * @todo Lazy Load Icon
 * @todo prevent animationend bubling
 * @todo itemsScaleUp
 * @todo Test Zepto
 * @todo stagePadding calculate wrong active classes
 */
;(function($,window,document,undefined){function Owl(element,options){this.settings=null;this.options=$.extend({},Owl.Defaults,options);this.$element=$(element);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{'initializing':['busy'],'animating':['busy'],'dragging':['interacting']}};$.each(['onResize','onThrottledResize'],$.proxy(function(i,handler){this._handlers[handler]=$.proxy(this[handler],this)},this));$.each(Owl.Plugins,$.proxy(function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this)},this));$.each(Owl.Workers,$.proxy(function(priority,worker){this._pipe.push({'filter':worker.filter,'run':$.proxy(worker.run,this)})},this));this.setup();this.initialize()}
Owl.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:'swing',slideTransition:'',info:!1,nestedItemSelector:!1,itemElement:'div',stageElement:'div',refreshClass:'owl-refresh',loadedClass:'owl-loaded',loadingClass:'owl-loading',rtlClass:'owl-rtl',responsiveClass:'owl-responsive',dragClass:'owl-drag',itemClass:'owl-item',stageClass:'owl-stage',stageOuterClass:'owl-stage-outer',grabClass:'owl-grab'};Owl.Width={Default:'default',Inner:'inner',Outer:'outer'};Owl.Type={Event:'event',State:'state'};Owl.Plugins={};Owl.Workers=[{filter:['width','settings'],run:function(){this._width=this.$element.width()}},{filter:['width','items','settings'],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)]}},{filter:['items','settings'],run:function(){this.$stage.children('.cloned').remove()}},{filter:['width','items','settings'],run:function(cache){var margin=this.settings.margin||'',grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={'width':'auto','margin-left':rtl?margin:'','margin-right':rtl?'':margin};!grid&&this.$stage.children().css(css);cache.css=css}},{filter:['width','items','settings'],run:function(cache){var width=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];cache.items={merge:!1,width:width};while(iterator--){merge=this._mergers[iterator];merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge;cache.items.merge=merge>1||cache.items.merge;widths[iterator]=!grid?this._items[iterator].width():width*merge}
this._widths=widths}},{filter:['items','settings'],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(settings.items*2,4),size=Math.ceil(items.length/2)*2,repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append='',prepend='';repeat/=2;while(repeat>0){clones.push(this.normalize(clones.length/2,!0));append=append+items[clones[clones.length-1]][0].outerHTML;clones.push(this.normalize(items.length-1-(clones.length-1)/2,!0));prepend=items[clones[clones.length-1]][0].outerHTML+prepend;repeat-=1}
this._clones=clones;$(append).addClass('cloned').appendTo(this.$stage);$(prepend).addClass('cloned').prependTo(this.$stage)}},{filter:['width','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator<size){previous=coordinates[iterator-1]||0;current=this._widths[this.relative(iterator)]+this.settings.margin;coordinates.push(previous+current*rtl)}
this._coordinates=coordinates}},{filter:['width','items','settings'],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={'width':Math.ceil(Math.abs(coordinates[coordinates.length-1]))+padding*2,'padding-left':padding||'','padding-right':padding||''};this.$stage.css(css)}},{filter:['width','items','settings'],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge){while(iterator--){cache.css.width=this._widths[this.relative(iterator)];items.eq(iterator).css(cache.css)}}else if(grid){cache.css.width=cache.items.width;items.css(cache.css)}}},{filter:['items'],run:function(){this._coordinates.length<1&&this.$stage.removeAttr('style')}},{filter:['width','items','settings'],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0;cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current));this.reset(cache.current)}},{filter:['position'],run:function(){this.animate(this.coordinates(this._current))}},{filter:['width','position','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,padding=this.settings.stagePadding*2,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++){inner=this._coordinates[i-1]||0;outer=Math.abs(this._coordinates[i])+padding*rtl;if((this.op(inner,'<=',begin)&&(this.op(inner,'>',end)))||(this.op(outer,'<',begin)&&this.op(outer,'>',end))){matches.push(i)}}
this.$stage.children('.active').removeClass('active');this.$stage.children(':eq('+matches.join('), :eq(')+')').addClass('active');this.$stage.children('.center').removeClass('center');if(this.settings.center){this.$stage.children().eq(this.current()).addClass('center')}}}];Owl.prototype.initializeStage=function(){this.$stage=this.$element.find('.'+this.settings.stageClass);if(this.$stage.length){return}
this.$element.addClass(this.options.loadingClass);this.$stage=$('<'+this.settings.stageElement+'>',{"class":this.settings.stageClass}).wrap($('<div/>',{"class":this.settings.stageOuterClass}));this.$element.append(this.$stage.parent())};Owl.prototype.initializeItems=function(){var $items=this.$element.find('.owl-item');if($items.length){this._items=$items.get().map(function(item){return $(item)});this._mergers=this._items.map(function(){return 1});this.refresh();return}
this.replace(this.$element.children().not(this.$stage.parent()));if(this.isVisible()){this.refresh()}else{this.invalidate('width')}
this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)};Owl.prototype.initialize=function(){this.enter('initializing');this.trigger('initialize');this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl);if(this.settings.autoWidth&&!this.is('pre-loading')){var imgs,nestedSelector,width;imgs=this.$element.find('img');nestedSelector=this.settings.nestedItemSelector?'.'+this.settings.nestedItemSelector:undefined;width=this.$element.children(nestedSelector).width();if(imgs.length&&width<=0){this.preloadAutoWidthImages(imgs)}}
this.initializeStage();this.initializeItems();this.registerEventHandlers();this.leave('initializing');this.trigger('initialized')};Owl.prototype.isVisible=function(){return this.settings.checkVisibility?this.$element.is(':visible'):!0};Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;if(!overwrites){settings=$.extend({},this.options)}else{$.each(overwrites,function(breakpoint){if(breakpoint<=viewport&&breakpoint>match){match=Number(breakpoint)}});settings=$.extend({},this.options,overwrites[match]);if(typeof settings.stagePadding==='function'){settings.stagePadding=settings.stagePadding()}
delete settings.responsive;if(settings.responsiveClass){this.$element.attr('class',this.$element.attr('class').replace(new RegExp('('+this.options.responsiveClass+'-)\\S+\\s','g'),'$1'+match))}}
this.trigger('change',{property:{name:'settings',value:settings}});this._breakpoint=match;this.settings=settings;this.invalidate('settings');this.trigger('changed',{property:{name:'settings',value:this.settings}})};Owl.prototype.optionsLogic=function(){if(this.settings.autoWidth){this.settings.stagePadding=!1;this.settings.merge=!1}};Owl.prototype.prepare=function(item){var event=this.trigger('prepare',{content:item});if(!event.data){event.data=$('<'+this.settings.itemElement+'/>').addClass(this.options.itemClass).append(item)}
this.trigger('prepared',{content:event.data});return event.data};Owl.prototype.update=function(){var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i<n){if(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0){this._pipe[i].run(cache)}
i++}
this._invalidated={};!this.is('valid')&&this.enter('valid')};Owl.prototype.width=function(dimension){dimension=dimension||Owl.Width.Default;switch(dimension){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}};Owl.prototype.refresh=function(){this.enter('refreshing');this.trigger('refresh');this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave('refreshing');this.trigger('refreshed')};Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer);this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)};Owl.prototype.onResize=function(){if(!this._items.length){return!1}
if(this._width===this.$element.width()){return!1}
if(!this.isVisible()){return!1}
this.enter('resizing');if(this.trigger('resize').isDefaultPrevented()){this.leave('resizing');return!1}
this.invalidate('width');this.refresh();this.leave('resizing');this.trigger('resized')};Owl.prototype.registerEventHandlers=function(){if($.support.transition){this.$stage.on($.support.transition.end+'.owl.core',$.proxy(this.onTransitionEnd,this))}
if(this.settings.responsive!==!1){this.on(window,'resize',this._handlers.onThrottledResize)}
if(this.settings.mouseDrag){this.$element.addClass(this.options.dragClass);this.$stage.on('mousedown.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('dragstart.owl.core selectstart.owl.core',function(){return!1})}
if(this.settings.touchDrag){this.$stage.on('touchstart.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('touchcancel.owl.core',$.proxy(this.onDragEnd,this))}};Owl.prototype.onDragStart=function(event){var stage=null;if(event.which===3){return}
if($.support.transform){stage=this.$stage.css('transform').replace(/.*\(|\)| /g,'').split(',');stage={x:stage[stage.length===16?12:4],y:stage[stage.length===16?13:5]}}else{stage=this.$stage.position();stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top}}
if(this.is('animating')){$.support.transform?this.animate(stage.x):this.$stage.stop()
this.invalidate('position')}
this.$element.toggleClass(this.options.grabClass,event.type==='mousedown');this.speed(0);this._drag.time=new Date().getTime();this._drag.target=$(event.target);this._drag.stage.start=stage;this._drag.stage.current=stage;this._drag.pointer=this.pointer(event);$(document).on('mouseup.owl.core touchend.owl.core',$.proxy(this.onDragEnd,this));$(document).one('mousemove.owl.core touchmove.owl.core',$.proxy(function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on('mousemove.owl.core touchmove.owl.core',$.proxy(this.onDragMove,this));if(Math.abs(delta.x)<Math.abs(delta.y)&&this.is('valid')){return}
event.preventDefault();this.enter('dragging');this.trigger('drag')},this))};Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);if(!this.is('dragging')){return}
event.preventDefault();if(this.settings.loop){minimum=this.coordinates(this.minimum());maximum=this.coordinates(this.maximum()+1)-minimum;stage.x=(((stage.x-minimum)%maximum+maximum)%maximum)+minimum}else{minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum());maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum());pull=this.settings.pullDrag?-1*delta.x/5:0;stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull)}
this._drag.stage.current=stage;this.animate(stage.x)};Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?'left':'right';$(document).off('.owl.core');this.$element.removeClass(this.options.grabClass);if(delta.x!==0&&this.is('dragging')||!this.is('valid')){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(this.closest(stage.x,delta.x!==0?direction:this._drag.direction));this.invalidate('position');this.update();this._drag.direction=direction;if(Math.abs(delta.x)>3||new Date().getTime()-this._drag.time>300){this._drag.target.one('click.owl.core',function(){return!1})}}
if(!this.is('dragging')){return}
this.leave('dragging');this.trigger('dragged')};Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();if(!this.settings.freeDrag){$.each(coordinates,$.proxy(function(index,value){if(direction==='left'&&coordinate>value-pull&&coordinate<value+pull){position=index}else if(direction==='right'&&coordinate>value-width-pull&&coordinate<value-width+pull){position=index+1}else if(this.op(coordinate,'<',value)&&this.op(coordinate,'>',coordinates[index+1]!==undefined?coordinates[index+1]:value-width)){position=direction==='left'?index+1:index}
return position===-1},this))}
if(!this.settings.loop){if(this.op(coordinate,'>',coordinates[this.minimum()])){position=coordinate=this.minimum()}else if(this.op(coordinate,'<',coordinates[this.maximum()])){position=coordinate=this.maximum()}}
return position};Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is('animating')&&this.onTransitionEnd();if(animate){this.enter('animating');this.trigger('translate')}
if($.support.transform3d&&$.support.transition){this.$stage.css({transform:'translate3d('+coordinate+'px,0px,0px)',transition:(this.speed()/1000)+'s'+(this.settings.slideTransition?' '+this.settings.slideTransition:'')})}else if(animate){this.$stage.animate({left:coordinate+'px'},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this))}else{this.$stage.css({left:coordinate+'px'})}};Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0};Owl.prototype.current=function(position){if(position===undefined){return this._current}
if(this._items.length===0){return undefined}
position=this.normalize(position);if(this._current!==position){var event=this.trigger('change',{property:{name:'position',value:position}});if(event.data!==undefined){position=this.normalize(event.data)}
this._current=position;this.invalidate('position');this.trigger('changed',{property:{name:'position',value:this._current}})}
return this._current};Owl.prototype.invalidate=function(part){if($.type(part)==='string'){this._invalidated[part]=!0;this.is('valid')&&this.leave('valid')}
return $.map(this._invalidated,function(v,i){return i})};Owl.prototype.reset=function(position){position=this.normalize(position);if(position===undefined){return}
this._speed=0;this._current=position;this.suppress(['translate','translated']);this.animate(this.coordinates(position));this.release(['translate','translated'])};Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;if(!this.isNumeric(position)||n<1){position=undefined}else if(position<0||position>=n+m){position=((position-m/2)%n+n)%n+m/2}
return position};Owl.prototype.relative=function(position){position-=this._clones.length/2;return this.normalize(position,!0)};Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop){maximum=this._clones.length/2+this._items.length-1}else if(settings.autoWidth||settings.merge){iterator=this._items.length;if(iterator){reciprocalItemsWidth=this._items[--iterator].width();elementWidth=this.$element.width();while(iterator--){reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin;if(reciprocalItemsWidth>elementWidth){break}}}
maximum=iterator+1}else if(settings.center){maximum=this._items.length-1}else{maximum=this._items.length-settings.items}
if(relative){maximum-=this._clones.length/2}
return Math.max(maximum,0)};Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2};Owl.prototype.items=function(position){if(position===undefined){return this._items.slice()}
position=this.normalize(position,!0);return this._items[position]};Owl.prototype.mergers=function(position){if(position===undefined){return this._mergers.slice()}
position=this.normalize(position,!0);return this._mergers[position]};Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2===0?even+index/2:odd-(index+1)/2};if(position===undefined){return $.map(this._clones,function(v,i){return map(i)})}
return $.map(this._clones,function(v,i){return v===position?map(i):null})};Owl.prototype.speed=function(speed){if(speed!==undefined){this._speed=speed}
return this._speed};Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;if(position===undefined){return $.map(this._coordinates,$.proxy(function(coordinate,index){return this.coordinates(index)},this))}
if(this.settings.center){if(this.settings.rtl){multiplier=-1;newPosition=position+1}
coordinate=this._coordinates[position];coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier}else{coordinate=this._coordinates[newPosition]||0}
coordinate=Math.ceil(coordinate);return coordinate};Owl.prototype.duration=function(from,to,factor){if(factor===0){return 0}
return Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs((factor||this.settings.smartSpeed))};Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();if(this.settings.loop){if(!this.settings.rewind&&Math.abs(distance)>items/2){distance+=direction*-1*items}
position=current+distance;revert=((position-minimum)%items+items)%items+minimum;if(revert!==position&&revert-distance<=maximum&&revert-distance>0){current=revert-distance;position=revert;this.reset(current)}}else if(this.settings.rewind){maximum+=1;position=(position%maximum+maximum)%maximum}else{position=Math.max(minimum,Math.min(maximum,position))}
this.speed(this.duration(current,position,speed));this.current(position);if(this.isVisible()){this.update()}};Owl.prototype.next=function(speed){speed=speed||!1;this.to(this.relative(this.current())+1,speed)};Owl.prototype.prev=function(speed){speed=speed||!1;this.to(this.relative(this.current())-1,speed)};Owl.prototype.onTransitionEnd=function(event){if(event!==undefined){event.stopPropagation();if((event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)){return!1}}
this.leave('animating');this.trigger('translated')};Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window){width=$(this.options.responsiveBaseElement).width()}else if(window.innerWidth){width=window.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth){width=document.documentElement.clientWidth}else{console.warn('Can not detect viewport width.')}
return width};Owl.prototype.replace=function(content){this.$stage.empty();this._items=[];if(content){content=(content instanceof jQuery)?content:$(content)}
if(this.settings.nestedItemSelector){content=content.find('.'+this.settings.nestedItemSelector)}
content.filter(function(){return this.nodeType===1}).each($.proxy(function(index,item){item=this.prepare(item);this.$stage.append(item);this._items.push(item);this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate('items')};Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=position===undefined?this._items.length:this.normalize(position,!0);content=content instanceof jQuery?content:$(content);this.trigger('add',{content:content,position:position});content=this.prepare(content);if(this._items.length===0||position===this._items.length){this._items.length===0&&this.$stage.append(content);this._items.length!==0&&this._items[position-1].after(content);this._items.push(content);this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)}else{this._items[position].before(content);this._items.splice(position,0,content);this._mergers.splice(position,0,content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)}
this._items[current]&&this.reset(this._items[current].index());this.invalidate('items');this.trigger('added',{content:content,position:position})};Owl.prototype.remove=function(position){position=this.normalize(position,!0);if(position===undefined){return}
this.trigger('remove',{content:this._items[position],position:position});this._items[position].remove();this._items.splice(position,1);this._mergers.splice(position,1);this.invalidate('items');this.trigger('removed',{content:null,position:position})};Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy(function(i,element){this.enter('pre-loading');element=$(element);$(new Image()).one('load',$.proxy(function(e){element.attr('src',e.target.src);element.css('opacity',1);this.leave('pre-loading');!this.is('pre-loading')&&!this.is('initializing')&&this.refresh()},this)).attr('src',element.attr('src')||element.attr('data-src')||element.attr('data-src-retina'))},this))};Owl.prototype.destroy=function(){this.$element.off('.owl.core');this.$stage.off('.owl.core');$(document).off('.owl.core');if(this.settings.responsive!==!1){window.clearTimeout(this.resizeTimer);this.off(window,'resize',this._handlers.onThrottledResize)}
for(var i in this._plugins){this._plugins[i].destroy()}
this.$stage.children('.cloned').remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$stage.remove();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr('class',this.$element.attr('class').replace(new RegExp(this.options.responsiveClass+'-\\S+\\s','g'),'')).removeData('owl.carousel')};Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case '<':return rtl?a>b:a<b;case '>':return rtl?a<b:a>b;case '>=':return rtl?a<=b:a>=b;case '<=':return rtl?a>=b:a<=b;default:break}};Owl.prototype.on=function(element,event,listener,capture){if(element.addEventListener){element.addEventListener(event,listener,capture)}else if(element.attachEvent){element.attachEvent('on'+event,listener)}};Owl.prototype.off=function(element,event,listener,capture){if(element.removeEventListener){element.removeEventListener(event,listener,capture)}else if(element.detachEvent){element.detachEvent('on'+event,listener)}};Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(['on',name,namespace],function(v){return v}).join('-').toLowerCase()),event=$.Event([name,'owl',namespace||'carousel'].join('.').toLowerCase(),$.extend({relatedTarget:this},status,data));if(!this._supress[name]){$.each(this._plugins,function(name,plugin){if(plugin.onTrigger){plugin.onTrigger(event)}});this.register({type:Owl.Type.Event,name:name});this.$element.trigger(event);if(this.settings&&typeof this.settings[handler]==='function'){this.settings[handler].call(this,event)}}
return event};Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){if(this._states.current[name]===undefined){this._states.current[name]=0}
this._states.current[name]++},this))};Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]--},this))};Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if(!$.event.special[object.name]){$.event.special[object.name]={}}
if(!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){if(_default&&_default.apply&&(!e.namespace||e.namespace.indexOf('owl')===-1)){return _default.apply(this,arguments)}
return e.namespace&&e.namespace.indexOf('owl')>-1};$.event.special[object.name].owl=!0}}else if(object.type===Owl.Type.State){if(!this._states.tags[object.name]){this._states.tags[object.name]=object.tags}else{this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags)}
this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy(function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i},this))}};Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=!0},this))};Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event]},this))};Owl.prototype.pointer=function(event){var result={x:null,y:null};event=event.originalEvent||event||window.event;event=event.touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event;if(event.pageX){result.x=event.pageX;result.y=event.pageY}else{result.x=event.clientX;result.y=event.clientY}
return result};Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number))};Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y}};$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data('owl.carousel');if(!data){data=new Owl(this,typeof option=='object'&&option);$this.data('owl.carousel',data);$.each(['next','prev','to','destroy','refresh','replace','add','remove'],function(i,event){data.register({type:Owl.Type.Event,name:event});data.$element.on(event+'.owl.carousel.core',$.proxy(function(e){if(e.namespace&&e.relatedTarget!==this){this.suppress([event]);data[event].apply(this,[].slice.call(arguments,1));this.release([event])}},data))})}
if(typeof option=='string'&&option.charAt(0)!=='_'){data[option].apply(data,args)}})};$.fn.owlCarousel.Constructor=Owl})(window.Zepto||window.jQuery,window,document);
/**
 * AutoRefresh Plugin
 * @version 2.3.4
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel;this._interval=null;this._visible=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoRefresh){this.watch()}},this)};this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options);this._core.$element.on(this._handlers)};AutoRefresh.Defaults={autoRefresh:!0,autoRefreshInterval:500};AutoRefresh.prototype.watch=function(){if(this._interval){return}
this._visible=this._core.isVisible();this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval)};AutoRefresh.prototype.refresh=function(){if(this._core.isVisible()===this._visible){return}
this._visible=!this._visible;this._core.$element.toggleClass('owl-hidden',!this._visible);this._visible&&(this._core.invalidate('width')&&this._core.refresh())};AutoRefresh.prototype.destroy=function(){var handler,property;window.clearInterval(this._interval);for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh})(window.Zepto||window.jQuery,window,document);
/**
 * Lazy Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel;this._loaded=[];this._handlers={'initialized.owl.carousel change.owl.carousel resized.owl.carousel':$.proxy(function(e){if(!e.namespace){return}
if(!this._core.settings||!this._core.settings.lazyLoad){return}
if((e.property&&e.property.name=='position')||e.type=='initialized'){var settings=this._core.settings,n=(settings.center&&Math.ceil(settings.items/2)||settings.items),i=((settings.center&&n*-1)||0),position=(e.property&&e.property.value!==undefined?e.property.value:this._core.current())+i,clones=this._core.clones().length,load=$.proxy(function(i,v){this.load(v)},this);if(settings.lazyLoadEager>0){n+=settings.lazyLoadEager;if(settings.loop){position-=settings.lazyLoadEager;n++}}
while(i++<n){this.load(clones/2+this._core.relative(position));clones&&$.each(this._core.clones(this._core.relative(position)),load);position++}}},this)};this._core.options=$.extend({},Lazy.Defaults,this._core.options);this._core.$element.on(this._handlers)};Lazy.Defaults={lazyLoad:!1,lazyLoadEager:0};Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find('.owl-lazy');if(!$elements||$.inArray($item.get(0),this._loaded)>-1){return}
$elements.each($.proxy(function(index,element){var $element=$(element),image,url=(window.devicePixelRatio>1&&$element.attr('data-src-retina'))||$element.attr('data-src')||$element.attr('data-srcset');this._core.trigger('load',{element:$element,url:url},'lazy');if($element.is('img')){$element.one('load.owl.lazy',$.proxy(function(){$element.css('opacity',1);this._core.trigger('loaded',{element:$element,url:url},'lazy')},this)).attr('src',url)}else if($element.is('source')){$element.one('load.owl.lazy',$.proxy(function(){this._core.trigger('loaded',{element:$element,url:url},'lazy')},this)).attr('srcset',url)}else{image=new Image();image.onload=$.proxy(function(){$element.css({'background-image':'url("'+url+'")','opacity':'1'});this._core.trigger('loaded',{element:$element,url:url},'lazy')},this);image.src=url}},this));this._loaded.push($item.get(0))};Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this._core.$element.off(handler,this.handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy})(window.Zepto||window.jQuery,window,document);
/**
 * AutoHeight Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel;this._previousHeight=null;this._handlers={'initialized.owl.carousel refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight){this.update()}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.property.name==='position'){this.update()}},this),'loaded.owl.lazy':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.element.closest('.'+this._core.settings.itemClass).index()===this._core.current()){this.update()}},this)};this._core.options=$.extend({},AutoHeight.Defaults,this._core.options);this._core.$element.on(this._handlers);this._intervalId=null;var refThis=this;$(window).on('load',function(){if(refThis._core.settings.autoHeight){refThis.update()}});$(window).resize(function(){if(refThis._core.settings.autoHeight){if(refThis._intervalId!=null){clearTimeout(refThis._intervalId)}
refThis._intervalId=setTimeout(function(){refThis.update()},250)}})};AutoHeight.Defaults={autoHeight:!1,autoHeightClass:'owl-height'};AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,lazyLoadEnabled=this._core.settings.lazyLoad,visible=this._core.$stage.children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,function(index,item){heights.push($(item).height())});maxheight=Math.max.apply(null,heights);if(maxheight<=1&&lazyLoadEnabled&&this._previousHeight){maxheight=this._previousHeight}
this._previousHeight=maxheight;this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass)};AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!=='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight})(window.Zepto||window.jQuery,window,document);
/**
 * Video Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var Video=function(carousel){this._core=carousel;this._videos={};this._playing=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace){this._core.register({type:'state',name:'playing',tags:['interacting']})}},this),'resize.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.video&&this.isInFullScreen()){e.preventDefault()}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.is('resizing')){this._core.$stage.find('.cloned .owl-video-frame').remove()}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'&&this._playing){this.stop()}},this),'prepared.owl.carousel':$.proxy(function(e){if(!e.namespace){return}
var $element=$(e.content).find('.owl-video');if($element.length){$element.css('display','none');this.fetch($element,$(e.content))}},this)};this._core.options=$.extend({},Video.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on('click.owl.video','.owl-video-play-icon',$.proxy(function(e){this.play(e)},this))};Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1};Video.prototype.fetch=function(target,item){var type=(function(){if(target.attr('data-vimeo-id')){return'vimeo'}else if(target.attr('data-vzaar-id')){return'vzaar'}else{return'youtube'}})(),id=target.attr('data-vimeo-id')||target.attr('data-youtube-id')||target.attr('data-vzaar-id'),width=target.attr('data-width')||this._core.settings.videoWidth,height=target.attr('data-height')||this._core.settings.videoHeight,url=target.attr('href');if(url){id=url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(id[3].indexOf('youtu')>-1){type='youtube'}else if(id[3].indexOf('vimeo')>-1){type='vimeo'}else if(id[3].indexOf('vzaar')>-1){type='vzaar'}else{throw new Error('Video URL not supported.')}
id=id[6]}else{throw new Error('Missing video URL.')}
this._videos[url]={type:type,id:id,width:width,height:height};item.attr('data-video',url);this.thumbnail(target,this._videos[url])};Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?'width:'+video.width+'px;height:'+video.height+'px;':'',customTn=target.find('img'),srcType='src',lazyClass='',settings=this._core.settings,create=function(path){icon='<div class="owl-video-play-icon"></div>';if(settings.lazyLoad){tnLink=$('<div/>',{"class":'owl-video-tn '+lazyClass,"srcType":path})}else{tnLink=$('<div/>',{"class":"owl-video-tn","style":'opacity:1;background-image:url('+path+')'})}
target.after(tnLink);target.after(icon)};target.wrap($('<div/>',{"class":"owl-video-wrapper","style":dimensions}));if(this._core.settings.lazyLoad){srcType='data-src';lazyClass='owl-lazy'}
if(customTn.length){create(customTn.attr(srcType));customTn.remove();return!1}
if(video.type==='youtube'){path="//img.youtube.com/vi/"+video.id+"/hqdefault.jpg";create(path)}else if(video.type==='vimeo'){$.ajax({type:'GET',url:'//vimeo.com/api/v2/video/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data[0].thumbnail_large;create(path)}})}else if(video.type==='vzaar'){$.ajax({type:'GET',url:'//vzaar.com/api/videos/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data.framegrab_url;create(path)}})}};Video.prototype.stop=function(){this._core.trigger('stop',null,'video');this._playing.find('.owl-video-frame').remove();this._playing.removeClass('owl-video-playing');this._playing=null;this._core.leave('playing');this._core.trigger('stopped',null,'video')};Video.prototype.play=function(event){var target=$(event.target),item=target.closest('.'+this._core.settings.itemClass),video=this._videos[item.attr('data-video')],width=video.width||'100%',height=video.height||this._core.$stage.height(),html,iframe;if(this._playing){return}
this._core.enter('playing');this._core.trigger('play',null,'video');item=this._core.items(this._core.relative(item.index()));this._core.reset(item.index());html=$('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>');html.attr('height',height);html.attr('width',width);if(video.type==='youtube'){html.attr('src','//www.youtube.com/embed/'+video.id+'?autoplay=1&rel=0&v='+video.id)}else if(video.type==='vimeo'){html.attr('src','//player.vimeo.com/video/'+video.id+'?autoplay=1')}else if(video.type==='vzaar'){html.attr('src','//view.vzaar.com/'+video.id+'/player?autoplay=true')}
iframe=$(html).wrap('<div class="owl-video-frame" />').insertAfter(item.find('.owl-video'));this._playing=item.addClass('owl-video-playing')};Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass('owl-video-frame')};Video.prototype.destroy=function(){var handler,property;this._core.$element.off('click.owl.video');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Video=Video})(window.Zepto||window.jQuery,window,document);
/**
 * Animate Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var Animate=function(scope){this.core=scope;this.core.options=$.extend({},Animate.Defaults,this.core.options);this.swapping=!0;this.previous=undefined;this.next=undefined;this.handlers={'change.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.previous=this.core.current();this.next=e.property.value}},this),'drag.owl.carousel dragged.owl.carousel translated.owl.carousel':$.proxy(function(e){if(e.namespace){this.swapping=e.type=='translated'}},this),'translate.owl.carousel':$.proxy(function(e){if(e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)){this.swap()}},this)};this.core.$element.on(this.handlers)};Animate.Defaults={animateOut:!1,animateIn:!1};Animate.prototype.swap=function(){if(this.core.settings.items!==1){return}
if(!$.support.animation||!$.support.transition){return}
this.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;if(this.core.current()===this.previous){return}
if(outgoing){left=this.core.coordinates(this.previous)-this.core.coordinates(this.next);previous.one($.support.animation.end,clear).css({'left':left+'px'}).addClass('animated owl-animated-out').addClass(outgoing)}
if(incoming){next.one($.support.animation.end,clear).addClass('animated owl-animated-in').addClass(incoming)}};Animate.prototype.clear=function(e){$(e.target).css({'left':''}).removeClass('animated owl-animated-out owl-animated-in').removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.onTransitionEnd()};Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this.core.$element.off(handler,this.handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Animate=Animate})(window.Zepto||window.jQuery,window,document);
/**
 * Autoplay Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author Artus Kolanowski
 * @author David Deutsch
 * @author Tom De Caluwé
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel;this._call=null;this._time=0;this._timeout=0;this._paused=!0;this._handlers={'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='settings'){if(this._core.settings.autoplay){this.play()}else{this.stop()}}else if(e.namespace&&e.property.name==='position'&&this._paused){this._time=0}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoplay){this.play()}},this),'play.owl.autoplay':$.proxy(function(e,t,s){if(e.namespace){this.play(t,s)}},this),'stop.owl.autoplay':$.proxy(function(e){if(e.namespace){this.stop()}},this),'mouseover.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause()}},this),'mouseleave.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.play()}},this),'touchstart.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause()}},this),'touchend.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause){this.play()}},this)};this._core.$element.on(this._handlers);this._core.options=$.extend({},Autoplay.Defaults,this._core.options)};Autoplay.Defaults={autoplay:!1,autoplayTimeout:5000,autoplayHoverPause:!1,autoplaySpeed:!1};Autoplay.prototype._next=function(speed){this._call=window.setTimeout($.proxy(this._next,this,speed),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read());if(this._core.is('interacting')||document.hidden){return}
this._core.next(speed||this._core.settings.autoplaySpeed)}
Autoplay.prototype.read=function(){return new Date().getTime()-this._time};Autoplay.prototype.play=function(timeout,speed){var elapsed;if(!this._core.is('rotating')){this._core.enter('rotating')}
timeout=timeout||this._core.settings.autoplayTimeout;elapsed=Math.min(this._time%(this._timeout||timeout),timeout);if(this._paused){this._time=this.read();this._paused=!1}else{window.clearTimeout(this._call)}
this._time+=this.read()%timeout-elapsed;this._timeout=timeout;this._call=window.setTimeout($.proxy(this._next,this,speed),timeout-elapsed)};Autoplay.prototype.stop=function(){if(this._core.is('rotating')){this._time=0;this._paused=!0;window.clearTimeout(this._call);this._core.leave('rotating')}};Autoplay.prototype.pause=function(){if(this._core.is('rotating')&&!this._paused){this._time=this.read();this._paused=!0;window.clearTimeout(this._call)}};Autoplay.prototype.destroy=function(){var handler,property;this.stop();for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay})(window.Zepto||window.jQuery,window,document);
/**
 * Navigation Plugin
 * @version 2.3.4
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){'use strict';var Navigation=function(carousel){this._core=carousel;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={'prepared.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.push('<div class="'+this._core.settings.dotClass+'">'+$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot')+'</div>')}},this),'added.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,0,this._templates.pop())}},this),'remove.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,1)}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.draw()}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&!this._initialized){this._core.trigger('initialize',null,'navigation');this.initialize();this.update();this.draw();this._initialized=!0;this._core.trigger('initialized',null,'navigation')}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._initialized){this._core.trigger('refresh',null,'navigation');this.update();this.draw();this._core.trigger('refreshed',null,'navigation')}},this)};this._core.options=$.extend({},Navigation.Defaults,this._core.options);this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navText:['<span aria-label="'+'Previous'+'">&#x2039;</span>','<span aria-label="'+'Next'+'">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],slideBy:1,dotClass:'owl-dot',dotsClass:'owl-dots',dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1};Navigation.prototype.initialize=function(){var override,settings=this._core.settings;this._controls.$relative=(settings.navContainer?$(settings.navContainer):$('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');this._controls.$previous=$('<'+settings.navElement+'>').addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on('click',$.proxy(function(e){this.prev(settings.navSpeed)},this));this._controls.$next=$('<'+settings.navElement+'>').addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on('click',$.proxy(function(e){this.next(settings.navSpeed)},this));if(!settings.dotsData){this._templates=[$('<button role="button">').addClass(settings.dotClass).append($('<span>')).prop('outerHTML')]}
this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');this._controls.$absolute.on('click','button',$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault();this.to(index,settings.dotsSpeed)},this));for(override in this._overrides){this._core[override]=$.proxy(this[override],this)}};Navigation.prototype.destroy=function(){var handler,control,property,override,settings;settings=this._core.settings;for(handler in this._handlers){this.$element.off(handler,this._handlers[handler])}
for(control in this._controls){if(control==='$relative'&&settings.navContainer){this._controls[control].html('')}else{this._controls[control].remove()}}
for(override in this.overides){this._core[override]=this._overrides[override]}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if(settings.slideBy!=='page'){settings.slideBy=Math.min(settings.slideBy,settings.items)}
if(settings.dots||settings.slideBy=='page'){this._pages=[];for(i=lower,j=0,k=0;i<upper;i++){if(j>=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum){break}
j=0,++k}
j+=this._core.mergers(this._core.relative(i))}}};Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass('disabled',!settings.nav||disabled);if(settings.nav){this._controls.$previous.toggleClass('disabled',!loop&&index<=this._core.minimum(!0));this._controls.$next.toggleClass('disabled',!loop&&index>=this._core.maximum(!0))}
this._controls.$absolute.toggleClass('disabled',!settings.dots||disabled);if(settings.dots){difference=this._pages.length-this._controls.$absolute.children().length;if(settings.dotsData&&difference!==0){this._controls.$absolute.html(this._templates.join(''))}else if(difference>0){this._controls.$absolute.append(new Array(difference+1).join(this._templates[0]))}else if(difference<0){this._controls.$absolute.children().slice(difference).remove()}
this._controls.$absolute.find('.active').removeClass('active');this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass('active')}};Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}};Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current},this)).pop()};Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;if(settings.slideBy=='page'){position=$.inArray(this.current(),this._pages);length=this._pages.length;successor?++position:--position;position=this._pages[((position%length)+length)%length].start}else{position=this._core.relative(this._core.current());length=this._core.items().length;successor?position+=settings.slideBy:position-=settings.slideBy}
return position};Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)};Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)};Navigation.prototype.to=function(position,speed,standard){var length;if(!standard&&this._pages.length){length=this._pages.length;$.proxy(this._overrides.to,this._core)(this._pages[((position%length)+length)%length].start,speed)}else{$.proxy(this._overrides.to,this._core)(position,speed)}};$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation})(window.Zepto||window.jQuery,window,document);
/**
 * Hash Plugin
 * @version 2.3.4
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){'use strict';var Hash=function(carousel){this._core=carousel;this._hashes={};this.$element=this._core.$element;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.startPosition==='URLHash'){$(window).trigger('hashchange.owl.navigation')}},this),'prepared.owl.carousel':$.proxy(function(e){if(e.namespace){var hash=$(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');if(!hash){return}
this._hashes[hash]=e.content}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null}).join();if(!hash||window.location.hash.slice(1)===hash){return}
window.location.hash=hash}},this)};this._core.options=$.extend({},Hash.Defaults,this._core.options);this.$element.on(this._handlers);$(window).on('hashchange.owl.navigation',$.proxy(function(e){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash]);if(position===undefined||position===this._core.current()){return}
this._core.to(this._core.relative(position),!1,!0)},this))};Hash.Defaults={URLhashListener:!1};Hash.prototype.destroy=function(){var handler,property;$(window).off('hashchange.owl.navigation');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])}
for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Hash=Hash})(window.Zepto||window.jQuery,window,document);
/**
 * Support Plugin
 *
 * @version 2.3.4
 * @author Vivid Planet Software GmbH
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var style=$('<support>').get(0).style,prefixes='Webkit Moz O ms'.split(' '),events={transition:{end:{WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd',transition:'transitionend'}},animation:{end:{WebkitAnimation:'webkitAnimationEnd',MozAnimation:'animationend',OAnimation:'oAnimationEnd',animation:'animationend'}}},tests={csstransforms:function(){return!!test('transform')},csstransforms3d:function(){return!!test('perspective')},csstransitions:function(){return!!test('transition')},cssanimations:function(){return!!test('animation')}};function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);$.each((property+' '+prefixes.join(upper+' ')+upper).split(' '),function(i,property){if(style[property]!==undefined){result=prefixed?property:!0;return!1}});return result}
function prefixed(property){return test(property,!0)}
if(tests.csstransitions()){$.support.transition=new String(prefixed('transition'))
$.support.transition.end=events.transition.end[$.support.transition]}
if(tests.cssanimations()){$.support.animation=new String(prefixed('animation'))
$.support.animation.end=events.animation.end[$.support.animation]}
if(tests.csstransforms()){$.support.transform=new String(prefixed('transform'));$.support.transform3d=tests.csstransforms3d()}})(window.Zepto||window.jQuery,window,document);jQuery(document).ready(function($){$('.owl-carousel').each(function(){var $carousel=$(this);var options=$carousel.data('options');$carousel.owlCarousel(options)})});jQuery(document).ready(function($){function showMore(){var rows=$(".taxopress-table-row");rows.each(function(index,row){if(index>=6){$(row).show()}});$(".taxopress-see-more-link").hide();$(".taxopress-close-table-link").show()}
function closeTable(){var rows=$(".taxopress-table-row");rows.each(function(index,row){if(index>=6){$(row).hide()}});$(".taxopress-close-table-link").hide();$(".taxopress-see-more-link").show()}
$(document).on('click','.taxopress-see-more-link',function(e){e.preventDefault();showMore()});$(document).on('click','.taxopress-close-table-link',function(e){e.preventDefault();closeTable()})});if(self!=top){top.location=self.location};window.pushMST_config={"vapidPK":"BFXcgLWT5y7K5XqkNSjTkunpgMuCjAmrNmKP2qV2ZDXVUnZtehqZLNitv9nC3yeKFShi1mlav5xZxHALFlt52mc","disableOverlay":!0,"i18n":{}};var pushmasterTag=document.createElement('script');pushmasterTag.src="https://cdn.pushmaster-cdn.xyz/scripts/publishers/618db2bbab098700095b5253/SDK.js";pushmasterTag.setAttribute('defer','');var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(pushmasterTag,firstScriptTag);;if("undefined"!=typeof localStorage){var nsfwItemId=document.getElementsByName("g1:nsfw-item-id");nsfwItemId=nsfwItemId.length>0?nsfwItemId[0].getAttribute("content"):"g1_nsfw_off",window.g1SwitchNSFW=function(e){e?(localStorage.setItem(nsfwItemId,1),document.documentElement.classList.add("g1-nsfw-off")):(localStorage.removeItem(nsfwItemId),document.documentElement.classList.remove("g1-nsfw-off"))};try{var nsfwmode=localStorage.getItem(nsfwItemId);window.g1SwitchNSFW(nsfwmode)}catch(e){}};jQuery(document).ready(function($){$("#toc").empty();var toc_item=null;var toc_list=null;var index=0;$(".g1-column-2of3").find("h2, h3, h4").each(function(){var skip=0;var anchor="<a name='toc_"+index+"'></a>";$(this).before(anchor);anchor=$(this).text();var element="<li><a href='#toc_"+index+"'>"+anchor+"</a></li>";toc_item=$(element);toc_item.append(toc_list);toc_item.appendTo("#toc");index++})});jQuery(document).ready(function($){var rowCount=$('.other_cast tbody tr').length;if(rowCount<=10){$('#show_full_cast').hide()}
$('#show_full_cast').click(function(){$('.other_cast tbody tr').show();$(this).hide()})});document.getElementById("ak_js_1").setAttribute("value",(new Date()).getTime());jQuery(function($){$('#comments_list').css('display','none');$('.show_comments').click(function(){$('#comments_list').css('display','block');$('#comments_list li').css('display','none');var grade=$(this).attr("data-grade");if(grade){$("."+grade).css('display','block')}
var comment_id=$(this).attr("data-comment-id");if(comment_id){$("."+comment_id).css('display','block')}});$('.show_all_comments').click(function(){$('#comments_list').css('display','block');$('#comments_list li').css('display','block')})});jQuery(document).ready(function($){$('.owl-carousel').each(function(){var $carousel=$(this);var options=$carousel.data('options');$carousel.owlCarousel(options)})});const lazyloadRunObserver=()=>{const lazyloadBackgrounds=document.querySelectorAll(`.e-con.e-parent:not(.e-lazyloaded)`);const lazyloadBackgroundObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){let lazyloadBackground=entry.target;if(lazyloadBackground){lazyloadBackground.classList.add('e-lazyloaded')}
lazyloadBackgroundObserver.unobserve(entry.target)}})},{rootMargin:'200px 0px 200px 0px'});lazyloadBackgrounds.forEach((lazyloadBackground)=>{lazyloadBackgroundObserver.observe(lazyloadBackground)})};const events=['DOMContentLoaded','elementor/lazyload/observe',];events.forEach((event)=>{document.addEventListener(event,lazyloadRunObserver)});var bU="https://pix-geeks.com/wp-content/uwkmsq-1894/wp-youtube-lyte/lyte/";var mOs=null;style=document.createElement("style");style.type="text/css";rules=document.createTextNode(".lyte-wrapper-audio div, .lyte-wrapper div {margin:0px; overflow:hidden;} .lyte,.lyMe{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;background-color:#777;} .fourthree .lyMe, .fourthree .lyte {padding-bottom:75%;} .lidget{margin-bottom:5px;} .lidget .lyte, .widget .lyMe {padding-bottom:0!important;height:100%!important;} .lyte-wrapper-audio .lyte{height:38px!important;overflow:hidden;padding:0!important} .lyMe iframe, .lyte iframe,.lyte .pL{position:absolute !important;top:0;left:0;width:100%;height:100%!important;background:no-repeat scroll center #000;background-size:cover;cursor:pointer} .tC{left:0;position:absolute;top:0;width:100%} .tC{background-image:linear-gradient(to bottom,rgba(0,0,0,0.6),rgba(0,0,0,0))} .tT{color:#FFF;font-family:Roboto,sans-serif;font-size:16px;height:auto;text-align:left;padding:5px 10px 50px 10px} .play{background:no-repeat scroll 0 0 transparent;width:88px;height:63px;position:absolute;left:43%;left:calc(50% - 44px);left:-webkit-calc(50% - 44px);top:38%;top:calc(50% - 31px);top:-webkit-calc(50% - 31px);} .widget .play {top:30%;top:calc(45% - 31px);top:-webkit-calc(45% - 31px);transform:scale(0.6);-webkit-transform:scale(0.6);-ms-transform:scale(0.6);} .lyte:hover .play{background-position:0 -65px;} .lyte-audio .pL{max-height:38px!important} .lyte-audio iframe{height:438px!important} .lyte .ctrl{background:repeat scroll 0 -220px rgba(0,0,0,0.3);width:100%;height:40px;bottom:0px;left:0;position:absolute;} .lyte-wrapper .ctrl{display:none}.Lctrl{background:no-repeat scroll 0 -137px transparent;width:158px;height:40px;bottom:0;left:0;position:absolute} .Rctrl{background:no-repeat scroll -42px -179px transparent;width:117px;height:40px;bottom:0;right:0;position:absolute;padding-right:10px;}.lyte-audio .play{display:none}.lyte-audio .ctrl{background-color:rgba(0,0,0,1)}.lyte .hidden{display:none} .lyte-align.aligncenter{display:flex;flex-direction:column;align-items:center}.lyte-align.alignwide > *{width:auto !important}.lyte-align.alignfull > *{width:auto !important}");if(style.styleSheet){style.styleSheet.cssText=rules.nodeValue}else{style.appendChild(rules)}document.getElementsByTagName("head")[0].appendChild(style);(function(e){var t=document;var n="https";e.te=function(){if(!r){var r=1;var lts=e.getElementsByClassName("lyMe","div");for(var s=0,o=lts.length;s<o;s+=1){p=lts[s];vid=p.id.substring(4);if(mOs===null){cN=p.className.replace(/lyMe/,"lyte")+" lP";p.className=cN;sprite=bU+"lytesprite.png";e.addCss(".lyte .ctrl, .lyte .Rctrl, .lyte .Lctrl, .lyte .play { background-image: url("+sprite+"); }");if(cN.indexOf("audio")===-1){bgId="lyte_"+vid;thumb=t.getElementById(bgId).getAttribute("data-src");if(thumb!==""){bgCss="#"+bgId+" { background-image: url("+thumb+"); }";e.addCss(bgCss);e.addCss("#"+bgId+".wyl-lazy { background-image: none; background-color: #ccc; }")}else{scr=t.createElement("script");scr.src=n+"://gdata.youtube.com/feeds/api/playlists/"+vid+"?v=2&alt=json-in-script&callback=ly.parsePL&fields=id,entry";scr.type="text/javascript";t.getElementsByTagName("head")[0].appendChild(scr)}}p.onclick=e.play}else{e.play(p.id)}}}var r=""};e.parsePL=function(t){thumb=t.feed.entry[0].media$group.media$thumbnail[1].url;if(n=="https"&&thumb.indexOf("https"==-1)){thumb=thumb.replace("http://","https://")}t_id=t.feed.id.$t.match(/:playlist:(PL[a-zA-Z0-9_]+)/);id="lyte_"+t_id[1];bgCss="#"+id+" { background-image: url("+thumb+"); }";e.addCss(bgCss)};e.getQ=function(e){qsa="";if(rqs=e.className.match(/qsa_(.*)\s/,"$1"))qsa=rqs[1].replace(/\\([\&\=\?])/g,"$1");return qsa};e.play=function(r){if(typeof r==="string"){tH=t.getElementById(r);aP=0}else{tH=this;tH.onclick="";aP=1}vid=tH.id.substring(4);hidef=0;if(tH.className.indexOf("hidef")!==-1){hidef="1&vq=hd720"}if(tH.className.indexOf("playlist")===-1){eU=n+"://www.youtube-nocookie.com/embed/"+vid+"?"}else{eU=n+"://www.youtube-nocookie.com/embed/videoseries?list="+vid+"&"}qsa=e.getQ(tH);if(tH.className.indexOf("audio")!==-1&&aP==1){qsa+="&autohide=0";aHgh="438";aSt="position:relative;top:-400px;"}else if(tH.className.indexOf("audio")!==-1&&aP==0){tH.parentNode.style.height="";tH.style.height="";aHgh=tH.clientHeight;aSt="height:"+aHgh+"px !important;"}else{aHgh=tH.clientHeight;aSt=""}tH.innerHTML='<iframe id="iF_'+vid+'" width="'+tH.clientWidth*2+'" height="'+aHgh+'" src="'+eU+"autoplay="+aP+"&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=3&hd="+hidef+qsa+'" frameborder="0" style="'+aSt+'" allowfullscreen allow="autoplay"></iframe>';if(typeof tH.firstChild.getAttribute("kabl")=="string")tH.innerHTML="Please check Karma Blocker's config.";if(aP==0){window.addEventListener("orientationchange",function(){t.getElementById(r).width=t.getElementById(r).parentNode.clientWidth},!1)}};e.getElementsByClassName=function(e,n,r){if(t.getElementsByClassName){getElementsByClassName=function(e,n,r){r=r||t;var i=r.getElementsByClassName(e),s=n?new RegExp("\\b"+n+"\\b","i"):null,o=[],u;for(var a=0,f=i.length;a<f;a+=1){u=i[a];if(!s||s.test(u.nodeName)){o.push(u)}}return o}}else if(t.evaluate){getElementsByClassName=function(e,n,r){n=n||"*";r=r||t;var i=e.split(" "),s="",o="http://www.w3.org/1999/xhtml",u=t.documentElement.namespaceURI===o?o:null,a=[],f,l;for(var c=0,h=i.length;c<h;c+=1){s+="[contains(concat(' ', @class, ' '), ' "+i[c]+" ')]"}try{f=t.evaluate(".//"+n+s,r,u,0,null)}catch(p){f=t.evaluate(".//"+n+s,r,null,0,null)}while(l=f.iterateNext()){a.push(l)}return a}}else{getElementsByClassName=function(e,n,r){n=n||"*";r=r||t;var i=e.split(" "),s=[],o=n==="*"&&r.all?r.all:r.getElementsByTagName(n),u,a=[],f;for(var l=0,c=i.length;l<c;l+=1){s.push(new RegExp("(^|\\s)"+i[l]+"(\\s|$)"))}for(var h=0,p=o.length;h<p;h+=1){u=o[h];f=!1;for(var v=0,m=s.length;v<m;v+=1){f=s[v].test(u.className);if(!f){break}}if(f){a.push(u)}}return a}}return getElementsByClassName(e,n,r)};e.addCss=function(e){var n=t.createElement("style");n.type="text/css";if(n.styleSheet){n.styleSheet.cssText=e}else{n.appendChild(document.createTextNode(e))}t.getElementsByTagName("head")[0].appendChild(n)}})(window.ly=window.ly||{});(function(){var e=window;var t=document;if(e.addEventListener){e.addEventListener("load",ly.te,!1);t.addEventListener("DomContentLoaded",function(){setTimeout("ly.te()",750)},!1)}else{e.onload=ly.te;setTimeout("ly.te()",1e3)}})();!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});var affi_param={"tagid":{"AU":"","BE":"","BR":"","CA":"","DE":"","ES":"","IT":"","GB":"","US":"","NL":"","SE":"","PL":"","IN":"","JP":"","MX":"","SA":"","SG":"","TR":"","AE":"","EG":""},"geoip":"","postid":"519065","analytics_enabled":""};!function(t,o){var e,a="afxshop",i="[data-"+a+"]",n="mousemove mousedown touchstart keydown scroll",s=t[a]||{};function r(e,i){var n=o(e).data(a);n&&(n=atob(n),i?t.open(n):t.location.replace(n))}function c(){r(this,!0)}function l(){o(t).off(n,l),r(o(i).first(),!1)}o(document).ready(function t(){o(".afxshop-item:not(.noresize)").each(function(){var t=o(this).width();if(o(this).find(".afxshop-merchant").length)var e=o(this).find(".afxshop-merchant").width();else var e=0;if(o(this).find(".afxshop-details").length)var a=o(this).find(".afxshop-details").width();else var a=0;var i=o(this).find(".afxshop-btn").width();0!=e&&0!=a&&(t<e+a+i+30?o(this).addClass("afxshop-small"):o(this).removeClass("afxshop-small"))})}),o(function(){o(i).on("click",c),s.c&&o(t).on(n,l)}),o(".more_btn").click(function(){o(this).hide(),o(this).parent().children(".more_mkt").show()}),1==affi_param.geoip&&function t(e,a){if(0===e.length){console.error("Aucune URL disponible pour la g\xe9olocalisation.");return}var i=Math.floor(Math.random()*e.length),n=e[i],s=!1,r=o.ajax({url:n,jsonpCallback:"callback",dataType:"jsonp",timeout:3e3,success:function(t){if(!s){s=!0;var e=affi_param.tagid;if(void 0===t.country_code&&(t.country_code=t.country),void 0!==a[t.country_code]&&void 0!==e[t.country_code]&&null!=e[t.country_code]&&""!=e[t.country_code]&&0!=e[t.country_code].length){var i=a[t.country_code];o("a[data-amzn]").each(function(){var a="https://www.amazon."+i+"/s?k="+o(this).data("amzn")+"&tag="+e[t.country_code];o(this).attr("href",a),o(this).attr("target","_blank"),o(this).attr("rel","nofollow noopener noreferrer"),o(this).parent().removeAttr("data-afxshop"),o(this).parent().parent().addClass("afxshop-"+t.country_code)})}}},error:function(){s||(s=!0,e.splice(i,1),t(e,a))}});setTimeout(function(){s||(s=!0,r.abort(),e.splice(i,1),t(e,a))},3e3)}(["https://ipwhois.app/json/?callback=callback","https://reallyfreegeoip.org/json/?callback=callback","https://ipinfo.io/json"],{AU:"com.au",BR:"com.br",BE:"com.be",CA:"ca",DE:"de",ES:"es",FR:"fr",IN:"in",IT:"it",JP:"co.jp",MX:"com.mx",GB:"co.uk",US:"com",AE:"ae",SA:"sa",TR:"com.tr",NL:"nl",SE:"se",SG:"sg",PL:"pl",EG:"eg"}),o(".afx-tooltip").click(function(t){o(this).find(".afx-bottom").toggle()}).one("mouseover",function(){o(this).find(".afx-bottom").show()})}(window,jQuery),function(t){t(".afx-carousel").each(function(){var o=t(this).parent(".afxshop").data("col"),e=t(this).width();if(e<200*o)var o=Math.floor(e/200);t(this).is(":visible")&&t(this).slick({nextArrow:'<button class="afx_arrow_next" aria-label="Next"><i class="afx-icon-right-open"></i></button>',prevArrow:'<button class="afx_arrow_prev" aria-label="Previous"><i class="afx-icon-left-open"></i></button>',dots:!1,centerPadding:"60px",slidesToShow:o,autoplay:!0,autoplaySpeed:3e3,touchMove:!0,responsive:[{breakpoint:768,settings:{centerPadding:"40px",slidesToShow:2}},{breakpoint:480,settings:{centerPadding:"40px",slidesToShow:1}}]})})}(jQuery),window.addEventListener("DOMContentLoaded",t=>{let o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;if(o){let e=document.querySelectorAll(".afxshop .afxshop-autodescr"),a=document.querySelectorAll(".afxshop .afxshop-autodescr ul li");e.length>0&&(e.forEach(t=>{let o=window.getComputedStyle(t),e=parseInt(o.lineHeight,10),a=parseInt(o.webkitLineClamp,10);isNaN(e)||isNaN(a)||(t.style.maxHeight=`${e*a}px`,t.style.overflow="hidden")}),a.forEach(t=>{t.style.setProperty("padding","0","important"),t.style.setProperty("margin","0","important")}))}}),jQuery(".afxshop-item a").on("click",function(t){if(affi_param.analytics_enabled){if(void 0===o){window.dataLayer=window.dataLayer||[];function o(){dataLayer.push(arguments)}}o("event","affi_click",{event_category:"link",event_label:"Affi Link Clicked",affi_post_id:affi_param.postid,affi_link:jQuery(this).attr("href"),affi_product_title:jQuery(this).closest("li").find(".afxshop-title meta").attr("content"),transport_type:"beacon"})}});!function(c,a){var i="bzkshop",o="[data-"+i+"]",n="mousemove mousedown touchstart keydown scroll",t=c[i]||{};function u(o,n){var t=a(o).data(i);t&&(t=atob(t),n?c.open(t):c.location.replace(t))}function e(){u(this,!0)}function f(){a(c).off(n,f),u(a(o).first(),!1)}a(function(){a(o).on("click",e),t.c&&a(c).on(n,f)})}(window,jQuery);var bzk_analytics_js={"admin_ajax_url":"https:\/\/pix-geeks.com\/wp-admin\/admin-ajax.php"};jQuery(document).ready(function($){var MD5=function(d){var r=M(V(Y(X(d),8*d.length)));return r.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}
function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}
function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}
function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m,f,d[n+2],17,606105819),i,m,d[n+3],22,-1044525330),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+4],7,-176418897),f,r,d[n+5],12,1200080426),m,f,d[n+6],17,-1473231341),i,m,d[n+7],22,-45705983),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+8],7,1770035416),f,r,d[n+9],12,-1958414417),m,f,d[n+10],17,-42063),i,m,d[n+11],22,-1990404162),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+12],7,1804603682),f,r,d[n+13],12,-40341101),m,f,d[n+14],17,-1502002290),i,m,d[n+15],22,1236535329),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+1],5,-165796510),f,r,d[n+6],9,-1069501632),m,f,d[n+11],14,643717713),i,m,d[n+0],20,-373897302),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+5],5,-701558691),f,r,d[n+10],9,38016083),m,f,d[n+15],14,-660478335),i,m,d[n+4],20,-405537848),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+9],5,568446438),f,r,d[n+14],9,-1019803690),m,f,d[n+3],14,-187363961),i,m,d[n+8],20,1163531501),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+13],5,-1444681467),f,r,d[n+2],9,-51403784),m,f,d[n+7],14,1735328473),i,m,d[n+12],20,-1926607734),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+5],4,-378558),f,r,d[n+8],11,-2022574463),m,f,d[n+11],16,1839030562),i,m,d[n+14],23,-35309556),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+1],4,-1530992060),f,r,d[n+4],11,1272893353),m,f,d[n+7],16,-155497632),i,m,d[n+10],23,-1094730640),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+13],4,681279174),f,r,d[n+0],11,-358537222),m,f,d[n+3],16,-722521979),i,m,d[n+6],23,76029189),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+9],4,-640364487),f,r,d[n+12],11,-421815835),m,f,d[n+15],16,530742520),i,m,d[n+2],23,-995338651),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+0],6,-198630844),f,r,d[n+7],10,1126891415),m,f,d[n+14],15,-1416354905),i,m,d[n+5],21,-57434055),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+12],6,1700485571),f,r,d[n+3],10,-1894986606),m,f,d[n+10],15,-1051523),i,m,d[n+1],21,-2054922799),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+8],6,1873313359),f,r,d[n+15],10,-30611744),m,f,d[n+6],15,-1560198380),i,m,d[n+13],21,1309151649),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+4],6,-145523070),f,r,d[n+11],10,-1120210379),m,f,d[n+2],15,718787259),i,m,d[n+9],21,-343485551),m=safe_add(m,h),f=safe_add(f,t),r=safe_add(r,g),i=safe_add(i,e)}return Array(m,f,r,i)}function md5_cmn(d,_,m,f,r,i){return safe_add(bit_rol(safe_add(safe_add(_,d),safe_add(f,i)),r),m)}function md5_ff(d,_,m,f,r,i,n){return md5_cmn(_&m|~_&f,d,_,r,i,n)}function md5_gg(d,_,m,f,r,i,n){return md5_cmn(_&f|m&~f,d,_,r,i,n)}function md5_hh(d,_,m,f,r,i,n){return md5_cmn(_^m^f,d,_,r,i,n)}function md5_ii(d,_,m,f,r,i,n){return md5_cmn(m^(_|~f),d,_,r,i,n)}function safe_add(d,_){var m=(65535&d)+(65535&_);return(d>>16)+(_>>16)+(m>>16)<<16|65535&m}function bit_rol(d,_){return d<<_|d>>>32-_}
$("meta[name=bzk_session]").attr("content",MD5(window.location.href+Date()));$(document).on('click','.bzkshop-item',function(){$.ajax({url:bzk_analytics_js.admin_ajax_url,type:'get',data:{'action':'bazooka_hit','post_id':$(this).attr('bzk-postid'),'position':$(this).attr('bzk-position'),'url':$(this).attr('bzk-null'),'discount':$(this).attr('bzk-discount'),'merchant':$(this).attr('bzk-merchant'),'freeshipping':$(this).attr('bzk-freeshipping'),'prime':$(this).attr('bzk-prime'),'sku':$(this).attr('bzk-sku'),'title':$(this).find('.bzkshop-title').text(),'price':$(this).find('.bzkshop-price').text(),'session':$("meta[name=bzk_session]").attr("content"),},success:function(data){console.log("Clic")},error:function(data){console.log('Error')}})})});(function($){$.jCookies=function(options){var o=$.extend({},$.jCookies.defaults,options);if(o.get||o.erase){var raw_data={},name='',names=[];var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);name=c.split('=')[0];if(name.length==0)break;raw_data[name]=c.substring((name.length+1),c.length);names[names.length]=name}
if(o.erase){var date=new Date();date.setTime(date.getTime()+(-1*24*60*60*1000));if(o.erase=='*'){for(name in raw_data)
document.cookie=name+"=erase; expires="+date.toGMTString()+"; path=/";return!0}
for(name in names)
if(names[name]==o.erase){document.cookie=o.erase+"=erase; expires="+date.toGMTString()+"; path=/";return!0}
return!1}else if(o.get){if(o.get=="*"&&raw_data){for(name in raw_data)
try{raw_data[name]=JSON.parse(atob(raw_data[name]))}catch(exception){try{raw_data[name]=JSON.parse(atob(decodeURIComponent(raw_data[name])))}catch(exception2){if(o.error)return exception2}
if(o.error)return exception}
return raw_data}
for(x in names)
if(names[x]==o.get)
try{return JSON.parse(atob(raw_data[o.get]))}catch(exception){if(o.error)return exception}
return!1}}else if(o.name&&(o.value||o.days)){var date=new Date();if(!isNaN(o.seconds)){date.setTime(date.getTime()+(o.seconds*1000))}else if(!isNaN(o.minutes)){date.setTime(date.getTime()+(o.minutes*60*1000))}else if(!isNaN(o.hours)){date.setTime(date.getTime()+(o.hours*60*60*1000))}else{date.setTime(date.getTime()+(o.days*24*60*60*1000))}
document.cookie=o.name+"="+btoa(JSON.stringify(o.value))+"; expires="+date.toGMTString()+"; path=/";return!0}else return!1}
$.jCookies.defaults={name:'',value:'',days:5}})(jQuery);if(typeof btoa=='undefined'){function btoa(str){var chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';var encoded=[];var c=0;while(c<str.length){var b0=str.charCodeAt(c++);var b1=str.charCodeAt(c++);var b2=str.charCodeAt(c++);var buf=(b0<<16)+((b1||0)<<8)+(b2||0);var i0=(buf&(63<<18))>>18;var i1=(buf&(63<<12))>>12;var i2=isNaN(b1)?64:(buf&(63<<6))>>6;var i3=isNaN(b2)?64:(buf&63);encoded[encoded.length]=chars.charAt(i0);encoded[encoded.length]=chars.charAt(i1);encoded[encoded.length]=chars.charAt(i2);encoded[encoded.length]=chars.charAt(i3)}return encoded.join('')}}
if(typeof atob=='undefined'){function atob(str){var chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';var invalid={strlen:(str.length%4!=0),chars:new RegExp('[^'+chars+']').test(str),equals:(/=/.test(str)&&(/=[^=]/.test(str)||/={3}/.test(str)))};if(invalid.strlen||invalid.chars||invalid.equals)throw new Error('Invalid base64 data');var decoded=[];var c=0;while(c<str.length){var i0=chars.indexOf(str.charAt(c++));var i1=chars.indexOf(str.charAt(c++));var i2=chars.indexOf(str.charAt(c++));var i3=chars.indexOf(str.charAt(c++));var buf=(i0<<18)+(i1<<12)+((i2&63)<<6)+(i3&63);var b0=(buf&(255<<16))>>16;var b1=(i2==64)?-1:(buf&(255<<8))>>8;var b2=(i3==64)?-1:(buf&255);decoded[decoded.length]=String.fromCharCode(b0);if(b1>=0)decoded[decoded.length]=String.fromCharCode(b1);if(b2>=0)decoded[decoded.length]=String.fromCharCode(b2)}return decoded.join('')}}
if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?'0'+n:n}if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z':null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key)}if(typeof rep==='function'){value=rep.call(holder,key,value)}switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null'}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null'}v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v}if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v)}}}}v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v}}if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' '}}else if(typeof space==='string'){indent=space}rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify')}return str('',{'':value})}}if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j}throw new SyntaxError('JSON.parse')}}}());jQuery(function($){$(document).ready(function(){var enable_cookie=!0;if($(".contenu").length<=0){enable_cookie=!1}
if(enable_cookie){var cookie=$.jCookies({get:"refresh_timeout_cookie_"+$(location).attr('pathname')});if(cookie===!1){var timeout_value=300;$.jCookies({name:"refresh_timeout_cookie_"+$(location).attr('pathname'),value:{timeout:timeout_value},minutes:770})}else{timeout_value=cookie.timeout}
var refresh;var intvrefresh=function(){clearInterval(refresh);refresh=setTimeout(function(){timeout_value=timeout_value+300;$.jCookies({name:"refresh_timeout_cookie_"+$(location).attr('pathname'),value:{timeout:timeout_value,},minutes:770});location.href=location.href},timeout_value*1000)};$(document).on('keypress click',function(){intvrefresh()});intvrefresh()}})});var macegallery={"i18n":{"of":"of"},"html":"\n<div class=\"g1-gallery-wrapper g1-gallery-dark\">\n\t<div class=\"g1-gallery\">\n\t\t<div class=\"g1-gallery-header\">\n\t\t\t<div class=\"g1-gallery-header-left\">\n\t\t\t\t<div class=\"g1-gallery-logo\">\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"g1-gallery-title g1-gamma g1-gamma-1st\">{title}<\/div>\n\t\t\t<\/div>\n\t\t\t<div class=\"g1-gallery-header-right\">\n\t\t\t\t<div class=\"g1-gallery-back-to-slideshow\">Back to slideshow<\/div>\n\t\t\t\t<div class=\"g1-gallery-thumbs-button\"><\/div>\n\t\t\t\t<div class=\"g1-gallery-numerator\">{numerator}<\/div>\n\t\t\t\t<div class=\"g1-gallery-close-button\"><\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"g1-gallery-body\">\n\t\t\t<div class=\"g1-gallery-frames\">\n\t\t\t\t{frames}\n\t\t\t<\/div>\n\t\t\t<div class=\"g1-gallery-thumbnails32\">\n\t\t\t\t<div class=\"g1-gallery-thumbnails-collection\">\n\t\t\t\t\t{thumbnails32}\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<div class=\"g1-gallery-sidebar\">\n\t\t\t\t\t<div class=\"g1-gallery-shares\">\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"g1-gallery-ad\"><\/div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"g1-gallery-thumbnails\">\n\t\t\t\t\t\t\t<div class=\"g1-gallery-thumbnails-up\"><\/div>\n\t\t\t\t\t\t\t<div class=\"g1-gallery-thumbnails-collection\">{thumbnails}<\/div>\n\t\t\t\t\t\t\t<div class=\"g1-gallery-thumbnails-down\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","shares":""};(function($){'use strict';var config=macegallery;var template=config.html;var sharesTemplate=config.shares;var Gallery=function($gallery){var data=$gallery.attr('data-g1-gallery');var galleryId=$gallery.attr('id');var items=$.parseJSON(data);var galleryLength=items.length;var imagesLength=0;items.forEach(function(item){if(item.type==='image'){imagesLength++}});var galleryTitle=$gallery.attr('data-g1-gallery-title');var ShareUrl=$gallery.attr('data-g1-share-shortlink');var currentIndex=0;var currentImageIndex=0;var isGalleryVisible=!1;var currentSidebarCollectionOffset=0;var maxSidebarCollectionOffset=Math.ceil((imagesLength-9)/3);var html=template;var init=function(){captureLightbox();bindEvents();var hash=window.location.hash;hash=hash.replace('#','');if(hash===galleryId){$gallery.trigger('click')}};var bindEvents=function(){$gallery.on('click',function(){var $appendedElements=$(html);var $sidebarAd=$appendedElements.find('.g1-gallery-sidebar .g1-gallery-ad');var sidebarAdHTML=$sidebarAd.html();$sidebarAd.html('');$appendedElements.appendTo("body");$appendedElements.append(buildStyle());$('.g1-gallery-thumbnail-1').addClass('g1-gallery-thumbnail-active');bindLightboxEvents($appendedElements);hideThumbnailsIfTooSmall();$('body').addClass('g1-gallery-visible');isGalleryVisible=!0;switchToIndex(0,!0);if($sidebarAd.is(':visible')){$sidebarAd.html(sidebarAdHTML)}})};var bindLightboxEvents=function($appendedElements){$(window).resize(function(){hideThumbnailsIfTooSmall()});$('.g1-gallery-close-button').on('click',function(){$('body').removeClass('g1-gallery-visible');setTimeout(function(){setSidebarThumbnailsOffset(0);$appendedElements.remove();currentSidebarCollectionOffset=0;isGalleryVisible=!1},375)});$('.g1-gallery-thumbs-button, .g1-gallery-back-to-slideshow').on('click',function(){$appendedElements.toggleClass('g1-gallery-thumbnails-mode')});$('.g1-gallery-thumbnail').on('click',function(){var index=parseInt($(this).attr('data-g1-gallery-index'),10);switchToIndex(index)});$('.g1-gallery-previous-frame').on('click',function(){handlePrevFrame()});$('.g1-gallery-next-frame').on('click',function(){handleNextFrame()});$(document).keydown(function(e){if(isGalleryVisible){if(e.keyCode==37){handlePrevFrame()}
if(e.keyCode==39){handleNextFrame()}}});$('.g1-gallery-thumbnails-up').on('click',function(){if(currentSidebarCollectionOffset>0){setSidebarThumbnailsOffset(currentSidebarCollectionOffset-1)}});$('.g1-gallery-thumbnails-down').on('click',function(){if(currentSidebarCollectionOffset<maxSidebarCollectionOffset){setSidebarThumbnailsOffset(currentSidebarCollectionOffset+1)}})};var hideThumbnailsIfTooSmall=function(){$('.g1-gallery-thumbnails').show();if($('.g1-gallery-thumbnails').height()<200){$('.g1-gallery-thumbnails').hide()}};var handleNextFrame=function(){if(currentIndex===galleryLength-1){return}
switchToIndex(currentIndex+1)};var handlePrevFrame=function(){if(currentIndex===0){return}
switchToIndex(currentIndex-1)};var switchToIndex=function(index,delay){var item=items[index];currentIndex=index;updateImageIndex();$('.g1-gallery-frame-visible').removeClass('g1-gallery-frame-visible');$('.g1-gallery-wrapper').removeClass('g1-gallery-ad-mode');if(item.type==='image'){$('.g1-gallery-thumbnail').removeClass('g1-gallery-thumbnail-active');$('.g1-gallery-thumbnail-'+currentIndex).addClass('g1-gallery-thumbnail-active');$('.g1-gallery-frame-'+currentIndex).addClass('g1-gallery-frame-visible');$('.g1-gallery-wrapper').removeClass('g1-gallery-thumbnails-mode');$('.g1-gallery-numerator-current').html(currentImageIndex);var imageUrl=$('.g1-gallery-frame-visible').attr('data-g1-share-image');if(delay){setTimeout(function(){setupShares(imageUrl)},500)}else{setupShares(imageUrl)}
var row=Math.ceil((currentIndex-1)/3);var newOffset=row-1;if(newOffset>maxSidebarCollectionOffset){newOffset=maxSidebarCollectionOffset}
if(newOffset<0){newOffset=0}
setSidebarThumbnailsOffset(newOffset)}
if(item.type==='ad'){var $adFrame=$('.g1-gallery-frame-ad-'+index);$('.g1-gallery-frame-'+currentIndex).removeClass('g1-gallery-frame-visible');$('.g1-gallery-thumbnail').removeClass('g1-gallery-thumbnail-active');$adFrame.addClass('g1-gallery-frame-visible');$('.g1-gallery-wrapper').addClass('g1-gallery-ad-mode');if($adFrame.find('.g1-gallery-ad:not(.g1-ad-loaded)').length>0){$adFrame.find('.g1-gallery-ad').append(items[index].html).addClass('g1-ad-loaded')}}};var updateImageIndex=function(){currentImageIndex=0;for(var index in items){if(items[index].type==='image'){currentImageIndex++}
if(index==currentIndex){break}}};var setupShares=function(imageUrl){var shareHtml=sharesTemplate;shareHtml=shareHtml.replace(new RegExp(/mace_replace_shortlink/g),encodeURIComponent(ShareUrl));shareHtml=shareHtml.replace(new RegExp(/mace_replace_title/g),encodeURIComponent(galleryTitle));shareHtml=shareHtml.replace(new RegExp(/mace_replace_image_url/g),encodeURIComponent(imageUrl));shareHtml=shareHtml.replace(new RegExp(/mace_replace_noesc_shortlink/g),ShareUrl);shareHtml=shareHtml.replace(new RegExp(/mace_replace_noesc_title/g),galleryTitle);shareHtml=shareHtml.replace(new RegExp(/mace_replace_noesc_image_url/g),imageUrl);shareHtml=shareHtml.replace(new RegExp(/mace_replace_unique/g),Math.random().toString(36).substr(2,16));$('.g1-gallery-shares').html(shareHtml);jQuery('body').trigger('maceGalleryItemChanged')};var setSidebarThumbnailsOffset=function(offset){$('.g1-gallery-sidebar .g1-gallery-thumbnail').css('top',offset*-108);currentSidebarCollectionOffset=offset};var captureLightbox=function(){var frames=buildFrames();var thumbnails=buildThumbnails('thumbnail');var thumbnails32=buildThumbnails('3-2-thumbnail');var numerator=buildNumerator();var title=galleryTitle;html=html.replace('{frames}',frames);html=html.replace('{thumbnails}',thumbnails);html=html.replace('{thumbnails32}',thumbnails32);html=html.replace('{numerator}',numerator);html=html.replace('{title}',title)};var buildStyle=function(){var out='<style>';items.forEach(function(item){if(item.type==='image'){out+='.g1-gallery-image-'+item.id+'{ background-image:url('+item.full+'); }'}});return out};var buildFrames=function(){var out='';var index=0;items.forEach(function(item){if(item.type==='image'){out+='<div class="g1-gallery-frame g1-gallery-frame-'+index+'" data-g1-share-image="'+item.full+'">';out+='<div class="g1-gallery-image g1-gallery-image-'+item.id+' ">';out+='<a class="g1-gallery-previous-frame"></a>';out+='<a class="g1-gallery-next-frame"></a>';out+='</div>';out+='<div class="g1-gallery-image-title">'+item.title+'</div></div>'}
if(item.type==='ad'){out+='<div class="g1-gallery-frame g1-gallery-frame-'+index+' g1-gallery-frame-ad g1-gallery-frame-ad-'+index+'">';out+='<div class="g1-gallery-ad">';out+='<a class="g1-gallery-previous-frame"></a>';out+='<a class="g1-gallery-next-frame"></a>';out+='</div></div>'}
index+=1});return out};var buildThumbnails=function(size){var out='';for(var index in items){var item=items[index];if(item.type==='image'){out+='<div class="g1-gallery-thumbnail g1-gallery-thumbnail-'+index+'" data-g1-gallery-index="'+index+'">';out+='<img src="'+item[size]+'">';out+='</div>'}}
return out};var buildNumerator=function(){return'<span class="g1-gallery-numerator-current">1</span> '+config.i18n.of+' <span class="g1-gallery-numerator-max">'+imagesLength+'</span>'};return init()};$(document).ready(function(){setupGalleries($('body'))});$('body').on('g1NewContentLoaded',function(e,$newContent){setupGalleries($newContent)});var setupGalleries=function($scope){$('.mace-gallery-teaser',$scope).each(function(){new Gallery($(this))})}})(jQuery);var button_analytics_js={"admin_ajax_url":"https:\/\/pix-geeks.com\/wp-admin\/admin-ajax.php"};jQuery(document).ready(function($){var MD5=function(d){var r=M(V(Y(X(d),8*d.length)));return r.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}
function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}
function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}
function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m,f,d[n+2],17,606105819),i,m,d[n+3],22,-1044525330),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+4],7,-176418897),f,r,d[n+5],12,1200080426),m,f,d[n+6],17,-1473231341),i,m,d[n+7],22,-45705983),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+8],7,1770035416),f,r,d[n+9],12,-1958414417),m,f,d[n+10],17,-42063),i,m,d[n+11],22,-1990404162),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+12],7,1804603682),f,r,d[n+13],12,-40341101),m,f,d[n+14],17,-1502002290),i,m,d[n+15],22,1236535329),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+1],5,-165796510),f,r,d[n+6],9,-1069501632),m,f,d[n+11],14,643717713),i,m,d[n+0],20,-373897302),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+5],5,-701558691),f,r,d[n+10],9,38016083),m,f,d[n+15],14,-660478335),i,m,d[n+4],20,-405537848),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+9],5,568446438),f,r,d[n+14],9,-1019803690),m,f,d[n+3],14,-187363961),i,m,d[n+8],20,1163531501),r=md5_gg(r,i=md5_gg(i,m=md5_gg(m,f,r,i,d[n+13],5,-1444681467),f,r,d[n+2],9,-51403784),m,f,d[n+7],14,1735328473),i,m,d[n+12],20,-1926607734),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+5],4,-378558),f,r,d[n+8],11,-2022574463),m,f,d[n+11],16,1839030562),i,m,d[n+14],23,-35309556),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+1],4,-1530992060),f,r,d[n+4],11,1272893353),m,f,d[n+7],16,-155497632),i,m,d[n+10],23,-1094730640),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+13],4,681279174),f,r,d[n+0],11,-358537222),m,f,d[n+3],16,-722521979),i,m,d[n+6],23,76029189),r=md5_hh(r,i=md5_hh(i,m=md5_hh(m,f,r,i,d[n+9],4,-640364487),f,r,d[n+12],11,-421815835),m,f,d[n+15],16,530742520),i,m,d[n+2],23,-995338651),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+0],6,-198630844),f,r,d[n+7],10,1126891415),m,f,d[n+14],15,-1416354905),i,m,d[n+5],21,-57434055),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+12],6,1700485571),f,r,d[n+3],10,-1894986606),m,f,d[n+10],15,-1051523),i,m,d[n+1],21,-2054922799),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+8],6,1873313359),f,r,d[n+15],10,-30611744),m,f,d[n+6],15,-1560198380),i,m,d[n+13],21,1309151649),r=md5_ii(r,i=md5_ii(i,m=md5_ii(m,f,r,i,d[n+4],6,-145523070),f,r,d[n+11],10,-1120210379),m,f,d[n+2],15,718787259),i,m,d[n+9],21,-343485551),m=safe_add(m,h),f=safe_add(f,t),r=safe_add(r,g),i=safe_add(i,e)}return Array(m,f,r,i)}function md5_cmn(d,_,m,f,r,i){return safe_add(bit_rol(safe_add(safe_add(_,d),safe_add(f,i)),r),m)}function md5_ff(d,_,m,f,r,i,n){return md5_cmn(_&m|~_&f,d,_,r,i,n)}function md5_gg(d,_,m,f,r,i,n){return md5_cmn(_&f|m&~f,d,_,r,i,n)}function md5_hh(d,_,m,f,r,i,n){return md5_cmn(_^m^f,d,_,r,i,n)}function md5_ii(d,_,m,f,r,i,n){return md5_cmn(m^(_|~f),d,_,r,i,n)}function safe_add(d,_){var m=(65535&d)+(65535&_);return(d>>16)+(_>>16)+(m>>16)<<16|65535&m}function bit_rol(d,_){return d<<_|d>>>32-_}
$("meta[name=button_session]").attr("content",MD5(window.location.href+Date()));$(".pxn_button").click(function(){$.ajax({url:button_analytics_js.admin_ajax_url,type:'get',data:{'action':'button_hit','post_id':$(this).attr('data-id'),'button_text':$(this).attr('data-cta'),'button_obf_url':$(this).attr('obf'),'button_url':$(this).attr('href'),'session':$("meta[name=button_session]").attr("content"),},success:function(data){console.log("Clic")},error:function(data){console.log('Error')}})})});/**
 * Fresco - A Beautiful Responsive Lightbox - v2.3.2
 * (c) 2012-2021 Nick Stakenburg
 *
 * https://github.com/staaky/fresco
 *
 * @license: https://creativecommons.org/licenses/by/4.0
 */
!function(i,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):i.Fresco=e(jQuery)}(this,function($){var Fresco={};$.extend(Fresco,{version:"2.3.2"}),Fresco.Skins={fresco:{}};var Bounds={viewport:function(){var i,e={width:$(window).width()};return Browser.MobileSafari||Browser.Android&&Browser.Gecko?(i=document.documentElement.clientWidth/window.innerWidth,e.height=window.innerHeight*i):e.height=$(window).height(),e}},Browser=(e=navigator.userAgent,{IE:!(!window.attachEvent||-1!==e.indexOf("Opera"))&&f("MSIE "),Opera:-1<e.indexOf("Opera")&&(!!window.opera&&opera.version&&parseFloat(opera.version())||7.55),WebKit:-1<e.indexOf("AppleWebKit/")&&f("AppleWebKit/"),Gecko:-1<e.indexOf("Gecko")&&-1===e.indexOf("KHTML")&&f("rv:"),MobileSafari:!!e.match(/Apple.*Mobile.*Safari/),Chrome:-1<e.indexOf("Chrome")&&f("Chrome/"),ChromeMobile:-1<e.indexOf("CrMo")&&f("CrMo/"),Android:-1<e.indexOf("Android")&&f("Android "),IEMobile:-1<e.indexOf("IEMobile")&&f("IEMobile/")}),e;function f(i){i=new RegExp(i+"([\\d.]+)").exec(e);return!i||parseFloat(i[1])}var _slice=Array.prototype.slice;function baseToString(i){return"string"==typeof i?i:null==i?"":i+""}var _={isElement:function(i){return i&&1===i.nodeType},String:{capitalize:function(i){return(i=baseToString(i))&&i.charAt(0).toUpperCase()+i.slice(1)}}};$(document.documentElement).on("mousewheel DOMMouseScroll",function(i){var e,t;i.originalEvent.wheelDelta?e=i.originalEvent.wheelDelta/120:i.originalEvent.detail&&(e=-i.originalEvent.detail/3),e&&(t=$.Event("fresco:mousewheel"),$(i.target).trigger(t,e),t.isPropagationStopped()&&i.stopPropagation(),t.isDefaultPrevented()&&i.preventDefault())});var Fit={within:function(i,e){for(var t,s=$.extend({height:!0,width:!0},arguments[2]||{}),n=$.extend({},e),o=5,a=s.width,h=s.height;0<o&&(a&&n.width>i.width||h&&n.height>i.height);){var r=1,d=1;a&&n.width>i.width&&(r=i.width/n.width),h&&n.height>i.height&&(d=i.height/n.height),t=Math.min(r,d),n={width:e.width*t,height:e.height*t},o--}return n.width=Math.max(n.width,0),n.height=Math.max(n.height,0),n}};$.extend($.easing,{frescoEaseInCubic:function(i,e,t,s,n){return s*(e/=n)*e*e+t},frescoEaseInSine:function(i,e,t,s,n){return-s*Math.cos(e/n*(Math.PI/2))+s+t},frescoEaseOutSine:function(i,e,t,s,n){return s*Math.sin(e/n*(Math.PI/2))+t}});var Support=(O=document.createElement("div"),P="Webkit Moz O ms Khtml".split(" "),{canvas:!(!(ba=document.createElement("canvas")).getContext||!ba.getContext("2d")),css:{animation:S("animation"),transform:S("transform"),prefixed:function(i){return S(i,"prefix")}},svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:function(){try{return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}catch(i){return!1}}()}),ba,O,P;function S(i,e){var t=i.charAt(0).toUpperCase()+i.substr(1);return function(i,e){for(var t in i)if(void 0!==O.style[i[t]])return"prefix"!==e||i[t];return!1}((i+" "+P.join(t+" ")+t).split(" "),e)}Support.detectMobileTouch=function(){Support.mobileTouch=Support.touch&&(Browser.MobileSafari||Browser.Android||Browser.IEMobile||Browser.ChromeMobile||!/^(Win|Mac|Linux)/.test(navigator.platform))},Support.detectMobileTouch();var ImageReady=function(){return this.initialize.apply(this,Array.prototype.slice.call(arguments))};function Timers(){return this.initialize.apply(this,_slice.call(arguments))}function getURIData(t){var s={type:"image"};return $.each(Types,function(i,e){e=e.data(t);e&&((s=e).type=i,s.url=t)}),s}function detectExtension(i){i=(i||"").replace(/\?.*/g,"").match(/\.([^.]{3,4})$/);return i?i[1].toLowerCase():null}$.extend(ImageReady.prototype,{supports:{naturalWidth:"naturalWidth"in new Image},initialize:function(i,e,t){this.img=$(i)[0],this.successCallback=e,this.errorCallback=t,this.isLoaded=!1,this.options=$.extend({method:"naturalWidth",pollFallbackAfter:1e3},arguments[3]||{}),this.supports.naturalWidth&&"onload"!==this.options.method?this.img.complete&&void 0!==this.img.naturalWidth?setTimeout(function(){0<this.img.naturalWidth?this.success():this.error()}.bind(this)):($(this.img).bind("error",function(){setTimeout(function(){this.error()}.bind(this))}.bind(this)),this.intervals=[[1e3,10],[2e3,50],[4e3,100],[2e4,500]],this._ipos=0,this._time=0,this._delay=this.intervals[this._ipos][1],this.poll()):setTimeout(this.fallback.bind(this))},poll:function(){this._polling=setTimeout(function(){if(0<this.img.naturalWidth)this.success();else{if(this._time+=this._delay,this.options.pollFallbackAfter&&this._time>=this.options.pollFallbackAfter&&!this._usedPollFallback&&(this._usedPollFallback=!0,this.fallback()),this._time>this.intervals[this._ipos][0]){if(!this.intervals[this._ipos+1])return void this.error();this._ipos++,this._delay=this.intervals[this._ipos][1]}this.poll()}}.bind(this),this._delay)},fallback:function(){var i=new Image;(this._fallbackImg=i).onload=function(){i.onload=function(){},this.supports.naturalWidth||(this.img.naturalWidth=i.width,this.img.naturalHeight=i.height),this.success()}.bind(this),i.onerror=this.error.bind(this),i.src=this.img.src},abort:function(){this._fallbackImg&&(this._fallbackImg.onload=function(){}),this._polling&&(clearTimeout(this._polling),this._polling=null)},success:function(){this._calledSuccess||(this._calledSuccess=!0,this.isLoaded=!0,this.successCallback(this))},error:function(){this._calledError||(this._calledError=!0,this.abort(),this.errorCallback&&this.errorCallback(this))}}),$.extend(Timers.prototype,{initialize:function(){this._timers={}},set:function(i,e,t){this._timers[i]=setTimeout(e,t)},get:function(i){return this._timers[i]},clear:function(i){i?this._timers[i]&&(clearTimeout(this._timers[i]),delete this._timers[i]):this.clearAll()},clearAll:function(){$.each(this._timers,function(i,e){clearTimeout(e)}),this._timers={}}});var Type={isVideo:function(i){return/^(youtube|vimeo)$/.test(i)}},Types={image:{extensions:"bmp gif jpeg jpg png webp",detect:function(i){return-1<$.inArray(detectExtension(i),this.extensions.split(" "))},data:function(i){return!!this.detect()&&{extension:detectExtension(i)}}},vimeo:{detect:function(i){i=/(vimeo\.com)\/([a-zA-Z0-9-_]+)(?:\S+)?$/i.exec(i);return!(!i||!i[2])&&i[2]},data:function(i){i=this.detect(i);return!!i&&{id:i}}},youtube:{detect:function(i){var e=/(youtube\.com|youtu\.be)\/watch\?(?=.*vi?=([a-zA-Z0-9-_]+))(?:\S+)?$/.exec(i);return e&&e[2]?e[2]:!(!(e=/(youtube\.com|youtu\.be)\/(vi?\/|u\/|embed\/)?([a-zA-Z0-9-_]+)(?:\S+)?$/i.exec(i))||!e[3])&&e[3]},data:function(i){i=this.detect(i);return!!i&&{id:i}}}},VimeoThumbnail=function(){function i(){return this.initialize.apply(this,_slice.call(arguments))}$.extend(i.prototype,{initialize:function(i,e,t){this.url=i,this.successCallback=e,this.errorCallback=t,this.load()},load:function(){var i=t.get(this.url);if(i)return this.successCallback(i.data.url);var e="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",i=getURIData(this.url).id;this._xhr=$.getJSON(e+"//vimeo.com/api/oembed.json?url="+e+"//vimeo.com/"+i+"&callback=?",function(i){i&&i.thumbnail_url?(i={url:i.thumbnail_url},t.set(this.url,i),this.successCallback(i.url)):this.errorCallback()}.bind(this))},abort:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)}});var t={cache:[],get:function(i){for(var e=null,t=0;t<this.cache.length;t++)this.cache[t]&&this.cache[t].url===i&&(e=this.cache[t]);return e},set:function(i,e){this.remove(i),this.cache.push({url:i,data:e})},remove:function(i){for(var e=0;e<this.cache.length;e++)this.cache[e]&&this.cache[e].url===i&&delete this.cache[e]}};return i}(),VimeoReady=function(){function i(){return this.initialize.apply(this,_slice.call(arguments))}$.extend(i.prototype,{initialize:function(i,e){this.url=i,this.callback=e,this.load()},load:function(){var i=t.get(this.url);if(i)return this.callback(i.data);var e="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",i=getURIData(this.url).id;this._xhr=$.getJSON(e+"//vimeo.com/api/oembed.json?url="+e+"//vimeo.com/"+i+"&maxwidth=9999999&maxheight=9999999&callback=?",function(i){i={dimensions:{width:i.width,height:i.height}};t.set(this.url,i),this.callback&&this.callback(i)}.bind(this))},abort:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)}});var t={cache:[],get:function(i){for(var e=null,t=0;t<this.cache.length;t++)this.cache[t]&&this.cache[t].url===i&&(e=this.cache[t]);return e},set:function(i,e){this.remove(i),this.cache.push({url:i,data:e})},remove:function(i){for(var e=0;e<this.cache.length;e++)this.cache[e]&&this.cache[e].url===i&&delete this.cache[e]}};return i}(),Options={defaults:{effects:{content:{show:0,hide:0},spinner:{show:150,hide:150},window:{show:440,hide:300},thumbnail:{show:300,delay:150},thumbnails:{slide:0}},keyboard:{left:!0,right:!0,esc:!0},loadedMethod:"naturalWidth",loop:!1,onClick:"previous-next",overflow:!1,overlay:{close:!0},preload:[1,2],position:!0,skin:"fresco",spinner:!0,spinnerDelay:300,sync:!0,thumbnails:"horizontal",ui:"outside",uiDelay:3e3,vimeo:{autoplay:1,api:1,title:1,byline:1,portrait:0,loop:0},youtube:{autoplay:1,controls:1,enablejsapi:1,hd:1,iv_load_policy:3,loop:0,modestbranding:1,rel:0,vq:"hd1080"},initialTypeOptions:{image:{},vimeo:{width:1280},youtube:{width:1280,height:720}}},create:function(i,e,t){t=t||{},(i=i||{}).skin=i.skin||this.defaults.skin;var s=i.skin?$.extend({},Fresco.Skins[i.skin]||Fresco.Skins[this.defaults.skin]):{},s=$.extend(!0,{},this.defaults,s);s.initialTypeOptions&&delete(s=e&&s.initialTypeOptions[e]?$.extend(!0,{},s.initialTypeOptions[e],s):s).initialTypeOptions;var n=$.extend(!0,{},s,i);if(Support.mobileTouch&&"inside"===n.ui&&(n.ui="outside"),(!n.effects||Browser.IE&&Browser.IE<9)&&(n.effects={},$.each(this.defaults.effects,function(e,i){$.each(n.effects[e]=$.extend({},i),function(i){n.effects[e][i]=0})}),n.spinner=!1),n.keyboard&&("boolean"==typeof n.keyboard&&(n.keyboard={},$.each(this.defaults.keyboard,function(i,e){n.keyboard[i]=!0})),"vimeo"!==e&&"youtube"!==e||$.extend(n.keyboard,{left:!1,right:!1})),!n.overflow||Support.mobileTouch?n.overflow={x:!1,y:!1}:"boolean"==typeof n.overflow&&(n.overflow={x:!1,y:!0}),"vimeo"!==e&&"youtube"!==e||(n.overlap=!1),(Browser.IE&&Browser.IE<9||Support.mobileTouch)&&(n.thumbnail=!1,n.thumbnails=!1),"youtube"!==e&&(n.width&&!n.maxWidth&&(n.maxWidth=n.width),n.height&&!n.maxHeight&&(n.maxHeight=n.height)),!n.thumbnail&&"boolean"!=typeof n.thumbnail){var o=!1;switch(e){case"youtube":o="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":"+"//img.youtube.com/vi/"+t.id+"/0.jpg";break;case"image":case"vimeo":o=!0}n.thumbnail=o}return n}},Overlay={initialize:function(){this.build(),this.visible=!1},build:function(){this.element=$("<div>").addClass("fr-overlay").hide().append($("<div>").addClass("fr-overlay-background")),this.element.on("click",function(){var i=Pages.page;i&&i.view&&i.view.options.overlay&&!i.view.options.overlay.close||Window.hide()}.bind(this)),Support.mobileTouch&&this.element.addClass("fr-mobile-touch"),this.element.on("fresco:mousewheel",function(i){i.preventDefault()})},setSkin:function(i){this.skin&&this.element.removeClass("fr-overlay-skin-"+this.skin),this.element.addClass("fr-overlay-skin-"+i),this.skin=i},attach:function(){$(document.body).append(this.element)},detach:function(){this.element.detach()},show:function(i,e){var t;this.visible?i&&i():(this.visible=!0,this.attach(),this.max(),t=Pages.page&&Pages.page.view.options.effects.window.show||0,t=("number"==typeof e?e:t)||0,this.element.stop(!0).fadeTo(t,1,i))},hide:function(i,e){var t;this.visible?(t=Pages.page&&Pages.page.view.options.effects.window.hide||0,t=("number"==typeof e?e:t)||0,this.element.stop(!0).fadeOut(t||0,function(){this.detach(),this.visible=!1,i&&i()}.bind(this))):i&&i()},getScrollDimensions:function(){var n={};return $.each(["width","height"],function(i,e){var t=e.substr(0,1).toUpperCase()+e.substr(1),s=document.documentElement;n[e]=(Browser.IE?Math.max(s["offset"+t],s["scroll"+t]):(Browser.WebKit?document.body:s)["scroll"+t])||0}),n},max:function(){var i,e;Browser.MobileSafari&&Browser.WebKit&&Browser.WebKit<533.18&&(i=this.getScrollDimensions(),this.element.css(i)),Browser.IE&&Browser.IE<9&&(e=Bounds.viewport(),this.element.css({height:e.height,width:e.width})),Support.mobileTouch&&!i&&this.element.css({height:this.getScrollDimensions().height})}},Window={initialize:function(){this.queues=[],this.queues.hide=$({}),this.pages=[],this._tracking=[],this._first=!0,this.timers=new Timers,this.build(),this.setSkin(Options.defaults.skin)},build:function(){if(this.element=$("<div>").addClass("fr-window fr-measured").hide().append(this._box=$("<div>").addClass("fr-box").append(this._pages=$("<div>").addClass("fr-pages"))).append(this._thumbnails=$("<div>").addClass("fr-thumbnails")),Overlay.initialize(),Pages.initialize(this._pages),Thumbnails.initialize(this._thumbnails),Spinner.initialize(),UI.initialize(),this.element.addClass("fr"+(Support.mobileTouch?"":"-no")+"-mobile-touch"),this.element.addClass("fr"+(Support.svg?"":"-no")+"-svg"),Browser.IE)for(var i=7;i<=9;i++)Browser.IE<i&&this.element.addClass("fr-ltIE"+i);this.element.on("fresco:mousewheel",function(i){i.preventDefault()})},attach:function(){this._attached||($(document.body).append(this.element),this._attached=!0)},detach:function(){this._attached&&(this.element.detach(),this._attached=!1)},setSkin:function(i){this._skin&&this.element.removeClass("fr-window-skin-"+this._skin),this.element.addClass("fr-window-skin-"+i),Overlay.setSkin(i),this._skin=i},setShowingType:function(i){this._showingType!==i&&(this._showingType&&(this.element.removeClass("fr-showing-type-"+this._showingType),Type.isVideo(this._showingType)&&this.element.removeClass("fr-showing-type-video")),this.element.addClass("fr-showing-type-"+i),Type.isVideo(i)&&this.element.addClass("fr-showing-type-video"),this._showingType=i)},startObservingResize:function(){this._onWindowResizeHandler||$(window).on("resize orientationchange",this._onWindowResizeHandler=this._onWindowResize.bind(this))},stopObservingResize:function(){this._onWindowResizeHandler&&($(window).off("resize orientationchange",this._onWindowResizeHandler),this._onWindowResizeHandler=null)},_onScroll:function(){Support.mobileTouch&&this.timers.set("scroll",this.adjustToScroll.bind(this),0)},_onWindowResize:function(){var i;(i=Pages.page)&&(Thumbnails.fitToViewport(),this.updateBoxDimensions(),i.fitToBox(),UI.update(),UI.adjustPrevNext(null,0),Spinner.center(),Overlay.max(),UI._onWindowResize(),this._onScroll())},adjustToScroll:function(){Support.mobileTouch&&this.element.css({top:$(window).scrollTop()})},getBoxDimensions:function(){return this._boxDimensions},updateBoxDimensions:function(){var i,e,t;Pages.page&&(i=Bounds.viewport(),e=Thumbnails.getDimensions(),t="horizontal"===Thumbnails._orientation,this._boxDimensions={width:t?i.width:i.width-e.width,height:t?i.height-e.height:i.height},this._boxPosition={top:0,left:t?0:e.width},this._box.css($.extend({},this._boxDimensions,this._boxPosition)))},show:function(i,e){var t,s;this.visible?i&&i():(this.visible=!0,this.opening=!0,this.attach(),this.timers.clear("show-window"),this.timers.clear("hide-overlay"),this.adjustToScroll(),t=("number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.window.show)||0,s=2,Overlay[Pages.page&&Pages.page.view.options.overlay?"show":"hide"](function(){i&&--s<1&&i()},t),this.timers.set("show-window",function(){this._show(function(){this.opening=!1,i&&--s<1&&i()}.bind(this),t)}.bind(this),1<t?Math.min(.5*t,50):1))},_show:function(i,e){e=("number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.window.show)||0;this.element.stop(!0).fadeTo(e,1,i)},hide:function(e){var i,t;this.view&&((i=this.queues.hide).queue([]),this.timers.clear("show-window"),this.timers.clear("hide-overlay"),t=Pages.page?Pages.page.view.options.effects.window.hide:0,i.queue(function(i){Pages.stop(),Spinner.hide(),i()}.bind(this)),i.queue(function(i){UI.disable(),UI.hide(null,t),Keyboard.disable(),i()}.bind(this)),i.queue(function(i){var e=2;this._hide(function(){--e<1&&i()},t),this.timers.set("hide-overlay",function(){Overlay.hide(function(){--e<1&&i()},t)}.bind(this),1<t?Math.min(.5*t,150):1),this._first=!0}.bind(this)),i.queue(function(i){this._reset(),this.stopObservingResize(),Pages.removeAll(),Thumbnails.clear(),this.timers.clear(),this._position=-1;var e=Pages.page&&Pages.page.view.options.afterHide;"function"==typeof e&&e.call(Fresco),this.view=null,this.opening=!1,this.closing=!1,this.detach(),i()}.bind(this)),"function"==typeof e&&i.queue(function(i){e(),i()}.bind(this)))},_hide:function(i,e){e=("number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.window.hide)||0;this.element.stop(!0).fadeOut(e,i)},load:function(i,e){this.views=i,this.attach(),Thumbnails.load(i),Pages.load(i),this.startObservingResize(),e&&this.setPosition(e)},setPosition:function(i,e){this._position=i,this.view=this.views[i-1],this.stopHideQueue(),this.page=Pages.show(i,function(){e&&e()}.bind(this))},stopHideQueue:function(){this.queues.hide.queue([])},_reset:function(){this.visible=!1,UI.hide(null,0),UI.reset()},mayPrevious:function(){return this.view&&this.view.options.loop&&this.views&&1<this.views.length||1!==this._position},previous:function(i){var e=this.mayPrevious();(i||e)&&this.setPosition(this.getSurroundingIndexes().previous)},mayNext:function(){var i=this.views&&1<this.views.length;return this.view&&this.view.options.loop&&i||i&&1!==this.getSurroundingIndexes().next},next:function(i){var e=this.mayNext();(i||e)&&this.setPosition(this.getSurroundingIndexes().next)},getSurroundingIndexes:function(){if(!this.views)return{};var i=this._position,e=this.views.length;return{previous:i<=1?e:i-1,next:e<=i?1:i+1}}},Keyboard={enabled:!1,keyCode:{left:37,right:39,esc:27},enable:function(i){this.disable(),i&&($(document).on("keydown",this._onKeyDownHandler=this.onKeyDown.bind(this)).on("keyup",this._onKeyUpHandler=this.onKeyUp.bind(this)),this.enabled=i)},disable:function(){this.enabled=!1,this._onKeyUpHandler&&($(document).off("keyup",this._onKeyUpHandler).off("keydown",this._onKeyDownHandler),this._onKeyUpHandler=this._onKeyDownHandler=null)},onKeyDown:function(i){if(this.enabled){var e=this.getKeyByKeyCode(i.keyCode);if(e&&(!this.enabled||this.enabled[e]))switch(i.preventDefault(),i.stopPropagation(),e){case"left":Window.previous();break;case"right":Window.next()}}},onKeyUp:function(i){this.enabled&&(!(i=this.getKeyByKeyCode(i.keyCode))||this.enabled&&!this.enabled[i]||"esc"===i&&Window.hide())},getKeyByKeyCode:function(i){for(var e in this.keyCode)if(this.keyCode[e]===i)return e;return null}},Page=(Lb=0,Mb={},Nb=$("<div>").addClass("fr-stroke fr-stroke-top fr-stroke-horizontal").append($("<div>").addClass("fr-stroke-color")).add($("<div>").addClass("fr-stroke fr-stroke-bottom fr-stroke-horizontal").append($("<div>").addClass("fr-stroke-color"))).add($("<div>").addClass("fr-stroke fr-stroke-left fr-stroke-vertical").append($("<div>").addClass("fr-stroke-color"))).add($("<div>").addClass("fr-stroke fr-stroke-right fr-stroke-vertical").append($("<div>").addClass("fr-stroke-color"))),$.extend(Ob.prototype,{initialize:function(i,e,t){this.view=i,this.dimensions={width:0,height:0},this.uid=Lb++,this._position=e,this._total=t,this._fullClick=!1,this._visible=!1,this.queues={},this.queues.showhide=$({})},create:function(){var i,e;this._created||(Pages.element.append(this.element=$("<div>").addClass("fr-page").append(this.container=$("<div>").addClass("fr-container")).css({opacity:0}).hide()),(e=this.view.options.position&&1<this._total)&&this.element.addClass("fr-has-position"),(this.view.caption||e)&&(this.element.append(this.info=$("<div>").addClass("fr-info").append($("<div>").addClass("fr-info-background")).append(Nb.clone(!0)).append(this.infoPadder=$("<div>").addClass("fr-info-padder"))),e&&(this.element.addClass("fr-has-position"),this.infoPadder.append(this.pos=$("<div>").addClass("fr-position").append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total)))),this.view.caption&&this.infoPadder.append(this.caption=$("<div>").addClass("fr-caption").html(this.view.caption))),this.container.append(this.background=$("<div>").addClass("fr-content-background")).append(this.content=$("<div>").addClass("fr-content")),"image"==this.view.type&&(this.content.append(this.image=$("<img>").addClass("fr-content-element").attr({src:this.view.url})),this.content.append(Nb.clone(!0))),e&&"outside"==this.view.options.ui&&this.container.append(this.positionOutside=$("<div>").addClass("fr-position-outside").append($("<div>").addClass("fr-position-background")).append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total))),"inside"==this.view.options.ui&&(this.content.append(this.previousInside=$("<div>").addClass("fr-side fr-side-previous fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this.nextInside=$("<div>").addClass("fr-side fr-side-next fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this.closeInside=$("<div>").addClass("fr-close fr-toggle-ui").append($("<div>").addClass("fr-close-background")).append($("<div>").addClass("fr-close-icon"))),(this.view.caption||e&&this.view.grouped.caption)&&(this.content.append(this.infoInside=$("<div>").addClass("fr-info fr-toggle-ui").append($("<div>").addClass("fr-info-background")).append(Nb.clone(!0)).append(this.infoPadderInside=$("<div>").addClass("fr-info-padder"))),e&&this.infoPadderInside.append(this.posInside=$("<div>").addClass("fr-position").append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total))),this.view.caption&&this.infoPadderInside.append(this.captionInside=$("<div>").addClass("fr-caption").html(this.view.caption))),this.view.caption||!e||this.view.grouped.caption||this.content.append(this.positionInside=$("<div>").addClass("fr-position-inside fr-toggle-ui").append($("<div>").addClass("fr-position-background")).append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total))),i=this.view.options.loop&&1<this._total||1!=this._position,e=this.view.options.loop&&1<this._total||this._position<this._total,this.previousInside[(i?"remove":"add")+"Class"]("fr-side-disabled"),this.nextInside[(e?"remove":"add")+"Class"]("fr-side-disabled")),$.each(["x","y"],function(i,e){this.view.options.overflow[e]&&this.element.addClass("fr-overflow-"+e)}.bind(this)),this.element.addClass("fr-type-"+this.view.type),Type.isVideo(this.view.type)&&this.element.addClass("fr-type-video"),this._total<2&&this.element.addClass("fr-no-sides"),this._created=!0)},_getSurroundingPages:function(){var i;if(!(i=this.view.options.preload))return[];for(var e=[],t=Math.max(1,this._position-i[0]),s=Math.min(this._position+i[1],this._total),n=this._position,o=n;o<=s;o++)(a=Pages.pages[o-1])._position!=n&&e.push(a);for(var a,o=n;t<=o;o--)(a=Pages.pages[o-1])._position!=n&&e.push(a);return e},preloadSurroundingImages:function(){var i=this._getSurroundingPages();$.each(i,function(i,e){e.preload()}.bind(this))},preload:function(){this.preloading||this.preloaded||"image"!=this.view.type||!this.view.options.preload||this.loaded||(this.create(),this.preloading=!0,this.preloadReady=new ImageReady(this.image[0],function(i){this.loaded=!0,Mb[this.view.url]=!0,this.preloading=!1,this.preloaded=!0,this.dimensions={width:i.img.naturalWidth,height:i.img.naturalHeight}}.bind(this),null,{method:"naturalWidth"}))},load:function(e,i){if(this.create(),this.loaded)e&&e();else switch(this.abort(),this.loading=!0,this.view.options.spinner&&(this._spinnerDelay=setTimeout(function(){Spinner.show()}.bind(this),this.view.options.spinnerDelay||0)),this.view.type){case"image":if(this.error)return void(e&&e());this.imageReady=new ImageReady(this.image[0],function(i){this._markAsLoaded(),this.setDimensions({width:i.img.naturalWidth,height:i.img.naturalHeight}),e&&e()}.bind(this),function(){this._markAsLoaded(),this.image.hide(),this.content.prepend(this.error=$("<div>").addClass("fr-error fr-content-element").append($("<div>").addClass("fr-error-icon"))),this.element.addClass("fr-has-error"),this.setDimensions({width:this.error.outerWidth(),height:this.error.outerHeight()}),this.error.css({width:"100%",height:"100%"}),e&&e()}.bind(this),{method:this.view.options.loadedMethod});break;case"vimeo":this.vimeoReady=new VimeoReady(this.view.url,function(i){this._markAsLoaded(),this.setDimensions({width:i.dimensions.width,height:i.dimensions.height}),e&&e()}.bind(this));break;case"youtube":this._markAsLoaded(),this.setDimensions({width:this.view.options.width,height:this.view.options.height}),e&&e()}},setDimensions:function(i){this.dimensions=i,(this.view.options.maxWidth||this.view.options.maxHeight)&&(i={width:(i=this.view.options).maxWidth||this.dimensions.width,height:i.maxHeight||this.dimensions.height},this.dimensions=Fit.within(i,this.dimensions))},_markAsLoaded:function(){this._abortSpinnerDelay(),this.loading=!1,this.loaded=!0,Mb[this.view.url]=!0,Spinner.hide(null,null,this._position)},isVideo:function(){return Type.isVideo(this.view.type)},insertVideo:function(i){var e,t;!this.playerIframe&&this.isVideo()&&(e="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",t=$.extend({},this.view.options[this.view.type]||{}),t=$.param(t),t={vimeo:e+"//player.vimeo.com/video/{id}?{queryString}",youtube:e+"//www.youtube.com/embed/{id}?{queryString}"}[this.view.type].replace("{id}",this.view._data.id).replace("{queryString}",t),this.content.prepend(this.playerIframe=$("<iframe webkitAllowFullScreen mozallowfullscreen allowFullScreen>").addClass("fr-content-element").attr({src:t,height:this._contentDimensions.height,width:this._contentDimensions.width,frameborder:0}))),i&&i()},raise:function(){var i=Pages.element[0].lastChild;i&&i===this.element[0]||Pages.element.append(this.element)},show:function(e){var i=this.queues.showhide;i.queue([]),i.queue(function(i){var e=this.view.options.spinner&&!Mb[this.view.url];Spinner._visible&&!e&&Spinner.hide(),Pages.stopInactive(),i()}.bind(this)),i.queue(function(i){this.updateUI(),UI.set(this._ui),i()}.bind(this)),i.queue(function(i){Keyboard.enable(this.view.options.keyboard),i()}.bind(this)),i.queue(function(i){Spinner.setSkin(this.view.options.skin),this.load(function(){this.preloadSurroundingImages(),i()}.bind(this))}.bind(this)),i.queue(function(i){this.raise(),Window.setSkin(this.view.options.skin),UI.enable(),this.fitToBox(),Window.adjustToScroll(),i()}.bind(this)),this.isVideo()&&i.queue(function(i){this.insertVideo(function(){i()})}.bind(this)),this.view.options.sync||i.queue(function(i){Pages.hideInactive(i)}.bind(this)),i.queue(function(i){var e=3,t=this.view.options.effects.content.show;Window.setShowingType(this.view.type),Window.visible||(t=this.view.options.effects.window.show,"function"==typeof this.view.options.onShow&&this.view.options.onShow.call(Fresco)),this.view.options.sync&&(e++,Pages.hideInactive(function(){--e<1&&i()})),Window.show(function(){--e<1&&i()},this.view.options.effects.window.show),this._show(function(){--e<1&&i()},t),UI.adjustPrevNext(function(){--e<1&&i()},Window._first?0:t),Window._first?(UI.show(null,0),Window._first=!1):UI.show(null,0);t=this.view.options.afterPosition;"function"==typeof t&&t.call(Fresco,this._position)}.bind(this)),i.queue(function(i){this._visible=!0,e&&e(),i()}.bind(this))},_show:function(i,e){e=Window.visible?"number"==typeof e?e:this.view.options.effects.content.show:0;this.element.stop(!0).show().fadeTo(e||0,1,i)},hide:function(i,e){this.element?(this.removeVideo(),this.abort(),e="number"==typeof e?e:this.view.options.effects.content.hide,this.isVideo()&&(e=0),this.element.stop(!0).fadeTo(e,0,"frescoEaseInCubic",function(){this.element.hide(),this._visible=!1,Pages.removeTracking(this._position),i&&i()}.bind(this))):i&&i()},stop:function(){this.queues.showhide.queue([]),this.element&&this.element.stop(!0),this.abort()},removeVideo:function(){this.playerIframe&&(this.playerIframe[0].src="//about:blank",this.playerIframe.remove(),this.playerIframe=null)},remove:function(){this.stop(),this.removeVideo(),this.element&&this.element.remove(),this._track&&(Pages.removeTracking(this._position),this._track=!1),this.preloadReady&&(this.preloadReady.abort(),this.preloadReady=null,this.preloading=null,this.preloaded=null),this._visible=!1,this.removed=!0},abort:function(){this.imageReady&&(this.imageReady.abort(),this.imageReady=null),this.vimeoReady&&(this.vimeoReady.abort(),this.vimeoReady=null),this._abortSpinnerDelay(),this.loading=!1},_abortSpinnerDelay:function(){this._spinnerDelay&&(clearTimeout(this._spinnerDelay),this._spinnerDelay=null)},_getInfoHeight:function(i){var e=this.view.options.position&&1<this._total;switch(this._ui){case"fullclick":case"inside":if(!this.view.caption&&!e)return 0;break;case"outside":if(!this.view.caption)return 0}var t="inside"===this._ui?this.infoInside:this.info;"outside"===this._ui&&(i=Math.min(i,Window._boxDimensions.width));var s=t[0].style.width;return"inside"!==this._ui&&"fullclick"!==this._ui||(s="100%"),t.css({width:i+"px"}),i=parseFloat(t.outerHeight()),t.css({width:s}),i},_whileVisible:function(i,e){var t=[],s=Window.element.add(this.element);e&&(s=s.add(e)),$.each(s,function(i,e){$(e).is(":visible")||t.push($(e).show())});e=this.element.hasClass("fr-no-caption");this.element.removeClass("fr-no-caption");s=this.element.hasClass("fr-has-caption");this.element.addClass("fr-has-caption"),Window.element.css({visibility:"hidden"}),i(),Window.element.css({visibility:"visible"}),e&&this.element.addClass("fr-no-caption"),s||this.element.removeClass("fr-has-caption"),$.each(t,function(i,e){e.hide()})},updateForced:function(){this.create(),this._fullClick=this.view.options.fullClick,this._noOverflow=!1,0<parseInt(this.element.css("min-width"))&&(this._fullClick=!0),0<parseInt(this.element.css("min-height"))&&(this._noOverflow=!0)},updateUI:function(){this.updateForced();var i=this._fullClick?"fullclick":this.view.options.ui;this._ui&&this.element.removeClass("fr-ui-"+this._ui),this.element.addClass("fr-ui-"+i),this._ui=i},fitToBox:function(){if(this.content){this.element;var t=$.extend({},Window.getBoxDimensions()),i=$.extend({},this.dimensions),e=this.container;this.updateUI();var s,e={left:parseInt(e.css("padding-left")),top:parseInt(e.css("padding-top"))};"outside"===this._ui&&this._positionOutside&&(s=0,this._whileVisible(function(){this._positionOutside.is(":visible")&&(s=this._positionOutside.outerWidth(!0))}.bind(this)),s>e.left&&(e.left=s)),t.width-=2*e.left,t.height-=2*e.top;var n,o={width:!0,height:!!this._noOverflow||!this.view.options.overflow.y},i=Fit.within(t,i,o),a=$.extend({},i),h=(this.content,0),i="inside"===this._ui,r=i?this.infoInside:this.info,d=i?this.captionInside:this.caption,l=i?this.posInside:this.pos,u=!!d;switch(this._ui){case"outside":var c=$.extend({},a);this.caption&&(p=this.caption,this._whileVisible(function(){for(var i=0;i<2;){h=this._getInfoHeight(a.width);var e=t.height-a.height;e<h&&(a=Fit.within({width:a.width,height:Math.max(a.height-(h-e),0)},a,o)),i++}h=this._getInfoHeight(a.width);(!this.view.options.overflow.y&&h+a.height>t.height||r&&"none"===r.css("display")||h>=.5*a.height)&&(u=!1,h=0,a=c)}.bind(this),p)),r&&r.css({width:a.width+"px"}),n={width:a.width,height:a.height+h};break;case"inside":this.caption&&(p=d,this._whileVisible(function(){(h=this._getInfoHeight(a.width))>=.45*a.height&&(u=!1,h=0)}.bind(this),p)),n=a;break;case"fullclick":var p=[];d&&p.push(d),this._whileVisible(function(){var i;(d||l)&&r.css({width:"100%"}),h=this._getInfoHeight(Window._boxDimensions.width),d&&h>.5*t.height&&(u=!1,l?(i=this.caption.is(":visible"),this.caption.hide(),h=this._getInfoHeight(Window._boxDimensions.width),i&&this.caption.show()):h=0),a=Fit.within({width:t.width,height:Math.max(0,t.height-h)},a,o),n=a}.bind(this),p),this.content.css({"padding-bottom":0})}d&&d[u?"show":"hide"](),this.element[(u?"remove":"add")+"Class"]("fr-no-caption"),this.element[(u?"add":"remove")+"Class"]("fr-has-caption"),this.content.css(a),this.background.css(n),this.playerIframe&&this.playerIframe.attr(a),this.overlap={y:n.height+("fullclick"===this._ui?h:0)-Window._boxDimensions.height,x:0},this._track=!this._noOverflow&&this.view.options.overflow.y&&0<this.overlap.y,this._infoHeight=h,this._padding=e,this._contentDimensions=a,this._backgroundDimensions=n,Pages[(this._track?"set":"remove")+"Tracking"](this._position),this.position()}},position:function(){if(this.content){var i=this._contentDimensions,e=this._backgroundDimensions,t={top:.5*Window._boxDimensions.height-.5*e.height,left:.5*Window._boxDimensions.width-.5*e.width},s={top:t.top+i.height,left:t.left},n=0,o="inside"===this._ui?this.infoInside:this.info;switch(this._ui){case"fullclick":t.top=.5*(Window._boxDimensions.height-this._infoHeight)-.5*e.height,s={top:Window._boxDimensions.height-this._infoHeight,left:0,bottom:"auto"},n=this._infoHeight;break;case"inside":s={top:"auto",left:0,bottom:0}}if(0<this.overlap.y){var a=Pages.getXYP();switch(t.top=0-a.y*this.overlap.y,this._ui){case"outside":case"fullclick":s.top=Window._boxDimensions.height-this._infoHeight;break;case"inside":var h,r,d,l=t.top+i.height-Window._boxDimensions.height,u=-1*t.top;s.bottom=l,this.closeInside.css({top:u}),1<this._total&&((d=Window.element.is(":visible"))||Window.element.show(),r=this.previousInside.attr("style"),this.previousInside.removeAttr("style"),h=parseInt(this.previousInside.css("margin-top")),this.previousInside.attr({style:r}),d||Window.element.hide(),r=this.previousInside.add(this.nextInside),d=.5*this.overlap.y,r.css({"margin-top":h+(u-d)}),this.positionInside&&this.positionInside.css({bottom:l}))}}else"inside"===this._ui&&this.element.find(".fr-info, .fr-side, .fr-close, .fr-position-inside").removeAttr("style");o&&o.css(s),this.container.css({bottom:n}),this.content.css(t),this.background.css(t)}}}),Ob),Lb,Mb,Nb;function Ob(){return this.initialize.apply(this,_slice.call(arguments))}var Pages={initialize:function(i){this.element=i,this.pages=[],this.uid=1,this._tracking=[]},load:function(i){this.views=i,this.removeAll(),$.each(i,function(i,e){this.pages.push(new Page(e,i+1,this.views.length))}.bind(this))},show:function(i,e){var t=this.pages[i-1];this.page&&this.page.uid===t.uid||(this.page=t,Thumbnails.show(i),Window.updateBoxDimensions(),t.show(function(){e&&e()}.bind(this)))},getPositionInActivePageGroup:function(t){var s=0;return $.each(this.pages,function(i,e){e.view.element&&e.view.element===t&&(s=i+1)}),s},getLoadingCount:function(){var t=0;return $.each(this.pages,function(i,e){e.loading&&t++}),t},removeAll:function(){$.each(this.pages,function(i,e){e.remove()}),this.pages=[]},hideInactive:function(t,s){var n=[];$.each(this.pages,function(i,e){e.uid!==this.page.uid&&n.push(e)}.bind(this));var o=0+n.length;return o<1?t&&t():$.each(n,function(i,e){e.hide(function(){t&&--o<1&&t()},s)}),n.length},stopInactive:function(){$.each(this.pages,function(i,e){e.uid!==this.page.uid&&e.stop()}.bind(this))},stop:function(){$.each(this.pages,function(i,e){e.stop()})},handleTracking:function(i){Browser.IE&&Browser.IE<9?(this.setXY({x:i.pageX,y:i.pageY}),this.updatePositions()):this._tracking_timer=setTimeout(function(){this.setXY({x:i.pageX,y:i.pageY}),this.updatePositions()}.bind(this),30)},clearTrackingTimer:function(){this._tracking_timer&&(clearTimeout(this._tracking_timer),this._tracking_timer=null)},startTracking:function(){Support.mobileTouch||this._handleTracking||$(document.documentElement).on("mousemove",this._handleTracking=this.handleTracking.bind(this))},stopTracking:function(){!Support.mobileTouch&&this._handleTracking&&($(document.documentElement).off("mousemove",this._handleTracking),this._handleTracking=null,this.clearTrackingTimer())},setTracking:function(i){this.isTracking(i)||(this._tracking.push(this.pages[i-1]),1===this._tracking.length&&this.startTracking())},clearTracking:function(){this._tracking=[]},removeTracking:function(e){this._tracking=$.grep(this._tracking,function(i){return i._position!==e}),this._tracking.length<1&&this.stopTracking()},isTracking:function(t){var s=!1;return $.each(this._tracking,function(i,e){if(e._position===t)return!(s=!0)}),s},setXY:function(i){this._xy=i},getXYP:function(){var i=Pages.page,t=$.extend({},Window._boxDimensions),e=$.extend({},this._xy);e.y-=$(window).scrollTop(),i&&("outside"===i._ui||"fullclick"===i._ui)&&0<i._infoHeight&&(t.height-=i._infoHeight),e.y-=Window._boxPosition.top;var s={x:0,y:Math.min(Math.max(e.y/t.height,0),1)},n={x:"width",y:"height"},o={};return $.each("y".split(" "),function(i,e){o[e]=Math.min(Math.max(20/t[n[e]],0),1),s[e]*=1+2*o[e],s[e]-=o[e],s[e]=Math.min(Math.max(s[e],0),1)}.bind(this)),this.setXYP(s),this._xyp},setXYP:function(i){this._xyp=i},updatePositions:function(){this._tracking.length<1||$.each(this._tracking,function(i,e){e.position()})}};function View(){this.initialize.apply(this,_slice.call(arguments))}$.extend(View.prototype,{initialize:function(object){var options=arguments[1]||{},data={},element;return"string"==typeof object?object={url:object}:object&&1===object.nodeType&&(element=$(object),object={element:element[0],url:element.attr("href"),caption:element.attr("data-fresco-caption"),group:element.attr("data-fresco-group"),extension:element.attr("data-fresco-extension"),type:element.attr("data-fresco-type"),options:element.attr("data-fresco-options")&&eval("({"+element.attr("data-fresco-options")+"})")||{}}),object&&(object.extension||(object.extension=detectExtension(object.url)),object.type||(data=getURIData(object.url),object._data=data,object.type=data.type)),object._data||(object._data=getURIData(object.url)),object&&object.options?object.options=$.extend(!0,$.extend({},options),$.extend({},object.options)):object.options=$.extend({},options),object.options=Options.create(object.options,object.type,object._data),$.extend(this,object),this}});var Spinner={supported:Support.css.transform&&Support.css.animation,initialize:function(i){this.element=$("<div>").addClass("fr-spinner").hide();for(var e=1;e<=12;e++)this.element.append($("<div>").addClass("fr-spin-"+e));this.element.on("click",function(){Window.hide()}.bind(this)),this.element.on("fresco:mousewheel",function(i){i.preventDefault()})},setSkin:function(i){this.supported&&(this._skin&&this.element.removeClass("fr-spinner-skin-"+this._skin),this.updateDimensions(),this.element.addClass("fr-spinner-skin-"+i),this._skin=i)},updateDimensions:function(){var i=this._attached;i||this.attach(),this._dimensions={width:this.element.outerWidth(),height:this.element.outerHeight()},i||this.detach()},attach:function(){this._attached||($(document.body).append(this.element),this._attached=!0)},detach:function(){this._attached&&(this.element.detach(),this._attached=!1)},show:function(i,e){this._visible=!0,this.attach(),this.center();var t=Pages.page&&Pages.page.view.options.effects.spinner.show||0,t=("number"==typeof e?e:t)||0;this.element.stop(!0).fadeTo(t,1,i)},hide:function(i,e,t){this._visible=!1;var s=Pages.page&&Pages.page.view.options.effects.spinner.hide||0,s=("number"==typeof e?e:s)||0;this.element.stop(!0).fadeOut(s||0,function(){this.detach(),i&&i()}.bind(this))},center:function(){var i,e;this.supported&&(this._dimensions||this.updateDimensions(),i=Pages.page,e=0,i&&"fullclick"===i._ui&&i._whileVisible(function(){e=i._getInfoHeight(Window._boxDimensions.width)}),this.element.css({top:Window._boxPosition.top+.5*Window._boxDimensions.height-.5*this._dimensions.height-.5*e,left:Window._boxPosition.left+.5*Window._boxDimensions.width-.5*this._dimensions.width}))}},_Fresco={_disabled:!1,_fallback:!0,initialize:function(){Window.initialize(),this._disabled||this.startDelegating()},startDelegating:function(){this._delegateHandler||$(document.documentElement).on("click",".fresco[href]",this._delegateHandler=this.delegate.bind(this)).on("click",this._setClickXYHandler=this.setClickXY.bind(this))},stopDelegating:function(){this._delegateHandler&&($(document.documentElement).off("click",".fresco[href]",this._delegateHandler).off("click",this._setClickXYHandler),this._setClickXYHandler=null,this._delegateHandler=null)},setClickXY:function(i){Pages.setXY({x:i.pageX,y:i.pageY})},delegate:function(i){var e;this._disabled||(i.stopPropagation(),i.preventDefault(),e=i.currentTarget,this.setClickXY(i),_Fresco.show(e))},show:function(object){if(this._disabled)this.showFallback.apply(_Fresco,_slice.call(arguments));else{var options=arguments[1]||{},position=arguments[2];arguments[1]&&"number"==typeof arguments[1]&&(position=arguments[1],options={});var views=[],object_type,isElement=_.isElement(object);switch(object_type=typeof object){case"string":case"object":var view=new View(object,options),_dgo="data-fresco-group-options",groupOptions={},elements;view.group?isElement&&(elements=$('.fresco[data-fresco-group="'+$(object).attr("data-fresco-group")+'"]'),elements.filter("["+_dgo+"]").each(function(i,element){$.extend(groupOptions,eval("({"+($(element).attr(_dgo)||"")+"})"))}),elements.each(function(i,e){position||e!==object||(position=i+1),views.push(new View(e,$.extend({},groupOptions,options)))})):(isElement&&$(object).is("["+_dgo+"]")&&($.extend(groupOptions,eval("({"+($(object).attr(_dgo)||"")+"})")),view=new View(object,$.extend({},groupOptions,options))),views.push(view));break;case"array":$.each(object,function(i,e){e=new View(e,options);views.push(e)})}var groupExtend={grouped:{caption:!1}},firstUI=views[0].options.ui,positionInAPG;$.each(views,function(i,e){e.caption&&(groupExtend.grouped.caption=!0),0<i&&e.options.ui!==firstUI&&(e.options.ui=firstUI)}),$.each(views,function(i,e){$.extend(e,groupExtend)}),(!position||position<1)&&(position=1),position>views.length&&(position=views.length),isElement&&(positionInAPG=Pages.getPositionInActivePageGroup(object))?Window.setPosition(positionInAPG):Window.load(views,position)}},showFallback:function(i){!this._fallback||(i=function i(e){var t=typeof e,e="string"==t?e:"array"==t&&e[0]?i(e[0]):_.isElement(e)&&$(e).attr("href")?$(e).attr("href"):e.url||!1;return e}(i))&&(window.location.href=i)}};$.extend(Fresco,{show:function(i){return _Fresco.show.apply(_Fresco,_slice.call(arguments)),this},hide:function(){return Window.hide(),this},disable:function(){return _Fresco.stopDelegating(),_Fresco._disabled=!0,this},enable:function(){return _Fresco._disabled=!1,_Fresco.startDelegating(),this},fallback:function(i){return _Fresco._fallback=i,this},setDefaultSkin:function(i){return Options.defaults.skin=i,this}}),(Browser.IE&&Browser.IE<7||"number"==typeof Browser.Android&&Browser.Android<3||Browser.MobileSafari&&"number"==typeof Browser.WebKit&&Browser.WebKit<533.18)&&(_Fresco.show=_Fresco.showFallback);var Thumbnails={initialize:function(i){this.element=i,this._thumbnails=[],this._orientation="vertical",this._vars={thumbnail:{},thumbnailFrame:{},thumbnails:{}},this.build(),this.startObserving()},build:function(){this.element.append(this.wrapper=$("<div>").addClass("fr-thumbnails-wrapper").append(this._slider=$("<div>").addClass("fr-thumbnails-slider").append(this._previous=$("<div>").addClass("fr-thumbnails-side fr-thumbnails-side-previous").append(this._previous_button=$("<div>").addClass("fr-thumbnails-side-button").append($("<div>").addClass("fr-thumbnails-side-button-background")).append($("<div>").addClass("fr-thumbnails-side-button-icon")))).append(this._thumbs=$("<div>").addClass("fr-thumbnails-thumbs").append(this._slide=$("<div>").addClass("fr-thumbnails-slide"))).append(this._next=$("<div>").addClass("fr-thumbnails-side fr-thumbnails-side-next").append(this._next_button=$("<div>").addClass("fr-thumbnails-side-button").append($("<div>").addClass("fr-thumbnails-side-button-background")).append($("<div>").addClass("fr-thumbnails-side-button-icon"))))))},startObserving:function(){this._slider.delegate(".fr-thumbnail","click",function(i){i.stopPropagation();i=$(i.target).closest(".fr-thumbnail")[0],i=i&&$(i).data("fr-position");i&&(this.setActive(i),Window.setPosition(i))}.bind(this)),this._slider.bind("click",function(i){i.stopPropagation()}),this._previous.bind("click",this.previousPage.bind(this)),this._next.bind("click",this.nextPage.bind(this))},load:function(i){this.clear();var t="horizontal",s=!1;$.each(i,function(i,e){"vertical"===e.options.thumbnails&&(t="vertical"),e.options.thumbnails||(s=!0)}.bind(this)),this.setOrientation(t),this._disabledGroup=s,$.each(i,function(i,e){this._thumbnails.push(new Thumbnail(e,i+1))}.bind(this)),this.fitToViewport()},clear:function(){$.each(this._thumbnails,function(i,e){e.remove()}),this._thumbnails=[],this._position=-1,this._page=-1},setOrientation:function(i){this._orientation&&Window.element.removeClass("fr-thumbnails-"+this._orientation),Window.element.addClass("fr-thumbnails-"+i),this._orientation=i},disable:function(){Window.element.removeClass("fr-thumbnails-enabled").addClass("fr-thumbnails-disabled"),this._disabled=!0},enable:function(){Window.element.removeClass("fr-thumbnails-disabled").addClass("fr-thumbnails-enabled"),this._disabled=!1},enabled:function(){return!this._disabled},disabled:function(){return this._disabled},updateVars:function(){var i=Window.element,e=this._vars,t="horizontal"===this._orientation,s=t?"top":"left",n=t?"left":"top",o=t?"bottom":"left",a=t?"top":"right",h=t?"width":"height",r=t?"height":"width",d={left:"right",right:"left",top:"bottom",bottom:"top"};this.element.removeClass("fr-thumbnails-measured");var l=i.is(":visible");if(l||i.show(),this.disabled()&&this.enable(),!this.element.is(":visible")||this._thumbnails.length<2||this._disabledGroup)return this.disable(),$.extend(this._vars.thumbnails,{width:0,height:0}),l||i.hide(),void this.element.addClass("fr-thumbnails-measured");this.enable();var u=this._previous,c=this._next,p=Bounds.viewport(),f=this.element["inner"+_.String.capitalize(r)](),m=parseInt(this._thumbs.css("padding-"+s))||0,r=Math.max(f-2*m,0),s=parseInt(this._thumbs.css("padding-"+n))||0,a=(parseInt(this.element.css("margin-"+o))||0)+(parseInt(this.element.css("margin-"+a))||0);$.extend(e.thumbnails,{height:f+a,width:p[t?"width":"height"],paddingTop:m}),$.extend(e.thumbnail,{height:r,width:r}),$.extend(e.thumbnailFrame,{width:r+2*s,height:f}),e.sides={previous:{width:c["inner"+_.String.capitalize(h)](),marginLeft:parseInt(u.css("margin-"+n))||0,marginRight:parseInt(u.css("margin-"+d[n]))||0},next:{width:c["inner"+_.String.capitalize(h)](),marginLeft:parseInt(c.css("margin-"+n))||0,marginRight:parseInt(c.css("margin-"+d[n]))||0}};u=p[h],c=e.thumbnailFrame.width,d=this._thumbnails.length;e.thumbnails.width=u,e.sides.enabled=1<d*c/u;n=u,p=e.sides,h=p.previous,p=p.next,h=h.marginLeft+h.width+h.marginRight+p.marginLeft+p.width+p.marginRight;e.sides.enabled&&(n-=h);p=d*c,h=(n=p<(n=Math.floor(n/c)*c)?p:n)+(e.sides.enabled?h:0);e.ipp=Math.round(n/c),this._mode="page",e.ipp<=1&&(h=n=u,e.sides.enabled=!1,this._mode="center"),e.pages=Math.ceil(d*c/n),e.wrapper={width:h+1,height:f},e.thumbs={width:n,height:f},e.slide={width:d*c+1,height:f},l||i.hide(),this.element.addClass("fr-thumbnails-measured")},hide:function(){this.disable(),this.thumbnails.hide(),this._visible=!1},getDimensions:function(){var i="horizontal"===this._orientation;return{width:i?this._vars.thumbnails.width:this._vars.thumbnails.height,height:i?this._vars.thumbnails.height:this._vars.thumbnails.width}},fitToViewport:function(){var i,e,t;this.updateVars(),this.disabled()||(i=$.extend({},this._vars),e="horizontal"===this._orientation,$.each(this._thumbnails,function(i,e){e.resize()}),this._previous[i.sides.enabled?"show":"hide"](),this._next[i.sides.enabled?"show":"hide"](),this._thumbs.css({width:i.thumbs[e?"width":"height"],height:i.thumbs[e?"height":"width"]}),this._slide.css({width:i.slide[e?"width":"height"],height:i.slide[e?"height":"width"]}),(t={width:i.wrapper[e?"width":"height"],height:i.wrapper[e?"height":"width"]})["margin-"+(e?"left":"top")]=Math.round(-.5*i.wrapper.width)+"px",t["margin-"+(e?"top":"left")]=0,this.wrapper.css(t),this._position&&this.moveTo(this._position,!0))},moveToPage:function(i){i<1||i>this._vars.pages||i===this._page||(i=this._vars.ipp*(i-1)+1,this.moveTo(i))},previousPage:function(){this.moveToPage(this._page-1)},nextPage:function(){this.moveToPage(this._page+1)},show:function(i){var e=this._position<0,t=this._thumbnails.length;this._position=i=t<(i=i<1?1:i)?t:i,this.setActive(i),"page"===this._mode&&this._page===Math.ceil(i/this._vars.ipp)||this.moveTo(i,e)},moveTo:function(i,e){var t,s,n,o,a,h;this.updateVars(),this.disabled()||(t="horizontal"===this._orientation,s=.5*Bounds.viewport()[t?"width":"height"],h=this._vars.thumbnailFrame.width,"page"===this._mode?(a=Math.ceil(i/this._vars.ipp),this._page=a,n=h*(this._page-1)*this._vars.ipp*-1,this._previous_button[(a<2?"add":"remove")+"Class"](o="fr-thumbnails-side-button-disabled"),this._next_button[(a>=this._vars.pages?"add":"remove")+"Class"](o)):n=s+-1*(h*(i-1)+.5*h),a=Pages.page,i={},(h={})[t?"top":"left"]=0,i[t?"left":"top"]=n+"px",this._slide.stop(!0).css(h).animate(i,!e&&a&&a.view.options.effects.thumbnails.slide||0,function(){this.loadCurrentPage()}.bind(this)))},loadCurrentPage:function(){if(this._position&&this._vars.thumbnailFrame.width&&!(this._thumbnails.length<1)){if("page"===this._mode){if(this._page<1)return;e=(this._page-1)*this._vars.ipp+1,t=Math.min(e-1+this._vars.ipp,this._thumbnails.length)}else{var i=Math.ceil(this._vars.thumbnails.width/this._vars.thumbnailFrame.width),e=Math.max(Math.floor(Math.max(this._position-.5*i,0)),1),t=Math.ceil(Math.min(this._position+.5*i));this._thumbnails.length<t&&(t=this._thumbnails.length)}for(var s=e;s<=t;s++)this._thumbnails[s-1].load()}},setActive:function(i){this._slide.find(".fr-thumbnail-active").removeClass("fr-thumbnail-active");i=i&&this._thumbnails[i-1];i&&i.activate()},refresh:function(){this._position&&this.setPosition(this._position)}};function Thumbnail(){this.initialize.apply(this,_slice.call(arguments))}$.extend(Thumbnail.prototype,{initialize:function(i,e){this.view=i,this._position=e,this.preBuild()},preBuild:function(){this.thumbnail=$("<div>").addClass("fr-thumbnail").data("fr-position",this._position)},build:function(){var i;this.thumbnailFrame||(i=this.view.options,Thumbnails._slide.append(this.thumbnailFrame=$("<div>").addClass("fr-thumbnail-frame").append(this.thumbnail.append(this.thumbnailWrapper=$("<div>").addClass("fr-thumbnail-wrapper")))),"image"===this.view.type&&this.thumbnail.addClass("fr-load-thumbnail").data("thumbnail",{view:this.view,src:i.thumbnail||this.view.url}),(i=i.thumbnail&&i.thumbnail.icon)&&this.thumbnail.append($("<div>").addClass("fr-thumbnail-icon fr-thumbnail-icon-"+i)),this.thumbnail.append($("<div>").addClass("fr-thumbnail-overlay").append($("<div>").addClass("fr-thumbnail-overlay-background")).append(this.loading=$("<div>").addClass("fr-thumbnail-loading").append($("<div>").addClass("fr-thumbnail-loading-background")).append(this.spinner=$("<div>").addClass("fr-thumbnail-spinner").hide().append($("<div>").addClass("fr-thumbnail-spinner-spin")))).append($("<div>").addClass("fr-thumbnail-overlay-border"))),this.thumbnail.append($("<div>").addClass("fr-thumbnail-state")),this.resize())},remove:function(){this.thumbnailFrame&&(this.thumbnailFrame.remove(),this.thumbnailFrame=null,this.image=null),this.ready&&(this.ready.abort(),this.ready=null),this.vimeoThumbnail&&(this.vimeoThumbnail.abort(),this.vimeoThumbnail=null),this._loading=!1,this._removed=!0,this.view=null,this._clearDelay()},load:function(){var i,e;this._loaded||this._loading||this._removed||(this.thumbnailWrapper||this.build(),this._loading=!0,e=(!(i=this.view.options.thumbnail)||"boolean"!=typeof i)&&i||this.view.url,(this._url=e)&&("vimeo"===this.view.type?e===i?(this._url=e,this._load(this._url)):"vimeo"===this.view.type&&(this.vimeoThumbnail=new VimeoThumbnail(this.view.url,function(i){this._url=i,this._load(i)}.bind(this),function(){this._error()}.bind(this))):this._load(this._url)))},activate:function(){this.thumbnail.addClass("fr-thumbnail-active")},_load:function(i){this.thumbnailWrapper.prepend(this.image=$("<img>").addClass("fr-thumbnail-image").attr({src:i}).css({opacity:1e-4})),this.fadeInSpinner(),this.ready=new ImageReady(this.image[0],function(i){i=i.img;this.thumbnailFrame&&this._loading&&(this._loaded=!0,this._loading=!1,this._dimensions={width:i.naturalWidth,height:i.naturalHeight},this.resize(),this.show())}.bind(this),function(){this._error()}.bind(this),{method:this.view.options.loadedMethod})},_error:function(){this._loaded=!0,this._loading=!1,this.thumbnail.addClass("fr-thumbnail-error"),this.image&&this.image.hide(),this.thumbnailWrapper.append($("<div>").addClass("fr-thumbnail-image")),this.show()},fadeInSpinner:function(){var i;Spinner.supported&&this.view.options.spinner&&(this._clearDelay(),i=this.view.options.effects.thumbnail,this._delay=setTimeout(function(){this.spinner.stop(!0).fadeTo(i.show||0,1)}.bind(this),this.view.options.spinnerDelay||0))},show:function(){this._clearDelay();var i=this.view.options.effects.thumbnail;this.loading.stop(!0).delay(i.delay).fadeTo(i.show,0)},_clearDelay:function(){this._delay&&(clearTimeout(this._delay),this._delay=null)},resize:function(){var i,t,e,s,n,o;this.thumbnailFrame&&(e="horizontal"===Thumbnails._orientation,this.thumbnailFrame.css({width:Thumbnails._vars.thumbnailFrame[e?"width":"height"],height:Thumbnails._vars.thumbnailFrame[e?"height":"width"]}),this.thumbnailFrame.css({top:e?0:Thumbnails._vars.thumbnailFrame.width*(this._position-1),left:e?Thumbnails._vars.thumbnailFrame.width*(this._position-1):0}),this.thumbnailWrapper&&(s=Thumbnails._vars.thumbnail,this.thumbnail.css({width:s.width,height:s.height,"margin-top":Math.round(-.5*s.height),"margin-left":Math.round(-.5*s.width),"margin-bottom":0,"margin-right":0}),this._dimensions&&(o={width:s.width,height:s.height},n=Math.max(o.width,o.height),(i=$.extend({},this._dimensions)).width>o.width&&i.height>o.height?(s=e=1,(t=Fit.within(o,i)).width<o.width&&(e=o.width/t.width),t.height<o.height&&(s=o.height/t.height),1<(s=Math.max(e,s))&&(t.width*=s,t.height*=s),$.each("width height".split(" "),function(i,e){t[e]=Math.round(t[e])})):t=Fit.within(this._dimensions,i.width<o.width||i.height<o.height?{width:n,height:n}:o),n=Math.round(.5*o.width-.5*t.width),o=Math.round(.5*o.height-.5*t.height),this.image.removeAttr("style").css($.extend({},t,{top:o,left:n})))))}});var UI={_modes:["fullclick","outside","inside"],_ui:!1,_validClickTargetSelector:[".fr-content-element",".fr-content",".fr-content > .fr-stroke",".fr-content > .fr-stroke .fr-stroke-color"].join(", "),initialize:function(i){$.each(this._modes,function(i,e){this[e].initialize()}.bind(this)),Window.element.addClass("fr-ui-inside-hidden fr-ui-fullclick-hidden")},set:function(i){this._ui&&(Window.element.removeClass("fr-window-ui-"+this._ui),Overlay.element.removeClass("fr-overlay-ui-"+this._ui)),Window.element.addClass("fr-window-ui-"+i),Overlay.element.addClass("fr-overlay-ui-"+i),this._enabled&&this._ui&&this._ui!==i&&(this[this._ui].disable(),this[i].enable(),UI[i].show()),this._ui=i},_onWindowResize:function(){Support.mobileTouch&&this.show()},enable:function(){$.each(this._modes,function(i,e){UI[e][e===this._ui?"enable":"disable"]()}.bind(this)),this._enabled=!0},disable:function(){$.each(this._modes,function(i,e){UI[e].disable()}.bind(this)),this._enabled=!1},adjustPrevNext:function(i,e){UI[this._ui].adjustPrevNext(i,e)},show:function(i,e){UI[this._ui].show(i,e)},hide:function(i,e){UI[this._ui].hide(i,e)},reset:function(){$.each(this._modes,function(i,e){UI[e].reset()}.bind(this))},update:function(){var i=Pages.page;i&&this.set(i._ui)},fullclick:{initialize:function(){this.build(),this._scrollLeft=-1},build:function(){Window._box.append(this._previous=$("<div>").addClass("fr-side fr-side-previous fr-side-previous-fullclick fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._next=$("<div>").addClass("fr-side fr-side-next fr-side-next-fullclick fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._close=$("<div>").addClass("fr-close fr-close-fullclick").append($("<div>").addClass("fr-close-background")).append($("<div>").addClass("fr-close-icon"))),Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).hide(),this._close.on("click",function(i){i.preventDefault(),Window.hide()}.bind(this)),this._previous.on("click",function(i){Window.previous(),this._onMouseMove(i)}.bind(this)),this._next.on("click",function(i){Window.next(),this._onMouseMove(i)}.bind(this))},enable:function(){this.bind()},disable:function(){this.unbind()},reset:function(){Window.timers.clear("ui-fullclick"),this._x=-1,this._y=-1,this._scrollLeft=-1,this.resetPrevNext(),this._onMouseLeave()},resetPrevNext:function(){this._previous.add(this._next).stop(!0).removeAttr("style")},bind:function(){this._onMouseUpHandler||(this.unbind(),Window._pages.on("mouseup",".fr-container",this._onMouseUpHandler=this._onMouseUp.bind(this)),Support.mobileTouch||(Window.element.on("mouseenter",this._showHandler=this.show.bind(this)).on("mouseleave",this._hideHandler=this.hide.bind(this)),Window.element.on("mousemove",this._mousemoveHandler=function(i){var e=i.pageX,i=i.pageY;this._hoveringSideButton||i===this._y&&e===this._x||(this._x=e,this._y=i,this.show(),this.startTimer())}.bind(this)),Window._pages.on("mousemove",".fr-container",this._onMouseMoveHandler=this._onMouseMove.bind(this)).on("mouseleave",".fr-container",this._onMouseLeaveHandler=this._onMouseLeave.bind(this)).on("mouseenter",".fr-container",this._onMouseEnterHandler=this._onMouseEnter.bind(this)),Window.element.on("mouseenter",".fr-side",this._onSideMouseEnterHandler=this._onSideMouseEnter.bind(this)).on("mouseleave",".fr-side",this._onSideMouseLeaveHandler=this._onSideMouseLeave.bind(this)),$(window).on("scroll",this._onScrollHandler=this._onScroll.bind(this))))},unbind:function(){this._onMouseUpHandler&&(Window._pages.off("mouseup",".fr-container",this._onMouseUpHandler),this._onMouseUpHandler=null,this._showHandler&&(Window.element.off("mouseenter",this._showHandler).off("mouseleave",this._hideHandler).off("mousemove",this._mousemoveHandler),Window._pages.off("mousemove",".fr-container",this._onMouseMoveHandler).off("mouseleave",".fr-container",this._onMouseLeaveHandler).off("mouseenter",".fr-container",this._onMouseEnterHandler),Window.element.off("mouseenter",".fr-side",this._onSideMouseEnterHandler).off("mouseleave",".fr-side",this._onSideMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._showHandler=null))},adjustPrevNext:function(i,e){var t,s,n,o=Pages.page;o&&((s=Window.element.is(":visible"))||Window.element.show(),n=this._previous.attr("style"),this._previous.removeAttr("style"),t=parseInt(this._previous.css("margin-top")),this._previous.attr({style:n}),s||Window.element.hide(),n=o._infoHeight||0,s=this._previous.add(this._next),n={"margin-top":t-.5*n},e="number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.content.show||0,this.opening&&(e=0),s.stop(!0).animate(n,e,i),this._previous[(Window.mayPrevious()?"remove":"add")+"Class"]("fr-side-disabled"),this._next[(Window.mayNext()?"remove":"add")+"Class"]("fr-side-disabled"),s[(o._total<2?"add":"remove")+"Class"]("fr-side-hidden")),i&&i()},_onScroll:function(){this._scrollLeft=$(window).scrollLeft()},_onMouseMove:function(i){if(!Support.mobileTouch){var e=this._getEventSide(i),i=_.String.capitalize(e),i=!!e&&Window["may"+i]();if(e!==this._hoveringSide||i!==this._mayClickHoveringSide)switch(this._hoveringSide=e,this._mayClickHoveringSide=i,Window._box[(i?"add":"remove")+"Class"]("fr-hovering-clickable"),e){case"previous":Window._box.addClass("fr-hovering-previous").removeClass("fr-hovering-next");break;case"next":Window._box.addClass("fr-hovering-next").removeClass("fr-hovering-previous")}}},_onMouseLeave:function(i){Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next"),this._hoveringSide=!1},_onMouseUp:function(i){var e;1<i.which||(1!==Pages.pages.length?(e=this._getEventSide(i),Window[e](),this._onMouseMove(i)):Window.hide())},_onMouseEnter:function(i){this._onMouseMove(i)},_getEventSide:function(i){-1<this._scrollLeft?this._scrollLeft:this._scrollLeft=$(window).scrollLeft();return i.pageX-Window._boxPosition.left-this._scrollLeft<.5*Window._boxDimensions.width?"previous":"next"},_onSideMouseEnter:function(i){this._hoveringSideButton=!0,this._hoveringSide=this._getEventSide(i),this._mayClickHoveringSide=Window["may"+_.String.capitalize(this._hoveringSide)](),this.clearTimer()},_onSideMouseLeave:function(i){this._hoveringSideButton=!1,this._hoveringSide=!1,this._mayClickHoveringSide=!1,this.startTimer()},show:function(i){if(this._visible)return this.startTimer(),void("function"==typeof i&&i());this._visible=!0,this.startTimer(),Window.element.addClass("fr-visible-fullclick-ui").removeClass("fr-hidden-fullclick-ui"),Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).show(),"function"==typeof i&&i()},hide:function(i){var e=Pages.page&&Pages.page.view.type;this._visible&&(!e||"youtube"!==e&&"vimeo"!==e)?(this._visible=!1,Window.element.removeClass("fr-visible-fullclick-ui").addClass("fr-hidden-fullclick-ui"),"function"===$.type(i)&&i()):"function"==typeof i&&i()},clearTimer:function(){Support.mobileTouch||Window.timers.clear("ui-fullclick")},startTimer:function(){Support.mobileTouch||(this.clearTimer(),Window.timers.set("ui-fullclick",function(){this.hide()}.bind(this),Window.view?Window.view.options.uiDelay:0))}},inside:{initialize:function(){},enable:function(){this.bind()},disable:function(){this.unbind()},bind:function(){this._onMouseUpHandler||(this.unbind(),Window._pages.on("mouseup",".fr-content",this._onMouseUpHandler=this._onMouseUp.bind(this)),Window._pages.on("click",".fr-content .fr-close",function(i){i.preventDefault(),Window.hide()}.bind(this)).on("click",".fr-content .fr-side-previous",function(i){Window.previous(),this._onMouseMove(i)}.bind(this)).on("click",".fr-content .fr-side-next",function(i){Window.next(),this._onMouseMove(i)}.bind(this)),Window.element.on("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler=this._delegateOverlayClose.bind(this)),Support.mobileTouch||(Window.element.on("mouseenter",".fr-content",this._showHandler=this.show.bind(this)).on("mouseleave",".fr-content",this._hideHandler=this.hide.bind(this)),Window.element.on("mousemove",".fr-content",this._mousemoveHandler=function(i){var e=i.pageX,i=i.pageY;this._hoveringSideButton||i===this._y&&e===this._x||(this._x=e,this._y=i,this.show(),this.startTimer())}.bind(this)),Window._pages.on("mousemove",".fr-info, .fr-close",function(i){i.stopPropagation(),this._onMouseLeave(i)}.bind(this)),Window._pages.on("mousemove",".fr-info",function(){this.clearTimer()}.bind(this)),Window._pages.on("mousemove",".fr-content",this._onMouseMoveHandler=this._onMouseMove.bind(this)).on("mouseleave",".fr-content",this._onMouseLeaveHandler=this._onMouseLeave.bind(this)).on("mouseenter",".fr-content",this._onMouseEnterHandler=this._onMouseEnter.bind(this)),Window.element.on("mouseenter",".fr-side",this._onSideMouseEnterHandler=this._onSideMouseEnter.bind(this)).on("mouseleave",".fr-side",this._onSideMouseLeaveHandler=this._onSideMouseLeave.bind(this)),$(window).on("scroll",this._onScrollHandler=this._onScroll.bind(this))))},unbind:function(){this._onMouseUpHandler&&(Window._pages.off("mouseup",".fr-content",this._onMouseUpHandler),this._onMouseUpHandler=null,Window._pages.off("click",".fr-content .fr-close").off("click",".fr-content .fr-side-previous").off("click",".fr-content .fr-side-next"),Window.element.off("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler),this._showHandler&&(Window.element.off("mouseenter",".fr-content",this._showHandler).off("mouseleave",".fr-content",this._hideHandler).off("mousemove",".fr-content",this._mousemoveHandler),Window._pages.off("mousemove",".fr-info, .fr-close"),Window._pages.off("mousemove",".fr-info"),Window._pages.off("mousemove",".fr-content-element",this._onMouseMoveHandler).off("mouseleave",".fr-content",this._onMouseLeaveHandler).off("mouseenter",".fr-content",this._onMouseEnterHandler),Window.element.off("mouseenter",".fr-side",this._onSideMouseEnterHandler).off("mouseleave",".fr-side",this._onSideMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._showHandler=null))},reset:function(){Window.timers.clear("ui-fullclick"),this._x=-1,this._y=-1,this._scrollLeft=-1,this._hoveringSide=!1,this._onMouseLeave()},adjustPrevNext:function(i){i&&i()},_onScroll:function(){this._scrollLeft=$(window).scrollLeft()},_delegateOverlayClose:function(i){var e=Pages.page;e&&e.view.options.overlay&&!e.view.options.overlay.close||$(i.target).is(".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper")&&(i.preventDefault(),i.stopPropagation(),Window.hide())},_onMouseMove:function(i){if(!Support.mobileTouch){var e=this._getEventSide(i),i=_.String.capitalize(e),i=!!e&&Window["may"+i]();if((e=1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick?!1:e)!==this._hoveringSide||i!==this._mayClickHoveringSide)if(this._hoveringSide=e,this._mayClickHoveringSide=i,e)switch(Window._box[(i?"add":"remove")+"Class"]("fr-hovering-clickable"),e){case"previous":Window._box.addClass("fr-hovering-previous").removeClass("fr-hovering-next");break;case"next":Window._box.addClass("fr-hovering-next").removeClass("fr-hovering-previous")}else Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next")}},_onMouseLeave:function(i){Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next"),this._hoveringSide=!1},_onMouseUp:function(i){var e;1<i.which||!$(i.target).is(UI._validClickTargetSelector)||(1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick?Window.hide():(e=this._getEventSide(i),Window[e](),this._onMouseMove(i)))},_onMouseEnter:function(i){this._onMouseMove(i)},_getEventSide:function(i){-1<this._scrollLeft?this._scrollLeft:this._scrollLeft=$(window).scrollLeft();return i.pageX-Window._boxPosition.left-this._scrollLeft<.5*Window._boxDimensions.width?"previous":"next"},_onSideMouseEnter:function(i){this._hoveringSideButton=!0,this._hoveringSide=this._getEventSide(i),this._mayClickHoveringSide=Window["may"+_.String.capitalize(this._hoveringSide)](),this.clearTimer()},_onSideMouseLeave:function(i){this._hoveringSideButton=!1,this._hoveringSide=!1,this._mayClickHoveringSide=!1,this.startTimer()},show:function(i){if(this._visible)return this.startTimer(),void("function"==typeof i&&i());this._visible=!0,this.startTimer(),Window.element.addClass("fr-visible-inside-ui").removeClass("fr-hidden-inside-ui"),"function"==typeof i&&i()},hide:function(i){this._visible&&(this._visible=!1,Window.element.removeClass("fr-visible-inside-ui").addClass("fr-hidden-inside-ui")),"function"==typeof i&&i()},clearTimer:function(){Support.mobileTouch||Window.timers.clear("ui-inside")},startTimer:function(){Support.mobileTouch||(this.clearTimer(),Window.timers.set("ui-inside",function(){this.hide()}.bind(this),Window.view?Window.view.options.uiDelay:0))}},outside:{initialize:function(){this.build(),this._scrollLeft=-1},build:function(){Window._box.append(this._previous=$("<div>").addClass("fr-side fr-side-previous fr-side-previous-outside").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._next=$("<div>").addClass("fr-side fr-side-next fr-side-next-outside").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._close=$("<div>").addClass("fr-close fr-close-outside").append($("<div>").addClass("fr-close-background")).append($("<div>").addClass("fr-close-icon"))),Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).hide(),this._close.on("click",function(i){i.preventDefault(),Window.hide()}.bind(this)),this._previous.on("click",function(i){Window.previous(),this._onMouseMove(i)}.bind(this)),this._next.on("click",function(i){Window.next(),this._onMouseMove(i)}.bind(this))},enable:function(){this.bind()},disable:function(){this.unbind()},reset:function(){Window.timers.clear("ui-outside"),this._x=-1,this._y=-1,this._scrollLeft=-1,this._onMouseLeave()},bind:function(){this._onMouseUpHandler||(this.unbind(),Window.element.on("mouseup",".fr-content",this._onMouseUpHandler=this._onMouseUp.bind(this)),Window.element.on("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler=this._delegateOverlayClose.bind(this)),Support.mobileTouch||(Window._pages.on("mousemove",".fr-content",this._onMouseMoveHandler=this._onMouseMove.bind(this)).on("mouseleave",".fr-content",this._onMouseLeaveHandler=this._onMouseLeave.bind(this)).on("mouseenter",".fr-content",this._onMouseEnterHandler=this._onMouseEnter.bind(this)),Window.element.on("mouseenter",".fr-side",this._onSideMouseEnterHandler=this._onSideMouseEnter.bind(this)).on("mouseleave",".fr-side",this._onSideMouseLeaveHandler=this._onSideMouseLeave.bind(this)),$(window).on("scroll",this._onScrollHandler=this._onScroll.bind(this))))},unbind:function(){this._onMouseUpHandler&&(Window.element.off("mouseup",".fr-content",this._onMouseUpHandler),this._onMouseUpHandler=null,Window.element.off("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler),this._onMouseMoveHandler&&(Window._pages.off("mousemove",".fr-content",this._onMouseMoveHandler).off("mouseleave",".fr-content",this._onMouseLeaveHandler).off("mouseenter",".fr-content",this._onMouseEnterHandler),Window.element.off("mouseenter",".fr-side",this._onSideMouseEnterHandler).off("mouseleave",".fr-side",this._onSideMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._onMouseMoveHandler=null))},adjustPrevNext:function(i,e){var t,s=Pages.page;s&&(t=this._previous.add(this._next),this._previous[(Window.mayPrevious()?"remove":"add")+"Class"]("fr-side-disabled"),this._next[(Window.mayNext()?"remove":"add")+"Class"]("fr-side-disabled"),t[(s._total<2?"add":"remove")+"Class"]("fr-side-hidden")),i&&i()},_onScroll:function(){this._scrollLeft=$(window).scrollLeft()},_delegateOverlayClose:function(i){var e=Pages.page;e&&e.view.options.overlay&&!e.view.options.overlay.close||$(i.target).is(".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper")&&(i.preventDefault(),i.stopPropagation(),Window.hide())},_onMouseMove:function(i){if(!Support.mobileTouch){var e=this._getEventSide(i),i=_.String.capitalize(e),i=!!e&&Window["may"+i]();if((e=1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick?!1:e)!==this._hoveringSide||i!==this._mayClickHoveringSide)if(this._hoveringSide=e,this._mayClickHoveringSide=i,e)switch(Window._box[(i?"add":"remove")+"Class"]("fr-hovering-clickable"),e){case"previous":Window._box.addClass("fr-hovering-previous").removeClass("fr-hovering-next");break;case"next":Window._box.addClass("fr-hovering-next").removeClass("fr-hovering-previous")}else Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next")}},_onMouseLeave:function(i){Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next"),this._hoveringSide=!1},_onMouseUp:function(i){var e;1<i.which||!$(i.target).is(UI._validClickTargetSelector)||(1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick?Window.hide():(e=this._getEventSide(i),Window[e](),this._onMouseMove(i)))},_onMouseEnter:function(i){this._onMouseMove(i)},_getEventSide:function(i){-1<this._scrollLeft?this._scrollLeft:this._scrollLeft=$(window).scrollLeft();return i.pageX-Window._boxPosition.left-this._scrollLeft<.5*Window._boxDimensions.width?"previous":"next"},show:function(){Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).show()},hide:function(){},_onSideMouseEnter:function(i){this._hoveringSideButton=!0,this._hoveringSide=this._getEventSide(i),this._mayClickHoveringSide=Window["may"+_.String.capitalize(this._hoveringSide)]()},_onSideMouseLeave:function(i){this._hoveringSideButton=!1,this._hoveringSide=!1,this._mayClickHoveringSide=!1},clearTimer:function(){}}};return $(function(){_Fresco.initialize()}),Fresco});jQuery(document).ready(function($){$('.show-more').on('click',function(){$('.tldr ul li:nth-child(2) span').contents().unwrap();$('.show-more').hide();$('.tldr ul li:nth-child(n+3)').css("display","list-item")})});(()=>{"use strict";var e={365:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen{height:100%}.wg-wrapper[data-v-21cbf1ea]{font-family:var(--07379a9f);height:100%}",""]);const c=i},968:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,".wg-loader-p[data-v-55c33628]{background:var(--31d93014);border-bottom:1px solid var(--07d13f9a)}",""]);const c=i},99:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-container[data-v-d05217d0]{padding:8px;display:flex;flex-direction:column}#wgWidgetScreen .wg-widget-container .wgwidget-game__info[data-v-d05217d0]{display:flex;flex-direction:row}",""]);const c=i},766:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-command[data-v-62e86c4d]{display:flex;justify-content:center;flex-direction:column;align-items:center;margin:auto}#wgWidgetScreen .wg-widget-command__icon[data-v-62e86c4d]{width:60px;height:60px}#wgWidgetScreen .wg-widget-command__name[data-v-62e86c4d]{margin-top:4px;color:var(--ca11612e);font-size:var(--91c9f8f8);font-weight:var(--309eeaf1);line-height:16px}",""]);const c=i},984:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-placeholder[data-v-d6249f0a]{display:flex;flex-direction:row;align-items:center;border-radius:2px;padding:4px 8px;background-color:var(--4ad1747f);font-size:var(--2a2c557e);font-weight:var(--240d1ab3);color:var(--27988709);margin:8px 0}#wgWidgetScreen .wg-widget-placeholder__icon[data-v-d6249f0a]{margin-right:4px}",""]);const c=i},672:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-score[data-v-78c5cd43]{margin:0 16px;display:flex;justify-content:center;align-items:center;flex-direction:column}#wgWidgetScreen .wg-widget-score .wg-score[data-v-78c5cd43]{color:var(--0b9df8dc);font-size:var(--8b070edc);font-weight:var(--7de92cec)}#wgWidgetScreen .wg-widget-score .wg-score .wg-green[data-v-78c5cd43]{color:var(--0d99d923)}#wgWidgetScreen .wg-widget-score .wg-score .wg-up-score[data-v-78c5cd43]{color:var(--60b6cab1)}#wgWidgetScreen .wg-widget-score .wg-score .wg-down-score[data-v-78c5cd43]{color:var(--67d7e1a2)}#wgWidgetScreen .wg-widget-score .wg-score .wg-score__divider[data-v-78c5cd43]{margin:0 8px}#wgWidgetScreen .wg-widget-score .wg-status[data-v-78c5cd43]{background:var(--0c1fbafe);color:var(--67d7e1a2);padding:0 8px;border-radius:8px;width:fit-content;margin:auto;font-size:var(--f86c4286);font-weight:var(--03be8d58)}#wgWidgetScreen .wg-widget-score .wg-live[data-v-78c5cd43]{color:var(--60b6cab1)}#wgWidgetScreen .wg-widget-score .wg-pen-score[data-v-78c5cd43]{color:var(--8b9016ac);font-size:var(--f86c4286);font-weight:var(--03be8d58)}",""]);const c=i},429:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(889),r=n.n(s),o=n(786),i=n.n(o)()(r());i.push([e.id,"#wgWidgetScreen .wg-widget-title[data-v-3b301c6f]{color:var(--1084ee47);font-size:var(--3b273f3c);font-weight:var(--73ce6c4f)}",""]);const c=i},786:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",s=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),s&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),s&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,s,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(s)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(i[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);s&&i[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},889:e=>{e.exports=function(e){return e[1]}},374:(e,t)=>{t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,s]of t)n[e]=s;return n}},72:e=>{var t=[];function n(e){for(var n=-1,s=0;s<t.length;s++)if(t[s].identifier===e){n=s;break}return n}function s(e,s){for(var o={},i=[],c=0;c<e.length;c++){var a=e[c],l=s.base?a[0]+s.base:a[0],u=o[l]||0,h="".concat(l," ").concat(u);o[l]=u+1;var d=n(h),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var f=r(p,s);s.byIndex=c,t.splice(c,0,{identifier:h,updater:f,references:1})}i.push(h)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=s(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=n(o[i]);t[c].references--}for(var a=s(e,r),l=0;l<o.length;l++){var u=n(o[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=a}}},659:e=>{var t={};e.exports=function(e,n){var s=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var s="";n.supports&&(s+="@supports (".concat(n.supports,") {")),n.media&&(s+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(s+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),s+=n.css,r&&(s+="}"),n.media&&(s+="}"),n.supports&&(s+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={id:s,exports:{}};return e[s](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var s={};n.r(s),n.d(s,{colors:()=>u,fonts:()=>l,state:()=>h});const r="football",o="sport:"+r,i={en:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],de:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],pt:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],id:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],it:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ko:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],pl:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ru:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],es:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],th:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],tr:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],uk:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],vi:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],nl:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ro:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],ka:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],hy:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],az:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],el:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"],uz:["At the moment there are no Live matches and there are no scheduled matches for the next 2 days.","At the moment there are no Live matches, the closest match is"]},c={en:["Finished","Half time","Postponed","Cancelled","Results only","Live","Finished (OT)","Finished (P)","Awarded","Extra HT","Penalties","Pause","Break time","Q1","Q2","Q3","Q4","OT"],fr:["Finis","Mi-temps","Reporté","Annulé","Résultats uniquement","En ligne","Terminé (Prol.)","Terminé (P)","Récompensé","HT supplémentaire","Pénalités","Pause","Temps de pause","Q1","Q2","Q3","Q4","Prol."],pt:["Completado","Meia hora","Adiado","Cancelado","Apenas resultados","Ao vivo","Finalizado (TE)","Finalizado (P)","Atribuído","Intervalo extra","Penalidades","Pausa","Tempo de intervalo","Q1","Q2","Q3","Q4","TE"],de:["Beendet","Halbzeit","Verschoben","Annulliert","Nur Ergebnisse","Live","Beendet (Verl.)","Beendet (P)","Ausgezeichnet","Zusätzliche HT","Strafstöße","Pause","Pausezeit","Q1","Q2","Q3","Q4","Verl."],id:["Selesai","Setengah waktu","Ditunda","Dibatalkan","Hanya hasil","Langsung","Selesai (WT)","Selesai (P)","Diberikan","HT tambahan","Penalti","Berhenti sebentar","Waktu istirahat","Q1","Q2","Q3","Q4","WT"],it:["Finito","Metà tempo","posticipato","Annullato","Solo risultati","Dal vivo","Finito (Suppl.)","Finito (P)","Premiato","HT extra","Rigori","Pausa","Tempo di pausa","Q1","Q2","Q3","Q4","Suppl."],ko:["완성 된","하프 타임","연기","취소 된","결과만","생중계","종료 (연장)","종료 (P)","수상","추가 HT","페널티","중지","휴식 시간","Q1","Q2","Q3","Q4","연장"],pl:["Zakończone","Połowa czasu","Odłożony","Odwołany","Tylko wyniki","Na żywo","Zakończony (Dogr.)","Zakończony (P)","Wyróżniony","Dodatkowa HT","Karne","Przerwa","Czas przerwy","Q1","Q2","Q3","Q4","Dogr."],ru:["Завершен","Половина времени","Перенесен","Отменен","Только результаты","В прямом эфире","Завершен (ОТ)","Завершен (П)","Награжден","Дополнительный перерыв","Пенальти","Пауза","Перерыв","Q1","Q2","Q3","Q4","ОТ"],es:["Completado","Medio tiempo","Aplazado","Cancelado","Solo resultados","En vivo","Terminado (Prorr.)","Terminado (P)","Concedido","Descanso extra","Penaltis","Pausa","Tiempo de descanso","Q1","Q2","Q3","Q4","Prorr."],th:["ที่เสร็จเรียบร้อย","ครึ่งแรก","เลื่อนออกไป","ยกเลิก","เฉพาะผลลัพธ์","ถ่ายทอดสด","สิ้นสุด (ต่อเวลา)","สิ้นสุด (P)","ได้รับรางวัล","พักเพิ่มเติม HT","จุดโทษ","หยุด","เวลาพัก","Q1","Q2","Q3","Q4","ต่อเวลา"],tr:["Bitmiş","Yarıya","Ertelenen","İptal edildi","Sadece sonuçlar","Canlı","Bitmiş (Uz.)","Bitmiş (P)","Layık görülmek","Ekstra HT","Penaltılar","Duraklat","Mola zamanı","Q1","Q2","Q3","Q4","Uz."],uk:["Завершено","Половина часу","Перенесений","Скасований","Тільки результати","Наживо","Закінчено (ДЧ)","Закінчено (П)","Нагороджений","Додатковиа перерва","Пенальті","Пауза","Перерва","Q1","Q2","Q3","Q4","ДЧ"],vi:["Hoàn thành","Nửa thời gian","Hoãn lại","Đã hủy","Chỉ kết quả","Trực tiếp","Hoàn thành (PG)","Hoàn thành (P)","Trao giải thưởng","Nghỉ giữa hiệp phụ","Phạt đền","Tạm ngừng","Thời gian nghỉ","Q1","Q2","Q3","Q4","PG"],nl:["Afgelopen","Rust","Uitgesteld","Geannuleerd","Alleen resultaten","Live","Afgerond (Verl.)","Afgerond (P)","Toegekend","Extra HT","Strafschoppen","Pauze","Pauzetijd","Q1","Q2","Q3","Q4","Verl."],ro:["Terminat","Jumătate de timp","Amânat","Anulat","Doar rezultate","Live","Finalizat (Prel.)","Finalizat (P)","Acordat","HT suplimentar","Penalități","Pauză","Timp de pauză","Q1","Q2","Q3","Q4","Prel."],ka:["დასრულდა","Ნახევარი დრო","გადაიდო","გაუქმებულია","მხოლოდ შედეგები","პირდაპირი","დასრულდა (დრო გაგრძ.)","დასრულდა (P)","Დაჯილდოებული","დამატებითი HT","პენალტები","პაუზა","შესვენების დრო","Q1","Q2","Q3","Q4","დრო გაგრძ."],hy:["Ավարտվեց","Կես ժամ","Հետաձգվել է","Չեղյալ է հայտարարվել","Միայն արդյունքները","Ուղիղ","Ավարտված է (Հավ. ժամ.)","Ավարտված է (P)","Պարգևատրվել է","Ավելին HT","Պենալտիներ","Դադար","Դադարի ժամանակ","Q1","Q2","Q3","Q4","Հավ. ժամ."],az:["Başa çatdı","Yarım vaxt","Təxirə salındı","Lağv edildi","Yalnız nəticələr","Canlı","Bitdi (Uzatma)","Bitdi (P)","Mükafatlandırıldı","Əlavə HT","Penalti","Fasilə","Fasilə vaxtı","Q1","Q2","Q3","Q4","Uzatma"],el:["Ολοκληρώθηκε","Ημίχρονο","Αναβλήθηκε","Ακυρώθηκε","Μόνο αποτελέσματα","Ζωντανά","Ολοκληρώθηκε (Παρ.)","Ολοκληρώθηκε (P)","Βραβευμένο","Επιπλέον HT","Πέναλτι","Παύση","Διάλειμμα","Q1","Q2","Q3","Q4","Παρ."],uz:["Bajarildi","Yarim vaqt","Kechiktirildi","Bekor qilindi","Faqat natijalar","Jonli","Tugadi (Uzv.)","Tugadi (P)","Mukofotlangan","Qo'shimcha HT","Penalti tiplari","Pauza","Tanaffus vaqti","Q1","Q2","Q3","Q4","Uzv."]},a={en:"Information will be available later",fr:"Les informations seront disponibles ultérieurement",pt:"As informações estarão disponíveis posteriormente",de:"Informationen werden zu einem späteren Zeitpunkt verfügbar sein",id:"Informasi akan tersedia kemudian",it:"Le informazioni saranno disponibili in seguito",ko:"정보는 추후 제공될 예정입니다.",pl:"Informacje będą dostępne później",ru:"Информация будет доступна позже",es:"La información estará disponible más adelante",th:"ข้อมูลจะพร้อมใช้งานในภายหลัง",tr:"Bilgi daha sonra sunulacaktır",uk:"Інформація буде доступна пізніше",vi:"Thông tin sẽ có sẵn sau",nl:"Informatie is later beschikbaar",ro:"Informațiile vor fi disponibile ulterior",ka:"ინფორმაცია მოგვიანებით იქნება ხელმისაწვდომი",hy:"Տեղեկատվությունը հասանելի կլինի ավելի ուշ",az:"Məlumat daha sonra mövcud olacaq",el:"Οι πληροφορίες θα είναι διαθέσιμες αργότερα",uz:"Ma'lumot keyinchalik beriladi"},l={main_font:"Roboto",regular:"400",medium500:"500",bold:"600",bold700:"700",small:"10px",medium:"12px",large:"14px",large32:"32px"},u={primary_black:"#212B36",primary_grey:"#8595A5",white_secondary:"#F9FAFB",secondary_grey:"#6A7B8B",green:"#1B883F",red:"#D70C17",lightGray:"#30365B",midnight:"#111936"},h={on:!0,off:!1};function d(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.freeze(l),Object.freeze(u),Object.freeze(h);const p={},f=[],m=()=>{},_=()=>!1,g=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith("onUpdate:"),v=Object.assign,y=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},w=Object.prototype.hasOwnProperty,S=(e,t)=>w.call(e,t),T=Array.isArray,x=e=>"[object Map]"===R(e),C=e=>"[object Set]"===R(e),k=e=>"function"==typeof e,E=e=>"string"==typeof e,P=e=>"symbol"==typeof e,A=e=>null!==e&&"object"==typeof e,L=e=>(A(e)||k(e))&&k(e.then)&&k(e.catch),O=Object.prototype.toString,R=e=>O.call(e),j=e=>R(e).slice(8,-1),I=e=>"[object Object]"===R(e),M=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F=/-(\w)/g,U=z((e=>e.replace(F,((e,t)=>t?t.toUpperCase():"")))),Q=/\B([A-Z])/g,N=z((e=>e.replace(Q,"-$1").toLowerCase())),$=z((e=>e.charAt(0).toUpperCase()+e.slice(1))),B=z((e=>e?`on${$(e)}`:"")),W=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},H=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},q=e=>{const t=parseFloat(e);return isNaN(t)?e:t},J=e=>{const t=E(e)?Number(e):NaN;return isNaN(t)?e:t};let G;const K=()=>G||(G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function Z(e){if(T(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=E(s)?te(s):Z(s);if(r)for(const e in r)t[e]=r[e]}return t}if(E(e)||A(e))return e}const Y=/;(?![^(]*\))/g,X=/:([^]+)/,ee=/\/\*[^]*?\*\//g;function te(e){const t={};return e.replace(ee,"").split(Y).forEach((e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ne(e){let t="";if(E(e))t=e;else if(T(e))for(let n=0;n<e.length;n++){const s=ne(e[n]);s&&(t+=s+" ")}else if(A(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const se=d("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function re(e){return!!e||""===e}const oe=e=>!(!e||!0!==e.__v_isRef),ie=e=>E(e)?e:null==e?"":T(e)||A(e)&&(e.toString===O||!k(e.toString))?oe(e)?ie(e.value):JSON.stringify(e,ce,2):String(e),ce=(e,t)=>oe(t)?ce(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],s)=>(e[ae(t,s)+" =>"]=n,e)),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ae(e)))}:P(t)?ae(t):!A(t)||T(t)||I(t)?t:String(t),ae=(e,t="")=>{var n;return P(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let le,ue;class he{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=le,!e&&le&&(this.index=(le.scopes||(le.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=le;try{return le=this,e()}finally{le=t}}}on(){le=this}off(){le=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class de{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=le){t&&t.active&&t.effects.push(e)}(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,ye();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(pe(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),we()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ge,t=ue;try{return ge=!0,ue=this,this._runnings++,fe(this),this.fn()}finally{me(this),this._runnings--,ue=t,ge=e}}stop(){this.active&&(fe(this),me(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){return e.value}function fe(e){e._trackId++,e._depsLength=0}function me(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)_e(e.deps[t],e);e.deps.length=e._depsLength}}function _e(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let ge=!0,be=0;const ve=[];function ye(){ve.push(ge),ge=!1}function we(){const e=ve.pop();ge=void 0===e||e}function Se(){be++}function Te(){for(be--;!be&&Ce.length;)Ce.shift()()}function xe(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&_e(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ce=[];function ke(e,t,n){Se();for(const n of e.keys()){let s;n._dirtyLevel<t&&(null!=s?s:s=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=s?s:s=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&Ce.push(n.scheduler)))}Te()}const Ee=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Pe=new WeakMap,Ae=Symbol(""),Le=Symbol("");function Oe(e,t,n){if(ge&&ue){let t=Pe.get(e);t||Pe.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=Ee((()=>t.delete(n)))),xe(ue,s)}}function Re(e,t,n,s,r,o){const i=Pe.get(e);if(!i)return;let c=[];if("clear"===t)c=[...i.values()];else if("length"===n&&T(e)){const e=Number(s);i.forEach(((t,n)=>{("length"===n||!P(n)&&n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":T(e)?M(n)&&c.push(i.get("length")):(c.push(i.get(Ae)),x(e)&&c.push(i.get(Le)));break;case"delete":T(e)||(c.push(i.get(Ae)),x(e)&&c.push(i.get(Le)));break;case"set":x(e)&&c.push(i.get(Ae))}Se();for(const e of c)e&&ke(e,4);Te()}const je=d("__proto__,__v_isRef,__isVue"),Ie=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(P)),Me=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=St(this);for(let e=0,t=this.length;e<t;e++)Oe(n,0,e+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(St)):s}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ye(),Se();const n=St(this)[t].apply(this,e);return Te(),we(),n}})),e}function ze(e){P(e)||(e=String(e));const t=St(this);return Oe(t,0,e),t.hasOwnProperty(e)}class Fe{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?ft:pt:r?dt:ht).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=T(e);if(!s){if(o&&S(Me,t))return Reflect.get(Me,t,n);if("hasOwnProperty"===t)return ze}const i=Reflect.get(e,t,n);return(P(t)?Ie.has(t):je(t))?i:(s||Oe(e,0,t),r?i:Pt(i)?o&&M(t)?i:i.value:A(i)?s?_t(i):mt(i):i)}}class Ue extends Fe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=vt(r);if(yt(n)||vt(n)||(r=St(r),n=St(n)),!T(e)&&Pt(r)&&!Pt(n))return!t&&(r.value=n,!0)}const o=T(e)&&M(t)?Number(t)<e.length:S(e,t),i=Reflect.set(e,t,n,s);return e===St(s)&&(o?W(n,r)&&Re(e,"set",t,n):Re(e,"add",t,n)),i}deleteProperty(e,t){const n=S(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Re(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return P(t)&&Ie.has(t)||Oe(e,0,t),n}ownKeys(e){return Oe(e,0,T(e)?"length":Ae),Reflect.ownKeys(e)}}class Qe extends Fe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ne=new Ue,$e=new Qe,Be=new Ue(!0),We=e=>e,Ve=e=>Reflect.getPrototypeOf(e);function He(e,t,n=!1,s=!1){const r=St(e=e.__v_raw),o=St(t);n||(W(t,o)&&Oe(r,0,t),Oe(r,0,o));const{has:i}=Ve(r),c=s?We:n?xt:Tt;return i.call(r,t)?c(e.get(t)):i.call(r,o)?c(e.get(o)):void(e!==r&&e.get(t))}function qe(e,t=!1){const n=this.__v_raw,s=St(n),r=St(e);return t||(W(e,r)&&Oe(s,0,e),Oe(s,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Je(e,t=!1){return e=e.__v_raw,!t&&Oe(St(e),0,Ae),Reflect.get(e,"size",e)}function Ge(e,t=!1){t||yt(e)||vt(e)||(e=St(e));const n=St(this);return Ve(n).has.call(n,e)||(n.add(e),Re(n,"add",e,e)),this}function Ke(e,t,n=!1){n||yt(t)||vt(t)||(t=St(t));const s=St(this),{has:r,get:o}=Ve(s);let i=r.call(s,e);i||(e=St(e),i=r.call(s,e));const c=o.call(s,e);return s.set(e,t),i?W(t,c)&&Re(s,"set",e,t):Re(s,"add",e,t),this}function Ze(e){const t=St(this),{has:n,get:s}=Ve(t);let r=n.call(t,e);r||(e=St(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Re(t,"delete",e,void 0),o}function Ye(){const e=St(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,s){const r=this,o=r.__v_raw,i=St(o),c=t?We:e?xt:Tt;return!e&&Oe(i,0,Ae),o.forEach(((e,t)=>n.call(s,c(e),c(t),r)))}}function et(e,t,n){return function(...s){const r=this.__v_raw,o=St(r),i=x(o),c="entries"===e||e===Symbol.iterator&&i,a="keys"===e&&i,l=r[e](...s),u=n?We:t?xt:Tt;return!t&&Oe(o,0,a?Le:Ae),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function nt(){const e={get(e){return He(this,e)},get size(){return Je(this)},has:qe,add:Ge,set:Ke,delete:Ze,clear:Ye,forEach:Xe(!1,!1)},t={get(e){return He(this,e,!1,!0)},get size(){return Je(this)},has:qe,add(e){return Ge.call(this,e,!0)},set(e,t){return Ke.call(this,e,t,!0)},delete:Ze,clear:Ye,forEach:Xe(!1,!0)},n={get(e){return He(this,e,!0)},get size(){return Je(this,!0)},has(e){return qe.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!1)},s={get(e){return He(this,e,!0,!0)},get size(){return Je(this,!0)},has(e){return qe.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=et(r,!1,!1),n[r]=et(r,!0,!1),t[r]=et(r,!1,!0),s[r]=et(r,!0,!0)})),[e,n,t,s]}const[st,rt,ot,it]=nt();function ct(e,t){const n=t?e?it:ot:e?rt:st;return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(S(n,s)&&s in t?n:t,s,r)}const at={get:ct(!1,!1)},lt={get:ct(!1,!0)},ut={get:ct(!0,!1)},ht=new WeakMap,dt=new WeakMap,pt=new WeakMap,ft=new WeakMap;function mt(e){return vt(e)?e:gt(e,!1,Ne,at,ht)}function _t(e){return gt(e,!0,$e,ut,pt)}function gt(e,t,n,s,r){if(!A(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(c));var c;if(0===i)return e;const a=new Proxy(e,2===i?s:n);return r.set(e,a),a}function bt(e){return vt(e)?bt(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return!(!e||!e.__v_isShallow)}function wt(e){return!!e&&!!e.__v_raw}function St(e){const t=e&&e.__v_raw;return t?St(t):e}const Tt=e=>A(e)?mt(e):e,xt=e=>A(e)?_t(e):e;class Ct{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new de((()=>e(this._value)),(()=>Et(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=St(this);return e._cacheable&&!e.effect.dirty||!W(e._value,e._value=e.effect.run())||Et(e,4),kt(e),e.effect._dirtyLevel>=2&&Et(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function kt(e){var t;ge&&ue&&(e=St(e),xe(ue,null!=(t=e.dep)?t:e.dep=Ee((()=>e.dep=void 0),e instanceof Ct?e:void 0)))}function Et(e,t=4,n,s){const r=(e=St(e)).dep;r&&ke(r,t)}function Pt(e){return!(!e||!0!==e.__v_isRef)}function At(e){return n=!1,Pt(t=e)?t:new Lt(t,n);var t,n}class Lt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:St(e),this._value=t?e:Tt(e)}get value(){return kt(this),this._value}set value(e){const t=this.__v_isShallow||yt(e)||vt(e);e=t?e:St(e),W(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Tt(e),Et(this,4))}}function Ot(e){return Pt(e)?e.value:e}const Rt={get:(e,t,n)=>Ot(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Pt(r)&&!Pt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function jt(e){return bt(e)?e:new Proxy(e,Rt)}class It{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Pe.get(e);return n&&n.get(t)}(St(this._object),this._key)}}class Mt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Dt(e,t,n){return Pt(e)?e:k(e)?new Mt(e):A(e)&&arguments.length>1?function(e,t,n){const s=e[t];return Pt(s)?s:new It(e,t,n)}(e,t,n):At(e)}const zt="plan",Ft="live",Ut="results_only",Qt="cancelled",Nt="postponed",$t="finished",Bt="finished_overtime",Wt="finished_penalty",Vt="finished_technical_defeat",Ht="halftime",qt="pause",Jt="1st_quarter",Gt="2nd_quarter",Kt="3rd_quarter",Zt="4th_quarter",Yt="overtime",Xt="break_time",en="extra_time_halftime",tn="penalties",nn=[Ft,Ut,Ht,qt,Jt,Gt,Kt,Zt,Yt,Xt,en,tn],sn=[Ft,Ht,qt,Jt,Gt,Kt,Zt,Yt,Xt,en,tn],rn=[zt,Ft,Qt,Nt,$t,Bt,Wt,Vt,Ut,Ht,qt,Jt,Gt,Kt,Zt,Xt,Yt,en,tn];function on(e,t){const n=e=>e&&"object"==typeof e,s=JSON.parse(JSON.stringify(e));return Object.keys(e).forEach((e=>{const r=s[e],o=t[e];n(r)&&n(o)?s[e]=on(r,o):s[e]=o??s[e]})),s}const cn=e=>e<10?"0"+e:e,an=e=>cn(e.getHours())+":"+cn(e.getMinutes()),ln=mt({matches:{},loading:At(!0)}),un=async()=>{const e=["live","today","tomorrow"];let t=null;for(let n in e)if(dn.initData={period:e[n]},t=await dn.socketEmit(dn.rpcSport,dn.initData),t&&t.length)break;(e=>{if(!e)return void console.log("Data is empty...");console.log("data received. period:"+dn.initData.period);const t=(e=>{dn.debug&&console.log("data:",e);const t={};return e.forEach((e=>{const n=new Date(1e3*e.date),s=rn.includes(e.stage)?e.stage:console.log("unknown stages for item:",e)??e.stage,r={...on({slug:"?",matchTime:null,home:{img:null,abbr:null,name:"?",periods:null,score:null},away:{img:null,abbr:null,name:"?",periods:null,score:null}},e),league:on({slug:"?",name:"?",country:"?",img:null},e.league),date:(o=n,cn(o.getDate())+"/"+cn(o.getMonth()+1)+"/"+cn(o.getFullYear())),time:an(n),stage:s,live:nn.includes(s),details:{loading:!1,show:!1,events:{body:{}}}};var o;r.home.abbr=r.home.abbr||r.home.name.substr(0,3).toUpperCase(),r.away.abbr=r.away.abbr||r.away.name.substr(0,3).toUpperCase(),t[r.slug]=r})),t})(e);ln.matches=t,ln.loading=At(!1)})(t)};let hn=null;const dn={debug:!1,mainId:"wgWidgetScreen",matchSlug:null,socket:null,sub:null,sport:null,rpcSport:null,rpcSportDetail:null,initData:null,lang:"en",empty:"",widgetMes:[],style:s,resetAutoUpdate:()=>{hn&&clearTimeout(hn),hn=setTimeout((()=>{console.log("auto update match by timeout"),un()}),6e5)},getFullMatch:()=>un(),async socketEmit(...e){let t=3,n=null;const s=async()=>{try{n=await this.socket.rpc(e[0],{lang:this.lang,...e[1]})}catch(e){console.log(e),t&&(t--,await s())}};return await s(),n?.data??[]}};function pn(e,t,n,s){try{return s?e(...s):e()}catch(e){mn(e,t,n)}}function fn(e,t,n,s){if(k(e)){const r=pn(e,t,n,s);return r&&L(r)&&r.catch((e=>{mn(e,t,n)})),r}if(T(e)){const r=[];for(let o=0;o<e.length;o++)r.push(fn(e[o],t,n,s));return r}}function mn(e,t,n,s=!0){if(t&&t.vnode,t){let s=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;s=s.parent}const i=t.appContext.config.errorHandler;if(i)return ye(),pn(i,null,10,[e,r,o]),void we()}!function(e){console.error(e)}(e)}let _n=!1,gn=!1;const bn=[];let vn=0;const yn=[];let wn=null,Sn=0;const Tn=Promise.resolve();let xn=null;function Cn(e){const t=xn||Tn;return e?t.then(this?e.bind(this):e):t}function kn(e){bn.length&&bn.includes(e,_n&&e.allowRecurse?vn+1:vn)||(null==e.id?bn.push(e):bn.splice(function(e){let t=vn+1,n=bn.length;for(;t<n;){const s=t+n>>>1,r=bn[s],o=Ln(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}(e.id),0,e),En())}function En(){_n||gn||(gn=!0,xn=Tn.then(Rn))}function Pn(e,t,n=(_n?vn+1:0)){for(;n<bn.length;n++){const t=bn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;bn.splice(n,1),n--,t()}}}function An(e){if(yn.length){const e=[...new Set(yn)].sort(((e,t)=>Ln(e)-Ln(t)));if(yn.length=0,wn)return void wn.push(...e);for(wn=e,Sn=0;Sn<wn.length;Sn++){const e=wn[Sn];!1!==e.active&&e()}wn=null,Sn=0}}const Ln=e=>null==e.id?1/0:e.id,On=(e,t)=>{const n=Ln(e)-Ln(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rn(e){gn=!1,_n=!0,bn.sort(On);try{for(vn=0;vn<bn.length;vn++){const e=bn[vn];e&&!1!==e.active&&pn(e,e.i,e.i?15:14)}}finally{vn=0,bn.length=0,An(),_n=!1,xn=null,(bn.length||yn.length)&&Rn(e)}}let jn=null,In=null;function Mn(e){const t=jn;return jn=e,In=e&&e.type.__scopeId||null,t}function Dn(e){In=e}function zn(){In=null}function Fn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const c=r[i];o&&(c.oldValue=o[i].value);let a=c.dir[s];a&&(ye(),fn(a,n,8,[e.el,c,e,t]),we())}}const Un=Symbol("_leaveCb"),Qn=Symbol("_enterCb");const Nn=[Function,Array],$n={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nn,onEnter:Nn,onAfterEnter:Nn,onEnterCancelled:Nn,onBeforeLeave:Nn,onLeave:Nn,onAfterLeave:Nn,onLeaveCancelled:Nn,onBeforeAppear:Nn,onAppear:Nn,onAfterAppear:Nn,onAppearCancelled:Nn},Bn=e=>{const t=e.subTree;return t.component?Bn(t.component):t},Wn={name:"BaseTransition",props:$n,setup(e,{slots:t}){const n=so(),s=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cs((()=>{e.isMounted=!0})),us((()=>{e.isUnmounting=!0})),e}();return()=>{const r=t.default&&Zn(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Or){o=t,e=!0;break}}const i=St(e),{mode:c}=i;if(s.isLeaving)return Jn(o);const a=Gn(o);if(!a)return Jn(o);let l=qn(a,i,s,n,(e=>l=e));Kn(a,l);const u=n.subTree,h=u&&Gn(u);if(h&&h.type!==Or&&!$r(a,h)&&Bn(n).type!==Or){const e=qn(h,i,s,n);if(Kn(h,e),"out-in"===c&&a.type!==Or)return s.isLeaving=!0,e.afterLeave=()=>{s.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Jn(o);"in-out"===c&&a.type!==Or&&(e.delayLeave=(e,t,n)=>{Hn(s,h)[String(h.key)]=h,e[Un]=()=>{t(),e[Un]=void 0,delete l.delayedLeave},l.delayedLeave=n})}return o}}},Vn=Wn;function Hn(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function qn(e,t,n,s,r){const{appear:o,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:_,onAppear:g,onAfterAppear:b,onAppearCancelled:v}=t,y=String(e.key),w=Hn(n,e),S=(e,t)=>{e&&fn(e,s,9,t)},x=(e,t)=>{const n=t[1];S(e,t),T(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:i,persisted:c,beforeEnter(t){let s=a;if(!n.isMounted){if(!o)return;s=_||a}t[Un]&&t[Un](!0);const r=w[y];r&&$r(e,r)&&r.el[Un]&&r.el[Un](),S(s,[t])},enter(e){let t=l,s=u,r=h;if(!n.isMounted){if(!o)return;t=g||l,s=b||u,r=v||h}let i=!1;const c=e[Qn]=t=>{i||(i=!0,S(t?r:s,[e]),C.delayedLeave&&C.delayedLeave(),e[Qn]=void 0)};t?x(t,[e,c]):c()},leave(t,s){const r=String(e.key);if(t[Qn]&&t[Qn](!0),n.isUnmounting)return s();S(d,[t]);let o=!1;const i=t[Un]=n=>{o||(o=!0,s(),S(n?m:f,[t]),t[Un]=void 0,w[r]===e&&delete w[r])};w[r]=e,p?x(p,[t,i]):i()},clone(e){const o=qn(e,t,n,s,r);return r&&r(o),o}};return C}function Jn(e){if(Xn(e))return(e=qr(e)).children=null,e}function Gn(e){if(!Xn(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&k(n.default))return n.default()}}function Kn(e,t){6&e.shapeFlag&&e.component?Kn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zn(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const c=null==n?i.key:String(n)+String(null!=i.key?i.key:o);i.type===Ar?(128&i.patchFlag&&r++,s=s.concat(Zn(i.children,t,c))):(t||i.type!==Or)&&s.push(null!=c?qr(i,{key:c}):i)}if(r>1)for(let e=0;e<s.length;e++)s[e].patchFlag=-2;return s}const Yn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function es(e,t){ns(e,"a",t)}function ts(e,t){ns(e,"da",t)}function ns(e,t,n=no){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(rs(t,s,n),n){let e=n.parent;for(;e&&e.parent;)Xn(e.parent.vnode)&&ss(s,t,n,e),e=e.parent}}function ss(e,t,n,s){const r=rs(t,e,s,!0);hs((()=>{y(s[t],r)}),n)}function rs(e,t,n=no,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{ye();const r=io(n),o=fn(t,n,e,s);return r(),we(),o});return s?r.unshift(o):r.push(o),o}}RegExp,RegExp;const os=e=>(t,n=no)=>{ho&&"sp"!==e||rs(e,((...e)=>t(...e)),n)},is=os("bm"),cs=os("m"),as=os("bu"),ls=os("u"),us=os("bum"),hs=os("um"),ds=os("sp"),ps=os("rtg"),fs=os("rtc");function ms(e,t=no){rs("ec",e,t)}const _s=Symbol.for("v-ndc");function gs(e,t,n,s){let r;const o=n&&n[s];if(T(e)||E(e)){r=new Array(e.length);for(let n=0,s=e.length;n<s;n++)r[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,o&&o[n])}else if(A(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,i=n.length;s<i;s++){const i=n[s];r[s]=t(e[i],i,s,o&&o[s])}}else r=[];return n&&(n[s]=r),r}const bs=e=>e?ao(e)?_o(e):bs(e.parent):null,vs=v(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$emit:e=>e.emit,$options:e=>ks(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>br.bind(e)}),ys=(e,t)=>e!==p&&!e.__isScriptSetup&&S(e,t),ws={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:a}=e;let l;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ys(s,t))return i[t]=1,s[t];if(r!==p&&S(r,t))return i[t]=2,r[t];if((l=e.propsOptions[0])&&S(l,t))return i[t]=3,o[t];if(n!==p&&S(n,t))return i[t]=4,n[t];Ts&&(i[t]=0)}}const u=vs[t];let h,d;return u?("$attrs"===t&&Oe(e.attrs,0,""),u(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==p&&S(n,t)?(i[t]=4,n[t]):(d=a.config.globalProperties,S(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ys(r,t)?(r[t]=n,!0):s!==p&&S(s,t)?(s[t]=n,!0):!(S(e.props,t)||"$"===t[0]&&t.slice(1)in e||(o[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==p&&S(e,i)||ys(t,i)||(c=o[0])&&S(c,i)||S(s,i)||S(vs,i)||S(r.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ss(e){return T(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Ts=!0;function xs(e,t,n){fn(T(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Cs(e,t,n,s){const r=s.includes(".")?vr(n,s):()=>n[s];if(E(e)){const n=t[e];k(n)&&_r(r,n)}else if(k(e))_r(r,e.bind(n));else if(A(e))if(T(e))e.forEach((e=>Cs(e,t,n,s)));else{const s=k(e.handler)?e.handler.bind(n):t[e.handler];k(s)&&_r(r,s,e)}}function ks(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let a;return c?a=c:r.length||n||s?(a={},r.length&&r.forEach((e=>Es(a,e,i,!0))),Es(a,t,i)):a=t,A(t)&&o.set(t,a),a}function Es(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Es(e,o,n,!0),r&&r.forEach((t=>Es(e,t,n,!0)));for(const r in t)if(s&&"expose"===r);else{const s=Ps[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Ps={data:As,props:js,emits:js,methods:Rs,computed:Rs,beforeCreate:Os,created:Os,beforeMount:Os,mounted:Os,beforeUpdate:Os,updated:Os,beforeDestroy:Os,beforeUnmount:Os,destroyed:Os,unmounted:Os,activated:Os,deactivated:Os,errorCaptured:Os,serverPrefetch:Os,components:Rs,directives:Rs,watch:function(e,t){if(!e)return t;if(!t)return e;const n=v(Object.create(null),e);for(const s in t)n[s]=Os(e[s],t[s]);return n},provide:As,inject:function(e,t){return Rs(Ls(e),Ls(t))}};function As(e,t){return t?e?function(){return v(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function Ls(e){if(T(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Os(e,t){return e?[...new Set([].concat(e,t))]:t}function Rs(e,t){return e?v(Object.create(null),e,t):t}function js(e,t){return e?T(e)&&T(t)?[...new Set([...e,...t])]:v(Object.create(null),Ss(e),Ss(null!=t?t:{})):t}function Is(){return{app:null,config:{isNativeTag:_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ms=0;function Ds(e,t){return function(n,s=null){k(n)||(n=v({},n)),null==s||A(s)||(s=null);const r=Is(),o=new WeakSet;let i=!1;const c=r.app={_uid:Ms++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:bo,get config(){return r.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&k(e.install)?(o.add(e),e.install(c,...t)):k(e)&&(o.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(o,a,l){if(!i){const u=Hr(n,s);return u.appContext=r,!0===l?l="svg":!1===l&&(l=void 0),a&&t?t(u,o):e(u,o,l),i=!0,c._container=o,o.__vue_app__=c,_o(u.component)}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c),runWithContext(e){const t=zs;zs=c;try{return e()}finally{zs=t}}};return c}}let zs=null;function Fs(e,t,n=!1){const s=no||jn;if(s||zs){const r=s?null==s.parent?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:zs._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&k(t)?t.call(s&&s.proxy):t}}const Us={},Qs=()=>Object.create(Us),Ns=e=>Object.getPrototypeOf(e)===Us;function $s(e,t,n,s){const[r,o]=e.propsOptions;let i,c=!1;if(t)for(let a in t){if(D(a))continue;const l=t[a];let u;r&&S(r,u=U(a))?o&&o.includes(u)?(i||(i={}))[u]=l:n[u]=l:xr(e.emitsOptions,a)||a in s&&l===s[a]||(s[a]=l,c=!0)}if(o){const t=St(n),s=i||p;for(let i=0;i<o.length;i++){const c=o[i];n[c]=Bs(r,t,c,s[c],e,!S(s,c))}}return c}function Bs(e,t,n,s,r,o){const i=e[n];if(null!=i){const e=S(i,"default");if(e&&void 0===s){const e=i.default;if(i.type!==Function&&!i.skipFactory&&k(e)){const{propsDefaults:o}=r;if(n in o)s=o[n];else{const i=io(r);s=o[n]=e.call(null,t),i()}}else s=e}i[0]&&(o&&!e?s=!1:!i[1]||""!==s&&s!==N(n)||(s=!0))}return s}const Ws=new WeakMap;function Vs(e,t,n=!1){const s=n?Ws:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},c=[];let a=!1;if(!k(e)){const s=e=>{a=!0;const[n,s]=Vs(e,t,!0);v(i,n),s&&c.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!o&&!a)return A(e)&&s.set(e,f),f;if(T(o))for(let e=0;e<o.length;e++){const t=U(o[e]);Hs(t)&&(i[t]=p)}else if(o)for(const e in o){const t=U(e);if(Hs(t)){const n=o[e],s=i[t]=T(n)||k(n)?{type:n}:v({},n);if(s){const e=Gs(Boolean,s.type),n=Gs(String,s.type);s[0]=e>-1,s[1]=n<0||e<n,(e>-1||S(s,"default"))&&c.push(t)}}}const l=[i,c];return A(e)&&s.set(e,l),l}function Hs(e){return"$"!==e[0]&&!D(e)}function qs(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Js(e,t){return qs(e)===qs(t)}function Gs(e,t){return T(t)?t.findIndex((t=>Js(t,e))):k(t)&&Js(t,e)?0:-1}const Ks=e=>"_"===e[0]||"$stable"===e,Zs=e=>T(e)?e.map(Kr):[Kr(e)],Ys=(e,t,n)=>{if(t._n)return t;const s=function(e,t=jn){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&zr(-1);const r=Mn(t);let o;try{o=e(...s)}finally{Mn(r),n._d&&zr(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}(((...e)=>Zs(t(...e))),n);return s._c=!1,s},Xs=(e,t,n)=>{const s=e._ctx;for(const n in e){if(Ks(n))continue;const r=e[n];if(k(r))t[n]=Ys(0,r,s);else if(null!=r){const e=Zs(r);t[n]=()=>e}}},er=(e,t)=>{const n=Zs(t);e.slots.default=()=>n},tr=(e,t,n)=>{for(const s in t)(n||"_"!==s)&&(e[s]=t[s])},nr=(e,t,n)=>{const s=e.slots=Qs();if(32&e.vnode.shapeFlag){const e=t._;e?(tr(s,t,n),n&&H(s,"_",e,!0)):Xs(t,s)}else t&&er(e,t)},sr=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=p;if(32&s.shapeFlag){const e=t._;e?n&&1===e?o=!1:tr(r,t,n):(o=!t.$stable,Xs(t,r)),i=t}else t&&(er(e,t),i={default:1});if(o)for(const e in r)Ks(e)||null!=i[e]||delete r[e]};function rr(e,t,n,s,r=!1){if(T(e))return void e.forEach(((e,o)=>rr(e,t&&(T(t)?t[o]:t),n,s,r)));if(Yn(s)&&!r)return;const o=4&s.shapeFlag?_o(s.component):s.el,i=r?null:o,{i:c,r:a}=e,l=t&&t.r,u=c.refs===p?c.refs={}:c.refs,h=c.setupState;if(null!=l&&l!==a&&(E(l)?(u[l]=null,S(h,l)&&(h[l]=null)):Pt(l)&&(l.value=null)),k(a))pn(a,c,12,[i,u]);else{const t=E(a),s=Pt(a);if(t||s){const c=()=>{if(e.f){const n=t?S(h,a)?h[a]:u[a]:a.value;r?T(n)&&y(n,o):T(n)?n.includes(o)||n.push(o):t?(u[a]=[o],S(h,a)&&(h[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,S(h,a)&&(h[a]=i)):s&&(a.value=i,e.k&&(u[e.k]=i))};i?(c.id=-1,ir(c,n)):c()}}}const or=Symbol("_vte"),ir=function(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):(n=e,T(n)?yn.push(...n):wn&&wn.includes(n,n.allowRecurse?Sn+1:Sn)||yn.push(n),En());var n};function cr(e,t){K().__VUE__=!0;const{insert:n,remove:s,patchProp:r,createElement:o,createText:i,createComment:c,setText:a,setElementText:l,parentNode:u,nextSibling:h,setScopeId:d=m,insertStaticContent:_}=e,g=(e,t,n,s=null,r=null,o=null,i=void 0,c=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!$r(e,t)&&(s=G(e),B(e,r,o,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:h}=t;switch(l){case Lr:b(e,t,n,s);break;case Or:v(e,t,n,s);break;case Rr:null==e&&y(t,n,s,i);break;case Ar:A(e,t,n,s,r,o,i,c,a);break;default:1&h?w(e,t,n,s,r,o,i,c,a):6&h?O(e,t,n,s,r,o,i,c,a):(64&h||128&h)&&l.process(e,t,n,s,r,o,i,c,a,X)}null!=u&&r&&rr(u,e&&e.ref,o,t||e,!t)},b=(e,t,s,r)=>{if(null==e)n(t.el=i(t.children),s,r);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,s,r)=>{null==e?n(t.el=c(t.children||""),s,r):t.el=e.el},y=(e,t,n,s)=>{[e.el,e.anchor]=_(e.children,t,n,s,e.el,e.anchor)},w=(e,t,n,s,r,o,i,c,a)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?T(t,n,s,r,o,i,c,a):k(e,t,r,o,i,c,a)},T=(e,t,s,i,c,a,u,h)=>{let d,p;const{props:f,shapeFlag:m,transition:_,dirs:g}=e;if(d=e.el=o(e.type,a,f&&f.is,f),8&m?l(d,e.children):16&m&&C(e.children,d,null,i,c,ar(e,a),u,h),g&&Fn(e,null,i,"created"),x(d,e,e.scopeId,u,i),f){for(const e in f)"value"===e||D(e)||r(d,e,null,f[e],a,i);"value"in f&&r(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&Xr(p,i,e)}g&&Fn(e,null,i,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(c,_);b&&_.beforeEnter(d),n(d,t,s),((p=f&&f.onVnodeMounted)||b||g)&&ir((()=>{p&&Xr(p,i,e),b&&_.enter(d),g&&Fn(e,null,i,"mounted")}),c)},x=(e,t,n,s,r)=>{if(n&&d(e,n),s)for(let t=0;t<s.length;t++)d(e,s[t]);if(r&&t===r.subTree){const t=r.vnode;x(e,t,t.scopeId,t.slotScopeIds,r.parent)}},C=(e,t,n,s,r,o,i,c,a=0)=>{for(let l=a;l<e.length;l++){const a=e[l]=c?Zr(e[l]):Kr(e[l]);g(null,a,t,n,s,r,o,i,c)}},k=(e,t,n,s,o,i,c)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:d}=t;u|=16&e.patchFlag;const f=e.props||p,m=t.props||p;let _;if(n&&lr(n,!1),(_=m.onVnodeBeforeUpdate)&&Xr(_,n,t,e),d&&Fn(t,e,n,"beforeUpdate"),n&&lr(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&l(a,""),h?E(e.dynamicChildren,h,a,n,s,ar(t,o),i):c||z(e,t,a,null,n,s,ar(t,o),i,!1),u>0){if(16&u)P(a,f,m,n,o);else if(2&u&&f.class!==m.class&&r(a,"class",null,m.class,o),4&u&&r(a,"style",f.style,m.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],i=f[s],c=m[s];c===i&&"value"!==s||r(a,s,i,c,o,n)}}1&u&&e.children!==t.children&&l(a,t.children)}else c||null!=h||P(a,f,m,n,o);((_=m.onVnodeUpdated)||d)&&ir((()=>{_&&Xr(_,n,t,e),d&&Fn(t,e,n,"updated")}),s)},E=(e,t,n,s,r,o,i)=>{for(let c=0;c<t.length;c++){const a=e[c],l=t[c],h=a.el&&(a.type===Ar||!$r(a,l)||70&a.shapeFlag)?u(a.el):n;g(a,l,h,null,s,r,o,i,!0)}},P=(e,t,n,s,o)=>{if(t!==n){if(t!==p)for(const i in t)D(i)||i in n||r(e,i,t[i],null,o,s);for(const i in n){if(D(i))continue;const c=n[i],a=t[i];c!==a&&"value"!==i&&r(e,i,a,c,o,s)}"value"in n&&r(e,"value",t.value,n.value,o)}},A=(e,t,s,r,o,c,a,l,u)=>{const h=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(h,s,r),n(d,s,r),C(t.children||[],s,d,o,c,a,l,u)):p>0&&64&p&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,s,o,c,a,l),(null!=t.key||o&&t===o.subTree)&&ur(e,t,!0)):z(e,t,s,d,o,c,a,l,u)},O=(e,t,n,s,r,o,i,c,a)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,i,a):R(t,n,s,r,o,i,a):j(e,t,a)},R=(e,t,n,s,r,o,i)=>{const c=e.component=function(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||eo,o={uid:to++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new he(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vs(s,r),emitsOptions:Tr(s,r),emit:null,emitted:null,propsDefaults:p,inheritAttrs:s.inheritAttrs,ctx:p,data:p,props:p,attrs:p,slots:p,refs:p,setupState:p,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Sr.bind(null,o),e.ce&&e.ce(o),o}(e,s,r);if(Xn(e)&&(c.ctx.renderer=X),function(e,t=!1,n=!1){t&&oo(t);const{props:s,children:r}=e.vnode,o=ao(e);(function(e,t,n,s=!1){const r={},o=Qs();e.propsDefaults=Object.create(null),$s(e,t,r,o);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:gt(r,!1,Be,lt,dt):e.type.props?e.props=r:e.props=o,e.attrs=o})(e,s,o,t),nr(e,r,n);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ws);const{setup:s}=n;if(s){const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,mo),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=io(e);ye();const o=pn(s,e,0,[e.props,n]);if(we(),r(),L(o)){if(o.then(co,co),t)return o.then((n=>{po(e,n,t)})).catch((t=>{mn(t,e,0)}));e.asyncDep=o}else po(e,o,t)}else fo(e,t)}(e,t):void 0;t&&oo(!1)}(c,!1,i),c.asyncDep){if(r&&r.registerDep(c,I,i),!e.el){const e=c.subTree=Hr(Or);v(null,e,t,n)}}else I(c,e,t,n,r,o,i)},j=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:a}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!c||c&&c.$stable)||s!==i&&(s?!i||Pr(s,i,l):!!i);if(1024&a)return!0;if(16&a)return s?Pr(s,i,l):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==s[n]&&!xr(l,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void M(s,t,n);s.next=t,function(e){const t=bn.indexOf(e);t>vn&&bn.splice(t,1)}(s.update),s.effect.dirty=!0,s.update()}else t.el=e.el,s.vnode=t},I=(e,t,n,s,r,o,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:a,vnode:l}=e;{const n=hr(e);if(n)return t&&(t.el=l.el,M(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let h,d=t;lr(e,!1),t?(t.el=l.el,M(e,t,i)):t=l,n&&V(n),(h=t.props&&t.props.onVnodeBeforeUpdate)&&Xr(h,a,t,l),lr(e,!0);const p=Cr(e),f=e.subTree;e.subTree=p,g(f,p,u(f.el),G(f),e,r,o),t.el=p.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),s&&ir(s,r),(h=t.props&&t.props.onVnodeUpdated)&&ir((()=>Xr(h,a,t,l)),r)}else{let i;const{el:c,props:a}=t,{bm:l,m:u,parent:h}=e,d=Yn(t);if(lr(e,!1),l&&V(l),!d&&(i=a&&a.onVnodeBeforeMount)&&Xr(i,h,t),lr(e,!0),c&&te){const n=()=>{e.subTree=Cr(e),te(c,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Cr(e);g(null,i,n,s,e,r,o),t.el=i.el}if(u&&ir(u,r),!d&&(i=a&&a.onVnodeMounted)){const e=t;ir((()=>Xr(i,h,e)),r)}(256&t.shapeFlag||h&&Yn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&ir(e.a,r),e.isMounted=!0,t=n=s=null}},a=e.effect=new de(c,m,(()=>kn(l)),e.scope),l=e.update=()=>{a.dirty&&a.run()};l.i=e,l.id=e.uid,lr(e,!0),l()},M=(e,t,n)=>{t.component=e;const s=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,c=St(r),[a]=e.propsOptions;let l=!1;if(!(s||i>0)||16&i){let s;$s(e,t,r,o)&&(l=!0);for(const o in c)t&&(S(t,o)||(s=N(o))!==o&&S(t,s))||(a?!n||void 0===n[o]&&void 0===n[s]||(r[o]=Bs(a,c,o,void 0,e,!0)):delete r[o]);if(o!==c)for(const e in o)t&&S(t,e)||(delete o[e],l=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let i=n[s];if(xr(e.emitsOptions,i))continue;const u=t[i];if(a)if(S(o,i))u!==o[i]&&(o[i]=u,l=!0);else{const t=U(i);r[t]=Bs(a,c,t,u,e,!1)}else u!==o[i]&&(o[i]=u,l=!0)}}l&&Re(e.attrs,"set","")}(e,t.props,s,n),sr(e,t.children,n),ye(),Pn(e),we()},z=(e,t,n,s,r,o,i,c,a=!1)=>{const u=e&&e.children,h=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void Q(u,d,n,s,r,o,i,c,a);if(256&p)return void F(u,d,n,s,r,o,i,c,a)}8&f?(16&h&&J(u,r,o),d!==u&&l(n,d)):16&h?16&f?Q(u,d,n,s,r,o,i,c,a):J(u,r,o,!0):(8&h&&l(n,""),16&f&&C(d,n,s,r,o,i,c,a))},F=(e,t,n,s,r,o,i,c,a)=>{t=t||f;const l=(e=e||f).length,u=t.length,h=Math.min(l,u);let d;for(d=0;d<h;d++){const s=t[d]=a?Zr(t[d]):Kr(t[d]);g(e[d],s,n,null,r,o,i,c,a)}l>u?J(e,r,o,!0,!1,h):C(t,n,s,r,o,i,c,a,h)},Q=(e,t,n,s,r,o,i,c,a)=>{let l=0;const u=t.length;let h=e.length-1,d=u-1;for(;l<=h&&l<=d;){const s=e[l],u=t[l]=a?Zr(t[l]):Kr(t[l]);if(!$r(s,u))break;g(s,u,n,null,r,o,i,c,a),l++}for(;l<=h&&l<=d;){const s=e[h],l=t[d]=a?Zr(t[d]):Kr(t[d]);if(!$r(s,l))break;g(s,l,n,null,r,o,i,c,a),h--,d--}if(l>h){if(l<=d){const e=d+1,h=e<u?t[e].el:s;for(;l<=d;)g(null,t[l]=a?Zr(t[l]):Kr(t[l]),n,h,r,o,i,c,a),l++}}else if(l>d)for(;l<=h;)B(e[l],r,o,!0),l++;else{const p=l,m=l,_=new Map;for(l=m;l<=d;l++){const e=t[l]=a?Zr(t[l]):Kr(t[l]);null!=e.key&&_.set(e.key,l)}let b,v=0;const y=d-m+1;let w=!1,S=0;const T=new Array(y);for(l=0;l<y;l++)T[l]=0;for(l=p;l<=h;l++){const s=e[l];if(v>=y){B(s,r,o,!0);continue}let u;if(null!=s.key)u=_.get(s.key);else for(b=m;b<=d;b++)if(0===T[b-m]&&$r(s,t[b])){u=b;break}void 0===u?B(s,r,o,!0):(T[u-m]=l+1,u>=S?S=u:w=!0,g(s,t[u],n,null,r,o,i,c,a),v++)}const x=w?function(e){const t=e.slice(),n=[0];let s,r,o,i,c;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<a?o=c+1:i=c;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-->0;)n[o]=i,i=t[i];return n}(T):f;for(b=x.length-1,l=y-1;l>=0;l--){const e=m+l,h=t[e],d=e+1<u?t[e+1].el:s;0===T[l]?g(null,h,n,d,r,o,i,c,a):w&&(b<0||l!==x[b]?$(h,n,d,2):b--)}}},$=(e,t,s,r,o=null)=>{const{el:i,type:c,transition:a,children:l,shapeFlag:u}=e;if(6&u)$(e.component.subTree,t,s,r);else if(128&u)e.suspense.move(t,s,r);else if(64&u)c.move(e,t,s,X);else if(c!==Ar)if(c!==Rr)if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(i),n(i,t,s),ir((()=>a.enter(i)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=a,c=()=>n(i,t,s),l=()=>{e(i,(()=>{c(),o&&o()}))};r?r(i,c,l):l()}else n(i,t,s);else(({el:e,anchor:t},s,r)=>{let o;for(;e&&e!==t;)o=h(e),n(e,s,r),e=o;n(t,s,r)})(e,t,s);else{n(i,t,s);for(let e=0;e<l.length;e++)$(l[e],t,s,r);n(e.anchor,t,s)}},B=(e,t,n,s=!1,r=!1)=>{const{type:o,props:i,ref:c,children:a,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=c&&rr(c,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!Yn(e);let _;if(m&&(_=i&&i.onVnodeBeforeUnmount)&&Xr(_,t,e),6&u)q(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Fn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,s):l&&!l.hasOnce&&(o!==Ar||h>0&&64&h)?J(l,t,n,!1,!0):(o===Ar&&384&h||!r&&16&u)&&J(a,t,n),s&&W(e)}(m&&(_=i&&i.onVnodeUnmounted)||f)&&ir((()=>{_&&Xr(_,t,e),f&&Fn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Ar)return void H(n,r);if(t===Rr)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:s}=o,r=()=>t(n,i);s?s(e.el,i,r):r()}else i()},H=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},q=(e,t,n)=>{const{bum:s,scope:r,update:o,subTree:i,um:c,m:a,a:l}=e;dr(a),dr(l),s&&V(s),r.stop(),o&&(o.active=!1,B(i,e,t,n)),c&&ir(c,t),ir((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,s=!1,r=!1,o=0)=>{for(let i=o;i<e.length;i++)B(e[i],t,n,s,r)},G=e=>{if(6&e.shapeFlag)return G(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[or];return n?h(n):t};let Z=!1;const Y=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Z||(Z=!0,Pn(),An(),Z=!1),t._vnode=e},X={p:g,um:B,m:$,r:W,mt:R,mc:C,pc:z,pbc:E,n:G,o:e};let ee,te;return t&&([ee,te]=t(X)),{render:Y,hydrate:ee,createApp:Ds(Y,ee)}}function ar({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ur(e,t,n=!1){const s=e.children,r=t.children;if(T(s)&&T(r))for(let e=0;e<s.length;e++){const t=s[e];let o=r[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=r[e]=Zr(r[e]),o.el=t.el),n||-2===o.patchFlag||ur(t,o)),o.type===Lr&&(o.el=t.el)}}function hr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:hr(t)}function dr(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const pr=Symbol.for("v-scx"),fr=()=>Fs(pr),mr={};function _r(e,t,n){return gr(e,t,n)}function gr(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:c}=p){if(t&&o){const e=t;t=(...t)=>{e(...t),C()}}const a=no,l=e=>!0===s?e:yr(e,!1===s?1:void 0);let u,h,d=!1,f=!1;if(Pt(e)?(u=()=>e.value,d=yt(e)):bt(e)?(u=()=>l(e),d=!0):T(e)?(f=!0,d=e.some((e=>bt(e)||yt(e))),u=()=>e.map((e=>Pt(e)?e.value:bt(e)?l(e):k(e)?pn(e,a,2):void 0))):u=k(e)?t?()=>pn(e,a,2):()=>(h&&h(),fn(e,a,3,[g])):m,t&&s){const e=u;u=()=>yr(e())}let _,g=e=>{h=S.onStop=()=>{pn(e,a,4),h=S.onStop=void 0}};if(ho){if(g=m,t?n&&fn(t,a,3,[u(),f?[]:void 0,g]):u(),"sync"!==r)return m;{const e=fr();_=e.__watcherHandles||(e.__watcherHandles=[])}}let b=f?new Array(e.length).fill(mr):mr;const v=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(s||d||(f?e.some(((e,t)=>W(e,b[t]))):W(e,b)))&&(h&&h(),fn(t,a,3,[e,b===mr?void 0:f&&b[0]===mr?[]:b,g]),b=e)}else S.run()};let w;v.allowRecurse=!!t,"sync"===r?w=v:"post"===r?w=()=>ir(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),w=()=>kn(v));const S=new de(u,m,w),x=le,C=()=>{S.stop(),x&&y(x.effects,S)};return t?n?v():b=S.run():"post"===r?ir(S.run.bind(S),a&&a.suspense):S.run(),_&&_.push(C),C}function br(e,t,n){const s=this.proxy,r=E(e)?e.includes(".")?vr(s,e):()=>s[e]:e.bind(s,s);let o;k(t)?o=t:(o=t.handler,n=t);const i=io(this),c=gr(r,o.bind(s),n);return i(),c}function vr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function yr(e,t=1/0,n){if(t<=0||!A(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Pt(e))yr(e.value,t,n);else if(T(e))for(let s=0;s<e.length;s++)yr(e[s],t,n);else if(C(e)||x(e))e.forEach((e=>{yr(e,t,n)}));else if(I(e)){for(const s in e)yr(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&yr(e[s],t,n)}return e}const wr=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${N(t)}Modifiers`];function Sr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||p;let r=n;const o=t.startsWith("update:"),i=o&&wr(s,t.slice(7));let c;i&&(i.trim&&(r=n.map((e=>E(e)?e.trim():e))),i.number&&(r=n.map(q)));let a=s[c=B(t)]||s[c=B(U(t))];!a&&o&&(a=s[c=B(N(t))]),a&&fn(a,e,6,r);const l=s[c+"Once"];if(l){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,fn(l,e,6,r)}}function Tr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(void 0!==r)return r;const o=e.emits;let i={},c=!1;if(!k(e)){const s=e=>{const n=Tr(e,t,!0);n&&(c=!0,v(i,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return o||c?(T(o)?o.forEach((e=>i[e]=null)):v(i,o),A(e)&&s.set(e,i),i):(A(e)&&s.set(e,null),null)}function xr(e,t){return!(!e||!g(t))&&(t=t.slice(2).replace(/Once$/,""),S(e,t[0].toLowerCase()+t.slice(1))||S(e,N(t))||S(e,t))}function Cr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:c,emit:a,render:l,renderCache:u,props:h,data:d,setupState:p,ctx:f,inheritAttrs:m}=e,_=Mn(e);let g,v;try{if(4&n.shapeFlag){const e=r||s,t=e;g=Kr(l.call(t,e,u,h,p,d,f)),v=c}else{const e=t;g=Kr(e.length>1?e(h,{attrs:c,slots:i,emit:a}):e(h,null)),v=t.props?c:kr(c)}}catch(t){jr.length=0,mn(t,e,1),g=Hr(Or)}let y=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(o&&e.some(b)&&(v=Er(v,o)),y=qr(y,v,!1,!0))}return n.dirs&&(y=qr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,Mn(_),g}const kr=e=>{let t;for(const n in e)("class"===n||"style"===n||g(n))&&((t||(t={}))[n]=e[n]);return t},Er=(e,t)=>{const n={};for(const s in e)b(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function Pr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!xr(n,o))return!0}return!1}const Ar=Symbol.for("v-fgt"),Lr=Symbol.for("v-txt"),Or=Symbol.for("v-cmt"),Rr=Symbol.for("v-stc"),jr=[];let Ir=null;function Mr(e=!1){jr.push(Ir=e?null:[])}let Dr=1;function zr(e){Dr+=e,e<0&&Ir&&(Ir.hasOnce=!0)}function Fr(e){return e.dynamicChildren=Dr>0?Ir||f:null,jr.pop(),Ir=jr[jr.length-1]||null,Dr>0&&Ir&&Ir.push(e),e}function Ur(e,t,n,s,r,o){return Fr(Vr(e,t,n,s,r,o,!0))}function Qr(e,t,n,s,r){return Fr(Hr(e,t,n,s,r,!0))}function Nr(e){return!!e&&!0===e.__v_isVNode}function $r(e,t){return e.type===t.type&&e.key===t.key}const Br=({key:e})=>null!=e?e:null,Wr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?E(e)||Pt(e)||k(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function Vr(e,t=null,n=null,s=0,r=null,o=(e===Ar?0:1),i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Br(t),ref:t&&Wr(t),scopeId:In,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:jn};return c?(Yr(a,n),128&o&&e.normalize(a)):n&&(a.shapeFlag|=E(n)?8:16),Dr>0&&!i&&Ir&&(a.patchFlag>0||6&o)&&32!==a.patchFlag&&Ir.push(a),a}const Hr=function(e,t=null,n=null,s=0,r=null,o=!1){if(e&&e!==_s||(e=Or),Nr(e)){const s=qr(e,t,!0);return n&&Yr(s,n),Dr>0&&!o&&Ir&&(6&s.shapeFlag?Ir[Ir.indexOf(e)]=s:Ir.push(s)),s.patchFlag=-2,s}if(i=e,k(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=function(e){return e?wt(e)||Ns(e)?v({},e):e:null}(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=ne(e)),A(n)&&(wt(n)&&!T(n)&&(n=v({},n)),t.style=Z(n))}var i;return Vr(e,t,n,s,r,E(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:A(e)?4:k(e)?2:0,o,!0)};function qr(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:c,transition:a}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=ne([t.class,s.class]));else if("style"===e)t.style=Z([t.style,s.style]);else if(g(e)){const n=t[e],r=s[e];!r||n===r||T(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Br(l),ref:t&&t.ref?n&&o?T(o)?o.concat(Wr(t)):[o,Wr(t)]:Wr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ar?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qr(e.ssContent),ssFallback:e.ssFallback&&qr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Kn(u,a.clone(u)),u}function Jr(e=" ",t=0){return Hr(Lr,null,e,t)}function Gr(e="",t=!1){return t?(Mr(),Qr(Or,null,e)):Hr(Or,null,e)}function Kr(e){return null==e||"boolean"==typeof e?Hr(Or):T(e)?Hr(Ar,null,e.slice()):"object"==typeof e?Zr(e):Hr(Lr,null,String(e))}function Zr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:qr(e)}function Yr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(T(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),Yr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||Ns(t)?3===s&&jn&&(1===jn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jn}}else k(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),64&s?(n=16,t=[Jr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xr(e,t,n,s=null){fn(e,t,7,[n,s])}const eo=Is();let to=0;let no=null;const so=()=>no||jn;let ro,oo;{const e=K(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach((t=>t(e))):s[0](e)}};ro=t("__VUE_INSTANCE_SETTERS__",(e=>no=e)),oo=t("__VUE_SSR_SETTERS__",(e=>ho=e))}const io=e=>{const t=no;return ro(e),e.scope.on(),()=>{e.scope.off(),ro(t)}},co=()=>{no&&no.scope.off(),ro(null)};function ao(e){return 4&e.vnode.shapeFlag}let lo,uo,ho=!1;function po(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:A(t)&&(e.setupState=jt(t)),fo(e,n)}function fo(e,t,n){const s=e.type;if(!e.render){if(!t&&lo&&!s.render){const t=s.template||ks(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:i}=s,c=v(v({isCustomElement:n,delimiters:o},r),i);s.render=lo(t,c)}}e.render=s.render||m,uo&&uo(e)}{const t=io(e);ye();try{!function(e){const t=ks(e),n=e.proxy,s=e.ctx;Ts=!1,t.beforeCreate&&xs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:a,inject:l,created:u,beforeMount:h,mounted:d,beforeUpdate:p,updated:f,activated:_,deactivated:g,beforeDestroy:b,beforeUnmount:v,destroyed:y,unmounted:w,render:S,renderTracked:x,renderTriggered:C,errorCaptured:E,serverPrefetch:P,expose:L,inheritAttrs:O,components:R,directives:j,filters:I}=t;if(l&&function(e,t){T(e)&&(e=Ls(e));for(const n in e){const s=e[n];let r;r=A(s)?"default"in s?Fs(s.from||n,s.default,!0):Fs(s.from||n):Fs(s),Pt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(l,s),i)for(const e in i){const t=i[e];k(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);A(t)&&(e.data=mt(t))}if(Ts=!0,o)for(const e in o){const t=o[e],r=k(t)?t.bind(n,n):k(t.get)?t.get.bind(n,n):m,i=!k(t)&&k(t.set)?t.set.bind(n):m,c=go({get:r,set:i});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)Cs(c[e],s,n,e);if(a){const e=k(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(no){let n=no.provides;const s=no.parent&&no.parent.provides;s===n&&(n=no.provides=Object.create(s)),n[e]=t}}(t,e[t])}))}function M(e,t){T(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&xs(u,e,"c"),M(is,h),M(cs,d),M(as,p),M(ls,f),M(es,_),M(ts,g),M(ms,E),M(fs,x),M(ps,C),M(us,v),M(hs,w),M(ds,P),T(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===m&&(e.render=S),null!=O&&(e.inheritAttrs=O),R&&(e.components=R),j&&(e.directives=j)}(e)}finally{we(),t()}}}const mo={get:(e,t)=>(Oe(e,0,""),e[t])};function _o(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(jt((t=e.exposed,Object.isExtensible(t)&&H(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in vs?vs[n](e):void 0,has:(e,t)=>t in e||t in vs})):e.proxy;var t}const go=(e,t)=>function(e,t,n=!1){let s,r;const o=k(e);return o?(s=e,r=m):(s=e.get,r=e.set),new Ct(s,r,o||!r,n)}(e,0,ho),bo="3.4.33",vo="undefined"!=typeof document?document:null,yo=vo&&vo.createElement("template"),wo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r="svg"===t?vo.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?vo.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?vo.createElement(e,{is:n}):vo.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>vo.createTextNode(e),createComment:e=>vo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{yo.innerHTML="svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e;const r=yo.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},So="transition",To="animation",xo=Symbol("_vtc"),Co=(e,{slots:t})=>function(e,t,n){const s=arguments.length;return 2===s?A(t)&&!T(t)?Nr(t)?Hr(e,null,[t]):Hr(e,t):Hr(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&Nr(n)&&(n=[n]),Hr(e,t,n))}(Vn,function(e){const t={};for(const n in e)n in ko||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:l=i,appearToClass:u=c,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(A(e))return[Ao(e.enter),Ao(e.leave)];{const t=Ao(e);return[t,t]}}(r),m=f&&f[0],_=f&&f[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:y,onLeave:w,onLeaveCancelled:S,onBeforeAppear:T=g,onAppear:x=b,onAppearCancelled:C=y}=t,k=(e,t,n)=>{Oo(e,t?u:c),Oo(e,t?l:i),n&&n()},E=(e,t)=>{e._isLeaving=!1,Oo(e,h),Oo(e,p),Oo(e,d),t&&t()},P=e=>(t,n)=>{const r=e?x:b,i=()=>k(t,e,n);Eo(r,[t,i]),Ro((()=>{Oo(t,e?a:o),Lo(t,e?u:c),Po(r)||Io(t,s,m,i)}))};return v(t,{onBeforeEnter(e){Eo(g,[e]),Lo(e,o),Lo(e,i)},onBeforeAppear(e){Eo(T,[e]),Lo(e,a),Lo(e,l)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Lo(e,h),Lo(e,d),document.body.offsetHeight,Ro((()=>{e._isLeaving&&(Oo(e,h),Lo(e,p),Po(w)||Io(e,s,_,n))})),Eo(w,[e,n])},onEnterCancelled(e){k(e,!1),Eo(y,[e])},onAppearCancelled(e){k(e,!0),Eo(C,[e])},onLeaveCancelled(e){E(e),Eo(S,[e])}})}(e),t);Co.displayName="Transition";const ko={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Eo=(Co.props=v({},$n,ko),(e,t=[])=>{T(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Po=e=>!!e&&(T(e)?e.some((e=>e.length>1)):e.length>1);function Ao(e){return J(e)}function Lo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[xo]||(e[xo]=new Set)).add(t)}function Oo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[xo];n&&(n.delete(t),n.size||(e[xo]=void 0))}function Ro(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let jo=0;function Io(e,t,n,s){const r=e._endId=++jo,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:c,propCount:a}=function(e,t){const n=window.getComputedStyle(e),s=e=>(n[e]||"").split(", "),r=s(`${So}Delay`),o=s(`${So}Duration`),i=Mo(r,o),c=s(`${To}Delay`),a=s(`${To}Duration`),l=Mo(c,a);let u=null,h=0,d=0;return t===So?i>0&&(u=So,h=i,d=o.length):t===To?l>0&&(u=To,h=l,d=a.length):(h=Math.max(i,l),u=h>0?i>l?So:To:null,d=u?u===So?o.length:a.length:0),{type:u,timeout:h,propCount:d,hasTransform:u===So&&/\b(transform|all)(,|$)/.test(s(`${So}Property`).toString())}}(e,t);if(!i)return s();const l=i+"end";let u=0;const h=()=>{e.removeEventListener(l,d),o()},d=t=>{t.target===e&&++u>=a&&h()};setTimeout((()=>{u<a&&h()}),c+1),e.addEventListener(l,d)}function Mo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Do(t)+Do(e[n]))))}function Do(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const zo=Symbol("_vod"),Fo=Symbol("_vsh"),Uo=Symbol("");function Qo(e){const t=so();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>$o(e,n)))},s=()=>{const s=e(t.proxy);No(t.subTree,s),n(s)};cs((()=>{gr(s,null,{flush:"post"});const e=new MutationObserver(s);e.observe(t.subTree.el.parentNode,{childList:!0}),hs((()=>e.disconnect()))}))}function No(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{No(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)$o(e.el,t);else if(e.type===Ar)e.children.forEach((e=>No(e,t)));else if(e.type===Rr){let{el:n,anchor:s}=e;for(;n&&($o(n,t),n!==s);)n=n.nextSibling}}function $o(e,t){if(1===e.nodeType){const n=e.style;let s="";for(const e in t)n.setProperty(`--${e}`,t[e]),s+=`--${e}: ${t[e]};`;n[Uo]=s}}const Bo=/(^|;)\s*display\s*:/,Wo=/\s*!important$/;function Vo(e,t,n){if(T(n))n.forEach((n=>Vo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=qo[t];if(n)return n;let s=U(t);if("filter"!==s&&s in e)return qo[t]=s;s=$(s);for(let n=0;n<Ho.length;n++){const r=Ho[n]+s;if(r in e)return qo[t]=r}return t}(e,t);Wo.test(n)?e.setProperty(N(s),n.replace(Wo,""),"important"):e[s]=n}}const Ho=["Webkit","Moz","ms"],qo={},Jo="http://www.w3.org/1999/xlink";function Go(e,t,n,s,r,o=se(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Jo,t.slice(6,t.length)):e.setAttributeNS(Jo,t,n):null==n||o&&!re(n)?e.removeAttribute(t):e.setAttribute(t,o?"":P(n)?String(n):n)}const Ko=Symbol("_vei");const Zo=/(?:Once|Passive|Capture)$/;let Yo=0;const Xo=Promise.resolve(),ei=()=>Yo||(Xo.then((()=>Yo=0)),Yo=Date.now()),ti=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb"),Symbol("_assign");const ni=v({patchProp:(e,t,n,s,r,o)=>{const i="svg"===r;"class"===t?function(e,t,n){const s=e[xo];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,r=E(n);let o=!1;if(n&&!r){if(t)if(E(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Vo(s,t,"")}else for(const e in t)null==n[e]&&Vo(s,e,"");for(const e in n)"display"===e&&(o=!0),Vo(s,e,n[e])}else if(r){if(t!==n){const e=s[Uo];e&&(n+=";"+e),s.cssText=n,o=Bo.test(n)}}else t&&e.removeAttribute("style");zo in e&&(e[zo]=o?s.display:"",e[Fo]&&(s.display="none"))}(e,n,s):g(t)?b(t)||function(e,t,n,s,r=null){const o=e[Ko]||(e[Ko]={}),i=o[t];if(s&&i)i.value=s;else{const[n,c]=function(e){let t;if(Zo.test(e)){let n;for(t={};n=e.match(Zo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):N(e.slice(2)),t]}(t);if(s){const i=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();fn(function(e,t){if(T(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ei(),n}(s,r);!function(e,t,n,s){e.addEventListener(t,n,s)}(e,n,i,c)}else i&&(function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,i,c),o[t]=void 0)}}(e,t,0,s,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&ti(t)&&k(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ti(t)||!E(n))&&t in e}(e,t,s,i))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const r="OPTION"===s?e.getAttribute("value")||"":e.value,o=null==n?"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=re(n):null==n&&"string"===s?(n="",r=!0):"number"===s&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Go(e,t,s,i,0,"value"!==t)):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Go(e,t,s,i))}},wo);let si;const ri=(e=>(Dn("data-v-55c33628"),e=e(),zn(),e))((()=>Vr("div",{class:"wg-loader"},null,-1))),oi={__name:"Loader",setup:e=>(Qo((e=>({"31d93014":Ot(dn).style.colors.midnight,"07d13f9a":Ot(dn).style.colors.lightGray}))),(e,t)=>t[0]||(zr(-1),(t[0]=Vr("div",{class:"wg-loader-p"},[ri])).cacheIndex=0,zr(1),t[0]))};var ii=n(72),ci=n.n(ii),ai=n(825),li=n.n(ai),ui=n(659),hi=n.n(ui),di=n(56),pi=n.n(di),fi=n(540),mi=n.n(fi),_i=n(113),gi=n.n(_i),bi=n(968),vi={};vi.styleTagTransform=gi(),vi.setAttributes=pi(),vi.insert=hi().bind(null,"head"),vi.domAPI=li(),vi.insertStyleElement=mi(),ci()(bi.A,vi),bi.A&&bi.A.locals&&bi.A.locals;var yi=n(374);const wi=(0,yi.A)(oi,[["__scopeId","data-v-55c33628"]]),Si={class:"wg-widget-title"},Ti={__name:"TitleInfo",props:{match:{type:Object,required:!0}},setup:e=>(Qo((e=>({"1084ee47":Ot(dn).style.colors.primary_black,"3b273f3c":Ot(dn).style.fonts.medium,"73ce6c4f":Ot(dn).style.fonts.regular}))),(t,n)=>(Mr(),Ur(Ar,null,[Gr(" prettier-ignore "),Vr("div",Si,[Vr("span",null,ie(`${e.match?.date} ${e.match?.time}`),1),Jr(" | "),Vr("span",null,ie(e.match?.league?.country),1),Jr(" | "),Vr("span",null,ie(e.match?.league?.name),1)])],2112)))};var xi=n(429),Ci={};Ci.styleTagTransform=gi(),Ci.setAttributes=pi(),Ci.insert=hi().bind(null,"head"),Ci.domAPI=li(),Ci.insertStyleElement=mi(),ci()(xi.A,Ci),xi.A&&xi.A.locals&&xi.A.locals;const ki=(0,yi.A)(Ti,[["__scopeId","data-v-3b301c6f"]]),Ei={class:"wg-widget-command"},Pi=["src","alt"],Ai={class:"wg-widget-command__name"},Li={__name:"Command",props:{img:{type:String,required:!0},name:{type:String,required:!0}},setup:e=>(Qo((e=>({ca11612e:Ot(dn).style.colors.primary_black,"91c9f8f8":Ot(dn).style.fonts.medium,"309eeaf1":Ot(dn).style.fonts.medium500}))),(t,n)=>(Mr(),Ur("div",Ei,[e.img?(Mr(),Ur("img",{key:0,src:e.img,alt:e.name,class:"wg-widget-command__icon",width:"20",height:"20"},null,8,Pi)):Gr("v-if",!0),Vr("div",Ai,ie(e.name),1)])))};var Oi=n(766),Ri={};Ri.styleTagTransform=gi(),Ri.setAttributes=pi(),Ri.insert=hi().bind(null,"head"),Ri.domAPI=li(),Ri.insertStyleElement=mi(),ci()(Oi.A,Ri),Oi.A&&Oi.A.locals&&Oi.A.locals;const ji=(0,yi.A)(Li,[["__scopeId","data-v-62e86c4d"]]);function Ii(e,t,n){const s=dn.debug;let r=-1;return _r(e,((o,i)=>{const c=o-i;var a;t.value=0===(a=c)?"":0<a?"up":"down",s&&console.log(n,"src:",e.value,"n:",o,"o:",i,"n - o:",o-i,"way",t.value),clearTimeout(r),r=setTimeout((()=>{t.value=""}),0<c?45e3:8e3)}))}function Mi(e,t,n){const s=dn.debug;return _r(e,((r,o)=>{t.value=0<r,s&&console.log(n,"src:",e.value,"n:",r,"o:",o,"way",t.value)}))}const Di="-",zi=c[dn.lang],Fi=(e,t=!0)=>{let n=e??-1;return n<0?zi[5]:(t&&90<n&&("string"==typeof e&&-1===e.search("\\+")||"string"!=typeof e)&&(n="90+"),`${n}'`)},Ui=c[dn.lang];const Qi={class:"wg-widget-score"},Ni={class:"wg-score"},$i={key:0,class:"wg-score__divider"},Bi={__name:"Score",props:{match:{type:Object,required:!0},teams:{type:Array,required:!0}},setup(e){Qo((e=>({"0b9df8dc":Ot(dn).style.colors.primary_grey,"8b070edc":Ot(dn).style.fonts.large32,"7de92cec":Ot(dn).style.fonts.bold700,"0d99d923":Ot(dn).style.colors.green,"60b6cab1":Ot(dn).style.colors.red,"67d7e1a2":Ot(dn).style.colors.primary_black,"0c1fbafe":Ot(dn).style.colors.white_secondary,f86c4286:Ot(dn).style.fonts.medium,"03be8d58":Ot(dn).style.fonts.regular,"8b9016ac":Ot(dn).style.colors.secondary_grey})));const t=e,n=go((()=>function(e){const t=()=>zt===e.stage,n=()=>e.home.score-e.away.score,s={home:{val:go((()=>t()?Di:e.home.score??Di)),win:At(0<n()),way:At("")},away:{val:go((()=>t()?Di:e.away.score??Di)),win:At(0<-1*n()),way:At("")}};return Ii(Dt(e.home,"score"),s.home.way,`REACTIVE updated home score (${e.time}, ${e.slug})`),Ii(Dt(e.away,"score"),s.away.way,`REACTIVE updated away score (${e.time}, ${e.slug})`),Mi(n,s.home.win,`REACTIVE updated home win (${e.time}, ${e.slug})`),Mi((()=>-1*n()),s.away.win,`REACTIVE updated away win (${e.time}, ${e.slug})`),s}(t.match))),s=go((()=>function(e){const t=dn.debug,n=go((()=>{const t=(n=e.stage,{[zt]:"",[Ft]:Fi,[Jt]:Fi,[Gt]:Fi,[Ht]:Ui[1],[qt]:Ui[11],[Xt]:Ui[12],[en]:Ui[9],[tn]:Ui[10],[Ut]:Ui[4],[$t]:Ui[0],[Bt]:Ui[6],[Wt]:Ui[7],[Vt]:Ui[8],[Qt]:Ui[3],[Nt]:Ui[2]}[n]??"?");var n;return"function"==typeof t?t(e.matchTime):t}));return t&&_r(n,(()=>{console.log(`REACTIVE updated status (${e.time}, ${e.slug})`,n.value,e.live)})),n}(t.match))),r=go((()=>t.match?.live));return(t,o)=>(Mr(),Ur("div",Qi,[Vr("div",Ni,[(Mr(!0),Ur(Ar,null,gs(e.teams,((e,t)=>(Mr(),Ur(Ar,{key:e},[Vr("span",{class:ne(["wg-score__count",{[`wg-${n.value[e].way.value}-score`]:n.value[e].way.value,"wg-green":n.value[e].win.value}])},ie(n.value[e].val.value),3),t?Gr("v-if",!0):(Mr(),Ur("span",$i,":"))],64)))),128))]),Gr(" prettier-ignore "),Vr("div",{class:ne(["wg-status",{"wg-live":r.value}])},[Gr(" remove live class to see other styles like for finished condition "),Jr(" "+ie(s.value),1)],2)]))}};var Wi=n(672),Vi={};Vi.styleTagTransform=gi(),Vi.setAttributes=pi(),Vi.insert=hi().bind(null,"head"),Vi.domAPI=li(),Vi.insertStyleElement=mi(),ci()(Wi.A,Vi),Wi.A&&Wi.A.locals&&Wi.A.locals;const Hi=(0,yi.A)(Bi,[["__scopeId","data-v-78c5cd43"]]),qi={class:"wg-widget-placeholder"},Ji=(e=>(Dn("data-v-d6249f0a"),e=e(),zn(),e))((()=>Vr("img",{class:"wg-widget-placeholder__icon",src:"https://widgetlogic.org/v2/img/placeholder-blue.svg",alt:"wg-placeholder-icon"},null,-1))),Gi={__name:"Placeholder",props:{match:{type:[Object,null],required:!0}},setup(e){Qo((e=>({"4ad1747f":Ot(dn).style.colors.white_secondary,"2a2c557e":Ot(dn).style.fonts.medium,"240d1ab3":Ot(dn).style.fonts.regular,27988709:Ot(dn).style.colors.secondary_grey})));const t=e,n=go((()=>t.match?dn.widgetMes[1]+` ${t.match?.date} ${t.match?.time} ${t.match?.home?.name} - ${t.match?.away?.name}.`:dn.widgetMes[0]));return(e,t)=>(Mr(),Ur("div",qi,[Ji,Vr("span",null,ie(n.value),1)]))}};var Ki=n(984),Zi={};Zi.styleTagTransform=gi(),Zi.setAttributes=pi(),Zi.insert=hi().bind(null,"head"),Zi.domAPI=li(),Zi.insertStyleElement=mi(),ci()(Ki.A,Zi),Ki.A&&Ki.A.locals&&Ki.A.locals;const Yi=(0,yi.A)(Gi,[["__scopeId","data-v-d6249f0a"]]),Xi={class:"wg-widget-container"},ec={class:"wgwidget-game__info"},tc=Object.assign({inheritAttrs:!1},{__name:"Widget",props:{match:{type:[Object,null],required:!0}},setup(e){const t=e,n=go((()=>t.match?.live)),s=go((()=>!t.match)),r=["home","away"];return(t,o)=>(Mr(),Ur("div",Xi,[n.value?Gr("v-if",!0):(Mr(),Qr(Yi,{key:0,match:e.match},null,8,["match"])),s.value?Gr("v-if",!0):(Mr(),Ur(Ar,{key:1},[Hr(ki,{match:e.match},null,8,["match"]),Vr("div",ec,[(Mr(),Ur(Ar,null,gs(r,((t,n)=>(Mr(),Ur(Ar,{key:t},[Hr(ji,{img:e.match[t].img,name:e.match[t].name},null,8,["img","name"]),n?Gr("v-if",!0):(Mr(),Qr(Hi,{key:0,teams:r,match:e.match},null,8,["match"]))],64)))),64))])],64))]))}});var nc=n(99),sc={};sc.styleTagTransform=gi(),sc.setAttributes=pi(),sc.insert=hi().bind(null,"head"),sc.domAPI=li(),sc.insertStyleElement=mi(),ci()(nc.A,sc),nc.A&&nc.A.locals&&nc.A.locals;const rc=(0,yi.A)(tc,[["__scopeId","data-v-d05217d0"]]),oc={class:"wg-wrapper"},ic={key:0,style:{font:"normal 11px sans-serif"}},cc={key:1},ac={__name:"App",setup(e){Qo((e=>({"07379a9f":Ot(dn).style.fonts.main_font})));const t=dn.debug,{empty:n}=dn,s=go((()=>!Object.values(ln.matches).length)),r=go((()=>{const e=(e=>{const n=[...sn],s=[...n,Ut,zt];let r=null,o=null;const i=localStorage,c=!!i,a=c?i.getItem("matchSlug"):null,l=t=>{for(let n in e)if(t.includes(ln.matches[n].stage))return e[n];return null};if(t&&console.log("selectedMatch",a),a)if(r=e[a],r&&s.includes(r.stage)){if(r&&!n.includes(r.stage)&&(o=l(n),o&&i.removeItem("matchSlug")),!o)return t&&console.log("stored match",r),r}else r&&!s.includes(r.stage)&&un(),i.removeItem("matchSlug");return o||(o=l(n)),r=o||l(s),r&&c&&i.setItem("matchSlug",r.slug),t&&console.log("match",r),r})(ln.matches);return dn.matchSlug=e?e.slug:null,dn.resetAutoUpdate(),e}));return(e,t)=>(Mr(),Ur("div",oc,[Ot(ln).loading?(Mr(),Ur("div",ic,[Hr(wi)])):(Mr(),Ur("div",cc,[s.value?(Mr(),Ur(Ar,{key:0},[Jr(ie(Ot(n)),1)],64)):(Mr(),Qr(rc,{key:1,match:r.value},null,8,["match"]))]))]))}};var lc=n(365),uc={};uc.styleTagTransform=gi(),uc.setAttributes=pi(),uc.insert=hi().bind(null,"head"),uc.domAPI=li(),uc.insertStyleElement=mi(),ci()(lc.A,uc),lc.A&&lc.A.locals&&lc.A.locals;const hc=(0,yi.A)(ac,[["__scopeId","data-v-21cbf1ea"]]),dc=e=>{console.log("start mounting...");const t=document.createElement("div");t.id=dn.mainId,e.after(t),e.remove(),((...e)=>{const t=(si||(si=function(e){return cr(e)}(ni))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){return E(e)?document.querySelector(e):e}(e);if(!s)return;const r=t._component;k(r)||r.render||r.template||(r.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t})(hc).mount(`#${dn.mainId}`),dn.debug=!1};function pc(e,t,n,s){return new(n||(n=Promise))((function(r,o){function i(e){try{a(s.next(e))}catch(e){o(e)}}function c(e){try{a(s.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}a((s=s.apply(e,t||[])).next())}))}function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var mc,_c={exports:{}},gc="object"==typeof Reflect?Reflect:null,bc=gc&&"function"==typeof gc.apply?gc.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};mc=gc&&"function"==typeof gc.ownKeys?gc.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var vc=Number.isNaN||function(e){return e!=e};function yc(){yc.init.call(this)}_c.exports=yc,_c.exports.once=function(e,t){return new Promise((function(n,s){function r(n){e.removeListener(t,o),s(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}Lc(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&Lc(e,"error",t,{once:!0})}(e,r)}))},yc.EventEmitter=yc,yc.prototype._events=void 0,yc.prototype._eventsCount=0,yc.prototype._maxListeners=void 0;var wc=10;function Sc(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Tc(e){return void 0===e._maxListeners?yc.defaultMaxListeners:e._maxListeners}function xc(e,t,n,s){var r,o,i,c;if(Sc(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),(r=Tc(e))>0&&i.length>r&&!i.warned){i.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=i.length,c=a,console&&console.warn&&console.warn(c)}return e}function Cc(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kc(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=Cc.bind(s);return r.listener=n,s.wrapFn=r,r}function Ec(e,t,n){var s=e._events;if(void 0===s)return[];var r=s[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):Ac(r,r.length)}function Pc(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function Ac(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function Lc(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){s.once&&e.removeEventListener(t,r),n(o)}))}}Object.defineProperty(yc,"defaultMaxListeners",{enumerable:!0,get:function(){return wc},set:function(e){if("number"!=typeof e||e<0||vc(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");wc=e}}),yc.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},yc.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||vc(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},yc.prototype.getMaxListeners=function(){return Tc(this)},yc.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,r=this._events;if(void 0!==r)s=s&&void 0===r.error;else if(!s)return!1;if(s){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=r[e];if(void 0===c)return!1;if("function"==typeof c)bc(c,this,t);else{var a=c.length,l=Ac(c,a);for(n=0;n<a;++n)bc(l[n],this,t)}return!0},yc.prototype.addListener=function(e,t){return xc(this,e,t,!1)},yc.prototype.on=yc.prototype.addListener,yc.prototype.prependListener=function(e,t){return xc(this,e,t,!0)},yc.prototype.once=function(e,t){return Sc(t),this.on(e,kc(this,e,t)),this},yc.prototype.prependOnceListener=function(e,t){return Sc(t),this.prependListener(e,kc(this,e,t)),this},yc.prototype.removeListener=function(e,t){var n,s,r,o,i;if(Sc(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(s[e]=n[0]),void 0!==s.removeListener&&this.emit("removeListener",e,i||t)}return this},yc.prototype.off=yc.prototype.removeListener,yc.prototype.removeAllListeners=function(e){var t,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(s=0;s<o.length;++s)"removeListener"!==(r=o[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this},yc.prototype.listeners=function(e){return Ec(this,e,!0)},yc.prototype.rawListeners=function(e){return Ec(this,e,!1)},yc.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Pc.call(e,t)},yc.prototype.listenerCount=Pc,yc.prototype.eventNames=function(){return this._eventsCount>0?mc(this._events):[]};var Oc,Rc,jc,Ic,Mc,Dc,zc,Fc=fc(_c.exports);function Uc(e){return null!=e&&"function"==typeof e}function Qc(e,t,n){e>31&&(e=31);const s=function(e,t){return Math.floor(Math.random()*(t-0+1)+0)}(0,Math.min(n,t*Math.pow(2,e)));return Math.min(n,t+s)}function Nc(e){return Math.min(1e3*e,2147483647)}!function(e){e[e.timeout=1]="timeout",e[e.transportClosed=2]="transportClosed",e[e.clientDisconnected=3]="clientDisconnected",e[e.clientClosed=4]="clientClosed",e[e.clientConnectToken=5]="clientConnectToken",e[e.clientRefreshToken=6]="clientRefreshToken",e[e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",e[e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",e[e.subscriptionRefreshToken=9]="subscriptionRefreshToken",e[e.transportWriteError=10]="transportWriteError",e[e.connectionClosed=11]="connectionClosed",e[e.badConfiguration=12]="badConfiguration"}(Oc||(Oc={})),function(e){e[e.connectCalled=0]="connectCalled",e[e.transportClosed=1]="transportClosed",e[e.noPing=2]="noPing",e[e.subscribeTimeout=3]="subscribeTimeout",e[e.unsubscribeError=4]="unsubscribeError"}(Rc||(Rc={})),function(e){e[e.disconnectCalled=0]="disconnectCalled",e[e.unauthorized=1]="unauthorized",e[e.badProtocol=2]="badProtocol",e[e.messageSizeLimit=3]="messageSizeLimit"}(jc||(jc={})),function(e){e[e.subscribeCalled=0]="subscribeCalled",e[e.transportClosed=1]="transportClosed"}(Ic||(Ic={})),function(e){e[e.unsubscribeCalled=0]="unsubscribeCalled",e[e.unauthorized=1]="unauthorized",e[e.clientClosed=2]="clientClosed"}(Mc||(Mc={})),function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected"}(Dc||(Dc={})),function(e){e.Unsubscribed="unsubscribed",e.Subscribing="subscribing",e.Subscribed="subscribed"}(zc||(zc={}));class $c extends Fc{constructor(e,t,n){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=t,this.state=zc.Unsubscribed,this._centrifuge=e,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(n),this._centrifuge._debugEnabled?(this.on("state",(e=>{this._centrifuge._debug("subscription state",t,e.oldState,"->",e.newState)})),this.on("error",(e=>{this._centrifuge._debug("subscription error",t,e)}))):this.on("error",(function(){Function.prototype()}))}ready(e){return this.state===zc.Unsubscribed?Promise.reject({code:Oc.subscriptionUnsubscribed,message:this.state}):this.state===zc.Subscribed?Promise.resolve():new Promise(((t,n)=>{const s={resolve:t,reject:n};e&&(s.timeout=setTimeout((function(){n({code:Oc.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=s}))}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(Ic.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed(Mc.unsubscribeCalled,"unsubscribe called",!0)}publish(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.publish(t.channel,e)}))}presence(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presence(e.channel)}))}presenceStats(){const e=this;return this._methodCall().then((function(){return e._centrifuge.presenceStats(e.channel)}))}history(e){const t=this;return this._methodCall().then((function(){return t._centrifuge.history(t.channel,e)}))}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:Oc.subscriptionUnsubscribed,message:this.state}):new Promise(((e,t)=>{const n=setTimeout((function(){t({code:Oc.timeout,message:"timeout"})}),this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}}))}_nextPromiseId(){return++this._promiseId}_needRecover(){return!0===this._recover}_isUnsubscribed(){return this.state===zc.Unsubscribed}_isSubscribing(){return this.state===zc.Subscribing}_isSubscribed(){return this.state===zc.Subscribed}_setState(e){if(this.state!==e){const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t,channel:this.channel}),!0}return!1}_usesToken(){return""!==this._token||null!==this._getToken}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(e){if(!this._isSubscribing())return;this._clearSubscribingState(),e.recoverable&&(this._recover=!0,this._offset=e.offset||0,this._epoch=e.epoch||""),e.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(zc.Subscribed);const t=this._centrifuge._getSubscribeContext(this.channel,e);this.emit("subscribed",t),this._resolvePromises();const n=e.publications;if(n&&n.length>0)for(const e in n)n.hasOwnProperty(e)&&this._handlePublication(n[e]);!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl)))}_setSubscribing(e,t){return pc(this,void 0,void 0,(function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(zc.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:e,reason:t}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())}))}_subscribe(){if(this._centrifuge._debug("subscribing on",this.channel),!this._centrifuge._transportIsOpen)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;const e=this,t={channel:e.channel};return!this._usesToken()||this._token?e._getData?(e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(e._token))})),null):e._sendSubscribe(e._token):(this._getSubscriptionToken().then((function(n){e._isSubscribing()&&(n?(e._token=n,e._getData?e._getData(t).then((function(t){e._isSubscribing()&&(e._data=t,e._sendSubscribe(n))})):e._sendSubscribe(n)):e._failUnauthorized())})).catch((function(t){e._isSubscribing()&&(t instanceof ea?e._failUnauthorized():(e.emit("error",{type:"subscribeToken",channel:e.channel,error:{code:Oc.subscriptionSubscribeToken,message:void 0!==t?t.toString():""}}),e._scheduleResubscribe()))})),null)}_sendSubscribe(e){if(!this._centrifuge._transportIsOpen)return null;const t={channel:this.channel};if(e&&(t.token=e),this._data&&(t.data=this._data),this._positioned&&(t.positioned=!0),this._recoverable&&(t.recoverable=!0),this._joinLeave&&(t.join_leave=!0),this._needRecover()){t.recover=!0;const e=this._getOffset();e&&(t.offset=e);const n=this._getEpoch();n&&(t.epoch=n)}this._delta&&(t.delta=this._delta);const n={subscribe:t};return this._inflight=!0,this._centrifuge._call(n).then((e=>{this._inflight=!1;const t=e.reply.subscribe;this._handleSubscribeResponse(t),e.next&&e.next()}),(e=>{this._inflight=!1,this._handleSubscribeError(e.error),e.next&&e.next()})),n}_handleSubscribeError(e){this._isSubscribing()&&(e.code!==Oc.timeout?this._subscribeError(e):this._centrifuge._disconnect(Rc.subscribeTimeout,"subscribe timeout",!0))}_handleSubscribeResponse(e){this._isSubscribing()&&this._setSubscribed(e)}_setUnsubscribed(e,t,n){if(this._isUnsubscribed())return Promise.resolve();let s=Promise.resolve();return this._isSubscribed()?(n&&(s=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&n&&(s=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._setState(zc.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:e,reason:t}),this._rejectPromises({code:Oc.subscriptionUnsubscribed,message:this.state}),s}_handlePublication(e){if(this._delta&&this._delta_negotiated){const{newData:t,newPrevValue:n}=this._centrifuge._codec.applyDeltaIfNeeded(e,this._prevValue);e.data=t,this._prevValue=n}const t=this._centrifuge._getPublicationContext(this.channel,e);this.emit("publication",t),e.offset&&(this._offset=e.offset)}_handleJoin(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("join",{channel:this.channel,info:t})}_handleLeave(e){const t=this._centrifuge._getJoinLeaveContext(e.info);this.emit("leave",{channel:this.channel,info:t})}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}_scheduleResubscribe(){const e=this,t=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout((function(){e._isSubscribing()&&e._subscribe()}),t)}_subscribeError(e){if(this._isSubscribing())if(e.code<100||109===e.code||!0===e.temporary){109===e.code&&(this._token="");const t={channel:this.channel,type:"subscribe",error:e};this._centrifuge.state===Dc.Connected&&this.emit("error",t),this._scheduleResubscribe()}else this._setUnsubscribed(e.code,e.message,!1)}_getResubscribeDelay(){const e=Qc(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,e}_setOptions(e){if(e&&(e.since&&(this._offset=e.since.offset,this._epoch=e.since.epoch,this._recover=!0),e.data&&(this._data=e.data),e.getData&&(this._getData=e.getData),void 0!==e.minResubscribeDelay&&(this._minResubscribeDelay=e.minResubscribeDelay),void 0!==e.maxResubscribeDelay&&(this._maxResubscribeDelay=e.maxResubscribeDelay),e.token&&(this._token=e.token),e.getToken&&(this._getToken=e.getToken),!0===e.positioned&&(this._positioned=!0),!0===e.recoverable&&(this._recoverable=!0),!0===e.joinLeave&&(this._joinLeave=!0),e.delta)){if("fossil"!==e.delta)throw new Error("unsupported delta format");this._delta=e.delta}}_getOffset(){const e=this._offset;return null!==e?e:0}_getEpoch(){const e=this._epoch;return null!==e?e:""}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){null!==this._resubscribeTimeout&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const e={channel:this.channel},t=this._getToken;if(null===t)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:Oc.badConfiguration,message:"provide a function to get channel subscription token"}}),new ea("");return t(e)}_refresh(){this._clearRefreshTimeout();const e=this;this._getSubscriptionToken().then((function(t){if(!e._isSubscribed())return;if(!t)return void e._failUnauthorized();e._token=t;const n={sub_refresh:{channel:e.channel,token:t}};e._centrifuge._call(n).then((t=>{const n=t.reply.sub_refresh;e._refreshResponse(n),t.next&&t.next()}),(t=>{e._refreshError(t.error),t.next&&t.next()}))})).catch((function(t){t instanceof ea?e._failUnauthorized():(e.emit("error",{type:"refreshToken",channel:e.channel,error:{code:Oc.subscriptionRefreshToken,message:void 0!==t?t.toString():""}}),e._refreshTimeout=setTimeout((()=>e._refresh()),e._getRefreshRetryDelay()))}))}_refreshResponse(e){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),!0===e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl))))}_refreshError(e){this._isSubscribed()&&(e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",channel:this.channel,error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._setUnsubscribed(e.code,e.message,!0))}_getRefreshRetryDelay(){return Qc(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(Mc.unauthorized,"unauthorized",!0)}}class Bc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return null!==this.options.sockjs}initialize(e,t){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class Wc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return void 0!==this.options.websocket&&null!==this.options.websocket}initialize(e,t){let n="";"protobuf"===e&&(n="centrifuge-protobuf"),this._transport=""!==n?new this.options.websocket(this.endpoint,n):new this.options.websocket(this.endpoint),"protobuf"===e&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{t.onOpen()},this._transport.onerror=e=>{t.onError(e)},this._transport.onclose=e=>{t.onClose(e)},this._transport.onmessage=e=>{t.onMessage(e.data)}}close(){this._transport.close()}send(e){this._transport.send(e)}}class Vc{constructor(e,t){this.endpoint=e,this.options=t,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(e){if(!e.ok)throw new Error(e.status);return e}_fetchEventTarget(e,t,n){const s=new EventTarget;return(0,e.options.fetch)(t,n).then(e._handleErrors).then((t=>{s.dispatchEvent(new Event("open"));let n="",r=0,o=new Uint8Array;const i=t.body.getReader();return new e.options.readableStream({start:t=>function c(){return i.read().then((({done:i,value:a})=>{if(i)return s.dispatchEvent(new Event("close")),void t.close();try{if("json"===e._protocol)for(n+=e._utf8decoder.decode(a);r<n.length;)if("\n"===n[r]){const e=n.substring(0,r);s.dispatchEvent(new MessageEvent("message",{data:e})),n=n.substring(r+1),r=0}else++r;else{const t=new Uint8Array(o.length+a.length);for(t.set(o),t.set(a,o.length),o=t;;){const t=e.options.decoder.decodeReply(o);if(!t.ok)break;{const e=o.slice(0,t.pos);s.dispatchEvent(new MessageEvent("message",{data:e})),o=o.slice(t.pos)}}}}catch(e){return s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close")),void t.close()}c()})).catch((function(e){s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close")),t.close()}))}()})})).catch((e=>{s.dispatchEvent(new Event("error",{detail:e})),s.dispatchEvent(new Event("close"))})),s}supported(){return null!==this.options.fetch&&null!==this.options.readableStream&&"undefined"!=typeof TextDecoder&&"undefined"!=typeof AbortController&&"undefined"!=typeof EventTarget&&"undefined"!=typeof Event&&"undefined"!=typeof MessageEvent&&"undefined"!=typeof Error}initialize(e,t,n){let s,r;this._protocol=e,this._abortController=new AbortController,"json"===e?(s={Accept:"application/json","Content-Type":"application/json"},r=n):(s={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},r=n);const o={method:"POST",headers:s,body:r,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},i=this._fetchEventTarget(this,this.endpoint,o);i.addEventListener("open",(()=>{t.onOpen()})),i.addEventListener("error",(e=>{this._abortController.abort(),t.onError(e)})),i.addEventListener("close",(()=>{this._abortController.abort(),t.onClose({code:4,reason:"connection closed"})})),i.addEventListener("message",(e=>{t.onMessage(e.data)}))}close(){this._abortController.abort()}send(e,t,n){let s,r;const o={session:t,node:n,data:e};"json"===this._protocol?(s={"Content-Type":"application/json"},r=JSON.stringify(o)):(s={"Content-Type":"application/octet-stream"},r=this.options.encoder.encodeEmulationRequest(o));const i={method:"POST",headers:s,body:r,mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,i)}}class Hc{constructor(e,t){this.endpoint=e,this.options=t,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return null!==this.options.eventsource&&null!==this.options.fetch}initialize(e,t,n){let s;s=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),s.searchParams.append("cf_connect",n);const r=new this.options.eventsource(s.toString(),{});this._transport=r,r.onopen=function(){t.onOpen()},r.onerror=function(e){r.close(),t.onError(e),t.onClose({code:4,reason:"connection closed"})},r.onmessage=function(e){t.onMessage(e.data)},this._onClose=function(){t.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),null!==this._onClose&&this._onClose()}send(e,t,n){const s={session:t,node:n,data:e},r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),mode:"cors",credentials:"same-origin",cache:"no-cache"};(0,this.options.fetch)(this.options.emulationEndpoint,r)}}class qc{constructor(e,t){this.endpoint=e,this.options=t,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return void 0!==this.options.webtransport&&null!==this.options.webtransport}initialize(e,t){return pc(this,void 0,void 0,(function*(){let n;n=globalThis&&globalThis.document&&globalThis.document.baseURI?new URL(this.endpoint,globalThis.document.baseURI):new URL(this.endpoint),"protobuf"===e&&n.searchParams.append("cf_protocol","protobuf"),this._protocol=e;const s=new EventTarget;this._transport=new this.options.webtransport(n.toString()),this._transport.closed.then((()=>{t.onClose({code:4,reason:"connection closed"})})).catch((()=>{t.onClose({code:4,reason:"connection closed"})}));try{yield this._transport.ready}catch(e){return void this.close()}let r;try{r=yield this._transport.createBidirectionalStream()}catch(e){return void this.close()}this._stream=r,this._writer=this._stream.writable.getWriter(),s.addEventListener("close",(()=>{t.onClose({code:4,reason:"connection closed"})})),s.addEventListener("message",(e=>{t.onMessage(e.data)})),this._startReading(s),t.onOpen()}))}_startReading(e){return pc(this,void 0,void 0,(function*(){const t=this._stream.readable.getReader();let n="",s=0,r=new Uint8Array;try{for(;;){const{done:o,value:i}=yield t.read();if(i.length>0)if("json"===this._protocol)for(n+=this._utf8decoder.decode(i);s<n.length;)if("\n"===n[s]){const t=n.substring(0,s);e.dispatchEvent(new MessageEvent("message",{data:t})),n=n.substring(s+1),s=0}else++s;else{const t=new Uint8Array(r.length+i.length);for(t.set(r),t.set(i,r.length),r=t;;){const t=this.options.decoder.decodeReply(r);if(!t.ok)break;{const n=r.slice(0,t.pos);e.dispatchEvent(new MessageEvent("message",{data:n})),r=r.slice(t.pos)}}}if(o)break}}catch(t){e.dispatchEvent(new Event("close"))}}))}close(){return pc(this,void 0,void 0,(function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch(e){}}))}send(e){return pc(this,void 0,void 0,(function*(){let t;t="json"===this._protocol?(new TextEncoder).encode(e+"\n"):e;try{yield this._writer.write(t)}catch(e){this.close()}}))}}const Jc=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class Gc{constructor(e){this.a=e,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){const e=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return e}getChar(){return String.fromCharCode(this.getByte())}getInt(){let e,t=0;for(;this.haveBytes()&&(e=Jc[127&this.getByte()])>=0;)t=(t<<6)+e;return this.pos--,t>>>0}}class Kc{constructor(){this.a=[]}toByteArray(e){return Array.isArray(e)?this.a:new Uint8Array(this.a)}putArray(e,t,n){for(let s=t;s<n;s++)this.a.push(e[s])}}function Zc(e){let t=0,n=0,s=0,r=0,o=0,i=e.length;for(;i>=16;)t=t+e[o+0]|0,n=n+e[o+1]|0,s=s+e[o+2]|0,r=r+e[o+3]|0,t=t+e[o+4]|0,n=n+e[o+5]|0,s=s+e[o+6]|0,r=r+e[o+7]|0,t=t+e[o+8]|0,n=n+e[o+9]|0,s=s+e[o+10]|0,r=r+e[o+11]|0,t=t+e[o+12]|0,n=n+e[o+13]|0,s=s+e[o+14]|0,r=r+e[o+15]|0,o+=16,i-=16;for(;i>=4;)t=t+e[o+0]|0,n=n+e[o+1]|0,s=s+e[o+2]|0,r=r+e[o+3]|0,o+=4,i-=4;switch(r=((r+(s<<8)|0)+(n<<16)|0)+(t<<24)|0,i){case 3:r=r+(e[o+2]<<8)|0;case 2:r=r+(e[o+1]<<16)|0;case 1:r=r+(e[o+0]<<24)|0}return r>>>0}class Yc{name(){return"json"}encodeCommands(e){return e.map((e=>JSON.stringify(e))).join("\n")}decodeReplies(e){return e.trim().split("\n").map((e=>JSON.parse(e)))}applyDeltaIfNeeded(e,t){let n,s;if(e.delta){const r=function(e,t){let n=0;const s=new Gc(t),r=e.length,o=t.length,i=s.getInt();if("\n"!==s.getChar())throw new Error("size integer not terminated by '\\n'");const c=new Kc;for(;s.haveBytes();){const t=s.getInt();let a;switch(s.getChar()){case"@":if(a=s.getInt(),s.haveBytes()&&","!==s.getChar())throw new Error("copy command not terminated by ','");if(n+=t,n>i)throw new Error("copy exceeds output file size");if(a+t>r)throw new Error("copy extends past end of input");c.putArray(e,a,a+t);break;case":":if(n+=t,n>i)throw new Error("insert command gives an output larger than predicted");if(t>o)throw new Error("insert count exceeds size of delta");c.putArray(s.a,s.pos,s.pos+t),s.pos+=t;break;case";":{const s=c.toByteArray(e);if(t!==Zc(s))throw new Error("bad checksum");if(n!==i)throw new Error("generated size does not match predicted size");return s}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}(t,(new TextEncoder).encode(e.data));n=JSON.parse((new TextDecoder).decode(r)),s=r}else n=JSON.parse(e.data),s=(new TextEncoder).encode(e.data);return{newData:n,newPrevValue:s}}}const Xc={token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class ea extends Error{constructor(e){super(e),this.name=this.constructor.name}}class ta extends Fc{constructor(e,t){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Dc.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new Yc,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},Xc),t),this._configure(),this._debugEnabled?(this.on("state",(e=>{this._debug("client state",e.oldState,"->",e.newState)})),this.on("error",(e=>{this._debug("client error",e)}))):this.on("error",(function(){Function.prototype()}))}newSubscription(e,t){if(null!==this.getSubscription(e))throw new Error("Subscription to the channel "+e+" already exists");const n=new $c(this,e,t);return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==zc.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}subscriptions(){return this._subs}ready(e){return this.state===Dc.Disconnected?Promise.reject({code:Oc.clientDisconnected,message:"client disconnected"}):this.state===Dc.Connected?Promise.resolve():new Promise(((t,n)=>{const s={resolve:t,reject:n};e&&(s.timeout=setTimeout((function(){n({code:Oc.timeout,message:"timeout"})}),e)),this._promises[this._nextPromiseId()]=s}))}connect(){this._isConnected()?this._debug("connect called when already connected"):this._isConnecting()?this._debug("connect called when already connecting"):(this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting())}disconnect(){this._disconnect(jc.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}send(e){const t={send:{data:e}},n=this;return this._methodCall().then((function(){return n._transportSendCommands([t])?Promise.resolve():Promise.reject(n._createErrorObject(Oc.transportWriteError,"transport write error"))}))}rpc(e,t){const n={rpc:{method:e,data:t}},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(e){return{data:e.rpc.data}}))}))}publish(e,t){const n={publish:{channel:e,data:t}},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(){return{}}))}))}history(e,t){const n={history:this._getHistoryRequest(e,t)},s=this;return this._methodCall().then((function(){return s._callPromise(n,(function(t){const n=t.history,r=[];if(n.publications)for(let t=0;t<n.publications.length;t++)r.push(s._getPublicationContext(e,n.publications[t]));return{publications:r,epoch:n.epoch||"",offset:n.offset||0}}))}))}presence(e){const t={presence:{channel:e}},n=this;return this._methodCall().then((function(){return n._callPromise(t,(function(e){const t=e.presence.presence;for(const e in t)if(t.hasOwnProperty(e)){const n=t[e].conn_info,s=t[e].chan_info;n&&(t[e].connInfo=n),s&&(t[e].chanInfo=s)}return{clients:t}}))}))}presenceStats(e){const t={presence_stats:{channel:e}},n=this;return this._methodCall().then((function(){return n._callPromise(t,(function(e){const t=e.presence_stats;return{numUsers:t.num_users,numClients:t.num_clients}}))}))}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then((function(){Promise.resolve().then((function(){e._batching=!1,e._flush()}))}))}_debug(...e){this._debugEnabled&&function(e,t){if(globalThis.console){const e=globalThis.console.debug;Uc(e)&&e.apply(globalThis.console,t)}}(0,e)}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(null!==this._config.token&&(this._token=this._config.token),null!==this._config.data&&(this._data=this._config.data),this._codec=new Yc,this._formatOverride(),(!0===this._config.debug||"undefined"!=typeof localStorage&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),"string"==typeof this._endpoint);else{if(!("object"==typeof this._endpoint&&this._endpoint instanceof Array))throw new Error("unsupported url configuration type: only string or array of objects are supported");this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const t=this._transports[e];if(!t.endpoint||!t.transport)throw new Error("malformed transport configuration");const n=t.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}}_setState(e){if(this.state!==e){this._reconnecting=!1;const t=this.state;return this.state=e,this.emit("state",{newState:e,oldState:t}),!0}return!1}_isDisconnected(){return this.state===Dc.Disconnected}_isConnecting(){return this.state===Dc.Connecting}_isConnected(){return this.state===Dc.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;null!==this._config.networkEventTarget?e=this._config.networkEventTarget:void 0!==globalThis.addEventListener&&(e=globalThis),e&&(e.addEventListener("offline",(()=>{this._debug("offline event triggered"),this.state!==Dc.Connected&&this.state!==Dc.Connecting||(this._disconnect(Rc.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)})),e.addEventListener("online",(()=>{this._debug("online event triggered"),this.state===Dc.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())})),this._networkEventsSet=!0)}_getReconnectDelay(){const e=Qc(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const t=this._callbacks[e];clearTimeout(t.timeout);const n=t.errback;if(!n)continue;n({error:this._createErrorObject(Oc.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const t=this._subs[e];t.state===zc.Subscribed&&t._setSubscribing(Ic.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const t of e){const e=t.id;if(!(e in this._callbacks))continue;const n=this._callbacks[e];clearTimeout(this._callbacks[e].timeout),delete this._callbacks[e],(0,n.errback)({error:this._createErrorObject(Oc.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(t){return this._debug("error writing commands",t),this._handleWriteError(e),!1}return!0}_initializeTransport(){let e;null!==this._config.websocket?e=this._config.websocket:"function"!=typeof globalThis.WebSocket&&"object"!=typeof globalThis.WebSocket||(e=globalThis.WebSocket);let t=null;null!==this._config.sockjs?t=this._config.sockjs:void 0!==globalThis.SockJS&&(t=globalThis.SockJS);let n=null;null!==this._config.eventsource?n=this._config.eventsource:void 0!==globalThis.EventSource&&(n=globalThis.EventSource);let s=null;null!==this._config.fetch?s=this._config.fetch:void 0!==globalThis.fetch&&(s=globalThis.fetch);let r=null;if(null!==this._config.readableStream?r=this._config.readableStream:void 0!==globalThis.ReadableStream&&(r=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let o=0;for(;;){if(o>=this._transports.length)throw new Error("no supported transport found");const i=this._transports[this._currentTransportIndex],c=i.transport,a=i.endpoint;if("websocket"===c){if(this._debug("trying websocket transport"),this._transport=new Wc(a,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,o++;continue}}else if("webtransport"===c){if(this._debug("trying webtransport transport"),this._transport=new qc(a,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,o++;continue}}else if("http_stream"===c){if(this._debug("trying http_stream transport"),this._transport=new Vc(a,{fetch:s,readableStream:r,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,o++;continue}}else if("sse"===c){if(this._debug("trying sse transport"),this._transport=new Hc(a,{eventsource:n,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,o++;continue}}else{if("sockjs"!==c)throw new Error("unknown transport "+c);if(this._debug("trying sockjs"),this._transport=new Bc(a,{sockjs:t,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,o++;continue}}break}}else{if(0===this._endpoint.lastIndexOf("http",0))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new Wc(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket not available")}const o=this,i=this._transport,c=this._nextTransportId();o._debug("id of transport",c);let a=!1;const l=[];if(this._transport.emulation()){const e=o._sendConnect(!0);l.push(e)}this._setNetworkEvents();const u=this._codec.encodeCommands(l);let h;this._transportClosed=!1,h=setTimeout((function(){i.close()}),this._config.timeout),this._transport.initialize(this._codec.name(),{onOpen:function(){if(h&&(clearTimeout(h),h=null),o._transportId!=c)return o._debug("open callback from non-actual transport"),void i.close();a=!0,o._debug(i.subName(),"transport open"),i.emulation()||(o._transportIsOpen=!0,o._transportWasOpen=!0,o.startBatching(),o._sendConnect(!1),o._sendSubscribeCommands(),o.stopBatching(),o.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(e){o._transportId==c?o._debug("transport level error",e):o._debug("error callback from non-actual transport")},onClose:function(e){if(h&&(clearTimeout(h),h=null),o._transportId!=c)return void o._debug("close callback from non-actual transport");o._debug(i.subName(),"transport closed"),o._transportClosed=!0,o._transportIsOpen=!1;let t="connection closed",n=!0,s=0;if(e&&"code"in e&&e.code&&(s=e.code),e&&e.reason)try{const s=JSON.parse(e.reason);t=s.reason,n=s.reconnect}catch(r){t=e.reason,(s>=3500&&s<4e3||s>=4500&&s<5e3)&&(n=!1)}s<3e3?(1009===s?(s=jc.messageSizeLimit,t="message size limit exceeded",n=!1):(s=Rc.transportClosed,t="transport closed"),o._emulation&&!o._transportWasOpen&&(o._currentTransportIndex++,o._currentTransportIndex>=o._transports.length&&(o._triedAllTransports=!0,o._currentTransportIndex=0))):o._transportWasOpen=!0,o._isConnecting()&&!a&&o.emit("error",{type:"transport",error:{code:Oc.transportClosed,message:"transport closed"},transport:i.name()}),o._reconnecting=!1,o._disconnect(s,t,n)},onMessage:function(e){o._dataReceived(e)}},u),o.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const t=this._constructConnectCommand(),n=this;return this._call(t,e).then((e=>{const t=e.reply.connect;n._connectResponse(t),e.next&&e.next()}),(e=>{n._connectError(e.error),e.next&&e.next()})),t}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting())return void this._debug("stop reconnecting: client not in connecting state");if(this._reconnecting)return void this._debug("reconnect already in progress, return from reconnect routine");if(!1===this._transportClosed)return void this._debug("waiting for transport close");this._reconnecting=!0;const e=this,t=""===this._token;this._refreshRequired||t&&null!==this._config.getToken?this._getToken().then((function(t){e._isConnecting()&&(null!=t&&null!=t?(e._token=t,e._debug("connection token refreshed"),e._config.getData?e._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):e._initializeTransport()):e._failUnauthorized())})).catch((function(t){if(!e._isConnecting())return;if(t instanceof ea)return void e._failUnauthorized();e.emit("error",{type:"connectToken",error:{code:Oc.clientConnectToken,message:void 0!==t?t.toString():""}});const n=e._getReconnectDelay();e._debug("error on connection token refresh, reconnect after "+n+" milliseconds",t),e._reconnecting=!1,e._reconnectTimeout=setTimeout((()=>{e._startReconnecting()}),n)})):this._config.getData?this._config.getData().then((function(t){e._isConnecting()&&(e._data=t,e._initializeTransport())})):this._initializeTransport()}_connectError(e){this.state===Dc.Connecting&&(109===e.code&&(this._refreshRequired=!0),e.code<100||!0===e.temporary||109===e.code?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;!this._emulation||this._transportWasOpen||this._triedAllTransports||(e=!0);let t=this._getReconnectDelay();e&&(t=0),this._debug("reconnect after "+t+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout((()=>{this._startReconnecting()}),t)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version);const t={};let n=!1;for(const e in this._serverSubs)if(this._serverSubs.hasOwnProperty(e)&&this._serverSubs[e].recoverable){n=!0;const s={recover:!0};this._serverSubs[e].offset&&(s.offset=this._serverSubs[e].offset),this._serverSubs[e].epoch&&(s.epoch=this._serverSubs[e].epoch),t[e]=s}return n&&(e.subs=t),{connect:e}}_getHistoryRequest(e,t){const n={channel:e};return void 0!==t&&(t.since&&(n.since={offset:t.since.offset},t.since.epoch&&(n.since.epoch=t.since.epoch)),void 0!==t.limit&&(n.limit=t.limit),!0===t.reverse&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise(((e,t)=>{const n=setTimeout((function(){t({code:Oc.timeout,message:"timeout"})}),this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:t}}))}_callPromise(e,t){return new Promise(((n,s)=>{this._call(e,!1).then((e=>{n(t(e.reply)),e.next&&e.next()}),(e=>{s(e.error),e.next&&e.next()}))}))}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const t=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then((()=>{let e;this._dispatchPromise=new Promise((t=>{e=t})),this._dispatchSynchronized(t,e)}))}_dispatchSynchronized(e,t){let n=Promise.resolve();for(const t in e)e.hasOwnProperty(t)&&(n=n.then((()=>this._dispatchReply(e[t]))));n=n.then((()=>{t()}))}_dispatchReply(e){let t;const n=new Promise((e=>{t=e}));if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),n;const s=e.id;return s&&s>0?this._handleReply(e,t):e.push?this._handlePush(e.push,t):this._handleServerPing(t),n}_call(e,t){return new Promise(((n,s)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,s),t||this._addCommand(e)}))}_startConnecting(){this._debug("start connecting"),this._setState(Dc.Connecting)&&this.emit("connecting",{code:Rc.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,t,n){if(this._isDisconnected())return;this._transportIsOpen=!1;const s=this.state;this._reconnecting=!1;const r={code:e,reason:t};let o=!1;if(n?o=this._setState(Dc.Connecting):(o=this._setState(Dc.Disconnected),this._rejectPromises({code:Oc.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),s===Dc.Connecting&&this._clearReconnectTimeout(),s===Dc.Connected&&this._clearConnectedState(),o&&(this._isConnecting()?this.emit("connecting",r):this.emit("disconnected",r)),this._transport){this._debug("closing existing transport");const e=this._transport;this._transport=null,e.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(jc.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:Oc.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new ea("");return this._config.getToken({})}_refresh(){const e=this._client,t=this;this._getToken().then((function(n){if(e!==t._client)return;if(!n)return void t._failUnauthorized();if(t._token=n,t._debug("connection token refreshed"),!t._isConnected())return;const s={refresh:{token:t._token}};t._call(s,!1).then((e=>{const n=e.reply.refresh;t._refreshResponse(n),e.next&&e.next()}),(e=>{t._refreshError(e.error),e.next&&e.next()}))})).catch((function(e){t._isConnected()&&(e instanceof ea?t._failUnauthorized():(t.emit("error",{type:"refreshToken",error:{code:Oc.clientRefreshToken,message:void 0!==e?e.toString():""}}),t._refreshTimeout=setTimeout((()=>t._refresh()),t._getRefreshRetryDelay())))}))}_refreshError(e){e.code<100||!0===e.temporary?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout((()=>this._refresh()),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return Qc(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl)))}_removeSubscription(e){null!==e&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();const t={unsubscribe:{channel:e.channel}},n=this;return new Promise(((e,s)=>{this._call(t,!1).then((t=>{e(),t.next&&t.next()}),(t=>{e(),t.next&&t.next(),n._disconnect(Rc.unsubscribeError,"unsubscribe error",!0)}))}))}_getSub(e){return this._subs[e]||null}_isServerSub(e){return void 0!==this._serverSubs[e]}_sendSubscribeCommands(){const e=[];for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const n=this._subs[t];if(!0!==n._inflight&&n.state===zc.Subscribing){const t=n._subscribe();t&&e.push(t)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(Dc.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout((()=>this._refresh()),Nc(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const t={client:e.client,transport:this._transport.subName()};e.data&&(t.data=e.data),this.emit("connected",t),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=1e3*e.ping,this._sendPong=!0===e.pong,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];this._serverSubs[t]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const s=this._getSubscribeContext(t,n);this.emit("subscribed",s)}for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];if(n.recovered){const e=n.publications;if(e&&e.length>0)for(const n in e)e.hasOwnProperty(n)&&this._handlePublication(t,e[n])}}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&(e[t]||(this.emit("unsubscribed",{channel:t}),delete this._serverSubs[t]))}_clearRefreshTimeout(){null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){null!==this._reconnectTimeout&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){null!==this._serverPingTimeout&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){0!==this._config.maxServerPingDelay&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout((()=>{this._isConnected()&&this._disconnect(Rc.noPing,"no ping",!0)}),this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,t){const n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};t.recovered&&(n.recovered=!0),t.positioned&&(n.positioned=!0),t.recoverable&&(n.recoverable=!0),t.was_recovering&&(n.wasRecovering=!0);let s="";"epoch"in t&&(s=t.epoch);let r=0;return"offset"in t&&(r=t.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:r,epoch:s}),t.data&&(n.data=t.data),n}_handleReply(e,t){const n=e.id;if(!(n in this._callbacks))return void t();const s=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],"error"in(r=e)&&null!==r.error){const n=s.errback;if(!n)return void t();n({error:e.error,next:t})}else{const n=s.callback;if(!n)return;n({reply:e,next:t})}var r}_handleJoin(e,t){const n=this._getSub(e);if(n)n._handleJoin(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("join",n)}}_handleLeave(e,t){const n=this._getSub(e);if(n)n._handleLeave(t);else if(this._isServerSub(e)){const n={channel:e,info:this._getJoinLeaveContext(t.info)};this.emit("leave",n)}}_handleUnsubscribe(e,t){const n=this._getSub(e);n?t.code<2500?n._setUnsubscribed(t.code,t.reason,!1):n._setSubscribing(t.code,t.reason):this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}))}_handleSubscribe(e,t){this._serverSubs[e]={offset:t.offset,epoch:t.epoch,recoverable:t.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,t))}_handleDisconnect(e){const t=e.code;let n=!0;(t>=3500&&t<4e3||t>=4500&&t<5e3)&&(n=!1),this._disconnect(t,e.reason,n)}_getPublicationContext(e,t){const n={channel:e,data:t.data};return t.offset&&(n.offset=t.offset),t.info&&(n.info=this._getJoinLeaveContext(t.info)),t.tags&&(n.tags=t.tags),n}_getJoinLeaveContext(e){const t={client:e.client,user:e.user};return e.conn_info&&(t.connInfo=e.conn_info),e.chan_info&&(t.chanInfo=e.chan_info),t}_handlePublication(e,t){const n=this._getSub(e);if(n)n._handlePublication(t);else if(this._isServerSub(e)){const n=this._getPublicationContext(e,t);this.emit("publication",n),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset)}}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const e={};this._transportSendCommands([e])}e()}_handlePush(e,t){const n=e.channel;e.pub?this._handlePublication(n,e.pub):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join):e.leave?this._handleLeave(n,e.leave):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),t()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,t,n){const s={code:e,message:t};return n&&(s.temporary=!0),s}_registerCall(e,t,n){this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout((()=>{delete this._callbacks[e],Uc(n)&&n({error:this._createErrorObject(Oc.timeout,"timeout")})}),this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].reject(e),delete this._promises[t])}}ta.SubscriptionState=zc,ta.State=Dc,ta.UnauthorizedError=ea;const na=e=>{"complete"===document.readyState?e():window.addEventListener("load",e)};na((()=>{let e=document.querySelector('div[data-place="widget-live-match"]');e?.getAttribute("data-place")&&(()=>{let e=document.querySelector('div[data-place="widget-live-match"]');dn.lang="en";const t=e.dataset?.lang??null;t&&(dn.lang=["nl","ro","ka","hy","az","el","pl","uz"].includes(t)?t:dn.lang),dn.sport=r,dn.rpcSport=o,dn.rpcSportDetail=dn.rpcSport+"Detail",dn.empty=a[dn.lang],dn.widgetMes=i[dn.lang],dc(e),(async()=>{console.log("connecting..."),dn.socket=new ta("wss://widgetlogic.org/ws",{timeout:6e4}),dn.sub=dn.socket.newSubscription(dn.rpcSport),dn.debug&&(dn.sub.on("subscribing",(function(e){dn.debug&&console.log(`subscribing: ${e.code}, ${e.reason}`)})).on("subscribed",(function(e){dn.debug&&console.log("subscribed",e)})).on("unsubscribed",(function(e){dn.debug&&console.log(`unsubscribed: ${e.code}, ${e.reason}`)})),dn.socket.on("connecting",(function(e){dn.debug&&console.log(`connecting: ${e.code}, ${e.reason}`)})).on("connected",(function(e){dn.debug&&console.log(`connected over ${e.transport}`)})).on("disconnected",(function(e){dn.debug&&console.log(`disconnected: ${e.code}, ${e.reason}`)})).on("publish",(function(e){dn.debug&&console.log(e)}))),dn.sub.on("publication",(function(e){dn.debug&&console.log("Update",e.data),(e=>{if(!e)return void console.log("Update is empty...");const{slug:t,matchTime:n=null,home:s={score:null,periods:null},away:r={score:null,periods:null}}=e,o=ln.matches[t];if(t===dn.matchSlug&&(dn.resetAutoUpdate(),console.log("Selected Match updated",e)),sn.includes(ln.matches[dn.matchSlug]?.stage)||!n&&!sn.includes(e?.stage)||(console.log("Update match full match",e),dn.getFullMatch()),!o)return void console.log("Match is absent",e);const i=e.stage?rn.includes(e.stage)?e.stage:console.log("unknown stages for update data:",e)??e.stage:null,c=(e,t)=>{const n="object"==typeof e.periods?e.periods:{};return Object.assign(e,{...t.periods?{periods:Object.assign(n,t.periods)}:{},score:t.score})};Object.assign(ln.matches[t],{...i?{stage:i,live:nn.includes(i)}:{},...n?{matchTime:n}:{},...s.score?{home:c(ln.matches[t].home,s)}:{},...r.score?{away:c(ln.matches[t].away,r)}:{}})})(e.data)})),dn.sub.subscribe(),dn.socket.connect(),await un()})()})()})),na((()=>{window.widgetLogic="present"}))})();var pollsL10n={"ajax_url":"https:\/\/pix-geeks.com\/wp-admin\/admin-ajax.php","text_wait":"Your last request is still being processed. Please wait a while ...","text_valid":"Please choose a valid poll answer.","text_multiple":"Maximum number of choices allowed: ","show_loading":"0","show_fading":"1"};pollsL10n.show_loading=parseInt(pollsL10n.show_loading);pollsL10n.show_fading=parseInt(pollsL10n.show_fading);function poll_vote(current_poll_id){jQuery(document).ready(function($){var poll_answer_id='';var poll_multiple_ans=0;var poll_multiple_ans_count=0;var post_id=$('#polls-'+current_poll_id+' input[name="post_id"]').val();if($('#poll_multiple_ans_'+current_poll_id).length){poll_multiple_ans=parseInt($('#poll_multiple_ans_'+current_poll_id).val())}
$('#polls_form_'+current_poll_id+' input:checkbox, #polls_form_'+current_poll_id+' input:radio, #polls_form_'+current_poll_id+' option').each(function(i){if($(this).is(':checked')||$(this).is(':selected')){if(poll_multiple_ans>0){poll_answer_id=$(this).val()+','+poll_answer_id;poll_multiple_ans_count++}else{poll_answer_id=parseInt($(this).val())}}});if(poll_multiple_ans>0){if(poll_multiple_ans_count>0&&poll_multiple_ans_count<=poll_multiple_ans){poll_answer_id=poll_answer_id.substring(0,(poll_answer_id.length-1));poll_process(current_poll_id,poll_answer_id,post_id)}else if(poll_multiple_ans_count==0){alert(pollsL10n.text_valid)}else{alert(pollsL10n.text_multiple+' '+poll_multiple_ans)}}else{if(poll_answer_id>0){poll_process(current_poll_id,poll_answer_id,post_id)}else{alert(pollsL10n.text_valid)}}})}
function poll_process(current_poll_id,poll_answer_id,post_id){jQuery(document).ready(function($){var poll_nonce=$('#poll_'+current_poll_id+'_nonce').val();if(pollsL10n.show_fading){$('#polls-'+current_poll_id).fadeTo('def',0);if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').show()}
$.ajax({type:'POST',xhrFields:{withCredentials:!0},url:pollsL10n.ajax_url,data:'action=polls&view=process&poll_id='+current_poll_id+'&post_id='+post_id+'&poll_'+current_poll_id+'='+poll_answer_id+'&poll_'+current_poll_id+'_nonce='+poll_nonce,cache:!1,success:poll_process_success(current_poll_id)})}else{if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').show()}
$.ajax({type:'POST',xhrFields:{withCredentials:!0},url:pollsL10n.ajax_url,data:'action=polls&view=process&poll_id='+current_poll_id+'&post_id='+post_id+'&poll_'+current_poll_id+'='+poll_answer_id+'&poll_'+current_poll_id+'_nonce='+poll_nonce,cache:!1,success:poll_process_success(current_poll_id)})}})}
function poll_result(current_poll_id){jQuery(document).ready(function($){var poll_nonce=$('#poll_'+current_poll_id+'_nonce').val();var post_id=$('#polls-'+current_poll_id+' input[name="post_id"]').val();if(pollsL10n.show_fading){$('#polls-'+current_poll_id).fadeTo('def',0);if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').show()}
$.ajax({type:'POST',xhrFields:{withCredentials:!0},url:pollsL10n.ajax_url,data:'action=polls&view=result&poll_id='+current_poll_id+'&post_id='+post_id+'&poll_'+current_poll_id+'_nonce='+poll_nonce,cache:!1,success:poll_process_success(current_poll_id)})}else{if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').show()}
$.ajax({type:'POST',xhrFields:{withCredentials:!0},url:pollsL10n.ajax_url,data:'action=polls&view=result&poll_id='+current_poll_id+'&post_id='+post_id+'&poll_'+current_poll_id+'_nonce='+poll_nonce,cache:!1,success:poll_process_success(current_poll_id)})}})}
function poll_booth(current_poll_id){jQuery(document).ready(function($){var poll_nonce=$('#poll_'+current_poll_id+'_nonce').val();var post_id=$('#polls-'+current_poll_id+' input[name="post_id"]').val();if(pollsL10n.show_fading){$('#polls-'+current_poll_id).fadeTo('def',0);if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').show()}
$.ajax({type:'POST',xhrFields:{withCredentials:!0},url:pollsL10n.ajax_url,data:'action=polls&view=booth&poll_id='+current_poll_id+'&post_id='+post_id+'&poll_'+current_poll_id+'_nonce='+poll_nonce,cache:!1,success:poll_process_success(current_poll_id)})}else{if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').show()}
$.ajax({type:'POST',xhrFields:{withCredentials:!0},url:pollsL10n.ajax_url,data:'action=polls&view=booth&poll_id='+current_poll_id+'&post_id='+post_id+'&poll_'+current_poll_id+'_nonce='+poll_nonce,cache:!1,success:poll_process_success(current_poll_id)})}})}
function poll_process_success(current_poll_id){return function(data){jQuery(document).ready(function($){$('#polls-'+current_poll_id).replaceWith(data);if(pollsL10n.show_loading){$('#polls-'+current_poll_id+'-loading').hide()}
if(pollsL10n.show_fading){$('#polls-'+current_poll_id).fadeTo('def',1)}})}};var ratingsL10n={"plugin_url":"https:\/\/pix-geeks.com\/wp-content\/uwkmsq-1894\/wp-postratings","ajax_url":"https:\/\/pix-geeks.com\/wp-admin\/admin-ajax.php","text_wait":"Please rate only 1 item at a time.","image":"bigpng","image_ext":"gif","max":"5","show_loading":"0","show_fading":"1","custom":"0"};var ratings_mouseover_image=new Image();ratings_mouseover_image.src="https://pix-geeks.com/wp-content/uwkmsq-1894/wp-postratings/images/bigpng/rating_over.gif";var post_id=0,post_rating=0,is_being_rated=!1;ratingsL10n.custom=parseInt(ratingsL10n.custom);ratingsL10n.max=parseInt(ratingsL10n.max);ratingsL10n.show_loading=parseInt(ratingsL10n.show_loading);ratingsL10n.show_fading=parseInt(ratingsL10n.show_fading);function current_rating(a,b,c){if(!is_being_rated){post_id=a;post_rating=b;if(ratingsL10n.custom&&2==ratingsL10n.max)jQuery("#rating_"+post_id+"_"+b).attr("src",eval("ratings_"+b+"_mouseover_image.src"));else for(i=1;i<=b;i++)ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",eval("ratings_"+i+"_mouseover_image.src")):jQuery("#rating_"+post_id+"_"+i).attr("src",ratings_mouseover_image.src);jQuery("#ratings_"+post_id+"_text").length&&(jQuery("#ratings_"+post_id+"_text").show(),jQuery("#ratings_"+post_id+"_text").html(c))}}
function ratings_off(a,b,c){if(!is_being_rated){for(i=1;i<=ratingsL10n.max;i++)i<=a?ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_"+i+"_on."+ratingsL10n.image_ext):jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_on."+ratingsL10n.image_ext):i==b?ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_"+i+"_half"+(c?"-rtl":"")+"."+ratingsL10n.image_ext):jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_half"+(c?"-rtl":"")+"."+ratingsL10n.image_ext):ratingsL10n.custom?jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_"+i+"_off."+ratingsL10n.image_ext):jQuery("#rating_"+post_id+"_"+i).attr("src",ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_off."+ratingsL10n.image_ext);jQuery("#ratings_"+post_id+"_text").length&&(jQuery("#ratings_"+post_id+"_text").hide(),jQuery("#ratings_"+post_id+"_text").empty())}}function set_is_being_rated(a){is_being_rated=a}function rate_post_success(a){jQuery("#post-ratings-"+post_id).html(a);ratingsL10n.show_loading&&jQuery("#post-ratings-"+post_id+"-loading").hide();ratingsL10n.show_fading?jQuery("#post-ratings-"+post_id).fadeTo("def",1,function(){set_is_being_rated(!1)}):set_is_being_rated(!1)}
function rate_post(){post_ratings_el=jQuery("#post-ratings-"+post_id);if(is_being_rated)alert(ratingsL10n.text_wait);else{post_ratings_nonce=jQuery(post_ratings_el).data("nonce");if("undefined"==typeof post_ratings_nonce||null==post_ratings_nonce)post_ratings_nonce=jQuery(post_ratings_el).attr("data-nonce");set_is_being_rated(!0);ratingsL10n.show_fading?jQuery(post_ratings_el).fadeTo("def",0,function(){ratingsL10n.show_loading&&jQuery("#post-ratings-"+post_id+"-loading").show();jQuery.ajax({type:"POST",xhrFields:{withCredentials:!0},dataType:"html",url:ratingsL10n.ajax_url,data:"action=postratings&pid="+post_id+"&rate="+post_rating+"&postratings_"+post_id+"_nonce="+post_ratings_nonce,cache:!1,success:rate_post_success})}):(ratingsL10n.show_loading&&jQuery("#post-ratings-"+post_id+"-loading").show(),jQuery.ajax({type:"POST",xhrFields:{withCredentials:!0},dataType:"html",url:ratingsL10n.ajax_url,data:"action=postratings&pid="+post_id+"&rate="+post_rating+"&postratings_"+post_id+"_nonce="+post_ratings_nonce,cache:!1,success:rate_post_success}))}};var SiteName=document.querySelector('meta[property="og:title"]').getAttribute('content');function addLink(){var body_element=document.getElementsByTagName('body')[0];var selection;selection=window.getSelection();var pagelink="<br />Source "+SiteName+" : <a href='"+document.location.href+"'>"+document.location.href+"?utm_source=cpp</a><br />";var copytext=selection+pagelink;var newdiv=document.createElement('div');newdiv.style.position='absolute';newdiv.style.left='-99999px';body_element.appendChild(newdiv);newdiv.innerHTML=copytext;selection.selectAllChildren(newdiv);window.setTimeout(function(){body_element.removeChild(newdiv)},0)}document.oncopy=addLink;/*! This file is auto-generated */
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);/*!
  * Stickyfill – `position: sticky` polyfill
  * v. 2.0.3 | https://github.com/wilddeer/stickyfill
  * MIT License
  */
!function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])}function e(a){return parseFloat(a)||0}function f(a){for(var b=0;a;)b+=a.offsetTop,a=a.offsetParent;return b}function g(){function c(){a.pageXOffset!=k.left?(k.top=a.pageYOffset,k.left=a.pageXOffset,n.refreshAll()):a.pageYOffset!=k.top&&(k.top=a.pageYOffset,k.left=a.pageXOffset,l.forEach(function(a){return a._recalcPosition()}))}function d(){f=setInterval(function(){l.forEach(function(a){return a._fastCheck()})},500)}function e(){clearInterval(f)}c(),a.addEventListener("scroll",c),a.addEventListener("resize",n.refreshAll),a.addEventListener("orientationchange",n.refreshAll);var f=void 0,g=void 0,h=void 0;"hidden"in b?(g="hidden",h="visibilitychange"):"webkitHidden"in b&&(g="webkitHidden",h="webkitvisibilitychange"),h?(b[g]||d(),b.addEventListener(h,function(){b[g]?e():d()})):d()}var h=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),i=!1;a.getComputedStyle?!function(){var a=b.createElement("div");["","-webkit-","-moz-","-ms-"].some(function(b){try{a.style.position=b+"sticky"}catch(a){}return""!=a.style.position})&&(i=!0)}():i=!0;var j="undefined"!=typeof ShadowRoot,k={top:null,left:null},l=[],m=function(){function g(a){if(c(this,g),!(a instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(l.some(function(b){return b._node===a}))throw new Error("Stickyfill is already applied to this node");this._node=a,this._stickyMode=null,this._active=!1,l.push(this),this.refresh()}return h(g,[{key:"refresh",value:function(){if(!i&&!this._removed){this._active&&this._deactivate();var c=this._node,g=getComputedStyle(c),h={top:g.top,display:g.display,marginTop:g.marginTop,marginBottom:g.marginBottom,marginLeft:g.marginLeft,marginRight:g.marginRight,cssFloat:g.cssFloat};if(!isNaN(parseFloat(h.top))&&"table-cell"!=h.display&&"none"!=h.display){this._active=!0;var k=c.parentNode,l=j&&k instanceof ShadowRoot?k.host:k,m=c.getBoundingClientRect(),n=l.getBoundingClientRect(),o=getComputedStyle(l);this._parent={node:l,styles:{position:l.style.position},offsetHeight:l.offsetHeight},this._offsetToWindow={left:m.left,right:b.documentElement.clientWidth-m.right},this._offsetToParent={top:m.top-n.top-e(o.borderTopWidth),left:m.left-n.left-e(o.borderLeftWidth),right:-m.right+n.right-e(o.borderRightWidth)},this._styles={position:c.style.position,top:c.style.top,bottom:c.style.bottom,left:c.style.left,right:c.style.right,width:c.style.width,marginTop:c.style.marginTop,marginLeft:c.style.marginLeft,marginRight:c.style.marginRight};var p=e(h.top);this._limits={start:m.top+a.pageYOffset-p,end:n.top+a.pageYOffset+l.offsetHeight-e(o.borderBottomWidth)-c.offsetHeight-p-e(h.marginBottom)};var q=o.position;"absolute"!=q&&"relative"!=q&&(l.style.position="relative"),this._recalcPosition();var r=this._clone={};r.node=b.createElement("div"),d(r.node.style,{width:m.right-m.left+"px",height:m.bottom-m.top+"px",marginTop:h.marginTop,marginBottom:h.marginBottom,marginLeft:h.marginLeft,marginRight:h.marginRight,cssFloat:h.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),k.insertBefore(r.node,c),r.docOffsetTop=f(r.node)}}}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var a=k.top<=this._limits.start?"start":k.top>=this._limits.end?"end":"middle";if(this._stickyMode!=a){switch(a){case"start":d(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":d(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":d(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=a}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(Math.abs(f(this._clone.node)-this._clone.docOffsetTop)>1||Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight)>1)&&this.refresh()}},{key:"_deactivate",value:function(){var a=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,d(this._node.style,this._styles),delete this._styles,l.some(function(b){return b!==a&&b._parent&&b._parent.node===a._parent.node})||d(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var a=this;this._deactivate(),l.some(function(b,c){if(b._node===a._node)return l.splice(c,1),!0}),this._removed=!0}}]),g}(),n={stickies:l,Sticky:m,addOne:function(a){if(!(a instanceof HTMLElement)){if(!a.length||!a[0])return;a=a[0]}for(var b=0;b<l.length;b++)if(l[b]._node===a)return l[b];return new m(a)},add:function(a){if(a instanceof HTMLElement&&(a=[a]),a.length){for(var b=[],c=function(c){var d=a[c];return d instanceof HTMLElement?l.some(function(a){if(a._node===d)return b.push(a),!0})?"continue":void b.push(new m(d)):(b.push(void 0),"continue")},d=0;d<a.length;d++){c(d)}return b}},refreshAll:function(){l.forEach(function(a){return a.refresh()})},removeOne:function(a){if(!(a instanceof HTMLElement)){if(!a.length||!a[0])return;a=a[0]}l.some(function(b){if(b._node===a)return b.remove(),!0})},remove:function(a){if(a instanceof HTMLElement&&(a=[a]),a.length)for(var b=function(b){var c=a[b];l.some(function(a){if(a._node===c)return a.remove(),!0})},c=0;c<a.length;c++)b(c)},removeAll:function(){for(;l.length;)l[0].remove()}};i||g(),"undefined"!=typeof module&&module.exports?module.exports=n:a.Stickyfill=n}(window,document);/*!
 * The MIT License
 *
 * Copyright (c) 2012 James Allardice
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */
!function(a){"use strict";function b(){}function c(){try{return document.activeElement}catch(a){}}function d(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return!0;return!1}function e(a,b,c){return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):void 0}function f(a,b){var c;a.createTextRange?(c=a.createTextRange(),c.move("character",b),c.select()):a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function g(a,b){try{return a.type=b,!0}catch(c){return!1}}function h(a,b){if(a&&a.getAttribute(B))b(a);else for(var c,d=a?a.getElementsByTagName("input"):N,e=a?a.getElementsByTagName("textarea"):O,f=d?d.length:0,g=e?e.length:0,h=f+g,i=0;h>i;i++)c=f>i?d[i]:e[i-f],b(c)}function i(a){h(a,k)}function j(a){h(a,l)}function k(a,b){var c=!!b&&a.value!==b,d=a.value===a.getAttribute(B);if((c||d)&&"true"===a.getAttribute(C)){a.removeAttribute(C),a.value=a.value.replace(a.getAttribute(B),""),a.className=a.className.replace(A,"");var e=a.getAttribute(I);parseInt(e,10)>=0&&(a.setAttribute("maxLength",e),a.removeAttribute(I));var f=a.getAttribute(D);return f&&(a.type=f),!0}return!1}function l(a){var b=a.getAttribute(B);if(""===a.value&&b){a.setAttribute(C,"true"),a.value=b,a.className+=" "+z;var c=a.getAttribute(I);c||(a.setAttribute(I,a.maxLength),a.removeAttribute("maxLength"));var d=a.getAttribute(D);return d?a.type="text":"password"===a.type&&g(a,"text")&&a.setAttribute(D,"password"),!0}return!1}function m(a){return function(){P&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)?f(a,0):k(a)}}function n(a){return function(){l(a)}}function o(a){return function(){i(a)}}function p(a){return function(b){return v=a.value,"true"===a.getAttribute(C)&&v===a.getAttribute(B)&&d(x,b.keyCode)?(b.preventDefault&&b.preventDefault(),!1):void 0}}function q(a){return function(){k(a,v),""===a.value&&(a.blur(),f(a,0))}}function r(a){return function(){a===c()&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)&&f(a,0)}}function s(a){var b=a.form;b&&"string"==typeof b&&(b=document.getElementById(b),b.getAttribute(E)||(e(b,"submit",o(b)),b.setAttribute(E,"true"))),e(a,"focus",m(a)),e(a,"blur",n(a)),P&&(e(a,"keydown",p(a)),e(a,"keyup",q(a)),e(a,"click",r(a))),a.setAttribute(F,"true"),a.setAttribute(B,T),(P||a!==c())&&l(a)}var t=document.createElement("input"),u=void 0!==t.placeholder;if(a.Placeholders={nativeSupport:u,disable:u?b:i,enable:u?b:j},!u){var v,w=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],y="#ccc",z="placeholdersjs",A=new RegExp("(?:^|\\s)"+z+"(?!\\S)"),B="data-placeholder-value",C="data-placeholder-active",D="data-placeholder-type",E="data-placeholder-submit",F="data-placeholder-bound",G="data-placeholder-focus",H="data-placeholder-live",I="data-placeholder-maxlength",J=100,K=document.getElementsByTagName("head")[0],L=document.documentElement,M=a.Placeholders,N=document.getElementsByTagName("input"),O=document.getElementsByTagName("textarea"),P="false"===L.getAttribute(G),Q="false"!==L.getAttribute(H),R=document.createElement("style");R.type="text/css";var S=document.createTextNode("."+z+" {color:"+y+";}");R.styleSheet?R.styleSheet.cssText=S.nodeValue:R.appendChild(S),K.insertBefore(R,K.firstChild);for(var T,U,V=0,W=N.length+O.length;W>V;V++)U=V<N.length?N[V]:O[V-N.length],T=U.attributes.placeholder,T&&(T=T.nodeValue,T&&d(w,U.type)&&s(U));var X=setInterval(function(){for(var a=0,b=N.length+O.length;b>a;a++)U=a<N.length?N[a]:O[a-N.length],T=U.attributes.placeholder,T?(T=T.nodeValue,T&&d(w,U.type)&&(U.getAttribute(F)||s(U),(T!==U.getAttribute(B)||"password"===U.type&&!U.getAttribute(D))&&("password"===U.type&&!U.getAttribute(D)&&g(U,"text")&&U.setAttribute(D,"password"),U.value===U.getAttribute(B)&&(U.value=T),U.setAttribute(B,T)))):U.getAttribute(C)&&(k(U),U.removeAttribute(B));Q||clearInterval(X)},J);e(a,"beforeunload",function(){M.disable()})}}(this),function(a,b){"use strict";var c=a.fn.val,d=a.fn.prop;b.Placeholders.nativeSupport||(a.fn.val=function(a){var b=c.apply(this,arguments),d=this.eq(0).data("placeholder-value");return void 0===a&&this.eq(0).data("placeholder-active")&&b===d?"":b},a.fn.prop=function(a,b){return void 0===b&&this.eq(0).data("placeholder-active")&&"value"===a?"":d.apply(this,arguments)})}(jQuery,this);/**
 * Timeago is a jQuery plugin that makes it easy to support automatically
 * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
 *
 * @name timeago
 * @version 1.5.2
 * @requires jQuery v1.2.3+
 * @author Ryan McGeary
 * @license MIT License - http://www.opensource.org/licenses/mit-license.php
 *
 * For usage and examples, visit:
 * http://timeago.yarp.com/
 *
 * Copyright (c) 2008-2015, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
 */
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module==='object'&&typeof module.exports==='object'){factory(require('jquery'))}else{factory(jQuery)}}(function($){$.timeago=function(timestamp){if(timestamp instanceof Date){return inWords(timestamp)}else if(typeof timestamp==="string"){return inWords($.timeago.parse(timestamp))}else if(typeof timestamp==="number"){return inWords(new Date(timestamp))}else{return inWords($.timeago.datetime(timestamp))}};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:'any moment now',seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(distanceMillis){if(!this.settings.allowPast&&!this.settings.allowFuture){throw 'timeago allowPast and allowFuture settings can not both be set to false.'}
var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo;if(this.settings.allowFuture){if(distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow}}
if(!this.settings.allowPast&&distanceMillis>=0){return this.settings.strings.inPast}
var seconds=Math.abs(distanceMillis)/1000;var minutes=seconds/60;var hours=minutes/60;var days=hours/24;var years=days/365;function substitute(stringOrFunction,number){var string=$.isFunction(stringOrFunction)?stringOrFunction(number,distanceMillis):stringOrFunction;var value=($l.numbers&&$l.numbers[number])||number;return string.replace(/%d/i,value)}
var words=seconds<45&&substitute($l.seconds,Math.round(seconds))||seconds<90&&substitute($l.minute,1)||minutes<45&&substitute($l.minutes,Math.round(minutes))||minutes<90&&substitute($l.hour,1)||hours<24&&substitute($l.hours,Math.round(hours))||hours<42&&substitute($l.day,1)||days<30&&substitute($l.days,Math.round(days))||days<45&&substitute($l.month,1)||days<365&&substitute($l.months,Math.round(days/30))||years<1.5&&substitute($l.year,1)||substitute($l.years,Math.round(years));var separator=$l.wordSeparator||"";if($l.wordSeparator===undefined){separator=" "}
return $.trim([prefix,words,suffix].join(separator))},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace(/\.\d+/,"");s=s.replace(/-/,"/").replace(/-/,"/");s=s.replace(/T/," ").replace(/Z/," UTC");s=s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");s=s.replace(/([\+\-]\d\d)$/," $100");return new Date(s)},datetime:function(elem){var iso8601=$t.isTime(elem)?$(elem).attr("datetime"):$(elem).attr("title");return $t.parse(iso8601)},isTime:function(elem){return $(elem).get(0).tagName.toLowerCase()==="time"}});var functions={init:function(){var refresh_el=$.proxy(refresh,this);refresh_el();var $s=$t.settings;if($s.refreshMillis>0){this._timeagoInterval=setInterval(refresh_el,$s.refreshMillis)}},update:function(timestamp){var date=(timestamp instanceof Date)?timestamp:$t.parse(timestamp);$(this).data('timeago',{datetime:date});if($t.settings.localeTitle)$(this).attr("title",date.toLocaleString());refresh.apply(this)},updateFromDOM:function(){$(this).data('timeago',{datetime:$t.parse($t.isTime(this)?$(this).attr("datetime"):$(this).attr("title"))});refresh.apply(this)},dispose:function(){if(this._timeagoInterval){window.clearInterval(this._timeagoInterval);this._timeagoInterval=null}}};$.fn.timeago=function(action,options){var fn=action?functions[action]:functions.init;if(!fn){throw new Error("Unknown function name '"+action+"' for timeago")}
this.each(function(){fn.call(this,options)});return this};function refresh(){var $s=$t.settings;if($s.autoDispose&&!$.contains(document.documentElement,this)){$(this).timeago("dispose");return this}
var data=prepareData(this);if(!isNaN(data.datetime)){if($s.cutoff==0||Math.abs(distance(data.datetime))<$s.cutoff){$(this).text(inWords(data.datetime))}}
return this}
function prepareData(element){element=$(element);if(!element.data("timeago")){element.data("timeago",{datetime:$t.datetime(element)});var text=$.trim(element.text());if($t.settings.localeTitle){element.attr("title",element.data('timeago').datetime.toLocaleString())}else if(text.length>0&&!($t.isTime(element)&&element.attr("title"))){element.attr("title",text)}}
return element.data("timeago")}
function inWords(date){return $t.inWords(distance(date))}
function distance(date){return(new Date().getTime()-date.getTime())}
document.createElement("abbr");document.createElement("time")}));jQuery.timeago.settings.strings={prefixAgo:"il y a",prefixFromNow:"d'ici",seconds:"moins d'une minute",minute:"environ une minute",minutes:"environ %d minutes",hour:"environ une heure",hours:"environ %d heures",day:"environ un jour",days:"environ %d jours",month:"environ un mois",months:"environ %d mois",year:"un an",years:"%d ans"};/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=(window.styleMedia||window.media);if(!styleMedia){var style=document.createElement('style'),script=document.getElementsByTagName('script')[0],info=null;style.type='text/css';style.id='matchmediajs-test';script.parentNode.insertBefore(style,script);info=('getComputedStyle' in window)&&window.getComputedStyle(style,null)||style.currentStyle;styleMedia={matchMedium:function(media){var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';if(style.styleSheet){style.styleSheet.cssText=text}else{style.textContent=text}
return info.width==='1px'}}}
return function(media){return{matches:styleMedia.matchMedium(media||'all'),media:media||'all'}}}());/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */
(function(){if(window.matchMedia&&window.matchMedia('all').addListener){return!1}
var localMatchMedia=window.matchMedia,hasMediaQueries=localMatchMedia('only all').matches,isListening=!1,timeoutID=0,queries=[],handleChange=function(evt){clearTimeout(timeoutID);timeoutID=setTimeout(function(){for(var i=0,il=queries.length;i<il;i++){var mql=queries[i].mql,listeners=queries[i].listeners||[],matches=localMatchMedia(mql.media).matches;if(matches!==mql.matches){mql.matches=matches;for(var j=0,jl=listeners.length;j<jl;j++){listeners[j].call(window,mql)}}}},30)};window.matchMedia=function(media){var mql=localMatchMedia(media),listeners=[],index=0;mql.addListener=function(listener){if(!hasMediaQueries){return}
if(!isListening){isListening=!0;window.addEventListener('resize',handleChange,!0)}
if(index===0){index=queries.push({mql:mql,listeners:listeners})}
listeners.push(listener)};mql.removeListener=function(listener){for(var i=0,il=listeners.length;i<il;i++){if(listeners[i]===listener){listeners.splice(i,1)}}};return mql}}());/*! Picturefill - v2.3.1 - 2015-04-09
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
window.matchMedia||(window.matchMedia=function(){"use strict";var a=window.styleMedia||window.media;if(!a){var b=document.createElement("style"),c=document.getElementsByTagName("script")[0],d=null;b.type="text/css",b.id="matchmediajs-test",c.parentNode.insertBefore(b,c),d="getComputedStyle"in window&&window.getComputedStyle(b,null)||b.currentStyle,a={matchMedium:function(a){var c="@media "+a+"{ #matchmediajs-test { width: 1px; } }";return b.styleSheet?b.styleSheet.cssText=c:b.textContent=c,"1px"===d.width}}}return function(b){return{matches:a.matchMedium(b||"all"),media:b||"all"}}}()),function(a,b,c){"use strict";function d(b){"object"==typeof module&&"object"==typeof module.exports?module.exports=b:"function"==typeof define&&define.amd&&define("picturefill",function(){return b}),"object"==typeof a&&(a.picturefill=b)}function e(a){var b,c,d,e,f,i=a||{};b=i.elements||g.getAllElements();for(var j=0,k=b.length;k>j;j++)if(c=b[j],d=c.parentNode,e=void 0,f=void 0,"IMG"===c.nodeName.toUpperCase()&&(c[g.ns]||(c[g.ns]={}),i.reevaluate||!c[g.ns].evaluated)){if(d&&"PICTURE"===d.nodeName.toUpperCase()){if(g.removeVideoShim(d),e=g.getMatch(c,d),e===!1)continue}else e=void 0;(d&&"PICTURE"===d.nodeName.toUpperCase()||!g.sizesSupported&&c.srcset&&h.test(c.srcset))&&g.dodgeSrcset(c),e?(f=g.processSourceSet(e),g.applyBestCandidate(f,c)):(f=g.processSourceSet(c),(void 0===c.srcset||c[g.ns].srcset)&&g.applyBestCandidate(f,c)),c[g.ns].evaluated=!0}}function f(){function c(){clearTimeout(d),d=setTimeout(h,60)}g.initTypeDetects(),e();var d,f=setInterval(function(){return e(),/^loaded|^i|^c/.test(b.readyState)?void clearInterval(f):void 0},250),h=function(){e({reevaluate:!0})};a.addEventListener?a.addEventListener("resize",c,!1):a.attachEvent&&a.attachEvent("onresize",c)}if(a.HTMLPictureElement)return void d(function(){});b.createElement("picture");var g=a.picturefill||{},h=/\s+\+?\d+(e\d+)?w/;g.ns="picturefill",function(){g.srcsetSupported="srcset"in c,g.sizesSupported="sizes"in c,g.curSrcSupported="currentSrc"in c}(),g.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")},g.makeUrl=function(){var a=b.createElement("a");return function(b){return a.href=b,a.href}}(),g.restrictsMixedContent=function(){return"https:"===a.location.protocol},g.matchesMedia=function(b){return a.matchMedia&&a.matchMedia(b).matches},g.getDpr=function(){return a.devicePixelRatio||1},g.getWidthFromLength=function(a){var c;if(!a||a.indexOf("%")>-1!=!1||!(parseFloat(a)>0||a.indexOf("calc(")>-1))return!1;a=a.replace("vw","%"),g.lengthEl||(g.lengthEl=b.createElement("div"),g.lengthEl.style.cssText="border:0;display:block;font-size:1em;left:0;margin:0;padding:0;position:absolute;visibility:hidden",g.lengthEl.className="helper-from-picturefill-js"),g.lengthEl.style.width="0px";try{g.lengthEl.style.width=a}catch(d){}return b.body.appendChild(g.lengthEl),c=g.lengthEl.offsetWidth,0>=c&&(c=!1),b.body.removeChild(g.lengthEl),c},g.detectTypeSupport=function(b,c){var d=new a.Image;return d.onerror=function(){g.types[b]=!1,e()},d.onload=function(){g.types[b]=1===d.width,e()},d.src=c,"pending"},g.types=g.types||{},g.initTypeDetects=function(){g.types["image/jpeg"]=!0,g.types["image/gif"]=!0,g.types["image/png"]=!0,g.types["image/svg+xml"]=b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),g.types["image/webp"]=g.detectTypeSupport("image/webp","data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")},g.verifyTypeSupport=function(a){var b=a.getAttribute("type");if(null===b||""===b)return!0;var c=g.types[b];return"string"==typeof c&&"pending"!==c?(g.types[b]=g.detectTypeSupport(b,c),"pending"):"function"==typeof c?(c(),"pending"):c},g.parseSize=function(a){var b=/(\([^)]+\))?\s*(.+)/g.exec(a);return{media:b&&b[1],length:b&&b[2]}},g.findWidthFromSourceSize=function(c){for(var d,e=g.trim(c).split(/\s*,\s*/),f=0,h=e.length;h>f;f++){var i=e[f],j=g.parseSize(i),k=j.length,l=j.media;if(k&&(!l||g.matchesMedia(l))&&(d=g.getWidthFromLength(k)))break}return d||Math.max(a.innerWidth||0,b.documentElement.clientWidth)},g.parseSrcset=function(a){for(var b=[];""!==a;){a=a.replace(/^\s+/g,"");var c,d=a.search(/\s/g),e=null;if(-1!==d){c=a.slice(0,d);var f=c.slice(-1);if((","===f||""===c)&&(c=c.replace(/,+$/,""),e=""),a=a.slice(d+1),null===e){var g=a.indexOf(",");-1!==g?(e=a.slice(0,g),a=a.slice(g+1)):(e=a,a="")}}else c=a,a="";(c||e)&&b.push({url:c,descriptor:e})}return b},g.parseDescriptor=function(a,b){var c,d=b||"100vw",e=a&&a.replace(/(^\s+|\s+$)/g,""),f=g.findWidthFromSourceSize(d);if(e)for(var h=e.split(" "),i=h.length-1;i>=0;i--){var j=h[i],k=j&&j.slice(j.length-1);if("h"!==k&&"w"!==k||g.sizesSupported){if("x"===k){var l=j&&parseFloat(j,10);c=l&&!isNaN(l)?l:1}}else c=parseFloat(parseInt(j,10)/f)}return c||1},g.getCandidatesFromSourceSet=function(a,b){for(var c=g.parseSrcset(a),d=[],e=0,f=c.length;f>e;e++){var h=c[e];d.push({url:h.url,resolution:g.parseDescriptor(h.descriptor,b)})}return d},g.dodgeSrcset=function(a){a.srcset&&(a[g.ns].srcset=a.srcset,a.srcset="",a.setAttribute("data-pfsrcset",a[g.ns].srcset))},g.processSourceSet=function(a){var b=a.getAttribute("srcset"),c=a.getAttribute("sizes"),d=[];return"IMG"===a.nodeName.toUpperCase()&&a[g.ns]&&a[g.ns].srcset&&(b=a[g.ns].srcset),b&&(d=g.getCandidatesFromSourceSet(b,c)),d},g.backfaceVisibilityFix=function(a){var b=a.style||{},c="webkitBackfaceVisibility"in b,d=b.zoom;c&&(b.zoom=".999",c=a.offsetWidth,b.zoom=d)},g.setIntrinsicSize=function(){var c={},d=function(a,b,c){b&&a.setAttribute("width",parseInt(b/c,10))};return function(e,f){var h;e[g.ns]&&!a.pfStopIntrinsicSize&&(void 0===e[g.ns].dims&&(e[g.ns].dims=e.getAttribute("width")||e.getAttribute("height")),e[g.ns].dims||(f.url in c?d(e,c[f.url],f.resolution):(h=b.createElement("img"),h.onload=function(){if(c[f.url]=h.width,!c[f.url])try{b.body.appendChild(h),c[f.url]=h.width||h.offsetWidth,b.body.removeChild(h)}catch(a){}e.src===f.url&&d(e,c[f.url],f.resolution),e=null,h.onload=null,h=null},h.src=f.url)))}}(),g.applyBestCandidate=function(a,b){var c,d,e;a.sort(g.ascendingSort),d=a.length,e=a[d-1];for(var f=0;d>f;f++)if(c=a[f],c.resolution>=g.getDpr()){e=c;break}e&&(e.url=g.makeUrl(e.url),b.src!==e.url&&(g.restrictsMixedContent()&&"http:"===e.url.substr(0,"http:".length).toLowerCase()?void 0!==window.console&&console.warn("Blocked mixed content image "+e.url):(b.src=e.url,g.curSrcSupported||(b.currentSrc=b.src),g.backfaceVisibilityFix(b))),g.setIntrinsicSize(b,e))},g.ascendingSort=function(a,b){return a.resolution-b.resolution},g.removeVideoShim=function(a){var b=a.getElementsByTagName("video");if(b.length){for(var c=b[0],d=c.getElementsByTagName("source");d.length;)a.insertBefore(d[0],c);c.parentNode.removeChild(c)}},g.getAllElements=function(){for(var a=[],c=b.getElementsByTagName("img"),d=0,e=c.length;e>d;d++){var f=c[d];("PICTURE"===f.parentNode.nodeName.toUpperCase()||null!==f.getAttribute("srcset")||f[g.ns]&&null!==f[g.ns].srcset)&&a.push(f)}return a},g.getMatch=function(a,b){for(var c,d=b.childNodes,e=0,f=d.length;f>e;e++){var h=d[e];if(1===h.nodeType){if(h===a)return c;if("SOURCE"===h.nodeName.toUpperCase()){null!==h.getAttribute("src")&&void 0!==typeof console&&console.warn("The `src` attribute is invalid on `picture` `source` element; instead, use `srcset`.");var i=h.getAttribute("media");if(h.getAttribute("srcset")&&(!i||g.matchesMedia(i))){var j=g.verifyTypeSupport(h);if(j===!0){c=h;break}if("pending"===j)return!1}}}}return c},f(),e._=g,d(e)}(window,window.document,new window.Image);/*!

Waypoints - 4.0.1

Copyright © 2011-2016 Caleb Troughton

Licensed under the MIT license.

https://github.com/imakewebthings/waypoints/blob/master/licenses.txt

*/
!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(null!==a.triggerPoint){var l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(y+l-f),h=w<s.oldScroll,p=d.triggerPoint>=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();/*!
 * enquire.js v2.1.2 - Awesome Media Queries in JavaScript
 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g});var bimber_front_config={"debug_mode":"","ajax_url":"https:\/\/pix-geeks.com\/wp-admin\/admin-ajax.php","timeago":"off","sharebar":"off","i18n":{"menu":{"go_to":"Go to"},"newsletter":{"subscribe_mail_subject_tpl":"Check out this great article: %subject%"},"bp_profile_nav":{"more_link":"More"}},"comment_types":["wp"],"auto_load_limit":"0","auto_play_videos":"","use_gif_player":"","setTargetBlank":"","useWaypoints":"1","stack":"original","wpp":{"token":"451695e26e"}};(function($){'use strict';var config=bimber_front_config;var g1={'config':config};g1.getWindowWidth=function(){if(typeof window.innerWidth!=='undefined'){return window.innerWidth}
return $(window).width()};g1.isDesktopDevice=function(){return g1.getWindowWidth()>g1.getDesktopBreakpoint()};g1.getDesktopBreakpoint=function(){var desktopBreakPoint=$('#g1-breakpoint-desktop').css('min-width');if(!desktopBreakPoint){return 9999}
desktopBreakPoint=parseInt(desktopBreakPoint,10);if(desktopBreakPoint===0){return 9999}
return desktopBreakPoint};g1.isTouchDevice=function(){return('ontouchstart' in window)||navigator.msMaxTouchPoints};g1.isStickySupported=function(){var prefixes=['','-webkit-','-moz-','-ms-'];var block=document.createElement('div');var supported=!1;var i;for(i=prefixes.length-1;i>=0;i--){try{block.style.position=prefixes[i]+'sticky'}catch(e){}
if(block.style.position!==''){supported=!0}}
return supported};g1.isRTL=function(){return $('body').is('.rtl')};g1.log=function(data){if((g1.config.debug_mode||window.bimberDebugMode)&&typeof console!=='undefined'){if($.isArray(data)){for(var i in data){console.log(data[i])}}else{console.log(data)}}};g1.createCookie=function(name,value,time){var expires;if(time){var date=new Date();var ms=time;if(typeof time==='object'){ms=time.value;switch(time.type){case 'days':ms=ms*24*60*60*1000;break}}
date.setTime(date.getTime()+ms);expires='; expires='+date.toGMTString()}else{expires=''}
document.cookie=name+'='+value+expires+'; path=/'};g1.readCookie=function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i+=1){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length)}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length)}}
return null};g1.removeCookie=function(name){g1.createCookie(name,'',-1)};window.g1=g1})(jQuery);(function($){'use strict';g1.uiHelpers=function(){if(g1.isTouchDevice()){$('body').removeClass('g1-hoverable')}
var mc4wpClasses=['g1-box','g1-box-tpl-frame','g1-newsletter'];var mc4wpBackgroundClasses=['g1-box-background'];if('original-2018'===g1.config.stack||'food'===g1.config.stack){mc4wpBackgroundClasses.push('g1-current-background')}
if('miami'===g1.config.stack||'music'===g1.config.stack){mc4wpClasses.push('g1-dark')}
$('.widget_mc4wp_form_widget').addClass(mc4wpClasses.join(' ')).wrapInner('<div class="g1-box-inner"></div>').prepend('<div class="g1-box-icon"></div>').append('<div class="'+mc4wpBackgroundClasses.join(' ')+'"></div>');var bbPressBackgroundClasses=['g1-box-background'];if('original-2018'===g1.config.stack||'food'===g1.config.stack){bbPressBackgroundClasses.push('g1-current-background')}
$('.bbp_widget_login').addClass('g1-box g1-box-tpl-frame').wrapInner('<div class="g1-box-inner"></div>').append('<div class="'+bbPressBackgroundClasses.join(' ')+'"></div>');$('.g1-drop-the-search').on('click','.g1-drop-toggle',function(e){e.preventDefault();$('.g1-drop-the-search input.search-field').focus()});$('.search-submit').on('click',function(e){var $form=$(this).closest('form');var $input=$('input.search-field',$form);if(!$input.val()){e.preventDefault()}});$('#buddypress .load-more').click(function(){var i=0;var intervalID=setInterval(function(){$('body').trigger('g1PageHeightChanged');i++;if(i===5){window.clearInterval(intervalID)}},1000)})}})(jQuery);(function($){'use strict';g1.resetFacebookSDK=function(){$('script#facebook-jssdk').remove();$('#fb-root').remove();if(window.FB){delete window.FB}};$('body').on('g1BeforeNewContentReady',function(e,$newContent){if($newContent.find('.fb-video').length>0){g1.resetFacebookSDK()}})})(jQuery);(function($){'use strict';$('body').on('g1NewContentLoaded',function(e,$newContent){if($newContent.find('.instagram-media').length>0){if(typeof instgrm!=='undefined'&&typeof instgrm.Embeds!=='undefined'){instgrm.Embeds.process()}}})})(jQuery);(function($){'use strict';var loading=!1;var startingUrl=window.location.href;var setTargetBlank=g1.config.setTargetBlank;var useWaypoints=g1.config.useWaypoints;g1.loadMoreButton=function(){$('.g1-load-more').on('click',function(e){if(loading){return}
loading=!0;e.preventDefault();var $button=$(this);var $collectionMore=$button.parents('.g1-collection-more');var url=$button.attr('data-g1-next-page-url');var $endMessage=$('.g1-pagination-end');$collectionMore.addClass('g1-collection-more-loading');var xhr=$.get(url);xhr.done(function(data){var collectionSelector='#primary > .g1-collection .g1-collection-items';var $resCollectionItems=$(data).find(collectionSelector).find('.g1-collection-item');var $resButton=$(data).find('.g1-load-more');var $collection=$(collectionSelector);$resCollectionItems.addClass('g1-collection-item-added');var $insta=$('script[src="//platform.instagram.com/en_US/embeds.js"]');if(window.wp&&typeof window.wp.mediaelement==='undefined'){var matches=data.match(/<script(.|\n)*?<\/script>/g);var mejsCode='';matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){match=match.replace('<script','<script async');mejsCode+=match}});matches=data.match(/<link(.|\n)*?\/>/g);matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){mejsCode+=match}});$collection.after(mejsCode)}
if(setTargetBlank){$('a',$resCollectionItems).attr('target','_blank')}
var $collection_waypoint='<span class="bimber-collection-waypoint" data-bimber-archive-url="'+url+'"></span>';$collection.append($collection_waypoint);$collection.append($resCollectionItems);if(typeof ga!=='undefined'&&typeof ga.getAll!=='undefined'){ga('create',ga.getAll()[0].get('trackingId'),'auto');ga('set',{location:url});ga('send','pageview')}
if($insta.length>0){window.instgrm.Embeds.process()}
if(window.wp&&typeof window.wp.mediaelement!=='undefined'){window.wp.mediaelement.initialize()}
$('body').trigger('g1PageHeightChanged');$('body').trigger('g1NewContentLoaded',[$resCollectionItems]);if($resButton.length>0){$button.attr('data-g1-next-page-url',$resButton.attr('data-g1-next-page-url'))}else{$collectionMore.remove()}
if(typeof g1.autoPlayVideo==='function'){g1.autoPlayVideo()}
if(useWaypoints){$('.bimber-collection-waypoint').waypoint(function(direction){var $waypoint=$(this.element);if('up'===direction){var $waypointUp=$waypoint.prevAll('.bimber-collection-waypoint');if($waypointUp.length>0){$waypoint=$($waypointUp[0])}else{window.history.replaceState({},'',startingUrl);return}}
var waypointUrl=$waypoint.attr('data-bimber-archive-url');var currentUrl=window.location.href;if(waypointUrl!==currentUrl){window.history.replaceState({},'',waypointUrl)}},{offset:'-5%'})}});xhr.fail(function(){$button.addClass('g1-info-error');$button.remove();$endMessage.show()});xhr.always(function(){$collectionMore.removeClass('g1-collection-more-loading');loading=!1})})}})(jQuery);(function($){'use strict';g1.infiniteScrollConfig={'offset':'150%'};var triggeredByClick=!1;g1.infiniteScroll=function(){$('.g1-collection-more.infinite-scroll').each(function(){var $this=$(this);if($this.is('.on-demand')&&!triggeredByClick){return!1}
$this.waypoint(function(direction){if('down'===direction){$this.find('.g1-load-more').trigger('click')}},{offset:g1.infiniteScrollConfig.offset})})};$('body').on('g1NewContentLoaded',function(){triggeredByClick=!0;g1.infiniteScroll()})})(jQuery);(function($){'use strict';g1.dateToTimeago=function(){if(!$.fn.timeago){return}
var $body=$('body');$('time.entry-date, span.entry-date > time, .comment-metadata time, time.snax-item-date').timeago();$body.on('g1NewContentLoaded',function(e,$newContent){if($newContent){$newContent.find('time.entry-date, .comment-metadata time, time.snax-item-date').timeago()}});$body.on('caceWpCommentInitialized',function(e){$(e.detail).find('time.entry-date, .comment-metadata time, time.snax-item-date').timeago()})}})(jQuery);(function($){'use strict';var selectors={'toggle':'.g1-hamburger'};g1.globalCanvasSelectors=selectors;var canvas;g1.canvas=function(){canvas=Canvas();g1.canvasInstance=canvas;$(selectors.toggle).on('click',function(e){e.preventDefault();canvas.toggle()})};function Canvas(){var that={};var listeners={'open':[],'close':[]};var currentContent='';var currentScroll=0;var _clientY;var init=function(){var $overlay=$('.g1-canvas-overlay');$overlay.on('click',that.toggle);$('.g1-canvas').on('toggle-canvas',function(){that.toggle()});$('.g1-canvas .g1-canvas-toggle').on('click',that.toggle);if($('html.g1-off-outside').length){enquire.register('screen and ( min-width: 700px )',{match:function(){that.close()}})}
if($('html.g1-off-inside').length){enquire.register('screen and ( max-width: 1024px )',{match:function(){that.close()}});enquire.register('screen and ( min-width: 1025px )',{match:function(){that.lazyload()}})}
return that};that.getContent=function(){return $('.g1-canvas-global .g1-canvas-content')};that.captureClientY=function(event){_clientY=event.targetTouches[0].clientY};that.disableCanvasScroll=function(e){var _element=$('.g1-canvas');var clientY=e.targetTouches[0].clientY-_clientY;if(_element.scrollTop===0&&clientY>0){alert('top scroll');e.preventDefault();e.stopPropagation();return!1}
if((_element.scrollHeight-_element.scrollTop<=_element.clientHeight)&&clientY<0){alert('bottom scroll');e.preventDefault();e.stopPropagation();return!1}};that.disableBodyScroll=function(e){};that.lazyload=function(){$('.g1-canvas-background[data-bg]:not(.lazyloaded)').addClass('lazyload')};that.open=function(content){that.lazyload();window.requestAnimationFrame(function(){var breakpoint=$(document).width();var cssClass=breakpoint>=1025?'g1-off-global-desktop':'g1-off-global';$('html').addClass(cssClass);currentContent=content;var $canvas=$('.g1-canvas-global');if(content){if(typeof content==='string'){$canvas.find('.g1-canvas-content').html(content)}else{$canvas.find('.g1-canvas-content').empty().append(content)}
$canvas.find('.g1-canvas-content').trigger('g1-new-content')}
that.notify('open')})};that.close=function(){window.requestAnimationFrame(function(){$('html').removeClass('g1-off-global g1-off-global-desktop');that.notify('close')})};that.toggle=function(e){if(e){e.preventDefault()}
if($('html').is('.g1-off-global, .g1-off-global-desktop')){that.close()}else{that.open(null)}};that.notify=function(eventType){var callbacks=listeners[eventType];for(var i=0;i<callbacks.length;i++){callbacks[i](that.getContent())}};that.on=function(eventType,listener,priority){listeners[eventType][priority]=listener};return init()}})(jQuery);(function($){'use strict';var $waypointElem=!1;var selectors={'stickyWidgetWrapper':'.g1-sticky-widget-wrapper','stickyWidget':'.g1-sticky-widget','widget':'.widget','content':'#primary .entry-content'};var sidebarSelectors=['#secondary','#tertiary'];g1.stickyTopOffsetSelectors=['#wpadminbar','.g1-iframe-bar','.g1-sharebar-loaded','.g1-sticky-top-wrapper'];g1.resetStickyElements=function(){$(selectors.stickyWidgetWrapper).css('height','');$(selectors.stickyWidget).css('position','block')};g1.stickySidebar=function(){if(!g1.isDesktopDevice()){g1.resetStickyElements();return}
var $widgets=$(selectors.stickyWidget);if($widgets.length===0){return}
var topOffset=0;$(g1.stickyTopOffsetSelectors).each(function(){var $element=$(this);if($element.length>0&&$element.is(':visible')){topOffset+=parseInt($element.outerHeight(),10)}});$widgets.each(function(){var $widget=$(this);var top=parseInt($widget.css('top'),10);if(topOffset>0){top+=topOffset;$widget.css('top',top+'px')}});if(typeof Stickyfill!=='undefined'){Stickyfill.add($widgets)}
var adjustLastWidgetHeight=function(isVariableContent){$(sidebarSelectors).each(function(){var $sidebar=$(this);var $widgets=$sidebar.children(selectors.widget+','+selectors.stickyWidgetWrapper);var $lastWidget=$widgets.last();if($lastWidget.is(selectors.stickyWidgetWrapper)){$lastWidget.css('height','');var sidebarHeight;if(isVariableContent){sidebarHeight=parseInt($(selectors.content).outerHeight(),10)}else{sidebarHeight=parseInt($sidebar.outerHeight(),10)}
var widgetsHeight=0;$widgets.each(function(){widgetsHeight+=parseInt($(this).outerHeight(!0),10)});if(widgetsHeight<sidebarHeight){var diffHeight=sidebarHeight-widgetsHeight;var lastWidgetHeight=parseInt($lastWidget.css('height'),10);lastWidgetHeight+=diffHeight;$lastWidget.css('height',lastWidgetHeight+'px')}
$waypointElem=$lastWidget}})};var $body=$('body');var isVariableContent=$body.is('.single');adjustLastWidgetHeight(isVariableContent);$body.on('g1NewContentLoaded g1PageHeightChanged',function(e){adjustLastWidgetHeight()});if(!1!==$waypointElem){$waypointElem.waypoint(function(direction){if('down'===direction){adjustLastWidgetHeight()}},{offset:'bottom-in-view'})}}})(jQuery);(function($){'use strict';var selectors=['#wpadminbar','.g1-iframe-bar','.g1-sharebar-loaded','.g1-sticky-top-wrapper'];g1.stickyElementsTopOffsetSelectors=selectors;g1.stickyPosition=function($context){$context=$context||$('body');var $stickyTop=$('.g1-sticky-top-wrapper');if($stickyTop.length>0&&!$stickyTop.is('.g1-loaded')){var disableStickyHeader=!1;var isDesktop=g1.getWindowWidth()>800;var sharebarLoaded=$('.g1-sharebar-loaded').length>0||$('.essb_topbar').length>0;if(sharebarLoaded&&isDesktop){disableStickyHeader=!0}
if(disableStickyHeader){$stickyTop.removeClass('g1-sticky-top-wrapper')}else{if(!g1.isStickySupported()){Stickyfill.add($stickyTop)}
$stickyTop.addClass('g1-loaded')}}
var topOffset=0;for(var i=0;i<selectors.length;i++){var $elem=$(selectors[i]);if($elem.length>0&&$elem.is(':visible')){topOffset+=$elem.outerHeight()}}
$context.find('.g1-wrapper-with-stickies > .entry-actions').each(function(){var $this=$(this);$this.css('top',topOffset);Stickyfill.add($this)});Stickyfill.add($('.snax-form-frontend .snax-form-side'));$context.find('.entry-tpl-index-stickies > .entry-actions, .entry-tpl-feat-stickies .entry-actions').each(function(){var $this=$(this);$this.css('top',topOffset+10);Stickyfill.add($this)})};$('body').on('g1NewContentLoaded',function(e,$newContent){if($newContent){g1.stickyPosition($newContent)}})})(jQuery);(function($){'use strict';var selectors={'drop':'.g1-drop','dropExpanded':'.g1-drop-expanded','dropToggle':'.g1-drop-toggle'};var classes={'dropExpanded':'g1-drop-expanded'};g1.droppableElements=function(){$('body').on('click touchstart',function(e){var $activeDrop=$(e.target).parents('.g1-drop-expanded');$(selectors.dropExpanded).not($activeDrop).removeClass(classes.dropExpanded)});if(g1.isTouchDevice()){$('body').on('click',selectors.drop,function(e){var $drop=$(this);if($drop.find('.g1-drop-content').length===0){return}
if($drop.is(selectors.dropExpanded)){var $clickedElement=$(e.target);var toggleClicked=$clickedElement.parents(selectors.dropToggle).length>0;if(toggleClicked){$drop.removeClass(classes.dropExpanded);e.preventDefault()}}else{$drop.addClass(classes.dropExpanded);e.preventDefault()}})}else{$(selectors.dropToggle).on('click',function(){})}}})(jQuery);(function($){'use strict';$('body').on('submit','.mc4wp-form',function(e){var submissionType='ajax';if(typeof bimberMc4wpFormSubmissionType==='function'){submissionType=bimberMc4wpFormSubmissionType(submissionType)}
if(submissionType!=='ajax'){return}
e.preventDefault();var $form=$(this);$.ajax({'type':'POST','url':window.location.href,'data':$form.serialize()}).done(function(res){var $response=$(res).find('#'+$form.attr('id')+' .mc4wp-response');$response.prependTo($form)})})})(jQuery);(function($){'use strict';g1.snax=function(){var $body=$('body');$body.on('snaxFullFormLoaded',function(e,$post){$post.find('.g1-button-m.g1-button-solid').removeClass('g1-button-m  g1-button-solid').addClass('g1-button-s  g1-button-simple');$post.find('.g1-beta.g1-beta-1st').removeClass('g1-beta g1-beta-1st').addClass('g1-gamma g1-gamma-1st')})};window.caceWpCommentListPropsFilter=function(props,comments){if($(comments).parents('.snax-item').length>0){props.loadMoreType='load_more'}
return props}})(jQuery);(function($){'use strict';g1.mediaAce=function(){$('body').on('g1NewContentLoaded',function(){$('body').trigger('maceLoadYoutube')});$(document).on('lazybeforeunveil',function(e){var $target=$(e.target);var targetSrc=$target.attr('data-src');if(targetSrc&&targetSrc.endsWith('.gif')){$target.on('load',function(){$target.addClass('g1-enable-gif-player');setTimeout(function(){if(typeof g1.gifPlayer==='function'){g1.gifPlayer($target.parent())}},100)})}});$(document).on('bimberGifPlayerLoaded',function(e,$canvasWrapper){if($canvasWrapper.hasClass('lazyloading')){$canvasWrapper.removeClass('lazyloading');$canvasWrapper.addClass('lazyloaded')}})}})(jQuery);(function(context,$,i18n){'use strict';$(document).ready(function(){PrimaryMenu()});function PrimaryMenu(){var that={};that.init=function(){that.registerEventsHandlers();$('.menu-item-has-children > a, .menu-item-g1-mega > a').append('<span class="g1-link-toggle"></span>');return that};that.registerEventsHandlers=function(){that.handleMenuItemClick();that.handleMenuItemFocusOut()};that.handleMenuItemFocusOut=function(){$('body').on('click',function(e){if($(e.target).parents('.mtm-drop-expanded').length===0){if($(e.target).parents('.g1-menu-h').length){that.collapseAllOpenedSubmenus()}}})};that.handleMenuItemClick=function(){$('.g1-primary-nav, .g1-secondary-nav').on('click','.menu-item > a',function(e){var $menu=$(this).parents('.g1-primary-nav');if($menu.length===0){$menu=$(this).parents('.g1-secondary-nav')}
var isSimpleList=$menu.is('#g1-canvas-primary-nav')||$menu.is('#g1-canvas-secondary-nav');if(g1.isTouchDevice()||isSimpleList){that.handleMenuTouchEvent($(this),e)}})};that.handleMenuTouchEvent=function($link,event){var $li=$link.parent('li');that.collapseAllOpenedSubmenus($li);if($li.hasClass('menu-item-has-children')){event.preventDefault();var $helper=$li.find('ul.sub-menu:first > li.g1-menu-item-helper');if($helper.length===0){var href=$link.attr('href');if(href&&href.length){var anchor=i18n.go_to+' <span class="mtm-item-helper-title">'+$link.html()+'</span>';$helper=$('<li class="menu-item g1-menu-item-helper"><a class="mtm-link" href="'+href+'"><span class="mtm-link-text"><span class="mtm-link-title">'+anchor+'</span></span></a></li>');$li.find('ul.sub-menu:first').prepend($helper)}}
if(!$li.is('.mtm-drop-expanded')){$li.find('.mtm-drop-expanded .g1-menu-item-helper').remove();$li.addClass('mtm-drop-expanded')}else{$li.find('.mtm-drop-expanded').removeClass('mtm-drop-expanded');$li.removeClass('mtm-drop-expanded')}}};that.collapseAllOpenedSubmenus=function($currentItem){if($currentItem){var $currentMenu=$currentItem.parents('nav');var $topLevelLi=$currentItem.parents('li.menu-item');if($topLevelLi.length===0){$currentMenu.find('.mtm-drop-expanded').not($currentItem).removeClass('mtm-drop-expanded')}else{$topLevelLi.siblings('li').find('.mtm-drop-expanded').removeClass('mtm-drop-expanded')}
$('nav').not($currentMenu).find('.mtm-drop-expanded').removeClass('mtm-drop-expanded')}else{$('.mtm-drop-expanded').removeClass('mtm-drop-expanded')}};return that.init()}})(window,jQuery,g1.config.i18n.menu);(function(){var lastTime=0;var vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame']}
if(!window.requestAnimationFrame){window.requestAnimationFrame=function(callback){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);lastTime=currTime+timeToCall;return id}}
if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(id){clearTimeout(id)}}}());(function($){'use strict';g1.popup=function(){var
HTMLBase=$('html'),Popup=$('.g1-popup-newsletter'),PopupCookie=g1.readCookie('g1_popup_disabled'),PopupCloser=$('.g1-popup-base, .g1-popup-closer');if(PopupCookie){HTMLBase.addClass('exit-intent-disabled')}
if(Popup.length<=0){return}
$(document).on('mouseleave',function(e){if(e.clientY<10&&!HTMLBase.hasClass('exit-intent-disabled')&&!HTMLBase.hasClass('g1-slideup-visible')){HTMLBase.addClass('g1-popup-ready');setTimeout(function(){HTMLBase.addClass('g1-popup-visible').addClass('exit-intent-disabled')},50)}});PopupCloser.on('click',function(e){e.preventDefault();HTMLBase.removeClass('g1-popup-visible');g1.createCookie('g1_popup_disabled',1,24*60*60*1000)})}
g1.slideup=function(){var
HTMLBase=$('html'),Slideup=$('.g1-slideup-newsletter'),SlideupCloser=$('.g1-slideup-newsletter-closer'),SlideupCookie=g1.readCookie('g1_slideup_disabled'),ScrollPositon=$(document).scrollTop(),ScrollTarget=$('.single-post article .entry-content'),ScrollTargetOffset=ScrollTarget.offset(),ScrollTargetHeight=ScrollTarget.height(),ShowOn=50;SlideupCloser.on('click',function(e){e.preventDefault();HTMLBase.removeClass('g1-slideup-visible').addClass('slideup-intent-disabled');g1.createCookie('g1_slideup_disabled',1,24*60*60*1000)});if(SlideupCookie){HTMLBase.addClass('slideup-intent-disabled')}
if(Slideup.length<=0){return}
if(ScrollTarget.length<=0){return}
$(window).on('scroll',function(){ScrollPositon=$(document).scrollTop();ScrollTargetOffset=ScrollTarget.offset();ScrollTargetHeight=ScrollTarget.height();if(((ScrollPositon-ScrollTargetOffset.top)/(ScrollTargetHeight)).toFixed(6)*100>=ShowOn&&!HTMLBase.hasClass('slideup-intent-disabled')&&!HTMLBase.hasClass('g1-popup-visible')){HTMLBase.addClass('g1-slideup-visible')}})}})(jQuery);(function($){'use strict';$(document).ready(function(){$('.wp-social-login-provider-list').on('click',function(){if($(this).hasClass('wp-social-login-provider-list-active')){return}
$('.snax-wpsl-gdpr-consent').addClass('snax-wpsl-gdpr-consent-blink');setTimeout(function(){$('.snax-wpsl-gdpr-consent').removeClass('snax-wpsl-gdpr-consent-blink')},2000)});$('.snax-wpsl-gdpr-consent input').on('click',function(){var enabled=$(this).is(':checked');if(enabled){$('.wp-social-login-provider-list').addClass('wp-social-login-provider-list-active')}else{$('.wp-social-login-provider-list').removeClass('wp-social-login-provider-list-active')}})})})(jQuery);(function($){'use strict';g1.updatePostViews=function(nonce,postId){$.ajax({'type':'POST','url':g1.config.ajax_url,'data':{'action':'update_views_ajax','wpp_id':postId,'token':nonce}})};$('.bimber-count-view').on('click',function(){var postId;var $body=$('body');if($body.is('.single-format-link')){var res=$body.attr('class').match(/postid-(\d+)/);if(res){postId=res[1]}}else{var $article=$(this).parents('article.format-link');if($article.length>0){postId=$article.attr('class').match(/post\-(\d+)/)[1]}}
if(postId){$.ajax({'type':'POST','url':g1.config.ajax_url,'data':{'action':'update_views_ajax','wpp_id':postId,'token':g1.config.wpp.token}})}})})(jQuery);(function($){'use strict';g1.flickity=function($context){$context=$context||$('body');var FlickitySpots=$context.find('.adace-shop-the-post-wrap.carousel-wrap .woocommerce .products, .g1-products-widget-carousel .product_list_widget');FlickitySpots.each(function(){if($(this).hasClass('.flickity-enabled')){return}
var ThisFlickityItems=$(this).children(),ThisFlickityItemsWidth=ThisFlickityItems.outerWidth()*ThisFlickityItems.length,ThisFlickityArgs={cellAlign:'left',wrapAround:!0,prevNextButtons:!0,pageDots:!1,groupCells:!0,rightToLeft:g1.isRTL(),imagesLoaded:!0};if(ThisFlickityItemsWidth<=$(this).outerWidth()){ThisFlickityArgs.cellAlign='center';ThisFlickityArgs.wrapAround=!1}else{var ThisRequiredNumber=Math.round($(this).outerWidth()/ThisFlickityItems.outerWidth())*ThisFlickityItems.length;while(ThisFlickityItems.length<ThisRequiredNumber){$(this).append(ThisFlickityItems.clone(!0));ThisFlickityItems=$(this).children()}}
$(this).flickity(ThisFlickityArgs)})};$('body').on('g1NewContentLoaded',function(e,$newContent){g1.flickity($newContent)})})(jQuery);(function($){'use strict';$(document).ready(function(){var selectors=['#wpadminbar','.g1-iframe-bar','.g1-sticky-top-wrapper'];var applyOffset=function(){var topOffset=0;for(var i=0;i<selectors.length;i++){var $elem=$(selectors[i]);if($elem.length>0&&$elem.is(':visible')){topOffset+=$elem.outerHeight()}}
var cssRule='html.g1-off-inside.g1-off-global-desktop .g1-canvas {top:'+topOffset+'px;'
$('#g1-canvas-js-css').remove();$('head').append('<style id="g1-canvas-js-css">'+cssRule+'</style>');$('html.g1-off-inside .g1-canvas').removeClass('g1-canvas-no-js').addClass('g1-canvas-js')};$('body').on('g1PageHeightChanged',function(e){applyOffset()});$('html.g1-off-inside .g1-canvas.g1-canvas-no-js').each(function(){applyOffset()})})})(jQuery);(function($){'use strict';$(document).ready(function(){g1.uiHelpers();if(g1.config.timeago==='on'){g1.dateToTimeago()}
g1.loadMoreButton();g1.infiniteScroll();g1.stickyPosition();g1.droppableElements();g1.canvas();g1.snax();g1.mediaAce();g1.flickity();g1.popup();g1.slideup();g1.stickySidebar()})})(jQuery);(function(root,factory){if(typeof define==='function'&&define.amd){define([],factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.SuperGif=factory()}}(this,function(){var bitsToNum=function(ba){return ba.reduce(function(s,n){return s*2+n},0)};var byteToBitArr=function(bite){var a=[];for(var i=7;i>=0;i--){a.push(!!(bite&(1<<i)))}
return a};var Stream=function(data){this.data=data;this.len=this.data.length;this.pos=0;this.readByte=function(){if(this.pos>=this.data.length){throw new Error('Attempted to read past end of stream.')}
if(data instanceof Uint8Array)
return data[this.pos++];else return data.charCodeAt(this.pos++)&0xFF};this.readBytes=function(n){var bytes=[];for(var i=0;i<n;i++){bytes.push(this.readByte())}
return bytes};this.read=function(n){var s='';for(var i=0;i<n;i++){s+=String.fromCharCode(this.readByte())}
return s};this.readUnsigned=function(){var a=this.readBytes(2);return(a[1]<<8)+a[0]}};var lzwDecode=function(minCodeSize,data){var pos=0;var readCode=function(size){var code=0;for(var i=0;i<size;i++){if(data.charCodeAt(pos>>3)&(1<<(pos&7))){code|=1<<i}
pos++}
return code};var output=[];var clearCode=1<<minCodeSize;var eoiCode=clearCode+1;var codeSize=minCodeSize+1;var dict=[];var clear=function(){dict=[];codeSize=minCodeSize+1;for(var i=0;i<clearCode;i++){dict[i]=[i]}
dict[clearCode]=[];dict[eoiCode]=null};var code;var last;while(!0){last=code;code=readCode(codeSize);if(code===clearCode){clear();continue}
if(code===eoiCode)break;if(code<dict.length){if(last!==clearCode){dict.push(dict[last].concat(dict[code][0]))}}else{if(code!==dict.length)throw new Error('Invalid LZW code.');dict.push(dict[last].concat(dict[last][0]))}
output.push.apply(output,dict[code]);if(dict.length===(1<<codeSize)&&codeSize<12){codeSize++}}
return output};var parseGIF=function(st,handler){handler||(handler={});var parseCT=function(entries){var ct=[];for(var i=0;i<entries;i++){ct.push(st.readBytes(3))}
return ct};var readSubBlocks=function(){var size,data;data='';do{size=st.readByte();data+=st.read(size)}while(size!==0);return data};var parseHeader=function(){var hdr={};hdr.sig=st.read(3);hdr.ver=st.read(3);if(hdr.sig!=='GIF')throw new Error('Not a GIF file.');hdr.width=st.readUnsigned();hdr.height=st.readUnsigned();var bits=byteToBitArr(st.readByte());hdr.gctFlag=bits.shift();hdr.colorRes=bitsToNum(bits.splice(0,3));hdr.sorted=bits.shift();hdr.gctSize=bitsToNum(bits.splice(0,3));hdr.bgColor=st.readByte();hdr.pixelAspectRatio=st.readByte();if(hdr.gctFlag){hdr.gct=parseCT(1<<(hdr.gctSize+1))}
handler.hdr&&handler.hdr(hdr)};var parseExt=function(block){var parseGCExt=function(block){var blockSize=st.readByte();var bits=byteToBitArr(st.readByte());block.reserved=bits.splice(0,3);block.disposalMethod=bitsToNum(bits.splice(0,3));block.userInput=bits.shift();block.transparencyGiven=bits.shift();block.delayTime=st.readUnsigned();block.transparencyIndex=st.readByte();block.terminator=st.readByte();handler.gce&&handler.gce(block)};var parseComExt=function(block){block.comment=readSubBlocks();handler.com&&handler.com(block)};var parsePTExt=function(block){var blockSize=st.readByte();block.ptHeader=st.readBytes(12);block.ptData=readSubBlocks();handler.pte&&handler.pte(block)};var parseAppExt=function(block){var parseNetscapeExt=function(block){var blockSize=st.readByte();block.unknown=st.readByte();block.iterations=st.readUnsigned();block.terminator=st.readByte();handler.app&&handler.app.NETSCAPE&&handler.app.NETSCAPE(block)};var parseUnknownAppExt=function(block){block.appData=readSubBlocks();handler.app&&handler.app[block.identifier]&&handler.app[block.identifier](block)};var blockSize=st.readByte();block.identifier=st.read(8);block.authCode=st.read(3);switch(block.identifier){case 'NETSCAPE':parseNetscapeExt(block);break;default:parseUnknownAppExt(block);break}};var parseUnknownExt=function(block){block.data=readSubBlocks();handler.unknown&&handler.unknown(block)};block.label=st.readByte();switch(block.label){case 0xF9:block.extType='gce';parseGCExt(block);break;case 0xFE:block.extType='com';parseComExt(block);break;case 0x01:block.extType='pte';parsePTExt(block);break;case 0xFF:block.extType='app';parseAppExt(block);break;default:block.extType='unknown';parseUnknownExt(block);break}};var parseImg=function(img){var deinterlace=function(pixels,width){var newPixels=new Array(pixels.length);var rows=pixels.length/width;var cpRow=function(toRow,fromRow){var fromPixels=pixels.slice(fromRow*width,(fromRow+1)*width);newPixels.splice.apply(newPixels,[toRow*width,width].concat(fromPixels))};var offsets=[0,4,2,1];var steps=[8,8,4,2];var fromRow=0;for(var pass=0;pass<4;pass++){for(var toRow=offsets[pass];toRow<rows;toRow+=steps[pass]){cpRow(toRow,fromRow)
fromRow++}}
return newPixels};img.leftPos=st.readUnsigned();img.topPos=st.readUnsigned();img.width=st.readUnsigned();img.height=st.readUnsigned();var bits=byteToBitArr(st.readByte());img.lctFlag=bits.shift();img.interlaced=bits.shift();img.sorted=bits.shift();img.reserved=bits.splice(0,2);img.lctSize=bitsToNum(bits.splice(0,3));if(img.lctFlag){img.lct=parseCT(1<<(img.lctSize+1))}
img.lzwMinCodeSize=st.readByte();var lzwData=readSubBlocks();img.pixels=lzwDecode(img.lzwMinCodeSize,lzwData);if(img.interlaced){img.pixels=deinterlace(img.pixels,img.width)}
handler.img&&handler.img(img)};var parseBlock=function(){var block={};block.sentinel=st.readByte();switch(String.fromCharCode(block.sentinel)){case '!':block.type='ext';parseExt(block);break;case ',':block.type='img';parseImg(block);break;case ';':block.type='eof';handler.eof&&handler.eof(block);break;default:throw new Error('Unknown block: 0x'+block.sentinel.toString(16))}
if(block.type!=='eof')setTimeout(parseBlock,0)};var parse=function(){parseHeader();setTimeout(parseBlock,0)};parse()};var SuperGif=function(opts){var options={vp_l:0,vp_t:0,vp_w:null,vp_h:null,c_w:null,c_h:null};for(var i in opts){options[i]=opts[i]}
if(options.vp_w&&options.vp_h)options.is_vp=!0;var stream;var hdr;var loadError=null;var loading=!1;var transparency=null;var delay=null;var disposalMethod=null;var disposalRestoreFromIdx=0;var lastDisposalMethod=null;var frame=null;var lastImg=null;var playing=!0;var forward=!0;var ctx_scaled=!1;var frames=[];var frameOffsets=[];var gif=options.gif;if(typeof options.auto_play=='undefined')
options.auto_play=(!gif.getAttribute('rel:auto_play')||gif.getAttribute('rel:auto_play')=='1');var onEndListener=(options.hasOwnProperty('on_end')?options.on_end:null);var loopDelay=(options.hasOwnProperty('loop_delay')?options.loop_delay:0);var overrideLoopMode=(options.hasOwnProperty('loop_mode')?options.loop_mode:'auto');var drawWhileLoading=(options.hasOwnProperty('draw_while_loading')?options.draw_while_loading:!0);var showProgressBar=drawWhileLoading?(options.hasOwnProperty('show_progress_bar')?options.show_progress_bar:!0):!1;var clear=function(){transparency=null;delay=null;lastDisposalMethod=disposalMethod;disposalMethod=null;frame=null};var doParse=function(){try{parseGIF(stream,handler)}catch(err){doLoadError('parse')}};var doText=function(text){toolbar.innerHTML=text;toolbar.style.visibility='visible'};var setSizes=function(w,h){canvas.width=w*get_canvas_scale();canvas.height=h*get_canvas_scale();toolbar.style.minWidth=(w*get_canvas_scale())+'px';tmpCanvas.width=w;tmpCanvas.height=h;tmpCanvas.style.width=w+'px';tmpCanvas.style.height=h+'px';tmpCanvas.getContext('2d').setTransform(1,0,0,1,0,0)};var setFrameOffset=function(frame,offset){if(!frameOffsets[frame]){frameOffsets[frame]=offset;return}
if(typeof offset.x!=='undefined'){frameOffsets[frame].x=offset.x}
if(typeof offset.y!=='undefined'){frameOffsets[frame].y=offset.y}};var doShowProgress=function(pos,length,draw){if(draw&&showProgressBar){var height=25;var left,mid,top,width;if(options.is_vp){if(!ctx_scaled){top=(options.vp_t+options.vp_h-height);height=height;left=options.vp_l;mid=left+(pos/length)*options.vp_w;width=canvas.width}else{top=(options.vp_t+options.vp_h-height)/get_canvas_scale();height=height/get_canvas_scale();left=(options.vp_l/get_canvas_scale());mid=left+(pos/length)*(options.vp_w/get_canvas_scale());width=canvas.width/get_canvas_scale()}
if(!1){if(!ctx_scaled){var l=options.vp_l,t=options.vp_t;var w=options.vp_w,h=options.vp_h}else{var l=options.vp_l/get_canvas_scale(),t=options.vp_t/get_canvas_scale();var w=options.vp_w/get_canvas_scale(),h=options.vp_h/get_canvas_scale()}
ctx.rect(l,t,w,h);ctx.stroke()}}else{top=(canvas.height-height)/(ctx_scaled?get_canvas_scale():1);mid=((pos/length)*canvas.width)/(ctx_scaled?get_canvas_scale():1);width=canvas.width/(ctx_scaled?get_canvas_scale():1);height/=ctx_scaled?get_canvas_scale():1}
ctx.fillStyle='rgba(255,255,255,0.4)';ctx.fillRect(mid,top,width-mid,height);ctx.fillStyle='rgba(255,0,22,.8)';ctx.fillRect(0,top,mid,height)}};var doLoadError=function(originOfError){var drawError=function(){ctx.fillStyle='black';ctx.fillRect(0,0,options.c_w?options.c_w:hdr.width,options.c_h?options.c_h:hdr.height);ctx.strokeStyle='`red`';ctx.lineWidth=3;ctx.moveTo(0,0);ctx.lineTo(options.c_w?options.c_w:hdr.width,options.c_h?options.c_h:hdr.height);ctx.moveTo(0,options.c_h?options.c_h:hdr.height);ctx.lineTo(options.c_w?options.c_w:hdr.width,0);ctx.stroke()};loadError=originOfError;hdr={width:gif.width,height:gif.height};frames=[];drawError()};var doHdr=function(_hdr){hdr=_hdr;setSizes(hdr.width,hdr.height)};var doGCE=function(gce){pushFrame();clear();transparency=gce.transparencyGiven?gce.transparencyIndex:null;delay=gce.delayTime;disposalMethod=gce.disposalMethod};var pushFrame=function(){if(!frame)return;frames.push({data:frame.getImageData(0,0,hdr.width,hdr.height),delay:delay});frameOffsets.push({x:0,y:0})};var doImg=function(img){if(!frame)frame=tmpCanvas.getContext('2d');var currIdx=frames.length;var ct=img.lctFlag?img.lct:hdr.gct;if(currIdx>0){if(lastDisposalMethod===3){frame.putImageData(frames[disposalRestoreFromIdx].data,0,0)}else{disposalRestoreFromIdx=currIdx-1}
if(lastDisposalMethod===2){frame.clearRect(lastImg.leftPos,lastImg.topPos,lastImg.width,lastImg.height)}}
var imgData=frame.getImageData(img.leftPos,img.topPos,img.width,img.height);var cdd=imgData.data;img.pixels.forEach(function(pixel,i){if(pixel!==transparency){cdd[i*4+0]=ct[pixel][0];cdd[i*4+1]=ct[pixel][1];cdd[i*4+2]=ct[pixel][2];cdd[i*4+3]=255}});imgData.data.set(cdd);frame.putImageData(imgData,img.leftPos,img.topPos);if(!ctx_scaled){ctx.scale(get_canvas_scale(),get_canvas_scale());ctx_scaled=!0}
if(drawWhileLoading)
ctx.drawImage(tmpCanvas,0,0);lastImg=img};var player=(function(){var i=-1;var iterationCount=0;var showingInfo=!1;var pinned=!1;var getNextFrameNo=function(){var delta=(forward?1:-1);return(i+delta+frames.length)%frames.length};var stepFrame=function(amount){i=i+amount;putFrame()};var completeLoop=function(){if(onEndListener!==null)
onEndListener(gif);iterationCount++};var step=(function(){var stepping=!1;var doStep=function(){stepping=playing;if(!stepping)return;stepFrame(1);var delay=frames[i].delay*10;if(!delay)delay=100;var nextFrameNo=getNextFrameNo();if(nextFrameNo===0){delay+=loopDelay;setTimeout(completeLoop,delay-1)}
if((overrideLoopMode!==!1||nextFrameNo!==0||iterationCount<0))
setTimeout(doStep,delay)};return function(){if(!stepping)setTimeout(doStep,0)}}());var putFrame=function(){var offset;i=parseInt(i,10);if(i>frames.length-1){i=0}
if(i<0){i=0}
offset=frameOffsets[i];tmpCanvas.getContext("2d").putImageData(frames[i].data,offset.x,offset.y);ctx.globalCompositeOperation="copy";ctx.drawImage(tmpCanvas,0,0)};var play=function(){playing=!0;step()};var pause=function(){playing=!1};return{init:function(){if(loadError)return;if(!(options.c_w&&options.c_h)){ctx.scale(get_canvas_scale(),get_canvas_scale())}
if(options.auto_play){step()}else{i=0;putFrame()}},step:step,play:play,pause:pause,playing:playing,move_relative:stepFrame,current_frame:function(){return i},length:function(){return frames.length},move_to:function(frame_idx){i=frame_idx;putFrame()}}}());var doDecodeProgress=function(draw){doShowProgress(stream.pos,stream.data.length,draw)};var doNothing=function(){};var withProgress=function(fn,draw){return function(block){fn(block);doDecodeProgress(draw)}};var handler={hdr:withProgress(doHdr),gce:withProgress(doGCE),com:withProgress(doNothing),app:{NETSCAPE:withProgress(doNothing)},img:withProgress(doImg,!0),eof:function(block){pushFrame();doDecodeProgress(!1);if(!(options.c_w&&options.c_h)){canvas.width=hdr.width*get_canvas_scale();canvas.height=hdr.height*get_canvas_scale()}
player.init();loading=!1;if(load_callback){load_callback(gif)}}};var init=function(){var parent=gif.parentNode;var div=document.createElement('div');canvas=document.createElement('canvas');ctx=canvas.getContext('2d');toolbar=document.createElement('div');tmpCanvas=document.createElement('canvas');div.width=canvas.width=gif.width;div.height=canvas.height=gif.height;toolbar.style.minWidth=gif.width+'px';div.className='jsgif';toolbar.className='jsgif_toolbar';div.appendChild(canvas);div.appendChild(toolbar);parent.insertBefore(div,gif);parent.removeChild(gif);if(options.c_w&&options.c_h)setSizes(options.c_w,options.c_h);initialized=!0};var get_canvas_scale=function(){var scale;if(options.max_width&&hdr&&hdr.width>options.max_width){scale=options.max_width/hdr.width}else{scale=1}
return scale}
var canvas,ctx,toolbar,tmpCanvas;var initialized=!1;var load_callback=!1;var load_setup=function(callback){if(loading)return!1;if(callback)load_callback=callback;else load_callback=!1;loading=!0;frames=[];clear();disposalRestoreFromIdx=0;lastDisposalMethod=null;frame=null;lastImg=null;return!0}
return{play:player.play,pause:player.pause,move_relative:player.move_relative,move_to:player.move_to,get_playing:function(){return player.playing},get_canvas:function(){return canvas},get_canvas_scale:function(){return get_canvas_scale()},get_loading:function(){return loading},get_auto_play:function(){return options.auto_play},get_length:function(){return player.length()},get_current_frame:function(){return player.current_frame()},load_url:function(src,callback){if(!load_setup(callback))return;var h=new XMLHttpRequest();h.overrideMimeType('text/plain; charset=x-user-defined');h.onloadstart=function(){if(!initialized)init()};h.onload=function(e){stream=new Stream(h.responseText);setTimeout(doParse,0)};h.onprogress=function(e){if(e.lengthComputable)doShowProgress(e.loaded,e.total,!0)};h.onerror=function(){doLoadError('xhr')};h.open('GET',src,!0);h.send()},load:function(callback){this.load_url(gif.getAttribute('rel:animated_src')||gif.src,callback)},load_raw:function(arr,callback){if(!load_setup(callback))return;if(!initialized)init();stream=new Stream(arr);setTimeout(doParse,0)},set_frame_offset:setFrameOffset}};return SuperGif}));(function($){'use strict';var isEnabled=g1.config.use_gif_player;g1.gifPlayer=function($scope){if(!isEnabled){return}
if(!$scope){$scope=$('body')}
if(typeof XMLHttpRequest.prototype.overrideMimeType==='undefined'){return}
g1.gifPlayerIncludeSelectors=['.entry-content img.aligncenter[src$=".gif"]','.entry-content .aligncenter img[src$=".gif"]','img.g1-enable-gif-player','.entry-featured-media-main img[src$=".gif"]','.entry-tpl-stream .entry-featured-media img[src$=".gif"]','.entry-tpl-grid-l .entry-featured-media img[src$=".gif"]'];g1.gifPlayerExcludeSelectors=['.ajax-loader','.g1-disable-gif-player','.wp-block-image.g1-disable-gif-player img[src$=".gif"]'];$(g1.gifPlayerIncludeSelectors.join(','),$scope).not(g1.gifPlayerExcludeSelectors.join(',')).each(function(){var $img=$(this);var imgClasses=$img.attr('class');var imgSrc=$img.attr('src');var gifObj=new SuperGif({gif:this,auto_play:0});var $gitIndicator=$('<span class="g1-indicator-gif g1-loading">');gifObj.load(function(){var frames=gifObj.get_length();var $canvasWrapper=$(gifObj.get_canvas()).parent();if(frames>1){gifObj.isPlaying=!1;var playRef=gifObj.play;var pauseRef=gifObj.pause;var playGif=function(){playRef();gifObj.isPlaying=!0;$gitIndicator.addClass('g1-indicator-gif-playing')};var pauseGif=function(){pauseRef();gifObj.isPlaying=!1;$gitIndicator.removeClass('g1-indicator-gif-playing')};gifObj.play=playGif;gifObj.pause=pauseGif;$canvasWrapper.on('click',function(e){e.preventDefault();if(gifObj.isPlaying){pauseGif()}else{playGif()}});$gitIndicator.toggleClass('g1-loading g1-loaded');$(document).trigger('bimberGifPlayerLoaded',[$canvasWrapper])}else{$gitIndicator.remove()}});var $canvasWrapper=$(gifObj.get_canvas()).parent();$canvasWrapper.addClass(imgClasses+' g1-enable-share-links').attr('data-img-src',imgSrc).append($gitIndicator).data('gifPlayer',gifObj)})};$('body').on('g1NewContentLoaded',function(e,$newContent){g1.gifPlayer($newContent)})})(jQuery);(function($){'use strict';var selectors={'iframe':'iframe','mp4':'.mejs-video','gif':'.jsgif','html5Video':'.snax-native-video','embedly':'.embedly-card iframe','maceYT':'.mace-youtube'};g1.mediaPlayers={};g1.getMediaPlayer=function(element){var player=$(element).data('g1MediaPlayer');if(player){g1.log('Returning a player ('+player.getType()+') assigned to the element.');return player}
var $iframe=$(selectors.iframe,element);if($iframe.length>0){var iframesrc=!1;if($iframe.attr('data-src')){iframesrc=$iframe.attr('data-src')}else{iframesrc=$iframe.attr('src')}
if(iframesrc){if(iframesrc.indexOf('youtu')>0){player=g1.mediaPlayers.youtube($iframe);$(element).data('g1MediaPlayer',player);return player}
if(iframesrc.indexOf('vimeo')>0){player=g1.mediaPlayers.vimeo($iframe);$(element).data('g1MediaPlayer',player);return player}
if(iframesrc.indexOf('dailymotion')>0){player=g1.mediaPlayers.dailymotion($iframe);$(element).data('g1MediaPlayer',player);return player}
if(iframesrc.indexOf('gfycat')>0){player=g1.mediaPlayers.gfycat($iframe);$(element).data('g1MediaPlayer',player);return player}}
return!1}
var $mp4=$(selectors.mp4,element);if($mp4.length>0){var playerId=$mp4.attr('id');if(playerId&&mejs&&typeof mejs.players!=='undefined'){if(typeof mejs.players[playerId]!=='undefined'){var mejsPlayer=mejs.players[playerId];player=g1.mediaPlayers.mp4(mejsPlayer);$(element).data('g1MediaPlayer',player);return player}}
return!1}
var $gif=$(selectors.gif,element);if($gif.length>0){var gifPlayer=$gif.data('gifPlayer');if(gifPlayer){player=g1.mediaPlayers.gif(gifPlayer);$(element).data('g1MediaPlayer',player);return player}
return!1}
var $maceYT=$(selectors.maceYT,element);var $html5=$(selectors.html5Video,element);if($html5.length>0){player=g1.mediaPlayers.html5video($html5[0]);$(element).data('g1MediaPlayer',player);return player}
if(typeof embedly!=='undefined'){var $embedly=$(selectors.embedly,element);if($embedly.length>0){embedly('player',function(embedlyPlayer){if($embedly[0]===$(embedlyPlayer.frame.elem)[0]){player=g1.mediaPlayers.embedly(embedlyPlayer);$(element).data('g1MediaPlayer',player);return player}else{player.pause()}});return!1}else{embedly('player',function(player){player.pause()})}}
if($maceYT.length>0){$maceYT.find('.mace-play-button').trigger('click');$maceYT.on('maceIframeLoaded',function(e,$iframe){player=g1.getMediaPlayer($maceYT);$(element).data('g1MediaPlayer',player)});return!1}}})(jQuery);(function($){'use strict';g1.mediaPlayers.youtube=function($iframe){let obj={};let isPlaying=!1;function init(){g1.log('YouTube player object initialized');$iframe.on('load',function(){$iframe[0].contentWindow.postMessage(JSON.stringify({'event':'command','func':'mute','args':''}),'*')});let iframesrc='';let separator='?';if($iframe.attr('data-src')){iframesrc=$iframe.attr('data-src')}else{iframesrc=$iframe.attr('src')}
if(iframesrc.indexOf('?')>0){separator='&'}
$iframe.attr('src',iframesrc+separator+'autoplay=1&enablejsapi=1&loop=1');return obj}
obj.getType=function(){return'YouTube'};obj.play=function(){$iframe[0].contentWindow.postMessage(JSON.stringify({'event':'command','func':'playVideo','args':''}),'*');isPlaying=!0};obj.pause=function(){$iframe[0].contentWindow.postMessage(JSON.stringify({'event':'command','func':'pauseVideo','args':''}),'*');isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.vimeo=function($iframe){let obj={};let isPlaying=!1;function init(){g1.log('Vimeo player object initialized');$iframe.on('load',function(){$iframe[0].contentWindow.postMessage(JSON.stringify({method:'setVolume',value:0}),'*')});let iframesrc='';let separator='?';if($iframe.attr('data-src')){iframesrc=$iframe.attr('data-src')}else{iframesrc=$iframe.attr('src')}
if(iframesrc.indexOf('?')>0){separator='&'}
$iframe.attr('src',iframesrc+separator+'autoplay=1&autopause=0');return obj}
obj.getType=function(){return'Vimeo'};obj.play=function(){$iframe[0].contentWindow.postMessage(JSON.stringify({method:'play'}),'*');isPlaying=!0};obj.pause=function(){$iframe[0].contentWindow.postMessage(JSON.stringify({method:'pause'}),'*');isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.dailymotion=function($iframe){let obj={};let isPlaying=!1;function init(){g1.log('DailyMotion player object initialized');let iframesrc='';let separator='?';if($iframe.attr('data-src')){iframesrc=$iframe.attr('data-src')}else{iframesrc=$iframe.attr('src')}
if(iframesrc.indexOf('?')>0){separator='&'}
$iframe.attr('src',iframesrc+separator+'autoplay=1&api=postMessage&mute=1');return obj}
obj.getType=function(){return'DailyMotion'};obj.play=function(){$iframe[0].contentWindow.postMessage('play','*');isPlaying=!0};obj.pause=function(){$iframe[0].contentWindow.postMessage('pause','*');isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.gfycat=function($iframe){let obj={};let isPlaying=!1;function init(){g1.log('Gfycat player object initialized');return obj}
obj.getType=function(){return'Gfycat'};obj.play=function(){$iframe[0].contentWindow.postMessage('play','*');isPlaying=!0};obj.pause=function(){$iframe[0].contentWindow.postMessage('pause','*');isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.mp4=function(mejsPlayer){let obj={};let isPlaying=!1;function init(){g1.log('MP4 player initialized');mejsPlayer.setMuted(!0);mejsPlayer.media.addEventListener('ended',function(){mejsPlayer.play()},!1);return obj}
obj.getType=function(){return'MP4'};obj.play=function(){mejsPlayer.play();isPlaying=!0};obj.pause=function(){mejsPlayer.pause();isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.gif=function(gifPlayer){let obj={};function init(){g1.log('GIF player initialized');return obj}
obj.getType=function(){return'GIF'};obj.play=function(){gifPlayer.play()};obj.pause=function(){gifPlayer.pause()};obj.isPlaying=function(){return gifPlayer.isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.html5video=function(video){let obj={};let isPlaying=!1;function init(){g1.log('HTML5 Video player initialized');return obj}
obj.getType=function(){return'HTML5 Video'};obj.play=function(){video.play();isPlaying=!0};obj.pause=function(){video.pause();isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';g1.mediaPlayers.embedly=function(embedlyPlayer){let obj={};let isPlaying=!1;function init(){g1.log('Embedly player initialized');embedlyPlayer.mute();return obj}
obj.getType=function(){return'Embedly'};obj.play=function(){embedlyPlayer.play();isPlaying=!0};obj.pause=function(){embedlyPlayer.pause();isPlaying=!1};obj.isPlaying=function(){return isPlaying};return init()}})(jQuery);(function($){'use strict';var selectors={'postMedia':'.archive-body-stream .entry-tpl-stream .entry-featured-media:not(.entry-media-nsfw-embed)'};g1.isAutoPlayEnabled=g1.config.auto_play_videos&&!g1.isTouchDevice();var players={};g1.autoPlayVideo=function(){if(!g1.isAutoPlayEnabled){return}
var pauseAllVideos=function(){g1.log('Pausing all videos');for(var i in players){players[i].pause()}};var play=function(element){var postId=$(element).parents('article').attr('id');g1.log('Trying to play media...');var player=g1.getMediaPlayer(element);if(!player){g1.log('Media player not defined for the element');return}
pauseAllVideos();player.play();g1.log(player.getType()+' played');if(!players[postId]){players[postId]=player}};var pause=function(element){g1.log('Trying to pause media...');var player=g1.getMediaPlayer(element);if(!player){g1.log('Media player not defined for the element');return}
player.pause();g1.log(player.getType()+' paused')};var bindEvents=function(){var scrollEvents=0;var allowPlaying=!1;$(document).scroll(function(){scrollEvents++;if(scrollEvents>5){allowPlaying=!0}});$(selectors.postMedia).waypoint(function(direction){if('down'===direction){if(allowPlaying){g1.log(['>>> ENTER post (direction: DOWN)',this.element]);play(this.element)}}},{offset:'bottom-in-view'});$(selectors.postMedia).waypoint(function(direction){if('up'===direction){if(allowPlaying){g1.log(['>>> ENTER post (direction: UP)',this.element]);play(this.element)}}},{offset:'0'});$(selectors.postMedia).waypoint(function(direction){if('down'===direction){g1.log(['>>> EXIT post (direction: DOWN)',this.element]);pause(this.element)}},{offset:function(){return-Math.round(this.element.clientHeight/2)}});$(selectors.postMedia).waypoint(function(direction){if('up'===direction){g1.log(['>>> EXIT post (direction: UP)',this.element]);pause(this.element)}},{offset:function(){var viewportHeight=Math.max(document.documentElement.clientHeight,window.innerHeight||0);return viewportHeight-Math.round(this.element.clientHeight/2)}});$(selectors.postMedia).on('bimber:play',function(){g1.log(['>>> PLAY ',$(this).get(0)]);play($(this).get(0))});$(selectors.postMedia).on('bimber:pause',function(){g1.log(['>>> PAUSE ',$(this).get(0)]);pause($(this).get(0))})};bindEvents()}})(jQuery);(function($){'use strict';$(document).ready(function(){g1.gifPlayer();g1.autoPlayVideo()})})(jQuery);/*! jQuery UI - v1.13.3 - 2024-04-26
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
 * jQuery UI :data 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
 * jQuery UI Disable Selection 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
 * jQuery UI Focusable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
 * jQuery UI Form Reset Mixin 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
 * jQuery UI Keycode 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
 * jQuery UI Labels 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});/*!
 * jQuery UI Menu 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})});/*! This file is auto-generated */
(()=>{"use strict";var e={d:(t,d)=>{for(var o in d)e.o(d,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:d[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function d(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}e.d(t,{default:()=>d}),(window.wp=window.wp||{}).domReady=t.default})();wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']});/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>p,speak:()=>d});const n=window.wp.domReady;var o=e.n(n);function i(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}const a=window.wp.i18n;let r="";function d(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}function p(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,a.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}o()(p),(window.wp=window.wp||{}).a11y=t})();/*!
 * jQuery UI Autocomplete 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});(function($){'use strict';var selectors={'wrapper':'div[role=search]','form':'form.g1-searchform-ajax','input':'form.g1-searchform-ajax input.search-field','results':'.g1-searches-ajax','seeAll':'.bimber-see-all-results'};g1.ajaxSearch=function(){if(!$.fn.autocomplete){return}
var minLength=2;$(selectors.input).each(function(){var $input=$(this);var $form=$input.parents(selectors.form);var $wrapper=$input.parents(selectors.wrapper);$input.autocomplete({'appendTo':$form,'delay':500,'minLength':minLength,'source':function(request){var xhr=$.ajax({'type':'GET','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_search','bimber_term':request.term}});xhr.done(function(res){if(res.status==='success'){$wrapper.find(selectors.results).html(res.html)}})}});$input.on('keyup search',function(){if($(this).val().length<minLength){$wrapper.find(selectors.results).html('')}});$wrapper.on('click',selectors.seeAll,function(e){e.preventDefault();$form.submit()})})};$(document).ready(function(){g1.ajaxSearch()})})(jQuery);(function($){'use strict';g1.customShareButtons=function(){openCustomSharesInNewWindow()};function openCustomSharesInNewWindow(){$('.mashicon-pinterest, .mashicon-google').click(function(e){var winWidth=750;var winHeight=550;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');if('#'===url){url=$(this).attr('data-mashsb-url')}
window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);e.preventDefault()})}
$('body').on('g1NewContentLoaded',function(){if(typeof lashare_fb=="undefined"&&typeof mashsb!=='undefined'){$('.mashicon-facebook').click(function(mashfb){var winWidth=520;var winHeight=550;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);mashfb.preventDefault(mashfb);return!1})}
if(typeof mashsb!=='undefined'){$('.mashicon-twitter').click(function(e){var winWidth=520;var winHeight=350;var winTop=(screen.height/2)-(winHeight/2);var winLeft=(screen.width/2)-(winWidth/2);var url=$(this).attr('href');if(mashsb.twitter_popup==='1'){window.open(url,'sharer','top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight)}
e.preventDefault();return!1})}})})(jQuery);(function($){'use strict';g1.customizeShareButtons=function(){overrideOnOffSwitch();subscribeViaMailbox()};function overrideOnOffSwitch(){var $onoffswitch=$('.onoffswitch');var $onoffswitch2=$('.onoffswitch2');$onoffswitch.off('click');$onoffswitch2.off('click');$onoffswitch.on('click',function(){var $container=$(this).parents('.mashsb-container');$('.onoffswitch',$container).hide();$('.secondary-shares',$container).show();$('.onoffswitch2',$container).show()});$onoffswitch2.on('click',function(){var $container=$(this).parents('.mashsb-container');$('.onoffswitch',$container).show();$('.secondary-shares',$container).hide()})}
function subscribeViaMailbox(){if(typeof mashsb!=='undefined'&&mashsb.subscribe==='content'){return}
if(typeof mashsb!=='undefined'&&mashsb.subscribe_url!==''){return}
$('a.mashicon-subscribe').each(function(){var $link=$(this);if($link.attr('href')==='#'){$link.off('click');var postTitle=$('head > title').text();var postUrl=location.href;var subject=g1.config.i18n.newsletter.subscribe_mail_subject_tpl.replace('%subject%',postTitle);var body=postTitle+'%0A%0A'+postUrl;var mailTo='mailto:?subject={subject}&body={body}';mailTo=mailTo.replace('{subject}',subject);mailTo=mailTo.replace('{body}',body);$link.attr('href',mailTo)}})}})(jQuery);(function($){'use strict';g1.shareBarTopOffsetSelectors=['#wpadminbar'];g1.shareBar=function(){var $shareBar=g1.activateShareBar();$('body').on('g1PageHeightChanged',function(){if($shareBar!==!1){g1.updateShareBarPosition($shareBar)}});enquire.register('screen and ( min-width: 801px )',{match:function(){if($shareBar!==!1){g1.updateShareBarPosition($shareBar)}},unmatch:function(){if($shareBar!==!1){g1.updateShareBarPosition($shareBar)}}})};g1.activateShareBar=function(){var $shareBar=$('.g1-sharebar');var $shareButtons=$('.mashsb-main:first');if($shareBar.length===0||$shareButtons.length===0){return!1}
var $shareBarInner=$shareBar.find('.g1-sharebar-inner');if(!$shareBar.is('.g1-sharebar-loaded')){var $clonedShareButtons=$shareButtons.clone(!0);if(typeof mashsb!=='undefined'&&mashsb.animate_shares==='1'&&$clonedShareButtons.find('.mashsbcount').length){$clonedShareButtons.find('.mashsbcount').text(mashsb.shares)}
$shareBarInner.append($clonedShareButtons);$shareBar.addClass('g1-sharebar-loaded');g1.updateShareBarPosition($shareBar)}
new Waypoint({element:$('body'),handler:function(direction){if(direction==='down'){$shareBar.addClass('g1-sharebar-on');$shareBar.removeClass('g1-sharebar-off')}else{$shareBar.removeClass('g1-sharebar-on');$shareBar.addClass('g1-sharebar-off')}},offset:function(){return-100}});return $shareBar};g1.updateShareBarPosition=function($shareBar){var shareBarWidth=parseInt($shareBar.outerWidth(),10);var cssMediaQueryBreakpoint=800;if(shareBarWidth<=cssMediaQueryBreakpoint){$shareBar.css('top','')}else{var top=0;for(var i=0;i<g1.shareBarTopOffsetSelectors.length;i++){var $element=$(g1.shareBarTopOffsetSelectors[i]);if($element.length>0&&$element.is(':visible')){top+=parseInt($element.outerHeight(),10)}}
$shareBar.css('top',top+'px')}}})(jQuery);(function($){'use strict';g1.loadNextPostConfig={'offset':'500%'};var selectors={'button':'.bimber-load-next-post','urlWaypoint':'.bimber-url-waypoint','elementButton':'.g1-auto-load-button'};g1.loadNextPost=function(){var mainUrl=window.location.href;var autoLoadLimit=g1.config.auto_load_limit;var loadedPosts=0;var loadNextEvent=function(e){e.preventDefault();if(autoLoadLimit>0&&loadedPosts>=autoLoadLimit){$(this).remove();return}
var $button=$(this);var template='classic';if($('#secondary').length===0){template='row'}
$button.css('position','relative');$button.addClass('g1-collection-more-loading');var postUrl=$('a',this).attr('href');var gaPostUrl=$('a',this).attr('data-bimber-analytics-href');var url=postUrl+'?bimber_auto_load_next_post_template='+template;$('a',this).remove();var xhr=$.get(url);loadedPosts+=1;xhr.done(function(data){var $html=$($.parseHTML(data,document,!0));var $content=$html.find('#content');var title=$($content.find('.entry-title')[0]).text();$content.find('#secondary').remove();var $insta=$('script[src="//platform.instagram.com/en_US/embeds.js"]');var mejsLoaded=typeof window.wp!=='undefined'&&typeof window.wp.mediaelement!=='undefined';if(!mejsLoaded){var matches=data.match(/<script(.|\n)*?<\/script>/g);var mejsCode='';matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){match=match.replace('<script','<script async');mejsCode+=match}});matches=data.match(/<link(.|\n)*?\/>/g);matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){mejsCode+=match}});$button.after(mejsCode)}
$button.before('<div class="g1-divider"></div>');$('body').trigger('g1BeforeNewContentReady',[$content]);var $scope=$($content.html()).insertAfter($button);if($insta.length>0){window.instgrm.Embeds.process()}
$button.remove();$('body').trigger('g1NewContentLoaded',[$scope]);if(typeof window.wp!=='undefined'&&typeof window.wp.mediaelement!=='undefined'){window.wp.mediaelement.initialize()}
if(typeof ga!=='undefined'&&typeof ga.getAll!=='undefined'){ga('create',ga.getAll()[0].get('trackingId'),'auto');ga('set',{location:gaPostUrl,title:title});ga('send','pageview')}
var $nonce=$html.find('#bimber-wpp-nonce');if($nonce.length>0){var nonce=$nonce.attr('data-bimber-wpp-nonce');var postId=$nonce.attr('data-bimber-wpp-id');g1.updatePostViews(nonce,postId)}
bindEvents()});xhr.always(function(){$button.removeClass('g1-collection-more-loading')})};var bindEvents=function(){$(selectors.button).click(loadNextEvent);$(selectors.elementButton).click(function(){window.history.replaceState({},'',mainUrl)});$(selectors.button).waypoint(function(direction){if('down'===direction){$(selectors.button).trigger('click')}},{offset:g1.loadNextPostConfig.offset});$(selectors.urlWaypoint).waypoint(function(direction){var $waypoint=$(this.element);if('up'===direction){var $waypointUp=$waypoint.parent('article').prev('.bimber-url-waypoint');if($waypointUp.length>0){$waypoint=$waypointUp}}
var url=$waypoint.attr('data-bimber-post-url');var title=$waypoint.attr('data-bimber-post-title');var currentUrl=window.location.href;if(url!==currentUrl){var $article=$waypoint.next('article');var $mashShare=$('.mashsb-container',$article);var $shareBar=$('.g1-sharebar .g1-sharebar-inner');if($mashShare.length>0&&$.trim($shareBar.html())){$shareBar.html($mashShare[0].outerHTML)}
var $essbShare=$('.essb_topbar_inner',$article);var $essbBar=$('.essb_topbar_inner');if($essbShare.length>0&&$.trim($essbBar.html())){$essbBar.html($essbShare[0].outerHTML)}
g1.customizeShareButtons();window.history.replaceState({},'',url);document.title=title}})};bindEvents()}})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comments','tabs':'.g1-tab-items > li','tab':'.g1-tab-item','currentTab':'.g1-tab-item-current','commentType':'.g1-comment-type'};var classes={'currentTab':'g1-tab-item-current','currentType':'g1-tab-pane-current','type':'g1-tab-pane','loading':'g1-loading','loaded':'g1-loaded'};var $wrapper;g1.comments=function(){$wrapper=$(selectors.wrapper);if($wrapper.length===0){return}
if($wrapper.find('.cace-comments').length>0){return}
g1.facebookComments();g1.disqusComments();initTabs()};var initTabs=function(){var $tabs=$wrapper.find(selectors.tabs);var currentType=$tabs.filter(selectors.currentTab).attr('data-bimber-type');if(!currentType){var types=g1.config.comment_types;if(types&&types.length>0){currentType=types[0]}else{currentType='wp'}}
$wrapper.find(selectors.commentType).each(function(){var $type=$(this);$type.addClass(classes.type)});if('dsq'===currentType){setTimeout(function(){selectTab(currentType)},1000)}else{selectTab(currentType)}
$tabs.on('click',function(){var type=$(this).attr('data-bimber-type');selectTab(type)})};var selectTab=function(type){var $tab=$wrapper.find(selectors.tab+'-'+type);var $type=$wrapper.find(selectors.commentType+'-'+type);if('fb'===type){if(!$type.hasClass(classes.loaded)){$type.addClass(classes.loading)}}
$wrapper.find(selectors.commentType).removeClass(classes.currentType);$type.addClass(classes.currentType);$type.trigger('loadComments');$wrapper.find(selectors.tabs).removeClass(classes.currentTab);$tab.addClass(classes.currentTab)}})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comment-type-fb','counter':'.g1-comment-count','list':'.g1-comment-list','tab':'.g1-comments .g1-tab-item-fb'};var classes={'loading':'g1-loading','loaded':'g1-loaded'};var $wrapper;var loaded=!1;g1.facebookComments=function(){$wrapper=$(selectors.wrapper);if(!$wrapper.is('.g1-on-demand')){loaded=!0}
if($wrapper.length>0){init();return $wrapper}else{return!1}};var init=function(){var origFbAsyncInit=window.fbAsyncInit;window.fbAsyncInit=function(){if(typeof FB==='undefined'){return}
FB.Event.subscribe('xfbml.render',function(){$wrapper.removeClass(classes.loading);$wrapper.addClass(classes.loaded);var $counter=$wrapper.find(selectors.counter);var url=$counter.find('.fb_comments_count').attr('data-bimber-graph-api-url');FB.api('/'+url,'GET',{'fields':'engagement'},function(response){if(response.engagement){var count=response.engagement.comment_plugin_count;$('.fb_comments_count').html(count)}});var realCount=parseInt($counter.find('.fb_comments_count').text(),10);var postCount=parseInt($counter.attr('data-bimber-fb-comment-count'),10);if(realCount!==postCount){save(realCount)}});FB.Event.subscribe('comment.create',function(){changeCommentsNumber(1)});FB.Event.subscribe('comment.remove',function(){changeCommentsNumber(-1)});if(typeof origFbAsyncInit==='function'){origFbAsyncInit()}};$wrapper.on('loadComments',function(){if(loaded){return}
$wrapper.addClass(classes.loading);loadComments(function(html){g1.resetFacebookSDK();$wrapper.find(selectors.list).html(html);$wrapper.removeClass(classes.loading)})})};var changeCommentsNumber=function(diff){var $counter=$wrapper.find(selectors.counter);var postCount=parseInt($counter.attr('data-bimber-fb-comment-count'),10);postCount+=diff;$wrapper.find('.fb_comments_count').text(postCount);$counter.attr('data-bimber-fb-comment-count',postCount);var $postCommentCount=$wrapper.parents('#content').find('.entry-comments-link strong');var postCommentCount=parseInt($postCommentCount.text(),10);$postCommentCount.text(postCommentCount+diff);var $fbCount=$(selectors.tab).find('a > span');if($fbCount.length>0){var fbCount=parseInt($fbCount.text(),10);$fbCount.text(fbCount+diff)}
save(postCount)};var save=function(newCount){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var nonce=$wrapper.find(selectors.counter).attr('data-bimber-nonce');$.ajax({'type':'POST','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_update_fb_comment_count','post_id':postId,'security':nonce,'count':newCount}})};var loadComments=function(callback){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var xhr=$.ajax({'type':'GET','url':g1.config.ajax_url,'data':{'action':'bimber_load_fbcommentbox','post_id':postId}});xhr.done(function(res){callback(res);loaded=!0})}})(jQuery);(function($){'use strict';var selectors={'wrapper':'.g1-comment-type-dsq','counter':'.g1-comment-count','list':'.g1-comment-list','tab':'.g1-comments .g1-tab-item-dsq'};var classes={'loading':'g1-loading'};var $wrapper;var loaded=!1;g1.disqusComments=function(){$wrapper=$(selectors.wrapper);if($wrapper.length>0){init();return $wrapper}else{return!1}};var init=function(){var origDsqConfig=window.disqus_config;window.disqus_config=function(){if(typeof origDsqConfig==='function'){origDsqConfig();$wrapper.removeClass(classes.loading);loaded=!0}
var $counter=$wrapper.find(selectors.counter);var realCount=parseInt($counter.find('.disqus-comment-count').text(),10);var postCount=parseInt($counter.attr('data-bimber-dsq-comment-count'),10);if(realCount!==postCount){save(realCount)}
this.callbacks.onNewComment=[function(){changeCommentsNumber(1)}]};$wrapper.on('loadComments',function(){if(loaded){return}
$wrapper.addClass(classes.loading);loadComments()})};var changeCommentsNumber=function(diff){var $counter=$wrapper.find(selectors.counter);var postCount=parseInt($counter.attr('data-bimber-dsq-comment-count'),10);postCount+=diff;$wrapper.find('.disqus-comment-count').text(postCount);$counter.attr('data-bimber-dsq-comment-count',postCount);var $postCommentCount=$wrapper.parents('#content').find('.entry-comments-link strong');var postCommentCount=parseInt($postCommentCount.text(),10);$postCommentCount.text(postCommentCount+diff);var $dsqCount=$(selectors.tab).find('a > span');if($dsqCount.length>0){var dsqCount=parseInt($dsqCount.text(),10);$dsqCount.text(dsqCount+diff)}
save(postCount)};var save=function(newCount){var postId=$wrapper.find(selectors.counter).attr('data-bimber-post-id');var nonce=$wrapper.find(selectors.counter).attr('data-bimber-nonce');$.ajax({'type':'POST','url':g1.config.ajax_url,'dataType':'json','data':{'action':'bimber_dsq_update_comment_count','post_id':postId,'security':nonce,'count':newCount}})};var loadComments=function(){var dsq=document.createElement('script');dsq.type='text/javascript';dsq.async=!0;dsq.src='https://'+disqus_shortname+'.disqus.com/embed.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(dsq)}})(jQuery);(function($){'use strict';$(document).ready(function(){g1.customShareButtons();g1.customizeShareButtons();if(g1.config.sharebar==='on'){g1.shareBar()}
g1.comments();g1.loadNextPost()})})(jQuery);(function(){var supportsPassive=!1;try{var opts=Object.defineProperty({},'passive',{get:function(){supportsPassive=!0}});window.addEventListener('testPassive',null,opts);window.removeEventListener('testPassive',null,opts)}catch(e){}
function init(){var input_begin='';var keydowns={};var lastKeyup=null;var lastKeydown=null;var keypresses=[];var modifierKeys=[];var correctionKeys=[];var lastMouseup=null;var lastMousedown=null;var mouseclicks=[];var mousemoveTimer=null;var lastMousemoveX=null;var lastMousemoveY=null;var mousemoveStart=null;var mousemoves=[];var touchmoveCountTimer=null;var touchmoveCount=0;var lastTouchEnd=null;var lastTouchStart=null;var touchEvents=[];var scrollCountTimer=null;var scrollCount=0;var correctionKeyCodes=['Backspace','Delete','ArrowUp','ArrowDown','ArrowLeft','ArrowRight','Home','End','PageUp','PageDown'];var modifierKeyCodes=['Shift','CapsLock'];var forms=document.querySelectorAll('form[method=post]');for(var i=0;i<forms.length;i++){var form=forms[i];var formAction=form.getAttribute('action');if(formAction){if(formAction.indexOf('http://')==0||formAction.indexOf('https://')==0){if(formAction.indexOf('http://'+window.location.hostname+'/')!=0&&formAction.indexOf('https://'+window.location.hostname+'/')!=0){continue}}}
form.addEventListener('submit',function(){var ak_bkp=prepare_timestamp_array_for_request(keypresses);var ak_bmc=prepare_timestamp_array_for_request(mouseclicks);var ak_bte=prepare_timestamp_array_for_request(touchEvents);var ak_bmm=prepare_timestamp_array_for_request(mousemoves);var input_fields={'bib':input_begin,'bfs':Date.now(),'bkpc':keypresses.length,'bkp':ak_bkp,'bmc':ak_bmc,'bmcc':mouseclicks.length,'bmk':modifierKeys.join(';'),'bck':correctionKeys.join(';'),'bmmc':mousemoves.length,'btmc':touchmoveCount,'bsc':scrollCount,'bte':ak_bte,'btec':touchEvents.length,'bmm':ak_bmm};var akismet_field_prefix='ak_';if(this.getElementsByClassName){var possible_akismet_containers=this.getElementsByClassName('akismet-fields-container');for(var containerIndex=0;containerIndex<possible_akismet_containers.length;containerIndex++){var container=possible_akismet_containers.item(containerIndex);if(container.getAttribute('data-prefix')){akismet_field_prefix=container.getAttribute('data-prefix');break}}}
for(var field_name in input_fields){var field=document.createElement('input');field.setAttribute('type','hidden');field.setAttribute('name',akismet_field_prefix+field_name);field.setAttribute('value',input_fields[field_name]);this.appendChild(field)}},supportsPassive?{passive:!0}:!1);form.addEventListener('keydown',function(e){if(e.key in keydowns){return}
var keydownTime=(new Date()).getTime();keydowns[e.key]=[keydownTime];if(!input_begin){input_begin=keydownTime}
var lastKeyEvent=Math.max(lastKeydown,lastKeyup);if(lastKeyEvent){keydowns[e.key].push(keydownTime-lastKeyEvent)}
lastKeydown=keydownTime},supportsPassive?{passive:!0}:!1);form.addEventListener('keyup',function(e){if(!(e.key in keydowns)){return}
var keyupTime=(new Date()).getTime();if('TEXTAREA'===e.target.nodeName||'INPUT'===e.target.nodeName){if(-1!==modifierKeyCodes.indexOf(e.key)){modifierKeys.push(keypresses.length-1)}else if(-1!==correctionKeyCodes.indexOf(e.key)){correctionKeys.push(keypresses.length-1)}else{var keydownTime=keydowns[e.key][0];var keypress=[];keypress.push(keyupTime-keydownTime);if(keydowns[e.key].length>1){keypress.push(keydowns[e.key][1])}
keypresses.push(keypress)}}
delete keydowns[e.key];lastKeyup=keyupTime},supportsPassive?{passive:!0}:!1);form.addEventListener("focusin",function(e){lastKeydown=null;lastKeyup=null;keydowns={}},supportsPassive?{passive:!0}:!1);form.addEventListener("focusout",function(e){lastKeydown=null;lastKeyup=null;keydowns={}},supportsPassive?{passive:!0}:!1)}
document.addEventListener('mousedown',function(e){lastMousedown=(new Date()).getTime()},supportsPassive?{passive:!0}:!1);document.addEventListener('mouseup',function(e){if(!lastMousedown){return}
var now=(new Date()).getTime();var mouseclick=[];mouseclick.push(now-lastMousedown);if(lastMouseup){mouseclick.push(lastMousedown-lastMouseup)}
mouseclicks.push(mouseclick);lastMouseup=now;lastKeydown=null;lastKeyup=null;keydowns={}},supportsPassive?{passive:!0}:!1);document.addEventListener('mousemove',function(e){if(mousemoveTimer){clearTimeout(mousemoveTimer);mousemoveTimer=null}else{mousemoveStart=(new Date()).getTime();lastMousemoveX=e.offsetX;lastMousemoveY=e.offsetY}
mousemoveTimer=setTimeout(function(theEvent,originalMousemoveStart){var now=(new Date()).getTime()-500;var mousemove=[];mousemove.push(now-originalMousemoveStart);mousemove.push(Math.round(Math.sqrt(Math.pow(theEvent.offsetX-lastMousemoveX,2)+Math.pow(theEvent.offsetY-lastMousemoveY,2))));if(mousemove[1]>0){mousemoves.push(mousemove)}
mousemoveStart=null;mousemoveTimer=null},500,e,mousemoveStart)},supportsPassive?{passive:!0}:!1);document.addEventListener('touchmove',function(e){if(touchmoveCountTimer){clearTimeout(touchmoveCountTimer)}
touchmoveCountTimer=setTimeout(function(){touchmoveCount++},500)},supportsPassive?{passive:!0}:!1);document.addEventListener('touchstart',function(e){lastTouchStart=(new Date()).getTime()},supportsPassive?{passive:!0}:!1);document.addEventListener('touchend',function(e){if(!lastTouchStart){return}
var now=(new Date()).getTime();var touchEvent=[];touchEvent.push(now-lastTouchStart);if(lastTouchEnd){touchEvent.push(lastTouchStart-lastTouchEnd)}
touchEvents.push(touchEvent);lastTouchEnd=now;lastKeydown=null;lastKeyup=null;keydowns={}},supportsPassive?{passive:!0}:!1);document.addEventListener('scroll',function(e){if(scrollCountTimer){clearTimeout(scrollCountTimer)}
scrollCountTimer=setTimeout(function(){scrollCount++},500)},supportsPassive?{passive:!0}:!1)}
function prepare_timestamp_array_for_request(a,limit){if(!limit){limit=100}
var rv='';if(a.length>0){var random_starting_point=Math.max(0,Math.floor(Math.random()*a.length-limit));for(var i=0;i<limit&&i<a.length;i++){rv+=a[random_starting_point+i][0];if(a[random_starting_point+i].length>=2){rv+=","+a[random_starting_point+i][1]}
rv+=";"}}
return rv}
if(document.readyState!=='loading'){init()}else{document.addEventListener('DOMContentLoaded',init)}})();(function($){'use strict';g1.backToTop=function(){var $scrollToTop=$('.g1-back-to-top');toggleVisibility($scrollToTop);$scrollToTop.on('click',function(e){e.preventDefault();var multipier=200;var durationRange={min:200,max:1000};var winHeight=$(window).height();var docHeight=$(document).height();var proportion=Math.floor(docHeight/winHeight);var duration=proportion*multipier;if(duration<durationRange.min){duration=durationRange.min}
if(duration>durationRange.max){duration=durationRange.max}
$('html, body').animate({scrollTop:0},duration)});$(window).scroll(function(){window.requestAnimationFrame(function(){toggleVisibility($scrollToTop)})})};function toggleVisibility($scrollToTop){if($(window).scrollTop()>240){$scrollToTop.addClass('g1-back-to-top-on').removeClass('g1-back-to-top-off')}else{$scrollToTop.addClass('g1-back-to-top-off').removeClass('g1-back-to-top-on')}}
$(document).ready(function(){g1.backToTop()})})(jQuery);(()=>{var h=class{static getScreenWidth(){return window.innerWidth||document.documentElement.clientWidth}static getScreenHeight(){return window.innerHeight||document.documentElement.clientHeight}static isNotValidScreensize(e,i){const t=this.getScreenWidth(),s=this.getScreenHeight(),n=e&&(t>i.width||s>i.height),r=!e&&(t<i.width||s<i.height);return n||r}static isPageCached(){const e=document.documentElement.nextSibling&&document.documentElement.nextSibling.data?document.documentElement.nextSibling.data:"";return e&&e.includes("Debug: cached")}static isIntersecting(e){return e.bottom>=0&&e.right>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)&&e.left<=(window.innerWidth||document.documentElement.clientWidth)}static isPageScrolled(){return window.pageYOffset>0||document.documentElement.scrollTop>0}},l=h,d=class{constructor(e,i){this.config=e,this.performanceImages=[],this.logger=i}async run(){try{const e=this._generateLcpCandidates(1/0);e&&(this._initWithFirstElementWithInfo(e),this._fillATFWithoutDuplications(e))}catch(e){this.errorCode="script_error",this.logger.logMessage("Script Error: "+e)}}_generateLcpCandidates(e){const i=document.querySelectorAll(this.config.elements);return i.length<=0?[]:Array.from(i).map(n=>{if(n.nodeName.toLowerCase()==="img"&&n.parentElement.nodeName.toLowerCase()==="picture")return null;let r;if(n.nodeName.toLowerCase()==="picture"){const o=n.querySelector("img");if(o)r=o.getBoundingClientRect();else return null}else r=n.getBoundingClientRect();return{element:n,rect:r}}).filter(n=>n!==null).filter(n=>n.rect.width>0&&n.rect.height>0&&l.isIntersecting(n.rect)).map(n=>({item:n,area:this._getElementArea(n.rect),elementInfo:this._getElementInfo(n.element)})).sort((n,r)=>r.area-n.area).slice(0,e).map(n=>({element:n.item.element,elementInfo:n.elementInfo}))}_getElementArea(e){const i=Math.min(e.width,(window.innerWidth||document.documentElement.clientWidth)-e.left),t=Math.min(e.height,(window.innerHeight||document.documentElement.clientHeight)-e.top);return i*t}_getElementInfo(e){const i=e.nodeName.toLowerCase(),t={type:"",src:"",srcset:"",sizes:"",sources:[],bg_set:[],current_src:""},s=/url\(\s*?['"]?\s*?(.+?)\s*?["']?\s*?\)/ig;if(i==="img"&&e.srcset)t.type="img-srcset",t.src=e.src,t.srcset=e.srcset,t.sizes=e.sizes,t.current_src=e.currentSrc;else if(i==="img")t.type="img",t.src=e.src,t.current_src=e.currentSrc;else if(i==="video"){t.type="img";const n=e.querySelector("source");t.src=e.poster||(n?n.src:""),t.current_src=t.src}else if(i==="svg"){const n=e.querySelector("image");n&&(t.type="img",t.src=n.getAttribute("href")||"",t.current_src=t.src)}else if(i==="picture"){t.type="picture";const n=e.querySelector("img");t.src=n?n.src:"",t.sources=Array.from(e.querySelectorAll("source")).map(r=>({srcset:r.srcset||"",media:r.media||"",type:r.type||"",sizes:r.sizes||""}))}else{const r=[window.getComputedStyle(e,null).getPropertyValue("background-image"),getComputedStyle(e,":after").getPropertyValue("background-image"),getComputedStyle(e,":before").getPropertyValue("background-image")].filter(c=>c!=="none");if(r.length===0)return null;const o=r[0];if(t.type="bg-img",o.includes("image-set(")&&(t.type="bg-img-set"),!o||o===""||o.includes("data:image"))return null;const a=[...o.matchAll(s)];if(t.bg_set=a.map(c=>c[1]?{src:c[1].trim()+(c[2]?" "+c[2].trim():"")}:{}),t.bg_set.every(c=>c.src==="")&&(t.bg_set=a.map(c=>c[1]?{src:c[1].trim()}:{})),t.bg_set.length<=0)return null;t.bg_set.length>0&&(t.src=t.bg_set[0].src,t.type==="bg-img-set"&&(t.src=t.bg_set))}return t}_initWithFirstElementWithInfo(e){const i=e.find(t=>t.elementInfo!==null&&(t.elementInfo.src||t.elementInfo.srcset));if(!i){this.logger.logMessage("No LCP candidate found."),this.performanceImages=[];return}this.performanceImages=[{...i.elementInfo,label:"lcp"}]}_fillATFWithoutDuplications(e){e.forEach(({element:i,elementInfo:t})=>{this._isDuplicateImage(i)||!t||this.performanceImages.push({...t,label:"above-the-fold"})})}_isDuplicateImage(e){const i=this._getElementInfo(e);if(i===null)return!1;const t=i.type==="img"||i.type==="img-srcset"||i.type==="video",s=i.type==="bg-img"||i.type==="bg-img-set"||i.type==="picture";return(t||s)&&this.performanceImages.some(n=>n.src===i.src)}getResults(){return this.performanceImages}},f=d,m=class{constructor(e,i){this.config=e,this.logger=i,this.lazyRenderElements=[]}async run(){try{const e=this._getLazyRenderElements();e&&this._processElements(e)}catch(e){this.errorCode="script_error",this.logger.logMessage("Script Error: "+e)}}_getLazyRenderElements(){const e=document.querySelectorAll("[data-rocket-location-hash]"),i=this._getSvgUseTargets();return e.length<=0?[]:Array.from(e).filter(s=>this._skipElement(s)?!1:i.includes(s)?(this.logger.logColoredMessage(`Element skipped because of SVG: ${s.tagName}`,"orange"),!1):!0).map(s=>({element:s,depth:this._getElementDepth(s),distance:this._getElementDistance(s),hash:this._getLocationHash(s)}))}_getElementDepth(e){let i=0,t=e.parentElement;for(;t;)i++,t=t.parentElement;return i}_getElementDistance(e){const i=e.getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop;return Math.max(0,i.top+t-l.getScreenHeight())}_skipElement(e){const i=this.config.skipStrings||["memex"];return!e||!e.id?!1:i.some(t=>e.id.toLowerCase().includes(t.toLowerCase()))}_shouldSkipElement(e,i){if(!e)return!1;for(let t=0;t<i.length;t++){const[s,n]=i[t],r=e.getAttribute(s);if(r&&new RegExp(n,"i").test(r))return!0}return!1}_checkLcrConflict(e){const i=[],t=window.getComputedStyle(e),n=["marginTop","marginRight","marginBottom","marginLeft"].some(o=>parseFloat(t[o])<0);return(n||t.contentVisibility==="auto"||t.contentVisibility==="hidden")&&i.push({element:e,conflicts:[n&&"negative margin",t.contentVisibility==="auto"&&"content-visibility:auto",t.contentVisibility==="hidden"&&"content-visibility:hidden"].filter(Boolean)}),Array.from(e.children).forEach(o=>{const a=window.getComputedStyle(o),u=["marginTop","marginRight","marginBottom","marginLeft"].some(E=>parseFloat(a[E])<0);(u||a.position==="absolute"||a.position==="fixed")&&i.push({element:o,conflicts:[u&&"negative margin",a.position==="absolute"&&"position:absolute",a.position==="fixed"&&"position:fixed"].filter(Boolean)})}),i}_processElements(e){e.forEach(({element:i,depth:t,distance:s,hash:n})=>{if(this._shouldSkipElement(i,this.config.exclusions||[])||n==="No hash detected")return;const r=this._checkLcrConflict(i);if(r.length>0){this.logger.logMessage("Skipping element due to conflicts:",r);return}const o=i.parentElement&&this._getElementDistance(i.parentElement)<this.config.lrc_threshold&&s>=this.config.lrc_threshold,a=o?"green":s===0?"red":"";this.logger.logColoredMessage(`${"	".repeat(t)}${i.tagName} (Depth: ${t}, Distance from viewport bottom: ${s}px)`,a),this.logger.logColoredMessage(`${"	".repeat(t)}Location hash: ${n}`,a),this.logger.logColoredMessage(`${"	".repeat(t)}Dimensions Client Height: ${i.clientHeight}`,a),o&&(this.lazyRenderElements.push(n),this.logger.logMessage(`Element pushed with hash: ${n}`))})}_getXPath(e){return e&&e.id!==""?`//*[@id="${e.id}"]`:this._getElementXPath(e)}_getElementXPath(e){if(e===document.body)return"/html/body";const i=this._getElementPosition(e);return`${this._getElementXPath(e.parentNode)}/${e.nodeName.toLowerCase()}[${i}]`}_getElementPosition(e){let i=1,t=e.previousElementSibling;for(;t;)t.nodeName===e.nodeName&&i++,t=t.previousElementSibling;return i}_getLocationHash(e){return e.hasAttribute("data-rocket-location-hash")?e.getAttribute("data-rocket-location-hash"):"No hash detected"}_getSvgUseTargets(){const e=document.querySelectorAll("use"),i=new Set;return e.forEach(t=>{let s=t.parentElement;for(;s&&s!==document.body;)i.add(s),s=s.parentElement}),Array.from(i)}getResults(){return this.lazyRenderElements}},p=m,_=class{constructor(e){this.enabled=e}logMessage(e){this.enabled&&console.log(e)}logColoredMessage(e,i="green"){this.enabled&&console.log(`%c${e}`,`color: ${i};`)}},b=_,y=class{constructor(e){this.config=e,this.lcpBeacon=null,this.lrcBeacon=null,this.infiniteLoopId=null,this.errorCode="",this.logger=new b(this.config.debug)}async init(){if(this.scriptTimer=new Date,!await this._isValidPreconditions()){this._finalize();return}if(l.isPageScrolled()){this.logger.logMessage("Bailing out because the page has been scrolled"),this._finalize();return}this.infiniteLoopId=setTimeout(()=>{this._handleInfiniteLoop()},1e4);const e=await this._getGeneratedBefore(),i=this.config.status.atf&&(e===!1||e.lcp===!1),t=this.config.status.lrc&&(e===!1||e.lrc===!1);i?(this.lcpBeacon=new f(this.config,this.logger),await this.lcpBeacon.run()):this.logger.logMessage("Not running BeaconLcp because data is already available or feature is disabled"),t?(this.lrcBeacon=new p(this.config,this.logger),await this.lrcBeacon.run()):this.logger.logMessage("Not running BeaconLrc because data is already available or feature is disabled"),i||t?this._saveFinalResultIntoDB():(this.logger.logMessage("Not saving results into DB as no beacon features ran."),this._finalize())}async _isValidPreconditions(){const e={width:this.config.width_threshold,height:this.config.height_threshold};return l.isNotValidScreensize(this.config.is_mobile,e)?(this.logger.logMessage("Bailing out because screen size is not acceptable"),!1):!0}async _getGeneratedBefore(){if(!l.isPageCached())return!1;let e=new FormData;return e.append("action","rocket_check_beacon"),e.append("rocket_beacon_nonce",this.config.nonce),e.append("url",this.config.url),e.append("is_mobile",this.config.is_mobile),(await fetch(this.config.ajax_url,{method:"POST",credentials:"same-origin",body:e}).then(t=>t.json())).data}_saveFinalResultIntoDB(){const e={lcp:this.lcpBeacon?this.lcpBeacon.getResults():null,lrc:this.lrcBeacon?this.lrcBeacon.getResults():null},i=new FormData;i.append("action","rocket_beacon"),i.append("rocket_beacon_nonce",this.config.nonce),i.append("url",this.config.url),i.append("is_mobile",this.config.is_mobile),i.append("status",this._getFinalStatus()),i.append("results",JSON.stringify(e)),fetch(this.config.ajax_url,{method:"POST",credentials:"same-origin",body:i,headers:{"wpr-saas-no-intercept":!0}}).then(t=>t.json()).then(t=>{this.logger.logMessage(t.data.lcp)}).catch(t=>{this.logger.logMessage(t)}).finally(()=>{this._finalize()})}_getFinalStatus(){return this.errorCode!==""?this.errorCode:10<=(new Date-this.scriptTimer)/1e3?"timeout":"success"}_handleInfiniteLoop(){this._saveFinalResultIntoDB()}_finalize(){document.querySelector('[data-name="wpr-wpr-beacon"]').setAttribute("beacon-completed","true"),clearTimeout(this.infiniteLoopId)}},g=y;(e=>{if(!e)return;const i=new g(e);if(document.readyState!=="loading"){setTimeout(()=>{i.init()},e.delay);return}document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{i.init()},e.delay)})})(window.rocket_beacon_data);var w=g})()