//------------------------------------------------------------------------------ //jQuery/jquery-3.5.1.min.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; /*! jQuery v3.5.1 | (c) JS 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(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=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))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(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&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(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&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(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 ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);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&&E){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=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(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=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.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 S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").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)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.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),m(t)&&(t=t.call(e,n,S.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):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.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"===S.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"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(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)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(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?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.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.mouseenter(e).mouseleave(t||e)}}),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,n){S.fn[n]=function(e,t){return 0
' ).attr( 'data-name' , name )[ 0 ]; $( 'body' ).append( this.html ); var overlay= this; $( this.html ).click( function( ) { overlay.close( ); } ); $( document ).keyup( function( event ) { if( event.keyCode== 27 ) { overlay.close( ); } } ); } Overlay.prototype.getRoot= function( ) { return this.html; } Overlay.prototype.setHTML= function( html ) { this.removeHTML( ); $( this.html ).find( '.Overlay-Contents' ).append( html ); return this; } Overlay.prototype.setHTMLs= function( htmls ) { this.removeHTML( ); var $html= $( this.html ).find( '.Overlay-Contents' ); for( var i= 0; i< htmls.length; ++i ) { $html.append( htmls[ i ] ); } return this; } Overlay.prototype.removeHTML= function( html ) { $( this.html ).find( '.Overlay-Contents' ).empty( ); return this; } Overlay.prototype.show= function( ) { var overlay= this; setTimeout( function( ) { $( overlay.html ).addClass( 'Overlay-show' ); } , 25 ); return this; } Overlay.prototype.close= function( ) { $( this.html ).removeClass( 'Overlay-show' ); var overlay= this; setTimeout( function( ) { overlay.removeHTML( ); } , 500 ) return this; }; window.IntegralXYZ = window.IntegralXYZ || { }; window.IntegralXYZ.Overlay= Overlay; } )( ); //------------------------------------------------------------------------------ //IntegralXYZ/expandable.function.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; var overlay= new IntegralXYZ.Overlay( 'Expandable' ); var overlay_html= overlay.getRoot( ); var block= false; var current; var group; var expand= function( ) { if( block ) return false; current= this; group= $( this ).parents( '.Expandable-Group' ); if( group.length== 0 ) { group= null; } else { group= group[ 0 ]; if( $( group ).find( '.Expandable' ).length < 2 ) { group= null; } } var htmls= [ ]; if( $( current ).hasClass( 'Expandable-image' ) ) { var src= $( current ).attr( 'href' ); if( !src ) src= $( this ).attr( 'src' ); htmls.push( $( '' ) ); if( $( current ).find( '.Expandable-HTML' ).length ) { htmls.push( $( '
' ).html( $( current ).find( '.Expandable-HTML' ).html( ) ) ); } } else if( $( current ).hasClass( 'Expandable-iframe' ) ) { var src= $( current ).attr( 'data-iframe' ); if( !src ) src= $( this ).attr( 'href' ); htmls.push( $( '' ) ); } else { //console.log( 'Undefined Expandable' ); return true; } if( group ) { preload_next_and_prev( get_current_index( ) ); htmls.push( $( '' ) ); htmls.push( $( '' ) ); var nav= ''; nav+= '
'; $( group ).find( '.Expandable' ).each( function( ) { nav+= ''; } ); nav+= '
'; htmls.push( $( nav ) ); } overlay.setHTMLs( htmls ); overlay.show( ); if( group ) { $( overlay_html ).find( '.Expandable-Navigation-Previous' ).click( prev ); $( overlay_html ).find( '.Expandable-Navigation-Next' ).click( next ); $( overlay_html ).find( '.Expandable-Navigation-Item' ).click( jump ); $( overlay_html ).find( '.Expandable-Navigation-Item' ).mouseenter( function( ) { var index= $( this ).index( ); var items= $( group ).find( '.Expandable' ).toArray( ); return preload( items[ index ] ); } ); } return false; }; var get_current_index= function( ) { var items= $( group ).find( '.Expandable' ); var current_index= -1; for( var i= 0; i< items.length; ++i ) { if( items[ i ]=== current ) { current_index= i; break; } } if( current_index== -1 ) { //console.log( 'Expandable: failed to find current index.' ); return 0; } return current_index; }; var change= function( next_index ) { if( block ) return false; var current_index= get_current_index( ); if( current_index== next_index ) return false; block= true; var items= $( group ).find( '.Expandable' ).toArray( ); next_index= normalize_index( next_index , items.length ); var next_item= items[ next_index ]; preload_next_and_prev( next_index ); var $current_expanded= $( overlay_html ).find( '.Expandable-Expanded' ); $current_expanded.addClass( 'Expandable-Expanded-hide' ); var html; if( $( next_item ).hasClass( 'Expandable-image' ) ) { var src= $( next_item ).attr( 'href' ); if( !src ) src= $( next_item ).attr( 'src' ); $( overlay_html ).find( '.Expandable-HTML' ).html( $( next_item ).parent( ).find( '.Expandable-HTML' ).html( ) ); html= ''; } else if( $( next_item ).hasClass( 'Expandable-iframe' ) ) { var src= $( next_item ).attr( 'data-iframe' ); if( !src ) src= $( next_item ).attr( 'href' ); html= ''; } else { //console.log( 'Undefined Expandable' ); return true; } var $next_expanded= $( html ).addClass( 'Expandable-Expanded-hide' ); $current_expanded.after( $next_expanded ); $( overlay_html ).find( '.Expandable-Navigation-Item-current' ).removeClass( 'Expandable-Navigation-Item-current' ); setTimeout( function( ) { $current_expanded.remove( ); $next_expanded.removeClass( 'Expandable-Expanded-hide' ); $( overlay_html ).find( '.Expandable-Navigation-Item' ).slice( next_index , next_index+ 1 ).addClass( 'Expandable-Navigation-Item-current' ); current= items[ next_index ]; block= false; } , 130 ); return false; } var next= function( ) { var index= get_current_index( )+ 1; return change( index ); }; var prev= function( ) { var index= get_current_index( )- 1; return change( index ); }; var jump= function( ) { var index= $( this ).index( ); return change( index ); }; var preload= function( item ) { if( $( item ).hasClass( 'Expandable-preloaded' ) ) return; var src; if( $( item ).hasClass( 'Expandable-image' ) ) { src= $( item ).attr( 'href' ); } else if( $( item ).hasClass( 'Expandable-iframe' ) ) { src= $( item ).find( 'img' ).attr( 'src' ); } else { return; } //console.log( 'Expandable: preloading '+ src ); var image= new Image( ); image.src= src; $( item ).addClass( 'Expandable-preloaded' ); return; }; var preload_next_and_prev= function( index ) { var items= $( group ).find( '.Expandable' ).toArray( ); var next_index= normalize_index( index+ 1 , items.length ); var prev_index= normalize_index( index- 1 , items.length ); //console.log( 'preindex '+ prev_index, ' , '+ index+ ' , '+ next_index ); preload( items[ next_index ] ); preload( items[ prev_index ] ); } var normalize_index= function( index , length ) { while( index< 0 ) index+= length; index%= length; return index } function expandable( ) { $( '.Expandable:not( .Expandable-js )' ).click( expand ).addClass( 'Expandable-js' ); }; window.expandable= expandable; window.IntegralXYZ = window.IntegralXYZ || { }; window.IntegralXYZ.expandable= expandable; } )( ); //------------------------------------------------------------------------------ //IntegralXYZ/Slider.prototype.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; function Slider( element , mods ) { this.element= element; this.blocked= false; this.blocked_timeout= parseInt( $( element ).attr( 'data-blocked-timeout' ) ) || 550; //console.log( 'b' , this.blocked_timeout ); this.blocked_timeout_id= 0; this.auto_next_timeout= 0; this.auto_next_timeout_id= 0; this.slide_change_handlers= [ ]; $( this.element ).addClass( 'Slider-js' ); if( $( this.element ).hasClass( 'Slider-next-and-previous-navigation' ) ) { this.addNextAndPreviuousNavigation( ); } if( $( this.element ).hasClass( 'Slider-navigation-thumbs' ) ) { this.addNavigationThumbs( ); } if( $( this.element ).hasClass( 'Slider-navigation-labels' ) ) { this.addNavigationLabels( ); } var slider= this; $( this.element ).on( 'mousemove' , function( ) { if( slider.auto_next_timeout_id ) { var cancel= parseInt( $( slider.getCurrentSlideElement( ) ).attr( 'data-hover-cancels-auto-next-timeout' ) ); if( isNaN( cancel ) ) { cancel= parseInt( $( slider.element ).attr( 'data-hover-cancels-auto-next-timeout' ) ); if( isNaN( cancel ) ) { cancel= false; } } if( cancel ) { slider.clearAutoNextTimeout( ); } } } ); $( this.element ).on( 'mouseleave' , function( ) { if( !slider.auto_next_timeout_id ) { slider.setAutoNextTimeout( ); } } ); $( this.element ).on( 'removed' , function( ) { clearTimeout( slider.blocked_timeout_id ); clearTimeout( slider.auto_next_timeout_id ); $( slider.element ) .off( 'mousemove' ) .off( 'mouseleave' ) } ); //Slider.sliders.push( this ); } //Slider.sliders= [ ]; /* Slider.stop= function( ) { for( var i= 0; i< Slider.sliders.length; ++i ) { Slider.sliders[ i ].clearAutoNextTimeout( ); } }; */ Slider.prototype.getSliderElement= function( ) { return this.element; } Slider.prototype.getSlidesCount= function( ) { return $( this.getSlidesElement( ) ).children( ).length; }; Slider.prototype.getSlidesElement= function( ) { return $( this.element ).children( '.Slider-Slides' )[ 0 ]; } Slider.prototype.getCurrentSlideElement= function( mod ) { mod= mod || 1; var $slide; if( mod== 1 ) { $slide= $( this.getSlidesElement( ) ).children( '.Slider-Slide-current' ); } else { $slide= $( this.getSlidesElement( ) ).children( '.Slider-Slide-current-mod'+ mod ); } if( $slide.length ) return $slide[ 0 ]; return null; }; Slider.prototype.getSlideElementWithIndex= function( index ) { return $( this.getSlidesElement( ) ).children( '.Slider-Slide' )[ index ]; }; Slider.prototype.getCurrentIndex= function( mod ) { return $( this.getCurrentSlideElement( mod ) ).index( ) }; Slider.prototype.normalizeIndex= function( index , mod ) { var count= this.getSlidesCount( ); var last_index= count- 1; //console.log( 'cont '+ count ); if( index< 0 ) { if( index<= -mod ) { index= last_index; } else { index= 0; } } else if( index> last_index ) { index= 0; } if( mod> 1 ) { index= Math.min( index , last_index- ( mod- 1 ) ); } if( index< 0 ) index= 0; if( index>= count ) index= count-1; return index; } Slider.prototype.clearAutoNextTimeout= function( ) { if( this.auto_next_timeout_id ) { clearTimeout( this.auto_next_timeout_id ); this.auto_next_timeout_id= 0; } return this; }; Slider.prototype.setAutoNextTimeout= function( auto_next_timeout ) { //console.log( 'setAutoNextTimeout' ); if( auto_next_timeout=== undefined ) { //console.log( 'sa' , $( this.getCurrentSlideElement( ) ) ); this.auto_next_timeout= parseInt( $( this.getCurrentSlideElement( ) ).attr( 'data-auto-next-timeout' ) ); if( isNaN( this.auto_next_timeout ) ) { this.auto_next_timeout= parseInt( $( this.element ).attr( 'data-auto-next-timeout' ) ); if( isNaN( this.auto_next_timeout ) ) { this.auto_next_timeout= 0; } } } else { //console.log( 'setAutoNextTimeout value set: '+ auto_next_timeout ); this.auto_next_timeout= auto_next_timeout; } this.clearAutoNextTimeout( ); if( this.auto_next_timeout ) { var slider= this; //console.log( 'setAutoNextTimeout now: '+ this.auto_next_timeout ); this.auto_next_timeout_id= setTimeout( function( ) { slider.goToNextSlide( ); } , this.auto_next_timeout ); //console.log( 'setAutoNextTimeout set' ); } //console.log( 'setAutoNextTimeout complete' ); return this; }; Slider.prototype.isBlocked= function( ) { return this.blocked; }; Slider.prototype.getBlockTimeout= function( ) { return this.blocked_timeout; }; Slider.prototype.block= function( ) { if( this.getBlockTimeout( ) ) { this.unblock( ); this.blocked= true; var slider= this; this.blocked_timeout_id= setTimeout( function( ) { //console.log( 'unblock timeout' ) slider.unblock( ); } , this.getBlockTimeout( ) ); //console.log( 'block timeout1' ) } return this.blocked; }; Slider.prototype.unblock= function( ) { if( this.blocked_timeout_id ) { clearTimeout( this.blocked_timeout_id ); this.blocked_timeout_id= 0; } this.blocked= false; //console.log( 'unblock' ) }; Slider.prototype.goToNextSlide= function( ) { for( var mod= 1; mod<= 1/*3*/; ++mod ) { var current= this.getCurrentIndex( mod ); if( current== -1 ) { $( this.element ).addClass( 'Slider-first' ); $( this.getSlideElementWithIndex( 0 ) ).addClass( 'Slider-Slide-current' ); this.element.offsetLeft; $( this.element ).removeClass( 'Slider-first' ); } this.goToSlideIndex( current+ mod , mod , mod== 1 , mod== 3 ); } return; }; Slider.prototype.goToPreviousSlide= function( ) { for( var mod= 1; mod<= 1/*3*/; ++mod ) { var current= this.getCurrentIndex( mod ); this.goToSlideIndex( current- mod , mod , mod== 1 , mod== 3 ); } return; }; Slider.prototype.goToSlideIndex= function( index , mod , trigger , block ) { if( this.isBlocked( ) ) return false; var current= this.getCurrentIndex( mod ); index= this.normalizeIndex( index , mod ); //console.log( 'mod ' , mod ); //console.log( 'current ' , current ); //console.log( 'goto ' , index ); if( index== current ) return true; //if( block ) { this.block( ); //} $( this.getSlidesElement( ) ).removeClass( 'Slider-Slides-current-'+ current ); $( this.getSlidesElement( ) ).addClass( 'Slider-Slides-current-'+ index ); var mod_class= mod> 1 ? '-mod'+ mod : ''; var $current= $( this.getCurrentSlideElement( mod ) ); $current.removeClass( 'Slider-Slide-current'+ mod_class ); $( this.getSlidesElement( ) ).children( '.Slider-Slide-previous'+ mod_class ).removeClass( 'Slider-Slide-previous'+ mod_class ); $current.addClass( 'Slider-Slide-previous'+ mod_class ); var $next= $( this.getSlideElementWithIndex( index ) ); $next.addClass( 'Slider-Slide-prepare'+ mod_class ); this.element.offsetLeft; $next.addClass( 'Slider-Slide-current'+ mod_class ); $next.removeClass( 'Slider-Slide-prepare'+ mod_class ); this.element.offsetLeft; this.setAutoNextTimeout( ); if( trigger ) { for( var i= 0; i< this.slide_change_handlers.length; ++i ) { this.slide_change_handlers[ i ]( this ); } } } , Slider.prototype.slideChangeEvent= function( handler ) { this.slide_change_handlers.push( handler ); return this; }; Slider.prototype.addNavigationThumbs= function( ) { var html= ''; html+= '
    '; $( this.getSlidesElement( ) ).children( '.Slider-Slide' ).each( function( ) { var src= $( this ).find( 'img' ).attr( 'src' ); var title= $( this ).find( 'img' ).attr( 'alt' ); //style="background-image: url( \''+ src+ '\' );" html+= '
  1. '; } ); html+= '
