var wpml_cookies={"wp-wpml_current_language":{"value":"en","expires":1,"path":"\/"}};var wpml_cookies={"wp-wpml_current_language":{"value":"en","expires":1,"path":"\/"}};
seraph_accel_gzjydy();/*! 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();
seraph_accel_gzjydy();"undefined"
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
==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});
seraph_accel_gzjydy();var show_msg='0';if(show_msg!=='0'){var options={view_src:"View Source is disabled!",inspect_elem:"Inspect Element is disabled!",right_click:"Right click is disabled!",copy_cut_paste_content:"Cut/Copy/Paste is disabled!",image_drop:"Image Drag-n-Drop is disabled!"}}else{var options='';}
function nocontextmenu(e){return false;}
document.oncontextmenu=nocontextmenu;document.ondragstart=function(){return false;}
document.onmousedown=function(event){event=(event||window.event);if(event.keyCode===123){if(show_msg!=='0'){show_toast('inspect_elem');}
return false;}}
document.onkeydown=function(event){event=(event||window.event);if(event.keyCode===123||event.ctrlKey&&event.shiftKey&&event.keyCode===73||event.ctrlKey&&event.shiftKey&&event.keyCode===75){if(show_msg!=='0'){show_toast('inspect_elem');}
return false;}
if(event.ctrlKey&&event.keyCode===85){if(show_msg!=='0'){show_toast('view_src');}
return false;}}
function addMultiEventListener(element,eventNames,listener){var events=eventNames.split(' ');for(var i=0,iLen=events.length;i<iLen;i++){element.addEventListener(events[i],function(e){e.preventDefault();if(show_msg!=='0'){show_toast(listener);}});}}
addMultiEventListener(document,'contextmenu','right_click');addMultiEventListener(document,'cut copy paste print','copy_cut_paste_content');addMultiEventListener(document,'drag drop','image_drop');function show_toast(text){var x=document.getElementById("amm_drcfw_toast_msg");x.innerHTML=eval('options.'+text);x.className="show";setTimeout(function(){x.className=x.className.replace("show","")},3000);};
seraph_accel_gzjydy();
// Copyright 2012 Google Inc. All rights reserved.
 
(function(){

var data = {
"resource": {
  "version":"1",
  
  "macros":[{"function":"__e"}],
  "tags":[{"function":"__ogt_ads_datatos","priority":15,"vtp_instanceDestinationId":"AW-16541267414","tag_id":9},{"function":"__ogt_1p_data_v2","priority":5,"vtp_isAutoEnabled":true,"vtp_autoCollectExclusionSelectors":["list",["map","exclusionSelector",""]],"vtp_isEnabled":true,"vtp_cityType":"CSS_SELECTOR","vtp_manualEmailEnabled":false,"vtp_firstNameType":"CSS_SELECTOR","vtp_countryType":"CSS_SELECTOR","vtp_cityValue":"","vtp_emailType":"CSS_SELECTOR","vtp_regionType":"CSS_SELECTOR","vtp_autoEmailEnabled":true,"vtp_postalCodeValue":"","vtp_lastNameValue":"","vtp_phoneType":"CSS_SELECTOR","vtp_phoneValue":"","vtp_streetType":"CSS_SELECTOR","vtp_autoPhoneEnabled":false,"vtp_postalCodeType":"CSS_SELECTOR","vtp_emailValue":"","vtp_firstNameValue":"","vtp_streetValue":"","vtp_lastNameType":"CSS_SELECTOR","vtp_autoAddressEnabled":false,"vtp_regionValue":"","vtp_countryValue":"","vtp_isAutoCollectPiiEnabledFlag":false,"tag_id":4},{"function":"__ccd_ads_first","priority":4,"vtp_instanceDestinationId":"AW-16541267414","tag_id":10},{"function":"__ccd_em_form","priority":2,"vtp_includeParams":false,"vtp_instanceDestinationId":"AW-16541267414","tag_id":8},{"function":"__ccd_add_1p_data","priority":1,"vtp_acceptAutomatic":true,"vtp_acceptCode":true,"vtp_acceptManualSelector":true,"vtp_acceptUserData":true,"vtp_matchingRules":"{\"type\":1,\"args\":[{\"booleanExpressionValue\":{\"type\":5,\"args\":[{\"stringValue\":\"conversion\"},{\"contextValue\":{\"namespaceType\":1,\"keyParts\":[\"metadata\",\"hit_type\"]}}]}},{\"booleanExpressionValue\":{\"type\":5,\"args\":[{\"stringValue\":\"user_data_web\"},{\"contextValue\":{\"namespaceType\":1,\"keyParts\":[\"metadata\",\"hit_type\"]}}]}}]}","vtp_instanceDestinationId":"AW-16541267414","tag_id":7},{"function":"__rep","vtp_containerId":"AW-16541267414","vtp_remoteConfig":["map","enhanced_conversions",["map"]],"tag_id":1},{"function":"__ccd_ads_last","priority":0,"vtp_instanceDestinationId":"AW-16541267414","tag_id":6}],
  "predicates":[{"function":"_eq","arg0":["macro",0],"arg1":"gtm.js"},{"function":"_eq","arg0":["macro",0],"arg1":"gtm.init"}],
  "rules":[[["if",0],["add",5]],[["if",1],["add",1,6,4,3,0,2]]]
},
"runtime":[ [50,"__ccd_add_1p_data",[46,"a"],[52,"b","c"],[52,"c","m"],[52,"d","a"],[52,"e","user_data_mode"],[52,"f","user_data_lead"],[52,"g","user_data_web"],[52,"h","hit_type"],[52,"i","send_user_data_hit"],[52,"j","is_sgtm_prehit"],[52,"k",[13,[41,"$0"],[3,"$0",["require","internal.getFlags"]],["$0"]]],[52,"l",["require","getContainerVersion"]],[52,"m",[30,[17,[15,"a"],"instanceDestinationId"],[17,["l"],"containerId"]]],[52,"n",["require","internal.setProductSettingsParameter"]],["n",[15,"m"],"ccd_add_1p_data",true],[22,[30,[30,[28,[17,[15,"a"],"matchingRules"]],[28,[17,[15,"a"],"acceptUserData"]]],[1,[1,[28,[17,[15,"a"],"acceptAutomatic"]],[28,[17,[15,"a"],"acceptManualSelector"]]],[28,[17,[15,"a"],"acceptCode"]]]],[46,[2,[15,"a"],"gtmOnSuccess",[7]],[36]]],[52,"o",["require","internal.registerCcdCallback"]],[52,"p",["require","internal.evaluateBooleanExpression"]],[52,"q",[51,"",[7,"r"],[22,[28,["p",[17,[15,"a"],"matchingRules"],[8,"preHit",[15,"r"]]]],[46,[36]]],[22,[2,[15,"r"],"getMetadata",[7,[15,"j"]]],[46,[2,[15,"r"],"setMetadata",[7,[15,"i"],true]],[36]]],[41,"s"],[41,"t"],[22,[17,[15,"a"],"acceptCode"],[46,[3,"t",[2,[15,"r"],"getMetadata",[7,"user_data_from_code"]]],[22,[20,[15,"t"],[45]],[46,[36]]],[22,[1,[1,[15,"t"],[16,[15,"k"],"enableGtmEcModeFix"]],[16,[15,"t"],"_tag_mode"]],[46,[38,[16,[15,"t"],"_tag_mode"],[46,"AUTO","MANUAL"],[46,[5,[46,[3,"s",[15,"d"]],[4]]],[5,[46,[3,"s",[15,"c"]],[4]]],[9,[46,[3,"s",[15,"b"]],[4]]]]]],[46,[3,"s",[15,"b"]]]]]],[22,[1,[28,[15,"t"]],[17,[15,"a"],"acceptManualSelector"]],[46,[3,"t",[2,[15,"r"],"getMetadata",[7,"user_data_from_manual"]]],[3,"s",[15,"c"]]]],[22,[1,[28,[15,"t"]],[17,[15,"a"],"acceptAutomatic"]],[46,[53,[52,"u",[2,[15,"r"],"getMetadata",[7,"user_data_from_automatic_getter"]]],[22,[15,"u"],[46,[3,"t",["u",[15,"r"]]],[3,"s",[15,"d"]]]]]]],[22,[15,"t"],[46,[2,[15,"r"],"setMetadata",[7,"user_data",[15,"t"]]],[2,[15,"r"],"setHitData",[7,[15,"e"],[15,"s"]]]]],[2,[15,"r"],"setMetadata",[7,[15,"i"],true]]]],["o",[15,"m"],[15,"q"]],[2,[15,"a"],"gtmOnSuccess",[7]]]
 ,[50,"__ccd_ads_first",[46,"a"],[2,[15,"a"],"gtmOnSuccess",[7]]]
 ,[50,"__ccd_ads_last",[46,"a"],[52,"b",[13,[41,"$0"],[3,"$0",["require","internal.getFlags"]],["$0"]]],[52,"c",["require","internal.registerCcdCallback"]],[52,"d","hit_type"],[52,"e","conversion_label"],[52,"f","conversion"],[52,"g",[16,[15,"b"],"enableAdsConversionValidation"]],[22,[28,[15,"g"]],[46,[2,[15,"a"],"gtmOnSuccess",[7]],[36]]],["c",[17,[15,"a"],"instanceDestinationId"],[51,"",[7,"h"],[52,"i",[2,[15,"h"],"getMetadata",[7,[15,"d"]]]],[22,[1,[20,[15,"i"],[15,"f"]],[28,[2,[15,"h"],"getHitData",[7,[15,"e"]]]]],[46,[2,[15,"h"],"abort",[7]]]]]],[2,[15,"a"],"gtmOnSuccess",[7]]]
 ,[50,"__ccd_em_form",[46,"a"],[50,"t",[46,"ba"],[52,"bb",[30,[16,[15,"ba"],[15,"l"]],[8]]],[43,[15,"bb"],"event_usage",[7,8]],[43,[15,"ba"],[15,"l"],[15,"bb"]]],[50,"u",[46,"ba","bb"],[52,"bc",[30,[16,[15,"ba"],[15,"l"]],[8]]],[43,[15,"bc"],[15,"k"],true],[43,[15,"bc"],[15,"f"],true],[22,[1,[15,"o"],[16,[15,"bb"],"gtm.formCanceled"]],[46,[43,[15,"bc"],[15,"m"],true]]],[43,[15,"ba"],[15,"l"],[15,"bc"]]],[50,"v",[46,"ba","bb","bc"],[52,"bd",[2,["r"],"filter",[7,[51,"",[7,"bf"],[36,[20,[2,[15,"bf"],"indexOf",[7,"AW-"]],0]]]]]],[22,[18,[17,[15,"bd"],"length"],0],[46,["s",[15,"bd"],[15,"ba"],[15,"bb"],[15,"bc"]]]],[52,"be",[2,["r"],"filter",[7,[51,"",[7,"bf"],[36,[21,[2,[15,"bf"],"indexOf",[7,"AW-"]],0]]]]]],[22,[18,[17,[15,"be"],"length"],0],[46,[22,[16,[15,"b"],"enableDeferAllEnhancedMeasurement"],[46,[43,[15,"bc"],"deferrable",true]]],["s",[15,"be"],[15,"ba"],[15,"bb"],[15,"bc"]]]]],[52,"b",[13,[41,"$0"],[3,"$0",["require","internal.getFlags"]],["$0"]]],[52,"c",["require","internal.getProductSettingsParameter"]],[52,"d",["require","templateStorage"]],[52,"e",[15,"__module_ccdEmFormActivity"]],[52,"f","speculative"],[52,"g","ae_block_form"],[52,"h","form_submit"],[52,"i","form_start"],[52,"j","isRegistered"],[52,"k","em_event"],[52,"l","eventMetadata"],[52,"m","form_event_canceled"],[52,"n",[17,[15,"a"],"instanceDestinationId"]],[52,"o",[28,[28,[16,[15,"b"],"enableFormSkipValidation"]]]],[22,["c",[15,"n"],[15,"g"]],[46,[2,[15,"a"],"gtmOnSuccess",[7]],[36]]],[2,[15,"e"],"registerFormActivityCallback",[7,[17,[15,"a"],"instanceDestinationId"],[17,[15,"a"],"skipValidation"],[17,[15,"a"],"includeParams"]]],[22,[2,[15,"d"],"getItem",[7,[15,"j"]]],[46,[2,[15,"a"],"gtmOnSuccess",[7]],[36]]],[2,[15,"d"],"setItem",[7,[15,"j"],true]],[52,"p",["require","internal.addFormInteractionListener"]],[52,"q",["require","internal.addFormSubmitListener"]],[52,"r",["require","internal.getDestinationIds"]],[52,"s",["require","internal.sendGtagEvent"]],[52,"w",[8]],[52,"x",[51,"",[7,"ba","bb"],[22,[15,"bb"],[46,["bb"]]],[52,"bc",[16,[15,"ba"],"gtm.elementId"]],[22,[16,[15,"w"],[15,"bc"]],[46,[36]]],[43,[15,"w"],[15,"bc"],true],[52,"bd",[8,"form_id",[15,"bc"],"form_name",[16,[15,"ba"],"gtm.interactedFormName"],"form_destination",[16,[15,"ba"],"gtm.elementUrl"],"form_length",[16,[15,"ba"],"gtm.interactedFormLength"],"first_field_id",[16,[15,"ba"],"gtm.interactedFormFieldId"],"first_field_name",[16,[15,"ba"],"gtm.interactedFormFieldName"],"first_field_type",[16,[15,"ba"],"gtm.interactedFormFieldType"],"first_field_position",[16,[15,"ba"],"gtm.interactedFormFieldPosition"]]],[52,"be",[8,"eventId",[17,[15,"a"],"gtmEventId"]]],["t",[15,"be"]],["u",[15,"be"],[15,"ba"]],["v",[15,"i"],[15,"bd"],[15,"be"]]]],[52,"y",[16,[15,"b"],"useEnableAutoEventOnFormApis"]],[52,"z",[51,"",[7,"ba","bb"],["x",[15,"ba"],[44]],[52,"bc",[8,"form_id",[16,[15,"ba"],"gtm.elementId"],"form_name",[16,[15,"ba"],"gtm.interactedFormName"],"form_destination",[16,[15,"ba"],"gtm.elementUrl"],"form_length",[16,[15,"ba"],"gtm.interactedFormLength"],"form_submit_text",[39,[15,"y"],[16,[15,"ba"],"gtm.formSubmitElementText"],[16,[15,"ba"],"gtm.formSubmitButtonText"]]]],[43,[15,"bc"],"event_callback",[15,"bb"]],[52,"bd",[8,"eventId",[17,[15,"a"],"gtmEventId"]]],["t",[15,"bd"]],["u",[15,"bd"],[15,"ba"]],["v",[15,"h"],[15,"bc"],[15,"bd"]]]],[22,[15,"y"],[46,[53,[52,"ba",["require","internal.addDataLayerEventListener"]],[52,"bb",["require","internal.enableAutoEventOnFormSubmit"]],[52,"bc",["require","internal.enableAutoEventOnFormInteraction"]],[52,"bd",["bc"]],[22,[28,[15,"bd"]],[46,[2,[15,"a"],"gtmOnFailure",[7]],[36]]],["ba","gtm.formInteract",[15,"x"],[15,"bd"]],[52,"be",["bb",[8,"checkValidation",[28,[15,"o"]],"waitForTags",false]]],[22,[28,[15,"be"]],[46,[2,[15,"a"],"gtmOnFailure",[7]],[36]]],["ba","gtm.formSubmit",[15,"z"],[15,"be"]]]],[46,["p",[15,"x"]],["q",[15,"z"],[8,"waitForCallbacks",false,"checkValidation",[28,[15,"o"]]]]]],[2,[15,"a"],"gtmOnSuccess",[7]]]
 ,[50,"__e",[46,"a"],[36,[13,[41,"$0"],[3,"$0",["require","internal.getEventData"]],["$0","event"]]]]
 ,[50,"__ogt_1p_data_v2",[46,"a"],[50,"k",[46,"m","n","o"],[22,[20,[16,[15,"n"],"type"],[15,"o"]],[46,[22,[28,[15,"m"]],[46,[3,"m",[8]]]],[22,[28,[16,[15,"m"],[15,"o"]]],[46,[43,[15,"m"],[15,"o"],[16,[15,"n"],"userData"]]]]]],[36,[15,"m"]]],[50,"l",[46,"m","n","o"],[22,[28,[16,[15,"a"],[15,"o"]]],[46,[36]]],[43,[15,"m"],[15,"n"],[8,"value",[16,[15,"a"],[15,"o"]]]]],[22,[28,[17,[15,"a"],"isEnabled"]],[46,[2,[15,"a"],"gtmOnSuccess",[7]],[36]]],[52,"b",[13,[41,"$0"],[3,"$0",["require","internal.getFlags"]],["$0"]]],[52,"c",["require","internal.getDestinationIds"]],[52,"d",["require","internal.getProductSettingsParameter"]],[52,"e",["require","internal.detectUserProvidedData"]],[52,"f",["require","queryPermission"]],[52,"g",["require","internal.setRemoteConfigParameter"]],[52,"h",["require","internal.registerCcdCallback"]],[52,"i",[30,["c"],[7]]],[52,"j",[8,"enable_code",true]],[22,[17,[15,"a"],"isAutoEnabled"],[46,[53,[52,"m",[7]],[22,[1,[17,[15,"a"],"autoCollectExclusionSelectors"],[17,[17,[15,"a"],"autoCollectExclusionSelectors"],"length"]],[46,[53,[41,"p"],[3,"p",0],[63,[7,"p"],[23,[15,"p"],[17,[17,[15,"a"],"autoCollectExclusionSelectors"],"length"]],[33,[15,"p"],[3,"p",[0,[15,"p"],1]]],[46,[53,[52,"q",[17,[16,[17,[15,"a"],"autoCollectExclusionSelectors"],[15,"p"]],"exclusionSelector"]],[22,[15,"q"],[46,[2,[15,"m"],"push",[7,[15,"q"]]]]]]]]]]],[52,"n",[30,[16,[15,"b"],"enableAutoPhoneAndAddressDetection"],[17,[15,"a"],"isAutoCollectPiiEnabledFlag"]]],[52,"o",[39,[17,[15,"a"],"isAutoCollectPiiEnabledFlag"],[17,[15,"a"],"autoEmailEnabled"],true]],[43,[15,"j"],"auto_detect",[8,"email",[15,"o"],"phone",[1,[15,"n"],[17,[15,"a"],"autoPhoneEnabled"]],"address",[1,[15,"n"],[17,[15,"a"],"autoAddressEnabled"]],"exclude_element_selectors",[15,"m"]]]]]],[22,[17,[15,"a"],"isManualEnabled"],[46,[53,[52,"m",[8]],[22,[17,[15,"a"],"manualEmailEnabled"],[46,["l",[15,"m"],"email","emailValue"]]],[22,[17,[15,"a"],"manualPhoneEnabled"],[46,["l",[15,"m"],"phone","phoneValue"]]],[22,[17,[15,"a"],"manualAddressEnabled"],[46,[53,[52,"n",[8]],["l",[15,"n"],"first_name","firstNameValue"],["l",[15,"n"],"last_name","lastNameValue"],["l",[15,"n"],"street","streetValue"],["l",[15,"n"],"city","cityValue"],["l",[15,"n"],"region","regionValue"],["l",[15,"n"],"country","countryValue"],["l",[15,"n"],"postal_code","postalCodeValue"],[43,[15,"m"],"name_and_address",[7,[15,"n"]]]]]],[43,[15,"j"],"selectors",[15,"m"]]]]],[65,"m",[15,"i"],[46,[53,["g",[15,"m"],"user_data_settings",[15,"j"]],[52,"n",[16,[15,"j"],"auto_detect"]],[22,[28,[15,"n"]],[46,[6]]],[52,"o",[51,"",[7,"p"],[52,"q",[2,[15,"p"],"getMetadata",[7,"user_data_from_automatic"]]],[22,[15,"q"],[46,[36,[15,"q"]]]],[41,"r"],[22,["f","detect_user_provided_data","auto"],[46,[3,"r",["e",[8,"excludeElementSelectors",[16,[15,"n"],"exclude_element_selectors"],"fieldFilters",[8,"email",[16,[15,"n"],"email"],"phone",[16,[15,"n"],"phone"],"address",[16,[15,"n"],"address"]]]]]]],[52,"s",[1,[15,"r"],[16,[15,"r"],"elements"]]],[52,"t",[8]],[22,[1,[15,"s"],[18,[17,[15,"s"],"length"],0]],[46,[53,[41,"u"],[53,[41,"v"],[3,"v",0],[63,[7,"v"],[23,[15,"v"],[17,[15,"s"],"length"]],[33,[15,"v"],[3,"v",[0,[15,"v"],1]]],[46,[53,[52,"w",[16,[15,"s"],[15,"v"]]],["k",[15,"t"],[15,"w"],"email"],[22,[16,[15,"b"],"enableAutoPiiOnPhoneAndAddress"],[46,["k",[15,"t"],[15,"w"],"phone_number"],[3,"u",["k",[15,"u"],[15,"w"],"first_name"]],[3,"u",["k",[15,"u"],[15,"w"],"last_name"]],[3,"u",["k",[15,"u"],[15,"w"],"country"]],[3,"u",["k",[15,"u"],[15,"w"],"postal_code"]]]]]]]],[22,[1,[15,"u"],[28,[16,[15,"t"],"address"]]],[46,[43,[15,"t"],"address",[15,"u"]]]]]]],[2,[15,"p"],"setMetadata",[7,"user_data_from_automatic",[15,"t"]]],[36,[15,"t"]]]],["h",[15,"m"],[51,"",[7,"p"],[2,[15,"p"],"setMetadata",[7,"user_data_from_automatic_getter",[15,"o"]]]]]]]],[2,[15,"a"],"gtmOnSuccess",[7]]]
 ,[50,"__ogt_ads_datatos",[46,"a"],[52,"b",["require","internal.setProductSettingsParameter"]],[52,"c",[17,[15,"a"],"instanceDestinationId"]],["b",[15,"c"],"ads_customer_data_terms",true],[2,[15,"a"],"gtmOnSuccess",[7]]]
 ,[52,"__module_ccdEmFormActivity",[13,[41,"$0"],[3,"$0",[51,"",[7],[50,"a",[46],[50,"l",[46,"m","n","o"],[22,[1,[15,"k"],[20,[15,"n"],[44]]],[46,[3,"n",[20,[2,[15,"m"],"indexOf",[7,"AW-"]],0]]]],["d",[15,"m"],[51,"",[7,"p"],[52,"q",[2,[15,"p"],"getEventName",[7]]],[52,"r",[30,[20,[15,"q"],[15,"h"]],[20,[15,"q"],[15,"g"]]]],[22,[30,[28,[15,"r"]],[28,[2,[15,"p"],"getMetadata",[7,[15,"i"]]]]],[46,[36]]],[22,["c",[15,"m"],[15,"f"]],[46,[2,[15,"p"],"abort",[7]],[36]]],[22,[15,"k"],[46,[22,[1,[28,[15,"n"]],[2,[15,"p"],"getMetadata",[7,[15,"j"]]]],[46,[2,[15,"p"],"abort",[7]],[36]]]]],[2,[15,"p"],"setMetadata",[7,[15,"e"],false]],[22,[28,[15,"o"]],[46,[2,[15,"p"],"setHitData",[7,"form_id",[44]]],[2,[15,"p"],"setHitData",[7,"form_name",[44]]],[2,[15,"p"],"setHitData",[7,"form_destination",[44]]],[2,[15,"p"],"setHitData",[7,"form_length",[44]]],[22,[20,[15,"q"],[15,"g"]],[46,[2,[15,"p"],"setHitData",[7,"form_submit_text",[44]]]],[46,[22,[20,[15,"q"],[15,"h"]],[46,[2,[15,"p"],"setHitData",[7,"first_field_id",[44]]],[2,[15,"p"],"setHitData",[7,"first_field_name",[44]]],[2,[15,"p"],"setHitData",[7,"first_field_type",[44]]],[2,[15,"p"],"setHitData",[7,"first_field_position",[44]]]]]]]]]]]],[52,"b",[13,[41,"$0"],[3,"$0",["require","internal.getFlags"]],["$0"]]],[52,"c",["require","internal.getProductSettingsParameter"]],[52,"d",["require","internal.registerCcdCallback"]],[52,"e","speculative"],[52,"f","ae_block_form"],[52,"g","form_submit"],[52,"h","form_start"],[52,"i","em_event"],[52,"j","form_event_canceled"],[52,"k",[28,[28,[16,[15,"b"],"enableFormSkipValidation"]]]],[36,[8,"registerFormActivityCallback",[15,"l"]]]],[36,["a"]]]],["$0"]]]
 
]
,"entities":{
"__ccd_add_1p_data":{"2":true,"4":true}
,
"__ccd_ads_first":{"2":true,"4":true}
,
"__ccd_ads_last":{"2":true,"4":true}
,
"__ccd_em_form":{"2":true,"4":true}
,
"__e":{"2":true,"4":true}
,
"__ogt_1p_data_v2":{"2":true}
,
"__ogt_ads_datatos":{"2":true}


}
,"blob":{"1":"1"}
,"permissions":{
"__ccd_add_1p_data":{"read_container_data":{}}
,
"__ccd_ads_first":{}
,
"__ccd_ads_last":{}
,
"__ccd_em_form":{"access_template_storage":{},"listen_data_layer":{"accessType":"specific","allowedEvents":["gtm.formInteract","gtm.formSubmit"]},"detect_form_submit_events":{"allowWaitForTags":""},"detect_form_interaction_events":{}}
,
"__e":{"read_event_data":{"eventDataAccess":"specific","keyPatterns":["event"]}}
,
"__ogt_1p_data_v2":{"detect_user_provided_data":{"limitDataSources":true,"allowAutoDataSources":true,"allowManualDataSources":false,"allowCodeDataSources":false}}
,
"__ogt_ads_datatos":{}


}



,"security_groups":{
"google":[
"__ccd_add_1p_data"
,
"__ccd_ads_first"
,
"__ccd_ads_last"
,
"__ccd_em_form"
,
"__e"
,
"__ogt_1p_data_v2"
,
"__ogt_ads_datatos"

]


}



};




var ca,da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ea=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},fa=function(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c<b.length;++c){var d=b[c];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");
},ha=fa(this),ia=function(a,b){if(b)a:{for(var c=ha,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}var g=d[d.length-1],k=c[g],m=b(k);m!=k&&m!=null&&ea(c,g,{configurable:!0,writable:!0,value:m})}};
ia("Symbol",function(a){if(a)return a;var b=function(f,g){this.j=f;ea(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.j};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e});
var la=function(a){return ka(a,a)},ka=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},h=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:da(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},oa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},pa=function(a){return a instanceof Array?a:oa(h(a))},qa=typeof Object.assign=="function"?Object.assign:
function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])}return a};ia("Object.assign",function(a){return a||qa});var ra=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},sa;
if(typeof Object.setPrototypeOf=="function")sa=Object.setPrototypeOf;else{var ta;a:{var ua={a:!0},va={};try{va.__proto__=ua;ta=va.a;break a}catch(a){}ta=!1}sa=ta?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var wa=sa,xa=function(a,b){a.prototype=ra(b.prototype);a.prototype.constructor=a;if(wa)wa(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Xn=b.prototype},ya=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var za=this||self;var Aa=function(a,b){this.type=a;this.data=b};var Ca=function(){this.map={};this.C={}};ca=Ca.prototype;ca.get=function(a){return this.map["dust."+a]};ca.set=function(a,b){var c="dust."+a;this.C.hasOwnProperty(c)||(this.map[c]=b)};ca.fi=function(a,b){this.set(a,b);this.C["dust."+a]=!0};ca.has=function(a){return this.map.hasOwnProperty("dust."+a)};ca.remove=function(a){var b="dust."+a;this.C.hasOwnProperty(b)||delete this.map[b]};
var Ea=function(a,b){var c=[],d;for(d in a.map)if(a.map.hasOwnProperty(d)){var e=d.substring(5);switch(b){case 1:c.push(e);break;case 2:c.push(a.map[d]);break;case 3:c.push([e,a.map[d]])}}return c};Ca.prototype.Ka=function(){return Ea(this,1)};Ca.prototype.Fh=function(){return Ea(this,2)};Ca.prototype.Yf=function(){return Ea(this,3)};var Fa=function(){};Fa.prototype.reset=function(){};var Ga=function(a,b){this.P=a;this.parent=b;this.j=this.C=void 0;this.K=!1;this.H=function(c,d,e){return c.apply(d,e)};this.values=new Ca};Ga.prototype.add=function(a,b){Ha(this,a,b,!1)};var Ha=function(a,b,c,d){a.K||(d?a.values.fi(b,c):a.values.set(b,c))};Ga.prototype.set=function(a,b){this.K||(!this.values.has(a)&&this.parent&&this.parent.has(a)?this.parent.set(a,b):this.values.set(a,b))};Ga.prototype.get=function(a){return this.values.has(a)?this.values.get(a):this.parent?this.parent.get(a):void 0};
Ga.prototype.has=function(a){return!!this.values.has(a)||!(!this.parent||!this.parent.has(a))};var Ia=function(a){var b=new Ga(a.P,a);a.C&&(b.C=a.C);b.H=a.H;b.j=a.j;return b};Ga.prototype.xd=function(){return this.P};Ga.prototype.Ma=function(){this.K=!0};function Ja(a,b){for(var c,d=h(b),e=d.next();!e.done&&!(c=Ka(a,e.value),c instanceof Aa);e=d.next());return c}function Ka(a,b){try{var c=h(b),d=c.next().value,e=oa(c),f=a.get(String(d));if(!f||typeof f.invoke!=="function")throw Error("Attempting to execute non-function "+b[0]+".");return f.invoke.apply(f,[a].concat(pa(e)))}catch(k){var g=a.C;g&&g(k,b.context?{id:b[0],line:b.context.line}:null);throw k;}};var La=function(){this.C=new Fa;this.j=new Ga(this.C)};ca=La.prototype;ca.xd=function(){return this.C};ca.execute=function(a){return this.ei([a].concat(pa(ya.apply(1,arguments))))};ca.ei=function(){for(var a,b=h(ya.apply(0,arguments)),c=b.next();!c.done;c=b.next())a=Ka(this.j,c.value);return a};ca.Wk=function(a){var b=ya.apply(1,arguments),c=Ia(this.j);c.j=a;for(var d,e=h(b),f=e.next();!f.done;f=e.next())d=Ka(c,f.value);return d};ca.Ma=function(){this.j.Ma()};var Na=function(){Ca.call(this);this.j=!1};xa(Na,Ca);ca=Na.prototype;ca.set=function(a,b){this.j||Ca.prototype.set.call(this,a,b)};ca.fi=function(a,b){this.j||Ca.prototype.fi.call(this,a,b)};ca.remove=function(a){this.j||Ca.prototype.remove.call(this,a)};ca.Ma=function(){this.j=!0};ca.Xk=function(){return this.j};/*
 jQuery (c) 2005, 2012 jQuery Foundation, Inc. jquery.org/license.
*/
var Oa=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/,Pa=function(a){if(a==null)return String(a);var b=Oa.exec(Object.prototype.toString.call(Object(a)));return b?b[1].toLowerCase():"object"},Qa=function(a,b){return Object.prototype.hasOwnProperty.call(Object(a),b)},Sa=function(a){if(!a||Pa(a)!="object"||a.nodeType||a==a.window)return!1;try{if(a.constructor&&!Qa(a,"constructor")&&!Qa(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var b in a);return b===void 0||
Qa(a,b)},Ta=function(a,b){var c=b||(Pa(a)=="array"?[]:{}),d;for(d in a)if(Qa(a,d)){var e=a[d];Pa(e)=="array"?(Pa(c[d])!="array"&&(c[d]=[]),c[d]=Ta(e,c[d])):Sa(e)?(Sa(c[d])||(c[d]={}),c[d]=Ta(e,c[d])):c[d]=e}return c};function Ua(a){if(a==void 0||Array.isArray(a)||Sa(a))return!0;switch(typeof a){case "boolean":case "number":case "string":case "function":return!0}return!1}function Va(a){return typeof a==="number"&&a>=0&&isFinite(a)&&a%1===0||typeof a==="string"&&a[0]!=="-"&&a===""+parseInt(a)};var Wa=function(a){a=a===void 0?[]:a;Na.call(this);this.values=[];for(var b in a)a.hasOwnProperty(b)&&(Va(b)?this.values[Number(b)]=a[Number(b)]:Na.prototype.set.call(this,b,a[b]))};xa(Wa,Na);ca=Wa.prototype;ca.toString=function(a){if(a&&a.indexOf(this)>=0)return"";for(var b=[],c=0;c<this.values.length;c++){var d=this.values[c];d===null||d===void 0?b.push(""):d instanceof Wa?(a=a||[],a.push(this),b.push(d.toString(a)),a.pop()):b.push(String(d))}return b.join(",")};
ca.set=function(a,b){if(!Na.prototype.Xk.call(this))if(a==="length"){if(!Va(b))throw Error("RangeError: Length property must be a valid integer.");this.values.length=Number(b)}else Va(a)?this.values[Number(a)]=b:Na.prototype.set.call(this,a,b)};ca.get=function(a){return a==="length"?this.length():Va(a)?this.values[Number(a)]:Na.prototype.get.call(this,a)};ca.length=function(){return this.values.length};
ca.Ka=function(){for(var a=Na.prototype.Ka.call(this),b=0;b<this.values.length;b++)this.values.hasOwnProperty(b)&&a.push(String(b));return a};ca.Fh=function(){for(var a=Na.prototype.Fh.call(this),b=0;b<this.values.length;b++)this.values.hasOwnProperty(b)&&a.push(this.values[b]);return a};ca.Yf=function(){for(var a=Na.prototype.Yf.call(this),b=0;b<this.values.length;b++)this.values.hasOwnProperty(b)&&a.push([String(b),this.values[b]]);return a};
ca.remove=function(a){Va(a)?delete this.values[Number(a)]:Na.prototype.remove.call(this,a)};ca.pop=function(){return this.values.pop()};ca.push=function(){return this.values.push.apply(this.values,Array.prototype.slice.call(arguments))};ca.shift=function(){return this.values.shift()};ca.splice=function(a,b){return new Wa(this.values.splice.apply(this.values,arguments))};ca.unshift=function(){return this.values.unshift.apply(this.values,Array.prototype.slice.call(arguments))};
ca.has=function(a){return Va(a)&&this.values.hasOwnProperty(a)||Na.prototype.has.call(this,a)};ca.Ma=function(){Na.prototype.Ma.call(this);Object.freeze(this.values)};function Xa(a){for(var b=[],c=0;c<a.length();c++)a.has(c)&&(b[c]=a.get(c));return b};var Ya=function(){Na.call(this)};xa(Ya,Na);function Za(){for(var a=$a,b={},c=0;c<a.length;++c)b[a[c]]=c;return b}function ab(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a+=a.toLowerCase()+"0123456789-_";return a+"."}var $a,bb;function cb(a){$a=$a||ab();bb=bb||Za();for(var b=[],c=0;c<a.length;c+=3){var d=c+1<a.length,e=c+2<a.length,f=a.charCodeAt(c),g=d?a.charCodeAt(c+1):0,k=e?a.charCodeAt(c+2):0,m=f>>2,n=(f&3)<<4|g>>4,p=(g&15)<<2|k>>6,q=k&63;e||(q=64,d||(p=64));b.push($a[m],$a[n],$a[p],$a[q])}return b.join("")}
function db(a){function b(m){for(;d<a.length;){var n=a.charAt(d++),p=bb[n];if(p!=null)return p;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n);}return m}$a=$a||ab();bb=bb||Za();for(var c="",d=0;;){var e=b(-1),f=b(0),g=b(64),k=b(64);if(k===64&&e===-1)return c;c+=String.fromCharCode(e<<2|f>>4);g!==64&&(c+=String.fromCharCode(f<<4&240|g>>2),k!==64&&(c+=String.fromCharCode(g<<6&192|k)))}};var fb={};function gb(a,b){fb[a]=fb[a]||[];fb[a][b]=!0}function hb(a){var b=fb[a];if(!b||b.length===0)return"";for(var c=[],d=0,e=0;e<b.length;e++)e%8===0&&e>0&&(c.push(String.fromCharCode(d)),d=0),b[e]&&(d|=1<<e%8);d>0&&c.push(String.fromCharCode(d));return cb(c.join("")).replace(/\.+$/,"")}function ib(){for(var a=[],b=fb.fdr||[],c=0;c<b.length;c++)b[c]&&a.push(c);return a.length>0?a:void 0};var jb=[],kb={};function lb(a){return jb[a]===void 0?!1:jb[a]};function mb(){}function nb(a){return typeof a==="function"}function l(a){return typeof a==="string"}function ob(a){return typeof a==="number"&&!isNaN(a)}function pb(a){return Array.isArray(a)?a:[a]}function qb(a,b){if(a&&Array.isArray(a))for(var c=0;c<a.length;c++)if(a[c]&&b(a[c]))return a[c]}function rb(a,b){if(!ob(a)||!ob(b)||a>b)a=0,b=2147483647;return Math.floor(Math.random()*(b-a+1)+a)}
function sb(a,b){for(var c=new tb,d=0;d<a.length;d++)c.set(a[d],!0);for(var e=0;e<b.length;e++)if(c.get(b[e]))return!0;return!1}function z(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(c,a[c])}function ub(a){return!!a&&(Object.prototype.toString.call(a)==="[object Arguments]"||Object.prototype.hasOwnProperty.call(a,"callee"))}function vb(a){return Math.round(Number(a))||0}function wb(a){return"false"===String(a).toLowerCase()?!1:!!a}
function xb(a){var b=[];if(Array.isArray(a))for(var c=0;c<a.length;c++)b.push(String(a[c]));return b}function yb(a){return a?a.replace(/^\s+|\s+$/g,""):""}function zb(){return new Date(Date.now())}function Ab(){return zb().getTime()}var tb=function(){this.prefix="gtm.";this.values={}};tb.prototype.set=function(a,b){this.values[this.prefix+a]=b};tb.prototype.get=function(a){return this.values[this.prefix+a]};tb.prototype.contains=function(a){return this.get(a)!==void 0};
function Bb(a,b,c){return a&&a.hasOwnProperty(b)?a[b]:c}function Cb(a){var b=a;return function(){if(b){var c=b;b=void 0;try{c()}catch(d){}}}}function Db(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])}function Eb(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]),c.push.apply(c,b[a[d]]||[]);return c}function Fb(a,b){return a.length>=b.length&&a.substring(0,b.length)===b}function Gb(a,b){return a.length>=b.length&&a.substring(a.length-b.length,a.length)===b}
function Hb(a,b){var c=C;b=b||[];for(var d=c,e=0;e<a.length-1;e++){if(!d.hasOwnProperty(a[e]))return;d=d[a[e]];if(b.indexOf(d)>=0)return}return d}function Ib(a,b){for(var c={},d=c,e=a.split("."),f=0;f<e.length-1;f++)d=d[e[f]]={};d[e[e.length-1]]=b;return c}var Jb=/^\w{1,9}$/;function Kb(a,b){a=a||{};b=b||",";var c=[];z(a,function(d,e){Jb.test(d)&&e&&c.push(d)});return c.join(b)}function Lb(a,b){function c(){e&&++d===b&&(e(),e=null,c.done=!0)}var d=0,e=a;c.done=!1;return c}
function Mb(a){if(!a)return a;var b=a;if(lb(3))try{b=decodeURIComponent(a)}catch(d){}var c=b.split(",");return c.length===2&&c[0]===c[1]?c[0]:a};/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
var Nb=globalThis.trustedTypes,Ob;function Pb(){var a=null;if(!Nb)return a;try{var b=function(c){return c};a=Nb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a}function Qb(){Ob===void 0&&(Ob=Pb());return Ob};var Rb=function(a){this.j=a};Rb.prototype.toString=function(){return this.j+""};function Sb(a){var b=a,c=Qb();return new Rb(c?c.createScriptURL(b):b)}function Tb(a){if(a instanceof Rb)return a.j;throw Error("");};var Ub=la([""]),Vb=ka(["\x00"],["\\0"]),Wb=ka(["\n"],["\\n"]),Xb=ka(["\x00"],["\\u0000"]);function Yb(a){return a.toString().indexOf("`")===-1}Yb(function(a){return a(Ub)})||Yb(function(a){return a(Vb)})||Yb(function(a){return a(Wb)})||Yb(function(a){return a(Xb)});var Zb=function(a){this.j=a};Zb.prototype.toString=function(){return this.j};var $b=new Zb("about:invalid#zClosurez");var ac=function(a){this.vm=a};function bc(a){return new ac(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var cc=[bc("data"),bc("http"),bc("https"),bc("mailto"),bc("ftp"),new ac(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function dc(a,b){b=b===void 0?cc:b;if(a instanceof Zb)return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ac&&d.vm(a))return new Zb(a)}}function ec(a){var b;b=b===void 0?cc:b;return dc(a,b)||$b}var fc=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;
function gc(a){var b;if(a instanceof Zb)if(a instanceof Zb)b=a.j;else throw Error("");else b=fc.test(a)?a:void 0;return b};var ic=function(){this.j=hc[0].toLowerCase()};ic.prototype.toString=function(){return this.j};var jc=function(a){this.j=a};jc.prototype.toString=function(){return this.j+""};function kc(a,b){var c=[new ic];if(c.length===0)throw Error("");var d=c.map(function(f){var g;if(f instanceof ic)g=f.j;else throw Error("");return g}),e=b.toLowerCase();if(d.every(function(f){return e.indexOf(f)!==0}))throw Error('Attribute "'+b+'" does not match any of the allowed prefixes.');a.setAttribute(b,"true")};function lc(a,b){var c=gc(b);c!==void 0&&(a.action=c)};var mc=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};"ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" ").concat(["BUTTON",
"INPUT"]);function nc(a){return a===null?"null":a===void 0?"undefined":a};var C=window,oc=window.history,E=document,pc=navigator;function qc(){var a;try{a=pc.serviceWorker}catch(b){return}return a}var rc=E.currentScript,sc=rc&&rc.src;function tc(a,b){var c=C[a];C[a]=c===void 0?b:c;return C[a]}function uc(a){return(pc.userAgent||"").indexOf(a)!==-1}var vc={async:1,nonce:1,onerror:1,onload:1,src:1,type:1},wc={onload:1,src:1,width:1,height:1,style:1};function xc(a,b,c){b&&z(b,function(d,e){d=d.toLowerCase();c.hasOwnProperty(d)||a.setAttribute(d,e)})}
function yc(a,b,c,d,e){var f=E.createElement("script");xc(f,d,vc);f.type="text/javascript";f.async=d&&d.async===!1?!1:!0;var g;g=Sb(nc(a));f.src=Tb(g);var k,m=f.ownerDocument&&f.ownerDocument.defaultView||window;m=m===void 0?document:m;var n,p,q=(p=(n="document"in m?m.document:m).querySelector)==null?void 0:p.call(n,"script[nonce]");(k=q==null?"":q.nonce||q.getAttribute("nonce")||"")&&f.setAttribute("nonce",k);b&&(f.onload=b);c&&(f.onerror=c);if(e)e.appendChild(f);else{var r=E.getElementsByTagName("script")[0]||
E.body||E.head;r.parentNode.insertBefore(f,r)}return f}function zc(){if(sc){var a=sc.toLowerCase();if(a.indexOf("https://")===0)return 2;if(a.indexOf("http://")===0)return 3}return 1}
function Ac(a,b,c,d,e){var f;f=f===void 0?!0:f;var g=e,k=!1;g||(g=E.createElement("iframe"),k=!0);xc(g,c,wc);d&&z(d,function(n,p){g.dataset[n]=p});f&&(g.height="0",g.width="0",g.style.display="none",g.style.visibility="hidden");a!==void 0&&(g.src=a);if(k){var m=E.body&&E.body.lastChild||E.body||E.head;m.parentNode.insertBefore(g,m)}b&&(g.onload=b);return g}
var Bc=function(a,b,c,d){var e=new Image(1,1);xc(e,d,{});e.onload=function(){e.onload=null;b&&b()};e.onerror=function(){e.onerror=null;c&&c()};e.src=a;return e};function Cc(a,b,c,d){Bc(a,b,c,d)}function Dc(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}function Ec(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}function F(a){C.setTimeout(a,0)}
function Fc(a,b){return a&&b&&a.attributes&&a.attributes[b]?a.attributes[b].value:null}function Gc(a){var b=a.innerText||a.textContent||"";b&&b!==" "&&(b=b.replace(/^[\s\xa0]+/g,""),b=b.replace(/[\s\xa0]+$/g,""));b&&(b=b.replace(/(\xa0+|\s{2,}|\n|\r\t)/g," "));return b}
function Hc(a){var b=E.createElement("div"),c=b,d,e=nc("A<div>"+a+"</div>"),f=Qb();d=new jc(f?f.createHTML(e):e);if(c.nodeType===1&&/^(script|style)$/i.test(c.tagName))throw Error("");var g;if(d instanceof jc)g=d.j;else throw Error("");c.innerHTML=g;b=b.lastChild;for(var k=[];b&&b.firstChild;)k.push(b.removeChild(b.firstChild));return k}
function Ic(a,b,c){c=c||100;for(var d={},e=0;e<b.length;e++)d[b[e]]=!0;for(var f=a,g=0;f&&g<=c;g++){if(d[String(f.tagName).toLowerCase()])return f;f=f.parentElement}return null}function Jc(a){var b;try{b=pc.sendBeacon&&pc.sendBeacon(a)}catch(c){gb("TAGGING",15)}b||Bc(a)}function Kc(a,b){try{return pc.sendBeacon(a,b)}catch(c){gb("TAGGING",15)}return!1}var Lc={cache:"no-store",credentials:"include",keepalive:!0,method:"POST",mode:"no-cors",redirect:"follow"};
function Mc(a,b,c){if(Nc()){var d=Object.assign({},Lc);b&&(d.body=b);c&&(c.attributionReporting&&(d.attributionReporting=c.attributionReporting),c.browsingTopics&&(d.browsingTopics=c.browsingTopics));try{var e=C.fetch(a,d);e&&e.catch(mb);return!0}catch(f){}}if(c&&c.noFallback)return!1;if(b)return Kc(a,b);Jc(a);return!0}function Nc(){return typeof C.fetch==="function"}function Oc(a,b){var c=a[b];c&&typeof c.animVal==="string"&&(c=c.animVal);return c}
function Pc(){var a=C.performance;if(a&&nb(a.now))return a.now()}function Qc(){return C.performance||void 0};function Rc(a,b){return this.evaluate(a)&&this.evaluate(b)}function Sc(a,b){return this.evaluate(a)===this.evaluate(b)}function Tc(a,b){return this.evaluate(a)||this.evaluate(b)}function Uc(a,b){a=this.evaluate(a);b=this.evaluate(b);return String(a).indexOf(String(b))>-1}function Vc(a,b){var c=String(this.evaluate(a)),d=String(this.evaluate(b));return c.substring(0,d.length)===d}
function Wc(a,b){a=this.evaluate(a);b=this.evaluate(b);switch(a){case "pageLocation":var c=C.location.href;b instanceof Ya&&b.get("stripProtocol")&&(c=c.replace(/^https?:\/\//,""));return c}};var Xc=function(a,b){Na.call(this);this.bk=a;this.Ah=b};xa(Xc,Na);Xc.prototype.toString=function(){return this.bk};Xc.prototype.getName=function(){return this.bk};Xc.prototype.invoke=function(a){return this.Ah.apply(new Yc(this,a),Array.prototype.slice.call(arguments,1))};Xc.prototype.jb=function(a){try{return this.invoke.apply(this,Array.prototype.slice.call(arguments,0))}catch(b){}};var Yc=function(a,b){this.Ah=a;this.D=b};
Yc.prototype.evaluate=function(a){var b=this.D;return Array.isArray(a)?Ka(b,a):a};Yc.prototype.getName=function(){return this.Ah.getName()};Yc.prototype.xd=function(){return this.D.xd()};var Zc=function(){this.map=new Map};Zc.prototype.set=function(a,b){this.map.set(a,b)};Zc.prototype.get=function(a){return this.map.get(a)};var $c=function(){this.keys=[];this.values=[]};$c.prototype.set=function(a,b){this.keys.push(a);this.values.push(b)};$c.prototype.get=function(a){var b=this.keys.indexOf(a);if(b>-1)return this.values[b]};function ad(){try{return Map?new Zc:new $c}catch(a){return new $c}};var bd=function(a){if(a instanceof bd)return a;if(Ua(a))throw Error("Type of given value has an equivalent Pixie type.");this.value=a};bd.prototype.getValue=function(){return this.value};bd.prototype.toString=function(){return String(this.value)};var dd=function(a){Na.call(this);this.promise=a;this.set("then",cd(this));this.set("catch",cd(this,!0));this.set("finally",cd(this,!1,!0))};xa(dd,Ya);var cd=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;return new Xc("",function(d,e){b&&(e=d,d=void 0);c&&(e=d);d instanceof Xc||(d=void 0);e instanceof Xc||(e=void 0);var f=Ia(this.D),g=function(m){return function(n){return c?(m.invoke(f),a.promise):m.invoke(f,n)}},k=a.promise.then(d&&g(d),e&&g(e));return new dd(k)})};function H(a,b,c){var d=ad(),e=function(g,k){for(var m=g.Ka(),n=0;n<m.length;n++)k[m[n]]=f(g.get(m[n]))},f=function(g){var k=d.get(g);if(k)return k;if(g instanceof Wa){var m=[];d.set(g,m);for(var n=g.Ka(),p=0;p<n.length;p++)m[n[p]]=f(g.get(n[p]));return m}if(g instanceof dd)return g.promise;if(g instanceof Ya){var q={};d.set(g,q);e(g,q);return q}if(g instanceof Xc){var r=function(){for(var v=Array.prototype.slice.call(arguments,0),u=0;u<v.length;u++)v[u]=ed(v[u],b,c);var w=new Ga(b?b.xd():new Fa);
b&&(w.j=b.j);return f(g.invoke.apply(g,[w].concat(v)))};d.set(g,r);e(g,r);return r}var t=!1;switch(c){case 1:t=!0;break;case 2:t=!1;break;case 3:t=!1;break;default:}if(g instanceof bd&&t)return g.getValue();switch(typeof g){case "boolean":case "number":case "string":case "undefined":return g;case "object":if(g===null)return null}};return f(a)}
function ed(a,b,c){var d=ad(),e=function(g,k){for(var m in g)g.hasOwnProperty(m)&&k.set(m,f(g[m]))},f=function(g){var k=d.get(g);if(k)return k;if(Array.isArray(g)||ub(g)){var m=new Wa([]);d.set(g,m);for(var n in g)g.hasOwnProperty(n)&&m.set(n,f(g[n]));return m}if(Sa(g)){var p=new Ya;d.set(g,p);e(g,p);return p}if(typeof g==="function"){var q=new Xc("",function(){for(var x=Array.prototype.slice.call(arguments,0),y=0;y<x.length;y++)x[y]=H(this.evaluate(x[y]),b,c);return f((0,this.D.H)(g,g,x))});d.set(g,
q);e(g,q);return q}var u=typeof g;if(g===null||u==="string"||u==="number"||u==="boolean")return g;var w=!1;switch(c){case 1:w=
!0;break;case 2:w=!1;break;default:}if(g!==void 0&&w)return new bd(g)};return f(a)};function fd(){var a=!1;return a};var gd={supportedMethods:"concat every filter forEach hasOwnProperty indexOf join lastIndexOf map pop push reduce reduceRight reverse shift slice some sort splice unshift toString".split(" "),concat:function(a){for(var b=[],c=0;c<this.length();c++)b.push(this.get(c));for(var d=1;d<arguments.length;d++)if(arguments[d]instanceof Wa)for(var e=arguments[d],f=0;f<e.length();f++)b.push(e.get(f));else b.push(arguments[d]);return new Wa(b)},every:function(a,b){for(var c=this.length(),d=0;d<this.length()&&
d<c;d++)if(this.has(d)&&!b.invoke(a,this.get(d),d,this))return!1;return!0},filter:function(a,b){for(var c=this.length(),d=[],e=0;e<this.length()&&e<c;e++)this.has(e)&&b.invoke(a,this.get(e),e,this)&&d.push(this.get(e));return new Wa(d)},forEach:function(a,b){for(var c=this.length(),d=0;d<this.length()&&d<c;d++)this.has(d)&&b.invoke(a,this.get(d),d,this)},hasOwnProperty:function(a,b){return this.has(b)},indexOf:function(a,b,c){var d=this.length(),e=c===void 0?0:Number(c);e<0&&(e=Math.max(d+e,0));for(var f=
e;f<d;f++)if(this.has(f)&&this.get(f)===b)return f;return-1},join:function(a,b){for(var c=[],d=0;d<this.length();d++)c.push(this.get(d));return c.join(b)},lastIndexOf:function(a,b,c){var d=this.length(),e=d-1;c!==void 0&&(e=c<0?d+c:Math.min(c,e));for(var f=e;f>=0;f--)if(this.has(f)&&this.get(f)===b)return f;return-1},map:function(a,b){for(var c=this.length(),d=[],e=0;e<this.length()&&e<c;e++)this.has(e)&&(d[e]=b.invoke(a,this.get(e),e,this));return new Wa(d)},pop:function(){return this.pop()},push:function(a){return this.push.apply(this,
Array.prototype.slice.call(arguments,1))},reduce:function(a,b,c){var d=this.length(),e,f=0;if(c!==void 0)e=c;else{if(d===0)throw Error("TypeError: Reduce on List with no elements.");for(var g=0;g<d;g++)if(this.has(g)){e=this.get(g);f=g+1;break}if(g===d)throw Error("TypeError: Reduce on List with no elements.");}for(var k=f;k<d;k++)this.has(k)&&(e=b.invoke(a,e,this.get(k),k,this));return e},reduceRight:function(a,b,c){var d=this.length(),e,f=d-1;if(c!==void 0)e=c;else{if(d===0)throw Error("TypeError: ReduceRight on List with no elements.");
for(var g=1;g<=d;g++)if(this.has(d-g)){e=this.get(d-g);f=d-(g+1);break}if(g>d)throw Error("TypeError: ReduceRight on List with no elements.");}for(var k=f;k>=0;k--)this.has(k)&&(e=b.invoke(a,e,this.get(k),k,this));return e},reverse:function(){for(var a=Xa(this),b=a.length-1,c=0;b>=0;b--,c++)a.hasOwnProperty(b)?this.set(c,a[b]):this.remove(c);return this},shift:function(){return this.shift()},slice:function(a,b,c){var d=this.length();b===void 0&&(b=0);b=b<0?Math.max(d+b,0):Math.min(b,d);c=c===void 0?
d:c<0?Math.max(d+c,0):Math.min(c,d);c=Math.max(b,c);for(var e=[],f=b;f<c;f++)e.push(this.get(f));return new Wa(e)},some:function(a,b){for(var c=this.length(),d=0;d<this.length()&&d<c;d++)if(this.has(d)&&b.invoke(a,this.get(d),d,this))return!0;return!1},sort:function(a,b){var c=Xa(this);b===void 0?c.sort():c.sort(function(e,f){return Number(b.invoke(a,e,f))});for(var d=0;d<c.length;d++)c.hasOwnProperty(d)?this.set(d,c[d]):this.remove(d);return this},splice:function(a,b,c){return this.splice.apply(this,
Array.prototype.splice.call(arguments,1,arguments.length-1))},toString:function(){return this.toString()},unshift:function(a){return this.unshift.apply(this,Array.prototype.slice.call(arguments,1))}};var hd=function(a){var b;b=Error.call(this,a);this.message=b.message;"stack"in b&&(this.stack=b.stack)};xa(hd,Error);var id={charAt:1,concat:1,indexOf:1,lastIndexOf:1,match:1,replace:1,search:1,slice:1,split:1,substring:1,toLowerCase:1,toLocaleLowerCase:1,toString:1,toUpperCase:1,toLocaleUpperCase:1,trim:1},jd=new Aa("break"),kd=new Aa("continue");function ld(a,b){return this.evaluate(a)+this.evaluate(b)}function md(a,b){return this.evaluate(a)&&this.evaluate(b)}
function nd(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);if(!(c instanceof Wa))throw Error("Error: Non-List argument given to Apply instruction.");if(a===null||a===void 0){var d="TypeError: Can't read property "+b+" of "+a+".";if(fd())throw new hd(d);throw Error(d);}var e=typeof a==="number";if(typeof a==="boolean"||e){if(b==="toString"){if(e&&c.length()){var f=H(c.get(0));try{return a.toString(f)}catch(y){}}return a.toString()}var g="TypeError: "+a+"."+b+" is not a function.";
if(fd())throw new hd(g);throw Error(g);}if(typeof a==="string"){if(id.hasOwnProperty(b)){var k=2;k=1;var m=H(c,void 0,k);return ed(a[b].apply(a,m),this.D)}var n="TypeError: "+b+" is not a function";if(fd())throw new hd(n);throw Error(n);}if(a instanceof Wa){if(a.has(b)){var p=a.get(b);if(p instanceof Xc){var q=Xa(c);q.unshift(this.D);return p.invoke.apply(p,q)}var r=
"TypeError: "+b+" is not a function";if(fd())throw new hd(r);throw Error(r);}if(gd.supportedMethods.indexOf(b)>=0){var t=Xa(c);t.unshift(this.D);return gd[b].apply(a,t)}}if(a instanceof Xc||a instanceof Ya){if(a.has(b)){var v=a.get(b);if(v instanceof Xc){var u=Xa(c);u.unshift(this.D);return v.invoke.apply(v,u)}var w="TypeError: "+b+" is not a function";if(fd())throw new hd(w);throw Error(w);}if(b==="toString")return a instanceof Xc?a.getName():a.toString();if(b==="hasOwnProperty")return a.has.apply(a,
Xa(c))}if(a instanceof bd&&b==="toString")return a.toString();var x="TypeError: Object has no '"+b+"' property.";if(fd())throw new hd(x);throw Error(x);}function od(a,b){a=this.evaluate(a);if(typeof a!=="string")throw Error("Invalid key name given for assignment.");var c=this.D;if(!c.has(a))throw Error("Attempting to assign to undefined value "+b);var d=this.evaluate(b);c.set(a,d);return d}function pd(){var a=Ia(this.D),b=Ja(a,Array.prototype.slice.apply(arguments));if(b instanceof Aa)return b}
function qd(){return jd}function rd(a){for(var b=this.evaluate(a),c=0;c<b.length;c++){var d=this.evaluate(b[c]);if(d instanceof Aa)return d}}function sd(){for(var a=this.D,b=0;b<arguments.length-1;b+=2){var c=arguments[b];if(typeof c==="string"){var d=this.evaluate(arguments[b+1]);Ha(a,c,d,!0)}}}function td(){return kd}function ud(a,b){return new Aa(a,this.evaluate(b))}
function vd(a,b){var c=new Wa;b=this.evaluate(b);for(var d=0;d<b.length;d++)c.push(b[d]);var e=[51,a,c].concat(Array.prototype.splice.call(arguments,2,arguments.length-2));this.D.add(a,this.evaluate(e))}function wd(a,b){return this.evaluate(a)/this.evaluate(b)}function xd(a,b){a=this.evaluate(a);b=this.evaluate(b);var c=a instanceof bd,d=b instanceof bd;return c||d?c&&d?a.getValue()===b.getValue():!1:a==b}function yd(){for(var a,b=0;b<arguments.length;b++)a=this.evaluate(arguments[b]);return a}
function zd(a,b,c,d){for(var e=0;e<b();e++){var f=a(c(e)),g=Ja(f,d);if(g instanceof Aa){if(g.type==="break")break;if(g.type==="return")return g}}}function Ad(a,b,c){if(typeof b==="string")return zd(a,function(){return b.length},function(f){return f},c);if(b instanceof Ya||b instanceof Wa||b instanceof Xc){var d=b.Ka(),e=d.length;return zd(a,function(){return e},function(f){return d[f]},c)}}
function Bd(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);var d=this.D;return Ad(function(e){d.set(a,e);return d},b,c)}function Cd(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);var d=this.D;return Ad(function(e){var f=Ia(d);Ha(f,a,e,!0);return f},b,c)}function Dd(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);var d=this.D;return Ad(function(e){var f=Ia(d);f.add(a,e);return f},b,c)}
function Ed(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);var d=this.D;return Fd(function(e){d.set(a,e);return d},b,c)}function Gd(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);var d=this.D;return Fd(function(e){var f=Ia(d);Ha(f,a,e,!0);return f},b,c)}function Hd(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);var d=this.D;return Fd(function(e){var f=Ia(d);f.add(a,e);return f},b,c)}
function Fd(a,b,c){if(typeof b==="string")return zd(a,function(){return b.length},function(d){return b[d]},c);if(b instanceof Wa)return zd(a,function(){return b.length()},function(d){return b.get(d)},c);if(fd())throw new hd("The value is not iterable.");throw new TypeError("The value is not iterable.");}
function Id(a,b,c,d){function e(p,q){for(var r=0;r<f.length();r++){var t=f.get(r);q.add(t,p.get(t))}}var f=this.evaluate(a);if(!(f instanceof Wa))throw Error("TypeError: Non-List argument given to ForLet instruction.");var g=this.D;d=this.evaluate(d);var k=Ia(g);for(e(g,k);Ka(k,b);){var m=Ja(k,d);if(m instanceof Aa){if(m.type==="break")break;if(m.type==="return")return m}var n=Ia(g);e(k,n);Ka(n,c);k=n}}
function Jd(a,b){var c=this.D,d=this.evaluate(b);if(!(d instanceof Wa))throw Error("Error: non-List value given for Fn argument names.");var e=Array.prototype.slice.call(arguments,2);return new Xc(a,function(){return function(f){var g=Ia(c);g.j===void 0&&(g.j=this.D.j);for(var k=Array.prototype.slice.call(arguments,0),m=0;m<k.length;m++)if(k[m]=this.evaluate(k[m]),k[m]instanceof Aa)return k[m];for(var n=d.get("length"),p=0;p<n;p++)p<k.length?g.add(d.get(p),k[p]):g.add(d.get(p),void 0);g.add("arguments",
new Wa(k));var q=Ja(g,e);if(q instanceof Aa)return q.type==="return"?q.data:q}}())}function Kd(a){a=this.evaluate(a);var b=this.D;if(Ld&&!b.has(a))throw new ReferenceError(a+" is not defined.");return b.get(a)}
function Md(a,b){var c;a=this.evaluate(a);b=this.evaluate(b);if(a===void 0||a===null){var d="TypeError: Cannot read properties of "+a+" (reading '"+b+"')";if(fd())throw new hd(d);throw Error(d);}if(a instanceof Ya||a instanceof Wa||a instanceof Xc)c=a.get(b);else if(typeof a==="string")b==="length"?c=a.length:Va(b)&&(c=a[b]);else if(a instanceof bd)return;return c}function Nd(a,b){return this.evaluate(a)>this.evaluate(b)}function Od(a,b){return this.evaluate(a)>=this.evaluate(b)}
function Pd(a,b){a=this.evaluate(a);b=this.evaluate(b);a instanceof bd&&(a=a.getValue());b instanceof bd&&(b=b.getValue());return a===b}function Qd(a,b){return!Pd.call(this,a,b)}function Rd(a,b,c){var d=[];this.evaluate(a)?d=this.evaluate(b):c&&(d=this.evaluate(c));var e=Ja(this.D,d);if(e instanceof Aa)return e}var Ld=!1;
function Sd(a,b){return this.evaluate(a)<this.evaluate(b)}function Td(a,b){return this.evaluate(a)<=this.evaluate(b)}function Ud(){for(var a=new Wa,b=0;b<arguments.length;b++){var c=this.evaluate(arguments[b]);a.push(c)}return a}function Vd(){for(var a=new Ya,b=0;b<arguments.length-1;b+=2){var c=this.evaluate(arguments[b])+"",d=this.evaluate(arguments[b+1]);a.set(c,d)}return a}function Wd(a,b){return this.evaluate(a)%this.evaluate(b)}function Xd(a,b){return this.evaluate(a)*this.evaluate(b)}
function Yd(a){return-this.evaluate(a)}function Zd(a){return!this.evaluate(a)}function $d(a,b){return!xd.call(this,a,b)}function ae(){return null}function be(a,b){return this.evaluate(a)||this.evaluate(b)}function ce(a,b){var c=this.evaluate(a);this.evaluate(b);return c}function de(a){return this.evaluate(a)}function fe(){return Array.prototype.slice.apply(arguments)}function ge(a){return new Aa("return",this.evaluate(a))}
function he(a,b,c){a=this.evaluate(a);b=this.evaluate(b);c=this.evaluate(c);if(a===null||a===void 0){var d="TypeError: Can't set property "+b+" of "+a+".";if(fd())throw new hd(d);throw Error(d);}(a instanceof Xc||a instanceof Wa||a instanceof Ya)&&a.set(b,c);return c}function ie(a,b){return this.evaluate(a)-this.evaluate(b)}
function je(a,b,c){a=this.evaluate(a);var d=this.evaluate(b),e=this.evaluate(c);if(!Array.isArray(d)||!Array.isArray(e))throw Error("Error: Malformed switch instruction.");for(var f,g=!1,k=0;k<d.length;k++)if(g||a===this.evaluate(d[k]))if(f=this.evaluate(e[k]),f instanceof Aa){var m=f.type;if(m==="break")return;if(m==="return"||m==="continue")return f}else g=!0;if(e.length===d.length+1&&(f=this.evaluate(e[e.length-1]),f instanceof Aa&&(f.type==="return"||f.type==="continue")))return f}
function ke(a,b,c){return this.evaluate(a)?this.evaluate(b):this.evaluate(c)}function le(a){a=this.evaluate(a);return a instanceof Xc?"function":typeof a}function me(){for(var a=this.D,b=0;b<arguments.length;b++){var c=arguments[b];typeof c!=="string"||a.add(c,void 0)}}
function ne(a,b,c,d){var e=this.evaluate(d);if(this.evaluate(c)){var f=Ja(this.D,e);if(f instanceof Aa){if(f.type==="break")return;if(f.type==="return")return f}}for(;this.evaluate(a);){var g=Ja(this.D,e);if(g instanceof Aa){if(g.type==="break")break;if(g.type==="return")return g}this.evaluate(b)}}function oe(a){return~Number(this.evaluate(a))}function pe(a,b){return Number(this.evaluate(a))<<Number(this.evaluate(b))}function qe(a,b){return Number(this.evaluate(a))>>Number(this.evaluate(b))}
function re(a,b){return Number(this.evaluate(a))>>>Number(this.evaluate(b))}function se(a,b){return Number(this.evaluate(a))&Number(this.evaluate(b))}function te(a,b){return Number(this.evaluate(a))^Number(this.evaluate(b))}function ue(a,b){return Number(this.evaluate(a))|Number(this.evaluate(b))}function ve(){}
function we(a,b,c,d,e){var f=!0;try{var g=this.evaluate(c);if(g instanceof Aa)return g}catch(r){if(!(r instanceof hd&&a))throw f=r instanceof hd,r;var k=Ia(this.D),m=new bd(r);k.add(b,m);var n=this.evaluate(d),p=Ja(k,n);if(p instanceof Aa)return p}finally{if(f&&e!==void 0){var q=this.evaluate(e);if(q instanceof Aa)return q}}};var ye=function(){this.j=new La;xe(this)};ye.prototype.execute=function(a){return this.j.ei(a)};var xe=function(a){var b=function(c,d){var e=new Xc(String(c),d);e.Ma();a.j.j.set(String(c),e)};b("map",Vd);b("and",Rc);b("contains",Uc);b("equals",Sc);b("or",Tc);b("startsWith",Vc);b("variable",Wc)};var Ae=function(){this.C=!1;this.j=new La;ze(this);this.C=!0};Ae.prototype.execute=function(a){return Be(this.j.ei(a))};var Ce=function(a,b,c){return Be(a.j.Wk(b,c))};Ae.prototype.Ma=function(){this.j.Ma()};
var ze=function(a){var b=function(c,d){var e=String(c),f=new Xc(e,d);f.Ma();a.j.j.set(e,f)};b(0,ld);b(1,md);b(2,nd);b(3,od);b(56,se);b(57,pe);b(58,oe);b(59,ue);b(60,qe);b(61,re);b(62,te);b(53,pd);b(4,qd);b(5,rd);b(52,sd);b(6,td);b(49,ud);b(7,Ud);b(8,Vd);b(9,rd);b(50,vd);b(10,wd);b(12,xd);b(13,yd);b(51,Jd);b(47,Bd);b(54,Cd);b(55,Dd);b(63,Id);b(64,Ed);b(65,Gd);b(66,Hd);b(15,Kd);b(16,Md);b(17,Md);b(18,Nd);b(19,Od);b(20,Pd);b(21,Qd);b(22,Rd);b(23,Sd);b(24,Td);b(25,Wd);b(26,Xd);b(27,Yd);b(28,Zd);b(29,
$d);b(45,ae);b(30,be);b(32,ce);b(33,ce);b(34,de);b(35,de);b(46,fe);b(36,ge);b(43,he);b(37,ie);b(38,je);b(39,ke);b(67,we);b(40,le);b(44,ve);b(41,me);b(42,ne)};Ae.prototype.xd=function(){return this.j.xd()};function Be(a){if(a instanceof Aa||a instanceof Xc||a instanceof Wa||a instanceof Ya||a instanceof bd||a===null||a===void 0||typeof a==="string"||typeof a==="number"||typeof a==="boolean")return a};var De=function(a){this.message=a};function Ee(a){var b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[a];return b===void 0?new De("Value "+a+" can not be encoded in web-safe base64 dictionary."):b};function Fe(a){switch(a){case 1:return"1";case 2:case 4:return"0";default:return"-"}};var Ge=/^[1-9a-zA-Z_-][1-9a-c][1-9a-v]\d$/;function He(a,b){for(var c="",d=!0;a>7;){var e=a&31;a>>=5;d?d=!1:e|=32;c=""+Ee(e)+c}a<<=2;d||(a|=32);return c=""+Ee(a|b)+c};var Ie=function(){function a(b){return{toString:function(){return b}}}return{zk:a("consent"),ri:a("convert_case_to"),si:a("convert_false_to"),ui:a("convert_null_to"),vi:a("convert_true_to"),wi:a("convert_undefined_to"),vn:a("debug_mode_metadata"),la:a("function"),fh:a("instance_name"),al:a("live_only"),bl:a("malware_disabled"),METADATA:a("metadata"),jl:a("original_activity_id"),En:a("original_vendor_template_id"),Dn:a("once_on_load"),il:a("once_per_event"),yj:a("once_per_load"),Hn:a("priority_override"),
In:a("respected_consent_types"),Gj:a("setup_tags"),xe:a("tag_id"),Lj:a("teardown_tags")}}();var ff;var gf=[],hf=[],jf=[],kf=[],lf=[],mf={},nf,of;function pf(a){of=of||a}
function qf(a){}var rf,sf=[],tf=[];function uf(a,b){var c={};c[Ie.la]="__"+a;for(var d in b)b.hasOwnProperty(d)&&(c["vtp_"+d]=b[d]);return c}
function vf(a,b,c){try{return nf(wf(a,b,c))}catch(d){JSON.stringify(a)}return 2}function xf(a){var b=a[Ie.la];if(!b)throw Error("Error: No function name given for function call.");return!!mf[b]}
var wf=function(a,b,c){c=c||[];var d={},e;for(e in a)a.hasOwnProperty(e)&&(d[e]=yf(a[e],b,c));return d},yf=function(a,b,c){if(Array.isArray(a)){var d;switch(a[0]){case "function_id":return a[1];case "list":d=[];for(var e=1;e<a.length;e++)d.push(yf(a[e],b,c));return d;case "macro":var f=a[1];if(c[f])return;var g=gf[f];if(!g||b.isBlocked(g))return;c[f]=!0;var k=String(g[Ie.fh]);try{var m=wf(g,b,c);m.vtp_gtmEventId=b.id;b.priorityId&&(m.vtp_gtmPriorityId=b.priorityId);d=zf(m,{event:b,index:f,type:2,
name:k});rf&&(d=rf.Al(d,m))}catch(y){b.logMacroError&&b.logMacroError(y,Number(f),k),d=!1}c[f]=!1;return d;case "map":d={};for(var n=1;n<a.length;n+=2)d[yf(a[n],b,c)]=yf(a[n+1],b,c);return d;case "template":d=[];for(var p=!1,q=1;q<a.length;q++){var r=yf(a[q],b,c);of&&(p=p||of.qm(r));d.push(r)}return of&&p?of.Dl(d):d.join("");case "escape":d=yf(a[1],b,c);if(of&&Array.isArray(a[1])&&a[1][0]==="macro"&&of.sm(a))return of.Nm(d);d=String(d);for(var t=2;t<a.length;t++)Re[a[t]]&&(d=Re[a[t]](d));return d;
case "tag":var v=a[1];if(!kf[v])throw Error("Unable to resolve tag reference "+v+".");return{Rj:a[2],index:v};case "zb":var u={arg0:a[2],arg1:a[3],ignore_case:a[5]};u[Ie.la]=a[1];var w=vf(u,b,c),x=!!a[4];return x||w!==2?x!==(w===1):null;default:throw Error("Attempting to expand unknown Value type: "+a[0]+".");}}return a},zf=function(a,b){var c=a[Ie.la],d=b&&b.event;if(!c)throw Error("Error: No function name given for function call.");var e=mf[c],f=b&&b.type===2&&(d==null?void 0:d.reportMacroDiscrepancy)&&
e&&sf.indexOf(c)!==-1,g={},k={},m;for(m in a)a.hasOwnProperty(m)&&Fb(m,"vtp_")&&(e&&(g[m]=a[m]),!e||f)&&(k[m.substring(4)]=a[m]);e&&d&&d.cachedModelValues&&(g.vtp_gtmCachedValues=d.cachedModelValues);if(b){if(b.name==null){var n;a:{var p=b.type,q=b.index;if(q==null)n="";else{var r;switch(p){case 2:r=gf[q];break;case 1:r=kf[q];break;default:n="";break a}var t=r&&r[Ie.fh];n=t?String(t):""}}b.name=n}e&&(g.vtp_gtmEntityIndex=b.index,g.vtp_gtmEntityName=b.name)}var v,u,w;if(f&&tf.indexOf(c)===-1){tf.push(c);
var x=Ab();v=e(g);var y=Ab()-x,A=Ab();u=ff(c,k,b);w=y-(Ab()-A)}else if(e&&(v=e(g)),!e||f)u=ff(c,k,b);f&&d&&(d.reportMacroDiscrepancy(d.id,c,void 0,!0),Ua(v)?(Array.isArray(v)?Array.isArray(u):Sa(v)?Sa(u):typeof v==="function"?typeof u==="function":v===u)||d.reportMacroDiscrepancy(d.id,c):v!==u&&d.reportMacroDiscrepancy(d.id,c),w!==void 0&&d.reportMacroDiscrepancy(d.id,c,w));return e?v:u};var Af=function(a,b,c){var d;d=Error.call(this,c);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.permissionId=a;this.parameters=b;this.name="PermissionError"};xa(Af,Error);Af.prototype.getMessage=function(){return this.message};function Bf(a,b){if(Array.isArray(a)){Object.defineProperty(a,"context",{value:{line:b[0]}});for(var c=1;c<a.length;c++)Bf(a[c],b[c])}};var Cf=function(a,b){var c;c=Error.call(this,"Wrapped error for Dust debugging. Original error message: "+a.message);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.Hm=a;this.j=[];this.C=b};xa(Cf,Error);function Df(){return function(a,b){a instanceof Cf||(a=new Cf(a,Ef));b&&a instanceof Cf&&a.j.push(b);throw a;}}function Ef(a){if(!a.length)return a;a.push({id:"main",line:0});for(var b=a.length-1;b>0;b--)ob(a[b].id)&&a.splice(b++,1);for(var c=a.length-1;c>0;c--)a[c].line=a[c-1].line;a.splice(0,1);return a};function Ff(a){function b(r){for(var t=0;t<r.length;t++)d[r[t]]=!0}for(var c=[],d=[],e=Gf(a),f=0;f<hf.length;f++){var g=hf[f],k=Hf(g,e);if(k){for(var m=g.add||[],n=0;n<m.length;n++)c[m[n]]=!0;b(g.block||[])}else k===null&&b(g.block||[]);}for(var p=[],q=0;q<kf.length;q++)c[q]&&!d[q]&&(p[q]=!0);return p}
function Hf(a,b){for(var c=a["if"]||[],d=0;d<c.length;d++){var e=b(c[d]);if(e===0)return!1;if(e===2)return null}for(var f=a.unless||[],g=0;g<f.length;g++){var k=b(f[g]);if(k===2)return null;if(k===1)return!1}return!0}function Gf(a){var b=[];return function(c){b[c]===void 0&&(b[c]=vf(jf[c],a));return b[c]}};var If={Al:function(a,b){b[Ie.ri]&&typeof a==="string"&&(a=b[Ie.ri]===1?a.toLowerCase():a.toUpperCase());b.hasOwnProperty(Ie.ui)&&a===null&&(a=b[Ie.ui]);b.hasOwnProperty(Ie.wi)&&a===void 0&&(a=b[Ie.wi]);b.hasOwnProperty(Ie.vi)&&a===!0&&(a=b[Ie.vi]);b.hasOwnProperty(Ie.si)&&a===!1&&(a=b[Ie.si]);return a}};var Jf=function(){this.j={}},Lf=function(a,b){var c=Kf.j,d;(d=c.j)[a]!=null||(d[a]=[]);c.j[a].push(function(){return b.apply(null,pa(ya.apply(0,arguments)))})};function Mf(a,b,c,d){if(a)for(var e=0;e<a.length;e++){var f=void 0,g="A policy function denied the permission request";try{f=a[e](b,c,d),g+="."}catch(k){g=typeof k==="string"?g+(": "+k):k instanceof Error?g+(": "+k.message):g+"."}if(!f)throw new Af(c,d,g);}}
function Nf(a,b,c){return function(){var d=arguments[0];if(d){var e=a.j[d],f=a.j.all;if(e||f){var g=c.apply(void 0,Array.prototype.slice.call(arguments,0));Mf(e,b,d,g);Mf(f,b,d,g)}}}};var Rf=function(){var a=data.permissions||{},b=Of.ctid,c=this;this.C={};this.j=new Jf;var d={},e={},f=Nf(this.j,b,function(){var g=arguments[0];return g&&d[g]?d[g].apply(void 0,Array.prototype.slice.call(arguments,0)):{}});z(a,function(g,k){function m(p){var q=ya.apply(1,arguments);if(!n[p])throw Pf(p,{},"The requested additional permission "+p+" is not configured.");f.apply(null,[p].concat(pa(q)))}var n={};z(k,function(p,q){var r=Qf(p,q);n[p]=r.assert;d[p]||(d[p]=r.M);r.Nj&&!e[p]&&(e[p]=r.Nj)});
c.C[g]=function(p,q){var r=n[p];if(!r)throw Pf(p,{},"The requested permission "+p+" is not configured.");var t=Array.prototype.slice.call(arguments,0);r.apply(void 0,t);f.apply(void 0,t);var v=e[p];v&&v.apply(null,[m].concat(pa(t.slice(1))))}})},Sf=function(a){return Kf.C[a]||function(){}};
function Qf(a,b){var c=uf(a,b);c.vtp_permissionName=a;c.vtp_createPermissionError=Pf;try{return zf(c)}catch(d){return{assert:function(e){throw new Af(e,{},"Permission "+e+" is unknown.");},M:function(){throw new Af(a,{},"Permission "+a+" is unknown.");}}}}function Pf(a,b,c){return new Af(a,b,c)};var Tf=!1;var Uf={};Uf.rk=wb('');Uf.Il=wb('');var ag={},bg=(ag.uaa=!0,ag.uab=!0,ag.uafvl=!0,ag.uamb=!0,ag.uam=!0,ag.uap=!0,ag.uapv=!0,ag.uaw=!0,ag);
var jg=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c];if(!hg.exec(e))throw Error("Invalid key wildcard");var f=e.indexOf(".*"),g=f!==-1&&f===e.length-2,k=g?e.slice(0,e.length-2):e,m;a:if(d.length===0)m=!1;else{for(var n=d.split("."),p=0;p<n.length;p++)if(!ig.exec(n[p])){m=!1;break a}m=!0}if(!m||k.length>d.length||!g&&d.length!==e.length?0:g?Fb(d,k)&&(d===k||d.charAt(k.length)==="."):d===k)return!0}return!1},ig=/^[a-z$_][\w$]*$/i,hg=/^(?:[a-z_$][a-z_$0-9]*\.)*[a-z_$][a-z_$0-9]*(?:\.\*)?$/i;
var kg=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];function lg(a,b){var c=String(a),d=String(b),e=c.length-d.length;return e>=0&&c.indexOf(d,e)===e}var mg=new tb;function ng(a,b,c){var d=c?"i":void 0;try{var e=String(b)+String(d),f=mg.get(e);f||(f=new RegExp(b,d),mg.set(e,f));return f.test(a)}catch(g){return!1}}function og(a,b){return String(a).indexOf(String(b))>=0}function pg(a,b){return String(a)===String(b)}
function qg(a,b){return Number(a)>=Number(b)}function rg(a,b){return Number(a)<=Number(b)}function sg(a,b){return Number(a)>Number(b)}function tg(a,b){return Number(a)<Number(b)}function ug(a,b){return Fb(String(a),String(b))};var Bg=/^([a-z][a-z0-9]*):(!|\?)(\*|string|boolean|number|Fn|PixieMap|List|OpaqueValue)$/i,Cg={Fn:"function",PixieMap:"Object",List:"Array"};
function K(a,b,c){for(var d=0;d<b.length;d++){var e=Bg.exec(b[d]);if(!e)throw Error("Internal Error in "+a);var f=e[1],g=e[2]==="!",k=e[3],m=c[d];if(m==null){if(g)throw Error("Error in "+a+". Required argument "+f+" not supplied.");}else if(k!=="*"){var n=typeof m;m instanceof Xc?n="Fn":m instanceof Wa?n="List":m instanceof Ya?n="PixieMap":m instanceof bd&&(n="OpaqueValue");if(n!==k)throw Error("Error in "+a+". Argument "+f+" has type "+((Cg[n]||n)+", which does not match required type ")+((Cg[k]||
k)+"."));}}};function Dg(a){return""+a}
function Eg(a,b){var c=[];return c};function Fg(a,b){var c=new Xc(a,function(){for(var d=Array.prototype.slice.call(arguments,0),e=0;e<d.length;e++)d[e]=this.evaluate(d[e]);try{return b.apply(this,d)}catch(g){if(fd())throw new hd(g.message);throw g;}});c.Ma();return c}
function Gg(a,b){var c=new Ya,d;for(d in b)if(b.hasOwnProperty(d)){var e=b[d];nb(e)?c.set(d,Fg(a+"_"+d,e)):Sa(e)?c.set(d,Gg(a+"_"+d,e)):(ob(e)||l(e)||typeof e==="boolean")&&c.set(d,e)}c.Ma();return c};function Hg(a,b){K(this.getName(),["apiName:!string","message:?string"],arguments);var c={},d=new Ya;return d=Gg("AssertApiSubject",c)};function Ig(a,b){K(this.getName(),["actual:?*","message:?string"],arguments);if(a instanceof dd)throw Error("Argument actual cannot have type Promise. Assertions on asynchronous code aren't supported.");var c={},d=new Ya;return d=Gg("AssertThatSubject",c)};function Jg(a){return function(){for(var b=[],c=this.D,d=0;d<arguments.length;++d)b.push(H(arguments[d],c));return ed(a.apply(null,b))}}function Kg(){for(var a=Math,b=Lg,c={},d=0;d<b.length;d++){var e=b[d];a.hasOwnProperty(e)&&(c[e]=Jg(a[e].bind(a)))}return c};function Mg(a){var b;return b};function Ng(a){var b;return b};function Og(a){try{return encodeURI(a)}catch(b){}};function Pg(a){try{return encodeURIComponent(a)}catch(b){}};
var Qg=function(a,b){for(var c=0;c<b.length;c++){if(a===void 0)return;a=a[b[c]]}return a},Rg=function(a,b){var c=b.preHit;if(c){var d=a[0];switch(d){case "hitData":return a.length<2?void 0:Qg(c.getHitData(a[1]),a.slice(2));case "metadata":return a.length<2?void 0:Qg(c.getMetadata(a[1]),a.slice(2));case "eventName":return c.getEventName();case "destinationId":return c.getDestinationId();default:throw Error(d+" is not a valid field that can be accessed\n                      from PreHit data.");}}},
Tg=function(a,b){if(a){if(a.contextValue!==void 0){var c;a:{var d=a.contextValue,e=d.keyParts;if(e&&e.length!==0){var f=d.namespaceType;switch(f){case 1:c=Rg(e,b);break a;case 2:var g=b.macro;c=g?g[e[0]]:void 0;break a;default:throw Error("Unknown Namespace Type used: "+f);}}c=void 0}return c}if(a.booleanExpressionValue!==void 0)return Sg(a.booleanExpressionValue,b);if(a.booleanValue!==void 0)return!!a.booleanValue;if(a.stringValue!==void 0)return String(a.stringValue);if(a.integerValue!==void 0)return Number(a.integerValue);
if(a.doubleValue!==void 0)return Number(a.doubleValue);throw Error("Unknown field used for variable of type ExpressionValue:"+a);}},Sg=function(a,b){var c=a.args;if(!Array.isArray(c)||c.length===0)throw Error('Invalid boolean expression format. Expected "args":'+c+" property to\n         be non-empty array.");var d=function(g){return Tg(g,b)};switch(a.type){case 1:for(var e=0;e<c.length;e++)if(d(c[e]))return!0;return!1;case 2:for(var f=0;f<c.length;f++)if(!d(c[f]))return!1;return c.length>0;case 3:return!d(c[0]);
case 4:return ng(d(c[0]),d(c[1]),!1);case 5:return pg(d(c[0]),d(c[1]));case 6:return ug(d(c[0]),d(c[1]));case 7:return lg(d(c[0]),d(c[1]));case 8:return og(d(c[0]),d(c[1]));case 9:return tg(d(c[0]),d(c[1]));case 10:return rg(d(c[0]),d(c[1]));case 11:return sg(d(c[0]),d(c[1]));case 12:return qg(d(c[0]),d(c[1]));default:throw Error('Invalid boolean expression format. Expected "type" property tobe a positive integer which is less than 13.');}};function Ug(a){K(this.getName(),["message:?string"],arguments);};function Vg(a,b){K(this.getName(),["min:!number","max:!number"],arguments);return rb(a,b)};function Wg(){return(new Date).getTime()};function Xg(a){if(a===null)return"null";if(a instanceof Wa)return"array";if(a instanceof Xc)return"function";if(a instanceof bd){var b;a=(b=a)==null?void 0:b.getValue();var c;if(((c=a)==null?void 0:c.constructor)===void 0||a.constructor.name===void 0){var d=String(a);return d.substring(8,d.length-1)}return String(a.constructor.name)}return typeof a};function Yg(a){function b(c){return function(d){try{return c(d)}catch(e){(Tf||Uf.rk)&&a.call(this,e.message)}}}return{parse:b(function(c){return ed(JSON.parse(c))}),stringify:b(function(c){return JSON.stringify(H(c))})}};function Zg(a){return vb(H(a,this.D))};function $g(a){return Number(H(a,this.D))};function ah(a){return a===null?"null":a===void 0?"undefined":a.toString()};function bh(a,b,c){var d=null,e=!1;return e?d:null};var Lg="floor ceil round max min abs pow sqrt".split(" ");function ch(){var a={};return{Sl:function(b){return a.hasOwnProperty(b)?a[b]:void 0},nk:function(b,c){a[b]=c},reset:function(){a={}}}}function dh(a,b){return function(){var c=Array.prototype.slice.call(ya.apply(0,arguments),0);c.unshift(b);return Xc.prototype.invoke.apply(a,c)}}
function eh(a,b){K(this.getName(),["apiName:!string","mock:?*"],arguments);}
function fh(a,b){K(this.getName(),["apiName:!string","mock:!PixieMap"],arguments);};var gh={};
gh.keys=function(a){return new Wa};
gh.values=function(a){return new Wa};
gh.entries=function(a){return new Wa};
gh.freeze=function(a){return a};gh.delete=function(a,b){return!1};function M(a,b){var c=ya.apply(2,arguments),d=a.D.j;if(!d)throw Error("Missing program state.");if(d.Tm){try{d.Oj.apply(null,[b].concat(pa(c)))}catch(e){throw gb("TAGGING",21),e;}return}d.Oj.apply(null,[b].concat(pa(c)))};var ih=function(){this.C={};this.j={};this.H=!0;};ih.prototype.get=function(a,b){var c=this.contains(a)?this.C[a]:void 0;return c};ih.prototype.contains=function(a){return this.C.hasOwnProperty(a)};
ih.prototype.add=function(a,b,c){if(this.contains(a))throw Error("Attempting to add a function which already exists: "+a+".");if(this.j.hasOwnProperty(a))throw Error("Attempting to add an API with an existing private API name: "+a+".");this.C[a]=c?void 0:nb(b)?Fg(a,b):Gg(a,b)};function jh(a,b){var c=void 0;return c};function kh(){var a={};
return a};var P={g:{sa:"ad_personalization",O:"ad_storage",N:"ad_user_data",U:"analytics_storage",Fb:"region",Tb:"consent_updated",hf:"wait_for_update",yi:"app_remove",zi:"app_store_refund",Ai:"app_store_subscription_cancel",Bi:"app_store_subscription_convert",Ci:"app_store_subscription_renew",Ck:"consent_update",mg:"add_payment_info",ng:"add_shipping_info",rc:"add_to_cart",sc:"remove_from_cart",og:"view_cart",Ub:"begin_checkout",uc:"select_item",lb:"view_item_list",Gb:"select_promotion",nb:"view_promotion",
Ga:"purchase",vc:"refund",Na:"view_item",pg:"add_to_wishlist",Dk:"exception",Di:"first_open",Ei:"first_visit",aa:"gtag.config",Va:"gtag.get",Fi:"in_app_purchase",Vb:"page_view",Ek:"screen_view",Gi:"session_start",Fk:"timing_complete",Gk:"track_social",Pc:"user_engagement",Hk:"user_id_update",Jd:"gclid_link_decoration_source",Kd:"gclid_storage_source",ob:"gclgb",Wa:"gclid",kf:"gclgs",lf:"gcllp",nf:"gclst",fa:"ads_data_redaction",Hi:"gad_source",Ii:"gad_source_src",Ld:"gclid_url",Ji:"gclsrc",qg:"gbraid",
pf:"wbraid",ja:"allow_ad_personalization_signals",qf:"allow_custom_scripts",Md:"allow_direct_google_requests",rf:"allow_display_features",Nd:"allow_enhanced_conversions",pb:"allow_google_signals",za:"allow_interest_groups",Ik:"app_id",Jk:"app_installer_id",Kk:"app_name",Lk:"app_version",Hb:"auid",Ki:"auto_detection_enabled",Wb:"aw_remarketing",tf:"aw_remarketing_only",Od:"discount",Pd:"aw_feed_country",Qd:"aw_feed_language",ba:"items",Rd:"aw_merchant_id",rg:"aw_basket_type",Qc:"campaign_content",
Rc:"campaign_id",Sc:"campaign_medium",Tc:"campaign_name",Uc:"campaign",Vc:"campaign_source",Wc:"campaign_term",qb:"client_id",Li:"rnd",sg:"consent_update_type",Mi:"content_group",Ni:"content_type",Za:"conversion_cookie_prefix",Xc:"conversion_id",na:"conversion_linker",Oi:"conversion_linker_disabled",Xb:"conversion_api",uf:"cookie_deprecation",Oa:"cookie_domain",Pa:"cookie_expires",Xa:"cookie_flags",wc:"cookie_name",sb:"cookie_path",Ha:"cookie_prefix",Yb:"cookie_update",xc:"country",wa:"currency",
Sd:"customer_lifetime_value",Yc:"custom_map",ug:"gcldc",Td:"dclid",vg:"debug_mode",da:"developer_id",Pi:"disable_merchant_reported_purchases",Zc:"dc_custom_params",Qi:"dc_natural_search",wg:"dynamic_event_settings",xg:"affiliation",Ud:"checkout_option",vf:"checkout_step",yg:"coupon",bd:"item_list_name",wf:"list_name",Ri:"promotions",dd:"shipping",xf:"tax",Vd:"engagement_time_msec",Wd:"enhanced_client_id",Xd:"enhanced_conversions",zg:"enhanced_conversions_automatic_settings",Yd:"estimated_delivery_date",
yf:"euid_logged_in_state",ed:"event_callback",Mk:"event_category",ab:"event_developer_id_string",Nk:"event_label",yc:"event",Zd:"event_settings",ae:"event_timeout",Ok:"description",Pk:"fatal",Si:"experiments",zf:"firebase_id",zc:"first_party_collection",be:"_x_20",tb:"_x_19",Ti:"fledge_drop_reason",Ag:"fledge",Bg:"flight_error_code",Cg:"flight_error_message",Ui:"fl_activity_category",Vi:"fl_activity_group",Dg:"fl_advertiser_id",Wi:"fl_ar_dedupe",Eg:"match_id",Xi:"fl_random_number",Yi:"tran",Zi:"u",
ce:"gac_gclid",Ac:"gac_wbraid",Fg:"gac_wbraid_multiple_conversions",Gg:"ga_restrict_domain",Hg:"ga_temp_client_id",Qk:"ga_temp_ecid",Zb:"gdpr_applies",Ig:"geo_granularity",Ib:"value_callback",ub:"value_key",Bc:"_google_ng",Cc:"google_signals",Jg:"google_tld",de:"groups",Kg:"gsa_experiment_id",aj:"gtm_up",Jb:"iframe_state",fd:"ignore_referrer",Af:"internal_traffic_results",ac:"is_legacy_converted",Kb:"is_legacy_loaded",ee:"is_passthrough",gd:"_lps",Qa:"language",fe:"legacy_developer_id_string",oa:"linker",
Dc:"accept_incoming",vb:"decorate_forms",W:"domains",Lb:"url_position",Bf:"merchant_feed_label",Cf:"merchant_feed_language",Df:"merchant_id",Lg:"method",Rk:"name",hd:"new_customer",Mg:"non_interaction",bj:"optimize_id",Ng:"page_hostname",jd:"page_path",Aa:"page_referrer",eb:"page_title",Og:"passengers",Pg:"phone_conversion_callback",cj:"phone_conversion_country_code",Qg:"phone_conversion_css_class",dj:"phone_conversion_ids",Rg:"phone_conversion_number",Sg:"phone_conversion_options",Tg:"_protected_audience_enabled",
kd:"quantity",he:"redact_device_info",Ef:"referral_exclusion_definition",Mb:"restricted_data_processing",ej:"retoken",Sk:"sample_rate",Ff:"screen_name",Nb:"screen_resolution",fj:"_script_source",gj:"search_term",Ia:"send_page_view",bc:"send_to",ld:"server_container_url",md:"session_duration",ie:"session_engaged",Gf:"session_engaged_time",wb:"session_id",je:"session_number",Hf:"_shared_user_id",nd:"delivery_postal_code",Tk:"temporary_client_id",If:"topmost_url",ij:"tracking_id",Jf:"traffic_type",xa:"transaction_id",
Ob:"transport_url",Ug:"trip_type",hc:"update",Ya:"url_passthrough",Kf:"_user_agent_architecture",Lf:"_user_agent_bitness",Mf:"_user_agent_full_version_list",Nf:"_user_agent_mobile",Of:"_user_agent_model",Pf:"_user_agent_platform",Qf:"_user_agent_platform_version",Rf:"_user_agent_wow64",Ba:"user_data",Vg:"user_data_auto_latency",Wg:"user_data_auto_meta",Xg:"user_data_auto_multi",Yg:"user_data_auto_selectors",Zg:"user_data_auto_status",od:"user_data_mode",ke:"user_data_settings",ya:"user_id",fb:"user_properties",
jj:"_user_region",pd:"us_privacy_string",ka:"value",ah:"wbraid_multiple_conversions",rd:"_fpm_parameters",qj:"_host_name",rj:"_in_page_command",sj:"_ip_override",tj:"_is_passthrough_cid",Pb:"non_personalized_ads",ve:"_sst_parameters",rb:"conversion_label",qa:"page_location",cb:"global_developer_id_string",fc:"tc_privacy_string"}},lh={},mh=Object.freeze((lh[P.g.ja]=1,lh[P.g.rf]=1,lh[P.g.Nd]=1,lh[P.g.pb]=1,lh[P.g.ba]=1,lh[P.g.Oa]=1,lh[P.g.Pa]=1,lh[P.g.Xa]=1,lh[P.g.wc]=1,lh[P.g.sb]=1,lh[P.g.Ha]=1,lh[P.g.Yb]=
1,lh[P.g.Yc]=1,lh[P.g.da]=1,lh[P.g.wg]=1,lh[P.g.ed]=1,lh[P.g.Zd]=1,lh[P.g.ae]=1,lh[P.g.zc]=1,lh[P.g.Gg]=1,lh[P.g.Cc]=1,lh[P.g.Jg]=1,lh[P.g.de]=1,lh[P.g.Af]=1,lh[P.g.ac]=1,lh[P.g.Kb]=1,lh[P.g.oa]=1,lh[P.g.Ef]=1,lh[P.g.Mb]=1,lh[P.g.Ia]=1,lh[P.g.bc]=1,lh[P.g.ld]=1,lh[P.g.md]=1,lh[P.g.Gf]=1,lh[P.g.nd]=1,lh[P.g.Ob]=1,lh[P.g.hc]=1,lh[P.g.ke]=1,lh[P.g.fb]=1,lh[P.g.ve]=1,lh));Object.freeze([P.g.qa,P.g.Aa,P.g.eb,P.g.Qa,P.g.Ff,P.g.ya,P.g.zf,P.g.Mi]);
var nh={},oh=Object.freeze((nh[P.g.yi]=1,nh[P.g.zi]=1,nh[P.g.Ai]=1,nh[P.g.Bi]=1,nh[P.g.Ci]=1,nh[P.g.Di]=1,nh[P.g.Ei]=1,nh[P.g.Fi]=1,nh[P.g.Gi]=1,nh[P.g.Pc]=1,nh)),ph={},qh=Object.freeze((ph[P.g.mg]=1,ph[P.g.ng]=1,ph[P.g.rc]=1,ph[P.g.sc]=1,ph[P.g.og]=1,ph[P.g.Ub]=1,ph[P.g.uc]=1,ph[P.g.lb]=1,ph[P.g.Gb]=1,ph[P.g.nb]=1,ph[P.g.Ga]=1,ph[P.g.vc]=1,ph[P.g.Na]=1,ph[P.g.pg]=1,ph)),rh=Object.freeze([P.g.ja,P.g.Md,P.g.pb,P.g.Yb,P.g.zc,P.g.fd,P.g.Ia,P.g.hc]),sh=Object.freeze([].concat(pa(rh))),th=Object.freeze([P.g.Pa,
P.g.ae,P.g.md,P.g.Gf,P.g.Vd]),uh=Object.freeze([].concat(pa(th))),vh={},wh=(vh[P.g.O]="1",vh[P.g.U]="2",vh[P.g.N]="3",vh[P.g.sa]="4",vh),zh={},Ah=Object.freeze((zh[P.g.Jd]=1,zh[P.g.Kd]=1,zh[P.g.ja]=1,zh[P.g.Md]=1,zh[P.g.Nd]=1,zh[P.g.za]=1,zh[P.g.Wb]=1,zh[P.g.tf]=1,zh[P.g.Od]=1,zh[P.g.Pd]=1,zh[P.g.Qd]=1,zh[P.g.ba]=1,zh[P.g.Rd]=1,zh[P.g.Za]=1,zh[P.g.na]=1,zh[P.g.Oa]=1,zh[P.g.Pa]=1,zh[P.g.Xa]=1,zh[P.g.Ha]=1,zh[P.g.wa]=1,zh[P.g.Sd]=1,zh[P.g.da]=1,zh[P.g.Pi]=1,zh[P.g.Xd]=1,zh[P.g.Yd]=1,zh[P.g.zf]=1,zh[P.g.zc]=
1,zh[P.g.ac]=1,zh[P.g.Kb]=1,zh[P.g.Qa]=1,zh[P.g.Bf]=1,zh[P.g.Cf]=1,zh[P.g.Df]=1,zh[P.g.hd]=1,zh[P.g.qa]=1,zh[P.g.Aa]=1,zh[P.g.Pg]=1,zh[P.g.Qg]=1,zh[P.g.Rg]=1,zh[P.g.Sg]=1,zh[P.g.Mb]=1,zh[P.g.Ia]=1,zh[P.g.bc]=1,zh[P.g.ld]=1,zh[P.g.nd]=1,zh[P.g.xa]=1,zh[P.g.Ob]=1,zh[P.g.hc]=1,zh[P.g.Ya]=1,zh[P.g.Ba]=1,zh[P.g.ya]=1,zh[P.g.ka]=1,zh)),Bh={},Ch=Object.freeze((Bh.search="s",Bh.youtube="y",Bh.playstore="p",Bh.shopping="h",Bh.ads="a",Bh.maps="m",Bh));Object.freeze(P.g);var Q={},Dh=(Q[P.g.Tb]="gcu",Q[P.g.ob]="gclgb",Q[P.g.Wa]="gclaw",Q[P.g.kf]="gclgs",Q[P.g.lf]="gcllp",Q[P.g.nf]="gclst",Q[P.g.Hb]="auid",Q[P.g.Od]="dscnt",Q[P.g.Pd]="fcntr",Q[P.g.Qd]="flng",Q[P.g.Rd]="mid",Q[P.g.rg]="bttype",Q[P.g.rb]="label",Q[P.g.Xb]="capi",Q[P.g.uf]="pscdl",Q[P.g.wa]="currency_code",Q[P.g.Sd]="vdltv",Q[P.g.vg]="_dbg",Q[P.g.Yd]="oedeld",Q[P.g.ab]="edid",Q[P.g.Ti]="fdr",Q[P.g.Ag]="fledge",Q[P.g.ce]="gac",Q[P.g.Ac]="gacgb",Q[P.g.Fg]="gacmcov",Q[P.g.Zb]="gdpr",Q[P.g.cb]="gdid",Q[P.g.Bc]=
"_ng",Q[P.g.Kg]="gsaexp",Q[P.g.Jb]="frm",Q[P.g.ee]="gtm_up",Q[P.g.gd]="lps",Q[P.g.fe]="did",Q[P.g.Bf]="fcntr",Q[P.g.Cf]="flng",Q[P.g.Df]="mid",Q[P.g.hd]=void 0,Q[P.g.eb]="tiba",Q[P.g.Mb]="rdp",Q[P.g.wb]="ecsid",Q[P.g.Hf]="ga_uid",Q[P.g.nd]="delopc",Q[P.g.fc]="gdpr_consent",Q[P.g.xa]="oid",Q[P.g.Kf]="uaa",Q[P.g.Lf]="uab",Q[P.g.Mf]="uafvl",Q[P.g.Nf]="uamb",Q[P.g.Of]="uam",Q[P.g.Pf]="uap",Q[P.g.Qf]="uapv",Q[P.g.Rf]="uaw",Q[P.g.Vg]="ec_lat",Q[P.g.Wg]="ec_meta",Q[P.g.Xg]="ec_m",Q[P.g.Yg]="ec_sel",Q[P.g.Zg]=
"ec_s",Q[P.g.od]="ec_mode",Q[P.g.ya]="userId",Q[P.g.pd]="us_privacy",Q[P.g.ka]="value",Q[P.g.ah]="mcov",Q[P.g.qj]="hn",Q[P.g.rj]="gtm_ee",Q[P.g.Pb]="npa",Q[P.g.Xc]=null,Q[P.g.Nb]=null,Q[P.g.Qa]=null,Q[P.g.ba]=null,Q[P.g.qa]=null,Q[P.g.Aa]=null,Q[P.g.If]=null,Q[P.g.rd]=null,Q[P.g.Jd]=null,Q[P.g.Kd]=null,Q);function Eh(a,b){if(a){var c=a.split("x");c.length===2&&(Fh(b,"u_w",c[0]),Fh(b,"u_h",c[1]))}}function Gh(a,b){a&&(a.length===2?Fh(b,"hl",a):a.length===5&&(Fh(b,"hl",a.substring(0,2)),Fh(b,"gl",a.substring(3,5))))}
function Hh(a){var b=Ih;b=b===void 0?Jh:b;var c;var d=b;if(a&&a.length){for(var e=[],f=0;f<a.length;++f){var g=a[f];g&&e.push({item_id:d(g),quantity:g.quantity,value:g.price,start_date:g.start_date,end_date:g.end_date})}c=e}else c=[];var k;var m=c;if(m){for(var n=[],p=0;p<m.length;p++){var q=m[p],r=[];q&&(r.push(Kh(q.value)),r.push(Kh(q.quantity)),r.push(Kh(q.item_id)),r.push(Kh(q.start_date)),r.push(Kh(q.end_date)),n.push("("+r.join("*")+")"))}k=n.length>0?n.join(""):""}else k="";return k}
function Jh(a){return Lh(a.item_id,a.id,a.item_name)}function Lh(){for(var a=h(ya.apply(0,arguments)),b=a.next();!b.done;b=a.next()){var c=b.value;if(c!==null&&c!==void 0)return c}}function Mh(a){if(a&&a.length){for(var b=[],c=0;c<a.length;++c){var d=a[c];d&&d.estimated_delivery_date?b.push(""+d.estimated_delivery_date):b.push("")}return b.join(",")}}function Fh(a,b,c){c===void 0||c===null||c===""&&!bg[b]||(a[b]=c)}function Kh(a){return typeof a!=="number"&&typeof a!=="string"?"":a.toString()};function Nh(a){return Oh?E.querySelectorAll(a):null}
function Ph(a,b){if(!Oh)return null;if(Element.prototype.closest)try{return a.closest(b)}catch(e){return null}var c=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector,d=a;if(!E.documentElement.contains(d))return null;do{try{if(c.call(d,b))return d}catch(e){break}d=d.parentElement||d.parentNode}while(d!==null&&d.nodeType===1);return null}var Qh=!1;
if(E.querySelectorAll)try{var Rh=E.querySelectorAll(":root");Rh&&Rh.length==1&&Rh[0]==E.documentElement&&(Qh=!0)}catch(a){}var Oh=Qh;var Sh=/^[0-9A-Fa-f]{64}$/;function Th(a){try{return(new TextEncoder).encode(a)}catch(e){for(var b=[],c=0;c<a.length;c++){var d=a.charCodeAt(c);d<128?b.push(d):d<2048?b.push(192|d>>6,128|d&63):d<55296||d>=57344?b.push(224|d>>12,128|d>>6&63,128|d&63):(d=65536+((d&1023)<<10|a.charCodeAt(++c)&1023),b.push(240|d>>18,128|d>>12&63,128|d>>6&63,128|d&63))}return new Uint8Array(b)}}
function Uh(a){if(a===""||a==="e0")return Promise.resolve(a);var b;if((b=C.crypto)==null?0:b.subtle){if(Sh.test(a))return Promise.resolve(a);try{var c=Th(a);return C.crypto.subtle.digest("SHA-256",c).then(function(d){var e=Array.from(new Uint8Array(d)).map(function(f){return String.fromCharCode(f)}).join("");return C.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}).catch(function(){return"e2"})}catch(d){return Promise.resolve("e2")}}else return Promise.resolve("e1")};function Vh(a,b){if(a==="")return b;var c=Number(a);return isNaN(c)?b:c};var Wh=[];function Xh(a){switch(a){case 0:return 0;case 42:return 1;case 43:return 2;case 44:return 9;case 50:return 3;case 62:return 4;case 71:return 7;case 85:return 5;case 98:return 6;case 99:return 11;case 100:return 8}}function R(a){Wh[a]=!0;var b=Xh(a);b!==void 0&&(jb[b]=!0)}
R(32);
R(28);R(29);R(30);R(31);R(45);R(75);R(15);
R(107);R(14);
R(113);R(106);
R(63);R(86);
R(6);R(46);R(4);
R(79);R(103);
R(70);R(67);
R(84);
R(118);
R(114);R(85);R(5);R(71);R(98);
kb[1]=Vh('1',6E4);kb[3]=Vh('10',1);kb[2]=Vh('',50);R(24);R(12);R(66);R(104);var Yh=!1;
R(8);R(87);R(54);R(23);R(117);R(100);R(90);R(48);R(21);R(50);
R(59);
R(72);R(57);R(99);
R(102);R(68);R(83);R(58);R(51);R(91);function U(a){return!!Wh[a]}function V(a){gb("GTM",a)};
var ei=function(a){var b={},c=["tv.1"],d=0;for(var e=h(a),f=e.next();!f.done;f=e.next()){var g=f.value;if(g.value!==""){var k,m=void 0,n=g.name,p=g.value,q=bi[n];if(q){var r=(m=g.index)!=null?m:"",t=q+"__"+d;!ci(n)||/^e\d+$/.test(p)||di.test(p)||Sh.test(p)?k=encodeURIComponent(encodeURIComponent(p)):(k="${userData."+t+"|sha256}",b[t]=p,d++);c.push(""+q+r+"."+k)}}}var v=c.join("~");return{gi:{userData:b},
jn:v,rn:d}},ci=function(a){return fi.indexOf(a)!==-1},ii=function(a,b){if(C.Promise)try{var c=new Promise(function(d){gi(a,d)});return c}catch(d){}},ji=function(a){if(C.Promise)try{return new Promise(function(b){gi(a,function(c){b(c)})})}catch(b){}},ki=function(a){for(var b=a.Ze,c=a.time,d=["tv.1"],e=0,f=!1,g=0;g<b.length;++g){var k=
b[g].name,m=b[g].value,n=b[g].index,p=bi[k];p&&m&&(!ci(k)||/^e\d+$/.test(m)||di.test(m)||Sh.test(m))&&(n!==void 0&&(p+=n),d.push(p+"."+m),e++)}b.length===1&&b[0].name==="error_code"&&(e=0,f=!0);return{Rb:encodeURIComponent(d.join("~")),fg:e,time:c,Vj:f}},gi=function(a,b){li(a,function(c){b(ki(c))})},ti=function(a){function b(r,t,v,u){var w=mi(r);w!==""&&(Sh.test(w)?k.push({name:t,value:w,index:u}):k.push({name:t,value:v(w),index:u}))}function c(r,t){var v=r;if(l(v)||Array.isArray(v)){v=pb(r);for(var u=
0;u<v.length;++u){var w=mi(v[u]),x=Sh.test(w);t&&!x&&V(89);!t&&x&&V(88)}}}function d(r,t){var v=r[t];c(v,!1);var u=ni[t];r[u]&&(r[t]&&V(90),v=r[u],c(v,!0));return v}function e(r,t,v){for(var u=pb(d(r,t)),w=0;w<u.length;++w)b(u[w],t,v)}function f(r,t,v,u){var w=d(r,t);b(w,t,v,u)}function g(r){return function(t){V(64);return r(t)}}var k=[];if(C.location.protocol!=="https:")return k.push({name:"error_code",value:"e3",index:void 0}),k;e(a,"email",oi);e(a,"phone_number",pi);e(a,"first_name",g(qi));e(a,
"last_name",g(qi));var m=a.home_address||{};e(m,"street",g(ri));e(m,"city",g(ri));e(m,"postal_code",g(si));e(m,"region",g(ri));e(m,"country",g(si));for(var n=pb(a.address||{}),p=0;p<n.length;p++){var q=n[p];f(q,"first_name",qi,p);f(q,"last_name",qi,p);f(q,"street",ri,p);f(q,"city",ri,p);f(q,"postal_code",si,p);f(q,"region",ri,p);f(q,"country",si,p)}return k},ui=function(a){var b=a?ti(a):[];return ki({Ze:b})},vi=function(a){return a&&a!=null&&Object.keys(a).length>0&&C.Promise?ti(a).some(function(b){return b.value&&
ci(b.name)&&!Sh.test(b.value)}):!1},li=function(a,b){var c=ti(a);wi(c,b)},mi=function(a){return a==null?"":l(a)?yb(String(a)):"e0"},si=function(a){return a.replace(xi,"")},qi=function(a){return ri(a.replace(/\s/g,""))},ri=function(a){return yb(a.replace(yi,"").toLowerCase())},pi=function(a){a=a.replace(/[\s-()/.]/g,"");a.charAt(0)!=="+"&&(a="+"+a);return zi.test(a)?a:"e0"},oi=function(a){var b=a.toLowerCase().split("@");if(b.length===2){var c=b[0];/^(gmail|googlemail)\./.test(b[1])&&(c=c.replace(/\./g,
""));c=c+"@"+b[1];if(Ai.test(c))return c}return"e0"},wi=function(a,b){var c=!1;if(c=U(53)?!a.some(function(e){return e.value&&ci(e.name)}):a.some(function(e){e.value&&ci(e.name)}))b({Ze:a});else if(C.Promise){var d;if(U(52)||U(77))d=Pc();Promise.all(a.map(function(e){return e.value&&ci(e.name)?Uh(e.value).then(function(f){e.value=f}):Promise.resolve()})).then(function(){var e={Ze:a};if(d!==void 0){var f=Pc();d&&f&&(e.time=Math.round(f)-Math.round(d))}b(e)}).catch(function(){b({Ze:[]})})}else b({Ze:[]})},
yi=/[0-9`~!@#$%^&*()_\-+=:;<>,.?|/\\[\]]/g,Ai=/^\S+@\S+\.\S+$/,zi=/^\+\d{10,15}$/,xi=/[.~]/g,di=/^[0-9A-Za-z_-]{43}$/,Bi={},bi=(Bi.email="em",Bi.phone_number="pn",Bi.first_name="fn",Bi.last_name="ln",Bi.street="sa",Bi.city="ct",Bi.region="rg",Bi.country="co",Bi.postal_code="pc",Bi.error_code="ec",Bi),Ci={},ni=(Ci.email="sha256_email_address",Ci.phone_number="sha256_phone_number",Ci.first_name="sha256_first_name",Ci.last_name="sha256_last_name",Ci.street="sha256_street",Ci);
var fi=Object.freeze(["email","phone_number","first_name","last_name","street"]);var Di={},Ei=C.google_tag_manager=C.google_tag_manager||{};Di.hh="4ah0";Di.ue=Number("0")||0;Di.kb="dataLayer";Di.un="ChAI8JrduAYQ9tWY2JGf0NxnEicAONg/BjcmSdDKHsObcYvVl2JbhgXv2qNkARpCkOWxQmWeMuiL8FMaAldc";var Fi={__cl:1,__ecl:1,__ehl:1,__evl:1,__fal:1,__fil:1,__fsl:1,__hl:1,__jel:1,__lcl:1,__sdl:1,__tl:1,__ytl:1},Gi={__paused:1,__tg:1},Hi;for(Hi in Fi)Fi.hasOwnProperty(Hi)&&(Gi[Hi]=1);var Ii=wb("true"),Ji=!0,Ki,Li=!1;Li=!0;
Ki=Li;var Mi,Ni=!1;Mi=Ni;var Oi,Pi=!1;Oi=Pi;Di.jf="www.googletagmanager.com";var Qi=""+Di.jf+(Ki?"/gtag/js":"/gtm.js"),Ri=null,Si=null,Ti={},Ui={};function Vi(){var a=Ei.sequence||1;Ei.sequence=a+1;return a}Di.Ak="true";var Wi="";Di.ih=Wi;var Xi=new function(){this.j="";this.H=!1;this.C=0;this.P=this.Z=this.Ra=this.K=""};function Yi(){var a=Xi.K.length;return Xi.K[a-1]==="/"?Xi.K.substring(0,a-1):Xi.K}function Zi(){return Xi.H&&Xi.C!==1}function $i(a){for(var b={},c=h(a.split("|")),d=c.next();!d.done;d=c.next())b[d.value]=!0;return b}var aj=new tb,bj={},cj={},fj={name:Di.kb,set:function(a,b){Ta(Ib(a,b),bj);dj()},get:function(a){return ej(a,2)},reset:function(){aj=new tb;bj={};dj()}};function ej(a,b){return b!=2?aj.get(a):gj(a)}function gj(a,b){var c=a.split(".");b=b||[];for(var d=bj,e=0;e<c.length;e++){if(d===null)return!1;if(d===void 0)break;d=d[c[e]];if(b.indexOf(d)!==-1)return}return d}function hj(a,b){cj.hasOwnProperty(a)||(aj.set(a,b),Ta(Ib(a,b),bj),dj())}
function ij(){for(var a=["gtm.allowlist","gtm.blocklist","gtm.whitelist","gtm.blacklist","tagTypeBlacklist"],b=0;b<a.length;b++){var c=a[b],d=ej(c,1);if(Array.isArray(d)||Sa(d))d=Ta(d);cj[c]=d}}function dj(a){z(cj,function(b,c){aj.set(b,c);Ta(Ib(b),bj);Ta(Ib(b,c),bj);a&&delete cj[b]})}function jj(a,b){var c,d=(b===void 0?2:b)!==1?gj(a):aj.get(a);Pa(d)==="array"||Pa(d)==="object"?c=Ta(d):c=d;return c};
var kj=function(a,b,c){if(!c)return!1;var d=c.selector_type,e=String(c.value),f=U(102),g;if(f||d==="js_variable")for(var k=e.replace(/\["?'?/g,".").replace(/"?'?\]/g,"").split(","),m=0;m<k.length;m++){var n=k[m].trim();if(n&&!Fb(n,"#")&&!Fb(n,".")){if(Fb(n,"dataLayer."))g=ej(n.substring(10));else{var p=n.split(".");g=C[p.shift()];for(var q=0;q<p.length;q++)g=g&&g[p[q]]}if(g!==void 0)break}}if((f&&g===void 0||!f&&d==="css_selector")&&Oh)try{var r=Nh(e);if(r&&r.length>0){g=[];for(var t=0;t<r.length&&
t<(b==="email"||b==="phone_number"?5:1);t++)g.push(Gc(r[t])||yb(r[t].value));g=g.length===1?g[0]:g}}catch(v){V(149)}return g?(a[b]=g,!0):!1},lj=function(a){if(a){var b={},c=!1;c=kj(b,"email",a.email)||c;c=kj(b,"phone_number",a.phone)||c;b.address=[];for(var d=a.name_and_address||[],e=0;e<d.length;e++){var f={};c=kj(f,"first_name",d[e].first_name)||c;c=kj(f,"last_name",d[e].last_name)||c;c=kj(f,"street",d[e].street)||c;c=kj(f,"city",d[e].city)||c;c=kj(f,"region",d[e].region)||c;c=kj(f,"country",d[e].country)||
c;c=kj(f,"postal_code",d[e].postal_code)||c;b.address.push(f)}return c?b:void 0}},mj=function(a,b){switch(a.enhanced_conversions_mode){case "manual":if(b&&Sa(b))return b;var c=a.enhanced_conversions_manual_var;if(c!==void 0)return c;var d=C.enhanced_conversion_data;d&&V(154);return d;case "automatic":return lj(a[P.g.zg])}},nj=function(a){return Sa(a)?!!a.enable_code:!1};var oj=/:[0-9]+$/,pj=/^\d+\.fls\.doubleclick\.net$/;function qj(a,b,c,d){for(var e=[],f=h(a.split("&")),g=f.next();!g.done;g=f.next()){var k=h(g.value.split("=")),m=k.next().value,n=oa(k);if(decodeURIComponent(m.replace(/\+/g," "))===b){var p=n.join("=");if(!c)return d?p:decodeURIComponent(p.replace(/\+/g," "));e.push(d?p:decodeURIComponent(p.replace(/\+/g," ")))}}return c?e:void 0}
function rj(a,b,c,d,e){b&&(b=String(b).toLowerCase());if(b==="protocol"||b==="port")a.protocol=sj(a.protocol)||sj(C.location.protocol);b==="port"?a.port=String(Number(a.hostname?a.port:C.location.port)||(a.protocol==="http"?80:a.protocol==="https"?443:"")):b==="host"&&(a.hostname=(a.hostname||C.location.hostname).replace(oj,"").toLowerCase());return tj(a,b,c,d,e)}
function tj(a,b,c,d,e){var f,g=sj(a.protocol);b&&(b=String(b).toLowerCase());switch(b){case "url_no_fragment":f=uj(a);break;case "protocol":f=g;break;case "host":f=a.hostname.replace(oj,"").toLowerCase();if(c){var k=/^www\d*\./.exec(f);k&&k[0]&&(f=f.substring(k[0].length))}break;case "port":f=String(Number(a.port)||(g==="http"?80:g==="https"?443:""));break;case "path":a.pathname||a.hostname||gb("TAGGING",1);f=a.pathname.substring(0,1)==="/"?a.pathname:"/"+a.pathname;var m=f.split("/");(d||[]).indexOf(m[m.length-
1])>=0&&(m[m.length-1]="");f=m.join("/");break;case "query":f=a.search.replace("?","");e&&(f=qj(f,e,!1));break;case "extension":var n=a.pathname.split(".");f=n.length>1?n[n.length-1]:"";f=f.split("/")[0];break;case "fragment":f=a.hash.replace("#","");break;default:f=a&&a.href}return f}function sj(a){return a?a.replace(":","").toLowerCase():""}function uj(a){var b="";if(a&&a.href){var c=a.href.indexOf("#");b=c<0?a.href:a.href.substring(0,c)}return b}var vj={},wj=0;
function xj(a){var b=vj[a];if(!b){var c=E.createElement("a");a&&(c.href=a);var d=c.pathname;d[0]!=="/"&&(a||gb("TAGGING",1),d="/"+d);var e=c.hostname.replace(oj,"");b={href:c.href,protocol:c.protocol,host:c.host,hostname:e,pathname:d,search:c.search,hash:c.hash,port:c.port};wj<5&&(vj[a]=b,wj++)}return b}
function yj(a){function b(n){var p=n.split("=")[0];return d.indexOf(p)<0?n:p+"=0"}function c(n){return n.split("&").map(b).filter(function(p){return p!==void 0}).join("&")}var d="gclid dclid gbraid wbraid gclaw gcldc gclha gclgf gclgb _gl".split(" "),e=xj(a),f=a.split(/[?#]/)[0],g=e.search,k=e.hash;g[0]==="?"&&(g=g.substring(1));k[0]==="#"&&(k=k.substring(1));g=c(g);k=c(k);g!==""&&(g="?"+g);k!==""&&(k="#"+k);var m=""+f+g+k;m[m.length-1]==="/"&&(m=m.substring(0,m.length-1));return m}
function zj(a){var b=xj(C.location.href),c=rj(b,"host",!1);if(c&&c.match(pj)){var d=rj(b,"path");if(d){var e=d.split(a+"=");if(e.length>1)return e[1].split(";")[0].split("?")[0]}}}function Aj(a){for(var b=0;b<3;++b)try{var c=decodeURIComponent(a).replace(/\+/g," ");if(c===a)break;a=c}catch(d){return""}return a};var Bj={"https://www.google.com":"/g","https://www.googleadservices.com":"/as","https://pagead2.googlesyndication.com":"/gs"};function Cj(a,b){if(a){var c=""+a;c.indexOf("http://")!==0&&c.indexOf("https://")!==0&&(c="https://"+c);c[c.length-1]==="/"&&(c=c.substring(0,c.length-1));return xj(""+c+b).href}}function Dj(a,b){if(Zi()||Mi)return Cj(a,b)}function Ej(){return!!Di.ih&&Di.ih.split("@@").join("")!=="SGTM_TOKEN"}
function Fj(a){for(var b=h([P.g.ld,P.g.Ob]),c=b.next();!c.done;c=b.next()){var d=W(a,c.value);if(d)return d}}function Gj(a,b){return Zi()?""+Yi()+(b?Bj[a]||"":""):a};function Hj(a){var b=String(a[Ie.la]||"").replace(/_/g,"");return Fb(b,"cvt")?"cvt":b}var Ij=C.location.search.indexOf("?gtm_latency=")>=0||C.location.search.indexOf("&gtm_latency=")>=0;var Jj={sampleRate:"0.005000",wk:"",sn:"0.01"},Kj=Math.random(),Lj;if(!(Lj=Ij)){var Mj=Jj.sampleRate;Lj=Kj<Number(Mj)}var Nj=Lj,Oj=(sc==null?void 0:sc.includes("gtm_debug=d"))||Ij||Kj>=1-Number(Jj.sn);var Pj=/gtag[.\/]js/,Qj=/gtm[.\/]js/,Rj=!1;function Vj(a){if(Rj)return"1";var b=a.scriptSource;if(b){if(Pj.test(b))return"3";if(Qj.test(b))return"2"}return"0"}function Wj(a,b){var c=Xj();c.pending||(c.pending=[]);qb(c.pending,function(d){return d.target.ctid===a.ctid&&d.target.isDestination===a.isDestination})||c.pending.push({target:a,onLoad:b})}function Yj(){var a=C.google_tags_first_party;Array.isArray(a)||(a=[]);for(var b={},c=h(a),d=c.next();!d.done;d=c.next())b[d.value]=!0;return Object.freeze(b)}
var Zj=function(){this.container={};this.destination={};this.canonical={};this.pending=[];this.siloed=[];this.injectedFirstPartyContainers={};this.injectedFirstPartyContainers=Yj()};
function Xj(){var a=tc("google_tag_data",{}),b=a.tidr;b&&typeof b==="object"||(b=new Zj,a.tidr=b);var c=b;c.container||(c.container={});c.destination||(c.destination={});c.canonical||(c.canonical={});c.pending||(c.pending=[]);c.siloed||(c.siloed=[]);c.injectedFirstPartyContainers||(c.injectedFirstPartyContainers=Yj());return c};var ak={},bk=!1,Of={ctid:"AW-16541267414",canonicalContainerId:"183459467",dk:"AW-16541267414|GT-P3M3MKJ8",ek:"AW-16541267414"};ak.qe=wb("");function ck(){var a=dk();return bk?a.map(ek):a}function fk(){var a=gk();return bk?a.map(ek):a}function hk(){return ik(Of.ctid)}function jk(){return ik(Of.canonicalContainerId||"_"+Of.ctid)}function dk(){return Of.dk?Of.dk.split("|"):[Of.ctid]}function gk(){return Of.ek?Of.ek.split("|"):[]}
function kk(){var a=lk(mk()),b=a&&a.parent;if(b)return lk(b)}function lk(a){var b=Xj();return a.isDestination?b.destination[a.ctid]:b.container[a.ctid]}function ik(a){return bk?ek(a):a}function ek(a){return"siloed_"+a}function nk(a){return bk?ok(a):a}function ok(a){a=String(a);return Fb(a,"siloed_")?a.substring(7):a}
function pk(){var a=!1;if(a){var b=Xj();if(b.siloed){for(var c=[],d=dk().map(ek),e=gk().map(ek),f={},g=0;g<b.siloed.length;f={Wf:void 0},g++)f.Wf=b.siloed[g],!bk&&qb(f.Wf.isDestination?e:d,function(k){return function(m){return m===k.Wf.ctid}}(f))?bk=!0:c.push(f.Wf);b.siloed=c}}}
function qk(){var a=Xj();if(a.pending){for(var b,c=[],d=!1,e=ck(),f=fk(),g={},k=0;k<a.pending.length;g={Xe:void 0},k++)g.Xe=a.pending[k],qb(g.Xe.target.isDestination?f:e,function(m){return function(n){return n===m.Xe.target.ctid}}(g))?d||(b=g.Xe.onLoad,d=!0):c.push(g.Xe);a.pending=c;if(b)try{b(jk())}catch(m){}}}
function rk(){for(var a=Of.ctid,b=ck(),c=fk(),d=function(n,p){var q={canonicalContainerId:Of.canonicalContainerId,scriptContainerId:a,state:2,containers:b.slice(),destinations:c.slice()};rc&&(q.scriptElement=rc);sc&&(q.scriptSource=sc);if(kk()===void 0){var r;a:{if((q.scriptContainerId||"").indexOf("GTM-")>=0){var t;b:{if(q.scriptSource){for(var v=Xi.H,u=xj(q.scriptSource),w=v?u.pathname:""+u.hostname+u.pathname,x=E.scripts,y="",A=0;A<x.length;++A){var B=x[A];if(!(B.innerHTML.length===0||!v&&B.innerHTML.indexOf(q.scriptContainerId||
"SHOULD_NOT_BE_SET")<0||B.innerHTML.indexOf(w)<0)){if(B.innerHTML.indexOf("(function(w,d,s,l,i)")>=0){t=String(A);break b}y=String(A)}}if(y){t=y;break b}}t=void 0}var D=t;if(D){Rj=!0;r=D;break a}}var G=[].slice.call(document.scripts);r=q.scriptElement?String(G.indexOf(q.scriptElement)):"-1"}q.htmlLoadOrder=r;q.loadScriptType=Vj(q)}var J=p?e.destination:e.container,I=J[n];I?(p&&I.state===0&&V(93),Object.assign(I,q)):J[n]=q},e=Xj(),f=h(b),g=f.next();!g.done;g=f.next())d(g.value,!1);for(var k=h(c),m=
k.next();!m.done;m=k.next())d(m.value,!0);e.canonical[jk()]={};qk()}function sk(a){return!!Xj().container[a]}function tk(a){var b=Xj().destination[a];return!!b&&!!b.state}function mk(){return{ctid:hk(),isDestination:ak.qe}}function uk(a){var b=Xj();(b.siloed=b.siloed||[]).push(a)}function vk(){var a=Xj().container,b;for(b in a)if(a.hasOwnProperty(b)&&a[b].state===1)return!0;return!1}function wk(){var a={};z(Xj().destination,function(b,c){c.state===0&&(a[ok(b)]=c)});return a}
function xk(a){return!!(a&&a.parent&&a.context&&a.context.source===1&&a.parent.ctid.indexOf("GTM-")!==0)}var yk="/td?id="+Of.ctid,zk=["v","t","pid","dl","tdp"],Ak=["mcc"],Bk={},Ck={};function Dk(a,b,c){Ck[a]=b;(c===void 0||c)&&Ek(a)}function Ek(a,b){if(Bk[a]===void 0||(b===void 0?0:b))Bk[a]=!0}function Fk(a){a=a===void 0?!1:a;var b=Object.keys(Bk).filter(function(c){return Bk[c]===!0&&Ck[c]!==void 0&&(a||!Ak.includes(c))}).map(function(c){var d=Ck[c];typeof d==="function"&&(d=d());return d?"&"+c+"="+d:""}).join("");return""+Gj("https://www.googletagmanager.com")+yk+(""+b+"&z=0")}
function Gk(){Object.keys(Bk).forEach(function(a){zk.indexOf(a)<0&&(Bk[a]=!1)})}function Hk(a){a=a===void 0?!1:a;if(Oj&&Of.ctid){var b=Fk(a);a?Mc(b):Bc(b);Gk()}}function Ik(){Object.keys(Bk).filter(function(a){return Bk[a]&&!zk.includes(a)}).length>0&&Hk(!0)}var Jk=rb();function Kk(){Jk=rb()}function Lk(){Dk("v","3");Dk("t","t");Dk("pid",function(){return String(Jk)});Dc(C,"pagehide",Ik);C.setInterval(Kk,864E5)}function Mk(){var a=tc("google_tag_data",{});return a.ics=a.ics||new Nk}var Nk=function(){this.entries={};this.waitPeriodTimedOut=this.wasSetLate=this.accessedAny=this.accessedDefault=this.usedImplicit=this.usedUpdate=this.usedDefault=this.usedDeclare=this.active=!1;this.j=[]};
Nk.prototype.default=function(a,b,c,d,e,f,g){this.usedDefault||this.usedDeclare||!this.accessedDefault&&!this.accessedAny||(this.wasSetLate=!0);this.usedDefault=this.active=!0;gb("TAGGING",19);b==null?gb("TAGGING",18):Ok(this,a,b==="granted",c,d,e,f,g)};Nk.prototype.waitForUpdate=function(a,b,c){for(var d=0;d<a.length;d++)Ok(this,a[d],void 0,void 0,"","",b,c)};
var Ok=function(a,b,c,d,e,f,g,k){var m=a.entries,n=m[b]||{},p=n.region,q=d&&l(d)?d.toUpperCase():void 0;e=e.toUpperCase();f=f.toUpperCase();if(e===""||q===f||(q===e?p!==f:!q&&!p)){var r=!!(g&&g>0&&n.update===void 0),t={region:q,declare_region:n.declare_region,implicit:n.implicit,default:c!==void 0?c:n.default,declare:n.declare,update:n.update,quiet:r};if(e!==""||n.default!==!1)m[b]=t;r&&C.setTimeout(function(){m[b]===t&&t.quiet&&(gb("TAGGING",2),a.waitPeriodTimedOut=!0,a.clearTimeout(b,void 0,k),
a.notifyListeners())},g)}};ca=Nk.prototype;ca.clearTimeout=function(a,b,c){var d=[a],e=c.delegatedConsentTypes,f;for(f in e)e.hasOwnProperty(f)&&e[f]===a&&d.push(f);var g=this.entries[a]||{},k=this.getConsentState(a,c);if(g.quiet){g.quiet=!1;for(var m=h(d),n=m.next();!n.done;n=m.next())Pk(this,n.value)}else if(b!==void 0&&k!==b)for(var p=h(d),q=p.next();!q.done;q=p.next())Pk(this,q.value)};
ca.update=function(a,b,c){this.usedDefault||this.usedDeclare||this.usedUpdate||!this.accessedAny||(this.wasSetLate=!0);this.usedUpdate=this.active=!0;if(b!=null){var d=this.getConsentState(a,c),e=this.entries;(e[a]=e[a]||{}).update=b==="granted";this.clearTimeout(a,d,c)}};
ca.declare=function(a,b,c,d,e){this.usedDeclare=this.active=!0;var f=this.entries,g=f[a]||{},k=g.declare_region,m=c&&l(c)?c.toUpperCase():void 0;d=d.toUpperCase();e=e.toUpperCase();if(d===""||m===e||(m===d?k!==e:!m&&!k)){var n={region:g.region,declare_region:m,declare:b==="granted",implicit:g.implicit,default:g.default,update:g.update,quiet:g.quiet};if(d!==""||g.declare!==!1)f[a]=n}};
ca.implicit=function(a,b){this.usedImplicit=!0;var c=this.entries,d=c[a]=c[a]||{};d.implicit!==!1&&(d.implicit=b==="granted")};
ca.getConsentState=function(a,b){var c=this.entries,d=c[a]||{},e=d.update;if(e!==void 0)return e?1:2;if(b.usedContainerScopedDefaults){var f=b.containerScopedDefaults[a];if(f===3)return 1;if(f===2)return 2}else if(e=d.default,e!==void 0)return e?1:2;if(b==null?0:b.delegatedConsentTypes.hasOwnProperty(a)){var g=b.delegatedConsentTypes[a],k=c[g]||{};e=k.update;if(e!==void 0)return e?1:2;if(b.usedContainerScopedDefaults){var m=b.containerScopedDefaults[g];if(m===3)return 1;if(m===2)return 2}else if(e=
k.default,e!==void 0)return e?1:2}e=d.declare;if(e!==void 0)return e?1:2;e=d.implicit;return e!==void 0?e?3:4:0};ca.addListener=function(a,b){this.j.push({consentTypes:a,Nl:b})};var Pk=function(a,b){for(var c=0;c<a.j.length;++c){var d=a.j[c];Array.isArray(d.consentTypes)&&d.consentTypes.indexOf(b)!==-1&&(d.fk=!0)}};Nk.prototype.notifyListeners=function(a,b){for(var c=0;c<this.j.length;++c){var d=this.j[c];if(d.fk){d.fk=!1;try{d.Nl({consentEventId:a,consentPriorityId:b})}catch(e){}}}};var Qk=!1,Rk=!1,Sk={},Tk={delegatedConsentTypes:{},corePlatformServices:{},usedCorePlatformServices:!1,selectedAllCorePlatformServices:!1,containerScopedDefaults:(Sk.ad_storage=1,Sk.analytics_storage=1,Sk.ad_user_data=1,Sk.ad_personalization=1,Sk),usedContainerScopedDefaults:!1};function Uk(a){var b=Mk();b.accessedAny=!0;return(l(a)?[a]:a).every(function(c){switch(b.getConsentState(c,Tk)){case 1:case 3:return!0;case 2:case 4:return!1;default:return!0}})}
function Vk(a){var b=Mk();b.accessedAny=!0;return b.getConsentState(a,Tk)}function Wk(a){for(var b={},c=h(a),d=c.next();!d.done;d=c.next()){var e=d.value;b[e]=Tk.corePlatformServices[e]!==!1}return b}function Xk(a){var b=Mk();b.accessedAny=!0;return!(b.entries[a]||{}).quiet}
function Yk(){if(!lb(10))return!1;var a=Mk();a.accessedAny=!0;if(a.active)return!0;if(!Tk.usedContainerScopedDefaults)return!1;for(var b=h(Object.keys(Tk.containerScopedDefaults)),c=b.next();!c.done;c=b.next())if(Tk.containerScopedDefaults[c.value]!==1)return!0;return!1}function Zk(a,b){Mk().addListener(a,b)}function $k(a,b){Mk().notifyListeners(a,b)}
function al(a,b){function c(){for(var e=0;e<b.length;e++)if(!Xk(b[e]))return!0;return!1}if(c()){var d=!1;Zk(b,function(e){d||c()||(d=!0,a(e))})}else a({})}
function bl(a,b){function c(){for(var k=[],m=0;m<e.length;m++){var n=e[m];Uk(n)&&!f[n]&&k.push(n)}return k}function d(k){for(var m=0;m<k.length;m++)f[k[m]]=!0}var e=l(b)?[b]:b,f={},g=c();g.length!==e.length&&(d(g),Zk(e,function(k){function m(q){q.length!==0&&(d(q),k.consentTypes=q,a(k))}var n=c();if(n.length!==0){var p=Object.keys(f).length;n.length+p>=e.length?m(n):C.setTimeout(function(){m(c())},500)}}))};var cl=["ad_storage","analytics_storage","ad_user_data","ad_personalization"],dl=!1,el=!1;function fl(){U(48)&&!el&&dl&&(cl.some(function(a){return Tk.containerScopedDefaults[a]!==1})||gl("mbc"));el=!0}function gl(a){Oj&&(Dk(a,"1"),Hk())}function hl(a){gb("HEALTH",a)};var il;try{il=JSON.parse(db("eyIwIjoiVVMiLCIxIjoiIiwiMiI6ZmFsc2UsIjMiOiIiLCI0IjoiIiwiNSI6dHJ1ZSwiNiI6ZmFsc2UsIjciOiJhZF9zdG9yYWdlfGFuYWx5dGljc19zdG9yYWdlfGFkX3VzZXJfZGF0YXxhZF9wZXJzb25hbGl6YXRpb24ifQ"))}catch(a){V(123),hl(2),il={}}function jl(){return il["0"]||""}function kl(){return il["1"]||""}function ll(){var a=!1;return a}function ml(){return il["6"]!==!1}function nl(){var a="";return a}
function ol(){var a=!1;a=!!il["5"];return a}function pl(){var a="";return a}var ql=[P.g.O,P.g.U,P.g.N,P.g.sa],rl,sl;function tl(a){for(var b=a[P.g.Fb],c=Array.isArray(b)?b:[b],d={Me:0};d.Me<c.length;d={Me:d.Me},++d.Me)z(a,function(e){return function(f,g){if(f!==P.g.Fb){var k=c[e.Me],m=jl(),n=kl();Rk=!0;Qk&&gb("TAGGING",20);Mk().declare(f,g,k,m,n)}}}(d))}
function ul(a){fl();!sl&&rl&&gl("crc");sl=!0;var b=a[P.g.Fb];b&&V(40);var c=a[P.g.hf];c&&V(41);for(var d=Array.isArray(b)?b:[b],e={Ne:0};e.Ne<d.length;e={Ne:e.Ne},++e.Ne)z(a,function(f){return function(g,k){if(g!==P.g.Fb&&g!==P.g.hf){var m=d[f.Ne],n=Number(c),p=jl(),q=kl();n=n===void 0?0:n;Qk=!0;Rk&&gb("TAGGING",20);Mk().default(g,k,m,p,q,n,Tk)}}}(e))}
function vl(a){Tk.usedContainerScopedDefaults=!0;var b=a[P.g.Fb];if(b){var c=Array.isArray(b)?b:[b];if(!c.includes(kl())&&!c.includes(jl()))return}z(a,function(d,e){switch(d){case "ad_storage":case "analytics_storage":case "ad_user_data":case "ad_personalization":break;default:return}Tk.usedContainerScopedDefaults=!0;Tk.containerScopedDefaults[d]=e==="granted"?3:2})}function wl(a,b){fl();rl=!0;z(a,function(c,d){Qk=!0;Rk&&gb("TAGGING",20);Mk().update(c,d,Tk)});$k(b.eventId,b.priorityId)}
function xl(a){a.hasOwnProperty("all")&&(Tk.selectedAllCorePlatformServices=!0,z(Ch,function(b){Tk.corePlatformServices[b]=a.all==="granted";Tk.usedCorePlatformServices=!0}));z(a,function(b,c){b!=="all"&&(Tk.corePlatformServices[b]=c==="granted",Tk.usedCorePlatformServices=!0)})}function X(a){Array.isArray(a)||(a=[a]);return a.every(function(b){return Uk(b)})}function yl(a,b){Zk(a,b)}function zl(a,b){bl(a,b)}function Al(a,b){al(a,b)}
function Bl(){var a=[P.g.O,P.g.sa,P.g.N];Mk().waitForUpdate(a,500,Tk)}function Cl(a){for(var b=h(a),c=b.next();!c.done;c=b.next()){var d=c.value;Mk().clearTimeout(d,void 0,Tk)}$k()}var Dl=!1,El=[];function Fl(){if(Ei.pscdl===void 0){var a=function(c){Ei.pscdl=c},b=function(){a("error")};try{pc.cookieDeprecationLabel?(a("pending"),pc.cookieDeprecationLabel.getValue().then(a).catch(b)):a("noapi")}catch(c){b(c)}}};function Gl(a,b){b&&z(b,function(c,d){typeof d!=="object"&&d!==void 0&&(a["1p."+c]=String(d))})};var Hl=/[A-Z]+/,Il=/\s/;function Jl(a,b){if(l(a)){a=yb(a);var c=a.indexOf("-");if(!(c<0)){var d=a.substring(0,c);if(Hl.test(d)){var e=a.substring(c+1),f;if(b){var g=function(n){var p=n.indexOf("/");return p<0?[n]:[n.substring(0,p),n.substring(p+1)]};f=g(e);if(d==="DC"&&f.length===2){var k=g(f[1]);k.length===2&&(f[1]=k[0],f.push(k[1]))}}else{f=e.split("/");for(var m=0;m<f.length;m++)if(!f[m]||Il.test(f[m])&&(d!=="AW"||m!==1))return}return{id:a,prefix:d,destinationId:d+"-"+f[0],ids:f}}}}}
function Kl(a,b){for(var c={},d=0;d<a.length;++d){var e=Jl(a[d],b);e&&(c[e.id]=e)}Ll(c);var f=[];z(c,function(g,k){f.push(k)});return f}function Ll(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];d.prefix==="AW"&&d.ids[Ml[2]]&&b.push(d.destinationId)}for(var e=0;e<b.length;++e)delete a[b[e]]}var Nl={},Ml=(Nl[0]=0,Nl[1]=0,Nl[2]=1,Nl[3]=0,Nl[4]=1,Nl[5]=2,Nl[6]=0,Nl[7]=0,Nl[8]=0,Nl);var Ol=Number('')||500,Pl={},Ql={},Rl={initialized:11,complete:12,interactive:13},Sl={},Tl=Object.freeze((Sl[P.g.Ia]=!0,Sl)),Ul=E.location.search.indexOf("?gtm_diagnostics=")>=0||E.location.search.indexOf("&gtm_diagnostics=")>=0,Vl=void 0;
function Wl(a,b){if(b.length&&Oj){var c;(c=Pl)[a]!=null||(c[a]=[]);Ql[a]!=null||(Ql[a]=[]);var d=b.filter(function(e){return!Ql[a].includes(e)});Pl[a].push.apply(Pl[a],pa(d));Ql[a].push.apply(Ql[a],pa(d));!Vl&&d.length>0&&(Ek("tdc",!0),Vl=C.setTimeout(function(){Hk();Pl={};Vl=void 0},Ol))}}
function Xl(a,b,c){if(Oj&&a==="config"){var d,e=(d=Jl(b))==null?void 0:d.ids;if(!(e&&e.length>1)){var f,g=tc("google_tag_data",{});g.td||(g.td={});f=g.td;var k=Ta(c.K);Ta(c.j,k);var m=[],n;for(n in f)if(f.hasOwnProperty(n)){var p=Yl(f[n],k);p.length&&(Ul&&console.log(p),m.push(n))}m.length&&(Wl(b,m),gb("TAGGING",Rl[E.readyState]||14));f[b]=k}}}function Zl(a,b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c[d]=!0);for(var e in a)a.hasOwnProperty(e)&&(c[e]=!0);return c}
function Yl(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?"":d;if(a===b)return[];var e=function(r,t){var v;Pa(t)==="object"?v=t[r]:Pa(t)==="array"&&(v=t[r]);return v===void 0?Tl[r]:v},f=Zl(a,b),g;for(g in f)if(f.hasOwnProperty(g)){var k=(d?d+".":"")+g,m=e(g,a),n=e(g,b),p=Pa(m)==="object"||Pa(m)==="array",q=Pa(n)==="object"||Pa(n)==="array";if(p&&q)Yl(m,n,c,k);else if(p||q||m!==n)c[k]=!0}return Object.keys(c)}
function $l(){Dk("tdc",function(){Vl&&(C.clearTimeout(Vl),Vl=void 0);var a=[],b;for(b in Pl)Pl.hasOwnProperty(b)&&a.push(b+"*"+Pl[b].join("."));return a.length?a.join("!"):void 0},!1)};var am=function(a,b,c,d,e,f,g,k,m,n,p){this.eventId=a;this.priorityId=b;this.j=c;this.P=d;this.H=e;this.K=f;this.C=g;this.eventMetadata=k;this.onSuccess=m;this.onFailure=n;this.isGtmEvent=p},bm=function(a,b){var c=[];switch(b){case 3:c.push(a.j);c.push(a.P);c.push(a.H);c.push(a.K);c.push(a.C);break;case 2:c.push(a.j);break;case 1:c.push(a.P);c.push(a.H);c.push(a.K);c.push(a.C);break;case 4:c.push(a.j),c.push(a.P),c.push(a.H),c.push(a.K)}return c},W=function(a,b,c,d){for(var e=h(bm(a,d===void 0?3:
d)),f=e.next();!f.done;f=e.next()){var g=f.value;if(g[b]!==void 0)return g[b]}return c},cm=function(a){for(var b={},c=bm(a,4),d=h(c),e=d.next();!e.done;e=d.next())for(var f=Object.keys(e.value),g=h(f),k=g.next();!k.done;k=g.next())b[k.value]=1;return Object.keys(b)},dm=function(a,b,c){function d(n){Sa(n)&&z(n,function(p,q){f=!0;e[p]=q})}var e={},f=!1,g=bm(a,c===void 0?3:c);g.reverse();for(var k=h(g),m=k.next();!m.done;m=k.next())d(m.value[b]);return f?e:void 0},em=function(a){for(var b=[P.g.Uc,P.g.Qc,
P.g.Rc,P.g.Sc,P.g.Tc,P.g.Vc,P.g.Wc],c=bm(a,3),d=h(c),e=d.next();!e.done;e=d.next()){for(var f=e.value,g={},k=!1,m=h(b),n=m.next();!n.done;n=m.next()){var p=n.value;f[p]!==void 0&&(g[p]=f[p],k=!0)}var q=k?g:void 0;if(q)return q}return{}},fm=function(a,b){this.eventId=a;this.priorityId=b;this.C={};this.P={};this.j={};this.H={};this.Z={};this.K={};this.eventMetadata={};this.isGtmEvent=!1;this.onSuccess=function(){};this.onFailure=function(){}},gm=function(a,b){a.C=b;return a},hm=function(a,b){a.P=b;
return a},im=function(a,b){a.j=b;return a},jm=function(a,b){a.H=b;return a},km=function(a,b){a.Z=b;return a},lm=function(a,b){a.K=b;return a},mm=function(a,b){a.eventMetadata=b||{};return a},nm=function(a,b){a.onSuccess=b;return a},om=function(a,b){a.onFailure=b;return a},pm=function(a,b){a.isGtmEvent=b;return a},qm=function(a){return new am(a.eventId,a.priorityId,a.C,a.P,a.j,a.H,a.K,a.eventMetadata,a.onSuccess,a.onFailure,a.isGtmEvent)};var rm={vk:Number("5"),Yn:Number("")},sm=[];function tm(a){sm.push(a)}var um="?id="+Of.ctid,vm=void 0,wm={},xm=void 0,ym=new function(){var a=5;rm.vk>0&&(a=rm.vk);this.C=a;this.j=0;this.H=[]},zm=1E3;
function Am(a,b){var c=vm;if(c===void 0)if(b)c=Vi();else return"";for(var d=[Gj("https://www.googletagmanager.com"),"/a",um],e=h(sm),f=e.next();!f.done;f=e.next())for(var g=f.value,k=g({eventId:c,oc:!!a}),m=h(k),n=m.next();!n.done;n=m.next()){var p=h(n.value),q=p.next().value,r=p.next().value;d.push("&"+q+"="+r)}d.push("&z=0");return d.join("")}
function Bm(){xm&&(C.clearTimeout(xm),xm=void 0);if(vm!==void 0&&Cm){var a;(a=wm[vm])||(a=ym.j<ym.C?!1:Ab()-ym.H[ym.j%ym.C]<1E3);if(a||zm--<=0)V(1),wm[vm]=!0;else{var b=ym.j++%ym.C;ym.H[b]=Ab();var c=Am(!0);Bc(c);Cm=!1}}}var Cm=!1;function Dm(a){wm[a]||(a!==vm&&(Bm(),vm=a),Cm=!0,xm||(xm=C.setTimeout(Bm,500)),Am().length>=2022&&Bm())}var Em=rb();function Fm(){Em=rb()}function Gm(){return[["v","3"],["t","t"],["pid",String(Em)]]}var Hm={};function Im(a,b,c){Nj&&a!==void 0&&(Hm[a]=Hm[a]||[],Hm[a].push(c+b),Dm(a))}function Jm(a){var b=a.eventId,c=a.oc,d=[],e=Hm[b]||[];e.length&&d.push(["epr",e.join(".")]);c&&delete Hm[b];return d};function Km(a,b){var c=Jl(ik(a),!0);c&&Lm.register(c,b)}function Mm(a,b,c,d){var e=Jl(c,d.isGtmEvent);e&&(U(47)&&U(47)&&Ji&&!bk&&(d.deferrable=!0),Lm.push("event",[b,a],e,d))}function Nm(a,b,c,d){var e=Jl(c,d.isGtmEvent);e&&Lm.push("get",[a,b],e,d)}function Om(a){var b=Jl(ik(a),!0),c;b?c=Pm(Lm,b).j:c={};return c}function Qm(a,b){var c=Jl(ik(a),!0);if(c){var d=Lm,e=Ta(b,null);Ta(Pm(d,c).j,e);Pm(d,c).j=e}}
var Rm=function(){this.P={};this.j={};this.C={};this.Z=null;this.K={};this.H=!1;this.status=1},Sm=function(a,b,c,d){this.C=Ab();this.j=b;this.args=c;this.messageContext=d;this.type=a},Tm=function(){this.destinations={};this.j={};this.commands=[]},Pm=function(a,b){var c=b.destinationId;return a.destinations[c]=a.destinations[c]||new Rm},Um=function(a,b,c,d){if(d.j){var e=Pm(a,d.j),f=e.Z;if(f){var g=Ta(c,null),k=Ta(e.P[d.j.id],null),m=Ta(e.K,null),n=Ta(e.j,null),p=Ta(a.j,null),q={};if(Nj)try{q=Ta(bj)}catch(u){V(72)}var r=
d.j.prefix,t=function(u){Im(d.messageContext.eventId,r,u)},v=qm(pm(om(nm(mm(km(jm(lm(im(hm(gm(new fm(d.messageContext.eventId,d.messageContext.priorityId),g),k),m),n),p),q),d.messageContext.eventMetadata),function(){if(t){var u=t;t=void 0;u("2");if(d.messageContext.onSuccess)d.messageContext.onSuccess()}}),function(){if(t){var u=t;t=void 0;u("3");if(d.messageContext.onFailure)d.messageContext.onFailure()}}),!!d.messageContext.isGtmEvent));try{Im(d.messageContext.eventId,r,"1"),Xl(d.type,d.j.id,v),
f(d.j.id,b,d.C,v)}catch(u){Im(d.messageContext.eventId,r,"4")}}}};Tm.prototype.register=function(a,b,c){var d=Pm(this,a);d.status!==3&&(d.Z=b,d.status=3,c&&(Ta(d.j,c),d.j=c),this.flush())};Tm.prototype.push=function(a,b,c,d){c!==void 0&&(Pm(this,c).status===1&&(Pm(this,c).status=2,this.push("require",[{}],c,{})),Pm(this,c).H&&(d.deferrable=!1));this.commands.push(new Sm(a,c,b,d));d.deferrable||this.flush()};
Tm.prototype.flush=function(a){for(var b=this,c=[],d=!1,e={};this.commands.length;e={Fc:void 0,zh:void 0}){var f=this.commands[0],g=f.j;if(f.messageContext.deferrable)!g||Pm(this,g).H?(f.messageContext.deferrable=!1,this.commands.push(f)):c.push(f),this.commands.shift();else{switch(f.type){case "require":if(Pm(this,g).status!==3&&!a){this.commands.push.apply(this.commands,c);return}break;case "set":z(f.args[0],function(r,t){Ta(Ib(r,t),b.j)});break;case "config":var k=Pm(this,g);e.Fc={};z(f.args[0],
function(r){return function(t,v){Ta(Ib(t,v),r.Fc)}}(e));var m=!!e.Fc[P.g.hc];delete e.Fc[P.g.hc];var n=g.destinationId===g.id;m||(n?k.K={}:k.P[g.id]={});k.H&&m||Um(this,P.g.aa,e.Fc,f);k.H=!0;n?Ta(e.Fc,k.K):(Ta(e.Fc,k.P[g.id]),V(70));d=!0;break;case "event":e.zh={};z(f.args[0],function(r){return function(t,v){Ta(Ib(t,v),r.zh)}}(e));Um(this,f.args[1],e.zh,f);break;case "get":var p={},q=(p[P.g.ub]=f.args[0],p[P.g.Ib]=f.args[1],p);Um(this,P.g.Va,q,f)}this.commands.shift();Vm(this,f)}}this.commands.push.apply(this.commands,
c);d&&this.flush()};var Vm=function(a,b){if(b.type!=="require")if(b.j)for(var c=Pm(a,b.j).C[b.type]||[],d=0;d<c.length;d++)c[d]();else for(var e in a.destinations)if(a.destinations.hasOwnProperty(e)){var f=a.destinations[e];if(f&&f.C)for(var g=f.C[b.type]||[],k=0;k<g.length;k++)g[k]()}},Lm=new Tm;var Wm=function(a,b){var c=function(){};c.prototype=a.prototype;var d=new c;a.apply(d,Array.prototype.slice.call(arguments,1));return d},Xm=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};var Ym=function(a,b,c){a.addEventListener&&a.addEventListener(b,c,!1)},Zm=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)};var $m,an;a:{for(var bn=["CLOSURE_FLAGS"],cn=za,dn=0;dn<bn.length;dn++)if(cn=cn[bn[dn]],cn==null){an=null;break a}an=cn}var en=an&&an[610401301];$m=en!=null?en:!1;function fn(){var a=za.navigator;if(a){var b=a.userAgent;if(b)return b}return""}var gn,hn=za.navigator;gn=hn?hn.userAgentData||null:null;function jn(a){return $m?gn?gn.brands.some(function(b){var c;return(c=b.brand)&&c.indexOf(a)!=-1}):!1:!1}function kn(a){return fn().indexOf(a)!=-1};function ln(){return $m?!!gn&&gn.brands.length>0:!1}function mn(){return ln()?!1:kn("Opera")}function nn(){return kn("Firefox")||kn("FxiOS")}function on(){return ln()?jn("Chromium"):(kn("Chrome")||kn("CriOS"))&&!(ln()?0:kn("Edge"))||kn("Silk")};function pn(){return $m?!!gn&&!!gn.platform:!1}function qn(){return kn("iPhone")&&!kn("iPod")&&!kn("iPad")}function rn(){qn()||kn("iPad")||kn("iPod")};var sn=function(a){sn[" "](a);return a};sn[" "]=function(){};mn();ln()||kn("Trident")||kn("MSIE");kn("Edge");!kn("Gecko")||fn().toLowerCase().indexOf("webkit")!=-1&&!kn("Edge")||kn("Trident")||kn("MSIE")||kn("Edge");fn().toLowerCase().indexOf("webkit")!=-1&&!kn("Edge")&&kn("Mobile");pn()||kn("Macintosh");pn()||kn("Windows");(pn()?gn.platform==="Linux":kn("Linux"))||pn()||kn("CrOS");pn()||kn("Android");qn();kn("iPad");kn("iPod");rn();fn().toLowerCase().indexOf("kaios");var tn=function(a,b,c,d){for(var e=b,f=c.length;(e=a.indexOf(c,e))>=0&&e<d;){var g=a.charCodeAt(e-1);if(g==38||g==63){var k=a.charCodeAt(e+f);if(!k||k==61||k==38||k==35)return e}e+=f+1}return-1},un=/#|$/,vn=function(a,b){var c=a.search(un),d=tn(a,0,b,c);if(d<0)return null;var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,e!==-1?e:0).replace(/\+/g," "))},wn=/[?&]($|#)/,xn=function(a,b,c){for(var d,e=a.search(un),f=0,g,k=[];(g=tn(a,f,b,e))>=0;)k.push(a.substring(f,
g)),f=Math.min(a.indexOf("&",g)+1||e,e);k.push(a.slice(f));d=k.join("").replace(wn,"$1");var m,n=c!=null?"="+encodeURIComponent(String(c)):"";var p=b+n;if(p){var q,r=d.indexOf("#");r<0&&(r=d.length);var t=d.indexOf("?"),v;t<0||t>r?(t=r,v=""):v=d.substring(t+1,r);q=[d.slice(0,t),v,d.slice(r)];var u=q[1];q[1]=p?u?u+"&"+p:p:u;m=q[0]+(q[1]?"?"+q[1]:"")+q[2]}else m=d;return m};var yn=function(a){try{var b;if(b=!!a&&a.location.href!=null)a:{try{sn(a.foo);b=!0;break a}catch(c){}b=!1}return b}catch(c){return!1}},zn=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)},An=function(a){if(C.top==C)return 0;if(a===void 0?0:a){var b=C.location.ancestorOrigins;if(b)return b[b.length-1]==C.location.origin?1:2}return yn(C.top)?1:2},Bn=function(a){a=a===void 0?document:a;return a.createElement("img")},Cn=function(){for(var a=C,b=a;a&&a!=a.parent;)a=
a.parent,yn(a)&&(b=a);return b};function Dn(a,b,c,d){d=d===void 0?!1:d;a.google_image_requests||(a.google_image_requests=[]);var e=Bn(a.document);if(c){var f=function(){if(c){var g=a.google_image_requests,k=mc(g,e);k>=0&&Array.prototype.splice.call(g,k,1)}Zm(e,"load",f);Zm(e,"error",f)};Ym(e,"load",f);Ym(e,"error",f)}d&&(e.attributionSrc="");e.src=b;a.google_image_requests.push(e)}
var Fn=function(a){var b;b=b===void 0?!1:b;var c="https://pagead2.googlesyndication.com/pagead/gen_204?id=tcfe";zn(a,function(d,e){if(d||d===0)c+="&"+e+"="+encodeURIComponent(""+d)});En(c,b)},En=function(a,b){var c=window,d;b=b===void 0?!1:b;d=d===void 0?!1:d;if(c.fetch){var e={keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"};d&&(e.mode="cors","setAttributionReporting"in XMLHttpRequest.prototype?e.attributionReporting={eventSourceEligible:"true",triggerEligible:"false"}:
e.headers={"Attribution-Reporting-Eligible":"event-source"});c.fetch(a,e)}else Dn(c,a,b===void 0?!1:b,d===void 0?!1:d)};var Gn=function(){this.P=this.P;this.C=this.C};Gn.prototype.P=!1;Gn.prototype.dispose=function(){this.P||(this.P=!0,this.Ra())};Gn.prototype[Symbol.dispose]=function(){this.dispose()};Gn.prototype.addOnDisposeCallback=function(a,b){this.P?b!==void 0?a.call(b):a():(this.C||(this.C=[]),b&&(a=a.bind(b)),this.C.push(a))};Gn.prototype.Ra=function(){if(this.C)for(;this.C.length;)this.C.shift()()};var Hn=function(a){a.addtlConsent!==void 0&&typeof a.addtlConsent!=="string"&&(a.addtlConsent=void 0);a.gdprApplies!==void 0&&typeof a.gdprApplies!=="boolean"&&(a.gdprApplies=void 0);return a.tcString!==void 0&&typeof a.tcString!=="string"||a.listenerId!==void 0&&typeof a.listenerId!=="number"?2:a.cmpStatus&&a.cmpStatus!=="error"?0:3},In=function(a,b){b=b===void 0?{}:b;Gn.call(this);this.H=a;this.j=null;this.Z={};this.Sf=0;var c;this.oe=(c=b.mn)!=null?c:500;var d;this.Ec=(d=b.Pn)!=null?d:!1;this.K=
null};xa(In,Gn);In.prototype.Ra=function(){this.Z={};this.K&&(Zm(this.H,"message",this.K),delete this.K);delete this.Z;delete this.H;delete this.j;Gn.prototype.Ra.call(this)};var Kn=function(a){return typeof a.H.__tcfapi==="function"||Jn(a)!=null};
In.prototype.addEventListener=function(a){var b=this,c={internalBlockOnErrors:this.Ec},d=Xm(function(){return a(c)}),e=0;this.oe!==-1&&(e=setTimeout(function(){c.tcString="tcunavailable";c.internalErrorState=1;d()},this.oe));var f=function(g,k){clearTimeout(e);g?(c=g,c.internalErrorState=Hn(c),c.internalBlockOnErrors=b.Ec,k&&c.internalErrorState===0||(c.tcString="tcunavailable",k||(c.internalErrorState=3))):(c.tcString="tcunavailable",c.internalErrorState=3);a(c)};try{Ln(this,"addEventListener",f)}catch(g){c.tcString=
"tcunavailable",c.internalErrorState=3,e&&(clearTimeout(e),e=0),d()}};In.prototype.removeEventListener=function(a){a&&a.listenerId&&Ln(this,"removeEventListener",null,a.listenerId)};
var Nn=function(a,b,c){var d;d=d===void 0?"755":d;var e;a:{if(a.publisher&&a.publisher.restrictions){var f=a.publisher.restrictions[b];if(f!==void 0){e=f[d===void 0?"755":d];break a}}e=void 0}var g=e;if(g===0)return!1;var k=c;c===2?(k=0,g===2&&(k=1)):c===3&&(k=1,g===1&&(k=0));var m;if(k===0)if(a.purpose&&a.vendor){var n=Mn(a.vendor.consents,d===void 0?"755":d);m=n&&b==="1"&&a.purposeOneTreatment&&a.publisherCC==="CH"?!0:n&&Mn(a.purpose.consents,b)}else m=!0;else m=k===1?a.purpose&&a.vendor?Mn(a.purpose.legitimateInterests,
b)&&Mn(a.vendor.legitimateInterests,d===void 0?"755":d):!0:!0;return m},Mn=function(a,b){return!(!a||!a[b])},Ln=function(a,b,c,d){c||(c=function(){});if(typeof a.H.__tcfapi==="function"){var e=a.H.__tcfapi;e(b,2,c,d)}else if(Jn(a)){On(a);var f=++a.Sf;a.Z[f]=c;if(a.j){var g={};a.j.postMessage((g.__tcfapiCall={command:b,version:2,callId:f,parameter:d},g),"*")}}else c({},!1)},Jn=function(a){if(a.j)return a.j;var b;a:{for(var c=a.H,d=0;d<50;++d){var e;try{e=!(!c.frames||!c.frames.__tcfapiLocator)}catch(k){e=
!1}if(e){b=c;break a}var f;b:{try{var g=c.parent;if(g&&g!=c){f=g;break b}}catch(k){}f=null}if(!(c=f))break}b=null}a.j=b;return a.j},On=function(a){a.K||(a.K=function(b){try{var c;c=(typeof b.data==="string"?JSON.parse(b.data):b.data).__tcfapiReturn;a.Z[c.callId](c.returnValue,c.success)}catch(d){}},Ym(a.H,"message",a.K))},Pn=function(a){if(a.gdprApplies===!1)return!0;a.internalErrorState===void 0&&(a.internalErrorState=Hn(a));return a.cmpStatus==="error"||a.internalErrorState!==0?a.internalBlockOnErrors?
(Fn({e:String(a.internalErrorState)}),!1):!0:a.cmpStatus!=="loaded"||a.eventStatus!=="tcloaded"&&a.eventStatus!=="useractioncomplete"?!1:!0};var Qn={1:0,3:0,4:0,7:3,9:3,10:3};function Rn(){var a=Ei.tcf||{};return Ei.tcf=a}var Sn=function(){return new In(C,{mn:-1})};
function Tn(){var a=Rn(),b=Sn();Kn(b)&&!Un()&&!Vn()&&V(124);if(!a.active&&Kn(b)){Un()&&(a.active=!0,a.nc={},a.cmpId=0,a.tcfPolicyVersion=0,Mk().active=!0,a.tcString="tcunavailable");Bl();try{b.addEventListener(function(c){if(c.internalErrorState!==0)Wn(a),Cl([P.g.O,P.g.sa,P.g.N]),Mk().active=!0;else if(a.gdprApplies=c.gdprApplies,a.cmpId=c.cmpId,a.enableAdvertiserConsentMode=c.enableAdvertiserConsentMode,Vn()&&(a.active=!0),!Xn(c)||Un()||Vn()){a.tcfPolicyVersion=c.tcfPolicyVersion;var d;if(c.gdprApplies===
!1){var e={},f;for(f in Qn)Qn.hasOwnProperty(f)&&(e[f]=!0);d=e;b.removeEventListener(c)}else if(Xn(c)){var g={},k;for(k in Qn)if(Qn.hasOwnProperty(k))if(k==="1"){var m,n=c,p={Rl:!0};p=p===void 0?{}:p;m=Pn(n)?n.gdprApplies===!1?!0:n.tcString==="tcunavailable"?!p.Xj:(p.Xj||n.gdprApplies!==void 0||p.Rl)&&(p.Xj||typeof n.tcString==="string"&&n.tcString.length)?Nn(n,"1",0):!0:!1;g["1"]=m}else g[k]=Nn(c,k,Qn[k]);d=g}if(d){a.tcString=c.tcString||"tcempty";a.nc=d;var q={},r=(q[P.g.O]=a.nc["1"]?"granted":
"denied",q);a.gdprApplies!==!0?(Cl([P.g.O,P.g.sa,P.g.N]),Mk().active=!0):(r[P.g.sa]=a.nc["3"]&&a.nc["4"]?"granted":"denied",typeof a.tcfPolicyVersion==="number"&&a.tcfPolicyVersion>=4?r[P.g.N]=a.nc["1"]&&a.nc["7"]?"granted":"denied":Cl([P.g.N]),wl(r,{eventId:0},{gdprApplies:a?a.gdprApplies:void 0,tcString:Yn()||""}))}}else Cl([P.g.O,P.g.sa,P.g.N])})}catch(c){Wn(a),Cl([P.g.O,P.g.sa,P.g.N]),Mk().active=!0}}}function Wn(a){a.type="e";a.tcString="tcunavailable"}
function Xn(a){return a.eventStatus==="tcloaded"||a.eventStatus==="useractioncomplete"||a.eventStatus==="cmpuishown"}function Un(){return C.gtag_enable_tcf_support===!0}function Vn(){return Rn().enableAdvertiserConsentMode===!0}function Yn(){var a=Rn();if(a.active)return a.tcString}function Zn(){var a=Rn();if(a.active&&a.gdprApplies!==void 0)return a.gdprApplies?"1":"0"}function $n(a){if(!Qn.hasOwnProperty(String(a)))return!0;var b=Rn();return b.active&&b.nc?!!b.nc[String(a)]:!0}var ao=[P.g.O,P.g.U,P.g.N,P.g.sa],ko={},lo=(ko[P.g.O]=1,ko[P.g.U]=2,ko);function mo(a){if(a===void 0)return 0;switch(W(a,P.g.ja)){case void 0:return 1;case !1:return 3;default:return 2}}function no(a){if(kl()==="US-CO"&&pc.globalPrivacyControl===!0)return!1;var b=mo(a);if(b===3)return!1;switch(Vk(P.g.sa)){case 1:case 3:return!0;case 2:return!1;case 4:return b===2;case 0:return!0;default:return!1}}function oo(){return Yk()||!Uk(P.g.O)||!Uk(P.g.U)}
function po(){var a={},b;for(b in lo)lo.hasOwnProperty(b)&&(a[lo[b]]=Vk(b));return"G1"+Fe(a[1]||0)+Fe(a[2]||0)}var qo={},ro=(qo[P.g.O]=0,qo[P.g.U]=1,qo[P.g.N]=2,qo[P.g.sa]=3,qo);function so(a){switch(a){case void 0:return 1;case !0:return 3;case !1:return 2;default:return 0}}
function to(a){for(var b="1",c=0;c<ao.length;c++){var d=b,e,f=ao[c],g=Tk.delegatedConsentTypes[f];e=g===void 0?0:ro.hasOwnProperty(g)?12|ro[g]:8;var k=Mk();k.accessedAny=!0;var m=k.entries[f]||{};e=e<<2|so(m.implicit);b=d+(""+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[e]+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[so(m.declare)<<4|so(m.default)<<2|so(m.update)])}var n=b,p=(kl()==="US-CO"&&pc.globalPrivacyControl===!0?1:0)<<3,q=(Yk()?1:0)<<2,r=mo(a);b=
n+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[p|q|r];return b+=""+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[Tk.containerScopedDefaults.ad_storage<<4|Tk.containerScopedDefaults.analytics_storage<<2|Tk.containerScopedDefaults.ad_user_data]+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[(Tk.usedContainerScopedDefaults?1:0)<<2|Tk.containerScopedDefaults.ad_personalization]}
function uo(){if(!Uk(P.g.N))return"-";for(var a=Object.keys(Ch),b=Wk(a),c="",d=h(a),e=d.next();!e.done;e=d.next()){var f=e.value;b[f]&&(c+=Ch[f])}(Tk.usedCorePlatformServices?Tk.selectedAllCorePlatformServices:1)&&(c+="o");return c||"-"}function vo(){return ml()||(Un()||Vn())&&Zn()==="1"?"1":"0"}function wo(){return(ml()?!0:!(!Un()&&!Vn())&&Zn()==="1")||!Uk(P.g.N)}
function xo(){var a="0",b="0",c;var d=Rn();c=d.active?d.cmpId:void 0;typeof c==="number"&&c>=0&&c<=4095&&(a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[c>>6&63],b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[c&63]);var e="0",f;var g=Rn();f=g.active?g.tcfPolicyVersion:void 0;typeof f==="number"&&f>=0&&f<=63&&(e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[f]);var k=0;ml()&&(k|=1);Zn()==="1"&&(k|=2);Un()&&(k|=4);var m;var n=Rn();m=n.enableAdvertiserConsentMode!==
void 0?n.enableAdvertiserConsentMode?"1":"0":void 0;m==="1"&&(k|=8);Mk().waitPeriodTimedOut&&(k|=16);return"1"+a+b+e+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[k]}function yo(){return kl()==="US-CO"};function zo(){var a=!1;return a};var Ao={UA:1,AW:2,DC:3,G:4,GF:5,GT:12,GTM:14,HA:6,MC:7};
function Bo(a){a=a===void 0?{}:a;var b=Of.ctid.split("-")[0].toUpperCase(),c={};c.ctid=Of.ctid;c.Sm=Di.ue;c.Wm=Di.hh;c.xm=ak.qe?2:1;c.fn=a.mk;c.Be=Of.canonicalContainerId;c.Be!==a.ra&&(c.ra=a.ra);var d=kk();c.Im=d?d.canonicalContainerId:void 0;Ki?(c.gg=Ao[b],c.gg||(c.gg=0)):c.gg=Oi?13:10;Xi.H?(c.dg=0,c.wl=2):Mi?c.dg=1:zo()?c.dg=2:c.dg=3;var e={};e[6]=bk;Xi.C===2?e[7]=!0:Xi.C===1&&(e[2]=!0);c.zl=e;var f=a.Uf,g;var k=c.gg,m=c.dg;k===void 0?g="":(m||(m=0),g=""+He(1,1)+Ee(k<<2|m));var n=c.wl,p="4"+g+
(n?""+He(2,1)+Ee(n):""),q,r=c.Wm;q=r&&Ge.test(r)?""+He(3,2)+r:"";var t,v=c.Sm;t=v?""+He(4,1)+Ee(v):"";var u;var w=c.ctid;if(w&&f){var x=w.split("-"),y=x[0].toUpperCase();if(y!=="GTM"&&y!=="OPT")u="";else{var A=x[1];u=""+He(5,3)+Ee(1+A.length)+(c.xm||0)+A}}else u="";var B=c.fn,D=c.Be,G=c.ra,J=c.Wn,I=p+q+t+u+(B?""+He(6,1)+Ee(B):"")+(D?""+He(7,3)+Ee(D.length)+D:"")+(G?""+He(8,3)+Ee(G.length)+G:"")+(J?""+He(9,3)+Ee(J.length)+J:""),N;var L=c.zl;L=L===void 0?{}:L;for(var S=[],aa=h(Object.keys(L)),ba=aa.next();!ba.done;ba=
aa.next()){var T=ba.value;S[Number(T)]=L[T]}if(S.length){var O=He(10,3),ma;if(S.length===0)ma=Ee(0);else{for(var na=[],ja=0,Ba=!1,Ma=0;Ma<S.length;Ma++){Ba=!0;var Da=Ma%6;S[Ma]&&(ja|=1<<Da);Da===5&&(na.push(Ee(ja)),ja=0,Ba=!1)}Ba&&na.push(Ee(ja));ma=na.join("")}var Ra=ma;N=""+O+Ee(Ra.length)+Ra}else N="";var eb=c.Im;return I+N+(eb?""+He(11,3)+Ee(eb.length)+eb:"")};var Co={Fj:"service_worker_endpoint",jh:"shared_user_id",kh:"shared_user_id_requested",we:"shared_user_id_source"},Do;function Eo(a){if(!Do){Do={};for(var b=h(Object.keys(Co)),c=b.next();!c.done;c=b.next())Do[Co[c.value]]=!0}return!!Do[a]}
function Fo(a,b){b=b===void 0?!1:b;if(Eo(a)){var c,d,e=(d=(c=tc("google_tag_data",{})).xcd)!=null?d:c.xcd={};if(e[a])return e[a];if(b){var f=void 0,g=1,k={},m={set:function(n){f=n;m.notify()},get:function(){return f},subscribe:function(n){k[String(g)]=n;return g++},unsubscribe:function(n){var p=String(n);return k.hasOwnProperty(p)?(delete k[p],!0):!1},notify:function(){for(var n=h(Object.keys(k)),p=n.next();!p.done;p=n.next()){var q=p.value;try{k[q](a,f)}catch(r){}}}};return e[a]=m}}}
function Go(a,b){var c=Fo(a,!0);c&&c.set(b)}function Ho(a){var b;return(b=Fo(a))==null?void 0:b.get()}function Io(a,b){if(typeof b==="function"){var c;return(c=Fo(a,!0))==null?void 0:c.subscribe(b)}}function Jo(a,b){var c=Fo(a);return c?c.unsubscribe(b):!1};function Ko(a){var b=1,c,d,e;if(a)for(b=0,d=a.length-1;d>=0;d--)e=a.charCodeAt(d),b=(b<<6&268435455)+e+(e<<14),c=b&266338304,b=c!==0?b^c>>21:b;return b};function Lo(a){return a.origin!=="null"};function Mo(a,b,c,d){var e;if(No(d)){for(var f=[],g=String(b||Oo()).split(";"),k=0;k<g.length;k++){var m=g[k].split("="),n=m[0].replace(/^\s*|\s*$/g,"");if(n&&n===a){var p=m.slice(1).join("=").replace(/^\s*|\s*$/g,"");p&&c&&(p=decodeURIComponent(p));f.push(p)}}e=f}else e=[];return e}
function Po(a,b,c,d,e){if(No(e)){var f=Qo(a,d,e);if(f.length===1)return f[0].id;if(f.length!==0){f=Ro(f,function(g){return g.Hl},b);if(f.length===1)return f[0].id;f=Ro(f,function(g){return g.Km},c);return f[0]?f[0].id:void 0}}}function So(a,b,c,d){var e=Oo(),f=window;Lo(f)&&(f.document.cookie=a);var g=Oo();return e!==g||c!==void 0&&Mo(b,g,!1,d).indexOf(c)>=0}
function To(a,b,c,d){function e(w,x,y){if(y==null)return delete k[x],w;k[x]=y;return w+"; "+x+"="+y}function f(w,x){if(x==null)return w;k[x]=!0;return w+"; "+x}if(!No(c.Db))return 2;var g;b==null?g=a+"=deleted; expires="+(new Date(0)).toUTCString():(c.encode&&(b=encodeURIComponent(b)),b=Uo(b),g=a+"="+b);var k={};g=e(g,"path",c.path);var m;c.expires instanceof Date?m=c.expires.toUTCString():c.expires!=null&&(m=""+c.expires);g=e(g,"expires",m);g=e(g,"max-age",c.Bm);g=e(g,"samesite",c.Xm);c.secure&&
(g=f(g,"secure"));var n=c.domain;if(n&&n.toLowerCase()==="auto"){for(var p=Vo(),q=void 0,r=!1,t=0;t<p.length;++t){var v=p[t]!=="none"?p[t]:void 0,u=e(g,"domain",v);u=f(u,c.flags);try{d&&d(a,k)}catch(w){q=w;continue}r=!0;if(!Wo(v,c.path)&&So(u,a,b,c.Db))return 0}if(q&&!r)throw q;return 1}n&&n.toLowerCase()!=="none"&&(g=e(g,"domain",n));g=f(g,c.flags);d&&d(a,k);return Wo(n,c.path)?1:So(g,a,b,c.Db)?0:1}function Xo(a,b,c){c.path==null&&(c.path="/");c.domain||(c.domain="auto");return To(a,b,c)}
function Ro(a,b,c){for(var d=[],e=[],f,g=0;g<a.length;g++){var k=a[g],m=b(k);m===c?d.push(k):f===void 0||m<f?(e=[k],f=m):m===f&&e.push(k)}return d.length>0?d:e}function Qo(a,b,c){for(var d=[],e=Mo(a,void 0,void 0,c),f=0;f<e.length;f++){var g=e[f].split("."),k=g.shift();if(!b||!k||b.indexOf(k)!==-1){var m=g.shift();if(m){var n=m.split("-");d.push({id:g.join("."),Hl:Number(n[0])||1,Km:Number(n[1])||1})}}}return d}function Uo(a){a&&a.length>1200&&(a=a.substring(0,1200));return a}
var Yo=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,Zo=/(^|\.)doubleclick\.net$/i;function Wo(a,b){return a!==void 0&&(Zo.test(window.document.location.hostname)||b==="/"&&Yo.test(a))}function $o(a){if(!a)return 1;var b=a;lb(9)&&a==="none"&&(b=window.document.location.hostname);b=b.indexOf(".")===0?b.substring(1):b;return b.split(".").length}function ap(a){if(!a||a==="/")return 1;a[0]!=="/"&&(a="/"+a);a[a.length-1]!=="/"&&(a+="/");return a.split("/").length-1}
function bp(a,b){var c=""+$o(a),d=ap(b);d>1&&(c+="-"+d);return c}
var Oo=function(){return Lo(window)?window.document.cookie:""},No=function(a){return a&&lb(10)?(Array.isArray(a)?a:[a]).every(function(b){return Xk(b)&&Uk(b)}):!0},Vo=function(){var a=[],b=window.document.location.hostname.split(".");if(b.length===4){var c=b[b.length-1];if(Number(c).toString()===c)return["none"]}for(var d=b.length-2;d>=0;d--)a.push(b.slice(d).join("."));var e=window.document.location.hostname;Zo.test(e)||Yo.test(e)||a.push("none");return a};function cp(a){var b=Math.round(Math.random()*2147483647);return a?String(b^Ko(a)&2147483647):String(b)}function dp(a){return[cp(a),Math.round(Ab()/1E3)].join(".")}function ep(a,b,c,d,e){var f=$o(b);return Po(a,f,ap(c),d,e)}function fp(a,b,c,d){return[b,bp(c,d),a].join(".")};function gp(a,b,c,d){var e,f=Number(a.Cb!=null?a.Cb:void 0);f!==0&&(e=new Date((b||Ab())+1E3*(f||7776E3)));return{path:a.path,domain:a.domain,flags:a.flags,encode:!!c,expires:e,Db:d}};var hp;function ip(){function a(g){c(g.target||g.srcElement||{})}function b(g){d(g.target||g.srcElement||{})}var c=jp,d=kp,e=lp();if(!e.init){Dc(E,"mousedown",a);Dc(E,"keyup",a);Dc(E,"submit",b);var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){d(this);f.call(this)};e.init=!0}}function mp(a,b,c,d,e){var f={callback:a,domains:b,fragment:c===2,placement:c,forms:d,sameHost:e};lp().decorators.push(f)}
function np(a,b,c){for(var d=lp().decorators,e={},f=0;f<d.length;++f){var g=d[f],k;if(k=!c||g.forms)a:{var m=g.domains,n=a,p=!!g.sameHost;if(m&&(p||n!==E.location.hostname))for(var q=0;q<m.length;q++)if(m[q]instanceof RegExp){if(m[q].test(n)){k=!0;break a}}else if(n.indexOf(m[q])>=0||p&&m[q].indexOf(n)>=0){k=!0;break a}k=!1}if(k){var r=g.placement;r===void 0&&(r=g.fragment?2:1);r===b&&Db(e,g.callback())}}return e}
function lp(){var a=tc("google_tag_data",{}),b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var op=/(.*?)\*(.*?)\*(.*)/,pp=/^https?:\/\/([^\/]*?)\.?cdn\.ampproject\.org\/?(.*)/,qp=/^(?:www\.|m\.|amp\.)+/,rp=/([^?#]+)(\?[^#]*)?(#.*)?/;function sp(a){var b=rp.exec(a);if(b)return{Uh:b[1],query:b[2],fragment:b[3]}}function tp(a){return new RegExp("(.*?)(^|&)"+a+"=([^&]*)&?(.*)")}
function up(a,b){var c=[pc.userAgent,(new Date).getTimezoneOffset(),pc.userLanguage||pc.language,Math.floor(Ab()/60/1E3)-(b===void 0?0:b),a].join("*"),d;if(!(d=hp)){for(var e=Array(256),f=0;f<256;f++){for(var g=f,k=0;k<8;k++)g=g&1?g>>>1^3988292384:g>>>1;e[f]=g}d=e}hp=d;for(var m=4294967295,n=0;n<c.length;n++)m=m>>>8^hp[(m^c.charCodeAt(n))&255];return((m^-1)>>>0).toString(36)}
function vp(a){return function(b){var c=xj(C.location.href),d=c.search.replace("?",""),e=qj(d,"_gl",!1,!0)||"";b.query=wp(e)||{};var f=rj(c,"fragment"),g;var k=-1;if(Fb(f,"_gl="))k=4;else{var m=f.indexOf("&_gl=");m>0&&(k=m+3+2)}if(k<0)g=void 0;else{var n=f.indexOf("&",k);g=n<0?f.substring(k):f.substring(k,n)}b.fragment=wp(g||"")||{};a&&xp(c,d,f)}}function yp(a,b){var c=tp(a).exec(b),d=b;if(c){var e=c[2],f=c[4];d=c[1];f&&(d=d+e+f)}return d}
function xp(a,b,c){function d(g,k){var m=yp("_gl",g);m.length&&(m=k+m);return m}if(oc&&oc.replaceState){var e=tp("_gl");if(e.test(b)||e.test(c)){var f=rj(a,"path");b=d(b,"?");c=d(c,"#");oc.replaceState({},"",""+f+b+c)}}}function zp(a,b){var c=vp(!!b),d=lp();d.data||(d.data={query:{},fragment:{}},c(d.data));var e={},f=d.data;f&&(Db(e,f.query),a&&Db(e,f.fragment));return e}
var wp=function(a){try{var b=Ap(a,3);if(b!==void 0){for(var c={},d=b?b.split("*"):[],e=0;e+1<d.length;e+=2){var f=d[e],g=db(d[e+1]);c[f]=g}gb("TAGGING",6);return c}}catch(k){gb("TAGGING",8)}};function Ap(a,b){if(a){var c;a:{for(var d=a,e=0;e<3;++e){var f=op.exec(d);if(f){c=f;break a}d=decodeURIComponent(d)}c=void 0}var g=c;if(g&&g[1]==="1"){var k=g[3],m;a:{for(var n=g[2],p=0;p<b;++p)if(n===up(k,p)){m=!0;break a}m=!1}if(m)return k;gb("TAGGING",7)}}}
function Bp(a,b,c,d,e){function f(p){p=yp(a,p);var q=p.charAt(p.length-1);p&&q!=="&"&&(p+="&");return p+n}d=d===void 0?!1:d;e=e===void 0?!1:e;var g=sp(c);if(!g)return"";var k=g.query||"",m=g.fragment||"",n=a+"="+b;d?m.substring(1).length!==0&&e||(m="#"+f(m.substring(1))):k="?"+f(k.substring(1));return""+g.Uh+k+m}
function Cp(a,b){function c(n,p,q){var r;a:{for(var t in n)if(n.hasOwnProperty(t)){r=!0;break a}r=!1}if(r){var v,u=[],w;for(w in n)if(n.hasOwnProperty(w)){var x=n[w];x!==void 0&&x===x&&x!==null&&x.toString()!=="[object Object]"&&(u.push(w),u.push(cb(String(x))))}var y=u.join("*");v=["1",up(y),y].join("*");d?(lb(4)||lb(1)||!p)&&Dp("_gl",v,a,p,q):Ep("_gl",v,a,p,q)}}var d=(a.tagName||"").toUpperCase()==="FORM",e=np(b,1,d),f=np(b,2,d),g=np(b,4,d),k=np(b,3,d);c(e,!1,!1);c(f,!0,!1);lb(1)&&c(g,!0,!0);for(var m in k)k.hasOwnProperty(m)&&
Fp(m,k[m],a)}function Fp(a,b,c){c.tagName.toLowerCase()==="a"?Ep(a,b,c):c.tagName.toLowerCase()==="form"&&Dp(a,b,c)}function Ep(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;var f;if(f=c.href){var g;if(!(g=!lb(5)||d)){var k=C.location.href,m=sp(c.href),n=sp(k);g=!(m&&n&&m.Uh===n.Uh&&m.query===n.query&&m.fragment)}f=g}if(f){var p=Bp(a,b,c.href,d,e);fc.test(p)&&(c.href=p)}}
function Dp(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;if(c&&c.action){var f=(c.method||"").toLowerCase();if(f!=="get"||d){if(f==="get"||f==="post"){var g=Bp(a,b,c.action,d,e);fc.test(g)&&(c.action=g)}}else{for(var k=c.childNodes||[],m=!1,n=0;n<k.length;n++){var p=k[n];if(p.name===a){p.setAttribute("value",b);m=!0;break}}if(!m){var q=E.createElement("input");q.setAttribute("type","hidden");q.setAttribute("name",a);q.setAttribute("value",b);c.appendChild(q)}}}}
function jp(a){try{var b;a:{for(var c=a,d=100;c&&d>0;){if(c.href&&c.nodeName.match(/^a(?:rea)?$/i)){b=c;break a}c=c.parentNode;d--}b=null}var e=b;if(e){var f=e.protocol;f!=="http:"&&f!=="https:"||Cp(e,e.hostname)}}catch(g){}}function kp(a){try{if(a.action){var b=rj(xj(a.action),"host");Cp(a,b)}}catch(c){}}function Gp(a,b,c,d){ip();var e=c==="fragment"?2:1;d=!!d;mp(a,b,e,d,!1);e===2&&gb("TAGGING",23);d&&gb("TAGGING",24)}function Hp(a,b){ip();mp(a,[tj(C.location,"host",!0)],b,!0,!0)}
function Ip(){var a=E.location.hostname,b=pp.exec(E.referrer);if(!b)return!1;var c=b[2],d=b[1],e="";if(c){var f=c.split("/"),g=f[1];e=g==="s"?decodeURIComponent(f[2]):decodeURIComponent(g)}else if(d){if(d.indexOf("xn--")===0)return!1;e=d.replace(/-/g,".").replace(/\.\./g,"-")}var k=a.replace(qp,""),m=e.replace(qp,"");return k===m||Gb(k,"."+m)}function Jp(a,b){return a===!1?!1:a||b||Ip()};var Kp=["1"],Lp={},Mp={};function Np(a,b){b=b===void 0?!0:b;var c=Op(a.prefix);if(!Lp[c])if(Pp(c,a.path,a.domain)){var d=Mp[Op(a.prefix)];Qp(a,d?d.id:void 0,d?d.Ph:void 0)}else{var e=zj("auiddc");if(e)gb("TAGGING",17),Lp[c]=e;else if(b){var f=Op(a.prefix),g=dp();Rp(f,g,a);Pp(c,a.path,a.domain)}}}function Qp(a,b,c){var d=Op(a.prefix),e=Lp[d];if(e){var f=e.split(".");if(f.length===2){var g=Number(f[1])||0;if(g){var k=e;b&&(k=e+"."+b+"."+(c?c:Math.floor(Ab()/1E3)));Rp(d,k,a,g*1E3)}}}}
function Rp(a,b,c,d){var e=fp(b,"1",c.domain,c.path),f=gp(c,d);f.Db=Sp();Xo(a,e,f)}function Pp(a,b,c){var d=ep(a,b,c,Kp,Sp());if(!d)return!1;Tp(a,d);return!0}function Tp(a,b){var c=b.split(".");c.length===5?(Lp[a]=c.slice(0,2).join("."),Mp[a]={id:c.slice(2,4).join("."),Ph:Number(c[4])||0}):c.length===3?Mp[a]={id:c.slice(0,2).join("."),Ph:Number(c[2])||0}:Lp[a]=b}function Op(a){return(a||"_gcl")+"_au"}function Up(a){function b(){Uk(c)&&a()}var c=Sp();al(function(){b();Uk(c)||bl(b,c)},c)}
function Vp(a){var b=zp(!0),c=Op(a.prefix);Up(function(){var d=b[c];if(d){Tp(c,d);var e=Number(Lp[c].split(".")[1])*1E3;if(e){gb("TAGGING",16);var f=gp(a,e);f.Db=Sp();var g=fp(d,"1",a.domain,a.path);Xo(c,g,f)}}})}function Wp(a,b,c,d,e){e=e||{};var f=function(){var g={},k=ep(a,e.path,e.domain,Kp,Sp());k&&(g[a]=k);return g};Up(function(){Gp(f,b,c,d)})}function Sp(){return["ad_storage","ad_user_data"]};var Xp={},Yp=(Xp.k={Fa:/^[\w-]+$/},Xp.b={Fa:/^[\w-]+$/,bi:!0},Xp.i={Fa:/^[1-9]\d*$/},Xp.u={Fa:/^[1-9]\d*$/},Xp);var Zp={},bq=(Zp[5]={xk:{2:$p},qh:["k","i","b","u"]},Zp[4]={xk:{2:$p,GCL:aq},qh:["k","i","b"]},Zp);function cq(a){var b=bq[5];if(b){var c=a.split(".")[0];if(c){var d=b.xk[c];if(d)return d(a,5)}}}
function $p(a,b){var c=a.split(".");if(c.length===3){var d={},e=bq[b];if(e){for(var f=e.qh,g=h(c[2].split("$")),k=g.next();!k.done;k=g.next()){var m=k.value,n=m[0];if(f.indexOf(n)!==-1)try{var p=decodeURIComponent(m.substring(1)),q=Yp[n];q&&(q.bi?(d[n]=d[n]||[],d[n].push(p)):d[n]=p)}catch(r){}}return d}}}
function dq(a,b){var c=bq[5];if(c){for(var d=[],e=h(c.qh),f=e.next();!f.done;f=e.next()){var g=f.value,k=Yp[g];if(k){var m=a[g];if(m!==void 0)if(k.bi&&Array.isArray(m))for(var n=h(m),p=n.next();!p.done;p=n.next())d.push(encodeURIComponent(""+g+p.value));else d.push(encodeURIComponent(""+g+m))}}return["2",b||"1",d.join("$")].join(".")}}function aq(a){var b=a.split(".");b.shift();var c=b.shift(),d=b.shift(),e={};return e.k=d,e.i=c,e.b=b,e};var eq=new Map([[5,"ad_storage"],[4,["ad_storage","ad_user_data"]]]);function fq(a){if(bq[5]){for(var b=[],c=Mo(a,void 0,void 0,eq.get(5)),d=h(c),e=d.next();!e.done;e=d.next()){var f=cq(e.value);f&&(gq(f),b.push(f))}return b}}function hq(a,b,c,d){c=c||{};var e=bp(c.domain,c.path),f=dq(b,e);if(f){var g=gp(c,d,void 0,eq.get(5));Xo(a,f,g)}}function iq(a,b){var c=b.Fa;return typeof c==="function"?c(a):c.test(a)}
function gq(a){for(var b=h(Object.keys(a)),c=b.next(),d={};!c.done;d={De:void 0},c=b.next()){var e=c.value,f=a[e];d.De=Yp[e];d.De?d.De.bi?a[e]=Array.isArray(f)?f.filter(function(g){return function(k){return iq(k,g.De)}}(d)):void 0:typeof f==="string"&&iq(f,d.De)||(a[e]=void 0):a[e]=void 0}};function jq(a){for(var b=[],c=E.cookie.split(";"),d=new RegExp("^\\s*"+(a||"_gac")+"_(UA-\\d+-\\d+)=\\s*(.+?)\\s*$"),e=0;e<c.length;e++){var f=c[e].match(d);f&&b.push({ii:f[1],value:f[2],timestamp:Number(f[2].split(".")[1])||0})}b.sort(function(g,k){return k.timestamp-g.timestamp});return b}
function kq(a,b){var c=jq(a),d={};if(!c||!c.length)return d;for(var e=0;e<c.length;e++){var f=c[e].value.split(".");if(!(f[0]!=="1"||b&&f.length<3||!b&&f.length!==3)&&Number(f[1])){d[c[e].ii]||(d[c[e].ii]=[]);var g={version:f[0],timestamp:Number(f[1])*1E3,T:f[2]};b&&f.length>3&&(g.labels=f.slice(3));d[c[e].ii].push(g)}}return d};var lq=["ad_storage","ad_user_data"];function mq(){var a=nq();if(a.error)return a;if(!a.value)return{error:2};var b;try{b=a.value.gclid}catch(c){return{error:11}}return b?{value:b}:{value:void 0}}
function nq(){if(!Uk(lq))return{error:3};try{if(!C.localStorage)return{error:1}}catch(d){return{error:14}}var a={schema:"gcl",version:1},b=void 0;try{b=C.localStorage.getItem("_gcl_ls")}catch(d){return{error:13}}try{if(b){var c=JSON.parse(b);if(c&&typeof c==="object")a=c;else return{error:12}}}catch(d){return{error:8}}if(a.schema!=="gcl")return{error:4};if(a.version!==1)return{error:5};try{oq(a)}catch(d){return{error:8}}return{value:a,error:0}}
function oq(a){if(a&&typeof a==="object")if("expires"in a&&"value"in a){var b;typeof a.expires==="number"?b=a.expires:b=typeof a.expires==="string"?Number(a.expires):NaN;!isNaN(b)&&Date.now()<=b||(a.value=null,a.error=9)}else for(var c=h(Object.keys(a)),d=c.next();!d.done;d=c.next())oq(a[d.value])};var pq=/^\w+$/,qq=/^[\w-]+$/,rq={},sq=(rq.aw="_aw",rq.dc="_dc",rq.gf="_gf",rq.gp="_gp",rq.gs="_gs",rq.ha="_ha",rq.ag="_ag",rq.gb="_gb",rq);function tq(){return["ad_storage","ad_user_data"]}function uq(a){return!lb(10)||Uk(a)}function vq(a,b){function c(){var d=uq(b);d&&a();return d}al(function(){c()||bl(c,b)},b)}function wq(a){return xq(a).map(function(b){return b.T})}function yq(a){return zq(a).filter(function(b){return b.T}).map(function(b){return b.T})}
function zq(a){var b=Aq(a.prefix),c=Bq("gb",b),d=Bq("ag",b);if(!d||!c)return[];var e=function(k){return function(m){m.type=k;return m}},f=xq(c).map(e("gb")),g=(lb(7)?Cq(d):[]).map(e("ag"));return f.concat(g).sort(function(k,m){return m.timestamp-k.timestamp})}function Dq(a,b,c,d,e,f){var g=qb(a,function(k){return k.T===c});g?(g.timestamp<d&&(g.timestamp=d,g.Cd=f),g.labels=Eq(g.labels||[],e||[])):a.push({version:b,T:c,timestamp:d,labels:e,Cd:f})}
function Cq(a){for(var b=fq(a)||[],c=[],d=h(b),e=d.next();!e.done;e=d.next()){var f=e.value,g=f,k=g.k,m=g.b,n=Fq(f);if(n){var p=void 0;lb(11)&&(p=f.u);Dq(c,"2",k,n,m||[],p)}}return c.sort(function(q,r){return r.timestamp-q.timestamp})}function xq(a){for(var b=[],c=Mo(a,E.cookie,void 0,tq()),d=h(c),e=d.next();!e.done;e=d.next()){var f=Gq(e.value);if(f!=null){var g=f;Dq(b,g.version,g.T,g.timestamp,g.labels)}}b.sort(function(k,m){return m.timestamp-k.timestamp});return Hq(b)}
function Iq(a,b){for(var c=[],d=h(a),e=d.next();!e.done;e=d.next()){var f=e.value;c.includes(f)||c.push(f)}for(var g=h(b),k=g.next();!k.done;k=g.next()){var m=k.value;c.includes(m)||c.push(m)}return c}function Jq(a,b){var c=qb(a,function(d){return d.T===b.T});c?(c.timestamp<b.timestamp&&(c.timestamp=b.timestamp,c.Cd=b.Cd),c.La=c.La?b.La?c.timestamp<b.timestamp?b.La:c.La:c.La||0:b.La||0,c.labels=Iq(c.labels||[],b.labels||[]),c.Oc=Iq(c.Oc||[],b.Oc||[])):a.push(b)}
function Kq(){var a=mq();if(!a||a.error||!a.value||typeof a.value!=="object")return null;var b=a.value;try{if(!("value"in b&&b.value)||typeof b.value!=="object")return null;var c=b.value,d=c.value;return d&&d.match(qq)?{version:"",T:d,timestamp:Number(c.creationTimeMs)||0,labels:[],La:c.linkDecorationSource||0,Oc:[2]}:null}catch(e){return null}}
function Lq(a){for(var b=[],c=Mo(a,E.cookie,void 0,tq()),d=h(c),e=d.next();!e.done;e=d.next()){var f=Gq(e.value);f!=null&&(f.Cd=void 0,f.La=0,f.Oc=[1],Jq(b,f))}var g=Kq();g&&(g.Cd=void 0,g.La=g.La||0,g.Oc=g.Oc||[2],Jq(b,g));b.sort(function(k,m){return m.timestamp-k.timestamp});return Hq(b)}function Eq(a,b){if(!a.length)return b;if(!b.length)return a;var c={};return a.concat(b).filter(function(d){return c.hasOwnProperty(d)?!1:c[d]=!0})}
function Aq(a){return a&&typeof a==="string"&&a.match(pq)?a:"_gcl"}function Mq(a,b,c){var d=xj(a),e=rj(d,"query",!1,void 0,"gclsrc"),f={value:rj(d,"query",!1,void 0,"gclid"),La:c?4:2};if(b&&(!f.value||!e)){var g=d.hash.replace("#","");f.value||(f.value=qj(g,"gclid",!1),f.La=3);e||(e=qj(g,"gclsrc",!1))}return!f.value||e!==void 0&&e!=="aw"&&e!=="aw.ds"?[]:[f]}
function Nq(a,b){var c=lb(7),d=xj(a),e=rj(d,"query",!1,void 0,"gclid"),f=rj(d,"query",!1,void 0,"gclsrc"),g=rj(d,"query",!1,void 0,"wbraid");g=Mb(g);var k;c&&(k=rj(d,"query",!1,void 0,"gbraid"));var m=rj(d,"query",!1,void 0,"gad_source"),n=rj(d,"query",!1,void 0,"dclid");if(b&&(!e||!f||!g||c&&!k)){var p=d.hash.replace("#","");e=e||qj(p,"gclid",!1);f=f||qj(p,"gclsrc",!1);g=g||qj(p,"wbraid",!1);c&&(k=k||qj(p,"gbraid",!1));m=m||qj(p,"gad_source",!1)}return Oq(e,f,n,g,k,m)}
function Pq(){return Nq(C.location.href,!0)}
function Oq(a,b,c,d,e,f){var g={},k=function(m,n){g[n]||(g[n]=[]);g[n].push(m)};g.gclid=a;g.gclsrc=b;g.dclid=c;if(a!==void 0&&a.match(qq))switch(b){case void 0:k(a,"aw");break;case "aw.ds":k(a,"aw");k(a,"dc");break;case "ds":k(a,"dc");break;case "3p.ds":k(a,"dc");break;case "gf":k(a,"gf");break;case "ha":k(a,"ha")}c&&k(c,"dc");d!==void 0&&qq.test(d)&&(g.wbraid=d,k(d,"gb"));lb(7)&&e!==void 0&&qq.test(e)&&(g.gbraid=e,k(e,"ag"));f!==void 0&&qq.test(f)&&(g.gad_source=f,k(f,"gs"));return g}
function Qq(a){var b=Pq();if(lb(6)){for(var c=!0,d=h(Object.keys(b)),e=d.next();!e.done;e=d.next())if(b[e.value]!==void 0){c=!1;break}c&&(b=Nq(C.document.referrer,!1),b.gad_source=void 0)}Rq(b,!1,a)}
function Sq(a){Qq(a);var b=Mq(C.location.href,!0,!1);lb(6)&&!b.length&&(b=Mq(C.document.referrer,!1,!0));if(b.length){var c=b[0];a=a||{};var d=Ab(),e=gp(a,d,!0),f=tq(),g=function(){if(uq(f)&&e.expires!==void 0){var k={value:{value:c.value,creationTimeMs:d,linkDecorationSource:c.La},expires:Number(e.expires)},m=nq();if(!m.error&&m.value)a:if(m.value.gclid=k,!m.error&&m.value){var n=m.value,p;try{p=JSON.stringify(n)}catch(q){break a}try{C.localStorage.setItem("_gcl_ls",p)}catch(q){}}}};al(function(){g();
uq(f)||bl(g,f)},f)}}
function Rq(a,b,c,d,e){c=c||{};e=e||[];var f=Aq(c.prefix),g=d||Ab(),k=Math.round(g/1E3),m=tq(),n=!1,p=!1,q=function(){if(uq(m)){var r=gp(c,g,!0);r.Db=m;for(var t=function(I,N){var L=Bq(I,f);L&&(Xo(L,N,r),I!=="gb"&&(n=!0))},v=function(I){var N=["GCL",k,I];e.length>0&&N.push(e.join("."));return N.join(".")},u=h(["aw","dc","gf","ha","gp"]),w=u.next();!w.done;w=u.next()){var x=w.value;a[x]&&t(x,v(a[x][0]))}if(!n&&a.gb){var y=a.gb[0],A=Bq("gb",f);!b&&xq(A).some(function(I){return I.T===y&&I.labels&&I.labels.length>
0})||t("gb",v(y))}}if(!p&&lb(7)&&a.gbraid&&uq("ad_storage")&&(p=!0,!n)){var B=a.gbraid,D=Bq("ag",f);if(b||!(lb(7)?Cq(D):[]).some(function(I){return I.T===B&&I.labels&&I.labels.length>0})){var G={},J=(G.k=B,G.i=""+k,G.b=e,G);hq(D,J,c,g)}}Tq(a,f,g,c)};al(function(){q();uq(m)||bl(q,m)},m)}
function Tq(a,b,c,d){if(a.gad_source!==void 0&&uq("ad_storage")){var e=a.gad_source,f=Bq("gs",b);if(f){var g=Math.round((Ab()-(Pc()||0))/1E3),k;if(lb(11)){var m,n=String,p=C.location.hostname,q=C.location.pathname,r=p=Aj(p);r.split(".").length>2&&(r=r.replace(/^(www[0-9]*|web|ftp|wap|home|m|w|amp|mobile)\./,""));p=r;q=Aj(q);var t=q.split(";")[0];t=t.replace(/\/(ar|slp|web|index)?\/?$/,"");m=n(Ko((""+p+t).toLowerCase()));var v={};k=(v.k=e,v.i=""+g,v.u=m,v)}else{var u={};k=(u.k=e,u.i=""+g,u)}hq(f,k,
d,c)}}}function Uq(a,b){var c=zp(!0);vq(function(){for(var d=Aq(b.prefix),e=0;e<a.length;++e){var f=a[e];if(sq[f]!==void 0){var g=Bq(f,d),k=c[g];if(k){var m=Math.min(Vq(k),Ab()),n;b:{for(var p=m,q=Mo(g,E.cookie,void 0,tq()),r=0;r<q.length;++r)if(Vq(q[r])>p){n=!0;break b}n=!1}if(!n){var t=gp(b,m,!0);t.Db=tq();Xo(g,k,t)}}}}Rq(Oq(c.gclid,c.gclsrc),!1,b)},tq())}
function Wq(a){var b=[];lb(7)&&b.push("ag");if(b.length!==0){var c=zp(!0),d=Aq(a.prefix);vq(function(){for(var e=0;e<b.length;++e){var f=Bq(b[e],d);if(f){var g=c[f];if(g){var k=cq(g);if(k){var m=Fq(k);m||(m=Ab());var n;a:{for(var p=m,q=fq(f),r=0;r<q.length;++r)if(Fq(q[r])>p){n=!0;break a}n=!1}if(n)break;k.i=""+Math.round(m/1E3);hq(f,k,a,m)}}}}},["ad_storage"])}}function Bq(a,b){var c=sq[a];if(c!==void 0)return b+c}
function Vq(a){return Xq(a.split(".")).length!==0?(Number(a.split(".")[1])||0)*1E3:0}function Fq(a){return a?(Number(a.i)||0)*1E3:0}function Gq(a){var b=Xq(a.split("."));return b.length===0?null:{version:b[0],T:b[2],timestamp:(Number(b[1])||0)*1E3,labels:b.slice(3)}}function Xq(a){return a.length<3||a[0]!=="GCL"&&a[0]!=="1"||!/^\d+$/.test(a[1])||!qq.test(a[2])?[]:a}
function Yq(a,b,c,d,e){if(Array.isArray(b)&&Lo(C)){var f=Aq(e),g=function(){for(var k={},m=0;m<a.length;++m){var n=Bq(a[m],f);if(n){var p=Mo(n,E.cookie,void 0,tq());p.length&&(k[n]=p.sort()[p.length-1])}}return k};vq(function(){Gp(g,b,c,d)},tq())}}
function Zq(a,b,c,d){if(Array.isArray(a)&&Lo(C)){var e=[];lb(7)&&e.push("ag");if(e.length!==0){var f=Aq(d),g=function(){for(var k={},m=0;m<e.length;++m){var n=Bq(e[m],f);if(!n)return{};var p=fq(n);if(p.length){var q=p.sort(function(r,t){return Fq(t)-Fq(r)})[0];k[n]=dq(q)}}return k};vq(function(){Gp(g,a,b,c)},["ad_storage"])}}}function Hq(a){return a.filter(function(b){return qq.test(b.T)})}
function $q(a,b){if(Lo(C)){for(var c=Aq(b.prefix),d={},e=0;e<a.length;e++)sq[a[e]]&&(d[a[e]]=sq[a[e]]);vq(function(){z(d,function(f,g){var k=Mo(c+g,E.cookie,void 0,tq());k.sort(function(t,v){return Vq(v)-Vq(t)});if(k.length){var m=k[0],n=Vq(m),p=Xq(m.split(".")).length!==0?m.split(".").slice(3):[],q={},r;r=Xq(m.split(".")).length!==0?m.split(".")[2]:void 0;q[f]=[r];Rq(q,!0,b,n,p)}})},tq())}}
function ar(a){var b=[],c=[];lb(7)&&(b.push("ag"),c.push("gbraid"));b.length!==0&&vq(function(){for(var d=Aq(a.prefix),e=0;e<b.length;++e){var f=Bq(b[e],d);if(!f)break;var g=fq(f);if(g.length){var k=g.sort(function(q,r){return Fq(r)-Fq(q)})[0],m=Fq(k),n=k.b,p={};p[c[e]]=k.k;Rq(p,!0,a,m,n)}}},["ad_storage"])}function br(a,b){for(var c=0;c<b.length;++c)if(a[b[c]])return!0;return!1}
function cr(a){function b(e,f,g){g&&(e[f]=g)}if(Yk()){var c=Pq();if(br(c,a)){var d={};b(d,"gclid",c.gclid);b(d,"dclid",c.dclid);b(d,"gclsrc",c.gclsrc);b(d,"wbraid",c.wbraid);lb(7)&&b(d,"gbraid",c.gbraid);Hp(function(){return d},3);Hp(function(){var e={};return e._up="1",e},1)}}}
function dr(a){if(!lb(1))return null;var b=zp(!0).gad_source;if(b!=null)return C.location.hash="",b;if(lb(2)){var c=xj(C.location.href);b=rj(c,"query",!1,void 0,"gad_source");if(b!=null)return b;var d=Pq();if(br(d,a))return"0"}return null}function er(a){var b=dr(a);b!=null&&Hp(function(){var c={};return c.gad_source=b,c},4)}
function fr(a,b,c){var d=[];if(b.length===0)return d;for(var e={},f=0;f<b.length;f++){var g=b[f],k=g.type?g.type:"gcl";(g.labels||[]).indexOf(c)===-1?(a.push(0),e[k]||d.push(g)):a.push(1);e[k]=!0}return d}function gr(a,b,c,d){var e=[];c=c||{};if(!uq(tq()))return e;var f=xq(a),g=fr(e,f,b);if(g.length&&!d)for(var k=h(g),m=k.next();!m.done;m=k.next()){var n=m.value,p=n.timestamp,q=[n.version,Math.round(p/1E3),n.T].concat(n.labels||[],[b]).join("."),r=gp(c,p,!0);r.Db=tq();Xo(a,q,r)}return e}
function hr(a,b){var c=[];b=b||{};var d=zq(b),e=fr(c,d,a);if(e.length)for(var f=h(e),g=f.next();!g.done;g=f.next()){var k=g.value,m=Aq(b.prefix),n=Bq(k.type,m);if(!n)break;var p=k,q=p.version,r=p.T,t=p.labels,v=p.timestamp,u=Math.round(v/1E3);if(k.type==="ag"){var w={},x=(w.k=r,w.i=""+u,w.b=(t||[]).concat([a]),w);hq(n,x,b,v)}else if(k.type==="gb"){var y=[q,u,r].concat(t||[],[a]).join("."),A=gp(b,v,!0);A.Db=tq();Xo(n,y,A)}}return c}
function ir(a,b){var c=Aq(b),d=Bq(a,c);if(!d)return 0;var e;e=a==="ag"?lb(7)?Cq(d):[]:xq(d);for(var f=0,g=0;g<e.length;g++)f=Math.max(f,e[g].timestamp);return f}function jr(a){for(var b=0,c=h(Object.keys(a)),d=c.next();!d.done;d=c.next())for(var e=a[d.value],f=0;f<e.length;f++)b=Math.max(b,Number(e[f].timestamp));return b}function kr(a,b){var c=Math.max(ir("aw",a),jr(uq(tq())?kq():{})),d=Math.max(ir("gb",a),jr(uq(tq())?kq("_gac_gb",!0):{}));lb(7)&&b&&(d=Math.max(d,ir("ag",a)));return d>c};
var lr=function(a,b){var c=Ei.ads_pageview=Ei.ads_pageview||{};if(c[a])return!1;(b===void 0?0:b)||(c[a]=!0);return!0},tr=function(a,b,c,d,e){var f=Aq(a.prefix);if(lr(f,!0)){var g=Pq(),k=[],m=g.gclid,n=g.dclid,p=g.gclsrc||"aw",q=mr(),r=q.Je,t=q.Sj;!m||p!=="aw.ds"&&p!=="aw"&&p!=="ds"&&p!=="3p.ds"||k.push({T:m,Ke:p});n&&k.push({T:n,Ke:"ds"});k.length===2&&V(147);k.length===0&&g.wbraid&&k.push({T:g.wbraid,Ke:"gb"});k.length===0&&p==="aw.ds"&&k.push({T:"",Ke:"aw.ds"});nr(function(){var v=X(or());if(v){Np(a);
var u=[],w=v?Lp[Op(a.prefix)]:void 0;w&&u.push("auid="+w);if(X(P.g.N)){e&&u.push("userId="+e);var x=Ho(Co.jh);if(x===void 0)Go(Co.kh,!0);else{var y=Ho(Co.we);u.push("ga_uid="+y+"."+x)}}var A=E.referrer?rj(xj(E.referrer),"host"):"",B=v||!d?k:[];B.length===0&&(pr.test(A)||qr.test(A))&&B.push({T:"",Ke:""});if(B.length!==0||r!==void 0){A&&u.push("ref="+encodeURIComponent(A));var D=rr();u.push("url="+encodeURIComponent(D));u.push("tft="+Ab());var G=Pc();G!==void 0&&u.push("tfd="+Math.round(G));var J=An(!0);
u.push("frm="+J);r!==void 0&&u.push("gad_source="+encodeURIComponent(r));t!==void 0&&u.push("gad_source_src="+encodeURIComponent(t.toString()));if(!c){var I={};c=qm(gm(new fm(0),(I[P.g.ja]=Lm.j[P.g.ja],I)))}u.push("gtm="+Bo({ra:b}));oo()&&u.push("gcs="+po());u.push("gcd="+to(c));wo()&&u.push("dma_cps="+uo());u.push("dma="+vo());no(c)?u.push("npa=0"):u.push("npa=1");yo()&&u.push("_ng=1");Kn(Sn())&&u.push("tcfd="+xo());var N=Zn();N&&u.push("gdpr="+N);var L=Yn();L&&u.push("gdpr_consent="+L);U(17)&&u.push("apve="+
(U(18)?1:0));U(87)&&zp(!1)._up&&u.push("gtm_up=1");Xi.j&&u.push("tag_exp="+Xi.j);if(B.length>0)for(var S=0;S<B.length;S++){var aa=B[S],ba=aa.T,T=aa.Ke;if(!sr(a.prefix,T+"."+ba,w!==void 0)){var O='https://adservice.google.com/pagead/regclk?'+u.join("&");ba!==""?O=T==="gb"?O+"&wbraid="+ba:O+"&gclid="+ba+"&gclsrc="+T:T==="aw.ds"&&(O+="&gclsrc=aw.ds");Jc(O)}}else if(r!==void 0&&!sr(a.prefix,"gad",w!==void 0)){var ma='https://adservice.google.com/pagead/regclk?'+u.join("&");Jc(ma)}}}})}},sr=function(a,b,c){var d=
Ei.joined_auid=Ei.joined_auid||{},e=(c?a||"_gcl":"")+"."+b;if(d[e])return!0;d[e]=!0;return!1},mr=function(){var a=xj(C.location.href),b=void 0,c=void 0,d=rj(a,"query",!1,void 0,"gad_source"),e,f=a.hash.replace("#","").match(ur);e=f?f[1]:void 0;d&&e?(b=d,c=1):d?(b=d,c=2):e&&(b=e,c=3);return{Je:b,Sj:c}},rr=function(){var a=An(!1)===1?C.top.location.href:C.location.href;return a=a.replace(/[\?#].*$/,"")},vr=function(a){var b=[];z(a,function(c,d){d=Hq(d);for(var e=[],f=0;f<d.length;f++)e.push(d[f].T);
e.length&&b.push(c+":"+e.join(","))});return b.join(";")},xr=function(a,b){return wr("dc",a,b)},yr=function(a,b){return wr("aw",a,b)},wr=function(a,b,c){if(a==="aw"||a==="dc"||a==="gb"){var d=zj("gcl"+a);if(d)return d.split(".")}var e=Aq(b);if(e==="_gcl"){var f=!X(or())&&c,g;g=Pq()[a]||[];if(g.length>0)return f?["0"]:g}var k=Bq(a,e);return k?wq(k):[]},nr=function(a){var b=or();Al(function(){a();X(b)||bl(a,b)},b)},or=function(){return[P.g.O,P.g.N]},pr=/^(?:www\.)?google(?:\.com?)?(?:\.[a-z]{2}t?)?$/,
qr=/^www\.googleadservices\.com$/,ur=/^gad_source[_=](\d+)$/;function zr(){Ei.dedupe_gclid||(Ei.dedupe_gclid=dp());return Ei.dedupe_gclid};var Ar=/^(www\.)?google(\.com?)?(\.[a-z]{2}t?)?$/,Br=/^www.googleadservices.com$/;function Cr(a){a||(a=Dr());return a.qn?!1:a.dm||a.fm||a.im||a.gm||a.Je||a.Ql||a.hm||a.Ul?!0:!1}function Dr(){var a={},b=zp(!0);a.qn=!!b._up;var c=Pq();a.dm=c.aw!==void 0;a.fm=c.dc!==void 0;a.im=c.wbraid!==void 0;a.gm=c.gbraid!==void 0;a.hm=c.gclsrc==="aw.ds";a.Je=mr().Je;var d=E.referrer?rj(xj(E.referrer),"host"):"";a.Ul=Ar.test(d);a.Ql=Br.test(d);return a};var Er=RegExp("^UA-\\d+-\\d+%3A[\\w-]+(?:%2C[\\w-]+)*(?:%3BUA-\\d+-\\d+%3A[\\w-]+(?:%2C[\\w-]+)*)*$"),Fr=/^~?[\w-]+(?:\.~?[\w-]+)*$/,Gr=/^\d+\.fls\.doubleclick\.net$/,Hr=/;gac=([^;?]+)/,Ir=/;gacgb=([^;?]+)/;
function Jr(a,b){if(Gr.test(E.location.host)){var c=E.location.href.match(b);return c&&c.length===2&&c[1].match(Er)?decodeURIComponent(c[1]):""}for(var d=[],e=h(Object.keys(a)),f=e.next();!f.done;f=e.next()){for(var g=f.value,k=[],m=a[g],n=0;n<m.length;n++)k.push(m[n].T);d.push(g+":"+k.join(","))}return d.length>0?d.join(";"):""}
function Kr(a,b,c){for(var d=uq(tq())?kq("_gac_gb",!0):{},e=[],f=!1,g=h(Object.keys(d)),k=g.next();!k.done;k=g.next()){var m=k.value,n=gr("_gac_gb_"+m,a,b,c);f=f||n.length!==0&&n.some(function(p){return p===1});e.push(m+":"+n.join(","))}return{Pl:f?e.join(";"):"",Ol:Jr(d,Ir)}}function Lr(a){var b=E.location.href.match(new RegExp(";"+a+"=([^;?]+)"));return b&&b.length===2&&b[1].match(Fr)?b[1]:void 0}
function Mr(a){var b=lb(11),c={},d,e,f;Gr.test(E.location.host)&&(d=Lr("gclgs"),e=Lr("gclst"),b&&(f=Lr("gcllp")));if(d&&e&&(!b||f))c.Ch=d,c.Eh=e,c.Dh=f;else{var g=Ab(),k=Cq((a||"_gcl")+"_gs"),m=k.map(function(q){return q.T}),n=k.map(function(q){return g-q.timestamp}),p=[];b&&(p=k.map(function(q){return q.Cd}));m.length>0&&n.length>0&&(!b||p.length>0)&&(c.Ch=m.join("."),c.Eh=n.join("."),b&&p.length>0&&(c.Dh=p.join(".")))}return c}
function Nr(a,b,c,d){d=d===void 0?!1:d;if(Gr.test(E.location.host)){var e=Lr(c);if(e)return[{T:e}]}else{if(b==="gclid"){var f=(a||"_gcl")+"_aw";return d?Lq(f):xq(f)}if(b==="wbraid")return xq((a||"_gcl")+"_gb");if(b==="braids")return zq({prefix:a})}return[]}function Or(a){return Nr(a,"gclid","gclaw").map(function(b){return b.T}).join(".")}
function Pr(a){var b=Nr(a,"gclid","gclaw",!0),c=b.map(function(f){return f.T}).join("."),d=b.map(function(f){return f.La||0}).join("."),e=b.map(function(f){for(var g=0,k=h(f.Oc||[]),m=k.next();!m.done;m=k.next()){var n=m.value;n===1&&(g|=1);n===2&&(g|=2)}return g.toString()}).join(".");return{T:c,Tj:d,Uj:e}}function Qr(a){return Nr(a,"wbraid","gclgb").map(function(b){return b.T}).join(".")}function Rr(a){return Nr(a,"braids","gclgb").map(function(b){return b.T}).join(".")}
function Sr(a,b){return Gr.test(E.location.host)?!(Lr("gclaw")||Lr("gac")):kr(a,b)}function Tr(a,b,c){var d;d=c?hr(a,b):gr((b&&b.prefix||"_gcl")+"_gb",a,b);return d.length===0||d.every(function(e){return e===0})?"":d.join(".")};function Ur(){var a=C.__uspapi;if(nb(a)){var b="";try{a("getUSPData",1,function(c,d){if(d&&c){var e=c.uspString;e&&RegExp("^[\\da-zA-Z-]{1,20}$").test(e)&&(b=e)}})}catch(c){}return b}};
var Yr=function(a){if(a.eventName===P.g.aa&&a.metadata.hit_type==="page_view")if(U(18)){a.metadata.redact_click_ids=W(a.m,P.g.fa)!=null&&W(a.m,P.g.fa)!==!1&&!X([P.g.O,P.g.N]);var b=Vr(a),c=W(a.m,P.g.na)!==!1;c||(a.j[P.g.Oi]="1");var d=Aq(b.prefix),e=a.metadata.is_server_side_destination;if(!a.metadata.consent_updated&&!a.metadata.user_id_updated){var f=W(a.m,P.g.Ya),g=W(a.m,P.g.oa)||{};Wr({vd:c,Dd:g,Hd:f,kc:b});if(!e&&!lr(d)){a.isAborted=!0;return}}if(e)a.isAborted=!0;else{a.j[P.g.yc]=P.g.Vb;if(a.metadata.consent_updated)a.j[P.g.yc]=
P.g.Ck,a.j[P.g.Tb]="1";else if(a.metadata.user_id_updated)a.j[P.g.yc]=P.g.Hk;else{var k=Pq();a.j[P.g.Ld]=k.gclid;a.j[P.g.Td]=k.dclid;a.j[P.g.Ji]=k.gclsrc;a.j[P.g.Ld]||a.j[P.g.Td]||(a.j[P.g.pf]=k.wbraid,a.j[P.g.qg]=k.gbraid);a.j[P.g.Aa]=E.referrer?rj(xj(E.referrer),"host"):"";a.j[P.g.qa]=rr();U(22)&&(a.j[P.g.eb]=Xr());if(U(21)&&rc&&rc.src){var m=rj(xj(rc.src),"host");m&&(a.j[P.g.fj]=m)}var n=mr(),p=n.Sj;a.j[P.g.Hi]=n.Je;a.j[P.g.Ii]=p;a.j[P.g.Jb]=An(!0);var q=Dr();Cr(q)&&(a.j[P.g.gd]="1");a.j[P.g.Li]=
zr();zp(!1)._up==="1"&&(a.j[P.g.aj]="1")}dl=!0;var r=X([P.g.O,P.g.N]);c&&r&&(Np(b),a.j[P.g.Hb]=Lp[Op(b.prefix)]);a.j[P.g.ob]=void 0;a.j[P.g.Wa]=void 0;var t=U(71);if(!a.j[P.g.Ld]&&!a.j[P.g.Td]&&Sr(d,t)){var v=t?yq(b):wq(d+"_gb");v.length>0&&(a.j[P.g.ob]=v.join("."))}else if(!a.j[P.g.pf]&&r){var u=wq(d+"_aw");u.length>0&&(a.j[P.g.Wa]=u.join("."))}a.m.isGtmEvent&&(a.m.j[P.g.ja]=Lm.j[P.g.ja]);no(a.m)?a.j[P.g.Pb]=!1:a.j[P.g.Pb]=!0;a.metadata.add_tag_timing=!0;var w=Ur();w!==void 0&&(a.j[P.g.pd]=w||"error");
var x=Zn();x&&(a.j[P.g.Zb]=x);var y=Yn();y&&(a.j[P.g.fc]=y);a.metadata.speculative=!1}}else a.isAborted=!0},Vr=function(a){var b={prefix:W(a.m,P.g.Za)||W(a.m,P.g.Ha),domain:W(a.m,P.g.Oa),Cb:W(a.m,P.g.Pa),flags:W(a.m,P.g.Xa)};a.m.isGtmEvent&&(b.path=W(a.m,P.g.sb));return b},Zr=function(a,b){var c,d,e,f,g,k,m,n;c=a.vd;d=a.Dd;e=a.Hd;f=a.ra;g=a.m;k=a.Ed;m=a.Rn;n=a.tk;Wr({vd:c,Dd:d,Hd:e,kc:b});c&&m!==!0&&(n!=null?n=String(n):n=void 0,tr(b,f,g,k,n))},Wr=function(a){var b,c,d,e;b=a.vd;c=a.Dd;d=a.Hd;e=a.kc;
b&&(Jp(c[P.g.Dc],!!c[P.g.W])&&(Uq($r,e),Wq(e),Vp(e)),U(80)?Sq(e):Qq(e),$q($r,e),ar(e));c[P.g.W]&&(Yq($r,c[P.g.W],c[P.g.Lb],!!c[P.g.vb],e.prefix),Zq(c[P.g.W],c[P.g.Lb],!!c[P.g.vb],e.prefix),Wp(Op(e.prefix),c[P.g.W],c[P.g.Lb],!!c[P.g.vb],e),Wp("FPAU",c[P.g.W],c[P.g.Lb],!!c[P.g.vb],e));d&&cr(as);er(as)},bs=function(a,b,c,d){var e,f,g;e=a.uk;f=a.callback;g=a.Zj;if(typeof f==="function")if(e===P.g.Wa&&g===void 0){var k=d(b.prefix,c);k.length===0?f(void 0):k.length===1?f(k[0]):f(k)}else e===P.g.Hb?(V(65),
Np(b,!1),f(Lp[Op(b.prefix)])):f(g)},$r=["aw","dc","gb"],as=["aw","dc","gb","ag"];function cs(a){var b=W(a.m,P.g.Kb),c=W(a.m,P.g.ac);b&&!c?(a.eventName!==P.g.aa&&a.eventName!==P.g.Pc&&V(131),a.isAborted=!0):!b&&c&&(V(132),a.isAborted=!0)}function ds(a){var b=X(P.g.O)?Ei.pscdl:"denied";b!=null&&(a.j[P.g.uf]=b)}function es(a){var b=An(!0);a.j[P.g.Jb]=b}function fs(a){yo()&&(a.j[P.g.Bc]=1)}
function Xr(){var a=E.title;if(a===void 0||a==="")return"";var b=function(d){try{return decodeURIComponent(d),!0}catch(e){return!1}};a=encodeURIComponent(a);for(var c=256;c>0&&!b(a.substring(0,c));)c--;return decodeURIComponent(a.substring(0,c))}function gs(a){hs(a,"ce",W(a.m,P.g.Pa))}function hs(a,b,c){a.j[P.g.rd]||(a.j[P.g.rd]={});a.j[P.g.rd][b]=c};var is=function(a){var b=a&&a[P.g.zg];return b&&!!b[P.g.Ki]},js=function(a){if(a)switch(a._tag_mode){case "CODE":return"c";case "AUTO":return"a";case "MANUAL":return"m";default:return"c"}};
var ks=function(a,b){var c=a&&!X([P.g.O,P.g.N]);return b&&c?"0":b},ms=function(a){var b=a.kc===void 0?{}:a.kc,c=Aq(b.prefix);lr(c)&&Al(function(){function d(x){var y=X([P.g.O,P.g.N]),A=m&&y,B=b.prefix||"_gcl",D;Ei.reported_gclid||(Ei.reported_gclid={});D=Ei.reported_gclid;var G=(A?B:"")+"."+(X(P.g.O)?1:0)+"."+(X(P.g.N)?1:0);if(!D[G]){D[G]=!0;var J={},I=function(T,O){if(O||typeof O==="number")J[T]=O.toString()},N="https://www.google.com";oo()&&(I("gcs",po()),x&&I("gcu",1));I("gcd",to(k));Xi.j&&I("tag_exp",
Xi.j);if(Yk()){I("rnd",zr());if((!p||q&&q!=="aw.ds")&&y){var L=wq(B+"_aw");I("gclaw",L.join("."))}I("url",String(C.location).split(/[?#]/)[0]);I("dclid",ks(f,r));y||(N="https://pagead2.googlesyndication.com")}wo()&&I("dma_cps",uo());I("dma",vo());I("npa",no(k)?0:1);yo()&&I("_ng",1);Kn(Sn())&&I("tcfd",xo());I("gdpr_consent",Yn()||"");I("gdpr",Zn()||"");zp(!1)._up==="1"&&I("gtm_up",1);I("gclid",ks(f,p));I("gclsrc",q);if(!(J.hasOwnProperty("gclid")||J.hasOwnProperty("dclid")||J.hasOwnProperty("gclaw"))&&
(I("gbraid",ks(f,t)),!J.hasOwnProperty("gbraid")&&Yk()&&y)){var S=wq(B+"_gb");S.length>0&&I("gclgb",S.join("."))}I("gtm",Bo({ra:k.eventMetadata.source_canonical_id,Uf:!g}));m&&X(P.g.O)&&(Np(b||{}),A&&I("auid",Lp[Op(b.prefix)]||""));ls||a.Qj&&I("did",a.Qj);a.Gh&&I("gdid",a.Gh);a.xh&&I("edid",a.xh);a.Ih!==void 0&&I("frm",a.Ih);U(17)&&I("apve",U(18)?1:0);var aa=Object.keys(J).map(function(T){return T+"="+encodeURIComponent(J[T])}),ba=N+"/pagead/landing?"+aa.join("&");Jc(ba)}}var e=!!a.rh,f=!!a.Ed,g=
a.targetId,k=a.m,m=a.Zf===void 0?!0:a.Zf,n=Pq(),p=n.gclid||"",q=n.gclsrc,r=n.dclid||"",t=n.wbraid||"",v=!e&&((!p||q&&q!=="aw.ds"?!1:!0)||t),u=Yk();if(v||u)if(u){var w=[P.g.O,P.g.N,P.g.sa];d();(function(){X(w)||zl(function(x){d(!0,x.consentEventId,x.consentPriorityId)},w)})()}else d()},[P.g.O,P.g.N,P.g.sa])},ls=!1;function ns(a,b,c,d){var e=zc(),f;if(e===1)a:{var g=Qi;g=g.toLowerCase();for(var k="https://"+g,m="http://"+g,n=1,p=E.getElementsByTagName("script"),q=0;q<p.length&&q<100;q++){var r=p[q].src;if(r){r=r.toLowerCase();if(r.indexOf(m)===0){f=3;break a}n===1&&r.indexOf(k)===0&&(n=2)}}f=n}else f=e;return(f===2||d||"http:"!==C.location.protocol?a:b)+c};
var ss=function(a,b){if(a)if(zo()){}else if(a=l(a)?Jl(nk(a)):Jl(nk(a.id))){var c=void 0,d=!1,e=W(b,P.g.dj);if(e&&Array.isArray(e)){c=[];for(var f=0;f<e.length;f++){var g=Jl(e[f]);g&&(c.push(g),(a.id===g.id||a.id===a.destinationId&&a.destinationId===g.destinationId)&&(d=!0))}}if(!c||d){var k=W(b,P.g.Rg),m;if(k){Array.isArray(k)?m=k:m=[k];var n=W(b,P.g.Pg),p=W(b,P.g.Qg),q=W(b,P.g.Sg),r=W(b,P.g.cj),t=n||p,v=1;a.prefix!==
"UA"||c||(v=5);for(var u=0;u<m.length;u++)if(u<v)if(c)os(c,m[u],r,b,{Qb:t,options:q});else if(a.prefix==="AW"&&a.ids[Ml[2]])U(115)?os([a],m[u],r||"US",b,{Qb:t,options:q}):ps(a.ids[Ml[1]],a.ids[Ml[2]],m[u],b,{Qb:t,options:q});else if(a.prefix==="UA")if(U(115))os([a],m[u],r||"US",b,{Qb:t});else{var w=a.destinationId,x=m[u],y={Qb:t};V(23);if(x){y=y||{};var A=qs(rs,y,w),B={};y.Qb!==void 0?B.receiver=y.Qb:B.replace=x;B.ga_wpid=w;B.destination=x;A(2,zb(),B)}}}}}},os=function(a,b,c,d,e){V(21);if(b&&c){e=
e||{};for(var f={countryNameCode:c,destinationNumber:b,retrievalTime:zb()},g=0;g<a.length;g++){var k=a[g];ts[k.id]||(k&&k.prefix==="AW"&&!f.adData&&k.ids.length>=2?(f.adData={ak:k.ids[Ml[1]],cl:k.ids[Ml[2]]},us(f.adData,d),ts[k.id]=!0):k&&k.prefix==="UA"&&!f.gaData&&(f.gaData={gaWpid:k.destinationId},ts[k.id]=!0))}(f.gaData||f.adData)&&qs(vs,e)(e.Qb,f,e.options)}},ps=function(a,b,c,d,e){V(22);if(c){e=e||{};var f=qs(ws,e,a),g={ak:a,cl:b};e.Qb===void 0&&(g.autoreplace=c);us(g,d);f(2,e.Qb,g,c,0,zb(),
e.options)}},us=function(a,b){U(5)&&(a.dma=vo(),wo()&&(a.dmaCps=uo()),no(b)?a.npa="0":a.npa="1")},qs=function(a,b,c){if(C[a.functionName])return b.Th&&F(b.Th),C[a.functionName];var d=xs();C[a.functionName]=d;if(a.additionalQueues)for(var e=0;e<a.additionalQueues.length;e++)C[a.additionalQueues[e]]=C[a.additionalQueues[e]]||xs();a.idKey&&C[a.idKey]===void 0&&(C[a.idKey]=c);yc(ns("https://","http://",a.scriptUrl),b.Th,b.Gm);return d},xs=function(){function a(){a.q=a.q||[];a.q.push(arguments)}return a},
ws={functionName:"_googWcmImpl",idKey:"_googWcmAk",scriptUrl:"www.gstatic.com/wcm/loader.js"},rs={functionName:"_gaPhoneImpl",idKey:"ga_wpid",scriptUrl:"www.gstatic.com/gaphone/loader.js"},ys={yk:"9",ml:"5"},vs={functionName:"_googCallTrackingImpl",additionalQueues:[rs.functionName,ws.functionName],scriptUrl:"www.gstatic.com/call-tracking/call-tracking_"+(ys.yk||ys.ml)+".js"},ts={};function zs(a){return{getDestinationId:function(){return a.target.destinationId},getEventName:function(){return a.eventName},setEventName:function(b){a.eventName=b},getHitData:function(b){return a.j[b]},setHitData:function(b,c){a.j[b]=c},setHitDataIfNotDefined:function(b,c){a.j[b]===void 0&&(a.j[b]=c)},copyToHitData:function(b,c){a.copyToHitData(b,c)},getMetadata:function(b){return a.metadata[b]},setMetadata:function(b,c){a.metadata[b]=c},isAborted:function(){return a.isAborted},abort:function(){a.isAborted=
!0},getFromEventContext:function(b){return W(a.m,b)},mc:function(){return a},getHitKeys:function(){return Object.keys(a.j)}}};var Bs=function(a){var b=As[a.target.destinationId];if(!a.isAborted&&b)for(var c=zs(a),d=0;d<b.length;++d){try{b[d](c)}catch(e){a.isAborted=!0}if(a.isAborted)break}},Cs=function(a,b){var c=As[a];c||(c=As[a]=[]);c.push(b)},As={};var Es=function(a){if(X(Ds)){a=a||{};Np(a,!1);var b=Mp[Op(Aq(a.prefix))];if(b&&!(Ab()-b.Ph*1E3>18E5)){var c=b.id,d=c.split(".");if(d.length===2&&!(Ab()-(Number(d[1])||0)*1E3>864E5))return c}}},Ds=P.g.O;var Fs=function(){var a=pc&&pc.userAgent||"";if(a.indexOf("Safari")<0||/Chrome|Coast|Opera|Edg|Silk|Android/.test(a))return!1;var b=(/Version\/([\d\.]+)/.exec(a)||[])[1]||"";if(b==="")return!1;for(var c=["14","1","1"],d=b.split("."),e=0;e<d.length;e++){if(c[e]===void 0)return!0;if(d[e]!==c[e])return Number(d[e])>Number(c[e])}return d.length>=c.length};var Gs,Hs=!1;function Is(){Hs=!0;Gs=Gs||{}}function Js(a){Hs||Is();return Gs[a]}function Ks(){var a=C.screen;return{width:a?a.width:0,height:a?a.height:0}}
function Ls(a){if(E.hidden)return!0;var b=a.getBoundingClientRect();if(b.top===b.bottom||b.left===b.right||!C.getComputedStyle)return!0;var c=C.getComputedStyle(a,null);if(c.visibility==="hidden")return!0;for(var d=a,e=c;d;){if(e.display==="none")return!0;var f=e.opacity,g=e.filter;if(g){var k=g.indexOf("opacity(");k>=0&&(g=g.substring(k+8,g.indexOf(")",k)),g.charAt(g.length-1)==="%"&&(g=g.substring(0,g.length-1)),f=String(Math.min(Number(g),Number(f))))}if(f!==void 0&&Number(f)<=0)return!0;(d=d.parentElement)&&
(e=C.getComputedStyle(d,null))}return!1}
var Vs=function(a){return a.tagName+":"+a.isVisible+":"+a.X.length+":"+Us.test(a.X)},it=function(a){a=a||{zd:!0,Bd:!0,hg:void 0};a.zb=a.zb||{email:!0,phone:!1,address:!1};var b=Ws(a),c=Xs[b];if(c&&Ab()-c.timestamp<200)return c.result;var d=Ys(),e=d.status,f=[],g,k,m=[];if(!U(27)){if(a.zb&&a.zb.email){var n=Zs(d.elements);f=$s(n,a&&a.Ee);g=at(f);n.length>10&&(e="3")}!a.hg&&g&&(f=[g]);for(var p=0;p<f.length;p++)m.push(bt(f[p],!!a.zd,!!a.Bd));m=m.slice(0,10)}else if(a.zb){}g&&(k=bt(g,!!a.zd,!!a.Bd));var D={elements:m,
Xh:k,status:e};Xs[b]={timestamp:Ab(),result:D};return D},ht=function(a,b,c){var d=a.element,e={X:a.X,type:a.ma,tagName:d.tagName};b&&(e.querySelector=jt(d));c&&(e.isVisible=!Ls(d));return e},bt=function(a,b,c){return ht({element:a.element,X:a.X,ma:gt.qc},b,c)},Ws=function(a){var b=!(a==null||!a.zd)+"."+!(a==null||!a.Bd);a&&a.Ee&&a.Ee.length&&(b+="."+a.Ee.join("."));a&&a.zb&&(b+="."+a.zb.email+"."+a.zb.phone+"."+a.zb.address);return b},at=function(a){if(a.length!==0){var b;b=kt(a,function(c){return!lt.test(c.X)});
b=kt(b,function(c){return c.element.tagName.toUpperCase()==="INPUT"});b=kt(b,function(c){return!Ls(c.element)});return b[0]}},$s=function(a,b){if(!b||b.length===0)return a;for(var c=[],d=0;d<a.length;d++){for(var e=!0,f=0;f<b.length;f++){var g=b[f];if(g&&Ph(a[d].element,g)){e=!1;break}}e&&c.push(a[d])}return c},kt=function(a,b){if(a.length<=1)return a;var c=a.filter(b);return c.length===0?a:c},jt=function(a){var b;if(a===E.body)b="body";else{var c;if(a.id)c="#"+a.id;else{var d;if(a.parentElement){var e;
a:{var f=a.parentElement;if(f){for(var g=0;g<f.childElementCount;g++)if(f.children[g]===a){e=g+1;break a}e=-1}else e=1}d=jt(a.parentElement)+">:nth-child("+e.toString()+")"}else d="";c=d}b=c}return b},Zs=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=d.textContent;d.tagName.toUpperCase()==="INPUT"&&d.value&&(e=d.value);if(e){var f=e.match(mt);if(f){var g=f[0],k;if(C.location){var m=tj(C.location,"host",!0);k=g.toLowerCase().indexOf(m)>=0}else k=!1;k||b.push({element:d,X:g})}}}return b},
Ys=function(){var a=[],b=E.body;if(!b)return{elements:a,status:"4"};for(var c=b.querySelectorAll("*"),d=0;d<c.length&&d<1E4;d++){var e=c[d];if(!(nt.indexOf(e.tagName.toUpperCase())>=0)&&e.children instanceof HTMLCollection){for(var f=!1,g=0;g<e.childElementCount&&g<1E4;g++)if(!(ot.indexOf(e.children[g].tagName.toUpperCase())>=0)){f=!0;break}(!f||U(27)&&pt.indexOf(e.tagName)!==-1)&&a.push(e)}}return{elements:a,status:c.length>1E4?"2":"1"}},qt=!1;var mt=/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/i,Us=/@(gmail|googlemail)\./i,lt=/support|noreply/i,nt="SCRIPT STYLE IMG SVG PATH BR NOSCRIPT TEXTAREA".split(" "),ot=["BR"],gt={qc:"1",te:"2",ne:"3",pe:"4",kg:"5",gh:"6",Tf:"7"},Xs={},pt=["INPUT","SELECT"];var Kf;var Mt=Number('')||5,Nt=Number('')||50,Ot=rb();
var Qt=function(a,b){a&&(Pt("sid",a.targetId,b),Pt("cc",a.clientCount,b),Pt("tl",a.totalLifeMs,b),Pt("hc",a.heartbeatCount,b),Pt("cl",a.clientLifeMs,b))},Pt=function(a,b,c){b!=null&&c.push(a+"="+b)},Rt=function(){var a=E.referrer;if(a){var b;return rj(xj(a),"host")===((b=C.location)==null?void 0:b.host)?1:2}return 0},St=function(a){this.P=a;this.H=0};St.prototype.C=function(a,b,c,d){var e=Rt(),f,g=[];f=C===C.top&&e!==0&&b?(b==null?void 0:b.clientCount)>
1?e===2?1:2:e===2?0:3:4;a&&Pt("si",a.Qe,g);Pt("m",0,g);Pt("iss",f,g);Pt("if",c,g);Qt(b,g);d&&Pt("fm",encodeURIComponent(d.substring(0,Nt)),g);this.K(g);};St.prototype.j=function(a,b,c,d,e){var f=[];Pt("m",1,f);Pt("s",a,f);Pt("po",Rt(),f);b&&(Pt("st",b.state,f),Pt("si",b.Qe,f),Pt("sm",b.df,f));Qt(c,f);Pt("c",d,f);e&&Pt("fm",encodeURIComponent(e.substring(0,Nt)),f);this.K(f);};
St.prototype.K=function(a){a=a===void 0?[]:a;!Nj||this.H>=Mt||(Pt("pid",Ot,a),Pt("bc",++this.H,a),a.unshift("ctid="+Of.ctid+"&t=s"),this.P("https://www.googletagmanager.com/a?"+a.join("&")))};var Tt={pl:Number('')||500,Vk:Number('')||5E3,vj:Number('20')||10,Bk:Number('')||5E3};function Ut(a){return a.performance&&a.performance.now()||Date.now()}
var Vt=function(a,b){var c;var d=function(e,f,g){g=g===void 0?{}:g;this.ql=e;this.j=f;this.H=g;this.Z=this.Ra=this.heartbeatCount=this.ol=0;this.wj=!1;this.C={};this.id=String(Math.floor(Number.MAX_SAFE_INTEGER*Math.random()));this.state=0;this.Qe=Ut(this.j);this.df=Ut(this.j);this.P=10};d.prototype.init=function(){this.K(1);this.Ec()};d.prototype.getState=function(){return{state:this.state,Qe:Math.round(Ut(this.j)-this.Qe),df:Math.round(Ut(this.j)-
this.df)}};d.prototype.K=function(e){this.state!==e&&(this.state=e,this.df=Ut(this.j))};d.prototype.zj=function(){return String(this.ol++)};d.prototype.Ec=function(){var e=this;this.heartbeatCount++;this.oe({type:0,clientId:this.id,requestId:this.zj(),maxDelay:this.xj()},function(f){if(f.type===0){var g;if(((g=f.failure)==null?void 0:g.failureType)!=null)if(f.stats&&(e.stats=f.stats),e.Z++,f.isDead||e.Z>Tt.vj){var k=f.isDead&&f.failure.failureType;e.P=k||10;e.K(4);e.nl();var m,n;(n=(m=e.H).Em)==null||
n.call(m,{failureType:k,data:f.failure.data})}else e.K(3),e.Bj();else{if(e.heartbeatCount>f.stats.heartbeatCount+Tt.vj){e.heartbeatCount=f.stats.heartbeatCount;var p,q;(q=(p=e.H).onFailure)==null||q.call(p,{failureType:13})}e.stats=f.stats;var r=e.state;e.K(2);if(r!==2)if(e.wj){var t,v;(v=(t=e.H).Un)==null||v.call(t)}else{e.wj=!0;var u,w;(w=(u=e.H).Fm)==null||w.call(u)}e.Z=0;e.rl();e.Bj()}}})};d.prototype.xj=function(){return this.state===2?Tt.Vk:Tt.pl};d.prototype.Bj=function(){var e=this;this.j.setTimeout(function(){e.Ec()},
Math.max(0,this.xj()-(Ut(this.j)-this.Ra)))};d.prototype.vl=function(e,f,g){var k=this;this.oe({type:1,clientId:this.id,requestId:this.zj(),command:e},function(m){if(m.type===1)if(m.result)f(m.result);else{var n,p,q,r={failureType:(q=(n=m.failure)==null?void 0:n.failureType)!=null?q:12,data:(p=m.failure)==null?void 0:p.data},t,v;(v=(t=k.H).onFailure)==null||v.call(t,r);g(r)}})};d.prototype.oe=function(e,f){var g=this;if(this.state===4)e.failure={failureType:this.P},f(e);else{var k=this.state!==2&&
e.type!==0,m=e.requestId,n,p=this.j.setTimeout(function(){var r=g.C[m];r&&g.uj(r,7)},(n=e.maxDelay)!=null?n:Tt.Bk),q={request:e,lk:f,hk:k,Am:p};this.C[m]=q;k||this.sendRequest(q)}};d.prototype.sendRequest=function(e){this.Ra=Ut(this.j);e.hk=!1;this.ql(e.request)};d.prototype.rl=function(){for(var e=h(Object.keys(this.C)),f=e.next();!f.done;f=e.next()){var g=this.C[f.value];g.hk&&this.sendRequest(g)}};d.prototype.nl=function(){for(var e=h(Object.keys(this.C)),f=e.next();!f.done;f=e.next())this.uj(this.C[f.value],
this.P)};d.prototype.uj=function(e,f){this.Sf(e);var g=e.request;g.failure={failureType:f};e.lk(g)};d.prototype.Sf=function(e){delete this.C[e.request.requestId];this.j.clearTimeout(e.Am)};d.prototype.am=function(e){this.Ra=Ut(this.j);var f=this.C[e.requestId];if(f)this.Sf(f),f.lk(e);else{var g,k;(k=(g=this.H).onFailure)==null||k.call(g,{failureType:14})}};c=new d(a,C,b);return c};var Wt;
var Xt=function(){Wt||(Wt=new St(function(a){return void Bc(a)}));return Wt},Yt=function(a){var b="&1p=1";if(!U(95))return b;var c=a.substring(0,a.indexOf("/_/service_worker"));return b+=c?"&path="+encodeURIComponent(c):""},$t=function(a){a=Zt(a);var b;try{b=new URL(a)}catch(c){return null}return b.protocol!=="https:"?null:b},au=function(a){var b=Ho(Co.Fj);return b&&b[a]},Zt=function(a){var b=Xi.P;if(!a)return"https://www.googletagmanager.com/static/service_worker/"+b+"/";if(!U(95))return a;a.charAt(a.length-
1)!=="/"&&(a+="/");return a+b},bu=function(a,b,c){var d=this;this.C=Xt();this.P=this.K=!1;this.Z=null;this.initTime=c;this.j=15;this.H=this.Cl(a);C.setTimeout(function(){d.initialize()},1E3);F(function(){d.lm(a,b)})};ca=bu.prototype;ca.delegate=function(a,b,c){this.getState()!==2?(this.C.j(this.j,{state:this.getState(),Qe:this.initTime,df:Math.round(Ab())-this.initTime},void 0,a.commandType),c({failureType:this.j})):this.H.vl(a,b,c)};ca.getState=function(){return this.H.getState().state};ca.lm=function(a,
b){var c=C.location.origin,d=this,e=Ac();try{var f=e.contentDocument.createElement("iframe"),g=a.pathname,k=g[g.length-1]==="/"?a.toString():a.toString()+"/",m=b?Yt(g):"",n;U(97)&&(n={sandbox:"allow-same-origin allow-scripts"});Ac(k+"sw_iframe.html?origin="+encodeURIComponent(c)+m,void 0,n,void 0,f);var p=function(){e.contentDocument.body.appendChild(f);f.addEventListener("load",function(){d.Z=f.contentWindow;e.contentWindow.addEventListener("message",function(q){q.origin===a.origin&&d.H.am(q.data)});
d.initialize()})};e.contentDocument.readyState==="complete"?p():e.contentWindow.addEventListener("load",function(){p()})}catch(q){e.parentElement.removeChild(e),this.j=11,this.C.C(void 0,void 0,this.j,q.toString())}};ca.Cl=function(a){var b=this,c=Vt(function(d){var e;(e=b.Z)==null||e.postMessage(d,a.origin)},{Fm:function(){b.K=!0;b.C.C(c.getState(),c.stats)},Em:function(d){b.K?(b.j=(d==null?void 0:d.failureType)||10,b.C.j(b.j,c.getState(),c.stats,void 0,d==null?void 0:d.data)):(b.j=(d==null?void 0:
d.failureType)||4,b.C.C(c.getState(),c.stats,b.j,d==null?void 0:d.data))},onFailure:function(d){b.j=d.failureType;b.C.j(b.j,c.getState(),c.stats,d.command,d.data)}});return c};ca.initialize=function(){this.P||this.H.init();this.P=!0};function cu(){var a=Nf(Kf.j,"",function(){return{}});try{return a("internal_sw_allowed"),!0}catch(b){return!1}}
function du(a,b){var c=C.location.origin;if(!c||!cu())return;Zi()&&(a=""+c+Yi()+"/_",U(95)&&(a+="/service_worker"));var d=$t(a);if(d===null||au(d.origin))return;if(!qc()){Xt().C(void 0,void 0,6);return}var e=new bu(d,!!a,b||Math.round(Ab())),f;a:{var g=Co.Fj,k={},m=Fo(g);if(!m){m=Fo(g,!0);if(!m){f=void 0;break a}m.set(k)}f=m.get()}f[d.origin]=e;}
var eu=function(a,b,c,d){var e;if((e=au(a))==null||!e.delegate){var f=qc()?16:6;Xt().j(f,void 0,void 0,b.commandType);d({failureType:f});return}au(a).delegate(b,c,d);};
function fu(a,b,c,d){var e=$t();if(e===null){d(qc()?16:6);return}var f,g=(f=au(e.origin))==null?void 0:f.initTime,k=Math.round(Ab());eu(e.origin,{commandType:0,params:{url:a,method:0,templates:b,body:"",processResponse:!1,sinceInit:g?k-g:void 0}},function(m){c(m)},function(m){d(m.failureType)});}
function gu(a,b,c,d){var e=$t(a);if(e===null){d("_is_sw=f"+(qc()?16:6)+"te");return}var f=b?1:0,g=Math.round(Ab()),k,m=(k=au(e.origin))==null?void 0:k.initTime,n=m?g-m:void 0;eu(e.origin,{commandType:0,params:{url:a,method:f,templates:c,body:b||"",processResponse:!0,sinceInit:n,attributionReporting:!0}},function(){},function(p){var q="_is_sw=f"+p.failureType,r,t=(r=au(e.origin))==null?void 0:r.getState();t!==void 0&&(q+="s"+t);d(n?q+("t"+n):q+"te")});
}var hu=void 0;function iu(a){var b=[];return b};var ju=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};nn();qn()||kn("iPod");kn("iPad");!kn("Android")||on()||nn()||mn()||kn("Silk");on();!kn("Safari")||on()||(ln()?0:kn("Coast"))||mn()||(ln()?0:kn("Edge"))||(ln()?jn("Microsoft Edge"):kn("Edg/"))||(ln()?jn("Opera"):kn("OPR"))||nn()||kn("Silk")||kn("Android")||rn();var ku={},lu=null,mu=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e>255&&(b[c++]=e&255,e>>=8);b[c++]=e}var f=4;f===void 0&&(f=0);if(!lu){lu={};for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),k=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var n=g.concat(k[m].split(""));ku[m]=n;for(var p=0;p<n.length;p++){var q=n[p];lu[q]===void 0&&(lu[q]=p)}}}for(var r=ku[f],t=Array(Math.floor(b.length/3)),v=r[64]||"",u=0,w=0;u<b.length-2;u+=3){var x=b[u],
y=b[u+1],A=b[u+2],B=r[x>>2],D=r[(x&3)<<4|y>>4],G=r[(y&15)<<2|A>>6],J=r[A&63];t[w++]=""+B+D+G+J}var I=0,N=v;switch(b.length-u){case 2:I=b[u+1],N=r[(I&15)<<2]||v;case 1:var L=b[u];t[w]=""+r[L>>2]+r[(L&3)<<4|I>>4]+N+v}return t.join("")};var nu="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");function ou(a){var b;return(b=a.google_tag_data)!=null?b:a.google_tag_data={}}function pu(){var a=C.google_tag_data,b;if(a!=null&&a.uach){var c=a.uach,d=Object.assign({},c);c.fullVersionList&&(d.fullVersionList=c.fullVersionList.slice(0));b=d}else b=null;return b}function qu(){var a,b;return(b=(a=C.google_tag_data)==null?void 0:a.uach_promise)!=null?b:null}
function ru(a){var b,c;return typeof((b=a.navigator)==null?void 0:(c=b.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"}function su(){var a=C;if(!ru(a))return null;var b=ou(a);if(b.uach_promise)return b.uach_promise;var c=a.navigator.userAgentData.getHighEntropyValues(nu).then(function(d){b.uach!=null||(b.uach=d);return d});return b.uach_promise=c};
var tu=function(a,b){a&&(b.j[P.g.Kf]=a.architecture,b.j[P.g.Lf]=a.bitness,a.fullVersionList&&(b.j[P.g.Mf]=a.fullVersionList.map(function(c){return encodeURIComponent(c.brand||"")+";"+encodeURIComponent(c.version||"")}).join("|")),b.j[P.g.Nf]=a.mobile?"1":"0",b.j[P.g.Of]=a.model,b.j[P.g.Pf]=a.platform,b.j[P.g.Qf]=a.platformVersion,b.j[P.g.Rf]=a.wow64?"1":"0")},vu=function(a){var b=uu.pn,c=function(g,k){try{a(g,k)}catch(m){}},d=pu();if(d)c(d);else{var e=qu();if(e){b=Math.min(Math.max(isFinite(b)?b:
0,0),1E3);var f=C.setTimeout(function(){c.Re||(c.Re=!0,V(106),c(null,Error("Timeout")))},b);e.then(function(g){c.Re||(c.Re=!0,V(104),C.clearTimeout(f),c(g))}).catch(function(g){c.Re||(c.Re=!0,V(105),C.clearTimeout(f),c(null,g))})}else c(null)}},xu=function(){if(ru(C)&&(wu=Ab(),!qu())){var a=su();a&&(a.then(function(){V(95);}),a.catch(function(){V(96)}))}},wu;function yu(a){var b;b=b===void 0?document:b;var c;return!((c=b.featurePolicy)==null||!c.allowedFeatures().includes(a))};function zu(){return yu("join-ad-interest-group")&&nb(pc.joinAdInterestGroup)}
function Au(a,b){var c=kb[3]===void 0?1:kb[3],d='iframe[data-tagging-id="'+b+'"]',e=[];try{if(c===1){var f=E.querySelector(d);f&&(e=[f])}else e=Array.from(E.querySelectorAll(d))}catch(q){}var g;a:{try{g=E.querySelectorAll('iframe[allow="join-ad-interest-group"][data-tagging-id*="-"]');break a}catch(q){}g=void 0}var k=g,m=((k==null?void 0:k.length)||0)>=(kb[2]===void 0?50:kb[2]),n;if(n=e.length>=1){var p=Number(e[e.length-1].dataset.loadTime);p!==void 0&&Ab()-p<(kb[1]===void 0?6E4:kb[1])?(gb("TAGGING",
9),n=!0):n=!1}if(!n){if(c===1)if(e.length>=1)Bu(e[0]);else{if(m){gb("TAGGING",10);return}}else e.length>=c?Bu(e[0]):m&&Bu(k[0]);Ac(a,void 0,{allow:"join-ad-interest-group"},{taggingId:b,loadTime:Ab()})}}function Bu(a){try{a.parentNode.removeChild(a)}catch(b){}}function Cu(){return"https://td.doubleclick.net"};function Du(a){var b=a.location.href;if(a===a.top)return{url:b,tm:!0};var c=!1,d=a.document;d&&d.referrer&&(b=d.referrer,a.parent===a.top&&(c=!0));var e=a.location.ancestorOrigins;if(e){var f=e[e.length-1];f&&b.indexOf(f)===-1&&(c=!1,b=f)}return{url:b,tm:c}};
var Eu=function(){return[P.g.O,P.g.N]},Gu=function(a){U(18)&&a.eventName===P.g.aa&&Fu(a,"page_view")&&!a.metadata.consent_updated&&!a.m.isGtmEvent?ss(a.target,a.m):Fu(a,"call_conversion")&&(ss(a.target,a.m),a.isAborted=!0)},Iu=function(a){var b;if(a.eventName!=="gtag.config"&&a.metadata.send_user_data_hit)switch(a.metadata.hit_type){case "user_data_web":b=97;Hu(a);break;case "user_data_lead":b=98;Hu(a);break;case "conversion":b=99}!a.metadata.speculative&&b&&V(b);a.metadata.speculative===!0&&(a.isAborted=
!0)},Ju=function(a){if(!a.metadata.consent_updated&&U(25)&&Fu(a,["conversion"])){var b=Dr();Cr(b)&&(a.j[P.g.gd]="1",a.metadata.add_tag_timing=!0)}},Ku=function(a){Fu(a,["conversion"])&&a.m.eventMetadata.is_external_event&&(a.j[P.g.rj]=!0)},Lu=function(a){var b=X(Eu());switch(a.metadata.hit_type){case "user_data_lead":case "user_data_web":a.isAborted=!b||!!a.metadata.consent_updated;break;case "remarketing":a.isAborted=!b;break;case "conversion":a.metadata.consent_updated&&(a.j[P.g.Tb]=!0)}},Mu=function(a){if(Fu(a,
["conversion"])){var b=Es(a.metadata.cookie_options);if(b&&!a.j[P.g.xa]){var c=dp(a.j[P.g.rb]);a.j[P.g.xa]=c}b&&(a.j[P.g.wb]=b,a.metadata.send_ccm_parallel_ping=!0)}},Nu=function(a){Zi()||Mi||Fj(a.m)||U(94)&&du(void 0,Math.round(Ab()))},Ou=function(a){if(Fu(a,["conversion","remarketing","user_data_lead","user_data_web"])&&a.metadata.conversion_linker_enabled&&X(P.g.O)){var b=!U(3);if(a.metadata.hit_type!=="remarketing"||b){var c=a.metadata.cookie_options;Np(c,a.metadata.hit_type==="conversion"&&a.eventName!==
P.g.Va);X(P.g.N)&&(a.j[P.g.Hb]=Lp[Op(c.prefix)])}}},Qu=function(a){Fu(a,["conversion","user_data_lead","user_data_web"])&&Pu(a)},Ru=function(a){Fu(a,["conversion"])&&(a.metadata.redact_click_ids=!!a.metadata.redact_ads_data&&!X(Eu()))},Su=function(a){Fu(a,["conversion"])&&zp(!1)._up==="1"&&(a.j[P.g.ee]=!0)},Tu=function(a){if(Fu(a,["conversion","remarketing"])){var b=Ur();b!==void 0&&(a.j[P.g.pd]=b||"error");var c=Zn();c&&(a.j[P.g.Zb]=c);var d=Yn();d&&(a.j[P.g.fc]=d)}},Uu=function(a){if(Fu(a,["conversion",
"remarketing"])&&C.__gsaExp&&C.__gsaExp.id){var b=C.__gsaExp.id;if(nb(b))try{var c=Number(b());isNaN(c)||(a.j[P.g.Kg]=c)}catch(d){}}},Vu=function(a){Bs(a);},Wu=function(a){Fu(a,"conversion")&&(a.copyToHitData(P.g.hd),a.copyToHitData(P.g.Sd),a.copyToHitData(P.g.nd),a.copyToHitData(P.g.Yd),a.copyToHitData(P.g.xc),a.copyToHitData(P.g.dd))},Xu=function(a){if(Fu(a,["conversion","remarketing","user_data_lead","user_data_web"])){var b=
a.m;if(Fu(a,["conversion","remarketing"])){var c=W(b,P.g.Mb);if(c===!0||c===!1)a.j[P.g.Mb]=c}no(b)?a.j[P.g.Pb]=!1:(a.j[P.g.Pb]=!0,Fu(a,"remarketing")&&(a.isAborted=!0))}},Yu=function(a){if(Fu(a,["conversion","remarketing"])){var b=a.metadata.hit_type==="conversion";b&&a.eventName!==P.g.Ga||(a.copyToHitData(P.g.ba),b&&(a.copyToHitData(P.g.Rd),a.copyToHitData(P.g.Pd),a.copyToHitData(P.g.Qd),a.copyToHitData(P.g.Od),a.j[P.g.rg]=a.eventName,U(82)&&(a.copyToHitData(P.g.Df),a.copyToHitData(P.g.Bf),a.copyToHitData(P.g.Cf))))}},
Zu=function(a){var b=U(7),c=a.m,d,e,f;if(!b){var g=dm(c,P.g.da);d=Kb(Sa(g)?g:{})}var k=dm(c,P.g.da,1),m=dm(c,P.g.da,2);e=Kb(Sa(k)?k:{},".");f=Kb(Sa(m)?m:{},".");b||(a.j[P.g.fe]=d);a.j[P.g.cb]=e;a.j[P.g.ab]=f},$u=function(a){if(a!=null){var b=String(a).substring(0,512),c=b.indexOf("#");return c===-1?b:b.substring(0,c)}return""},av=function(a){if(Fu(a,"conversion")&&X(P.g.O)&&(a.j[P.g.ob]||a.j[P.g.Ac])){var b=a.j[P.g.rb],c=Ta(a.metadata.cookie_options,null),d=Aq(c.prefix);c.prefix=d==="_gcl"?"":d;if(a.j[P.g.ob]){var e=
Tr(b,c,U(71)&&!a.metadata.gbraid_cookie_marked);a.metadata.gbraid_cookie_marked=!0;e&&(a.j[P.g.ah]=e)}if(a.j[P.g.Ac]){var f=Kr(b,c).Pl;f&&(a.j[P.g.Fg]=f)}}},bv=function(a){if(a.eventName===P.g.Va&&!a.m.isGtmEvent){if(!a.metadata.consent_updated&&Fu(a,"conversion")){var b=W(a.m,P.g.Ib);if(typeof b!=="function")return;var c=String(W(a.m,P.g.ub)),d=a.j[c],e=W(a.m,c);c===P.g.Wa||c===P.g.Hb?bs({uk:c,callback:b,Zj:e},a.metadata.cookie_options,a.metadata.redact_ads_data,yr):b(d||e)}a.isAborted=!0}},cv=function(a){if(!Ht(a,
"hasPreAutoPiiCcdRule",!1)&&Fu(a,"conversion")&&X(P.g.O)){var b=(W(a.m,P.g.Xd)||{})[String(a.j[P.g.rb])],c=a.j[P.g.Xc],d;if(!(d=is(b)))if(ol())if(qt)d=!0;else{var e=Js("AW-"+c);d=!!e&&!!e.preAutoPii}else d=!1;if(d){var f=Ab(),g=it({zd:!0,Bd:!0,hg:!0});if(g.elements.length!==0){for(var k=[],m=0;m<g.elements.length;++m){var n=g.elements[m];k.push(n.querySelector+"*"+Vs(n)+"*"+n.type)}a.j[P.g.Xg]=k.join("~");var p=g.Xh;p&&(a.j[P.g.Yg]=p.querySelector,a.j[P.g.Wg]=Vs(p));a.j[P.g.Vg]=String(Ab()-f);a.j[P.g.Zg]=
g.status}}}},dv=function(a){if(a.eventName===P.g.aa&&!a.metadata.consent_updated&&(a.metadata.is_config_command=!0,Fu(a,"conversion")&&(a.metadata.speculative=!0),!Fu(a,"remarketing")||W(a.m,P.g.Wb)!==!1&&W(a.m,P.g.Ia)!==!1||(a.metadata.speculative=!0),Fu(a,"landing_page"))){var b=W(a.m,P.g.oa)||{},c=W(a.m,P.g.Ya),d=a.metadata.conversion_linker_enabled,e=a.metadata.redact_ads_data,f={vd:d,Dd:b,Hd:c,ra:a.metadata.source_canonical_id,m:a.m,Ed:e,tk:W(a.m,P.g.ya)},g=a.metadata.cookie_options;Zr(f,g);
ss(a.target,a.m);ms({rh:!1,Ed:e,targetId:a.target.id,m:a.m,kc:d?g:void 0,Zf:d,Qj:a.j[P.g.fe],Gh:a.j[P.g.cb],xh:a.j[P.g.ab],Ih:a.j[P.g.Jb]});a.isAborted=!0}},ev=function(a){Fu(a,["conversion","remarketing"])&&(a.m.isGtmEvent?a.metadata.hit_type!=="conversion"&&a.eventName&&(a.j[P.g.yc]=a.eventName):a.j[P.g.yc]=a.eventName,z(a.m.j,function(b,c){Ah[b.split(".")[0]]||(a.j[b]=c)}))},fv=function(a){var b=!a.metadata.send_user_data_hit&&Fu(a,["conversion","user_data_web"]),c=!Ht(a,"ccd_add_1p_data",!1)&&
Fu(a,"user_data_lead");if((b||c)&&X(P.g.O)){var d=a.metadata.hit_type==="conversion",e=a.m,f=void 0,g=W(e,P.g.Ba);if(d){var k=(W(e,P.g.Xd)||{})[String(a.j[P.g.rb])];if(W(e,P.g.Nd)===!0||k){var m;var n;k?n=mj(k,g):(n=C.enhanced_conversion_data)&&V(154);var p=(k||{}).enhanced_conversions_mode,q;if(n){if(p==="manual")switch(n._tag_mode){case "CODE":q="c";break;case "AUTO":q="a";break;case "MANUAL":q="m";break;default:q="c"}else q=p==="automatic"?is(k)?"a":"m":"c";m={X:n,sk:q}}else m={X:n,sk:void 0};
var r=m,t=r.sk;f=r.X;a.j[P.g.od]=t}}else if(a.m.isGtmEvent){Hu(a);a.metadata.user_data=g;a.j[P.g.od]=js(g);return}a.metadata.user_data=f}},gv=function(a){if(Ht(a,"ccd_add_1p_data",!1)&&X(Eu())){var b=a.m.C[P.g.ke];if(nj(b)){var c=W(a.m,P.g.Ba);c===null?a.metadata.user_data_from_code=null:(b.enable_code&&Sa(c)&&(a.metadata.user_data_from_code=c),Sa(b.selectors)&&(a.metadata.user_data_from_manual=lj(b.selectors)))}}},hv=function(a){a.metadata.conversion_linker_enabled=W(a.m,P.g.na)!==!1;a.metadata.cookie_options=
Vr(a);a.metadata.redact_ads_data=W(a.m,P.g.fa)!=null&&W(a.m,P.g.fa)!==!1;a.metadata.allow_ad_personalization=no(a.m)},iv=function(a){if(Fu(a,["conversion","remarketing"])&&U(28)){var b=function(c){return U(30)?(gb("fdr",c),!0):!1};if(X(P.g.O)||b(0))if(X(P.g.N)||b(1))if(W(a.m,P.g.za)!==!1||b(2))if(no(a.m)||b(3))if(W(a.m,P.g.Wb)!==!1||b(4))if((U(31)?a.eventName===P.g.aa?W(a.m,P.g.Ia):void 0:W(a.m,P.g.Ia))!==!1||b(5))if(zu()||b(6))U(30)&&ib()?(a.j[P.g.Ti]=hb("fdr"),delete fb.fdr):(a.j[P.g.Ag]="1",a.metadata.send_fledge_experiment=
!0)}},jv=function(a){Fu(a,["conversion"])&&X(P.g.N)&&(C._gtmpcm===!0||Fs()?a.j[P.g.Xb]="2":U(32)&&yu("attribution-reporting")&&(a.j[P.g.Xb]="1"))},kv=function(a){if(!ru(C))V(87);else if(wu!==void 0){V(85);var b=pu();b?tu(b,a):V(86)}},lv=function(a){var b=["conversion","remarketing"];b.push("page_view","user_data_lead","user_data_web");if(Fu(a,b)&&X(P.g.N)){a.copyToHitData(P.g.ya);var c=Ho(Co.jh);if(c===void 0)Go(Co.kh,!0);else{var d=Ho(Co.we);a.j[P.g.Hf]=d+"."+c}}},mv=function(a){Fu(a,["conversion",
"remarketing"])&&(a.copyToHitData(P.g.xa),a.copyToHitData(P.g.ka),a.copyToHitData(P.g.wa))},nv=function(a){if(!a.metadata.consent_updated&&Fu(a,["conversion","remarketing"])){var b=An(!1);a.j[P.g.Jb]=b;var c=W(a.m,P.g.qa);c||(c=b===1?C.top.location.href:C.location.href);a.j[P.g.qa]=$u(c);a.copyToHitData(P.g.Aa,E.referrer);a.j[P.g.eb]=Xr();a.copyToHitData(P.g.Qa);var d=Ks();a.j[P.g.Nb]=d.width+"x"+d.height;var e=Cn(),f=Du(e);f.url&&c!==f.url&&(a.j[P.g.If]=$u(f.url))}},ov=function(a){Fu(a,["conversion",
"remarketing"])},qv=function(a){if(Fu(a,["conversion","remarketing","user_data_lead","user_data_web"])){var b=a.j[P.g.rb],c=W(a.m,P.g.tf)===!0;c&&(a.metadata.remarketing_only=!0);switch(a.metadata.hit_type){case "conversion":!c&&b&&Hu(a);pv()&&(a.metadata.is_gcp_conversion=!0);(pv()?0:U(117))&&(a.metadata.is_fallback_aw_conversion_ping_allowed=!0);break;case "user_data_lead":case "user_data_web":!c&&b&&(a.isAborted=!0);break;case "remarketing":!c&&b||Hu(a)}Fu(a,["conversion","remarketing"])&&(a.j[P.g.qj]=
a.metadata.is_gcp_conversion?"www.google.com":"www.googleadservices.com")}},pv=function(){return pc.userAgent.toLowerCase().indexOf("firefox")!==-1||uc("Edg/")||uc("EdgA/")||uc("EdgiOS/")},rv=function(a){var b=a.target.ids[Ml[1]];if(b){a.j[P.g.Xc]=b;var c=a.target.ids[Ml[2]];c&&(a.j[P.g.rb]=c)}else a.isAborted=!0},Hu=function(a){a.metadata.speculative_in_message||(a.metadata.speculative=!1)},Fu=function(a,b){Array.isArray(b)||(b=[b]);return b.indexOf(a.metadata.hit_type)>=0};

var Pu=function(a){if(X(P.g.O)&&a.metadata.conversion_linker_enabled){var b=a.metadata.cookie_options,c=Aq(b.prefix);c==="_gcl"&&(c="");var d=Mr(c);a.j[P.g.kf]=d.Ch;a.j[P.g.nf]=d.Eh;U(99)&&(a.j[P.g.lf]=d.Dh);var e=U(71);if(Sr(c,e)){var f=e?Rr(c):Qr(c);f&&(a.j[P.g.ob]=f);if(!c){var g=a.j[P.g.rb];b=Ta(b,null);b.prefix=c;var k=Kr(g,b,!0).Ol;k&&(a.j[P.g.Ac]=k)}}else{var m="";if(U(80)&&a.metadata.hit_type==="conversion"){var n=Pr(c);n.T&&(m=n.T);n.Tj&&(a.j[P.g.Jd]=n.Tj);n.Uj&&(a.j[P.g.Kd]=n.Uj)}else m=
Or(c);m&&(a.j[P.g.Wa]=m);if(!c){var p=Jr(uq(tq())?kq():{},Hr);p&&(a.j[P.g.ce]=p)}}}};
var tv=function(a,b){var c={},d=function(f,g){var k;k=g===!0?"1":g===!1?"0":encodeURIComponent(String(g));c[f]=k};z(a.j,function(f,g){var k=sv[f];k&&g!==void 0&&g!==""&&(!a.metadata.redact_click_ids||f!==P.g.Ld&&f!==P.g.Td&&f!==P.g.pf&&f!==P.g.qg||(g="0"),d(k,g))});d("gtm",Bo({ra:a.metadata.source_canonical_id}));oo()&&d("gcs",po());d("gcd",to(a.m));wo()&&d("dma_cps",uo());d("dma",vo());Kn(Sn())&&d("tcfd",xo());Xi.j&&d("tag_exp",Xi.j);if(a.metadata.add_tag_timing){d("tft",Ab());var e=Pc();e!==void 0&&
d("tfd",Math.round(e))}U(17)&&d("apve",U(18)?"1":"0");U(19)&&d("apvf",Nc()?U(20)?"f":"sb":"nf");b(c)},uv=function(a){tv(a,function(b){if(a.metadata.hit_type==="page_view"){var c=[];z(b,function(e,f){c.push(e+"="+f)});var d=Gj(X([P.g.O,P.g.N])?"https://www.google.com":"https://pagead2.googlesyndication.com",!0)+"/ccm/collect?"+c.join("&");U(19)&&U(20)&&Nc()?Mc(d,void 0,{noFallback:!0}):Jc(d);if(nb(a.m.onSuccess))a.m.onSuccess()}})},vv={},sv=(vv[P.g.Tb]="gcu",vv[P.g.ob]="gclgb",vv[P.g.Wa]="gclaw",vv[P.g.Hi]=
"gad_source",vv[P.g.Ii]="gad_source_src",vv[P.g.Ld]="gclid",vv[P.g.Ji]="gclsrc",vv[P.g.qg]="gbraid",vv[P.g.pf]="wbraid",vv[P.g.Hb]="auid",vv[P.g.Li]="rnd",vv[P.g.Oi]="ncl",vv[P.g.ug]="gcldc",vv[P.g.Td]="dclid",vv[P.g.ab]="edid",vv[P.g.yc]="en",vv[P.g.Zb]="gdpr",vv[P.g.cb]="gdid",vv[P.g.Bc]="_ng",vv[P.g.aj]="gtm_up",vv[P.g.Jb]="frm",vv[P.g.gd]="lps",vv[P.g.fe]="did",vv[P.g.qa]="dl",vv[P.g.Aa]="dr",vv[P.g.eb]="dt",vv[P.g.fj]="scrsrc",vv[P.g.Hf]="ga_uid",vv[P.g.fc]="gdpr_consent",vv[P.g.ya]="uid",vv[P.g.pd]=
"us_privacy",vv[P.g.Pb]="npa",vv);var wv={J:{ki:"ads_conversion_hit",Id:"container_execute_start",ni:"container_setup_end",ig:"container_setup_start",li:"container_blocking_end",mi:"container_execute_end",oi:"container_yield_end",jg:"container_yield_start",lj:"event_execute_end",kj:"event_evaluation_end",bh:"event_evaluation_start",mj:"event_setup_end",me:"event_setup_start",oj:"ga4_conversion_hit",se:"page_load",Gn:"pageview",ic:"snippet_load",Hj:"tag_callback_error",Ij:"tag_callback_failure",Jj:"tag_callback_success",Kj:"tag_execute_end",
sd:"tag_execute_start"}};function xv(){function a(c,d){var e=hb(d);e&&b.push([c,e])}var b=[];a("u","GTM");a("ut","TAGGING");a("h","HEALTH");return b};var yv=!1;function gw(a,b){}
function hw(a,b){}function iw(a,b){}
function jw(a,b){}function kw(){var a={};return a}
function Zv(a){a=a===void 0?!0:a;var b={};return b}
function lw(){}function mw(a,b){}
function nw(a,b,c){}
function ow(){}function pw(a,b){var c=C,d,e=c.GooglebQhCsO;e||(e={},c.GooglebQhCsO=e);d=e;if(d[a])return!1;d[a]=[];d[a][0]=b;return!0};function qw(a,b,c,d){var e=vn(a,"fmt");if(b){var f=vn(a,"random"),g=vn(a,"label")||"";if(!f)return!1;var k=mu(decodeURIComponent(g.replace(/\+/g," "))+":"+decodeURIComponent(f.replace(/\+/g," ")));if(!pw(k,b))return!1}e&&Number(e)!==4&&(a=xn(a,"rfmt",e));var m=xn(a,"fmt",4);yc(m,function(){C.google_noFurtherRedirects&&b&&(C.google_noFurtherRedirects=null,b())},c,d,E.getElementsByTagName("script")[0].parentElement||void 0);return!0};
var rw=function(a){if(a!==void 0)return Math.round(a/10)*10},sw=function(a){for(var b={},c=0;c<a.length;c++){var d=a[c],e=void 0;if(d.hasOwnProperty("google_business_vertical")){e=d.google_business_vertical;var f={};b[e]=b[e]||(f.google_business_vertical=e,f)}else e="",b.hasOwnProperty(e)||(b[e]={});var g=b[e],k;for(k in d)k!=="google_business_vertical"&&(k in g||(g[k]=[]),g[k].push(d[k]))}return Object.keys(b).map(function(m){return b[m]})},tw=function(a){if(!a||!a.length)return[];for(var b=[],c=
0;c<a.length;++c){var d=a[c];if(d){var e={};b.push((e.id=Ih(d),e.origin=d.origin,e.destination=d.destination,e.start_date=d.start_date,e.end_date=d.end_date,e.location_id=d.location_id,e.google_business_vertical=d.google_business_vertical,e))}}return b},Ih=function(a){a.item_id!=null&&(a.id!=null?(V(138),a.id!==a.item_id&&V(148)):V(153));return U(16)?Jh(a):a.id},vw=function(a,b){var c=uw(b);return""+a+(a&&c?";":"")+c},uw=function(a){if(!a||typeof a!=="object"||typeof a.join==="function")return"";
var b=[];z(a,function(c,d){var e,f;if(Array.isArray(d)){for(var g=[],k=0;k<d.length;++k){var m=ww(d[k]);m!==void 0&&g.push(m)}f=g.length!==0?g.join(","):void 0}else f=ww(d);e=f;var n=ww(c);n&&e!==void 0&&b.push(n+"="+e)});return b.join(";")},ww=function(a){var b=typeof a;if(a!=null&&b!=="object"&&b!=="function")return String(a).replace(/,/g,"\\,").replace(/;/g,"\\;").replace(/=/g,"\\=")},xw=function(a,b){var c=[],d=function(f,g){var k=bg[f]===!0;g==null||!k&&g===""||(g===!0&&(g=1),g===!1&&(g=0),c.push(f+
"="+encodeURIComponent(g)))},e=a.metadata.hit_type;e!=="conversion"&&e!=="remarketing"||d("random",a.metadata.event_start_timestamp_ms);z(b,d);return c.join("&")},yw=function(a,b){var c=a.metadata.hit_type,d=a.j[P.g.Xc],e=X([P.g.O,P.g.N]),f=[],g,k=a.m.onSuccess,m,n=zo()?2:3,p=0,q=function(A){f.push(A);A.Ea&&p++};switch(c){case "conversion":m="/pagead/conversion";var r="",t=void 0;e?a.metadata.is_gcp_conversion?(g="https://www.google.com",m="/pagead/1p-conversion",t=8):(g="https://www.googleadservices.com",
t=5):(g="https://pagead2.googlesyndication.com",t=6);a.metadata.is_gcp_conversion&&(r="&gcp=1&sscte=1&ct_cookie_present=1");var v={Ja:""+Gj(g,!0)+m+"/"+d+"/?"+xw(a,b)+r,format:n,Ea:!0,endpoint:t};X(P.g.N)&&(v.attributes={attributionsrc:""});e&&a.metadata.is_fallback_aw_conversion_ping_allowed&&(v.Ge=""+Gj("https://www.google.com",!0)+"/pagead/1p-conversion/"+d+"/?"+xw(a,b)+"&gcp=1&sscte=1&ct_cookie_present=1",v.Fe=8);q(v);if(a.metadata.send_ccm_parallel_ping){t=a.metadata.is_gcp_conversion?23:22;
var u;b.eme&&!U(9)?(u={},Db(u,b),u.eme="*"):u=b;q({Ja:""+Gj(g,!0)+"/ccm/conversion/"+d+"/?"+xw(a,u)+r,format:2,Ea:!0,endpoint:t})}a.metadata.is_gcp_conversion&&e&&(r="&gcp=1&ct_cookie_present=1",q({Ja:""+Gj("https://googleads.g.doubleclick.net")+"/pagead/viewthroughconversion/"+d+"/?"+xw(a,b)+r,format:n,Ea:!0,endpoint:9}));break;case "remarketing":var w=b.data||"",x=sw(tw(a.j[P.g.ba]));if(x.length){for(var y=0;y<x.length;y++)b.data=vw(w,x[y]),q({Ja:""+Gj("https://googleads.g.doubleclick.net")+"/pagead/viewthroughconversion/"+
d+"/?"+xw(a,b),format:n,Ea:!0,endpoint:9}),a.metadata.send_fledge_experiment&&q({Ja:""+Cu()+"/td/rul/"+d+"?"+xw(a,b),format:4,Ea:!1,endpoint:44}),a.metadata.event_start_timestamp_ms+=1;a.metadata.send_fledge_experiment=!1}else q({Ja:""+Gj("https://googleads.g.doubleclick.net")+"/pagead/viewthroughconversion/"+d+"/?"+xw(a,b),format:n,Ea:!0,endpoint:9});break;case "user_data_lead":q({Ja:""+Gj("https://google.com")+"/pagead/form-data/"+d+"?"+xw(a,b),format:1,Ea:!0,endpoint:11});break;case "user_data_web":q({Ja:""+
Gj("https://google.com")+"/ccm/form-data/"+d+"?"+xw(a,b),format:1,Ea:!0,endpoint:21})}f.length>1&&nb(a.m.onSuccess)&&(k=Lb(a.m.onSuccess,p));zo()||c!=="conversion"&&c!=="remarketing"||!a.metadata.send_fledge_experiment||(U(29)&&c==="conversion"&&(b.ct_cookie_present=0),q({Ja:""+Cu()+"/td/rul/"+d+"?"+xw(a,b),format:4,Ea:!1,endpoint:44}));return{onSuccess:k,jm:f}},zw=function(a,b,c,d,e,f,g,k){hw(c.m.eventId,c.eventName);var m=function(){f&&f()};switch(b){case 1:Jc(a);f&&f();break;case 2:Bc(a,m,g,k);
break;case 3:var n=!1;try{n=qw(a,m,g,k)}catch(r){n=!1}n||zw(a,2,c,d,e,m,g,k);break;case 4:var p="AW-"+c.j[P.g.Xc],q=c.j[P.g.rb];q&&(p=p+"/"+q);Au(a,p);break;case 5:Mc(a)}},Aw=function(a,b){var c=!0;switch(a){case "conversion":c=!U(8);break;case "user_data_lead":c=!U(10);break;case "user_data_web":c=!U(11)}return c?b.replace(/./g,"*"):b},Bw=function(a){switch(a){case "conversion":return U(54);case "user_data_lead":return U(55);case "user_data_web":return U(56);default:return!1}},Cw=function(a){if(!a.j[P.g.Jd]||
!a.j[P.g.Kd])return"";var b=a.j[P.g.Jd].split("."),c=a.j[P.g.Kd].split(".");if(!b.length||!c.length||b.length!==c.length)return"";for(var d=[],e=0;e<b.length;++e)d.push(b[e]+"_"+c[e]);return d.join(".")},Ew=function(a){a.metadata.hit_type==="page_view"?uv(a):Dw(a,function(b,c){U(88)&&delete b.em;for(var d=yw(a,b),e=d.onSuccess,f=d.jm,g={},k=0;k<f.length;g={Ge:void 0,Fe:void 0,Vf:void 0,Ja:void 0,Bh:void 0,wh:void 0,Ea:void 0},k++){var m=f[k];g.Ja=m.Ja;g.Bh=m.format;g.Ea=m.Ea;g.Vf=m.attributes;g.wh=
m.endpoint;g.Ge=m.Ge;g.Fe=m.Fe;var n=void 0;if((n=c)!=null&&n.dn){var p=function(u){return function(w){wi(c.Dm,function(x){var y=ki(x),A=u.Ja;if(w){var B=Bo({ra:a.metadata.source_canonical_id,mk:w});A=A.replace(b.gtm,B)}zw(A+"&em="+encodeURIComponent(y.Rb),u.Bh,a,b,u.wh,u.Ea?e:void 0,void 0,u.Vf)})}}(g),q=c,r=q.gi,t=""+g.Ja+q.kn.join("");fu(t,r,function(u){return function(){u.Ea&&typeof e==="function"&&e()}}(g),p)}else{var v=void 0;g.Ge&&g.Fe&&(v=function(u){return function(){zw(u.Ge,5,a,b,u.Fe,void 0,
void 0,u.Vf)}}(g));zw(g.Ja,g.Bh,a,b,g.wh,g.Ea?e:void 0,v,g.Vf)}}})},Dw=function(a,b){var c=a.metadata.hit_type,d={},e={},f=void 0,g=[],k=a.metadata.event_start_timestamp_ms;if(c==="conversion"||c==="remarketing")d.cv="11",d.fst=k,d.fmt=3,d.bg="ffffff",d.guid="ON",d.async="1";var m=dr(["aw","dc"]);m!=null&&(d.gad_source=m);d.gtm=Bo({ra:a.metadata.source_canonical_id});c!=="remarketing"&&oo()&&(d.gcs=po());d.gcd=to(a.m);wo()&&(d.dma_cps=uo());d.dma=vo();Kn(Sn())&&(d.tcfd=xo());Xi.j&&(d.tag_exp=Xi.j);
a.j[P.g.Nb]&&Eh(a.j[P.g.Nb],d);a.j[P.g.Qa]&&Gh(a.j[P.g.Qa],d);var n=a.metadata.redact_click_ids,p=function(N,L){var S=a.j[L];S&&(d[N]=n?yj(S):S)};p("url",P.g.qa);p("ref",P.g.Aa);p("top",P.g.If);var q=Cw(a);q&&(d.gclaw_src=q);z(a.j,function(N,L){if(Dh.hasOwnProperty(N)){var S=Dh[N];S&&(d[S]=L)}else e[N]=L});Gl(d,a.j[P.g.rd]);var r=a.j[P.g.hd];r!==void 0&&r!==""&&(d.vdnc=String(r));var t=a.j[P.g.dd];t!==void 0&&(d.shf=t);var v=a.j[P.g.xc];v!==void 0&&(d.delc=v);if(U(25)&&a.metadata.add_tag_timing){d.tft=
Ab();var u=Pc();u!==void 0&&(d.tfd=Math.round(u))}d.data=uw(e);var w=a.j[P.g.ba];w&&c==="conversion"&&(d.iedeld=Mh(w),d.item=Hh(w));if((c==="conversion"||c==="user_data_lead"||c==="user_data_web")&&a.metadata.user_data)if(!X(P.g.N)||U(15)&&!X(P.g.O))d.ec_mode=void 0;else{var x=function(){if(c==="user_data_web"){var N;var L=a.metadata.cookie_options;L=L||{};var S;if(X(Ds)){(S=Es(L))||(S=dp());var aa=L,ba=Op(aa.prefix);Qp(aa,S);delete Lp[ba];delete Mp[ba];Pp(ba,aa.path,aa.domain);N=Es(L)}else N=void 0;
d.ecsid=N}};if(c!=="conversion"&&U(94)&&!U(88)){d.gtm=Bo({ra:a.metadata.source_canonical_id,mk:3});var y=ti(a.metadata.user_data),A=ei(y),B=A.rn;f={dn:!0,gi:A.gi,kn:["&em="+A.jn],Dm:y};B>0&&x()}else{var D,G=a.metadata.user_data,J=Bw(c);if(D=U(76)||U(77)?ii(G,U(77)&&J):ji(G)){var I=D.then(function(N){var L=N.Rb;U(88)||(d.em=L);if((U(52)||U(77))&&N.fg>0&&N.time!==void 0){var S=rw(N.time);d._ht="t."+(S===void 0?"":S)+("~l."+rw(L.length))}N.fg>0&&x();if(J){}});g.push(I)}}}if(g.length)try{Promise.all(g).then(function(){b(d)});
return}catch(N){}b(d,f)};function Fw(a,b){if(data.entities){var c=data.entities[a];if(c)return c[b]}};function Gw(a,b,c){c=c===void 0?!1:c;Hw().addRestriction(0,a,b,c)}function Iw(a,b,c){c=c===void 0?!1:c;Hw().addRestriction(1,a,b,c)}function Jw(){var a=jk();return Hw().getRestrictions(1,a)}var Kw=function(){this.container={};this.j={}},Lw=function(a,b){var c=a.container[b];c||(c={_entity:{internal:[],external:[]},_event:{internal:[],external:[]}},a.container[b]=c);return c};
Kw.prototype.addRestriction=function(a,b,c,d){d=d===void 0?!1:d;if(!d||!this.j[b]){var e=Lw(this,b);a===0?d?e._entity.external.push(c):e._entity.internal.push(c):a===1&&(d?e._event.external.push(c):e._event.internal.push(c))}};
Kw.prototype.getRestrictions=function(a,b){var c=Lw(this,b);if(a===0){var d,e;return[].concat(pa((c==null?void 0:(d=c._entity)==null?void 0:d.internal)||[]),pa((c==null?void 0:(e=c._entity)==null?void 0:e.external)||[]))}if(a===1){var f,g;return[].concat(pa((c==null?void 0:(f=c._event)==null?void 0:f.internal)||[]),pa((c==null?void 0:(g=c._event)==null?void 0:g.external)||[]))}return[]};
Kw.prototype.getExternalRestrictions=function(a,b){var c=Lw(this,b),d,e;return a===0?(c==null?void 0:(d=c._entity)==null?void 0:d.external)||[]:(c==null?void 0:(e=c._event)==null?void 0:e.external)||[]};Kw.prototype.removeExternalRestrictions=function(a){var b=Lw(this,a);b._event&&(b._event.external=[]);b._entity&&(b._entity.external=[]);this.j[a]=!0};function Hw(){var a=Ei.r;a||(a=new Kw,Ei.r=a);return a};var Mw=new RegExp(/^(.*\.)?(google|youtube|blogger|withgoogle)(\.com?)?(\.[a-z]{2})?\.?$/),Nw={cl:["ecl"],customPixels:["nonGooglePixels"],ecl:["cl"],ehl:["hl"],gaawc:["googtag"],hl:["ehl"],html:["customScripts","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],customScripts:["html","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],nonGooglePixels:[],nonGoogleScripts:["nonGooglePixels"],nonGoogleIframes:["nonGooglePixels"]},Ow={cl:["ecl"],customPixels:["customScripts",
"html"],ecl:["cl"],ehl:["hl"],gaawc:["googtag"],hl:["ehl"],html:["customScripts"],customScripts:["html"],nonGooglePixels:["customPixels","customScripts","html","nonGoogleScripts","nonGoogleIframes"],nonGoogleScripts:["customScripts","html"],nonGoogleIframes:["customScripts","html","nonGoogleScripts"]},Pw="google customPixels customScripts html nonGooglePixels nonGoogleScripts nonGoogleIframes".split(" ");
function Qw(){var a=ej("gtm.allowlist")||ej("gtm.whitelist");a&&V(9);Ki&&(a=["google","gtagfl","lcl","zone"]);Mw.test(C.location&&C.location.hostname)&&(Ki?V(116):(V(117),Rw&&(a=[],window.console&&window.console.log&&window.console.log("GTM blocked. See go/13687728."))));var b=a&&Eb(xb(a),Nw),c=ej("gtm.blocklist")||ej("gtm.blacklist");c||(c=ej("tagTypeBlacklist"))&&V(3);c?V(8):c=[];Mw.test(C.location&&C.location.hostname)&&(c=xb(c),c.push("nonGooglePixels","nonGoogleScripts","sandboxedScripts"));
xb(c).indexOf("google")>=0&&V(2);var d=c&&Eb(xb(c),Ow),e={};return function(f){var g=f&&f[Ie.la];if(!g||typeof g!=="string")return!0;g=g.replace(/^_*/,"");if(e[g]!==void 0)return e[g];var k=Ui[g]||[],m=!0;if(a){var n;if(n=m)a:{if(b.indexOf(g)<0)if(k&&k.length>0)for(var p=0;p<k.length;p++){if(b.indexOf(k[p])<0){V(11);n=!1;break a}}else{n=!1;break a}n=!0}m=n}var q=!1;if(c){var r=d.indexOf(g)>=0;if(r)q=r;else{var t=sb(d,k||[]);t&&V(10);q=t}}var v=!m||q;v||!(k.indexOf("sandboxedScripts")>=0)||b&&b.indexOf("sandboxedScripts")!==
-1||(v=sb(d,Pw));return e[g]=v}}var Rw=!1;Rw=!0;function Sw(){bk&&Gw(jk(),function(a){var b=uf(a.entityId),c;if(xf(b)){var d=b[Ie.la];if(!d)throw Error("Error: No function name given for function call.");var e=mf[d];c=!!e&&!!e.runInSiloedMode}else c=!!Fw(b[Ie.la],4);return c})}function Tw(a,b,c,d,e){if(!Uw()){var f=d.siloed?ek(a):a;if(!sk(f)){var g=Vw(a),k=Fb(a,"GTM-"),m=Ej(),n=c?"/gtag/js":"/gtm.js",p=Dj(b,n+g);if(!p){var q=Di.jf+n;m&&sc&&k?(q=sc.replace(/^(?:https?:\/\/)?/i,"").split(/[?#]/)[0],p=ns("https://","http://",q+g)):p=Zi()?Yi()+"/"+g:ns("https://","http://",q+g)}d.siloed&&uk({ctid:f,isDestination:!1});var r=mk();Xj().container[f]={state:1,context:d,parent:r};Wj({ctid:f,isDestination:!1},e);yc(p)}}}
function Ww(a,b,c,d){if(!Uw()){var e=c.siloed?ek(a):a;if(!tk(e))if(!c.siloed&&vk())Xj().destination[e]={state:0,transportUrl:b,context:c,parent:mk()},Wj({ctid:e,isDestination:!0},d),V(91);else{var f="/gtag/destination"+Vw(a,!0),g=Dj(b,f);g||(Zi()?(f="/gtd"+Vw(a,!0),g=Yi()+f):g=ns("https://","http://",Di.jf+f));c.siloed&&uk({ctid:e,isDestination:!0});Xj().destination[e]={state:1,context:c,parent:mk()};Wj({ctid:e,isDestination:!0},d);yc(g)}}}
function Vw(a,b){b=b===void 0?!1:b;var c="?id="+encodeURIComponent(a)+"&l="+Di.kb;if(!Fb(a,"GTM-")||b)c+="&cx=c";U(73)&&(c+="&gtm="+Bo());Ej()&&(c+="&sign="+Di.ih);var d=Xi.C;d===1?c+="&fps=fc":d===2&&(c+="&fps=fe");return c}function Uw(){if(zo()){return!0}return!1};var Xw=!1,Yw=0,Zw=[];function $w(a){if(!Xw){var b=E.createEventObject,c=E.readyState==="complete",d=E.readyState==="interactive";if(!a||a.type!=="readystatechange"||c||!b&&d){Xw=!0;for(var e=0;e<Zw.length;e++)F(Zw[e])}Zw.push=function(){for(var f=ya.apply(0,arguments),g=0;g<f.length;g++)F(f[g]);return 0}}}function ax(){if(!Xw&&Yw<140){Yw++;try{var a,b;(b=(a=E.documentElement).doScroll)==null||b.call(a,"left");$w()}catch(c){C.setTimeout(ax,50)}}}function bx(a){Xw?a():Zw.push(a)};var cx=function(){this.H=0;this.j={}};cx.prototype.addListener=function(a,b,c){var d=++this.H;this.j[a]=this.j[a]||{};this.j[a][String(d)]={listener:b,Eb:c};return d};cx.prototype.removeListener=function(a,b){var c=this.j[a],d=String(b);if(!c||!c[d])return!1;delete c[d];return!0};cx.prototype.C=function(a,b){var c=[];z(this.j[a],function(d,e){c.indexOf(e.listener)<0&&(e.Eb===void 0||b.indexOf(e.Eb)>=0)&&c.push(e.listener)});return c};function dx(a,b,c){return{entityType:a,indexInOriginContainer:b,nameInOriginContainer:c,originContainerId:hk()}};var fx=function(a,b){this.j=!1;this.K=[];this.eventData={tags:[]};this.P=!1;this.C=this.H=0;ex(this,a,b)},gx=function(a,b,c,d){if(Gi.hasOwnProperty(b)||b==="__zone")return-1;var e={};Sa(d)&&(e=Ta(d,e));e.id=c;e.status="timeout";return a.eventData.tags.push(e)-1},hx=function(a,b,c,d){var e=a.eventData.tags[b];e&&(e.status=c,e.executionTime=d)},ix=function(a){if(!a.j){for(var b=a.K,c=0;c<b.length;c++)b[c]();a.j=!0;a.K.length=0}},ex=function(a,b,c){b!==void 0&&a.ye(b);c&&C.setTimeout(function(){ix(a)},
Number(c))};fx.prototype.ye=function(a){var b=this,c=Cb(function(){F(function(){a(hk(),b.eventData)})});this.j?c():this.K.push(c)};var jx=function(a){a.H++;return Cb(function(){a.C++;a.P&&a.C>=a.H&&ix(a)})},kx=function(a){a.P=!0;a.C>=a.H&&ix(a)};var lx={};function mx(){return C[nx()]}
function nx(){return C.GoogleAnalyticsObject||"ga"}function qx(){var a=hk();}
function rx(a,b){return function(){var c=mx(),d=c&&c.getByName&&c.getByName(a);if(d){var e=d.get("sendHitTask");d.set("sendHitTask",function(f){var g=f.get("hitPayload"),k=f.get("hitCallback"),m=g.indexOf("&tid="+b)<0;m&&(f.set("hitPayload",g.replace(/&tid=UA-[0-9]+-[0-9]+/,"&tid="+b),!0),f.set("hitCallback",void 0,!0));e(f);m&&(f.set("hitPayload",g,!0),f.set("hitCallback",k,!0),f.set("_x_19",void 0,!0),e(f))})}}}var wx=["es","1"],xx={},yx={};function zx(a,b){if(Nj){var c;c=b.match(/^(gtm|gtag)\./)?encodeURIComponent(b):"*";xx[a]=[["e",c],["eid",a]];Dm(a)}}function Ax(a){var b=a.eventId,c=a.oc;if(!xx[b])return[];var d=[];yx[b]||d.push(wx);d.push.apply(d,pa(xx[b]));c&&(yx[b]=!0);return d};var Bx={},Cx={},Dx={};function Ex(a,b,c,d){Nj&&U(86)&&((d===void 0?0:d)?(Dx[b]=Dx[b]||0,++Dx[b]):c!==void 0?(Cx[a]=Cx[a]||{},Cx[a][b]=Math.round(c)):(Bx[a]=Bx[a]||{},Bx[a][b]=(Bx[a][b]||0)+1))}function Fx(a){var b=a.eventId,c=a.oc,d=Bx[b]||{},e=[],f;for(f in d)d.hasOwnProperty(f)&&e.push(""+f+d[f]);c&&delete Bx[b];return e.length?[["md",e.join(".")]]:[]}
function Gx(a){var b=a.eventId,c=a.oc,d=Cx[b]||{},e=[],f;for(f in d)d.hasOwnProperty(f)&&e.push(""+f+d[f]);c&&delete Cx[b];return e.length?[["mtd",e.join(".")]]:[]}function Hx(){for(var a=[],b=h(Object.keys(Dx)),c=b.next();!c.done;c=b.next()){var d=c.value;a.push(""+d+Dx[d])}return a.length?[["mec",a.join(".")]]:[]};var Ix={},Jx={};function Kx(a,b,c){if(Nj&&b){var d=Hj(b);Ix[a]=Ix[a]||[];Ix[a].push(c+d);var e=(xf(b)?"1":"2")+d;Jx[a]=Jx[a]||[];Jx[a].push(e);Dm(a)}}function Lx(a){var b=a.eventId,c=a.oc,d=[],e=Ix[b]||[];e.length&&d.push(["tr",e.join(".")]);var f=Jx[b]||[];f.length&&d.push(["ti",f.join(".")]);c&&(delete Ix[b],delete Jx[b]);return d};function Mx(a,b,c,d){var e=kf[a],f=Nx(a,b,c,d);if(!f)return null;var g=yf(e[Ie.Gj],c,[]);if(g&&g.length){var k=g[0];f=Mx(k.index,{onSuccess:f,onFailure:k.Rj===1?b.terminate:f,terminate:b.terminate},c,d)}return f}
function Nx(a,b,c,d){function e(){function w(){hl(3);var J=Ab()-G;Kx(c.id,f,"7");hx(c.jc,B,"exception",J);U(74)&&nw(c,f,wv.J.Hj);D||(D=!0,k())}if(f[Ie.bl])k();else{var x=wf(f,c,[]),y=x[Ie.zk];if(y!=null)for(var A=0;A<y.length;A++)if(!X(y[A])){k();return}var B=gx(c.jc,String(f[Ie.la]),Number(f[Ie.xe]),x[Ie.METADATA]),D=!1;x.vtp_gtmOnSuccess=function(){if(!D){D=!0;var J=Ab()-G;Kx(c.id,kf[a],"5");hx(c.jc,B,"success",J);U(74)&&nw(c,f,wv.J.Jj);g()}};x.vtp_gtmOnFailure=function(){if(!D){D=!0;var J=Ab()-
G;Kx(c.id,kf[a],"6");hx(c.jc,B,"failure",J);U(74)&&nw(c,f,wv.J.Ij);k()}};x.vtp_gtmTagId=f.tag_id;x.vtp_gtmEventId=c.id;c.priorityId&&(x.vtp_gtmPriorityId=c.priorityId);Kx(c.id,f,"1");U(74)&&mw(c,f);var G=Ab();try{zf(x,{event:c,index:a,type:1})}catch(J){w(J)}U(74)&&nw(c,f,wv.J.Kj)}}var f=kf[a],g=b.onSuccess,k=b.onFailure,m=b.terminate;if(c.isBlocked(f))return null;var n=yf(f[Ie.Lj],c,[]);if(n&&n.length){var p=n[0],q=Mx(p.index,{onSuccess:g,onFailure:k,terminate:m},c,d);if(!q)return null;g=q;k=p.Rj===
2?m:q}if(f[Ie.yj]||f[Ie.il]){var r=f[Ie.yj]?lf:c.gn,t=g,v=k;if(!r[a]){var u=Ox(a,r,Cb(e));g=u.onSuccess;k=u.onFailure}return function(){r[a](t,v)}}return e}function Ox(a,b,c){var d=[],e=[];b[a]=Px(d,e,c);return{onSuccess:function(){b[a]=Qx;for(var f=0;f<d.length;f++)d[f]()},onFailure:function(){b[a]=Rx;for(var f=0;f<e.length;f++)e[f]()}}}function Px(a,b,c){return function(d,e){a.push(d);b.push(e);c()}}function Qx(a){a()}function Rx(a,b){b()};var Ux=function(a,b){for(var c=[],d=0;d<kf.length;d++)if(a[d]){var e=kf[d];var f=jx(b.jc);try{var g=Mx(d,{onSuccess:f,onFailure:f,terminate:f},b,d);if(g){var k=e[Ie.la];if(!k)throw Error("Error: No function name given for function call.");var m=mf[k];c.push({qk:d,gk:(m?m.priorityOverride||0:0)||Fw(e[Ie.la],1)||0,execute:g})}else Sx(d,b),f()}catch(p){f()}}c.sort(Tx);for(var n=0;n<c.length;n++)c[n].execute();return c.length>
0};var Wx=function(a,b){if(!Vx)return!1;var c=a["gtm.triggers"]&&String(a["gtm.triggers"]),d=Vx.C(a.event,c?String(c).split(","):[]);if(!d.length)return!1;for(var e=0;e<d.length;++e){var f=jx(b);try{d[e](a,f)}catch(g){f()}}return!0};function Tx(a,b){var c,d=b.gk,e=a.gk;c=d>e?1:d<e?-1:0;var f;if(c!==0)f=c;else{var g=a.qk,k=b.qk;f=g>k?1:g<k?-1:0}return f}
function Sx(a,b){if(Nj){var c=function(d){var e=b.isBlocked(kf[d])?"3":"4",f=yf(kf[d][Ie.Gj],b,[]);f&&f.length&&c(f[0].index);Kx(b.id,kf[d],e);var g=yf(kf[d][Ie.Lj],b,[]);g&&g.length&&c(g[0].index)};c(a)}}var Xx=!1,Vx;var Yx=function(){Vx||(Vx=new cx);return Vx};
function Zx(a){var b=a["gtm.uniqueEventId"],c=a["gtm.priorityId"],d=a.event;if(U(74)){}if(d==="gtm.js"){if(Xx)return!1;Xx=!0}var e=!1,f=Jw(),g=Ta(a,null);if(!f.every(function(t){return t({originalEventData:g})})){if(d!=="gtm.js"&&d!=="gtm.init"&&d!=="gtm.init_consent")return!1;e=!0}zx(b,d);var k=a.eventCallback,m=a.eventTimeout,n={id:b,
priorityId:c,name:d,isBlocked:$x(g,e),gn:[],logMacroError:function(){V(6);hl(0)},cachedModelValues:ay(),jc:new fx(function(){if(U(74)){}k&&
k.apply(k,Array.prototype.slice.call(arguments,0))},m),originalEventData:g};U(86)&&Nj&&(n.reportMacroDiscrepancy=Ex);U(74)&&iw(n.id,n.name);var p=Ff(n);U(74)&&jw(n.id,n.name);e&&(p=by(p));if(U(74)){}var q=Ux(p,n),r=!1;
r=Wx(a,n.jc);kx(n.jc);d!=="gtm.js"&&d!=="gtm.sync"||qx();return cy(p,q)||r}function ay(){var a={};a.event=jj("event",1);a.ecommerce=jj("ecommerce",1);a.gtm=jj("gtm");a.eventModel=jj("eventModel");return a}
function $x(a,b){var c=Qw();return function(d){if(c(d))return!0;var e=d&&d[Ie.la];if(!e||typeof e!=="string")return!0;e=e.replace(/^_*/,"");var f,g=jk();f=Hw().getRestrictions(0,g);var k=a;b&&(k=Ta(a,null),k["gtm.uniqueEventId"]=Number.MAX_SAFE_INTEGER);for(var m=Ui[e]||[],n=h(f),p=n.next();!p.done;p=n.next()){var q=p.value;try{if(!q({entityId:e,securityGroups:m,originalEventData:k}))return!0}catch(r){return!0}}return!1}}
function by(a){for(var b=[],c=0;c<a.length;c++)if(a[c]){var d=String(kf[c][Ie.la]);if(Fi[d]||kf[c][Ie.jl]!==void 0||Fw(d,2))b[c]=!0}return b}function cy(a,b){if(!b)return b;for(var c=0;c<a.length;c++)if(a[c]&&kf[c]&&!Gi[String(kf[c][Ie.la])])return!0;return!1}var dy=0;function ey(a,b){return arguments.length===1?fy("set",a):fy("set",a,b)}function gy(a,b){return arguments.length===1?fy("config",a):fy("config",a,b)}function hy(a,b,c){c=c||{};c[P.g.bc]=a;return fy("event",b,c)}function fy(){return arguments};var iy=function(){this.messages=[];this.j=[]};iy.prototype.enqueue=function(a,b,c){var d=this.messages.length+1;a["gtm.uniqueEventId"]=b;a["gtm.priorityId"]=d;var e=Object.assign({},c,{eventId:b,priorityId:d,fromContainerExecution:!0}),f={message:a,notBeforeEventId:b,priorityId:d,messageContext:e};this.messages.push(f);for(var g=0;g<this.j.length;g++)try{this.j[g](f)}catch(k){}};iy.prototype.listen=function(a){this.j.push(a)};
iy.prototype.get=function(){for(var a={},b=0;b<this.messages.length;b++){var c=this.messages[b],d=a[c.notBeforeEventId];d||(d=[],a[c.notBeforeEventId]=d);d.push(c)}return a};iy.prototype.prune=function(a){for(var b=[],c=[],d=0;d<this.messages.length;d++){var e=this.messages[d];e.notBeforeEventId===a?b.push(e):c.push(e)}this.messages=c;return b};function jy(a,b,c){c.eventMetadata=c.eventMetadata||{};c.eventMetadata.source_canonical_id=Of.canonicalContainerId;ky().enqueue(a,b,c)}
function vy(){var a=wy;ky().listen(a)}function ky(){var a=Ei.mb;a||(a=new iy,Ei.mb=a);return a};var xy={},yy={};function zy(a,b){for(var c=[],d=[],e={},f=0;f<a.length;e={Wh:void 0,Hh:void 0},f++){var g=a[f];if(g.indexOf("-")>=0){if(e.Wh=Jl(g,b),e.Wh){var k=fk();qb(k,function(r){return function(t){return r.Wh.destinationId===t}}(e))?c.push(g):d.push(g)}}else{var m=xy[g]||[];e.Hh={};m.forEach(function(r){return function(t){r.Hh[t]=!0}}(e));for(var n=ck(),p=0;p<n.length;p++)if(e.Hh[n[p]]){c=c.concat(fk());break}var q=yy[g]||[];q.length&&(c=c.concat(q))}}return{zm:c,Cm:d}}
function Ay(a){z(xy,function(b,c){var d=c.indexOf(a);d>=0&&c.splice(d,1)})}function By(a){z(yy,function(b,c){var d=c.indexOf(a);d>=0&&c.splice(d,1)})}var Cy="HA GF G UA AW DC MC".split(" "),Dy=!1,Ey=!1,Fy=!1,Gy=!1;function Hy(a,b){a.hasOwnProperty("gtm.uniqueEventId")||Object.defineProperty(a,"gtm.uniqueEventId",{value:Vi()});b.eventId=a["gtm.uniqueEventId"];b.priorityId=a["gtm.priorityId"];return{eventId:b.eventId,priorityId:b.priorityId}}var Iy=void 0,Jy=void 0;
function Ky(a,b,c){var d=Ta(a,null);d.eventId=void 0;d.inheritParentConfig=void 0;Object.keys(b).some(function(f){return b[f]!==void 0})&&V(136);var e=Ta(b,null);Ta(c,e);jy(gy(ck()[0],e),a.eventId,d)}function Ly(a){for(var b=h([P.g.ld,P.g.Ob]),c=b.next();!c.done;c=b.next()){var d=c.value,e=a&&a[d]||Lm.j[d];if(e)return e}}
var My=[P.g.ld,P.g.Ob,P.g.zc,P.g.qb,P.g.wb,P.g.ya,P.g.oa,P.g.Ha,P.g.Oa,P.g.sb],Ny={config:function(a,b){var c=Hy(a,b);if(!(a.length<2)&&l(a[1])){var d={};if(a.length>2){if(a[2]!==void 0&&!Sa(a[2])||a.length>3)return;d=a[2]}var e=Jl(a[1],b.isGtmEvent);if(e){var f,g,k;a:{if(!ak.qe){var m=lk(mk());if(xk(m)){var n=m.parent,p=n.isDestination;k={Jm:lk(n),ym:p};break a}}k=void 0}var q=k;q&&(f=q.Jm,g=q.ym);zx(c.eventId,"gtag.config");var r=e.destinationId,t=e.id!==r;if(t?fk().indexOf(r)===-1:ck().indexOf(r)===
-1){if(!b.inheritParentConfig&&!d[P.g.Kb]){var v=Ly(d);if(t)Ww(r,v,{source:2,fromContainerExecution:b.fromContainerExecution});else if(f!==void 0&&f.containers.indexOf(r)!==-1){var u=d;Iy?Ky(b,u,Iy):Jy||(Jy=Ta(u,null))}else Tw(r,v,!0,{source:2,fromContainerExecution:b.fromContainerExecution})}}else{if(f&&(V(128),g&&V(130),b.inheritParentConfig)){var w;var x=d;Jy?(Ky(b,Jy,x),w=!1):(!x[P.g.hc]&&Ii&&Iy||(Iy=Ta(x,null)),w=!0);w&&f.containers&&f.containers.join(",");return}var y=d;if(!Fy&&(Fy=!0,Ey))for(var A=
h(My),B=A.next();!B.done;B=A.next())if(y.hasOwnProperty(B.value)){gl("erc");break}Oj&&!bk&&(dy===1&&(Bk.mcc=!1),dy=2);dl=!0;if(Ii&&!t&&!d[P.g.hc]){var D=Gy;Gy=!0;if(D)return}Dy||V(43);if(!b.noTargetGroup)if(t){By(e.id);var G=e.id,J=d[P.g.de]||"default";J=String(J).split(",");for(var I=0;I<J.length;I++){var N=yy[J[I]]||[];yy[J[I]]=N;N.indexOf(G)<0&&N.push(G)}}else{Ay(e.id);var L=e.id,S=d[P.g.de]||"default";S=S.toString().split(",");for(var aa=0;aa<S.length;aa++){var ba=xy[S[aa]]||[];xy[S[aa]]=ba;ba.indexOf(L)<
0&&ba.push(L)}}delete d[P.g.de];var T=b.eventMetadata||{};T.hasOwnProperty("is_external_event")||(T.is_external_event=!b.fromContainerExecution);b.eventMetadata=T;delete d[P.g.ed];for(var O=t?[e.id]:fk(),ma=0;ma<O.length;ma++){var na=d,ja=O[ma],Ba=Ta(b,null),Ma=Jl(ja,Ba.isGtmEvent);Ma&&Lm.push("config",[na],Ma,Ba)}}}}},consent:function(a,b){if(a.length===3){V(39);var c=Hy(a,b),d=a[1],e=a[2];b.fromContainerExecution||(e[P.g.N]&&V(139),e[P.g.sa]&&V(140));d==="default"?ul(e):d==="update"?wl(e,c):d===
"declare"&&b.fromContainerExecution&&tl(e)}},event:function(a,b){var c=a[1];if(!(a.length<2)&&l(c)){var d=void 0;if(a.length>2){if(!Sa(a[2])&&a[2]!==void 0||a.length>3)return;d=a[2]}var e=d,f={},g=(f.event=c,f);e&&(g.eventModel=Ta(e,null),e[P.g.ed]&&(g.eventCallback=e[P.g.ed]),e[P.g.ae]&&(g.eventTimeout=e[P.g.ae]));var k=Hy(a,b),m=k.eventId,n=k.priorityId;g["gtm.uniqueEventId"]=m;n&&(g["gtm.priorityId"]=n);if(c==="optimize.callback")return g.eventModel=g.eventModel||{},g;var p;var q=d,r=q&&q[P.g.bc];
r===void 0&&(r=ej(P.g.bc,2),r===void 0&&(r="default"));if(l(r)||Array.isArray(r)){var t;t=b.isGtmEvent?l(r)?[r]:r:r.toString().replace(/\s+/g,"").split(",");var v=zy(t,b.isGtmEvent),u=v.zm,w=v.Cm;if(w.length)for(var x=Ly(q),y=0;y<w.length;y++){var A=Jl(w[y],b.isGtmEvent);A&&Ww(A.destinationId,x,{source:3,fromContainerExecution:b.fromContainerExecution})}p=Kl(u,b.isGtmEvent)}else p=void 0;var B=p;if(B){var D;!B.length||((D=b.eventMetadata)==null?0:D.em_event)||(Ey=!0);zx(m,c);for(var G=[],J=0;J<B.length;J++){var I=
B[J],N=Ta(b,null);if(Cy.indexOf(nk(I.prefix))!==-1){var L=Ta(d,null),S=N.eventMetadata||{};S.hasOwnProperty("is_external_event")||(S.is_external_event=!N.fromContainerExecution);N.eventMetadata=S;delete L[P.g.ed];Mm(c,L,I.id,N);Oj&&!bk&&dy===0&&(Dk("mcc","1"),dy=1);dl=!0}G.push(I.id)}g.eventModel=g.eventModel||{};B.length>0?g.eventModel[P.g.bc]=G.join():delete g.eventModel[P.g.bc];Dy||V(43);b.noGtmEvent===void 0&&b.eventMetadata&&b.eventMetadata.syn_or_mod&&(b.noGtmEvent=!0);g.eventModel[P.g.ac]&&
(b.noGtmEvent=!0);return b.noGtmEvent?void 0:g}}},get:function(a,b){V(53);if(a.length===4&&l(a[1])&&l(a[2])&&nb(a[3])){var c=Jl(a[1],b.isGtmEvent),d=String(a[2]),e=a[3];if(c){Dy||V(43);var f=Ly();if(!qb(fk(),function(k){return c.destinationId===k}))Ww(c.destinationId,f,{source:4,fromContainerExecution:b.fromContainerExecution});else if(Cy.indexOf(nk(c.prefix))!==-1){dl=!0;Hy(a,b);var g={};Ta((g[P.g.ub]=d,g[P.g.Ib]=e,g),null);Nm(d,function(k){F(function(){e(k)})},c.id,b)}}}},js:function(a,b){if(a.length===
2&&a[1].getTime){Dy=!0;var c=Hy(a,b),d=c.eventId,e=c.priorityId,f={};return f.event="gtm.js",f["gtm.start"]=a[1].getTime(),f["gtm.uniqueEventId"]=d,f["gtm.priorityId"]=e,f}},policy:function(a){if(a.length===3&&l(a[1])&&nb(a[2])){if(Lf(a[1],a[2]),V(74),a[1]==="all"){V(75);var b=!1;try{b=a[2](hk(),"unknown",{})}catch(c){}b||V(76)}}else V(73)},set:function(a,b){var c=void 0;a.length===2&&Sa(a[1])?c=Ta(a[1],null):a.length===3&&l(a[1])&&(c={},Sa(a[2])||Array.isArray(a[2])?c[a[1]]=Ta(a[2],null):c[a[1]]=
a[2]);if(c){var d=Hy(a,b),e=d.eventId,f=d.priorityId;Ta(c,null);var g=Ta(c,null);Lm.push("set",[g],void 0,b);c["gtm.uniqueEventId"]=e;f&&(c["gtm.priorityId"]=f);delete c.event;b.overwriteModelFields=!0;return c}}},Oy={policy:!0};var Qy=function(a){if(Py(a))return a;this.value=a};Qy.prototype.getUntrustedMessageValue=function(){return this.value};var Py=function(a){return!a||Pa(a)!=="object"||Sa(a)?!1:"getUntrustedMessageValue"in a};Qy.prototype.getUntrustedMessageValue=Qy.prototype.getUntrustedMessageValue;var Ry=!1,Sy=[];function Ty(){if(!Ry){Ry=!0;for(var a=0;a<Sy.length;a++)F(Sy[a])}}function Uy(a){Ry?F(a):Sy.push(a)};var Vy=0,Wy={},Xy=[],Yy=[],Zy=!1,$y=!1;function az(a,b){return a.messageContext.eventId-b.messageContext.eventId||a.messageContext.priorityId-b.messageContext.priorityId}function bz(a,b,c){a.eventCallback=b;c&&(a.eventTimeout=c);return cz(a)}function dz(a,b){if(!ob(b)||b<0)b=0;var c=Ei[Di.kb],d=0,e=!1,f=void 0;f=C.setTimeout(function(){e||(e=!0,a());f=void 0},b);return function(){var g=c?c.subscribers:1;++d===g&&(f&&(C.clearTimeout(f),f=void 0),e||(a(),e=!0))}}
function ez(a,b){var c=a._clear||b.overwriteModelFields;z(a,function(e,f){e!=="_clear"&&(c&&hj(e),hj(e,f))});Ri||(Ri=a["gtm.start"]);var d=a["gtm.uniqueEventId"];if(!a.event)return!1;typeof d!=="number"&&(d=Vi(),a["gtm.uniqueEventId"]=d,hj("gtm.uniqueEventId",d));return Zx(a)}function fz(a){if(a==null||typeof a!=="object")return!1;if(a.event)return!0;if(ub(a)){var b=a[0];if(b==="config"||b==="event"||b==="js"||b==="get")return!0}return!1}
function gz(){var a;if(Yy.length)a=Yy.shift();else if(Xy.length)a=Xy.shift();else return;var b;var c=a;if(Zy||!fz(c.message))b=c;else{Zy=!0;var d=c.message["gtm.uniqueEventId"];typeof d!=="number"&&(d=c.message["gtm.uniqueEventId"]=Vi());var e={},f={message:(e.event="gtm.init_consent",e["gtm.uniqueEventId"]=d-2,e),messageContext:{eventId:d-2}},g={},k={message:(g.event="gtm.init",g["gtm.uniqueEventId"]=d-1,g),messageContext:{eventId:d-1}};Xy.unshift(k,c);Oj&&Hk();b=f}return b}
function hz(){for(var a=!1,b;!$y&&(b=gz());){$y=!0;delete bj.eventModel;dj();var c=b,d=c.message,e=c.messageContext;if(d==null)$y=!1;else{e.fromContainerExecution&&ij();try{if(nb(d))try{d.call(fj)}catch(v){}else if(Array.isArray(d)){if(l(d[0])){var f=d[0].split("."),g=f.pop(),k=d.slice(1),m=ej(f.join("."),2);if(m!=null)try{m[g].apply(m,k)}catch(v){}}}else{var n=void 0;if(ub(d))a:{if(d.length&&l(d[0])){var p=Ny[d[0]];if(p&&(!e.fromContainerExecution||!Oy[d[0]])){n=p(d,e);break a}}n=void 0}else n=d;
n&&(a=ez(n,e)||a)}}finally{e.fromContainerExecution&&dj(!0);var q=d["gtm.uniqueEventId"];if(typeof q==="number"){for(var r=Wy[String(q)]||[],t=0;t<r.length;t++)Yy.push(iz(r[t]));r.length&&Yy.sort(az);delete Wy[String(q)];q>Vy&&(Vy=q)}$y=!1}}}return!a}
function jz(){if(U(74)){var a=kz();}var b=hz();if(U(74)){}try{var c=hk(),d=C[Di.kb].hide;if(d&&d[c]!==void 0&&d.end){d[c]=!1;var e=!0,f;for(f in d)if(d.hasOwnProperty(f)&&d[f]===
!0){e=!1;break}e&&(d.end(),d.end=null)}}catch(g){}return b}function wy(a){if(Vy<a.notBeforeEventId){var b=String(a.notBeforeEventId);Wy[b]=Wy[b]||[];Wy[b].push(a)}else Yy.push(iz(a)),Yy.sort(az),F(function(){$y||hz()})}function iz(a){return{message:a.message,messageContext:a.messageContext}}
function lz(){function a(f){var g={};if(Py(f)){var k=f;f=Py(k)?k.getUntrustedMessageValue():void 0;g.fromContainerExecution=!0}return{message:f,messageContext:g}}var b=tc(Di.kb,[]),c=Ei[Di.kb]=Ei[Di.kb]||{};c.pruned===!0&&V(83);Wy=ky().get();vy();bx(function(){if(!c.gtmDom){c.gtmDom=!0;var f={};b.push((f.event="gtm.dom",f))}});Uy(function(){if(!c.gtmLoad){c.gtmLoad=!0;var f={};b.push((f.event="gtm.load",f))}});c.subscribers=(c.subscribers||0)+1;var d=b.push;b.push=function(){var f;if(Ei.SANDBOXED_JS_SEMAPHORE>
0){f=[];for(var g=0;g<arguments.length;g++)f[g]=new Qy(arguments[g])}else f=[].slice.call(arguments,0);var k=f.map(function(q){return a(q)});Xy.push.apply(Xy,k);var m=d.apply(b,f),n=Math.max(100,Number("1000")||300);if(this.length>n)for(V(4),c.pruned=!0;this.length>n;)this.shift();var p=typeof m!=="boolean"||m;return hz()&&p};var e=b.slice(0).map(function(f){return a(f)});Xy.push.apply(Xy,e);if(kz()){if(U(74)){}F(jz)}}var kz=function(){var a=!0;return a},cz=function(a){return C[Di.kb].push(a)};function mz(a){if(a==null||a.length===0)return!1;var b=Number(a),c=Ab();return b<c+3E5&&b>c-9E5}function nz(a){return a&&a.indexOf("pending:")===0?mz(a.substr(8)):!1};
function Iz(){};var Jz=function(){};Jz.prototype.toString=function(){return"undefined"};var Kz=new Jz;function Rz(a,b){function c(g){var k=xj(g),m=rj(k,"protocol"),n=rj(k,"host",!0),p=rj(k,"port"),q=rj(k,"path").toLowerCase().replace(/\/$/,"");if(m===void 0||m==="http"&&p==="80"||m==="https"&&p==="443")m="web",p="default";return[m,n,p,q]}for(var d=c(String(a)),e=c(String(b)),f=0;f<d.length;f++)if(d[f]!==e[f])return!1;return!0}
function Sz(a){return Tz(a)?1:0}
function Tz(a){var b=a.arg0,c=a.arg1;if(a.any_of&&Array.isArray(c)){for(var d=0;d<c.length;d++){var e=Ta(a,{});Ta({arg1:c[d],any_of:void 0},e);if(Sz(e))return!0}return!1}switch(a["function"]){case "_cn":return og(b,c);case "_css":var f;a:{if(b)try{for(var g=0;g<kg.length;g++){var k=kg[g];if(b[k]!=null){f=b[k](c);break a}}}catch(m){}f=!1}return f;case "_ew":return lg(b,c);case "_eq":return pg(b,c);case "_ge":return qg(b,c);case "_gt":return sg(b,c);case "_lc":return String(b).split(",").indexOf(String(c))>=
0;case "_le":return rg(b,c);case "_lt":return tg(b,c);case "_re":return ng(b,c,a.ignore_case);case "_sw":return ug(b,c);case "_um":return Rz(b,c)}return!1};function Uz(){var a;a=a===void 0?"":a;var b,c;return((b=data)==null?0:(c=b.blob)==null?0:c.hasOwnProperty(1))?String(data.blob[1]):a};function Vz(){var a=[["cv",U(104)?Uz():"1"],["rv",Di.hh],["tc",kf.filter(function(b){return b}).length]];Di.ue&&a.push(["x",Di.ue]);Xi.j&&a.push(["tag_exp",Xi.j]);return a};var Wz={},Xz={};function Yz(){var a=0;return function(b){switch(b){case 1:a|=1;break;case 2:a|=2;break;case 3:a|=4}return a}}function Zz(a,b,c,d){if(Nj){var e=String(c)+b;Wz[a]=Wz[a]||[];Wz[a].push(e);Xz[a]=Xz[a]||[];Xz[a].push(d+b)}}function $z(a){var b=a.eventId,c=a.oc,d=[],e=Wz[b]||[];e.length&&d.push(["hf",e.join(".")]);var f=Xz[b]||[];f.length&&d.push(["ht",f.join(".")]);c&&(delete Wz[b],delete Xz[b]);return d};function aA(){return!1}function bA(){var a={};return function(b,c,d){}};function cA(){var a=dA;return function(b,c,d){var e=d&&d.event;b==="__html"&&U(78)||eA(c);var f=Fb(b,"__cvt_")?void 0:1,g=new Ya;z(c,function(r,t){var v=ed(t,void 0,f);v===void 0&&t!==void 0&&V(44);g.set(r,v)});a.j.j.C=Df();var k={Oj:Sf(b),eventId:e==null?void 0:e.id,priorityId:e!==void 0?e.priorityId:void 0,ye:e!==void 0?function(r){e.jc.ye(r)}:void 0,hb:function(){return b},log:function(){},Ml:{index:d==null?void 0:d.index,type:d==null?void 0:d.type,name:d==null?void 0:d.name},Tm:!!Fw(b,3),originalEventData:e==
null?void 0:e.originalEventData};e&&e.cachedModelValues&&(k.cachedModelValues={gtm:e.cachedModelValues.gtm,ecommerce:e.cachedModelValues.ecommerce});if(aA()){var m=bA(),n,p;k.Ua={hi:[],ze:{},Ab:function(r,t,v){t===1&&(n=r);t===7&&(p=v);m(r,t,v)},eg:ch()};k.log=function(r){var t=ya.apply(1,arguments);n&&m(n,4,{level:r,source:p,message:t})}}var q=Ce(a,k,[b,g]);a.j.j.C=void 0;q instanceof Aa&&q.type==="return"&&(q=q.data);return H(q,void 0,f)}}
function eA(a){var b=a.gtmOnSuccess,c=a.gtmOnFailure;nb(b)&&(a.gtmOnSuccess=function(){F(b)});nb(c)&&(a.gtmOnFailure=function(){F(c)})};function fA(a){}fA.F="internal.addAdsClickIds";function gA(a,b){var c=this;}gA.R="addConsentListener";var hA=!1;function iA(a){for(var b=0;b<a.length;++b)if(hA)try{a[b]()}catch(c){V(77)}else a[b]()}function jA(a,b,c){var d=this,e;K(this.getName(),["eventName:!string","callback:!Fn","triggerId:?string"],arguments),iA([function(){M(d,"listen_data_layer",a)}]),e=Yx().addListener(a,H(b),c);return e}jA.F="internal.addDataLayerEventListener";function kA(a,b,c){}kA.R="addDocumentEventListener";function lA(a,b,c,d){}lA.R="addElementEventListener";function mA(a){return a.D.j};function nA(a){}nA.R="addEventCallback";
var oA=function(a){return typeof a==="string"?a:String(Vi())},rA=function(a,b){pA(a,"init",!1)||(qA(a,"init",!0),b())},pA=function(a,b,c){var d=sA(a);return Bb(d,b,c)},tA=function(a,b,c,d){var e=sA(a),f=Bb(e,b,d);e[b]=c(f)},qA=function(a,b,c){sA(a)[b]=c},sA=function(a){Ei.hasOwnProperty("autoEventsSettings")||(Ei.autoEventsSettings={});var b=Ei.autoEventsSettings;b.hasOwnProperty(a)||(b[a]={});return b[a]},uA=function(a,b,c){var d={event:b,"gtm.element":a,"gtm.elementClasses":Oc(a,"className"),"gtm.elementId":a["for"]||
Fc(a,"id")||"","gtm.elementTarget":a.formTarget||Oc(a,"target")||""};c&&(d["gtm.triggers"]=c.join(","));d["gtm.elementUrl"]=(a.attributes&&a.attributes.formaction?a.formAction:"")||a.action||Oc(a,"href")||a.src||a.code||a.codebase||"";return d};
var wA=function(a,b,c){if(!a.elements)return 0;for(var d=b.dataset[c],e=0,f=1;e<a.elements.length;e++){var g=a.elements[e];if(vA(g)){if(g.dataset[c]===d)return f;f++}}return 0},xA=function(a){if(a.form){var b;return((b=a.form)==null?0:b.tagName)?a.form:E.getElementById(a.form)}return Ic(a,["form"],100)},vA=function(a){var b=a.tagName.toLowerCase();return yA.indexOf(b)<0||b==="input"&&zA.indexOf(a.type.toLowerCase())>=0?!1:!0},yA=["input","select","textarea"],zA=["button","hidden","image","reset",
"submit"];
function DA(a){}DA.F="internal.addFormAbandonmentListener";function EA(a,b,c,d){}
EA.F="internal.addFormData";var FA={},GA=[],HA={},IA=0,JA=0;
var LA=function(){Dc(E,"change",function(a){for(var b=0;b<GA.length;b++)GA[b](a)});Dc(C,"pagehide",function(){KA()})},KA=function(){z(HA,function(a,b){var c=FA[a];c&&z(b,function(d,e){MA(e,c)})})},PA=function(a,b){var c=""+a;if(FA[c])FA[c].push(b);else{var d=[b];FA[c]=d;var e=HA[c];e||(e={},HA[c]=e);GA.push(function(f){var g=f.target;if(g){var k=xA(g);if(k){var m=NA(k,"gtmFormInteractId",function(){return IA++}),n=NA(g,"gtmFormInteractFieldId",function(){return JA++}),p=e[m];p?(p.Sb&&(C.clearTimeout(p.Sb),
p.Bb.dataset.gtmFormInteractFieldId!==n&&MA(p,d)),p.Bb=g,OA(p,d,a)):(e[m]={form:k,Bb:g,cf:0,Sb:null},OA(e[m],d,a))}}})}},MA=function(a,b){var c=a.form,d=a.Bb,e=uA(c,"gtm.formInteract"),f=c.action;f&&f.tagName&&(f=c.cloneNode(!1).action);e["gtm.elementUrl"]=f;e["gtm.interactedFormName"]=c.getAttribute("name");e["gtm.interactedFormLength"]=c.length;e["gtm.interactedFormField"]=d;e["gtm.interactedFormFieldPosition"]=wA(c,d,"gtmFormInteractFieldId");e["gtm.interactSequenceNumber"]=a.cf;e["gtm.interactedFormFieldId"]=
d.id;e["gtm.interactedFormFieldName"]=d.getAttribute("name");e["gtm.interactedFormFieldType"]=d.getAttribute("type");for(var g=0;g<b.length;g++)b[g](e);a.cf++;a.Sb=null},OA=function(a,b,c){c?a.Sb=C.setTimeout(function(){MA(a,b)},c):MA(a,b)},NA=function(a,b,c){var d=a.dataset[b];if(d)return d;d=String(c());return a.dataset[b]=d};
function QA(a,b){K(this.getName(),["callback:!Fn","options:?*"],arguments);var c=H(b)||{},d=Number(c.interval);if(!d||d<0)d=0;var e=H(a),f;pA("pix.fil","init")?f=pA("pix.fil","reg"):(LA(),f=PA,qA("pix.fil","reg",PA),qA("pix.fil","init",!0));f(d,e);}QA.F="internal.addFormInteractionListener";
var SA=function(a,b,c){var d=uA(a,"gtm.formSubmit");d["gtm.interactedFormName"]=a.getAttribute("name");d["gtm.interactedFormLength"]=a.length;d["gtm.willOpenInCurrentWindow"]=!b&&RA(a);c&&c.value&&(d["gtm.formSubmitButtonText"]=c.value);var e=a.action;e&&e.tagName&&(e=a.cloneNode(!1).action);d["gtm.elementUrl"]=e;d["gtm.formCanceled"]=b;return d},TA=function(a,b){var c=pA("pix.fsl",a?"nv.mwt":"mwt",0);C.setTimeout(b,c)},UA=function(a,b,c,d,e){var f=pA("pix.fsl",c?"nv.mwt":"mwt",0),g=pA("pix.fsl",
c?"runIfCanceled":"runIfUncanceled",[]);if(!g.length)return!0;var k=SA(a,c,e);V(121);if(k["gtm.elementUrl"]==="https://www.facebook.com/tr/")return V(122),!0;if(d&&f){for(var m=Lb(b,g.length),n=0;n<g.length;++n)g[n](k,m);return m.done}for(var p=0;p<g.length;++p)g[p](k,function(){});return!0},VA=function(){var a=[],b=function(c){return qb(a,function(d){return d.form===c})};return{store:function(c,d){var e=b(c);e?e.button=d:a.push({form:c,button:d})},get:function(c){var d=b(c);return d?d.button:null}}},
RA=function(a){var b=Oc(a,"target");return b&&b!=="_self"&&b!=="_parent"&&b!=="_top"?!1:!0},WA=function(){var a=VA(),b=HTMLFormElement.prototype.submit;Dc(E,"click",function(c){var d=c.target;if(d){var e=Ic(d,["button","input"],100);if(e&&(e.type==="submit"||e.type==="image")&&e.name&&Fc(e,"value")){var f=xA(e);f&&a.store(f,e)}}},!1);Dc(E,"submit",function(c){var d=c.target;if(!d)return c.returnValue;var e=c.defaultPrevented||c.returnValue===!1,f=RA(d)&&!e,g=a.get(d),k=!0,m=function(){if(k){var n,
p={};g&&(n=E.createElement("input"),n.type="hidden",n.name=g.name,n.value=g.value,d.appendChild(n),g.getAttribute("formaction")&&(p.action=d.getAttribute("action"),lc(d,ec(g.getAttribute("formaction")))),g.hasAttribute("formenctype")&&(p.enctype=d.getAttribute("enctype"),d.setAttribute("enctype",g.getAttribute("formenctype"))),g.hasAttribute("formmethod")&&(p.method=d.getAttribute("method"),d.setAttribute("method",g.getAttribute("formmethod"))),g.hasAttribute("formvalidate")&&(p.validate=d.getAttribute("validate"),
d.setAttribute("validate",g.getAttribute("formvalidate"))),g.hasAttribute("formtarget")&&(p.target=d.getAttribute("target"),d.setAttribute("target",g.getAttribute("formtarget"))));b.call(d);n&&(d.removeChild(n),p.hasOwnProperty("action")&&lc(d,ec(p.action)),p.hasOwnProperty("enctype")&&d.setAttribute("enctype",p.enctype),p.hasOwnProperty("method")&&d.setAttribute("method",p.method),p.hasOwnProperty("validate")&&d.setAttribute("validate",p.validate),p.hasOwnProperty("target")&&d.setAttribute("target",
p.target))}};if(UA(d,m,e,f,g))return k=!1,c.returnValue;TA(e,m);e||(c.preventDefault&&c.preventDefault(),c.returnValue=!1);return!1},!1);HTMLFormElement.prototype.submit=function(){var c=this,d=!0,e=function(){d&&b.call(c)};UA(c,e,!1,RA(c))?(b.call(c),d=!1):TA(!1,e)}};
function XA(a,b){K(this.getName(),["callback:!Fn","options:?PixieMap"],arguments);var c=H(b,this.D,1)||{},d=c.waitForCallbacks,e=c.waitForCallbacksTimeout,f=c.checkValidation;e=e&&e>0?e:2E3;var g=H(a,this.D,1);if(d){var k=function(n){return Math.max(e,n)};tA("pix.fsl","mwt",k,0);f||tA("pix.fsl","nv.mwt",k,0)}var m=function(n){n.push(g);return n};tA("pix.fsl","runIfUncanceled",m,[]);f||tA("pix.fsl","runIfCanceled",m,[]);pA("pix.fsl",
"init")||(WA(),qA("pix.fsl","init",!0));}XA.F="internal.addFormSubmitListener";
function bB(a){}bB.F="internal.addGaSendListener";function cB(a){if(!a)return{};var b=a.Ml;return dx(b.type,b.index,b.name)}function dB(a){return a?{originatingEntity:cB(a)}:{}};function lB(a){var b=Ei.zones;return b?b.getIsAllowedFn(ck(),a):function(){return!0}}
function mB(){Iw(jk(),function(a){var b=a.originalEventData["gtm.uniqueEventId"],c=Ei.zones;return c?c.isActive(ck(),b):!0});Gw(jk(),function(a){var b,c;b=a.entityId;c=a.securityGroups;return lB(Number(a.originalEventData["gtm.uniqueEventId"]))(b,c)})};var nB=function(a,b){this.tagId=a;this.Be=b};
function oB(a,b){var c=this,d;return d}
oB.F="internal.loadGoogleTag";function pB(a){return new Xc("",function(b){var c=this.evaluate(b);if(c instanceof Xc)return new Xc("",function(){var d=ya.apply(0,arguments),e=this,f=Ta(mA(this),null);f.eventId=a.eventId;f.priorityId=a.priorityId;f.originalEventData=a.originalEventData;var g=d.map(function(m){return e.evaluate(m)}),k=Ia(this.D);k.j=f;return c.jb.apply(c,[k].concat(pa(g)))})})};function qB(a,b,c){var d=this;}qB.F="internal.addGoogleTagRestriction";var rB={},sB=[];
function zB(a,b){}
zB.F="internal.addHistoryChangeListener";function AB(a,b,c){}AB.R="addWindowEventListener";function BB(a,b){return!0}BB.R="aliasInWindow";function CB(a,b,c){}CB.F="internal.appendRemoteConfigParameter";function DB(a){var b;return b}DB.R="callInWindow";function EB(a){}EB.R="callLater";function FB(a){}FB.F="callOnDomReady";function GB(a){}GB.F="callOnWindowLoad";function HB(a,b){var c;return c}HB.F="internal.computeGtmParameter";function IB(a,b){var c=this;}IB.F="internal.consentScheduleFirstTry";function JB(a,b){var c=this;}JB.F="internal.consentScheduleRetry";function KB(a){var b;return b}KB.F="internal.copyFromCrossContainerData";function LB(a,b){var c;var d=ed(c,this.D,Fb(mA(this).hb(),"__cvt_")?2:1);d===void 0&&c!==void 0&&V(45);return d}LB.R="copyFromDataLayer";
function MB(a){var b=void 0;return b}MB.F="internal.copyFromDataLayerCache";function NB(a){var b;return b}NB.R="copyFromWindow";function OB(a){var b=void 0;return ed(b,this.D,1)}OB.F="internal.copyKeyFromWindow";var PB=function(a,b,c){this.eventName=b;this.m=c;this.j={};this.isAborted=!1;this.target=a;this.metadata=Ta(c.eventMetadata||{},{})};PB.prototype.copyToHitData=function(a,b,c){var d=W(this.m,a);d===void 0&&(d=b);if(d!==void 0&&c!==void 0&&l(d)&&U(67))try{d=c(d)}catch(e){}d!==void 0&&(this.j[a]=d)};var Ht=function(a,b,c){var d=Js(a.target.destinationId);return d&&d[b]!==void 0?d[b]:c};function QB(a,b){var c;return c}QB.F="internal.copyPreHit";function RB(a,b){var c=null;return ed(c,this.D,2)}RB.R="createArgumentsQueue";function SB(a){return ed(function(c){var d=mx();if(typeof c==="function")d(function(){c(function(f,g,k){var m=mx(),n=m&&m.getByName&&
m.getByName(f);return Wm(C.gaplugins.Linker,n).decorate(g,k)})});else if(Array.isArray(c)){var e=String(c[0]).split(".");b[e.length===1?e[0]:e[1]]&&d.apply(null,c)}else if(c==="isLoaded")return!!d.loaded},this.D,1)}SB.F="internal.createGaCommandQueue";function TB(a){return ed(function(){if(!nb(e.push))throw Error("Object at "+a+" in window is not an array.");e.push.apply(e,Array.prototype.slice.call(arguments,0))},this.D,Fb(mA(this).hb(),
"__cvt_")?2:1)}TB.R="createQueue";function UB(a,b){var c=null;return c}UB.F="internal.createRegex";function VB(){var a={};return a};function WB(a){}WB.F="internal.declareConsentState";function XB(a){var b="";return b}XB.F="internal.decodeUrlHtmlEntities";function YB(a,b,c){var d;return d}YB.F="internal.decorateUrlWithGaCookies";function ZB(a){var b;M(this,"detect_user_provided_data","auto");var c=H(a)||{},d=it({zd:!!c.includeSelector,Bd:!!c.includeVisibility,Ee:c.excludeElementSelectors,zb:c.fieldFilters,hg:!!c.selectMultipleElements});b=new Ya;var e=new Wa;b.set("elements",e);for(var f=d.elements,g=0;g<f.length;g++)e.push($B(f[g]));d.Xh!==void 0&&b.set("preferredEmailElement",$B(d.Xh));b.set("status",d.status);
return b}
var $B=function(a){var b=new Ya;b.set("userData",a.X);b.set("tagName",a.tagName);a.querySelector!==void 0&&b.set("querySelector",a.querySelector);a.isVisible!==void 0&&b.set("isVisible",a.isVisible);if(U(27)){}else switch(a.type){case gt.qc:b.set("type","email")}return b};ZB.F="internal.detectUserProvidedData";function aC(){}aC.F="internal.disableDeferringCustomEvents";
function dC(a,b){return b}dC.F="internal.enableAutoEventOnClick";
function lC(a,b){return b}lC.F="internal.enableAutoEventOnElementVisibility";function mC(){}mC.F="internal.enableAutoEventOnError";var nC={},oC=[],pC={},qC=0,rC=0;
var tC=function(){z(pC,function(a,b){var c=nC[a];c&&z(b,function(d,e){sC(e,c)})})},wC=function(a,b){var c=""+b;if(nC[c])nC[c].push(a);else{var d=[a];nC[c]=d;var e=pC[c];e||(e={},pC[c]=e);oC.push(function(f){var g=f.target;if(g){var k=xA(g);if(k){var m=uC(k,"gtmFormInteractId",function(){return qC++}),n=uC(g,"gtmFormInteractFieldId",function(){return rC++});if(m!==null&&n!==null){var p=e[m];p?(p.Sb&&(C.clearTimeout(p.Sb),p.Bb.getAttribute("data-gtm-form-interact-field-id")!==n&&sC(p,d)),p.Bb=g,vC(p,
d,b)):(e[m]={form:k,Bb:g,cf:0,Sb:null},vC(e[m],d,b))}}}})}},sC=function(a,b){var c=a.form,d=a.Bb,e=uA(c,"gtm.formInteract",b),f=c.action;f&&f.tagName&&(f=c.cloneNode(!1).action);e["gtm.elementUrl"]=f;e["gtm.interactedFormName"]=c.getAttribute("name")!=null?c.getAttribute("name"):void 0;e["gtm.interactedFormLength"]=c.length;e["gtm.interactedFormField"]=d;e["gtm.interactedFormFieldId"]=d.id;e["gtm.interactedFormFieldName"]=d.getAttribute("name")!=null?d.getAttribute("name"):void 0;e["gtm.interactedFormFieldPosition"]=
wA(c,d,"gtmFormInteractFieldId");e["gtm.interactedFormFieldType"]=d.getAttribute("type")!=null?d.getAttribute("type"):void 0;e["gtm.interactSequenceNumber"]=a.cf;cz(e);a.cf++;a.Sb=null},vC=function(a,b,c){c?a.Sb=C.setTimeout(function(){sC(a,b)},c):sC(a,b)},uC=function(a,b,c){var d;try{if(d=a.dataset[b])return d;d=String(c());a.dataset[b]=d}catch(e){d=null}return d};
function xC(a,b){var c=this;K(this.getName(),["options:?PixieMap","triggerId:?*"],arguments);iA([function(){M(c,"detect_form_interaction_events")}]);b=oA(b);var d=a&&Number(a.get("interval"));d>0&&isFinite(d)||(d=0);if(pA("fil","init",!1)){var e=pA("fil","reg");if(e)e(b,d);else throw Error("Failed to register trigger: "+b);}else Dc(E,"change",function(f){for(var g=0;g<oC.length;g++)oC[g](f)}),Dc(C,"pagehide",function(){tC()}),
wC(b,d),qA("fil","reg",wC),qA("fil","init",!0);return b}xC.F="internal.enableAutoEventOnFormInteraction";
var yC=function(a,b,c,d,e){var f=pA("fsl",c?"nv.mwt":"mwt",0),g;g=c?pA("fsl","nv.ids",[]):pA("fsl","ids",[]);if(!g.length)return!0;var k=uA(a,"gtm.formSubmit",g),m=a.action;m&&m.tagName&&(m=a.cloneNode(!1).action);V(121);if(m==="https://www.facebook.com/tr/")return V(122),!0;k["gtm.elementUrl"]=m;k["gtm.formCanceled"]=c;a.getAttribute("name")!=null&&(k["gtm.interactedFormName"]=a.getAttribute("name"));e&&(k["gtm.formSubmitElement"]=e,k["gtm.formSubmitElementText"]=e.value);if(d&&f){if(!bz(k,dz(b,
f),f))return!1}else bz(k,function(){},f||2E3);return!0},zC=function(){var a=[],b=function(c){return qb(a,function(d){return d.form===c})};return{store:function(c,d){var e=b(c);e?e.button=d:a.push({form:c,button:d})},get:function(c){var d=b(c);if(d)return d.button}}},AC=function(a){var b=a.target;return b&&b!=="_self"&&b!=="_parent"&&b!=="_top"?!1:!0},BC=function(){var a=zC(),b=HTMLFormElement.prototype.submit;Dc(E,"click",function(c){var d=c.target;if(d){var e=Ic(d,["button","input"],100);if(e&&(e.type===
"submit"||e.type==="image")&&e.name&&Fc(e,"value")){var f=xA(e);f&&a.store(f,e)}}},!1);Dc(E,"submit",function(c){var d=c.target;if(!d)return c.returnValue;var e=c.defaultPrevented||c.returnValue===!1,f=AC(d)&&!e,g=a.get(d),k=!0;if(yC(d,function(){if(k){var m=null,n={};g&&(m=E.createElement("input"),m.type="hidden",m.name=g.name,m.value=g.value,d.appendChild(m),g.hasAttribute("formaction")&&(n.action=d.getAttribute("action"),lc(d,ec(g.getAttribute("formaction")))),g.hasAttribute("formenctype")&&(n.enctype=
d.getAttribute("enctype"),d.setAttribute("enctype",g.getAttribute("formenctype"))),g.hasAttribute("formmethod")&&(n.method=d.getAttribute("method"),d.setAttribute("method",g.getAttribute("formmethod"))),g.hasAttribute("formvalidate")&&(n.validate=d.getAttribute("validate"),d.setAttribute("validate",g.getAttribute("formvalidate"))),g.hasAttribute("formtarget")&&(n.target=d.getAttribute("target"),d.setAttribute("target",g.getAttribute("formtarget"))));b.call(d);m&&(d.removeChild(m),n.hasOwnProperty("action")&&
lc(d,n.action),n.hasOwnProperty("enctype")&&d.setAttribute("enctype",n.enctype),n.hasOwnProperty("method")&&d.setAttribute("method",n.method),n.hasOwnProperty("validate")&&d.setAttribute("validate",n.validate),n.hasOwnProperty("target")&&d.setAttribute("target",n.target))}},e,f,g))k=!1;else return e||(c.preventDefault&&c.preventDefault(),c.returnValue=!1),!1;return c.returnValue},!1);HTMLFormElement.prototype.submit=function(){var c=this,d=!0;yC(c,function(){d&&b.call(c)},!1,AC(c))&&(b.call(c),d=
!1)}};
function CC(a,b){var c=this;K(this.getName(),["options:?PixieMap","triggerId:?*"],arguments);var d=a&&a.get("waitForTags");iA([function(){M(c,"detect_form_submit_events",{waitForTags:!!d})}]);var e=a&&a.get("checkValidation");b=oA(b);if(d){var f=Number(a.get("waitForTagsTimeout"));f>0&&isFinite(f)||(f=2E3);var g=function(m){return Math.max(f,m)};tA("fsl","mwt",g,0);e||tA("fsl","nv.mwt",g,0)}var k=function(m){m.push(b);return m};
tA("fsl","ids",k,[]);e||tA("fsl","nv.ids",k,[]);pA("fsl","init",!1)||(BC(),qA("fsl","init",!0));return b}CC.F="internal.enableAutoEventOnFormSubmit";
function HC(){var a=this;}HC.F="internal.enableAutoEventOnGaSend";var IC={},JC=[];
function QC(a,b){var c=this;return b}QC.F="internal.enableAutoEventOnHistoryChange";var RC=["http://","https://","javascript:","file://"];
function VC(a,b){var c=this;return b}VC.F="internal.enableAutoEventOnLinkClick";var WC,XC;
function hD(a,b){var c=this;return b}hD.F="internal.enableAutoEventOnScroll";function iD(a){return function(){if(a.limit&&a.Rh>=a.limit)a.cg&&C.clearInterval(a.cg);else{a.Rh++;var b=Ab();cz({event:a.eventName,"gtm.timerId":a.cg,"gtm.timerEventNumber":a.Rh,"gtm.timerInterval":a.interval,"gtm.timerLimit":a.limit,"gtm.timerStartTime":a.pk,"gtm.timerCurrentTime":b,"gtm.timerElapsedTime":b-a.pk,"gtm.triggers":a.on})}}}
function jD(a,b){
return b}jD.F="internal.enableAutoEventOnTimer";var hc=la(["data-gtm-yt-inspected-"]),lD=["www.youtube.com","www.youtube-nocookie.com"],mD,nD=!1;
function xD(a,b){var c=this;return b}xD.F="internal.enableAutoEventOnYouTubeActivity";function yD(a,b){K(this.getName(),["booleanExpression:!string","context:?PixieMap"],arguments);var c=b?H(b):{},d=a,e=!1;var f=JSON.parse(d);if(!f)throw Error("Invalid boolean expression string was given.");e=Sg(f,c);return e}yD.F="internal.evaluateBooleanExpression";var zD;function AD(a){var b=!1;return b}AD.F="internal.evaluateMatchingRules";
var BD=function(a){switch(a){case "page_view":return[gs,fs,Yr,Gu,lv,Zu,Nu,Vu];case "call_conversion":return[fs,Gu];case "conversion":return[cs,fs,hv,rv,ev,qv,ov,nv,mv,lv,Zu,Yu,Wu,Uu,Ku,Ju,Xu,Nu,dv,Tu,Su,Qu,gv,cv,Mu,gs,ds,bv,Ou,kv,Vu,fv,Iu,av,Ru,iv,jv,Lu];case "landing_page":return[cs,fs,hv,rv,Zu,es,Nu,dv,gv,ds,gs,bv,kv,Vu,fv,Iu,Lu];case "remarketing":return[cs,fs,hv,rv,ev,qv,ov,nv,mv,lv,Zu,Yu,Uu,Xu,Nu,dv,Tu,gv,ds,gs,bv,Ou,kv,Vu,fv,Iu,iv,Lu];case "user_data_lead":return[cs,fs,hv,rv,qv,lv,Zu,Xu,Nu,
es,dv,Qu,gv,ds,gs,bv,Ou,kv,Vu,fv,Iu,Lu];case "user_data_web":return[cs,fs,hv,rv,qv,lv,Zu,Xu,Nu,es,dv,Qu,gv,ds,gs,bv,Ou,kv,Vu,fv,Iu,Lu];default:return[cs,fs,hv,rv,ev,qv,ov,nv,mv,lv,Zu,Yu,Wu,Uu,Ku,Ju,Xu,Nu,dv,Tu,Su,Qu,gv,cv,Mu,ds,gs,bv,Ou,kv,Vu,fv,Iu,av,Ru,iv,jv,Lu]}},CD=function(a){for(var b=BD(a.metadata.hit_type),c=0;c<b.length&&(b[c](a),!a.isAborted);c++);},DD=function(a,b,c,d){var e=new PB(b,c,d);e.metadata.hit_type=a;e.metadata.speculative=!0;e.metadata.event_start_timestamp_ms=Ab();e.metadata.speculative_in_message=
d.eventMetadata.speculative;return e},ED=function(a,b,c,d){function e(t,v){for(var u=h(k),w=u.next();!w.done;w=u.next()){var x=w.value;x.isAborted=!1;x.metadata.speculative=!0;x.metadata.consent_updated=!0;x.metadata.event_start_timestamp_ms=Ab();x.metadata.consent_event_id=t;x.metadata.consent_priority_id=v}}function f(t){for(var v={},u=0;u<k.length;v={Sa:void 0},u++)if(v.Sa=k[u],!t||t(v.Sa.metadata.hit_type))if(!v.Sa.metadata.consent_updated||v.Sa.metadata.hit_type==="page_view"||X(q))CD(k[u]),
v.Sa.metadata.speculative||v.Sa.isAborted||(Ew(v.Sa),v.Sa.metadata.hit_type==="page_view"&&U(23)&&v.Sa.j[P.g.Hf]===void 0&&r===void 0&&(r=Io(Co.we,function(w){return function(){X(P.g.N)&&(w.Sa.metadata.user_id_updated=!0,w.Sa.metadata.consent_updated=!1,w.Sa.j[P.g.Tb]=void 0,f(function(x){return x==="page_view"}),w.Sa.metadata.user_id_updated=!1,Jo(Co.we,r),r=void 0)}}(v))))}var g=d.isGtmEvent&&a===""?{id:"",prefix:"",destinationId:"",ids:[]}:Jl(a,d.isGtmEvent);if(g){var k=[];if(d.eventMetadata.hit_type_override){var m=
d.eventMetadata.hit_type_override;Array.isArray(m)||(m=[m]);for(var n=0;n<m.length;n++){var p=DD(m[n],g,b,d);p.metadata.speculative=!1;k.push(p)}}else b===P.g.aa&&(U(18)?k.push(DD("page_view",g,b,d)):k.push(DD("landing_page",g,b,d))),k.push(DD("conversion",g,b,d)),k.push(DD("user_data_lead",g,b,d)),k.push(DD("user_data_web",g,b,d)),k.push(DD("remarketing",g,b,d));var q=[P.g.O,P.g.N],r=void 0;Al(function(){f();U(24)&&(X([P.g.sa])||zl(function(t){e(t.consentEventId,t.consentPriorityId);f(function(v){return v===
"remarketing"})},[P.g.sa]));X(q)||zl(function(t){e(t.consentEventId,t.consentPriorityId);f()},q)},q)}};function hE(){return $n(7)&&$n(9)&&$n(10)};function cF(a,b,c,d){}cF.F="internal.executeEventProcessor";function dF(a){var b;return ed(b,this.D,1)}dF.F="internal.executeJavascriptString";function eF(a){var b;return b};function fF(a){var b={};return ed(b)}fF.F="internal.getAdsCookieWritingOptions";function gF(a){var b=!1;return b}gF.F="internal.getAllowAdPersonalization";function hF(a,b){b=b===void 0?!0:b;var c;return c}hF.F="internal.getAuid";var iF=null;
function jF(){var a=new Ya;M(this,"read_container_data"),U(41)&&iF?a=iF:(a.set("containerId",'AW-16541267414'),a.set("version",'1'),a.set("environmentName",''),a.set("debugMode",Tf),a.set("previewMode",Uf.rk),a.set("environmentMode",Uf.Il),a.set("firstPartyServing",Zi()||Mi),a.set("containerUrl",sc),a.Ma(),U(41)&&(iF=a));return a}
jF.R="getContainerVersion";function kF(a,b){b=b===void 0?!0:b;var c;return c}kF.R="getCookieValues";function lF(){return jl()}lF.F="internal.getCountryCode";function mF(){var a=[];a=fk();return ed(a)}mF.F="internal.getDestinationIds";function nF(a){var b=new Ya;return b}nF.F="internal.getDeveloperIds";function oF(a,b){var c=null;return c}oF.F="internal.getElementAttribute";function pF(a){var b=null;return b}pF.F="internal.getElementById";function qF(a){var b="";return b}qF.F="internal.getElementInnerText";function rF(a,b){var c=null;return c}rF.F="internal.getElementProperty";function sF(a){var b;return b}sF.F="internal.getElementValue";function tF(a){var b=0;return b}tF.F="internal.getElementVisibilityRatio";function uF(a){var b=null;return b}uF.F="internal.getElementsByCssSelector";
function vF(a){var b;K(this.getName(),["keyPath:!string"],arguments);M(this,"read_event_data",a);var c;a:{var d=a,e=mA(this).originalEventData;if(e){for(var f=e,g={},k={},m={},n=[],p=d.split("\\\\"),q=0;q<p.length;q++){for(var r=p[q].split("\\."),t=0;t<r.length;t++){for(var v=r[t].split("."),u=0;u<v.length;u++)n.push(v[u]),u!==v.length-1&&n.push(m);t!==r.length-1&&n.push(k)}q!==p.length-1&&n.push(g)}for(var w=[],x="",y=h(n),A=y.next();!A.done;A=
y.next()){var B=A.value;B===m?(w.push(x),x=""):x=B===g?x+"\\":B===k?x+".":x+B}x&&w.push(x);for(var D=h(w),G=D.next();!G.done;G=D.next()){if(f==null){c=void 0;break a}f=f[G.value]}c=f}else c=void 0}b=ed(c,this.D,1);return b}vF.F="internal.getEventData";var wF={};wF.enableAWFledge=U(28);wF.enableAdsConversionValidation=U(14);wF.enableAutoPhoneAndAddressDetection=U(26);wF.enableAutoPiiOnPhoneAndAddress=U(27);wF.enableCachedEcommerceData=U(34);wF.enableCloudRecommentationsErrorLogging=U(35);wF.enableCloudRecommentationsSchemaIngestion=U(36);wF.enableCloudRetailInjectPurchaseMetadata=U(38);wF.enableCloudRetailLogging=U(37);wF.enableCloudRetailPageCategories=U(39);wF.enableConsentDisclosureActivity=U(40);wF.enableDCFledge=U(45);wF.enableDecodeUri=U(67);
wF.enableDeferAllEnhancedMeasurement=U(46);wF.enableDmaBlockDisclosure=U(49);wF.enableFormSkipValidation=U(63);wF.enableGtmEcModeFix=U(72);wF.enableMerchantRenameForBasketData=U(82);wF.enableUrlDecodeEventUsage=U(103);wF.enableZoneConfigInChildContainers=U(105);wF.useEnableAutoEventOnFormApis=U(116);wF.autoPiiEligible=ol();function xF(){return ed(wF)}xF.F="internal.getFlags";function yF(){return new bd(Kz)}yF.F="internal.getHtmlId";function zF(a){var b;return b}zF.F="internal.getIframingState";function AF(a,b){var c={};return ed(c)}AF.F="internal.getLinkerValueFromLocation";function BF(){var a=new Ya;return a}BF.F="internal.getPrivacyStrings";function CF(a,b){var c;K(this.getName(),["targetId:!string","name:!string"],arguments);var d=Js(a)||{};c=ed(d[b],this.D);return c}CF.F="internal.getProductSettingsParameter";function DF(a,b){var c;return c}DF.R="getQueryParameters";function EF(a,b){var c;return c}EF.R="getReferrerQueryParameters";function FF(a){var b="";return b}FF.R="getReferrerUrl";function GF(){return kl()}GF.F="internal.getRegionCode";function HF(a,b){var c;return c}HF.F="internal.getRemoteConfigParameter";function IF(){var a=new Ya;a.set("width",0);a.set("height",0);return a}IF.F="internal.getScreenDimensions";function JF(){var a="";return a}JF.F="internal.getTopSameDomainUrl";function KF(){var a="";return a}KF.F="internal.getTopWindowUrl";function LF(a){var b="";return b}LF.R="getUrl";function MF(){M(this,"get_user_agent");return pc.userAgent}MF.F="internal.getUserAgent";function UF(){return C.gaGlobal=C.gaGlobal||{}}function VF(){var a=UF();a.hid=a.hid||rb();return a.hid}function WF(a,b){var c=UF();if(c.vid===void 0||b&&!c.from_cookie)c.vid=a,c.from_cookie=b};function rG(a){if(Kt(a)||Zi())a.j[P.g.jj]=kl()||jl();!Kt(a)&&Zi()&&(a.j[P.g.sj]="::")}function sG(a){if(U(64)&&Zi()){gs(a);hs(a,"cpf",W(a.m,P.g.Ha));var b=W(a.m,P.g.Yb);hs(a,"cu",b===!0?1:b===!1?0:void 0);hs(a,"cf",W(a.m,P.g.Xa));hs(a,"cd",bp(W(a.m,P.g.Oa),W(a.m,P.g.sb)))}};var IG=function(a){this.H=a;this.j=""},JG=function(a,b){a.C=b;return a},KG=function(a,b){b=a.j+b;for(var c=b.indexOf("\n\n");c!==-1;){var d=a,e;a:{var f=h(b.substring(0,c).split("\n")),g=f.next().value,k=f.next().value;if(g.indexOf("event: message")===0&&k.indexOf("data: ")===0)try{e=JSON.parse(k.substring(k.indexOf(":")+1));break a}catch(I){}e=void 0}var m=d,n=e;if(n){var p=n.send_pixel,q=n.options,r=m.H;if(p){var t=p||[];if(Array.isArray(t))for(var v=Sa(q)?q:{},u=h(t),w=u.next();!w.done;w=u.next())r(w.value,
v)}var x=n.create_iframe,y=n.options,A=m.C;if(x&&A){var B=x||[];if(Array.isArray(B))for(var D=Sa(y)?y:{},G=h(B),J=G.next();!J.done;J=G.next())A(J.value,D)}}b=b.substring(c+2);c=b.indexOf("\n\n")}a.j=b};function LG(a){var b=a.search;return a.protocol+"//"+a.hostname+a.pathname+(b?b+"&richsstsse":"?richsstsse")};var xH=window,yH=document,zH=function(a){var b=xH._gaUserPrefs;if(b&&b.ioo&&b.ioo()||yH.documentElement.hasAttribute("data-google-analytics-opt-out")||a&&xH["ga-disable-"+a]===!0)return!0;try{var c=xH.external;if(c&&c._gaUserPrefs&&c._gaUserPrefs=="oo")return!0}catch(p){}for(var d=[],e=String(yH.cookie).split(";"),f=0;f<e.length;f++){var g=e[f].split("="),k=g[0].replace(/^\s*|\s*$/g,"");if(k&&k=="AMP_TOKEN"){var m=g.slice(1).join("=").replace(/^\s*|\s*$/g,"");m&&(m=decodeURIComponent(m));d.push(m)}}for(var n=
0;n<d.length;n++)if(d[n]=="$OPT_OUT")return!0;return yH.getElementById("__gaOptOutExtension")?!0:!1};function KH(a){z(a,function(c){c.charAt(0)==="_"&&delete a[c]});var b=a[P.g.fb]||{};z(b,function(c){c.charAt(0)==="_"&&delete b[c]})}function nI(a,b){}function oI(a,b){var c=function(){};return c}
function pI(a,b,c){};var qI=oI;function sI(a,b,c){var d=this;}sI.F="internal.gtagConfig";function tI(){var a={};return a};
function vI(a,b){}vI.R="gtagSet";function wI(){var a={};return a};function xI(a,b){}xI.R="injectHiddenIframe";var yI=Yz();
function zI(a,b,c,d,e){var f=this;}zI.F="internal.injectHtml";var DI={};
function FI(a,b,c,d){}var GI={dl:1,id:1},HI={};
function II(a,b,c,d){}FI.R="injectScript";II.F="internal.injectScript";function JI(a){var b=!0;return b}JI.R="isConsentGranted";function KI(a){var b=!1;return b}KI.F="internal.isDebugMode";function LI(){return ml()}LI.F="internal.isDmaRegion";function MI(a){var b=!1;return b}MI.F="internal.isEntityInfrastructure";function NI(){var a=Yg(function(b){mA(this).log("error",b)});a.R="JSON";return a};function OI(a){var b=void 0;return ed(b)}OI.F="internal.legacyParseUrl";function PI(){return!1}
var QI={getItem:function(a){var b=null;return b},setItem:function(a,b){return!1},removeItem:function(a){}};function RI(){}RI.R="logToConsole";function SI(a,b){}SI.F="internal.mergeRemoteConfig";function TI(a,b,c){c=c===void 0?!0:c;var d=[];return ed(d)}TI.F="internal.parseCookieValuesFromString";function UI(a){var b=void 0;return b}UI.R="parseUrl";function VI(a){}VI.F="internal.processAsNewEvent";function WI(a,b,c){var d;return d}WI.F="internal.pushToDataLayer";function XI(a){var b=!1;K(this.getName(),["permission:!string"],[a]);for(var c=Array.prototype.slice.call(arguments,0),d=0;d<c.length;++d)c[d]=H(c[d],this.D,1);c.unshift(this);try{M.apply(null,c),b=!0}catch(e){return!1}return b}XI.R="queryPermission";function YI(){var a="";return a}YI.R="readCharacterSet";function ZI(){return Di.kb}ZI.F="internal.readDataLayerName";function $I(){var a="";return a}$I.R="readTitle";function aJ(a,b){var c=this;K(this.getName(),["destinationId:!string","callback:!Fn"],arguments),Cs(a,function(d){b.invoke(c.D,ed(d,c.D,1))});}aJ.F="internal.registerCcdCallback";function bJ(a){return!0}
bJ.F="internal.registerDestination";var cJ=["config","event","get","set"];function dJ(a,b,c){}dJ.F="internal.registerGtagCommandListener";function eJ(a,b){var c=!1;return c}eJ.F="internal.removeDataLayerEventListener";function fJ(a,b){}
fJ.F="internal.removeFormData";function gJ(){}gJ.R="resetDataLayer";function hJ(a,b,c,d){K(this.getName(),["destinationIds:!*","eventName:!*","eventParameters:?PixieMap","messageContext:?PixieMap"],arguments);var e=c?H(c):{},f=H(a);Array.isArray(f)||(f=[f]);b=String(b);var g=d?H(d):{},k=mA(this);g.originatingEntity=cB(k);var m=f;for(var n=0;n<m.length;n++){var p=m[n];if(typeof p==="string"){var q=
{};Ta(e,q);var r={};Ta(g,r);var t=hy(p,b,q);jy(t,g.eventId||k.eventId,r)}}}hJ.F="internal.sendGtagEvent";function iJ(a,b,c){}iJ.R="sendPixel";function jJ(a,b){}jJ.F="internal.setAnchorHref";function kJ(a){}kJ.F="internal.setContainerConsentDefaults";function lJ(a,b,c,d){var e=this;d=d===void 0?!0:d;var f=!1;return f}lJ.R="setCookie";function mJ(a){}mJ.F="internal.setCorePlatformServices";function nJ(a,b){}nJ.F="internal.setDataLayerValue";function oJ(a){}oJ.R="setDefaultConsentState";function pJ(a,b){}pJ.F="internal.setDelegatedConsentType";function qJ(a,b){}qJ.F="internal.setFormAction";function rJ(a,b,c){}rJ.F="internal.setInCrossContainerData";function sJ(a,b,c){return!1}sJ.R="setInWindow";function tJ(a,b,c){K(this.getName(),["targetId:!string","name:!string","value:!*"],arguments);var d=Js(a)||{};d[b]=H(c,this.D);var e=a;Hs||Is();Gs[e]=d;}tJ.F="internal.setProductSettingsParameter";function uJ(a,b,c){K(this.getName(),["targetId:!string","name:!string","value:!*"],arguments);for(var d=b.split("."),e=Om(a),f=0;f<d.length-1;f++){if(e[d[f]]===void 0)e[d[f]]={};else if(!Sa(e[d[f]]))throw Error("setRemoteConfigParameter failed, path contains a non-object type: "+d[f]);e=e[d[f]]}e[d[f]]=H(c,this.D,1);}uJ.F="internal.setRemoteConfigParameter";function vJ(a,b,c,d){var e=this;}vJ.R="sha256";function wJ(a,b,c){}
wJ.F="internal.sortRemoteConfigParameters";function xJ(a,b){var c=void 0;return c}xJ.F="internal.subscribeToCrossContainerData";var yJ={},zJ={};yJ.getItem=function(a){var b=null;M(this,"access_template_storage");var c=mA(this).hb();zJ[c]&&(b=zJ[c].hasOwnProperty("gtm."+a)?zJ[c]["gtm."+a]:null);return b};yJ.setItem=function(a,b){M(this,"access_template_storage");var c=mA(this).hb();zJ[c]=zJ[c]||{};zJ[c]["gtm."+a]=b;};
yJ.removeItem=function(a){M(this,"access_template_storage");var b=mA(this).hb();if(!zJ[b]||!zJ[b].hasOwnProperty("gtm."+a))return;delete zJ[b]["gtm."+a];};yJ.clear=function(){M(this,"access_template_storage"),delete zJ[mA(this).hb()];};yJ.R="templateStorage";function AJ(a,b){var c=!1;return c}AJ.F="internal.testRegex";function BJ(a){var b;return b};function CJ(a){var b;return b}CJ.F="internal.unsiloId";function DJ(a,b){var c;return c}DJ.F="internal.unsubscribeFromCrossContainerData";function EJ(a){}EJ.R="updateConsentState";var FJ;function GJ(a,b,c){FJ=FJ||new ih;FJ.add(a,b,c)}function HJ(a,b){var c=FJ=FJ||new ih;if(c.j.hasOwnProperty(a))throw Error("Attempting to add a private function which already exists: "+a+".");if(c.contains(a))throw Error("Attempting to add a private function with an existing API name: "+a+".");c.j[a]=nb(b)?Fg(a,b):Gg(a,b)}
function IJ(){return function(a){var b;var c=FJ;if(c.contains(a))b=c.get(a,this);else{var d;if(d=c.j.hasOwnProperty(a)){var e=!1,f=this.D.j;if(f){var g=f.hb();if(g){g.indexOf("__cvt_")!==0&&(e=!0);}}else e=!0;d=e}if(d){var k=c.j.hasOwnProperty(a)?c.j[a]:void 0;
b=k}else throw Error(a+" is not a valid API name.");}return b}};function JJ(){var a=function(c){return void HJ(c.F,c)},b=function(c){return void GJ(c.R,c)};b(gA);b(nA);b(BB);b(DB);b(EB);b(LB);b(NB);b(RB);b(NI());b(TB);b(jF);b(kF);b(DF);b(EF);b(FF);b(LF);b(vI);b(xI);b(FI);b(JI);b(RI);b(UI);b(XI);b(YI);b($I);b(iJ);b(lJ);b(oJ);b(sJ);b(vJ);b(yJ);b(EJ);GJ("Math",Kg());GJ("Object",gh);GJ("TestHelper",kh());GJ("assertApi",Hg);GJ("assertThat",Ig);GJ("decodeUri",Mg);GJ("decodeUriComponent",Ng);GJ("encodeUri",Og);GJ("encodeUriComponent",Pg);GJ("fail",Ug);GJ("generateRandom",
Vg);GJ("getTimestamp",Wg);GJ("getTimestampMillis",Wg);GJ("getType",Xg);GJ("makeInteger",Zg);GJ("makeNumber",$g);GJ("makeString",ah);GJ("makeTableMap",bh);GJ("mock",eh);GJ("fromBase64",eF,!("atob"in C));GJ("localStorage",QI,!PI());GJ("toBase64",BJ,!("btoa"in C));a(fA);a(jA);a(EA);a(QA);a(XA);a(bB);a(qB);a(zB);a(CB);a(FB);a(GB);a(HB);a(IB);a(JB);a(KB);a(MB);a(OB);a(QB);a(SB);a(UB);a(WB);a(XB);a(YB);a(ZB);a(aC);a(dC);a(lC);a(mC);a(xC);a(CC);a(HC);a(QC);a(VC);a(hD);a(jD);a(xD);a(yD);a(AD);a(cF);a(dF);
a(fF);a(gF);a(hF);a(lF);a(mF);a(nF);a(oF);a(pF);a(qF);a(rF);a(sF);a(tF);a(uF);a(vF);a(xF);a(yF);a(zF);a(AF);a(BF);a(CF);a(GF);a(HF);a(IF);a(JF);a(KF);a(sI);a(zI);a(II);a(KI);a(LI);a(MI);a(OI);a(oB);a(SI);a(TI);a(VI);a(WI);a(ZI);a(aJ);a(bJ);a(dJ);a(eJ);a(fJ);a(hJ);a(jJ);a(kJ);a(mJ);a(nJ);a(pJ);a(qJ);a(rJ);a(tJ);a(uJ);a(wJ);a(xJ);a(AJ);a(CJ);a(DJ);HJ("internal.CrossContainerSchema",VB());HJ("internal.GtagSchema",tI());HJ("internal.IframingStateSchema",wI());
GJ("mockObject",fh);return IJ()};var dA;function KJ(){dA.j.j.H=function(a,b,c){Ei.SANDBOXED_JS_SEMAPHORE=Ei.SANDBOXED_JS_SEMAPHORE||0;Ei.SANDBOXED_JS_SEMAPHORE++;try{return a.apply(b,c)}finally{Ei.SANDBOXED_JS_SEMAPHORE--}}}function LJ(a){a&&z(a,function(b,c){for(var d=0;d<c.length;d++){var e=c[d].replace(/^_*/,"");Ui[e]=Ui[e]||[];Ui[e].push(b)}})};var MJ=Array.isArray;function NJ(a,b){return Ta(a,b||null)}function Y(a){return window.encodeURIComponent(a)}function OJ(a,b,c){Bc(a,b,c)}function PJ(a,b){if(!a)return!1;var c=rj(xj(a),"host");if(!c)return!1;for(var d=0;b&&d<b.length;d++){var e=b[d]&&b[d].toLowerCase();if(e){var f=c.length-e.length;f>0&&e.charAt(0)!=="."&&(f--,e="."+e);if(f>=0&&c.indexOf(e,f)===f)return!0}}return!1}
function QJ(a,b,c){for(var d={},e=!1,f=0;a&&f<a.length;f++)a[f]&&a[f].hasOwnProperty(b)&&a[f].hasOwnProperty(c)&&(d[a[f][b]]=a[f][c],e=!0);return e?d:null}var ZJ=C.clearTimeout,$J=C.setTimeout;function aK(a,b,c){if(zo()){b&&F(b)}else return yc(a,b,c)}function bK(){return C.location.href}function cK(a,b){return ej(a,b||2)}function dK(a,b){C[a]=b}function eK(a,b,c){b&&(C[a]===void 0||c&&!C[a])&&(C[a]=b);return C[a]}function fK(a,b){if(zo()){b&&F(b)}else Ac(a,b)}

var gK={};var Z={securityGroups:{}};

Z.securityGroups.access_template_storage=["google"],Z.__access_template_storage=function(){return{assert:function(){},M:function(){return{}}}},Z.__access_template_storage.o="access_template_storage",Z.__access_template_storage.isVendorTemplate=!0,Z.__access_template_storage.priorityOverride=0,Z.__access_template_storage.isInfrastructure=!1,Z.__access_template_storage.runInSiloedMode=!1;
Z.securityGroups.v=["google"],Z.__v=function(a){var b=a.vtp_name;if(!b||!b.replace)return!1;var c=cK(b.replace(/\\\./g,"."),a.vtp_dataLayerVersion||1);return c!==void 0?c:a.vtp_defaultValue},Z.__v.o="v",Z.__v.isVendorTemplate=!0,Z.__v.priorityOverride=0,Z.__v.isInfrastructure=!0,Z.__v.runInSiloedMode=!1;

Z.securityGroups.rep=["google"],Z.__rep=function(a){var b=nk(a.vtp_containerId),c=Jl(b,!0),d;switch(c.prefix){case "AW":d=ED;break;case "DC":d=TD;break;case "GF":d=YD;break;case "HA":d=dE;break;case "UA":d=BE;break;case "MC":d=qI(c,a.vtp_gtmEventId);break;default:F(a.vtp_gtmOnFailure);return}d?(F(a.vtp_gtmOnSuccess),Km(b,d),a.vtp_remoteConfig&&Qm(b,a.vtp_remoteConfig||{})):F(a.vtp_gtmOnFailure)},Z.__rep.o="rep",Z.__rep.isVendorTemplate=!0,Z.__rep.priorityOverride=0,Z.__rep.isInfrastructure=!1,Z.__rep.runInSiloedMode=
!0;
Z.securityGroups.read_event_data=["google"],function(){function a(b,c){return{key:c}}(function(b){Z.__read_event_data=b;Z.__read_event_data.o="read_event_data";Z.__read_event_data.isVendorTemplate=!0;Z.__read_event_data.priorityOverride=0;Z.__read_event_data.isInfrastructure=!1;Z.__read_event_data.runInSiloedMode=!1})(function(b){var c=b.vtp_eventDataAccess,d=b.vtp_keyPatterns||[],e=b.vtp_createPermissionError;return{assert:function(f,g){if(g!=null&&!l(g))throw e(f,{key:g},"Key must be a string.");
if(c!=="any"){try{if(c==="specific"&&g!=null&&jg(g,d))return}catch(k){throw e(f,{key:g},"Invalid key filter.");}throw e(f,{key:g},"Prohibited read from event data.");}},M:a}})}();





Z.securityGroups.detect_form_submit_events=["google"],function(){function a(b,c){return{options:c}}(function(b){Z.__detect_form_submit_events=b;Z.__detect_form_submit_events.o="detect_form_submit_events";Z.__detect_form_submit_events.isVendorTemplate=!0;Z.__detect_form_submit_events.priorityOverride=0;Z.__detect_form_submit_events.isInfrastructure=!1;Z.__detect_form_submit_events.runInSiloedMode=!1})(function(b){var c=b.vtp_allowWaitForTags,d=b.vtp_createPermissionError;return{assert:function(e,f){if(!c&&
f&&f.waitForTags)throw d(e,{},"Prohibited option waitForTags.");},M:a}})}();Z.securityGroups.read_container_data=["google"],Z.__read_container_data=function(){return{assert:function(){},M:function(){return{}}}},Z.__read_container_data.o="read_container_data",Z.__read_container_data.isVendorTemplate=!0,Z.__read_container_data.priorityOverride=0,Z.__read_container_data.isInfrastructure=!1,Z.__read_container_data.runInSiloedMode=!1;

Z.securityGroups.listen_data_layer=["google"],function(){function a(b,c){return{eventName:c}}(function(b){Z.__listen_data_layer=b;Z.__listen_data_layer.o="listen_data_layer";Z.__listen_data_layer.isVendorTemplate=!0;Z.__listen_data_layer.priorityOverride=0;Z.__listen_data_layer.isInfrastructure=!1;Z.__listen_data_layer.runInSiloedMode=!1})(function(b){var c=b.vtp_accessType,d=b.vtp_allowedEvents||[],e=b.vtp_createPermissionError;return{assert:function(f,g){if(!l(g))throw e(f,{eventName:g},"Event name must be a string.");
if(!(c==="any"||c==="specific"&&d.indexOf(g)>=0))throw e(f,{eventName:g},"Prohibited listen on data layer event.");},M:a}})}();
Z.securityGroups.detect_user_provided_data=["google"],function(){function a(b,c){return{dataSource:c}}(function(b){Z.__detect_user_provided_data=b;Z.__detect_user_provided_data.o="detect_user_provided_data";Z.__detect_user_provided_data.isVendorTemplate=!0;Z.__detect_user_provided_data.priorityOverride=0;Z.__detect_user_provided_data.isInfrastructure=!1;Z.__detect_user_provided_data.runInSiloedMode=!1})(function(b){var c=b.vtp_createPermissionError;return{assert:function(d,e){if(e!=="auto"&&e!=="manual"&&
e!=="code")throw c(d,{},"Unknown user provided data source.");if(b.vtp_limitDataSources)if(e!=="auto"||b.vtp_allowAutoDataSources){if(e==="manual"&&!b.vtp_allowManualDataSources)throw c(d,{},"Detection of user provided data via manually specified CSS selectors is not allowed.");if(e==="code"&&!b.vtp_allowCodeDataSources)throw c(d,{},"Detection of user provided data from an in-page variable is not allowed.");}else throw c(d,{},"Automatic detection of user provided data is not allowed.");},M:a}})}();









Z.securityGroups.get=["google"],Z.__get=function(a){var b=a.vtp_settings,c=b.eventParameters||{},d=String(a.vtp_eventName),e={};e.eventId=a.vtp_gtmEventId;e.priorityId=a.vtp_gtmPriorityId;a.vtp_deferrable&&(e.deferrable=!0);var f=hy(String(b.streamId),d,c);jy(f,e.eventId,e);a.vtp_gtmOnSuccess()},Z.__get.o="get",Z.__get.isVendorTemplate=!0,Z.__get.priorityOverride=0,Z.__get.isInfrastructure=!1,Z.__get.runInSiloedMode=!1;



Z.securityGroups.detect_form_interaction_events=["google"],function(){function a(){return{}}(function(b){Z.__detect_form_interaction_events=b;Z.__detect_form_interaction_events.o="detect_form_interaction_events";Z.__detect_form_interaction_events.isVendorTemplate=!0;Z.__detect_form_interaction_events.priorityOverride=0;Z.__detect_form_interaction_events.isInfrastructure=!1;Z.__detect_form_interaction_events.runInSiloedMode=!1})(function(){return{assert:function(){},M:a}})}();

var hK={};hK.dataLayer=fj;hK.callback=function(a){Ti.hasOwnProperty(a)&&nb(Ti[a])&&Ti[a]();delete Ti[a]};hK.bootstrap=0;hK._spx=!1;
function iK(){Ei[hk()]=Ei[hk()]||hK;rk();vk()||z(wk(),function(d,e){Ww(d,e.transportUrl,e.context);V(92)});Db(Ui,Z.securityGroups);var a=lk(mk()),b,c=a==null?void 0:(b=a.context)==null?void 0:b.source;c!==2&&c!==4&&c!==3||V(142);rf=If}var jK=!1;
(function(a){function b(){n=E.documentElement.getAttribute("data-tag-assistant-present");mz(n)&&(m=k.nj)}function c(){m&&sc?g(m):a()}if(!C["__TAGGY_INSTALLED"]){var d=!1;if(E.referrer){var e=xj(E.referrer);d=tj(e,"host")==="cct.google"}if(!d){var f=Mo("googTaggyReferrer");d=!(!f.length||!f[0].length)}d&&(C["__TAGGY_INSTALLED"]=!0,yc("https://cct.google/taggy/agent.js"))}var g=function(v){var u="GTM",w="GTM";Ki&&(u="OGT",w="GTAG");var x=C["google.tagmanager.debugui2.queue"];x||(x=
[],C["google.tagmanager.debugui2.queue"]=x,yc("https://"+Di.jf+"/debug/bootstrap?id="+Of.ctid+"&src="+w+"&cond="+v+"&gtm="+Bo()));var y={messageType:"CONTAINER_STARTING",data:{scriptSource:sc,containerProduct:u,debug:!1,id:Of.ctid,targetRef:{ctid:Of.ctid,isDestination:ak.qe},aliases:dk(),destinations:gk()}};y.data.resume=function(){a()};Di.Ak&&(y.data.initialPublish=!0);x.push(y)},k={Uk:1,pj:2,Dj:3,xi:4,nj:5};k[k.Uk]="GTM_DEBUG_LEGACY_PARAM";k[k.pj]="GTM_DEBUG_PARAM";k[k.Dj]="REFERRER";k[k.xi]="COOKIE";k[k.nj]="EXTENSION_PARAM";
var m=void 0,n=void 0,p=rj(C.location,"query",!1,void 0,"gtm_debug");mz(p)&&(m=k.pj);if(!m&&E.referrer){var q=xj(E.referrer);tj(q,"host")==="tagassistant.google.com"&&(m=k.Dj)}if(!m){var r=Mo("__TAG_ASSISTANT");r.length&&r[0].length&&(m=k.xi)}m||b();if(!m&&nz(n)){var t=!1;Dc(E,"TADebugSignal",function(){t||(t=!0,b(),c())},!1);C.setTimeout(function(){t||(t=!0,b(),c())},200)}else c()})(function(){try{var a;if(!(a=!U(59))){var b;if(!(b=jK)){var c;a:{for(var d=Xj(),e=h(ck()),f=e.next();!f.done;f=e.next())if(d.injectedFirstPartyContainers[f.value]){c=
!0;break a}c=!1}b=!c}a=b}if(a){pk();if(U(74)){}jb[10]=!0;if(!Dl){Dl=!0;for(var g=El.length-1;g>=0;g--)El[g]();El=[]}Tn();Fl();var k=jk();if(Xj().canonical[k]){var m=Ei.zones;m&&m.unregisterChild(ck());Hw().removeExternalRestrictions(jk());}else{
xu();Xi.j="101533422~101686685~101823847~101836706";Xi.K="";Xi.Ra="ad_storage|analytics_storage|ad_user_data|ad_personalization";
Xi.Z="ad_storage|analytics_storage|ad_user_data";Xi.P="4a90";Xi.P="4al0";Sw();for(var n=data.resource||{},p=n.macros||[],q=0;q<p.length;q++)gf.push(p[q]);for(var r=n.tags||[],t=0;t<r.length;t++)kf.push(r[t]);for(var v=n.predicates||[],u=0;u<v.length;u++)jf.push(v[u]);for(var w=
n.rules||[],x=0;x<w.length;x++){for(var y=w[x],A={},B=0;B<y.length;B++){var D=y[B][0];A[D]=Array.prototype.slice.call(y[B],1);D!=="if"&&D!=="unless"||qf(A[D])}hf.push(A)}mf=Z;nf=Sz;Kf=new Rf;var G=data.sandboxed_scripts,J=data.security_groups;a:{var I=data.runtime||[],N=data.runtime_lines;dA=new Ae;KJ();ff=cA();var L=dA,S=JJ(),aa=new Xc("require",S);aa.Ma();L.j.j.set("require",aa);for(var ba=[],T=0;T<I.length;T++){var O=I[T];if(!Array.isArray(O)||O.length<3){if(O.length===0)continue;break a}N&&N[T]&&
N[T].length&&Bf(O,N[T]);try{dA.execute(O),U(86)&&Nj&&O[0]===50&&ba.push(O[1])}catch(bo){}}U(86)&&(sf=ba)}if(G&&G.length)for(var ma=["sandboxedScripts"],na=0;na<G.length;na++){var ja=G[na].replace(/^_*/,"");Ui[ja]=ma}LJ(J);iK();if(!Oi)for(var Ba=ml()?$i(Xi.Z):$i(Xi.Ra),Ma=0;Ma<ql.length;Ma++){var Da=ql[Ma],Ra=Da,eb=Ba[Da]?"granted":"denied";Mk().implicit(Ra,eb)}lz();Xw=!1;Yw=0;if(E.readyState==="interactive"&&!E.createEventObject||E.readyState==="complete")$w();else{Dc(E,"DOMContentLoaded",$w);Dc(E,
"readystatechange",$w);if(E.createEventObject&&E.documentElement.doScroll){var ee=!0;try{ee=!C.frameElement}catch(bo){}ee&&ax()}Dc(C,"load",$w)}Ry=!1;E.readyState==="complete"?Ty():Dc(C,"load",Ty);Nj&&(tm(Gm),C.setInterval(Fm,864E5),tm(Vz),tm(Ax),tm(xv),tm(Jm),tm($z),tm(Lx),tm(iu),U(86)&&(tm(Fx),tm(Gx),tm(Hx)));if(Oj){Lk();$l();var Wf,ly=
xj(C.location.href);(Wf=ly.hostname+ly.pathname)&&Dk("dl",encodeURIComponent(Wf));var co;var my=Of.ctid;if(my){var kK=ak.qe?1:0,xh,ny=lk(mk());xh=ny&&ny.context;co=my+";"+Of.canonicalContainerId+";"+(xh&&xh.fromContainerExecution?1:0)+";"+(xh&&xh.source||0)+";"+kK}else co=void 0;var oy=co;oy&&Dk("tdp",oy);var py=An(!0);py!==void 0&&Dk("frm",String(py));var eo;var yh=lk(mk());if(yh){for(;yh.parent;){var qy=lk(yh.parent);if(!qy)break;yh=qy}eo=yh}else eo=void 0;var Qe=eo;if(!Qe)V(144);else if(Qe.canonicalContainerId){var fo;
a:{if(Qe.scriptSource){var Sj;try{var ry;Sj=(ry=Qc())==null?void 0:ry.getEntriesByType("resource")}catch(bo){}if(Sj){for(var go={},Tj=0;Tj<Sj.length;++Tj){var sy=Sj[Tj],ho=sy.initiatorType;if(ho==="script"&&sy.name===Qe.scriptSource){fo={Um:Tj,Vm:go};break a}go[ho]=1+(go[ho]||0)}V(146)}else V(145)}fo=void 0}var io=fo;io&&(Dk("rtg",String(Qe.canonicalContainerId)),Dk("rlo",String(io.Um)),Dk("slo",String(io.Vm.script||"0")),Dk("hlo",Qe.htmlLoadOrder||"-1"),Dk("lst",String(Qe.loadScriptType||"0")))}var jo;
var Uj=kk();if(Uj){var ty;jo=Uj.canonicalContainerId||"_"+(Uj.scriptContainerId||((ty=Uj.destinations)==null?void 0:ty[0]))}else jo=void 0;var uy=jo;uy&&Dk("pcid",uy);U(33)&&(Dk("bt",String(Xi.H?2:Mi?1:0)),Dk("ct",String(Xi.H?0:Mi?1:zo()?2:3)))}Iz();hl(1);mB();Si=Ab();hK.bootstrap=Si;
if(U(74)){}}}}catch(bo){if(hl(4),Nj){var lK=Am(!0,!0);Bc(lK)}}});

})()

;
seraph_accel_gzjydy();window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());gtag('config','AW-16541267414');
seraph_accel_gzjydy();document.addEventListener('DOMContentLoaded',function(){var joinChatButton=document.querySelector('.joinchat__button__open');if(joinChatButton){joinChatButton.addEventListener('click',function(){gtag_report_conversion();});}
function gtag_report_conversion(){var callback=function(){console.log('Conversion completed.');};gtag('event','conversion',{'send_to':'AW-16541267414/tPNdCJn8tqkZENbrvs89','event_callback':callback});return true;}});
seraph_accel_gzjydy();function external_links_in_new_windows_loop(){if(!document.links){document.links=document.getElementsByTagName('a');}
var change_link=false;var force='';var ignore='';for(var t=0;t<document.links.length;t++){var all_links=document.links[t];change_link=false;if(document.links[t].hasAttribute('onClick')==false){if(all_links.href.search(/^http/)!=-1&&all_links.href.search('morocco-vacations.com')==-1&&all_links.href.search(/^#/)==-1){change_link=true;}
if(force!=''&&all_links.href.search(force)!=-1){change_link=true;}
if(ignore!=''&&all_links.href.search(ignore)!=-1){change_link=false;}
if(change_link==true){document.links[t].setAttribute('onClick','javascript:window.open(\''+all_links.href.replace(/'/g,'')+'\', \'_blank\', \'noopener\'); return false;');document.links[t].removeAttribute('target');}}}}
function external_links_in_new_windows_load(func)
{var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
external_links_in_new_windows_load(external_links_in_new_windows_loop);
seraph_accel_gzjydy();!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js?v=next');
seraph_accel_gzjydy();var url=window.location.origin+'?ob=open-bridge';fbq('set','openbridge','427123816768504',url);
seraph_accel_gzjydy();fbq('init','427123816768504',{},{"agent":"wordpress-6.6.2-4.0.1"});
seraph_accel_gzjydy();fbq('track','PageView',[]);
seraph_accel_gzjydy();document.addEventListener('wpcf7mailsent',function(event){if("fb_pxl_code"in event.detail.apiResponse){eval(event.detail.apiResponse.fb_pxl_code);}},false);
seraph_accel_gzjydy();/*! This file is auto-generated */
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex<s.length;){const t=s[c.currentIndex].callback.apply(null,o);n&&(o[0]=t),c.currentIndex++}return i.__current.pop(),n?o[0]:void 0}};const l=function(t,e){return function(){var n;const r=t[e];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}};const u=function(t,e){return function(n){const r=t[e];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};const a=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions"),this.applyFilters=c(this,"filters",!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=a(this,"actions"),this.didFilter=a(this,"filters")}}const h=function(){return new d},f=h(),{addAction:m,addFilter:p,removeAction:A,removeFilter:_,hasAction:v,hasFilter:y,removeAllActions:F,removeAllFilters:g,doAction:b,applyFilters:k,currentAction:w,currentFilter:I,doingAction:x,doingFilter:T,didAction:O,didFilter:j,actions:S,filters:z}=f;(window.wp=window.wp||{}).hooks=e})();
seraph_accel_gzjydy();/*! This file is auto-generated */
(()=>{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n<h;n++)if("string"==typeof t[n])g+=t[n];else if("object"==typeof t[n]){if((s=t[n]).keys)for(r=e[d],o=0;o<s.keys.length;o++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));r=r[s.keys[o]]}else r=s.param_no?e[s.param_no]:e[d++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(c=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o<l;o++)if(s.args[o]!==arguments[o]){s=s.next;continue t}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];return s={args:a,val:t.apply(null,a)},r?(r.prev=s,s.next=r):n=s,i===e.maxSize?(n=n.prev).next=null:i++,r=s,s.val}return e=e||{},a.clear=function(){r=null,n=null,i=0},a}(console.error);function a(t,...r){try{return e().sprintf(t,...r)}catch(e){return e instanceof Error&&i("sprintf error: \n\n"+e.toString()),t}}var o,s,l,u;o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]<o[r]){p.push(i);break}a.push(i)}l[r]||p.push(r),t=t.substr(e.index+r.length)}return(t=t.trim())&&a.push(t),a.concat(p.reverse())}(t);return function(t){return function(t,e){var r,n,i,a,o,s,l=[];for(r=0;r<t.length;r++){if(o=t[r],a=p[o]){for(n=a.length,i=Array(n);n--;)i[n]=l.pop();try{s=a.apply(null,i)}catch(t){return t}}else s=e.hasOwnProperty(o)?e[o]:+o;l.push(s)}return l[0]}(e,t)}}var f={contextDelimiter:"",onMissingKey:null};function d(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},f)this.options[r]=void 0!==e&&r in e?e[r]:f[r]}d.prototype.getPluralForm=function(t,e){var r,n,i,a=this.pluralForms[t];return a||("function"!=typeof(i=(r=this.data[t][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(t){var e=c(t);return function(t){return+e({n:t})}}(n)),a=this.pluralForms[t]=i),a(e)},d.prototype.dcnpgettext=function(t,e,r,n,i){var a,o,s;return a=void 0===i?0:this.getPluralForm(t,i),o=r,e&&(o=e+this.options.contextDelimiter+r),(s=this.data[t][o])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===a?r:n)};const h={plural_forms:t=>1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})();
seraph_accel_gzjydy();wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']});
seraph_accel_gzjydy();(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))))throw new o(this)},z=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t)))))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})();
seraph_accel_gzjydy();var wpcf7={"api":{"root":"https:\/\/morocco-vacations.com\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"};
seraph_accel_gzjydy();(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",c),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",c),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&a.value.length<o?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
seraph_accel_gzjydy();(function(f){f.fn.marquee=function(x){return this.each(function(){var a=f.extend({},f.fn.marquee.defaults,x),b=f(this),c,h,t,u,k,e=3,y="animation-play-state",n=!1,E=function(a,b,c){for(var e=["webkit","moz","MS","o",""],d=0;d<e.length;d++)e[d]||(b=b.toLowerCase()),a.addEventListener(e[d]+b,c,!1)},F=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c+":"+a[c]);b.push();return"{"+b.join(",")+"}"},p={pause:function(){n&&a.allowCss3Support?c.css(y,"paused"):f.fn.pause&&c.pause();b.data("runningStatus","paused");b.trigger("paused")},resume:function(){n&&a.allowCss3Support?c.css(y,"running"):f.fn.resume&&c.resume();b.data("runningStatus","resumed");b.trigger("resumed")},toggle:function(){p["resumed"==b.data("runningStatus")?"pause":"resume"]()},destroy:function(){clearTimeout(b.timer);b.find("*").andSelf().unbind();b.html(b.find(".js-marquee:first").html())}};if("string"===typeof x)f.isFunction(p[x])&&(c||(c=b.find(".js-marquee-wrapper")),!0===b.data("css3AnimationIsSupported")&&(n=!0),p[x]());else{var v;f.each(a,function(c,d){v=b.attr("data-"+c);if("undefined"!==typeof v){switch(v){case"true":v=!0;break;case"false":v=!1}a[c]=v}});a.speed&&(a.duration=a.speed*parseInt(b.width(),10));u="up"==a.direction||"down"==a.direction;a.gap=a.duplicated?parseInt(a.gap):0;b.wrapInner('<div class="js-marquee"></div>');var l=b.find(".js-marquee").css({"margin-right":a.gap,"float":"left"});a.duplicated&&l.clone(!0).appendTo(b);b.wrapInner('<div style="width:100000px" class="js-marquee-wrapper"></div>');c=b.find(".js-marquee-wrapper");if(u){var m=b.height();c.removeAttr("style");b.height(m);b.find(".js-marquee").css({"float":"none","margin-bottom":a.gap,"margin-right":0});a.duplicated&&b.find(".js-marquee:last").css({"margin-bottom":0});var q=b.find(".js-marquee:first").height()+a.gap;a.startVisible&&!a.duplicated?(a._completeDuration=(parseInt(q,10)+parseInt(m,10))/parseInt(m,10)*a.duration,a.duration*=parseInt(q,10)/parseInt(m,10)):a.duration*=(parseInt(q,10)+parseInt(m,10))/parseInt(m,10)}else k=b.find(".js-marquee:first").width()+
a.gap,h=b.width(),a.startVisible&&!a.duplicated?(a._completeDuration=(parseInt(k,10)+parseInt(h,10))/parseInt(h,10)*a.duration,a.duration*=parseInt(k,10)/parseInt(h,10)):a.duration*=(parseInt(k,10)+parseInt(h,10))/parseInt(h,10);a.duplicated&&(a.duration/=2);if(a.allowCss3Support){var l=document.body||document.createElement("div"),g="marqueeAnimation-"+Math.floor(1E7*Math.random()),A=["Webkit","Moz","O","ms","Khtml"],B="animation",d="",r="";l.style.animation&&(r="@keyframes "+g+" ",n=!0);if(!1===n)for(var z=0;z<A.length;z++)if(void 0!==l.style[A[z]+"AnimationName"]){l="-"+A[z].toLowerCase()+"-";B=l+B;y=l+y;r="@"+l+"keyframes "+g+" ";n=!0;break}n&&(d=g+" "+a.duration/1E3+"s "+a.delayBeforeStart/1E3+"s infinite "+a.css3easing,b.data("css3AnimationIsSupported",!0))}var C=function(){c.css("margin-top","up"==a.direction?m+"px":"-"+q+"px")},D=function(){c.css("margin-left","left"==a.direction?h+"px":"-"+k+"px")};a.duplicated?(u?a.startVisible?c.css("margin-top",0):c.css("margin-top","up"==a.direction?m+"px":"-"+(2*q-a.gap)+"px"):a.startVisible?c.css("margin-left",0):c.css("margin-left","left"==a.direction?h+"px":"-"+(2*k-a.gap)+"px"),a.startVisible||(e=1)):a.startVisible?e=2:u?C():D();var w=function(){a.duplicated&&(1===e?(a._originalDuration=a.duration,a.duration=u?"up"==a.direction?a.duration+m/(q/a.duration):2*a.duration:"left"==a.direction?a.duration+h/(k/a.duration):2*a.duration,d&&(d=g+" "+a.duration/1E3+"s "+a.delayBeforeStart/1E3+"s "+a.css3easing),e++):2===e&&(a.duration=a._originalDuration,d&&(g+="0",r=f.trim(r)+"0 ",d=g+" "+a.duration/1E3+"s 0s infinite "+a.css3easing),e++));u?a.duplicated?(2<e&&c.css("margin-top","up"==a.direction?0:"-"+q+"px"),t={"margin-top":"up"==a.direction?"-"+q+"px":0}):a.startVisible?2===e?(d&&(d=g+" "+a.duration/1E3+"s "+a.delayBeforeStart/1E3+"s "+a.css3easing),t={"margin-top":"up"==a.direction?"-"+q+"px":m+"px"},e++):3===e&&(a.duration=a._completeDuration,d&&(g+="0",r=f.trim(r)+"0 ",d=g+" "+a.duration/1E3+"s 0s infinite "+a.css3easing),C()):(C(),t={"margin-top":"up"==a.direction?"-"+c.height()+"px":m+"px"}):a.duplicated?(2<e&&c.css("margin-left","left"==a.direction?0:"-"+k+"px"),t={"margin-left":"left"==a.direction?"-"+k+"px":0}):a.startVisible?2===e?(d&&(d=g+" "+a.duration/1E3+"s "+a.delayBeforeStart/1E3+"s "+a.css3easing),t={"margin-left":"left"==a.direction?"-"+k+"px":h+"px"},e++):3===e&&(a.duration=a._completeDuration,d&&(g+="0",r=f.trim(r)+"0 ",d=g+" "+a.duration/1E3+"s 0s infinite "+a.css3easing),D()):(D(),t={"margin-left":"left"==a.direction?"-"+k+"px":h+"px"});b.trigger("beforeStarting");if(n){c.css(B,d);var l=r+" { 100%  "+F(t)+"}",p=c.find("style");0!==p.length?p.filter(":last").html(l):c.append("<style>"+l+"</style>");E(c[0],"AnimationIteration",function(){b.trigger("finished")});E(c[0],"AnimationEnd",function(){w();b.trigger("finished")})}else c.animate(t,a.duration,a.easing,function(){b.trigger("finished");a.pauseOnCycle?b.timer=setTimeout(w,a.delayBeforeStart):w()});b.data("runningStatus","resumed")};b.bind("pause",p.pause);b.bind("resume",p.resume);a.pauseOnHover&&b.bind("mouseenter mouseleave",p.toggle);n&&a.allowCss3Support?w():b.timer=setTimeout(w,a.delayBeforeStart)}})};f.fn.marquee.defaults={allowCss3Support:!0,css3easing:"linear",easing:"linear",delayBeforeStart:1E3,direction:"left",duplicated:!1,duration:5E3,gap:20,pauseOnCycle:!1,pauseOnHover:!1,startVisible:!1}})(jQuery);var Froogaloop=function(){function e(t){return new e.fn.init(t)}var d={},f=!1,c=(Array.prototype.slice,"");function o(t,e,n){if(!n.contentWindow.postMessage)return!1;var r=n.getAttribute("src").split("?")[0],i=JSON.stringify({method:t,value:e});n.contentWindow.postMessage(i,r)}function t(t){var e,n;try{n=(e=JSON.parse(t.data)).event||e.method}catch(t){}if("ready"!=n||f||(f=!0),t.origin!=c)return!1;var r,i,l=e.value,o=e.data,u=""===u?null:e.player_id,a=(r=n,(i=u)?d[i][r]:d[r]),s=[];return!!a&&(void 0!==l&&s.push(l),o&&s.push(o),u&&s.push(u),0<s.length?a.apply(null,s):a.call())}function u(t,e,n){n?(d[n]||(d[n]={}),d[n][t]=e):d[t]=e}function a(t){return!!(t&&t.constructor&&t.call&&t.apply)}return(e.fn=e.prototype={element:null,init:function(t){return"string"==typeof t&&(t=document.getElementById(t)),this.element=t,c=function(t){for(var e=t.split("/"),n="",r=0,i=e.length;r<i&&r<3;r++)n+=e[r],r<2&&(n+="/");return n}(this.element.getAttribute("src")),this},api:function(t,e){if(!this.element||!t)return!1;var n=this.element,r=""!==n.id?n.id:null,i=a(e)?null:e,l=a(e)?e:null;return l&&u(t,l,r),o(t,i,n),this},addEvent:function(t,e){if(!this.element)return!1;var n=this.element,r=""!==n.id?n.id:null;return u(t,e,r),"ready"!=t?o("addEventListener",t,n):"ready"==t&&f&&e.call(null,r),this},removeEvent:function(t){if(!this.element)return!1;var e=this.element,n=function(t,e){if(e&&d[e]){if(!d[e][t])return!1;d[e][t]=null}else{if(!d[t])return!1;d[t]=null}return!0}(t,""!==e.id?e.id:null);"ready"!=t&&n&&o("removeEventListener",t,e)}}).init.prototype=e.fn,window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent("onmessage",t,!1),window.Froogaloop=window.$f=e}();!function(a){var b=function(){var a,b=document.createElement("fakeelement"),c={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(a in c)if(void 0!==b.style[a])return c[a]},c=function(b,c,d){this.setting={axis:"y",reverse:!1,trigger:"click",speed:500,forceHeight:!1,forceWidth:!1,autoSize:!0,front:".front",back:".back"},this.setting=a.extend(this.setting,c),"string"!=typeof c.axis||"x"!==c.axis.toLowerCase()&&"y"!==c.axis.toLowerCase()||(this.setting.axis=c.axis.toLowerCase()),"boolean"==typeof c.reverse&&(this.setting.reverse=c.reverse),"string"==typeof c.trigger&&(this.setting.trigger=c.trigger.toLowerCase());var e=parseInt(c.speed);isNaN(e)||(this.setting.speed=e),"boolean"==typeof c.forceHeight&&(this.setting.forceHeight=c.forceHeight),"boolean"==typeof c.forceWidth&&(this.setting.forceWidth=c.forceWidth),"boolean"==typeof c.autoSize&&(this.setting.autoSize=c.autoSize),("string"==typeof c.front||c.front instanceof a)&&(this.setting.front=c.front),("string"==typeof c.back||c.back instanceof a)&&(this.setting.back=c.back),this.element=b,this.frontElement=this.getFrontElement(),this.backElement=this.getBackElement(),this.isFlipped=!1,this.init(d)};a.extend(c.prototype,{flipDone:function(a){var c=this;c.element.one(b(),function(){c.element.trigger("flip:done"),"function"==typeof a&&a.call(c.element)})},flip:function(a){if(!this.isFlipped){this.isFlipped=!0;var b="rotate"+this.setting.axis;this.frontElement.css({transform:b+(this.setting.reverse?"(-180deg)":"(180deg)"),"z-index":"0"}),this.backElement.css({transform:b+"(0deg)","z-index":"1"}),this.flipDone(a)}},unflip:function(a){if(this.isFlipped){this.isFlipped=!1;var b="rotate"+this.setting.axis;this.frontElement.css({transform:b+"(0deg)","z-index":"1"}),this.backElement.css({transform:b+(this.setting.reverse?"(180deg)":"(-180deg)"),"z-index":"0"}),this.flipDone(a)}},getFrontElement:function(){return this.setting.front instanceof a?this.setting.front:this.element.find(this.setting.front)},getBackElement:function(){return this.setting.back instanceof a?this.setting.back:this.element.find(this.setting.back)},init:function(a){var b=this,c=b.frontElement.add(b.backElement),d="rotate"+b.setting.axis,e=2*b.element["outer"+("rotatex"===d?"Height":"Width")](),f={perspective:e,position:"relative"},g={transform:d+"("+(b.setting.reverse?"180deg":"-180deg")+")","z-index":"0",position:"relative"},h={"backface-visibility":"hidden","transform-style":"preserve-3d",position:"absolute","z-index":"1"};b.setting.forceHeight?c.outerHeight(b.element.height()):b.setting.autoSize&&(h.height="100%"),b.setting.forceWidth?c.outerWidth(b.element.width()):b.setting.autoSize&&(h.width="100%"),(window.chrome||window.Intl&&Intl.v8BreakIterator)&&"CSS"in window&&(f["-webkit-transform-style"]="preserve-3d"),c.css(h).find("*").css({"backface-visibility":"hidden"}),b.element.css(f),b.backElement.css(g),setTimeout(function(){var d=b.setting.speed/1e3||.5;c.css({transition:"all "+d+"s ease-out"}),"function"==typeof a&&a.call(b.element)},20),b.attachEvents()},clickHandler:function(b){b||(b=window.event),this.element.find(a(b.target).closest('button, a, input[type="submit"]')).length||(this.isFlipped?this.unflip():this.flip())},hoverHandler:function(){var b=this;b.element.off("mouseleave.flip"),b.flip(),setTimeout(function(){b.element.on("mouseleave.flip",a.proxy(b.unflip,b)),b.element.is(":hover")||b.unflip()},b.setting.speed+150)},attachEvents:function(){var b=this;"click"===b.setting.trigger?b.element.on(a.fn.tap?"tap.flip":"click.flip",a.proxy(b.clickHandler,b)):"hover"===b.setting.trigger&&(b.element.on("mouseenter.flip",a.proxy(b.hoverHandler,b)),b.element.on("mouseleave.flip",a.proxy(b.unflip,b)))},flipChanged:function(a){this.element.trigger("flip:change"),"function"==typeof a&&a.call(this.element)},changeSettings:function(a,b){var c=this,d=!1;if(void 0!==a.axis&&c.setting.axis!==a.axis.toLowerCase()&&(c.setting.axis=a.axis.toLowerCase(),d=!0),void 0!==a.reverse&&c.setting.reverse!==a.reverse&&(c.setting.reverse=a.reverse,d=!0),d){var e=c.frontElement.add(c.backElement),f=e.css(["transition-property","transition-timing-function","transition-duration","transition-delay"]);e.css({transition:"none"});var g="rotate"+c.setting.axis;c.isFlipped?c.frontElement.css({transform:g+(c.setting.reverse?"(-180deg)":"(180deg)"),"z-index":"0"}):c.backElement.css({transform:g+(c.setting.reverse?"(180deg)":"(-180deg)"),"z-index":"0"}),setTimeout(function(){e.css(f),c.flipChanged(b)},0)}else c.flipChanged(b)}}),a.fn.flip=function(b,d){return"function"==typeof b&&(d=b),"string"==typeof b||"boolean"==typeof b?this.each(function(){var c=a(this).data("flip-model");"toggle"===b&&(b=!c.isFlipped),b?c.flip(d):c.unflip(d)}):this.each(function(){if(a(this).data("flip-model")){var e=a(this).data("flip-model");!b||void 0===b.axis&&void 0===b.reverse||e.changeSettings(b,d)}else a(this).data("flip-model",new c(a(this),b||{},d))}),this}}(jQuery);!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(a,b){},onStep:function(a,b,c){},onStop:function(a,b){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));"string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?e.easing=jQuery.easing[e.easing]:e.easing=d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}});!function(T){var a=!0;T.goodlayers_flexslider=function(p,e){var m=T(p);m.vars=T.extend({},T.goodlayers_flexslider.defaults,e);var t,v=m.vars.namespace,f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,g=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&m.vars.touch,r="click touchend MSPointerUp keyup",o="",h="vertical"===m.vars.direction,y=m.vars.reverse,S=0<m.vars.itemWidth,x="fade"===m.vars.animation,w=""!==m.vars.asNavFor,b={};T.data(p,"goodlayers_flexslider",m),b={init:function(){m.animating=!1,m.currentSlide=parseInt(m.vars.startAt?m.vars.startAt:0,10),isNaN(m.currentSlide)&&(m.currentSlide=0),m.animatingTo=m.currentSlide,m.atEnd=0===m.currentSlide||m.currentSlide===m.last,m.containerSelector=m.vars.selector.substr(0,m.vars.selector.search(" ")),m.slides=T(m.vars.selector,m),m.container=T(m.containerSelector,m),m.count=m.slides.length,m.syncExists=0<T(m.vars.sync).length,"slide"===m.vars.animation&&(m.vars.animation="swing"),m.prop=h?"top":"marginLeft",m.args={},m.manualPause=!1,m.stopped=!1,m.started=!1,m.startTimeout=null,m.transitions=!m.vars.video&&!x&&m.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return m.pfx=t[a].replace("Perspective","").toLowerCase(),m.prop="-"+m.pfx+"-transform",!0;return!1}(),(m.ensureAnimationEnd="")!==m.vars.controlsContainer&&(m.controlsContainer=0<T(m.vars.controlsContainer).length&&T(m.vars.controlsContainer)),""!==m.vars.manualControls&&(m.manualControls=0<T(m.vars.manualControls).length&&T(m.vars.manualControls)),""!==m.vars.customDirectionNav&&(m.customDirectionNav=2===T(m.vars.customDirectionNav).length&&T(m.vars.customDirectionNav)),m.vars.randomize&&(m.slides.sort(function(){return Math.round(Math.random())-.5}),m.container.empty().append(m.slides)),m.doMath(),m.setup("init"),m.vars.controlNav&&b.controlNav.setup(),m.vars.directionNav&&b.directionNav.setup(),m.vars.keyboard&&(1===T(m.containerSelector).length||m.vars.multipleKeyboard)&&T(document).bind("keyup",function(e){var t=e.keyCode;if(!m.animating&&(39===t||37===t)){var a=39===t?m.getTarget("next"):37===t&&m.getTarget("prev");m.flexAnimate(a,m.vars.pauseOnAction)}}),m.vars.mousewheel&&m.bind("mousewheel",function(e,t,a,n){e.preventDefault();var i=t<0?m.getTarget("next"):m.getTarget("prev");m.flexAnimate(i,m.vars.pauseOnAction)}),m.vars.pausePlay&&b.pausePlay.setup(),m.vars.slideshow&&m.vars.pauseInvisible&&b.pauseInvisible.init(),m.vars.slideshow&&(m.vars.pauseOnHover&&m.hover(function(){m.manualPlay||m.manualPause||m.pause()},function(){m.manualPause||m.manualPlay||m.stopped||m.play()}),m.vars.pauseInvisible&&b.pauseInvisible.isHidden()||(0<m.vars.initDelay?m.startTimeout=setTimeout(m.play,m.vars.initDelay):m.play())),w&&b.asNav.setup(),g&&m.vars.touch&&b.touch(),(!x||x&&m.vars.smoothHeight)&&T(window).bind("resize orientationchange focus gdlr-core-element-resize",b.resize),m.find("img").attr("draggable","false"),setTimeout(function(){m.vars.start(m)},200)},asNav:{setup:function(){m.asNav=!0,m.animatingTo=Math.floor(m.currentSlide/m.move),m.currentItem=m.currentSlide,m.slides.removeClass(v+"active-slide").eq(m.currentItem).addClass(v+"active-slide"),f?(p._slider=m).slides.each(function(){var e=this;e._gesture=new MSGesture,(e._gesture.target=e).addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=T(this),a=t.index();T(m.vars.asNavFor).data("goodlayers_flexslider").animating||t.hasClass("active")||(m.direction=m.currentItem<a?"next":"prev",m.flexAnimate(a,m.vars.pauseOnAction,!1,!0,!0))})}):m.slides.on(r,function(e){e.preventDefault();var t=T(this),a=t.index();t.offset().left-T(m).scrollLeft()<=0&&t.hasClass(v+"active-slide")?m.flexAnimate(m.getTarget("prev"),!0):T(m.vars.asNavFor).data("goodlayers_flexslider").animating||t.hasClass(v+"active-slide")||(m.direction=m.currentItem<a?"next":"prev",m.flexAnimate(a,m.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){m.manualControls?b.controlNav.setupManual():b.controlNav.setupPaging()},setupPaging:function(){var e,t,a="thumbnails"===m.vars.controlNav?"control-thumbs":"control-paging",n=1;if(m.controlNavScaffold=T('<ol class="'+v+"control-nav "+v+a+'"></ol>'),1<m.pagingCount)for(var i=0;i<m.pagingCount;i++){if(void 0===(t=m.slides.eq(i)).attr("data-thumb-alt")&&t.attr("data-thumb-alt",""),altText=""!==t.attr("data-thumb-alt")?altText=' alt="'+t.attr("data-thumb-alt")+'"':"",e="thumbnails"===m.vars.controlNav?'<img src="'+t.attr("data-thumb")+'"'+altText+"/>":'<a href="#">'+n+"</a>","thumbnails"===m.vars.controlNav&&!0===m.vars.thumbCaptions){var s=t.attr("data-thumbcaption");""!==s&&void 0!==s&&(e+='<span class="'+v+'caption">'+s+"</span>")}m.controlNavScaffold.append("<li>"+e+"</li>"),n++}m.controlsContainer?T(m.controlsContainer).append(m.controlNavScaffold):m.append(m.controlNavScaffold),b.controlNav.set(),b.controlNav.active(),m.controlNavScaffold.delegate("a, img",r,function(e){if(e.preventDefault(),""===o||o===e.type){var t=T(this),a=m.controlNav.index(t);t.hasClass(v+"active")||(m.direction=a>m.currentSlide?"next":"prev",m.flexAnimate(a,m.vars.pauseOnAction))}""===o&&(o=e.type),b.setToClearWatchedEvent()})},setupManual:function(){m.controlNav=m.manualControls,b.controlNav.active(),m.controlNav.bind(r,function(e){if(e.preventDefault(),""===o||o===e.type){var t=T(this),a=m.controlNav.index(t);t.hasClass(v+"active")||(a>m.currentSlide?m.direction="next":m.direction="prev",m.flexAnimate(a,m.vars.pauseOnAction))}""===o&&(o=e.type),b.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===m.vars.controlNav?"img":"a";m.controlNav=T("."+v+"control-nav li "+e,m.controlsContainer?m.controlsContainer:m)},active:function(){m.controlNav.removeClass(v+"active").eq(m.animatingTo).addClass(v+"active")},update:function(e,t){1<m.pagingCount&&"add"===e?m.controlNavScaffold.append(T('<li><a href="#">'+m.count+"</a></li>")):1===m.pagingCount?m.controlNavScaffold.find("li").remove():m.controlNav.eq(t).closest("li").remove(),b.controlNav.set(),1<m.pagingCount&&m.pagingCount!==m.controlNav.length?m.update(t,e):b.controlNav.active()}},directionNav:{setup:function(){var e=T('<ul class="'+v+'direction-nav"><li class="'+v+'nav-prev"><a class="'+v+'prev" href="#">'+m.vars.prevText+'</a></li><li class="'+v+'nav-next"><a class="'+v+'next" href="#">'+m.vars.nextText+"</a></li></ul>");m.customDirectionNav?m.directionNav=m.customDirectionNav:m.controlsContainer?(T(m.controlsContainer).append(e),m.directionNav=T("."+v+"direction-nav li a",m.controlsContainer)):(m.append(e),m.directionNav=T("."+v+"direction-nav li a",m)),b.directionNav.update(),m.directionNav.bind(r,function(e){var t;e.preventDefault(),""!==o&&o!==e.type||(t=T(this).hasClass(v+"next")?m.getTarget("next"):m.getTarget("prev"),m.flexAnimate(t,m.vars.pauseOnAction)),""===o&&(o=e.type),b.setToClearWatchedEvent()})},update:function(){var e=v+"disabled";1===m.pagingCount?m.directionNav.addClass(e).attr("tabindex","-1"):m.vars.animationLoop?m.directionNav.removeClass(e).removeAttr("tabindex"):0===m.animatingTo?m.directionNav.removeClass(e).filter("."+v+"prev").addClass(e).attr("tabindex","-1"):m.animatingTo===m.last?m.directionNav.removeClass(e).filter("."+v+"next").addClass(e).attr("tabindex","-1"):m.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=T('<div class="'+v+'pauseplay"><a href="#"></a></div>');m.controlsContainer?(m.controlsContainer.append(e),m.pausePlay=T("."+v+"pauseplay a",m.controlsContainer)):(m.append(e),m.pausePlay=T("."+v+"pauseplay a",m)),b.pausePlay.update(m.vars.slideshow?v+"pause":v+"play"),m.pausePlay.bind(r,function(e){e.preventDefault(),""!==o&&o!==e.type||(T(this).hasClass(v+"pause")?(m.manualPause=!0,m.manualPlay=!1,m.pause()):(m.manualPause=!1,m.manualPlay=!0,m.play())),""===o&&(o=e.type),b.setToClearWatchedEvent()})},update:function(e){"play"===e?m.pausePlay.removeClass(v+"pause").addClass(v+"play").html(m.vars.playText):m.pausePlay.removeClass(v+"play").addClass(v+"pause").html(m.vars.pauseText)}},touch:function(){var i,s,r,o,l,d,e,n,c,u=!1,t=0,a=0,v=0;if(f){p.style.msTouchAction="none",p._gesture=new MSGesture,(p._gesture.target=p).addEventListener("MSPointerDown",function(e){e.stopPropagation(),m.animating?e.preventDefault():(m.pause(),p._gesture.addPointer(e.pointerId),v=0,o=h?m.h:m.w,d=Number(new Date),r=S&&y&&m.animatingTo===m.last?0:S&&y?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:S&&m.currentSlide===m.last?m.limit:S?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:y?(m.last-m.currentSlide+m.cloneOffset)*o:(m.currentSlide+m.cloneOffset)*o)},!1),p._slider=m,p.addEventListener("MSGestureChange",function(e){e.stopPropagation();var t=e.target._slider;if(!t)return;var a=-e.translationX,n=-e.translationY;if(l=v+=h?n:a,u=h?Math.abs(v)<Math.abs(-a):Math.abs(v)<Math.abs(-n),e.detail===e.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){p._gesture.stop()});(!u||500<Number(new Date)-d)&&(e.preventDefault(),!x&&t.transitions&&(t.vars.animationLoop||(l=v/(0===t.currentSlide&&v<0||t.currentSlide===t.last&&0<v?Math.abs(v)/o+2:1)),t.setProps(r+l,"setTouch")))},!1),p.addEventListener("MSGestureEnd",function(e){e.stopPropagation();var t=e.target._slider;if(!t)return;if(t.animatingTo===t.currentSlide&&!u&&null!==l){var a=y?-l:l,n=0<a?t.getTarget("next"):t.getTarget("prev");t.canAdvance(n)&&(Number(new Date)-d<550&&50<Math.abs(a)||Math.abs(a)>o/2)?t.flexAnimate(n,t.vars.pauseOnAction):x||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}r=l=s=i=null,v=0},!1)}else e=function(e){m.animating?e.preventDefault():!window.navigator.msPointerEnabled&&1!==e.touches.length||(m.pause(),o=h?m.h:m.w,d=Number(new Date),t=e.touches[0].pageX,a=e.touches[0].pageY,r=S&&y&&m.animatingTo===m.last?0:S&&y?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:S&&m.currentSlide===m.last?m.limit:S?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:y?(m.last-m.currentSlide+m.cloneOffset)*o:(m.currentSlide+m.cloneOffset)*o,i=h?a:t,s=h?t:a,p.addEventListener("touchmove",n,!1),p.addEventListener("touchend",c,!1))},n=function(e){t=e.touches[0].pageX,a=e.touches[0].pageY,l=h?i-a:i-t;(!(u=h?Math.abs(l)<Math.abs(t-s):Math.abs(l)<Math.abs(a-s))||500<Number(new Date)-d)&&(e.preventDefault(),!x&&m.transitions&&(m.vars.animationLoop||(l/=0===m.currentSlide&&l<0||m.currentSlide===m.last&&0<l?Math.abs(l)/o+2:1),m.setProps(r+l,"setTouch")))},c=function(e){if(p.removeEventListener("touchmove",n,!1),m.animatingTo===m.currentSlide&&!u&&null!==l){var t=y?-l:l,a=0<t?m.getTarget("next"):m.getTarget("prev");m.canAdvance(a)&&(Number(new Date)-d<550&&50<Math.abs(t)||Math.abs(t)>o/2)?m.flexAnimate(a,m.vars.pauseOnAction):x||m.flexAnimate(m.currentSlide,m.vars.pauseOnAction,!0)}p.removeEventListener("touchend",c,!1),r=l=s=i=null},p.addEventListener("touchstart",e,!1)},resize:function(){!m.animating&&m.is(":visible")&&(S||m.doMath(),x?b.smoothHeight():S?(m.slides.width(m.computedW),m.update(m.pagingCount),m.setProps()):h?(m.viewport.height(m.h),m.setProps(m.h,"setTotal")):(m.vars.smoothHeight&&b.smoothHeight(),m.newSlides.width(m.computedW),m.setProps(m.computedW,"setTotal")))},smoothHeight:function(e){if(!h||x){var t=x?m:m.viewport;e?t.animate({height:m.slides.eq(m.animatingTo).height()},e):t.height(m.slides.eq(m.animatingTo).height())}},sync:function(e){var t=T(m.vars.sync).data("goodlayers_flexslider"),a=m.animatingTo;switch(e){case"animate":t.flexAnimate(a,m.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=T(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=b.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){b.pauseInvisible.isHidden()?m.startTimeout?clearTimeout(m.startTimeout):m.pause():m.started?m.play():0<m.vars.initDelay?setTimeout(m.play,m.vars.initDelay):m.play()})}},isHidden:function(){var e=b.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(t),t=setTimeout(function(){o=""},3e3)}},m.flexAnimate=function(e,t,a,n,s){if(m.vars.animationLoop||e===m.currentSlide||(m.direction=e>m.currentSlide?"next":"prev"),w&&1===m.pagingCount&&(m.direction=m.currentItem<e?"next":"prev"),!m.animating&&(m.canAdvance(e,s)||a)&&m.is(":visible")){if(w&&n){var r=T(m.vars.asNavFor).data("goodlayers_flexslider");if(m.atEnd=0===e||e===m.count-1,r.flexAnimate(e,!0,!1,!0,s),m.direction=m.currentItem<e?"next":"prev",r.direction=m.direction,Math.ceil((e+1)/m.visible)-1===m.currentSlide||0===e)return m.currentItem=e,m.slides.removeClass(v+"active-slide").eq(e).addClass(v+"active-slide"),!1;m.currentItem=e,m.slides.removeClass(v+"active-slide").eq(e).addClass(v+"active-slide"),e=Math.floor(e/m.visible)}if(m.animating=!0,m.animatingTo=e,t&&m.pause(),m.vars.before(m),m.syncExists&&!s&&b.sync("animate"),m.vars.controlNav&&b.controlNav.active(),S){var o=e*m.move;m.slides.length-o<m.move&&(o=m.slides.length-m.move),m.slides.removeClass(v+"active-slide").eq(o).each(function(){var e=T(this),t=m.showItems;for(i=1;i<=t;i++)e.addClass(v+"active-slide"),e=e.next()})}else m.slides.removeClass(v+"active-slide").eq(e).addClass(v+"active-slide");if(m.atEnd=0===e||e===m.last,m.vars.directionNav&&b.directionNav.update(),e===m.last&&(m.vars.end(m),m.vars.animationLoop||m.pause()),x)g?(m.slides.eq(m.currentSlide).css({opacity:0,zIndex:1}),m.slides.eq(e).css({opacity:1,zIndex:2}),m.wrapup(u)):(m.slides.eq(m.currentSlide).css({zIndex:1}).animate({opacity:0},m.vars.animationSpeed,m.vars.easing),m.slides.eq(e).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing,m.wrapup));else{var l,d,c,u=h?m.slides.filter(":first").height():m.computedW;d=S?(l=m.vars.itemMargin,(c=(m.itemW+l)*m.move*m.animatingTo)>m.limit&&1!==m.visible?m.limit:c):0===m.currentSlide&&e===m.count-1&&m.vars.animationLoop&&"next"!==m.direction?y?(m.count+m.cloneOffset)*u:0:m.currentSlide===m.last&&0===e&&m.vars.animationLoop&&"prev"!==m.direction?y?0:(m.count+1)*u:y?(m.count-1-e+m.cloneOffset)*u:(e+m.cloneOffset)*u,m.setProps(d,"",m.vars.animationSpeed),m.transitions?(m.vars.animationLoop&&m.atEnd||(m.animating=!1,m.currentSlide=m.animatingTo),m.container.unbind("webkitTransitionEnd transitionend"),m.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(m.ensureAnimationEnd),m.wrapup(u)}),clearTimeout(m.ensureAnimationEnd),m.ensureAnimationEnd=setTimeout(function(){m.wrapup(u)},m.vars.animationSpeed+100)):m.container.animate(m.args,m.vars.animationSpeed,m.vars.easing,function(){m.wrapup(u)})}m.vars.smoothHeight&&b.smoothHeight(m.vars.animationSpeed)}},m.wrapup=function(e){x||S||(0===m.currentSlide&&m.animatingTo===m.last&&m.vars.animationLoop?m.setProps(e,"jumpEnd"):m.currentSlide===m.last&&0===m.animatingTo&&m.vars.animationLoop&&m.setProps(e,"jumpStart")),m.animating=!1,m.currentSlide=m.animatingTo,m.vars.after(m)},m.animateSlides=function(){!m.animating&&a&&m.flexAnimate(m.getTarget("next"))},m.pause=function(){clearInterval(m.animatedSlides),m.animatedSlides=null,m.playing=!1,m.vars.pausePlay&&b.pausePlay.update("play"),m.syncExists&&b.sync("pause")},m.play=function(){m.playing&&clearInterval(m.animatedSlides),m.animatedSlides=m.animatedSlides||setInterval(m.animateSlides,m.vars.slideshowSpeed),m.started=m.playing=!0,m.vars.pausePlay&&b.pausePlay.update("pause"),m.syncExists&&b.sync("play")},m.stop=function(){m.pause(),m.stopped=!0},m.canAdvance=function(e,t){var a=w?m.pagingCount-1:m.last;return!!t||(w&&m.currentItem===m.count-1&&0===e&&"prev"===m.direction||(!w||0!==m.currentItem||e!==m.pagingCount-1||"next"===m.direction)&&((e!==m.currentSlide||w)&&(!!m.vars.animationLoop||(!m.atEnd||0!==m.currentSlide||e!==a||"next"===m.direction)&&(!m.atEnd||m.currentSlide!==a||0!==e||"next"!==m.direction))))},m.getTarget=function(e){return"next"===(m.direction=e)?m.currentSlide===m.last?0:m.currentSlide+1:0===m.currentSlide?m.last:m.currentSlide-1},m.setProps=function(e,t,a){var n,i=(n=e||(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo,-1*function(){if(S)return"setTouch"===t?e:y&&m.animatingTo===m.last?0:y?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:m.animatingTo===m.last?m.limit:n;switch(t){case"setTotal":return y?(m.count-1-m.currentSlide+m.cloneOffset)*e:(m.currentSlide+m.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return y?e:m.count*e;case"jumpStart":return y?m.count*e:e;default:return e}}()+"px");m.transitions&&(i=h?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",a=void 0!==a?a/1e3+"s":"0s",m.container.css("-"+m.pfx+"-transition-duration",a),m.container.css("transition-duration",a)),m.args[m.prop]=i,!m.transitions&&void 0!==a||m.container.css(m.args),m.container.css("transform",i)},m.setup=function(e){var t,a;x?(m.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(g?m.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+m.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(m.currentSlide).css({opacity:1,zIndex:2}):0==m.vars.fadeFirstSlide?m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).css({opacity:1}):m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing)),m.vars.smoothHeight&&b.smoothHeight()):("init"===e&&(m.viewport=T('<div class="'+v+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(m).append(m.container),m.cloneCount=0,m.cloneOffset=0,y&&(a=T.makeArray(m.slides).reverse(),m.slides=T(a),m.container.empty().append(m.slides))),m.vars.animationLoop&&!S&&(m.cloneCount=2,m.cloneOffset=1,"init"!==e&&m.container.find(".clone").remove(),m.container.append(b.uniqueID(m.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(b.uniqueID(m.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),m.newSlides=T(m.vars.selector,m),t=y?m.count-1-m.currentSlide+m.cloneOffset:m.currentSlide+m.cloneOffset,h&&!S?(m.container.height(200*(m.count+m.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){m.newSlides.css({display:"block"}),m.doMath(),m.viewport.height(m.h),m.setProps(t*m.h,"init")},"init"===e?100:0)):(m.container.width(200*(m.count+m.cloneCount)+"%"),m.setProps(t*m.computedW,"init"),setTimeout(function(){m.doMath(),m.newSlides.css({width:m.computedW,marginRight:m.computedM,float:"left",display:"block"}),m.vars.smoothHeight&&b.smoothHeight()},"init"===e?100:0)));S?(m.slides.addClass(v+"with-active-class"),m.slides.removeClass(v+"active-slide").eq(m.currentSlide).each(function(){var e=T(this),t=m.showItems;for(i=1;i<=t;i++)e.addClass(v+"active-slide"),e=e.next()})):m.slides.removeClass(v+"active-slide").eq(m.currentSlide).addClass(v+"active-slide"),m.vars.init(m)},m.doMath=function(){var e=m.slides.first(),t=m.vars.itemMargin,a=m.vars.minItems,n=m.vars.maxItems;"function"==typeof window.matchMedia?(window.matchMedia("(max-width: 767px)").matches&&(n=a=1),window.matchMedia("(max-width: 419px)").matches&&(n=a=1)):(T(window).innerWidth()<767&&(n=a=1),T(window).innerWidth()<419&&(n=a=1)),m.w=void 0===m.viewport?m.width():m.viewport.width(),m.h=e.height(),m.boxPadding=e.outerWidth()-e.width(),S?(m.showItems=a,m.itemT=m.vars.itemWidth+t,m.itemM=t,m.minW=a?a*m.itemT:m.w,m.maxW=n?n*m.itemT-t:m.w,m.itemW=m.minW>m.w?(m.w-t*(a-1))/a:m.maxW<m.w?(m.w-t*(n-1))/n:m.vars.itemWidth>m.w?m.w:m.vars.itemWidth,m.visible=Math.floor((m.w+m.itemM)/(m.itemW+m.itemM)),m.move=0<m.vars.move&&m.vars.move<m.visible?m.vars.move:m.visible,m.pagingCount=Math.ceil((m.count-m.visible)/m.move+1),m.last=m.pagingCount-1,m.limit=1===m.pagingCount?0:m.vars.itemWidth>m.w?m.itemW*(m.count-1)+t*(m.count-1):(m.itemW+t)*m.count-m.w-t):(m.itemW=m.w,m.itemM=t,m.pagingCount=m.count,m.last=m.count-1),m.computedW=m.itemW-m.boxPadding,m.computedM=m.itemM},m.update=function(e,t){m.doMath(),S||(e<m.currentSlide?m.currentSlide+=1:e<=m.currentSlide&&0!==e&&--m.currentSlide,m.animatingTo=m.currentSlide),m.vars.controlNav&&!m.manualControls&&("add"===t&&!S||m.pagingCount>m.controlNav.length?b.controlNav.update("add"):("remove"===t&&!S||m.pagingCount<m.controlNav.length)&&(S&&m.currentSlide>m.last&&(--m.currentSlide,--m.animatingTo),b.controlNav.update("remove",m.last))),m.vars.directionNav&&b.directionNav.update()},m.addSlide=function(e,t){var a=T(e);m.count+=1,m.last=m.count-1,h&&y?void 0!==t?m.slides.eq(m.count-t).after(a):m.container.prepend(a):void 0!==t?m.slides.eq(t).before(a):m.container.append(a),m.update(t,"add"),m.slides=T(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.added(m)},m.removeSlide=function(e){var t=isNaN(e)?m.slides.index(T(e)):e;--m.count,m.last=m.count-1,isNaN(e)?T(e,m.slides).remove():h&&y?m.slides.eq(m.last).remove():m.slides.eq(e).remove(),m.doMath(),m.update(t,"remove"),m.slides=T(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.removed(m)},m.editItemWidth=function(e){m.vars.itemWidth=e,b.resize()},b.init()},T(window).blur(function(e){a=!1}).focus(function(e){a=!0}),T.goodlayers_flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},T.fn.goodlayers_flexslider=function(n){if(void 0===n&&(n={}),"object"==typeof n)return this.each(function(){var e=T(this),t=n.selector?n.selector:".slides > li",a=e.find(t);1===a.length&&!0===n.allowOneSlide||0===a.length?(a.fadeIn(400),n.start&&n.start(e)):void 0===e.data("goodlayers_flexslider")&&new T.goodlayers_flexslider(this,n)});var e=T(this).data("goodlayers_flexslider");switch(n){case"play":e.play();break;case"pause":e.pause();break;case"stop":e.stop();break;case"next":e.flexAnimate(e.getTarget("next"),!0);break;case"prev":case"previous":e.flexAnimate(e.getTarget("prev"),!0);break;default:"number"==typeof n&&e.flexAnimate(n,!0)}}}(jQuery);(function(g,p,Q){function F(a,b){return parseInt(a.css(b),10)||0}function J(){var a=p,b="inner";"innerWidth"in p||(b="client",a=document.documentElement||document.body);return{width:a[b+"Width"],height:a[b+"Height"]}}function ia(){var a=L();p.location.hash="";p.scrollTo(a.x,a.y)}function ja(a,b){a="//ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");g.ajax({url:a,dataType:"jsonp"});iLCallback=function(a){b.call(this,a)}}function R(a){var b=[];g("*",a).each(function(){var a="";"none"!=g(this).css("background-image")?a=g(this).css("background-image"):"undefined"!=typeof g(this).attr("src")&&"img"==this.nodeName.toLowerCase()&&(a=g(this).attr("src"));if(-1==a.indexOf("gradient")){a=a.replace(/url\(\"/g,"");a=a.replace(/url\(/g,"");a=a.replace(/\"\)/g,"");a=a.replace(/\)/g,"");a=a.split(",");for(var d=0;d<a.length;d++)if(0<a[d].length&&-1==g.inArray(a[d],b)){var e="";D.msie&&9>D.version&&(e="?"+M(3E3*S()));b.push(a[d]+e)}}});return b}function Z(a){a=a.split(".").pop().toLowerCase();var b=-1!==a.indexOf("?")?a.split("?").pop():"";return a.replace(b,"")}function aa(a){a=Z(a);return-1!==T.image.indexOf(a)?"image":-1!==T.flash.indexOf(a)?"flash":-1!==T.video.indexOf(a)?"video":"iframe"}function ba(a,b){return parseInt(b/100*a)}function U(a){return(a=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/))?{href:a[0]||"",protocol:a[1]||"",authority:a[2]||"",host:a[3]||"",hostname:a[4]||"",port:a[5]||"",pathname:a[6]||"",search:a[7]||"",hash:a[8]||""}:null}function N(a,b){function c(a){var b=[];a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)});return b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}b=U(b||"");a=U(a||"");return b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+
c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null}function ka(a,b,c){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var d=0,e=0,f=0,h={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};d=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return a.length?a.split("."):[-8]};var g=function(a){return a?isNaN(a)?h[a]||-7:parseInt(a,10):0};a=d(a);b=d(b);e=ca(a.length,b.length);for(d=0;d<e;d++)if(a[d]!=b[d])if(a[d]=g(a[d]),b[d]=g(b[d]),a[d]<b[d]){f=-1;break}else if(a[d]>b[d]){f=1;break}if(!c)return f;switch(c){case">":case"gt":return 0<f;case">=":case"ge":return 0<=f;case"<=":case"le":return 0>=f;case"==":case"=":case"eq":return 0===f;case"<>":case"!=":case"ne":return 0!==f;case"":case"<":case"lt":return 0>f;default:return null}}
function L(){var a=0,b=0;"number"==typeof p.pageYOffset?(b=p.pageYOffset,a=p.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(b=document.body.scrollTop,a=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft);return{x:a,y:b}}function da(a,b,c){var d=r[a+b];null==d&&(d=r[b]);return null!=d?(0==b.indexOf(a)&&null==c&&(c=b.substring(a.length)),null==c&&(c=b),c+'="'+d+'" '):""}function A(a,b){if(0==a.indexOf("emb#"))return"";0==a.indexOf("obj#")&&null==b&&(b=a.substring(4));return da("obj#",a,b)}function G(a,b){if(0==a.indexOf("obj#"))return"";0==a.indexOf("emb#")&&null==b&&(b=a.substring(4));return da("emb#",a,b)}function ea(a,b){var c,d="",e=b?" />":">";-1==a.indexOf("emb#")&&(c=r["obj#"+a],null==c&&(c=r[a]),0==a.indexOf("obj#")&&(a=a.substring(4)),null!=c&&(d='  <param name="'+a+'" value="'+c+'"'+e+"\n"));return d}
function la(){for(var a=0;a<arguments.length;a++){var b=arguments[a];delete r[b];delete r["emb#"+b];delete r["obj#"+b]}}function ma(){var a="QT_GenerateOBJECTText";var b=arguments;if(4>b.length||0!=b.length%2)b=na,b=b.replace("%%",a),alert(b),a="";else{r=[];r.src=b[0];r.width=b[1];r.height=b[2];r.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";r.pluginspage="http://www.apple.com/quicktime/download/";a=b[3];if(null==a||""==a)a="6,0,2,0";r.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+
a;for(var c,d=4;d<b.length;d+=2)c=b[d].toLowerCase(),a=b[d+1],"name"==c||"id"==c?r.name=a:r[c]=a;b="<object "+A("classid")+A("width")+A("height")+A("codebase")+A("name","id")+A("tabindex")+A("hspace")+A("vspace")+A("border")+A("align")+A("class")+A("title")+A("accesskey")+A("noexternaldata")+">\n"+ea("src",!1);d="  <embed "+G("src")+G("width")+G("height")+G("pluginspage")+G("name")+G("align")+G("tabindex");la("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(c in r)a=r[c],null!=a&&(d+=G(c),b+=ea(c,!1));a=b+d+"> </embed>\n</object>"}return a}var T={flash:["swf"],image:"bmp gif jpeg jpg png tiff tif jfif jpe".split(" "),iframe:"asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt".split(" "),video:"avi mov mpg mpeg movie mp4 webm ogv ogg 3gp m4v".split(" ")},O=g(p),E=g(document),D,B,H,t="",V=navigator.userAgent||navigator.vendor||p.opera,z=!!("ontouchstart"in p)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(V),oa=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(V)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(V.substr(0,4)),K=z?"itap.iLightBox":"click.iLightBox",pa=z?"touchstart.iLightBox":"mousedown.iLightBox",qa=z?"touchend.iLightBox":"mouseup.iLightBox",W=z?"touchmove.iLightBox":"mousemove.iLightBox",I=Math.abs,P=Math.sqrt,X=Math.round,ca=Math.max,Y=Math.min,M=Math.floor,S=Math.random,fa=function(a,b,c,d){var e=this;e.options=b;e.selector=a.selector||a;e.context=a.context;e.instant=d;1>c.length?e.attachItems():e.items=c;e.vars={total:e.items.length,start:0,current:null,next:null,prev:null,BODY:g("body"),loadRequests:0,overlay:g('<div class="ilightbox-overlay"></div>'),loader:g('<div class="ilightbox-loader"><div></div></div>'),toolbar:g('<div class="ilightbox-toolbar"></div>'),innerToolbar:g('<div class="ilightbox-inner-toolbar"></div>'),title:g('<div class="ilightbox-title"></div>'),closeButton:g('<a class="ilightbox-close" title="'+e.options.text.close+'"></a>'),fullScreenButton:g('<a class="ilightbox-fullscreen" title="'+e.options.text.enterFullscreen+'"></a>'),innerPlayButton:g('<a class="ilightbox-play" title="'+
e.options.text.slideShow+'"></a>'),innerNextButton:g('<a class="ilightbox-next-button" title="'+e.options.text.next+'"></a>'),innerPrevButton:g('<a class="ilightbox-prev-button" title="'+e.options.text.previous+'"></a>'),holder:g('<div class="ilightbox-holder'+(z?" supportTouch":"")+'" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:g('<div class="ilightbox-holder'+(z?" supportTouch":"")+' ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:g('<div class="ilightbox-holder'+(z?" supportTouch":"")+' ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:g('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+e.options.text.next+'"><span></span></a>'),prevButton:g('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+e.options.text.previous+'"><span></span></a>'),thumbnails:g('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0};e.vars.hideableElements=e.vars.nextButton.add(e.vars.prevButton);e.normalizeItems();e.availPlugins();e.options.startFrom=0<e.options.startFrom&&e.options.startFrom>=e.vars.total?e.vars.total-1:e.options.startFrom;e.options.startFrom=e.options.randomStart?M(S()*e.vars.total):e.options.startFrom;e.vars.start=e.options.startFrom;d?e.instantCall():e.patchItemsEvents();e.options.linkId&&(e.hashChangeHandler(),O.iLightBoxHashChange(function(){e.hashChangeHandler()}));z&&(a=/(click|mouseenter|mouseleave|mouseover|mouseout)/ig,e.options.caption.show=e.options.caption.show.replace(a,"itap"),e.options.caption.hide=e.options.caption.hide.replace(a,"itap"),e.options.social.show=e.options.social.show.replace(a,"itap"),e.options.social.hide=e.options.social.hide.replace(a,"itap"));e.options.controls.arrows&&g.extend(e.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};fa.prototype={showLoader:function(){this.vars.loadRequests+=1;"horizontal"==this.options.path.toLowerCase()?this.vars.loader.addClass("ilightbox-show").stop().animate({top:"-30px"},this.options.show.speed,"easeOutCirc"):this.vars.loader.addClass("ilightbox-show").stop().animate({left:"-30px"},this.options.show.speed,"easeOutCirc")},hideLoader:function(){--this.vars.loadRequests;this.vars.loadRequests=0>this.vars.loadRequests?0:this.vars.loadRequests;"horizontal"==this.options.path.toLowerCase()?0>=this.vars.loadRequests&&this.vars.loader.removeClass("ilightbox-show").stop().animate({top:"-192px"},this.options.show.speed,"easeInCirc"):0>=this.vars.loadRequests&&this.vars.loader.removeClass("ilightbox-show").stop().animate({left:"-192px"},this.options.show.speed,"easeInCirc")},createUI:function(){var a=this;a.ui={currentElement:a.vars.holder,nextElement:a.vars.nextPhoto,prevElement:a.vars.prevPhoto,currentItem:a.vars.current,nextItem:a.vars.next,prevItem:a.vars.prev,hide:function(){a.closeAction()},refresh:function(){0<arguments.length?a.repositionPhoto(!0):a.repositionPhoto()},fullscreen:function(){a.fullScreenAction()}}},attachItems:function(){var a=this,b=[],c=[];g(a.selector,a.context).each(function(){var d=g(this),e=d.attr(a.options.attr)||null,f=d.data("options")&&eval("({"+d.data("options")+"})")||{},h=d.data("caption"),l=d.data("title"),k=d.data("type")||aa(e);c.push({URL:e,caption:h,title:l,type:k,options:f});a.instant||b.push(d)});a.items=c;a.itemsObject=b},normalizeItems:function(){var a=this,b=[];g.each(a.items,function(c,d){"string"==typeof d&&(d={url:d});var e=d.url||d.URL||null,f=d.options||{},h=d.caption||null,l=d.title||null,k=d.type?d.type.toLowerCase():aa(e),n="object"!=typeof e?Z(e):"";f.thumbnail=f.thumbnail||("image"==k?e:null);f.videoType=f.videoType||null;f.skin=f.skin||a.options.skin;f.width=f.width||null;f.height=f.height||null;f.mousewheel="undefined"!=typeof f.mousewheel?f.mousewheel:!0;f.swipe="undefined"!=typeof f.swipe?f.swipe:!0;f.social="undefined"!=typeof f.social?f.social:a.options.social.buttons&&g.extend({},{},a.options.social.buttons);"video"==k&&(f.html5video="undefined"!=typeof f.html5video?f.html5video:{},f.html5video.webm=f.html5video.webm||f.html5video.WEBM||null,f.html5video.controls="undefined"!=typeof f.html5video.controls?f.html5video.controls:"controls",f.html5video.preload=f.html5video.preload||"metadata",f.html5video.autoplay="undefined"!=typeof f.html5video.autoplay?f.html5video.autoplay:!1);f.width&&f.height||("video"==k?(f.width=1280,f.height=720):"iframe"==k?(f.width="100%",f.height="90%"):"flash"==k&&(f.width=1280,f.height=720));delete d.url;d.index=c;d.URL=e;d.caption=h;d.title=l;d.type=k;d.options=f;d.ext=n;b.push(d)});a.items=b},instantCall:function(){var a=this.vars.start;this.vars.current=a;this.vars.next=this.items[a+1]?a+1:null;this.vars.prev=this.items[a-1]?a-1:null;this.addContents();this.patchEvents()},addContents:function(){var a=this,b=a.vars,c=a.options,d=J(),e=c.path.toLowerCase(),f=0<b.total&&a.items.filter(function(a,b,d){return-1===["image","flash","video"].indexOf(a.type)&&"undefined"===typeof a.recognized&&(c.smartRecognition||a.options.smartRecognition)}),h=0<f.length;c.mobileOptimizer&&!c.innerToolbar&&(b.isMobile=d.width<=b.mobileMaxWidth);b.overlay.addClass(c.skin).hide().css("opacity",c.overlay.opacity);c.linkId&&b.overlay[0].setAttribute("linkid",c.linkId);c.controls.toolbar&&(b.toolbar.addClass(c.skin).append(b.closeButton),c.controls.fullscreen&&b.toolbar.append(b.fullScreenButton),c.controls.slideshow&&b.toolbar.append(b.innerPlayButton),1<b.total&&b.toolbar.append(b.innerPrevButton).append(b.innerNextButton));b.BODY.addClass("ilightbox-noscroll").append(b.overlay).append(b.loader).append(b.holder).append(b.nextPhoto).append(b.prevPhoto);c.innerToolbar||b.BODY.append(b.toolbar);c.controls.arrows&&b.BODY.append(b.nextButton).append(b.prevButton);c.controls.thumbnail&&1<b.total&&(b.BODY.append(b.thumbnails),b.thumbnails.addClass(c.skin).addClass("ilightbox-"+e),g("div.ilightbox-thumbnails-grid",b.thumbnails).empty(),b.thumbs=!0);d="horizontal"==c.path.toLowerCase()?{left:parseInt(d.width/2-b.loader.outerWidth()/2)}:{top:parseInt(d.height/2-b.loader.outerHeight()/2)};b.loader.addClass(c.skin).css(d);b.nextButton.add(b.prevButton).addClass(c.skin);"horizontal"==e&&b.loader.add(b.nextButton).add(b.prevButton).addClass("horizontal");b.BODY[b.isMobile?"addClass":"removeClass"]("isMobile");c.infinite||(b.prevButton.add(b.prevButton).add(b.innerPrevButton).add(b.innerNextButton).removeClass("disabled"),0==b.current&&b.prevButton.add(b.innerPrevButton).addClass("disabled"),b.current>=b.total-1&&b.nextButton.add(b.innerNextButton).addClass("disabled"));c.show.effect?(b.overlay.stop().fadeIn(c.show.speed),b.toolbar.stop().fadeIn(c.show.speed)):(b.overlay.show(),b.toolbar.show());var l=f.length;h?(a.showLoader(),g.each(f,function(d,e){a.ogpRecognition(this,function(d){console.log(d);var e=-1;a.items.filter(function(a,b,c){a.URL==d.url&&(e=b);return a.URL==d.url});var f=a.items[e];d&&g.extend(!0,f,{URL:d.source,type:d.type,recognized:!0,options:{html5video:d.html5video,width:"image"==d.type?0:d.width||f.width,height:"image"==d.type?0:d.height||f.height,thumbnail:f.options.thumbnail||d.thumbnail}});l--;0==l&&(a.hideLoader(),b.dontGenerateThumbs=!1,a.generateThumbnails(),c.show.effect?setTimeout(function(){a.generateBoxes()},c.show.speed):a.generateBoxes())})})):c.show.effect?setTimeout(function(){a.generateBoxes()},c.show.speed):a.generateBoxes();a.createUI();p.iLightBox={close:function(){a.closeAction()},fullscreen:function(){a.fullScreenAction()},moveNext:function(){a.moveTo("next")},movePrev:function(){a.moveTo("prev")},goTo:function(b){a.goTo(b)},refresh:function(){a.refresh()},reposition:function(){0<arguments.length?a.repositionPhoto(!0):a.repositionPhoto()},setOption:function(b){a.setOption(b)},destroy:function(){a.closeAction();a.dispatchItemsEvents()}};c.linkId&&(b.hashLock=!0,p.location.hash=c.linkId+"/"+b.current,setTimeout(function(){b.hashLock=!1},55));c.slideshow.startPaused||(a.resume(),b.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause"));"function"==typeof a.options.callback.onOpen&&a.options.callback.onOpen.call(a)},loadContent:function(a,b,c){this.createUI();a.speed=c||this.options.effects.loadedFadeSpeed;"current"==b&&(this.vars.lockWheel=a.options.mousewheel?!1:!0,this.vars.lockSwipe=a.options.swipe?!1:!0);switch(b){case"current":var d=this.vars.holder;var e=this.vars.current;break;case"next":d=this.vars.nextPhoto;e=this.vars.next;break;case"prev":d=this.vars.prevPhoto,e=this.vars.prev}d.removeAttr("style class").addClass("ilightbox-holder"+
(z?" supportTouch":"")).addClass(a.options.skin);g("div.ilightbox-inner-toolbar",d).remove();if(a.title||this.options.innerToolbar){var f=this.vars.innerToolbar.clone();if(a.title&&this.options.show.title){var h=this.vars.title.clone();h.empty().html(a.title);f.append(h)}this.options.innerToolbar&&f.append(1<this.vars.total?this.vars.toolbar.clone():this.vars.toolbar);d.prepend(f)}console.warn("loadContent",arguments);this.loadSwitcher(a,d,e,b)},loadSwitcher:function(a,b,c,d){var e=this,f=e.options,h={element:b,position:c};switch(a.type){case"image":"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.loadImage(a.URL,function(k){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);b.data({naturalWidth:k?k.width:400,naturalHeight:k?k.height:200});g("div.ilightbox-container",b).empty().append(k?'<img src="'+a.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+f.errors.loadImage+"</span>");"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);e.configureHolder(a,d,b)});break;case"video":b.data({naturalWidth:a.options.width,naturalHeight:a.options.height});"current"===d?(e.addContent(b,a),"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h)):g("div.ilightbox-container",b).empty();e.configureHolder(a,d,b);break;case"iframe":b.data({naturalWidth:a.options.width,naturalHeight:a.options.height});e.configureHolder(a,d,b);if("current"===d){var l=e.addContent(b,a);"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);l.bind("load",function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);l.unbind("load")})}else g("div.ilightbox-container",b).empty();break;case"inline":l=g(a.URL);var k=e.addContent(b,a),n=R(b);b.data({naturalWidth:e.items[c].options.width||l.outerWidth(),naturalHeight:e.items[c].options.height||l.outerHeight()});k.children().eq(0).show();"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.loadImage(n,function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);e.configureHolder(a,d,b)});break;case"flash":l=e.addContent(b,a);b.data({naturalWidth:e.items[c].options.width||l.outerWidth(),naturalHeight:e.items[c].options.height||l.outerHeight()});"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);e.configureHolder(a,d,b);break;case"ajax":var m=a.options.ajax||{};"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.showLoader();g.ajax({url:a.URL||f.ajaxSetup.url,data:m.data||null,dataType:m.dataType||"html",type:m.type||f.ajaxSetup.type,cache:m.cache||f.ajaxSetup.cache,crossDomain:m.crossDomain||f.ajaxSetup.crossDomain,global:m.global||f.ajaxSetup.global,ifModified:m.ifModified||f.ajaxSetup.ifModified,username:m.username||f.ajaxSetup.username,password:m.password||f.ajaxSetup.password,beforeSend:m.beforeSend||f.ajaxSetup.beforeSend,complete:m.complete||f.ajaxSetup.complete,success:function(k,l,n){e.hideLoader();var q=g(k),u=g("div.ilightbox-container",b),C=e.items[c].options.width||parseInt(q[0].getAttribute("width")),v=e.items[c].options.height||parseInt(q[0].getAttribute("height")),y=q[0].getAttribute("width")&&q[0].getAttribute("height")?{overflow:"hidden"}:{};u.empty().append(g('<div class="ilightbox-wrapper"></div>').css(y).html(q));b.show().data({naturalWidth:C||u.outerWidth(),naturalHeight:v||u.outerHeight()}).hide();"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);q=R(b);e.loadImage(q,function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);e.configureHolder(a,d,b)});f.ajaxSetup.success(k,l,n);"function"==typeof m.success&&m.success(k,l,n)},error:function(k,l,n){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);e.hideLoader();g("div.ilightbox-container",b).empty().append('<span class="ilightbox-alert">'+f.errors.loadContents+"</span>");e.configureHolder(a,d,b);f.ajaxSetup.error(k,l,n);"function"==typeof m.error&&m.error(k,l,n)}});break;case"html":k=a.URL;container=g("div.ilightbox-container",b);k[0].nodeName?l=k.clone():(k=g(k),l=k.selector?g("<div>"+k+"</div>"):k);var C=e.items[c].options.width||parseInt(l.attr("width")),y=e.items[c].options.height||parseInt(l.attr("height"));e.addContent(b,a);l.appendTo(document.documentElement).hide();"function"==typeof f.callback.onRender&&f.callback.onRender.call(e,e.ui,c);"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);n=R(b);"function"==typeof f.callback.onBeforeLoad&&f.callback.onBeforeLoad.call(e,e.ui,c);"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h);e.loadImage(n,function(){"function"==typeof f.callback.onAfterLoad&&f.callback.onAfterLoad.call(e,e.ui,c);"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);b.show().data({naturalWidth:C||container.outerWidth(),naturalHeight:y||container.outerHeight()}).hide();l.remove();e.configureHolder(a,d,b)})}},configureHolder:function(a,b,c){var d=this,e=d.vars,f=d.options;"current"!=b&&("next"==b?c.addClass("ilightbox-next"):c.addClass("ilightbox-prev"));if("current"==b)var h=e.current;else if("next"==b){var l=f.styles.nextOpacity;h=e.next}else l=f.styles.prevOpacity,h=e.prev;var k={element:c,position:h};d.items[h].options.width=d.items[h].options.width||0;d.items[h].options.height=d.items[h].options.height||0;"current"==b?f.show.effect?c.css(B,H).fadeIn(a.speed,function(){c.css(B,"");if(a.caption){d.setCaption(a,c);var b=g("div.ilightbox-caption",c),e=parseInt(b.outerHeight()/c.outerHeight()*100);f.caption.start&50>=e&&b.fadeIn(f.effects.fadeSpeed)}if(b=a.options.social)d.setSocial(b,a.URL,c),f.social.start&&g("div.ilightbox-social",c).fadeIn(f.effects.fadeSpeed);d.generateThumbnails();"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h);"function"==typeof a.options.onShow&&a.options.onShow.call(d,k)}):(c.show(),d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h),"function"==typeof a.options.onShow&&a.options.onShow.call(d,k)):f.show.effect?c.fadeTo(a.speed,l,function(){"next"==b?e.nextLock=!1:e.prevLock=!1;d.generateThumbnails();"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h);"function"==typeof a.options.onShow&&a.options.onShow.call(d,k)}):(c.css({opacity:l}).show(),"next"==b?e.nextLock=!1:e.prevLock=!1,d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,h),"function"==typeof a.options.onShow&&a.options.onShow.call(d,k));setTimeout(function(){d.repositionPhoto()},0)},generateBoxes:function(){var a=this.vars,b=this.options;b.infinite&&3<=a.total?(a.current==a.total-1&&(a.next=0),0==a.current&&(a.prev=a.total-1)):b.infinite=!1;this.loadContent(this.items[a.current],"current",b.show.speed);this.items[a.next]&&this.loadContent(this.items[a.next],"next",b.show.speed);this.items[a.prev]&&this.loadContent(this.items[a.prev],"prev",b.show.speed)},generateThumbnails:function(){var a=this,b=a.vars,c=a.options,d=null;if(b.thumbs&&!a.vars.dontGenerateThumbs){var e=b.thumbnails,f=g("div.ilightbox-thumbnails-container",e),h=g("div.ilightbox-thumbnails-grid",f),l=0;h.removeAttr("style").empty();g.each(a.items,function(k,n){var m=b.current==k?"ilightbox-active":"",C=b.current==k?c.thumbnails.activeOpacity:c.thumbnails.normalOpacity,y=n.options.thumbnail,q=g('<div class="ilightbox-thumbnail"></div>'),u=g('<div class="ilightbox-thumbnail-icon"></div>');q.css({opacity:0}).addClass(m);"video"!=n.type&&"flash"!=n.type||"undefined"!=typeof n.options.icon?n.options.icon&&(u.addClass("ilightbox-thumbnail-"+n.options.icon),q.append(u)):(u.addClass("ilightbox-thumbnail-video"),q.append(u));y&&a.loadImage(y,function(b){l++;b?q.data({naturalWidth:b.width,naturalHeight:b.height}).append('<img src="'+y+'" border="0" />'):q.data({naturalWidth:c.thumbnails.maxWidth,naturalHeight:c.thumbnails.maxHeight});clearTimeout(d);d=setTimeout(function(){a.positionThumbnails(e,f,h)},20);setTimeout(function(){q.fadeTo(c.effects.loadedFadeSpeed,C)},20*l)});h.append(q)});a.vars.dontGenerateThumbs=!0}},positionThumbnails:function(a,b,c){var d=this,e=d.vars,f=d.options,h=J(),l=f.path.toLowerCase();a||(a=e.thumbnails);b||(b=g("div.ilightbox-thumbnails-container",a));c||(c=g("div.ilightbox-thumbnails-grid",b));var k=g(".ilightbox-thumbnail",c);e="horizontal"==l?h.width-f.styles.pageOffsetX:k.eq(0).outerWidth()-f.styles.pageOffsetX;h="horizontal"==l?k.eq(0).outerHeight()-f.styles.pageOffsetY:h.height-f.styles.pageOffsetY;var n="horizontal"==l?0:e,m="horizontal"==l?h:0,C=g(".ilightbox-active",c),y={};3>arguments.length&&(k.css({opacity:f.thumbnails.normalOpacity}),C.css({opacity:f.thumbnails.activeOpacity}));k.each(function(a){a=g(this);var b=a.data(),c="horizontal"==l?0:f.thumbnails.maxWidth;height="horizontal"==l?f.thumbnails.maxHeight:0;dims=d.getNewDimenstions(c,height,b.naturalWidth,b.naturalHeight,!0);a.css({width:dims.width,height:dims.height});"horizontal"==l&&a.css({"float":"left"});"horizontal"==l?n+=a.outerWidth():m+=a.outerHeight()});y={width:n,height:m};c.css(y);y={};k=c.offset();var q=C.length?C.offset():{top:parseInt(h/2),left:parseInt(e/2)};k.top-=E.scrollTop();k.left-=E.scrollLeft();q.top=q.top-k.top-E.scrollTop();q.left=q.left-k.left-E.scrollLeft();"horizontal"==l?(y.top=0,y.left=parseInt(e/2-q.left-C.outerWidth()/2)):(y.top=parseInt(h/2-q.top-C.outerHeight()/2),y.left=0);3>arguments.length?c.stop().animate(y,f.effects.repositionSpeed,"easeOutCirc"):c.css(y)},loadImage:function(a,b){g.isArray(a)||(a=[a]);var c=this,d=a.length;0<d?(c.showLoader(),g.each(a,function(e,f){var h=new Image;h.onload=function(){--d;0==d&&(c.hideLoader(),b(h))};h.onerror=h.onabort=function(){--d;0==d&&(c.hideLoader(),b(!1))};h.src=a[e]})):b(!1)},patchItemsEvents:function(){var a=this,b=a.vars,c=z?"itap.iL":"click.iL",d=z?"click.iL":"itap.iL";if(a.context&&a.selector){var e=g(a.selector,a.context);g(a.context).on(c,a.selector,function(){var c=g(this);c=e.index(c);b.current=c;b.next=a.items[c+1]?c+1:null;b.prev=a.items[c-1]?c-1:null;a.addContents();a.patchEvents();return!1}).on(d,a.selector,function(){return!1})}else g.each(a.itemsObject,function(e,h){h.on(c,function(){b.current=e;b.next=a.items[e+1]?e+1:null;b.prev=a.items[e-1]?e-1:null;a.addContents();a.patchEvents();return!1}).on(d,function(){return!1})})},dispatchItemsEvents:function(){this.context&&this.selector?g(this.context).off(".iL",this.selector):g.each(this.itemsObject,function(a,b){b.off(".iL")})},refresh:function(){this.dispatchItemsEvents();this.attachItems();this.normalizeItems();this.patchItemsEvents()},patchEvents:function(){function a(a){c.isMobile||(c.mouseID||c.hideableElements.show(),c.mouseID=clearTimeout(c.mouseID),-1===k.indexOf(a.target)&&(c.mouseID=setTimeout(function(){c.hideableElements.hide();c.mouseID=clearTimeout(c.mouseID)},3E3)))}var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=g(".ilightbox-holder"),h=t.fullScreenEventName+".iLightBox",l=verticalDistanceThreshold=100,k=[c.nextButton[0],c.prevButton[0],c.nextButton[0].firstChild,c.prevButton[0].firstChild];O.bind("resize.iLightBox",function(){var a=J();d.mobileOptimizer&&!d.innerToolbar&&(c.isMobile=a.width<=c.mobileMaxWidth);c.BODY[c.isMobile?"addClass":"removeClass"]("isMobile");b.repositionPhoto(null);z&&(clearTimeout(c.setTime),c.setTime=setTimeout(function(){var a=L().y;p.scrollTo(0,a-30);p.scrollTo(0,a+30);p.scrollTo(0,a)},2E3));c.thumbs&&b.positionThumbnails()}).bind("keydown.iLightBox",function(a){if(d.controls.keyboard)switch(a.keyCode){case 13:a.shiftKey&&d.keyboard.shift_enter&&b.fullScreenAction();break;case 27:d.keyboard.esc&&b.closeAction();break;case 37:d.keyboard.left&&!c.lockKey&&b.moveTo("prev");break;case 38:d.keyboard.up&&!c.lockKey&&b.moveTo("prev");break;case 39:d.keyboard.right&&!c.lockKey&&b.moveTo("next");break;case 40:d.keyboard.down&&!c.lockKey&&b.moveTo("next")}});t.supportsFullScreen&&O.bind(h,function(){b.doFullscreen()});h=[d.caption.show+".iLightBox",d.caption.hide+".iLightBox",d.social.show+".iLightBox",d.social.hide+".iLightBox"].filter(function(a,b,c){return c.lastIndexOf(a)===b});var n="";g.each(h,function(a,b){0!=a&&(n+=" ");n+=b});E.on(K,".ilightbox-overlay",function(){d.overlay.blur&&b.closeAction()}).on(K,".ilightbox-next, .ilightbox-next-button",function(){b.moveTo("next")}).on(K,".ilightbox-prev, .ilightbox-prev-button",function(){b.moveTo("prev")}).on(K,".ilightbox-thumbnail",function(){var a=g(this);a=g(".ilightbox-thumbnail",c.thumbnails).index(a);a!=c.current&&b.goTo(a)}).on(n,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){var b=g("div.ilightbox-caption",c.holder),e=g("div.ilightbox-social",c.holder),f=d.effects.fadeSpeed;c.nextLock||c.prevLock?(a.type!=d.caption.show||b.is(":visible")?a.type==d.caption.hide&&b.is(":visible")&&b.fadeOut(f):b.fadeIn(f),a.type!=d.social.show||e.is(":visible")?a.type==d.social.hide&&e.is(":visible")&&e.fadeOut(f):e.fadeIn(f)):(a.type!=d.caption.show||b.is(":visible")?a.type==d.caption.hide&&b.is(":visible")&&b.stop().fadeOut(f):b.stop().fadeIn(f),a.type!=d.social.show||e.is(":visible")?a.type==d.social.hide&&e.is(":visible")&&e.stop().fadeOut(f):e.stop().fadeIn(f))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(a){c.lockWheel="mouseenter"==a.type?!0:!1}).on(K,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var a=g(this);a.hasClass("ilightbox-fullscreen")?b.fullScreenAction():a.hasClass("ilightbox-play")?(b.resume(),a.addClass("ilightbox-pause").removeClass("ilightbox-play")):a.hasClass("ilightbox-pause")?(b.pause(),a.addClass("ilightbox-play").removeClass("ilightbox-pause")):b.closeAction()}).on(W,".ilightbox-overlay, .ilightbox-thumbnails-container",function(a){a.preventDefault()});if(d.controls.arrows&&!z)E.on("mousemove.iLightBox",a);if(d.controls.slideshow&&d.slideshow.pauseOnHover)E.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){"mouseenter"==a.type&&c.cycleID?b.pause():"mouseleave"==a.type&&c.isPaused&&b.resume()});h=g(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");if(d.controls.mousewheel)h.on("mousewheel.iLightBox",function(a,d){c.lockWheel||(a.preventDefault(),0>d?b.moveTo("next"):0<d&&b.moveTo("prev"))});if(d.controls.swipe)f.on(pa,function(a){function h(a){var b=g(this);a=r[a];var c=[w.coords[0]-x.coords[0],w.coords[1]-x.coords[1]];b[0].style["horizontal"==e?"left":"top"]=("horizontal"==e?a.left-c[0]:a.top-c[1])+"px"}function k(a){if(w){var b=a.originalEvent.touches?a.originalEvent.touches[0]:a;x={time:(new Date).getTime(),coords:[b.pageX-n,b.pageY-m]};f.each(h);a.preventDefault()}}function q(){f.each(function(){var a=g(this),b=a.data("offset")||{top:a.offset().top-m,left:a.offset().left-n},c=b.top;b=b.left;a.css(B,H).stop().animate({top:c,left:b},500,"easeOutCirc",function(){a.css(B,"")})})}if(!(c.nextLock||c.prevLock||1==c.total||c.lockSwipe)){c.BODY.addClass("ilightbox-closedhand");a=a.originalEvent.touches?a.originalEvent.touches[0]:a;var m=E.scrollTop(),n=E.scrollLeft(),p=[f.eq(0).offset(),f.eq(1).offset(),f.eq(2).offset()],r=[{top:p[0].top-m,left:p[0].left-n},{top:p[1].top-m,left:p[1].left-n},{top:p[2].top-m,left:p[2].left-n}],w={time:(new Date).getTime(),coords:[a.pageX-n,a.pageY-m]},x;f.bind(W,k);E.one(qa,function(a){f.unbind(W,k);c.BODY.removeClass("ilightbox-closedhand");w&&x&&("horizontal"==e&&1E3>x.time-w.time&&I(w.coords[0]-x.coords[0])>l&&I(w.coords[1]-x.coords[1])<verticalDistanceThreshold?w.coords[0]>x.coords[0]?c.current!=c.total-1||d.infinite?(c.isSwipe=!0,b.moveTo("next")):q():0!=c.current||d.infinite?(c.isSwipe=!0,b.moveTo("prev")):q():"vertical"==e&&1E3>x.time-w.time&&I(w.coords[1]-x.coords[1])>l&&I(w.coords[0]-x.coords[0])<verticalDistanceThreshold?w.coords[1]>x.coords[1]?c.current!=c.total-1||d.infinite?(c.isSwipe=!0,b.moveTo("next")):q():0!=c.current||d.infinite?(c.isSwipe=!0,b.moveTo("prev")):q():q());w=x=Q})}})},goTo:function(a){var b=this,c=b.vars,d=b.options,e=a-c.current;d.infinite&&(a==c.total-1&&0==c.current&&(e=-1),c.current==c.total-1&&0==a&&(e=1));if(1==e)b.moveTo("next");else if(-1==e)b.moveTo("prev");else{if(c.nextLock||c.prevLock)return!1;"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui);d.linkId&&(c.hashLock=!0,p.location.hash=d.linkId+"/"+a);b.items[a]&&(b.items[a].options.mousewheel?b.vars.lockWheel=!1:c.lockWheel=!0,c.lockSwipe=b.items[a].options.swipe?!1:!0);g.each([c.holder,c.nextPhoto,c.prevPhoto],function(a,b){b.css(B,H).fadeOut(d.effects.loadedFadeSpeed)});c.current=a;c.next=a+1;c.prev=a-1;b.createUI();setTimeout(function(){b.generateBoxes()},d.effects.loadedFadeSpeed+50);g(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(a).addClass("ilightbox-active");b.positionThumbnails();d.linkId&&setTimeout(function(){c.hashLock=!1},55);d.infinite||(c.nextButton.add(c.prevButton).add(c.innerPrevButton).add(c.innerNextButton).removeClass("disabled"),0==c.current&&c.prevButton.add(c.innerPrevButton).addClass("disabled"),c.current>=c.total-1&&c.nextButton.add(c.innerNextButton).addClass("disabled"));b.resetCycle();"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)}},moveTo:function(a){var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=J(),h=d.effects.switchSpeed;if(c.nextLock||c.prevLock)return!1;var l="next"==a?c.next:c.prev;d.linkId&&(c.hashLock=!0,p.location.hash=d.linkId+"/"+l);if("next"==a){if(!b.items[l])return!1;var k=c.nextPhoto,n=c.holder,m=c.prevPhoto,C="ilightbox-prev",y="ilightbox-next"}else if("prev"==a){if(!b.items[l])return!1;k=c.prevPhoto;n=c.holder;m=c.nextPhoto;C="ilightbox-next";y="ilightbox-prev"}"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui);"next"==a?c.nextLock=!0:c.prevLock=!0;var q=g("div.ilightbox-caption",n),u=g("div.ilightbox-social",n);q.length&&q.stop().fadeOut(h,function(){g(this).remove()});u.length&&u.stop().fadeOut(h,function(){g(this).remove()});b.items[l].caption&&(b.setCaption(b.items[l],k),q=g("div.ilightbox-caption",k),u=parseInt(q.outerHeight()/k.outerHeight()*100),d.caption.start&&50>=u&&q.fadeIn(h));if(q=b.items[l].options.social)b.setSocial(q,b.items[l].URL,k),d.social.start&&g("div.ilightbox-social",k).fadeIn(d.effects.fadeSpeed);g.each([k,n,m],function(a,b){b.removeClass("ilightbox-next ilightbox-prev")});var v=k.data("offset");q=f.width-d.styles.pageOffsetX;f=f.height-d.styles.pageOffsetY;u=v.newDims.width;var r=v.newDims.height,t=v.thumbsOffset;v=v.diff;var w=parseInt(f/2-r/2-v.H-t.H/2);v=parseInt(q/2-u/2-v.W-t.W/2);k.css(B,H).animate({top:w,left:v,opacity:1},h,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){k.css(B,"")});g("div.ilightbox-container",k).animate({width:u,height:r},h,c.isSwipe?"easeOutCirc":"easeInOutCirc");r=n.data("offset");var x=r.object;v=r.diff;u=r.newDims.width;r=r.newDims.height;u=parseInt(u*d.styles["next"==a?"prevScale":"nextScale"]);r=parseInt(r*d.styles["next"==a?"prevScale":"nextScale"]);w="horizontal"==e?parseInt(f/2-x.offsetY-r/2-v.H-t.H/2):parseInt(f-x.offsetX-v.H-t.H/2);"prev"==a?v="horizontal"==e?parseInt(q-x.offsetX-v.W-t.W/2):parseInt(q/2-u/2-v.W-x.offsetY-t.W/2):(w="horizontal"==e?w:parseInt(x.offsetX-v.H-r-t.H/2),v="horizontal"==e?parseInt(x.offsetX-v.W-u-t.W/2):parseInt(q/2-x.offsetY-u/2-v.W-t.W/2));g("div.ilightbox-container",n).animate({width:u,height:r},h,c.isSwipe?"easeOutCirc":"easeInOutCirc");n.addClass(C).css(B,H).animate({top:w,left:v,opacity:d.styles.prevOpacity},h,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){n.css(B,"");g(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(l).addClass("ilightbox-active");b.positionThumbnails();b.items[l]&&(c.lockWheel=b.items[l].options.mousewheel?!1:!0,c.lockSwipe=b.items[l].options.swipe?!1:!0);c.isSwipe=!1;-1!==["iframe","video"].indexOf(b.items[c.current].type)&&g("div.ilightbox-container",n).empty();"next"==a?(c.nextPhoto=m,c.prevPhoto=n,c.holder=k,c.nextPhoto.hide(),c.next+=1,c.prev=c.current,c.current+=1,d.infinite&&(c.current>c.total-1&&(c.current=0),c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.next]?b.loadContent(b.items[c.next],"next"):c.nextLock=!1):(c.prevPhoto=m,c.nextPhoto=n,c.holder=k,c.prevPhoto.hide(),c.next=c.current,c.current=c.prev,c.prev=c.current-1,d.infinite&&(c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.prev]?b.loadContent(b.items[c.prev],"prev"):c.prevLock=!1);-1!==["iframe","video"].indexOf(b.items[c.current].type)&&b.loadContent(b.items[c.current],"current");d.linkId&&setTimeout(function(){c.hashLock=!1},55);d.infinite||(c.nextButton.add(c.prevButton).add(c.innerPrevButton).add(c.innerNextButton).removeClass("disabled"),0==c.current&&c.prevButton.add(c.innerPrevButton).addClass("disabled"),c.current>=c.total-1&&c.nextButton.add(c.innerNextButton).addClass("disabled"));b.repositionPhoto();b.resetCycle();"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)});w="horizontal"==e?F(m,"top"):"next"==a?parseInt(-(f/2)-m.outerHeight()):parseInt(2*w);v="horizontal"==e?"next"==a?parseInt(-(q/2)-m.outerWidth()):parseInt(2*v):F(m,"left");m.css(B,H).animate({top:w,left:v,opacity:d.styles.nextOpacity},h,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){m.css(B,"")}).addClass(y)},setCaption:function(a,b){var c=g('<div class="ilightbox-caption"></div>');a.caption&&(c.html(a.caption),g("div.ilightbox-container",b).append(c))},normalizeSocial:function(a,b){var c=this.options,d=p.location.href;g.each(a,function(e,f){if(!f)return!0;switch(e.toLowerCase()){case"facebook":var h="http://www.facebook.com/share.php?v=4&src=bm&u={URL}";var g="Share on Facebook";break;case"twitter":h="http://twitter.com/home?status={URL}";g="Share on Twitter";break;case"googleplus":h="https://plus.google.com/share?url={URL}";g="Share on Google+";break;case"delicious":h="http://delicious.com/post?url={URL}";g="Share on Delicious";break;case"digg":h="http://digg.com/submit?phase=2&url={URL}";g="Share on Digg";break;case"reddit":h="http://reddit.com/submit?url={URL}",g="Share on reddit"}a[e]={URL:f.URL&&N(d,f.URL)||c.linkId&&p.location.href||"string"!==typeof b&&d||b&&N(d,b)||d,source:f.source||h||f.URL&&N(d,f.URL)||b&&N(d,b),text:f.text||g||"Share on "+e,width:"undefined"==typeof f.width||isNaN(f.width)?640:parseInt(f.width),height:f.height||360}});return a},setSocial:function(a,b,c){var d=g('<div class="ilightbox-social"></div>'),e="<ul>";a=this.normalizeSocial(a,b);g.each(a,function(a,b){a.toLowerCase();var c=b.source.replace(/\{URL\}/g,encodeURIComponent(b.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+"));e+='<li class="'+a+'"><a href="'+c+'" onclick="javascript:window.open(this.href'+
(0>=b.width||0>=b.height?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+b.height+",width="+b.width+",left=40,top=40'")+');return false;" title="'+b.text+'" target="_blank"></a></li>'});e+="</ul>";d.html(e);g("div.ilightbox-container",c).append(d)},fullScreenAction:function(){t.supportsFullScreen?t.isFullScreen()?t.cancelFullScreen(document.documentElement):t.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var a=this.vars,b=J(),c=this.options;if(c.fullAlone){var d=a.holder,e=this.items[a.current],f=b.width,h=b.height,l=[d,a.nextPhoto,a.prevPhoto,a.nextButton,a.prevButton,a.overlay,a.toolbar,a.thumbnails,a.loader];b=[a.nextPhoto,a.prevPhoto,a.nextButton,a.prevButton,a.loader,a.thumbnails];if(a.isInFullScreen)a.isInFullScreen=a.lockKey=a.lockWheel=a.lockSwipe=!1,a.overlay.css({opacity:this.options.overlay.opacity}),g.each(b,function(a,b){b.show()}),a.fullScreenButton.attr("title",c.text.enterFullscreen),d.data({naturalWidth:d.data("naturalWidthOld"),naturalHeight:d.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),g.each(l,function(a,b){b.removeClass("ilightbox-fullscreen")}),"function"==typeof c.callback.onExitFullScreen&&c.callback.onExitFullScreen.call(this,this.ui);else{a.isInFullScreen=a.lockKey=a.lockWheel=a.lockSwipe=!0;a.overlay.css({opacity:1});g.each(b,function(a,b){b.hide()});a.fullScreenButton.attr("title",c.text.exitFullscreen);if(-1!=c.fullStretchTypes.indexOf(e.type))d.data({naturalWidthOld:d.data("naturalWidth"),naturalHeightOld:d.data("naturalHeight"),naturalWidth:f,naturalHeight:h});else{b=e.options.fullViewPort||c.fullViewPort||"";a=f;e=h;f=d.data("naturalWidth");var k=d.data("naturalHeight");"fill"==b.toLowerCase()?(e=a/f*k,e<h&&(a=h/k*f,e=h)):"fit"==b.toLowerCase()?(h=this.getNewDimenstions(a,e,f,k,!0),a=h.width,e=h.height):"stretch"!=b.toLowerCase()&&(h=this.getNewDimenstions(a,e,f,k,f>a||k>e?!0:!1),a=h.width,e=h.height);d.data({naturalWidthOld:d.data("naturalWidth"),naturalHeightOld:d.data("naturalHeight"),naturalWidth:a,naturalHeight:e})}g.each(l,function(a,b){b.addClass("ilightbox-fullscreen")});"function"==typeof c.callback.onEnterFullScreen&&c.callback.onEnterFullScreen.call(this,this.ui)}}else a.isInFullScreen=a.isInFullScreen?!1:!0;this.repositionPhoto(!0)},closeAction:function(){var a=this.vars,b=this.options;O.unbind(".iLightBox");E.off(".iLightBox");a.isInFullScreen&&t.cancelFullScreen(document.documentElement);g(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox");b.hide.effect?a.overlay.stop().fadeOut(b.hide.speed,function(){a.overlay.remove();a.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(a.overlay.remove(),a.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));g.each([a.toolbar,a.holder,a.nextPhoto,a.prevPhoto,a.nextButton,a.prevButton,a.loader,a.thumbnails],function(a,b){b.removeAttr("style").remove()});a.dontGenerateThumbs=a.isInFullScreen=!1;p.iLightBox=null;b.linkId&&(a.hashLock=!0,ia(),setTimeout(function(){a.hashLock=!1},55));"function"==typeof b.callback.onHide&&b.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var a=this.vars,b=this.options,c=b.path.toLowerCase(),d=J(),e=d.width,f=d.height;d=a.isInFullScreen&&b.fullAlone||a.isMobile?0:"horizontal"==c?0:a.thumbnails.outerWidth();var h=a.isMobile?a.toolbar.outerHeight():a.isInFullScreen&&b.fullAlone?0:"horizontal"==c?a.thumbnails.outerHeight():0;e=a.isInFullScreen&&b.fullAlone?e:e-b.styles.pageOffsetX;f=a.isInFullScreen&&b.fullAlone?f:f-b.styles.pageOffsetY;var l="horizontal"==c?parseInt(this.items[a.next]||this.items[a.prev]?2*(b.styles.nextOffsetX+b.styles.prevOffsetX):30>=e/10?30:e/10):parseInt(30>=e/10?30:e/10)+d,k="horizontal"==c?parseInt(30>=f/10?30:f/10)+h:parseInt(this.items[a.next]||this.items[a.prev]?2*(b.styles.nextOffsetX+b.styles.prevOffsetX):30>=f/10?30:f/10);d={type:"current",width:e,height:f,item:this.items[a.current],offsetW:l,offsetH:k,thumbsOffsetW:d,thumbsOffsetH:h,animate:arguments.length,holder:a.holder};this.repositionEl(d);this.items[a.next]&&(d=g.extend(d,{type:"next",item:this.items[a.next],offsetX:b.styles.nextOffsetX,offsetY:b.styles.nextOffsetY,holder:a.nextPhoto}),this.repositionEl(d));this.items[a.prev]&&(d=g.extend(d,{type:"prev",item:this.items[a.prev],offsetX:b.styles.prevOffsetX,offsetY:b.styles.prevOffsetY,holder:a.prevPhoto}),this.repositionEl(d));b="horizontal"==c?{left:parseInt(e/2-a.loader.outerWidth()/2)}:{top:parseInt(f/2-a.loader.outerHeight()/2)};a.loader.css(b)},repositionEl:function(a){var b=this.vars,c=this.options,d=c.path.toLowerCase(),e="current"==a.type?b.isInFullScreen&&c.fullAlone?a.width:a.width-a.offsetW:a.width-a.offsetW,f="current"==a.type?b.isInFullScreen&&c.fullAlone?a.height:a.height-a.offsetH:a.height-a.offsetH,h=a.item,l=a.item.options,k=a.holder,n=a.offsetX||0,m=a.offsetY||0,p=a.thumbsOffsetW,r=a.thumbsOffsetH;"current"==a.type?("number"==typeof l.width&&l.width&&(e=b.isInFullScreen&&c.fullAlone&&(-1!=c.fullStretchTypes.indexOf(h.type)||l.fullViewPort||c.fullViewPort)?e:l.width>e?e:l.width),"number"==typeof l.height&&l.height&&(f=b.isInFullScreen&&c.fullAlone&&(-1!=c.fullStretchTypes.indexOf(h.type)||l.fullViewPort||c.fullViewPort)?f:l.height>f?f:l.height)):("number"==typeof l.width&&l.width&&(e=l.width>e?e:l.width),"number"==typeof l.height&&l.height&&(f=l.height>f?f:l.height));c.innerToolbar&&(f=parseInt(f-g(".ilightbox-inner-toolbar",k).outerHeight()));b="string"==typeof l.width&&-1!=l.width.indexOf("%")?ba(parseInt(l.width.replace("%","")),a.width):k.data("naturalWidth");h="string"==typeof l.height&&-1!=l.height.indexOf("%")?ba(parseInt(l.height.replace("%","")),a.height):k.data("naturalHeight");h="string"==typeof l.width&&-1!=l.width.indexOf("%")||"string"==typeof l.height&&-1!=l.height.indexOf("%")?{width:b,height:h}:this.getNewDimenstions(e,f,b,h);e=g.extend({},h,{});"prev"==a.type||"next"==a.type?(b=parseInt(h.width*("next"==a.type?c.styles.nextScale:c.styles.prevScale)),h=parseInt(h.height*("next"==a.type?c.styles.nextScale:c.styles.prevScale))):(b=h.width,h=h.height);f=parseInt((F(k,"padding-left")+F(k,"padding-right")+F(k,"border-left-width")+F(k,"border-right-width"))/2);l=parseInt((F(k,"padding-top")+F(k,"padding-bottom")+F(k,"border-top-width")+F(k,"border-bottom-width")+(g(".ilightbox-inner-toolbar",k).outerHeight()||0))/2);switch(a.type){case"current":var q=parseInt(a.height/2-h/2-l-r/2),u=parseInt(a.width/2-b/2-f-p/2);break;case"next":q="horizontal"==d?parseInt(a.height/2-m-h/2-l-r/2):parseInt(a.height-n-l-r/2);u="horizontal"==d?parseInt(a.width-n-f-p/2):parseInt(a.width/2-b/2-f-m-p/2);break;case"prev":q="horizontal"==d?parseInt(a.height/2-m-h/2-l-r/2):parseInt(n-l-h-r/2),u="horizontal"==d?parseInt(n-f-b-p/2):parseInt(a.width/2-m-b/2-f-p/2)}k.data("offset",{top:q,left:u,newDims:e,diff:{W:f,H:l},thumbsOffset:{W:p,H:r},object:a});0<a.animate&&c.effects.reposition?(k.css(B,H).stop().animate({top:q,left:u},c.effects.repositionSpeed,"easeOutCirc",function(){k.css(B,"")}),g("div.ilightbox-container",k).stop().animate({width:b,height:h},c.effects.repositionSpeed,"easeOutCirc"),g("div.ilightbox-inner-toolbar",k).stop().animate({width:b},c.effects.repositionSpeed,"easeOutCirc",function(){g(this).css("overflow","visible")})):(k.css({top:q,left:u}),g("div.ilightbox-container",k).css({width:b,height:h}),g("div.ilightbox-inner-toolbar",k).css({width:b}))},resume:function(a){var b=this,c=b.vars,d=b.options;!d.slideshow.pauseTime||d.controls.slideshow&&1>=c.total||a<c.isPaused||(c.isPaused=0,c.cycleID&&(c.cycleID=clearTimeout(c.cycleID)),c.cycleID=setTimeout(function(){c.current==c.total-1?b.goTo(0):b.moveTo("next")},d.slideshow.pauseTime))},pause:function(a){var b=this.vars;a<b.isPaused||(b.isPaused=a||100,b.cycleID&&(b.cycleID=clearTimeout(b.cycleID)))},resetCycle:function(){var a=this.vars;this.options.controls.slideshow&&a.cycleID&&!a.isPaused&&this.resume()},getNewDimenstions:function(a,b,c,d,e){factor=a?b?Y(a/c,b/d):a/c:b/d;e||(factor>this.options.maxScale?factor=this.options.maxScale:factor<this.options.minScale&&(factor=this.options.minScale));a=this.options.keepAspectRatio?X(c*factor):a;b=this.options.keepAspectRatio?X(d*factor):b;return{width:a,height:b,ratio:factor}},setOption:function(a){this.options=g.extend(!0,this.options,a||{});this.refresh()},availPlugins:function(){var a=document.createElement("video");this.plugins={flash:!oa,quicktime:0<=parseInt(ha.getVersion("QuickTime"))?!0:!1,html5H264:!(!a.canPlayType||!a.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!a.canPlayType||!a.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!a.canPlayType||!a.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!a.canPlayType||!a.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(a,b){switch(b.type){case"video":var c=!1,d=b.videoType,e=b.options.html5video;("video/mp4"==d||"mp4"==b.ext||"m4v"==b.ext||e.h264)&&this.plugins.html5H264?(b.ext="mp4",b.URL=e.h264||b.URL):e.webm&&this.plugins.html5WebM?(b.ext="webm",b.URL=e.webm||b.URL):e.ogg&&this.plugins.html5Vorbis&&(b.ext="ogv",b.URL=e.ogg||b.URL);!this.plugins.html5H264||"video/mp4"!=d&&"mp4"!=b.ext&&"m4v"!=b.ext?!this.plugins.html5WebM||"video/webm"!=d&&"webm"!=b.ext?!this.plugins.html5Vorbis||"video/ogg"!=d&&"ogv"!=b.ext?!this.plugins.html5QuickTime||"video/quicktime"!=d&&"mov"!=b.ext&&"qt"!=b.ext||(c=!0,d="video/quicktime"):(c=!0,d="video/ogg"):(c=!0,d="video/webm"):(c=!0,d="video/mp4");if(c)var f=g("<video />",{width:"100%",height:"100%",preload:e.preload,autoplay:e.autoplay,poster:e.poster,controls:e.controls}).append(g("<source />",{src:b.URL,type:d}));else this.plugins.quicktime?(f=g("<object />",{type:"video/quicktime",pluginspage:"http://www.apple.com/quicktime/download"}).attr({data:b.URL,width:"100%",height:"100%"}).append(g("<param />",{name:"src",value:b.URL})).append(g("<param />",{name:"autoplay",value:"false"})).append(g("<param />",{name:"loop",value:"false"})).append(g("<param />",{name:"scale",value:"tofit"})),D.msie&&(f=ma(b.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):f=g("<span />",{"class":"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.apple.com/quicktime/download").replace("{type}","QuickTime")});break;case"flash":if(this.plugins.flash){var h="",l=0;b.options.flashvars?g.each(b.options.flashvars,function(a,b){0!=l&&(h+="&");h+=a+"="+encodeURIComponent(b);l++}):h=null;f=g("<embed />").attr({type:"application/x-shockwave-flash",src:b.URL,width:"number"==typeof b.options.width&&b.options.width&&"1"==this.options.minScale&&"1"==this.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==this.options.minScale&&"1"==this.options.maxScale?b.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:h,fullscreen:"yes"})}else f=g("<span />",{"class":"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.adobe.com/go/getflash").replace("{type}","Adobe Flash player")});break;case"iframe":f=g("<iframe />").attr({width:"number"==typeof b.options.width&&b.options.width&&"1"==this.options.minScale&&"1"==this.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==this.options.minScale&&"1"==this.options.maxScale?b.options.height:"100%",src:b.URL,frameborder:0,hspace:0,vspace:0,scrolling:z?"auto":"scroll",webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":f=g('<div class="ilightbox-wrapper"></div>').html(g(b.URL).clone(!0));break;case"html":c=b.URL,c[0].nodeName||(c=g(b.URL),c=c.selector?g("<div>"+c+"</div>"):c),f=g('<div class="ilightbox-wrapper"></div>').html(c)}g("div.ilightbox-container",a).empty().html(f);"video"===f[0].tagName.toLowerCase()&&D.webkit&&setTimeout(function(){var a=f[0].currentSrc+"?"+M(3E4*S());f[0].currentSrc=a;f[0].src=a});return f},ogpRecognition:function(a,b){var c=this,d=a.URL;c.showLoader();ja(d,function(a){c.hideLoader();if(a){var d={length:!1};d.url=a.url;if(200==a.status){a=a.results;var e=a.type,g=a.source;d.source=g.src;d.width=g.width&&parseInt(g.width)||0;d.height=g.height&&parseInt(g.height)||0;d.type=e;d.thumbnail=g.thumbnail||a.images&&a.images[0];d.html5video=a.html5video||{};d.length=!0;"application/x-shockwave-flash"==g.type?d.type="flash":-1!=g.type.indexOf("video/")?d.type="video":-1!=g.type.indexOf("/html")?d.type="iframe":-1!=g.type.indexOf("image/")&&(d.type="image")}else if("undefined"!=typeof a.response)throw a.response;b.call(this,d.length?d:!1)}})},hashChangeHandler:function(a){var b=this.vars,c=this.options;a=U(a||p.location.href).hash;var d=a.split("/");b.hashLock||"#"+c.linkId!=d[0]&&1<a.length||(d[1]?(b=d[1]||0,this.items[b]?(a=g(".ilightbox-overlay"),a.length&&a.attr("linkid")==c.linkId?this.goTo(b):this.itemsObject[b].trigger(z?"itap":"click")):(a=g(".ilightbox-overlay"),a.length&&this.closeAction())):(a=g(".ilightbox-overlay"),a.length&&this.closeAction()))}};g.fn.iLightBox=function(){var a=arguments,b=g.isPlainObject(a[0])?a[0]:a[1],c=g.isArray(a[0])||"string"==typeof a[0]?a[0]:a[1];b||(b={});b=g.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5E3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(a,b){},cache:!1,complete:function(a,b){},crossDomain:!1,error:function(a,b,c){},success:function(a,b,c){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},b);var d=g.isArray(c)||"string"==typeof c?!0:!1;c=g.isArray(c)?c:[];"string"==typeof a[0]&&(c[0]=a[0]);if(ka(g.fn.jquery,"1.8",">=")){var e=new fa(g(this),b,c,d);return{close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(a){e.goTo(a)},refresh:function(){e.refresh()},reposition:function(){0<arguments.length?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(a){e.setOption(a)},destroy:function(){e.closeAction();e.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+";};g.iLightBox=function(a,b){return g.fn.iLightBox(a,b)};g.extend(g.easing,{easeInCirc:function(a,b,c,d,e){return-d*(P(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*P(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(P(1-b*b)-1)+c:d/2*(P(1-(b-=2)*b)+1)+c}});(function(){g.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(a,b){g.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)};g.attrFn&&(g.attrFn[b]=!0)});g.event.special.itap={setup:function(){var a=this,b=g(this),c,d;b.bind("touchstart.iTap",function(e){c=L();b.one("touchend.iTap",function(b){d=L();b=g.event.fix(b||p.event);b.type="itap";c&&d&&c.x==d.x&&c.y==d.y&&(g.event.dispatch||g.event.handle).call(a,b);c=d=Q})})},teardown:function(){g(this).unbind("touchstart.iTap")}}})();(function(){t={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""};browserPrefixes=["webkit","moz","o","ms","khtml"];if("undefined"!=typeof document.cancelFullScreen)t.supportsFullScreen=!0;else for(var a=0,b=browserPrefixes.length;a<b;a++)if(t.prefix=browserPrefixes[a],"undefined"!=typeof document[t.prefix+"CancelFullScreen"]){t.supportsFullScreen=!0;break}t.supportsFullScreen&&(t.fullScreenEventName=t.prefix+"fullscreenchange",t.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},t.requestFullScreen=function(a){return""===this.prefix?a.requestFullScreen():a[this.prefix+"RequestFullScreen"]()},t.cancelFullScreen=function(a){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})})();(function(){var a=navigator.userAgent;a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||0>a.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];a=b[1]||"";b=b[2]||"0";D={};a&&(D[a]=!0,D.version=b);D.chrome?D.webkit=!0:D.webkit&&(D.safari=!0)})();(function(){function a(a){for(var d=0,f=b.length;d<f;d++){var h=b[d]?b[d]+a.charAt(0).toUpperCase()+a.slice(1):a;if(c.style[h]!==Q)return h}}var b=["","webkit","moz","ms","o"],c=document.createElement("div");B=a("transform")||"";H=a("perspective")?"translateZ(0) ":""})();var ha={version:"0.7.9",name:"PluginDetect",handler:function(a,b,c){return function(){a(b,c)}},openTag:"<",isDefined:function(a){return"undefined"!=typeof a},isArray:function(a){return/array/i.test(Object.prototype.toString.call(a))},isFunc:function(a){return"function"==typeof a},isString:function(a){return"string"==typeof a},isNum:function(a){return"number"==typeof a},isStrNum:function(a){return"string"==typeof a&&/\d/.test(a)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(a,b){var c=this.isStrNum(a)?(this.isDefined(b)?new RegExp(b):this.getNumRegx).exec(a):null;return c?c[0]:null},compareNums:function(a,b,c){var d=parseInt;if(this.isStrNum(a)&&this.isStrNum(b)){if(this.isDefined(c)&&c.compareNums)return c.compareNums(a,b);a=a.split(this.splitNumRegx);b=b.split(this.splitNumRegx);for(c=0;c<Y(a.length,b.length);c++){if(d(a[c],10)>d(b[c],10))return 1;if(d(a[c],10)<d(b[c],10))return-1}}return 0},formatNum:function(a,b){var c;if(!this.isStrNum(a))return null;this.isNum(b)||(b=4);b--;var d=a.replace(/\s/g,"").split(this.splitNumRegx).concat(["0","0","0","0"]);for(c=0;4>c;c++)if(/^(0+)(.+)$/.test(d[c])&&(d[c]=RegExp.$2),c>b||!/\d/.test(d[c]))d[c]="0";return d.slice(0,4).join(",")},$$hasMimeType:function(a){return function(b){if(!a.isIE&&b){var c,d,e=a.isArray(b)?b:a.isString(b)?[b]:[];for(d=0;d<e.length;d++)if(a.isString(e[d])&&/[^\s]/.test(e[d])&&(c=(b=navigator.mimeTypes[e[d]])?b.enabledPlugin:0)&&(c.name||c.description))return b}return null}},findNavPlugin:function(a,b,c){a=new RegExp(a,"i");b=!this.isDefined(b)||b?/\d/:0;c=c?new RegExp(c,"i"):0;var d=navigator.plugins,e;for(e=0;e<d.length;e++){var f=d[e].description||"";var h=d[e].name||"";if(a.test(f)&&(!b||b.test(RegExp.leftContext+RegExp.rightContext))||a.test(h)&&(!b||b.test(RegExp.leftContext+
RegExp.rightContext)))if(!c||!c.test(f)&&!c.test(h))return d[e]}return null},getMimeEnabledPlugin:function(a,b,c){var d;b=new RegExp(b,"i");c=c?new RegExp(c,"i"):0;var e,f=this.isString(a)?[a]:a;for(e=0;e<f.length;e++)if((d=this.hasMimeType(f[e]))&&(d=d.enabledPlugin)){var h=d.description||"";a=d.name||"";if(b.test(h)||b.test(a))if(!c||!c.test(h)&&!c.test(a))return d}return 0},getPluginFileVersion:function(a,b){var c,d,e=-1;if(2<this.OS||!a||!a.version||!(c=this.getNum(a.version)))return b;if(!b)return c;c=this.formatNum(c);b=this.formatNum(b);var f=b.split(this.splitNumRegx);var h=c.split(this.splitNumRegx);for(d=0;d<f.length;d++)if(-1<e&&d>e&&"0"!=f[d]||h[d]!=f[d]&&(-1==e&&(e=d),"0"!=f[d]))return b;return c},AXO:p.ActiveXObject,getAXO:function(a){var b=null;try{b=new this.AXO(a)}catch(c){}return b},convertFuncs:function(a){var b,c=/^[\$][\$]/;for(b in a)if(c.test(b))try{var d=b.slice(2);0<d.length&&!a[d]&&(a[d]=a[b](a),delete a[b])}catch(e){}},initObj:function(a,b,c){var d;if(a){if(1==a[b[0]]||c)for(d=0;d<b.length;d+=2)a[b[d]]=b[d+1];for(d in a)(c=a[d])&&1==c[b[0]]&&this.initObj(c,b)}},initScript:function(){var a=navigator,b,c=document,d=a.userAgent||"",e=a.vendor||"",f=a.platform||"";a=a.product||"";this.initObj(this,["$",this]);for(b in this.Plugins)this.Plugins[b]&&this.initObj(this.Plugins[b],["$",this,"$$",this.Plugins[b]],1);this.convertFuncs(this);this.OS=100;if(f){var h=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(b=h.length-2;0<=b;b-=2)if(h[b]&&(new RegExp(h[b],"i")).test(f)){this.OS=h[b+1];break}}this.head=c.getElementsByTagName("head")[0]||c.getElementsByTagName("body")[0]||c.body||null;this.verIE=(this.isIE=(new Function("return/*@cc_on!@*/!1"))())&&/MSIE\s*(\d+\.?\d*)/i.test(d)?parseFloat(RegExp.$1,10):null;this.docModeIE=this.verIEfull=null;if(this.isIE){b=document.createElement("div");try{b.style.behavior="url(#default#clientcaps)",this.verIEfull=b.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(l){}b=parseFloat(this.verIEfull||"0",10);this.docModeIE=c.documentMode||(/back/i.test(c.compatMode||"")?5:b)||this.verIE;this.verIE=b||this.docModeIE}this.ActiveXEnabled=!1;if(this.isIE)for(c="Msxml2.XMLHTTP Msxml2.DOMDocument Microsoft.XMLDOM ShockwaveFlash.ShockwaveFlash TDCCtl.TDCCtl Shell.UIHelper Scripting.Dictionary wmplayer.ocx".split(" "),b=0;b<c.length;b++)if(this.getAXO(c[b])){this.ActiveXEnabled=!0;break}this.verGecko=(this.isGecko=/Gecko/i.test(a)&&/Gecko\s*\/\s*\d/i.test(d))?this.formatNum(/rv\s*\:\s*([\.\,\d]+)/i.test(d)?RegExp.$1:"0.9"):null;this.verChrome=(this.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(d))?this.formatNum(RegExp.$1):null;this.verSafari=(this.isSafari=(/Apple/i.test(e)||!e&&!this.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(d))&&/Version\s*\/\s*(\d[\d\.]*)/i.test(d)?this.formatNum(RegExp.$1):null;this.verOpera=(this.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(d))&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(d),1)?parseFloat(RegExp.$1,10):null;this.addWinEvent("load",this.handler(this.runWLfuncs,this))},init:function(a){var b={status:-3,plugin:0};if(!this.isString(a))return b;if(1==a.length)return this.getVersionDelimiter=a,b;a=a.toLowerCase().replace(/\s/g,"");var c=this.Plugins[a];if(!c||!c.getVersion)return b;b.plugin=c;this.isDefined(c.installed)||(c.installed=null,c.version=null,c.version0=null,c.getVersionDone=null,c.pluginName=a);this.garbage=!1;if(this.isIE&&!this.ActiveXEnabled&&"java"!==a)return b.status=-2,b;b.status=1;return b},fPush:function(a,b){this.isArray(b)&&(this.isFunc(a)||this.isArray(a)&&0<a.length&&this.isFunc(a[0]))&&b.push(a)},callArray:function(a){var b;if(this.isArray(a))for(b=0;b<a.length&&null!==a[b];b++)this.call(a[b]),a[b]=null},call:function(a){var b=this.isArray(a)?a.length:-1;if(0<b&&this.isFunc(a[0]))a[0](this,1<b?a[1]:0,2<b?a[2]:0,3<b?a[3]:0);else this.isFunc(a)&&a(this)},getVersionDelimiter:",",$$getVersion:function(a){return function(b,c,d){b=a.init(b);if(0>b.status)return null;b=b.plugin;1!=b.getVersionDone&&(b.getVersion(null,c,d),null===b.getVersionDone&&(b.getVersionDone=1));a.cleanup();return c=(c=b.version||b.version0)?c.replace(a.splitNumRegx,a.getVersionDelimiter):c}},cleanup:function(){this.garbage&&this.isDefined(p.CollectGarbage)&&p.CollectGarbage()},isActiveXObject:function(a,b){var c=!1,d='<object width="1" height="1" style="display:none" '+a.getCodeBaseVersion(b)+">"+a.HTML+this.openTag+"/object>";if(!this.head)return c;this.head.insertBefore(document.createElement("object"),this.head.firstChild);this.head.firstChild.outerHTML=d;try{this.head.firstChild.classid=a.classID}catch(e){}try{this.head.firstChild.object&&(c=!0)}catch(e){}try{c&&4>this.head.firstChild.readyState&&(this.garbage=!0)}catch(e){}this.head.removeChild(this.head.firstChild);return c},codebaseSearch:function(a,b){var c=this;if(!c.ActiveXEnabled||!a)return null;a.BIfuncs&&a.BIfuncs.length&&null!==a.BIfuncs[a.BIfuncs.length-1]&&c.callArray(a.BIfuncs);var d,e=a.SEARCH;if(c.isStrNum(b)){if(e.match&&e.min&&0>=c.compareNums(b,e.min))return!0;if(e.match&&e.max&&0<=c.compareNums(b,e.max))return!1;(d=c.isActiveXObject(a,b))&&(!e.min||0<c.compareNums(b,e.min))&&(e.min=b);d||e.max&&!(0>c.compareNums(b,e.max))||(e.max=b);return d}var f=[0,0,0,0],h=[].concat(e.digits),g=e.min?1:0,k,n=function(b,d){var e=[].concat(f);e[b]=d;return c.isActiveXObject(a,e.join(","))};if(e.max){d=e.max.split(c.splitNumRegx);for(k=0;k<d.length;k++)d[k]=parseInt(d[k],10);d[0]<h[0]&&(h[0]=d[0])}if(e.min){var m=e.min.split(c.splitNumRegx);for(k=0;k<m.length;k++)m[k]=parseInt(m[k],10);m[0]>f[0]&&(f[0]=m[0])}if(m&&d)for(k=1;k<m.length&&m[k-1]==d[k-1];k++)d[k]<h[k]&&(h[k]=d[k]),m[k]>f[k]&&(f[k]=m[k]);if(e.max)for(k=1;k<h.length;k++)if(0<d[k]&&0==h[k]&&h[k-1]<e.digits[k-1]){h[k-1]+=1;break}for(k=0;k<h.length;k++){m={};for(e=0;20>e&&!(1>h[k]-f[k]);e++){d=X((h[k]+f[k])/2);if(m["a"+d])break;m["a"+d]=1;n(k,d)?(f[k]=d,g=1):h[k]=d}h[k]=f[k];!g&&n(k,f[k])&&(g=1);if(!g)break}return g?f.join(","):null},addWinEvent:function(a,b){if(this.isFunc(b))if(p.addEventListener)p.addEventListener(a,b,!1);else if(p.attachEvent)p.attachEvent("on"+a,b);else{var c=p["on"+a];p["on"+a]=this.winHandler(b,c)}},winHandler:function(a,b){return function(){a();"function"==typeof b&&b()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a){a.winLoaded=!0;a.callArray(a.WLfuncs0);a.callArray(a.WLfuncs);if(a.onDoneEmptyDiv)a.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(a){return function(b){a.winLoaded?a.call(b):a.fPush(b,a.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var a,b,c;if(this.div&&this.div.childNodes)for(a=this.div.childNodes.length-1;0<=a;a--){if((c=this.div.childNodes[a])&&c.childNodes)for(b=c.childNodes.length-1;0<=b;b--){var d=c.childNodes[b];try{c.removeChild(d)}catch(e){}}if(c)try{this.div.removeChild(c)}catch(e){}}!this.div&&(a=document.getElementById(this.divID))&&(this.div=a);if(this.div&&this.div.parentNode){try{this.div.parentNode.removeChild(this.div)}catch(e){}this.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var a,b;if(this.winLoaded&&(!this.WLfuncs||!this.WLfuncs.length||null===this.WLfuncs[this.WLfuncs.length-1])){for(a in this)if((b=this[a])&&b.funcs&&(3==b.OTF||b.funcs.length&&null!==b.funcs[b.funcs.length-1]))return;for(a=0;a<this.DONEfuncs.length;a++)this.callArray(this.DONEfuncs);this.emptyDiv()}},getWidth:function(a){return a&&(a=a.scrollWidth||a.offsetWidth,this.isNum(a))?a:-1},getTagStatus:function(a,b,c,d){var e=a.span,f=this.getWidth(e);c=c.span;var g=this.getWidth(c);b=b.span;var l=this.getWidth(b);if(!(e&&c&&b&&this.getDOMobj(a)))return-2;if(g<l||0>f||0>g||0>l||l<=this.pluginSize||1>this.pluginSize)return 0;if(f>=l)return-1;try{if(f==this.pluginSize&&(!this.isIE||4==this.getDOMobj(a).readyState)&&(!a.winLoaded&&this.winLoaded||a.winLoaded&&this.isNum(d)&&(this.isNum(a.count)||(a.count=d),10<=d-a.count)))return 1}catch(k){}return 0},getDOMobj:function(a,b){var c=a?a.span:0,d=c&&c.firstChild?1:0;try{d&&b&&this.div.focus()}catch(e){}return d?c.firstChild:null},setStyle:function(a,b){var c=a.style,d;if(c&&b)for(d=0;d<b.length;d+=2)try{c[b[d]]=b[d+1]}catch(e){}},insertDivInBody:function(a,b){var c=null,d=b?p.top.document:p.document,e=d.getElementsByTagName("body")[0]||d.body;if(!e)try{d.write('<div id="pd33993399">.'+this.openTag+"/div>"),c=d.getElementById("pd33993399")}catch(f){}if(e=d.getElementsByTagName("body")[0]||d.body)e.insertBefore(a,e.firstChild),c&&e.removeChild(c)},insertHTML:function(a,b,c,d,e){e=document;var f=e.createElement("span"),g,l="outlineStyle none borderStyle none padding 0px margin 0px visibility visible".split(" ");this.isDefined(d)||(d="");if(this.isString(a)&&/[^\s]/.test(a)){a=a.toLowerCase().replace(/\s/g,"");var k=this.openTag+a+' width="'+this.pluginSize+'" height="'+this.pluginSize+'" ';k+='style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ';for(g=0;g<b.length;g+=2)/[^\s]/.test(b[g+1])&&(k+=b[g]+'="'+b[g+1]+'" ');k+=">";for(g=0;g<c.length;g+=2)/[^\s]/.test(c[g+1])&&(k+=this.openTag+'param name="'+c[g]+'" value="'+c[g+1]+'" />');k+=d+this.openTag+"/"+
a+">"}else k=d;this.div||((b=e.getElementById(this.divID))?this.div=b:(this.div=e.createElement("div"),this.div.id=this.divID),this.setStyle(this.div,l.concat(["width",this.divWidth+"px","height",this.pluginSize+3+"px","fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","block"])),b||(this.setStyle(this.div,"position absolute right 0px top 0px".split(" ")),this.insertDivInBody(this.div)));if(this.div&&this.div.parentNode){this.setStyle(f,l.concat(["fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{f.innerHTML=k}catch(n){}try{this.div.appendChild(f)}catch(n){}return{span:f,winLoaded:this.winLoaded,tagName:a,outerHTML:k}}return{span:null,winLoaded:this.winLoaded,tagName:"",outerHTML:k}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(a){return'codebase="#version='+a+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(a){var b=this.$,c=null,d=null;if(b.isIE){b.isStrNum(a)&&(a=a.split(b.splitNumRegx),3<a.length&&0<parseInt(a[3],10)&&(a[3]="9999"),a=a.join(","));if(b.isStrNum(a)&&b.verIE>=this.minIEver&&0<this.canUseIsMin()){this.installed=this.isMin(a);this.getVersionDone=0;return}this.getVersionDone=1;!c&&b.verIE>=this.minIEver&&(c=this.CDBASE2VER(b.codebaseSearch(this)));c||(d=b.getAXO(this.progID))&&d.QuickTimeVersion&&(c=d.QuickTimeVersion.toString(16),c=parseInt(c.charAt(0),16)+"."+parseInt(c.charAt(1),16)+"."+parseInt(c.charAt(2),16))}else b.hasMimeType(this.mimeType)&&(d=3!=b.OS?b.findNavPlugin("QuickTime.*Plug-?in",0):null)&&d.name&&(c=b.getNum(d.name));this.installed=c?1:d?0:-1;this.version=b.formatNum(c,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(a,b){var c=b.split(a.$.splitNumRegx);return[c[0],c[1].charAt(0),c[1].charAt(1),c[2]].join()},null],CDBASE2VER:function(a){var b=this.$,c,d=this.cdbaseUpper,e=this.cdbaseLower;if(a)for(a=b.formatNum(a),c=0;c<d.length;c++)if(d[c]&&0>b.compareNums(a,d[c])&&e[c]&&0<=b.compareNums(a,e[c])&&this.cdbase2ver[c])return this.cdbase2ver[c](this,a);return a},canUseIsMin:function(){var a=this.$,b,c=this.canUseIsMin,d=this.cdbaseUpper,e=this.cdbaseLower;if(!c.value)for(c.value=-1,b=0;b<d.length;b++){if(d[b]&&a.codebaseSearch(this,d[b])){c.value=1;break}if(e[b]&&a.codebaseSearch(this,e[b])){c.value=-1;break}}this.SEARCH.match=1==c.value?1:0;return c.value},isMin:function(a){return this.$.codebaseSearch(this,a)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var a=function(a){return a?(a=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(a))?a[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null:null},b=this.$,c,d=null,e=null,f=null;if(b.isIE){for(c=15;2<c;c--)if(e=b.getAXO(this.progID+"."+c)){f=c.toString();break}e||(e=b.getAXO(this.progID));if("6"==f)try{e.AllowScriptAccess="always"}catch(h){return"6,0,21,0"}try{d=a(e.GetVariable("$version"))}catch(h){}!d&&f&&(d=f)}else{if(e=b.hasMimeType(this.mimeType)){c=b.getDOMobj(b.insertHTML("object",["type",this.mimeType],[],"",this));try{d=b.getNum(c.GetVariable("$version"))}catch(h){}}d||((c=e?e.enabledPlugin:null)&&c.description&&(d=a(c.description)),d&&(d=b.getPluginFileVersion(c,d)))}this.installed=d?1:-1;this.version=b.formatNum(d);return!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var a=null,b=null,c=this.$;if(c.isIE){try{b=c.getAXO(this.progID).ShockwaveVersion("")}catch(d){}c.isString(b)&&0<b.length?a=c.getNum(b):c.getAXO(this.progID+".8")?a="8":c.getAXO(this.progID+".7")?a="7":c.getAXO(this.progID+".1")&&(a="6")}else(b=c.findNavPlugin("Shockwave\\s*for\\s*Director"))&&b.description&&c.hasMimeType(this.mimeType)&&(a=c.getNum(b.description)),a&&(a=c.getPluginFileVersion(b,a));this.installed=a?1:-1;this.version=c.formatNum(a)}},zz:0}};ha.initScript();var na='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',r=null;(function(){function a(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var b=document,c=g.event.special,d=b.documentMode,e="oniLightBoxHashChange"in p&&(void 0===d||7<d);g.fn.iLightBoxHashChange=function(a){return a?this.bind("iLightBoxHashChange",a):this.trigger("iLightBoxHashChange")};g.fn.iLightBoxHashChange.delay=50;c.iLightBoxHashChange=g.extend(c.iLightBoxHashChange,{setup:function(){if(e)return!1;g(f.start)},teardown:function(){if(e)return!1;g(f.stop)}});var f=function(){function c(){var b=a(),d=t(n);b!==n?(r(n=b,d),g(p).trigger("iLightBoxHashChange")):d!==n&&(location.href=location.href.replace(/#.*/,"")+d);f=setTimeout(c,g.fn.iLightBoxHashChange.delay)}
var d={},f,n=a(),m=function(a){return a},r=m,t=m;d.start=function(){f||c()};d.stop=function(){f&&clearTimeout(f);f=void 0};D.msie&&!e&&function(){var e,f;d.start=function(){e||(f=(f=g.fn.iLightBoxHashChange.src)&&f+a(),e=g('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){f||r(a());c()}).attr("src",f||"javascript:0").insertAfter("body")[0].contentWindow,b.onpropertychange=function(){try{"title"===event.propertyName&&(e.document.title=b.title)}catch(v){}})};d.stop=m;t=function(){return a(e.location.href)};r=function(a,c){var d=e.document,f=g.fn.iLightBoxHashChange.domain;a!==c&&(d.title=b.title,d.open(),f&&d.write('<script>document.domain="'+f+'"\x3c/script>'),d.close(),e.location.hash=a)}}();return d}()})();Array.prototype.filter||(Array.prototype.filter=function(a,b){if(null==this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!=typeof a)throw new TypeError;for(var e=[],f=0;f<d;f++)if(f in c){var g=c[f];a.call(b,g,f,c)&&e.push(g)}return e});Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){if(null==this)throw new TypeError('"this" is null or not defined');var c=Object(this),d=c.length>>>0;if(0===d)return-1;var e=+b||0;Infinity===I(e)&&(e=0);if(e>=d)return-1;for(e=ca(0<=e?e:d-I(e),0);e<d;){if(e in c&&c[e]===a)return e;e++}return-1});Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;1<arguments.length&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(0<d||-1)*M(I(d))));for(c=0<=d?Y(d,c-1):c-I(d);0<=c;c--)if(c in b&&b[c]===a)return c;return-1})})(jQuery,this);!function(e){function t(t){var n=t||window.event,i=[].slice.call(arguments,1),l=0,s=0,o=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),o=l,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(o=0,s=-1*l),void 0!==n.wheelDeltaY&&(o=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(s=-1*n.wheelDeltaX/120),i.unshift(t,l,s,o),(e.event.dispatch||e.event.handle).apply(this,i)}var n=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery);!function(e,n,t){for(var i,a=0,m=function(e){i&&(n.requestAnimationFrame(m,e),jQuery.fx.tick())},r=["ms","moz","webkit","o"],o=0,u=r.length;o<u&&!n.requestAnimationFrame;++o)n.requestAnimationFrame=n[r[o]+"RequestAnimationFrame"],n.cancelAnimationFrame=n[r[o]+"CancelAnimationFrame"]||n[r[o]+"CancelRequestAnimationFrame"];n.requestAnimationFrame||(n.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),m=i-a,r=Math.max(0,16-m),o=n.setTimeout(function(){e(i+r)},r);return a=i+r,o}),n.cancelAnimationFrame||(n.cancelAnimationFrame=function(e){clearTimeout(e)}),jQuery.fx.timer=function(e){e()&&jQuery.timers.push(e)&&!i&&(i=!0,m(e.elem))},jQuery.fx.stop=function(){i=!1}}(jQuery,this);!function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;h>e;e++){var i=u[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s.isBoxSizeOuter=r=200==t(o.width),i.removeChild(e)}}function s(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=n(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;h>l;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,I=a.borderTopWidth+a.borderBottomWidth,z=d&&r,x=t(s.width);x!==!1&&(a.width=x+(z?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(z?0:y+I)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+I),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)o.push(i[s])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,s=this;this[o]=setTimeout(function(){n.apply(s,e),delete s[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?t():document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=h[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=this.layout.size,r=-1!=n.indexOf("%")?parseFloat(n)/100*s.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*s.height:parseInt(o,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]="";var u=n?"paddingTop":"paddingBottom",h=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,u=e-n,h={};h.transform=this.getTranslate(a,u),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,s){return e(t,i,n,o,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function s(t,e){var i=n.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,f[o]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;n.extend(c,e.prototype),c.option=function(t){n.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=e[o],r=new i(s,this);n.push(r)}return n},c._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){r++,r==s&&i()}var o=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,n)})},c.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),h)if(this.$element=this.$element||h(this.element),e){var o=h.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),s={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return s},c.handleEvent=n.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(o),n.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return o.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=Object.create(n),o.prototype.constructor=o,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,s=o/n,r=n-o%n,a=r&&1>r?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),s=Math.min.apply(Math,o),r=o.indexOf(s),a={x:this.columnWidth*r,y:s},u=s+t.size.outerHeight,h=this.cols+1-o.length,d=0;h>d;d++)this.colYs[r+d]=u;return a},i.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),s=o?n.left:n.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?n.top:n.bottom)+i.outerHeight,l=a;u>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)o[s]||(n[s]=e.prototype[s]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,o,s,r){function a(t,e){return function(i,n){for(var o=0;o<t.length;o++){var s=t[o],r=i.sortData[s],a=n.sortData[s];if(r>a||a>r){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&n&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var e,i,n,o=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],o=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?n.push(a):u||a.isHidden||o.push(a)}}return{matches:i,needReveal:n,needHide:o}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},l.updateSortData=function(t){var e;t?(t=o.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&e>i;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),s=o&&o[1],r=e(s,n),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=a(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,o=e.length;for(i=0;o>i;i++)n=e[i],this.element.appendChild(n.element);var s=this._filter(e).matches;for(i=0;o>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;o>i;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,n=0;i&&i>n;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});!function(Te,e,ke){"use strict";var xe,De,Ae,Ee="sly",qe=e.cancelAnimationFrame||e.cancelRequestAnimationFrame,Oe=e.requestAnimationFrame,Ne=Te(document),He="touchstart."+Ee+" mousedown."+Ee,Xe="mousemove."+Ee+" mouseup."+Ee,Ye="touchmove."+Ee+" touchend."+Ee,Me=(document.implementation.hasFeature("Event.wheel","3.0")?"wheel.":"mousewheel.")+Ee,je="click."+Ee,Fe="mousedown."+Ee,Le=["INPUT","SELECT","BUTTON","TEXTAREA"],Re=[],We=Math.abs,Ue=Math.sqrt,$e=Math.pow,Qe=Math.round,Ze=Math.max,Ge=Math.min,Je=0;function Ke(o,e,n){if(!(this instanceof Ke))return new Ke(o,e,n);var a,i,g=Te.extend({},Ke.defaults,e),l=this,m=at(o),c=Te(o),y=g.slidee?Te(g.slidee).eq(0):c.children().eq(0),w=0,I=0,b={start:0,center:0,end:0,cur:0,dest:0},P=Te(g.scrollBar).eq(0),z=P.children().eq(0),C=0,S=0,B={start:0,end:0,cur:0},T=Te(g.pagesBar),k=0,x=[],D=0,A=[],E={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},r=new rt(c[0]),s=new rt(y[0]),d=new rt(P[0]),u=new rt(z[0]),t="basic"===g.itemNav,q="forceCentered"===g.itemNav,O="centered"===g.itemNav||q,N=!m&&(t||O||q),f=g.scrollSource?Te(g.scrollSource):c,v=g.dragSource?Te(g.dragSource):c,h=Te(g.forward),p=Te(g.backward),H=Te(g.prev),X=Te(g.next),Y=Te(g.prevPage),M=Te(g.nextPage),j={},F={},L={},R={},W={released:1},U={last:0,delta:0,resetTime:200},$=0,Q=0,Z=0,G=0;function J(e){var t=x.length;if(b.old=Te.extend({},b),w=m?0:c[g.horizontal?"width":"height"](),C=P[g.horizontal?"width":"height"](),I=m?o:y[g.horizontal?"outerWidth":"outerHeight"](),x.length=0,b.start=0,b.end=Ze(I-w,0),N){A.length,D=y.children(g.itemSelector),A.length=0;var d,u=nt(y,g.horizontal?"paddingLeft":"paddingTop"),f=nt(y,g.horizontal?"paddingRight":"paddingBottom"),a="border-box"===Te(D).css("boxSizing"),v="none"!==D.css("float"),h=0,p=D.length-1;I=0,D.each(function(e,t){var a=Te(t),n=t.getBoundingClientRect(),i=Qe(g.horizontal?n.width||n.right-n.left:n.height||n.bottom-n.top),r=nt(a,g.horizontal?"marginLeft":"marginTop"),s=nt(a,g.horizontal?"marginRight":"marginBottom"),o=i+r+s,l=!r||!s,c={};c.el=t,c.size=l?i:o,c.half=c.size/2,c.start=I+(l?r:0),c.center=c.start-Qe(w/2-c.size/2),c.end=c.start-w+c.size,e||(I+=u),I+=o,g.horizontal||v||s&&r&&0<e&&(I-=Ge(r,s)),e===p&&(c.end+=f,I+=f,h=l?s:0),A.push(c),d=c}),y[0].style[g.horizontal?"width":"height"]=(a?I:I-u-f)+y.children().length+"px",I-=h,A.length?(b.start=A[0][q?"center":"start"],b.end=q?d.center:w<I?d.end:b.start):b.start=b.end=0}if(b.center=Qe(b.end/2+b.start/2),se(),z.length&&0<C&&(g.dynamicHandle?(S=it(S=b.start===b.end?C:Qe(C*w/I),g.minHandleSize,C),z[0].style[g.horizontal?"width":"height"]=S+"px"):S=z[g.horizontal?"outerWidth":"outerHeight"](),B.end=C-S,$||_()),!m&&0<w){var n=b.start,i="";if(N)Te.each(A,function(e,t){q?x.push(t.center):t.start+t.size>n&&n<=b.end&&(n=t.start,x.push(n),(n+=w)>b.end&&n<b.end+w&&x.push(b.end))});else for(;n-w<b.end;)x.push(n),n+=w;if(T[0]&&t!==x.length){for(var r=0;r<x.length;r++)i+=g.pageBuilder.call(l,r);(k=T.html(i).children()).eq(E.activePage).addClass(g.activeClass)}}if(E.slideeSize=I,E.frameSize=w,E.sbSize=C,E.handleSize=S,N){e&&null!=g.startAt&&(ie(g.startAt),l[O?"toCenter":"toStart"](g.startAt));var s=A[E.activeItem];K(O&&s?s.center:it(b.dest,b.start,b.end))}else e?null!=g.startAt&&K(g.startAt,1):K(it(b.dest,b.start,b.end));Be("load")}function K(e,t,a){if(N&&W.released&&!a){var n=re(e),i=e>b.start&&e<b.end;O?(i&&(e=A[n.centerItem].center),q&&g.activateMiddle&&ie(n.centerItem)):i&&(e=A[n.firstItem].start)}W.init&&W.slidee&&g.elasticBounds?e>b.end?e=b.end+(e-b.end)/6:e<b.start&&(e=b.start+(e-b.start)/6):e=it(e,b.start,b.end),L.start=+new Date,L.time=0,L.from=b.cur,L.to=e,L.delta=e-b.cur,L.tweesing=W.tweese||W.init&&!W.slidee,L.immediate=!L.tweesing&&(t||W.init&&W.slidee||!g.speed),W.tweese=0,e!==b.dest&&(b.dest=e,Be("change"),$||V()),de(),se(),oe(),k[0]&&F.page!==E.activePage&&(F.page=E.activePage,k.removeClass(g.activeClass).eq(E.activePage).addClass(g.activeClass),Be("activePage",F.page))}function V(){if(l.initialized){if(!$)return $=Oe(V),void(W.released&&Be("moveStart"));L.immediate?b.cur=L.to:L.tweesing?(L.tweeseDelta=L.to-b.cur,We(L.tweeseDelta)<.1?b.cur=L.to:b.cur+=L.tweeseDelta*(W.released?g.swingSpeed:g.syncSpeed)):(L.time=Ge(+new Date-L.start,g.speed),b.cur=L.from+L.delta*Te.easing[g.easing](L.time/g.speed,L.time,0,1,g.speed)),L.to===b.cur?(b.cur=L.to,W.tweese=$=0):$=Oe(V),Be("move"),m||(xe?y[0].style[xe]=De+(g.horizontal?"translateX":"translateY")+"("+-b.cur+"px)":y[0].style[g.horizontal?"left":"top"]=-Qe(b.cur)+"px"),!$&&W.released&&Be("moveEnd"),_()}}function _(){z.length&&(B.cur=b.start===b.end?0:((W.init&&!W.slidee?b.dest:b.cur)-b.start)/(b.end-b.start)*B.end,B.cur=it(Qe(B.cur),B.start,B.end),F.hPos!==B.cur&&(F.hPos=B.cur,xe?z[0].style[xe]=De+(g.horizontal?"translateX":"translateY")+"("+B.cur+"px)":z[0].style[g.horizontal?"left":"top"]=B.cur+"px"))}function ee(){R.speed&&b.cur!==(0<R.speed?b.end:b.start)||l.stop(),G=W.init?Oe(ee):0,R.now=+new Date,R.pos=b.cur+(R.now-R.lastTime)/1e3*R.speed,K(W.init?R.pos:Qe(R.pos)),W.init||b.cur!==b.dest||Be("moveEnd"),R.lastTime=R.now}function te(e,t,a){if("boolean"===Ve(t)&&(a=t,t=ke),t===ke)K(b[e],a);else{if(O&&"center"!==e)return;var n=l.getPos(t);n&&K(n[e],a,!O)}}function ae(e){return null!=e?at(e)?0<=e&&e<A.length?e:-1:D.index(e):-1}function ne(e){return ae(at(e)&&e<0?e+A.length:e)}function ie(e,t){var a=ae(e);return!(!N||a<0)&&((F.active!==a||t)&&(D.eq(E.activeItem).removeClass(g.activeClass),D.eq(a).addClass(g.activeClass),F.active=E.activeItem=a,oe(),Be("active",a)),a)}function re(e){e=it(at(e)?e:b.dest,b.start,b.end);var t={},a=q?0:w/2;if(!m)for(var n=0,i=x.length;n<i;n++){if(e>=b.end||n===x.length-1){t.activePage=x.length-1;break}if(e<=x[n]+a){t.activePage=n;break}}if(N){for(var r=!1,s=!1,o=!1,l=0,c=A.length;l<c;l++)if(!1===r&&e<=A[l].start+A[l].half&&(r=l),!1===o&&e<=A[l].center+A[l].half&&(o=l),l===c-1||e<=A[l].end+A[l].half){s=l;break}t.firstItem=at(r)?r:0,t.centerItem=at(o)?o:t.firstItem,t.lastItem=at(s)?s:t.centerItem}return t}function se(e){Te.extend(E,re(e))}function oe(){var e=b.dest<=b.start,t=b.dest>=b.end,a=(e?1:0)|(t?2:0);if(F.slideePosState!==a&&(F.slideePosState=a,Y.is("button,input")&&Y.prop("disabled",e),M.is("button,input")&&M.prop("disabled",t),Y.add(p)[e?"addClass":"removeClass"](g.disabledClass),M.add(h)[t?"addClass":"removeClass"](g.disabledClass)),F.fwdbwdState!==a&&W.released&&(F.fwdbwdState=a,p.is("button,input")&&p.prop("disabled",e),h.is("button,input")&&h.prop("disabled",t)),N&&null!=E.activeItem){var n=0===E.activeItem,i=E.activeItem>=A.length-1,r=(n?1:0)|(i?2:0);F.itemsButtonState!==r&&(F.itemsButtonState=r,H.is("button,input")&&H.prop("disabled",n),X.is("button,input")&&X.prop("disabled",i),H[n?"addClass":"removeClass"](g.disabledClass),X[i?"addClass":"removeClass"](g.disabledClass))}}function le(e,t,a){if(e=ne(e),t=ne(t),-1<e&&-1<t&&e!==t&&(!a||t!==e-1)&&(a||t!==e+1)){D.eq(e)[a?"insertAfter":"insertBefore"](A[t].el);var n=e<t?e:a?t:t-1,i=t<e?e:a?t+1:t,r=t<e;null!=E.activeItem&&(e===E.activeItem?F.active=E.activeItem=a?r?t+1:t:r?t:t-1:E.activeItem>n&&E.activeItem<i&&(F.active=E.activeItem+=r?1:-1)),J()}}function ce(e,t){for(var a=0,n=j[e].length;a<n;a++)if(j[e][a]===t)return a;return-1}function de(){W.released&&!l.isPaused&&l.resume()}function ue(e){return Qe(it(e,B.start,B.end)/B.end*(b.end-b.start))+b.start}function fe(){W.history[0]=W.history[1],W.history[1]=W.history[2],W.history[2]=W.history[3],W.history[3]=W.delta}function ve(e){W.released=0,W.source=e,W.slidee="slidee"===e}function he(e){var t="touchstart"===e.type,a=e.data.source,n="slidee"===a;W.init||!t&&me(e.target)||("handle"!==a||g.dragHandle&&B.start!==B.end)&&(n&&!(t?g.touchDragging:g.mouseDragging&&e.which<2)||(t||_e(e),ve(a),W.init=0,W.$source=Te(e.target),W.touch=t,W.pointer=t?e.originalEvent.touches[0]:e,W.initX=W.pointer.pageX,W.initY=W.pointer.pageY,W.initPos=n?b.cur:B.cur,W.start=+new Date,W.time=0,W.path=0,W.delta=0,W.locked=0,W.history=[0,0,0,0],W.pathToLock=n?t?30:10:0,Ne.on(t?Ye:Xe,pe),l.pause(1),(n?y:z).addClass(g.draggedClass),Be("moveStart"),n&&(Q=setInterval(fe,10))))}function pe(e){if(W.released="mouseup"===e.type||"touchend"===e.type,W.pointer=W.touch?e.originalEvent[W.released?"changedTouches":"touches"][0]:e,W.pathX=W.pointer.pageX-W.initX,W.pathY=W.pointer.pageY-W.initY,W.path=Ue($e(W.pathX,2)+$e(W.pathY,2)),W.delta=g.horizontal?W.pathX:W.pathY,W.released||!(W.path<1)){if(!W.init){if(W.path<g.dragThreshold)return W.released?ge():ke;if(!(g.horizontal?We(W.pathX)>We(W.pathY):We(W.pathX)<We(W.pathY)))return ge();W.init=1}_e(e),!W.locked&&W.path>W.pathToLock&&W.slidee&&(W.locked=1,W.$source.on(je,et)),W.released&&(ge(),g.releaseSwing&&W.slidee&&(W.swing=(W.delta-W.history[0])/40*300,W.delta+=W.swing,W.tweese=10<We(W.swing))),K(W.slidee?Qe(W.initPos-W.delta):ue(W.initPos+W.delta))}}function ge(){clearInterval(Q),W.released=!0,Ne.off(W.touch?Ye:Xe,pe),(W.slidee?y:z).removeClass(g.draggedClass),setTimeout(function(){W.$source.off(je,et)}),b.cur===b.dest&&W.init&&Be("moveEnd"),l.resume(1),W.init=0}function me(e){return~Te.inArray(e.nodeName,Le)||Te(e).is(g.interactive)}function ye(){l.stop(),Ne.off("mouseup",ye)}function we(e){switch(_e(e),this){case h[0]:case p[0]:l.moveBy(h.is(this)?g.moveBy:-g.moveBy),Ne.on("mouseup",ye);break;case H[0]:l.prev();break;case X[0]:l.next();break;case Y[0]:l.prevPage();break;case M[0]:l.nextPage()}}function Ie(e){e.originalEvent[Ee]=l;var t=+new Date;if(Je+g.scrollHijack>t&&f[0]!==document&&f[0]!==window)Je=t;else if(g.scrollBy&&b.start!==b.end){var a,n=(a=e.originalEvent,U.curDelta=(g.horizontal?a.deltaY||a.deltaX:a.deltaY)||-a.wheelDelta,U.curDelta/=1===a.deltaMode?3:100,N?(Ae=+new Date,U.last<Ae-U.resetTime&&(U.delta=0),U.last=Ae,U.delta+=U.curDelta,We(U.delta)<1?U.finalDelta=0:(U.finalDelta=Qe(U.delta/1),U.delta%=1),U.finalDelta):U.curDelta);(g.scrollTrap||0<n&&b.dest<b.end||n<0&&b.dest>b.start)&&_e(e,1),l.slideBy(g.scrollBy*n)}}function be(e){g.clickBar&&e.target===P[0]&&(_e(e),K(ue((g.horizontal?e.pageX-P.offset().left:e.pageY-P.offset().top)-S/2)))}function Pe(e){if(g.keyboardNavBy)switch(e.which){case g.horizontal?37:38:_e(e),l["pages"===g.keyboardNavBy?"prevPage":"prev"]();break;case g.horizontal?39:40:_e(e),l["pages"===g.keyboardNavBy?"nextPage":"next"]()}}function ze(e){me(this)?e.originalEvent[Ee+"ignore"]=!0:this.parentNode!==y[0]||e.originalEvent[Ee+"ignore"]||l.activate(this)}function Ce(){this.parentNode===T[0]&&l.activatePage(k.index(this))}function Se(e){g.pauseOnHover&&l["mouseenter"===e.type?"pause":"resume"](2)}function Be(e,t){if(j[e]){for(i=j[e].length,Re.length=0,a=0;a<i;a++)Re.push(j[e][a]);for(a=0;a<i;a++)Re[a].call(l,e,t)}}m||(o=c[0]),l.initialized=0,l.frame=o,l.slidee=y[0],l.pos=b,l.rel=E,l.items=A,l.pages=x,l.isPaused=0,l.options=g,l.dragging=W,l.reload=function(){J()},l.getPos=function(e){if(N){var t=ae(e);return-1!==t&&A[t]}var a=y.find(e).eq(0);if(a[0]){var n=g.horizontal?a.offset().left-y.offset().left:a.offset().top-y.offset().top,i=a[g.horizontal?"outerWidth":"outerHeight"]();return{start:n,center:n-w/2+i/2,end:n-w+i,size:i}}return!1},l.moveBy=function(e){R.speed=e,!W.init&&R.speed&&b.cur!==(0<R.speed?b.end:b.start)&&(R.lastTime=+new Date,R.startPos=b.cur,ve("button"),W.init=1,Be("moveStart"),qe(G),ee())},l.stop=function(){"button"===W.source&&(W.init=0,W.released=1)},l.prev=function(){l.activate(null==E.activeItem?0:E.activeItem-1)},l.next=function(){l.activate(null==E.activeItem?0:E.activeItem+1)},l.prevPage=function(){l.activatePage(E.activePage-1)},l.nextPage=function(){l.activatePage(E.activePage+1)},l.slideBy=function(e,t){e&&(N?l[O?"toCenter":"toStart"](it((O?E.centerItem:E.firstItem)+g.scrollBy*e,0,A.length)):K(b.dest+e,t))},l.slideTo=function(e,t){K(e,t)},l.toStart=function(e,t){te("start",e,t)},l.toEnd=function(e,t){te("end",e,t)},l.toCenter=function(e,t){te("center",e,t)},l.getIndex=ae,l.activate=function(e,t){var a=ie(e);g.smart&&!1!==a&&(O?l.toCenter(a,t):a>=E.lastItem?l.toStart(a,t):a<=E.firstItem?l.toEnd(a,t):de())},l.activatePage=function(e,t){at(e)&&K(x[it(e,0,x.length-1)],t)},l.resume=function(e){g.cycleBy&&g.cycleInterval&&("items"!==g.cycleBy||A[0]&&null!=E.activeItem)&&!(e<l.isPaused)&&(l.isPaused=0,Z?Z=clearTimeout(Z):Be("resume"),Z=setTimeout(function(){switch(Be("cycle"),g.cycleBy){case"items":l.activate(E.activeItem>=A.length-1?0:E.activeItem+1);break;case"pages":l.activatePage(E.activePage>=x.length-1?0:E.activePage+1)}},g.cycleInterval))},l.pause=function(e){e<l.isPaused||(l.isPaused=e||100,Z&&(Z=clearTimeout(Z),Be("pause")))},l.toggle=function(){l[Z?"pause":"resume"]()},l.set=function(e,t){Te.isPlainObject(e)?Te.extend(g,e):g.hasOwnProperty(e)&&(g[e]=t)},l.add=function(e,t){var a=Te(e);N?(null==t||!A[0]||t>=A.length?a.appendTo(y):A.length&&a.insertBefore(A[t].el),null!=E.activeItem&&t<=E.activeItem&&(F.active=E.activeItem+=a.length)):y.append(a),J()},l.remove=function(e){if(N){var t=ne(e);if(-1<t){D.eq(t).remove();var a=t===E.activeItem;null!=E.activeItem&&t<E.activeItem&&(F.active=--E.activeItem),J(),a&&(F.active=null,l.activate(E.activeItem))}}else Te(e).remove(),J()},l.moveAfter=function(e,t){le(e,t,1)},l.moveBefore=function(e,t){le(e,t)},l.on=function(e,t){if("object"===Ve(e))for(var a in e)e.hasOwnProperty(a)&&l.on(a,e[a]);else if("function"===Ve(t))for(var n=e.split(" "),i=0,r=n.length;i<r;i++)j[n[i]]=j[n[i]]||[],-1===ce(n[i],t)&&j[n[i]].push(t);else if("array"===Ve(t))for(var s=0,o=t.length;s<o;s++)l.on(e,t[s])},l.one=function(t,a){l.on(t,function e(){a.apply(l,arguments),l.off(t,e)})},l.off=function(e,t){if(t instanceof Array)for(var a=0,n=t.length;a<n;a++)l.off(e,t[a]);else for(var i=e.split(" "),r=0,s=i.length;r<s;r++)if(j[i[r]]=j[i[r]]||[],null==t)j[i[r]].length=0;else{var o=ce(i[r],t);-1!==o&&j[i[r]].splice(o,1)}},l.destroy=function(){return Ke.removeInstance(o),f.add(z).add(P).add(T).add(h).add(p).add(H).add(X).add(Y).add(M).off("."+Ee),Ne.off("keydown",Pe),H.add(X).add(Y).add(M).removeClass(g.disabledClass),D&&null!=E.activeItem&&D.eq(E.activeItem).removeClass(g.activeClass),T.empty(),m||(c.off("."+Ee),r.restore(),s.restore(),d.restore(),u.restore(),Te.removeData(o,Ee)),A.length=x.length=0,F={},l.initialized=0,l},l.init=function(){if(!l.initialized){if(Ke.getInstance(o))throw new Error("There is already a Sly instance on this element");Ke.storeInstance(o,l),l.on(n);var e=["overflow","position"],t=["position","webkitTransform","msTransform","transform","left","top","width","height"];r.save.apply(r,e),d.save.apply(d,e),s.save.apply(s,t),u.save.apply(u,t);var a=z;return m||(a=a.add(y),c.css("overflow","hidden"),xe||"static"!==c.css("position")||c.css("position","relative")),xe?De&&a.css(xe,De):("static"===P.css("position")&&P.css("position","relative"),a.css({position:"absolute"})),g.forward&&h.on(Fe,we),g.backward&&p.on(Fe,we),g.prev&&H.on(je,we),g.next&&X.on(je,we),g.prevPage&&Y.on(je,we),g.nextPage&&M.on(je,we),f.on(Me,Ie),P[0]&&P.on(je,be),N&&g.activateOn&&c.on(g.activateOn+"."+Ee,"*",ze),T[0]&&g.activatePageOn&&T.on(g.activatePageOn+"."+Ee,"*",Ce),v.on(He,{source:"slidee"},he),z&&z.on(He,{source:"handle"},he),Ne.on("keydown",Pe),m||(c.on("mouseenter."+Ee+" mouseleave."+Ee,Se),c.on("scroll."+Ee,tt)),l.initialized=1,J(!0),g.cycleBy&&!m&&l[g.startPaused?"pause":"resume"](),l}}}function Ve(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof e}function _e(e,t){e.preventDefault(),t&&e.stopPropagation()}function et(e){_e(e,1),Te(this).off(e.type,et)}function tt(){this.scrollLeft=0,this.scrollTop=0}function at(e){return!isNaN(parseFloat(e))&&isFinite(e)}function nt(e,t){return 0|Qe(String(e.css(t)).replace(/[^\-0-9.]/g,""))}function it(e,t,a){return e<t?t:a<e?a:e}function rt(t){var a={style:{},save:function(){if(t&&t.nodeType){for(var e=0;e<arguments.length;e++)a.style[arguments[e]]=t.style[arguments[e]];return a}},restore:function(){if(t&&t.nodeType){for(var e in a.style)a.style.hasOwnProperty(e)&&(t.style[e]=a.style[e]);return a}}};return a}Ne.on(Me,function(e){var t=e.originalEvent[Ee],a=+new Date;(!t||t.options.scrollHijack<a-Je)&&(Je=a)}),Ke.getInstance=function(e){return Te.data(e,Ee)},Ke.storeInstance=function(e,t){return Te.data(e,Ee,t)},Ke.removeInstance=function(e){return Te.removeData(e,Ee)},function(t){Oe=t.requestAnimationFrame||t.webkitRequestAnimationFrame||function(e){var t=(new Date).getTime(),a=Math.max(0,16-(t-i)),n=setTimeout(e,a);return i=t,n};var i=(new Date).getTime();var a=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;qe=function(e){a.call(t,e)}}(window),function(){var i=["","Webkit","Moz","ms","O"],r=document.createElement("div");function e(e){for(var t=0,a=i.length;t<a;t++){var n=i[t]?i[t]+e.charAt(0).toUpperCase()+e.slice(1):e;if(null!=r.style[n])return n}}xe=e("transform"),De=e("perspective")?"translateZ(0) ":""}(),e.Sly=Ke,Te.fn.sly=function(n,i){var r,s;return Te.isPlainObject(n)||("string"!==Ve(n)&&!1!==n||(r=!1===n?"destroy":n,s=Array.prototype.slice.call(arguments,1)),n={}),this.each(function(e,t){var a=Ke.getInstance(t);a||r?a&&r&&a[r]&&a[r].apply(a,s):a=new Ke(t,n,i).init()})},Ke.defaults={slidee:null,horizontal:!1,itemNav:null,itemSelector:null,smart:!1,activateOn:null,activateMiddle:!1,scrollSource:null,scrollBy:0,scrollHijack:300,scrollTrap:!1,dragSource:null,mouseDragging:!1,touchDragging:!1,releaseSwing:!1,swingSpeed:.2,elasticBounds:!1,dragThreshold:3,interactive:null,scrollBar:null,dragHandle:!1,dynamicHandle:!1,minHandleSize:50,clickBar:!1,syncSpeed:.5,pagesBar:null,activatePageOn:null,pageBuilder:function(e){return"<li>"+(e+1)+"</li>"},forward:null,backward:null,prev:null,next:null,prevPage:null,nextPage:null,cycleBy:null,cycleInterval:5e3,pauseOnHover:!1,startPaused:!1,moveBy:300,speed:0,easing:"swing",startAt:null,keyboardNavBy:null,draggedClass:"dragged",activeClass:"active",disabledClass:"disabled"}}(jQuery,window);!function(t){"use strict";var s=function(s,e){this.el=t(s),this.options=t.extend({},t.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=this.isInput?!1:this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};s.prototype={constructor:s,init:function(){var t=this;t.timeout=setTimeout(function(){for(var s=0;s<t.strings.length;++s)t.sequence[s]=s;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var s=this;if(this.showCursor===!0&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children());var e=this.stringsElement.children();t.each(e,function(e,i){s.strings.push(t(i).html())})}this.init()},typewrite:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var e=0,r=t.substr(s);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(r=/\d+/.exec(r)[0],o+=r.length,e=parseInt(r)),t=t.substring(0,s)+t.substring(s+o)}if("html"===i.contentType){var n=t.substr(s).charAt(0);if("<"===n||"&"===n){var a="",h="";for(h="<"===n?">":";";t.substr(s+1).charAt(0)!==h&&(a+=t.substr(s).charAt(0),s++,!(s+1>t.length)););s++,a+=h}}i.timeout=setTimeout(function(){if(s===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,i.loop===!1||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(t,s)},i.backDelay)}else{0===s&&i.options.preStringTyped(i.arrayPos);var e=t.substr(0,s+1);i.attr?i.el.attr(i.attr,e):i.isInput?i.el.val(e):"html"===i.contentType?i.el.html(e):i.el.text(e),s++,i.typewrite(t,s)}},e)},e)}},backspace:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(s).charAt(0)){for(var e="";"<"!==t.substr(s-1).charAt(0)&&(e-=t.substr(s).charAt(0),s--,!(0>s)););s--,e+="<"}var r=t.substr(0,s);i.attr?i.el.attr(i.attr,r):i.isInput?i.el.val(r):"html"===i.contentType?i.el.html(r):i.el.text(r),s>i.stopNum?(s--,i.backspace(t,s)):s<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],s))},e)}},shuffleArray:function(t){var s,e,i=t.length;if(i)for(;--i;)e=Math.floor(Math.random()*(i+1)),s=t[e],t[e]=t[i],t[i]=s;return t},reset:function(){var t=this;clearInterval(t.timeout);this.el.attr("id");this.el.empty(),"undefined"!=typeof this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},t.fn.typed=function(e){return this.each(function(){var i=t(this),r=i.data("typed"),o="object"==typeof e&&e;r&&r.reset(),i.data("typed",r=new s(this,o)),"string"==typeof e&&r[e]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);function hexToRgb(e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(a,function(e,a,t,i){return a+a+t+t+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,a,t){return Math.min(Math.max(e,a),t)}function isInArray(e,a){return a.indexOf(e)>-1}var pJS=function(e,a){var t=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()})},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}else void 0!=e.value.r&&void 0!=e.value.g&&void 0!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),void 0!=e.value.h&&void 0!=e.value.s&&void 0!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=i.particles.opacity.anim.speed/100,i.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(i.particles.move.direction){case"top":n={x:0,y:-1};break;case"top-right":n={x:.5,y:-.5};break;case"right":n={x:1,y:-0};break;case"bottom-right":n={x:.5,y:.5};break;case"bottom":n={x:0,y:1};break;case"bottom-left":n={x:-.5,y:1};break;case"left":n={x:-1,y:0};break;case"top-left":n={x:-.5,y:-.5};break;default:n={x:0,y:0}}i.particles.move.straight?(this.vx=n.x,this.vy=n.y,i.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=n.x+Math.random()-.5,this.vy=n.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var r=i.particles.shape.type;if("object"==typeof r){if(r instanceof Array){var c=r[Math.floor(Math.random()*r.length)];this.shape=c}}else this.shape=r;if("image"==this.shape){var o=i.particles.shape;this.img={src:o.image.src,ratio:o.image.width/o.image.height},this.img.ratio||(this.img.ratio=1),"svg"==i.tmp.img_type&&void 0!=i.tmp.source_svg&&(i.fn.vendors.createSvgImg(this),i.tmp.pushing&&(this.img.loaded=!1))}},i.fn.particle.prototype.draw=function(){function e(){i.canvas.ctx.drawImage(r,a.x-t,a.y-t,2*t,2*t/a.img.ratio)}var a=this;if(void 0!=a.radius_bubble)var t=a.radius_bubble;else var t=a.radius;if(void 0!=a.opacity_bubble)var s=a.opacity_bubble;else var s=a.opacity;if(a.color.rgb)var n="rgba("+a.color.rgb.r+","+a.color.rgb.g+","+a.color.rgb.b+","+s+")";else var n="hsla("+a.color.hsl.h+","+a.color.hsl.s+"%,"+a.color.hsl.l+"%,"+s+")";switch(i.canvas.ctx.fillStyle=n,i.canvas.ctx.beginPath(),a.shape){case"circle":i.canvas.ctx.arc(a.x,a.y,t,0,2*Math.PI,!1);break;case"edge":i.canvas.ctx.rect(a.x-t,a.y-t,2*t,2*t);break;case"triangle":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t,a.y+t/1.66,2*t,3,2);break;case"polygon":i.fn.vendors.drawShape(i.canvas.ctx,a.x-t/(i.particles.shape.polygon.nb_sides/3.5),a.y-t/.76,2.66*t/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,1);break;case"star":i.fn.vendors.drawShape(i.canvas.ctx,a.x-2*t/(i.particles.shape.polygon.nb_sides/4),a.y-t/1.52,2*t*2.66/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==i.tmp.img_type)var r=a.img.obj;else var r=i.tmp.img_obj;r&&e()}i.canvas.ctx.closePath(),i.particles.shape.stroke.width>0&&(i.canvas.ctx.strokeStyle=i.particles.shape.stroke.color,i.canvas.ctx.lineWidth=i.particles.shape.stroke.width,i.canvas.ctx.stroke()),i.canvas.ctx.fill()},i.fn.particlesCreate=function(){for(var e=0;e<i.particles.number.value;e++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value))},i.fn.particlesUpdate=function(){for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];if(i.particles.move.enable){var t=i.particles.move.speed/2;a.x+=a.vx*t,a.y+=a.vy*t}if(i.particles.opacity.anim.enable&&(1==a.opacity_status?(a.opacity>=i.particles.opacity.value&&(a.opacity_status=!1),a.opacity+=a.vo):(a.opacity<=i.particles.opacity.anim.opacity_min&&(a.opacity_status=!0),a.opacity-=a.vo),a.opacity<0&&(a.opacity=0)),i.particles.size.anim.enable&&(1==a.size_status?(a.radius>=i.particles.size.value&&(a.size_status=!1),a.radius+=a.vs):(a.radius<=i.particles.size.anim.size_min&&(a.size_status=!0),a.radius-=a.vs),a.radius<0&&(a.radius=0)),"bounce"==i.particles.move.out_mode)var s={x_left:a.radius,x_right:i.canvas.w,y_top:a.radius,y_bottom:i.canvas.h};else var s={x_left:-a.radius,x_right:i.canvas.w+a.radius,y_top:-a.radius,y_bottom:i.canvas.h+a.radius};switch(a.x-a.radius>i.canvas.w?(a.x=s.x_left,a.y=Math.random()*i.canvas.h):a.x+a.radius<0&&(a.x=s.x_right,a.y=Math.random()*i.canvas.h),a.y-a.radius>i.canvas.h?(a.y=s.y_top,a.x=Math.random()*i.canvas.w):a.y+a.radius<0&&(a.y=s.y_bottom,a.x=Math.random()*i.canvas.w),i.particles.move.out_mode){case"bounce":a.x+a.radius>i.canvas.w?a.vx=-a.vx:a.x-a.radius<0&&(a.vx=-a.vx),a.y+a.radius>i.canvas.h?a.vy=-a.vy:a.y-a.radius<0&&(a.vy=-a.vy)}if(isInArray("grab",i.interactivity.events.onhover.mode)&&i.fn.modes.grabParticle(a),(isInArray("bubble",i.interactivity.events.onhover.mode)||isInArray("bubble",i.interactivity.events.onclick.mode))&&i.fn.modes.bubbleParticle(a),(isInArray("repulse",i.interactivity.events.onhover.mode)||isInArray("repulse",i.interactivity.events.onclick.mode))&&i.fn.modes.repulseParticle(a),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var n=e+1;n<i.particles.array.length;n++){var r=i.particles.array[n];i.particles.line_linked.enable&&i.fn.interact.linkParticles(a,r),i.particles.move.attract.enable&&i.fn.interact.attractParticles(a,r),i.particles.move.bounce&&i.fn.interact.bounceParticles(a,r)}}},i.fn.particlesDraw=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h),i.fn.particlesUpdate();for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];a.draw()}},i.fn.particlesEmpty=function(){i.particles.array=[]},i.fn.particlesRefresh=function(){cancelRequestAnimFrame(i.fn.checkAnimFrame),cancelRequestAnimFrame(i.fn.drawAnimFrame),i.tmp.source_svg=void 0,i.tmp.img_obj=void 0,i.tmp.count_svg=0,i.fn.particlesEmpty(),i.fn.canvasClear(),i.fn.vendors.start()},i.fn.interact.linkParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=i.particles.line_linked.opacity-n/(1/i.particles.line_linked.opacity)/i.particles.line_linked.distance;if(r>0){var c=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+c.r+","+c.g+","+c.b+","+r+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(a.x,a.y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}},i.fn.interact.attractParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=t/(1e3*i.particles.move.attract.rotateX),c=s/(1e3*i.particles.move.attract.rotateY);e.vx-=r,e.vy-=c,a.vx+=r,a.vy+=c}},i.fn.interact.bounceParticles=function(e,a){var t=e.x-a.x,i=e.y-a.y,s=Math.sqrt(t*t+i*i),n=e.radius+a.radius;n>=s&&(e.vx=-e.vx,e.vy=-e.vy,a.vx=-a.vx,a.vy=-a.vy)},i.fn.modes.pushParticles=function(e,a){i.tmp.pushing=!0;for(var t=0;e>t;t++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value,{x:a?a.pos_x:Math.random()*i.canvas.w,y:a?a.pos_y:Math.random()*i.canvas.h})),t==e-1&&(i.particles.move.enable||i.fn.particlesDraw(),i.tmp.pushing=!1)},i.fn.modes.removeParticles=function(e){i.particles.array.splice(0,e),i.particles.move.enable||i.fn.particlesDraw()},i.fn.modes.bubbleParticle=function(e){function a(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}function t(a,t,s,n,c){if(a!=t)if(i.tmp.bubble_duration_end){if(void 0!=s){var o=n-p*(n-a)/i.interactivity.modes.bubble.duration,l=a-o;d=a+l,"size"==c&&(e.radius_bubble=d),"opacity"==c&&(e.opacity_bubble=d)}}else if(r<=i.interactivity.modes.bubble.distance){if(void 0!=s)var v=s;else var v=n;if(v!=a){var d=n-p*(n-a)/i.interactivity.modes.bubble.duration;"size"==c&&(e.radius_bubble=d),"opacity"==c&&(e.opacity_bubble=d)}}else"size"==c&&(e.radius_bubble=void 0),"opacity"==c&&(e.opacity_bubble=void 0)}if(i.interactivity.events.onhover.enable&&isInArray("bubble",i.interactivity.events.onhover.mode)){var s=e.x-i.interactivity.mouse.pos_x,n=e.y-i.interactivity.mouse.pos_y,r=Math.sqrt(s*s+n*n),c=1-r/i.interactivity.modes.bubble.distance;if(r<=i.interactivity.modes.bubble.distance){if(c>=0&&"mousemove"==i.interactivity.status){if(i.interactivity.modes.bubble.size!=i.particles.size.value)if(i.interactivity.modes.bubble.size>i.particles.size.value){var o=e.radius+i.interactivity.modes.bubble.size*c;o>=0&&(e.radius_bubble=o)}else{var l=e.radius-i.interactivity.modes.bubble.size,o=e.radius-l*c;o>0?e.radius_bubble=o:e.radius_bubble=0}if(i.interactivity.modes.bubble.opacity!=i.particles.opacity.value)if(i.interactivity.modes.bubble.opacity>i.particles.opacity.value){var v=i.interactivity.modes.bubble.opacity*c;v>e.opacity&&v<=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}else{var v=e.opacity-(i.particles.opacity.value-i.interactivity.modes.bubble.opacity)*c;v<e.opacity&&v>=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=v)}}}else a();"mouseleave"==i.interactivity.status&&a()}else if(i.interactivity.events.onclick.enable&&isInArray("bubble",i.interactivity.events.onclick.mode)){if(i.tmp.bubble_clicking){var s=e.x-i.interactivity.mouse.click_pos_x,n=e.y-i.interactivity.mouse.click_pos_y,r=Math.sqrt(s*s+n*n),p=((new Date).getTime()-i.interactivity.mouse.click_time)/1e3;p>i.interactivity.modes.bubble.duration&&(i.tmp.bubble_duration_end=!0),p>2*i.interactivity.modes.bubble.duration&&(i.tmp.bubble_clicking=!1,i.tmp.bubble_duration_end=!1)}i.tmp.bubble_clicking&&(t(i.interactivity.modes.bubble.size,i.particles.size.value,e.radius_bubble,e.radius,"size"),t(i.interactivity.modes.bubble.opacity,i.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},i.fn.modes.repulseParticle=function(e){function a(){var a=Math.atan2(d,p);if(e.vx=u*Math.cos(a),e.vy=u*Math.sin(a),"bounce"==i.particles.move.out_mode){var t={x:e.x+e.vx,y:e.y+e.vy};t.x+e.radius>i.canvas.w?e.vx=-e.vx:t.x-e.radius<0&&(e.vx=-e.vx),t.y+e.radius>i.canvas.h?e.vy=-e.vy:t.y-e.radius<0&&(e.vy=-e.vy)}}if(i.interactivity.events.onhover.enable&&isInArray("repulse",i.interactivity.events.onhover.mode)&&"mousemove"==i.interactivity.status){var t=e.x-i.interactivity.mouse.pos_x,s=e.y-i.interactivity.mouse.pos_y,n=Math.sqrt(t*t+s*s),r={x:t/n,y:s/n},c=i.interactivity.modes.repulse.distance,o=100,l=clamp(1/c*(-1*Math.pow(n/c,2)+1)*c*o,0,50),v={x:e.x+r.x*l,y:e.y+r.y*l};"bounce"==i.particles.move.out_mode?(v.x-e.radius>0&&v.x+e.radius<i.canvas.w&&(e.x=v.x),v.y-e.radius>0&&v.y+e.radius<i.canvas.h&&(e.y=v.y)):(e.x=v.x,e.y=v.y)}else if(i.interactivity.events.onclick.enable&&isInArray("repulse",i.interactivity.events.onclick.mode))if(i.tmp.repulse_finish||(i.tmp.repulse_count++,i.tmp.repulse_count==i.particles.array.length&&(i.tmp.repulse_finish=!0)),i.tmp.repulse_clicking){var c=Math.pow(i.interactivity.modes.repulse.distance/6,3),p=i.interactivity.mouse.click_pos_x-e.x,d=i.interactivity.mouse.click_pos_y-e.y,m=p*p+d*d,u=-c/m*1;c>=m&&a()}else 0==i.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},i.fn.modes.grabParticle=function(e){if(i.interactivity.events.onhover.enable&&"mousemove"==i.interactivity.status){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(a*a+t*t);if(s<=i.interactivity.modes.grab.distance){var n=i.interactivity.modes.grab.line_linked.opacity-s/(1/i.interactivity.modes.grab.line_linked.opacity)/i.interactivity.modes.grab.distance;if(n>0){var r=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x,i.interactivity.mouse.pos_y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}}},i.fn.vendors.eventsListeners=function(){"window"==i.interactivity.detect_on?i.interactivity.el=window:i.interactivity.el=i.canvas.el,(i.interactivity.events.onhover.enable||i.interactivity.events.onclick.enable)&&(i.interactivity.el.addEventListener("mousemove",function(e){if(i.interactivity.el==window)var a=e.clientX,t=e.clientY;else var a=e.offsetX||e.clientX,t=e.offsetY||e.clientY;i.interactivity.mouse.pos_x=a,i.interactivity.mouse.pos_y=t,i.tmp.retina&&(i.interactivity.mouse.pos_x*=i.canvas.pxratio,i.interactivity.mouse.pos_y*=i.canvas.pxratio),i.interactivity.status="mousemove"}),i.interactivity.el.addEventListener("mouseleave",function(e){i.interactivity.mouse.pos_x=null,i.interactivity.mouse.pos_y=null,i.interactivity.status="mouseleave"})),i.interactivity.events.onclick.enable&&i.interactivity.el.addEventListener("click",function(){if(i.interactivity.mouse.click_pos_x=i.interactivity.mouse.pos_x,i.interactivity.mouse.click_pos_y=i.interactivity.mouse.pos_y,i.interactivity.mouse.click_time=(new Date).getTime(),i.interactivity.events.onclick.enable)switch(i.interactivity.events.onclick.mode){case"push":i.particles.move.enable?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):1==i.interactivity.modes.push.particles_nb?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):i.interactivity.modes.push.particles_nb>1&&i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);break;case"remove":i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);break;case"bubble":i.tmp.bubble_clicking=!0;break;case"repulse":i.tmp.repulse_clicking=!0,i.tmp.repulse_count=0,i.tmp.repulse_finish=!1,setTimeout(function(){i.tmp.repulse_clicking=!1},1e3*i.interactivity.modes.repulse.duration)}})},i.fn.vendors.densityAutoParticles=function(){if(i.particles.number.density.enable){var e=i.canvas.el.width*i.canvas.el.height/1e3;i.tmp.retina&&(e/=2*i.canvas.pxratio);var a=e*i.particles.number.value/i.particles.number.density.value_area,t=i.particles.array.length-a;0>t?i.fn.modes.pushParticles(Math.abs(t)):i.fn.modes.removeParticles(t)}},i.fn.vendors.checkOverlap=function(e,a){for(var t=0;t<i.particles.array.length;t++){var s=i.particles.array[t],n=e.x-s.x,r=e.y-s.y,c=Math.sqrt(n*n+r*r);c<=e.radius+s.radius&&(e.x=a?a.x:Math.random()*i.canvas.w,e.y=a?a.y:Math.random()*i.canvas.h,i.fn.vendors.checkOverlap(e))}},i.fn.vendors.createSvgImg=function(e){var a=i.tmp.source_svg,t=/#([0-9A-F]{3,6})/gi,s=a.replace(t,function(a,t,i,s){if(e.color.rgb)var n="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+e.opacity+")";else var n="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+e.opacity+")";return n}),n=new Blob([s],{type:"image/svg+xml;charset=utf-8"}),r=window.URL||window.webkitURL||window,c=r.createObjectURL(n),o=new Image;o.addEventListener("load",function(){e.img.obj=o,e.img.loaded=!0,r.revokeObjectURL(c),i.tmp.count_svg++}),o.src=c},i.fn.vendors.destroypJS=function(){cancelAnimationFrame(i.fn.drawAnimFrame),t.remove(),pJSDom=null},i.fn.vendors.drawShape=function(e,a,t,i,s,n){var r=s*n,c=s/n,o=180*(c-2)/c,l=Math.PI-Math.PI*o/180;e.save(),e.beginPath(),e.translate(a,t),e.moveTo(0,0);for(var v=0;r>v;v++)e.lineTo(i,0),e.translate(i,0),e.rotate(l);e.fill(),e.restore()},i.fn.vendors.exportImg=function(){window.open(i.canvas.el.toDataURL("image/png"),"_blank")},i.fn.vendors.loadImg=function(e){if(i.tmp.img_error=void 0,""!=i.particles.shape.image.src)if("svg"==e){var a=new XMLHttpRequest;a.open("GET",i.particles.shape.image.src),a.onreadystatechange=function(e){4==a.readyState&&(200==a.status?(i.tmp.source_svg=e.currentTarget.response,i.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),i.tmp.img_error=!0))},a.send()}else{var t=new Image;t.addEventListener("load",function(){i.tmp.img_obj=t,i.fn.vendors.checkBeforeDraw()}),t.src=i.particles.shape.image.src}else console.log("Error pJS - No image.src"),i.tmp.img_error=!0},i.fn.vendors.draw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type?i.tmp.count_svg>=i.particles.number.value?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):void 0!=i.tmp.img_obj?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame))},i.fn.vendors.checkBeforeDraw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type&&void 0==i.tmp.source_svg?i.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(i.tmp.checkAnimFrame),i.tmp.img_error||(i.fn.vendors.init(),i.fn.vendors.draw())):(i.fn.vendors.init(),i.fn.vendors.draw())},i.fn.vendors.init=function(){i.fn.retinaInit(),i.fn.canvasInit(),i.fn.canvasSize(),i.fn.canvasPaint(),i.fn.particlesCreate(),i.fn.vendors.densityAutoParticles(),i.particles.line_linked.color_rgb_line=hexToRgb(i.particles.line_linked.color)},i.fn.vendors.start=function(){isInArray("image",i.particles.shape.type)?(i.tmp.img_type=i.particles.shape.image.src.substr(i.particles.shape.image.src.length-3),i.fn.vendors.loadImg(i.tmp.img_type)):i.fn.vendors.checkBeforeDraw()},i.fn.vendors.eventsListeners(),i.fn.vendors.start()};Object.deepExtend=function(e,a){for(var t in a)a[t]&&a[t].constructor&&a[t].constructor===Object?(e[t]=e[t]||{},arguments.callee(e[t],a[t])):e[t]=a[t];return e},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(e,a){"string"!=typeof e&&(a=e,e="particles-js"),e||(e="particles-js");var t=document.getElementById(e),i="particles-js-canvas-el",s=t.getElementsByClassName(i);if(s.length)for(;s.length>0;)t.removeChild(s[0]);var n=document.createElement("canvas");n.className=i,n.style.width="100%",n.style.height="100%";var r=document.getElementById(e).appendChild(n);null!=r&&pJSDom.push(new pJS(e,a))},window.particlesJS.load=function(e,a,t){var i=new XMLHttpRequest;i.open("GET",a),i.onreadystatechange=function(a){if(4==i.readyState)if(200==i.status){var s=JSON.parse(a.currentTarget.response);window.particlesJS(e,s),t&&t()}else console.log("Error pJS - XMLHttpRequest status: "+i.status),console.log("Error pJS - File config not found")},i.send()};!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";var t=Object.freeze({__proto__:null,get Colors(){return Go},get Decimation(){return Qo},get Filler(){return ma},get Legend(){return ya},get SubTitle(){return ka},get Title(){return Ma},get Tooltip(){return Ba}});function e(){}const i=(()=>{let t=0;return()=>t++})();function s(t){return null==t}function n(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function o(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function r(t,e){return a(t)?t:e}function l(t,e){return void 0===t?e:t}const h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,c=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function d(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function u(t,e,i,s){let a,r,l;if(n(t))if(r=t.length,s)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a);else if(o(t))for(l=Object.keys(t),r=l.length,a=0;a<r;a++)e.call(i,t[l[a]],l[a])}function f(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function g(t){if(n(t))return t.map(g);if(o(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=g(t[i[n]]);return e}return t}function p(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function m(t,e,i,s){if(!p(t))return;const n=e[t],a=i[t];o(n)&&o(a)?b(n,a,s):e[t]=g(a)}function b(t,e,i){const s=n(e)?e:[e],a=s.length;if(!o(t))return t;const r=(i=i||{}).merger||m;let l;for(let e=0;e<a;++e){if(l=s[e],!o(l))continue;const n=Object.keys(l);for(let e=0,s=n.length;e<s;++e)r(n[e],t,l,i)}return t}function x(t,e){return b(t,e,{merger:_})}function _(t,e,i){if(!p(t))return;const s=e[t],n=i[t];o(s)&&o(n)?x(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=g(n))}const y={"":t=>t,x:t=>t.x,y:t=>t.y};function v(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}function M(t,e){const i=y[e]||(y[e]=function(t){const e=v(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const k=t=>void 0!==t,S=t=>"function"==typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function D(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const C=Math.PI,O=2*C,A=O+C,T=Number.POSITIVE_INFINITY,L=C/180,E=C/2,R=C/4,I=2*C/3,z=Math.log10,F=Math.sign;function V(t,e,i){return Math.abs(t-e)<i}function B(t){const e=Math.round(t);t=V(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(z(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function W(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function H(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function j(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function $(t){return t*(C/180)}function Y(t){return t*(180/C)}function U(t){if(!a(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function X(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*C&&(o+=O),{angle:o,distance:n}}function q(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K(t,e){return(t-e+A)%O-C}function G(t){return(t%O+O)%O}function Z(t,e,i,s){const n=G(t),o=G(e),a=G(i),r=G(o-n),l=G(a-n),h=G(n-o),c=G(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function J(t,e,i){return Math.max(e,Math.min(i,t))}function Q(t){return J(t,-32768,32767)}function tt(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function et(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const it=(t,e,i,s)=>et(t,i,s?s=>{const n=t[s][e];return n<i||n===i&&t[s+1][e]===i}:s=>t[s][e]<i),st=(t,e,i)=>et(t,i,(s=>t[s][e]>=i));function nt(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}const ot=["push","pop","shift","splice","unshift"];function at(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ot.forEach((e=>{const i="_onData"+w(e),s=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=s.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),n}})})))}function rt(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(ot.forEach((e=>{delete t[e]})),delete t._chartjs)}function lt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ht="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ct(t,e){let i=[],s=!1;return function(...n){i=n,s||(s=!0,ht.call(window,(()=>{s=!1,t.apply(e,i)})))}}function dt(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}const ut=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,gt=(t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e;function pt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=J(Math.min(it(r,l,h).lo,i?s:it(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?J(Math.max(it(r,a.axis,c,!0).hi+1,i?0:it(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function mt(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}class bt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=ht.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var xt=new bt;function _t(t){return t+.5|0}const yt=(t,e,i)=>Math.max(Math.min(t,i),e);function vt(t){return yt(_t(2.55*t),0,255)}function Mt(t){return yt(_t(255*t),0,255)}function wt(t){return yt(_t(t/2.55)/100,0,1)}function kt(t){return yt(_t(100*t),0,100)}const St={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Pt=[..."0123456789ABCDEF"],Dt=t=>Pt[15&t],Ct=t=>Pt[(240&t)>>4]+Pt[15&t],Ot=t=>(240&t)>>4==(15&t);function At(t){var e=(t=>Ot(t.r)&&Ot(t.g)&&Ot(t.b)&&Ot(t.a))(t)?Dt:Ct;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Tt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Lt(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Et(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Rt(t,e,i){const s=Lt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function It(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function zt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(Mt)}function Ft(t,e,i){return zt(Lt,t,e,i)}function Vt(t){return(t%360+360)%360}function Bt(t){const e=Tt.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?vt(+e[5]):Mt(+e[5]));const n=Vt(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return zt(Rt,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return zt(Et,t,e,i)}(n,o,a):Ft(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}const Wt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Nt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ht;function jt(t){Ht||(Ht=function(){const t={},e=Object.keys(Nt),i=Object.keys(Wt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Wt[o]);o=parseInt(Nt[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),Ht.transparent=[0,0,0,0]);const e=Ht[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const $t=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Yt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ut=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Xt(t,e,i){if(t){let s=It(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Ft(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function qt(t,e){return t?Object.assign(e||{},t):t}function Kt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Mt(t[3]))):(e=qt(t,{r:0,g:0,b:0,a:1})).a=Mt(e.a),e}function Gt(t){return"r"===t.charAt(0)?function(t){const e=$t.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?vt(t):yt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?vt(i):yt(i,0,255)),s=255&(e[4]?vt(s):yt(s,0,255)),n=255&(e[6]?vt(n):yt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):Bt(t)}class Zt{constructor(t){if(t instanceof Zt)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=Kt(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*St[s[1]],g:255&17*St[s[2]],b:255&17*St[s[3]],a:5===o?17*St[s[4]]:255}:7!==o&&9!==o||(n={r:St[s[1]]<<4|St[s[2]],g:St[s[3]]<<4|St[s[4]],b:St[s[5]]<<4|St[s[6]],a:9===o?St[s[7]]<<4|St[s[8]]:255})),i=n||jt(t)||Gt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=qt(this._rgb);return t&&(t.a=wt(t.a)),t}set rgb(t){this._rgb=Kt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${wt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?At(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=It(t),i=e[0],s=kt(e[1]),n=kt(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${wt(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Ut(wt(t.r)),n=Ut(wt(t.g)),o=Ut(wt(t.b));return{r:Mt(Yt(s+i*(Ut(wt(e.r))-s))),g:Mt(Yt(n+i*(Ut(wt(e.g))-n))),b:Mt(Yt(o+i*(Ut(wt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Zt(this.rgb)}alpha(t){return this._rgb.a=Mt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_t(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Xt(this._rgb,2,t),this}darken(t){return Xt(this._rgb,2,-t),this}saturate(t){return Xt(this._rgb,1,t),this}desaturate(t){return Xt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=It(t);i[0]=Vt(i[0]+e),i=Ft(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Jt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Qt(t){return Jt(t)?t:new Zt(t)}function te(t){return Jt(t)?t:new Zt(t).saturate(.5).darken(.1).hexString()}const ee=["x","y","borderWidth","radius","tension"],ie=["color","borderColor","backgroundColor"];const se=new Map;function ne(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=se.get(i);return s||(s=new Intl.NumberFormat(t,e),se.set(i,s)),s}(e,i).format(t)}const oe={values:t=>n(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const a=z(Math.abs(o)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ne(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=i[e].significand||t/Math.pow(10,Math.floor(z(t)));return[1,2,3,5,10,15].includes(s)||e>.8*i.length?oe.numeric.call(this,t,e,i):""}};var ae={formatters:oe};const re=Object.create(null),le=Object.create(null);function he(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function ce(t,e,i){return"string"==typeof e?b(he(t,e),i):b(he(t,""),e)}class de{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>te(e.backgroundColor),this.hoverBorderColor=(t,e)=>te(e.borderColor),this.hoverColor=(t,e)=>te(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ce(this,t,e)}get(t){return he(this,t)}describe(t,e){return ce(le,t,e)}override(t,e){return ce(re,t,e)}route(t,e,i,s){const n=he(this,t),a=he(this,i),r="_"+e;Object.defineProperties(n,{[r]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=a[s];return o(t)?Object.assign({},e,t):l(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach((t=>t(this)))}}var ue=new de({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:ie},numbers:{type:"number",properties:ee}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ae.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function fe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ge(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function pe(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const me=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function be(t,e){return me(t).getPropertyValue(e)}const xe=["top","right","bottom","left"];function _e(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=xe[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const ye=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function ve(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=me(i),o="border-box"===n.boxSizing,a=_e(n,"padding"),r=_e(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(ye(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const Me=t=>Math.round(10*t)/10;function we(t,e,i,s){const n=me(t),o=_e(n,"margin"),a=pe(n.maxWidth,t,"clientWidth")||T,r=pe(n.maxHeight,t,"clientHeight")||T,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=ge(t);if(o){const t=o.getBoundingClientRect(),a=me(o),r=_e(a,"border","width"),l=_e(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=pe(a.maxWidth,o,"clientWidth"),n=pe(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||T,maxHeight:n||T}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=_e(n,"border","width"),e=_e(n,"padding");h-=e.width+t.width,c-=e.height+t.height}h=Math.max(0,h-o.width),c=Math.max(0,s?h/s:c-o.height),h=Me(Math.min(h,a,l.maxWidth)),c=Me(Math.min(c,r,l.maxHeight)),h&&!c&&(c=Me(h/2));return(void 0!==e||void 0!==i)&&s&&l.height&&c>l.height&&(c=l.height,h=Me(Math.floor(c*s))),{width:h,height:c}}function ke(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const Se=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};fe()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Pe(t,e){const i=be(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function De(t){return!t||s(t.size)||s(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ce(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function Oe(t,e,i,s){let o=(s=s||{}).data=s.data||{},a=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(o=s.data={},a=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let r=0;const l=i.length;let h,c,d,u,f;for(h=0;h<l;h++)if(u=i[h],null==u||n(u)){if(n(u))for(c=0,d=u.length;c<d;c++)f=u[c],null==f||n(f)||(r=Ce(t,o,a,r,f))}else r=Ce(t,o,a,r,u);t.restore();const g=a.length/2;if(g>i.length){for(h=0;h<g;h++)delete o[a[h]];a.splice(0,g)}return r}function Ae(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function Te(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Le(t,e,i,s){Ee(t,e,i,s,null)}function Ee(t,e,i,s,n){let o,a,r,l,h,c,d,u;const f=e.pointStyle,g=e.rotation,p=e.radius;let m=(g||0)*L;if(f&&"object"==typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,s),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:n?t.ellipse(i,s,n/2,p,0,0,O):t.arc(i,s,p,0,O),t.closePath();break;case"triangle":c=n?n/2:p,t.moveTo(i+Math.sin(m)*c,s-Math.cos(m)*p),m+=I,t.lineTo(i+Math.sin(m)*c,s-Math.cos(m)*p),m+=I,t.lineTo(i+Math.sin(m)*c,s-Math.cos(m)*p),t.closePath();break;case"rectRounded":h=.516*p,l=p-h,a=Math.cos(m+R)*l,d=Math.cos(m+R)*(n?n/2-h:l),r=Math.sin(m+R)*l,u=Math.sin(m+R)*(n?n/2-h:l),t.arc(i-d,s-r,h,m-C,m-E),t.arc(i+u,s-a,h,m-E,m),t.arc(i+d,s+r,h,m,m+E),t.arc(i-u,s+a,h,m+E,m+C),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}m+=R;case"rectRot":d=Math.cos(m)*(n?n/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(n?n/2:p),t.moveTo(i-d,s-r),t.lineTo(i+u,s-a),t.lineTo(i+d,s+r),t.lineTo(i-u,s+a),t.closePath();break;case"crossRot":m+=R;case"cross":d=Math.cos(m)*(n?n/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(n?n/2:p),t.moveTo(i-d,s-r),t.lineTo(i+d,s+r),t.moveTo(i+u,s-a),t.lineTo(i-u,s+a);break;case"star":d=Math.cos(m)*(n?n/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(n?n/2:p),t.moveTo(i-d,s-r),t.lineTo(i+d,s+r),t.moveTo(i+u,s-a),t.lineTo(i-u,s+a),m+=R,d=Math.cos(m)*(n?n/2:p),a=Math.cos(m)*p,r=Math.sin(m)*p,u=Math.sin(m)*(n?n/2:p),t.moveTo(i-d,s-r),t.lineTo(i+d,s+r),t.moveTo(i+u,s-a),t.lineTo(i-u,s+a);break;case"line":a=n?n/2:Math.cos(m)*p,r=Math.sin(m)*p,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(m)*(n?n/2:p),s+Math.sin(m)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Re(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Ie(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ze(t){t.restore()}function Fe(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Ve(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function Be(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function We(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Ne(t,e,i,o,a,r={}){const l=n(e)?e:[e],h=r.strokeWidth>0&&""!==r.strokeColor;let c,d;for(t.save(),t.font=a.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),s(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),c=0;c<l.length;++c)d=l[c],r.backdrop&&We(t,r.backdrop),h&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),s(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(d,i,o,r.maxWidth)),t.fillText(d,i,o,r.maxWidth),Be(t,i,o,d,r),o+=Number(a.lineHeight);t.restore()}function He(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,1.5*C,C,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,C,E,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,E,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-E,!0),t.lineTo(i+a.topLeft,s)}function je(t,e=[""],i,s,n=(()=>t[0])){const o=i||t;void 0===s&&(s=ti("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:s,_getTarget:n,override:i=>je([i,...t],e,o,s)};return new Proxy(a,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>qe(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=ti(Ue(o,t),i),void 0!==n)return Xe(t,n)?Je(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>ei(t).includes(e),ownKeys:t=>ei(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function $e(t,e,i,s){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ye(t,s),setContext:e=>$e(t,e,i,s),override:n=>$e(t.override(n),e,i,s)};return new Proxy(a,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>qe(t,e,(()=>function(t,e,i){const{_proxy:s,_context:a,_subProxy:r,_descriptors:l}=t;let h=s[e];S(h)&&l.isScriptable(e)&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=e(o,a||s);r.delete(t),Xe(t,l)&&(l=Je(n._scopes,n,t,l));return l}(e,h,t,i));n(h)&&h.length&&(h=function(t,e,i,s){const{_proxy:n,_context:a,_subProxy:r,_descriptors:l}=i;if(void 0!==a.index&&s(t))return e[a.index%e.length];if(o(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const o of i){const i=Je(s,n,t,o);e.push($e(i,a,r&&r[t],l))}}return e}(e,h,t,l.isIndexable));Xe(e,h)&&(h=$e(h,a,r&&r[e],l));return h}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Ye(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:S(i)?i:()=>i,isIndexable:S(s)?s:()=>s}}const Ue=(t,e)=>t?t+w(e):e,Xe=(t,e)=>o(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function qe(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Ke(t,e,i){return S(t)?t(e,i):t}const Ge=(t,e)=>!0===t?e:"string"==typeof t?M(e,t):void 0;function Ze(t,e,i,s,n){for(const o of e){const e=Ge(i,o);if(e){t.add(e);const o=Ke(e._fallback,i,n);if(void 0!==o&&o!==i&&o!==s)return o}else if(!1===e&&void 0!==s&&i!==s)return null}return!1}function Je(t,e,i,s){const a=e._rootScopes,r=Ke(e._fallback,i,s),l=[...t,...a],h=new Set;h.add(s);let c=Qe(h,l,i,r||i,s);return null!==c&&((void 0===r||r===i||(c=Qe(h,l,r,c,s),null!==c))&&je(Array.from(h),[""],a,r,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const a=s[e];if(n(a)&&o(i))return i;return a||{}}(e,i,s))))}function Qe(t,e,i,s,n){for(;i;)i=Ze(t,e,i,s,n);return i}function ti(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function ei(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function ii(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(M(c,o),h)};return a}const si=Number.EPSILON||1e-14,ni=(t,e)=>e<t.length&&!t[e].skip&&t[e],oi=t=>"x"===t?"y":"x";function ai(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=q(o,n),l=q(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function ri(t,e="x"){const i=oi(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=ni(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=ni(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?F(n[a-1])!==F(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=ni(t,0);for(let c=0;c<s-1;++c)l=h,h=ni(t,c+1),l&&h&&(V(e[c],0,si)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i="x"){const s=oi(i),n=t.length;let o,a,r,l=ni(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=ni(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}function li(t,e,i){return Math.max(Math.min(t,i),e)}function hi(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)ri(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=ai(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=Re(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&Re(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=li(n.cp1x,e.left,e.right),n.cp1y=li(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=li(n.cp2x,e.left,e.right),n.cp2y=li(n.cp2y,e.top,e.bottom)))}(t,i)}const ci=t=>0===t||1===t,di=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*O/i),ui=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*O/i)+1,fi={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*E),easeOutSine:t=>Math.sin(t*E),easeInOutSine:t=>-.5*(Math.cos(C*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ci(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ci(t)?t:di(t,.075,.3),easeOutElastic:t=>ci(t)?t:ui(t,.075,.3),easeInOutElastic(t){const e=.1125;return ci(t)?t:t<.5?.5*di(2*t,e,.45):.5+.5*ui(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-fi.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*fi.easeInBounce(2*t):.5*fi.easeOutBounce(2*t-1)+.5};function gi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function pi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function mi(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=gi(t,n,i),r=gi(n,o,i),l=gi(o,e,i),h=gi(a,r,i),c=gi(r,l,i);return gi(h,c,i)}const bi=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,xi=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function _i(t,e){const i=(""+t).match(bi);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const yi=t=>+t||0;function vi(t,e){const i={},s=o(e),n=s?Object.keys(e):e,a=o(t)?s?i=>l(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=yi(a(t));return i}function Mi(t){return vi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function wi(t){return vi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ki(t){const e=Mi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Si(t,e){t=t||{},e=e||ue.font;let i=l(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=l(t.style,e.style);s&&!(""+s).match(xi)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:l(t.family,e.family),lineHeight:_i(l(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:l(t.weight,e.weight),string:""};return n.string=De(n),n}function Pi(t,e,i,s){let o,a,r,l=!0;for(o=0,a=t.length;o<a;++o)if(r=t[o],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),l=!1),void 0!==i&&n(r)&&(r=r[i%r.length],l=!1),void 0!==r))return s&&!l&&(s.cacheable=!1),r}function Di(t,e,i){const{min:s,max:n}=t,o=c(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}function Ci(t,e){return Object.assign(Object.create(t),e)}function Oi(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Ai(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function Ti(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Li(t){return"angle"===t?{between:Z,compare:K,normalize:G}:{between:tt,compare:(t,e)=>t-e,normalize:t=>t}}function Ei({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function Ri(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=Li(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=Li(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,_=null;const y=()=>x||l(n,b,p)&&0!==r(n,b),v=()=>!x||0===r(o,p)||l(o,b,p);for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&y()&&(_=0===r(p,n)?t:i),null!==_&&v()&&(g.push(Ei({start:_,end:t,loop:u,count:a,style:f})),_=null),i=t,b=p));return null!==_&&g.push(Ei({start:_,end:d,loop:u,count:a,style:f})),g}function Ii(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=Ri(s[n],t.points,e);o.length&&i.push(...o)}return i}function zi(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);if(!0===s)return Fi(t,[{start:a,end:r,loop:o}],i,e);return Fi(t,function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}function Fi(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=Vi(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=Vi(s.setContext(Ci(n,{type:"segment",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),Bi(e,c)&&f(d,u-1,t.loop,c),o=r,c=e}d<u-1&&f(d,u-1,t.loop,c)}return h}(t,e,i,s):e}function Vi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Bi(t,e){if(!e)return!1;const i=[],s=function(t,e){return Jt(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,s)!==JSON.stringify(e,s)}var Wi=Object.freeze({__proto__:null,HALF_PI:E,INFINITY:T,PI:C,PITAU:A,QUARTER_PI:R,RAD_PER_DEG:L,TAU:O,TWO_THIRDS_PI:I,_addGrace:Di,_alignPixel:Ae,_alignStartEnd:ft,_angleBetween:Z,_angleDiff:K,_arrayUnique:lt,_attachContext:$e,_bezierCurveTo:Ve,_bezierInterpolation:mi,_boundSegment:Ri,_boundSegments:Ii,_capitalize:w,_computeSegments:zi,_createResolver:je,_decimalPlaces:U,_deprecated:function(t,e,i,s){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+s+'" instead')},_descriptors:Ye,_elementsEqual:f,_factorize:W,_filterBetween:nt,_getParentNode:ge,_getStartAndCountOfVisiblePoints:pt,_int16Range:Q,_isBetween:tt,_isClickEvent:D,_isDomSupported:fe,_isPointInArea:Re,_limitValue:J,_longestText:Oe,_lookup:et,_lookupByKey:it,_measureText:Ce,_merger:m,_mergerIf:_,_normalizeAngle:G,_parseObjectDataRadialScale:ii,_pointInLine:gi,_readValueToProps:vi,_rlookupByKey:st,_scaleRangesChanged:mt,_setMinAndMaxByKey:j,_splitKey:v,_steppedInterpolation:pi,_steppedLineTo:Fe,_textX:gt,_toLeftRightCenter:ut,_updateBezierControlPoints:hi,addRoundedRectPath:He,almostEquals:V,almostWhole:H,callback:d,clearCanvas:Te,clipArea:Ie,clone:g,color:Qt,createContext:Ci,debounce:dt,defined:k,distanceBetweenPoints:q,drawPoint:Le,drawPointLegend:Ee,each:u,easingEffects:fi,finiteOrDefault:r,fontString:function(t,e,i){return e+" "+t+"px "+i},formatNumber:ne,getAngleFromPoint:X,getHoverColor:te,getMaximumSize:we,getRelativePosition:ve,getRtlAdapter:Oi,getStyle:be,isArray:n,isFinite:a,isFunction:S,isNullOrUndef:s,isNumber:N,isObject:o,isPatternOrGradient:Jt,listenArrayEvents:at,log10:z,merge:b,mergeIf:x,niceNum:B,noop:e,overrideTextDirection:Ai,readUsedSize:Pe,renderText:Ne,requestAnimFrame:ht,resolve:Pi,resolveObjectKey:M,restoreTextDirection:Ti,retinaScale:ke,setsEqual:P,sign:F,splineCurve:ai,splineCurveMonotone:ri,supportsEventListenerOptions:Se,throttled:ct,toDegrees:Y,toDimension:c,toFont:Si,toFontString:De,toLineHeight:_i,toPadding:ki,toPercentage:h,toRadians:$,toTRBL:Mi,toTRBLCorners:wi,uid:i,unclipArea:ze,unlistenArrayEvents:rt,valueOrDefault:l});function Ni(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?st:it;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function Hi(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:h}=Ni(o[t],e,a,n);for(let t=l;t<=h;++t){const e=r[t];e.skip||s(e,i,t)}}}function ji(t,e,i,s,n){const o=[];if(!n&&!t.isPointInArea(e))return o;return Hi(t,i,e,(function(i,a,r){(n||Re(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o}function $i(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return Hi(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!(!!o||t.isPointInArea(u))&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}function Yi(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?$i(t,e,i,s,n,o):function(t,e,i,s){let n=[];return Hi(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:l}=X(t,{x:e.x,y:e.y});Z(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function Ui(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return Hi(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var Xi={evaluateInteractionItems:Hi,modes:{index(t,e,i,s){const n=ve(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?ji(t,n,o,s,a):Yi(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=ve(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?ji(t,n,o,s,a):Yi(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>ji(t,ve(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=ve(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return Yi(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>Ui(t,ve(e,t),"x",i.intersect,s),y:(t,e,i,s)=>Ui(t,ve(e,t),"y",i.intersect,s)}};const qi=["left","top","right","bottom"];function Ki(t,e){return t.filter((t=>t.pos===e))}function Gi(t,e){return t.filter((t=>-1===qi.indexOf(t.pos)&&t.box.axis===e))}function Zi(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Ji(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!qi.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}function Qi(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function ts(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function es(t,e,i,s){const{pos:n,box:a}=i,r=t.maxPadding;if(!o(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?a.height:a.width),i.size=e.size/e.count,t[n]+=i.size}a.getPadding&&ts(r,a.getPadding());const l=Math.max(0,e.outerWidth-Qi(r,t,"left","right")),h=Math.max(0,e.outerHeight-Qi(r,t,"top","bottom")),c=l!==t.w,d=h!==t.h;return t.w=l,t.h=h,i.horizontal?{same:c,other:d}:{same:d,other:c}}function is(t,e){const i=e.maxPadding;function s(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}return s(t?["left","right"]:["top","bottom"])}function ss(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,is(r.horizontal,e));const{same:a,other:d}=es(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&ss(n,e,i,s)||c}function ns(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function os(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;k(l.start)&&(a=l.start),t.fullSize?ns(t,n.left,a,i.outerWidth-n.right-n.left,o):ns(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;k(l.start)&&(o=l.start),t.fullSize?ns(t,o,n.top,a,i.outerHeight-n.bottom-n.top):ns(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}var as={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=ki(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Zi(e.filter((t=>t.box.fullSize)),!0),s=Zi(Ki(e,"left"),!0),n=Zi(Ki(e,"right")),o=Zi(Ki(e,"top"),!0),a=Zi(Ki(e,"bottom")),r=Gi(e,"x"),l=Gi(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:Ki(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;u(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),f=Object.assign({},n);ts(f,ki(s));const g=Object.assign({maxPadding:f,w:o,h:a,x:n.left,y:n.top},n),p=Ji(l.concat(h),d);ss(r.fullSize,g,d,p),ss(l,g,d,p),ss(h,g,d,p)&&ss(l,g,d,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(g),os(r.leftAndTop,g,d,p),g.x+=g.w,g.y+=g.h,os(r.rightAndBottom,g,d,p),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},u(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})}))}};class rs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class ls extends rs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const hs="$chartjs",cs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ds=t=>null===t||""===t;const us=!!Se&&{passive:!0};function fs(t,e,i){t.canvas.removeEventListener(e,i,us)}function gs(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ps(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||gs(i.addedNodes,s),e=e&&!gs(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function ms(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||gs(i.removedNodes,s),e=e&&!gs(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const bs=new Map;let xs=0;function _s(){const t=window.devicePixelRatio;t!==xs&&(xs=t,bs.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function ys(t,e,i){const s=t.canvas,n=s&&ge(s);if(!n)return;const o=ct(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){bs.size||window.addEventListener("resize",_s),bs.set(t,e)}(t,o),a}function vs(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){bs.delete(t),bs.size||window.removeEventListener("resize",_s)}(t)}function Ms(t,e,i){const s=t.canvas,n=ct((e=>{null!==t.ctx&&i(function(t,e){const i=cs[t.type]||t.type,{x:s,y:n}=ve(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t);return function(t,e,i){t.addEventListener(e,i,us)}(s,e,n),n}class ws extends rs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[hs]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",ds(n)){const e=Pe(t,"width");void 0!==e&&(t.width=e)}if(ds(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Pe(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[hs])return!1;const i=e[hs].initial;["height","width"].forEach((t=>{const n=i[t];s(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[hs],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:ps,detach:ms,resize:ys}[e]||Ms;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:vs,detach:vs,resize:vs}[e]||fs)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return we(t,e,i,s)}isAttached(t){const e=ge(t);return!(!e||!e.isConnected)}}function ks(t){return!fe()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ls:ws}var Ss=Object.freeze({__proto__:null,BasePlatform:rs,BasicPlatform:ls,DomPlatform:ws,_detectPlatform:ks});const Ps="transparent",Ds={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Qt(t||Ps),n=s.valid&&Qt(e||Ps);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Cs{constructor(t,e,i,s){const n=e[i];s=Pi([t.to,s,n,t.from]);const o=Pi([t.from,n,s]);this._active=!0,this._fn=t.fn||Ds[t.type||typeof o],this._easing=fi[t.easing]||fi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=Pi([t.to,e,s,t.from]),this._from=Pi([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class Os{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!o(t))return;const e=Object.keys(ue.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((s=>{const a=t[s];if(!o(a))return;const r={};for(const t of e)r[t]=a[t];(n(a.properties)&&a.properties||[s]).forEach((t=>{t!==s&&i.has(t)||i.set(t,r)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new Cs(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(xt.add(this._chart,i),!0):void 0}}function As(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function Ts(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function Ls(t,e,i,s={}){const n=t.keys,o="single"===s.mode;let r,l,h,c;if(null!==e){for(r=0,l=n.length;r<l;++r){if(h=+n[r],h===i){if(s.all)continue;break}c=t.values[h],a(c)&&(o||0===e||F(e)===F(c))&&(e+=c)}return e}}function Es(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Rs(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Is(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function zs(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[h]:d}=i;u=(i._stacks||(i._stacks={}))[h]=Rs(n,c,o),u[r]=d,u._top=Is(u,a,!0,s.type),u._bottom=Is(u,a,!1,s.type);(u._visualValues||(u._visualValues={}))[r]=d}}function Fs(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Vs(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const Bs=t=>"reset"===t||"none"===t,Ws=(t,e)=>e?t:Object.assign({},t);class Ns{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Es(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Vs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=l(i.xAxisID,Fs(t,"x")),o=e.yAxisID=l(i.yAxisID,Fs(t,"y")),a=e.rAxisID=l(i.rAxisID,Fs(t,"r")),r=e.indexAxis,h=e.iAxisID=s(r,n,o,a),c=e.vAxisID=s(r,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&rt(this._data,this),t._stacked&&Vs(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(o(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){rt(i,this);const t=this._cachedMeta;Vs(t),t._parsed=[]}e&&Object.isExtensible(e)&&at(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Es(e.vScale,e),e.stack!==i.stack&&(s=!0,Vs(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&zs(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:a,_stacked:r}=i,l=a.axis;let h,c,d,u=0===t&&e===s.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,d=s;else{d=n(s[t])?this.parseArrayData(i,s,t,e):o(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const a=()=>null===c[l]||f&&c[l]<f[l];for(h=0;h<e;++h)i._parsed[h+t]=c=d[h],u&&(a()&&(u=!1),f=c);i._sorted=u}r&&zs(this,d)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(M(u,a),d),y:o.parse(M(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return Ls({keys:Ts(s,!0),values:e._stacks[t.axis]._visualValues},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=Ls(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,o=s.length,r=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Ts(i,!0),values:null})(e,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let u,f;function g(){f=s[u];const e=f[r.axis];return!a(f[t.axis])||c>e||d<e}for(u=0;u<o&&(g()||(this.updateRangeFromParsed(h,t,f,l),!n));++u);if(n)for(u=o-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(h,t,f,l);break}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s][t.axis],a(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return o(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(l(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=As(t,i),n=As(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return Ci(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return Ci(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,o=t+"-"+e,a=n[o],r=this.enableOptionSharing&&k(i);if(a)return Ws(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(ue.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s,e)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(Ws(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new Os(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Bs(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){Bs(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Bs(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Vs(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class Hs{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return N(this.x)&&N(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}function js(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),o=Math.min(i.maxTicksLimit||n,n),a=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],r=a.length,l=a[0],h=a[r-1],c=[];if(r>o)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,c,a,r/o),c;const d=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=W(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(a,e,o);if(r>0){let t,i;const n=r>1?Math.round((h-l)/(r-1)):null;for($s(e,c,d,s(n)?0:l-n,l),t=0,i=r-1;t<i;t++)$s(e,c,d,a[t],a[t+1]);return $s(e,c,d,h,s(n)?e.length:h+n),c}return $s(e,c,d),c}function $s(t,e,i,s,n){const o=l(s,0),a=Math.min(l(n,t.length),t.length);let r,h,c,d=0;for(i=Math.ceil(i),n&&(r=n-s,i=r/Math.floor(r/i)),c=o;c<0;)d++,c=Math.round(o+d*i);for(h=Math.max(o,0);h<a;h++)h===c&&(e.push(t[h]),d++,c=Math.round(o+d*i))}const Ys=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,Us=(t,e)=>Math.min(e||t,t);function Xs(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function qs(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function Ks(t){return t.drawTicks?t.tickLength:0}function Gs(t,e){if(!t.display)return 0;const i=Si(t.font,e),s=ki(t.padding);return(n(t.text)?t.text.length:1)*i.lineHeight+s.height}function Zs(t,e,i){let s=ut(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class Js extends Hs{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=r(t,Number.POSITIVE_INFINITY),e=r(e,Number.NEGATIVE_INFINITY),i=r(i,Number.POSITIVE_INFINITY),s=r(s,Number.NEGATIVE_INFINITY),{min:r(t,i),max:r(e,s),minDefined:a(t),maxDefined:a(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let r=0,l=a.length;r<l;++r)e=a[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:r(i,r(s,i)),max:r(s,r(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Di(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?Xs(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=js(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){d(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),d(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=d(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=Us(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=J(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-Ks(t.grid)-e.padding-Gs(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=Y(Math.min(Math.asin(J((h.highest.height+6)/o,-1,1)),Math.asin(J(a/r,-1,1))-Math.asin(J(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=Gs(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=Ks(n)+o):(t.height=this.maxHeight,t.width=Ks(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=$(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){d(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)s(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=Xs(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:o,_longestTextCache:a}=this,r=[],l=[],h=Math.floor(e/Us(e,i));let c,d,f,g,p,m,b,x,_,y,v,M=0,w=0;for(c=0;c<e;c+=h){if(g=t[c].label,p=this._resolveTickFontOptions(c),o.font=m=p.string,b=a[m]=a[m]||{data:{},gc:[]},x=p.lineHeight,_=y=0,s(g)||n(g)){if(n(g))for(d=0,f=g.length;d<f;++d)v=g[d],s(v)||n(v)||(_=Ce(o,b.data,b.gc,_,v),y+=x)}else _=Ce(o,b.data,b.gc,_,g),y=x;r.push(_),l.push(y),M=Math.max(_,M),w=Math.max(y,w)}!function(t,e){u(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(a,e);const k=r.indexOf(M),S=l.indexOf(w),P=t=>({width:r[t]||0,height:l[t]||0});return{first:P(0),last:P(e-1),widest:P(k),highest:P(S),widths:r,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Q(this._alignToPixels?Ae(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return Ci(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Ci(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=$(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:a,border:r}=s,h=n.offset,c=this.isHorizontal(),d=this.ticks.length+(h?1:0),u=Ks(n),f=[],g=r.setContext(this.getContext()),p=g.display?g.width:0,m=p/2,b=function(t){return Ae(i,t,p)};let x,_,y,v,M,w,k,S,P,D,C,O;if("top"===a)x=b(this.bottom),w=this.bottom-u,S=x-m,D=b(t.top)+m,O=t.bottom;else if("bottom"===a)x=b(this.top),D=t.top,O=b(t.bottom)-m,w=x+m,S=this.top+u;else if("left"===a)x=b(this.right),M=this.right-u,k=x-m,P=b(t.left)+m,C=t.right;else if("right"===a)x=b(this.left),P=t.left,C=b(t.right)-m,M=x+m,k=this.left+u;else if("x"===e){if("center"===a)x=b((t.top+t.bottom)/2+.5);else if(o(a)){const t=Object.keys(a)[0],e=a[t];x=b(this.chart.scales[t].getPixelForValue(e))}D=t.top,O=t.bottom,w=x+m,S=w+u}else if("y"===e){if("center"===a)x=b((t.left+t.right)/2);else if(o(a)){const t=Object.keys(a)[0],e=a[t];x=b(this.chart.scales[t].getPixelForValue(e))}M=x-m,k=M-u,P=t.left,C=t.right}const A=l(s.ticks.maxTicksLimit,d),T=Math.max(1,Math.ceil(d/A));for(_=0;_<d;_+=T){const t=this.getContext(_),e=n.setContext(t),s=r.setContext(t),o=e.lineWidth,a=e.color,l=s.dash||[],d=s.dashOffset,u=e.tickWidth,g=e.tickColor,p=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=qs(this,_,h),void 0!==y&&(v=Ae(i,y,o),c?M=k=P=C=v:w=S=D=O=v,f.push({tx1:M,ty1:w,tx2:k,ty2:S,x1:P,y1:D,x2:C,y2:O,width:o,color:a,borderDash:l,borderDashOffset:d,tickWidth:u,tickColor:g,tickBorderDash:p,tickBorderDashOffset:m}))}return this._ticksLength=d,this._borderValue=x,f}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:a}=i,r=this.isHorizontal(),l=this.ticks,{align:h,crossAlign:c,padding:d,mirror:u}=a,f=Ks(i.grid),g=f+d,p=u?-d:g,m=-$(this.labelRotation),b=[];let x,_,y,v,M,w,k,S,P,D,C,O,A="middle";if("top"===s)w=this.bottom-p,k=this._getXAxisLabelAlignment();else if("bottom"===s)w=this.top+p,k=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,M=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,M=t.x}else if("x"===e){if("center"===s)w=(t.top+t.bottom)/2+g;else if(o(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)+g}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)M=(t.left+t.right)/2-g;else if(o(s)){const t=Object.keys(s)[0],e=s[t];M=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===h?A="top":"end"===h&&(A="bottom"));const T=this._getLabelSizes();for(x=0,_=l.length;x<_;++x){y=l[x],v=y.label;const t=a.setContext(this.getContext(x));S=this.getPixelForTick(x)+a.labelOffset,P=this._resolveTickFontOptions(x),D=P.lineHeight,C=n(v)?v.length:1;const e=C/2,i=t.color,o=t.textStrokeColor,h=t.textStrokeWidth;let d,f=k;if(r?(M=S,"inner"===k&&(f=x===_-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),O="top"===s?"near"===c||0!==m?-C*D+D/2:"center"===c?-T.highest.height/2-e*D+D:-T.highest.height+D/2:"near"===c||0!==m?D/2:"center"===c?T.highest.height/2-e*D:T.highest.height-C*D,u&&(O*=-1),0===m||t.showLabelBackdrop||(M+=D/2*Math.sin(m))):(w=S,O=(1-C)*D/2),t.showLabelBackdrop){const e=ki(t.backdropPadding),i=T.heights[x],s=T.widths[x];let n=O-e.top,o=0-e.left;switch(A){case"middle":n-=i/2;break;case"bottom":n-=i}switch(k){case"center":o-=s/2;break;case"right":o-=s;break;case"inner":x===_-1?o-=s:x>0&&(o-=s/2)}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({label:v,font:P,textOffset:O,options:{rotation:m,color:i,strokeColor:o,strokeWidth:h,textAlign:f,textBaseline:A,translation:[M,w],backdrop:d}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-$(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?s?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:s}}=this,n=i.setContext(this.getContext()),o=i.display?n.width:0;if(!o)return;const a=s.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let l,h,c,d;this.isHorizontal()?(l=Ae(t,this.left,o)-o/2,h=Ae(t,this.right,a)+a/2,c=d=r):(c=Ae(t,this.top,o)-o/2,d=Ae(t,this.bottom,a)+a/2,l=h=r),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(l,c),e.lineTo(h,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Ie(e,i);const s=this.getLabelItems(t);for(const t of s){const i=t.options,s=t.font;Ne(e,t.label,0,t.textOffset,s,i)}i&&ze(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const a=Si(i.font),r=ki(i.padding),l=i.align;let h=a.lineHeight/2;"bottom"===e||"center"===e||o(e)?(h+=r.bottom,n(i.text)&&(h+=a.lineHeight*(i.text.length-1))):h+=r.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=function(t,e,i,s){const{top:n,left:a,bottom:r,right:l,chart:h}=t,{chartArea:c,scales:d}=h;let u,f,g,p=0;const m=r-n,b=l-a;if(t.isHorizontal()){if(f=ft(s,a,l),o(i)){const t=Object.keys(i)[0],s=i[t];g=d[t].getPixelForValue(s)+m-e}else g="center"===i?(c.bottom+c.top)/2+m-e:Ys(t,i,e);u=l-a}else{if(o(i)){const t=Object.keys(i)[0],s=i[t];f=d[t].getPixelForValue(s)-b+e}else f="center"===i?(c.left+c.right)/2-b+e:Ys(t,i,e);g=ft(s,r,n),p="left"===i?-E:E}return{titleX:f,titleY:g,maxWidth:u,rotation:p}}(this,h,e,l);Ne(t,i.text,0,0,a,{color:i.color,maxWidth:u,rotation:f,textAlign:Zs(l,e,s),textBaseline:"middle",translation:[c,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=l(t.grid&&t.grid.z,-1),s=l(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Js.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return Si(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Qs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=b(Object.create(null),[i?ue.get(i):{},ue.get(e),t.defaults]);ue.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),o=[t].concat(s).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");ue.route(o,n,l,r)}))}(e,t.defaultRoutes);t.descriptors&&ue.describe(e,t.descriptors)}(t,o,i),this.override&&ue.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in ue[s]&&(delete ue[s][i],this.override&&delete re[i])}}class tn{constructor(){this.controllers=new Qs(Ns,"datasets",!0),this.elements=new Qs(Hs,"elements"),this.plugins=new Qs(Object,"plugins"),this.scales=new Qs(Js,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):u(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=w(t);d(i["before"+s],[],i),e[t](i),d(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var en=new tn;class sn{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===d(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){s(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=l(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(en.plugins.items);for(let t=0;t<s.length;t++)i.push(en.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=nn(s[e],n);null!==l&&o.push({plugin:r,options:on(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function nn(t,e){return e||!1!==t?!0===t?{}:t:null}function on(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function an(t,e){const i=ue.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function rn(t){if("x"===t||"y"===t||"r"===t)return t}function ln(t,...e){if(rn(t))return t;for(const s of e){const e=s.axis||("top"===(i=s.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&rn(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function hn(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function cn(t,e){const i=re[t.type]||{scales:{}},s=e.scales||{},n=an(t.type,e),a=Object.create(null);return Object.keys(s).forEach((e=>{const r=s[e];if(!o(r))return console.error(`Invalid scale configuration for scale: ${e}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=ln(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return hn(t,"x",i[0])||hn(t,"y",i[0])}return{}}(e,t),ue.scales[r.type]),h=function(t,e){return t===e?"_index_":"_value_"}(l,n),c=i.scales||{};a[e]=x(Object.create(null),[{axis:l},r,c[l],c[h]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,o=i.indexAxis||an(n,e),r=(re[n]||{}).scales||{};Object.keys(r).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),n=i[e+"AxisID"]||e;a[n]=a[n]||Object.create(null),x(a[n],[{axis:e},s[n],r[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];x(e,[ue.scales[e.type],ue.scale])})),a}function dn(t){const e=t.options||(t.options={});e.plugins=l(e.plugins,{}),e.scales=cn(t,e)}function un(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const fn=new Map,gn=new Set;function pn(t,e){let i=fn.get(t);return i||(i=e(),fn.set(t,i),gn.add(i)),i}const mn=(t,e,i)=>{const s=M(e,i);void 0!==s&&t.add(s)};class bn{constructor(t){this._config=function(t){return(t=t||{}).data=un(t.data),dn(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=un(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),dn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return pn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return pn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return pn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return pn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>mn(r,t,e)))),e.forEach((t=>mn(r,s,t))),e.forEach((t=>mn(r,re[n]||{},t))),e.forEach((t=>mn(r,ue,t))),e.forEach((t=>mn(r,le,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),gn.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,re[e]||{},ue.datasets[e]||{},{type:e},ue,le]}resolveNamedOptions(t,e,i,s=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=xn(this._resolverCache,t,s);let l=a;if(function(t,e){const{isScriptable:i,isIndexable:s}=Ye(t);for(const o of e){const e=i(o),a=s(o),r=(a||e)&&t[o];if(e&&(S(r)||_n(r))||a&&n(r))return!0}return!1}(a,e)){o.$shared=!1;l=$e(a,i=S(i)?i():i,this.createResolver(t,i,r))}for(const t of e)o[t]=l[t];return o}createResolver(t,e,i=[""],s){const{resolver:n}=xn(this._resolverCache,t,i);return o(e)?$e(n,e,void 0,s):n}}function xn(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);if(!o){o={resolver:je(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)}return o}const _n=t=>o(t)&&Object.getOwnPropertyNames(t).some((e=>S(t[e])));const yn=["top","bottom","left","right","chartArea"];function vn(t,e){return"top"===t||"bottom"===t||-1===yn.indexOf(t)&&"x"===e}function Mn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function wn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),d(i&&i.onComplete,[t],e)}function kn(t){const e=t.chart,i=e.options.animation;d(i&&i.onProgress,[t],e)}function Sn(t){return fe()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Pn={},Dn=t=>{const e=Sn(t);return Object.values(Pn).filter((t=>t.canvas===e)).pop()};function Cn(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}function On(t,e,i){return t.options.clip?t[i]:e[i]}class An{static defaults=ue;static instances=Pn;static overrides=re;static registry=en;static version="4.4.1";static getChart=Dn;static register(...t){en.add(...t),Tn()}static unregister(...t){en.remove(...t),Tn()}constructor(t,e){const s=this.config=new bn(e),n=Sn(t),o=Dn(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||ks(n)),this.platform.updateConfig(s);const r=this.platform.acquireContext(n,a.aspectRatio),l=r&&r.canvas,h=l&&l.height,c=l&&l.width;this.id=i(),this.ctx=r,this.canvas=l,this.width=c,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new sn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=dt((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],Pn[this.id]=this,r&&l?(xt.listen(this,"complete",wn),xt.listen(this,"progress",kn),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:o}=this;return s(t)?e&&o?o:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return en}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ke(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Te(this.canvas,this.ctx),this}stop(){return xt.stop(this),this}resize(t,e){xt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ke(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),d(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){u(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=ln(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),u(n,(e=>{const n=e.options,o=n.id,a=ln(o,n),r=l(n.type,e.dtype);void 0!==n.position&&vn(n.position,a)===vn(e.dposition)||(n.position=e.dposition),s[o]=!0;let h=null;if(o in i&&i[o].type===r)h=i[o];else{h=new(en.getScale(r))({id:o,type:r,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(n,t)})),u(s,((t,e)=>{t||delete i[e]})),u(i,(t=>{as.configure(this,t,t.options),as.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Mn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||an(o,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=en.getController(o),{datasetElementType:s,dataElementType:a}=ue.datasets[o];Object.assign(e,{dataElementType:en.getElement(a),datasetElementType:s&&en.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){u(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||u(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Mn("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){u(this.scales,(t=>{as.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);P(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){Cn(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!P(s,i(t)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;as.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],u(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,S(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xt.has(this)?this.attached&&!xt.running(this)&&xt.start(this):(this.draw(),wn({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,n=function(t,e){const{xScale:i,yScale:s}=t;return i&&s?{left:On(i,e,"left"),right:On(i,e,"right"),top:On(s,e,"top"),bottom:On(s,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&Ie(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&ze(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Re(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Xi.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Ci(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);k(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),xt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Te(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Pn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};u(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){u(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},u(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!f(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=D(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,d(n.onHover,[t,a,this],this),r&&d(n.onClick,[t,a,this],this));const h=!f(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function Tn(){return u(An.instances,(t=>t._plugins.invalidate()))}function Ln(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class En{static override(t){Object.assign(En.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Ln()}parse(){return Ln()}format(){return Ln()}add(){return Ln()}diff(){return Ln()}startOf(){return Ln()}endOf(){return Ln()}}var Rn={_date:En};function In(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=lt(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(k(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function zn(t,e,i,s){return n(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Fn(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(zn(u,d,o,h));return l}function Vn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Bn(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",o="start"):(n="start",o="end"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[Wn(c,a,r,l)]=!0,n=h)),o[Wn(n,a,r,l)]=!0,t.borderSkipped=o}function Wn(t,e,i,s){var n,o,a;return s?(a=i,t=Nn(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=Nn(t,e,i),t}function Nn(t,e,i){return"start"===t?e:"end"===t?i:t}function Hn(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class jn extends Ns{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map(((e,n)=>{const o=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:s,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,a,r=t=>+i[t];if(o(i[t])){const{key:t="value"}=this._parsing;r=e=>+M(i[e],t)}for(n=t,a=t+e;n<a;++n)s._parsed[n]=r(n)}}_getRotation(){return $(this.options.rotation-90)}_getCircumference(){return $(this.options.circumference)}_getRotationExtents(){let t=O,e=-O;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min(h(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:p,offsetY:m}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<O){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>Z(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>Z(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),p=f(0,h,d),m=f(E,c,u),b=g(C,h,d),x=g(C+E,c,u);s=(p-b)/2,n=(m-x)/2,o=-(p+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(u,d,r),b=(i.width-o)/f,x=(i.height-o)/g,_=Math.max(Math.min(b,x)/2,0),y=c(this.options.radius,_),v=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=m*y,s.total=this.calculateTotal(),this.outerRadius=y-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/O)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,n);for(p=e;p<e+i;++p){const e=this._circumference(p,n),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?"active":s)),m+=e,this.updateElement(i,p,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?O*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ne(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(l(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class $n extends Ns{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map(((e,n)=>{const o=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:s,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ne(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return ii.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*C;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,g=u+this._computeAngle(d,s,f),p=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=g,n&&(a.animateScale&&(p=0),a.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?$(this.resolveDataElementOptions(t,e).angle||i):0}}var Yn=Object.freeze({__proto__:null,BarController:class extends Ns{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return Fn(t,e,i,s)}parseArrayData(t,e,i,s){return Fn(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?a:r,h="x"===o.axis?a:r,c=[];let d,u,f,g;for(d=i,u=i+s;d<u;++d)g=e[d],f={},f[n.axis]=n.parse(M(g,l),d),c.push(zn(M(g,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=Vn(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const o="reset"===n,{index:a,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),h=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=o||s(e[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[r.axis],m={horizontal:h,base:i.base,enableBorderRadius:!p||Vn(e._custom)||a===p._top||a===p._bottom,x:h?i.head:g.center,y:h?g.center:i.head,height:h?g.size:Math.abs(i.size),width:h?Math.abs(i.size):g.size};u&&(m.options=d||this.resolveDataElementOptions(f,t[f].active?"active":n));const b=m.options||t[f].options;Bn(m,b,p,a),Hn(m,b,c.ratio),this.updateElement(t[f],f,m,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=i.options.stacked,a=[],r=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if(s(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===o||-1===a.indexOf(i.stack)||void 0===o&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||In(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:n},options:{base:o,minBarLength:a}}=this,r=o||0,l=this.getParsed(t),h=l._custom,c=Vn(h);let d,u,f=l[e.axis],g=0,p=i?this.applyStack(e,l,i):f;p!==f&&(g=p-f,p=f),c&&(f=h.barStart,p=h.barEnd-h.barStart,0!==f&&F(f)!==F(h.barEnd)&&(g=0),g+=f);const m=s(o)||c?g:o;let b=e.getPixelForValue(m);if(d=this.chart.getDataVisibility(t)?e.getPixelForValue(g+p):b,u=d-b,Math.abs(u)<a){u=function(t,e,i){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(u,e,r)*a,f===r&&(b-=u/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),o=Math.min(t,s),h=Math.max(t,s);b=Math.max(Math.min(b,h),o),d=b+u,i&&!c&&(l._stacks[e.axis]._visualValues[n]=e.getValueForPixel(d)-e.getValueForPixel(b))}if(b===e.getPixelForValue(r)){const t=F(u)*e.getLineWidthForValue(r)/2;b+=t,u-=t}return{size:u,base:b,head:d,center:d+u/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,o=n.skipNull,a=l(n.maxBarThickness,1/0);let r,h;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,n,i):function(t,e,i,n){const o=i.barThickness;let a,r;return s(o)?(a=e.min*i.categoryPercentage,r=i.barPercentage):(a=o*n,r=1),{chunk:a/n,ratio:r,start:e.pixels[t]-a/2}}(t,e,n,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*c+l.chunk/2,h=Math.min(a,l.chunk*l.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),h=Math.min(a,e.min*e.ratio);return{base:r-h/2,head:r+h/2,center:r,size:h}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}},BubbleController:class extends Ns{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=l(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=l(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:n}=e,o=this.getParsed(t),a=s.getLabelForValue(o.x),r=n.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+a+", "+r+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=l(i&&i._custom,n),s}},DoughnutController:jn,LineController:class extends Ns{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=pt(e,s,o);this._drawStart=a,this._drawCount=r,mt(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,i,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=N(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===n,x=e+i,_=t.length;let y=e>0&&this.getParsed(e-1);for(let i=0;i<_;++i){const g=t[i],_=b?g:{};if(i<e||i>=x){_.skip=!0;continue}const v=this.getParsed(i),M=s(v[f]),w=_[u]=a.getPixelForValue(v[u],i),k=_[f]=o||M?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,v,l):v[f],i);_.skip=isNaN(w)||isNaN(k)||M,_.stop=i>0&&Math.abs(v[u]-y[u])>m,p&&(_.parsed=v,_.raw=h.data[i]),d&&(_.options=c||this.resolveDataElementOptions(i,g.active?"active":n)),b||this.updateElement(g,i,_,n),y=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends jn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:$n,RadarController:class extends Ns{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return ii.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}},ScatterController:class extends Ns{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:n}=e,o=this.getParsed(t),a=s.getLabelForValue(o.x),r=n.getLabelForValue(o.y);return{label:i[t]||"",value:"("+a+", "+r+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=pt(e,i,s);if(this._drawStart=n,this._drawCount=o,mt(e)&&(n=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),d=this.getSharedOptions(c),u=this.includeOptions(n,d),f=a.axis,g=r.axis,{spanGaps:p,segment:m}=this.options,b=N(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===n;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),p=x?e:{},y=s(i[g]),v=p[f]=a.getPixelForValue(i[f],c),M=p[g]=o||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,i,l):i[g],c);p.skip=isNaN(v)||isNaN(M)||y,p.stop=c>0&&Math.abs(i[f]-_[f])>b,m&&(p.parsed=i,p.raw=h.data[c]),u&&(p.options=d||this.resolveDataElementOptions(c,e.active?"active":n)),x||this.updateElement(e,c,p,n),_=i}this.updateSharedOptions(d,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}});function Un(t,e,i,s){const n=vi(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return J(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:J(n.innerStart,0,a),innerEnd:J(n.innerEnd,0,a)}}function Xn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function qn(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const g=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}const p=(g-Math.max(.001,g*d-i/C)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=Un(e,u,d,b-m),M=d-x,w=d-_,k=m+x/M,S=b-_/w,P=u+y,D=u+v,O=m+y/P,A=b-v/D;if(t.beginPath(),o){const e=(k+S)/2;if(t.arc(a,r,d,k,e),t.arc(a,r,d,e,S),_>0){const e=Xn(w,S,a,r);t.arc(e.x,e.y,_,S,b+E)}const i=Xn(D,b,a,r);if(t.lineTo(i.x,i.y),v>0){const e=Xn(D,A,a,r);t.arc(e.x,e.y,v,b+E,A+Math.PI)}const s=(b-v/u+(m+y/u))/2;if(t.arc(a,r,u,b-v/u,s,!0),t.arc(a,r,u,s,m+y/u,!0),y>0){const e=Xn(P,O,a,r);t.arc(e.x,e.y,y,O+Math.PI,m-E)}const n=Xn(M,m,a,r);if(t.lineTo(n.x,n.y),x>0){const e=Xn(M,k,a,r);t.arc(e.x,e.y,x,m-E,k)}}else{t.moveTo(a,r);const e=Math.cos(k)*d+a,i=Math.sin(k)*d+r;t.lineTo(e,i);const s=Math.cos(S)*d+a,n=Math.sin(S)*d+r;t.lineTo(s,n)}t.closePath()}function Kn(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r,options:l}=e,{borderWidth:h,borderJoinStyle:c,borderDash:d,borderDashOffset:u}=l,f="inner"===l.borderAlign;if(!h)return;t.setLineDash(d||[]),t.lineDashOffset=u,f?(t.lineWidth=2*h,t.lineJoin=c||"round"):(t.lineWidth=h,t.lineJoin=c||"bevel");let g=e.endAngle;if(o){qn(t,e,i,s,g,n);for(let e=0;e<o;++e)t.stroke();isNaN(r)||(g=a+(r%O||O))}f&&function(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+E,s-E),t.closePath(),t.clip()}(t,e,g),o||(qn(t,e,i,s,g,n),t.stroke())}function Gn(t,e,i=e){t.lineCap=l(i.borderCapStyle,e.borderCapStyle),t.setLineDash(l(i.borderDash,e.borderDash)),t.lineDashOffset=l(i.borderDashOffset,e.borderDashOffset),t.lineJoin=l(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=l(i.borderWidth,e.borderWidth),t.strokeStyle=l(i.borderColor,e.borderColor)}function Zn(t,e,i){t.lineTo(i.x,i.y)}function Jn(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function Qn(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=Jn(n,i,s),c=function(t){return t.stepped?Fe:t.tension||"monotone"===t.cubicInterpolationMode?Ve:Zn}(o);let d,u,f,{move:g=!0,reverse:p}=s||{};for(d=0;d<=h;++d)u=n[(r+(p?h-d:d))%a],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):c(t,f,u,p,o.stepped),f=u);return l&&(u=n[(r+(p?h:0))%a],c(t,f,u,p,o.stepped)),!!l}function to(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=Jn(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,g,p,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,_=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),u=s,b=0,f=g=i),p=i}_()}function eo(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?to:Qn}const io="function"==typeof Path2D;function so(t,e,i,s){io&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Gn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=eo(e);for(const r of n)Gn(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class no extends Hs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;hi(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=zi(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=Ii(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?pi:t.tension||"monotone"===t.cubicInterpolationMode?mi:gi}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return eo(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=eo(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),so(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function oo(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}function ao(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function ro(t,e,i,s){return t?0:J(e,i,s)}function lo(t){const e=ao(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=Mi(s);return{t:ro(n.top,o.top,0,i),r:ro(n.right,o.right,0,e),b:ro(n.bottom,o.bottom,0,i),l:ro(n.left,o.left,0,e)}}(t,i/2,s/2),a=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,a=wi(n),r=Math.min(e,i),l=t.borderSkipped,h=s||o(n);return{topLeft:ro(!h||l.top||l.left,a.topLeft,0,r),topRight:ro(!h||l.top||l.right,a.topRight,0,r),bottomLeft:ro(!h||l.bottom||l.left,a.bottomLeft,0,r),bottomRight:ro(!h||l.bottom||l.right,a.bottomRight,0,r)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:a},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,a.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(n.b,n.r))}}}}function ho(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&ao(t,s);return a&&(n||tt(e,a.left,a.right))&&(o||tt(i,a.top,a.bottom))}function co(t,e){t.rect(e.x,e.y,e.w,e.h)}function uo(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}var fo=Object.freeze({__proto__:null,ArcElement:class extends Hs{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=X(s,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:h,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,f=l(d,r-a)>=O||Z(n,a,r),g=tt(o,h+u,c+u);return f&&g}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/4,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>O?Math.floor(i/O):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*s,Math.sin(a)*s);const r=s*(1-Math.sin(Math.min(C,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){qn(t,e,i,s,l,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+(r%O||O))}qn(t,e,i,s,l,n),t.fill()}(t,this,r,n,o),Kn(t,this,r,n,o),t.restore()}},BarElement:class extends Hs{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:o}=lo(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?He:co;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,uo(o,e,n)),t.clip(),a(t,uo(n,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,uo(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return ho(this,t,e,i)}inXRange(t,e){return ho(this,t,null,e)}inYRange(t,e){return ho(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:no,PointElement:class extends Hs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return oo(this,t,"x",e)}inYRange(t,e){return oo(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Re(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Le(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});function go(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}function po(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function mo(t,e,{horizontal:i,minRotation:s}){const n=$(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class bo extends Js{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return s(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=F(s),e=F(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:o,min:a,max:r,precision:l,count:h,maxTicks:c,maxDigits:d,includeBounds:u}=t,f=o||1,g=c-1,{min:p,max:m}=e,b=!s(a),x=!s(r),_=!s(h),y=(m-p)/(d+1);let v,M,w,k,S=B((m-p)/g/f)*f;if(S<1e-14&&!b&&!x)return[{value:p},{value:m}];k=Math.ceil(m/S)-Math.floor(p/S),k>g&&(S=B(k*S/g/f)*f),s(l)||(v=Math.pow(10,l),S=Math.ceil(S*v)/v),"ticks"===n?(M=Math.floor(p/S)*S,w=Math.ceil(m/S)*S):(M=p,w=m),b&&x&&o&&H((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,M=a,w=r):_?(M=b?a:M,w=x?r:w,k=h-1,S=(w-M)/k):(k=(w-M)/S,k=V(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const P=Math.max(U(S),U(M));v=Math.pow(10,s(l)?P:l),M=Math.round(M*v)/v,w=Math.round(w*v)/v;let D=0;for(b&&(u&&M!==a?(i.push({value:a}),M<a&&D++,V(Math.round((M+D*S)*v)/v,a,mo(a,y,t))&&D++):M<a&&D++);D<k;++D){const t=Math.round((M+D*S)*v)/v;if(x&&t>r)break;i.push({value:t})}return x&&u&&w!==r?i.length&&V(i[i.length-1].value,r,mo(r,y,t))?i[i.length-1].value=r:i.push({value:r}):x&&w!==r||i.push({value:w}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&j(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ne(t,this.chart.options.locale,this.options.ticks.format)}}class xo extends bo{static id="linear";static defaults={ticks:{callback:ae.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=a(t)?t:0,this.max=a(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=$(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const _o=t=>Math.floor(z(t)),yo=(t,e)=>Math.pow(10,_o(t)+e);function vo(t){return 1===t/Math.pow(10,_o(t))}function Mo(t,e,i){const s=Math.pow(10,i),n=Math.floor(t/s);return Math.ceil(e/s)-n}function wo(t,{min:e,max:i}){e=r(t.min,e);const s=[],n=_o(e);let o=function(t,e){let i=_o(e-t);for(;Mo(t,e,i)>10;)i++;for(;Mo(t,e,i)<10;)i--;return Math.min(i,_o(t))}(e,i),a=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),h=n>o?Math.pow(10,n):0,c=Math.round((e-h)*a)/a,d=Math.floor((e-h)/l/10)*l*10;let u=Math.floor((c-d)/Math.pow(10,o)),f=r(t.min,Math.round((h+d+u*Math.pow(10,o))*a)/a);for(;f<i;)s.push({value:f,major:vo(f),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(o++,u=2,a=o>=0?1:a),f=Math.round((h+d+u*Math.pow(10,o))*a)/a;const g=r(t.max,f);return s.push({value:g,major:vo(g),significand:u}),s}class ko extends Js{static id="logarithmic";static defaults={ticks:{callback:ae.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=bo.prototype.parse.apply(this,[t,e]);if(0!==i)return a(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=a(t)?Math.max(0,t):null,this.max=a(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!a(this._userMin)&&(this.min=t===yo(this.min,0)?yo(this.min,-1):yo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t;i===s&&(i<=0?(n(1),o(10)):(n(yo(i,-1)),o(yo(s,1)))),i<=0&&n(yo(s,-1)),s<=0&&o(yo(i,1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=wo({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&j(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":ne(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=z(t),this._valueRange=z(this.max)-z(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(z(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function So(t){const e=t.ticks;if(e.display&&t.display){const t=ki(e.backdropPadding);return l(e.font&&e.font.size,ue.font.size)+t.height}return 0}function Po(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Do(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,l=r.centerPointLabels?C/a:0;for(let u=0;u<a;u++){const a=r.setContext(t.getPointLabelContext(u));o[u]=a.padding;const f=t.getPointPosition(u,t.drawingArea+o[u],l),g=Si(a.font),p=(h=t.ctx,c=g,d=n(d=t._pointLabels[u])?d:[d],{w:Oe(h,c.string,d),h:d.length*c.lineHeight});s[u]=p;const m=G(t.getIndexAngle(u)+l),b=Math.round(Y(m));Co(i,e,m,Po(b,f.x,p.w,0,180),Po(b,f.y,p.h,90,270))}var h,c,d;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:r}=o.pointLabels,l={extra:So(o)/2,additionalAngle:a?C/n:0};let h;for(let o=0;o<n;o++){l.padding=i[o],l.size=e[o];const n=Oo(t,o,l);s.push(n),"auto"===r&&(n.visible=Ao(n,h),n.visible&&(h=n))}return s}(t,s,o)}function Co(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Oo(t,e,i){const s=t.drawingArea,{extra:n,additionalAngle:o,padding:a,size:r}=i,l=t.getPointPosition(e,s+n+a,o),h=Math.round(Y(G(l.angle+E))),c=function(t,e,i){90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e);return t}(l.y,r.h,h),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(h),u=function(t,e,i){"right"===i?t-=e:"center"===i&&(t-=e/2);return t}(l.x,r.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:u,top:c,right:u+r.w,bottom:c+r.h}}function Ao(t,e){if(!e)return!0;const{left:i,top:s,right:n,bottom:o}=t;return!(Re({x:i,y:s},e)||Re({x:i,y:o},e)||Re({x:n,y:s},e)||Re({x:n,y:o},e))}function To(t,e,i){const{left:n,top:o,right:a,bottom:r}=i,{backdropColor:l}=e;if(!s(l)){const i=wi(e.borderRadius),s=ki(e.backdropPadding);t.fillStyle=l;const h=n-s.left,c=o-s.top,d=a-n+s.width,u=r-o+s.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),He(t,{x:h,y:c,w:d,h:u,radius:i}),t.fill()):t.fillRect(h,c,d,u)}}function Lo(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,O);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}class Eo extends bo{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ae.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ki(So(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=a(t)&&!isNaN(t)?t:0,this.max=a(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/So(this.options))}generateTickLabels(t){bo.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=d(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Do(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return G(t*(O/(this._pointLabels.length||1))+$(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(s(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(s(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return Ci(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-E+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Lo(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s,border:n}=e,o=this._pointLabels.length;let a,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=t._pointLabelItems[n];if(!e.visible)continue;const o=s.setContext(t.getPointLabelContext(n));To(i,o,e);const a=Si(o.font),{x:r,y:l,textAlign:h}=e;Ne(i,t._pointLabels[n],r,l+a.lineHeight/2,a,{color:o.color,textAlign:h,textBaseline:"middle"})}}(this,o),s.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),a=s.setContext(i),l=n.setContext(i);!function(t,e,i,s,n){const o=t.ctx,a=e.circular,{color:r,lineWidth:l}=e;!a&&!s||!r||!l||i<0||(o.save(),o.strokeStyle=r,o.lineWidth=l,o.setLineDash(n.dash),o.lineDashOffset=n.dashOffset,o.beginPath(),Lo(t,i,a,s),o.closePath(),o.stroke(),o.restore())}(this,a,r,o,l)}})),i.display){for(t.save(),a=o-1;a>=0;a--){const s=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=s;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((s,a)=>{if(0===a&&!e.reverse)return;const r=i.setContext(this.getContext(a)),l=Si(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=ki(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}Ne(t,s.label,0,-n,l,{color:r.color,strokeColor:r.textStrokeColor,strokeWidth:r.textStrokeWidth})})),t.restore()}drawTitle(){}}const Ro={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Io=Object.keys(Ro);function zo(t,e){return t-e}function Fo(t,e){if(s(e))return null;const i=t._adapter,{parser:n,round:o,isoWeekday:r}=t._parseOpts;let l=e;return"function"==typeof n&&(l=n(l)),a(l)||(l="string"==typeof n?i.parse(l,n):i.parse(l)),null===l?null:(o&&(l="week"!==o||!N(r)&&!0!==r?i.startOf(l,o):i.startOf(l,"isoWeek",r)),+l)}function Vo(t,e,i,s){const n=Io.length;for(let o=Io.indexOf(t);o<n-1;++o){const t=Ro[Io[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Io[o]}return Io[n-1]}function Bo(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=et(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function Wo(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class No extends Js{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),s=this._adapter=new Rn._date(t.adapters.date);s.init(e),x(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Fo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:o,maxDefined:r}=this.getUserBounds();function l(t){o||isNaN(t.min)||(s=Math.min(s,t.min)),r||isNaN(t.max)||(n=Math.max(n,t.max))}o&&r||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),s=a(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=a(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const n=this.min,o=nt(s,n,this.max);return this._unit=e.unit||(i.autoSkip?Vo(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=Io.length-1;o>=Io.indexOf(i);o--){const i=Io[o];if(Ro[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Io[i?Io.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Io.indexOf(t)+1,i=Io.length;e<i;++e)if(Ro[Io[e]].common)return Io[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),Wo(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=J(s,0,o),n=J(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||Vo(n.minUnit,e,i,this._getLabelCapacity(e)),a=l(s.ticks.stepSize,1),r="week"===o&&n.isoWeekday,h=N(r)||!0===r,c={};let d,u,f=e;if(h&&(f=+t.startOf(f,"isoWeek",r)),f=+t.startOf(f,h?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g="data"===s.ticks.source&&this.getDataTimestamps();for(d=f,u=0;d<i;d=+t.add(d,a,o),u++)Bo(c,d,g);return d!==i&&"ticks"!==s.bounds&&1!==u||Bo(c,d,g),Object.keys(c).sort(zo).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,s=this._unit,n=e||i[s];return this._adapter.format(t,n)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.ticks.callback;if(o)return d(o,[t,e,i],this);const a=n.time.displayFormats,r=this._unit,l=this._majorUnit,h=r&&a[r],c=l&&a[l],u=i[e],f=l&&c&&u&&u.major;return this._adapter.format(t,s||(f?c:h))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=$(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,Wo(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(Fo(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return lt(t.sort(zo))}}function Ho(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=it(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=it(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}var jo=Object.freeze({__proto__:null,CategoryScale:class extends Js{static id="category";static defaults={ticks:{callback:po}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(s(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:J(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:go(i,t,l(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){return po.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:xo,LogarithmicScale:ko,RadialLinearScale:Eo,TimeScale:No,TimeSeriesScale:class extends No{static id="timeseries";static defaults=No.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ho(e,this.min),this._tableRange=Ho(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ho(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ho(this._table,i*this._tableRange+this._minPos,!0)}}});const $o=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Yo=$o.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Uo(t){return $o[t%$o.length]}function Xo(t){return Yo[t%Yo.length]}function qo(t){let e=0;return(i,s)=>{const n=t.getDatasetMeta(s).controller;n instanceof jn?e=function(t,e){return t.backgroundColor=t.data.map((()=>Uo(e++))),e}(i,e):n instanceof $n?e=function(t,e){return t.backgroundColor=t.data.map((()=>Xo(e++))),e}(i,e):n&&(e=function(t,e){return t.borderColor=Uo(e),t.backgroundColor=Xo(e),++e}(i,e))}}function Ko(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Go={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:s},options:n}=t.config,{elements:o}=n;if(!i.forceOverride&&(Ko(s)||(a=n)&&(a.borderColor||a.backgroundColor)||o&&Ko(o)))return;var a;const r=qo(t);s.forEach(r)}};function Zo(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Jo(t){t.data.datasets.forEach((t=>{Zo(t)}))}var Qo={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Jo(t);const n=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:r}=e,l=t.getDatasetMeta(o),h=a||e.data;if("y"===Pi([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=J(it(e,o.axis,a).lo,0,i-1)),s=h?J(it(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(l,h);if(u<=(i.threshold||4*n))return void Zo(e);let f;switch(s(a)&&(e._data=h,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":f=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,g,p=e;for(a[l++]=t[p],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,_=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:y,y:v}=t[p];for(u=f=-1,s=x;s<_;s++)f=.5*Math.abs((y-n)*(t[s].y-v)-(y-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],g=s);a[l++]=d,p=g}return a[l++]=t[h],a}(h,d,u,n,i);break;case"min-max":f=function(t,e,i,n){let o,a,r,l,h,c,d,u,f,g,p=0,m=0;const b=[],x=e+i-1,_=t[e].x,y=t[x].x-_;for(o=e;o<e+i;++o){a=t[o],r=(a.x-_)/y*n,l=a.y;const e=0|r;if(e===h)l<f?(f=l,c=o):l>g&&(g=l,d=o),p=(m*p+a.x)/++m;else{const i=o-1;if(!s(c)&&!s(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&b.push({...t[e],x:p}),s!==u&&s!==i&&b.push({...t[s],x:p})}o>0&&i!==u&&b.push(t[i]),b.push(a),h=e,m=0,f=g=l,c=d=u=o}}return b}(h,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=f}))},destroy(t){Jo(t)}};function ta(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=G(n),o=G(o)),{property:t,start:n,end:o}}function ea(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function ia(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function sa(t,e){let i=[],s=!1;return n(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=ea(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new no({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function na(t){return t&&!1!==t.fill}function oa(t,e,i){let s=t[e].fill;const n=[e];let o;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!a(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;n.push(s),s=o.fill}return!1}function aa(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=l(i&&i.target,i);void 0===s&&(s=!!e.backgroundColor);if(!1===s||null===s)return!1;if(!0===s)return"origin";return s}(t);if(o(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return a(n)&&Math.floor(n)===n?function(t,e,i,s){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=s)return!1;return i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function ra(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=la(o,e,"x");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function la(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],h=a[e.end][i];if(tt(n,s,h)){r=n===s,l=n===h;break}}return{first:r,last:l,point:s}}class ha{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:O},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function ca(t){const{chart:e,fill:i,line:s}=t;if(a(i))return function(t,e){const i=t.getDatasetMeta(e),s=i&&t.isDatasetVisible(e);return s?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(sa({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)ra(n,a[t],r)}return new no({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,a=s.reverse?e.max:e.min,r=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:o(t)?t.value:e.getBaseValue(),s}(i,e,a),l=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,a);return new ha({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<n;++t)l.push(e.getPointPositionForValue(t,r));return l}(t);return function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:o(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(a(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof ha?n:sa(n,s)}function da(t,e,i){const s=ca(e),{line:n,scale:o,axis:a}=e,r=n.options,l=r.fill,h=r.backgroundColor,{above:c=h,below:d=h}=l||{};s&&n.points.length&&(Ie(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==n&&(ua(t,s,a.top),fa(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),ua(t,s,a.bottom));fa(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:c,below:d,area:i,scale:o,axis:a}),ze(t))}function ua(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[ea(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function fa(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=ea(s,r,n);const l=ta(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[r]});continue}const h=Ii(e,l);for(const e of h){const s=ta(i,o[e.start],o[e.end],e.loop),r=Ri(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:ia(l,s,"start",Math.max)},end:{[i]:ia(l,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:h,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,ga(t,a,d&&ta(n,h,c)),t.beginPath();const u=!!i.pathSegment(t,e);let f;if(d){u?t.closePath():pa(t,s,c,n);const e=!!s.pathSegment(t,l,{move:u,reverse:!0});f=u&&e,f||pa(t,s,h,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function ga(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function pa(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var ma={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof no&&(l={visible:t.isDatasetVisible(a),index:a,fill:aa(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=oa(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&da(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;na(i)&&da(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;na(s)&&"beforeDatasetDraw"===i.drawTime&&da(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ba=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class xa extends Hs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=d(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=Si(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=ba(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,s,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:p,itemHeight:m}=function(t,e,i,s,n){const o=function(t,e,i,s){let n=t.text;n&&"string"!=typeof n&&(n=n.reduce(((t,e)=>t.length>e.length?t:e)));return e+i.size/2+s.measureText(n).width}(s,t,e,i),a=function(t,e,i){let s=t;"string"!=typeof e.text&&(s=_a(e,i));return s}(n,s,e.lineHeight);return{itemWidth:o,itemHeight:a}}(i,e,n,t,s);o>0&&u+m+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),r[o]={left:f,top:u,col:g,width:p,height:m},d=Math.max(d,p),u+=m+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=Oi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=ft(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=ft(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=ft(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=ft(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ie(t,this),this._draw(),ze(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=ue.color,r=Oi(t.rtl,this.left,this.width),h=Si(o.font),{padding:c}=o,d=h.size,u=d/2;let f;this.drawTitle(),s.textAlign=r.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:g,boxHeight:p,itemHeight:m}=ba(o,d),b=this.isHorizontal(),x=this._computeTitleHeight();f=b?{x:ft(n,this.left+c,this.right-i[0]),y:this.top+c+x,line:0}:{x:this.left+c,y:ft(n,this.top+x+c,this.bottom-e[0].height),line:0},Ai(this.ctx,t.textDirection);const _=m+c;this.legendItems.forEach(((y,v)=>{s.strokeStyle=y.fontColor,s.fillStyle=y.fontColor;const M=s.measureText(y.text).width,w=r.textAlign(y.textAlign||(y.textAlign=o.textAlign)),k=g+u+M;let S=f.x,P=f.y;r.setWidth(this.width),b?v>0&&S+k+c>this.right&&(P=f.y+=_,f.line++,S=f.x=ft(n,this.left+c,this.right-i[f.line])):v>0&&P+_>this.bottom&&(S=f.x=S+e[f.line].width+c,f.line++,P=f.y=ft(n,this.top+x+c,this.bottom-e[f.line].height));if(function(t,e,i){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;s.save();const n=l(i.lineWidth,1);if(s.fillStyle=l(i.fillStyle,a),s.lineCap=l(i.lineCap,"butt"),s.lineDashOffset=l(i.lineDashOffset,0),s.lineJoin=l(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=l(i.strokeStyle,a),s.setLineDash(l(i.lineDash,[])),o.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(t,g/2);Ee(s,a,l,e+u,o.pointStyleWidth&&g)}else{const o=e+Math.max((d-p)/2,0),a=r.leftForLtr(t,g),l=wi(i.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?He(s,{x:a,y:o,w:g,h:p,radius:l}):s.rect(a,o,g,p),s.fill(),0!==n&&s.stroke()}s.restore()}(r.x(S),P,y),S=gt(w,S+g+u,b?S+k:this.right,t.rtl),function(t,e,i){Ne(s,i.text,t,e+m/2,h,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(S),P,y),b)f.x+=k+c;else if("string"!=typeof y.text){const t=h.lineHeight;f.y+=_a(y,t)+c}else f.y+=_})),Ti(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Si(e.font),s=ki(e.padding);if(!e.display)return;const n=Oi(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=ft(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+ft(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=ft(a,c,c+d);o.textAlign=n.textAlign(ut(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ne(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=Si(t.font),i=ki(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(tt(t,this.left,this.right)&&tt(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],tt(t,s.left,s.left+s.width)&&tt(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&d(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&d(e.onHover,[t,i,this],this)}else i&&d(e.onClick,[t,i,this],this);var s,n}}function _a(t,e){return e*(t.text?t.text.length:0)}var ya={id:"legend",_element:xa,start(t,e,i){const s=t.legend=new xa({ctx:t.ctx,options:i,chart:t});as.configure(t,s,i),as.addBox(t,s)},stop(t){as.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;as.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:o,useBorderRadius:a,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),h=ki(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:s||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:a&&(r||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class va extends Hs{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=n(i.text)?i.text.length:1;this._padding=ki(i.padding);const o=s*Si(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=ft(a,i,n),h=e+t,r=n-i):("left"===o.position?(l=i+t,h=ft(a,s,e),c=-.5*C):(l=n-t,h=ft(a,e,s),c=.5*C),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Si(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);Ne(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:ut(e.align),textBaseline:"middle",translation:[n,o]})}}var Ma={id:"title",_element:va,start(t,e,i){!function(t,e){const i=new va({ctx:t.ctx,options:e,chart:t});as.configure(t,i,e),as.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;as.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;as.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wa=new WeakMap;var ka={id:"subtitle",start(t,e,i){const s=new va({ctx:t.ctx,options:i,chart:t});as.configure(t,s,i),as.addBox(t,s),wa.set(t,s)},stop(t){as.removeBox(t,wa.get(t)),wa.delete(t)},beforeUpdate(t,e,i){const s=wa.get(t);as.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Sa={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=q(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Pa(t,e){return e&&(n(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Da(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ca(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Oa(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=Si(e.bodyFont),h=Si(e.titleFont),c=Si(e.footerFont),d=o.length,f=n.length,g=s.length,p=ki(e.padding);let m=p.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x){m+=g*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(x-g)*l.lineHeight+(x-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*c.lineHeight+(f-1)*e.footerSpacing);let _=0;const y=function(t){b=Math.max(b,i.measureText(t).width+_)};return i.save(),i.font=h.string,u(t.title,y),i.font=l.string,u(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,u(s,(t=>{u(t.before,y),u(t.lines,y),u(t.after,y)})),_=0,i.font=c.string,u(t.footer,y),i.restore(),b+=p.width,{width:b,height:m}}function Aa(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h="center";return"center"===s?h=n<=(r+l)/2?"left":"right":n<=o/2?h="left":n>=a-o/2&&(h="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function Ta(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Aa(t,e,i,s),yAlign:s}}function La(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=wi(a);let g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,h);return"center"===l?"left"===r?g+=h:"right"===r&&(g-=h):"left"===r?g-=Math.max(c,u)+n:"right"===r&&(g+=Math.max(d,f)+n),{x:J(g,0,s.width-e.width),y:J(p,0,s.height-e.height)}}function Ea(t,e,i){const s=ki(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function Ra(t){return Pa([],Da(t))}function Ia(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const za={beforeTitle:e,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:e,beforeBody:e,beforeLabel:e,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return s(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:e,afterBody:e,beforeFooter:e,footer:e,afterFooter:e};function Fa(t,e,i,s){const n=t[e].call(i,s);return void 0===n?za[e].call(i,s):n}class Va extends Hs{static positioners=Sa;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new Os(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,Ci(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=Fa(i,"beforeTitle",this,t),n=Fa(i,"title",this,t),o=Fa(i,"afterTitle",this,t);let a=[];return a=Pa(a,Da(s)),a=Pa(a,Da(n)),a=Pa(a,Da(o)),a}getBeforeBody(t,e){return Ra(Fa(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return u(t,(t=>{const e={before:[],lines:[],after:[]},n=Ia(i,t);Pa(e.before,Da(Fa(n,"beforeLabel",this,t))),Pa(e.lines,Fa(n,"label",this,t)),Pa(e.after,Da(Fa(n,"afterLabel",this,t))),s.push(e)})),s}getAfterBody(t,e){return Ra(Fa(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=Fa(i,"beforeFooter",this,t),n=Fa(i,"footer",this,t),o=Fa(i,"afterFooter",this,t);let a=[];return a=Pa(a,Da(s)),a=Pa(a,Da(n)),a=Pa(a,Da(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(Ca(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),u(l,(e=>{const i=Ia(t.callbacks,e);s.push(Fa(i,"labelColor",this,e)),n.push(Fa(i,"labelPointStyle",this,e)),o.push(Fa(i,"labelTextColor",this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=Sa[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Oa(this,i),a=Object.assign({},t,e),r=Ta(this.chart,i,a),l=La(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=wi(a),{x:d,y:u}=t,{width:f,height:g}=e;let p,m,b,x,_,y;return"center"===n?(_=u+g/2,"left"===s?(p=d,m=p-o,x=_+o,y=_-o):(p=d+f,m=p+o,x=_-o,y=_+o),b=p):(m="left"===s?d+Math.max(r,h)+o:"right"===s?d+f-Math.max(l,c)-o:this.caretX,"top"===n?(x=u,_=x-o,p=m-o,b=m+o):(x=u+g,_=x+o,p=m+o,b=m-o),y=x),{x1:p,x2:m,x3:b,y1:x,y2:_,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=Oi(i.rtl,this.x,this.width);for(t.x=Ea(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Si(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const a=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:l,boxWidth:h}=n,c=Si(n.bodyFont),d=Ea(this,"left",n),u=s.x(d),f=l<c.lineHeight?(c.lineHeight-l)/2:0,g=e.y+f;if(n.usePointStyle){const e={radius:Math.min(h,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=s.leftForLtr(u,h)+h/2,o=g+l/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,Le(t,e,i,o),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Le(t,e,i,o)}else{t.lineWidth=o(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=s.leftForLtr(u,h),i=s.leftForLtr(s.xPlus(u,1),h-2),r=wi(a.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,He(t,{x:e,y:g,w:h,h:l,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),He(t,{x:i,y:g+1,w:h-2,h:l-2,radius:r}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,g,h,l),t.strokeRect(e,g,h,l),t.fillStyle=a.backgroundColor,t.fillRect(i,g+1,h-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=Si(i.bodyFont);let d=c.lineHeight,f=0;const g=Oi(i.rtl,this.x,this.width),p=function(i){e.fillText(i,g.x(t.x+f),t.y+d/2),t.y+=d+n},m=g.textAlign(o);let b,x,_,y,v,M,w;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=Ea(this,m,i),e.fillStyle=i.bodyColor,u(this.beforeBody,p),f=a&&"right"!==m?"center"===o?l/2+h:l+2+h:0,y=0,M=s.length;y<M;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,u(b.before,p),_=b.lines,a&&_.length&&(this._drawColorBox(e,t,y,g,i),d=Math.max(c.lineHeight,r)),v=0,w=_.length;v<w;++v)p(_[v]),d=c.lineHeight;u(b.after,p)}f=0,d=c.lineHeight,u(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=Oi(i.rtl,this.x,this.width);for(t.x=Ea(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=Si(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=wi(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Sa[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Oa(this,t),a=Object.assign({},i,this._size),r=Ta(e,t,a),l=La(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=ki(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),Ai(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),Ti(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!f(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!f(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=Sa[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}var Ba={id:"tooltip",_element:Va,positioners:Sa,afterInit(t,e,i){i&&(t.tooltip=new Va({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:za},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};return An.register(Yn,jo,fo,t),An.helpers={...Wi},An._adapters=Rn,An.Animation=Cs,An.Animations=Os,An.animator=xt,An.controllers=en.controllers.items,An.DatasetController=Ns,An.Element=Hs,An.elements=fo,An.Interaction=Xi,An.layouts=as,An.platforms=Ss,An.Scale=Js,An.Ticks=ae,Object.assign(An,Yn,jo,fo,t,Ss),An.Chart=An,"undefined"!=typeof window&&(window.Chart=An),An}));
seraph_accel_gzjydy();var gdlr_core_pbf={"admin":"","video":{"width":"640","height":"360"},"ajax_url":"https:\/\/morocco-vacations.com\/wp-admin\/admin-ajax.php?lang=en","ilightbox_skin":"dark"};
seraph_accel_gzjydy();(function($){"use strict";var gdlr_core_mobile=false;if(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/Windows Phone/i)){gdlr_core_mobile=true;}else{gdlr_core_mobile=false;}
var gdlr_core_display='desktop';if(typeof(window.matchMedia)=='function'){$(window).on('resize themename-set-display gdlr-core-element-resize',function(){if(window.matchMedia('(max-width: 419px)').matches){gdlr_core_display='mobile-portrait';}else if(window.matchMedia('(max-width: 767px)').matches){gdlr_core_display='mobile-landscape'}else if(window.matchMedia('(max-width: 959px)').matches){gdlr_core_display='tablet'}else{gdlr_core_display='desktop';}});$(window).trigger('themename-set-display');}else{$(window).on('resize themename-set-display gdlr-core-element-resize',function(){if($(window).innerWidth()<=419){gdlr_core_display='mobile-portrait';}else if($(window).innerWidth()<=767){gdlr_core_display='mobile-landscape'}else if($(window).innerWidth()<=959){gdlr_core_display='tablet'}else{gdlr_core_display='desktop';}});$(window).trigger('themename-set-display');}
function gdlr_core_set_cookie(cname,cvalue,expires){if(typeof(expires)!='undefined'){if(expires==0){expires=86400;}
var now=new Date();var new_time=now.getTime()+(parseInt(expires)*1000);now.setTime(new_time);expires=now.toGMTString();}
document.cookie=cname+"="+encodeURIComponent(cvalue)+"; expires="+expires+"; path=/";}
$.fn.gdlr_core_monitor_swipe=function(settings){settings=$.extend({mouseEvent:true,swipeThreshold:150,allowedTime:300},settings);var swipeArea=$(this);var startX=0,startTime=0;var startEvent=settings.mouseEvent?'mousedown touchstart':'touchstart';var endEvent=settings.mouseEvent?'mouseup touchend':'touchend';swipeArea.on(startEvent,function(e){startX=e.clientX;startTime=new Date().getTime();});swipeArea.on(endEvent,function(e){var swipeDistance=e.clientX-startX;var elapsedTime=new Date().getTime()-startTime;if(elapsedTime<=settings.allowedTime&&Math.abs(swipeDistance)>settings.swipeThreshold){if(swipeDistance>0){swipeArea.trigger('swiperight');}else{swipeArea.trigger('swipeleft');}}});if(settings.mouseEvent){swipeArea.on('dragstart',function(e){e.preventDefault();});}}
$.fn.gdlr_core_content_script=function(filter_elem,document_ready){$(this).gdlr_core_fluid_video(filter_elem);if(!document_ready&&typeof($.fn.mediaelementplayer)=='function'){var wpme_settings={"stretching":"responsive"};if(typeof(_wpmejsSettings)!=='undefined'){wpme_settings.pluginPath=_wpmejsSettings.pluginPath;}
$(this).find('audio, video').mediaelementplayer(wpme_settings);}
return $(this);}
$.fn.gdlr_core_fluid_video=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('iframe[src*="youtube"], iframe[src*="vimeo"]');}else{var elem=filter_elem.filter('iframe[src*="youtube"], iframe[src*="vimeo"]');}
elem.each(function(){if($(this).closest('.ls-container, .master-slider').length<=0){if(($(this).is('embed')&&$(this).parent('object').length)||$(this).parent('.gdlr-core-fluid-video-wrapper').length){return;}
if(!$(this).attr('id')){$(this).attr('id','gdlr-video-'+Math.floor(Math.random()*999999));}
if($(this).attr('height')&&$(this).attr('width')){var ratio=parseInt($(this).attr('height'))/parseInt($(this).attr('width'));}else{var ratio=$(this).height()/$(this).width();}
$(this).removeAttr('height').removeAttr('width');try{$(this).wrap('<div class="gdlr-core-fluid-video-wrapper"></div>').parent().css('padding-top',(ratio*100)+"%");$(this).attr('src',$(this).attr('src'));}catch(e){}}});$('.gdlr-core-video-item-overlay').each(function(){var button=$(this);var video=$(this).closest('.gdlr-core-video-item').find('iframe');if(video.attr('data-player-type')=='vimeo'){var player=$f(video[0]);button.on('click',function(){$(this).css('pointer-events','none').fadeOut(500,function(e){$(this).remove();});video[0].src+="&autoplay=1";});}else if(video.attr('data-player-type')=='youtube'){button.on('click',function(){$(this).css('pointer-events','none').fadeOut(500,function(e){$(this).remove();});video[0].src+="&autoplay=1&mute=1";});}});return $(this);}
$.fn.gdlr_core_mejs_ajax=function(){if(typeof($.fn.mediaelementplayer)=='function'){var wpme_settings={};if(typeof(_wpmejsSettings)!=='undefined'){wpme_settings.pluginPath=_wpmejsSettings.pluginPath;}
$(this).find('audio, video').mediaelementplayer(wpme_settings);}}
$.fn.gdlr_core_hover_box=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-hover-box .gdlr-core-hover-thumbnail');}else{var elem=filter_elem.filter('.gdlr-core-hover-box').find('.gdlr-core-hover-thumbnail');}
elem.each(function(){$(this).closest('.gdlr-core-hover-box').hover(function(){var ch1=$(this).find('.gdlr-core-hover-thumbnail').children('img').eq(0);var ch2=$(this).find('.gdlr-core-hover-thumbnail').children('img').eq(1);ch1.css('display','none');ch2.fadeIn(300);},function(){var ch1=$(this).find('.gdlr-core-hover-thumbnail').children('img').eq(0);var ch2=$(this).find('.gdlr-core-hover-thumbnail').children('img').eq(1);ch2.css('display','none');ch1.fadeIn(300);});});}
$.fn.gdlr_core_counter_item=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-counter-item-count[data-counter-start][data-counter-end]');}else{var elem=filter_elem.filter('.gdlr-core-counter-item-count[data-counter-start][data-counter-end]');}
elem.each(function(){var counter_item=$(this);var start_num=parseFloat($(this).attr('data-counter-start'));var end_num=parseFloat($(this).attr('data-counter-end'));var duration_time=($(this).attr('data-duration'))?parseInt($(this).attr('data-duration')):4000;var decimal=0;if($(this).attr('data-counter-end')){var decimalArray=$(this).attr('data-counter-end').split('.');if(decimalArray[1]){decimal=decimalArray[1].length;}}
if((gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')||$(window).scrollTop()+$(window).height()>counter_item.offset().top){$({counter_num:start_num*(10**decimal)}).animate({counter_num:end_num*(10**decimal)},{duration:duration_time,easing:'easeOutExpo',step:function(){if(this.counter_num>0.3){counter_item.html(Math.round(this.counter_num)/(10**decimal));}else{counter_item.html(0);}}});console.log(decimal,(10**decimal));}else{$(window).on('scroll pb-scroll',function(e){if($(this).scrollTop()+$(window).height()>counter_item.offset().top){$({counter_num:start_num*(10**decimal)}).animate({counter_num:end_num*(10**decimal)},{duration:duration_time,easing:'easeOutQuart',step:function(){if(this.counter_num>0.3){counter_item.html(Math.ceil(this.counter_num)/(10**decimal));}else{counter_item.html(0);}}});console.log((10^decimal));$(this).unbind('scroll pb-scroll',e.handleObj.handler,e);}});}});}
$.fn.gdlr_core_typed_animation=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-type-animation-item-animated[data-animation-text]');}else{var elem=filter_elem.filter('.gdlr-core-type-animation-item-animated[data-animation-text]');}
elem.each(function(){var animation_text=JSON.parse($(this).attr('data-animation-text'));if(typeof($.fn.typed)=='function'&&animation_text&&animation_text.length>0){$(this).typed({strings:animation_text,typeSpeed:50,loop:true});}});}
$.fn.gdlr_core_countdown_item=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-countdown-wrap');}else{var elem=filter_elem.filter('.gdlr-core-countdown-wrap');}
elem.each(function(){var day_field=$(this).find('.gdlr-core-day');var day=parseInt(day_field.text());var hrs_field=$(this).find('.gdlr-core-hrs');var hrs=parseInt(hrs_field.text());var min_field=$(this).find('.gdlr-core-min');var min=parseInt(min_field.text());var sec_field=$(this).find('.gdlr-core-sec');var sec=parseInt(sec_field.text());$(window).on('load',function(){sec_field.text('00');sec_field.css('width',sec_field.width());sec_field.text(sec);});var i=setInterval(function(){if(sec>0){sec--;}else{sec=59;if(min>0){min--;}else{min=59;if(hrs>0){hrs--;}else{hrs=24;if(day>0){day--;}else{day=0;hrs=0;min=0;sec=0;clearInterval(i);}
day_field.text(day);}
hrs_field.text(hrs);}
min_field.text(min);}
sec_field.text(sec);},1000);});}
$.fn.gdlr_core_accordion=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem_title=$(this).find('.gdlr-core-accordion-item-title');var elem_icon=$(this).find('.gdlr-core-accordion-item-icon');}else{var elem_title=filter_elem.filter('.gdlr-core-accordion-item-title');var elem_icon=filter_elem.filter('.gdlr-core-accordion-item-icon');}
elem_title.click(function(){$(this).siblings('.gdlr-core-accordion-item-content').slideDown(200);var item_tab=$(this).closest('.gdlr-core-accordion-item-tab');if(item_tab.hasClass('gdlr-core-active')){if(item_tab.closest('.gdlr-core-accordion-item').hasClass('gdlr-core-allow-close-all')){item_tab.removeClass('gdlr-core-active').find('.gdlr-core-accordion-item-content').css({display:'block'}).slideUp(200);}}else{item_tab.addClass('gdlr-core-active').siblings('.gdlr-core-active').removeClass('gdlr-core-active').find('.gdlr-core-accordion-item-content').css({display:'block'}).slideUp(200);}});elem_icon.click(function(){if($(this).closest('.gdlr-core-accordion-item-title').length){return;}
$(this).siblings('.gdlr-core-accordion-item-content-wrapper').children('.gdlr-core-accordion-item-content').slideDown(200);var item_tab=$(this).closest('.gdlr-core-accordion-item-tab');if(item_tab.hasClass('gdlr-core-active')){if(item_tab.closest('.gdlr-core-accordion-item').hasClass('gdlr-core-allow-close-all')){item_tab.removeClass('gdlr-core-active').find('.gdlr-core-accordion-item-content').css({display:'block'}).slideUp(200);}}else{item_tab.addClass('gdlr-core-active').siblings('.gdlr-core-active').removeClass('gdlr-core-active').find('.gdlr-core-accordion-item-content').css({display:'block'}).slideUp(200);}});}
$.fn.gdlr_core_toggle_box=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem_title=$(this).find('.gdlr-core-toggle-box-item-title');var elem_icon=$(this).find('.gdlr-core-toggle-box-item-icon');}else{var elem_title=filter_elem.filter('.gdlr-core-toggle-box-item-title');var elem_icon=filter_elem.filter('.gdlr-core-toggle-box-item-icon');}
elem_title.click(function(){var toggle_parent=$(this).closest('.gdlr-core-toggle-box-item-tab');if(toggle_parent.hasClass('gdlr-core-active')){toggle_parent.removeClass('gdlr-core-active');$(this).siblings('.gdlr-core-toggle-box-item-content').css({display:'block'}).slideUp(200);}else{toggle_parent.addClass('gdlr-core-active');$(this).siblings('.gdlr-core-toggle-box-item-content').css({display:'none'}).slideDown(200);}});elem_icon.click(function(){if($(this).closest('.gdlr-core-toggle-box-item-title').length){return;}
var toggle_parent=$(this).closest('.gdlr-core-toggle-box-item-tab');if(toggle_parent.hasClass('gdlr-core-active')){toggle_parent.removeClass('gdlr-core-active');$(this).siblings('.gdlr-core-toggle-box-item-content-wrapper').children('.gdlr-core-toggle-box-item-content').css({display:'block'}).slideUp(200);}else{toggle_parent.addClass('gdlr-core-active');$(this).siblings('.gdlr-core-toggle-box-item-content-wrapper').children('.gdlr-core-toggle-box-item-content').css({display:'none'}).slideDown(200);}});}
$.fn.gdlr_core_alert_box_item=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-alert-box-remove');}else{var elem=filter_elem.filter('.gdlr-core-alert-box-remove');}
elem.click(function(){$(this).closest('.gdlr-core-alert-box-item').slideUp(400,'easeOutQuart',function(){$(this).remove();});});}
$.fn.gdlr_core_particle_background=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-particle-bg');}else{var elem=filter_elem.filter('.gdlr-core-particle-bg');}
elem.each(function(){if(typeof(window.gdlr_particle_bg_id)=='undefined'){window.gdlr_particle_bg_id=1;}else{window.gdlr_particle_bg_id++;}
var item_id='gdlr-core-particle'+window.gdlr_particle_bg_id;$(this).attr('id',item_id);particlesJS(item_id,{"particles":{"number":{"value":40,"density":{"enable":true,"value_area":1500}},"color":{"value":"#ffffff"},"shape":{"type":"circle","stroke":{"width":0,"color":"#000000"},"polygon":{"nb_sides":5},"image":{"src":"img/github.svg","width":100,"height":100}},"opacity":{"value":0.8,"random":false,"anim":{"enable":false,"speed":0.6,"opacity_min":0.1,"sync":false}},"size":{"value":2,"random":true,"anim":{"enable":false,"speed":80,"size_min":0.1,"sync":false}},"line_linked":{"enable":true,"distance":300,"color":"#ffffff","opacity":0.4,"width":2},"move":{"enable":true,"speed":12,"direction":"none","random":false,"straight":false,"out_mode":"out","bounce":false,"attract":{"enable":false,"rotateX":600,"rotateY":1200}}},"interactivity":{"detect_on":"canvas","events":{"onhover":{"enable":false,"mode":"repulse"},"onclick":{"enable":false,"mode":"push"},"resize":true},"modes":{"grab":{"distance":800,"line_linked":{"opacity":1}},"bubble":{"distance":800,"size":80,"duration":2,"opacity":0.8,"speed":3},"repulse":{"distance":400,"duration":0.4},"push":{"particles_nb":4},"remove":{"particles_nb":2}}},"retina_detect":true});});return $(this);}
$.fn.gdlr_core_parallax_background=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-parallax');}else{var elem=filter_elem.filter('.gdlr-core-parallax');}
elem.each(function(){new gdlr_core_parallax($(this));});return $(this);}
var gdlr_core_parallax=function(t){this.wrapper_bg=t;this.wrapper=t.parent();this.parallax_speed=parseFloat(t.attr('data-parallax-speed'));this.init();}
gdlr_core_parallax.prototype={init:function(){var t=this;if(t.parallax_speed!=0){t.set_extra_height();t.set_background_position(t);$(window).on('load resize gdlr-core-element-resize',function(){t.set_extra_height($(this));t.set_background_position(t);});$(window).on('scroll pb-scroll',function(){t.set_background_position(t);});}
if(gdlr_core_mobile){t.wrapper_bg.children('[data-background-type="video"]').remove();if(t.wrapper_bg.attr('data-video-fallback')){t.wrapper_bg.css('background-image','url('+t.wrapper_bg.attr('data-video-fallback')+')')}}else{t.wrapper_bg.children('[data-background-type="video"]').each(function(){if(t.parallax_speed==0){t.set_extra_height();t.set_background_position(t);$(window).on('load resize gdlr-core-element-resize',function(){t.set_extra_height($(this));t.set_background_position(t);});}
$(this).find('iframe').each(function(){if($(this).attr('data-player-type')=='vimeo'){var player=$f($(this)[0]);player.addEvent('ready',function(){player.api('setVolume',0);});}else if($(this).attr('data-player-type')=='youtube'){if($('body').children('#gdlr-core-youtube-api').length==0){$('body').append('<script src="https://www.youtube.com/iframe_api" id="gdlr-core-youtube-api" ></script>');}
if(typeof(window.gdlr_core_ytb)=='undefined'){window.gdlr_core_ytb=[$(this)[0]];}else{window.gdlr_core_ytb.push($(this)[0]);}
window.onYouTubeIframeAPIReady=function(){if(typeof(gdlr_core_ytb)!='undefined'){for(var key in window.gdlr_core_ytb){new YT.Player(gdlr_core_ytb[key],{events:{'onReady':function(e){e.target.mute();e.target.playVideo();}}});}}}}});});}},set_extra_height:function(){var t=this;var new_height=t.wrapper.outerHeight();if(gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait'){t.wrapper_bg.css({'transform':''});}else{if(t.parallax_speed>0){new_height+=(($(window).height()-t.wrapper.outerHeight())*t.parallax_speed);}else if(t.parallax_speed<0){new_height+=(($(window).height()+t.wrapper.outerHeight())*Math.abs(t.parallax_speed));}}
t.wrapper_bg.css({height:new_height});var ratio=parseInt(gdlr_core_pbf.video.width)/parseInt(gdlr_core_pbf.video.height);t.wrapper_bg.children('[data-background-type="video"]').each(function(){if((t.wrapper_bg.width()/t.wrapper_bg.height())>ratio){var v_height=t.wrapper_bg.width()/ratio;var v_margin=(t.wrapper_bg.height()-v_height)/2;$(this).css({width:t.wrapper_bg.width(),height:v_height,'margin-left':0,'margin-top':v_margin});}else{var v_width=t.wrapper_bg.height()*ratio;var v_margin=(t.wrapper_bg.width()-v_width)/2;$(this).css({width:v_width,height:t.wrapper_bg.height(),'margin-left':v_margin,'margin-top':0});}});},set_background_position:function(t){if(gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')return;var wrapper_top=t.wrapper.offset().top;var scroll_pos=$(window).scrollTop();if(scroll_pos+$(window).height()>wrapper_top&&scroll_pos<wrapper_top+t.wrapper.outerHeight()){if(t.parallax_speed>0){t.wrapper_bg.css({'transform':'translate(0px, '+(($(window).scrollTop()-wrapper_top)*t.parallax_speed)+'px)'});}else if(t.parallax_speed<0){t.wrapper_bg.css({'transform':'translate(0px, '+(($(window).scrollTop()+$(window).height()-wrapper_top)*t.parallax_speed)+'px)'});}}}};var gdlr_core_ux=function(container,filter_elem){if(typeof(filter_elem)=='undefined'){this.elem=container.find('[data-gdlr-animation]');}else{this.elem=filter_elem.filter('[data-gdlr-animation]');this.preload=filter_elem.filter('.gdlr-core-page-preload');}
this.ux_items=[];this.ux_item_length=0;this.init();if(!gdlr_core_mobile&&gdlr_core_display=='desktop'){if(typeof(filter_elem)=='undefined'){var elem_3d=container.find('.gdlr-core-effect-3d');}else{var elem_3d=filter_elem.filter('.gdlr-core-effect-3d');}
elem_3d.each(function(){var plain=$(this);var max_degree=$(this).attr('data-max-deg');if(max_degree==null){max_degree=30;}
$(this).parent().on('mousemove',function(e){if(!gdlr_core_display=='desktop')return;var posX=e.pageX-$(this).offset().left;var posY=e.pageY-$(this).offset().top;var half_width=$(this).outerWidth()/2;var half_height=$(this).outerHeight()/2;var ax=max_degree*-(half_width-posX)/half_width;var ay=max_degree*(half_height-posY)/half_height;plain.removeClass('gdlr-core-animate-transform');plain.css({'transform':'rotateY('+ax+'deg) rotateX('+ay+'deg)'});});$(this).parent().on('mouseleave',function(e){plain.addClass('gdlr-core-animate-transform');plain.css({'transform':'rotateY(0deg) rotateX(0deg)'});setTimeout(function(){plain.removeClass('gdlr-core-animate-transform');},200);});});}}
gdlr_core_ux.prototype={init:function(){var t=this;t.ux_item_length=t.elem.each(function(){var ux_item=$(this);var ux_item_offset=0.8;if($(this).attr('data-gdlr-animation-offset')){ux_item_offset=parseFloat($(this).attr('data-gdlr-animation-offset'));}
if((gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')||$(window).scrollTop()+$(window).height()>ux_item.offset().top){t.ux_items.push(ux_item);}else{$(window).on('scroll pb-scroll',function(e){if($(window).scrollTop()+($(window).height()*ux_item_offset)>ux_item.offset().top){t.ux_items.push(ux_item);$(window).unbind('scroll',e.handleObj.handler,e);}});}}).length;t.animate();},animate:function(){var t=this;var ux_interval=setInterval(function(){while(t.ux_items.length>0){var ux_animate=t.ux_items.shift();var animation_duration='600ms';if(ux_animate.attr('data-gdlr-animation-duration')){animation_duration=ux_animate.attr('data-gdlr-animation-duration');}
ux_animate.css({'animation-duration':animation_duration});ux_animate.addClass(ux_animate.attr('data-gdlr-animation'));setTimeout(function(){ux_animate.css({'animation-duration':''}).removeClass(ux_animate.attr('data-gdlr-animation')).removeAttr('data-gdlr-animation');},parseInt(animation_duration));t.ux_item_length--;if($(window).scrollTop()<ux_animate.offset().top+ux_animate.outerHeight()){break;}}
if(t.ux_item_length<=0){clearInterval(ux_interval);}},200);}};$.fn.gdlr_core_ux=function(filter_elem){new gdlr_core_ux($(this),filter_elem);return $(this);}
$.fn.gdlr_core_skill_bar=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-skill-bar-filled');}else{var elem=filter_elem.filter('.gdlr-core-skill-bar-filled');}
elem.each(function(){var t=$(this);if((gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')||$(window).scrollTop()+$(window).height()>t.offset().top){t.animate({width:parseInt(t.attr('data-width'))+'%'},{duration:1200,easing:'easeOutQuart'}).addClass('gdlr-core-animate');}else{$(window).on('scroll pb-scroll',function(e){if($(window).scrollTop()+$(window).height()>t.offset().top){t.animate({width:parseInt(t.attr('data-width'))+'%'},{duration:1200,easing:'easeOutQuart'}).addClass('gdlr-core-animate');$(window).unbind('scroll pb-scroll',e.handleObj.handler,e);}});}});}
$.fn.gdlr_core_divider=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-divider-item-with-icon-inner');}else{var elem=filter_elem.filter('.gdlr-core-divider-item-with-icon-inner');}
elem.each(function(){var divider_elem=$(this);var icon_width=divider_elem.children('i, img').outerWidth();var divider_width=(divider_elem.width()-icon_width)/2;$(this).children('.gdlr-core-divider-line').css({width:divider_width}).each(function(){$(this).css('margin-top',-$(this).outerHeight()/2);});$(window).on('resize gdlr-core-element-resize',function(){icon_width=divider_elem.children('i, img').outerWidth();divider_width=(divider_elem.width()-icon_width)/2;divider_elem.children('.gdlr-core-divider-line').css({width:divider_width}).each(function(){$(this).css('margin-top',-$(this).outerHeight()/2);});});});}
window.gdlr_core_sidebar_wrapper=function(container,filter_elem){if(typeof(filter_elem)=='undefined'){this.elem=container.find('.gdlr-core-page-builder-wrapper-sidebar-container, .gdlr-core-pbf-sidebar-container');}else{this.elem=filter_elem.filter('.gdlr-core-page-builder-wrapper-sidebar-container, .gdlr-core-pbf-sidebar-container');}
this.init();}
gdlr_core_sidebar_wrapper.prototype={init:function(){var t=this;var sync_height=false;t.elem.each(function(){if($(this).children().children('.gdlr-core-pbf-background-wrap').length){sync_height=true;}});if(sync_height){t.set_height();$(window).on('load resize gdlr-core-element-resize',function(){t.set_height();});}},set_height:function(){var t=this;t.elem.each(function(){var sidebar_elem=$(this).find('.gdlr-core-pbf-sidebar-padding');sidebar_elem.css('min-height','');if(gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')return;var max_height=0;sidebar_elem.each(function(){if($(this).outerHeight()>max_height){max_height=$(this).outerHeight();}});sidebar_elem.css('min-height',max_height);});}};$.fn.gdlr_core_title_divider=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-title-item-title-wrap.gdlr-core-with-divider');}else{var elem=filter_elem.filter('.gdlr-core-title-item-title-wrap.gdlr-core-with-divider');}
elem.each(function(){var t=$(this);var divider=t.children('.gdlr-core-title-item-divider');var divider_num=t.children('.gdlr-core-title-item-divider').length;divider_num=(divider_num)?divider_num:1;var title_width=t.children('.gdlr-core-title-item-title').outerWidth(true);var divider_width=(t.width()-title_width)/divider_num;if(t.children('.gdlr-core-title-item-link').length){var right_pos=t.children('.gdlr-core-title-item-link').outerWidth()+20;divider_width=divider_width-right_pos;}
if(t.children('.gdlr-core-title-item-link').length){divider.css({width:divider_width,right:right_pos});}else{divider.css({width:divider_width});}
$(window).on('resize gdlr-core-element-resize',function(){title_width=t.children('.gdlr-core-title-item-title').outerWidth(true);divider_width=(t.width()-title_width)/divider_num;if(t.children('.gdlr-core-title-item-link').length){right_pos=t.children('.gdlr-core-title-item-link').outerWidth()+20;divider_width=divider_width-right_pos;}
if(t.children('.gdlr-core-title-item-link').length){divider.css({width:divider_width,right:right_pos});}else{divider.css({width:divider_width});}});});if(typeof(filter_elem)=='undefined'){var elem2=$(this).find('.gdlr-core-title-item-title-wrap.gdlr-core-with-link-text');}else{var elem2=filter_elem.filter('.gdlr-core-title-item-title-wrap.gdlr-core-with-link-text');}
elem2.each(function(){var t=$(this);var title_width=t.children('.gdlr-core-title-item-title').outerWidth(true);var right_pos=t.children('.gdlr-core-title-item-link').outerWidth();if(t.width()<title_width+right_pos){t.children('.gdlr-core-title-item-link').addClass('gdlr-core-overflow');}else{t.children('.gdlr-core-title-item-link').removeClass('gdlr-core-overflow');}
$(window).on('resize gdlr-core-element-resize',function(){if(t.width()<title_width+right_pos){t.children('.gdlr-core-title-item-link').addClass('gdlr-core-overflow');}else{t.children('.gdlr-core-title-item-link').removeClass('gdlr-core-overflow');}});});}
$.fn.gdlr_core_flipbox=function(filter_elem){if(typeof($.fn.flip)=='function'){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-flipbox');}else{var elem=filter_elem.filter('.gdlr-core-flipbox');}
elem.each(function(){var flipbox_obj=$(this).flip({axis:'y',trigger:'hover',autoSize:false,front:'.gdlr-core-flipbox-front',back:'.gdlr-core-flipbox-back'});$(this).find('.gdlr-core-flipbox-back a').click(function(){if(flipbox_obj.data('flip-model')){flipbox_obj.data('flip-model').unflip();}});$(this).find('.gdlr-core-flipbox-back').on('touchstart',function(){$(this).closest('.gdlr-core-flipbox').data('flip-model').unflip();});$(this).find('.gdlr-core-flipbox-front').on('touchstart',function(){$(this).closest('.gdlr-core-flipbox').data('flip-model').flip();});$(this).addClass('gdlr-core-after-init');});}
return $(this);}
$.fn.gdlr_core_marquee=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-marquee');}else{var elem=filter_elem.filter('.gdlr-core-marquee');}
elem.each(function(){var speed=$(this).attr('data-speed')?parseFloat($(this).attr('data-speed')):10000;var direction=$(this).attr('data-direction')?parseFloat($(this).attr('data-direction')):'left';$(this).marquee({delayBeforeStart:0,duration:speed,gap:50,direction:direction,duplicated:true,startVisible:true});});return $(this);}
function gdlr_core_skill_circle_height(t){t.children('.gdlr-core-skill-circle-content').each(function(){$(this).css({'margin-top':-$(this).outerHeight()/2});});t.css({'max-width':t.parent().width(),'max-height':t.parent().width()});}
$.fn.gdlr_core_pie_chart=function(){if(typeof($.fn.easyPieChart)=='function'){$(this).easyPieChart({animate:parseInt($(this).attr('data-duration')),lineWidth:parseInt($(this).attr('data-line-width')),size:parseInt($(this).attr('data-width')),barColor:$(this).attr('data-filled-color'),trackColor:$(this).attr('data-filled-background'),scaleColor:false,lineCap:'square'});}}
$.fn.gdlr_core_skill_circle=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-skill-circle');}else{var elem=filter_elem.filter('.gdlr-core-skill-circle');}
elem.each(function(){var t=$(this);gdlr_core_skill_circle_height(t);$(window).on('resize gdlr-core-element-resize',function(){gdlr_core_skill_circle_height(t);});if($(window).scrollTop()+$(window).height()>t.offset().top){t.gdlr_core_pie_chart();}else{$(window).on('scroll pb-scroll',function(e){if($(window).scrollTop()+$(window).height()>t.offset().top){t.gdlr_core_pie_chart();$(window).unbind('scroll pb-scroll',e.handleObj.handler,e);}});}});}
$.fn.gdlr_core_chart_js=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-chart-js');}else{var elem=filter_elem.filter('.gdlr-core-chart-js');}
if(typeof(window.gdlr_core_chart_js_id)=='undefined'){window.gdlr_core_chart_js_id=0;}
elem.each(function(){var data=[];var options=[];if($(this).attr('data-content')){data=JSON.parse($(this).attr('data-content'));}
if($(this).attr('data-options')){options=JSON.parse($(this).attr('data-options'));}
if($(this).attr('data-type')=='doughnut'||$(this).attr('data-type')=='pie'){if(options.legend.position=='right'||options.legend.position=='left'){if(gdlr_core_display=='mobile-portrait'||gdlr_core_display=='mobile-landscape'){options.legend.orig_position=options.legend.position;options.legend.position='bottom';$(this).attr('width',$(this).width());$(this).attr('height',$(this).width()*1);}}}
options.onResize=function(chart,size){if(chart.config.type=='doughnut'||chart.config.type=='pie'){if(chart.config.options.legend.position=='right'||chart.config.options.legend.position=='left'){if(gdlr_core_display=='mobile-portrait'||gdlr_core_display=='mobile-landscape'){chart.config.options.legend.orig_position=chart.config.options.legend.position;chart.config.options.legend.position='bottom';chart.aspectRatio=1;}}else if(typeof(chart.config.options.legend.orig_position)!='undefined'){if(gdlr_core_display=='tablet'||gdlr_core_display=='desktop'){chart.config.options.legend.position=chart.config.options.legend.orig_position;chart.aspectRatio=2;}}}}
var chartType=$(this).attr('data-type')?$(this).attr('data-type'):'pie';if(chartType=='horizontalBar'){chartType='bar';options['indexAxis']='y';}
new Chart($(this),{type:chartType,data:data,options:options});});}
$.fn.gdlr_core_tab=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-tab-item, .gdlr-core-tab-action, .gdlr-core-roadmap-item, .gdlr-core-tab-feature-item, .gdlr-core-tab-feature2-item, .gdlr-core-tab-feature3-item, .gdlr-core-tab-featurev-item');}else{var elem=filter_elem.filter('.gdlr-core-tab-item, .gdlr-core-tab-action, .gdlr-core-roadmap-item, .gdlr-core-tab-feature-item, .gdlr-core-tab-feature2-item, .gdlr-core-tab-feature3-item, .gdlr-core-tab-featurev-item');}
var url_hash=window.location.hash;if(url_hash){url_hash=url_hash.replace('#','');elem.find('[data-tab-id="'+url_hash+'"]').each(function(){$(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');});}
elem.each(function(){$(this).find('.gdlr-core-tab-item-title, .gdlr-core-tab-action-title, .gdlr-core-roadmap-item-head, .gdlr-core-tab-feature-title-wrap, .gdlr-core-tab-feature2-title-wrap, .gdlr-core-tab-feature3-title-wrap, .gdlr-core-tab-featurev-title').click(function(){if($(this).hasClass('gdlr-core-active'))return;var tab_id=$(this).attr('data-tab-id');$(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');if($(this).is('.gdlr-core-tab-featurev-title')){var parent=$(this).parent().parent();parent.closest('.gdlr-core-tab-featurev-item').find('.gdlr-core-tab-featurev-background-switch').each(function(){$(this).children().removeClass('gdlr-core-active');$(this).children('[data-tab-id="'+tab_id+'"]').addClass('gdlr-core-active');});}else{var parent=$(this).parent();}
parent.siblings('.gdlr-core-tab-item-content-wrap, .gdlr-core-tab-action-content-wrap, .gdlr-core-roadmap-item-content-wrap, .gdlr-core-tab-feature-item-content-wrap, .gdlr-core-tab-feature2-item-content-wrap, .gdlr-core-tab-feature3-item-content-wrap, .gdlr-core-tab-featurev-item-content-wrap').each(function(){var active_tab=$(this).children('[data-tab-id="'+tab_id+'"]');if(active_tab.length){active_tab.fadeIn(200).siblings().hide();}else{$(this).children().hide();}});});if(!(gdlr_core_mobile||gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')&&$(this).is('.gdlr-core-tab-feature2-item, .gdlr-core-tab-feature3-item')){var slide_bar_width=35;var slide_bar=$(this).find('.gdlr-core-tab-feature2-bottom-slide-bar, .gdlr-core-tab-feature3-bottom-slide-bar');var active_tab=slide_bar.siblings('.gdlr-core-active');if(active_tab.length){if(active_tab.is('.gdlr-core-tab-feature3-title-wrap')){slide_bar_width=active_tab.outerWidth();}
slide_bar.css({width:slide_bar_width,left:active_tab.position().left+(active_tab.width()-slide_bar_width)/2});}
$(window).resize(function(){active_tab=slide_bar.siblings('.gdlr-core-active');if(active_tab.is('.gdlr-core-tab-feature3-title-wrap')){slide_bar_width=active_tab.outerWidth();}
slide_bar.css({width:slide_bar_width,left:active_tab.position().left+(active_tab.width()-slide_bar_width)/2});});$(this).find('.gdlr-core-tab-feature2-title-wrap, .gdlr-core-tab-feature3-title-wrap').click(function(){active_tab=$(this);});$(this).find('.gdlr-core-tab-feature2-title-wrap, .gdlr-core-tab-feature3-title-wrap').hover(function(){if($(this).is('.gdlr-core-tab-feature3-title-wrap')){slide_bar_width=$(this).outerWidth();}
slide_bar.animate({width:slide_bar_width,left:$(this).position().left+($(this).width()-slide_bar_width)/2},{duration:200,queue:false});},function(){if($(this).is('.gdlr-core-tab-feature3-title-wrap')){slide_bar_width=$(this).outerWidth();}
slide_bar.animate({width:slide_bar_width,left:active_tab.position().left+(active_tab.width()-slide_bar_width)/2},{duration:200,queue:false});});}
if(!(gdlr_core_mobile||gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait')&&$(this).is('.gdlr-core-tab-style2-horizontal, .gdlr-core-tab-style2-vertical, .gdlr-core-tab-style3-horizontal')){var horizontal=$(this).is('.gdlr-core-tab-style2-horizontal, .gdlr-core-tab-style3-horizontal');var hover_line=$(this).find('.gdlr-core-tab-item-title-line');var hover_line_w=0;var hover_line_l=0;$(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-active').each(function(){if(horizontal){hover_line_w=$(this).outerWidth();hover_line_l=$(this).position().left;hover_line.css({width:hover_line_w,left:hover_line_l});}else{hover_line_w=$(this).outerHeight();hover_line_l=$(this).position().top;hover_line.css({height:hover_line_w,top:hover_line_l});}
hover_line.addClass('gdlr-core-initiated');});$(window).on('resize gdlr-core-element-resize',function(){$(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-active').each(function(){if(horizontal){hover_line_w=$(this).outerWidth();hover_line_l=$(this).position().left;hover_line.css({width:hover_line_w,left:hover_line_l});}else{hover_line_w=$(this).outerHeight();hover_line_l=$(this).position().top;hover_line.css({height:hover_line_w,top:hover_line_l});}});});$(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-tab-item-title').hover(function(){if(horizontal){hover_line.animate({width:$(this).outerWidth(),left:$(this).position().left},{duration:300,easing:'easeOutQuart',queue:false});}else{hover_line.animate({height:$(this).outerHeight(),top:$(this).position().top},{duration:300,easing:'easeOutQuart',queue:false});}},function(){if(horizontal){hover_line.animate({width:hover_line_w,left:hover_line_l},{duration:300,easing:'easeOutQuart',queue:false});}else{hover_line.animate({height:hover_line_w,top:hover_line_l},{duration:300,easing:'easeOutQuart',queue:false});}});$(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-tab-item-title').click(function(){if(horizontal){hover_line_w=$(this).outerWidth();hover_line_l=$(this).position().left;hover_line.css({width:hover_line_w,left:hover_line_l});}else{hover_line_w=$(this).outerHeight();hover_line_l=$(this).position().top;hover_line.css({height:hover_line_w,top:hover_line_l});}});}});return $(this);}
$.fn.gdlr_core_price_table_tab=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-price-table-tab-title-wrap');}else{var elem=filter_elem.filter('.gdlr-core-price-table-tab-title-wrap');}
elem.each(function(){var tab_title=$(this);tab_title.find('.gdlr-core-price-table-tab-title').on('click',function(){if($(this).hasClass('gdlr-core-active'))return;var price_tab=$(this).attr('data-price-tab');$(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');tab_title.siblings('.gdlr-core-price-table-tab-content-wrap').find('[data-price-tab="'+price_tab+'"]').each(function(){$(this).siblings('.gdlr-core-active').css({display:'none'}).removeClass('gdlr-core-active');$(this).fadeIn(200).addClass('gdlr-core-active');});});});}
$.fn.gdlr_core_sliding_gallery=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-sliding-gallery');}else{var elem=filter_elem.filter('.gdlr-core-sliding-gallery');}
elem.each(function(){var container=$(this);var speed=container.attr('data-speed');var firstImage=$(this).children().first();var secondImage=firstImage.next();if(!speed){speed=100;}else{speed=parseFloat(speed)/100;}
setInterval(function(){var margin_left=parseFloat(firstImage.css('margin-left'));margin_left-=speed;firstImage.css('margin-left',margin_left);if(secondImage.position().left<=0){firstImage.css('margin-left',0);container.append(firstImage);firstImage=secondImage;secondImage=firstImage.next();}},10);});}
$.fn.gdlr_core_sly=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-sly-slider');}else{var elem=filter_elem.filter('.gdlr-core-sly-slider');}
elem.addClass('gdlr-core-after-init').each(function(){var sly_slider=$(this);var sly_atts={horizontal:1,itemNav:'basic',smart:1,activateOn:'click',mouseDragging:1,touchDragging:1,releaseSwing:1,startAt:0,scrollBy:1,speed:1000,elasticBounds:1,easing:'easeOutQuart',dragHandle:1,dynamicHandle:1,clickBar:1,scrollBar:$(this).siblings('.gdlr-core-sly-scroll')};if(sly_slider.hasClass('gdlr-core-with-bullet')){var nav=$('<ul class="gdlr-core-sly-nav" ></ul>');nav.insertAfter(sly_slider);sly_atts['pagesBar']=nav;sly_atts['activatePageOn']='click';}
sly_slider.sly(sly_atts);$(window).on('resize gdlr-core-element-resize',function(){sly_slider.sly('reload');});});return $(this);}
$.fn.gdlr_core_flexslider=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-flexslider');}else{var elem=filter_elem.filter('.gdlr-core-flexslider');}
elem.each(function(){var flex_attr={useCSS:false,animation:'fade',animationLoop:true,pauseOnHover:false,prevText:'<i class="arrow_carrot-left"></i>',nextText:'<i class="arrow_carrot-right"></i>'};if($(this).attr('data-start-at')&&$(this).attr('data-start-at')>1){flex_attr.startAt=$(this).attr('data-start-at')-1;}
if($(this).find('.gdlr-core-flexslider').length>0){$(this).children('ul.slides').addClass('parent-slides');flex_attr.selector='.parent-slides > li';}
if($(this).attr('data-disable-autoslide')){flex_attr.slideshow=false;}
if($(this).attr('data-pausetime')){flex_attr.slideshowSpeed=parseInt($(this).attr('data-pausetime'));}
if($(this).attr('data-slidespeed')){flex_attr.animationSpeed=parseInt($(this).attr('data-slidespeed'));}else{flex_attr.animationSpeed=500;}
if($(this).attr('data-type')=='carousel'){flex_attr.move=$(this).attr('data-move')?parseInt($(this).attr('data-move')):1;flex_attr.animation='slide';var column_num=parseInt($(this).attr('data-column'));if($(this).attr('data-margin')){flex_attr.itemMargin=parseInt($(this).attr('data-margin'));}else{flex_attr.itemMargin=2*parseInt($(this).children('ul.slides').children('li:first-child').css('margin-right'));}
flex_attr.itemWidth=(($(this).width()+flex_attr.itemMargin)/column_num)-(flex_attr.itemMargin);flex_attr.minItems=column_num;flex_attr.maxItems=column_num;var slides=$(this).find('ul.slides').children();var flex_item=$(this);if(slides.length<column_num){flex_item.addClass('gdlr-core-flex-inactive');$(window).on('resize gdlr-core-element-resize',function(){if(gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait'){flex_item.removeClass('gdlr-core-flex-inactive');}else{flex_item.addClass('gdlr-core-flex-inactive');}});}
var t=$(this);$(window).on('resize gdlr-core-element-resize',function(){if(t.data('goodlayers_flexslider')){var newWidth=((t.width()+flex_attr.itemMargin)/column_num)-(flex_attr.itemMargin);t.data('goodlayers_flexslider').editItemWidth(newWidth);}});}else if($(this).attr('data-effect')){if($(this).attr('data-effect')=='kenburn'){flex_attr.animation='fade';}else{flex_attr.animation=$(this).attr('data-effect');}}
var data_nav=['both','navigation','navigation-outer-plain-round','navigation-top','navigation-bottom','navigation-inner','navigation-outer'];if(!$(this).attr('data-nav')||data_nav.indexOf($(this).attr('data-nav'))!=-1){if(!$(this).hasClass('gdlr-core-bottom-nav-1')){if($(this).attr('data-nav-parent')){if($(this).attr('data-nav-parent')=='self'){flex_attr.customDirectionNav=$(this).find('.flex-prev, .flex-next');}if($(this).attr('data-nav-type')=='custom'){flex_attr.customDirectionNav=$(this).closest('.'+$(this).attr('data-nav-parent')).find('.flex-prev, .flex-next');}else{$(this).closest('.'+$(this).attr('data-nav-parent')).each(function(){var flex_nav=$('<ul class="flex-direction-nav">'+'<li class="flex-nav-prev"><a class="flex-prev" aria-label="left arrow" href="#"><i class="arrow_carrot-left"></i></a></li>'+'<li class="flex-nav-next"><a class="flex-next" aria-label="right arrow" href="#"><i class="arrow_carrot-right"></i></a></li>'+'</ul>');var flex_nav_position=$(this).find('.gdlr-core-flexslider-nav');if(flex_nav_position.length){flex_nav_position.append(flex_nav);flex_attr.customDirectionNav=flex_nav.find('.flex-prev, .flex-next');}});}}}}else if($(this).attr('data-nav')=='touch-navigation'||$(this).attr('data-nav')=='touch-navigation-bullet'){var navFollow=$('<div class="goodlayers-carousel-nav-follow"></div>');navFollow.attr('data-type','touch-slide-black');var container=$(this).find('ul.slides');$(this).append(navFollow);container.get(0).addEventListener('mousemove',function(e){if(!navFollow.hasClass('goodlayers-active')){navFollow.addClass('goodlayers-active');}
navFollow.css({'left':e.clientX,'top':e.clientY});});container.on('mouseleave',function(){navFollow.removeClass('goodlayers-active');});container.on('mouseenter','a',function(){navFollow.addClass('goodlayers-over-link');});container.on('mouseleave','a',function(){navFollow.removeClass('goodlayers-over-link');});container.gdlr_core_monitor_swipe();flex_attr.directionNav=false;}else{flex_attr.directionNav=false;}
if($(this).hasClass('gdlr-core-has-bullet')){flex_attr.controlNav=true;}else{flex_attr.controlNav=false;}
if($(this).attr('data-thumbnail')){var thumbnail_slide=$(this).siblings('.gdlr-core-sly-slider');flex_attr.manualControls=thumbnail_slide.find('ul.slides li')
flex_attr.controlNav=true;}
if($(this).attr('data-vcenter-nav')){flex_attr.start=function(slider){$(slider).children('.gdlr-core-flexslider-custom-nav.gdlr-core-style-navigation-outer').each(function(){$(this).insertAfter($(slider).children('.flex-viewport'));});if(slider.directionNav){$(window).on('resize gdlr-core-element-resize',function(){slider.directionNav.each(function(){var margin=-(slider.height()+$(this).outerHeight())/2;$(this).css('margin-top',margin);});});}
if(typeof(slider.slides)!='undefined'){$(window).trigger('gdlr-core-element-resize');slider.slides.filter('.flex-active-slide').addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');}};}else{flex_attr.start=function(slider){if(typeof(slider.slides)!='undefined'){if($(slider).attr('data-controls-top-margin')){$(slider).find('.flex-control-nav').css({'margin-top':$(slider).attr('data-controls-top-margin')});}
$(slider).children('.gdlr-core-flexslider-custom-nav.gdlr-core-style-navigation-bottom').each(function(){$(this).insertAfter($(slider).children('.flex-viewport'));});$(window).trigger('gdlr-core-element-resize');slider.slides.filter('.flex-active-slide').addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');}}}
flex_attr.after=function(slider){slider.slides.filter('.flex-active-slide').addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');}
if($(this).find('.gdlr-core-outer-frame-element').length>0){$(this).addClass('gdlr-core-with-outer-frame-element');}
var slider_item=$(this).goodlayers_flexslider(flex_attr);$(this).find('.gdlr-custom-flex-prev, .gdlr-custom-flex-next').on('click',function(){if($(this).is('.gdlr-custom-flex-prev')){slider_item.goodlayers_flexslider('prev');}else{slider_item.goodlayers_flexslider('next');}});$(this).closest('.gdlr-core-flexslider-outer').find('.gdlr-core-flexslider-left-content-nav').each(function(){$(this).find('.gdlr-custom-flex-prev, .gdlr-custom-flex-next').on('click',function(){if($(this).is('.gdlr-custom-flex-prev')){slider_item.goodlayers_flexslider('prev');}else{slider_item.goodlayers_flexslider('next');}});});$(this).find('ul.slides').on('swipeleft',function(){slider_item.goodlayers_flexslider('next');});$(this).find('ul.slides').on('swiperight',function(){slider_item.goodlayers_flexslider('prev');});});return $(this);}
window.gdlr_core_sticky_sidebar=function(filter_elem){if(typeof(filter_elem)=='undefined'){this.elem=$(this).find('.gdlr-core-sticky-sidebar');}else{this.elem=filter_elem.filter('.gdlr-core-sticky-sidebar');}
this.init();}
gdlr_core_sticky_sidebar.prototype={init:function(){var t=this;t.elem.each(function(){$(this).find('.gdlr-core-pbf-sidebar-left, .gdlr-core-pbf-sidebar-right, .gdlr-core-sidebar-script').each(function(){var sidebar_item=$(this);var sidebar_wrap=sidebar_item.parent();var sidebar_sub=$('<div></div>');var offset=sidebar_item.attr('data-sticky-offset');if(!offset){offset=0;}else{offset=parseInt(offset);}
var prev_scroll=0;$(window).on('scroll resize',function(e){if(sidebar_item.outerHeight()>=sidebar_wrap.outerHeight()){t.return_sidebar_pos(sidebar_sub,sidebar_item);return;}
if(gdlr_core_display!='desktop'){t.return_sidebar_pos(sidebar_sub,sidebar_item);return;}
var scroll_pos=$(window).scrollTop();var scroll_direction=(prev_scroll>scroll_pos)?'up':'down';prev_scroll=scroll_pos;if($(window).height()>sidebar_item.height()){if(scroll_pos+offset<=sidebar_wrap.offset().top){if(sidebar_item.hasClass('gdlr-core-fixed-sidebar')||sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar')){t.return_sidebar_pos(sidebar_sub,sidebar_item);}}else{if(scroll_pos+sidebar_item.outerHeight()>=sidebar_wrap.offset().top+sidebar_wrap.outerHeight()){if(!sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar')){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-fixed-bottom-sidebar').removeClass('gdlr-core-fixed-sidebar');sidebar_item.css({'position':'absolute','top':'auto','bottom':0,'left':sidebar_sub.position().left,'width':sidebar_sub.outerWidth()});}}else{if(!sidebar_item.hasClass('gdlr-core-fixed-sidebar')){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-fixed-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar');sidebar_item.css({'position':'fixed','top':offset,'bottom':'auto','width':sidebar_sub.outerWidth()});sidebar_item.css({'left':sidebar_sub.offset().left,});}}
if(e.type=='resize'){if(sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar')){sidebar_item.css({'width':sidebar_sub.outerWidth(),'left':sidebar_sub.position().left,});}else if(sidebar_item.hasClass('gdlr-core-fixed-sidebar')){sidebar_item.css({'width':sidebar_sub.outerWidth(),'left':sidebar_sub.offset().left,});}}}}else{if(scroll_pos<=sidebar_wrap.offset().top){if(sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar')||sidebar_item.hasClass('gdlr-core-stick-bottom-sidebar')||sidebar_item.hasClass('gdlr-core-fixed-top-sidebar')||sidebar_item.hasClass('gdlr-core-stick-top-sidebar')){t.return_sidebar_pos(sidebar_sub,sidebar_item);}}else{if(scroll_direction=='down'){if(sidebar_item.hasClass('gdlr-core-fixed-top-sidebar')){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-stick-top-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar gdlr-core-stick-bottom-sidebar');sidebar_item.css({'position':'absolute','top':scroll_pos-sidebar_wrap.offset().top,'bottom':'auto','left':sidebar_sub.position().left,'width':sidebar_sub.outerWidth()});}else if(scroll_pos+$(window).height()>=sidebar_wrap.offset().top+sidebar_wrap.outerHeight()){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-stick-bottom-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar gdlr-core-stick-top-sidebar');sidebar_item.css({'position':'absolute','top':'auto','bottom':0,'left':sidebar_sub.position().left,'width':sidebar_sub.outerWidth()});}else if(scroll_pos+$(window).height()>sidebar_item.offset().top+sidebar_item.outerHeight()){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-fixed-bottom-sidebar').removeClass('gdlr-core-stick-bottom-sidebar gdlr-core-stick-top-sidebar gdlr-core-fixed-top-sidebar');sidebar_item.css({'position':'fixed','top':'auto','bottom':'0','left':sidebar_sub.offset().left,'width':sidebar_sub.outerWidth()});}}else{if(sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar')){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-stick-bottom-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar gdlr-core-stick-top-sidebar');sidebar_item.css({'position':'absolute','top':scroll_pos+$(window).height()-sidebar_item.outerHeight()-sidebar_wrap.offset().top,'bottom':'auto','left':sidebar_sub.position().left,'width':sidebar_sub.outerWidth()});}else{if(scroll_pos<sidebar_item.offset().top){t.set_sidebar_sub(sidebar_sub,sidebar_item);sidebar_item.addClass('gdlr-core-fixed-top-sidebar').removeClass('gdlr-core-stick-bottom-sidebar gdlr-core-fixed-bottom-sidebar gdlr-core-stick-top-sidebar');sidebar_item.css({'position':'fixed','top':'0','bottom':'auto','left':sidebar_sub.offset().left,'width':sidebar_sub.outerWidth()});}}}
if(e.type=='resize'){if(sidebar_item.hasClass('gdlr-core-stick-bottom-sidebar')||sidebar_item.hasClass('gdlr-core-stick-top-sidebar')){sidebar_item.css({'width':sidebar_sub.outerWidth(),'left':sidebar_sub.position().left,});}else if(sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar')||sidebar_item.hasClass('gdlr-core-fixed-top-sidebar')){sidebar_item.css({'width':sidebar_sub.outerWidth(),'left':sidebar_sub.offset().left,});}}}}});});});},set_sidebar_sub:function(sidebar_sub,sidebar_item){if(sidebar_item.hasClass('gdlr-core-sidebar-sub-added'))return;var sidebar_class='';sidebar_item.each(function(){var className=this.className.match(/gdlr-core-column-\d+/);if(className){sidebar_class=className[0];}});sidebar_sub.addClass(sidebar_class);sidebar_sub.css({'float':sidebar_item.css('float'),'height':20,'background':'#fd9'});sidebar_sub.insertAfter(sidebar_item);sidebar_item.addClass('gdlr-core-sidebar-sub-added');},return_sidebar_pos:function(sidebar_sub,sidebar_item){sidebar_item.css({'position':'','top':'','bottom':'','left':'','width':'','height':''});sidebar_item.removeClass('gdlr-core-fixed-sidebar gdlr-core-fixed-bottom-sidebar gdlr-core-sidebar-sub-added');sidebar_item.removeClass('gdlr-core-stick-bottom-sidebar gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar');sidebar_sub.remove();}}
$.fn.gdlr_core_isotope=function(filter_elem){if(typeof($.fn.isotope)=='function'){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('[data-layout="masonry"]');}else{var elem=filter_elem.filter('[data-layout="masonry"]');}
elem.each(function(){var t=$(this);if(t.children('ul.products').length){t=t.children('ul.products');}
var columnSize=t.width()/60;t.isotope({itemSelector:'.gdlr-core-item-list',layoutMode:'masonry',masonry:{columnWidth:columnSize}});t.isotope();t.find('.gdlr-core-item-list').gdlr_core_animate_list_item();$(window).on('resize gdlr-core-element-resize',function(){columnSize=t.width()/60;t.isotope({masonry:{columnWidth:columnSize}});});});}
return $(this);}
$.fn.gdlr_core_animate_list_item=function(){var ux_items=$(this).get();var ux_interval=setInterval(function(){if(ux_items.length>0){var ux_animate=$(ux_items.shift());var animation_duration='600ms';ux_animate.css({'animation-duration':animation_duration});ux_animate.addClass('gdlr-core-animate');setTimeout(function(){ux_animate.css({'animation-duration':''}).addClass('gdlr-core-animate-end').removeClass('gdlr-core-animate gdlr-core-animate-init');},parseInt(animation_duration));}else{clearInterval(ux_interval);}},200);}
$.fn.gdlr_core_lightbox=function(filter_elem){if(typeof($.iLightBox)=='function'){if(typeof(filter_elem)=='undefined'){var ilightbox=$(this).find('.gdlr-core-ilightbox');}else{var ilightbox=filter_elem.filter('.gdlr-core-ilightbox');}
var ilightbox_atts={};var ilightbox_groups=[];if(typeof(gdlr_core_pbf.ilightbox_skin)!='undefined'){ilightbox_atts['skin']=gdlr_core_pbf.ilightbox_skin;}
ilightbox.each(function(){if($(this).attr('data-ilightbox-group')){if(ilightbox_groups.indexOf($(this).attr('data-ilightbox-group'))==-1){ilightbox_groups.push($(this).attr('data-ilightbox-group'));}}else{$(this).iLightBox(ilightbox_atts);}});for(var key in ilightbox_groups){$(this).find('.gdlr-core-ilightbox[data-ilightbox-group="'+ilightbox_groups[key]+'"]').iLightBox(ilightbox_atts);}}else if(typeof($.fn.lightGallery)=='function'){if(typeof(filter_elem)=='undefined'){var lightgallery=$(this).find('.gdlr-core-lightgallery');}else{var lightgallery=filter_elem.filter('.gdlr-core-lightgallery');}
var lightbox_groups=[];lightgallery.each(function(){if($(this).attr('data-lightbox-group')){if(lightbox_groups.indexOf($(this).attr('data-lightbox-group'))==-1){lightbox_groups.push($(this).attr('data-lightbox-group'));}}else{$(this).lightGallery({selector:'this'});}});for(var key in lightbox_groups){var group_selector='.gdlr-core-lightgallery[data-lightbox-group="'+lightbox_groups[key]+'"]';lightgallery.filter(group_selector).first().lightGallery({selector:group_selector,selectWithin:'body',thumbnail:false});}}else if(typeof(lightGallery)=='function'){if(typeof(filter_elem)=='undefined'){var lightgallery=$(this).find('.gdlr-core-lightgallery');}else{var lightgallery=filter_elem.filter('.gdlr-core-lightgallery');}
var lightbox_groups=[];lightgallery.each(function(){if($(this).attr('data-lightbox-group')){if(lightbox_groups.indexOf($(this).attr('data-lightbox-group'))==-1){lightbox_groups.push($(this).attr('data-lightbox-group'));}}else{lightGallery($(this).get(0),{selector:'this',plugins:[lgVideo,lgShare],zoomFromOrigin:false,mobileSettings:{showCloseIcon:true}});}});for(var key in lightbox_groups){var group_selector='.gdlr-core-lightgallery[data-lightbox-group="'+lightbox_groups[key]+'"]';lightGallery(document.body,{selector:group_selector,plugins:[lgVideo,lgShare],zoomFromOrigin:false,mobileSettings:{showCloseIcon:true}});}}
if(typeof(filter_elem)=='undefined'){var gallery_lb=$(this).find('[data-gallery-lb]');}else{var gallery_lb=filter_elem.filter('[data-gallery-lb]');}
gallery_lb.click(function(){if(typeof($.iLightBox)!='undefined'){$.iLightBox($(this).data('gallery-lb'));}else if(typeof(Strip)!='undefined'){Strip.show($(this).data('gallery-lb'));}else if(typeof($.fn.lightGallery)=='function'){$(this).lightGallery({dynamic:true,dynamicEl:$(this).data('gallery-lb'),thumbnail:false,mobileSettings:{showCloseIcon:true}});}else if(typeof(lightGallery)=='function'){lightGallery($(this),{dynamic:true,dynamicEl:$(this).data('gallery-lb'),thumbnail:false,mobileSettings:{showCloseIcon:true}}).openGallery();}
return false;});if(typeof(filter_elem)=='undefined'){var center_overlay=$(this).find('.gdlr-core-image-overlay-center, .gdlr-core-image-overlay-center-icon');}else{var center_overlay=filter_elem.filter('.gdlr-core-image-overlay-center, .gdlr-core-image-overlay-center-icon');}
center_overlay.each(function(){if($(this).hasClass('gdlr-core-image-overlay-center')){var overlay_content=$(this).children('.gdlr-core-image-overlay-content');var wrap_height=$(this).outerHeight()-(2*parseInt(overlay_content.css('bottom')));var overlay_icon=overlay_content.children('.gdlr-core-portfolio-icon-wrap');var icon_margin=(wrap_height-(overlay_content.outerHeight()-parseInt(overlay_icon.css('margin-bottom'))))/2;if(icon_margin>20){overlay_icon.css('margin-bottom',icon_margin);}}else{var content_offset=0;if($(this).children('.gdlr-core-image-overlay-content-offset').length){content_offset=$(this).children('.gdlr-core-image-overlay-content-offset').outerHeight(true);}
$(this).children('.gdlr-core-image-overlay-content').each(function(){$(this).css({'margin-top':-(($(this).outerHeight()+content_offset)/2)});});}});$(window).on('resize gdlr-core-element-resize',function(){center_overlay.each(function(){if($(this).hasClass('gdlr-core-image-overlay-center')){var overlay_content=$(this).children('.gdlr-core-image-overlay-content');var wrap_height=$(this).outerHeight()-(2*parseInt(overlay_content.css('bottom')));var overlay_icon=overlay_content.children('.gdlr-core-portfolio-icon-wrap');var icon_margin=(wrap_height-(overlay_content.outerHeight()-parseInt(overlay_icon.css('margin-bottom'))))/2;if(icon_margin>20){overlay_icon.css('margin-bottom',icon_margin);}}else{var content_offset=0;if($(this).children('.gdlr-core-image-overlay-content-offset').length){content_offset=$(this).children('.gdlr-core-image-overlay-content-offset').outerHeight(true);}
$(this).children('.gdlr-core-image-overlay-content').each(function(){$(this).css({'margin-top':-(($(this).outerHeight()+content_offset)/2)});});}});});return $(this);}
$.fn.gdlr_core_set_image_height=function(){var all_image=$(this).find('img');all_image.each(function(){var img_width=$(this).attr('width');var img_height=$(this).attr('height');if(img_width&&img_height){var parent_item=$(this).parent('.gdlr-core-temp-image-wrap');if(parent_item.length){parent_item.height((img_height*$(this).parent().width())/img_width);}else{parent_item=$('<div class="gdlr-core-temp-image-wrap" ></div>');parent_item.css('height',((img_height*$(this).closest('span, div').width())/img_width));$(this).wrap(parent_item);}}else{return;}});$(window).on('resize gdlr-core-element-resize',function(e){all_image.each(function(){var parent_item=$(this).parent('.gdlr-core-temp-image-wrap');if(parent_item.length){$(this).unwrap();}});$(window).unbind('resize',e.handleObj.handler,e);});return $(this);}
window.gdlr_core_set_full_height=function(container,filter_elem){if(typeof(filter_elem)=='undefined'){this.elements=container.find('.gdlr-core-wrapper-full-height, .gdlr-core-column-full-height');}else{this.elements=filter_elem.filter('.gdlr-core-wrapper-full-height, .gdlr-core-column-full-height');}
if(this.elements.length){this.init();}}
gdlr_core_set_full_height.prototype={init:function(){var t=this;t.resize();$(window).on('load resize gdlr-core-element-resize',function(){t.resize();});},resize:function(){this.elements.each(function(){var offset=$(this).attr('data-decrease-height')?parseInt($(this).attr('data-decrease-height')):0;$(this).css('min-height',$(window).height()-offset);if($(this).hasClass('gdlr-core-full-height-center')){$(this).children('.gdlr-core-full-height-pre-spaces').remove();var pre_space=($(this).height()-$(this).children('.gdlr-core-full-height-content').outerHeight(true))/2;if(pre_space>0){$(this).prepend($('<div class="gdlr-core-full-height-pre-spaces" ></div>').height(pre_space));}}});}};window.gdlr_core_sync_height=function(container,filter_elem){this.set_half_height(container);if(typeof(window.gdlr_core_sync_height_elem)!='undefined'){window.gdlr_core_sync_height_elem.reinit();return;}
window.gdlr_core_sync_height_elem=this;if(typeof(filter_elem)=='undefined'){this.elements=container.find('[data-sync-height]');}else{this.elements=filter_elem.filter('[data-sync-height]');}
this.elements_group=[];this.container=container;this.init();}
gdlr_core_sync_height.prototype={init:function(){var t=this;t.group_elements();t.set_height();$(window).on('load resize gdlr-core-element-resize',function(){t.set_height();});},reinit:function(){if(!this.container.is('body, .gdlr-core-page-builder-body')){this.container=this.container.closest('.gdlr-core-page-builder-body');}
this.elements=this.container.find('[data-sync-height]');this.group_elements();this.set_height();},group_elements:function(){var t=this;t.elements.filter('.gdlr-core-flipbox-front, .gdlr-core-feature-box').each(function(){if(t.elements_group.indexOf($(this).attr('data-sync-height'))==-1){t.elements_group.push($(this).attr('data-sync-height'));}});t.elements.each(function(){if(t.elements_group.indexOf($(this).attr('data-sync-height'))==-1){t.elements_group.push($(this).attr('data-sync-height'));}});},set_height:function(){var t=this;t.elements.css('height','auto').children('.gdlr-core-sync-height-pre-spaces').remove();t.elements.find('.gdlr-core-sync-height-offset').remove();var sync_element=t.elements;if(gdlr_core_display=='mobile-landscape'||gdlr_core_display=='mobile-portrait'){sync_element=sync_element.filter('.gdlr-core-flipbox-front, .gdlr-core-flipbox-back, .gdlr-core-hover-content-front, .gdlr-core-hover-content-back');}
for(var key in t.elements_group){var max_height=0;sync_element.filter('[data-sync-height="'+t.elements_group[key]+'"]').each(function(){if($(this).outerHeight()>max_height){max_height=$(this).outerHeight();}});sync_element.filter('[data-sync-height="'+t.elements_group[key]+'"]').each(function(){var offset=parseInt(max_height-$(this).outerHeight());var offset_item=$(this).find('[data-sync-height-offset]');if(offset_item.length&&offset>0){$('<div class="gdlr-core-sync-height-offset" ></div>').css('height',offset).insertBefore(offset_item);}
$(this).css('height',max_height);if($(this).hasClass('gdlr-core-flipbox-front')){$(this).parent().css('height',max_height);}
if($(this).is('[data-sync-height-center]')){var content=$(this).children('.gdlr-core-sync-height-content');var padding_top=max_height;if(content.length>0){padding_top-=content.outerHeight();}else{$(this).children().each(function(){padding_top-=$(this).outerHeight();});}
padding_top=padding_top/2;padding_top=padding_top-(parseInt($(this).css('padding-top'))+parseInt($(this).css('border-top-width')));if(padding_top>0){var spaces_item=$('<div class="gdlr-core-sync-height-pre-spaces" ></div>').css('padding-top',padding_top);var space_position=$(this).children('.gdlr-core-sync-height-space-position');if(space_position.length>0){spaces_item.insertBefore(space_position);}else{$(this).prepend(spaces_item);}}}});}},set_half_height:function(container){container.find('.gdlr-core-half-height').each(function(){var temp=$(this);if(!gdlr_core_mobile&&(gdlr_core_display=='tablet'||gdlr_core_display=='desktop')){var temp_height=temp.outerHeight();temp.gdlr_core_set_image_height();temp.css('height',temp_height/2);temp.find('img').css('margin-top',-temp_height/4);}
$(window).on('load resize',function(){temp.css('height','auto');temp.find('img').css('margin-top','0');if(!gdlr_core_mobile&&(gdlr_core_display=='tablet'||gdlr_core_display=='desktop')){temp_height=temp.outerHeight();temp.gdlr_core_set_image_height();temp.css('height',temp_height/2);temp.find('img').css('margin-top',-temp_height/4);}});});}};function gdlr_core_ajax_action(ajax_section,name,value){var now_loading=$('<div class="gdlr-core-now-loading" ></div>').hide();$.ajax({type:'POST',url:gdlr_core_pbf.ajax_url,data:{'action':ajax_section.attr('data-ajax'),'settings':ajax_section.data('settings'),'option':{'name':name,'value':value}},dataType:'json',beforeSend:function(jqXHR,settings){if(ajax_section.attr('data-target-action')=='replace'){ajax_section.siblings('.'+ajax_section.attr('data-target')).animate({opacity:0},150);}
if((ajax_section.attr('data-target')=='gdlr-core-portfolio-item-holder'||ajax_section.attr('data-target')=='gdlr-core-blog-item-holder'||ajax_section.attr('data-target')=='gdlr-core-product-item-holder'||ajax_section.attr('data-target')=='gdlr-core-product-item-table-holder'||ajax_section.attr('data-target')=='gdlr-core-personnel-item-holder')&&ajax_section.attr('data-target-action')=='replace'){now_loading.insertBefore(ajax_section.siblings('.gdlr-core-portfolio-item-holder, .gdlr-core-personnel-item-holder, .gdlr-core-blog-item-holder, .gdlr-core-product-item-holder, .gdlr-core-product-item-table-holder'));now_loading.fadeIn(200);}},error:function(jqXHR,textStatus,errorThrown){ajax_section.removeClass('gdlr-core-disable');console.log(jqXHR,textStatus,errorThrown);},success:function(data){if(data.status=='success'){if(data.content&&ajax_section.attr('data-target')){if(ajax_section.attr('data-target-action')=='append'){var content=$(data.content);ajax_section.siblings('.'+ajax_section.attr('data-target')).each(function(){if($(this).attr('data-layout')!='masonry'||typeof($.fn.isotope)!='function'){content.addClass('gdlr-core-animate-init');}
$(this).append(content);content.gdlr_core_lightbox().gdlr_core_flexslider().gdlr_core_content_script().gdlr_core_set_image_height();new gdlr_core_sync_height(content);if($(this).attr('data-layout')=='masonry'&&typeof($.fn.isotope)=='function'){var addItems=$(this).isotope('addItems',content);$(this).isotope('layoutItems',addItems,true);}else if(content.is('.gdlr-core-flexslider')){content.gdlr_core_flexslider(content);}
content.gdlr_core_animate_list_item();});if(data.load_more){if(data.load_more!='none'){var load_more=$(data.load_more);ajax_section.parent().append(load_more);load_more.gdlr_core_ajax(load_more);load_more.css('display','none').slideDown(100);ajax_section.remove();}else{ajax_section.slideUp(100,function(){$(this).remove();});}}}else if(ajax_section.attr('data-target-action')=='replace'){var content=$(data.content);ajax_section.siblings('.'+ajax_section.attr('data-target')).each(function(){if(ajax_section.is('.gdlr-core-pagination')){var scroll_position=$(this).offset().top-120;if($(window).scrollTop()>scroll_position){$('html, body').animate({scrollTop:scroll_position},{duration:1500,easing:'easeOutQuart',queue:false});}}
var fix_height=false;var current_height=$(this).height();if($(this).attr('data-layout')!='masonry'||typeof($.fn.isotope)!='function'){content.addClass('gdlr-core-animate-init');}
$(this).empty().append(content);content.gdlr_core_lightbox().gdlr_core_flexslider().gdlr_core_fluid_video().gdlr_core_set_image_height();new gdlr_core_sync_height(content);var height_delay=0;if($(this).attr('data-layout')=='masonry'&&typeof($.fn.isotope)=='function'){$(this).isotope('destroy');$(this).parent().gdlr_core_isotope();fix_height=true;}else if(content.is('.gdlr-core-flexslider')){content.gdlr_core_flexslider(content);height_delay=300;}else{content.gdlr_core_animate_list_item();}
if(height_delay==0){var new_height=$(this).height();$(this).css({height:current_height}).animate({'height':new_height,opacity:1},{'duration':400,'easing':'easeOutExpo','complete':function(){if(!fix_height){$(this).css('height','');}}});}else{var current_item=$(this);current_item.css('height',current_height);setTimeout(function(){current_item.css('height','');var new_height=current_item.height();current_item.css({height:current_height}).animate({'height':new_height,opacity:1},{'duration':400,'easing':'easeOutExpo','complete':function(){if(!fix_height){current_item.css('height','');}}});},height_delay);}});if(data.pagination){ajax_section.siblings('.gdlr-core-pagination').slideUp(100,function(){$(this).remove();});if(data.pagination!='none'){var pagination=$(data.pagination);ajax_section.parent().append(pagination);pagination.gdlr_core_ajax(pagination);pagination.css('display','none').slideDown(100);}}
if(data.load_more){ajax_section.siblings('.gdlr-core-load-more-wrap').slideUp(100,function(){$(this).remove();});if(data.load_more!='none'){var load_more=$(data.load_more);ajax_section.parent().append(load_more);load_more.gdlr_core_ajax(load_more);load_more.css('display','none').slideDown(100);}}}}
if(typeof(data.settings)!='undefined'){ajax_section.data('settings',data.settings);}
now_loading.fadeOut(200,function(){$(this).remove();ajax_section.removeClass('gdlr-core-disable');});}else{ajax_section.removeClass('gdlr-core-disable');}}});}
$.fn.gdlr_core_ajax=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('[data-ajax]');}else{var elem=filter_elem.filter('[data-ajax]');}
elem.each(function(){var ajax_section=$(this);$(this).on('click','a, .gdlr-core-ajax-link',function(){if($(this).hasClass('gdlr-core-active')||ajax_section.hasClass('gdlr-core-disable')){return false;}
ajax_section.addClass('gdlr-core-disable');$(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');var name=$(this).attr('data-ajax-name');var value=$(this).attr('data-ajax-value');gdlr_core_ajax_action(ajax_section,name,value);var text=$(this).html();$(this).closest('.gdlr-core-filterer-dropdown').each(function(){$(this).siblings('.gdlr-core-filterer-dropdown-text').html(text);});if($(this).is('a')){return false;}});$(this).on('change','select',function(){var name=$(this).attr('data-ajax-name');var value=$(this).val();gdlr_core_ajax_action(ajax_section,name,value);});});}
$.fn.gdlr_core_ajax_slide_bar=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('[data-ajax]');}else{var elem=filter_elem.filter('[data-ajax]');}
elem.each(function(){var ajax_section=$(this);$(this).children('.gdlr-core-filterer-slide-bar').each(function(){var slide_bar=$(this);var active_slide=slide_bar.siblings('.gdlr-core-active');slide_bar.css({'width':active_slide.outerWidth(),'left':active_slide.position().left+parseInt(active_slide.css('margin-left'))});$(window).on('load resize',function(){active_slide=slide_bar.siblings('.gdlr-core-active');slide_bar.css({'width':active_slide.outerWidth(),'left':active_slide.position().left+parseInt(active_slide.css('margin-left'))});});ajax_section.find('a').hover(function(){slide_bar.animate({'width':$(this).outerWidth(),'left':$(this).position().left+parseInt($(this).css('margin-left'))},{queue:false,duration:200});},function(){active_slide=slide_bar.siblings('.gdlr-core-active');slide_bar.animate({'width':active_slide.outerWidth(),'left':active_slide.position().left+parseInt(active_slide.css('margin-left'))},{queue:false,duration:200});});});});}
$.fn.gdlr_core_dropdown_tab=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.gdlr-core-dropdown-tab');}else{var elem=filter_elem.filter('.gdlr-core-dropdown-tab');}
elem.each(function(){var tab_title=$(this).children('.gdlr-core-dropdown-tab-title');var tab_title_text=tab_title.children('.gdlr-core-head');var tab_dropdown=tab_title.children('.gdlr-core-dropdown-tab-head-wrap');var tab_content=$(this).children('.gdlr-core-dropdown-tab-content-wrap');tab_title.click(function(){if($(this).hasClass('gdlr-core-active')){$(this).removeClass('gdlr-core-active');tab_dropdown.hide();}else{$(this).addClass('gdlr-core-active');tab_dropdown.slideDown(200);}});tab_dropdown.children().click(function(){tab_title_text.html($(this).html());$(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');var content_active=tab_content.children('[data-index="'+$(this).attr('data-index')+'"]');content_active.fadeIn(200).addClass('gdlr-core-active');content_active.siblings().hide().removeClass('gdlr-core-active');});});}
if(!gdlr_core_pbf.admin){$(document).ready(function(){var wpcf7_select=$('.wpcf7-form select');if(wpcf7_select.length){$('<div class="wpcf7-form-indicator" ><i class="fa fa-angle-down" ></i></div>').insertAfter(wpcf7_select);}
$('body').each(function(){if($(this).hasClass('gdlr-core-link-to-lightbox')){var image_link=$(this).find('a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"]').not('.gdlr-core-ilightbox, .strip, [data-rel], .gdlr-core-lightgallery, .gdlr-core-social-share-pinterest').addClass('strip gdlr-core-ilightbox gdlr-core-lightgallery').each(function(){if($(this).closest('.gallery').length){var gallery_wrap=$(this).closest('.gallery');if(gallery_wrap.attr('data-gallery-id')){var gallery_id=gallery_wrap.attr('data-gallery-id');}else{var gallery_id=Math.floor((Math.random()*10000)+1);gallery_wrap.attr('data-gallery-id',gallery_id);}
$(this).attr('data-ilightbox-group','wp-gallery-'+gallery_id);$(this).attr('data-lightbox-group','wp-gallery-'+gallery_id);$(this).attr('data-strip-group','wp-gallery-'+gallery_id);}});$(this).gdlr_core_lightbox(image_link);}
var gdlr_core_js=$(this).find('.gdlr-core-js, iframe[src*="youtube"], iframe[src*="vimeo"]');$(this).gdlr_core_content_script(gdlr_core_js,true);$(this).gdlr_core_hover_box(gdlr_core_js);$(this).gdlr_core_counter_item(gdlr_core_js);$(this).gdlr_core_typed_animation(gdlr_core_js);$(this).gdlr_core_countdown_item(gdlr_core_js);$(this).gdlr_core_alert_box_item(gdlr_core_js);$(this).gdlr_core_accordion(gdlr_core_js);$(this).gdlr_core_toggle_box(gdlr_core_js);$(this).gdlr_core_divider(gdlr_core_js);$(this).gdlr_core_flipbox(gdlr_core_js);$(this).gdlr_core_marquee(gdlr_core_js);$(this).gdlr_core_chart_js(gdlr_core_js);$(this).gdlr_core_skill_circle(gdlr_core_js);$(this).gdlr_core_skill_bar(gdlr_core_js);$(this).gdlr_core_tab(gdlr_core_js);$(this).gdlr_core_price_table_tab(gdlr_core_js);$(this).gdlr_core_dropdown_tab(gdlr_core_js);$(this).gdlr_core_lightbox(gdlr_core_js);$(this).gdlr_core_ajax(gdlr_core_js);$(this).gdlr_core_ajax_slide_bar(gdlr_core_js);new gdlr_core_sync_height($(this),gdlr_core_js);new gdlr_core_set_full_height($(this),gdlr_core_js);new gdlr_core_sidebar_wrapper($(this),gdlr_core_js);new gdlr_core_ux($(this),gdlr_core_js);$('.gdlr-core-feature-content-wrap').each(function(){var fcontent=$(this);var pcontent=$(this).closest('.gdlr-core-feature-content');pcontent.on('mouseenter',function(){fcontent.slideDown({duration:350,queue:false,easing:'easeOutCubic'});}).on('mouseleave',function(){fcontent.slideUp({duration:350,queue:false,easing:'easeOutCubic'});});});$(this).gdlr_core_parallax_background(gdlr_core_js);$(this).gdlr_core_particle_background(gdlr_core_js);$('.gdlr-core-price-plan-item').each(function(){var plan_options=$(this).children('.gdlr-core-price-plan-options');var plan_forms=$(this).children('.gdlr-core-price-plan-forms');plan_options.find('.gdlr-core-active .gdlr-core-price-plan-content').css('display','block');plan_options.on('click','.gdlr-core-price-plan',function(){var price_plan=$(this);price_plan.find('.gdlr-core-price-plan-content').slideDown(150);price_plan.addClass('gdlr-core-active');price_plan.siblings('.gdlr-core-active').find('.gdlr-core-price-plan-content').slideUp(150);price_plan.siblings('.gdlr-core-active').removeClass('gdlr-core-active');});$('.gdlr-core-price-plan-item').on('click','.gdlr-core-step2',function(){var selected_plan=parseInt($(this).siblings('.gdlr-core-price-plan.gdlr-core-active').attr('data-tab-id'))-1;plan_forms.children().css('display','none');plan_forms.children().eq(selected_plan).css('display','block');plan_options.hide();plan_forms.fadeIn();});$('.gdlr-core-price-plan-forms').on('click','.gdlr-core-step1',function(){plan_options.fadeIn();plan_forms.hide();});});gdlr_core_js.filter('.gdlr-core-custom-dropdown').each(function(){var custom_dropdown=$(this);var dropdown_current=custom_dropdown.find('.gdlr-core-custom-dropdown-current');$(this).on('click','.gdlr-core-custom-dropdown-current',function(){dropdown_current.siblings('.gdlr-core-custom-dropdown-list').slideDown(150);});$(document).click(function(e){if(!$(e.target).is('.gdlr-core-custom-dropdown-current')){dropdown_current.siblings('.gdlr-core-custom-dropdown-list').slideUp(150,function(){if($(e.target).is('.gdlr-core-custom-dropdown-list-item')){$(e.target).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active')}});if($(e.target).is('.gdlr-core-custom-dropdown-list-item')){dropdown_current.html($(e.target).html());}}});});gdlr_core_js.filter('.gdlr-core-privacy-box-button').on('click',function(){var privacy_box_wrap=$(this).closest('.gdlr-core-privacy-box-wrap');if(privacy_box_wrap.is('.gdlr-core-pos-bottom-bar, .gdlr-core-pos-top-bar')){privacy_box_wrap.slideUp(200);}else{privacy_box_wrap.fadeOut(250);}
var cookie_time=$(this).attr('data-cookie-time')?$(this).attr('data-cookie-time'):2592000;gdlr_core_set_cookie('gdlr-core-privacy-box',1,cookie_time);window.location.reload();return false;});gdlr_core_js.filter('[data-gdlr-lb]').each(function(){var lb_wrap=$('#'+$(this).data('gdlr-lb'));if(lb_wrap.length){$(this).on('click',function(){lb_wrap.fadeIn(200);return false;});lb_wrap.find('.gdlr-core-lightbox-form-close').on('click',function(){$(this).closest('.gdlr-core-lightbox-wrapper').fadeOut();return false;});}});gdlr_core_js.filter('#gdlr-core-gdpr-form').each(function(){$(this).on('click','.gdlr-core-gdlr-form-nav li',function(){$(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active');var nav_id=$(this).data('gdlr-nav');var content_wrap=$(this).closest('.gdlr-core-gdpr-form-left').siblings('.gdlr-core-gdpr-form-right');content_wrap.find('[data-gdlr-nav="'+nav_id+'"]').each(function(){$(this).siblings('[data-gdlr-nav]').removeClass('gdlr-core-active').css('display','none');$(this).fadeIn(200,function(){$(this).addClass('gdlr-core-active');});});});});new gdlr_core_sticky_sidebar(gdlr_core_js);});});$(window).on('load',function(){$('body').each(function(){var gdlr_core_js=$(this).find('.gdlr-core-js-2');$(this).gdlr_core_title_divider(gdlr_core_js);$(this).gdlr_core_flexslider(gdlr_core_js);$(this).gdlr_core_sly(gdlr_core_js);$(this).gdlr_core_sliding_gallery(gdlr_core_js);$(this).gdlr_core_isotope(gdlr_core_js);});});}})(jQuery);
seraph_accel_gzjydy();/*! 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()})}})});
seraph_accel_gzjydy();/*!
 * jQuery UI Datepicker 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","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,t.left+i>d&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,t.top+s>c&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});
seraph_accel_gzjydy();jQuery(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});});
seraph_accel_gzjydy();/*!
 * jQuery UI Effects 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],t):t(jQuery)}(function(u){"use strict";var s,o,r,a,c,e,n,i,f,l,d="ui-effects-",h="ui-effects-style",p="ui-effects-animated";function m(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function g(t,e,n,i){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=i||e.complete,t}function v(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function y(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},a=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var s=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=s.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:m(this)}}),i=function(){u.each(a,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=m(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||c[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){i(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(n[0])})})},u.fn.extend({addClass:(r=u.fn.addClass,function(t,e,n,i){return e?u.effects.animateClass.call(this,{add:t},e,n,i):r.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(t,e,n,i){return 1<arguments.length?u.effects.animateClass.call(this,{remove:t},e,n,i):o.apply(this,arguments)}),toggleClass:(s=u.fn.toggleClass,function(t,e,n,i,o){return"boolean"==typeof e||void 0===e?n?u.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,o):s.apply(this,arguments):u.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,o){return u.effects.animateClass.call(this,{add:e,remove:t},n,i,o)}}),u.expr&&u.expr.pseudos&&u.expr.pseudos.animated&&(u.expr.pseudos.animated=(e=u.expr.pseudos.animated,function(t){return!!u(t).data(p)||e(t)})),!1!==u.uiBackCompat&&u.extend(u.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(d+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,o=e.length;i<o;i++)null!==e[i]&&(n=t.data(d+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.3",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(h,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(h)||"",t.removeData(h)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=u("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=d+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(i,t,o,s){return s=s||{},u.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(s[e]=n[0]*o+n[1])}),s}}),u.fn.extend({effect:function(){function t(t){var e=u(this),n=u.effects.mode(e,a)||s;e.data(p,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&e.show(),s&&"none"===n||u.effects.saveStyle(e),"function"==typeof t&&t()}var i=g.apply(this,arguments),o=u.effects.effect[i.effect],s=o.mode,e=i.queue,n=e||"fx",r=i.complete,a=i.mode,c=[];return u.fx.off||!o?a?this[a](i.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(f):this.queue(n,t).queue(n,f);function f(t){var e=u(this);function n(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}i.mode=c.shift(),!1===u.uiBackCompat||s?"none"===i.mode?(e[a](),n()):o.call(e[0],i,function(){e.removeData(p),u.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):o.call(e[0],i,n)}},show:(f=u.fn.show,function(t){return v(t)?f.apply(this,arguments):((t=g.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(i=u.fn.hide,function(t){return v(t)?i.apply(this,arguments):((t=g.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(n=u.fn.toggle,function(t){return v(t)||"boolean"==typeof t?n.apply(this,arguments):((t=g.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),i=[];return u.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):y(this.css("clip"),this)},transfer:function(t,e){var n=u(this),i=u(t.to),o="fixed"===i.css("position"),s=u("body"),r=o?s.scrollTop():0,s=o?s.scrollLeft():0,a=i.offset(),a={top:a.top-r,left:a.left-s,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),c=u("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:i.top-r,left:i.left-s,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=y(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},l={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){l[t]=function(t){return Math.pow(t,e+2)}}),u.extend(l,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(l,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects});
seraph_accel_gzjydy();var TMi18n={"closeText":"Done","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"firstDay":"1"};
seraph_accel_gzjydy();(function($){"use strict";var tourmaster_mobile=false;if(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/Windows Phone/i)){tourmaster_mobile=true;}else{tourmaster_mobile=false;}
var tourmaster_display='desktop';if(typeof(window.matchMedia)=='function'){$(window).on('resize themename-set-display gdlr-core-element-resize',function(){if(window.matchMedia('(max-width: 419px)').matches){tourmaster_display='mobile-portrait';}else if(window.matchMedia('(max-width: 767px)').matches){tourmaster_display='mobile-landscape'}else if(window.matchMedia('(max-width: 959px)').matches){tourmaster_display='tablet'}else{tourmaster_display='desktop';}});$(window).trigger('themename-set-display');}else{$(window).on('resize themename-set-display gdlr-core-element-resize',function(){if($(window).innerWidth()<=419){tourmaster_display='mobile-portrait';}else if($(window).innerWidth()<=767){tourmaster_display='mobile-landscape'}else if($(window).innerWidth()<=959){tourmaster_display='tablet'}else{tourmaster_display='desktop';}});$(window).trigger('themename-set-display');}
window.tourmaster_front_confirm_box=function(options){var settings=$.extend({head:'',text:'',sub:'',yes:'',no:'',success:function(){}},options);var confirm_overlay=$('<div class="tourmaster-conform-box-overlay"></div>').appendTo($('body'));var confirm_button=$('<span class="tourmaster-confirm-box-button tourmaster-yes">'+settings.yes+'</span>');var decline_button=$('<span class="tourmaster-confirm-box-button tourmaster-no">'+settings.no+'</span>');var confirm_box=$('<div class="tourmaster-confirm-box-wrapper">\
    <div class="tourmaster-confirm-box-head">'+settings.head+'</div>\
    <div class="tourmaster-confirm-box-content-wrapper" >\
     <div class="tourmaster-confirm-box-text">'+settings.text+'</div>\
     <div class="tourmaster-confirm-box-sub">'+settings.sub+'</div>\
    </div>\
   </div>').insertAfter(confirm_overlay);$('<div class="tourmaster-confirm-box-button-wrapper"></div>').append(decline_button).append(confirm_button).appendTo(confirm_box);confirm_box.css({'margin-left':-(confirm_box.outerWidth()/2),'margin-top':-(confirm_box.outerHeight()/2)});confirm_overlay.css({opacity:0}).animate({opacity:0.6},200);confirm_box.css({opacity:0}).animate({opacity:1},200);confirm_button.click(function(){if(typeof(settings.success)=='function'){settings.success();}
confirm_overlay.fadeOut(200,function(){$(this).remove();});confirm_box.fadeOut(200,function(){$(this).remove();});});decline_button.click(function(){confirm_overlay.fadeOut(200,function(){$(this).remove();});confirm_box.fadeOut(200,function(){$(this).remove();});});}
$.fn.tourmaster_bind_lightbox=function(){$(this).on('click',function(){var content=$(this).siblings('[data-tmlb-id="'+$(this).attr('data-tmlb')+'"]');if(content.find('.nsl-container-block').length>0){var lb_content=content.clone();lb_content.find('.nsl-container-block').replaceWith(content.find('.nsl-container-block').clone(true));}else if($(this).attr('data-tmlb')=='signup'){var lb_content=content.clone(true);}else{var lb_content=content.clone();}
tourmaster_lightbox(lb_content);});}
window.tourmaster_lightbox=function(content){var lightbox_wrap=$('<div class="tourmaster-lightbox-wrapper" ></div>').hide();var lightbox_content_wrap=$('<div class="tourmaster-lightbox-content-cell" ></div>');lightbox_wrap.append(lightbox_content_wrap);lightbox_content_wrap.wrap($('<div class="tourmaster-lightbox-content-row" ></div>'));lightbox_content_wrap.append(content);var scrollPos=$(window).scrollTop();$('html').addClass('tourmaster-lightbox-on');$('body').append(lightbox_wrap);lightbox_wrap.fadeIn(300);tourmaster_form_script(lightbox_wrap);tourmaster_rating(lightbox_wrap);lightbox_wrap.on('click','.tourmaster-lightbox-close',function(){$('html').removeClass('tourmaster-lightbox-on');$(window).scrollTop(scrollPos);lightbox_wrap.fadeOut(300,function(){$(this).remove();});});lightbox_wrap.on('lightbox_close',function(){$('html').removeClass('tourmaster-lightbox-on');$(window).scrollTop(scrollPos);lightbox_wrap.fadeOut(300,function(){$(this).remove();});});lightbox_content_wrap.find('form').not('.tourmaster-register-form').each(function(){$(this).submit(function(){var validate=true;var error_box=$(this).find('.tourmaster-lb-submit-error');error_box.slideUp(200);$(this).find('input[data-required], select[data-required], textarea[data-required]').each(function(){if(!$(this).val()){validate=false;}});if(!validate){error_box.slideDown(200);}
return validate;});});}
window.tourmaster_debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap){func.apply(obj,args);}
timeout=null;};if(timeout){clearTimeout(timeout);}else if(execAsap){func.apply(obj,args);}
timeout=setTimeout(delayed,threshold);};}
window.tourmaster_throttling=function(func,threshold){var timeout;return function throttled(){var obj=this,args=arguments;function delayed(){func.apply(obj,args);timeout=null;};if(!timeout){timeout=setTimeout(delayed,threshold);}};}
window.tourmaster_rating=function(container){container.find('.tourmaster-review-form-rating, .tourmaster-tour-search-field-rating').each(function(){$(this).children('.tourmaster-rating-select').click(function(){$(this).siblings('input').val($(this).attr("data-rating-score"));if($(this).is('i')){$(this).removeClass().addClass('tourmaster-rating-select fa fa-star-half-empty');}
$(this).prevAll('i').removeClass().addClass('tourmaster-rating-select fa fa-star');$(this).nextAll('i').removeClass().addClass('tourmaster-rating-select fa fa-star-o');});});}
window.tourmaster_read_cookie=function(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}
if(c.indexOf(name)==0){return c.substring(name.length,c.length);}}
return"";}
window.tourmaster_set_cookie=function(cname,cvalue,expires){if(typeof(expires)!='undefined'){if(expires==0){expires=86400;}
var now=new Date();var new_time=now.getTime()+(parseInt(expires)*1000);now.setTime(new_time);expires=now.toGMTString();}
document.cookie=cname+"="+encodeURIComponent(cvalue)+"; expires="+expires+"; path=/";}
function tourmaster_form_script(container){if(typeof(container)=='undefined'){var date_select=$('.tourmaster-date-select');var input_file=$('.tourmaster-file-label');}else{var date_select=container.find('.tourmaster-date-select');var input_file=container.find('.tourmaster-file-label');}
date_select.on('change','select',function(){var parent=$(this).closest('.tourmaster-date-select');var date=0;var month=0;var year=0;parent.find('select[data-type]').each(function(){if($(this).attr('data-type')=='date'){date=parseInt($(this).val());}else if($(this).attr('data-type')=='month'){month=parseInt($(this).val());}else if($(this).attr('data-type')=='year'){year=parseInt($(this).val());}});if(date>0&&month>0&&year>0){parent.siblings('input[name]').val(year+'-'+month+'-'+date);}});input_file.on('change','input[type="file"]',function(){var label_text=$(this).siblings('.tourmaster-file-label-text');if($(this).val()){label_text.html($(this).val().split('\\').pop());}else{label_text.html(label_text.attr('data-default'));}});}
$.fn.tourmaster_video_background=function(){if(tourmaster_mobile){$(this).children('[data-background-type="video"]').remove();if($(this).attr('data-video-fallback')){$(this).css('background-image','url('+$(this).attr('data-video-fallback')+')');}}else{var video_wrapper=$(this);$(this).children('[data-background-type="video"]').each(function(){$(this).tourmaster_set_video_background_position();$(window).on('load resize',function(){$(this).tourmaster_set_video_background_position();});$(this).find('iframe').each(function(){if($(this).attr('data-player-type')=='vimeo'){var player=$f($(this)[0]);player.addEvent('ready',function(){player.api('setVolume',0);});}else if($(this).attr('data-player-type')=='youtube'){if($('body').children('#tourmaster-youtube-api').length==0){$('body').append('<script type="text/javascript" src="https://www.youtube.com/iframe_api" id="tourmaster-youtube-api" ></script>');}
if(typeof(window.tourmaster_ytb)=='undefined'){window.tourmaster_ytb=[$(this)[0]];}else{window.tourmaster_ytb.push($(this)[0]);}
window.onYouTubeIframeAPIReady=function(){for(var key in window.tourmaster_ytb){new YT.Player(tourmaster_ytb[key],{events:{'onReady':function(e){e.target.mute();}}});}}}});});}}
$.fn.tourmaster_set_video_background_position=function(){var wrapper_bg=$(this).parent();var ratio=640/360;$(this).each(function(){if((wrapper_bg.width()/wrapper_bg.height())>ratio){var v_height=wrapper_bg.width()/ratio;var v_margin=(wrapper_bg.height()-v_height)/2;$(this).css({width:wrapper_bg.width(),height:v_height,'margin-left':0,'margin-top':v_margin});}else{var v_width=wrapper_bg.height()*ratio;var v_margin=(wrapper_bg.width()-v_width)/2;$(this).css({width:v_width,height:wrapper_bg.height(),'margin-left':v_margin,'margin-top':0});}});}
$.fn.tourmaster_set_flexslider=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('.tourmaster-flexslider');}else{var elem=filter_elem.filter('.tourmaster-flexslider');}
elem.each(function(){var flex_attr={namespace:'tourmaster-flex-',useCSS:false,animation:'fade',animationLoop:true,prevText:'<i class="arrow_carrot-left"></i>',nextText:'<i class="arrow_carrot-right"></i>'};if($(this).find('.tourmaster-flexslider').length>0){$(this).children('ul.slides').addClass('parent-slides');flex_attr.selector='.parent-slides > li';}
if($(this).attr('data-disable-autoslide')){flex_attr.slideshow=false;}
if($(this).attr('data-pausetime')){flex_attr.slideshowSpeed=parseInt($(this).attr('data-pausetime'));}
if($(this).attr('data-slidespeed')){flex_attr.animationSpeed=parseInt($(this).attr('data-slidespeed'));}else{flex_attr.animationSpeed=500;}
if($(this).attr('data-type')=='carousel'){flex_attr.move=1;flex_attr.animation='slide';var column_num=parseInt($(this).attr('data-column'));flex_attr.itemMargin=2*parseInt($(this).children('ul.slides').children('li:first-child').css('margin-right'));flex_attr.itemWidth=(($(this).width()+flex_attr.itemMargin)/column_num)-(flex_attr.itemMargin);flex_attr.minItems=column_num;flex_attr.maxItems=column_num;var t=$(this);$(window).resize(function(){if(t.data('tourmaster_flexslider')){var newWidth=((t.width()+flex_attr.itemMargin)/column_num)-(flex_attr.itemMargin);t.data('tourmaster_flexslider').editItemWidth(newWidth);}});}else if($(this).attr('data-effect')){if($(this).attr('data-effect')=='kenburn'){flex_attr.animation='fade';}else{flex_attr.animation=$(this).attr('data-effect');}}
if(!$(this).attr('data-nav')||$(this).attr('data-nav')=='both'||$(this).attr('data-nav')=='navigation'||$(this).attr('data-nav')=='navigation-outer'){if($(this).attr('data-nav-parent')){if($(this).attr('data-nav-type')=='custom'){flex_attr.customDirectionNav=$(this).closest('.'+$(this).attr('data-nav-parent')).find('.flex-prev, .flex-next');}else{$(this).closest('.'+$(this).attr('data-nav-parent')).each(function(){var flex_nav=$('<ul class="tourmaster-flex-direction-nav">'+'<li class="tourmaster-flex-nav-prev"><a class="tourmaster-flex-prev" href="#"><i class="arrow_carrot-left"></i></a></li>'+'<li class="tourmaster-flex-nav-next"><a class="tourmaster-flex-next" href="#"><i class="arrow_carrot-right"></i></a></li>'+'</ul>');var flex_nav_position=$(this).find('.tourmaster-flexslider-nav');if(flex_nav_position.length){flex_nav_position.append(flex_nav);flex_attr.customDirectionNav=flex_nav.find('.tourmaster-flex-prev, .tourmaster-flex-next');}});}}}else{flex_attr.directionNav=false;}
if($(this).attr('data-nav')=='both'||$(this).attr('data-nav')=='bullet'){flex_attr.controlNav=true;}else{flex_attr.controlNav=false;}
if($(this).attr('data-thumbnail')){var thumbnail_slide=$(this).siblings('.gdlr-core-sly-slider');flex_attr.manualControls=thumbnail_slide.find('ul.slides li')
flex_attr.controlNav=true;}
if($(this).attr('data-vcenter-nav')){flex_attr.start=function(slider){if(slider.directionNav){$(window).resize(function(){slider.directionNav.each(function(){var margin=-(slider.height()+$(this).outerHeight())/2;$(this).css('margin-top',margin);});});}
if(typeof(slider.slides)!='undefined'){$(window).trigger('resize');slider.slides.filter('.tourmaster-flex-active-slide').addClass('tourmaster-active').siblings().removeClass('tourmaster-active');}};}else{flex_attr.start=function(slider){if(typeof(slider.slides)!='undefined'){$(window).trigger('resize');slider.slides.filter('.tourmaster-flex-active-slide').addClass('tourmaster-active').siblings().removeClass('tourmaster-active');}}}
flex_attr.after=function(slider){slider.slides.filter('.tourmaster-flex-active-slide').addClass('tourmaster-active').siblings().removeClass('tourmaster-active');}
if($(this).find('.tourmaster-outer-frame-element').length>0){$(this).addClass('tourmaster-with-outer-frame-element');}
$(this).tourmaster_flexslider(flex_attr);});return $(this);}
$.fn.tourmaster_set_image_height=function(){var all_image=$(this).find('img');all_image.each(function(){var img_width=$(this).attr('width');var img_height=$(this).attr('height');if(img_width&&img_height){var parent_item=$(this).parent('.tourmaster-temp-image-wrap');if(parent_item.length){parent_item.height((img_height*$(this).width())/img_width);}else{parent_item=$('<div class="tourmaster-temp-image-wrap" ></div>');parent_item.css('height',((img_height*$(this).width())/img_width));$(this).wrap(parent_item);}}else{return;}});$(window).resize(function(e){all_image.each(function(){var parent_item=$(this).parent('.tourmaster-temp-image-wrap');if(parent_item.length){$(this).unwrap();}});$(window).unbind('resize',e.handleObj.handler,e);});return $(this);}
function tourmaster_ajax_action(ajax_section,name,value){if(ajax_section.attr('data-target-action')=='replace'){ajax_section.siblings('.'+ajax_section.attr('data-target')).each(function(){var scroll_pos=$(this).offset().top-100;if(typeof(window.traveltour_anchor_offset)!='undefined'){scroll_pos=scroll_pos-window.traveltour_anchor_offset;}
if($(window).scrollTop()>scroll_pos){$('html, body').animate({scrollTop:scroll_pos},600,'easeOutQuad');}});}
$.ajax({type:'POST',url:ajax_section.attr('data-ajax-url'),data:{'action':ajax_section.attr('data-tm-ajax'),'settings':ajax_section.data('settings'),'option':{'name':name,'value':value}},dataType:'json',beforeSend:function(jqXHR,settings){if(ajax_section.attr('data-target-action')=='replace'){ajax_section.siblings('.'+ajax_section.attr('data-target')).animate({opacity:0},150);}},error:function(jqXHR,textStatus,errorThrown){console.log(jqXHR,textStatus,errorThrown);},success:function(data){if(data.status=='success'){if(data.content&&ajax_section.attr('data-target')){if(ajax_section.attr('data-target-action')=='append'){var content=$(data.content);ajax_section.siblings('.'+ajax_section.attr('data-target')).each(function(){if(typeof($.fn.gdlr_core_animate_list_item)=='function'){if($(this).attr('data-layout')!='masonry'||typeof($.fn.isotope)!='function'){content.addClass('gdlr-core-animate-init');}}
$(this).append(content);content.tourmaster_flexslider().tourmaster_set_image_height();if($(this).attr('data-layout')=='masonry'&&typeof($.fn.isotope)=='function'){var addItems=$(this).isotope('addItems',content);$(this).isotope('layoutItems',addItems,true);}
if(typeof($.fn.gdlr_core_animate_list_item)=='function'){content.gdlr_core_animate_list_item();}});if(data.load_more){if(data.load_more!='none'){var load_more=$(data.load_more);ajax_section.parent().append(load_more);load_more.tourmaster_ajax(load_more);load_more.css('display','none').slideDown(100);ajax_section.remove();}else{ajax_section.slideUp(100,function(){$(this).remove();});}}}else if(ajax_section.attr('data-target-action')=='replace'){var content=$(data.content);ajax_section.siblings('.'+ajax_section.attr('data-target')).each(function(){var fix_height=false;var current_height=$(this).height();$(this).empty().append(content);content.tourmaster_flexslider().tourmaster_set_image_height();if(typeof($.fn.gdlr_core_animate_list_item)=='function'){content.gdlr_core_animate_list_item();}
var new_height=$(this).height();$(this).css({height:current_height,opacity:1}).animate({'height':new_height},{'duration':400,'easing':'easeOutExpo','complete':function(){if(!fix_height){$(this).css('height','');}}});});if(data.pagination){if(ajax_section.is('.tourmaster-pagination, .gdlr-core-pagination')){ajax_section.slideUp(100,function(){$(this).remove();});}else{ajax_section.siblings('.tourmaster-pagination, .gdlr-core-pagination').slideUp(100,function(){$(this).remove();});}
if(data.pagination!='none'){var pagination=$(data.pagination);ajax_section.parent().append(pagination);pagination.tourmaster_ajax(pagination);pagination.css('display','none').slideDown(100);}}
if(data.load_more){ajax_section.siblings('.tourmaster-load-more-wrap, .gdlr-core-load-more-wrap').slideUp(100,function(){$(this).remove();});if(data.load_more!='none'){var load_more=$(data.load_more);ajax_section.parent().append(load_more);load_more.tourmaster_ajax(load_more);load_more.css('display','none').slideDown(100);}}}}
if(typeof(data.settings)!='undefined'){ajax_section.data('settings',data.settings);}}else{console.log(data);}}});}
$.fn.tourmaster_lightgallery=function(){var lightgallery=$(this);var lightbox_groups=[];lightgallery.each(function(){if($(this).attr('data-lightbox-group')){if(lightbox_groups.indexOf($(this).attr('data-lightbox-group'))==-1){lightbox_groups.push($(this).attr('data-lightbox-group'));}}else{$(this).lightGallery({selector:'this'});}});for(var key in lightbox_groups){var group_selector='.tourmaster-lightgallery[data-lightbox-group="'+lightbox_groups[key]+'"]';lightgallery.filter(group_selector).first().lightGallery({selector:group_selector,selectWithin:'body',thumbnail:false});}
if(typeof(filter_elem)=='undefined'){var gallery_lb=$(this).find('[data-gallery-lb]');}else{var gallery_lb=filter_elem.filter('[data-gallery-lb]');}
gallery_lb.click(function(){$(this).lightGallery({dynamic:true,dynamicEl:$(this).data('gallery-lb'),thumbnail:false});return false;});return $(this);}
$.fn.tourmaster_ajax=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('[data-tm-ajax]');}else{var elem=filter_elem.filter('[data-tm-ajax]');}
elem.each(function(){var ajax_section=$(this);$(this).on('click','a',function(){if($(this).hasClass('tourmaster-active')){return false;}
$(this).addClass('tourmaster-active').siblings().removeClass('tourmaster-active');var name=$(this).attr('data-ajax-name');var value=$(this).attr('data-ajax-value');tourmaster_ajax_action(ajax_section,name,value);return false;});$(this).on('change','select',function(){var name=$(this).attr('data-ajax-name');var value=$(this).val();tourmaster_ajax_action(ajax_section,name,value);});});}
$(document).ready(function(){var body=$('body');body.tourmaster_ajax();$('.tourmaster-background-video-wrap').tourmaster_video_background();$('[data-confirm]').click(function(){var confirm_button=$(this);tourmaster_front_confirm_box({head:confirm_button.attr('data-confirm'),text:confirm_button.attr('data-confirm-text'),sub:confirm_button.attr('data-confirm-sub'),yes:confirm_button.attr('data-confirm-yes'),no:confirm_button.attr('data-confirm-no'),success:function(){window.location.href=confirm_button.attr('href');}});return false;});$('[data-tmlb]').tourmaster_bind_lightbox();$('.tourmaster-register-form').submit(function(){var condition_accepted_input=$(this).find('[name="tourmaster-require-acceptance"]');if(!condition_accepted_input.is(':checked')){condition_accepted_input.siblings('.tourmaster-notification-box').slideDown(150);return false;}else{condition_accepted_input.siblings('.tourmaster-notification-box').slideUp(150);}});$('.tourmaster-user-top-bar').each(function(){if($(this).hasClass('tourmaster-user')){var top_bar_nav=$(this).children('.tourmaster-user-top-bar-nav').children('.tourmaster-user-top-bar-nav-inner');$(this).hover(function(){top_bar_nav.fadeIn(200);},function(){top_bar_nav.fadeOut(200);})}});$('.tourmaster-currency-switcher').each(function(){var currency_inner=$(this).children('.tourmaster-currency-switcher-inner');$(this).hover(function(){currency_inner.fadeIn(200);},function(){currency_inner.fadeOut(200);})});$('.tourmaster-user-top-bar.tourmaster-refresh').each(function(){var user_top_bar=$(this);$.ajax({type:'POST',url:user_top_bar.attr('data-ajax-url'),data:{action:'refresh_user_top_bar',redirect:user_top_bar.attr('data-redirect')},dataType:'json',success:function(data){if(typeof(data.content)!='undefined'){var new_top_bar=$(data.content);user_top_bar.replaceWith(new_top_bar);new_top_bar.find('[data-tmlb]').tourmaster_bind_lightbox();if(new_top_bar.hasClass('tourmaster-user')){var top_bar_nav=new_top_bar.children('.tourmaster-user-top-bar-nav').children('.tourmaster-user-top-bar-nav-inner');new_top_bar.hover(function(){top_bar_nav.fadeIn(200);},function(){top_bar_nav.fadeOut(200);})}}}});});if(body.hasClass('tourmaster-template-register')){tourmaster_form_script();}else if(body.hasClass('tourmaster-template-user')){tourmaster_form_script();$('.tourmaster-print').click(function(){var printed_id=$(this).attr('data-id');if(printed_id){var printed_content=$($('#'+printed_id).html());$('body').children().css('display','none');$('body').append(printed_content);window.print();printed_content.remove();$('body').children().css('display','');}});$('input[name="profile-image"]').on('change',function(e){var temp_image=$(this).closest('label').siblings('img');if(e.target.files&&e.target.files[0]){var reader=new FileReader();reader.onload=function(e_reader){temp_image.attr('src',e_reader.target.result);temp_image.attr('srcset','');}
reader.readAsDataURL(e.target.files[0]);}});$('.tourmaster-deposit-item-head').on('click',function(){var item=$(this).parent();if(item.hasClass('tourmaster-active')){$(this).siblings('.tourmaster-deposit-item-content').css({'display':'block'}).slideUp(150);item.removeClass('tourmaster-active');}else{$(this).siblings('.tourmaster-deposit-item-content').slideDown(150);item.addClass('tourmaster-active');}});}});$.fn.gdlr_core_fluid_video=function(filter_elem){if(typeof(filter_elem)=='undefined'){var elem=$(this).find('iframe[src*="youtube"], iframe[src*="vimeo"]');}else{var elem=filter_elem.filter('iframe[src*="youtube"], iframe[src*="vimeo"]');}
elem.each(function(){if($(this).closest('.ls-container, .master-slider').length<=0){if(($(this).is('embed')&&$(this).parent('object').length)||$(this).parent('.gdlr-core-fluid-video-wrapper').length){return;}
if(!$(this).attr('id')){$(this).attr('id','gdlr-video-'+Math.floor(Math.random()*999999));}
var ratio=$(this).height()/$(this).width();$(this).removeAttr('height').removeAttr('width');try{$(this).wrap('<div class="gdlr-core-fluid-video-wrapper"></div>').parent().css('padding-top',(ratio*100)+"%");$(this).attr('src',$(this).attr('src'));}catch(e){}}});return $(this);}
if(typeof(window.gdlr_core_sync_height)!='function'){window.gdlr_core_sync_height=function(container,filter_elem){this.set_half_height(container);if(typeof(window.gdlr_core_sync_height_elem)!='undefined'){window.gdlr_core_sync_height_elem.reinit();return;}
window.gdlr_core_sync_height_elem=this;if(typeof(filter_elem)=='undefined'){this.elements=container.find('[data-sync-height]');}else{this.elements=filter_elem.filter('[data-sync-height]');}
this.elements_group=[];this.container=container;this.init();}
gdlr_core_sync_height.prototype={init:function(){var t=this;t.group_elements();t.set_height();$(window).on('load resize gdlr-core-element-resize',function(){t.set_height();});},reinit:function(){if(!this.container.is('body, .gdlr-core-page-builder-body')){this.container=this.container.closest('.gdlr-core-page-builder-body');}
this.elements=this.container.find('[data-sync-height]');this.group_elements();this.set_height();},group_elements:function(){var t=this;t.elements.filter('.gdlr-core-flipbox-front, .gdlr-core-feature-box').each(function(){if(t.elements_group.indexOf($(this).attr('data-sync-height'))==-1){t.elements_group.push($(this).attr('data-sync-height'));}});t.elements.each(function(){if(t.elements_group.indexOf($(this).attr('data-sync-height'))==-1){t.elements_group.push($(this).attr('data-sync-height'));}});},set_height:function(){var t=this;t.elements.css('height','auto').children('.gdlr-core-sync-height-pre-spaces').remove();t.elements.find('.gdlr-core-sync-height-offset').remove();var sync_element=t.elements;if(tourmaster_display=='mobile-landscape'||tourmaster_display=='mobile-portrait'){sync_element=sync_element.filter('.gdlr-core-flipbox-front, .gdlr-core-flipbox-back, .gdlr-core-hover-content-front, .gdlr-core-hover-content-back');}
for(var key in t.elements_group){var max_height=0;sync_element.filter('[data-sync-height="'+t.elements_group[key]+'"]').each(function(){if($(this).outerHeight()>max_height){max_height=$(this).outerHeight();}});sync_element.filter('[data-sync-height="'+t.elements_group[key]+'"]').each(function(){var offset=parseInt(max_height-$(this).outerHeight());var offset_item=$(this).find('[data-sync-height-offset]');if(offset_item.length&&offset>0){$('<div class="gdlr-core-sync-height-offset" ></div>').css('height',offset).insertBefore(offset_item);}
$(this).css('height',max_height);if($(this).hasClass('gdlr-core-flipbox-front')){$(this).parent().css('height',max_height);}
if($(this).is('[data-sync-height-center]')){var content=$(this).children('.gdlr-core-sync-height-content');var padding_top=max_height;if(content.length>0){padding_top-=content.outerHeight();}else{$(this).children().each(function(){padding_top-=$(this).outerHeight();});}
padding_top=padding_top/2;padding_top=padding_top-(parseInt($(this).css('padding-top'))+parseInt($(this).css('border-top-width')));if(padding_top>0){var spaces_item=$('<div class="gdlr-core-sync-height-pre-spaces" ></div>').css('padding-top',padding_top);var space_position=$(this).children('.gdlr-core-sync-height-space-position');if(space_position.length>0){spaces_item.insertBefore(space_position);}else{$(this).prepend(spaces_item);}}}});}},set_half_height:function(container){container.find('.gdlr-core-half-height').each(function(){var temp=$(this);if(!gdlr_core_mobile&&(tourmaster_display=='tablet'||tourmaster_display=='desktop')){var temp_height=temp.outerHeight();temp.gdlr_core_set_image_height();temp.css('height',temp_height/2);temp.find('img').css('margin-top',-temp_height/4);}
$(window).on('load resize',function(){temp.css('height','auto');temp.find('img').css('margin-top','0');if(!gdlr_core_mobile&&(tourmaster_display=='tablet'||tourmaster_display=='desktop')){temp_height=temp.outerHeight();temp.gdlr_core_set_image_height();temp.css('height',temp_height/2);temp.find('img').css('margin-top',-temp_height/4);}});});}};}
$(document).ready(function(){$('body').gdlr_core_fluid_video();$('.tourmaster-lightgallery').tourmaster_lightgallery();});$(window).on('load',function(){var body=$('body');body.tourmaster_set_flexslider();});})(jQuery);
/*! Froogaloop for vimeo api
* http://a.vimeocdn.com/js/froogaloop2.min.js */
var Froogaloop=function(){function e(a){return new e.fn.init(a)}function g(a,c,b){if(!b.contentWindow.postMessage)return!1;a=JSON.stringify({method:a,value:c});b.contentWindow.postMessage(a,h)}function l(a){var c,b;try{c=JSON.parse(a.data),b=c.event||c.method}catch(e){}"ready"!=b||k||(k=!0);if(!/^https?:\/\/player.vimeo.com/.test(a.origin))return!1;"*"===h&&(h=a.origin);a=c.value;var m=c.data,f=""===f?null:c.player_id;c=f?d[f][b]:d[b];b=[];if(!c)return!1;void 0!==a&&b.push(a);m&&b.push(m);f&&b.push(f);return 0<b.length?c.apply(null,b):c.call()}function n(a,c,b){b?(d[b]||(d[b]={}),d[b][a]=c):d[a]=c}var d={},k=!1,h="*";e.fn=e.prototype={element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;return this},api:function(a,c){if(!this.element||!a)return!1;var b=this.element,d=""!==b.id?b.id:null,e=c&&c.constructor&&c.call&&c.apply?null:c,f=c&&c.constructor&&c.call&&c.apply?c:null;f&&n(a,f,d);g(a,e,b);return this},addEvent:function(a,c){if(!this.element)return!1;var b=this.element,d=""!==b.id?b.id:null;n(a,c,d);"ready"!=a?g("addEventListener",a,b):"ready"==a&&k&&c.call(null,d);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,b=""!==c.id?c.id:null;a:{if(b&&d[b]){if(!d[b][a]){b=!1;break a}d[b][a]=null}else{if(!d[a]){b=!1;break a}d[a]=null}b=!0}"ready"!=a&&b&&g("removeEventListener",a,c)}};e.fn.init.prototype=e.fn;window.addEventListener?window.addEventListener("message",l,!1):window.attachEvent("onmessage",l);return window.Froogaloop=window.$f=e}();!function(e){var t=!0;e.tourmaster_flexslider=function(a,n){var i=e(a);i.vars=e.extend({},e.tourmaster_flexslider.defaults,n);var r,s=i.vars.namespace,o=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||o||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,c="click touchend MSPointerUp keyup",d="",u="vertical"===i.vars.direction,v=i.vars.reverse,p=i.vars.itemWidth>0,m="fade"===i.vars.animation,f=""!==i.vars.asNavFor,h={};e.data(a,"tourmaster_flexslider",i),h={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0,10),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=e(i.vars.selector,i),i.container=e(i.containerSelector,i),i.count=i.slides.length,i.syncExists=e(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=u?"top":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!m&&i.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return i.pfx=t[a].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),i.ensureAnimationEnd="",""!==i.vars.controlsContainer&&(i.controlsContainer=e(i.vars.controlsContainer).length>0&&e(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=e(i.vars.manualControls).length>0&&e(i.vars.manualControls)),""!==i.vars.customDirectionNav&&(i.customDirectionNav=2===e(i.vars.customDirectionNav).length&&e(i.vars.customDirectionNav)),i.vars.randomize&&(i.slides.sort(function(){return Math.round(Math.random())-.5}),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&h.controlNav.setup(),i.vars.directionNav&&h.directionNav.setup(),i.vars.keyboard&&(1===e(i.containerSelector).length||i.vars.multipleKeyboard)&&e(document).bind("keyup",function(e){var t=e.keyCode;if(!i.animating&&(39===t||37===t)){var a=39===t?i.getTarget("next"):37===t&&i.getTarget("prev");i.flexAnimate(a,i.vars.pauseOnAction)}}),i.vars.mousewheel&&i.bind("mousewheel",function(e,t,a,n){e.preventDefault();var r=t<0?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(r,i.vars.pauseOnAction)}),i.vars.pausePlay&&h.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&h.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover(function(){i.manualPlay||i.manualPause||i.pause()},function(){i.manualPause||i.manualPlay||i.stopped||i.play()}),i.vars.pauseInvisible&&h.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),f&&h.asNav.setup(),l&&i.vars.touch&&h.touch(),(!m||m&&i.vars.smoothHeight)&&e(window).bind("resize orientationchange focus",h.resize),i.find("img").attr("draggable","false"),setTimeout(function(){i.vars.start(i)},200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(s+"active-slide").eq(i.currentItem).addClass(s+"active-slide"),o?(a._slider=i,i.slides.each(function(){var t=this;t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),t.addEventListener("MSGestureTap",function(t){t.preventDefault();var a=e(this),n=a.index();e(i.vars.asNavFor).data("tourmaster_flexslider").animating||a.hasClass("active")||(i.direction=i.currentItem<n?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction,!1,!0,!0))})})):i.slides.on(c,function(t){t.preventDefault();var a=e(this),n=a.index();a.offset().left-e(i).scrollLeft()<=0&&a.hasClass(s+"active-slide")?i.flexAnimate(i.getTarget("prev"),!0):e(i.vars.asNavFor).data("tourmaster_flexslider").animating||a.hasClass(s+"active-slide")||(i.direction=i.currentItem<n?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){i.manualControls?h.controlNav.setupManual():h.controlNav.setupPaging()},setupPaging:function(){var t,a,n="thumbnails"===i.vars.controlNav?"control-thumbs":"control-paging",r=1;if(i.controlNavScaffold=e('<ol class="'+s+"control-nav "+s+n+'"></ol>'),i.pagingCount>1)for(var o=0;o<i.pagingCount;o++){if(void 0===(a=i.slides.eq(o)).attr("data-thumb-alt")&&a.attr("data-thumb-alt",""),altText=""!==a.attr("data-thumb-alt")?altText=' alt="'+a.attr("data-thumb-alt")+'"':"",t="thumbnails"===i.vars.controlNav?'<img src="'+a.attr("data-thumb")+'"'+altText+"/>":'<a href="#">'+r+"</a>","thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var l=a.attr("data-thumbcaption");""!==l&&void 0!==l&&(t+='<span class="'+s+'caption">'+l+"</span>")}i.controlNavScaffold.append("<li>"+t+"</li>"),r++}i.controlsContainer?e(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),h.controlNav.set(),h.controlNav.active(),i.controlNavScaffold.delegate("a, img",c,function(t){if(t.preventDefault(),""===d||d===t.type){var a=e(this),n=i.controlNav.index(a);a.hasClass(s+"active")||(i.direction=n>i.currentSlide?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction))}""===d&&(d=t.type),h.setToClearWatchedEvent()})},setupManual:function(){i.controlNav=i.manualControls,h.controlNav.active(),i.controlNav.bind(c,function(t){if(t.preventDefault(),""===d||d===t.type){var a=e(this),n=i.controlNav.index(a);a.hasClass(s+"active")||(n>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(n,i.vars.pauseOnAction))}""===d&&(d=t.type),h.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=e("."+s+"control-nav li "+t,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(s+"active").eq(i.animatingTo).addClass(s+"active")},update:function(t,a){i.pagingCount>1&&"add"===t?i.controlNavScaffold.append(e('<li><a href="#">'+i.count+"</a></li>")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(a).closest("li").remove(),h.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(a,t):h.controlNav.active()}},directionNav:{setup:function(){var t=e('<ul class="'+s+'direction-nav"><li class="'+s+'nav-prev"><a class="'+s+'prev" href="#">'+i.vars.prevText+'</a></li><li class="'+s+'nav-next"><a class="'+s+'next" href="#">'+i.vars.nextText+"</a></li></ul>");i.customDirectionNav?i.directionNav=i.customDirectionNav:i.controlsContainer?(e(i.controlsContainer).append(t),i.directionNav=e("."+s+"direction-nav li a",i.controlsContainer)):(i.append(t),i.directionNav=e("."+s+"direction-nav li a",i)),h.directionNav.update(),i.directionNav.bind(c,function(t){t.preventDefault();var a;""!==d&&d!==t.type||(a=e(this).hasClass(s+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(a,i.vars.pauseOnAction)),""===d&&(d=t.type),h.setToClearWatchedEvent()})},update:function(){var e=s+"disabled";1===i.pagingCount?i.directionNav.addClass(e).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(e).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(e).filter("."+s+"prev").addClass(e).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(e).filter("."+s+"next").addClass(e).attr("tabindex","-1"):i.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('<div class="'+s+'pauseplay"><a href="#"></a></div>');i.controlsContainer?(i.controlsContainer.append(t),i.pausePlay=e("."+s+"pauseplay a",i.controlsContainer)):(i.append(t),i.pausePlay=e("."+s+"pauseplay a",i)),h.pausePlay.update(i.vars.slideshow?s+"pause":s+"play"),i.pausePlay.bind(c,function(t){t.preventDefault(),""!==d&&d!==t.type||(e(this).hasClass(s+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===d&&(d=t.type),h.setToClearWatchedEvent()})},update:function(e){"play"===e?i.pausePlay.removeClass(s+"pause").addClass(s+"play").html(i.vars.playText):i.pausePlay.removeClass(s+"play").addClass(s+"pause").html(i.vars.pauseText)}},touch:function(){var e,t,n,r,s,l,c,d,f,h=!1,g=0,S=0,x=0;o?(a.style.msTouchAction="none",a._gesture=new MSGesture,a._gesture.target=a,a.addEventListener("MSPointerDown",function(e){e.stopPropagation(),i.animating?e.preventDefault():(i.pause(),a._gesture.addPointer(e.pointerId),x=0,r=u?i.h:i.w,l=Number(new Date),n=p&&v&&i.animatingTo===i.last?0:p&&v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:p&&i.currentSlide===i.last?i.limit:p?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:v?(i.last-i.currentSlide+i.cloneOffset)*r:(i.currentSlide+i.cloneOffset)*r)},!1),a._slider=i,a.addEventListener("MSGestureChange",function(e){e.stopPropagation();var t=e.target._slider;if(t){var i=-e.translationX,o=-e.translationY;s=x+=u?o:i,h=u?Math.abs(x)<Math.abs(-i):Math.abs(x)<Math.abs(-o),e.detail!==e.MSGESTURE_FLAG_INERTIA?(!h||Number(new Date)-l>500)&&(e.preventDefault(),!m&&t.transitions&&(t.vars.animationLoop||(s=x/(0===t.currentSlide&&x<0||t.currentSlide===t.last&&x>0?Math.abs(x)/r+2:1)),t.setProps(n+s,"setTouch"))):setImmediate(function(){a._gesture.stop()})}},!1),a.addEventListener("MSGestureEnd",function(a){a.stopPropagation();var i=a.target._slider;if(i){if(i.animatingTo===i.currentSlide&&!h&&null!==s){var o=v?-s:s,c=o>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(c)&&(Number(new Date)-l<550&&Math.abs(o)>50||Math.abs(o)>r/2)?i.flexAnimate(c,i.vars.pauseOnAction):m||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}e=null,t=null,s=null,n=null,x=0}},!1)):(c=function(s){i.animating?s.preventDefault():(window.navigator.msPointerEnabled||1===s.touches.length)&&(i.pause(),r=u?i.h:i.w,l=Number(new Date),g=s.touches[0].pageX,S=s.touches[0].pageY,n=p&&v&&i.animatingTo===i.last?0:p&&v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:p&&i.currentSlide===i.last?i.limit:p?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:v?(i.last-i.currentSlide+i.cloneOffset)*r:(i.currentSlide+i.cloneOffset)*r,e=u?S:g,t=u?g:S,a.addEventListener("touchmove",d,!1),a.addEventListener("touchend",f,!1))},d=function(a){g=a.touches[0].pageX,S=a.touches[0].pageY,s=u?e-S:e-g;(!(h=u?Math.abs(s)<Math.abs(g-t):Math.abs(s)<Math.abs(S-t))||Number(new Date)-l>500)&&(a.preventDefault(),!m&&i.transitions&&(i.vars.animationLoop||(s/=0===i.currentSlide&&s<0||i.currentSlide===i.last&&s>0?Math.abs(s)/r+2:1),i.setProps(n+s,"setTouch")))},f=function(o){if(a.removeEventListener("touchmove",d,!1),i.animatingTo===i.currentSlide&&!h&&null!==s){var c=v?-s:s,u=c>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(u)&&(Number(new Date)-l<550&&Math.abs(c)>50||Math.abs(c)>r/2)?i.flexAnimate(u,i.vars.pauseOnAction):m||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}a.removeEventListener("touchend",f,!1),e=null,t=null,s=null,n=null},a.addEventListener("touchstart",c,!1))},resize:function(){!i.animating&&i.is(":visible")&&(p||i.doMath(),m?h.smoothHeight():p?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):u?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&h.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(e){if(!u||m){var t=m?i:i.viewport;e?t.animate({height:i.slides.eq(i.animatingTo).height()},e):t.height(i.slides.eq(i.animatingTo).height())}},sync:function(t){var a=e(i.vars.sync).data("tourmaster_flexslider"),n=i.animatingTo;switch(t){case"animate":a.flexAnimate(n,i.vars.pauseOnAction,!1,!0);break;case"play":a.playing||a.asNav||a.play();break;case"pause":a.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var e=h.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){h.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()})}},isHidden:function(){var e=h.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(r),r=setTimeout(function(){d=""},3e3)}},i.flexAnimate=function(t,a,n,r,o){if(i.vars.animationLoop||t===i.currentSlide||(i.direction=t>i.currentSlide?"next":"prev"),f&&1===i.pagingCount&&(i.direction=i.currentItem<t?"next":"prev"),!i.animating&&(i.canAdvance(t,o)||n)&&i.is(":visible")){if(f&&r){var c=e(i.vars.asNavFor).data("tourmaster_flexslider");if(i.atEnd=0===t||t===i.count-1,c.flexAnimate(t,!0,!1,!0,o),i.direction=i.currentItem<t?"next":"prev",c.direction=i.direction,Math.ceil((t+1)/i.visible)-1===i.currentSlide||0===t)return i.currentItem=t,i.slides.removeClass(s+"active-slide").eq(t).addClass(s+"active-slide"),!1;i.currentItem=t,i.slides.removeClass(s+"active-slide").eq(t).addClass(s+"active-slide"),t=Math.floor(t/i.visible)}if(i.animating=!0,i.animatingTo=t,a&&i.pause(),i.vars.before(i),i.syncExists&&!o&&h.sync("animate"),i.vars.controlNav&&h.controlNav.active(),p||i.slides.removeClass(s+"active-slide").eq(t).addClass(s+"active-slide"),i.atEnd=0===t||t===i.last,i.vars.directionNav&&h.directionNav.update(),t===i.last&&(i.vars.end(i),i.vars.animationLoop||i.pause()),m)l?(i.slides.eq(i.currentSlide).css({opacity:0,zIndex:1}),i.slides.eq(t).css({opacity:1,zIndex:2}),i.wrapup(x)):(i.slides.eq(i.currentSlide).css({zIndex:1}).animate({opacity:0},i.vars.animationSpeed,i.vars.easing),i.slides.eq(t).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing,i.wrapup));else{var d,g,S,x=u?i.slides.filter(":first").height():i.computedW;p?(d=i.vars.itemMargin,g=(S=(i.itemW+d)*i.move*i.animatingTo)>i.limit&&1!==i.visible?i.limit:S):g=0===i.currentSlide&&t===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?v?(i.count+i.cloneOffset)*x:0:i.currentSlide===i.last&&0===t&&i.vars.animationLoop&&"prev"!==i.direction?v?0:(i.count+1)*x:v?(i.count-1-t+i.cloneOffset)*x:(t+i.cloneOffset)*x,i.setProps(g,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.unbind("webkitTransitionEnd transitionend"),i.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(i.ensureAnimationEnd),i.wrapup(x)}),clearTimeout(i.ensureAnimationEnd),i.ensureAnimationEnd=setTimeout(function(){i.wrapup(x)},i.vars.animationSpeed+100)):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,function(){i.wrapup(x)})}i.vars.smoothHeight&&h.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(e){m||p||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(e,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(e,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){!i.animating&&t&&i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&h.pausePlay.update("play"),i.syncExists&&h.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&h.pausePlay.update("pause"),i.syncExists&&h.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(e,t){var a=f?i.pagingCount-1:i.last;return!!t||(!(!f||i.currentItem!==i.count-1||0!==e||"prev"!==i.direction)||(!f||0!==i.currentItem||e!==i.pagingCount-1||"next"===i.direction)&&(!(e===i.currentSlide&&!f)&&(!!i.vars.animationLoop||(!i.atEnd||0!==i.currentSlide||e!==a||"next"===i.direction)&&(!i.atEnd||i.currentSlide!==a||0!==e||"next"!==i.direction))))},i.getTarget=function(e){return i.direction=e,"next"===e?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(e,t,a){var n=function(){var a=e||(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo;return-1*function(){if(p)return"setTouch"===t?e:v&&i.animatingTo===i.last?0:v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:a;switch(t){case"setTotal":return v?(i.count-1-i.currentSlide+i.cloneOffset)*e:(i.currentSlide+i.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return v?e:i.count*e;case"jumpStart":return v?i.count*e:e;default:return e}}()+"px"}();i.transitions&&(n=u?"translate3d(0,"+n+",0)":"translate3d("+n+",0,0)",a=void 0!==a?a/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",a),i.container.css("transition-duration",a)),i.args[i.prop]=n,(i.transitions||void 0===a)&&i.container.css(i.args),i.container.css("transform",n)},i.setup=function(t){if(m)i.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(l?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):0==i.vars.fadeFirstSlide?i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).css({opacity:1}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&h.smoothHeight();else{var a,n;"init"===t&&(i.viewport=e('<div class="'+s+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,v&&(n=e.makeArray(i.slides).reverse(),i.slides=e(n),i.container.empty().append(i.slides))),i.vars.animationLoop&&!p&&(i.cloneCount=2,i.cloneOffset=1,"init"!==t&&i.container.find(".clone").remove(),i.container.append(h.uniqueID(i.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(h.uniqueID(i.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),i.newSlides=e(i.vars.selector,i),a=v?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,u&&!p?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(a*i.h,"init")},"init"===t?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(a*i.computedW,"init"),setTimeout(function(){i.doMath(),i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"left",display:"block"}),i.vars.smoothHeight&&h.smoothHeight()},"init"===t?100:0))}p||i.slides.removeClass(s+"active-slide").eq(i.currentSlide).addClass(s+"active-slide"),i.vars.init(i)},i.doMath=function(){var t=i.slides.first(),a=i.vars.itemMargin,n=i.vars.minItems,r=i.vars.maxItems;"function"==typeof window.matchMedia?(window.matchMedia("(max-width: 767px)").matches&&(n=1,r=1),window.matchMedia("(max-width: 419px)").matches&&(n=1,r=1)):(e(window).innerWidth()<767&&(n=1,r=1),e(window).innerWidth()<419&&(n=1,r=1)),i.w=void 0===i.viewport?i.width():i.viewport.width(),i.h=t.height(),i.boxPadding=t.outerWidth()-t.width(),p?(i.itemT=i.vars.itemWidth+a,i.itemM=a,i.minW=n?n*i.itemT:i.w,i.maxW=r?r*i.itemT-a:i.w,i.itemW=i.minW>i.w?(i.w-a*(n-1))/n:i.maxW<i.w?(i.w-a*(r-1))/r:i.vars.itemWidth>i.w?i.w:i.vars.itemWidth,i.visible=Math.floor((i.w+i.itemM)/(i.itemW+i.itemM)),i.move=i.vars.move>0&&i.vars.move<i.visible?i.vars.move:i.visible,i.pagingCount=Math.ceil((i.count-i.visible)/i.move+1),i.last=i.pagingCount-1,i.limit=1===i.pagingCount?0:i.vars.itemWidth>i.w?i.itemW*(i.count-1)+a*(i.count-1):(i.itemW+a)*i.count-i.w-a):(i.itemW=i.w,i.itemM=a,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding,i.computedM=i.itemM},i.update=function(e,t){i.doMath(),p||(e<i.currentSlide?i.currentSlide+=1:e<=i.currentSlide&&0!==e&&(i.currentSlide-=1),i.animatingTo=i.currentSlide),i.vars.controlNav&&!i.manualControls&&("add"===t&&!p||i.pagingCount>i.controlNav.length?h.controlNav.update("add"):("remove"===t&&!p||i.pagingCount<i.controlNav.length)&&(p&&i.currentSlide>i.last&&(i.currentSlide-=1,i.animatingTo-=1),h.controlNav.update("remove",i.last))),i.vars.directionNav&&h.directionNav.update()},i.addSlide=function(t,a){var n=e(t);i.count+=1,i.last=i.count-1,u&&v?void 0!==a?i.slides.eq(i.count-a).after(n):i.container.prepend(n):void 0!==a?i.slides.eq(a).before(n):i.container.append(n),i.update(a,"add"),i.slides=e(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(t){var a=isNaN(t)?i.slides.index(e(t)):t;i.count-=1,i.last=i.count-1,isNaN(t)?e(t,i.slides).remove():u&&v?i.slides.eq(i.last).remove():i.slides.eq(t).remove(),i.doMath(),i.update(a,"remove"),i.slides=e(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},i.editItemWidth=function(e){i.vars.itemWidth=e,h.resize()},h.init()},e(window).blur(function(e){t=!1}).focus(function(e){t=!0}),e.tourmaster_flexslider.defaults={namespace:"tourmaster-flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},e.fn.tourmaster_flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var a=e(this),n=t.selector?t.selector:".slides > li",i=a.find(n);1===i.length&&!0===t.allowOneSlide||0===i.length?(i.fadeIn(400),t.start&&t.start(a)):void 0===a.data("tourmaster_flexslider")&&new e.tourmaster_flexslider(this,t)});var a=e(this).data("tourmaster_flexslider");switch(t){case"play":a.play();break;case"pause":a.pause();break;case"stop":a.stop();break;case"next":a.flexAnimate(a.getTarget("next"),!0);break;case"prev":case"previous":a.flexAnimate(a.getTarget("prev"),!0);break;default:"number"==typeof t&&a.flexAnimate(t,!0)}}}(jQuery);
seraph_accel_gzjydy();var traveltour_script_core={"home_url":"https:\/\/morocco-vacations.com\/"};
seraph_accel_gzjydy();(function($){"use strict";var traveltour_display='desktop';if(typeof(window.matchMedia)=='function'){$(window).on('resize traveltour-set-display',function(){if(window.matchMedia('(max-width: 419px)').matches){traveltour_display='mobile-portrait';}else if(window.matchMedia('(max-width: 767px)').matches){traveltour_display='mobile-landscape'}else if(window.matchMedia('(max-width: 959px)').matches){traveltour_display='tablet'}else{traveltour_display='desktop';}});$(window).trigger('traveltour-set-display');}else{$(window).on('resize traveltour-set-display',function(){if($(window).innerWidth()<=419){traveltour_display='mobile-portrait';}else if($(window).innerWidth()<=767){traveltour_display='mobile-landscape'}else if($(window).innerWidth()<=959){traveltour_display='tablet'}else{traveltour_display='desktop';}});$(window).trigger('traveltour-set-display');}
var traveltour_debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap){func.apply(obj,args);}
timeout=null;};if(timeout){clearTimeout(timeout);}else if(execAsap){func.apply(obj,args);}
timeout=setTimeout(delayed,threshold);};}
var traveltour_throttling=function(func,threshold){var timeout;return function throttled(){var obj=this,args=arguments;function delayed(){func.apply(obj,args);timeout=null;};if(!timeout){timeout=setTimeout(delayed,threshold);}};}
var traveltour_sf_menu=function(menu){if(menu.length==0)return;this.main_menu=menu;this.slide_bar=this.main_menu.children('.traveltour-navigation-slide-bar');this.slide_bar_val={width:0,left:0};this.slide_bar_offset='3';if(this.slide_bar.attr('data-size-offset')){this.slide_bar_offset=parseInt(this.slide_bar.attr('data-size-offset'));}
this.slide_bar_width=0;if(this.slide_bar.attr('data-width')){this.slide_bar_width=parseInt(this.slide_bar.attr('data-width'));}
this.current_menu=this.main_menu.children('.sf-menu').children('.current-menu-item, .current-menu-ancestor').children('a');this.init();}
traveltour_sf_menu.prototype={init:function(){var t=this;t.sf_menu_mod();if(typeof($.fn.superfish)=='function'){t.main_menu.superfish({delay:400,speed:'fast'});t.sf_menu_position();$(window).resize(traveltour_debounce(function(){t.sf_menu_position();},300));}
if(t.slide_bar.length>0){t.init_slidebar();}},sf_menu_mod:function(){this.main_menu.find('.sf-mega > ul').each(function(){var mega_content=$('<div></div>');var mega_row=$('<div class="sf-mega-section-wrap" ></div>');var mega_column_size=0;$(this).children('li').each(function(){var column_size=parseInt($(this).attr('data-size'));if(mega_column_size+column_size<=60){mega_column_size+=column_size;}else{mega_column_size=column_size;mega_content.append(mega_row);mega_row=$('<div class="sf-mega-section-wrap" ></div>');}
mega_row.append($('<div class="sf-mega-section" ></div>').addClass('traveltour-column-'+column_size).html($('<div class="sf-mega-section-inner" ></div>').addClass($(this).attr('class')).attr('id',$(this).attr('id')).html($(this).html())));});mega_content.append(mega_row);$(this).replaceWith(mega_content.html());});},sf_menu_position:function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet')return;var sub_normal_menu=this.main_menu.find('.sf-menu > li.traveltour-normal-menu .sub-menu');sub_normal_menu.css({display:'block'}).removeClass('sub-menu-right');if($("body").hasClass("rtl")){sub_normal_menu.each(function(){if($(this).offset().left<0){$(this).addClass('sub-menu-right');}});}else{sub_normal_menu.each(function(){if($(this).offset().left+$(this).width()>$(window).width()){$(this).addClass('sub-menu-right');}});}
sub_normal_menu.css({display:'none'});this.main_menu.find('.sf-menu > li.traveltour-mega-menu .sf-mega').each(function(){if(!$(this).hasClass('sf-mega-full')){$(this).css({display:'block'});$(this).css({right:'','margin-left':-(($(this).width()-$(this).parent().outerWidth())/2)});if($(this).offset().left+$(this).width()>$(window).width()){$(this).css({right:0,'margin-left':''});}
$(this).css({display:'none'});}});},init_slidebar:function(){var t=this;t.init_slidebar_pos();$(window).on('load',function(){t.init_slidebar_pos();});t.main_menu.children('.sf-menu').children('li').on({mouseenter:function(){var nav_element=$(this).children('a');if(nav_element.length>0){if(t.slide_bar_width>0){var sbw=t.slide_bar_width;if(t.slide_bar.hasClass('traveltour-left')){var sbl=nav_element.position().left-t.slide_bar_offset;}else{var sbl=nav_element.position().left+((nav_element.outerWidth()-sbw)/2)-t.slide_bar_offset;}}else{var sbw=nav_element.outerWidth()+(2*t.slide_bar_offset);var sbl=nav_element.position().left-t.slide_bar_offset;}
t.slide_bar.animate({width:sbw,left:sbl},{queue:false,duration:250});}},mouseleave:function(){t.slide_bar.animate({width:t.slide_bar_val.width,left:t.slide_bar_val.left},{queue:false,duration:250});}});$(window).on('resize',function(){t.init_slidebar_pos();});$(window).on('traveltour-navigation-slider-bar-init',function(){t.current_menu=t.main_menu.children('.sf-menu').children('.current-menu-item, .current-menu-ancestor').children('a');t.animate_slidebar_pos();});$(window).on('traveltour-navigation-slider-bar-animate',function(){t.animate_slidebar_pos();});},init_slidebar_pos:function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet')return;var t=this;if(t.current_menu.length>0){if(t.slide_bar_width>0){var sbw=t.slide_bar_width;if(t.slide_bar.hasClass('traveltour-left')){var sbl=t.current_menu.position().left-t.slide_bar_offset;}else{var sbl=t.current_menu.position().left+((t.current_menu.outerWidth()-sbw)/2)-t.slide_bar_offset;}}else{var sbw=t.current_menu.outerWidth()+(2*t.slide_bar_offset);var sbl=t.current_menu.position().left-t.slide_bar_offset;}
t.slide_bar_val={width:sbw,left:sbl};}else{t.slide_bar_val={width:0}
var first_child=t.main_menu.children('ul').children('li:first-child');if(typeof(first_child.position())!='undefined'){t.slide_bar_val.left=first_child.position().left;}else{t.slide_bar_val.left=0;}}
t.slide_bar.css({width:t.slide_bar_val.width,left:t.slide_bar_val.left,display:'block'});},animate_slidebar_pos:function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet')return;var t=this;if(t.current_menu.length>0){if(t.slide_bar_width>0){var sbw=t.slide_bar_width;if(t.slide_bar.hasClass('traveltour-left')){var sbl=t.current_menu.position().left-t.slide_bar_offset;}else{var sbl=t.current_menu.position().left+((t.current_menu.outerWidth()-sbw)/2)-t.slide_bar_offset;}}else{var sbw=t.current_menu.outerWidth()+(2*t.slide_bar_offset);var sbl=t.current_menu.position().left-t.slide_bar_offset;}
t.slide_bar_val={width:sbw,left:sbl};}else{t.slide_bar_val={width:0}
var first_child=t.main_menu.children('ul').children('li:first-child');if(typeof(first_child.position())!='undefined'){t.slide_bar_val.left=first_child.position().left;}else{t.slide_bar_val.left=0;}}
t.slide_bar.css('display','block');t.slide_bar.animate({width:t.slide_bar_val.width,left:t.slide_bar_val.left},{queue:false,duration:250});}};$.fn.traveltour_mobile_menu=function(args){var menu_button=$(this).siblings('.traveltour-mm-menu-button');var options={navbar:{title:'<span class="mmenu-custom-close" ></span>'},extensions:['pagedim-black'],};var extensions={offCanvas:{pageNodetype:'.traveltour-body-outer-wrapper'}};$(this).find('a[href="#"]').each(function(){var content=$(this).html();$('<span class="traveltour-mm-menu-blank" ></span>').html(content).insertBefore($(this));$(this).remove();});if($(this).attr('data-slide')){var html_class='traveltour-mmenu-'+$(this).attr('data-slide');$('html').addClass(html_class);options.offCanvas={position:$(this).attr('data-slide')};}
$(this).mmenu(options,extensions);var menu_api=$(this).data('mmenu');$(this).find('a').not('.mm-next, .mm-prev').click(function(){menu_api.close();});$(this).find('.mmenu-custom-close').click(function(){menu_api.close();});menu_api.bind('open',function($panel){menu_button.addClass('traveltour-active');});menu_api.bind('close',function($panel){menu_button.removeClass('traveltour-active');});}
var traveltour_overlay_menu=function(menu){this.menu=menu;this.menu_button=menu.children('.traveltour-overlay-menu-icon');this.menu_content=menu.children('.traveltour-overlay-menu-content');this.menu_close=this.menu_content.children('.traveltour-overlay-menu-close');this.init();}
traveltour_overlay_menu.prototype={init:function(){var t=this;var delay_count=0;t.menu_content.appendTo('body');t.menu_content.find('ul.menu > li').each(function(){$(this).css('transition-delay',(delay_count*150)+'ms');delay_count++;});t.menu_button.click(function(){$(this).addClass('traveltour-active');t.menu_content.fadeIn(200,function(){$(this).addClass('traveltour-active');});return false;});t.menu_close.click(function(){t.menu_button.removeClass('traveltour-active');t.menu_content.fadeOut(400,function(){$(this).removeClass('traveltour-active');});t.menu_content.find('.sub-menu').slideUp(200).removeClass('traveltour-active');return false;});t.menu_content.find('a').click(function(e){var sub_menu=$(this).siblings('.sub-menu');if(sub_menu.length>0){if(!sub_menu.hasClass('traveltour-active')){var prev_active=sub_menu.closest('li').siblings().find('.sub-menu.traveltour-active');if(prev_active.length>0){prev_active.removeClass('traveltour-active').slideUp(150);sub_menu.delay(150).slideDown(400,'easeOutQuart').addClass('traveltour-active');}else{sub_menu.slideDown(400,'easeOutQuart').addClass('traveltour-active');}
$(this).addClass('traveltour-no-preload');return false;}else{$(this).removeClass('traveltour-no-preload');}}else{t.menu_close.trigger('click');}});}};var traveltour_header_side_nav=function(side_nav){if(side_nav.length==0)return;this.prev_scroll=0;this.side_nav=side_nav;this.side_nav_content=side_nav.children();this.init();}
traveltour_header_side_nav.prototype={init:function(){var t=this;t.init_nav_bar_element();$(window).resize(function(){t.init_nav_bar_element();});$(window).scroll(function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet')return;if(t.side_nav.hasClass('traveltour-allow-slide')){var admin_bar_height=parseInt($('html').css('margin-top'));var scroll_down=($(window).scrollTop()>t.prev_scroll);t.prev_scroll=$(window).scrollTop();if(scroll_down){if(!t.side_nav.hasClass('traveltour-fix-bottom')){if(t.side_nav.hasClass('traveltour-fix-top')){t.side_nav.css('top',t.side_nav.offset().top);t.side_nav.removeClass('traveltour-fix-top');}else if($(window).height()+$(window).scrollTop()>t.side_nav_content.offset().top+t.side_nav_content.outerHeight()){if(!t.side_nav.hasClass('traveltour-fix-bottom')){t.side_nav.addClass('traveltour-fix-bottom');t.side_nav.css('top','');}}}}else{if(!t.side_nav.hasClass('traveltour-fix-top')){if(t.side_nav.hasClass('traveltour-fix-bottom')){var top_pos=$(window).scrollTop()+($(window).height()-admin_bar_height)-t.side_nav_content.outerHeight();t.side_nav.css('top',top_pos);t.side_nav.removeClass('traveltour-fix-bottom');}else if($(window).scrollTop()+admin_bar_height<t.side_nav_content.offset().top){if(!t.side_nav.hasClass('traveltour-fix-top')){t.side_nav.addClass('traveltour-fix-top');t.side_nav.css('top','');}}}}}});},init_nav_bar_element:function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet')return;var t=this;var middle_pos=t.side_nav_content.children('.traveltour-pos-middle').addClass('traveltour-active');var bottom_pos=t.side_nav_content.children('.traveltour-pos-bottom').addClass('traveltour-active');t.side_nav_content.children('.traveltour-pre-spaces').remove();if($(window).height()<t.side_nav_content.height()){t.side_nav.addClass('traveltour-allow-slide');}else{t.side_nav.removeClass('traveltour-allow-slide traveltour-fix-top traveltour-fix-bottom').css('top','');if(t.side_nav.hasClass('traveltour-style-middle')){middle_pos.each(function(){var top_padding=parseInt($(this).css('padding-top'));var prespace=((t.side_nav.height()-(t.side_nav_content.height()-top_padding))/2)-top_padding;if(prespace>0){$('<div class="traveltour-pre-spaces" ></div>').css('height',prespace).insertBefore($(this));}});}
bottom_pos.each(function(){var prespace=t.side_nav.height()-t.side_nav_content.height();if(prespace>0){$('<div class="traveltour-pre-spaces" ></div>').css('height',prespace).insertBefore($(this));}});}}};var traveltour_anchor=function(){this.anchor_link=$('a[href^="#"]').not('[href="#"]').filter(function(){if($(this).is('.traveltour-mm-menu-button, .mm-next, .mm-prev, .mm-title, .gdlr-core-ilightbox')){return false;}
if($(this).is('.fbx-btn-transition')){return false;}
if(!$(this).hasClass('traveltour-footer-back-to-top-button')){if($(this).parent('.description_tab, .reviews_tab').length||$(this).closest('.woocommerce').length){return false;}}
return true;});if(this.anchor_link.length){this.menu_anchor=$('#traveltour-main-menu, #traveltour-bullet-anchor, #tourmaster-content-navigation-item-outer');this.home_anchor=this.menu_anchor.find('ul.sf-menu > li.current-menu-item > a, ul.sf-menu > li.current-menu-ancestor > a, .traveltour-bullet-anchor-link.current-menu-item, .tourmaster-content-navigation-tab.tourmaster-active');this.init();}}
traveltour_anchor.prototype={init:function(){var t=this;t.animate_anchor();t.scroll_section();t.menu_anchor.filter('#traveltour-bullet-anchor').each(function(){$(this).css('margin-top',-t.menu_anchor.height()/2).addClass('traveltour-init');});var url_hash=window.location.hash;if(url_hash){setTimeout(function(){var current_menu=t.menu_anchor.find('a[href*="'+url_hash+'"]');if(!current_menu.is('.current-menu-item, .current-menu-ancestor')){current_menu.addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');$(window).trigger('traveltour-navigation-slider-bar-init');}
t.scroll_to(url_hash,false,300);},500);}},animate_anchor:function(){var t=this;t.home_anchor.click(function(){if(window.location.href==this.href){$('html, body').animate({scrollTop:0},{duration:1500,easing:'easeOutQuart'});return false;}});t.anchor_link.click(function(){if(location.hostname==this.hostname&&location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')){return t.scroll_to(this.hash,true);}});},scroll_to:function(hash,redirect,duration){if(hash=='#traveltour-top-anchor'){var scroll_position=0;}else{var target=$(hash);if(target.length){var scroll_position=target.offset().top;}}
if(typeof(scroll_position)!='undefined'){scroll_position=scroll_position-parseInt($('html').css('margin-top'));if(typeof(window.traveltour_anchor_offset)!='undefined'){scroll_position=scroll_position-parseInt(window.traveltour_anchor_offset);}
if(scroll_position<0)scroll_position=0;$('html, body').animate({scrollTop:scroll_position},{duration:1500,easing:'easeOutQuart',queue:false});return false;}else if(redirect){if(hash!='#tourmaster-single-review'){window.location.href=traveltour_script_core.home_url+hash;}
return false;}},scroll_section:function(){var t=this;var menu_link_anchor=this.menu_anchor.find('a[href*="#"]').not('[href="#"]');if(!menu_link_anchor.length){return;}
var home_anchor_section=$('#traveltour-page-wrapper');var anchor_section=home_anchor_section.find('[id]').filter(function(){var hashId=$(this).attr('id');if(menu_link_anchor.filter('a[href*="#'+hashId+'"]').length){return true;}
return false;});if(!anchor_section.length){return;}
menu_link_anchor.each(function(){if($(this.hash).length){$(this).attr('data-anchor',this.hash);}});$(window).scroll(function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait')return;if(t.home_anchor.length&&$(window).scrollTop()<home_anchor_section.offset().top){t.home_anchor.each(function(){if($(this).hasClass('tourmaster-content-navigation-tab')){$(this).addClass('tourmaster-active').siblings().removeClass('tourmaster-active tourmaster-slidebar-active');}else if($(this).hasClass('traveltour-bullet-anchor-link')){$(this).addClass('current-menu-item').siblings().removeClass('current-menu-item');$(this).parent('.traveltour-bullet-anchor').attr('data-anchor-section','traveltour-home');}else if(!$(this).parent('.current-menu-item, .current-menu-ancestor').length){$(this).parent().addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');$(window).trigger('traveltour-navigation-slider-bar-init');}});}else{var section_position=$(window).scrollTop()+($(window).height()*0.3);anchor_section.each(function(){if($(this).css('display')=='none'||$(this).closest('.tourmaster-tour-booking-bar-wrap').length||$(this).is('#tourmaster-page-wrapper'))return;var top_offset_pos=$(this).offset().top;if((section_position>top_offset_pos)&&(section_position<top_offset_pos+$(this).outerHeight())){var section_id=$(this).attr('id');menu_link_anchor.filter('[data-anchor="#'+section_id+'"]').each(function(){if($(this).hasClass('tourmaster-content-navigation-tab')){$(this).addClass('tourmaster-active').siblings().removeClass('tourmaster-active tourmaster-slidebar-active');$(this).closest('#tourmaster-content-navigation-item-outer').trigger('tourmaster-change');}else if($(this).hasClass('traveltour-bullet-anchor-link')){$(this).addClass('current-menu-item').siblings().removeClass('current-menu-item');$(this).parent('.traveltour-bullet-anchor').attr('data-anchor-section',section_id);}else if($(this).parent('li.menu-item').length&&!$(this).parent('li.menu-item').is('.current-menu-item, .current-menu-ancestor')){$(this).parent('li.menu-item').addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');$(window).trigger('traveltour-navigation-slider-bar-init');}});return false;}});}});}};var traveltour_sticky_navigation=function(){this.sticky_nav=$('.traveltour-with-sticky-navigation .traveltour-sticky-navigation');this.logo_height=35;if(this.sticky_nav.length){this.mobile_menu=$('#traveltour-mobile-header');this.init();}}
traveltour_sticky_navigation.prototype={init:function(){var t=this;if(t.sticky_nav.hasClass('traveltour-style-fixed')){t.style_fixed();}else if(t.sticky_nav.hasClass('traveltour-style-slide')){t.style_slide();}
t.style_mobile_slide();if(t.sticky_nav.hasClass('traveltour-sticky-navigation-height')){window.traveltour_anchor_offset=t.sticky_nav.outerHeight();$(window).resize(function(){window.traveltour_anchor_offset=t.sticky_nav.outerHeight();});}else{window.traveltour_anchor_offset=75;}
$(window).trigger('traveltour-set-sticky-navigation');$(window).trigger('traveltour-set-sticky-mobile-navigation');},style_fixed:function(){var t=this;var placeholder=$('<div class="traveltour-sticky-menu-placeholder" ></div>');$(window).on('scroll traveltour-set-sticky-navigation',function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet')return;var page_offset=parseInt($('html').css('margin-top'));if(!t.sticky_nav.hasClass('traveltour-fixed-navigation')){if($(window).scrollTop()+page_offset>t.sticky_nav.offset().top){if(!t.sticky_nav.hasClass('traveltour-without-placeholder')){placeholder.height(t.sticky_nav.outerHeight());}
placeholder.insertAfter(t.sticky_nav);$('body').append(t.sticky_nav);t.sticky_nav.addClass('traveltour-fixed-navigation');setTimeout(function(){t.sticky_nav.addClass('traveltour-animate-fixed-navigation');},10);setTimeout(function(){t.sticky_nav.css('height','');$(window).trigger('traveltour-navigation-slider-bar-animate');},200);}}else{if($(window).scrollTop()+page_offset<=placeholder.offset().top){if(!t.sticky_nav.hasClass('traveltour-without-placeholder')){t.sticky_nav.height(placeholder.height());}
t.sticky_nav.insertBefore(placeholder);t.sticky_nav.removeClass('traveltour-fixed-navigation');placeholder.remove();setTimeout(function(){t.sticky_nav.removeClass('traveltour-animate-fixed-navigation traveltour-animate-logo-height');},10);setTimeout(function(){t.sticky_nav.css('height','');$(window).trigger('traveltour-navigation-slider-bar-animate');},200);}}});},style_slide:function(){var t=this;var placeholder=$('<div class="traveltour-sticky-menu-placeholder" ></div>');$(window).on('scroll traveltour-set-sticky-navigation',function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet'){return;}
var page_offset=parseInt($('html').css('margin-top'));if(!t.sticky_nav.hasClass('traveltour-fixed-navigation')){if($(window).scrollTop()+page_offset>t.sticky_nav.offset().top+t.sticky_nav.outerHeight()+200){if(!t.sticky_nav.hasClass('traveltour-without-placeholder')){placeholder.height(t.sticky_nav.outerHeight());}
placeholder.insertAfter(t.sticky_nav);t.sticky_nav.css('display','none');$('body').append(t.sticky_nav);t.sticky_nav.addClass('traveltour-fixed-navigation traveltour-animate-fixed-navigation');t.sticky_nav.slideDown(200);$(window).trigger('traveltour-navigation-slider-bar-animate');}}else{if($(window).scrollTop()+page_offset<=placeholder.offset().top+placeholder.height()+200){var clone=t.sticky_nav.clone();clone.insertAfter(t.sticky_nav);clone.slideUp(200,function(){$(this).remove();});t.sticky_nav.insertBefore(placeholder);placeholder.remove();t.sticky_nav.removeClass('traveltour-fixed-navigation traveltour-animate-fixed-navigation');t.sticky_nav.css('display','block');$(window).trigger('traveltour-navigation-slider-bar-animate');}}});},style_mobile_slide:function(){var t=this;var placeholder=$('<div class="traveltour-sticky-mobile-placeholder" ></div>');$(window).on('scroll traveltour-set-sticky-mobile-navigation',function(){if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'||traveltour_display=='tablet'){var page_offset=parseInt($('html').css('margin-top'));if(!t.mobile_menu.hasClass('traveltour-fixed-navigation')){if($(window).scrollTop()+page_offset>t.mobile_menu.offset().top+t.mobile_menu.outerHeight()+200){placeholder.height(t.mobile_menu.outerHeight()).insertAfter(t.mobile_menu);$('body').append(t.mobile_menu);t.mobile_menu.addClass('traveltour-fixed-navigation');t.mobile_menu.css('display','none').slideDown(200);}}else{if($(window).scrollTop()+page_offset<=placeholder.offset().top+placeholder.height()+200){var clone=t.mobile_menu.clone();clone.insertAfter(t.mobile_menu);clone.slideUp(200,function(){$(this).remove();});t.mobile_menu.insertBefore(placeholder);placeholder.remove();t.mobile_menu.removeClass('traveltour-fixed-navigation');t.mobile_menu.css('display','block');}}}});},};var traveltour_font_resize=function(){this.heading_font=$('h1, h2, h3, h4, h5, h6');this.init();}
traveltour_font_resize.prototype={init:function(){var t=this;t.resize();$(window).on('resize',traveltour_throttling(function(){t.resize();},100));},resize:function(){var t=this;if(traveltour_display=='mobile-landscape'||traveltour_display=='mobile-portrait'){t.heading_font.each(function(){if(parseInt($(this).css('font-size'))>40){if(!$(this).attr('data-orig-font')){$(this).attr('data-orig-font',$(this).css('font-size'));}
$(this).css('font-size','40px');}});}else{t.heading_font.filter('[data-orig-font]').each(function(){$(this).css('font-size',$(this).attr('data-orig-font'));});}}};$(document).ready(function(){new traveltour_font_resize();$('#traveltour-main-menu, #traveltour-right-menu, #traveltour-mobile-menu').each(function(){if($(this).hasClass('traveltour-overlay-menu')){new traveltour_overlay_menu($(this));}else if($(this).hasClass('traveltour-mm-menu-wrap')){$(this).traveltour_mobile_menu();}else{new traveltour_sf_menu($(this));}});$('#traveltour-top-search, #traveltour-mobile-top-search').each(function(){var search_wrap=$(this).siblings('.traveltour-top-search-wrap');search_wrap.appendTo('body');$(this).click(function(){search_wrap.fadeIn(200,function(){$(this).addClass('traveltour-active');});});search_wrap.find('.traveltour-top-search-close').click(function(){search_wrap.fadeOut(200,function(){$(this).addClass('traveltour-active');});});search_wrap.find('.search-submit').click(function(){if(search_wrap.find('.search-field').val().length==0){return false;}});});$('#traveltour-main-menu-cart, #traveltour-mobile-menu-cart').each(function(){$(this).hover(function(){$(this).addClass('traveltour-active traveltour-animating');},function(){var menu_cart=$(this);menu_cart.removeClass('traveltour-active');setTimeout(function(){menu_cart.removeClass('traveltour-animating');},400)});});$('#traveltour-dropdown-wpml-flag').hover(function(){$(this).children('.traveltour-dropdown-wpml-list').fadeIn(200);},function(){$(this).children('.traveltour-dropdown-wpml-list').fadeOut(200);});$('.traveltour-header-boxed-wrap, .traveltour-header-background-transparent, .traveltour-navigation-bar-wrap.traveltour-style-transparent').each(function(){var header_transparent=$(this);var header_transparent_sub=$('.traveltour-header-transparent-substitute');header_transparent_sub.height(header_transparent.outerHeight());$(window).on('load resize',function(){header_transparent_sub.height(header_transparent.outerHeight());});});$('body.error404, body.search-no-results').each(function(){var wrap=$(this).find('#traveltour-full-no-header-wrap');var body_wrap_offset=parseInt($(this).children('.traveltour-body-outer-wrapper').children('.traveltour-body-wrapper').css('margin-bottom'));var padding=($(window).height()-wrap.offset().top-wrap.outerHeight()-body_wrap_offset)/2;if(padding>0){wrap.css({'padding-top':padding,'padding-bottom':padding});}
$(window).on('load resize',function(){wrap.css({'padding-top':0,'padding-bottom':0});padding=($(window).height()-wrap.offset().top-wrap.outerHeight()-body_wrap_offset)/2;if(padding>0){wrap.css({'padding-top':padding,'padding-bottom':padding});}});});var back_to_top=$('#traveltour-footer-back-to-top-button');if(back_to_top.length){$(window).on('scroll',function(){if($(window).scrollTop()>300){back_to_top.addClass('traveltour-scrolled');}else{back_to_top.removeClass('traveltour-scrolled');}});}
$('body').children('#traveltour-page-preload').each(function(){var page_preload=$(this);var animation_time=parseInt(page_preload.attr('data-animation-time'));$('a[href]').not('.chaty-tooltip, [href^="tel:"], [href^="mailto:"], [href^="#"], [target="_blank"], .gdlr-core-js, .strip, .add_to_cart_button, .sf-with-ul, .comment-reply-link').click(function(e){if(e.which!=1||$(this).hasClass('traveltour-no-preload'))return;if($(this).closest('.woocommerce-cart-form').length)return;if(window.location.href!=this.href){page_preload.addClass('traveltour-out').fadeIn(animation_time);}});$(window).on('load',function(){page_preload.fadeOut(animation_time);});});});$(window).bind('pageshow',function(event){$('body').children('#traveltour-page-preload').each(function(){$(this).fadeOut(400);});});$(window).load(function(){$('#traveltour-fixed-footer').each(function(){var fixed_footer=$(this);var placeholder=$('<div class="traveltour-fixed-footer-placeholder" ></div>');placeholder.insertBefore(fixed_footer);placeholder.height(fixed_footer.outerHeight());$(window).resize(function(){placeholder.height(fixed_footer.outerHeight());});});new traveltour_header_side_nav($('#traveltour-header-side-nav'));if(!$('body').hasClass('single-tour')&&!$('body').hasClass('tourmaster-template-payment')){new traveltour_sticky_navigation();}
new traveltour_anchor();});})(jQuery);!function(e){function t(){e[n].glbl||(r={$wndw:e(window),$docu:e(document),$html:e("html"),$body:e("body")},i={},a={},o={},e.each([i,a,o],function(e,t){t.add=function(e){e=e.split(" ");for(var n=0,s=e.length;s>n;n++)t[e[n]]=t.mm(e[n])}}),i.mm=function(e){return"mm-"+e},i.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),i.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},a.mm=function(e){return"mm-"+e},a.add("parent sub"),o.mm=function(e){return e+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),e[n]._c=i,e[n]._d=a,e[n]._e=o,e[n].glbl=r)}var n="mmenu",s="5.6.1";if(!(e[n]&&e[n].version>s)){e[n]=function(e,t,n){this.$menu=e,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=t,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var s=this.$pnls.children();return this._initAddons(),this.init(s),"function"==typeof this.___debug&&this.___debug(),this},e[n].version=s,e[n].addons={},e[n].uniqueId=0,e[n].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},e[n].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},e[n].prototype={init:function(e){e=e.not("."+i.nopanel),e=this._initPanels(e),this.trigger("init",e),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(e){this.$menu.find("."+i.listview).children().removeClass(i.selected),e.addClass(i.selected),this.trigger("setSelected",e)},openPanel:function(t){var s=t.parent(),a=this;if(s.hasClass(i.vertical)){var o=s.parents("."+i.subopened);if(o.length)return void this.openPanel(o.first());s.addClass(i.opened),this.trigger("openPanel",t),this.trigger("openingPanel",t),this.trigger("openedPanel",t)}else{if(t.hasClass(i.current))return;var r=this.$pnls.children("."+i.panel),l=r.filter("."+i.current);r.removeClass(i.highest).removeClass(i.current).not(t).not(l).not("."+i.vertical).addClass(i.hidden),e[n].support.csstransitions||l.addClass(i.hidden),t.hasClass(i.opened)?t.nextAll("."+i.opened).addClass(i.highest).removeClass(i.opened).removeClass(i.subopened):(t.addClass(i.highest),l.addClass(i.subopened)),t.removeClass(i.hidden).addClass(i.current),a.trigger("openPanel",t),setTimeout(function(){t.removeClass(i.subopened).addClass(i.opened),a.trigger("openingPanel",t),a.__transitionend(t,function(){a.trigger("openedPanel",t)},a.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(e){var t=e.parent();t.hasClass(i.vertical)&&(t.removeClass(i.opened),this.trigger("closePanel",e),this.trigger("closingPanel",e),this.trigger("closedPanel",e))},closeAllPanels:function(){this.$menu.find("."+i.listview).children().removeClass(i.selected).filter("."+i.vertical).removeClass(i.opened);var e=this.$pnls.children("."+i.panel),t=e.first();this.$pnls.children("."+i.panel).not(t).removeClass(i.subopened).removeClass(i.opened).removeClass(i.current).removeClass(i.highest).addClass(i.hidden),this.openPanel(t)},togglePanel:function(e){var t=e.parent();t.hasClass(i.vertical)&&this[t.hasClass(i.opened)?"closePanel":"openPanel"](e)},getInstance:function(){return this},bind:function(e,t){this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(t)},trigger:function(){var e=this,t=Array.prototype.slice.call(arguments),n=t.shift();if(this.cbck[n])for(var s=0,i=this.cbck[n].length;i>s;s++)this.cbck[n][s].apply(e,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){e(this).attr("id",i.mm(e(this).attr("id")))})),this.$menu.contents().each(function(){3==e(this)[0].nodeType&&e(this).remove()}),this.$pnls=e('<div class="'+i.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(i.wrapper);var t=[i.menu];this.opts.slidingSubmenus||t.push(i.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&t.push(this.opts.extensions),this.$menu.addClass(t.join(" "))},_initPanels:function(t){var n=this,s=this.__findAddBack(t,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(i.nolistview+" "+i.nopanel),s.not("."+i.nolistview).addClass(i.listview);var o=this.__findAddBack(t,"."+i.listview).children();this.__refactorClass(o,this.conf.classNames.selected,"selected"),this.__refactorClass(o,this.conf.classNames.divider,"divider"),this.__refactorClass(o,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(t,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var r=e(),l=t.add(t.find("."+i.panel)).add(this.__findAddBack(t,"."+i.listview).children().children(this.conf.panelNodetype)).not("."+i.nopanel);this.__refactorClass(l,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||l.addClass(i.vertical),l.each(function(){var t=e(this),s=t;t.is("ul, ol")?(t.wrap('<div class="'+i.panel+'" />'),s=t.parent()):s.addClass(i.panel);var a=t.attr("id");t.removeAttr("id"),s.attr("id",a||n.__getUniqueId()),t.hasClass(i.vertical)&&(t.removeClass(n.conf.classNames.vertical),s.add(s.parent()).addClass(i.vertical)),r=r.add(s)});var d=e("."+i.panel,this.$menu);r.each(function(t){var s,o,r=e(this),l=r.parent(),d=l.children("a, span").first();if(l.is("."+i.panels)||(l.data(a.sub,r),r.data(a.parent,l)),l.children("."+i.next).length||l.parent().is("."+i.listview)&&(s=r.attr("id"),o=e('<a class="'+i.next+'" href="#'+s+'" data-target="#'+s+'" />').insertBefore(d),d.is("span")&&o.addClass(i.fullsubopen)),!r.children("."+i.navbar).length&&!l.hasClass(i.vertical)){l.parent().is("."+i.listview)?l=l.closest("."+i.panel):(d=l.closest("."+i.panel).find('a[href="#'+r.attr("id")+'"]').first(),l=d.closest("."+i.panel));var c=e('<div class="'+i.navbar+'" />');if(l.length){switch(s=l.attr("id"),n.opts.navbar.titleLink){case"anchor":_url=d.attr("href");break;case"panel":case"parent":_url="#"+s;break;default:_url=!1}c.append('<a class="'+i.btn+" "+i.prev+'" href="#'+s+'" data-target="#'+s+'" />').append(e('<a class="'+i.title+'"'+(_url?' href="'+_url+'"':"")+" />").text(d.text())).prependTo(r),n.opts.navbar.add&&r.addClass(i.hasnavbar)}else n.opts.navbar.title&&(c.append('<a class="'+i.title+'">'+n.opts.navbar.title+"</a>").prependTo(r),n.opts.navbar.add&&r.addClass(i.hasnavbar))}});var c=this.__findAddBack(t,"."+i.listview).children("."+i.selected).removeClass(i.selected).last().addClass(i.selected);c.add(c.parentsUntil("."+i.menu,"li")).filter("."+i.vertical).addClass(i.opened).end().each(function(){e(this).parentsUntil("."+i.menu,"."+i.panel).not("."+i.vertical).first().addClass(i.opened).parentsUntil("."+i.menu,"."+i.panel).not("."+i.vertical).first().addClass(i.opened).addClass(i.subopened)}),c.children("."+i.panel).not("."+i.vertical).addClass(i.opened).parentsUntil("."+i.menu,"."+i.panel).not("."+i.vertical).first().addClass(i.opened).addClass(i.subopened);var p=d.filter("."+i.opened);return p.length||(p=r.first()),p.addClass(i.opened).last().addClass(i.current),r.not("."+i.vertical).not(p.last()).addClass(i.hidden).end().filter(function(){return!e(this).parent().hasClass(i.panels)}).appendTo(this.$pnls),r},_initAnchors:function(){var t=this;r.$body.on(o.click+"-oncanvas","a[href]",function(s){var a=e(this),o=!1,r=t.$menu.find(a).length;for(var l in e[n].addons)if(e[n].addons[l].clickAnchor.call(t,a,r)){o=!0;break}var d=a.attr("href");if(!o&&r&&d.length>1&&"#"==d.slice(0,1))try{var c=e(d,t.$menu);c.is("."+i.panel)&&(o=!0,t[a.parent().hasClass(i.vertical)?"togglePanel":"openPanel"](c))}catch(p){}if(o&&s.preventDefault(),!o&&r&&a.is("."+i.listview+" > li > a")&&!a.is('[rel="external"]')&&!a.is('[target="_blank"]')){t.__valueOrFn(t.opts.onClick.setSelected,a)&&t.setSelected(e(s.target).parent());var h=t.__valueOrFn(t.opts.onClick.preventDefault,a,"#"==d.slice(0,1));h&&s.preventDefault(),t.__valueOrFn(t.opts.onClick.close,a,h)&&t.close()}})},_initAddons:function(){var t;for(t in e[n].addons)e[n].addons[t].add.call(this),e[n].addons[t].add=function(){};for(t in e[n].addons)e[n].addons[t].setup.call(this)},_getOriginalMenuId:function(){var e=this.$menu.attr("id");return e&&e.length&&this.conf.clone&&(e=i.umm(e)),e},__api:function(){var t=this,n={};return e.each(this._api,function(e){var s=this;n[s]=function(){var e=t[s].apply(t,arguments);return"undefined"==typeof e?n:e}}),n},__valueOrFn:function(e,t,n){return"function"==typeof e?e.call(t[0]):"undefined"==typeof e&&"undefined"!=typeof n?n:e},__refactorClass:function(e,t,n){return e.filter("."+t).removeClass(t).addClass(i[n])},__findAddBack:function(e,t){return e.find(t).add(e.filter(t))},__filterListItems:function(e){return e.not("."+i.divider).not("."+i.hidden)},__transitionend:function(e,t,n){var s=!1,i=function(){s||t.call(e[0]),s=!0};e.one(o.transitionend,i),e.one(o.webkitTransitionEnd,i),setTimeout(i,1.1*n)},__getUniqueId:function(){return i.mm(e[n].uniqueId++)}},e.fn[n]=function(s,i){return t(),s=e.extend(!0,{},e[n].defaults,s),i=e.extend(!0,{},e[n].configuration,i),this.each(function(){var t=e(this);if(!t.data(n)){var a=new e[n](t,s,i);a.$menu.data(n,a.__api())}})},e[n].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&"undefined"!=typeof Modernizr.csstransitions)return Modernizr.csstransitions;var e=document.body||document.documentElement,t=e.style,n="transition";if("string"==typeof t[n])return!0;var s=["Moz","webkit","Webkit","Khtml","O","ms"];n=n.charAt(0).toUpperCase()+n.substr(1);for(var i=0;i<s.length;i++)if("string"==typeof t[s[i]+n])return!0;return!1}()};var i,a,o,r}}(jQuery),function(e){var t="mmenu",n="offCanvas";e[t].addons[n]={setup:function(){if(this.opts[n]){var i=this.opts[n],a=this.conf[n];o=e[t].glbl,this._api=e.merge(this._api,["open","close","setPage"]),("top"==i.position||"bottom"==i.position)&&(i.zposition="front"),"string"!=typeof a.pageSelector&&(a.pageSelector="> "+a.pageNodetype),o.$allMenus=(o.$allMenus||e()).add(this.$menu),this.vars.opened=!1;var r=[s.offcanvas];"left"!=i.position&&r.push(s.mm(i.position)),"back"!=i.zposition&&r.push(s.mm(i.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(s.wrapper),this.setPage(o.$page),this._initBlocker(),this["_initWindow_"+n](),this.$menu[a.menuInjectMethod+"To"](a.menuWrapperSelector);var l=window.location.hash;if(l){var d=this._getOriginalMenuId();d&&d==l.slice(1)&&this.open()}}},add:function(){s=e[t]._c,i=e[t]._d,a=e[t]._e,s.add("offcanvas slideout blocking modal background opening blocker page"),i.add("style"),a.add("resize")},clickAnchor:function(e,t){if(!this.opts[n])return!1;var s=this._getOriginalMenuId();if(s&&e.is('[href="#'+s+'"]'))return this.open(),!0;if(o.$page)return s=o.$page.first().attr("id"),s&&e.is('[href="#'+s+'"]')?(this.close(),!0):!1}},e[t].defaults[n]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},e[t].configuration[n]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},e[t].prototype.open=function(){if(!this.vars.opened){var e=this;this._openSetup(),setTimeout(function(){e._openFinish()},this.conf.openingInterval),this.trigger("open")}},e[t].prototype._openSetup=function(){var t=this,r=this.opts[n];this.closeAllOthers(),o.$page.each(function(){e(this).data(i.style,e(this).attr("style")||"")}),o.$wndw.trigger(a.resize+"-"+n,[!0]);var l=[s.opened];r.blockUI&&l.push(s.blocking),"modal"==r.blockUI&&l.push(s.modal),r.moveBackground&&l.push(s.background),"left"!=r.position&&l.push(s.mm(this.opts[n].position)),"back"!=r.zposition&&l.push(s.mm(this.opts[n].zposition)),this.opts.extensions&&l.push(this.opts.extensions),o.$html.addClass(l.join(" ")),setTimeout(function(){t.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(s.current+" "+s.opened)},e[t].prototype._openFinish=function(){var e=this;this.__transitionend(o.$page.first(),function(){e.trigger("opened")},this.conf.transitionDuration),o.$html.addClass(s.opening),this.trigger("opening")},e[t].prototype.close=function(){if(this.vars.opened){var t=this;this.__transitionend(o.$page.first(),function(){t.$menu.removeClass(s.current).removeClass(s.opened),o.$html.removeClass(s.opened).removeClass(s.blocking).removeClass(s.modal).removeClass(s.background).removeClass(s.mm(t.opts[n].position)).removeClass(s.mm(t.opts[n].zposition)),t.opts.extensions&&o.$html.removeClass(t.opts.extensions),o.$page.each(function(){e(this).attr("style",e(this).data(i.style))}),t.vars.opened=!1,t.trigger("closed")},this.conf.transitionDuration),o.$html.removeClass(s.opening),this.trigger("close"),this.trigger("closing")}},e[t].prototype.closeAllOthers=function(){o.$allMenus.not(this.$menu).each(function(){var n=e(this).data(t);n&&n.close&&n.close()})},e[t].prototype.setPage=function(t){var i=this,a=this.conf[n];t&&t.length||(t=o.$body.find(a.pageSelector),a.noPageSelector.length&&(t=t.not(a.noPageSelector.join(", "))),t.length>1&&a.wrapPageIfNeeded&&(t=t.wrapAll("<"+this.conf[n].pageNodetype+" />").parent())),t.each(function(){e(this).attr("id",e(this).attr("id")||i.__getUniqueId())}),t.addClass(s.page+" "+s.slideout),o.$page=t,this.trigger("setPage",t)},e[t].prototype["_initWindow_"+n]=function(){o.$wndw.off(a.keydown+"-"+n).on(a.keydown+"-"+n,function(e){return o.$html.hasClass(s.opened)&&9==e.keyCode?(e.preventDefault(),!1):void 0});var e=0;o.$wndw.off(a.resize+"-"+n).on(a.resize+"-"+n,function(t,n){if(1==o.$page.length&&(n||o.$html.hasClass(s.opened))){var i=o.$wndw.height();(n||i!=e)&&(e=i,o.$page.css("minHeight",i))}})},e[t].prototype._initBlocker=function(){var t=this;this.opts[n].blockUI&&(o.$blck||(o.$blck=e('<div id="'+s.blocker+'" class="'+s.slideout+'" />')),o.$blck.appendTo(o.$body).off(a.touchstart+"-"+n+" "+a.touchmove+"-"+n).on(a.touchstart+"-"+n+" "+a.touchmove+"-"+n,function(e){e.preventDefault(),e.stopPropagation(),o.$blck.trigger(a.mousedown+"-"+n)}).off(a.mousedown+"-"+n).on(a.mousedown+"-"+n,function(e){e.preventDefault(),o.$html.hasClass(s.modal)||(t.closeAllOthers(),t.close())}))};var s,i,a,o}(jQuery),function(e){var t="mmenu",n="scrollBugFix";e[t].addons[n]={setup:function(){var i=this,r=this.opts[n];this.conf[n];if(o=e[t].glbl,e[t].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.modal&&("boolean"==typeof r&&(r={fix:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=e.extend(!0,{},e[t].defaults[n],r),r.fix)){var l=this.$menu.attr("id"),d=!1;this.bind("opening",function(){this.$pnls.children("."+s.current).scrollTop(0)}),o.$docu.on(a.touchmove,function(e){i.vars.opened&&e.preventDefault()}),o.$body.on(a.touchstart,"#"+l+"> ."+s.panels+"> ."+s.current,function(e){i.vars.opened&&(d||(d=!0,0===e.currentTarget.scrollTop?e.currentTarget.scrollTop=1:e.currentTarget.scrollHeight===e.currentTarget.scrollTop+e.currentTarget.offsetHeight&&(e.currentTarget.scrollTop-=1),d=!1))}).on(a.touchmove,"#"+l+"> ."+s.panels+"> ."+s.current,function(t){i.vars.opened&&e(this)[0].scrollHeight>e(this).innerHeight()&&t.stopPropagation()}),o.$wndw.on(a.orientationchange,function(){i.$pnls.children("."+s.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){s=e[t]._c,i=e[t]._d,a=e[t]._e},clickAnchor:function(e,t){}},e[t].defaults[n]={fix:!0};var s,i,a,o}(jQuery);!function(e,s){"use strict";var o=function(){var o={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},t=function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return s&&e("html").css("cursor","pointer").on("click",e.noop),s}(),n=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),i=function(){return!!s.PointerEvent}(),r=function(e,s){var t=o.menuClass;s.cssArrows&&(t+=" "+o.menuArrowClass),e.toggleClass(t)},a=function(s,t){return s.find("li."+t.pathClass).slice(0,t.pathLevels).addClass(t.hoverClass+" "+o.bcClass).filter(function(){return e(this).children(t.popUpSelector).hide().show().length}).removeClass(t.pathClass)},l=function(e){e.children("a").toggleClass(o.anchorClass)},h=function(e){var s=e.css("ms-touch-action"),o=e.css("touch-action");o=o||s,o="pan-y"===o?"auto":"pan-y",e.css({"ms-touch-action":o,"touch-action":o})},u=function(s,o){var r="li:has("+o.popUpSelector+")";e.fn.hoverIntent&&!o.disableHI?s.hoverIntent(c,f,r):s.on("mouseenter.superfish",r,c).on("mouseleave.superfish",r,f);var a="MSPointerDown.superfish";i&&(a="pointerdown.superfish"),t||(a+=" touchend.superfish"),n&&(a+=" mousedown.superfish"),s.on("focusin.superfish","li",c).on("focusout.superfish","li",f).on(a,"a",o,p)},p=function(s){var o=e(this),t=m(o),n=o.siblings(s.data.popUpSelector);return t.onHandleTouch.call(n)===!1?this:void(n.length>0&&n.is(":hidden")&&(o.one("click.superfish",!1),"MSPointerDown"===s.type||"pointerdown"===s.type?o.trigger("focus"):e.proxy(c,o.parent("li"))()))},c=function(){var s=e(this),o=m(s);clearTimeout(o.sfTimer),s.siblings().superfish("hide").end().superfish("show")},f=function(){var s=e(this),o=m(s);t?e.proxy(d,s,o)():(clearTimeout(o.sfTimer),o.sfTimer=setTimeout(e.proxy(d,s,o),o.delay))},d=function(s){s.retainPath=e.inArray(this[0],s.$path)>-1,this.superfish("hide"),this.parents("."+s.hoverClass).length||(s.onIdle.call(v(this)),s.$path.length&&e.proxy(c,s.$path)())},v=function(e){return e.closest("."+o.menuClass)},m=function(e){return v(e).data("sf-options")};return{hide:function(s){if(this.length){var o=this,t=m(o);if(!t)return this;var n=t.retainPath===!0?t.$path:"",i=o.find("li."+t.hoverClass).add(this).not(n).removeClass(t.hoverClass).children(t.popUpSelector),r=t.speedOut;if(s&&(i.show(),r=0),t.retainPath=!1,t.onBeforeHide.call(i)===!1)return this;i.stop(!0,!0).animate(t.animationOut,r,"easeOutQuad",function(){var s=e(this);t.onHide.call(s)})}return this},show:function(){var e=m(this);if(!e)return this;var s=this.addClass(e.hoverClass),o=s.children(e.popUpSelector);return e.onBeforeShow.call(o)===!1?this:(o.stop(!0,!0).animate(e.animation,e.speed,"easeOutQuad",function(){e.onShow.call(o)}),this)},destroy:function(){return this.each(function(){var s,t=e(this),n=t.data("sf-options");return n?(s=t.find(n.popUpSelector).parent("li"),clearTimeout(n.sfTimer),r(t,n),l(s),h(t),t.off(".superfish").off(".hoverIntent"),s.children(n.popUpSelector).attr("style",function(e,s){return s.replace(/display[^;]+;?/g,"")}),n.$path.removeClass(n.hoverClass+" "+o.bcClass).addClass(n.pathClass),t.find("."+n.hoverClass).removeClass(n.hoverClass),n.onDestroy.call(t),void t.removeData("sf-options")):!1})},init:function(s){return this.each(function(){var t=e(this);if(t.data("sf-options"))return!1;var n=e.extend({},e.fn.superfish.defaults,s),i=t.find(n.popUpSelector).parent("li");n.$path=a(t,n),t.data("sf-options",n),r(t,n),l(i),h(t),u(t,n),i.not("."+o.bcClass).superfish("hide",!0),n.onInit.call(this)})}}}();e.fn.superfish=function(s,t){return o[s]?o[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?e.error("Method "+s+" does not exist on jQuery.fn.superfish"):o.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);
seraph_accel_gzjydy();window.ASL=typeof window.ASL!=='undefined'?window.ASL:{};window.ASL.wp_rocket_exception="DOMContentLoaded";window.ASL.ajaxurl="https:\/\/morocco-vacations.com\/wp-admin\/admin-ajax.php";window.ASL.backend_ajaxurl="https:\/\/morocco-vacations.com\/wp-admin\/admin-ajax.php";window.ASL.js_scope="jQuery";window.ASL.asl_url="https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/";window.ASL.detect_ajax=1;window.ASL.media_query=4765;window.ASL.version=4765;window.ASL.pageHTML="";window.ASL.additional_scripts=[{"handle":"wd-asl-ajaxsearchlite","src":"https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/js\/min\/plugin\/optimized\/asl-prereq.js","prereq":[]},{"handle":"wd-asl-ajaxsearchlite-core","src":"https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/js\/min\/plugin\/optimized\/asl-core.js","prereq":[]},{"handle":"wd-asl-ajaxsearchlite-vertical","src":"https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/js\/min\/plugin\/optimized\/asl-results-vertical.js","prereq":["wd-asl-ajaxsearchlite"]},{"handle":"wd-asl-ajaxsearchlite-autocomplete","src":"https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/js\/min\/plugin\/optimized\/asl-autocomplete.js","prereq":["wd-asl-ajaxsearchlite"]},{"handle":"wd-asl-ajaxsearchlite-load","src":"https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/js\/min\/plugin\/optimized\/asl-load.js","prereq":["wd-asl-ajaxsearchlite-autocomplete"]}];window.ASL.script_async_load=false;window.ASL.init_only_in_viewport=true;window.ASL.font_url="https:\/\/morocco-vacations.com\/wp-content\/plugins\/ajax-search-lite\/css\/fonts\/icons2.woff2";window.ASL.css_async=false;window.ASL.highlight={"enabled":false,"data":[]};window.ASL.analytics={"method":0,"tracking_id":"","string":"?ajax_search={asl_term}","event":{"focus":{"active":1,"action":"focus","category":"ASL","label":"Input focus","value":"1"},"search_start":{"active":0,"action":"search_start","category":"ASL","label":"Phrase: {phrase}","value":"1"},"search_end":{"active":1,"action":"search_end","category":"ASL","label":"{phrase} | {results_count}","value":"1"},"magnifier":{"active":1,"action":"magnifier","category":"ASL","label":"Magnifier clicked","value":"1"},"return":{"active":1,"action":"return","category":"ASL","label":"Return button pressed","value":"1"},"facet_change":{"active":0,"action":"facet_change","category":"ASL","label":"{option_label} | {option_value}","value":"1"},"result_click":{"active":1,"action":"result_click","category":"ASL","label":"{result_title} | {result_url}","value":"1"}}};
seraph_accel_gzjydy();(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};if("undefined"!=typeof WPD.dom)return!1;WPD.dom=function(){if("undefined"==typeof WPD.dom.fn||"undefined"==typeof WPD.dom.fn.a)WPD.dom.fn={a:[],is_wpd_dom:!0,length:0,get:function(a){return"undefined"==typeof a?this.a.slice():"undefined"!=typeof this.a[a]?this.a[a]:null},_:function(a){return"<"===a.charAt(0)?WPD.dom._fn.createElementsFromHTML(a):Array.prototype.slice.call(document.querySelectorAll(a))},$:function(a,b){let c=this.copy(this,!0);c.a="undefined"!=typeof b?null!==b?b.find(a).get():[]:"string"==typeof a?c._(a):null!==a?[a]:[];c.length=c.a.length;return c},extend:function(){for(let a=1;a<arguments.length;a++)for(let b in arguments[a])arguments[a].hasOwnProperty(b)&&(arguments[0][b]=arguments[a][b]);return arguments[0]},copy:function(a,b){let c,d,e;if("object"!=typeof a||null===a)return a;c=new a.constructor;for(d in a)a.hasOwnProperty(d)&&(e=typeof a[d],c[d]=b&&"object"===e&&null!==a[d]?this.copy(a[d]):a[d]);return c},parent:function(a){let b=this.get(0),c=this.copy(this,!0);c.a=[];null!=b&&(b=b.parentElement,"undefined"!=typeof a?b.matches(a)&&(c.a=[b]):c.a=null==b?[]:[b]);return c},first:function(){let a=this.copy(this,!0);a.a="undefined"!=typeof a.a[0]?[a.a[0]]:[];a.length=a.a.length;return a},last:function(){let a=this.copy(this,!0);a.a=0<a.a.length?[a.a[a.a.length-1]]:[];a.length=a.a.length;return a},prev:function(a){let b=this.copy(this,!0);if("undefined"==typeof a)b.a="undefined"!=typeof b.a[0]&&null!=b.a[0].previousElementSibling?[b.a[0].previousElementSibling]:[];else if("undefined"!=typeof b.a[0]){let c=b.a[0].previousElementSibling;for(b.a=[];null!=c;){if(c.matches(a)){b.a=[c];break}c=c.previousElementSibling}}b.length=b.a.length;return b},next:function(a){let b=this.copy(this,!0);if("undefined"==typeof a)b.a="undefined"!=typeof b.a[0]&&null!=b.a[0].nextElementSibling?[b.a[0].nextElementSibling]:[];else if("undefined"!=typeof b.a[0]){let c=b.a[0].nextElementSibling;for(b.a=[];null!=c;){if(c.matches(a)){b.a=[c];break}c=c.nextElementSibling}}b.length=b.a.length;return b},closest:function(a){let b=this.get(0),c=this.copy(this,!0);c.a=[];if("string"===typeof a){if(null!==b&&"undefined"!=typeof b.matches&&""!==a){if(!b.matches(a))for(;(b=b.parentElement)&&!b.matches(a););c.a=null==b?[]:[b]}}else if(null!==b&&"undefined"!=typeof b.matches&&"undefined"!=typeof a.matches){if(b!==a)for(;(b=b.parentElement)&&b!==a;);c.a=null==b?[]:[b]}c.length=c.a.length;return c},add:function(a){if("undefined"!==typeof a)if("undefined"!==typeof a.nodeType)-1==this.a.indexOf(a)&&this.a.push(a);else if("undefined"!==typeof a.a){let b=this;a.a.forEach(function(c){-1==b.a.indexOf(c)&&b.a.push(c)})}return this},find:function(a){let b=this.copy(this,!0);b.a=[];this.forEach(function(c){null!==c&&"undefined"!=typeof c.querySelectorAll&&(b.a=b.a.concat(Array.prototype.slice.call(c.querySelectorAll(a))))});b.length=b.a.length;return b},forEach:function(a){this.a.forEach(function(b,c,d){a.apply(b,[b,c,d])});return this},each:function(a){return this.forEach(a)},hasClass:function(a){let b=this.get(0);return null!=b?b.classList.contains(a):!1},addClass:function(a){let b=a;"string"==typeof a&&(b=a.split(" "));b=b.filter(function(c){return""!==c.trim()});0<b.length&&this.forEach(function(c){c.classList.add.apply(c.classList,b)});return this},removeClass:function(a){if("undefined"!=typeof a){let b=a;"string"==typeof a&&(b=a.split(" "));b=b.filter(function(c){return""!==c.trim()});0<b.length&&this.forEach(function(c){c.classList.remove.apply(c.classList,b)})}else this.forEach(function(b){0<b.classList.length&&b.classList.remove.apply(b.classList,b.classList)});return this},is:function(a){let b=this.get(0);return null!=b?b.matches(a):!1},val:function(a){let b=this.get(0);if(null!=b)if(1==arguments.length)if("select-multiple"==b.type){a="string"===typeof a?a.split(","):a;for(let c=0,d=b.options.length,e;c<d;c++)e=b.options[c],e.selected=-1!=a.indexOf(e.value)}else b.value=a;else return"select-multiple"==b.type?Array.prototype.map.call(b.selectedOptions,function(c){return c.value}):b.value;return this},isVisible:function(){let a=this.get(0),b=!0,c;for(;null!==a;){c=window.getComputedStyle(a);if("none"==c.display||"hidden"==c.visibility||0==c.opacity){b=!1;break}a=a.parentElement}return b},attr:function(a,b){let c,d=arguments,e=this;this.forEach(function(f){2==d.length?(f.setAttribute(a,b),c=e):"object"===typeof a?Object.keys(a).forEach(function(g){f.setAttribute(g,a[g])}):c=f.getAttribute(a)});return c},removeAttr:function(a){this.forEach(function(b){b.removeAttribute(a)});return this},prop:function(a,b){let c,d=arguments;this.forEach(function(e){2==d.length?e[a]=b:c="undefined"!=typeof e[a]?e[a]:null});return 2==d.length?this:c},data:function(a,b){let c=this.get(0),d=a.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return null!=c?2==arguments.length?(c.dataset[d]=b,this):"undefined"==typeof c.dataset[d]?"":c.dataset[d]:""},html:function(a){let b=this.get(0);return null!=b?1==arguments.length?(b.innerHTML=a,this):b.innerHTML:""},text:function(a){let b=this.get(0);return null!=b?1==arguments.length?(b.textContent=a,this):b.textContent:""},css:function(a,b){let c=this.get(),d;for(let e=0;e<c.length;e++)if(d=c[e],1==arguments.length)if("object"==typeof a)Object.keys(a).forEach(function(f){d.style[f]=a[f]});else return window.getComputedStyle(d)[a];else d.style[a]=b;return this},position:function(){let a=this.get(0);return null!=a?{top:a.offsetTop,left:a.offsetLeft}:{top:0,left:0}},offset:function(){let a=this.get(0);return null!=a?WPD.dom._fn.hasFixedParent(a)?a.getBoundingClientRect():WPD.dom._fn.absolutePosition(a):{top:0,left:0}},outerWidth:function(a){a=a||!1;let b=this.get(0);if(null!=b)return a?parseInt(b.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(b.offsetWidth)},outerHeight:function(a){return a?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height"))},innerWidth:function(){var a=this.get(0);return null!=a?(a=window.getComputedStyle(a),this.outerWidth()-parseFloat(a.borderLeftWidth)-
parseFloat(a.borderRightWidth)):0},width:function(){return this.outerWidth()},height:function(){return this.outerHeight()},on:function(){let a=arguments,b=function(d,e){let f;if("mouseenter"==e.type||"mouseleave"==e.type||"hover"==e.type){var g=document.elementFromPoint(e.clientX,e.clientY);if(!g.matches(d[1]))for(;(g=g.parentElement)&&!g.matches(d[1]););null!=g&&(f=WPD.dom(g))}else f=WPD.dom(e.target).closest(d[1]);if(null!=f&&0<f.closest(this).length){g=[];g.push(e);if("undefined"!=typeof d[4])for(e=4;e<d.length;e++)g.push(d[e]);d[2].apply(f.get(0),g)}},c=a[0].split(" ");for(let d=0;d<c.length;d++){let e=c[d];if("string"==typeof a[1])this.forEach(function(f){if(!WPD.dom._fn.hasEventListener(f,e,a[2])){let g=b.bind(f,a);f.addEventListener(e,g,a[3]);f._wpd_el="undefined"==typeof f._wpd_el?[]:f._wpd_el;f._wpd_el.push({type:e,selector:a[1],func:g,trigger:a[2],args:a[3]})}});else for(let f=0;f<c.length;f++){let g=c[f];this.forEach(function(h){WPD.dom._fn.hasEventListener(h,g,a[1])||(h.addEventListener(g,a[1],a[2]),h._wpd_el="undefined"==typeof h._wpd_el?[]:h._wpd_el,h._wpd_el.push({type:g,func:a[1],trigger:a[1],args:a[2]}))})}}return this},off:function(a,b){this.forEach(function(c){if("undefined"!=typeof c._wpd_el&&0<c._wpd_el.length)if("undefined"===typeof a){let d;for(;d=c._wpd_el.pop();)c.removeEventListener(d.type,d.func,d.args);c._wpd_el=[]}else a.split(" ").forEach(function(d){if("undefined"==typeof b){let e;for(;e=c._wpd_el.pop();)c.removeEventListener(d,e.func,e.args);c._wpd_el=[]}else{let e=[];c._wpd_el.forEach(function(f){f.type==d&&f.trigger==b?c.removeEventListener(d,f.func,f.args):e.push(f)});c._wpd_el=e}})});return this},offForced:function(){let a=this;this.forEach(function(b,c){let d=b.cloneNode(!0);b.parentNode.replaceChild(d,b);a.a[c]=d});return this},trigger:function(a,b,c,d){c=c||!1;d=d||!1;this.forEach(function(e){var f=!1;d&&"undefined"!=typeof jQuery&&"undefined"!=typeof jQuery._data&&"undefined"!=typeof jQuery._data(e,"events")&&"undefined"!=typeof jQuery._data(e,"events")[a]&&(jQuery(e).trigger(a,b),f=!0);!f&&c&&(f=new Event(a),f.detail=b,e.dispatchEvent(f));if("undefined"!=typeof e._wpd_el)e._wpd_el.forEach(function(g){if(g.type==a){let h=new Event(a);g.trigger.apply(e,[h].concat(b))}});else{let g=!1,h=e;for(;;){h=h.parentElement;if(null==h)break;"undefined"!=typeof h._wpd_el&&h._wpd_el.forEach(function(k){if("undefined"!==typeof k.selector){var m=WPD.dom(h).find(k.selector);0<m.length&&0<=m.get().indexOf(e)&&k.type==a&&(m=new Event(a),k.trigger.apply(e,[m].concat(b)),g=!0)}});if(g)break}}});return this},clone:function(){let a=this.get(0);null!=a?(this.a=[a.cloneNode(!0)],this.length=this.a.length):this.a=[];this.length=this.a.length;return this},remove:function(a){if("undefined"!=typeof a)return a.parentElement.removeChild(a);this.forEach(function(b){if(null!=b.parentElement)return b.parentElement.removeChild(b)});this.a=[];this.length=this.a.length;return null},detach:function(){let a=this,b=[];this.forEach(function(c){c=a.remove(c);null!=c&&b.push(c)});this.a=b;this.length=this.a.length;return this},prepend:function(a){"string"==typeof a&&(a=WPD.dom._fn.createElementsFromHTML(a));a=Array.isArray(a)?a:[a];this.forEach(function(b){a.forEach(function(c){"undefined"!=typeof c.is_wpd_dom?c.forEach(function(d){b.insertBefore(d,b.children[0])}):b.insertBefore(c,b.children[0])})});return this},append:function(a){"string"==typeof a&&(a=WPD.dom._fn.createElementsFromHTML(a));a=Array.isArray(a)?a:[a];this.forEach(function(b){a.forEach(function(c){null!=c&&("undefined"!=typeof c.is_wpd_dom?c.forEach(function(d){b.appendChild(d)}):b.appendChild(c.cloneNode(!0)))})});return this},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}},WPD.dom._fn={bodyTransform:function(){let a=0,b=0;if("undefined"!==typeof WebKitCSSMatrix){var c=window.getComputedStyle(document.body);"undefined"!=typeof c.transform&&(c=new WebKitCSSMatrix(c.transform),"undefined"!=c.m41&&(a=c.m41),"undefined"!=c.m42&&(b=c.m42))}return{x:a,y:b}},bodyTransformY:function(){return this.bodyTransform().y},bodyTransformX:function(){return this.bodyTransform().x},hasFixedParent:function(a){if(0!=WPD.dom._fn.bodyTransformY())return!1;do if("fixed"==window.getComputedStyle(a).position)return!0;while(a=a.parentElement);return!1},hasEventListener:function(a,b,c){if("undefined"==typeof a._wpd_el)return!1;for(let d=0;d<a._wpd_el.length;d++)if(a._wpd_el[d].trigger==c&&a._wpd_el[d].type==b)return!0;return!1},allDescendants:function(a){let b=[],c=this;Array.isArray(a)||(a=[a]);a.forEach(function(d){for(let e=0;e<d.childNodes.length;e++){let f=d.childNodes[e];b.push(f);b=b.concat(c.allDescendants(f))}});return b},createElementsFromHTML:function(a){let b=document.createElement("template");b.innerHTML=a.replace(/(\r\n|\n|\r)/gm,"");return Array.prototype.slice.call(b.content.childNodes)},absolutePosition:function(a){if(!a.getClientRects().length)return{top:0,left:0};let b=a.getBoundingClientRect();a=a.ownerDocument.defaultView;return{top:b.top+a.pageYOffset,left:b.left+a.pageXOffset}},plugin:function(a,b){WPD.dom.fn[a]=function(c){return"undefined"!=typeof c&&b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):this.each(function(d){d["wpd_dom_"+a]=Object.create(b).init(c,d)})}}},WPD.dom.version=1;return 1<=arguments.length?WPD.dom.fn.$.apply(WPD.dom.fn,arguments):WPD.dom.fn};WPD.dom();document.dispatchEvent(new Event("wpd-dom-core-loaded"))})();(function(){if("undefined"!=typeof WPD.dom.fn.animate)return!1;WPD.dom.fn._animate={easing:{linear:function(a){return a},easeInOutQuad:function(a){return.5>a?2*a*a:1-Math.pow(-2*a+2,2)/2},easeOutQuad:function(a){return 1-(1-a)*(1-a)}}};WPD.dom.fn.animate=function(a,b,c){let d=this;b=b||200;c=c||"linear";this.forEach(function(e){let f,g=0,h,k={},m={},n,p,q;n=d.prop("_wpd_dom_animations");n=null==n?[]:n;!1===a?n.forEach(function(l){clearInterval(l)}):(q="undefined"!=typeof d._animate.easing[c]?d._animate.easing[c]:d._animate.easing.easeInOutQuad,Object.keys(a).forEach(function(l){-1<l.indexOf("scroll")?k[l]=e[l]:k[l]=parseInt(window.getComputedStyle(e)[l]);m[l]=a[l]-k[l]}),f=b/1E3*60,p=setInterval(function(){g++;g>f?clearInterval(p):(h=q(g/f),Object.keys(m).forEach(function(l){-1<l.indexOf("scroll")?e[l]=k[l]+m[l]*h:e.style[l]=k[l]+m[l]*h+"px"}))},1E3/60),n.push(p),d.prop("_wpd_dom_animations",n))});return this};document.dispatchEvent(new Event("wpd-dom-animate-loaded"))})();(function(){let a=WPD.dom;if("undefined"!=typeof WPD.dom.fn.unhighlight)return!1;WPD.dom.fn.unhighlight=function(b){let c={className:"highlight",element:"span"};a.fn.extend(c,b);return this.find(c.element+"."+c.className).each(function(){let d=this.parentNode;d.replaceChild(this.firstChild,this);d.normalize()})};WPD.dom.fn.highlight=function(b,c){function d(g,h,k,m,n){n=""==n?".exhghttt":n;if(3===g.nodeType){if(h=g.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(h))return k=document.createElement(k||"span"),k.className=m||"highlight",m=/\.|,|\s/.test(h[0].charAt(0))?h.index+1:h.index,g=g.splitText(m),g.splitText(h[1].length),m=g.cloneNode(!0),k.appendChild(m),g.parentNode.replaceChild(k,g),1}else if(1===g.nodeType&&g.childNodes&&!/(script|style)/i.test(g.tagName)&&0<!a(g).closest(n).length&&(g.tagName!==k.toUpperCase()||g.className!==m))for(let p=0;p<g.childNodes.length;p++)p+=d(g.childNodes[p],h,k,m,n);return 0}let e={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};a.fn.extend(e,c);b.constructor===String&&(b=[b]);b=b.filter(function(g){return""!=g});b.forEach(function(g,h,k){k[h]=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")});if(0==b.length)return this;c=e.caseSensitive?"":"i";b="("+b.join("|")+")";e.wordsOnly&&(b="(?:,|^|\\s)"+b+"(?:,|$|\\s)");let f=new RegExp(b,c);return this.each(function(g){d(g,f,e.element,e.className,e.excludeParents)})}})();(function(){if("undefined"!=typeof WPD.dom.fn.serialize)return!1;WPD.dom.fn.serialize=function(){let a=this.get(0);if(a&&"FORM"===a.nodeName){var b,c,d=[];for(b=a.elements.length-1;0<=b;--b)if(""!==a.elements[b].name)switch(a.elements[b].nodeName){case"INPUT":switch(a.elements[b].type){case"text":case"hidden":case"password":case"button":case"reset":case"submit":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case"checkbox":case"radio":a.elements[b].checked&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value))}break;case"TEXTAREA":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case"SELECT":switch(a.elements[b].type){case"select-one":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case"select-multiple":for(c=a.elements[b].options.length-1;0<=c;--c)a.elements[b].options[c].selected&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].options[c].value))}break;case"BUTTON":switch(a.elements[b].type){case"reset":case"submit":case"button":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value))}}return d.join("&")}};WPD.dom.fn.serializeForAjax=function(a,b){let c=[],d;for(d in a)if(a.hasOwnProperty(d)){let e=b?b+"["+d+"]":d,f=a[d];c.push(null!==f&&"object"===typeof f?WPD.dom.fn.serializeForAjax(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return c.join("&")};document.dispatchEvent(new Event("wpd-dom-serialize-loaded"))})();(function(){if("undefined"!=typeof WPD.dom.fn.inViewPort)return!1;WPD.dom.fn.inViewPort=function(a,b){var c=this.get(0);let d;if(null==c)return!1;a="undefined"==typeof a?0:a;b="undefined"==typeof b?window:"string"==typeof b?document.querySelector(b):b;var e=c.getBoundingClientRect();c=e.top;let f=e.bottom,g=e.left,h=e.right;null==b&&(b=window);b===window?(e=window.innerWidth||0,d=window.innerHeight||0):(e=b.clientWidth,d=b.clientHeight,b=b.getBoundingClientRect(),c-=b.top,f-=b.top,g-=b.left,h-=b.left);a=~~Math.round(parseFloat(a));return 0>=h||g>=e?!1:0<a?c>=a&&f<d-a:(0<f&&c<=d-a)|(0>=c&&f>a)};document.dispatchEvent(new Event("wpd-dom-viewport-loaded"))})();(function(){if("undefined"!=typeof WPD.dom.fn.ajax)return!1;WPD.dom.fn.ajax=function(a){a=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},a);if("cors"!=a.cors){var b="ajax_cb_"+this.uuidv4().replaceAll("-","");WPD.dom.fn[b]=function(){a.success.apply(this,arguments);delete WPD.dom.fn[a.data.fn]};a.data.callback="WPD.dom.fn."+b;a.data.fn=b;b=document.createElement("script");b.type="text/javascript";b.src=a.url+"?"+this.serializeForAjax(a.data);b.onload=function(){this.remove()};document.body.appendChild(b)}else return b=new XMLHttpRequest,b.onreadystatechange=function(){null!=a.success&&4==this.readyState&&200==this.status&&a.success(this.responseText);null!=a.fail&&4==this.readyState&&400<=this.status&&a.fail(this)},b.open(a.method.toUpperCase(),a.url,!0),b.setRequestHeader("Content-type",a.contentType),b.setRequestHeader("Accept",a.accept),b.send(this.serializeForAjax(a.data)),b};document.dispatchEvent(new Event("wpd-dom-xhttp-loaded"))})();window.WPD=window.WPD||{};window.WPD.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){let b="";let c,d,e,f,g,h=0;for(a=this._utf8_encode(a);h<a.length;){var k=a.charCodeAt(h++);c=a.charCodeAt(h++);d=a.charCodeAt(h++);e=k>>2;k=(k&3)<<4|c>>4;f=(c&15)<<2|d>>6;g=d&63;isNaN(c)?f=g=64:isNaN(d)&&(g=64);b=b+this._keyStr.charAt(e)+this._keyStr.charAt(k)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return b},decode:function(a){let b="";let c,d,e,f=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");f<a.length;){var g=this._keyStr.indexOf(a.charAt(f++));var h=this._keyStr.indexOf(a.charAt(f++));d=this._keyStr.indexOf(a.charAt(f++));e=this._keyStr.indexOf(a.charAt(f++));g=g<<2|h>>4;h=(h&15)<<4|d>>2;c=(d&3)<<6|e;b+=String.fromCharCode(g);64!=d&&(b+=String.fromCharCode(h));64!=e&&(b+=String.fromCharCode(c))}return b=this._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");let b="";for(let c=0;c<a.length;c++){let d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){let b="",c=0,d,e,f;for(;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}};(function(){window.WPD=window.WPD||{};WPD.Hooks=WPD.Hooks||{};let a=WPD.Hooks;a.filters=a.filters||{};a.addFilter=function(b,c,d,e){a.filters[b]=a.filters[b]||[];a.filters[b].push({priority:"undefined"===typeof d?10:d,scope:"undefined"===typeof e?null:e,callback:c})};a.removeFilter=function(b,c){"undefined"!=typeof a.filters[b]&&("undefined"==typeof c?a.filters[b]=[]:a.filters[b].forEach(function(d,e){d.callback===c&&a.filters[b].splice(e,1)}))};a.applyFilters=function(b){let c=[],d=Array.prototype.slice.call(arguments),e=arguments[1];"undefined"!==typeof a.filters[b]&&0<a.filters[b].length&&(a.filters[b].forEach(function(f){c[f.priority]=c[f.priority]||[];c[f.priority].push({scope:f.scope,callback:f.callback})}),d.splice(0,2),c.forEach(function(f){f.forEach(function(g){e=g.callback.apply(g.scope,[e].concat(d))})}));return e}})();window.WPD=window.WPD||{};window.WPD.intervalUntilExecute=function(a,b,c,d){let e,f=0,g="function"===typeof b?b():b;c="undefined"==typeof c?100:c;d="undefined"==typeof d?50:d;if(!1===g)e=setInterval(function(){g="function"===typeof b?b():b;f++;if(f>d)return clearInterval(e),!1;if(!1!==g)return clearInterval(e),a(g)},c);else return a(g)};
seraph_accel_gzjydy();(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};window.WPD.ajaxsearchlite=new function(){this.prevState=null;this.firstIteration=!0;this.helpers={};this.plugin={};this.addons={addons:[],add:function(d){-1==this.addons.indexOf(d)&&(d=this.addons.push(d),this.addons[d-1].init())},remove:function(d){this.addons.filter(function(b){return b.name==d?("undefined"!=typeof b.destroy&&b.destroy(),!1):!0})}}}})();(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{setFilterStateInput:function(a){let c=this;"undefined"==typeof a&&(a=65);let f=function(){JSON.stringify(c.originalFormData)!=JSON.stringify(b.formData(d("form",c.n("searchsettings"))))?c.n("searchsettings").find("input[name=filters_initial]").val(0):c.n("searchsettings").find("input[name=filters_initial]").val(1)};0==a?f():setTimeout(function(){f()},a)}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{liveLoad:function(a,c,f,e){function l(h){h=b.Hooks.applyFilters("asl/live_load/raw_data",h,g);var n=new DOMParser;let p=n.parseFromString(h,"text/html"),q=d(p);g.o.statistics&&g.stat_addKeyword(g.o.id,g.n("text").val());""!=h&&0<q.length&&0<q.find(a).length&&(h=h.replace(/&asl_force_reset_pagination=1/gmi,""),h=h.replace(/%26asl_force_reset_pagination%3D1/gmi,""),h=h.replace(/&#038;asl_force_reset_pagination=1/gmi,""),b.isSafari()&&(h=h.replace(/srcset/gmi,"nosrcset")),h=b.Hooks.applyFilters("asl/live_load/html",h,g.o.id,g.o.iid),h=b.wp_hooks_apply_filters("asl/live_load/html",h,g.o.id,g.o.iid),q=d(n.parseFromString(h,"text/html")),n=q.find(a).get(0),n=b.Hooks.applyFilters("asl/live_load/replacement_node",n,g,k.get(0),h),null!=n&&k.get(0).parentNode.replaceChild(n,k.get(0)),k=d(a).first(),f&&(document.title=p.title,history.pushState({},null,c)),d(a).first().find(".woocommerce-ordering").on("change","select.orderby",function(){d(this).closest("form").trigger("submit")}),g.addHighlightString(d(a).find("a")),b.Hooks.applyFilters("asl/live_load/finished",c,g,a,k.get(0)),ASL.initialize(),g.lastSuccesfulSearch=d("form",g.n("searchsettings")).serialize()+g.n("text").val().trim(),g.lastSearchData=h);g.n("s").trigger("asl_search_end",[g.o.id,g.o.iid,g.n("text").val(),h],!0,!0);let r,t;null==(t=(r=g).gaEvent)||t.call(r,"search_end",{results_count:"unknown"});let u,v;null==(v=(u=g).gaPageview)||v.call(u,g.n("text").val());g.hideLoader();k.css("opacity",1);g.searching=!1;""!=g.n("text").val()&&g.n("proclose").css({display:"block"})}if("body"==a||"html"==a)return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;""==ASL.pageHTML&&"undefined"===typeof ASL._ajax_page_html&&(ASL._ajax_page_html=!0,d.fn.ajax({url:location.href,method:"GET",success:function(h){ASL.pageHTML=h},dataType:"html"}));f="undefined"==typeof f?!0:f;e="undefined"==typeof e?!1:e;let m=".search-content #content #Content div[role=main] main[role=main] div.theme-content div.td-ss-main-content main.l-content #primary".split(" ");"#main"!=a&&m.unshift("#main");if(1>d(a).length&&(m.forEach(function(h){if(0<d(h).length)return a=h,!1}),1>d(a).length))return console.log("Ajax Search Lite: The live search selector does not exist on the page."),!1;a=b.Hooks.applyFilters("asl/live_load/selector",a,this);let k=d(a).first(),g=this;g.searchAbort();k.css("opacity",.4);b.Hooks.applyFilters("asl/live_load/start",c,g,a,k.get(0));e||1!=g.n("searchsettings").find("input[name=filters_initial]").val()||""!=g.n("text").val()?(g.searching=!0,g.post=d.fn.ajax({url:c,method:"GET",success:function(h){l(h)},dataType:"html",fail:function(h){k.css("opacity",1);h.aborted||(k.html("This request has failed. Please check your connection."),g.hideLoader(),g.searching=!1,g.n("proclose").css({display:"block"}))}})):window.WPD.intervalUntilExecute(function(){l(ASL.pageHTML)},function(){return""!=ASL.pageHTML})},getCurrentLiveURL:function(){var a="asl_ls="+b.nicePhrase(this.n("text").val());let c="&",f=window.location.href;f=-1<f.indexOf("asl_ls=")?f.slice(0,f.indexOf("asl_ls=")):f;f=-1<f.indexOf("asl_ls&")?f.slice(0,f.indexOf("asl_ls&")):f;f=-1<f.indexOf("p_asid=")?f.slice(0,f.indexOf("p_asid=")):f;f=-1<f.indexOf("asl_")?f.slice(0,f.indexOf("asl_")):f;-1===f.indexOf("?")&&(c="?");a=f+c+a+"&asl_active=1&asl_force_reset_pagination=1&p_asid="+this.o.id+"&p_asl_data=1&"+d("form",this.n("searchsettings")).serialize();return a=a.replace("?&","?")}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{showLoader:function(){this.n("proloading").css({display:"block"})},hideLoader:function(){this.n("proloading").css({display:"none"});this.n("results").css("display","")}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{loadASLFonts:function(){!1!==ASL.font_url&&((new FontFace("aslsicons2","url("+ASL.font_url+")",{style:"normal",weight:"normal","font-display":"swap"})).load().then(function(b){document.fonts.add(b)}).catch(function(b){}),ASL.font_url=!1)},updateHref:function(){if(this.o.trigger.update_href&&!this.usingLiveLoader){window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+
window.location.port:""));let b=this.getStateURL()+(this.resultsOpened?"&asl_s=":"&asl_ls=")+this.n("text").val();history.replaceState("","",b.replace(location.origin,""))}},fixClonedSelf:function(){let b=this.o.iid,a=this.o.rid;for(;!ASL.instances.set(this)&&!(++this.o.iid,50<this.o.iid););b!=this.o.iid&&(this.o.rid=this.o.id+"_"+this.o.iid,this.n("search").get(0).id="ajaxsearchlite"+this.o.rid,this.n("search").removeClass("asl_m_"+a).addClass("asl_m_"+this.o.rid).data("instance",this.o.iid),this.n("searchsettings").get(0).id=this.n("searchsettings").get(0).id.replace("settings"+a,"settings"+this.o.rid),this.n("searchsettings").hasClass("asl_s_"+a)?this.n("searchsettings").removeClass("asl_s_"+a).addClass("asl_s_"+this.o.rid).data("instance",this.o.iid):this.n("searchsettings").removeClass("asl_sb_"+a).addClass("asl_sb_"+this.o.rid).data("instance",this.o.iid),this.n("resultsDiv").get(0).id=this.n("resultsDiv").get(0).id.replace("prores"+a,"prores"+this.o.rid),this.n("resultsDiv").removeClass("asl_r_"+a).addClass("asl_r_"+
this.o.rid).data("instance",this.o.iid),this.n("container").find(".asl_init_data").data("instance",this.o.iid),this.n("container").find(".asl_init_data").get(0).id=this.n("container").find(".asl_init_data").get(0).id.replace("asl_init_id_"+a,"asl_init_id_"+this.o.rid),this.n("prosettings").data("opened",0))},destroy:function(){let b=this;Object.keys(b.nodes).forEach(function(h){let n,p;null==(p=(n=b.nodes[h]).off)||p.call(n)});let a,c;null==(c=(a=b.n("searchsettings")).remove)||c.call(a);let f,e;null==(e=(f=b.n("resultsDiv")).remove)||e.call(f);let l,m;null==(m=(l=b.n("search")).remove)||m.call(l);let k,g;null==(g=(k=b.n("container")).remove)||g.call(k);b.documentEventHandlers.forEach(function(h){d(h.node).off(h.event,h.handler)})}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{isRedirectToFirstResult:function(){return(0<d(".asl_res_url",this.n("resultsDiv")).length||0<d(".asl_es_"+this.o.id+" a").length||this.o.resPage.useAjax&&0<d(this.o.resPage.selector+"a").length)&&(1==this.o.redirectOnClick&&"click"==this.ktype&&"first_result"==this.o.trigger.click||1==this.o.redirectOnEnter&&("input"==this.ktype||"keyup"==this.ktype)&&13==this.keycode&&"first_result"==this.o.trigger.return)},doRedirectToFirstResult:function(){let a,c;a="click"==this.ktype?this.o.trigger.click_location:this.o.trigger.return_location;0<d(".asl_res_url",this.n("resultsDiv")).length?c=d(d(".asl_res_url",this.n("resultsDiv")).get(0)).attr("href"):0<d(".asl_es_"+this.o.id+" a").length?c=d(d(".asl_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&0<d(this.o.resPage.selector+"a").length&&(c=d(d(this.o.resPage.selector+"a").get(0)).attr("href"));""!=c&&("same"==a?location.href=c:b.openInNewTab(c),this.hideLoader(),this.hideResults());return!1},doRedirectToResults:function(a){let c;c="click"==a?this.o.trigger.click_location:this.o.trigger.return_location;a=this.getRedirectURL(a);if(this.o.overridewpdefault){if(1==this.o.resPage.useAjax)return this.hideResults(),this.liveLoad(this.o.resPage.selector,a),this.showLoader(),0==this.o.blocking&&this.hideSettings(),!1;"post"==this.o.override_method?b.submitToUrl(a,"post",{asl_active:1,p_asl_data:d("form",this.n("searchsettings")).serialize()},c):"same"==c?location.href=a:b.openInNewTab(a)}else b.submitToUrl(a,"post",{np_asl_data:d("form",this.n("searchsettings")).serialize()},c);this.n("proloading").css("display","none");this.hideLoader();this.hideResults();this.searchAbort()},getRedirectURL:function(a){a="click"==("undefined"!==typeof a?a:"enter")?this.o.trigger.click:this.o.trigger.return;"results_page"==a||"ajax_search"==a?a="?s="+b.nicePhrase(this.n("text").val()):"woo_results_page"==a?a="?post_type=product&s="+b.nicePhrase(this.n("text").val()):(a=this.o.trigger.redirect_url,a=a.replace(/{phrase}/g,b.nicePhrase(this.n("text").val())));1<this.o.homeurl.indexOf("?")&&0===a.indexOf("?")&&(a=a.replace("?","&"));if(this.o.overridewpdefault&&"post"!=this.o.override_method){let c="&";-1===this.o.homeurl.indexOf("?")&&-1===a.indexOf("?")&&(c="?");a=a+c+"asl_active=1&p_asl_data=1&"+d("form",this.n("searchsettings")).serialize();a=this.o.homeurl+a}else a=this.o.homeurl+a;a=a.replace("https://","https:///");a=a.replace("http://","http:///");a=a.replace(/\/\//g,"/");a=b.Hooks.applyFilters("asl/redirect/url",a,this.o.id,this.o.iid);return a=b.wp_hooks_apply_filters("asl/redirect/url",a,this.o.id,this.o.iid)}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{showResults:function(){this.initResults();this.createVerticalScroll();this.showVerticalResults();this.hideLoader();this.n("proclose").css({display:"block"});null!=this.n("showmore")&&(0<this.n("items").length?this.n("showmore").css({display:"block"}):this.n("showmore").css({display:"none"}));"undefined"!=typeof WPD.lazy&&setTimeout(function(){WPD.lazy(".asl_lazy")},100);this.resultsOpened=!0},hideResults:function(a){let c=this;a="undefined"==typeof a?!0:a;if(!c.resultsOpened)return!1;c.n("resultsDiv").removeClass(c.resAnim.showClass).addClass(c.resAnim.hideClass);setTimeout(function(){c.n("resultsDiv").css(c.resAnim.hideCSS)},c.resAnim.duration);c.n("proclose").css({display:"none"});b.isMobile()&&a&&document.activeElement.blur();c.resultsOpened=!1;c.n("s").trigger("asl_results_hide",[c.o.id,c.o.iid],!0,!0)},showResultsBox:function(){this.n("s").trigger("asl_results_show",[this.o.id,this.o.iid],!0,!0);this.n("resultsDiv").css({display:"block",height:"auto"});this.n("resultsDiv").css(this.resAnim.showCSS);this.n("resultsDiv").removeClass(this.resAnim.hideClass).addClass(this.resAnim.showClass);this.fixResultsPosition(!0)},addHighlightString:function(a){let c=this,f=c.n("text").val().replace(/["']/g,"");a="undefined"==typeof a?c.n("items").find("a.asl_res_url"):a;1==c.o.singleHighlight&&""!=f&&0<a.length&&a.forEach(function(){try{const e=new URL(d(this).attr("href"));e.searchParams.set("asl_highlight",f);e.searchParams.set("p_asid",c.o.id);d(this).attr("href",e.href)}catch(e){}})},scrollToResults:function(){var a=Math.floor(.1*window.innerHeight);if(this.resultsOpened&&1==this.o.scrollToResults.enabled&&!this.n("resultsDiv").inViewPort(a)){a="hover"==this.o.resultsposition?this.n("probox").offset().top-20:this.n("resultsDiv").offset().top-20;a+=this.o.scrollToResults.offset;var c=d("#wpadminbar");0<c.length&&(a-=c.height());window.scrollTo({top:0>a?0:a,behavior:"smooth"})}}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let c=this;"undefined"==typeof a&&(a=50);c.n("text").val().length<c.o.charcount||(c.searchAbort(),clearTimeout(c.timeouts.searchWithCheck),c.timeouts.searchWithCheck=setTimeout(function(){c.search()},a))},search:function(){let a=this;if(!(a.n("text").val().length<a.o.charcount)){a.searching=!0;a.n("proloading").css({display:"block"});a.n("proclose").css({display:"none"});var c={action:"ajaxsearchlite_search",aslp:a.n("text").val(),asid:a.o.id,options:d("form",a.n("searchsettings")).serialize()};c=b.Hooks.applyFilters("asl/search/data",c);c=b.wp_hooks_apply_filters("asl/search/data",c);if(JSON.stringify(c)===JSON.stringify(a.lastSearchData))return a.resultsOpened||a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;var f;null==(f=a.gaEvent)||f.call(a,"search_start");0<d(".asl_es_"+a.o.id).length?a.liveLoad(".asl_es_"+a.o.id,a.getCurrentLiveURL(),!1):a.o.resPage.useAjax?a.liveLoad(a.o.resPage.selector,a.getRedirectURL()):a.post=d.fn.ajax({url:ASL.ajaxurl,method:"POST",data:c,success:function(e){e=e.replace(/^\s*[\r\n]/gm,"");e=e.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];e=b.Hooks.applyFilters("asl/search/html",e);e=b.wp_hooks_apply_filters("asl/search/html",e);a.n("resdrg").html("");a.n("resdrg").html(e);d(".asl_keyword",a.n("resdrg")).on("click",function(){a.n("text").val(d(this).html());d("input.orig",a.n("container")).val(d(this).html()).trigger("keydown");d("form",a.n("container")).trigger("submit","ajax");a.search()});a.nodes.items=d(".item",a.n("resultsDiv"));a.addHighlightString();let l;null==(l=a.gaEvent)||l.call(a,"search_end",{results_count:a.n("items").length});let m;null==(m=a.gaPageview)||m.call(a,a.n("text").val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=d("form",a.n("searchsettings")).serialize()+
a.n("text").val().trim();a.lastSearchData=c;a.updateHref();0==a.n("items").length?null!=a.n("showmore")&&a.n("showmore").css("display","none"):null!=a.n("showmore")&&(a.n("showmore").css("display","block"),d("span",a.n("showmore")).off(),d("span",a.n("showmore")).on("click",function(){var k=a.o.trigger.click;k="results_page"==k?"?s="+b.nicePhrase(a.n("text").val()):"woo_results_page"==k?"?post_type=product&s="+b.nicePhrase(a.n("text").val()):a.o.trigger.redirect_url.replace("{phrase}",b.nicePhrase(a.n("text").val()));a.o.overridewpdefault?"post"==a.o.override_method?b.submitToUrl(a.o.homeurl+k,"post",{asl_active:1,p_asl_data:d("form",a.n("searchsettings")).serialize()}):location.href=a.o.homeurl+k+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+d("form",a.n("searchsettings")).serialize():b.submitToUrl(a.o.homeurl+k,"post",{np_asl_data:d("form",a.n("searchsettings")).serialize()})}))},fail:function(e){e.aborted||(a.n("resdrg").html(""),a.n("resdrg").html('<div class="asl_nores">The request failed. Please check your connection! Status: '+
e.status+"</div>"),a.nodes.items=d(".item",a.n("resultsDiv")),a.hideLoader(),a.showResults(),a.scrollToResults())}})}}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchFor:function(b){"undefined"!=typeof b&&this.n("text").val(b);this.n("textAutocomplete").val("");this.search(!1,!1,!1,!0)},toggleSettings:function(b){"undefined"!=typeof b?"show"==b?this.showSettings():this.hideSettings():1==this.n("prosettings").data("opened")?this.hideSettings():this.showSettings()},closeResults:function(b){"undefined"!=typeof b&&b&&(this.n("text").val(""),this.n("textAutocomplete").val(""));this.hideResults();this.n("proloading").css("display","none");this.hideLoader();this.searchAbort()},getStateURL:function(){let b=location.href,a;b=b.split("p_asid");b=b[0];b=b.replace("&asl_active=1","");b=b.replace("?asl_active=1","");b="?"==b.slice(-1)?b.slice(0,-1):b;b="&"==b.slice(-1)?b.slice(0,-1):b;a=1<b.indexOf("?")?"&":"?";return b+a+"p_asid="+this.o.id+"&p_asl_data=1&"+d("form",this.n("searchsettings")).serialize()},resetSearch:function(){this.resetSearchFilters()},filtersInitial:function(){return 1==this.n("searchsettings").find("input[name=filters_initial]").val()},filtersChanged:function(){return 1==this.n("searchsettings").find("input[name=filters_changed]").val()}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.helpers,{Hooks:window.WPD.Hooks,deviceType:function(){let b=window.innerWidth;return 640>=b?"phone":1024>=b?"tablet":"desktop"},detectIOS:function(){return"undefined"!=typeof window.navigator&&"undefined"!=typeof window.navigator.userAgent?null!=window.navigator.userAgent.match(/(iPod|iPhone|iPad)/):!1},detectIE:function(){var b=window.navigator.userAgent;let a=b.indexOf("MSIE ");b=b.indexOf("Trident/");return 0<a||0<b?!0:!1},isMobile:function(){try{return document.createEvent("TouchEvent"),!0}catch(b){return!1}},isTouchDevice:function(){return"ontouchstart"in window},isSafari:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},whichjQuery:function(b){let a=!1;"undefined"!=typeof window.$&&("undefined"===typeof b?a=window.$:"undefined"!=typeof window.$.fn[b]&&(a=window.$));!1===a&&"undefined"!=typeof window.jQuery&&(a=window.jQuery,"undefined"===typeof b?a=window.jQuery:"undefined"!=typeof window.jQuery.fn[b]&&(a=window.jQuery));return a},formData:function(b,a){let c=this,f=b.find("input,textarea,select,button").get();if(1===arguments.length)return a={},f.forEach(function(e){e.name&&!e.disabled&&(e.checked||/select|textarea/i.test(e.nodeName)||/text/i.test(e.type)||d(e).hasClass("hasDatepicker")||d(e).hasClass("asl_slider_hidden"))&&(void 0==a[e.name]&&(a[e.name]=[]),d(e).hasClass("hasDatepicker")?a[e.name].push(d(e).parent().find(".asl_datepicker_hidden").val()):a[e.name].push(d(e).val()))}),JSON.stringify(a);"object"!=typeof a&&(a=JSON.parse(a));f.forEach(function(e){if(e.name)if(a[e.name]){let l=a[e.name],m=d(e);"[object Array]"!==Object.prototype.toString.call(l)&&(l=[l]);if("checkbox"==e.type||"radio"==e.type){let k=m.val(),g=!1;for(let h=0;h<l.length;h++)if(l[h]==k){g=!0;break}m.prop("checked",g)}else m.val(l[0]),(d(e).hasClass("asl_gochosen")||d(e).hasClass("asl_goselect2"))&&WPD.intervalUntilExecute(function(k){k(e).trigger("change.asl_select2")},function(){return c.whichjQuery("asl_select2")},50,3),d(e).hasClass("hasDatepicker")&&WPD.intervalUntilExecute(function(k){let g=l[0],h=k(m.get(0)).datepicker("option","dateFormat");k(m.get(0)).datepicker("option","dateFormat","yy-mm-dd");k(m.get(0)).datepicker("setDate",g);k(m.get(0)).datepicker("option","dateFormat",h);k(m.get(0)).trigger("selectnochange")},function(){return c.whichjQuery("datepicker")},50,3)}else"checkbox"!=e.type&&"radio"!=e.type||d(e).prop("checked",!1)});return b},submitToUrl:function(b,a,c,f){let e;e=d('<form style="display: none;" />');e.attr("action",b);e.attr("method",a);d("body").append(e);"undefined"!==typeof c&&null!==c&&Object.keys(c).forEach(function(l){let m=c[l],k=d('<input type="hidden" />');k.attr("name",l);k.attr("value",m);e.append(k)});"undefined"!=typeof f&&"new"==f&&e.attr("target","_blank");e.get(0).submit()},openInNewTab:function(b){Object.assign(document.createElement("a"),{target:"_blank",href:b}).click()},isScrolledToBottom:function(b,a){return b.scrollHeight-b.scrollTop-d(b).outerHeight()<a},getWidthFromCSSValue:function(b,a){b+="";b=-1<b.indexOf("px")?parseInt(b,10):-1<b.indexOf("%")?"undefined"!=typeof a&&null!=a?Math.floor(parseInt(b,10)/100*a):parseInt(b,10):parseInt(b,10);return 100>b?100:b},nicePhrase:function(b){return encodeURIComponent(b).replace(/%20/g,"+")},unqoutePhrase:function(b){return b.replace(/["']/g,"")},decodeHTMLEntities:function(b){let a=document.createElement("div");b&&"string"===typeof b&&(b=b.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),b=b.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=b,b=a.textContent,a.textContent="");return b},isScrolledToRight:function(b){return b.scrollWidth-
d(b).outerWidth()===b.scrollLeft},isScrolledToLeft:function(b){return 0===b.scrollLeft},wp_hooks_apply_filters:function(){return"undefined"!=typeof wp&&"undefined"!=typeof wp.hooks&&"undefined"!=typeof wp.hooks.applyFilters?wp.hooks.applyFilters.apply(null,arguments):"undefined"!=typeof arguments[1]?arguments[1]:!1}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{detectAndFixFixedPositioning:function(){let a=!1,c=this.n("search").get(0);for(;c;)if(c=c.parentElement,null!=c&&"fixed"==window.getComputedStyle(c).position){a=!0;break}a||"fixed"==this.n("search").css("position")?("absolute"==this.n("resultsDiv").css("position")&&this.n("resultsDiv").css({position:"fixed","z-index":2147483647}),this.o.blocking||this.n("searchsettings").css({position:"fixed","z-index":2147483647})):("fixed"==this.n("resultsDiv").css("position")&&this.n("resultsDiv").css("position","absolute"),this.o.blocking||this.n("searchsettings").css("position","absolute"))},fixResultsPosition:function(a){a="undefined"==typeof a?!1:a;var c=d("body");let f=0;var e=this.n("resultsDiv").css("position");if(0!=d._fn.bodyTransformY()||"static"!=c.css("position"))f=c.offset().top;0!=d._fn.bodyTransformY()&&"fixed"==e&&(e="absolute",this.n("resultsDiv").css("position","absolute"));"fixed"==e&&(f=0);if("fixed"==e||"absolute"==e)if(1==a||"visible"==this.n("resultsDiv").css("visibility")){a=this.n("search").offset();e=0;if(0!=d._fn.bodyTransformX()||"static"!=c.css("position"))e=c.offset().left;if("undefined"!=typeof a){let l=0;c="phone"==b.deviceType()?this.o.results.width_phone:"tablet"==b.deviceType()?this.o.results.width_tablet:this.o.results.width;"auto"==c&&(c=240>this.n("search").outerWidth()?240:this.n("search").outerWidth());this.n("resultsDiv").css("width",isNaN(c)?c:c+"px");"right"==this.o.resultsSnapTo?l=this.n("resultsDiv").outerWidth()-this.n("search").outerWidth():"center"==this.o.resultsSnapTo&&(l=Math.floor((this.n("resultsDiv").outerWidth()-parseInt(this.n("search").outerWidth()))/2));this.n("resultsDiv").css({top:a.top+this.n("search").outerHeight(!0)-f+"px",left:a.left-l-e+"px"})}}},fixSettingsPosition:function(a){a="undefined"==typeof a?!1:a;var c=d("body"),f=0,e=this.n("searchsettings").css("position");if(0!=d._fn.bodyTransformY()||"static"!=c.css("position"))f=c.offset().top;0!=d._fn.bodyTransformY()&&"fixed"==e&&(e="absolute",this.n("searchsettings").css("position","absolute"));"fixed"==e&&(f=0);if(1==a||0!=this.n("prosettings").data("opened")){a=0;if(0!=d._fn.bodyTransformX()||"static"!=c.css("position"))a=c.offset().left;this.fixSettingsWidth();c="none"!=this.n("prosettings").css("display")?this.n("prosettings"):this.n("promagnifier");e=c.offset();f=e.top+c.height()-2-f+"px";c="left"==this.o.settingsimagepos?e.left:e.left+c.width()-this.n("searchsettings").width();c=c-a+"px";this.n("searchsettings").css({display:"block",top:f,left:c})}},fixSettingsWidth:function(){},hideOnInvisibleBox:function(){if(1==this.o.detectVisibility&&!this.n("search").hasClass("hiddend")&&(this.n("search").is(":hidden")||!this.n("search").is(":visible"))){let a;null==(a=this.hideSettings)||a.call(this);this.hideResults()}}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initMagnifierEvents:function(){let b=this;b.n("promagnifier").on("click",function(a){b.keycode=a.keyCode||a.which;b.ktype=a.type;let c;null==(c=b.gaEvent)||c.call(b,"magnifier");if(b.n("text").val().length>=b.o.charcount&&1==b.o.redirectOnClick&&"first_result"!=b.o.trigger.click)return b.doRedirectToResults("click"),clearTimeout(void 0),!1;if("ajax_search"!=b.o.trigger.click&&"first_result"!=b.o.trigger.click)return!1;b.searchAbort();clearTimeout(b.timeouts.search);b.n("proloading").css("display","none");b.timeouts.search=setTimeout(function(){d("form",b.n("searchsettings")).serialize()+b.n("text").val().trim()!=b.lastSuccesfulSearch||!b.resultsOpened&&!b.usingLiveLoader?b.search():b.isRedirectToFirstResult()?b.doRedirectToFirstResult():b.n("proclose").css("display","block")},b.o.trigger.delay)})}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initInputEvents:function(){let a=this,c=!1,f=function(){a.n("text").off("mousedown touchstart keydown",f);if(!c){a._initFocusInput();a.o.trigger.type&&a._initSearchInput();a._initEnterEvent();a._initFormEvent();let e;null==(e=a.initAutocompleteEvent)||e.call(a);c=!0}};a.n("text").on("mousedown touchstart keydown",f,{passive:!0})},_initFocusInput:function(){let a=this;a.n("text").on("click",function(c){c.stopPropagation();c.stopImmediatePropagation();d(this).trigger("focus");let f;null==(f=a.gaEvent)||f.call(a,"focus");if(d("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()==a.lastSuccesfulSearch)return a.resultsOpened||a.usingLiveLoader||(a._no_animations=!0,a.showResults(),a._no_animations=!1),!1});a.n("text").on("focus input",function(c){a.searching||(""!=d(this).val()?a.n("proclose").css("display","block"):a.n("proclose").css({display:"none"}))})},_initSearchInput:function(){let a=this,c=a.n("text").val();a.n("text").on("input",function(f){a.keycode=f.keyCode||f.which;a.ktype=f.type;if(b.detectIE()){if(c==a.n("text").val())return!1;c=a.n("text").val()}a.updateHref();if(a.n("text").val().length<a.o.charcount){a.n("proloading").css("display","none");if(0==a.o.blocking){let e;null==(e=a.hideSettings)||e.call(a)}a.hideResults(!1);a.searchAbort();clearTimeout(a.timeouts.search);return!1}a.searchAbort();clearTimeout(a.timeouts.search);a.n("proloading").css("display","none");a.timeouts.search=setTimeout(function(){d("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader?a.search():a.isRedirectToFirstResult()?a.doRedirectToFirstResult():a.n("proclose").css("display","block")},a.o.trigger.delay)})},_initEnterEvent:function(){let a=this,c,f=!1;a.n("text").on("keyup",function(e){a.keycode=e.keyCode||e.which;a.ktype=e.type;if(13==a.keycode){clearTimeout(c);c=setTimeout(function(){f=!1},300);if(f)return!1;f=!0}e=d(this).hasClass("orig");if(a.n("text").val().length>=a.o.charcount&&e&&13==a.keycode){let l;null==(l=a.gaEvent)||l.call(a,"return");1==a.o.redirectOnEnter?"first_result"!=a.o.trigger.return?a.doRedirectToResults(a.ktype):a.search():"ajax_search"==a.o.trigger.return&&(d("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader)&&a.search();clearTimeout(a.timeouts.search)}})},_initFormEvent:function(){let a=this;d(a.n("text").closest("form").get(0)).on("submit",function(c,f){c.preventDefault();b.isMobile()?a.o.redirectOnEnter?(c=new Event("keyup"),c.keyCode=c.which=13,this.n("text").get(0).dispatchEvent(c)):(a.search(),document.activeElement.blur()):"undefined"!=typeof f&&"ajax"==f&&a.search()})}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initNavigationEvents:function(){let b=this,a=function(c){let f=c.keyCode||c.which;if(0<d(".item",b.n("resultsDiv")).length&&"none"!=b.n("resultsDiv").css("display")&&"vertical"==b.o.resultstype){if(40==f||38==f){var e=b.n("resultsDiv").find(".item.hovered");b.n("text").trigger("blur");0==e.length?b.n("resultsDiv").find(".item").first().addClass("hovered"):(40==f&&(0==e.next(".item").length?b.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):e.removeClass("hovered").next(".item").addClass("hovered")),38==f&&(0==e.prev(".item").length?b.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):e.removeClass("hovered").prev(".item").addClass("hovered")));c.stopPropagation();c.preventDefault();b.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,b.n("resultsDiv").get(0))||(e=b.n("resultsDiv").find(".resdrg .item.hovered").get(0),null!=e&&"undefined"!=typeof e.scrollIntoView&&e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))}13==f&&0<d(".item.hovered",b.n("resultsDiv")).length&&(c.stopPropagation(),c.preventDefault(),d(".item.hovered a.asl_res_url",b.n("resultsDiv")).get(0).click())}};b.documentEventHandlers.push({node:document,event:"keydown",handler:a});d(document).on("keydown",a)}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initOtherEvents:function(){let a=this;if(b.isMobile()&&b.detectIOS())a.n("text").on("touchstart",function(){a.savedScrollTop=window.scrollY;a.savedContainerTop=a.n("search").offset().top});a.n("proclose").on(a.clickTouchend,function(f){f.preventDefault();f.stopImmediatePropagation();a.n("text").val("");a.n("textAutocomplete").val("");a.hideResults();a.n("text").trigger("focus");a.n("proloading").css("display","none");a.hideLoader();a.searchAbort();0<d(".asl_es_"+a.o.id).length?(a.showLoader(),a.liveLoad(".asl_es_"+a.o.id,a.getCurrentLiveURL(),!1)):a.o.resPage.useAjax&&(a.showLoader(),a.liveLoad(a.o.resPage.selector,a.getRedirectURL()));a.n("text").get(0).focus()});if(b.isMobile()){var c=function(){a.orientationChange();setTimeout(function(){a.orientationChange()},600)};a.documentEventHandlers.push({node:window,event:"orientationchange",handler:c});d(window).on("orientationchange",c)}else c=function(){a.resize()},a.documentEventHandlers.push({node:window,event:"resize",handler:c}),d(window).on("resize",c,{passive:!0});c=function(){a.scrolling(!1)};a.documentEventHandlers.push({node:window,event:"scroll",handler:c});d(window).on("scroll",c,{passive:!0});if(b.isMobile()&&""!=a.o.mobile.menu_selector)d(a.o.mobile.menu_selector).on("touchend",function(){let f=this;setTimeout(function(){let e=d(f).find("input.orig");e=0==e.length?d(f).next().find("input.orig"):e;e=0==e.length?d(f).parent().find("input.orig"):e;e=0==e.length?a.n("text"):e;a.n("search").inViewPort()&&e.get(0).focus()},300)});b.detectIOS()&&b.isMobile()&&b.isTouchDevice()&&16>parseInt(a.n("text").css("font-size"))&&(a.n("text").data("fontSize",a.n("text").css("font-size")).css("font-size","16px"),a.n("textAutocomplete").css("font-size","16px"),d("body").append("<style>#ajaxsearchlite"+a.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>"))},orientationChange:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();"isotopic"==this.o.resultstype&&"visible"==this.n("resultsDiv").css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},resize:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();"isotopic"==this.o.resultstype&&"visible"==this.n("resultsDiv").css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(a){this.detectAndFixFixedPositioning();this.hideOnInvisibleBox();this.fixSettingsPosition(a);this.fixResultsPosition(a)},initTryThisEvents:function(){let a=this;0<a.n("trythis").find("a").length&&(a.n("trythis").find("a").on("click touchend",function(c){c.preventDefault();c.stopImmediatePropagation();document.activeElement.blur();a.n("textAutocomplete").val("");a.n("text").val(d(this).html());let f;null==(f=a.gaEvent)||f.call(a,"try_this");a.searchWithCheck(80)}),a.n("trythis").css({visibility:"visible"}))}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initResultsEvents:function(){let b=this;b.n("resultsDiv").css({opacity:"0"});let a=function(c){let f=c.keyCode||c.which,e=c.type;0==d(c.target).closest(".asl_w").length&&(b.hideOnInvisibleBox(),"click"==e&&"touchend"==e&&3==f||0==b.resultsOpened||1!=b.o.closeOnDocClick||b.dragging||(b.hideLoader(),b.searchAbort(),b.hideResults()))};b.documentEventHandlers.push({node:document,event:b.clickTouchend,handler:a});d(document).on(b.clickTouchend,a);b.n("resultsDiv").on("click",".results .item",function(){let c;null==(c=b.gaEvent)||c.call(b,"result_click",{result_title:d(this).find("a.asl_res_url").text(),result_url:d(this).find("a.asl_res_url").attr("href")})})}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{monitorTouchMove:function(){let b=this;b.dragging=!1;d("body").on("touchmove",function(){b.dragging=!0}).on("touchstart",function(){b.dragging=!1})}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initAutop:function(){let b=this;if("disabled"==b.o.autop.state)return!1;let a=window.location.href;if(-1<a.indexOf("asl_ls=")||-1<a.indexOf("asl_ls&"))return!1;let c=b.o.autop.count;window.WPD.intervalUntilExecute(function(){b.isAutoP=!0;"phrase"==b.o.autop.state?(b.o.is_results_page||b.n("text").val(b.o.autop.phrase),b.search(c)):"latest"==b.o.autop.state?b.search(c,1):b.search(c,2)},function(){return!window.ASL.css_async||"undefined"!=typeof window.ASL.css_loaded})}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initEtc:function(){b.Hooks.addFilter("asl/init/etc",this)}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite,a=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{init:function(c,f){this.autopStartedTheSearch=this.isAutoP=this.triggerPrevState=this.searching=!1;this.autopData={};this.resultsOpened=this.settingsChanged=this.resultsInitialized=this.settingsInitialized=!1;this.postAuto=this.post=null;this.scroll={};this.savedContainerTop=this.savedScrollTop=0;this.disableMobileScroll=!1;this.clickTouchend="click touchend";this.mouseupTouchend="mouseup touchend";this.noUiSliders=[];this.timeouts={compactBeforeOpen:null,compactAfterOpen:null,search:null,searchWithCheck:null};this.eh={};this.documentEventHandlers=[];this.settScroll=null;this.currentPage=1;this.sIsotope=this.isotopic=null;this.lastSuccesfulSearch="";this.lastSearchData={};this._no_animations=!1;this.results_num=this.call_num=0;this.o=d.fn.extend({},c);this.nodes={};this.nodes.search=d(f);a.isMobile()?this.animOptions=this.o.animations.mob:this.animOptions=this.o.animations.pc;this.initNodeVariables();this.animationOpacity=0>this.animOptions.items.indexOf("In")?"opacityOne":"opacityZero";this.o.redirectOnClick="ajax_search"!=this.o.trigger.click&&"nothing"!=this.o.trigger.click;this.o.redirectOnEnter="ajax_search"!=this.o.trigger.return&&"nothing"!=this.o.trigger.return;if(this.usingLiveLoader=this.o.resPage.useAjax&&0<d(this.o.resPage.selector).length||0<d(".asl_es_"+this.o.id).length)this.o.trigger.type=this.o.resPage.trigger_type,this.o.trigger.facet=this.o.resPage.trigger_facet,this.o.resPage.trigger_magnifier&&(this.o.redirectOnClick=0,this.o.trigger.click="ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=0,this.o.trigger.return="ajax_search");this.monitorTouchMove();this.initEvents();this.initAutop();this.initEtc();b.firstIteration=!1;this.n("s").trigger("asl_init_search_bar",[this.o.id,this.o.iid],!0,!0);return this},n:function(c){if("undefined"===typeof this.nodes[c])switch(c){case"s":this.nodes[c]=this.nodes.search;break;case"container":this.nodes[c]=this.nodes.search.closest(".asl_w_container");break;case"searchsettings":this.nodes[c]=d(".asl_s",this.n("container"));break;case"resultsDiv":this.nodes[c]=d(".asl_r",this.n("container"));break;case"probox":this.nodes[c]=d(".probox",this.nodes.search);break;case"proinput":this.nodes[c]=d(".proinput",this.nodes.search);break;case"text":this.nodes[c]=d(".proinput input.orig",this.nodes.search);break;case"textAutocomplete":this.nodes[c]=d(".proinput input.autocomplete",this.nodes.search);break;case"proloading":this.nodes[c]=d(".proloading",this.nodes.search);break;case"proclose":this.nodes[c]=d(".proclose",this.nodes.search);break;case"promagnifier":this.nodes[c]=d(".promagnifier",this.nodes.search);break;case"prosettings":this.nodes[c]=d(".prosettings",this.nodes.search);break;case"settingsAppend":this.nodes[c]=d("#wpdreams_asl_settings_"+this.o.id);break;case"resultsAppend":this.nodes[c]=d("#wpdreams_asl_results_"+this.o.id);break;case"trythis":this.nodes[c]=d("#asp-try-"+this.o.rid);break;case"hiddenContainer":this.nodes[c]=d(".asl_hidden_data",this.n("container"));break;case"aspItemOverlay":this.nodes[c]=d(".asl_item_overlay",this.n("hiddenContainer"));break;case"showmore":this.nodes[c]=d(".showmore",this.n("resultsDiv"));break;case"items":this.nodes[c]=0<d(".item",this.n("resultsDiv")).length?d(".item",this.n("resultsDiv")):d(".photostack-flip",this.n("resultsDiv"));break;case"results":this.nodes[c]=d(".results",this.n("resultsDiv"));break;case"resdrg":this.nodes[c]=d(".resdrg",this.n("resultsDiv"))}return this.nodes[c]},initNodeVariables:function(){this.o.id=this.nodes.search.data("id");this.o.iid=this.nodes.search.data("instance");this.o.rid=this.o.id+"_"+this.o.iid;this.fixClonedSelf()},initEvents:function(){let c;null==(c=this.initSettingsSwitchEvents)||c.call(this);this.initOtherEvents();this.initMagnifierEvents();this.initInputEvents()}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initResults:function(){if(!this.resultsInitialized){this.initResultsBox();this.initResultsEvents();let a;null==(a=this.initNavigationEvents)||a.call(this)}},initResultsBox:function(){this.initResultsAnimations();b.isMobile()&&1==this.o.mobile.force_res_hover?(this.o.resultsposition="hover",this.nodes.resultsDiv=this.n("resultsDiv").clone(),d("body").append(this.nodes.resultsDiv),this.nodes.resultsDiv.css({position:"absolute"}),this.detectAndFixFixedPositioning()):"hover"==this.o.resultsposition&&0>=this.n("resultsAppend").length?(this.nodes.resultsDiv=this.n("resultsDiv").clone(),d("body").append(this.n("resultsDiv"))):(this.o.resultsposition="block",this.n("resultsDiv").css({position:"static"}),0<this.n("resultsAppend").length&&(0<this.n("resultsAppend").find(".asl_w").length?this.nodes.resultsDiv=this.n("resultsAppend").find(".asl_w"):(this.nodes.resultsDiv=this.n("resultsDiv").clone(),this.nodes.resultsAppend.append(this.n("resultsDiv")))));this.nodes.showmore=d(".showmore",this.n("resultsDiv"));this.nodes.items=0<d(".item",this.n("resultsDiv")).length?d(".item",this.n("resultsDiv")):d(".photostack-flip",this.n("resultsDiv"));this.nodes.results=d(".results",this.n("resultsDiv"));this.nodes.resdrg=d(".resdrg",this.n("resultsDiv"));this.n("resultsDiv").get(0).id=this.n("resultsDiv").get(0).id.replace("__original__","");this.detectAndFixFixedPositioning();this.resultsInitialized=!0},initResultsAnimations:function(){this.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};this.n("resultsDiv").css({"-webkit-animation-duration":"300ms","animation-duration":"300ms"})}})})(WPD.dom);window.ASL="undefined"!==typeof window.ASL?window.ASL:{};window.ASL.api=function(){let d=function(c,f,e,l){c=ASL.instances.get(c,f);return!1!==c&&c[e].apply(c,[l])},b=function(c,f,e){if(!isNaN(parseFloat(f))&&isFinite(f))return c=ASL.instances.get(c,f),!1!==c&&c[e].apply(c);c=ASL.instances.get(c);return!1!==c&&c.forEach(function(l){l[f].apply(l,[e])})},a=function(c,f){if("exists"==f)return ASL.instances.exist(c);c=ASL.instances.get(c);return!1!==c&&c.forEach(function(e){e[f].apply(e)})};if(4==arguments.length)return d.apply(this,arguments);if(3==arguments.length)return b.apply(this,arguments);if(2==arguments.length)return a.apply(this,arguments);0==arguments.length&&(console.log("Usage: ASL.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchlite.com/other/javascript-api"))};
seraph_accel_gzjydy();(function(a){a.fn.extend(window.WPD.ajaxsearchlite.plugin,{showVerticalResults:function(){this.showResultsBox();if(0<this.n("items").length){let b=this.n("items").length<this.o.itemscount?this.n("items").length:this.o.itemscount;b=0>=b?9999:b;let h=a(".asl_group_header",this.n("resultsDiv"));if(0==this.o.itemscount||this.n("items").length<=this.o.itemscount)this.n("results").css({height:"auto"});else if(1>this.call_num&&this.n("results").css({height:"30px"}),1>this.call_num){let c=0,d=0,e=0,g=0;this.n("items").forEach(function(){d+=a(this).outerHeight(!0);a(this).outerHeight(!0)>g&&(g=a(this).outerHeight(!0));c++});e=g*b;e>d&&(e=d);c=1>c?1:c;d=d/c*b;0<h.length&&h.forEach(function(f,k){f=Array.prototype.slice.call(f.parentNode.children).indexOf(f);f-k-Math.floor(f/3)<b&&(e+=a(this).outerHeight(!0))});this.n("results").css({height:e+"px"})}this.n("items").last().addClass("asl_last_item");this.n("results").find(".asl_group_header").prev(".item").addClass("asl_last_item");1==this.o.highlight&&a("div.item",this.n("resultsDiv")).highlight(this.n("text").val().split(" "),{element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords})}this.resize();0==this.n("items").length&&this.n("results").css({height:"auto"});this.n("results").css({overflowY:"auto"});this.n("results").get(0).scrollTop=0;this.fixResultsPosition(!0);this.searching=!1}})})(WPD.dom);
seraph_accel_gzjydy();(function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{autocompleteGoogleOnly:function(){let a=this,d=a.n("text").val();if(""==a.n("text").val())a.n("textAutocomplete").val("");else{var e=a.n("textAutocomplete").val();if(""==e||0!=e.indexOf(d)){a.n("textAutocomplete").val("");var f=a.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(b){0<c('input[name="'+b+'"]',a.n("searchsettings")).length&&1<c('input[name="'+b+'"]',a.n("searchsettings")).val().length&&(f=c('input[name="'+
b+'"]',a.n("searchsettings")).val())});a.n("text").val().length>=a.o.autocomplete.trigger_charcount&&c.fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:d,hl:f,nolabels:"t",client:"hp",ds:""},success:function(b){0<b[1].length&&(b=b[1][0][0].replace(/(<([^>]+)>)/ig,""),b=c("<textarea />").html(b).text(),b=b.substr(d.length),a.n("textAutocomplete").val(d+b),a.fixAutocompleteScrollLeft())}})}}},fixAutocompleteScrollLeft:function(){this.n("textAutocomplete").get(0).scrollLeft=this.n("text").get(0).scrollLeft}})})(WPD.dom);(function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initAutocompleteEvent:function(){let a=this;1==a.o.autocomplete.enabled&&(a.n("text").on("keyup",function(d){a.keycode=d.keyCode||d.which;a.ktype=d.type;let e=39;c("body").hasClass("rtl")&&(e=37);a.keycode==e&&""!=a.n("textAutocomplete").val()?(d.preventDefault(),a.n("text").val(a.n("textAutocomplete").val()),null!=a.post&&a.post.abort(),a.search()):(null!=a.postAuto&&a.postAuto.abort(),a.autocompleteGoogleOnly())}),a.n("text").on("keyup mouseup input blur select",function(){a.fixAutocompleteScrollLeft()}))}})})(WPD.dom);
seraph_accel_gzjydy();WPD.dom._fn.plugin("ajaxsearchlite",window.WPD.ajaxsearchlite.plugin);
seraph_accel_gzjydy();window._ASL_load=function(){let d=WPD.dom;window.ASL.instances={instances:[],get:function(b,a){this.clean();if("undefined"===typeof b||0==b)return this.instances;if("undefined"===typeof a){a=[];for(var c=0;c<this.instances.length;c++)this.instances[c].o.id==b&&a.push(this.instances[c]);return 0<a.length?a:!1}for(c=0;c<this.instances.length;c++)if(this.instances[c].o.id==b&&this.instances[c].o.iid==a)return this.instances[c];return!1},set:function(b){if(this.exist(b.o.id,b.o.iid))return!1;this.instances.push(b);return!0},exist:function(b,a){this.clean();for(let c=0;c<this.instances.length;c++)if(this.instances[c].o.id==b&&("undefined"===typeof a||this.instances[c].o.iid==a))return!0;return!1},clean:function(){let b=[],a=this;this.instances.forEach(function(c,e){0==d(".asl_m_"+c.o.rid).length&&b.push(e)});b.forEach(function(c){"undefined"!==typeof a.instances[c]&&(a.instances[c].destroy(),a.instances.splice(c,1))})},destroy:function(b,a){let c=this.get(b,a);if(!1!==c)if(Array.isArray(c))c.forEach(function(e){e.destroy()}),this.instances=[];else{let e=0;this.instances.forEach(function(h,f){h.o.id==b&&h.o.iid==a&&(e=f)});c.destroy();this.instances.splice(e,1)}}};window.ASL.initialized=!1;window.ASL.initializeSearchByID=function(b){let a=ASL.getInstances();if("undefined"!==typeof b&&"object"!=typeof b)if("undefined"!==typeof a[b]){let e=[];e[b]=a[b];a=e}else return!1;let c=0;a.forEach(function(e,h){d(".asl_w_container_"+h).forEach(function(f){var g=d(f).parent();g.is("a")&&(f=document.createElement("div"),g=g.get(0),f.innerHTML=g.innerHTML,g.replaceWith(f))});d(".asl_m_"+h).forEach(function(f){let g=d(f);if("undefined"!=typeof g.get(0).hasAsl)return++c,!0;f.hasAsl=!0;++c;return g.ajaxsearchlite(e)})})};window.ASL.getInstances=function(){if("undefined"!==typeof window.ASL_INSTANCES)return window.ASL_INSTANCES;let b=[];d(".asl_init_data").forEach(function(a){if("undefined"===typeof a.dataset.asldata)return!0;let c=WPD.Base64.decode(a.dataset.asldata);if("undefined"===typeof c||""==c)return!0;b[a.dataset.aslId]=JSON.parse(c)});return b};window.ASL.initialize=function(b){if("undefined"==typeof ASL.version)return!1;if(window.IntersectionObserver)if(ASL.script_async_load||ASL.init_only_in_viewport){if(b=document.querySelectorAll(".asl_w_container"),b.length){let a=new IntersectionObserver(function(c){c.forEach(function(e){e.isIntersecting&&(ASL.initializeSearchByID(e.target.dataset.id),a.unobserve(e.target))})});b.forEach(function(c){a.observe(c)})}}else ASL.initializeSearchByID(b);else ASL.initializeSearchByID(b);ASL.initializeMutateDetector();ASL.initializeHighlight();ASL.initializeOtherEvents();ASL.initialized=!0};window.ASL.initializeHighlight=function(){if(this.highlight.enabled)return this.highlight.data.forEach(function(b){var a=""!=b.selector&&0<d(b.selector).length?b.selector:"article";a=0<d(a).length?a:"body";var c=new URLSearchParams(location.search);c=c.get("s")||c.get("asl_highlight");d(a).unhighlight({className:"asl_single_highlighted"});null!==c&&""!=c.trim()&&(a=0<d(a).length?a:"body",d(a).highlight(c.trim().split(" "),{element:"span",className:"asl_single_highlighted",wordsOnly:b.whole,excludeParents:".asl_w, .asl-try"}),a=d(".asl_single_highlighted"),b.scroll&&0<a.length&&(a=a.offset().top-120,c=d("#wpadminbar"),0<c.length&&(a-=c.height()),a+=b.scroll_offset,a=0>a?0:a,d("html").animate({scrollTop:a},500)))}),!1};window.ASL.initializeOtherEvents=function(){let b,a=this;d("body").on("click touchend","#menu-item-search, .fa-search, .fa, .fas, .fusion-flyout-menu-toggle, .fusion-main-menu-search-open, #search_button, .mini-search.popup-search, .icon-search, .menu-item-search-dropdown, .mobile-menu-button, .td-icon-search, .tdb-search-icon, .side_menu_button, .search_button, .raven-search-form-toggle, [data-elementor-open-lightbox], .elementor-button-link, .elementor-button, i[class*=-search], a[class*=-search]",function(){clearTimeout(b);b=setTimeout(function(){a.initializeSearchByID()},300)});if("undefined"!=typeof jQuery)jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){a.initializeSearchByID()},10)})};window.ASL.initializeMutateDetector=function(){let b;"undefined"!=typeof ASL.detect_ajax&&1==ASL.detect_ajax&&(new MutationObserver(function(){clearTimeout(b);b=setTimeout(function(){ASL.initializeSearchByID()},500)})).observe(document.querySelector("body"),{subtree:!0,childList:!0})};window.ASL.ready=function(){if("complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState)this.initialize();else d(document).on("DOMContentLoaded",this.initialize)};window.ASL.loadScriptStack=function(b){let a;0<b.length&&(a=document.createElement("script"),a.src=b.shift().src,a.onload=function(){0<b.length?window.ASL.loadScriptStack(b):window.ASL.ready()},document.body.appendChild(a))};window.ASL.init=function(){ASL.script_async_load?window.ASL.loadScriptStack(ASL.additional_scripts):"undefined"!==typeof WPD.ajaxsearchlite&&window.ASL.ready()};window.WPD.intervalUntilExecute(window.ASL.init,function(){return"undefined"!=typeof window.ASL.version&&"undefined"!=d.fn.ajaxsearchlite})};(function(){"undefined"!=typeof WPD&&"undefined"!=typeof WPD.dom?window._ASL_load():document.addEventListener("wpd-dom-core-loaded",window._ASL_load)})();
seraph_accel_gzjydy();((f,v,b,j)=>{function t(){e&&e.apply(this,arguments),e=null}var e;j=f.extend({$div:null,settings:null,store:null,chatbox:!1,showed_at:0,is_ready:!1,is_mobile:!!navigator.userAgent.match(/Android|iPhone|BlackBerry|IEMobile|Opera Mini/i),can_qr:v.QrCreator&&"function"==typeof QrCreator.render},j),(v.joinchat_obj=j).$=function(t){return f(t||this.$div,this.$div)},j.send_event=function(t){if((t=f.extend({event_category:"JoinChat",event_label:"",event_action:"",chat_channel:"whatsapp",chat_id:"--",is_mobile:this.is_mobile?"yes":"no",page_location:location.href,page_title:b.title||"no title"},t)).event_label=t.event_label||t.link||"",t.event_action=t.event_action||t.chat_channel+": "+t.chat_id,delete t.link,!1!==f(b).triggerHandler("joinchat:event",[t])){var e=v[this.settings.data_layer]||v[v.gtm4wp_datalayer_name]||v.dataLayer;if("object"==typeof e){"undefined"==typeof gtag&&(v.gtag=function(){e.push(arguments)});var n=this.settings.ga_event||"generate_lead",i=f.extend({transport_type:"beacon"},t),s=(f.each(i,function(t,e){"page_location"==t?i[t]=e.substring(0,1e3):"page_referrer"==t?i[t]=e.substring(0,420):"page_title"==t?i[t]=e.substring(0,300):"string"==typeof e&&(i[t]=e.substring(0,100))}),[]),a=function(t){s.includes(t)||(t.startsWith("G-")||t.startsWith("GT-"))&&(s.push(t),gtag("event",n,f.extend({send_to:t},i)))};if(v.google_tag_data&&google_tag_data.tidr&&google_tag_data.tidr.destination)for(var o in google_tag_data.tidr.destination)a(o);e.forEach(function(t){"config"==t[0]&&t[1]&&a(t[1])}),this.settings.gads&&gtag("event","conversion",{send_to:this.settings.gads})}var h=t.event_category;delete t.event_category,"object"==typeof e&&e.push(f.extend({event:h},t)),"function"==typeof fbq&&fbq("trackCustom",h,t)}},j.whatsapp_link=function(t,e,n){return e=void 0!==e?e:this.settings.message_send||"",((n=void 0!==n?n:this.settings.whatsapp_web&&!this.is_mobile)?"https://web.whatsapp.com/send?phone=":"https://wa.me/")+encodeURIComponent(t||this.settings.telephone)+(e?(n?"&text=":"?text=")+encodeURIComponent(e):"")},j.show=function(t){this.$div.addClass("joinchat--show"+(t?" joinchat--tooltip":""))},j.hide=function(){this.$div.removeClass("joinchat--show")},j.chatbox_show=function(){this.chatbox||(this.chatbox=!0,this.showed_at=Date.now(),this.$div.addClass("joinchat--chatbox"),this.settings.message_badge&&this.$(".joinchat__badge").hasClass("joinchat__badge--in")&&this.$(".joinchat__badge").toggleClass("joinchat__badge--in joinchat__badge--out"),f(b).trigger("joinchat:show"))},j.chatbox_hide=function(){this.chatbox&&(this.chatbox=!1,this.$div.removeClass("joinchat--chatbox joinchat--tooltip"),this.settings.message_badge&&this.$(".joinchat__badge").removeClass("joinchat__badge--out"),f(b).trigger("joinchat:hide"))},j.save_hash=function(t){!this.settings.message_hash||this.settings.message_delay<0&&!t||-1===(t=(this.store.getItem("joinchat_hashes")||"").split(",").filter(Boolean)).indexOf(this.settings.message_hash)&&(t.push(this.settings.message_hash),this.store.setItem("joinchat_hashes",t.join(",")))},j.open_whatsapp=function(t,e){t=t||this.settings.telephone,e=void 0!==e?e:this.settings.message_send||"";t={link:this.whatsapp_link(t,e),chat_channel:"whatsapp",chat_id:t,chat_message:e},e=new RegExp("^https?://(wa.me|(api|web|chat).whatsapp.com|"+location.hostname.replace(".",".")+")/.*","i");!1!==f(b).triggerHandler("joinchat:open",[t])&&(e.test(t.link)?(this.send_event(t),v.open(t.link,"joinchat","noopener")):console.error("Joinchat: the link doesn't seem safe, it must point to the current domain or whatsapp.com"))},j.optin=function(){return!this.$div.hasClass("joinchat--optout")},j.use_qr=function(){return!!this.settings.qr&&this.can_qr&&!this.is_mobile},j.qr=function(t,e){var n=b.createElement("CANVAS");return QrCreator.render(f.extend({text:t,radius:.4,background:"#FFF",size:200},this.settings.qr||{},e||{}),n),n},e=function(){if(j.$div=f(".joinchat"),j.$div.length){j.settings=j.$div.data("settings");try{localStorage.setItem("test",1),localStorage.removeItem("test"),j.store=localStorage}catch(t){j.store={_data:{},setItem:function(t,e){this._data[t]=String(e)},getItem:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}}}if("object"!=typeof j.settings)try{j.settings=JSON.parse(j.$div.attr("data-settings"))}catch(t){j.settings=void 0,console.error("Joinchat: can't get settings")}var t,e,n,i,s,a,o,h,c,r,_,g,l,d;j.settings&&j.settings.telephone&&(j.is_mobile||!j.settings.mobile_only?(f(b).trigger("joinchat:starting"),n=1e3*j.settings.button_delay,i=Math.max(0,1e3*j.settings.message_delay),s=!!j.settings.message_hash,a=!!j.$(".joinchat__box").length,o=parseInt(j.store.getItem("joinchat_views")||1)>=j.settings.message_views,l=(j.store.getItem("joinchat_hashes")||"").split(",").filter(Boolean),h=void 0!==j.settings.is_viewed?j.settings.is_viewed:-1!==l.indexOf(j.settings.message_hash||"none"),_=!h&&(j.settings.message_badge||!s||!i||!o),setTimeout(function(){j.show(_)},n),s&&i&&!h&&(j.settings.message_badge?e=setTimeout(function(){j.$(".joinchat__badge").addClass("joinchat__badge--in")},n+i):o&&(e=setTimeout(u,n+i))),a&&!j.is_mobile&&j.$(".joinchat__button").on("mouseenter",function(){t=setTimeout(u,1500)}).on("mouseleave",function(){clearTimeout(t)}),j.$(".joinchat__button").on("click",function(){a&&!j.chatbox?u():Date.now()>j.showed_at+600&&(p(),j.open_whatsapp())}),j.$(".joinchat__close").on("click",p),j.$("#joinchat_optin").on("change",function(){j.$div.toggleClass("joinchat--optout",!this.checked)}),j.$(".joinchat__box__scroll").on("mousewheel DOMMouseScroll",function(t){t.preventDefault();t=t.originalEvent.wheelDelta||-t.originalEvent.detail;this.scrollTop+=30*(t<0?1:-1)}),j.is_mobile&&(f(b).on("focus blur","input, textarea",function(t){f(t.target).closest(j.$div).length||(clearTimeout(c),c=setTimeout(m,200))}),f(v).on("resize",function(){clearTimeout(r),r=setTimeout(function(){j.$div[0].style.setProperty("--vh",v.innerHeight+"px")},200)}).trigger("resize")),"#joinchat"==(l=new URL(v.location)).hash&&(j.show(),setTimeout(u,700)),l.searchParams.has("joinchat")&&(n=1e3*(parseInt(l.searchParams.get("joinchat"))||0),setTimeout(function(){j.show()},n),setTimeout(u,700+n)),f(b).on("click",'.joinchat_open, .joinchat_app, a[href="#joinchat"], a[href="#whatsapp"]',function(t){t.preventDefault(),!a||j.optin()&&!f(this).is('.joinchat_open, a[href="#joinchat"]')?j.open_whatsapp(f(this).data("phone"),f(this).data("message")):u()}),f(b).on("click",".joinchat_close",function(t){t.preventDefault(),j.chatbox_hide()}),l=f(".joinchat_show, .joinchat_force_show"),s&&l.length&&"IntersectionObserver"in v&&(g=new IntersectionObserver(function(t){f.each(t,function(){if(!(this.intersectionRatio<=0)){var t=this.target.classList.contains("joinchat_force_show");if(!h||t)return g.disconnect(),j.save_hash(!t),u(),!1}})}),l.each(function(){g.observe(this)})),j.use_qr()?j.$(".joinchat__qr").append(j.qr(j.whatsapp_link(void 0,void 0,!1))):j.$(".joinchat__qr").remove(),a&&j.$div.css("--peak","url(#joinchat__peak_"+(j.$div.closest("[dir=rtl]").length?"r":"l")+")"),i&&!o&&j.store.setItem("joinchat_views",parseInt(j.store.getItem("joinchat_views")||0)+1),f(b).trigger("joinchat:start"),j.is_ready=!0):(j.hide(),f(b).on("click",'.joinchat_open, .joinchat_app, a[href="#joinchat"], a[href="#whatsapp"]',function(t){t.preventDefault(),j.open_whatsapp(f(this).data("phone"),f(this).data("message"))})),j.can_qr&&!j.is_mobile?f(".joinchat-button__qr").each(function(){f(this).append(j.qr(j.whatsapp_link(f(this).data("phone"),f(this).data("message"),!1)))}):f(".wp-block-joinchat-button figure").remove(),void 0!==j.settings.sku)&&(d=j.settings.message_send,f("form.variations_form").on("found_variation reset_data",function(t,e){e=e&&e.sku||j.settings.sku;j.$(".joinchat__box sku").text(e),j.settings.message_send=d.replace(/<sku>.*<\/sku>/g,e)}))}function u(){clearTimeout(e),j.chatbox_show()}function p(){j.save_hash(),j.chatbox_hide()}function m(){var t=(b.activeElement.type||"").toLowerCase();0<=["date","datetime","email","month","number","password","search","tel","text","textarea","time","url","week"].indexOf(t)?j.chatbox?(j.chatbox_hide(),setTimeout(function(){j.hide()},400)):j.hide():j.show()}},f(t),f(v).on("load",t),b.addEventListener("DOMContentLoaded",t)})(jQuery,window,document,window.joinchat_obj||{});
seraph_accel_gzjydy();(function($){"use strict";var tourmaster_display='desktop';if(typeof(window.matchMedia)=='function'){$(window).on('resize tourmaster-set-display',function(){if(window.matchMedia('(max-width: 419px)').matches){tourmaster_display='mobile-portrait';}else if(window.matchMedia('(max-width: 767px)').matches){tourmaster_display='mobile-landscape'}else if(window.matchMedia('(max-width: 999px)').matches){tourmaster_display='tablet'}else{tourmaster_display='desktop';}});$(window).trigger('tourmaster-set-display');}else{$(window).on('resize tourmaster-set-display',function(){if($(window).innerWidth()<=419){tourmaster_display='mobile-portrait';}else if($(window).innerWidth()<=767){tourmaster_display='mobile-landscape'}else if($(window).innerWidth()<=999){tourmaster_display='tablet'}else{tourmaster_display='desktop';}});$(window).trigger('tourmaster-set-display');}
$.fn.tourmaster_datepicker=function(){$(this).each(function(){var date_input=$(this);var datepicker_wrap=$(this).closest('.tourmaster-datepicker-wrap');var alternate_field=$(this).siblings('.tourmaster-datepicker-alt');var date_format=$(this).attr('data-date-format');if(!$(this).attr('data-tour-date')){if(date_input.val()){datepicker_wrap.addClass('tourmaster-with-date');}
$(this).datepicker({dateFormat:date_format,altFormat:'yy-mm-dd',altField:alternate_field,changeMonth:true,changeYear:true,minDate:new Date(),onSelect:function(){datepicker_wrap.addClass('tourmaster-with-date');}});datepicker_wrap.on('click','.tourmaster-clear-date',function(){date_input.val('');alternate_field.val('');datepicker_wrap.removeClass('tourmaster-with-date');});}else{var date_range=$(this).attr('data-tour-range');var available_date=JSON.parse($(this).attr('data-tour-date'));var current_date=$(this).val();var selected_date=current_date;$(this).datepicker({dateFormat:date_format,altFormat:'yy-mm-dd',altField:alternate_field,changeMonth:true,changeYear:true,minDate:new Date(available_date[0]),maxDate:new Date(available_date[available_date.length-1]),beforeShowDay:function(date){current_date=date.getFullYear()+'-';current_date+=('0'+(date.getMonth()+1)).slice(-2)+'-';current_date+=('0'+date.getDate()).slice(-2);var extra_class='';var date_diff=tourmaster_date_diff(selected_date,current_date);if(date_diff>=0&&date_diff<date_range){extra_class='tourmaster-highlight';}
if(available_date.indexOf(current_date)>=0){return[true,extra_class,''];}else{return[false,extra_class,''];}},onSelect:function(dateText,inst){selected_date=inst.selectedYear+'-';selected_date+=('0'+(inst.selectedMonth+1)).slice(-2)+'-';selected_date+=('0'+inst.selectedDay).slice(-2);alternate_field.trigger('change');},beforeShow:function(input,inst){var widget=$(inst).datepicker('widget');if($("body").hasClass("rtl")){widget.css('margin-left',widget.outerWidth()-$(input).outerWidth());}else{widget.css('margin-left',$(input).outerWidth()-widget.outerWidth());}
widget.css('margin-top',-2);},closeText:TMi18n.closeText,currentText:TMi18n.currentText,monthNames:TMi18n.monthNames,monthNamesShort:TMi18n.monthNamesShort,dayNames:TMi18n.dayNames,dayNamesShort:TMi18n.dayNamesShort,dayNamesMin:TMi18n.dayNamesMin,firstDay:TMi18n.firstDay});var initial_date=new Date(current_date+'T00:00:00+00:00');initial_date=new Date(initial_date.getTime()+(initial_date.getTimezoneOffset()*60000));$(this).datepicker('setDate',initial_date);}});}
function tourmaster_date_diff(date1,date2){var dt1=new Date(date1);var dt2=new Date(date2);return Math.floor((Date.UTC(dt2.getFullYear(),dt2.getMonth(),dt2.getDate())-Date.UTC(dt1.getFullYear(),dt1.getMonth(),dt1.getDate()))/(1000*60*60*24));}
function tourmaster_tour_booking_ajax(ajax_url,ajax_settings,ajax_data){var ajax_settings=$.extend({beforeSend:function(jqXHR,settings){},error:function(jqXHR,textStatus,errorThrown){console.log(jqXHR,textStatus,errorThrown);},success:function(data){}},ajax_settings);var ajax_data=$.extend({action:'tourmaster_tour_booking',},ajax_data);$.ajax({type:'POST',url:ajax_url,data:ajax_data,dataType:'json',beforeSend:ajax_settings.beforeSend,error:ajax_settings.error,success:ajax_settings.success});}
function tourmaster_tour_input(form){var ret={};form.find('input[name], select[name], textarea[name]').each(function(){var key=$(this).attr('name');if((key.lastIndexOf('[]')==(key.length-2))){key=key.substr(0,key.length-2);if(typeof(ret[key])!='object'){ret[key]=[]}
ret[key].push($(this).val());}else{ret[key]=$(this).val();}});return ret;}
function tourmaster_get_booking_detail(form){var booking_detail={};form.find('input[name], select[name], textarea[name]').each(function(){var key=$(this).attr('name');var value;if($(this).is('[type="checkbox"]')){var value=$(this).is(':checked')?$(this).val():0;}else if($(this).is('[type="radio"]')){if($(this).is(':checked')){var value=$(this).val();}else{return;}}else{var value=$(this).val();}
if((key.lastIndexOf('[]')==(key.length-2))){key=key.substr(0,key.length-2);if(typeof(booking_detail[key])!='object'){booking_detail[key]=[]}
booking_detail[key].push(value);}else{booking_detail[$(this).attr('name')]=value;}});return booking_detail;}
$.fn.tourmaster_tour_booking=function(){var form=$(this);var ajax_url=$(this).attr('data-ajax-url');$(this).on('change','input[name="tour-date"], select[name="tour-date"]',function(){var sent_data=tourmaster_tour_input(form);sent_data['step']=1;form.find('[data-step]').each(function(){if($(this).attr('data-step')>1){$(this).slideUp(200,function(){$(this).remove();});}});tourmaster_tour_booking_ajax(ajax_url,{success:function(data){if(typeof(data.content)!='undefined'){form.find('[data-step]').each(function(){if($(this).attr('data-step')>1){$(this).slideUp(200,function(){$(this).remove();});}});var content=$(data.content).hide();form.append(content);content.find('.tourmaster-datepicker').tourmaster_datepicker();content.slideDown(200);}}},{data:sent_data});});$(this).on('change','input[name="package"]',function(){var sent_data=tourmaster_tour_input(form);sent_data['step']=2;form.find('[data-step]').each(function(){if($(this).attr('data-step')>2){$(this).slideUp(200,function(){$(this).remove();});}});tourmaster_tour_booking_ajax(ajax_url,{success:function(data){if(typeof(data.content)!='undefined'){var content=$(data.content).hide();form.append(content);content.find('.tourmaster-datepicker').tourmaster_datepicker();content.slideDown(200);}}},{data:sent_data});});$(this).on('change','select[name="tour-room"]',function(){var wrap=$(this).closest('.tourmaster-tour-booking-room');var template=wrap.siblings('.tourmaster-tour-booking-room-template').children();var container=wrap.siblings('.tourmaster-tour-booking-people-container');var container_animate=false;if($(this).val()&&container.length==0){var container=$('<div class="tourmaster-tour-booking-people-container" data-step="999" ></div>').hide();container.insertAfter(wrap);container_animate=true;}
if($(this).val()){var count=parseInt($(this).val())-container.children().length;if(count>0){for(var i=0;i<count;i++){var clone=template.clone();clone.attr('data-step',4);clone.find('.tourmaster-tour-booking-room-text > span').html((container.children().length+1));container.append(clone);if(!container_animate){clone.hide();clone.slideDown(200);}}}else if(count<0){container.children('div').slice(count).slideUp(200,function(){$(this).remove();});}
if(container_animate){container.slideDown(200);}}else{if(container.length>0){container.slideUp(200,function(){$(this).remove();});}}});if($(this).hasClass('tourmaster-update-header-price')){$(this).on('change','input, select',function(){var booking_data=tourmaster_get_booking_detail(form);tourmaster_tour_booking_ajax(ajax_url,{success:function(data){if(typeof(data.price)!='undefined'){var header_price=$('.tourmaster-header-price');header_price.find('.tourmaster-tour-discount-price').remove();header_price.find('.tourmaster-tour-price-wrap').removeClass('tourmaster-discount');header_price.addClass('tourmaster-price-updated').find('.tourmaster-tour-price .tourmaster-tail').html(data.price);$(window).trigger('resize');}}},{action:'tourmaster_update_head_price',data:booking_data});});}
$(this).on('click','input[type="submit"]',function(){var submit_button=$(this);var error_message=$(this).siblings('.tourmaster-tour-booking-submit-error');var validate=true;form.find('input[data-required], select[data-required], textarea[data-required]').each(function(){if(!$(this).val()){validate=false;}});if(!validate){error_message.slideDown(200);return false;}
var extra_booking_info={};form.find('.tourmaster-extra-booking-field').find('input, select, textarea').each(function(){extra_booking_info[$(this).attr('name')]=$(this).val();});var submit=true;var tour_package='';var traveller_amount=0;var adult_amount=0;var male_amount=0;var female_amount=0;var max_traveller_per_room=0;error_message.filter('.tourmaster-temp').slideUp(200,function(){$(this).remove()});form.find('[data-step]').each(function(){var step=$(this).attr('data-step');if(step==1||step==2||step==3){$(this).find('input[name], select[name]').each(function(){if($(this).val()==""){submit=false;}else if($(this).attr('name')=='package'){tour_package=$(this).val();}});}else if(step==4){var num_people=0;var room_people=0;$(this).find('select[name], input[name]').each(function(){if($(this).attr('name')=='group'){traveller_amount='group';adult_amount='group';}else if($(this).val()!=""){room_people+=parseInt($(this).val());if($(this).is('[name^="tour-adult"], [name^="tour-people"]')){adult_amount+=room_people;}else if($(this).is('[name^="tour-male"]')){male_amount+=room_people;adult_amount+=room_people;}else if($(this).is('[name^="tour-female"]')){female_amount+=room_people;adult_amount+=room_people;}}});num_people+=room_people;if(room_people>max_traveller_per_room){max_traveller_per_room=room_people;}
if(traveller_amount!='group'){if(num_people<=0){submit=false;}else{traveller_amount+=num_people;}}}});if(!submit){error_message.slideDown(200);}else{error_message.slideUp(200);submit_button.animate({opacity:0.5});tourmaster_tour_booking_ajax(ajax_url,{success:function(data){if(data.status=='success'){if(submit&&submit_button.attr('data-ask-login')){;var content=submit_button.siblings('[data-tmlb-id="'+submit_button.attr('data-ask-login')+'"]');if(content.length==0){content=form.closest('form').siblings('[data-tmlb-id="'+submit_button.attr('data-ask-login')+'"]');}
var lb_content=content.clone();if(lb_content.find('.nsl-container-block').length>0){lb_content.find('.nsl-container-block').replaceWith(content.find('.nsl-container-block').clone(true));}
tourmaster_lightbox(lb_content);var booking_detail=tourmaster_get_booking_detail(form);tourmaster_set_cookie('tourmaster-booking-detail',JSON.stringify(booking_detail),0);}else{var booking_detail=tourmaster_get_booking_detail(form);tourmaster_set_cookie('tourmaster-booking-detail',JSON.stringify(booking_detail),0);form.submit();}}else if(typeof(data.message)!='undefined'){var temp_error=$('<div class="tourmaster-tour-booking-submit-error tourmaster-temp" ></div>').html(data.message);temp_error.insertAfter(submit_button);temp_error.slideDown(200);}
submit_button.animate({opacity:1});}},{action:'tourmaster_tour_booking_amount_check',tid:form.find('[name="tid"]').val(),tour_id:form.find('[name="tour-id"]').val(),tour_date:form.find('[name="tour-date"]').val(),traveller:traveller_amount,'adult_amount':adult_amount,'male_amount':male_amount,'female_amount':female_amount,'package':tour_package,'max_traveller_per_room':max_traveller_per_room,'extra_booking_info':extra_booking_info});}
return false;});}
$.fn.tourmaster_tour_booking_sticky=function(){$(this).each(function(){var page_wrap=$(this).closest('.tourmaster-page-wrapper');var template_wrap=page_wrap.children('.tourmaster-template-wrapper');var booking_bar_wrap=$(this);var booking_bar_anchor=$(this).siblings('.tourmaster-tour-booking-bar-anchor');var top_offset=parseInt($('html').css('margin-top'));var left_offset=parseInt(booking_bar_anchor.css('margin-left'));var right_offset=parseInt(booking_bar_anchor.css('margin-right'));if(page_wrap.hasClass('tourmaster-tour-style-1')){$(this).addClass('tourmaster-start-script');page_wrap.siblings('.tourmaster-single-header').addClass('tourmaster-start-script');var header_price=$(this).children('.tourmaster-tour-booking-bar-outer').children('.tourmaster-header-price');booking_bar_wrap.css('margin-top',-header_price.outerHeight());booking_bar_anchor.css('margin-top',-header_price.outerHeight());page_wrap.css('min-height',booking_bar_wrap.height()-header_price.outerHeight());$(window).resize(function(){booking_bar_wrap.css('margin-top',-header_price.outerHeight());booking_bar_anchor.css('margin-top',-header_price.outerHeight());page_wrap.css('min-height',booking_bar_wrap.height()-header_price.outerHeight())
if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'','top':'','right':'','margin-top':booking_bar_anchor.css('margin-top')});}else{booking_bar_wrap.css({'position':'','top':'','left':'','margin-top':booking_bar_anchor.css('margin-top')});}
booking_bar_wrap.removeClass('tourmaster-fixed tourmaster-top tourmaster-bottom tourmaster-lock');});}
var top_padding=0;var prev_scroll=0;$(window).on('scroll resize',function(){if(!booking_bar_anchor.length)return;var animate_on_scroll=true;if(tourmaster_display=='mobile-landscape'||tourmaster_display=='mobile-portrait'||tourmaster_display=='tablet'){animate_on_scroll=false;}
var scroll_direction=(prev_scroll>$(window).scrollTop())?'up':'down';prev_scroll=$(window).scrollTop();if(animate_on_scroll&&$(window).scrollTop()+top_offset+top_padding>booking_bar_anchor.offset().top){if($(window).height()>booking_bar_wrap.outerHeight()+top_padding){if($(window).scrollTop()+booking_bar_wrap.outerHeight()+top_offset+(top_padding*2)>page_wrap.offset().top+page_wrap.outerHeight()){if(!booking_bar_wrap.hasClass('tourmaster-fixed-lock')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'absolute','top':template_wrap.outerHeight()-booking_bar_wrap.outerHeight()-top_padding,'right':'auto','margin-top':0});}else{booking_bar_wrap.css({'position':'absolute','top':template_wrap.outerHeight()-booking_bar_wrap.outerHeight()-top_padding,'left':'auto','margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-fixed');booking_bar_wrap.addClass('tourmaster-fixed-lock');}}else if(!booking_bar_wrap.hasClass('tourmaster-fixed')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'fixed','top':top_padding+top_offset,'right':$(window).width()-(booking_bar_anchor.offset().left+booking_bar_anchor.outerWidth())-right_offset,'margin-top':0});}else{booking_bar_wrap.css({'position':'fixed','top':top_padding+top_offset,'left':booking_bar_anchor.offset().left-left_offset,'margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-fixed-lock');booking_bar_wrap.addClass('tourmaster-fixed');}else{if(booking_bar_wrap.hasClass('tourmaster-fixed')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'right':$(window).width()-(booking_bar_anchor.offset().left+booking_bar_anchor.outerWidth())-right_offset,});}else{booking_bar_wrap.css({'left':booking_bar_anchor.offset().left-left_offset,});}}}}else{if(scroll_direction=='down'){if(booking_bar_wrap.hasClass('tourmaster-top')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'absolute','top':$(window).scrollTop()+top_padding+top_offset-booking_bar_wrap.parent().offset().top,'right':'auto','margin-top':0});}else{booking_bar_wrap.css({'position':'absolute','top':$(window).scrollTop()+top_padding+top_offset-booking_bar_wrap.parent().offset().top,'left':'auto','margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-top');booking_bar_wrap.addClass('tourmaster-lock');}else if($(window).scrollTop()+$(window).height()>page_wrap.offset().top+page_wrap.outerHeight()){if(!booking_bar_wrap.hasClass('tourmaster-lock')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'absolute','top':template_wrap.outerHeight()-booking_bar_wrap.outerHeight(),'right':'auto','margin-top':0});}else{booking_bar_wrap.css({'position':'absolute','top':template_wrap.outerHeight()-booking_bar_wrap.outerHeight(),'left':'auto','margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-bottom');booking_bar_wrap.addClass('tourmaster-lock');}}else if($(window).scrollTop()+$(window).height()>booking_bar_wrap.offset().top+booking_bar_wrap.outerHeight()){if(!booking_bar_wrap.hasClass('tourmaster-bottom')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'fixed','top':$(window).height()-booking_bar_wrap.outerHeight(),'right':$(window).width()-(booking_bar_anchor.offset().left+booking_bar_anchor.outerWidth())-right_offset,'margin-top':0});}else{booking_bar_wrap.css({'position':'fixed','top':$(window).height()-booking_bar_wrap.outerHeight(),'left':booking_bar_anchor.offset().left-left_offset,'margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-top tourmaster-lock');booking_bar_wrap.addClass('tourmaster-bottom');}}else{if(booking_bar_wrap.hasClass('tourmaster-bottom')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'right':$(window).width()-(booking_bar_anchor.offset().left+booking_bar_anchor.outerWidth())-right_offset,});}else{booking_bar_wrap.css({'left':booking_bar_anchor.offset().left-left_offset});}}}}else{if(booking_bar_wrap.hasClass('tourmaster-bottom')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'absolute','top':$(window).scrollTop()+$(window).height()-booking_bar_wrap.outerHeight()-booking_bar_wrap.parent().offset().top,'right':'auto','margin-top':0});}else{booking_bar_wrap.css({'position':'absolute','top':$(window).scrollTop()+$(window).height()-booking_bar_wrap.outerHeight()-booking_bar_wrap.parent().offset().top,'left':'auto','margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-bottom');booking_bar_wrap.addClass('tourmaster-lock');}else if(booking_bar_wrap.hasClass('tourmaster-lock')&&$(window).scrollTop()+top_offset+top_padding<booking_bar_wrap.offset().top){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'fixed','top':top_padding+top_offset,'right':$(window).width()-(booking_bar_anchor.offset().left+booking_bar_anchor.outerWidth())-right_offset,'margin-top':0});}else{booking_bar_wrap.css({'position':'fixed','top':top_padding+top_offset,'left':booking_bar_anchor.offset().left-left_offset,'margin-top':0});}
booking_bar_wrap.removeClass('tourmaster-bottom tourmaster-lock');booking_bar_wrap.addClass('tourmaster-top');}}}}else{if(booking_bar_wrap.hasClass('tourmaster-fixed')||booking_bar_wrap.hasClass('tourmaster-top')||booking_bar_wrap.hasClass('tourmaster-bottom')||booking_bar_wrap.hasClass('tourmaster-lock')){if($("body").hasClass("rtl")){booking_bar_wrap.css({'position':'','top':'','right':'','margin-top':booking_bar_anchor.css('margin-top')});}else{booking_bar_wrap.css({'position':'','top':'','left':'','margin-top':booking_bar_anchor.css('margin-top')});}
booking_bar_wrap.removeClass('tourmaster-fixed tourmaster-top tourmaster-bottom tourmaster-lock');}}});});}
var tourmaster_payment_template=function(){var t=this;t.form=$('#tourmaster-payment-template-wrapper');t.sidebar=t.form.find('#tourmaster-tour-booking-bar-inner');t.content=t.form.find('#tourmaster-tour-payment-content');t.payment_step=$('#tourmaster-payment-step-wrap');t.payment_template=$('#tourmaster-page-wrapper');t.init();}
tourmaster_payment_template.prototype={init:function(){var t=this;t.bind_script();t.bind_script_recurring();t.form.on('click','.tourmaster-payment-step',function(){var booking_detail_data=t.get_booking_detail();if($(this).attr('data-name')){booking_detail_data[$(this).attr('data-name')]=$(this).attr('data-value');}
if($(this).attr('data-step')){booking_detail_data['step']=$(this).attr('data-step');}
if(t.check_required_field(booking_detail_data['step'])){t.change_step({booking_detail:booking_detail_data});}});t.payment_step.on('click','.tourmaster-payment-step-item',function(){if($(this).hasClass('tourmaster-enable')){var booking_detail_data=t.get_booking_detail();if($(this).attr('data-step')){booking_detail_data['step']=$(this).attr('data-step');}
if(t.check_required_field(booking_detail_data['step'])){t.change_step({booking_detail:booking_detail_data});}}});t.form.on('change input','.tourmaster-payment-service-form-wrap input',tourmaster_debounce(function(e){if(e.type=='change'&&$(e.target).is('input[type="text"]'))return;var booking_detail_data=t.get_booking_detail();if($(this).attr('data-step')){booking_detail_data['step']=3;}
t.change_step({booking_detail:booking_detail_data,sub_action:'update_sidebar'});},1000));t.form.on('change','input[name="payment-type"]',function(){var total_price_wrap=$(this).closest('.tourmaster-tour-booking-bar-total-price-wrap');var deposit_price_wrap=total_price_wrap.siblings('.tourmaster-tour-booking-bar-deposit-text');if(deposit_price_wrap.length==0){deposit_price_wrap=total_price_wrap.children('.tourmaster-tour-booking-bar-deposit-text');}
if($(this).is(':checked')){if($(this).val()=='full'){total_price_wrap.removeClass('tourmaster-deposit');deposit_price_wrap.slideUp(200);if(typeof(window.tourmaster_payment_type)!=='undefined'){window.tourmaster_payment_type='full';window.tourmaster_paypal_pay_amount=window.tourmaster_paypal_full_amount;}}else if($(this).val()=='partial'){total_price_wrap.addClass('tourmaster-deposit');deposit_price_wrap.slideDown(200);if(typeof(window.tourmaster_payment_type)!=='undefined'){window.tourmaster_payment_type='partial';window.tourmaster_paypal_pay_amount=window.tourmaster_paypal_deposit_amount;}}}});},animate_content:function(element,content){var orig_height=element.outerHeight();element.html(content);var new_height=element.outerHeight();element.css({height:orig_height});element.animate({height:new_height},function(){element.css({height:'auto'},1000)});},bind_script_recurring:function(){var t=this;t.content.find('#tourmaster-payment-method-or').each(function(){var divider_width=($(this).width()-$(this).children('.tourmaster-middle').width()-40)/2;$(this).children('.tourmaster-left, .tourmaster-right').css('width',divider_width);});$(window).resize(function(){t.content.find('#tourmaster-payment-method-or').each(function(){var divider_width=($(this).width()-$(this).children('.tourmaster-middle').width()-40)/2;$(this).children('.tourmaster-left, .tourmaster-right').css('width',divider_width);});});t.paypal_jssdk_payment();},bind_script:function(){var t=this;t.form.on('change input','[data-max-unit]',function(){if(parseInt($(this).val())>parseInt($(this).attr('data-max-unit'))){$(this).val($(this).attr('data-max-unit'));}});t.sidebar.on('click','#tourmaster-tour-booking-bar-price-breakdown-link',function(){$(this).siblings('.tourmaster-price-breakdown').slideToggle(200);});t.sidebar.on('click','.tourmaster-tour-booking-bar-date-edit',function(){var temp_form=$(this).siblings('form');var booking_detail=t.get_booking_detail();temp_form.append($('<input name="tour_temp" />').val(JSON.stringify(booking_detail)));temp_form.submit();});t.sidebar.on('click','.tourmaster-tour-booking-bar-coupon-validate',function(){var coupon_code=$(this).siblings('[name="coupon-code"]');var coupon_message=$(this).siblings('.tourmaster-tour-booking-coupon-message');$.ajax({type:'POST',url:$(this).attr('data-ajax-url'),data:{'coupon_code':coupon_code.val(),'tour_id':$(this).attr('data-tour-id'),'action':'tourmaster_validate_coupon_code','tid':$(this).attr('data-tid')},dataType:'json',beforeSend:function(){coupon_code.animate({opacity:0.3});coupon_message.slideUp(150);coupon_message.removeClass('tourmaster-success tourmaster-failed');},error:function(jqXHR,textStatus,errorThrown){console.log(jqXHR,textStatus,errorThrown);},success:function(data){coupon_code.animate({opacity:1});if(data.status=='success'){var booking_detail_data=t.get_booking_detail();t.change_step({booking_detail:booking_detail_data,sub_action:'update_sidebar'});}else{coupon_message.addClass('tourmaster-'+data.status);coupon_message.html(data.message);coupon_message.slideDown(150);}}});});t.content.on('click','#tourmaster-payment-billing-copy',function(){if($(this).is(':checked')){var billing_info=$(this).closest('.tourmaster-payment-billing-wrap');var contact_info=billing_info.siblings('.tourmaster-payment-contact-wrap');billing_info.find('[data-contact-detail]').each(function(){var contact_field=contact_info.find('[name="'+$(this).attr('data-contact-detail')+'"]');$(this).val(contact_field.val());});}});t.content.on('click','[data-tmlb]',function(){var lb_content=$(this).siblings('[data-tmlb-id="'+$(this).attr('data-tmlb')+'"]');tourmaster_lightbox(lb_content.clone());});t.content.on('click','[data-method]',function(){if(t.check_required_field(4)){var action=$(this).attr('data-action');var type=$(this).attr('data-action-type');if($(this).attr('data-method')=='ajax'){var booking_detail_data=t.get_booking_detail();t.change_step({'action':action,'type':type,'booking_detail':booking_detail_data});}}});t.content.on('click','.goodlayers-payment-plugin-complete',function(){t.change_step({'action':'tourmaster_payment_plugin_complete','step':4});});t.sidebar.on('click','.tourmaster-pay-now, .tourmaster-pay-woocommerce',function(){if(t.check_required_field(4)){var action='tourmaster_payment_selected';if($(this).is('.tourmaster-pay-now')){var type=$(this).closest('.tourmaster-tour-booking-side-payment-wrap').find('.tourmaster-payment-selection').val();}else{var type='woocommerce';}
var booking_detail_data=t.get_booking_detail();t.change_step({'action':action,'type':type,'booking_detail':booking_detail_data});}});},paypal_jssdk_payment:function(){var t=this;var paypal_container=$('#paypal-button-container');if(paypal_container.length&&typeof(paypal)!=='undefined'){paypal.Buttons({createOrder:(data,actions)=>{if(t.check_required_field(4)){return actions.order.create({purchase_units:[{amount:{currency_code:window.tourmaster_paypal_currency_code,value:window.tourmaster_paypal_pay_amount}}]});}
return false;},onApprove:(data,actions)=>{return actions.order.capture().then(function(orderData){t.change_step({'action':'tourmaster_payment_selected','type':'paypal','paypal_type':'js-sdk','order_data':orderData,'booking_detail':t.get_booking_detail()});});}}).render('#paypal-button-container');}},check_required_field:function(step){var t=this;var error=false;var error_box=t.form.find('.tourmaster-tour-booking-required-error');if(error_box.length){error_box.slideUp(200);if(step==3){t.form.find('input[data-required], select[data-required], textarea[data-required]').each(function(){if(!$(this).val()){$(this).addClass('tourmaster-validate-error');error='default';}else if($(this).is('[type="email"]')){var re=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!re.test($(this).val().toLowerCase())){$(this).addClass('tourmaster-validate-error');error='email';}}else if($(this).is('[name="phone"], [name="billing_phone"]')){var re=/^[\d\+\-\s\(\)\.]*$/;if(!re.test($(this).val().toLowerCase())){$(this).addClass('tourmaster-validate-error');error='phone';}}
if(!error){$(this).removeClass('tourmaster-validate-error');}});if(error){error_box.html(error_box.data(error));error_box.slideDown(200);var scrollPos=error_box.offset().top-$(window).height()+200;if(scrollPos>0){$('html, body').animate({scrollTop:scrollPos},600,'easeOutQuad');}}}
if(step==4){t.form.find('[name="term-and-service"]').each(function(){if(!$(this).prop('checked')){error='default';error_box.html(error_box.data(error));error_box.slideDown(200);}});}}
return(error===false);},get_booking_detail:function(){var t=this;var booking_detail={};if(t.form.attr('data-booking-detail')){booking_detail=JSON.parse(t.form.attr('data-booking-detail'));}
var booking_detail_new=tourmaster_get_booking_detail(t.form);for(var slug in booking_detail_new){booking_detail[slug]=booking_detail_new[slug];}
t.form.attr('data-booking-detail',JSON.stringify(booking_detail));return booking_detail;},change_step:function(ajax_data,ajax_settings){var t=this;var ajax_data=$.extend({action:'tourmaster_payment_template',},ajax_data);var ajax_settings=$.extend({beforeSend:function(){if(typeof(ajax_data.sub_action)=='undefined'||ajax_data.sub_action!='update_sidebar'){t.content.animate({opacity:0.1});$('html, body').animate({scrollTop:t.payment_template.offset().top},600,'easeOutQuad');}
t.sidebar.animate({opacity:0.1});},error:function(jqXHR,textStatus,errorThrown){console.log(jqXHR,textStatus,errorThrown);},success:function(data){if(typeof(data.content)!='undefined'){t.animate_content(t.content,data.content);}
if(typeof(data.sidebar)!='undefined'){t.animate_content(t.sidebar,data.sidebar);}
if(typeof(data.cookie)!='undefined'){var new_booking_detail=JSON.stringify(data.cookie);tourmaster_set_cookie('tourmaster-booking-detail',new_booking_detail,0);t.form.attr('data-booking-detail',new_booking_detail);}
if(typeof(ajax_data.booking_detail)!='undefined'||typeof(ajax_data.step)!='undefined'){if(typeof(ajax_data.step)!='undefined'){var booking_step=ajax_data.step;}else{var booking_step=ajax_data.booking_detail.step;}
t.payment_step.find('.tourmaster-payment-step-item').each(function(){if(booking_step==4){$(this).addClass('tourmaster-checked').removeClass('tourmaster-current tourmaster-enable')}else{if($(this).attr('data-step')==1){$(this).addClass('tourmaster-checked').removeClass('tourmaster-current tourmaster-enable');}else if($(this).attr('data-step')==booking_step){$(this).addClass('tourmaster-current').removeClass('tourmaster-checked tourmaster-enable');}else if($(this).attr('data-step')<booking_step){$(this).addClass('tourmaster-enable').removeClass('tourmaster-checked tourmaster-current');}else{$(this).removeClass('tourmaster-checked tourmaster-current tourmaster-enable');}}});}
t.content.animate({opacity:1});t.sidebar.animate({opacity:1});t.bind_script_recurring();}},ajax_settings);$.ajax({type:'POST',url:t.form.attr('data-ajax-url'),data:ajax_data,dataType:'json',beforeSend:ajax_settings.beforeSend,error:ajax_settings.error,success:ajax_settings.success});},};$.fn.tourmaster_single_review=function(){var review_section=$(this);var review_filter=$(this).find('#tourmaster-single-review-filter');var review_content=$(this).find('#tourmaster-single-review-content');var sort_by=review_filter.find('[data-sort-by]');var filter_by=review_filter.find('#tourmaster-filter-by');sort_by.on('click',function(){if($(this).hasClass('tourmaster-active'))return false;$(this).addClass('tourmaster-active').siblings('[data-sort-by]').removeClass('tourmaster-active');tourmaster_get_review_ajax({'action':'get_single_tour_review','tour_id':review_content.attr('data-tour-id'),'sort_by':$(this).attr('data-sort-by'),'filter_by':filter_by.val()},review_content);});filter_by.on('change',function(){tourmaster_get_review_ajax({'action':'get_single_tour_review','tour_id':review_content.attr('data-tour-id'),'sort_by':sort_by.filter('.tourmaster-active').attr('data-sort-by'),'filter_by':$(this).val()},review_content);});review_content.on('click','[data-paged]',function(){tourmaster_get_review_ajax({'action':'get_single_tour_review','tour_id':review_content.attr('data-tour-id'),'paged':$(this).attr('data-paged'),'sort_by':sort_by.filter('.tourmaster-active').attr('data-sort-by'),'filter_by':filter_by.val()},review_content,review_section);});}
function tourmaster_get_review_ajax(ajax_data,content_section,scroll_to=null){content_section.animate({opacity:0.2},200);$.ajax({type:'POST',url:content_section.attr('data-ajax-url'),data:ajax_data,dataType:'json',error:function(jqXHR,textStatus,errorThrown){content_section.animate({opacity:1},200);console.log(jqXHR,textStatus,errorThrown);},success:function(data){if(typeof(data.content)!='undefined'){var old_height=content_section.outerHeight();content_section.html(data.content);var new_height=content_section.outerHeight();content_section.css({'height':old_height});content_section.animate({height:new_height},200,function(){content_section.css({height:'auto'});});}
content_section.animate({opacity:1},200);if(scroll_to!=null){$('body, html').animate({'scrollTop':scroll_to.offset().top-150});}}});}
$(document).ready(function(){var body=$('body');body.find('.tourmaster-tour-search-filter-clear').on('click',function(){var form=$(this).closest('form');form.find('.tourmaster-rating-select[data-rating-score="0"]').trigger('click');form.find('input[type="text"], select, input[name="rating"]').val('');form.find('input[type="checkbox"]').removeAttr('checked');return false;});if(body.hasClass("rtl")){$('[data-rel=tipsy]').tipsy({fade:true,gravity:'sw'});}else{$('[data-rel=tipsy]').tipsy({fade:true,gravity:'se'});}
new gdlr_core_sync_height($('body'),$('.tourmaster-tour-content-wrap.gdlr-core-js'));$('.tourmaster-center-tour-content').each(function(){var left_height=$(this).siblings('.tourmaster-content-left').outerHeight();$(this).css({'padding-top':0,'padding-bottom':0});var padding=(left_height-$(this).outerHeight())/2;padding=(padding>0)?padding:0;$(this).css({'padding-top':padding,'padding-bottom':padding});$(window).resize(function(){var left_height=$(this).siblings('.tourmaster-content-left').outerHeight();$(this).css({'padding-top':0,'padding-bottom':0});var padding=(left_height-$(this).outerHeight())/2;padding=(padding>0)?padding:0;$(this).css({'padding-top':padding,'padding-bottom':padding});});});var search_item=$('.tourmaster-tour-search-item');if(search_item.length){tourmaster_rating(search_item);search_item.find('.tourmaster-type-filter-title i').click(function(){var filter_content=$(this).parent().siblings('.tourmaster-type-filter-item-wrap');if($(this).hasClass('tourmaster-active')){$(this).removeClass('tourmaster-active');filter_content.slideUp(200);}else{$(this).addClass('tourmaster-active');filter_content.slideDown(200);}});}
$('.tourmaster-datepicker').tourmaster_datepicker();if(body.hasClass('single-tour')){$('.tourmaster-single-tour-read-more-wrap .tourmaster-button').on('click',function(){var scrollPos=$(window).scrollTop();$(this).hide();$(this).parent().parent().siblings('.tourmaster-single-tour-read-more-gradient').hide();$(this).closest('.tourmaster-single-tour-content-wrap').css({'max-height':'none','margin-bottom':0});$('html, body').scrollTop(scrollPos);return false;});$('#tourmaster-single-tour-booking-fields').tourmaster_tour_booking();$('#tourmaster-tour-booking-bar-wrap').tourmaster_tour_booking_sticky();$('#tourmaster-enquiry-form').find('input[type="submit"]').click(function(){if($(this).hasClass('tourmaster-now-loading')){return false;}
var form=$(this).closest('form');var form_button=$(this);var message_box=form.find('.tourmaster-enquiry-form-message').not('.tourmaster-enquiry-term-message');var condition_accepted_input=form.find('[name="tourmaster-require-acceptance"]');if(condition_accepted_input.length&&!condition_accepted_input.is(':checked')){condition_accepted_input.siblings('.tourmaster-enquiry-form-message').slideDown(150);return false;}else{condition_accepted_input.siblings('.tourmaster-enquiry-form-message').slideUp(150);}
var validate=true;form.find('input[data-required], select[data-required], textarea[data-required]').each(function(){if(!$(this).val()){validate=false;}});if(!validate){if(form.attr('data-validate-error')){message_box.removeClass('tourmaster-success').addClass('tourmaster-failed');message_box.html(form.attr('data-validate-error'));message_box.slideDown(300);}}else{message_box.slideUp(300);form_button.addClass('tourmaster-now-loading');$.ajax({type:'POST',url:form.attr('data-ajax-url'),data:{action:form.attr('data-action'),data:tourmaster_get_booking_detail(form)},dataType:'json',error:function(jqXHR,textStatus,errorThrown){console.log(jqXHR,textStatus,errorThrown);},success:function(data){if(typeof(grecaptcha)!='undefined'){form.find('#g-recaptcha-response').val('gdlr-verfied');}
form_button.removeClass('tourmaster-now-loading');if(typeof(data.message)!='undefined'){if(data.status=='success'){form.find('input[name], textarea[name], select[name]').not('[name="tour-id"]').val('');message_box.removeClass('tourmaster-failed').addClass('tourmaster-success');}else{message_box.removeClass('tourmaster-success').addClass('tourmaster-failed');}
message_box.html(data.message);message_box.slideDown(300);}}});}
return false;});$('#tourmaster-save-wish-list').click(function(){if($(this).hasClass('tourmaster-active'))return;$(this).addClass('tourmaster-active');$.ajax({type:'POST',url:$(this).attr('data-ajax-url'),data:{action:'tourmaster_add_wish_list','tour-id':$(this).attr('data-tour-id')},dataType:'json'});});$('#tourmaster-single-review').tourmaster_single_review();$('#tourmaster-urgency-message').click(function(){var expire_time=$(this).attr('data-expire');if(!expire_time){expire_time=3600;}
tourmaster_set_cookie('tourmaster-urgency-message','1',expire_time);$(this).fadeOut(200,function(){$(this).remove();});});$('.tourmaster-single-tour-booking-fields').on('click','.tourmaster-combobox-list-display',function(){$(this).siblings('ul').fadeToggle(200);});$('.tourmaster-single-tour-booking-fields').on('click','.tourmaster-combobox-list-wrap ul li',function(){var value=$(this).attr('data-value');$(this).closest('ul').fadeOut(200);$(this).closest('ul').siblings('input').val(value).trigger('change');$(this).closest('ul').siblings('.tourmaster-combobox-list-display').children('span').html(value);});$(document).mouseup(function(e){var container=$('.tourmaster-combobox-list-wrap');if(container.length&&!container.is(e.target)&&container.has(e.target).length===0){container.find('ul').fadeOut(200);}});$('#tourmaster-booking-tab-title').children().click(function(){if($(this).hasClass('tourmaster-active')){return false;}else{$(this).addClass('tourmaster-active').siblings().removeClass('tourmaster-active');}
var selected_tab=$(this).attr('data-tourmaster-tab');$(this).parent().siblings('.tourmaster-booking-tab-content').each(function(){if($(this).is('[data-tourmaster-tab="'+selected_tab+'"]')){$(this).fadeIn(200,function(){$(this).addClass('tourmaster-active');});}else{$(this).removeClass('tourmaster-active').hide();}});});}else if(body.hasClass('tourmaster-template-payment')){new tourmaster_payment_template();}});$(window).on('load',function(){var body=$('body');var content_nav=$('#tourmaster-content-navigation-item-outer');if(!body.is('.wp-admin')&&content_nav.length){window.traveltour_anchor_offset=content_nav.height();var content_nav_container=content_nav.parent();var offset=parseInt($('html').css('margin-top'));var slidebar=content_nav.find('.tourmaster-content-navigation-slider');content_nav.find('.tourmaster-active').each(function(){slidebar.css({width:$(this).outerWidth(),left:$(this).position().left});});content_nav.on('tourmaster-change',function(){var active_slidebar=$(this).find('.tourmaster-active');if(!active_slidebar.hasClass('tourmaster-slidebar-active')){active_slidebar.addClass('tourmaster-slidebar-active');slidebar.animate({width:active_slidebar.outerWidth(),left:active_slidebar.position().left},{queue:false,duration:200});}});$(window).resize(function(){content_nav.trigger('tourmaster-change');});content_nav.each(function(){$(this).find('.tourmaster-content-navigation-tab').hover(function(){slidebar.animate({width:$(this).outerWidth(),left:$(this).position().left},{queue:false,duration:150});},function(){var active_slidebar=$(this).parent().children('.tourmaster-slidebar-active');if(active_slidebar.length){slidebar.animate({width:active_slidebar.outerWidth(),left:active_slidebar.position().left},{queue:false,duration:150});}});});$(window).scroll(function(){if(tourmaster_display=='mobile-landscape'||tourmaster_display=='mobile-portrait'||tourmaster_display=='tablet')return;if($(this).scrollTop()+offset>content_nav_container.offset().top){if(!content_nav.hasClass('tourmaster-fixed')){content_nav.parent().css('height',content_nav.parent().height());content_nav.addClass('tourmaster-fixed');window.traveltour_anchor_offset=content_nav.height();}}else{if(content_nav.hasClass('tourmaster-fixed')){content_nav.parent().css('height','auto');content_nav.removeClass('tourmaster-fixed');}}});}});})(jQuery);!function(a){function b(a,b){return"function"==typeof a?a.call(b):a}function c(a){for(;a=a.parentNode;)if(a==document)return!0;return!1}function d(b,c){this.$element=a(b),this.options=c,this.enabled=!0,this.fixTitle()}d.prototype={show:function(){var c=this.getTitle();if(c&&this.enabled){var d=this.tip();d.find(".tipsy-inner")[this.options.html?"html":"text"](c),d[0].className="tipsy",d.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var i,e=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),f=d[0].offsetWidth,g=d[0].offsetHeight,h=b(this.options.gravity,this.$element[0]);switch(h.charAt(0)){case"n":i={top:e.top+e.height+this.options.offset,left:e.left+e.width/2-f/2};break;case"s":i={top:e.top-g-this.options.offset,left:e.left+e.width/2-f/2};break;case"e":i={top:e.top+e.height/2-g/2,left:e.left-f-this.options.offset};break;case"w":i={top:e.top+e.height/2-g/2,left:e.left+e.width+this.options.offset}}2==h.length&&("w"==h.charAt(1)?i.left=e.left+e.width/2-15:i.left=e.left+e.width/2-f+15),d.css(i).addClass("tipsy-"+h),d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+h.charAt(0),this.options.className&&d.addClass(b(this.options.className,this.$element[0])),this.options.fade?d.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):d.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){a(this).remove()}):this.tip().remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("original-title"))&&a.attr("original-title",a.attr("title")||"").removeAttr("title")},getTitle:function(){var a,b=this.$element,c=this.options;this.fixTitle();var a,c=this.options;return"string"==typeof c.title?a=b.attr("title"==c.title?"original-title":c.title):"function"==typeof c.title&&(a=c.title.call(b[0])),a=(""+a).replace(/(^\s*|\s*$)/,""),a||c.fallback},tip:function(){return this.$tip||(this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},a.fn.tipsy=function(b){function e(c){var e=a.data(c,"tipsy");return e||(e=new d(c,a.fn.tipsy.elementOptions(c,b)),a.data(c,"tipsy",e)),e}function f(){var a=e(this);a.hoverState="in",0==b.delayIn?a.show():(a.fixTitle(),setTimeout(function(){"in"==a.hoverState&&a.show()},b.delayIn))}function g(){var a=e(this);a.hoverState="out",0==b.delayOut?a.hide():setTimeout(function(){"out"==a.hoverState&&a.hide()},b.delayOut)}if(b===!0)return this.data("tipsy");if("string"==typeof b){var c=this.data("tipsy");return c&&c[b](),this}if(b=a.extend({},a.fn.tipsy.defaults,b),b.live||this.each(function(){e(this)}),"manual"!=b.trigger){var h=b.live?"live":"bind",i="hover"==b.trigger?"mouseenter":"focus",j="hover"==b.trigger?"mouseleave":"blur";this[h](i,f)[h](j,g)}return this},a.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},a.fn.tipsy.revalidate=function(){a(".tipsy").each(function(){var b=a.data(this,"tipsy-pointee");b&&c(b)||a(this).remove()})},a.fn.tipsy.elementOptions=function(b,c){return a.metadata?a.extend({},c,a(b).metadata()):c},a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"},a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"},a.fn.tipsy.autoBounds=function(b,c){return function(){var d={ns:c[0],ew:c.length>1&&c[1]},e=a(document).scrollTop()+b,f=a(document).scrollLeft()+b,g=a(this);return g.offset().top<e&&(d.ns="n"),g.offset().left<f&&(d.ew="w"),a(window).width()+a(document).scrollLeft()-g.offset().left<b&&(d.ew="e"),a(window).height()+a(document).scrollTop()-g.offset().top<b&&(d.ns="s"),d.ns+(d.ew?d.ew:"")}}}(jQuery);
seraph_accel_gzjydy();/* PLEASE DO NOT COPY AND PASTE THIS CODE. */(function(){var w=window,C='___grecaptcha_cfg',cfg=w[C]=w[C]||{},N='grecaptcha';var gr=w[N]=w[N]||{};gr.ready=gr.ready||function(f){(cfg['fns']=cfg['fns']||[]).push(f);};w['__recaptcha_api']='https://www.google.com/recaptcha/api2/';(cfg['render']=cfg['render']||[]).push('6LeB0q0pAAAAAM9inyeK5FkmgKwt0Q67SmqQCYiO');w['__google_recaptcha_client']=true;var d=document,po=d.createElement('script');po.type='text/javascript';po.async=true; po.charset='utf-8';var v=w.navigator,m=d.createElement('meta');m.httpEquiv='origin-trial';m.content='A/kargTFyk8MR5ueravczef/wIlTkbVk1qXQesp39nV+xNECPdLBVeYffxrM8TmZT6RArWGQVCJ0LRivD7glcAUAAACQeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IkRpc2FibGVUaGlyZFBhcnR5U3RvcmFnZVBhcnRpdGlvbmluZzIiLCJleHBpcnkiOjE3NDIzNDIzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9';if(v&&v.cookieDeprecationLabel){v.cookieDeprecationLabel.getValue().then(function(l){if(l!=='treatment_1.1'&&l!=='treatment_1.2'&&l!=='control_1.1'){d.head.prepend(m);}});}else{d.head.prepend(m);}po.src='https://www.gstatic.com/recaptcha/releases/lqsTZ5beIbCkK4uGEGv9JmUR/recaptcha__en.js';po.crossOrigin='anonymous';po.integrity='sha384-me+fKkpx+LDPr+jjTccMyZRS5BoP+JLiYHKscp4bUxp+j6TnL/qxiwcgzpRCCrlc';var e=d.querySelector('script[nonce]'),n=e&&(e['nonce']||e.getAttribute('nonce'));if(n){po.setAttribute('nonce',n);}var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(po, s);})();
seraph_accel_gzjydy();!function(r){"use strict";var t,e,n;e={},(n=function(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}).m=t=[function(r,t,e){e(1),e(70),e(77),e(80),e(81),e(83),e(95),e(96),e(98),e(101),e(103),e(104),e(113),e(114),e(117),e(123),e(138),e(140),e(141),r.exports=e(142)},function(r,t,e){var n=e(2),o=e(38),a=e(62),c=e(67),i=e(69);n({target:"Array",proto:!0,arity:1,forced:e(6)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return r instanceof TypeError}}()},{push:function(r){var t=o(this),e=a(t),n=arguments.length;i(e+n);for(var u=0;u<n;u++)t[e]=arguments[u],e++;return c(t,e),e}})},function(t,e,n){var o=n(3),a=n(4).f,c=n(42),i=n(46),u=n(36),f=n(54),s=n(66);t.exports=function(t,e){var n,p,l,y=t.target,h=t.global,v=t.stat,g=h?o:v?o[y]||u(y,{}):o[y]&&o[y].prototype;if(g)for(n in e){if(p=e[n],l=t.dontCallGetSet?(l=a(g,n))&&l.value:g[n],!s(h?n:y+(v?".":"#")+n,t.forced)&&l!==r){if(typeof p==typeof l)continue;f(p,l)}(t.sham||l&&l.sham)&&c(p,"sham",!0),i(g,n,p,t)}}},function(r,t,e){function n(r){return r&&r.Math===Math&&r}r.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},function(r,t,e){var n=e(5),o=e(7),a=e(9),c=e(10),i=e(11),u=e(17),f=e(37),s=e(40),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(r,t){if(r=i(r),t=u(t),s)try{return p(r,t)}catch(r){}if(f(r,t))return c(!o(a.f,r,t),r[t])}},function(r,t,e){e=e(6),r.exports=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(r,t,e){r.exports=function(r){try{return!!r()}catch(r){return!0}}},function(r,t,e){e=e(8);var n=Function.prototype.call;r.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},function(r,t,e){e=e(6),r.exports=!e((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))},function(r,t,e){var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!n.call({1:2},1);t.f=a?function(r){return!!(r=o(this,r))&&r.enumerable}:n},function(r,t,e){r.exports=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}}},function(r,t,e){var n=e(12),o=e(15);r.exports=function(r){return n(o(r))}},function(r,t,e){var n=e(13),o=e(6),a=e(14),c=Object,i=n("".split);r.exports=o((function(){return!c("z").propertyIsEnumerable(0)}))?function(r){return"String"===a(r)?i(r,""):c(r)}:c},function(r,t,e){var n=e(8),o=(e=Function.prototype).call;e=n&&e.bind.bind(o,o);r.exports=n?e:function(r){return function(){return o.apply(r,arguments)}}},function(r,t,e){var n=(e=e(13))({}.toString),o=e("".slice);r.exports=function(r){return o(n(r),8,-1)}},function(r,t,e){var n=e(16),o=TypeError;r.exports=function(r){if(n(r))throw new o("Can't call method on "+r);return r}},function(t,e,n){t.exports=function(t){return null===t||t===r}},function(r,t,e){var n=e(18),o=e(21);r.exports=function(r){return r=n(r,"string"),o(r)?r:r+""}},function(t,e,n){var o=n(7),a=n(19),c=n(21),i=n(28),u=n(31),f=(n=n(32),TypeError),s=n("toPrimitive");t.exports=function(t,e){if(!a(t)||c(t))return t;var n=i(t,s);if(n){if(n=o(n,t,e=e===r?"default":e),!a(n)||c(n))return n;throw new f("Can't convert object to primitive value")}return u(t,e=e===r?"number":e)}},function(r,t,e){var n=e(20);r.exports=function(r){return"object"==typeof r?null!==r:n(r)}},function(t,e,n){var o="object"==typeof document&&document.all;t.exports=void 0===o&&o!==r?function(r){return"function"==typeof r||r===o}:function(r){return"function"==typeof r}},function(r,t,e){var n=e(22),o=e(20),a=e(23),c=(e=e(24),Object);r.exports=e?function(r){return"symbol"==typeof r}:function(r){var t=n("Symbol");return o(t)&&a(t.prototype,c(r))}},function(t,e,n){var o=n(3),a=n(20);t.exports=function(t,e){return arguments.length<2?(n=o[t],a(n)?n:r):o[t]&&o[t][e];var n}},function(r,t,e){e=e(13),r.exports=e({}.isPrototypeOf)},function(r,t,e){e=e(25),r.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(r,t,e){var n=e(26),o=e(6),a=e(3).String;r.exports=!!Object.getOwnPropertySymbols&&!o((function(){var r=Symbol("symbol detection");return!a(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(r,t,e){var n,o,a=e(3),c=e(27);e=a.process,a=a.Deno;!(o=(a=(a=e&&e.versions||a&&a.version)&&a.v8)?0<(n=a.split("."))[0]&&n[0]<4?1:+(n[0]+n[1]):o)&&c&&(!(n=c.match(/Edge\/(\d+)/))||74<=n[1])&&(n=c.match(/Chrome\/(\d+)/))&&(o=+n[1]),r.exports=o},function(r,t,e){r.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){var o=n(29),a=n(16);t.exports=function(t,e){return e=t[e],a(e)?r:o(e)}},function(r,t,e){var n=e(20),o=e(30),a=TypeError;r.exports=function(r){if(n(r))return r;throw new a(o(r)+" is not a function")}},function(r,t,e){var n=String;r.exports=function(r){try{return n(r)}catch(r){return"Object"}}},function(r,t,e){var n=e(7),o=e(20),a=e(19),c=TypeError;r.exports=function(r,t){var e,i;if("string"===t&&o(e=r.toString)&&!a(i=n(e,r)))return i;if(o(e=r.valueOf)&&!a(i=n(e,r)))return i;if("string"!==t&&o(e=r.toString)&&!a(i=n(e,r)))return i;throw new c("Can't convert object to primitive value")}},function(r,t,e){var n=e(3),o=e(33),a=e(37),c=e(39),i=e(25),u=(e=e(24),n.Symbol),f=o("wks"),s=e?u.for||u:u&&u.withoutSetter||c;r.exports=function(r){return a(f,r)||(f[r]=i&&a(u,r)?u[r]:s("Symbol."+r)),f[r]}},function(t,e,n){var o=n(34),a=n(35);(t.exports=function(t,e){return a[t]||(a[t]=e!==r?e:{})})("versions",[]).push({version:"3.35.1",mode:o?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(r,t,e){r.exports=!1},function(r,t,e){var n=e(3),o=e(36);e=n[e="__core-js_shared__"]||o(e,{});r.exports=e},function(r,t,e){var n=e(3),o=Object.defineProperty;r.exports=function(r,t){try{o(n,r,{value:t,configurable:!0,writable:!0})}catch(e){n[r]=t}return t}},function(r,t,e){var n=e(13),o=e(38),a=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(r,t){return a(o(r),t)}},function(r,t,e){var n=e(15),o=Object;r.exports=function(r){return o(n(r))}},function(t,e,n){n=n(13);var o=0,a=Math.random(),c=n(1..toString);t.exports=function(t){return"Symbol("+(t===r?"":t)+")_"+c(++o+a,36)}},function(r,t,e){var n=e(5),o=e(6),a=e(41);r.exports=!n&&!o((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(r,t,e){var n=e(3),o=(e=e(19),n.document),a=e(o)&&e(o.createElement);r.exports=function(r){return a?o.createElement(r):{}}},function(r,t,e){var n=e(5),o=e(43),a=e(10);r.exports=n?function(r,t,e){return o.f(r,t,a(1,e))}:function(r,t,e){return r[t]=e,r}},function(r,t,e){var n=e(5),o=e(40),a=e(44),c=e(45),i=e(17),u=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",y="writable";t.f=n?a?function(r,t,e){var n;return c(r),t=i(t),c(e),"function"==typeof r&&"prototype"===t&&"value"in e&&y in e&&!e[y]&&(n=s(r,t))&&n[y]&&(r[t]=e.value,e={configurable:(l in e?e:n)[l],enumerable:(p in e?e:n)[p],writable:!1}),f(r,t,e)}:f:function(r,t,e){if(c(r),t=i(t),c(e),o)try{return f(r,t,e)}catch(r){}if("get"in e||"set"in e)throw new u("Accessors not supported");return"value"in e&&(r[t]=e.value),r}},function(r,t,e){var n=e(5);e=e(6);r.exports=n&&e((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(r,t,e){var n=e(19),o=String,a=TypeError;r.exports=function(r){if(n(r))return r;throw new a(o(r)+" is not an object")}},function(t,e,n){var o=n(20),a=n(43),c=n(47),i=n(36);t.exports=function(t,e,n,u){var f=(u=u||{}).enumerable,s=u.name!==r?u.name:e;if(o(n)&&c(n,s,u),u.global)f?t[e]=n:i(e,n);else{try{u.unsafe?t[e]&&(f=!0):delete t[e]}catch(t){}f?t[e]=n:a.f(t,e,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},function(t,e,n){var o=n(13),a=n(6),c=n(20),i=n(37),u=n(5),f=n(48).CONFIGURABLE,s=n(49),p=(n=n(50)).enforce,l=n.get,y=String,h=Object.defineProperty,v=o("".slice),g=o("".replace),d=o([].join),b=u&&!a((function(){return 8!==h((function(){}),"length",{value:8}).length})),m=String(String).split("String");t=t.exports=function(t,e,n){"Symbol("===v(y(e),0,7)&&(e="["+g(y(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||f&&t.name!==e)&&(u?h(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&i(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?u&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=r)}catch(t){}return n=p(t),i(n,"source")||(n.source=d(m,"string"==typeof e?e:"")),t};Function.prototype.toString=t((function(){return c(this)&&l(this).source||s(this)}),"toString")},function(r,t,e){var n=e(5),o=e(37),a=Function.prototype,c=n&&Object.getOwnPropertyDescriptor;o=(e=o(a,"name"))&&"something"===function(){}.name,a=e&&(!n||n&&c(a,"name").configurable);r.exports={EXISTS:e,PROPER:o,CONFIGURABLE:a}},function(r,t,e){var n=e(13),o=e(20),a=(e=e(35),n(Function.toString));o(e.inspectSource)||(e.inspectSource=function(r){return a(r)}),r.exports=e.inspectSource},function(r,t,e){var n,o,a,c,i=e(51),u=e(3),f=e(19),s=e(42),p=e(37),l=e(35),y=e(52),h=(e=e(53),"Object already initialized"),v=u.TypeError,g=(u=u.WeakMap,i||l.state?((a=l.state||(l.state=new u)).get=a.get,a.has=a.has,a.set=a.set,n=function(r,t){if(a.has(r))throw new v(h);return t.facade=r,a.set(r,t),t},o=function(r){return a.get(r)||{}},function(r){return a.has(r)}):(e[c=y("state")]=!0,n=function(r,t){if(p(r,c))throw new v(h);return t.facade=r,s(r,c,t),t},o=function(r){return p(r,c)?r[c]:{}},function(r){return p(r,c)}));r.exports={set:n,get:o,has:g,enforce:function(r){return g(r)?o(r):n(r,{})},getterFor:function(r){return function(t){var e;if(!f(t)||(e=o(t)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}},function(r,t,e){var n=e(3);e=e(20),n=n.WeakMap;r.exports=e(n)&&/native code/.test(String(n))},function(r,t,e){var n=e(33),o=e(39),a=n("keys");r.exports=function(r){return a[r]||(a[r]=o(r))}},function(r,t,e){r.exports={}},function(r,t,e){var n=e(37),o=e(55),a=e(4),c=e(43);r.exports=function(r,t,e){for(var i=o(t),u=c.f,f=a.f,s=0;s<i.length;s++){var p=i[s];n(r,p)||e&&n(e,p)||u(r,p,f(t,p))}}},function(r,t,e){var n=e(22),o=e(13),a=e(56),c=e(65),i=e(45),u=o([].concat);r.exports=n("Reflect","ownKeys")||function(r){var t=a.f(i(r)),e=c.f;return e?u(t,e(r)):t}},function(r,t,e){var n=e(57),o=e(64).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(r){return n(r,o)}},function(r,t,e){var n=e(13),o=e(37),a=e(11),c=e(58).indexOf,i=e(53),u=n([].push);r.exports=function(r,t){var e,n=a(r),f=0,s=[];for(e in n)!o(i,e)&&o(n,e)&&u(s,e);for(;t.length>f;)o(n,e=t[f++])&&(~c(s,e)||u(s,e));return s}},function(r,t,e){var n=e(11),o=e(59),a=e(62);e=function(r){return function(t,e,c){var i,u=n(t),f=a(u),s=o(c,f);if(r&&e!=e){for(;s<f;)if((i=u[s++])!=i)return!0}else for(;s<f;s++)if((r||s in u)&&u[s]===e)return r||s||0;return!r&&-1}};r.exports={includes:e(!0),indexOf:e(!1)}},function(r,t,e){var n=e(60),o=Math.max,a=Math.min;r.exports=function(r,t){return(r=n(r))<0?o(r+t,0):a(r,t)}},function(r,t,e){var n=e(61);r.exports=function(r){return(r=+r)!=r||0==r?0:n(r)}},function(r,t,e){var n=Math.ceil,o=Math.floor;r.exports=Math.trunc||function(r){return(0<(r=+r)?o:n)(r)}},function(r,t,e){var n=e(63);r.exports=function(r){return n(r.length)}},function(r,t,e){var n=e(60),o=Math.min;r.exports=function(r){return 0<(r=n(r))?o(r,9007199254740991):0}},function(r,t,e){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,t,e){t.f=Object.getOwnPropertySymbols},function(r,t,e){var n=e(6),o=e(20),a=/#|\.prototype\./,c=(e=function(r,t){return(r=i[c(r)])===f||r!==u&&(o(t)?n(t):!!t)},e.normalize=function(r){return String(r).replace(a,".").toLowerCase()}),i=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";r.exports=e},function(t,e,n){var o=n(5),a=n(68),c=TypeError,i=Object.getOwnPropertyDescriptor;o=o&&!function(){if(this!==r)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();t.exports=o?function(r,t){if(a(r)&&!i(r,"length").writable)throw new c("Cannot set read only .length");return r.length=t}:function(r,t){return r.length=t}},function(r,t,e){var n=e(14);r.exports=Array.isArray||function(r){return"Array"===n(r)}},function(r,t,e){var n=TypeError;r.exports=function(r){if(9007199254740991<r)throw n("Maximum allowed index exceeded");return r}},function(r,t,e){var n=e(2),o=e(71),a=e(11),c=(e=e(72),Array);n({target:"Array",proto:!0},{toReversed:function(){return o(a(this),c)}}),e("toReversed")},function(r,t,e){var n=e(62);r.exports=function(r,t){for(var e=n(r),o=new t(e),a=0;a<e;a++)o[a]=r[e-a-1];return o}},function(t,e,n){var o=n(32),a=n(73),c=(n=n(43).f,o("unscopables")),i=Array.prototype;i[c]===r&&n(i,c,{configurable:!0,value:a(null)}),t.exports=function(r){i[c][r]=!0}},function(t,e,n){function o(){}function a(r){return"<script>"+r+"</"+h+">"}var c,i=n(45),u=n(74),f=n(64),s=n(53),p=n(76),l=n(41),y=(n=n(52),"prototype"),h="script",v=n("IE_PROTO"),g=function(){try{c=new ActiveXObject("htmlfile")}catch(r){}var r;g="undefined"==typeof document||document.domain&&c?function(r){r.write(a("")),r.close();var t=r.parentWindow.Object;return r=null,t}(c):((r=l("iframe")).style.display="none",p.appendChild(r),r.src=String("javascript:"),(r=r.contentWindow.document).open(),r.write(a("document.F=Object")),r.close(),r.F);for(var t=f.length;t--;)delete g[y][f[t]];return g()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(o[y]=i(t),n=new o,o[y]=null,n[v]=t):n=g(),e===r?n:u.f(n,e)}},function(r,t,e){var n=e(5),o=e(44),a=e(43),c=e(45),i=e(11),u=e(75);t.f=n&&!o?Object.defineProperties:function(r,t){c(r);for(var e,n=i(t),o=u(t),f=o.length,s=0;s<f;)a.f(r,e=o[s++],n[e]);return r}},function(r,t,e){var n=e(57),o=e(64);r.exports=Object.keys||function(r){return n(r,o)}},function(r,t,e){e=e(22),r.exports=e("document","documentElement")},function(t,e,n){var o=n(2),a=n(13),c=n(29),i=n(11),u=n(78),f=n(79),s=(n=n(72),Array),p=a(f("Array","sort"));o({target:"Array",proto:!0},{toSorted:function(t){t!==r&&c(t);var e=i(this);e=u(s,e);return p(e,t)}}),n("toSorted")},function(r,t,e){var n=e(62);r.exports=function(r,t,e){for(var o=0,a=2<arguments.length?e:n(t),c=new r(a);o<a;)c[o]=t[o++];return c}},function(r,t,e){var n=e(3);r.exports=function(r,t){return(r=(r=n[r])&&r.prototype)&&r[t]}},function(r,t,e){var n=e(2),o=e(72),a=e(69),c=e(62),i=e(59),u=e(11),f=e(60),s=Array,p=Math.max,l=Math.min;n({target:"Array",proto:!0},{toSpliced:function(r,t){var e,n,o,y,h=u(this),v=c(h),g=i(r,v),d=0;for(0===(r=arguments.length)?e=n=0:n=1===r?(e=0,v-g):(e=r-2,l(p(f(t),0),v-g)),o=a(v+e-n),y=s(o);d<g;d++)y[d]=h[d];for(;d<g+e;d++)y[d]=arguments[d-g+2];for(;d<o;d++)y[d]=h[d+n-e];return y}}),o("toSpliced")},function(r,t,e){var n=e(2),o=e(82),a=e(11),c=Array;n({target:"Array",proto:!0},{with:function(r,t){return o(a(this),c,r,t)}})},function(r,t,e){var n=e(62),o=e(60),a=RangeError;r.exports=function(r,t,e,c){var i=n(r),u=(e=o(e))<0?i+e:e;if(i<=u||u<0)throw new a("Incorrect index");for(var f=new t(i),s=0;s<i;s++)f[s]=s===u?c:r[s];return f}},function(r,t,e){var n=e(2),o=e(13),a=e(29),c=e(15),i=e(84),u=e(94),f=(e=e(34),u.Map),s=u.has,p=u.get,l=u.set,y=o([].push);n({target:"Map",stat:!0,forced:e},{groupBy:function(r,t){c(r),a(t);var e=new f,n=0;return i(r,(function(r){var o=t(r,n++);s(e,o)?y(p(e,o),r):l(e,o,[r])})),e}})},function(r,t,e){function n(r,t){this.stopped=r,this.result=t}var o=e(85),a=e(7),c=e(45),i=e(30),u=e(87),f=e(62),s=e(23),p=e(89),l=e(90),y=e(93),h=TypeError,v=n.prototype;r.exports=function(r,t,e){function g(r){return b&&y(b,"normal",r),new n(!0,r)}function d(r){return S?(c(r),_?j(r[0],r[1],g):j(r[0],r[1])):_?j(r,g):j(r)}var b,m,w,E,x,A,O=e&&e.that,S=!(!e||!e.AS_ENTRIES),R=!(!e||!e.IS_RECORD),T=!(!e||!e.IS_ITERATOR),_=!(!e||!e.INTERRUPTED),j=o(t,O);if(R)b=r.iterator;else if(T)b=r;else{if(!(T=l(r)))throw new h(i(r)+" is not iterable");if(u(T)){for(m=0,w=f(r);m<w;m++)if((E=d(r[m]))&&s(v,E))return E;return new n(!1)}b=p(r,T)}for(x=(R?r:b).next;!(A=a(x,b)).done;){try{E=d(A.value)}catch(r){y(b,"throw",r)}if("object"==typeof E&&E&&s(v,E))return E}return new n(!1)}},function(t,e,n){var o=n(86),a=n(29),c=n(8),i=o(o.bind);t.exports=function(t,e){return a(t),e===r?t:c?i(t,e):function(){return t.apply(e,arguments)}}},function(r,t,e){var n=e(14),o=e(13);r.exports=function(r){if("Function"===n(r))return o(r)}},function(t,e,n){var o=n(32),a=n(88),c=o("iterator"),i=Array.prototype;t.exports=function(t){return t!==r&&(a.Array===t||i[c]===t)}},function(r,t,e){r.exports={}},function(r,t,e){var n=e(7),o=e(29),a=e(45),c=e(30),i=e(90),u=TypeError;r.exports=function(r,t){if(t=arguments.length<2?i(r):t,o(t))return a(n(t,r));throw new u(c(r)+" is not iterable")}},function(r,t,e){var n=e(91),o=e(28),a=e(16),c=e(88),i=e(32)("iterator");r.exports=function(r){if(!a(r))return o(r,i)||o(r,"@@iterator")||c[n(r)]}},function(t,e,n){var o=n(92),a=n(20),c=n(14),i=n(32)("toStringTag"),u=Object,f="Arguments"===c(function(){return arguments}());t.exports=o?c:function(t){var e;return t===r?"Undefined":null===t?"Null":"string"==typeof(t=function(r,t){try{return r[t]}catch(r){}}(e=u(t),i))?t:f?c(e):"Object"===(t=c(e))&&a(e.callee)?"Arguments":t}},function(r,t,e){var n={};n[e(32)("toStringTag")]="z",r.exports="[object z]"===String(n)},function(r,t,e){var n=e(7),o=e(45),a=e(28);r.exports=function(r,t,e){var c,i;o(r);try{if(!(c=a(r,"return"))){if("throw"===t)throw e;return e}c=n(c,r)}catch(r){i=!0,c=r}if("throw"===t)throw e;if(i)throw c;return o(c),e}},function(r,t,e){var n=e(13);e=Map.prototype;r.exports={Map,set:n(e.set),get:n(e.get),has:n(e.has),remove:n(e.delete),proto:e}},function(r,t,e){var n=e(2),o=e(22),a=e(13),c=e(29),i=e(15),u=e(17),f=e(84),s=o("Object","create"),p=a([].push);n({target:"Object",stat:!0},{groupBy:function(r,t){i(r),c(t);var e=s(null),n=0;return f(r,(function(r){var o=u(t(r,n++));o in e?p(e[o],r):e[o]=[r]})),e}})},function(r,t,e){var n=e(2),o=e(97);n({target:"Promise",stat:!0},{withResolvers:function(){var r=o.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}})},function(t,e,n){function o(t){var e,n;this.promise=new t((function(t,o){if(e!==r||n!==r)throw new c("Bad Promise constructor");e=t,n=o})),this.resolve=a(e),this.reject=a(n)}var a=n(29),c=TypeError;t.exports.f=function(r){return new o(r)}},function(r,t,e){var n=e(3),o=e(5),a=e(99),c=e(100),i=(e=e(6),n.RegExp),u=i.prototype;o&&e((function(){var r=!0;try{i(".","d")}catch(t){r=!1}var t,e={},n="",o=r?"dgimsy":"gimsy",a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(t in r&&(a.hasIndices="d"),a)!function(r,t){Object.defineProperty(e,r,{get:function(){return n+=t,!0}})}(t,a[t]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(e)!==o||n!==o}))&&a(u,"flags",{configurable:!0,get:c})},function(r,t,e){var n=e(47),o=e(43);r.exports=function(r,t,e){return e.get&&n(e.get,t,{getter:!0}),e.set&&n(e.set,t,{setter:!0}),o.f(r,t,e)}},function(r,t,e){var n=e(45);r.exports=function(){var r=n(this),t="";return r.hasIndices&&(t+="d"),r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.dotAll&&(t+="s"),r.unicode&&(t+="u"),r.unicodeSets&&(t+="v"),r.sticky&&(t+="y"),t}},function(r,t,e){var n=e(2),o=e(13),a=e(15),c=e(102),i=o("".charCodeAt);n({target:"String",proto:!0},{isWellFormed:function(){for(var r=c(a(this)),t=r.length,e=0;e<t;e++){var n=i(r,e);if(55296==(63488&n)&&(56320<=n||++e>=t||56320!=(64512&i(r,e))))return!1}return!0}})},function(r,t,e){var n=e(91),o=String;r.exports=function(r){if("Symbol"===n(r))throw new TypeError("Cannot convert a Symbol value to a string");return o(r)}},function(r,t,e){var n=e(2),o=e(7),a=e(13),c=e(15),i=e(102),u=(e=e(6),Array),f=a("".charAt),s=a("".charCodeAt),p=a([].join),l="".toWellFormed,y=l&&e((function(){return"1"!==o(l,1)}));n({target:"String",proto:!0,forced:y},{toWellFormed:function(){var r=i(c(this));if(y)return o(l,r);for(var t=r.length,e=u(t),n=0;n<t;n++){var a=s(r,n);55296!=(63488&a)?e[n]=f(r,n):56320<=a||t<=n+1||56320!=(64512&s(r,n+1))?e[n]="�":(e[n]=f(r,n),e[++n]=f(r,n))}return p(e,"")}})},function(r,t,e){var n=e(71),o=e(105),a=o.aTypedArray,c=(e=o.exportTypedArrayMethod,o.getTypedArrayConstructor);e("toReversed",(function(){return n(a(this),c(this))}))},function(t,e,n){function o(r){return!!l(r)&&(r=h(r),y(k,r)||y(C,r))}var a,c,i,u=n(106),f=n(5),s=n(3),p=n(20),l=n(19),y=n(37),h=n(91),v=n(30),g=n(42),d=n(46),b=n(99),m=n(23),w=n(107),E=n(109),x=n(32),A=n(39),O=(T=n(50)).enforce,S=T.get,R=(n=s.Int8Array)&&n.prototype,T=(T=s.Uint8ClampedArray)&&T.prototype,_=n&&w(n),j=R&&w(R),I=(n=Object.prototype,s.TypeError),P=(x=x("toStringTag"),A("TYPED_ARRAY_TAG")),D="TypedArrayConstructor",M=u&&!!E&&"Opera"!==h(s.opera),k=(u=!1,{Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}),C={BigInt64Array:8,BigUint64Array:8},U=function(r){var t=w(r);if(l(t))return(r=S(t))&&y(r,D)?r[D]:U(t)};for(a in k)(i=(c=s[a])&&c.prototype)?O(i)[D]=c:M=!1;for(a in C)(i=(c=s[a])&&c.prototype)&&(O(i)[D]=c);if((!M||!p(_)||_===Function.prototype)&&(_=function(){throw new I("Incorrect invocation")},M))for(a in k)s[a]&&E(s[a],_);if((!M||!j||j===n)&&(j=_.prototype,M))for(a in k)s[a]&&E(s[a].prototype,j);if(M&&w(T)!==j&&E(T,j),f&&!y(j,x))for(a in b(j,x,{configurable:u=!0,get:function(){return l(this)?this[P]:r}}),k)s[a]&&g(s[a],P,a);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:u&&P,aTypedArray:function(r){if(o(r))return r;throw new I("Target is not a typed array")},aTypedArrayConstructor:function(r){if(p(r)&&(!E||m(_,r)))return r;throw new I(v(r)+" is not a typed array constructor")},exportTypedArrayMethod:function(r,t,e,n){if(f){if(e)for(var o in k)if((o=s[o])&&y(o.prototype,r))try{delete o.prototype[r]}catch(e){try{o.prototype[r]=t}catch(e){}}j[r]&&!e||d(j,r,!e&&M&&R[r]||t,n)}},exportTypedArrayStaticMethod:function(r,t,e){var n,o;if(f){if(E){if(e)for(n in k)if((o=s[n])&&y(o,r))try{delete o[r]}catch(r){}if(_[r]&&!e)return;try{return d(_,r,!e&&M&&_[r]||t)}catch(r){}}for(n in k)!(o=s[n])||o[r]&&!e||d(o,r,t)}},getTypedArrayConstructor:U,isView:function(r){return!!l(r)&&("DataView"===(r=h(r))||y(k,r)||y(C,r))},isTypedArray:o,TypedArray:_,TypedArrayPrototype:j}},function(r,t,e){r.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(r,t,e){var n=e(37),o=e(20),a=e(38),c=e(52),i=(e=e(108),c("IE_PROTO")),u=Object,f=u.prototype;r.exports=e?u.getPrototypeOf:function(r){var t=a(r);return n(t,i)?t[i]:(r=t.constructor,o(r)&&t instanceof r?r.prototype:t instanceof u?f:null)}},function(r,t,e){e=e(6),r.exports=!e((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},function(t,e,n){var o=n(110),a=n(45),c=n(111);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,e={};try{(r=o(Object.prototype,"__proto__","set"))(e,[]),t=e instanceof Array}catch(e){}return function(e,n){return a(e),c(n),t?r(e,n):e.__proto__=n,e}}():r)},function(r,t,e){var n=e(13),o=e(29);r.exports=function(r,t,e){try{return n(o(Object.getOwnPropertyDescriptor(r,t)[e]))}catch(r){}}},function(r,t,e){var n=e(112),o=String,a=TypeError;r.exports=function(r){if(n(r))return r;throw new a("Can't set "+o(r)+" as a prototype")}},function(r,t,e){var n=e(19);r.exports=function(r){return n(r)||null===r}},function(t,e,n){var o=n(105),a=n(13),c=n(29),i=n(78),u=o.aTypedArray,f=o.getTypedArrayConstructor,s=(n=o.exportTypedArrayMethod,a(o.TypedArrayPrototype.sort));n("toSorted",(function(t){t!==r&&c(t);var e=u(this);e=i(f(e),e);return s(e,t)}))},function(r,t,e){var n=e(82),o=e(105),a=e(115),c=e(60),i=e(116),u=o.aTypedArray,f=o.getTypedArrayConstructor;(0,o.exportTypedArrayMethod)("with",(function(r,t){var e=u(this);r=c(r),t=a(e)?i(t):+t;return n(e,f(e),r,t)}),!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(r){return 8===r}}())},function(r,t,e){var n=e(91);r.exports=function(r){return"BigInt64Array"===(r=n(r))||"BigUint64Array"===r}},function(r,t,e){var n=e(18),o=TypeError;r.exports=function(r){if("number"==typeof(r=n(r,"number")))throw new o("Can't convert number to bigint");return BigInt(r)}},function(t,e,n){var o=n(2),a=n(3),c=n(22),i=n(10),u=n(43).f,f=n(37),s=n(118),p=n(119),l=n(120),y=n(121),h=n(122),v=n(5),g=n(34),d="DOMException",b=c("Error"),m=c(d),w=function(){s(this,E);var t=l((e=arguments.length)<1?r:arguments[0]),e=l(e<2?r:arguments[1],"Error");e=new m(t,e);return(t=new b(t)).name=d,u(e,"stack",i(1,h(t.stack,1))),p(e,this,w),e},E=w.prototype=m.prototype,x="stack"in new b(d);n="stack"in new m(1,2),a=!(!(a=m&&v&&Object.getOwnPropertyDescriptor(a,d))||a.writable&&a.configurable),n=x&&!a&&!n;o({global:!0,constructor:!0,forced:g||n},{DOMException:n?w:m});var A,O=c(d);if((c=O.prototype).constructor!==O)for(var S in g||u(c,"constructor",i(1,O)),y)f(y,S)&&(f(O,S=(A=y[S]).s)||u(O,S,i(6,A.c)))},function(r,t,e){var n=e(23),o=TypeError;r.exports=function(r,t){if(n(t,r))return r;throw new o("Incorrect invocation")}},function(r,t,e){var n=e(20),o=e(19),a=e(109);r.exports=function(r,t,e){var c,i;return a&&n(c=t.constructor)&&c!==e&&o(i=c.prototype)&&i!==e.prototype&&a(r,i),r}},function(t,e,n){var o=n(102);t.exports=function(t,e){return t===r?arguments.length<2?"":e:o(t)}},function(r,t,e){r.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(r,t,e){e=e(13);var n=Error,o=e("".replace),a=(e=String(new n("zxcasd").stack),/\n\s*at [^:]*:[^\n]*/),c=a.test(e);r.exports=function(r,t){if(c&&"string"==typeof r&&!n.prepareStackTrace)for(;t--;)r=o(r,a,"");return r}},function(t,e,n){function o(r){throw new z("Uncloneable type: "+r,nr)}function a(r,t){throw new z((t||"Cloning")+" of "+r+" cannot be properly polyfilled in this engine",nr)}function c(r,t){return cr||a(t),cr(r)}function i(t,e,n){if(G(e,t))return Y(e,t);var o,c,i,u,f,s;if("SharedArrayBuffer"===(n||A(t)))o=cr?cr(t):t;else{(n=p.DataView)||g(t.slice)||a("ArrayBuffer");try{if(g(t.slice)&&!t.resizable)o=t.slice(0);else{c=t.byteLength,i="maxByteLength"in t?{maxByteLength:t.maxByteLength}:r,o=new ArrayBuffer(c,i),u=new n(t),f=new n(o);for(s=0;s<c;s++)f.setUint8(s,u.getUint8(s))}}catch(t){throw new z("ArrayBuffer is detached",nr)}}return H(e,t,o),o}var u,f=n(34),s=n(2),p=n(3),l=n(22),y=n(13),h=n(6),v=n(39),g=n(20),d=n(124),b=n(16),m=n(19),w=n(21),E=n(84),x=n(45),A=n(91),O=n(37),S=n(125),R=n(42),T=n(62),_=n(126),j=n(127),I=n(94),P=n(128),D=n(129),M=n(131),k=n(137),C=n(134),U=p.Object,L=p.Array,N=p.Date,F=p.Error,B=p.TypeError,V=p.PerformanceMark,z=l("DOMException"),W=I.Map,G=I.has,Y=I.get,H=I.set,Q=P.Set,X=P.add,q=P.has,K=l("Object","keys"),Z=y([].push),$=y((!0).valueOf),J=y(1..valueOf),rr=y("".valueOf),tr=y(N.prototype.getTime),er=v("structuredClone"),nr="DataCloneError",or="Transferring",ar=(y=function(r){return!h((function(){var t=new p.Set([7]),e=r(t),n=r(U(7));return e===t||!e.has(7)||!m(n)||7!=+n}))&&r},v=function(r,t){return!h((function(){var e=new t,n=r({a:e,b:e});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===e.stack)}))},p.structuredClone),cr=(f=f||!v(ar,F)||!v(ar,z)||(u=ar,!!h((function(){var r=u(new p.AggregateError([1],er,{cause:3}));return"AggregateError"!==r.name||1!==r.errors[0]||r.message!==er||3!==r.cause}))),v=!ar&&y((function(r){return new V(er,{detail:r}).detail})),y(ar)||v),ir=function(t,e){if(w(t)&&o("Symbol"),!m(t))return t;if(e){if(G(e,t))return Y(e,t)}else e=new W;var n,u,f,s,y,h,v,d,b,E,x,_,I,P,D=A(t);switch(D){case"Array":f=L(T(t));break;case"Object":f={};break;case"Map":f=new W;break;case"Set":f=new Q;break;case"RegExp":f=new RegExp(t.source,j(t));break;case"Error":switch(u=t.name){case"AggregateError":f=new(l(u))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":f=new(l(u));break;case"CompileError":case"LinkError":case"RuntimeError":f=new(l("WebAssembly",u));break;default:f=new F}break;case"DOMException":f=new z(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":f=i(t,e,D);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":h="DataView"===D?t.byteLength:t.length,E=D,x=(b=t).byteOffset,_=h,I=e,P=p[E],m(P)||a(E),f=new P(i(b.buffer,I),x,_);break;case"DOMQuad":try{f=new DOMQuad(ir(t.p1,e),ir(t.p2,e),ir(t.p3,e),ir(t.p4,e))}catch(n){f=c(t,D)}break;case"File":if(cr)try{f=cr(t),A(f)!==D&&(f=r)}catch(n){}if(!f)try{f=new File([t],t.name,t)}catch(n){}f||a(D);break;case"FileList":if(s=function(){var r;try{r=new p.DataTransfer}catch(t){try{r=new p.ClipboardEvent("").clipboardData}catch(r){}}return r&&r.items&&r.files?r:null}()){for(y=0,h=T(t);y<h;y++)s.items.add(ir(t[y],e));f=s.files}else f=c(t,D);break;case"ImageData":try{f=new ImageData(ir(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(n){f=c(t,D)}break;default:if(cr)f=cr(t);else switch(D){case"BigInt":f=U(t.valueOf());break;case"Boolean":f=U($(t));break;case"Number":f=U(J(t));break;case"String":f=U(rr(t));break;case"Date":f=new N(tr(t));break;case"Blob":try{f=t.slice(0,t.size,t.type)}catch(n){a(D)}break;case"DOMPoint":case"DOMPointReadOnly":n=p[D];try{f=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(n){a(D)}break;case"DOMRect":case"DOMRectReadOnly":n=p[D];try{f=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(n){a(D)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=p[D];try{f=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(n){a(D)}break;case"AudioData":case"VideoFrame":g(t.clone)||a(D);try{f=t.clone()}catch(n){o(D)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":a(D);default:o(D)}}switch(H(e,t,f),D){case"Array":case"Object":for(v=K(t),y=0,h=T(v);y<h;y++)d=v[y],S(f,d,ir(t[d],e));break;case"Map":t.forEach((function(r,t){H(f,ir(t,e),ir(r,e))}));break;case"Set":t.forEach((function(r){X(f,ir(r,e))}));break;case"Error":R(f,"message",ir(t.message,e)),O(t,"cause")&&R(f,"cause",ir(t.cause,e)),"AggregateError"===u?f.errors=ir(t.errors,e):"SuppressedError"===u&&(f.error=ir(t.error,e),f.suppressed=ir(t.suppressed,e));case"DOMException":k&&R(f,"stack",ir(t.stack,e))}return f};s({global:!0,enumerable:!0,sham:!C,forced:f},{structuredClone:function(t){var e,n;(n=(n=1<_(arguments.length,1)&&!b(arguments[1])?x(arguments[1]):r)?n.transfer:r)!==r&&(e=function(t,e){if(!m(t))throw new B("Transfer option cannot be converted to a sequence");var n=[];E(t,(function(r){Z(n,x(r))}));for(var o,c,i,u,f,s=0,l=T(n),y=new Q;s<l;){if(o=n[s++],"ArrayBuffer"===(c=A(o))?q(y,o):G(e,o))throw new z("Duplicate transferable",nr);if("ArrayBuffer"!==c){if(C)u=ar(o,{transfer:[o]});else switch(c){case"ImageBitmap":i=p.OffscreenCanvas,d(i)||a(c,or);try{(f=new i(o.width,o.height)).getContext("bitmaprenderer").transferFromImageBitmap(o),u=f.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":g(o.clone)&&g(o.close)||a(c,or);try{u=o.clone(),o.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":a(c,or)}if(u===r)throw new z("This object cannot be transferred: "+c,nr);H(e,o,u)}else X(y,o)}return y}(n,o=new W));var o=ir(t,o);return e&&D(e,(function(r){C?cr(r,{transfer:[r]}):g(r.transfer)?r.transfer():M?M(r):a("ArrayBuffer",or)})),o}})},function(r,t,e){function n(){}function o(r){if(!i(r))return!1;try{return p(n,[],r),!0}catch(r){return!1}}var a=e(13),c=e(6),i=e(20),u=e(91),f=e(22),s=e(49),p=f("Reflect","construct"),l=/^\s*(?:class|function)\b/,y=a(l.exec),h=!l.test(n);a=function(r){if(!i(r))return!1;switch(u(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!y(l,s(r))}catch(r){return!0}};a.sham=!0,r.exports=!p||c((function(){var r;return o(o.call)||!o(Object)||!o((function(){r=!0}))||r}))?a:o},function(r,t,e){var n=e(17),o=e(43),a=e(10);r.exports=function(r,t,e){(t=n(t))in r?o.f(r,t,a(0,e)):r[t]=e}},function(r,t,e){var n=TypeError;r.exports=function(r,t){if(r<t)throw new n("Not enough arguments");return r}},function(t,e,n){var o=n(7),a=n(37),c=n(23),i=n(100),u=RegExp.prototype;t.exports=function(t){var e=t.flags;return e!==r||"flags"in u||a(t,"flags")||!c(u,t)?e:o(i,t)}},function(r,t,e){var n=e(13);e=Set.prototype;r.exports={Set,add:n(e.add),has:n(e.has),remove:n(e.delete),proto:e}},function(r,t,e){var n,o=e(13),a=e(130),c=(e=(n=e(128)).Set,o((n=n.proto).forEach)),i=o(n.keys),u=i(new e).next;r.exports=function(r,t,e){return e?a({iterator:i(r),next:u},t):c(r,t)}},function(t,e,n){var o=n(7);t.exports=function(t,e,n){for(var a,c=n?t:t.iterator,i=t.next;!(a=o(i,c)).done;)if((a=e(a.value))!==r)return a}},function(r,t,e){var n,o,a,c,i=e(3),u=e(132),f=e(134),s=i.structuredClone,p=i.ArrayBuffer;e=i.MessageChannel,i=!1;if(f)i=function(r){s(r,{transfer:[r]})};else if(p)try{e||(n=u("worker_threads"))&&(e=n.MessageChannel),e&&(o=new e,a=new p(2),c=function(r){o.port1.postMessage(null,[r])},2===a.byteLength&&(c(a),0===a.byteLength&&(i=c)))}catch(r){}r.exports=i},function(r,t,e){var n=e(133);r.exports=function(r){try{if(n)return Function('return require("'+r+'")')()}catch(r){}}},function(r,t,e){var n=e(3);e=e(14);r.exports="process"===e(n.process)},function(r,t,e){var n=e(3),o=e(6),a=e(26),c=e(135),i=e(136),u=e(133),f=n.structuredClone;r.exports=!!f&&!o((function(){if(i&&92<a||u&&94<a||c&&97<a)return!1;var r=new ArrayBuffer(8),t=f(r,{transfer:[r]});return 0!==r.byteLength||8!==t.byteLength}))},function(r,t,e){var n=e(136);e=e(133);r.exports=!n&&!e&&"object"==typeof window&&"object"==typeof document},function(r,t,e){r.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(r,t,e){var n=e(6),o=e(10);r.exports=!n((function(){var r=new Error("a");return!("stack"in r)||(Object.defineProperty(r,"stack",o(1,7)),7!==r.stack)}))},function(t,e,n){var o=n(2),a=n(22),c=n(6),i=n(126),u=n(102),f=(n=n(139),a("URL"));o({target:"URL",stat:!0,forced:!(n&&c((function(){f.canParse()})))},{canParse:function(t){var e=i(arguments.length,1);t=u(t),e=e<2||arguments[1]===r?r:u(arguments[1]);try{return!!new f(t,e)}catch(t){return!1}}})},function(t,e,n){var o=n(6),a=n(32),c=n(5),i=n(34),u=a("iterator");t.exports=!o((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),o="";return t.pathname="c%20d",e.forEach((function(r,t){e.delete("b"),o+=t+r})),n.delete("a",2),n.delete("b",r),i&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",r)||n.has("b"))||!e.size&&(i||!c)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==o||"x"!==new URL("http://x",r).host}))},function(t,e,n){var o,a=n(46),c=n(13),i=n(102),u=n(126),f=c((n=(o=URLSearchParams).prototype).append),s=c(n.delete),p=c(n.forEach),l=c([].push);(o=new o("a=1&a=2&b=3")).delete("a",1),o.delete("b",r),o+""!="a=2"&&a(n,"delete",(function(t){var e=arguments.length,n=e<2?r:arguments[1];if(e&&n===r)return s(this,t);var o=[];p(this,(function(r,t){l(o,{key:t,value:r})})),u(e,1);for(var a,c=i(t),y=i(n),h=0,v=0,g=!1,d=o.length;h<d;)a=o[h++],g||a.key===c?(g=!0,s(this,a.key)):v++;for(;v<d;)(a=o[v++]).key===c&&a.value===y||f(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},function(t,e,n){var o,a=n(46),c=n(13),i=n(102),u=n(126),f=c((n=(o=URLSearchParams).prototype).getAll),s=c(n.has);!(o=new o("a=1")).has("a",2)&&o.has("a",r)||a(n,"has",(function(t){var e=arguments.length,n=e<2?r:arguments[1];if(e&&n===r)return s(this,t);var o=f(this,t);u(e,1);for(var a=i(n),c=0;c<o.length;)if(o[c++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},function(r,t,e){var n=e(5),o=e(13),a=e(99),c=o((e=URLSearchParams.prototype).forEach);!n||"size"in e||a(e,"size",{get:function(){var r=0;return c(this,(function(){r++})),r},configurable:!0,enumerable:!0})}],n.c=e,n.d=function(r,t,e){n.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:e})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,t){if(1&t&&(r=n(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var o in r)n.d(e,o,function(t){return r[t]}.bind(null,o));return e},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,"a",t),t},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},n.p="",n(n.s=0)}();
seraph_accel_gzjydy();var wpcf7_recaptcha={"sitekey":"6LeB0q0pAAAAAM9inyeK5FkmgKwt0Q67SmqQCYiO","actions":{"homepage":"homepage","contactform":"contactform"}};
seraph_accel_gzjydy();document.addEventListener("DOMContentLoaded",(e=>{var t;wpcf7_recaptcha={...null!==(t=wpcf7_recaptcha)&&void 0!==t?t:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=e=>{const{action:t,func:n,params:a}=e;grecaptcha.execute(c,{action:t}).then((e=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:t,token:e}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((e=>console.error(e)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(e=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const e=wpcf7.submit;wpcf7.submit=(t,c={})=>{o({action:a,func:e,params:[t,c]})}}document.addEventListener("wpcf7grecaptchaexecuted",(e=>{const t=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c<t.length;c++)t[c].setAttribute("value",e.detail.token)}))}));
seraph_accel_gzjydy();document.addEventListener('DOMContentLoaded',function(){for(var cookieName in wpml_cookies){var cookieData=wpml_cookies[cookieName];document.cookie=cookieName+'='+cookieData.value+';expires='+cookieData.expires+'; path='+cookieData.path;}});
seraph_accel_gzjydy();