'; $( this.element ).append( $( html ) ); var slider= this; var click= function( ) { var index= $( this ).parent( ).index( ); //console.log( index ); slider.goToSlideIndex( index ); update( ); }; $( slider.element ).find( '.Slider-Navigation-Item button' ).click( click ); var update= function( ) { var index= slider.getCurrentIndex( ); if( index== -1 ) index= 0; $( slider.element ).find( '.Slider-Navigation-Item-current' ).removeClass( 'Slider-Navigation-Item-current' ); $( slider.element ).find( '.Slider-Navigation-Item:nth-child( '+ ( index+ 1 )+ ' )' ).addClass( 'Slider-Navigation-Item-current' ); }; this.slideChangeEvent( update ); update( ); } Slider.prototype.addNavigationLabels= function( ) { var html= ''; html+= '
    '; $( this.getSlidesElement( ) ).children( '.Slider-Slide' ).each( function( ) { var label= $( this ).attr( 'data-slide-label' ); html+= '
  1. '; } ); html+= '
'; $( this.element ).append( $( html ) ); var slider= this; var click= function( ) { var index= $( this ).parent( ).index( ); //console.log( index ); slider.goToSlideIndex( index ); update( ); }; $( slider.element ).find( '.Slider-Navigation-Item button' ).click( click ); var update= function( ) { var index= slider.getCurrentIndex( ); if( index== -1 ) index= 0; $( slider.element ).find( '.Slider-Navigation-Item-current' ).removeClass( 'Slider-Navigation-Item-current' ); $( slider.element ).find( '.Slider-Navigation-Item:nth-child( '+ ( index+ 1 )+ ' )' ).addClass( 'Slider-Navigation-Item-current' ); }; this.slideChangeEvent( update ); update( ); } Slider.prototype.addNextAndPreviuousNavigation= function( ) { if( this.getSlidesCount( )< 2 ) { return; } var html= ''; html+= '
'; html+= ''; html+= ''; html+= '
'; html= $( html ); var slider= this; var block= 0; $( html ).find( '.Slider-NextAndPreviuousNavigation-Previous' ).click( function( ) { slider.goToPreviousSlide( ); } ); $( html ).find( '.Slider-NextAndPreviuousNavigation-Next' ).click( function( ) { slider.goToNextSlide( ); } ); $( this.element ).append( $( html ) ); }; window.IntegralXYZ = window.IntegralXYZ || { }; window.IntegralXYZ.Slider= Slider; } )( ); //------------------------------------------------------------------------------ //IntegralXYZ/Asynchronicity.prototype.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; var $= jQuery; function Asynchronicity( module ) { this.module= module; this.initialized= false; this.name= null; this.names= { }; this.handlers= { }; this.direction= 0; } //------------------------------------------------------------------------------------ Asynchronicity.prototype.run= function( ) { var asynchronicity= this; if( !history.pushState ) { return; } if( !this.initialized ) { $( window ).on( 'popstate' , function( event ) { asynchronicity.triggerPopState( event.originalEvent ); } ); var title= $( 'title' ).text( ); history.replaceState( { title: title , url: window.location.href , } , title ); this.initialized= true; } $( '.Asynchronous:not( .Asynchronous-js )' ).each( function( ) { var asynchronous= new IntegralXYZ.Asynchronous( asynchronicity , this ); asynchronicity.names[ asynchronous.getName( ) ]= asynchronous; if( !this.name ) { asynchronicity.name= asynchronous; } } ); }; //------------------------------------------------------------------------------------ Asynchronicity.prototype.triggerPopState= function( event ) { var asynchronous= this.names[ event.state.name ]; if( !asynchronous ) { asynchronous= this.name; } asynchronous.statePopped( event.state ); }; //------------------------------------------------------------------------------------ var on= function( type , handler , args ) { if( handler=== undefined ) { //console.log( 'trigger async event ' , type ); if( args=== undefined ) args= [ ]; if( this.handlers[ type ] ) { for( var i= 0; i< this.handlers[ type ].length; ++i ) { this.handlers[ type ][ i ].apply( this , args ); } } } else { if( !this.handlers[ type ] ) { this.handlers[ type ]= [ ] } this.handlers[ type ].push( handler ); } } Asynchronicity.prototype.onBeforeNavigation= function( handler , args ) { on.apply( this , [ 'onBeforeNavigation' , handler ] ); } Asynchronicity.prototype.onNavigationToHash= function( handler , args ) { on.apply( this , [ 'onNavigationToHash' , handler ] ); } Asynchronicity.prototype.onNavigationToElement= function( handler , args ) { on.apply( this , [ 'onNavigationToElement' , handler ] ); } Asynchronicity.prototype.onAfterNavigation= function( handler , args ) { on.apply( this , [ 'onAfterNavigation' , handler ] ); } Asynchronicity.prototype.onUpdateCooldownComplete= function( handler , args ) { on.apply( this , [ 'onUpdateCooldownComplete' , handler ] ); } Asynchronicity.prototype.onAfterUpdate= function( handler , args ) { on.apply( this , [ 'onAfterUpdate' , handler , args ] ); } //------------------------------------------------------------------------------------; window.IntegralXYZ = window.IntegralXYZ || { }; window.IntegralXYZ.Asynchronicity= Asynchronicity; } )( ); //------------------------------------------------------------------------------ //IntegralXYZ/Asynchronous.prototype.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; var $= jQuery; function Asynchronous( asynchronicity , element ) { this.asynchronicity= asynchronicity; this.element= element; //this.direction= 0; this.new_contents= null; this.cooldown_duration= $( this.element ).attr( 'data-asynchronous-cooldown' ) || 1; this.cooldown_timeout= null; this.cooldown_handler= null; this.xhr= null; this.xhr_aborted= false; this.xhr_url= null; var asynchronous= this; $( element ).click( function( event ) { return asynchronous.triggerClick( event ) } ); /* $( element ).bind( 'DOMNodeRemoved' , function( ) { //this.remove( ); } ); */ $( this.element ).addClass( 'Asynchronous-js' ); } //------------------------------------------------------------------------------------ Asynchronous.prototype.getName= function( ) { return $( this.element ).attr( 'data-asynchronous-name' ); }; //------------------------------------------------------------------------------------ Asynchronous.prototype.triggerClick= function( event ) { if( event.button!= 0 ) return; var a; { var $target= $( event.target ); if( $target.is( 'a' ) ) { a= $target[ 0 ]; } else if( $target.parents( 'a' ).length ) { a= $target.parents( 'a' )[ 0 ]; } } if( !a ) { return; } if( $( a ).attr( 'target' )!== undefined ) { return; } var $parent= $( a ).parents( '.Asynchronous' ).first( ); if( !$parent.length ) { throw new Error( 'Asynchronous parent not found' ); return; } if( $parent[ 0 ]!== this.element ) { //console.log( 'Not mine anchor' ) return; } if( $( a ).hasClass( 'Asynchronous-ignore' ) ) { return; } if( ( a.origin!= window.location.origin ) ) { if( a.origin!== undefined ) { return; } } if( a.href.match( /^tel:/ )|| a.href.match( /^mailto:/ ) ) { return; } var url= new URL( a.href.replace( /\/{2,}/ , '/' ) ); var $section= $( '.Asynchronous-Section[data-url="'+ url.pathname+ '"] , .Asynchronous-Section[data-url^="'+ url.pathname+ '?"] , .Asynchronous-Section[data-url^="'+ url.pathname+ '#"]' ); if( ( $section.length )&& ( $section.find( a ).length== 0 ) ) { var asynchronous= this; $( asynchronous.element ).find( '.target' ).removeClass( 'target' ); $section.addClass( 'target' ); this.asynchronicity.onNavigationToElement( ); } else { $( this.element ).find( 'a.current' ).removeClass( 'current' ); $( this.element ).find( 'a[href="'+ url.pathname+ '"] , a[href^="'+ url.pathname+ '?"] , a[href^="'+ url.pathname+ '#"]' ).addClass( 'current' ); var pathname= url.pathname.replace( /^\/+/ , '' ).replace( /\/+$/ , '' ).split( '/' ); pathname.pop( ); $( this.element ).find( 'a.current-ancestor' ).removeClass( 'current-ancestor' ); while( pathname.length ) { $( this.element ).find( 'a[href="/'+ pathname.join( '/' )+ '/"]' ).addClass( 'current-ancestor' ); pathname.pop( ); } this.navigate( 'GET' , url , { } , 1 ); } //event.stopPropagation( ); event.preventDefault( ); //return false; }; //------------------------------------------------------------------------------------ Asynchronous.prototype.triggerForm= function( event ) { }; //------------------------------------------------------------------------------------ Asynchronous.prototype.navigate= function( method , url , data , direction ) { data.Asynchronous= 1; //console.log( 'Navigate' , method , url , data , direction ); this.asynchronicity.direction= direction; this.asynchronicity.onBeforeNavigation( ); var current_url= new URL( history.state.url ); var current_path_and_query= current_url.pathname+ current_url.search; var new_path_and_query= url.pathname+ url.search; var current_hash= current_url.hash; var new_hash= url.hash; this.abort( ); if( ( current_path_and_query== new_path_and_query )&& ( new_hash!= '' ) ) { if( new_hash!= current_hash ) { if( this.asynchronicity.direction== 1 ) { var state= { title: history.state.title , url: url.href , name: this.getName( ) }; history.pushState( state , state.title , state.url ); } } this.asynchronicity.onNavigationToHash( ); $( '.target' ).removeClass( 'target' ); $( new_hash ).addClass( 'target' ); return; } this.xhr_aborted= false; this.xhr_url= url.href; var asynchronous= this; this.xhr= $.ajax( { url: this.xhr_url , method: method , data: data , success: function( data, textStatus, jqXHR ) { asynchronous.loadSuccess( data, textStatus, jqXHR ); } , error: function( jqXHR, textStatus, errorThrown ) { asynchronous.loadError( jqXHR, textStatus, errorThrown ); } , } ); this.hideContents( ); this.asynchronicity.onAfterNavigation( ); /* if( scroll ) { L.scroll.toTop( ); } else { L.scroll.savePosition( ); } */ }; Asynchronous.prototype.loadSuccess= function( data, textStatus, jqXHR ) { var content_type= jqXHR.getResponseHeader( 'Content-Type' ); var html_type= 'text/html'; if( content_type.substring( 0 , html_type.length )!= html_type ) { //console.log( '############################# 1' ) window.location= this.xhr_url; return; } this.loaded( data ); }; Asynchronous.prototype.loadError= function( jqXHR, textStatus, errorThrown ) { if( this.xhr_aborted ) { return; } if( textStatus== 'error' ) { this.loaded( jqXHR.responseText ); return; } //console.log( '############################# 2' ) window.location= this.xhr_url; }; Asynchronous.prototype.loaded= function( new_contents ) { this.new_contents= new_contents; this.setOnCooldownComplete( function( asynchronous ) { asynchronous.update( ); } ); }; Asynchronous.prototype.update= function( ) { var $html= $( $.parseHTML( '
'+ this.new_contents+ '
' ) ); var name= this.getName( ); var title= $html.find( 'title' ).text( ); var $new_contents= $html.find( '.Asynchronous-Contents[ data-asynchronous-name= "'+ name+ '" ] > *' ); $( 'title' ).text( title ); var $contents= $( '.Asynchronous-Contents[ data-asynchronous-name= "'+ name+ '" ]' ); $contents.empty( ); $new_contents.each( function( ) { $contents.append( $( this ) ); } ); if( this.asynchronicity.direction== 1 ) { history.pushState( { title: title , url: this.xhr_url , name: this.getName( ) } , title , this.xhr_url ); }; // set new url and title this.showContents( ); var asynchronous= this; this.setOnCooldownComplete( function( asynchronous ) { asynchronous.asynchronicity.onUpdateCooldownComplete( ); //L.scroll.toHash( L.ajax.url ); } ); this.asynchronicity.onAfterUpdate( undefined , [ $html ] ); /* ga('set', { page: L.ajax.url , title: title }); // send it for tracking ga('send', 'pageview'); */ //window.application.run( ); }; Asynchronous.prototype.hideContents= function( ) { var asynchronous= this; /* $( this.element ).addClass( 'Asynchronous-reset' ); setTimeout( function( ) { $( asynchronous.element ).removeClass( 'Asynchronous-reset' ); } , 100 ); */ $( this.element ).addClass( 'Asynchronous-pending' ); this.setCooldown( ); }; Asynchronous.prototype.showContents= function( ) { $( this.element ).removeClass( 'Asynchronous-pending' ); this.setCooldown( ); }; Asynchronous.prototype.setCooldown= function( ) { var asynchronous= this; this.cooldown_timeout= setTimeout( function( ) { asynchronous.cooldownComplete( ); } , this.cooldown_duration ); }; Asynchronous.prototype.cooldownComplete= function( ) { this.cooldown_timeout= null; if( this.cooldown_handler ) { var f= this.cooldown_handler; this.cooldown_handler= null; f( this ); } }; Asynchronous.prototype.setOnCooldownComplete= function( f ) { if( this.cooldown_timeout ) { this.cooldown_handler= f; } else { f( this ); } }; Asynchronous.prototype.statePopped= function( state ) { //console.log( 'statePopped' , state ); //console.log( history.state ); $( 'title' ).text( history.state.title ); var url= new URL( history.state.url ); this.navigate( 'GET' , url , { } , -1 ); }; Asynchronous.prototype.abort= function( ) { if( this.xhr ) { this.xhr_aborted= true; this.xhr.abort( ); this.xhr= null; } clearTimeout( this.cooldown_timeout ); this.cooldown_timeout= null; this.setOnCooldownComplete( function( asynchronous ) { asynchronous.showContents( ); asynchronous.setOnCooldownComplete( function( asynchronous ) { //L.scroll.toLastPosition } ); } ); }; /* Asynchronous.prototype.remove= function( ) { this.abort( ); this.element= null; this.cooldown_handler= null; clearTimeout( this.cooldown_timeout ); this.cooldown_timeout= null; }; */ //------------------------------------------------------------------------------------; window.IntegralXYZ = window.IntegralXYZ || { }; window.IntegralXYZ.Asynchronous= Asynchronous; } )( ); //------------------------------------------------------------------------------ //IntegralXYZ/Scrolling.prototype.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; var $= jQuery; //------------------------------------------------------------------------------------ function Scrolling( scroller ) { this.scroller= scroller; //this.helper= { a: null }; var scrolling= this; $( scroller.getElement( ) ).bind( 'mousewheel' , function( ) { scrolling.cancel( ); } ); } //------------------------------------------------------------------------------------ Scrolling.prototype.toTop= function( ) { this.toPixel( 0 ); }; //------------------------------------------------------------------------------------ Scrolling.prototype.toElement= function( element ) { var y= 0; var top= element.getBoundingClientRect( ).top; if( top ) { y= top+ this.scroller.get( ); } var margin= this.scroller.margin; y-= ( margin ? margin( ) : 0 ); if( y< 0 ) { y= 0; } this.toPixel( y ); }; //------------------------------------------------------------------------------------ Scrolling.prototype.toID= function( id ) { var $element= $( '#'+ id ); if( $element.length ) { this.toElement( $element[ 0 ] ); } }; //------------------------------------------------------------------------------------ Scrolling.prototype.toHash= function( url ) { var index= url.indexOf( '#' ); if( index== -1 ) { return; } var id= url.substring( index+ 1 ); if( id== '' ) { return; } this.toID( id ); }; //------------------------------------------------------------------------------------ Scrolling.prototype.toPixel= function( target ) { this.scroller.getElement( ).scroll(0,target); }; //------------------------------------------------------------------------------------ Scrolling.prototype.cancel= function( ) { //$( this.helper ).stop( true , false ); }; //------------------------------------------------------------------------------------; window.IntegralXYZ = window.IntegralXYZ || { }; window.IntegralXYZ.Scrolling= Scrolling; } )( ); //------------------------------------------------------------------------------ //JanosGallery.js //------------------------------------------------------------------------------ ;( function( ) { "use strict"; var Application= IntegralXYZ.Application; var Module= IntegralXYZ.Module; var application= new Application( 'BlueBird' , document.documentElement , function( application ) { $( function( ) { } ); //console.log( application.getName( )+ '::main( );' ); return null; } ); window.application= application; //------------------------------------------------------------------------------------ application.setModule( 'Toggles' , ( new Module( ) ) .create( function( module ) { return IntegralXYZ.Toggle; } ) .run( function( module ) { $( function( ) { $( '.Toggle:not( .Toggle-js )' ).each( function( ) { new IntegralXYZ.Toggle( this ); } ); } ); } ) ); //------------------------------------------------------------------------------------ /* application.setModule( 'OnScreens' , ( new Module( ) ) .create( function( module ) { $( application.element ).addClass( 'OnScreen-js' ); $( window ).scroll( IntegralXYZ.OnScreen.update ); return IntegralXYZ.OnScreen; } ) .run( function( module ) { $( function( ) { $( '.OnScreen:not( .OnScreen-js )' ).each( function( ) { new IntegralXYZ.OnScreen( this ); } ); IntegralXYZ.OnScreen.update( ); } ); } ) ); */ //------------------------------------------------------------------------------------ /* application.setModule( 'parallaxes' , ( new Module( ) ) .create( function( module ) { $( window ).scroll( IntegralXYZ.parallax ); IntegralXYZ.parallax( ); return IntegralXYZ.parallax; } ) .run( function( module ) { IntegralXYZ.parallax( ); } ) ); */ //------------------------------------------------------------------------------------ application.setModule( 'Overlies' , ( new Module( ) ) .create( function( module ) { return new IntegralXYZ.Overlay( ); } ) ); //------------------------------------------------------------------------------------ application.setModule( 'expandables' , ( new Module( ) ) .create( function( module ) { IntegralXYZ.expandable( ); return IntegralXYZ.expandable; } ) .run( function( module ) { IntegralXYZ.expandable( ); } ) ); //------------------------------------------------------------------------------------ application.setModule( 'Sliders' , ( new Module( ) ) .create( function( module ) { return IntegralXYZ.Slider; } ) .run( function( module ) { $( function( ) { $( '.Slider:not( .Slider-js )' ).each( function( ) { var slider= new IntegralXYZ.Slider( this ); var i= setInterval( function( ) { if( $( ':root' ).hasClass( 'loaded-or-timeout' ) ) { clearInterval( i ); if( slider.getCurrentIndex( )== -1 ) { slider.goToNextSlide( ); } slider.setAutoNextTimeout( ); } } , 250 ); } ); } ); } ) ); //------------------------------------------------------------------------------------ /* application.setModule( 'ScrollsInViewport' , ( new Module( ) ) .create( function( module ) { return IntegralXYZ.ScrollInViewport; } ) .run( function( module ) { $( function( ) { $( '.ScrollInViewport:not( .ScrollInViewport-js )' ).each( function( ) { new IntegralXYZ.ScrollInViewport( this , function( ) { return $( '.O > :first-child' ).height( )+ 24; } ); } ); } ); } ) ); */ //------------------------------------------------------------------------------------ application.setModule( 'Asynchronicity' , ( new Module( ) ) .boot( function( module ) { module.create( ); } ) .create( function( module ) { return new IntegralXYZ.Asynchronicity( module ); } ) .run( function( module ) { module.getModule( ).run( ); } ) ); //------------------------------------------------------------------------------------ application.setModule( 'Scrolling' , ( new Module( ) ) .boot( function( module ) { module.create( ); } ) .create( function( module ) { var config= { getElement: function( ) { return window; } , get: function( ) { return window.scrollY; } , set: function( a ) { window.scrollTo( window.scrollX , a ); } , margin: function( ) { return $( window ).height( )/ 3; } }; var scrolling= new IntegralXYZ.Scrolling( config ); /* if( window.location.hash ) { setTimeout( function( ) { config.set( 0 ); application.forceReflow( ); $( function( ) { config.set( 0 ); application.forceReflow( ); setTimeout( function( ) { scrolling.toHash( window.location.hash ); } , 500 ); } ); } , 1 ); } */ var asynchronicity= module.getApplication( ).getModule( 'Asynchronicity' ); // asynchronicity.onBeforeNavigation( function( handler ) { // if( this.direction== 1 ) { // history.state.y= scrolling.scroller.get( ); // } // } ); asynchronicity.onNavigationToHash( function( ) { //console.log( 'asynchronicity.onNavigationToHash' ); scrolling.toHash( history.state.url ) } ); asynchronicity.onAfterNavigation( function( ) { //console.log( 'asynchronicity.onAfterNavigation' ); scrolling.toTop( ); } ); asynchronicity.onNavigationToElement( function( ) { //console.log( 'asynchronicity.onNavigationToElement' ); var $element= $( '.target' ); if( $element.length ) { scrolling.toElement( $element[ 0 ] ); } } ); asynchronicity.onUpdateCooldownComplete( function( ) { //console.log( 'asynchronicity.onUpdateCooldownComplete' ); // if( history.state.y ) { // scrolling.toPixel( history.state.y ) // } else { scrolling.toHash( history.state.url ) // } } ); asynchronicity.onAfterUpdate( function( $html ) { //console.log( 'asynchronicity.onAfterUpdate' ); // ga('set', { // page: L.ajax.url , // title: title // }); // // // send it for tracking // ga('send', 'pageview'); //$html.find( '.O-Langs a[lang]' ).each( function( ) { // var lang= $( this ).attr( 'lang' ); // var href= $( this ).attr( 'href' ); // $( '.O-Langs a[lang='+ lang+ ']' ).attr( 'href' , href ); //} ); window.application.run( ); } ); return scrolling; } ) ); //------------------------------------------------------------------------------------ ;( function( $ ) { var css_style= 'position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%'; var map_style= [ /* { "featureType": "transit", "elementType": "all", "stylers": [ { "visibility": "off" } ] }, { "featureType": "road", "elementType": "labels.icon", "stylers": [ { "visibility": "off" } ] }, */ { "featureType": "all", "elementType": "labels.text.fill", "stylers": [ { "saturation": 36 }, { "color": "#000000" }, { "lightness": 40 } ] }, { "featureType": "all", "elementType": "labels.text.stroke", "stylers": [ { "visibility": "on" }, { "color": "#000000" }, { "lightness": 16 } ] }, /* { "featureType": "administrative", "elementType": "geometry.fill", "stylers": [ { "color": "#FF0000" }, { "lightness": 20 } ] }, */ { "featureType": "administrative.country", "elementType": "geometry.stroke", "stylers": [ { "color": "#666666" }, { "weight": 4 } ] }, { "featureType": "administrative.province", "elementType": "geometry.stroke", "stylers": [ { "color": "#666666" }, { "weight": 2 } ] }, { "featureType": "landscape", "elementType": "geometry.fill", "stylers": [ { "color": "#141414" } ] }, { "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "color": "#343434" } ] }, /* { "featureType": "landscape.man_made", "elementType": "geometry.fill", "stylers": [ { "color": "#ff0000" } ] }, { "featureType": "landscape.natural.terrain", "elementType": "geometry.fill", "stylers": [ { "color": "#0000ff" } ] }, */ /* { "featureType": "poi", "elementType": "geometry", "stylers": [ { "color": "#FF0000" } ] }, */ { "featureType": "road.highway", "elementType": "geometry.fill", "stylers": [ { "color": "#000000" }, { "lightness": 17 } ] }, { "featureType": "road.highway", "elementType": "geometry.stroke", "stylers": [ { "color": "#000000" }, { "lightness": 29 }, { "weight": 0.2 } ] }, { "featureType": "road.arterial", "elementType": "geometry", "stylers": [ { "color": "#000000" }, { "lightness": 18 } ] }, { "featureType": "road.local", "elementType": "geometry", "stylers": [ { "color": "#000000" }, { "lightness": 16 } ] }, { "featureType": "water", "elementType": "geometry", "stylers": [ { "color": "#595959" } ] } ]; var map; var iframe; var doc; var doc_map; var win; var script; var id, lat, lon, city, name, marker; var distributor; var $s; var mapOptions = { center: { lat:51.945998 , lng:19.067459 }, zoom: 6 , mapTypeId: 'terrain' , backgroundColor: '#141414', styles: map_style , streetViewControl: false , disableDefaultUI: true, fullscreenControl: false } var iframe_on_load= function( ) { doc = iframe.contentDocument; iframe.contentWindow.doc_on_load= doc_on_load; script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCbcVVuRYzn39pVV-L_emAG7igVNvItHlg&map_ids=3d8aafcbe40f7d45&callback=doc_on_load'; iframe.contentDocument.getElementsByTagName( 'head' )[ 0 ].appendChild( script ); }; var doc_on_load= function() { doc_map = doc.createElement( 'div' ); doc_map.setAttribute( 'style' , css_style ); doc.body.appendChild( doc_map ); win= this; map = new win.google.maps.Map(doc_map,mapOptions); $( '#distributors > [data-distributor-id]' ).each( function( ) { id= parseInt( $(this).attr( 'data-distributor-id' ) ); lat= parseFloat( $(this).attr( 'data-distributor-lat' ) ); lon= parseFloat( $(this).attr( 'data-distributor-lon' ) ); city= $(this).attr( 'data-distributor-city' ); name= $(this).attr( 'data-distributor-name' ); marker= new win.google.maps.Marker({ position: { lat: lat , lng: lon }, map: map , title: name, icon: 'https://'+ window.location.host+ '/marker.png' }); marker.distributor_id= id; marker.addListener( 'click' , marker_click ); } ); }; var marker_click= function( ) { select( this.distributor_id ); } var panTo= function( lat , lon , zoom ) { if( lat== 0 && lon== 0 ) { panToPoland( ); return; } map.panTo({lat:lat,lng:lon}); map.setZoom(zoom); } var panToPoland= function( ) { map.panTo(mapOptions.center); map.setZoom(mapOptions.zoom); } var select= function( id ) { //console.log( 'select 1' , id ) distributor= $( '#distributors > [data-distributor-id="'+ id+ '"]' ); if( distributor.length== 0 ) { //console.log( 'select 2' ) distributor= $( '#distributors > :first-child' ); panToPoland( ); } else { //console.log( 'select 3' , distributor ) lat= parseFloat( $(distributor).attr( 'data-distributor-lat' ) ); lon= parseFloat( $(distributor).attr( 'data-distributor-lon' ) ); panTo( lat , lon , 12 ) } $( '#distributors > .current' ).removeClass( 'current' ); distributor.addClass( 'current' ); //console.log( 'select4' , distributor ); } var selectCity= function( city ) { //console.log( 'selectCity 1' , city ) distributor= $( '#distributors > [data-distributor-city="'+ city+ '"]' ); city= $( '#distributors > [data-city="'+ city+ '"]' ); //console.log( 'selectCity 2' , city , distributor.length ) /* if( distributor.length== 0 ) { //console.log( 'selectCity 3' ) panToPoland( ) } else */if( distributor.length== 1 ) { if( distributor.first( ).hasClass( 'current' ) ) { distributor.removeClass( 'current' ); //console.log( 'selectCity 4' ) $( '#distributors > :first-child' ).addClass( 'current' ); panToPoland( ) return; } //console.log( 'selectCity 5' , distributor.attr( 'data-distributor-id' ) ) select( distributor.attr( 'data-distributor-id' ) ); return; } else { //console.log( 'selectCity 6' ) lat= parseFloat( $(distributor).attr( 'data-distributor-lat' ) ); lon= parseFloat( $(distributor).attr( 'data-distributor-lon' ) ); panTo( lat , lon , 10 ); } $( '#distributors > .current' ).removeClass( 'current' ); city.addClass( 'current' ); } var run= function( ) { map= $( '#distributors-map' ); if( map.length== 0 ) return; map= map[ 0 ]; iframe= document.createElement( 'iframe' ); iframe.setAttribute( 'style' , css_style ); iframe.onload= iframe_on_load; iframe.src= '/about:blank'; document.getElementById( 'distributors-map' ).appendChild( iframe ); $( '#distributors button[data-distributor-id]' ).click( function( ) { //console.log( this ); select( $( this ).attr( 'data-distributor-id' ) ); } ) $( '#distributors button[data-city]' ).click( function( ) { //console.log( this ); city= $( this ).attr( 'data-city' ); selectCity( city ); } ) }; application.setModule( 'Distributors' , ( new Module( ) ) .create( function( module ) { return run; } ) .run( function( module ) { $( run ); } ) ); } )( jQuery ); //------------------------------------------------------------------------------------ /* application.setModule( 'AutoModule' , ( new Module( ) ) .boot( function( module ) { //console.log( 'AutoModule::boot' ); } ) .create( function( module ) { //console.log( 'AutoModule::create' ); return { type: 'auto' }; } ) .run( function( module ) { //console.log( 'AutoModule::run' ); } ) .destroy( function( module ) { //console.log( 'AutoModule::destroy' ); } ) ); */ //------------------------------------------------------------------------------------ /* application.setModule( 'LazyModule' , ( new Module( ) ) .boot( function( module ) { //console.log( 'LazyModule::boot' ); } ) .create( function( module ) { //console.log( 'LazyModule::create' ); return { type: 'lazy' }; } ) .destroy( function( module ) { //console.log( 'LazyModule::destroy' ); } ) ); */ //------------------------------------------------------------------------------------ application.run( ); } )( );