1 2 3 4 5function xml_request(){var e=null;return window.XMLHttpRequest?e=new XMLHttpRequest:window.ActiveXObject&&(e=new ActiveXObject("Microsoft.XMLHTTP")),e}function sendBlogPost(t){$("#striked").html("Momentchen ..."),c=$("#comment").val(),w=$("#website").val(),na=$("#name").val(),e=$("#email").val(),ri=$("input:radio[name ='review']:checked").val(),l=$("#commentLegal").prop("checked");var o=xml_request();u="../../xml/xmlAddBlogPost.php",n="id="+t+"&comment="+encodeURIComponent(c)+"&name="+encodeURIComponent(na)+"&ri="+ri+"&l="+l,o.open("POST",u,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(n),o.onreadystatechange=function(){4==o.readyState&&200==o.status&&(r=o.responseXML.documentElement,re=r.getElementsByTagName("result")[0].textContent,s=r.getElementsByTagName("state")[0].firstChild.data,"1"==s&&($("#comment").val(""),$("#name").val(""),$("#striked").css("text-decoration","line-through"),$("#btn-comment").attr("disabled",!0),$("#captcha-result").val(""),$("#usageTerms").css("color",""),$("#commentLegal").prop("checked",!1),$("#CommentMailOnApproval").prop("checked",!1),$("#commentNewsletter").prop("checked",!1),$("input").iCheck("uncheck")),$("#result").html(re),setTimeout(function(){try{$("#result").html("")}catch(e){}},5e3),$("#striked").html("Kommentar verfassen"))}}function click_counter(e){console.log(e),url="xml/xmlCountClick.php";var t=xml_request();nachricht="id="+e,t.open("POST",url,!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.send(nachricht),t.onreadystatechange=function(){t.readyState}}function rotate_random_article(){l=$("#article_language").val(),console.log(l);var e=xml_request();u="../../xml/xmlRotateArticle.php",n="l="+l,e.open("POST",u,!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send(n),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&(console.log("ready"),r=e.responseXML.documentElement,it=r.getElementsByTagName("item")[0].textContent,s=r.getElementsByTagName("state")[0].firstChild.data,"1"==s?$("#random-article").html(it):$("#random-article").html("Fehler"))}}!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(e,t){"use strict";var n=[],r=Object.getPrototypeOf,o=n.slice,i=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,i=(n=n||m).createElement("script");if(i.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[l.call(e)]||"object":typeof e}var b="3.5.0",w=function(e,t){return new w.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!h(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:b,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(w.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:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||h(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&&(w.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||w.isPlainObject(n)?n:{},o=!1,a[t]=w.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+(b+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]"!==l.call(e)||(t=r(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?w.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,a=0,s=[];if(T(e))for(r=e.length;a<r;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return i(s)},guid:1,support:d}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,n,r,o,i,a,s,u,l,c,f,p,d,h,g,m,v,y,x,b="sizzle"+1*ne
vendor: 39,864 bytes, line 5
5w Date,w=e.document,T=0,C=0,E=ue(),k=ue(),S=ue(),A=ue(),N=function(e,t){return e===t&&(f=!0),0},j={}.hasOwnProperty,D=[],q=D.pop,L=D.push,$=D.push,H=D.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",M="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+R+"*("+M+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+R+"*\\]",B=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",F=new RegExp(R+"+","g"),W=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),_=new RegExp("^"+R+"*,"+R+"*"),z=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),X=new RegExp(R+"|>"),U=new RegExp(B),V=new RegExp("^"+M+"$"),Q={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Y=/^(?: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}"+R+"?|\\\\([^\\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,oe=function(e,t){return t?"\0"===e?"?":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{$.apply(D=H.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(t){$={apply:D.length?function(e,t){L.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,l,c,f,h,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!o&&(p(t),t=t||d,g)){if(11!==w&&(f=Z.exec(e)))if(i=f[1]){if(9===w){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(y&&(l=y.getElementById(i))&&x(t,l)&&l.id===i)return r.push(l),r}else{if(f[2])return $.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return $.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!A[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&(X.test(e)||z.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,oe):t.setAttribute("id",c=b)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+xe(h[s]);v=h.join(",")}try{return $.apply(r,y.querySelectorAll(v)),r}catch(t){A(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(W,"$1"),t,r,o)}function ue(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=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)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le(function(t){return t=+t,le(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!=d&&9===a.nodeType&&a.documentElement&&(h=(d=a).documentElement,g=!i(d),w!=d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=ce(function(e){return h.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=K.test(d.querySelectorAll))&&(ce(function(e){var t;h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.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)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==w&&x(w,e)?-1:t==d||t.ownerDocument==w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==d?-1:t==d?1:o?-1:i?1:c?O(c,e)-O(c,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0}),d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!A[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return 0<se(t,d,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&j.call(r.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:Q,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(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 Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=a(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=E[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1<o.indexOf(n):"$="===t?n&&o.slice(-n.length)===n:"~="===t?-1<(" "+o.replace(F," ")+" ").indexOf(n):"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,x=!1;if(m){if(i){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(x=(d=(l=(c=(f=(p=m)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(y&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=o)===r||x%r==0&&0<=x/r}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[b]?o(t):1<o.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=O(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:le(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[b]?le(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:le(function(e){return function(t){return 0<se(e,t).length}}),contains:le(function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:le(function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:me(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[i])&&l[0]===T&&l[1]===s)return p[2]=l[2];if((c[i]=p)[2]=e(t,n,u))return!0}return!1}}function we(e){return 1<e.length?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function Ce(e,t,n,r,o,i){return r&&!r[b]&&(r=Ce(r)),o&&!o[b]&&(o=Ce(o,i)),le(function(i,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:Te(g,p,e,s,u),v=n?o||(i?e:h||r)?[]:a:m;if(n&&n(m,v,s,u),r)for(l=Te(v,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(m[d[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(m[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&-1<(l=o?O(i,f):p[c])&&(i[l]=!(a[l]=f))}}else v=Te(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):$.apply(a,v)})}function Ee(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be(function(e){return e===t},s,!0),f=be(function(e){return-1<O(t,e)},s,!0),p=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return Ce(1<u&&we(p),1<u&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(W,"$1"),n,u<o&&Ee(e.slice(u,o)),o<i&&Ee(e=e.slice(o)),o<i&&xe(e))}p.push(n)}return we(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(o=_.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=z.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(W," ")}),s=s.slice(n.length)),r.filter)!(o=Q[a].exec(s))||l[a]&&!(o=l[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,u).slice(0)},s=se.compile=function(e,t){var n,o,i,s,u,c,f=[],h=[],m=S[e+" "];if(!m){for(t||(t=a(e)),n=t.length;n--;)(m=Ee(t[n]))[b]?f.push(m):h.push(m);(m=S(e,(o=h,s=0<(i=f).length,u=0<o.length,c=function(e,t,n,a,c){var f,h,m,v=0,y="0",x=e&&[],b=[],w=l,C=e||u&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=t==d||t||c);y!==k&&null!=(f=C[y]);y++){if(u&&f){for(h=0,t||f.ownerDocument==d||(p(f),n=!g);m=o[h++];)if(m(f,t||d,n)){a.push(f);break}c&&(T=E)}s&&((f=!m&&f)&&v--,e&&x.push(f))}if(v+=y,s&&y!==v){for(h=0;m=i[h++];)m(x,b,t,n);if(e){if(0<v)for(;y--;)x[y]||b[y]||(b[y]=q.call(a));b=Te(b)}$.apply(a,b),c&&!e&&0<b.length&&1<v+i.length&&se.uniqueSort(a)}return c&&(T=E,l=w),x},s?le(c):c))).selector=e}return m},u=se.select=function(e,t,n,o){var i,u,l,c,f,p="function"==typeof e&&e,d=!o&&a(e=p.selector||e);if(n=n||[],1===d.length){if(2<(u=d[0]=d[0].slice(0)).length&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=Q.needsContext.test(e)?0:u.length;i--&&(l=u[i],!r.relative[c=l.type]);)if((f=r.find[c])&&(o=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ve(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&xe(u)))return $.apply(n,o),n;break}}return(p||s(e,d))(o,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=b.split("").sort(N).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&w(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return h(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return-1<s.call(t,e)!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,o[t],n);return 1<r?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&S.test(e)?w(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||D,"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 w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),N.test(r[1])&&w.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=m.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,D=w(m);var L=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&w(e);if(!S.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&w.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?w.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var o=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=w.filter(r,o)),1<this.length&&($[e]||w.uniqueSort(o),L.test(e)&&o.reverse()),this.pushStack(o)}});var O=/[^\x20\t\r\n\f]+/g;function P(e){return e}function R(e){throw e}function M(e,t,n,r){var o;try{e&&h(o=e.promise)?o.call(e).done(t).fail(n):e&&h(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},w.each(t.match(O)||[],function(e,t){n[t]=!0}),n):w.extend({},e);var r,o,i,a,s=[],u=[],l=-1,c=function(){for(a=a||e.once,i=r=!0;u.length;l=-1)for(o=u.shift();++l<s.length;)!1===s[l].apply(o[0],o[1])&&e.stopOnFalse&&(l=s.length,o=!1);e.memory||(o=!1),r=!1,a&&(s=o?[]:"")},f={add:function(){return s&&(o&&!r&&(l=s.length-1,u.push(o)),function t(n){w.each(n,function(n,r){h(r)?e.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),o&&!r&&c()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,s,n));)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<w.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=o="",this},disabled:function(){return!s},lock:function(){return a=u=[],o||r||(s=o=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var o=h(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,r,o){var i=0;function a(t,n,r,o){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<i)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(l)?o?l.call(e,a(i,n,P,o),a(i,n,R,o)):(i++,l.call(e,a(i,n,P,o),a(i,n,R,o),a(i,n,P,n.notifyWith))):(r!==P&&(s=void 0,u=[e]),(o||n.resolveWith)(s,u))}},c=o?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),i<=t+1&&(r!==R&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,h(o)?o:P,e.notifyWith)),n[1][3].add(a(0,e,h(t)?t:P)),n[2][3].add(a(0,e,h(r)?r:R))}).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},i={};return w.each(n,function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=a.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=1<arguments.length?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(M(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||h(i[n]&&i[n].then)))return a.then();for(;n--;)M(i[n],s(n),a.reject);return a.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&I.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var B=w.Deferred();function F(){m.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),w.ready()}w.fn.ready=function(e){return B.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||B.resolveWith(m,[w])}}),w.ready.then=B.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var W=function(e,t,n,r,o,i,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in o=!0,n)W(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,h(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):u?t(e[0],n):i},_=/^-ms-/,z=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function U(e){return e.replace(_,"ms-").replace(z,X)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=w.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[U(t)]=n;else for(r in t)o[U(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(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(U):(t=U(t))in r?[t]:t.match(O)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.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&&!w.isEmptyObject(t)}};var G=new Q,Y=new Q,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,o;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:J.test(o)?JSON.parse(o):o)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Y.hasData(e)||G.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=Y.get(i),1===i.nodeType&&!G.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=U(r.slice(5)),Z(i,r,o[r]));G.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Y.set(this,e)}):W(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=Y.get(i,e))?n:void 0!==(n=Z(i,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=G.get(e,t),n&&(!r||Array.isArray(n)?r=G.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,o=n.shift(),i=w._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){w.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:w.Callbacks("once memory").add(function(){G.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=w.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=G.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=m.documentElement,oe=function(e){return w.contains(e.ownerDocument,e)},ie={composed:!0};re.getRootNode&&(oe=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(ie)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===w.css(e,"display")};function se(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,"")},u=s(),l=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==l&&+u)&&te.exec(w.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)w.style(e,t,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;c*=2,w.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}var ue={};function le(e,t){for(var n,r,o,i,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]=G.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=i=void 0,a=(o=r).ownerDocument,s=o.nodeName,(u=ue[s])||(i=a.body.appendChild(a.createElement(s)),u=w.css(i,"display"),i.parentNode.removeChild(i),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",G.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}w.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?w(this).show():w(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=m.createDocumentFragment().appendChild(m.createElement("div")),(fe=m.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),d.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",d.option=!!ce.lastChild;var ge={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 me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)G.set(e[n],"globalEval",!t||G.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,d.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function xe(e,t,n,r,o){for(var i,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((i=e[d])||0===i)if("object"===x(i))w.merge(p,i.nodeType?[i]:i);else if(ye.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(i)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+w.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;w.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(i));for(f.textContent="",d=0;i=p[d++];)if(r&&-1<w.inArray(i,r))o&&o.push(i);else if(l=oe(i),a=me(f.appendChild(i),"script"),l&&ve(a),n)for(c=0;i=a[c++];)he.test(i.type||"")&&n.push(i);return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function ke(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ee;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,o,r,n)})}function Ae(e,t,n){n?(G.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=G.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),G.set(this,t,a),r=n(this,t),this[t](),a!==(i=G.get(this,t))||r?G.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(G.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,t)&&w.event.add(e,t,Ce)}w.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,g,m=G.get(e);if(V(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&w.find.matchesSelector(re,o),n.guid||(n.guid=w.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,g,m=G.hasData(e)&&G.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!o&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||w.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),u=w.event.fix(e),l=(G.get(this,"events")||Object.create(null))[u.type]||[],c=w.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)){for(a=w.event.handlers.call(this,u,l),t=0;(o=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==i.namespace&&!u.rnamespace.test(i.namespace)||(u.handleObj=i,u.data=i.data,void 0!==(r=((w.event.special[i.origType]||{}).handle||i.handler).apply(o.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,o,i,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(i=[],a={},n=0;n<u;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?-1<w(o,this).index(l):w.find(o,this,null,[l]).length),a[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,430 bytes, line 5
5,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&G.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,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&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.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:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){w.event.special[e]={setup:function(){return Ae(this,e,ke),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}
vendor: 29,074 bytes, line 5
5),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){w.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(G.hasData(e)&&(s=G.get(e).events))for(o in G.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)w.event.add(t,o,s[o][n]);Y.hasData(e)&&(i=Y.access(e),a=w.extend({},i),Y.set(t,a))}}function Oe(e,t,n,r){t=i(t);var o,a,s,u,l,c,f=0,p=e.length,g=p-1,m=t[0],v=h(m);if(v||1<p&&"string"==typeof m&&!d.checkClone&&je.test(m))return e.each(function(o){var i=e.eq(o);v&&(t[0]=m.call(this,o,i.html())),Oe(i,t,n,r)});if(p&&(a=(o=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(u=(s=w.map(me(o,"script"),Le)).length;f<p;f++)l=o,f!==g&&(l=w.clone(l,!0,!0),u&&w.merge(s,me(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,w.map(s,$e),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!G.access(l,"globalEval")&&w.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):y(l.textContent.replace(De,""),l,c))}return e}function Pe(e,t,n){for(var r,o=t?w.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||w.cleanData(me(r)),r.parentNode&&(n&&oe(r)&&ve(me(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=me(c),r=0,o=(i=me(e)).length;r<o;r++)s=i[r],"input"===(l=(u=a[r]).nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(i=i||me(e),a=a||me(c),r=0,o=i.length;r<o;r++)He(i[r],a[r]);else He(e,c);return 0<(a=me(c,"script")).length&&ve(a,!f&&me(e,"script")),c},cleanData:function(e){for(var t,n,r,o=w.event.special,i=0;void 0!==(n=e[i]);i++)if(V(n)){if(t=n[G.expando]){if(t.events)for(r in t.events)o[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[G.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return W(this,function(e){return void 0===e?w.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 Oe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Oe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Oe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Oe(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&&(w.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return W(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&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Oe(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(me(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,r=[],o=w(e),i=o.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),w(o[s])[t](n),a.apply(r,n.get());return this.pushStack(r)}});var Re=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Me=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ie=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Be=new RegExp(ne.join("|"),"i");function Fe(e,t,n){var r,o,i,a,s=e.style;return(n=n||Me(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=w.style(e,t)),!d.pixelBoxStyles()&&Re.test(a)&&Be.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),o=36===n(t.width),c.style.position="absolute",i=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,o,i,a,s,u,l=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(d,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),i},reliableTrDimensions:function(){var t,n,r,o;return null==s&&(t=m.createElement("table"),n=m.createElement("tr"),r=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px",n.style.height="1px",r.style.height="9px",re.appendChild(t).appendChild(n).appendChild(r),o=e.getComputedStyle(n),s=3<parseInt(o.height),re.removeChild(t)),s}}))}();var _e=["Webkit","Moz","ms"],ze=m.createElement("div").style,Xe={};function Ue(e){return w.cssProps[e]||Xe[e]||(e in ze?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=_e.length;n--;)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Ge={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,o,i){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=w.css(e,n+ne[a],!0,o)),r?("content"===n&&(u-=w.css(e,"padding"+ne[a],!0,o)),"margin"!==n&&(u-=w.css(e,"border"+ne[a]+"Width",!0,o))):(u+=w.css(e,"padding"+ne[a],!0,o),"padding"!==n?u+=w.css(e,"border"+ne[a]+"Width",!0,o):s+=w.css(e,"border"+ne[a]+"Width",!0,o));return!r&&0<=i&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function Ze(e,t,n){var r=Me(e),o=(!d.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),i=o,a=Fe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(a)){if(!n)return a;a="auto"}return(!d.boxSizingReliable()&&o||!d.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===w.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(o?"border":"content"),i,r,a)+"px"}function et(e,t,n,r,o){return new et.prototype.init(e,t,n,r,o)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fe(e,"opacity");return""===n?"1":n}}}},cssNumber:{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},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=U(t),u=Qe.test(t),l=e.style;if(u||(t=Ue(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t];"string"==(i=typeof n)&&(o=te.exec(n))&&o[1]&&(n=se(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||u||(n+=o&&o[3]||(w.cssNumber[s]?"":"px")),d.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 o,i,a,s=U(t);return Qe.test(t)||(t=Ue(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Fe(e,t,r)),"normal"===o&&t in Ye&&(o=Ye[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Ve.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,r):Ie(e,Ge,function(){return Ze(e,t,r)})},set:function(e,n,r){var o,i=Me(e),a=!d.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,i),u=r?Ke(e,t,r,s,i):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-Ke(e,t,"border",!1,i)-.5)),u&&(o=te.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Je(0,n,u)}}}),w.cssHooks.marginLeft=We(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ne[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(w.cssHooks[e+t].set=Je)}),w.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Me(e),o=t.length;a<o;a++)i[t[a]]=w.css(e,t[a],!1,r);return i}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)}}),((w.Tween=et).prototype={constructor:et,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(w.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=w.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):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.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=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Ue(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=et.prototype.init,w.fx.step={};var tt,nt,rt,ot,it=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(st):e.setTimeout(st,w.fx.interval),w.fx.tick())}function ut(){return e.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ne[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ct(e,t,n){for(var r,o=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ft(e,t,n){var r,o,i=0,a=ft.prefilters.length,s=w.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=tt||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),i=0,a=l.tweens.length;i<a;i++)l.tweens[i].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=U(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=w.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(c,l.opts.specialEasing);i<a;i++)if(r=ft.prefilters[i].call(l,e,c,l.opts))return h(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,ct,l),h(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(O);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),m=G.get(e,"fxshow");for(r in n.queue||(null==(a=w._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--,w.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],it.test(o)){if(delete t[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=m&&m.display)&&(l=G.get(e,"display")),"none"===(c=w.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=w.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===w.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||(m?"hidden"in m&&(g=m.hidden):m=G.access(e,"fxshow",{display:l}),i&&(m.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),G.remove(e,"fxshow"),d)w.style(e,r,d[r])})),u=ct(g?m[r]:0,r,p),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=w.isEmptyObject(e),i=w.speed(t,n,r),a=function(){var t=ft(this,w.extend({},e),i);(o||G.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=w.timers,a=G.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&at.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=G.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,o)}}),w.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),tt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){nt||(nt=!0,st())},w.fx.stop=function(){nt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}})},rt=m.createElement("input"),ot=m.createElement("select").appendChild(m.createElement("option")),rt.type="checkbox",d.checkOn=""!==rt.value,d.optSelected=ot.selected,(rt=m.createElement("input")).value="t",rt.type="radio",d.radioValue="t"===rt.value;var pt,dt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return W(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?w.prop(e,t,n):(1===i&&w.isXMLDoc(e)||(o=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||w.find.attr;dt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=dt[a],dt[a]=o,o=null!=n(e,t,r)?a:null,dt[a]=i),o}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function mt(e){return(e.match(O)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(O)||[]}w.fn.extend({prop:function(e,t){return W(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&w.isXMLDoc(e)||(t=w.propFix[t]||t,o=w.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(h(e))return this.each(function(t){w(this).addClass(e.call(this,t,vt(this)))});if((t=yt(e)).length)for(;n=this[u++];)if(o=vt(n),r=1===n.nodeType&&" "+mt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(h(e))return this.each(function(t){w(this).removeClass(e.call(this,t,vt(this)))});if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[u++];)if(o=vt(n),r=1===n.nodeType&&" "+mt(o)+" "){for(a=0;i=t[a++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");o!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):h(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,vt(this),t),t)}):this.each(function(){var t,o,i,a;if(r)for(o=0,i=w(this),a=yt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&G.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":G.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+mt(vt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;w.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=h(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,w(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(xt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:mt(w.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?i+1:o.length;for(r=i<0?u:a?i:0;r<u;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=w.makeArray(t),a=o.length;a--;)((r=o[a]).selected=-1<w.inArray(w.valHooks.option.get(r),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},d.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),d.focusin="onfocusin"in e;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,r,o){var i,a,s,u,l,f,p,d,v=[r||m],y=c.call(t,"type")?t.type:t,x=c.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||m,3!==r.nodeType&&8!==r.nodeType&&!bt.test(y+w.event.triggered)&&(-1<y.indexOf(".")&&(y=(x=y.split(".")).shift(),x.sort()),l=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:w.makeArray(n,[t]),p=w.event.special[y]||{},o||!p.trigger||!1!==p.trigger.apply(r,n))){if(!o&&!p.noBubble&&!g(r)){for(u=p.delegateType||y,bt.test(u+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(r.ownerDocument||m)&&v.push(s.defaultView||s.parentWindow||e)}for(i=0;(a=v[i++])&&!t.isPropagationStopped();)d=a,t.type=1<i?u:p.bindType||y,(f=(G.get(a,"events")||Object.create(null))[t.type]&&G.get(a,"handle"))&&f.apply(a,n),(f=l&&a[l])&&f.apply&&V(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),n)||!V(r)||l&&h(r[y])&&!g(r)&&((s=r[l])&&(r[l]=null),w.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,wt),r[y](),t.isPropagationStopped()&&d.removeEventListener(y,wt),w.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),d.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=G.access(r,t);o||r.addEventListener(e,n,!0),G.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=G.access(r,t)-1;o?G.access(r,t,o):(r.removeEventListener(e,n,!0),G.remove(r,t))}}});var Tt=e.location,Ct={guid:Date.now()},Et=/\?/;w.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),n};var kt=/\[\]$/,St=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var o;if(Array.isArray(t))w.each(t,function(t,o){n||kt.test(e)?r(e,o):jt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==x(t))r(e,t);else for(o in t)jt(e+"["+o+"]",t[o],n,r)}w.param=function(e,t){var n,r=[],o=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){o(this.name,this.value)});else for(n in e)jt(n,e[n],t,o);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var Dt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Ot=/^\/\//,Pt={},Rt={},Mt="*/".concat("*"),It=m.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(O)||[];if(h(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ft(e,t,n,r){var o={},i=e===Rt;function a(s){var u;return o[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||i||o[l]?i?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Wt(e,t){var n,r,o=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}It.href=Tt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mt,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":w.parseXML}
vendor: 2,129 bytes, line 5
5,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,w.ajaxSettings),t):Wt(w.ajaxSettings,e)},ajaxPrefilter:Bt(Pt),ajaxTransport:Bt(Rt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,i,a,s,u,l,c,f,p,d=w.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?w(h):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),x=d.statusCode||{},b={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=$t.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(e,t){return null==l&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),k(0,t),this}};if(v.promise(E),d.url=((t||d.url||Tt.href)+"").replace(Ot,Tt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(O)||[""],null==d.crossDomain){u=m.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=It.protocol+"//"+It.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),Ft(Pt,d,n,E),l)return E;for(f in(c=w.event&&d.global)&&0==w.active++&&w.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ht.test(d.type),o=d.url.replace(qt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Dt,"+")):(p=d.url.slice(o.length),d.data&&(d.processData||"string"==typeof d.data)&&(o+=(Et.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(o=o.replace(Lt,"$1"),p=(Et.test(o)?"&":"?")+"_="+Ct.guid+++p),d.url=o+p),d.ifModified&&(w.lastModified[o]&&E.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&E.setRequestHeader("If-None-Match",w.etag[o
vendor: 5,627 bytes, line 5
5])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&E.setRequestHeader("Content-Type",d.contentType),E.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Mt+"; q=0.01":""):d.accepts["*"]),d.headers)E.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,E,d)||l))return E.abort();if(C="abort",y.add(d.complete),E.done(d.success),E.fail(d.error),r=Ft(Rt,d,n,E)){if(E.readyState=1,c&&g.trigger("ajaxSend",[E,d]),l)return E;d.async&&0<d.timeout&&(s=e.setTimeout(function(){E.abort("timeout")},d.timeout));try{l=!1,r.send(b,k)}catch(t){if(l)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,n,a,u){var f,p,m,b,T,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,i=u||"",E.readyState=0<t?4:0,f=200<=t&&t<300||304===t,a&&(b=function(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(d,E,a)),!f&&-1<w.inArray("script",d.dataTypes)&&(d.converters["text script"]=function(){}),b=function(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(o in l)if((s=o.split(" "))[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=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 "+i}}}return{state:"success",data:t}}(d,b,E,f),f?(d.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(w.etag[o]=T)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,f=!(m=b.error))):(m=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",f?v.resolveWith(h,[p,C,E]):v.rejectWith(h,[E,C,m]),E.statusCode(x),x=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[E,d,f?p:m]),y.fireWith(h,[E,C]),c&&(g.trigger("ajaxComplete",[E,d]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,r,o){return h(n)&&(o=o||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:o,data:n,success:r},w.isPlainObject(e)&&e))}}),w.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return h(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=w.ajaxSettings.xhr();d.cors=!!zt&&"withCredentials"in zt,d.ajax=zt=!!zt,w.ajaxTransport(function(t){var n,r;if(d.cors||zt&&!t.crossDomain)return{send:function(o,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(_t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(o){if(n)throw o}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=w("<script>").attr(e.scriptAttrs||{}
5).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}});var Xt,Ut=[],Vt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||w.expando+"_"+Ct.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,a,s=!1!==t.jsonp&&(Vt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Vt,"$1"+o):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||w.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always(function(){void 0===i?w(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Ut.push(o)),a&&h(i)&&i(a[0]),a=i=void 0}),"script"}),d.createHTMLDocument=((Xt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),i=!n&&[],(o=N.exec(e))?[t.createElement(o[1])]:(o=xe([e],t,i),i&&i.length&&w(i).remove(),w.merge([],o.childNodes)));var r,o,i},w.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return-1<s&&(r=mt(e.slice(s)),e=e.slice(0,s)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&w.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l=w.css(e,"position"),c=w(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),i=w.css(e,"top"),u=w.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+u).indexOf("auto")?(a=(r=c.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),h(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+o),"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))}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),o.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-w.css(r,"marginTop",!0),left:t.left-o.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||re})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return W(this,function(e,r,o){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=We(d.pixelPosition,function(e,n){if(n)return n=Fe(e,t),Re.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){w.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return W(this,function(t,n,o){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?w.css(t,n,s):w.style(t,n,o,s)},t,a?o:void 0,a)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.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)}}),w.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,t){w.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=h,w.isWindow=g,w.camelCase=U,w.type=x,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Gt=e.jQuery,Yt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Yt),t&&e.jQuery===w&&(e.jQuery=Gt),w},void 0===t&&(e.jQuery=e.$=w),w}),function(e){e.fn.unveil=function(t,n){var r,o=e(window),i=t||0,a=this;function s(){var t=a.filter(function(){var t=e(this);if(!t.is(":hidden")){var n=o.scrollTop(),r=n+o.height(),a=t.offset().top;return a+t.height()>=n-i&&a<=r+i}});r=t.trigger("unveil"),a=a.not(r)}return this.one("unveil",function(){var e=this.getAttribute("data-src");(e=e||this.getAttribute("data-src"))&&(this.setAttribute("src",e),"function"==typeof n&&n.call(this));var t=this.getAttribute("data-src");(t=t||this.getAttribute("webp-data-src"))&&(this.setAttribute("srcset",t),"function"==typeof n&&n.call(this))}),o.on("scroll.unveil lookup.unveil",s),s(),this}}(window.jQuery||window.Zepto),$(".lazy").unveil(),window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,$(document).ready(function(){ if($('#show_general_disclaimer').val==1){$('#show_general_disclaimer').show();} if(document.getElementById("dom_load").innerHTML="",$("#up-scroller").click(function(e){e.preventDefault(),$([document.documentElement,document.body]).animate({scrollTop:$("#top").offset().top-120},500)}),$("#up-scroller-toc").click(function(e){e.preventDefault(),0==$("#
5inhaltsverzeichnis").length?$([document.documentElement,document.body]).animate({scrollTop:$("#tabla-de-materias").offset().top-85},500):$([document.documentElement,document.body]).animate({scrollTop:$("#inhaltsverzeichnis").offset().top-85},500)}),location.hash&&(window.scrollTo(0,0),hashname=window.location.hash,elem=$('a[name="'+hashname+'"],'+hashname),elem)){elem.offset().top;var e=hashname,t=$(e);$("html, body").animate({scrollTop:t.offset().top},{duration:1e3,step:function(e,n){var r=t.offset().top-100;n.end!==r&&(n.end=r)}})}$("a[href^='#']").click(function(e){e.preventDefault();$($(this).attr("href")).offset().top;var t=this.hash,n=$(t);$("html, body").animate({scrollTop:n.offset().top},{duration:1e3,step:function(e,t){var r=n.offset().top-100;t.end!==r&&(t.end=r)}})}),$("#captcha-result").keyup(function(){18==$("#captcha-result").val()?($("#btn-comment").attr("disabled",!1),$("#striked").css("text-decoration","none")):($("#btn-comment").attr("disabled",!0),$("#striked").css("text-decoration","line-through"))});var n="desktop";jQuery(window).width()<768&&(n="mobile"),setTimeout(function(){$(".hide_footer").show("500"),"mobile"==n?($("#footer_ad").html('<center><div class="fadeFooter"><div class="fadeFooterContent"><small>Anzeige</small><br /><iframe src="https://www.communicationads.net/tb.php?t=11239V16024491F" height="60" width="234" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></div></div></center>'),$("#up-scroller").css({right:"30px",bottom:"100px"}),$("#up-scroller-toc").css({right:"30px",bottom:"140px"})):$("#skyscraper").html('<a href="https://www.awin1.com/cread.php?s=2129788&v=11823&q=333365&r=399819" rel="nofollow sponsored"><img src="https://www.awin1.com/cshow.php?s=2129788&v=11823&q=333365&r=399819" border="0"></a>')},4e3),footerReloadTimer=setInterval(function(){var e="desktop";jQuery(window).width()<768&&(e="mobile");var t=navigator.language||navigator.userLanguage;ga("send","event","Interested user",t+", User still active, device "+e+", "+window.location.pathname)},13e3),$.ajax({type:"POST",url:"/xml/nothing.php",data:{article_id:$("#article_id").val()},success:function(e){$(e).find("response").each(function(){$(this).find("change_sim").each(function(){$(this).text()})})}}),document.getElementById("dom_load").innerHTML="",document.getElementById("dom_load").style.width="0px"}); 6 7 8/* 9 * Toastr 10 * Copyright 2012-2015 11 * Authors: John Papa, Hans Fjällemark, and Tim Ferrell. 12 * All Rights Reserved. 13 * Use, reproduction, distribution, and modification of this code is subject to the terms and 14 * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php 15 * 16 * ARIA Support: Greta Krafsig 17 * 18 * Project: https://github.com/CodeSeven/toastr 19 */ 20/* global define */ 21(function (define) { 22 define(['jquery'], function ($) { 23 return (function () { 24 var $container; 25 var listener; 26 var toastId = 0; 27 var toastType = { 28 error: 'error', 29 info: 'info', 30 success: 'success', 31 warning: 'warning' 32 }; 33 34 var toastr = { 35 clear: clear, 36 remove: remove, 37 error: error, 38 getContainer: getContainer, 39 info: info, 40 options: {}, 41 subscribe: subscribe, 42 success: success, 43 version: '2.1.2', 44 warning: warning 45 }; 46 47 var previousToast; 48 49 return toastr; 50
vendor: 3,836 bytes, lines 51-151
51 //////////////// 52 53 function error(message, title, optionsOverride) { 54 return notify({ 55 type: toastType.error, 56 iconClass: getOptions().iconClasses.error, 57 message: message, 58 optionsOverride: optionsOverride, 59 title: title 60 }); 61 } 62 63 function getContainer(options, create) { 64 if (!options) { options = getOptions(); } 65 $container = $('#' + options.containerId); 66 if ($container.length) { 67 return $container; 68 } 69 if (create) { 70 $container = createContainer(options); 71 } 72 return $container; 73 } 74 75 function info(message, title, optionsOverride) { 76 return notify({ 77 type: toastType.info, 78 iconClass: getOptions().iconClasses.info, 79 message: message, 80 optionsOverride: optionsOverride, 81 title: title 82 }); 83 } 84 85 function subscribe(callback) { 86 listener = callback; 87 } 88 89 function success(message, title, optionsOverride) { 90 return notify({ 91 type: toastType.success, 92 iconClass: getOptions().iconClasses.success, 93 message: message, 94 optionsOverride: optionsOverride, 95 title: title 96 }); 97 } 98 99 function warning(message, title, optionsOverride) { 100 return notify({ 101 type: toastType.warning, 102 iconClass: getOptions().iconClasses.warning, 103 message: message, 104 optionsOverride: optionsOverride, 105 title: title 106 }); 107 } 108 109 function clear($toastElement, clearOptions) { 110 var options = getOptions(); 111 if (!$container) { getContainer(options); } 112 if (!clearToast($toastElement, options, clearOptions)) { 113 clearContainer(options); 114 } 115 } 116 117 function remove($toastElement) { 118 var options = getOptions(); 119 if (!$container) { getContainer(options); } 120 if ($toastElement && $(':focus', $toastElement).length === 0) { 121 removeToast($toastElement); 122 return; 123 } 124 if ($container.children().length) { 125 $container.remove(); 126 } 127 } 128 129 // internal functions 130 131 function clearContainer (options) { 132 var toastsToClear = $container.children(); 133 for (var i = toastsToClear.length - 1; i >= 0; i--) { 134 clearToast($(toastsToClear[i]), options); 135 } 136 } 137 138 function clearToast ($toastElement, options, clearOptions) { 139 var force = clearOptions && clearOptions.force ? clearOptions.force : false; 140 if ($toastElement && (force || $(':focus', $toastElement).length === 0)) { 141 $toastElement[options.hideMethod]({ 142 duration: options.hideDuration, 143 easing: options.hideEasing, 144 complete: function () { removeToast($toastElement); } 145 }); 146 return true; 147 } 148 return false; 149 } 150 151 function createContainer(options) {
152 $container = $('<div/>') 153 .attr('id', options.containerId) 154 .addClass(options.positionClass) 155 .attr('aria-live', 'polite') 156 .attr('role', 'alert'); 157 158 $container.appendTo($(options.target)); 159 return $container; 160 } 161 162 function getDefaults() { 163 return { 164 tapToDismiss: true, 165 toastClass: 'toast', 166 containerId: 'toast-container', 167 debug: false, 168 169 showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery 170 showDuration: 300, 171 showEasing: 'swing', //swing and linear are built into jQuery 172 onShown: undefined, 173 hideMethod: 'fadeOut', 174 hideDuration: 1000, 175 hideEasing: 'swing', 176 onHidden: undefined, 177 closeMethod: false, 178 closeDuration: false, 179 closeEasing: false, 180 181 extendedTimeOut: 1000, 182 iconClasses: { 183 error: 'toast-error', 184 info: 'toast-info', 185 success: 'toast-success', 186 warning: 'toast-warning' 187 }, 188 iconClass: 'toast-info', 189 positionClass: 'toast-top-right', 190 timeOut: 5000, // Set timeOut and extendedTimeOut to 0 to make it sticky 191 titleClass: 'toast-title', 192 messageClass: 'toast-message', 193 escapeHtml: false, 194 target: 'body', 195 closeHtml: '<button type="button">×</button>', 196 newestOnTop: true, 197 preventDuplicates: false, 198 progressBar: false 199 }; 200 } 201 202 function publish(args) { 203 if (!listener) { return; } 204 listener(args); 205 } 206 207 function notify(map) { 208 var options = getOptions(); 209 var iconClass = map.iconClass || options.iconClass; 210 211 if (typeof (map.optionsOverride) !== 'undefined') { 212 options = $.extend(options, map.optionsOverride); 213 iconClass = map.optionsOverride.iconClass || iconClass; 214 } 215 216 if (shouldExit(options, map)) { return; } 217 218 toastId++; 219 220 $container = getContainer(options, true); 221 222 var intervalId = null; 223 var $toastElement = $('<div/>'); 224 var $titleElement = $('<div/>'); 225 var $messageElement = $('<div/>'); 226 var $progressElement = $('<div/>'); 227 var $closeElement = $(options.closeHtml); 228 var progressBar = { 229 intervalId: null, 230 hideEta: null, 231 maxHideTime: null 232 }; 233 var response = { 234 toastId: toastId, 235 state: 'visible', 236 startTime: new Date(), 237 options: options, 238 map: map 239 }; 240 241 personalizeToast(); 242 243 displayToast(); 244 245 handleEvents(); 246 247 publish(response); 248 249 if (options.debug && console) { 250 console.log(response); 251 } 252 253 return $toastElement; 254 255 function escapeHtml(source) { 256 if (source == null) 257 source = ""; 258 259 return new String(source) 260 .replace(/&/g, '&') 261 .replace(/"/g, '"') 262 .replace(/'/g, ''') 263 .replace(/</g, '<') 264 .replace(/>/g, '>'); 265 } 266 267 function personalizeToast() { 268 setIcon(); 269 setTitle(); 270 setMessage(); 271 setCloseButton(); 272 setProgressBar(); 273 setSequence(); 274 } 275 276 function handleEvents() { 277 $toastElement.hover(stickAround, delayedHideToast); 278 if (!options.onclick && options.tapToDismiss) { 279 $toastElement.click(hideToast); 280 } 281 282 if (options.closeButton && $closeElement) { 283 $closeElement.click(function (event) { 284 if (event.stopPropagation) { 285 event.stopPropagation(); 286 } else if (event.cancelBubble !== undefined && event.cancelBubble !== true) { 287 event.cancelBubble = true; 288 } 289 hideToast(true); 290 }); 291 } 292 293 if (options.onclick) { 294 $toastElement.click(function (event) { 295 options.onclick(event); 296 hideToast(); 297 }); 298 } 299 } 300 301 function displayToast() { 302 $toastElement.hide(); 303 304 $toastElement[options.showMethod]( 305 {duration: options.showDuration, easing: options.showEasing, complete: options.onShown} 306 ); 307 308 if (options.timeOut > 0) { 309 intervalId = setTimeout(hideToast, options.timeOut); 310 progressBar.maxHideTime = parseFloat(options.timeOut); 311 progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime; 312 if (options.progressBar) { 313 progressBar.intervalId = setInterval(updateProgress, 10); 314 } 315 } 316 } 317 318 function setIcon() { 319 if (map.iconClass) { 320 $toastElement.addClass(options.toastClass).addClass(iconClass); 321 } 322 } 323 324 function setSequence() { 325 if (options.newestOnTop) { 326 $container.prepend($toastElement); 327 } else { 328 $container.append($toastElement); 329 } 330 } 331 332 function setTitle() { 333 if (map.title) { 334 $titleElement.append(!options.escapeHtml ? map.title : escapeHtml(map.title)).addClass(options.titleClass); 335 $toastElement.append($titleElement); 336 } 337 } 338 339 function setMessage() { 340 if (map.message) { 341 $messageElement.append(!options.escapeHtml ? map.message : escapeHtml(map.message)).addClass(options.messageClass); 342 $toastElement.append($messageElement); 343 } 344 } 345 346 function setCloseButton() { 347 if (options.closeButton) { 348 $closeElement.addClass('toast-close-button').attr('role', 'button');
vendor: 4,214 bytes, lines 349-447
349 $toastElement.prepend($closeElement); 350 } 351 } 352 353 function setProgressBar() { 354 if (options.progressBar) { 355 $progressElement.addClass('toast-progress'); 356 $toastElement.prepend($progressElement); 357 } 358 } 359 360 function shouldExit(options, map) { 361 if (options.preventDuplicates) { 362 if (map.message === previousToast) { 363 return true; 364 } else { 365 previousToast = map.message; 366 } 367 } 368 return false; 369 } 370 371 function hideToast(override) { 372 var method = override && options.closeMethod !== false ? options.closeMethod : options.hideMethod; 373 var duration = override && options.closeDuration !== false ? 374 options.closeDuration : options.hideDuration; 375 var easing = override && options.closeEasing !== false ? options.closeEasing : options.hideEasing; 376 if ($(':focus', $toastElement).length && !override) { 377 return; 378 } 379 clearTimeout(progressBar.intervalId); 380 return $toastElement[method]({ 381 duration: duration, 382 easing: easing, 383 complete: function () { 384 removeToast($toastElement); 385 if (options.onHidden && response.state !== 'hidden') { 386 options.onHidden(); 387 } 388 response.state = 'hidden'; 389 response.endTime = new Date(); 390 publish(response); 391 } 392 }); 393 } 394 395 function delayedHideToast() { 396 if (options.timeOut > 0 || options.extendedTimeOut > 0) { 397 intervalId = setTimeout(hideToast, options.extendedTimeOut); 398 progressBar.maxHideTime = parseFloat(options.extendedTimeOut); 399 progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime; 400 } 401 } 402 403 function stickAround() { 404 clearTimeout(intervalId); 405 progressBar.hideEta = 0; 406 $toastElement.stop(true, true)[options.showMethod]( 407 {duration: options.showDuration, easing: options.showEasing} 408 ); 409 } 410 411 function updateProgress() { 412 var percentage = ((progressBar.hideEta - (new Date().getTime())) / progressBar.maxHideTime) * 100; 413 $progressElement.width(percentage + '%'); 414 } 415 } 416 417 function getOptions() { 418 return $.extend({}, getDefaults(), toastr.options); 419 } 420 421 function removeToast($toastElement) { 422 if (!$container) { $container = getContainer(); } 423 if ($toastElement.is(':visible')) { 424 return; 425 } 426 $toastElement.remove(); 427 $toastElement = null; 428 if ($container.children().length === 0) { 429 $container.remove(); 430 previousToast = undefined; 431 } 432 } 433 434 })(); 435 }); 436}(typeof define === 'function' && define.amd ? define : function (deps, factory) { 437 if (typeof module !== 'undefined' && module.exports) { //Node 438 module.exports = factory(require('jquery')); 439 } else { 440 window.toastr = factory(window.jQuery); 441 } 442})); 443 444 445function calculateReadingTime(text) { 446 const wordsPerMinute = 200; // Durchschnittliche Lesegeschwindigkeit 447 const textLength = text.trim().split(/\s+/).length; // Wörter zählen
448 const readingTime = Math.ceil(textLength / wordsPerMinute); // Zeit berechnen und aufrunden 449 return readingTime; // Minuten zurückgeben 450} 451 452 453/** 454 * FingerprintJS v3.3.3 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprintjs.com) 455 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. 456 * 457 * This software contains code from open-source projects: 458 * MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js) 459 */ 460 461var FingerprintJS=function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function n(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function c(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function r(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(c){o=[6,c],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function a(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var o=arguments[t],i=0,c=o.length;i<c;i++,a++)r[a]=o[i];return r}function o(e,t){return new Promise((function(n){return setTimeout(n,e,t)}))}function i(e,t){try{var n=e();(r=n)&&"function"==typeof r.then?n.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,n)}catch(a){t(!1,a)}var r}function c(e,t,a){return void 0===a&&(a=16),n(this,void 0,void 0,(function(){var n,i,c;return r(this,(function(r){switch(r.label){case 0:n=Date.now(),i=0,r.label=1;case 1:return i<e.length?(t(e[i],i),(c=Date.now())>=n+a?(n=c,[4,o(0)]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++i,[3,1];case 4:return[2]}}
461))}))}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function s(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function d(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function f(e,t){return[e[0]^t[0],e[1]^t[1]]}function h(e){return e=f(e,[0,e[0]>>>1]),e=f(e=s(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=f(e=s(e,[3301882366,444984403]),[0,e[0]>>>1])}function v(e,t){t=t||0;var n,r=(e=e||"").length%16,a=e.length-r,o=[0,t],i=[0,t],c=[0,0],v=[0,0],p=[2277735313,289559509],m=[1291169091,658871167];for(n=0;n<a;n+=16)c=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],v=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],c=l(c=s(c,p),31),o=u(o=l(o=f(o,c=s(c,m)),27),i),o=u(s(o,[0,5]),[0,1390208809]),v=l(v=s(v,m),33),i=u(i=l(i=f(i,v=s(v,p)),31),o),i=u(s(i,[0,5]),[0,944331445]);switch(c=[0,0],v=[0,0],r){case 15:v=f(v,d([0,e.charCodeAt(n+14)],48));case 14:v=f(v,d([0,e.charCodeAt(n+13)],40));case 13:v=f(v,d([0,e.charCodeAt(n+12)],32));case 12:v=f(v,d([0,e.charCodeAt(n+11)],24));case 11:v=f(v,d([0,e.charCodeAt(n+10)],16));case 10:v=f(v,d([0,e.charCodeAt(n+9)],8));case 9:v=s(v=f(v,[0,e.charCodeAt(n+8)]),m),i=f(i,v=s(v=l(v,33),p));case 8:c=f(c,d([0,e.charCodeAt(n+7)],56));case 7:c=f(c,d([0,e.charCodeAt(n+6)],48));case 6:c=f(c,d([0,e.charCodeAt(n+5)],40));case 5:c=f(c,d([0,e.charCodeAt(n+4)],32));case 4:c=f(c,d([0,e.charCodeAt(n+3)],24));case 3:c=f(c,d([0,e.charCodeAt(n+2)],16));case 2:c=f(c,d([0,e.charCodeAt(n+1)],8));case 1:c=s(c=f(c,[0,e.charCodeAt(n)]),p),o=f(o,c=s(c=l(c,31),m))}return o=u(o=f(o,[0,e.length]),i=f(i,[0,e.length])),i=u(i,o),o=u(o=h(o),i=h(i)),i=u(i,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function p(e){return parseInt(e)}function m(e){return parseFloat(e)}function g(e,t){return"number"==typeof e&&isNaN(e)?t:e}function b(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function w(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function y(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function k(e,t,a){var u=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(a,e)})),s=Array(u.length);return c(u,(function(n,r){s[r]=function(e,t){var n=function(e){return"function"!=typeof e},r=new Promise((function(r){var a=Date.now();i(e.bind(null,t),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=Date.now()-a;if(!e[0])return r((function(){return{error:y(e[1]),duration:o}}));var c=e[1];if(n(c))return r((function(){return{value:c,duration:o}}));r((function(){return new Promise((function(e){var t=Date.now();i(c,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=o+Date.now()-t;if(!n[0])return e({error:y(n[1]),duration:a});e({value:n[1],duration:a})}))}))}))}))}));return function(){return r.then((function(e){return e()}))}}(e[n],t)})),function(){return n(this,void 0,void 0,(function(){var e,t,n,a,i,l;return r(this,(function(d){switch(d.label){case 0:for(e={},t=0,n=u;t<n.length;t++)a=n[t],e[a]=void 0;i=Array(u.length),l=function(){var t;return r(this,(function(n){switch(n.label){case 0:return t=!0,[4,c(u,(function(n,r){i[r]||(s[r]?i[r]=s[r]().then((function(t){return e[n]=t})):t=!1)}))];case 1:return n.sent(),t?[2,"break"]:[4,o(1)];case 2:return n.sent(),[2]}}))},d.label=1;case 1:return[5,l()];case 2:if("break"===d.sent())return[3,4];d.label=3;case 3:return[3,1];case 4:return[4,Promise.all(i)];case 5:return d.sent(),[2,e]}}))}))}}function C(){var e=window,t=navigator;return b(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function A(){var e=window,t=navigator;return b(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!C()}function S(){var e=window,t=navigator;return b(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>
461=5}function x(){var e=window,t=navigator;return b(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function M(){var e=window;return b(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function P(){var e,t,n=window;return b(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function _(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function T(){var e=S(),t=P();if(!e&&!t)return!1;var n=window;return b(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function E(e){var t=new Error(e);return t.name=e,t}function D(e,t,a){var i,c,u;return void 0===a&&(a=50),n(this,void 0,void 0,(function(){var n,s;return r(this,(function(r){switch(r.label){case 0:n=document,r.label=1;case 1:return n.body?[3,3]:[4,o(a)];case 2:return r.sent(),[3,1];case 3:s=n.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise((function(e,r){var a=!1,o=function(){a=!0,e()};s.onload=o,s.onerror=function(e){a=!0,r(e)};var i=s.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",n.body.appendChild(s);var c=function(){var e,t;a||("complete"===(null===(t=null===(e=s.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?o():setTimeout(c,10))};c()}))];case 5:r.sent(),r.label=6;case 6:return(null===(c=null===(i=s.contentWindow)||void 0===i?void 0:i.document)||void 0===c?void 0:c.body)?[3,8]:[4,o(a)];case 7:return r.sent(),[3,6];case 8:return[4,e(s,s.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(u=s.parentNode)||void 0===u||u.removeChild(s),[7];case 11:return[2]}}
461))}))}function L(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '"+e+"'",a=/^\s*([a-z-]*)(.*)$/i.exec(e),o=a[1]||void 0,i={},c=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){i[e]=i[e]||[],i[e].push(t)};;){var s=c.exec(a[2]);if(!s)break;var l=s[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);u(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,i]}(e),n=t[0],r=t[1],a=document.createElement(null!=n?n:"div"),o=0,i=Object.keys(r);o<i.length;o++){var c=i[o],u=r[c].join(" ");"style"===c?z(a.style,u):a.setAttribute(c,u)}return a}function z(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var a=r[n],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(a);if(o){var i=o[1],c=o[2],u=o[4];e.setProperty(i,c,u||"")}}}var I=["monospace","sans-serif","serif"],B=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function F(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function O(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly "+String.fromCharCode(55357,56835);return t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45),G(e)}function R(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var a=r[n],o=a[0],i=a[1],c=a[2];t.fillStyle=o,t.beginPath(),t.arc(i,c,40,0,2*Math.PI,!0),t.closePath(),t.fill()}return t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd"),G(e)}function G(e){return e.toDataURL()}var j,U;function W(){var e=this;return function(){if(void 0===U){var e=function(){var t=N();q(t)?U=setTimeout(e,2500):(j=t,U=void 0)};e()}}(),function(){return n(e,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return q(e=N())?j?[2,a(j)]:_()?[4,(n=document,(n.exitFullscreen||n.msExitFullscreen||n.mozCancelFullScreen||n.webkitExitFullscreen).call(n))]:[3,2]:[3,2];case 1:t.sent(),e=N(),t.label=2;case 2:return q(e)||(j=e),[2,e]}var n}))}))}}function N(){var e=screen;return[g(m(e.availTop),null),g(m(e.width)-m(e.availWidth)-g(m(e.avail
461Left),0),null),g(m(e.height)-m(e.availHeight)-g(m(e.availTop),0),null),g(m(e.availLeft),null)]}function q(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}var H={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'a[title="7naga poker" i]','[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",".iosAdsiosAds-layout",".quangcao",'[href^="https://r88.vn/"]','[href^="https://zbet.vn/"]'],adBlockFinland:[".mainostila",".sponsorit",".ylamainos",'a[href*="/clickthrgh.asp?"]','a[href^="https://app.readpeak.com/ads"]'],adBlockPersian:["#navbar_notice_50",'a[href^="http://g1.v.fwmrm.net/ad/"]',".kadr",'TABLE[width="140px"]',"#divAgahi"],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect"],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:["#ad-after","#ad-p3",".BetterJsPopOverlay","#ad_300X250","#bannerfloat22"],adGuardChinese:['a[href*=".ttz5.cn"]','a[href*=".yabovip2027.com/"]',".tm3all2h4b",".cc5278_banner_ad"],adGuardFrench:[".zonepub",'[class*="_adLeaderboard"]','[id^="block-xiti_oas-"]','a[href^="http://ptapjmp.com/"]','a[href^="https://go.alvexo.com/"]'],adGuardGerman:[".banneritemwerbung_head_1",".boxstartwerbung",".werbung3",'a[href^="http://www.eis.de/index.phtml?refid="]','a[href^="https://www.tipico.com/?affiliateId="]'],adGuardJapanese:["#kauli_yad_1","#ad-giftext","#adsSPRBlock",'a[href^="http://ad2.trafficgate.net/"]','a[href^="http://www.rssad.jp/"]'],adGuardMobile:["amp-auto-ads","#mgid_iframe",".amp_ad",'amp-embed[type="24smi"]',"#mgid_iframe1"],adGuardRussian:['a[href^="https://ya-distrib.ru/r/"]','a[href^="https://ad.letmeads.com/"]',".reclama",'div[id^="smi2adblock"]','div[id^="AdFox_banner_"]'],adGuardSocial:['a[href^="//www.stumbleupon.com/submit?url="]','a[href^="//telegram.me/share/url?"]',".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",'[href^="http://ads.glispa.com/"]'],adGuardTrackingProtection:['amp-embed[type="taboola"]',"#qoo-counter",'a[href^="http://click.hotlog.ru/"]','a[href^="http://hitcounter.ru/top/stat.php"]','a[href^="http://top.mail.ru/jump"]'],adGuardTurkish:["#backkapat","#reklami",'a[href^="http://adserv.ontek.com.tr/"]','a[href^="http://izlenzi.com/campaign/"]','a[href^="http://www.installads.net/"]'],bulgarian:["td#freenet_table_ads","#adbody","#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:["#AD_banner_bottom","#Ads_google_02","#N-ad-article-rightRail-1","#ad-fullbanner2","#ad-zone-2"],easyListChina:['a[href*=".wensixuetang.com/"]','A[href*="/hth107.com/"]','.appguide-wrap[onclick*="bcebos.com"]',".frontpageAdvM","#taotaole"],easyListCookie:["#adtoniq-msg-bar","#CoockiesPage","#CookieModal_cookiemodal","#DO_CC_PANEL","#ShowCookie"],easyListCzechSlovak:["#onlajny-stickers","#reklamni-box",".reklama-megaboard",".sklik",'[id^="sklikReklama"]'],easyListDutch:["#advertentie","#vipAdmarktBannerBlock",".adstekst",'a[href^="https://xltube.nl/click/"]',"#semilo-lrectangle"],easyListGermany:['a[href^="http://www.hw-area.com/?dp="]','a[href^="https://ads.sunmaker.com/tracking.php?"]',".werbung-skyscraper2",".bannergroup_werbung",".ads_rechts"],easyListItaly:[".box_adv_annunci",".sb-box-pubbliredazionale",'a[href^="http://affiliazioniads.snai.it/"]','a[href^="https://adserver.html.it/"]','a[href^="https://affiliazioniads.snai.it/"]'],easyListLithuania:[".reklamos_tarpas",".reklamos_nuorodos",'img[alt="Reklaminis skydelis"]','img[alt="Dedikuoti.lt serveriai"]','img[alt="Hostingas Serveriai.lt"]'],estonian:['A[href*="http://pay4results24.eu"]'],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:['a[href*="c
461asinopro.se"][target="_blank"]','a[href*="doktor-se.onelink.me"]',"article.category-samarbete","div.holidAds","ul.adsmodern"],greekAdBlock:['A[href*="adman.otenet.gr/click?"]','A[href*="http://axiabanners.exodus.gr/"]','A[href*="http://interactive.forthnet.gr/click?"]',"DIV.agores300","TABLE.advright"],hungarian:['A[href*="ad.eval.hu"]','A[href*="ad.netmedia.hu"]','A[href*="daserver.ultraweb.hu"]',"#cemp_doboz",".optimonk-iframe-container"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:['A[href^="/framework/resources/forms/ads.aspx"]'],latvian:['a[href="http://www.salidzini.lv/"][style="display: block; width: 120px; height: 40px; overflow: hidden; position: relative;"]','a[href="http://www.salidzini.lv/"][style="display: block; width: 88px; height: 31px; overflow: hidden; position: relative;"]'],listKr:['a[href*="//kingtoon.slnk.kr"]','a[href*="//playdsb.com/kr"]',"div.logly-lift-adz",'div[data-widget_id="ml6EJ074"]',"ins.daum_ddn_area"],listeAr:[".geminiLB1Ad",".right-and-left-sponsers",'a[href*=".aflam.info"]','a[href*="booraq.org"]','a[href*="dubizzle.com/ar/?utm_source="]'],listeFr:['a[href^="http://promo.vador.com/"]',"#adcontainer_recherche",'a[href*="weborama.fr/fcgi-bin/"]',".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",'[href^="https://aff.sendhub.pl/"]','a[href^="http://advmanager.techfun.pl/redirect/"]','a[href^="http://www.trizer.pl/?utm_source"]',"div#skapiec_ad"],ro:['a[href^="//afftrk.altex.ro/Counter/Click"]','a[href^="/magazin/"]','a[href^="https://blackfridaysales.ro/trk/shop/"]','a[href^="https://event.2performant.com/events/click"]','a[href^="https://l.profitshare.ro/"]'],ruAd:['a[href*="//febrare.ru/"]','a[href*="//utimg.ru/"]','a[href*="://chikidiki.ru"]',"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]","#ads-google-middle_rectangle-group",".ads300s",".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",".ctpl-fullbanner",".zergnet-recommend",".yt.btn-link.btn-md.btn"]};function J(e){var t;return n(this,void 0,void 0,(function(){var n,a,i,c,u,s,l;return r(this,(function(r){switch(r.label){case 0:for(n=document,a=n.createElement("div"),i=new Array(e.length),c={},$(a),l=0;l<e.length;++l)u=L(e[l]),$(s=n.createElement("div")),s.appendChild(u),a.appendChild(s),i[l]=u;r.label=1;case 1:return n.body?[3,3]:[4,o(50)];case 2:return r.sent(),[3,1];case 3:n.body.appendChild(a);try{for(l=0;l<e.length;++l)i[l].offsetParent||(c[e[l]]=!0)}finally{null===(t=a.parentNode)||void 0===t||t.removeChild(a)}return[2,c]}}))}))}function $(e){e.style.setProperty("display","block","important")}function V(e){return matchMedia("(inverted-colors: "+e+")").matches}function K(e){return matchMedia("(forced-colors: "+e+")").matches}function X(e){return matchMedia("(prefers-contrast: "+e+")").matches}function Y(e){return matchMedia("(prefers-reduced-motion: "+e+")").matches}function Z(e){return matchMedia("(dynamic-range: "+e+")").matches}var Q=Math,ee=function(){return 0};var te={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ne={fonts:function(){return D((function(e,t){var n=t.document,r=n.body;r.style.fontSize="48px";var a=n.createElement("div"),o={},i={},c=function(e){var t=n.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",a.appendChild(t),t},u=I.map(c),s=function(){for(var e={},t=function(t){e[t]=I.map((function(e){return function(e,t){return c("'"+e+"',"+t)}(t,e)}))},n=0,r=B;n<r.length;n++){t(r[n])}return e}();r.appendChild(a);for(var l=0;l<I.length;l++)o[I[l]]=u[l].offsetWidth,i[I[l]]=u[l].offsetHeight;return B.filter((function(e){return t=s[e],I.some((function(e,n){return t[n].offsetWidth!==o[e]||t[n].offsetHeight!==i[e]}));var t}))}))},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return n(this,void 0,void 0,(function(){var e,n,a,o;return r(this,(function(r){switch(r.label){case 0:return x()||T()?(e=Object.keys(H),[4,J((o=[]).concat.apply(o,e.map((function(e){return H[e]}))))]):[2,void 0];case 1:return n=r.sent(),t&&function(e){for(var t="DOM blockers debug:\n```",n=0,r=Object.keys(H);n<r.length;n++){var a=r[n];t+="\n"+a+":";for(var o=0,i=H[a];o<i.length;o++){var c=i[o];t+="\n "+c+" "+(e[c]?"??":"??")}}console.log(t+"\n```")}(n),(a=e.filter((function(e){var t=H[e];return b(t.map((function(e){return n[e]})))>.6*t.length}))).sort(),[2,a]}}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return D((function(n,r){var o=r.document,i=o.body,c=i.style;c.width=t+"px",c.webkitTextSizeAdjust=c.textSizeAdjust="none",S()?i.style.zoom=""+1/r.devicePixelRatio:x()&&(i.style.zoom="reset");var u=o.createElement("div");return u.textContent=a(Array(t/20<<0)).map((function(){return"word"})).join(" "),i.appendChild(u),e(o,i)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,t){for(var n={},r={},a=0,o=Object.keys(te);a<o.length;a++){var i=o[a],c=te[i],u=c[0],s=void 0===u?{}:u,l=c[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var h=0,v=Object.keys(s);h<v.length;h++){var p=v[h],m=s[p];void 0!==m&&(f.style[p]=m)}n[i]=f,t.appendChild(e.createElement("br")),t.appendChild(f)}for(var g=0,b=Object.keys(te);g<b.length;g++){r[i=b[g]]=n[i].getBoundingClientRect().width}return r}))},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(x()&&!M()&&!function(){var e=window;return b(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var a=n.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,r.connect(a),a.connect(n.destination),r.start(0);var o=function(e){var t=3,n=500,r=500,a=5e3,o=function(){};return[new Promise((function(i,c){var u=!1,s=0,l=0;e.oncomplete=function(e){return i(e.renderedBuffer)};var d=function(){setTimeout((function(){return c(E("timeout"))}),Math.min(r,l+a-Date.now()))}
461,f=function(){try{switch(e.startRendering(),e.state){case"running":l=Date.now(),u&&d();break;case"suspended":document.hidden||s++,u&&s>=t?c(E("suspended")):setTimeout(f,n)}}catch(r){c(r)}};f(),o=function(){u||(u=!0,l>0&&d())}})),o]}(n),i=o[0],c=o[1],u=i.then((function(e){return function(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}(e.getChannelData(0).subarray(4500))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e}));return u.catch((function(){})),function(){return c(),u}},screenFrame:function(){var e=this,t=W();return function(){return n(e,void 0,void 0,(function(){var e,n;return r(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:return e=r.sent(),[2,[(n=function(e){return null===e?null:w(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,n=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(t.languages))S()&&b([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||n.push(t.languages);else if("string"==typeof t.languages){var a=t.languages;a&&n.push(a.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return g(m(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return g(p(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return g(p(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,a=(r=(new Date).getFullYear(),-Math.max(m(new Date(r,0,1).getTimezoneOffset()),m(new Date(r,6,1).getTimezoneOffset())));return"UTC"+(a>=0?"+":"")+Math.abs(a)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!C()&&!A())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&x()&&!M()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return b(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var a=[],o=0;o<r.length;++o){var i=r[o];a.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:a})}}return t}},canvas:function(){var e=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),t=e[0],n=e[1];return function(e,t){return!(!t||!e.toDataURL)}(t,n)?{winding:F(n),geometry:R(t,n),text:O(t,n)}:{winding:!1,geometry:"",text:""}},touchSupport:function(){var e,t=navigator,n=0;void 0!==t.maxTouchPoints?n=p(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(r){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],a=window[r];a&&"object"==typeof a&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(n){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: "+n+")").matches)return n}},invertedColors:function(){return!!V("inverted")||!V("none")&&void 0},forcedColors:function(){return!!K("active")||!K("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: "+e+")").matches)return e;throw new Error("Too high value")}},contrast:function(){return X("no-preference")?0:X("high")||X("more")?1:X("low")||X("less")?-1:X("forced")?10:void 0},reducedMotion:function(){return!!Y("reduce")||!Y("no-preference")&&void 0},hdr:function(){return!!Z("high")||!Z("standard")&&void 0},math:function(){var e,t=Q.acos||ee,n=Q.acosh||ee,r=Q.asin||ee,a=Q.asinh||ee,o=Q.atanh||ee,i=Q.atan||ee,c=Q.sin||ee,u=Q.sinh||ee,s=Q.cos||ee,l=Q.cosh||ee,d=Q.tan||ee,f=Q.tanh||ee,h=Q.exp||ee,v=Q.expm1||ee,p=Q.log1p||ee;return{acos:t(.12312423423423424),acosh:n(1e308),acoshPf:(e=1e154,Q.log(e+Q.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:a(1),asinhPf:function(e){return Q.log(e+Q.sqrt(e*e+1))}(1),atanh:o(.5),atanhPf:function(e){return Q.log((1+e)/(1-e))/2}(.5),atan:i(.5),sin:c(-1e300),sinh:u(1),sinhPf:function(e){return Q.exp(e)-1/Q.exp(e)/2}(1),cos:s(10.000000000123),cosh:l(1),coshPf:function(e){return(Q.exp(e)+1/Q.exp(e))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(e){return(Q.exp(2*e)-1)/(Q.exp(2*e)+1)}(1),exp:h(1),expm1:v(1),expm1Pf:function(e){return Q.exp(e)-1}(1),log1p:p(10),log1pPf:function(e){return Q.log(1+e)}(10),powPI:function(e){return Q.pow(Q.PI,e)}(-100)}}};function re(e){var t=function(e){if(T())return.4;if(x())return M()?.5:.3;var t=e.platform.value||"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),n=function(e){return w(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,""+n)}}function ae(e){return JSON.stringify(e,(function(e,n){return n instanceof Error?t({name:(r=n).name,message:r.message,stack:null===(a=r.stack)||void 0===a?void 0:a.split("\n")},r):n;var r,a}),2)}function oe(e){return v(function(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var a=r[n],o=e[a],i=o.error?"error":JSON.stringify(o.value);t+=(t?"|":"")+a.replace(/([:|\\])/g,"\\$1")+":"+i}return t}(e))}function ie(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise((function(e){return n.call(window,(function(){return e()}),{timeout:t})})):o(Math.min(e,t))}(e,2*e)}function ce(e,t){var a=Date.now();return{get:function(o){return n(this,void 0,void 0,(function(){var n,i,c;return r(this,(function(r){switch(r.label){case 0:return n=Date.now(),[4,e()];case 1:return i=r.sent(),c=function(e){var t;return{get visitorId(){return void 0===t&&(t=oe(this.components)),t},set visitorId(e){t=e},confidence:re(e),components:e,version:"3.3.3"}}(i),(t||(null==o?void 0:o.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: "+c.version+"\nuserAgent: "+navigator.userAgent+"\ntimeBetweenLoadAndGet: "+(n-a)+"\nvisitorId: "+c.visitorId+"\ncomponents: "+ae(i)+"\n```"),[2,c]}}))}))}}}function ue(e){var t=void 0===e?{}:e,a=t.delayFallback,o=t.debug;t.monitoring;return n(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,ie(a)];case 1:return e.sent(),[2,ce(k(ne,{debug:o},[]),o)]}}))}))}var se={load:ue,hashComponents:oe,componentsToDebugString:ae},le=v;return e.componentsToDebugString=ae,e.default=se,e.getFullscreenElement=_,e.getScreenFrame=W,e.hashComponents=oe,e.isAndroid=T,e.isChromium=S,e.isDesktopSafari=M,e.isEdgeHTML=A,e.isGecko=P,e.isTrident=C,e.isWebKit=x,e.load=ue,e.loadSources=k,e.murmurX64Hash128=le,e.prepareForSources=ie,e.sources=ne,e}({}); 462 463 464 465function setCookie(key, value, expiry) { 466 var expires = new Date(); 467 expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000)); 468 document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); 469 } 470 471 472const getCookieValue = (name) => ( 473 document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)')?.pop() || '' 474) 475 476if(getCookieValue('cookie_tracking')=='true') 477 { 478 479 console.log('check tracking cookie'); 480 481 482 483 var gtmScript = document.createElement("script"); 484 gtmScript.async = true; 485 486 487 gtmScript.src = "https://www.googletagmanager.com/gtag/js?i
487d=G-H136V2NHEK"; 488 document.head.appendChild(gtmScript); 489 490 491 492 window.dataLayer = window.dataLayer || []; 493 494 gtag('js', new Date()); 495 496 497 gtag('consent', 'update', { 498 ad_user_data: 'granted', 499 ad_personalization: 'granted', 500 ad_storage: 'granted', 501 analytics_storage: 'granted' 502 }); 503 504 gtag('config', 'G-H136V2NHEK'); 505 gtag('config', 'AW-925552768'); 506 } 507 508 509 510//console.log(getCookieValue('cloudflareLoadBalancerToken')); 511function toaster(task,message, timeout){ 512 513if (typeof timeout !== 'undefined') { 514 515} 516else 517{ 518 timeout = 5000; 519} 520 521 522 toastr.options = { 523 "closeButton": false, 524 "debug": false, 525 "newestOnTop": true, 526 "progressBar": true, 527 "positionClass": "toast-bottom-center", 528 "preventDuplicates": false, 529 "onclick": null, 530 "showDuration": "300", 531 "hideDuration": "1000", 532 "timeOut": timeout, 533 "extendedTimeOut": "1000", 534 "showEasing": "swing", 535 "hideEasing": "linear", 536 "showMethod": "fadeIn", 537 "hideMethod": "fadeOut" 538 } 539 540 say = ''; 541 switch(task){ 542 case '0': 543 say='warning'; 544 break; 545 546 case '1': 547 say='success'; 548 break; 549 550 case '2': 551 say='error'; 552 break; 553 554 default: 555 say='success'; 556 } 557 toastr[say](message); 558} 559 560if(getCookieValue('cloudflareLoadBalancerToken')!='') 561{ 562$("#video-auto-gps-tracker-desktop-357").attr("src","video/gps-tracker-auto/video-gps-tracker-auto-04421-2099832.mp4"); 563$("#video-gps-tracker-desktop-357-startseite").attr("src","video/gps-tracker-auto/video-gps-tracker-auto-04421-2099832.mp4"); 564} 565 566 567function getBlogPost(bereich){ 568/* 569if($('#article_id').val()==497) 570{ 571// console.log($('#article_id').val()); 572 $.ajax({ 573 type: "POST", 574 url: "/xml/blog-posts.php", 575 data: { 576 'bereich': bereich 577 },dataType: "xml", 578 success: function(xml) { 579 $(xml).find("response").each(function () { 580 $('#blog-posts').html(($(this).find("item").text())); 581 582 }); 583 584 } 585 586 587 }); 588 589} 590 591 592 593*/ 594} 595 596 597function getShop(bereich){ 598 /* 599 $.ajax({ 600 type: "POST", 601 url: "/xml/shop.php", 602 data: { 603 'bereich': bereich 604 },dataType: "xml", 605 success: function(xml) { 606 $(xml).find("response").each(function () { 607 $('#shop').html(($(this).find("item").text())); 608 609 }); 610 611 } 612 613 614 }); 615 616 617 */ 618 619} 620function aktuelle_nachrichten(bereich){ 621 622 623/* 624 625$.ajax({ 626 type: "POST", 627 url: "/xml/aktuelle-nachrichten.php", 628 data: { 629 'bereich': bereich 630 },dataType: "xml", 631 success: function(xml) { 632 $(xml).find("response").each(function () { 633 $('#aktuelle-nachrichten-meldungen').html(($(this).find("item").text())); 634 635 }); 636 637 } 638 639 640 }); 641 642 643 */ 644 } 645 646 function getNewsletter(){ 647var email = $('#email').val(); 648var bereich = $('#article_id').val(); 649var full_url = $('#full_url').val(); 650$.ajax({ 651 type: "POST", 652 url: "/xml/xmlSendNewsletter.php", 653 data: { 654 'bereich': bereich, 'email': email, 'full_url': full_url 655 },dataType: "text", 656 success: function(response) { 657 $('#newsletter_result').html(response); 658 659 } 660 661 662 }); 663 664 665 666 } 667 668 669 670function trigger(){ 671$.ajax({ 672 type: "POST", 673 url: "/xml/websocket.php", 674 data: { 675 'article_id': $('#article_id').val() 676 } 677 678 679 680 }); 681} 682 683 684function trigger_call(call_number, params){ 685$.ajax({ 686 type: "POST", 687 url: "/xml/websocket.php", 688 data: { 689 'article_id': $('#article_id').val(), 690 'call_number': call_number, 691 'params': params 692 } 693 694 695 696 }); 697 698 //gtag('event', 'conversion', { 'send_to': 'AW-925552768/Nl0CCJ7snusYEIChq7kD' });
699} 700 701function trigger_wa(call_number, params){ 702$.ajax({ 703 type: "POST", 704 url: "/xml/websocket.php", 705 data: { 706 'article_id': $('#article_id').val(), 707 'call_number': call_number, 708 'params': params 709 } 710 711 712 713 }); 714 715 gtag('event', 'conversion', { 'send_to': 'AW-925552768/HniWCO374esYEIChq7kD' }); 716} 717 718function video_trigger(id, evt){ 719 720//var $video = $("#element"); 721 722console.log(evt); 723//var video_id = $( "video" ).attr('id'); 724 725 726$.ajax({ 727 type: "POST", 728 url: "/xml/videoTrigger.php", 729 data: { 730 'article_id': $('#article_id').val(), 731 'video_id': id, 732 'width': $(window).width(), 733 'height': $(window).height(), 734 'evtType': evt.type.toString() 735 } 736 737 738 739 }); 740 741 //gtag('event', 'Videos','play','273'); 742 743} 744 745 746 747function log(id, evt, timeSpent){ 748 749//var $video = $("#element"); 750 751console.log('Send event to server: ' +evt); 752//var video_id = $( "video" ).attr('id'); 753 754 755$.ajax({ 756 type: "POST", 757 url: "/xml/log.php", 758 data: { 759 'article_id': $('#article_id').val(), 760 'evt': evt, 761 'timeSpent': timeSpent 762 } 763 764 765 766 }); 767 768 //gtag('event', 'Videos','play','273'); 769 770} 771 772//inhaltsverzeichnis_einklappen_ausklappen 773//video_trigger(id, evt) 774 775$("video").click(function() { 776 //console.log($('#article_id').val()); 777 778}); 779 780const players = document.querySelectorAll("video"); 781 782Array.from(players).forEach( player=>player.addEventListener("playing", (event) => { video_trigger(event.srcElement.id, event); console.log($('#article_id').val());})); 783 784 785 786Array.from(players).forEach( player=>player.addEventListener("ended", (event) => { video_trigger(event.srcElement.id, event); console.log($('#article_id').val());})); 787 788 789 790Array.from(players).forEach( player=>player.addEventListener("pause", (event) => { video_trigger(event.srcElement.id, event);console.log($('#article_id').val()); })); 791 792$(".toc_title").click(function() { 793 //console.log($("#inhaltsverzeichnis").is(":hidden")); 794 if($("#inhaltsverzeichnis").is(":hidden")===true) 795 { 796 $('#inhaltsverzeichnis_einklappen_ausklappen').html("[Ausblenden]"); 797 } 798 else 799 { 800 $('#inhaltsverzeichnis_einklappen_ausklappen').html("[Einblenden]"); 801 } 802 //console.log("toggle"); 803 //$(".toc_title").attr("collapsed","1"); 804}); 805 806/* 807document.getElementById("warenkorb-button").addEventListener("click", function() { 808 document.getElementById("jetzt-bestellen-angebot-beratung-anfordern").scrollIntoView({ behavior: "smooth" }); 809}); */ 810 811 812function gtag() { 813 814try{ 815 dataLayer.push(arguments); 816}catch(e){ 817 818} 819 820 821} 822 823 824 825$(document).on('click', 'a[href^="https://wa.me/"]', function (e) { 826 827if(getCookieValue('cookie_tracking')=='true') 828 { 829 gtag('event', 'conversion', { 830 'send_to': 'AW-925552768/O9vlCIrf6L8bEIChq7kD', 831 'value': 1.0, 832 'currency': 'EUR' 833 }); 834 835 } 836 837}); 838 839 840$("#warenkorb-button").click(function() { 841 842 if(getCookieValue('cookie_tracking')=='true') 843 { 844 845 console.log('cookie tracking: ' + getCookieValue('cookie_tracking') ); 846 847 gtag('event', 'conversion', { 848 'send_to': 'AW-925552768/mF7LCPmD5L8bEIChq7kD', 849 'value': 1.0, 850 'currency': 'EUR' 851 }); 852 853 854 } 855 856 loadCustomerType(); 857 858 859 $('html, body').animate({ 860 // scrollTop: $("#jetzt-bestellen-angebot-beratung-anfordern,#beratung-anfordern").offset().top 861 }, 1000); // 1000 ms für den Scroll-Effekt 862 }); 863 864 865 866$("#beratung").click(function() { 867 868 if(getCookieValue('cookie_tracking')=='true') 869 { 870 871 console.log('cookie tracking: ' + getCookieValue('cookie_tracking') ); 872 873 gtag('event', 'conversion', { 874 'send_to': 'AW-925552768/fo4wCMSI4b8bEIChq7kD', 875 'value': 1.0, 876 'currency': 'EUR' 877 }); 878 879 880 } 881 882 //loadCustomerType(); 883 884 885 $('html, body').animate({ 886 // scrollTop: $("#jetzt-bestellen-angebot-beratung-anfordern,#beratung-anfordern").offset().top 887 }, 1000); // 1000 ms für den Scroll-Effekt 888 }); 889 890 $("#button-beratung-absenden").click(function() { 891 892 if(getCookieValue('cookie_tracking')=='true') 893 { 894 895 console.log('cookie tracking: ' + getCookieValue('cookie_tracking') ); 896 897 gtag('event', 'conversion', { 898 'send_to': 'AW-925552768/py5DCKH16b8bEIChq7kD', 899 'value': 1.0, 900 'currency': 'EUR' 901 }); 902 903 904 } 905 906 //loadCustomerType(); 907 908 909 $('html, body').animate({ 910 // scrollTop: $("#jetzt-bestellen-angebot-beratung-anfordern,#beratung-anfordern").offset().top 911 }, 1000); // 1000 ms für den Scroll-Effekt 912 }); 913 914 915 916 917$(document).on('click', 'a[href^="tel:"]', function (e) { 918 // Optional: Wenn du verhindern willst, dass sofort gewählt wird: 919 // e.preventDefault(); 920 921 // Telefonnummer zuverlässig aus dem Link holen 922 if(getCookieValue('cookie_tracking')=='true') 923 { 924 gtag('event', 'conversion', { 925 'send_to': 'AW-925552768/O9vlCIrf6L8bEIChq7kD', 926 'value': 1.0, 927 'currency': 'EUR' 928 }); 929 930 } 931 932 933}); 934 935 936 937if($( window ).width()<=600) 938{ 939 940$('#inhaltsverzeichnis').hide(); 941 942 943} 944else 945{ 946$('#inhaltsverzeichnis').show(); 947} 948//console.log($( window ).width()); 949 950$(window).scroll(function(){ 951 var scrollPos = $(document).scrollTop(); 952 if(scrollPos>=300) 953 { 954 $('#up-scroller').show("slow"); 955 } 956 else 957 { 958 $('#up-scroller').hide("slow"); 959 } 960 961 // console.log(scrollPos); 962}); 963 964$('#up-scroller').hide(); 965 966function gpsFormatMoney(value) { 967 value = parseFloat(value); 968 969 if (isNaN(value)) { 970 value = 0; 971 } 972 973 return value.toFixed(2).replace('.', ','); 974} 975 976function gpsEscapeHtml(text) { 977 if (typeof text === 'undefined' || text === null) { 978 return ''; 979 } 980 981 return String(text) 982 .replace(/&/g, '&') 983 .replace(/</g, '<') 984 .replace(/>/g, '>') 985 .replace(/"/g, '"') 986 .replace(/'/g, '''); 987} 988 989 990function showCartBar() { 991gpsLoadCartPanel(); 992$("#cart").addClass("active");$("#darkOverlay").addClass("active"); 993} 994 995function hideCartBar() { 996$("#cart").removeClass("active");$("#darkOverlay").removeClass("active"); 997} 998 999$('#aaaaadd_to_cart_button').on('click', function(e) { 1000 1001}); 1002 1003function gpsUpdateCartCount() { 1004 1005 1006 $.ajax({
1007 url: '/xml/shop_cart_get.php', 1008 type: 'GET', 1009 cache: false, 1010 dataType: 'xml', 1011 success: function(xml) { 1012 var countx = parseInt($(xml).find('cart_count').text(), 10); 1013 1014 if (isNaN(countx)) { 1015 countx = 0; 1016 } 1017 1018 $('.lblCartCount').html(countx); 1019 console.log('shop: ' + countx); 1020 if (countx > 0) { 1021 //$('#lblCartCount').show(); 1022 } else { 1023 //$('#lblCartCount').hide(); 1024 } 1025 1026 1027 1028 1029 var path = window.location.pathname.toLowerCase(); 1030 1031 if (path.indexOf('/warenkorb') !== -1 || path.indexOf('shop_checkout.php') !== -1) { 1032 $('.mobile-cart-bar').hide(); 1033 return; 1034 } 1035 1036 if (countx > 0) { 1037 $('.mobile-cart-bar').show(); 1038 } else { 1039 $('.mobile-cart-bar').hide(); 1040 } 1041 1042 1043 1044 1045 } 1046 }); 1047} 1048 1049 1050function gpsRemoveCartItem(itemId) { 1051 $.ajax({
1052 url: '/xml/shop_cart_remove.php', 1053 type: 'POST', 1054 dataType: 'xml', 1055 data: { 1056 item_id: itemId 1057 }, 1058 success: function(xml) { 1059 var ok = $(xml).find('success').text(); 1060 1061 if (ok == '1') { 1062 gpsLoadCartPanel(); 1063 gpsUpdateCartCount(); 1064 1065 if (typeof gpsReloadCheckoutCart === 'function') { 1066 gpsReloadCheckoutCart(); 1067 } 1068 } else { 1069 alert($(xml).find('message').text()); 1070 } 1071 }, 1072 error: function() { 1073 alert('Artikel konnte nicht entfernt werden.'); 1074 } 1075 }); 1076} 1077 1078 1079function gpsLoadCartPanel() { 1080 1081 $('#gpsCartPanelContent').html('<div class="gps-cart-loading">Warenkorb wird geladen...</div>'); 1082 1083 $.ajax({ 1084 url: '/xml/shop_cart_get.php', 1085 type: 'GET', 1086 cache: false, 1087 dataType: 'xml', 1088 success: function(xml) { 1089 var success = $(xml).find('success').text(); 1090 var cartCount = parseInt($(xml).find('cart_count').text(), 10); 1091 1092 if (isNaN(cartCount)) { 1093 cartCount = 0; 1094 } 1095 1096 $('#lblCartCount').text(cartCount); 1097 1098 if (cartCount <= 0) { 1099 $('#lblCartCount').hide(); 1100 1101 $('#gpsCartPanelContent').html( 1102 '<div class="gps-mini-cart-empty">' + 1103 '<h3>Dein Warenkorb ist leer</h3>' + 1104 '<p>Füge ein Produkt hinzu, um mit der Bestellung fortzufahren.</p>' + 1105 '<button type="button" class="gps-mini-cart-close" onclick=$("#cart").removeClass("active");$("#darkOverlay").removeClass("active");>Schließen</button>' + 1106 '</div>' 1107 ); 1108 1109 return; 1110 } 1111 1112 $('#lblCartCount').show(); 1113 1114 var html = ''; 1115 var subtotalNet = 0; 1116 1117 html += '<div class="gps-mini-cart">'; 1118 html += '<div class="gps-mini-cart-head">'; 1119 html += '<h3>Dein Warenkorb</h3>'; 1120 html += '<p>Bestellung für Firmen, Behörden, Vereine und Selbstständige.</p>'; 1121 html += '</div>'; 1122 1123 html += '<div class="gps-mini-cart-items">'; 1124 1125 $(xml).find('item').each(function() { 1126 var itemId = $(this).find('item_id').text(); 1127 var title = $(this).find('name').text(); 1128 var qty = parseInt($(this).find('qty').text(), 10); 1129 var priceNet = parseFloat($(this).find('price_net').text()); 1130 var lineNet = parseFloat($(this).find('line_net').text()); 1131 1132 if (isNaN(qty)) qty = 1; 1133 if (isNaN(priceNet)) priceNet = 0; 1134 if (isNaN(lineNet)) lineNet = priceNet * qty; 1135 1136 subtotalNet += lineNet; 1137 1138 html += '<div class="gps-mini-cart-item">'; 1139 html += ' <div class="gps-mini-cart-title">' + gpsEscapeHtml(title) + '</div>'; 1140 html += ' <div class="gps-mini-cart-meta">'; 1141 html += ' <span>' + qty + ' x ' + gpsFormatMoney(priceNet) + ' EUR netto</span>'; 1142 html += ' <strong>' + gpsFormatMoney(lineNet) + ' EUR</strong>'; 1143 html += ' </div>'; 1144 html += ' <button type="button" class="gps-mini-cart-remove" onclick="gpsRemoveCartItem(\'' + itemId + '\')">Entfernen</button>'; 1145 html += '</div>'; 1146 }); 1147 1148 html += '</div>'; 1149 1150 var vat = subtotalNet * 0.19; 1151 var totalGross = subtotalNet + vat; 1152 1153 html += '<div class="gps-mini-cart-summary">'; 1154 html += ' <div><span>Zwischensumme netto</span><strong>' + gpsFormatMoney(subtotalNet) + ' EUR</strong></div>'; 1155 html += ' <div><span>MwSt. 19 %</span><strong>' + gpsFormatMoney(vat) + ' EUR</strong></div>'; 1156 html += ' <div class="gps-mini-cart-total"><span>Gesamtsumme brutto</span><strong>' + gpsFormatMoney(totalGross) + ' EUR</strong></div>'; 1157 html += '</div>'; 1158 1159 html += '<div class="gps-mini-cart-note">'; 1160 html += 'Alle Preise zzgl. MwSt. - Bestellungen werden nur von Firmen, Behörden, Vereinen und Selbstständigen angenommen.'; 1161 html += '</div>'; 1162 1163 html += '<div class="gps-mini-cart-actions">'; 1164 html += ' <button type="button" class="gps-mini-cart-close" onclick=$("#cart").removeClass("active");$("#darkOverlay").removeClass("active");>Weiter einkaufen</button>'; 1165 html += ' <a class="gps-mini-cart-checkout" href="/warenkorb">Zum Warenkorb</a>'; 1166 html += '</div>'; 1167 1168 html += '</div>'; 1169 1170 $('#gpsCartPanelContent').html(html); 1171 }, 1172 error: function() { 1173 1174 $('#gpsCartPanelContent').html( 1175 '<div class="gps-mini-cart-empty">' + 1176 '<h3>Warenkorb konnte nicht geladen werden</h3>' + 1177 '<p>Bitte versuche es erneut.</p>' + 1178 '</div>' 1179 ); 1180 } 1181 });
1182} 1183 1184$(document).ready(function() { 1185 1186gpsUpdateCartCount(); 1187article_id = $('#article_id').val(); 1188 1189let clickCount = 0; // Klickzähler 1190 1191 // Event für Klicks auf Miniaturbilder 1192 $(".gallery-thumbnails img").on("click", function () { 1193 clickCount++; 1194 1195 if (clickCount > 5) { 1196 // AJAX-Aufruf an PHP-Datei senden 1197 $.ajax({ 1198 url: "/xml/save_click_data.php", // PHP-Datei für den Datenbankeintrag 1199 type: "POST", 1200 data: { 1201 action: "shop_hero_thumbnail_image_click_" + activeTime, 1202 article_id: article_id, 1203 clicks: clickCount 1204 }, 1205 success: function (response) { 1206 // console.log("Daten erfolgreich gespeichert:", response); 1207 }, 1208 error: function (xhr, status, error) { 1209 // console.error("Fehler beim Speichern der Daten:", error); 1210 } 1211 }); 1212 1213 clickCount = 0; // Zähler zurücksetzen 1214 } 1215 }); 1216 1217 1218 1219 1220 1221// console.log(getCookieValue('firstVisit')); 1222// console.log(Math.round(Date.now()/1000)); 1223 1224 1225 1226aktuelle_nachrichten(article_id); 1227 1228 $(".toggle-info").click(function(e) { 1229 e.preventDefault(); // Verhindert das Standardverhalten des Links 1230 $("#info-section").show(); 1231 }); 1232 1233}); 1234 1235 1236 1237/* 1238var scrolledToEnd=false; 1239 1240 1241setCookie('max_scroll', 0,'31'); 1242$(window).scroll(function() { 1243 1244var current_maximum_scrolling_from_cookie = getCookieValue('max_scroll'); 1245 1246 1247 var hT = $('#beratung-anfordern').offset().top, 1248 hH = $('#beratung-anfordern').outerHeight(), 1249 wH = $(window).height(), 1250 wS = $(this).scrollTop(); 1251 var scrollPercent = Math.round(100 * $(window).scrollTop() / ($(document).height() - $(window).height())); 1252 // console.log(Math.round(scrollPercent)); 1253 1254 if((current_maximum_scrolling_from_cookie=="") || (current_maximum_scrolling_from_cookie<scrollPercent)) 1255 { 1256 console.log('set max to ' + scrollPercent); 1257 setCookie('max_scroll', scrollPercent,'31'); 1258 } 1259 1260 1261 if(scrollPercent>=90) 1262 { 1263 //duration = Math.round(Date.now()/1000) - getCookieValue('firstVisit'); 1264 //log('', '>120 + scroll', duration); 1265 1266 } 1267 switch (true) { 1268 case (scrollPercent>=0 && scrollPercent<25): 1269 1270 1271 1272 case (scrollPercent>=25 && scrollPercent<50): 1273 //statements 1274 // 1275 case (scrollPercent>=50 && scrollPercent<75): 1276 //statements 1277 1278 case (scrollPercent>=75 && scrollPercent<=100): 1279 1280 1281 default: 1282 //statements 1283 } 1284 1285 1286if (wS > (hT+hH-wH)){ 1287 1288 1289 1290 if((getCookieValue('scroll_bottom_reached')=='false') || (getCookieValue('scroll_bottom_reached')=="")) 1291 { 1292 setCookie('scroll_bottom_reached', true,'31'); 1293 1294 //console.log( getCookieValue('cookie_tracking') ); 1295 1296 } 1297 1298 1299 1300 1301 if(scrolledToEnd===false) 1302 { 1303 1304 scrolledToEnd=true; 1305 1306 1307 if(getCookieValue("gclid")!="") 1308 { 1309 duration = Math.round(Date.now()/1000) - getCookieValue('firstVisit'); 1310 1311 if(duration>120) 1312 { 1313 //console.log("Active since " + duration + " seconds AND google ad user"); 1314 //console.log( 'scroll_conversion_sent: ' + getCookieValue('scroll_conversion_sent') ); 1315 1316 1317 1318 1319 1320 1321 1322 1323 } 1324 1325 } 1326 } 1327 1328 1329 } 1330}); 1331 1332*/ 1333setInterval(function () { 1334//console.log( $('#gclid').val() ); 1335 // console.log( getCookieValue('cookie_tracking') ); 1336 //console.log( getCookieValue('cloudflareLoadBalancerToken') ); 1337 1338 1339 if(($('#gclid').val()=="") && (getCookieValue('cloudflareLoadBalancerToken') !="")) 1340 { 1341 $('#gclid').val(getCookieValue('cloudflareLoadBalancerToken')); 1342 } 1343 }, 3000); 1344 1345 1346if($('#special_price').val()==1) 1347{ 1348 $('#price-akku-gps-tracker-20000mAh').html('<br><img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 /> Hole aktuelle Preise'); 1349 $('#price-akku-gps-tracker-10000mAh').html('<br><img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 /> Hole aktuelle Preise'); 1350 $('#price-universal-gps-tracker').html('<br><img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 /> Hole aktuelle Preise'); 1351 $('#price-obd-4g-gps-tracker').html('<br><img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 /> Hole aktuelle Preise'); 1352 1353 1354 setTimeout(function () { 1355 1356 1357 //console.log( $('#gclid').val() ); 1358 // console.log( getCookieValue('cookie_tracking') ); 1359 //console.log( getCookieValue('cloudflareLoadBalancerToken') ); 1360 1361 1362 //$('#price-akku-gps-tracker-20000mAh').html('<strike style=\'color: red;\'>267€*</strike><br><span class=\'new_price\'>199</span><span class=\'umsatzsteuer_mehrwertsteuer\'>€ zzgl. USt.</span>'); 1363 //$('#price-akku-gps-tracker-10000mAh').html('<strike style=\'color: red;\'>228€*</strike><br><span class=\'new_price\'>189</span><span class=\'umsatzsteuer_mehrwertsteuer\'>€ zzgl. USt.</span>'); 1364 //$('#price-universal-gps-tracker').html(' <br><span class=\'new_price\'>156</span><span class=\'umsatzsteuer_mehrwertsteuer\'>€ zzgl. USt.</span>'); 1365 //$('#price-obd-4g-gps-tracker').html(' <br><span class=\'new_price\'>239</span><span class=\'umsatzsteuer_mehrwertsteuer\'>€ zzgl. USt.</span>'); 1366 }, 3000); 1367} 1368 1369 1370function getStock(){ 1371 1372 1373 $('#price-obd-4g-gps-tracker').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />');
1374 $('#stock-obd-4g-gps-tracker').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1375 1376 1377 $('#price-akku-gps-tracker-20000mAh').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1378 $('#stock-akku-gps-tracker-20000mAh').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1379 1380 $('#price-akku-gps-tracker-10000mAh').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1381 $('#stock-akku-gps-tracker-10000mAh').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1382 1383 1384 $('#price-universal-gps-tracker').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1385 $('#stock-universal-gps-tracker').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1386 1387 $('#price-remote-cut-4g-gps-tracker').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1388 $('#stock-remote-cut-4g-gps-tracker').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1389 1390 $('#price-4g-gps-tracker-normal').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1391 $('#stock-4g-gps-tracker-normal').html('<img src=\'/icons/reload.gif\' style=\'vertical-align: middle;\' width=28 height=28 />'); 1392 1393 1394 1395 1396 1397 1398 setTimeout(function () { 1399 1400 $.ajax({
1401 type: "GET", 1402 url: "/xml/getStock.php", 1403 data: { 1404 1405 }, 1406 dataType: "xml", 1407 success: function(xml) { 1408 $(xml).find("stock").each(function () { 1409 1410 $('#price-universal-gps-tracker').html(''); 1411 //$('#price-universal-gps-tracker').append("<span itemprop='price'>€" + parseFloat($(this).find("price-universal-gps-tracker").text()).toLocaleString() + "</span> <small>(zzgl. USt.)</small>"); 1412 //$('#price-universal-gps-tracker').append("<br><span>€" + parseFloat((parseFloat($(this).find("price-universal-gps-tracker").text())*1.19).toFixed(2)).toLocaleString() + "</span> <small>(inkl. USt.)</small>"); 1413 $('#price-universal-gps-tracker').append(parseFloat($(this).find("price-universal-gps-tracker").text()).toLocaleString() + " EUR zzgl. USt.<br><small style='font-size: 16px;'>Abgabe nur an gewerbliche Nutzer</small>"); 1414 1415 $('#stock-universal-gps-tracker').html($(this).find("stock-universal-gps-tracker").text()); 1416 // $('#stock-universal-gps-tracker').append('<link itemprop="availability" href="https://schema.org/InStock"/></div>'); 1417 1418 1419 1420 //$('#price-remote-cut-4g-gps-tracker').html("<span itemprop='price'>€" + ($(this).find("price-remote-cut-4g-gps-tracker").text()) + "</span> <small>(zzgl. USt.)</small>"); 1421 //$('#price-remote-cut-4g-gps-tracker').append("<br><span>€" + (parseFloat($(this).find("price-remote-cut-4g-gps-tracker").text())*1.19).toLocaleString() + "</span> <small>(inkl. USt.)</small>"); 1422 1423 //$('#stock-remote-cut-4g-gps-tracker').html($(this).find("stock-remote-cut-4g-gps-tracker").text()); 1424 $('#price-remote-cut-4g-gps-tracker').html(''); 1425 $('#price-remote-cut-4g-gps-tracker').append(parseFloat($(this).find("price-remote-cut-4g-gps-tracker").text()).toLocaleString() + " EUR zzgl. USt.<br><small style='font-size: 16px;'>Abgabe nur an gewerbliche Nutzer</small>"); 1426 1427 1428 1429 $('#price-obd-4g-gps-tracker').html(''); 1430 $('#price-obd-4g-gps-tracker').append(parseFloat($(this).find("price-obd-4g-gps-tracker").text()).toLocaleString() + " EUR zzgl. USt.<br><small style='font-size: 16px;'>Abgabe nur an gewerbliche Nutzer</small>"); 1431 1432 //$('#price-obd-4g-gps-tracker').html("<span itemprop='price'>€" + ($(this).find("price-obd-4g-gps-tracker").text()) + "</span> <small>(zzgl. USt.)</small>"); 1433 //$('#price-obd-4g-gps-tracker').append("<br><span>€" + (parseFloat($(this).find("price-obd-4g-gps-tracker").text())*1.19).toLocaleString() + "</span> <small>(inkl. USt.)</small>"); 1434 1435 //$('#stock-obd-4g-gps-tracker').html($(this).find("stock-obd-4g-gps-tracker").text()); 1436 1437 1438 1439 1440 1441 // $('#price-akku-gps-tracker-20000mAh').html("<span itemprop='price'>€" + ($(this).find("price-akku-gps-tracker-20000mAh").text()) + "</span> <small>(zzgl. USt.)</small>"); 1442 // $('#price-akku-gps-tracker-20000mAh').append("<br><span>€" + (parseFloat($(this).find("price-akku-gps-tracker-20000mAh").text())*1.19).toLocaleString() + "</span> <small>(inkl. USt.)</small>"); 1443 // $('#stock-akku-gps-tracker-20000mAh').html($(this).find("stock-akku-gps-tracker-20000mAh").text()); 1444 1445 $('#price-akku-gps-tracker-20000mAh').html(''); 1446 $('#price-akku-gps-tracker-20000mAh').append(parseFloat($(this).find("price-akku-gps-tracker-20000mAh").text()).toLocaleString() + " EUR zzgl. USt.<br><small style='font-size: 16px;'>Abgabe nur an gewerbliche Nutzer</small>"); 1447 1448 $('#price-4g-gps-tracker-normal').html(''); 1449 $('#price-4g-gps-tracker-normal').append(parseFloat($(this).find("price-4g-gps-tracker-normal").text()).toLocaleString() + " EUR zzgl. USt.<br><small style='font-size: 16px;'>Abgabe nur an gewerbliche Nutzer</small>"); 1450 1451 $('#price-akku-gps-tracker-10000mAh').html("<span itemprop='price'>€" + ($(this).find("price-akku-gps-tracker-10000mAh").text()) + "</span> <small>(zzgl. USt.)</small>"); 1452 $('#price-akku-gps-tracker-10000mAh').append("<br><span>€" + (parseFloat($(this).find("price-akku-gps-tracker-10000mAh").text())*1.19).toLocaleStr
1452ing() + "</span> <small>(inkl. USt.)</small>"); 1453 $('#stock-akku-gps-tracker-10000mAh').html($(this).find("stock-akku-gps-tracker-10000mAh").text()); 1454 1455 1456 1457 1458 }); 1459 }, 1460 error: function () { 1461 $('#price-obd-4g-gps-tracker').html('239€ <small>(zzgl. USt.)</small>'); 1462 $('#stock-obd-4g-gps-tracker').html('>100 Stck.'); 1463 1464 $('#price-akku-gps-tracker-20000mAh').html('<span itemprop="price">267</span> <small>(zzgl. USt.)</small>'); 1465 $('#stock-akku-gps-tracker-20000mAh').html('>100 Stck.'); 1466 1467 $('#price-universal-gps-tracker').html('<span itemprop="price">153,33</span> <small>(zzgl. USt.)</small>'); 1468 $('#stock-universal-gps-tracker').html('>100 Stck.'); 1469 } 1470 1471 1472 1473 }); 1474 //console.log( $('#gclid').val() ); 1475 // console.log( getCookieValue('cookie_tracking') ); 1476 //console.log( getCookieValue('cloudflareLoadBalancerToken') ); 1477 1478 1479 1480 1481 1482 }, 10); 1483 1484 1485 1486 1487 //gtag('event', 'Videos','play','273'); 1488 1489} 1490 1491getStock(); 1492getBlogPost('all'); 1493getShop('all'); 1494 1495 1496function setCookieCustomer(name, value, days) { 1497 let expires = ""; 1498 if (days) { 1499 let date = new Date(); 1500 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 1501 expires = "; expires=" + date.toUTCString(); 1502 } 1503 document.cookie = name + "=" + (value || "") + expires + "; path=/"; 1504 } 1505 1506 function getCookieCustomer(name) { 1507 let nameEQ = name + "="; 1508 let ca = document.cookie.split(';'); 1509 for (let i = 0; i < ca.length; i++) { 1510 let c = ca[i]; 1511 while (c.charAt(0) === ' ') c = c.substring(1, c.length); 1512 if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length); 1513 } 1514 return null; 1515 } 1516$('#businessModal').hide(); 1517$('#shopMaintenance').hide(); 1518 1519function showModal() { 1520 $('#modalBackdrop').show(); 1521 $('#businessModal').show(); 1522 } 1523 1524function hideModal() { 1525 $('#modalBackdrop').hide(); 1526 $('#businessModal').hide(); 1527} 1528 1529function showMaintenance() { 1530 $('#modalBackdrop').show(); 1531 $('#shopMaintenance').show(); 1532 } 1533 1534 1535function setCustomerType(article_id,businessType, action){ 1536 1537 $.ajax({
1538 url: "/xml/save_click_data.php", // PHP-Datei für den Datenbankeintrag 1539 type: "POST", 1540 data: { 1541 action: action, 1542 article_id: article_id 1543 }, 1544 success: function (response) { 1545 // console.log("Daten erfolgreich gespeichert:", response); 1546 }, 1547 error: function (xhr, status, error) { 1548 // console.error("Fehler beim Speichern der Daten:", error); 1549 } 1550}); 1551 1552} 1553 1554function askCustomerType(){ 1555 1556 1557 article_id = $('#article_id').val(); 1558 hasShopModule = $('#hasShopModule').val(); 1559 cloudflareLoadBalancerToken = getCookieCustomer('cloudflareLoadBalancerToken'); 1560 businessType = getCookieCustomer('businessType'); 1561 1562 if(businessType===null) 1563 { 1564 1565 if((hasShopModule=="1")) 1566 { 1567 1568 if (measure_array.includes($('#article_id').val())) 1569 { 1570 1571 1572 1573 1574 if (cloudflareLoadBalancerToken === null) 1575 { 1576 1577 1578 } 1579 else 1580 { 1581 1582 $('#modalBackdrop').show(); 1583 $('#businessModal').show(); 1584 1585 1586 $('#gewerbekundeBtn').click(function() { 1587 setCookieCustomer('businessType', '1', 31); 1588 setCustomerType(article_id,'1','gewerbekundeBtn'); 1589 hideModal(); 1590 }); 1591 1592 1593 $('#privatkundeBtn').click(function() { 1594 setCookieCustomer('businessType', '0', 31); 1595 hideModal(); 1596 1597 }); 1598 1599 1600 } 1601 1602 } 1603 } 1604 } 1605 1606} 1607 1608let timeLeft = 30; // Startwert in Sekunden 1609 //const timerDisplay = document.getElementById('timer-display'); 1610 1611 const timer = setInterval(() => { 1612 timeLeft--; // Zeit um 1 Sekunde verringern 1613 //timerDisplay.textContent = timeLeft; // Zeit anzeigen 1614 1615 if (timeLeft <= 0) { 1616 clearInterval(timer); // Timer stoppen, wenn 0 erreicht ist 1617 askCustomerType(); 1618 } 1619 }, 1000); 1620 1621function loadCustomerType() 1622{ 1623 $('#modalBackdrop').hide(); 1624 $('#businessModal').hide(); 1625 // $('#businessModal').show(); 1626 //https://www.my-gps.org/357-gps-tracker-auto?campaign=test&gclid=test2 1627 article_id = $('#article_id').val(); 1628 hasShopModule = $('#hasShopModule').val(); 1629 cloudflareLoadBalancerToken = getCookieCustomer('cloudflareLoadBalancerToken'); 1630 businessType = getCookieCustomer('businessType'); 1631 console.log(cloudflareLoadBalancerToken); 1632 console.log(hasShopModule); 1633 console.log(businessType); 1634 1635 if(businessType===null) 1636 { 1637 1638 if((hasShopModule=="1")) 1639 { 1640 1641 1642 1643 $('#modalBackdrop').show(); 1644 $('#businessModal').show(); 1645 1646 $('#gewerbekundeBtn').click(function() { 1647 setCookieCustomer('businessType', '1', 31); 1648 1649 if (cloudflareLoadBalancerToken === null) 1650 { 1651 1652 1653 } 1654 else 1655 { 1656 setCustomerType(article_id,'1','gewerbekundeBtn_' + activeTime); 1657 } 1658 1659 1660 1661 hideModal(); 1662 showMaintenance(); 1663 1664 }); 1665 1666 $('#privatkundeBtn').click(function() {
1667 setCookieCustomer('businessType', '0', 31); 1668 hideModal(); 1669 showMaintenance(); 1670 }); 1671 1672 } 1673 1674 1675 } 1676 else 1677 { 1678 // 1679 setCustomerType(article_id,'1','warenkorbBtn_' + activeTime); 1680 showMaintenance(); 1681 } 1682 1683 1684 1685 1686 1687} 1688 1689 1690 1691function isSmartphone() { 1692 return window.innerWidth <= 768; // Beispiel-Bildschirmbreite für mobile Geräte 1693} 1694 1695$(document).ready(function () { 1696$('.whatsapp-button-wrapper').hide(); 1697 1698const currentID = $('#article_id').val(); // Beispiel-ID 1699 1700 1701setTimeout(function () { 1702 1703 1704 // Überprüfen, ob die ID im Array enthalten ist 1705 if (measure_array.includes(currentID) && isSmartphone()) { 1706 $('.whatsapp-button-wrapper').show(); 1707 } 1708 }, 10000); 1709 1710 1711 1712 1713 1714//Basket Opener 1715 1716 const $cart = $('#cart'); 1717 const $overlay = $('#darkOverlay'); 1718 let shopScriptLoaded = false; 1719 1720 1721 1722 $('#cart').show(); 1723 1724 // Warenkorb öffnen 1725 $('.cartButton').click(function () { 1726 $cart.addClass('active'); 1727 $overlay.addClass('active'); 1728 gpsLoadCartPanel(); 1729 1730 1731 /* 1732 if (!shopScriptLoaded) { 1733 const script = document.createElement('script'); 1734 script.src = '/basket/js/shop.js'; // Ersetze durch den Pfad zur JS-Datei 1735 script.onload = function () { 1736 1737 //getBasket(); 1738 1739 }; 1740 //const script2 = document.createElement('script'); 1741 //script2.src = 'https://gps.my-gps.org/system/frontend/trackingportal/mobil/toastr/toastr.js'; // Ersetze durch den Pfad zur JS-Datei 1742 1743 1744 document.body.appendChild(script); 1745 1746 shopScriptLoaded = true; // Markiere das Script als geladen 1747 1748 script.onload = function () { 1749 1750 getBasket(); 1751 1752 }; 1753 script.onerror = function () { 1754 console.error('Fehler beim Laden des Scripts.'); 1755 }; 1756 1757 1758 //getBasket(); 1759 } 1760 else 1761 { 1762 //getBasket(); 1763 } 1764 1765 */ 1766 }); 1767 1768 // Warenkorb schließen 1769 $('#closeCart, #darkOverlay').click(function () { 1770 $cart.removeClass('active'); 1771 $overlay.removeClass('active'); 1772 }); 1773//Basket Opener 1774 1775 1776$('#businessModal').hide(); 1777$('#shopMaintenance').hide(); 1778try 1779{ 1780 const articleText = document.querySelector("#section1").innerText; 1781 const readingTime = calculateReadingTime(articleText); 1782 1783 $('#reading_time').html(" | Lesedauer: ca. " + readingTime + " Minuten"); 1784 article_id = $('#article_id').val(); 1785 1786 /* 1787 $.ajax({ 1788 url: '/xml/reading-time.php', 1789 type: 'POST', 1790 data: { readingTime: readingTime, article_id: article_id }, 1791 dataType: 'json', 1792 success: function (response) { 1793 if (response.success) { 1794 renderSurvey(response.data); 1795 } else { 1796 $("#survey-steps").html('<div class="loading">Umfrage konnte nicht geladen werden.</div>');$('#survey').hide(); 1797 } 1798 }, 1799 error: function () { 1800 $("#survey-steps").html('<div class="loading">Fehler beim Laden der Umfrage.</div>'); 1801 $('#survey').hide(); 1802 } 1803 }); 1804 1805 */ 1806}catch(e){ 1807 1808} 1809 1810 const surveyId = 2; // Beispiel: ID der Umfrage 1811 let currentStep = 0; 1812 let totalSteps = 0; 1813 let surveyAnswers = {}; 1814 1815 article_id = $('#article_id').val(); 1816 fingerprint_id = $('#fingerprint').val(); 1817 1818 let questions_driverLicenseTest = []; 1819 let userAnswers = {};
1820 let currentStep_driverLicenseTest = 0; 1821 1822 1823 // Funktion: Umfrage laden 1824 function loadSurvey(id) { 1825 1826 $("#survey-steps").html('<div class="loading">Umfrage wird geladen...</div>'); 1827 $.ajax({ 1828 url: '/xml/load-survey.php', 1829 type: 'POST', 1830 data: { id: id, article_id: article_id, fingerprint_id: $('#fingerprint').val() }, 1831 dataType: 'json', 1832 success: function (response) { 1833 if (response.success) { 1834 renderSurvey(response.data); 1835 } else { 1836 $("#survey-steps").html('<div class="loading">Umfrage konnte nicht geladen werden.</div>');$('#survey').hide(); 1837 } 1838 }, 1839 error: function () { 1840 $("#survey-steps").html('<div class="loading">Fehler beim Laden der Umfrage.</div>'); 1841 $('#survey').hide(); 1842 } 1843 }); 1844 } 1845 1846 // Funktion: Umfrage rendern 1847 function renderSurvey(data) { 1848 const surveyContainer = $("#survey-steps"); 1849 surveyContainer.empty(); 1850 totalSteps = data.questions.length; 1851 //console.log(data); 1852 1853 $('#survey-description').html(data.description); 1854 $('#survey-title').html(data.title); 1855 data.questions.forEach((question, index) => { 1856 let questionHtml = `<div class="survey-step" id="step-${index}"> 1857 <div class="question">${question.text}</div>`; 1858 1859 if (question.type === 'radio') { 1860 question.options.forEach((option, i) => { 1861 questionHtml += ` 1862 <div class="form-check"> 1863 <input class="form-check-input" type="radio" name="question-${index}" id="option-${index}-${i}" value="${option}"> 1864 <label class="form-check-label" for="option-${index}-${i}">${option}</label> 1865 </div>`; 1866 }); 1867 } else if (question.type === 'checkbox') { 1868 question.options.forEach((option, i) => { 1869 questionHtml += ` 1870 <div class="form-check"> 1871 <input class="form-check-input" type="checkbox" id="option-${index}-${i}" value="${option}"> 1872 <label class="form-check-label" for="option-${index}-${i}">${option}</label> 1873 </div>`; 1874 }); 1875 } else if (question.type === 'text') { 1876 questionHtml += `<textarea class="form-control mb-3" id="text-${index}" placeholder="${question.placeholder || ''}"></textarea>`; 1877 } 1878 1879 questionHtml += `</div>`; 1880 surveyContainer.append(questionHtml); 1881 }); 1882 1883 showStep(currentStep); 1884 } 1885 1886 // Funktion: Aktuellen Schritt anzeigen 1887 function showStep(stepIndex) { 1888 const translateX = -100 * stepIndex; 1889 $("#survey-steps").css("transform", `translateX(${translateX}%)`); 1890 1891 // Buttons steuern 1892 $(".btn-prev").prop("disabled", stepIndex === 0); 1893 $(".btn-next").toggle(stepIndex < totalSteps - 1); 1894 $(".btn-submit").toggle(stepIndex === totalSteps - 1); // "Absenden" nur im letzten Schritt 1895 } 1896 1897 function showSuccessMessage(message) { 1898 // Erfolgsmeldung HTML hinzufügen 1899 const successHtml = ` 1900 <div id="success-message" style="text-align: center; margin-top: 10px;"> 1901 1902 <h2 style="color: green; margin-top: 20px;">${message}</h2> 1903 </div> 1904 `; 1905 1906 // Erfolgsmeldung einfügen 1907 $(".survey-container").html(successHtml); 1908 1909 1910 setTimeout(() => { 1911 $("#survey").fadeOut(1000, function () { 1912 // Erfolgsmeldung bleibt sichtbar 1913 }); 1914}, "5000"); 1915 1916 1917 // Survey-Container ausblenden 1918 //$(".survey-container").fadeOut(5000, function () { 1919 // Erfolgsmeldung bleibt sichtbar 1920 //}); 1921} 1922 1923 // Weiter-Button klicken 1924 $(".btn-next").click(function () { 1925 $('#survey-error-msg').html(''); 1926 if (currentStep < totalSteps - 1) { 1927 const currentQuestion = $(`#step-${currentStep} .question`).text(); 1928 const inputs = $(`#step-${currentStep} input`); 1929 const textInput = $(`#step-${currentStep} textarea`); 1930 1931 if (inputs.length > 0) {
1932 const selectedValues = inputs.filter(":checked").map(function () { 1933 return this.value; 1934 }).get(); 1935 1936 if (selectedValues.length === 0) { 1937 $('#survey-error-msg').html('Bitte wähle mindestens eine Option'); 1938 return; 1939 } 1940 1941 surveyAnswers[currentQuestion] = selectedValues; 1942 } 1943 1944 if (textInput.length > 0) { 1945 const answer = textInput.val(); 1946 if (!answer) { 1947 $('#survey-error-msg').html('Bitte gebe eine Antwort auf die Frage ein'); 1948 return; 1949 } 1950 1951 surveyAnswers[currentQuestion] = answer; 1952 } 1953 1954 currentStep++; 1955 showStep(currentStep); 1956 } 1957 }); 1958 1959 // Zurück-Button klicken 1960 $(".btn-prev").click(function () { 1961 $('#survey-error-msg').html(''); 1962 1963 if (currentStep > 0) { 1964 currentStep--; 1965 showStep(currentStep); 1966 } 1967 }); 1968 1969 $(".btn-submit").click(function () { 1970 const lastQuestion = $(`#step-${currentStep} .question`).text(); 1971 const textInput = $(`#step-${currentStep} textarea`); 1972 if (textInput.length > 0) { 1973 const answer = textInput.val(); 1974 if (!answer) { 1975 // alert("Bitte gib eine Antwort ein."); 1976 // return; 1977 } 1978 surveyAnswers[lastQuestion] = answer; 1979 } 1980 //console.log(surveyAnswers); 1981 //console.log($('#article_id').val()); 1982 // Antworten und Umfrage-ID senden 1983 const payload = { 1984 surveyId: $('#current_survey_id').val(), // Beispiel: ID der aktuellen Umfrage 1985 responses: surveyAnswers, // Beispiel: ID der aktuellen Umfrage 1986 fingerprint_id: $('#fingerprint').val(), 1987 article_id: $('#article_id').val() 1988 }; 1989 // console.log(payload); 1990 $.ajax({
1991 url: '/xml/submit-survey.php', 1992 type: 'POST', 1993 data: JSON.stringify(payload), 1994 contentType: 'application/json', 1995 success: function (response) { 1996 if (response.success) { 1997 showSuccessMessage("Vielen Dank fuer deine Teilnahme!"); 1998 //console.log(response); 1999 2000 //location.reload(); // Optional: Seite neu laden oder eine Bestätigungsseite anzeigen 2001 } else { 2002 2003 $('#survey-error-msg').html('Deine Ergebnisse konnten leider nicht gespeichert werden'); 2004 //alert("Fehler: " + response.message); 2005 } 2006 }, 2007 error: function () { 2008 $('#survey-error-msg').html('Deine Ergebnisse konnten leider nicht gesendet werden'); 2009 } 2010 }); 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021}); 2022 2023 // Initiale Navigation 2024//navigateToStep(0); 2025//fuehrerschein_test(0); // Umfrage laden 2026 2027 if($('#current_survey_id').val()>0) 2028 { 2029 loadSurvey($('#current_survey_id').val()); 2030 } 2031 2032 2033 2034$('.mautrechner').on('change', function() { 2035berechneMaut(); 2036 2037}); 2038 2039 2040 2041 2042 2043 2044 2045 // Fragen laden 2046 2047 function fuehrerschein_test(id){ 2048 $.ajax({
2049 url: '/xml/load-test.php', 2050 type: 'POST', 2051 data: { id: id, article_id: article_id, fingerprint_id: $('#fingerprint').val() }, 2052 dataType: 'json', 2053 success: function (response) { 2054 if (response.success) { 2055 questions_driverLicenseTest = response.data; 2056 renderQuestions(); 2057 } else { 2058 $("#survey-steps").html('<div class="loading">Fuehrerschein-Test konnte nicht geladen werden.</div>');$('#survey').hide(); 2059 } 2060 }, 2061 error: function () { 2062 $("#survey-steps").html('<div class="loading">Fehler beim Laden des Fuehrerschein-Tests</div>'); 2063 $('#survey').hide(); 2064 } 2065 }); 2066 } 2067 2068 2069 2070 function renderQuestions() { 2071 const stepsContainer = document.getElementById("survey-steps"); 2072 questions_driverLicenseTest.forEach((question, index) => { 2073 const stepDiv = document.createElement("div"); 2074 stepDiv.classList.add("survey-step"); 2075 stepDiv.innerHTML = ` 2076 <div class="question"> 2077 <h3>${index + 1}. ${question.question_text}</h3> 2078 </div> 2079 <div class="options"> 2080 ${question.options 2081 .map( 2082 (option) => ` 2083 <label> 2084 <input type="radio" name="question-${question.question_id}" value="${option.option_id}"> 2085 ${option.option_text} 2086 </label> 2087 ` 2088 ) 2089 .join("")} 2090 </div> 2091 `; 2092 stepsContainer.appendChild(stepDiv); 2093 }); 2094 } 2095 2096 function updateButtonsDriverLicenseTest() { 2097 const prevBtn = $("#prev-btn"); 2098 const nextBtn = $("#next-btn"); 2099 const submitBtn = $("#submit-btn"); 2100 2101 if (currentStep_driverLicenseTest === 0) { 2102 prevBtn.disabled = true; 2103 } else { 2104 prevBtn.disabled = false; 2105 } 2106 2107 if (currentStep_driverLicenseTest === questions_driverLicenseTest.length - 1) { 2108 nextBtn.style.display = "none"; 2109 submitBtn.style.display = "inline-block"; 2110 2111 // Validierung: Test abschließen-Button nur aktivieren, wenn eine Auswahl getroffen wurde 2112 const currentQuestion = questions_driverLicenseTest[currentStep_driverLicenseTest]; 2113 const selectedOption = document.querySelector(`input[name="question-${currentQuestion.question_id}"]:checked`); 2114 submitBtn.disabled = !selectedOption; // Button deaktivieren, wenn keine Auswahl 2115 } else { 2116 nextBtn.style.display = "inline-block"; 2117 submitBtn.style.display = "none"; 2118 } 2119 } 2120 2121 2122 function navigateToStep(step) { 2123 const stepsContainer = document.getElementById("survey-steps"); 2124 stepsContainer.style.transform = `translateX(-${step * 100}%)`; 2125 currentStep_driverLicenseTest = step; 2126 updateButtonsDriverLicenseTest(); 2127 } 2128 2129 // Event Listener für Auswahländerungen auf der letzten Seite 2130 function attachLastPageValidation() { 2131 const currentQuestion = questions_driverLicenseTest[currentStep_driverLicenseTest]; 2132 const options = document.querySelectorAll(`input[name="question-${currentQuestion.question_id}"]`); 2133 2134 options.forEach((option) => { 2135 option.addEventListener("change", () => { 2136 const submitBtn = document.getElementById("submit-btn"); 2137 submitBtn.disabled = false; // Aktivieren, wenn eine Antwort ausgewählt wurde 2138 }); 2139 }); 2140 } 2141 $("#prev-btn").click(function() { 2142 // $("#prev-btn").addEventListener("click", () => { 2143 if (currentStep_driverLicenseTest > 0) { 2144 navigateToStep(currentStep_driverLicenseTest - 1); 2145 } 2146 }); 2147 2148 $("#next-btn").click(function() { 2149 const currentQuestion = questions_driverLicenseTest[currentStep_driverLicenseTest]; 2150 const selectedOption = document.querySelector(`input[name="question-${currentQuestion.question_id}"]:checked`); 2151 if (selectedOption) { 2152 userAnswers[currentQuestion.question_id] = selectedOption.value; 2153 if (currentStep_driverLicenseTest < questions_driverLicenseTest.length - 1) { 2154 navigateToStep(currentStep_driverLicenseTest + 1); 2155 2156 // Auf der letzten Seite Event Listener für Validierung hinzufügen 2157 if (currentStep_driverLicenseTest === questions_driverLicenseTest.length - 1) { 2158 attachLastPageValidation(); 2159 } 2160 } 2161 } else { 2162 alert("Bitte wählen Sie eine Antwort aus, bevor Sie fortfahren."); 2163 } 2164 }); 2165 2166 $("#submit-btn").click(function() { 2167 const currentQuestion = questions_driverLicenseTest[currentStep_driverLicenseTest]; 2168 const selectedOption = document.querySelector(`input[name="question-${currentQuestion.question_id}"]:checked`); 2169 if (selectedOption) { 2170 userAnswers[currentQuestion.question_id] = selectedOption.value; 2171 } 2172 2173 fetch("/xml/submit-test.php", { 2174 method: "POST", 2175 headers: { "Content-Type": "application/json" }, 2176 body: JSON.stringify({ fingerprint_id: $('#fingerprint').val(), answers: userAnswers }), 2177 }) 2178 .then((response) => response.json()) 2179 .then((data) => { 2180 if (data.success) { 2181 // document.getElementById("result").style.display = "block"; 2182 var answer = ` 2183 <h2>Ergebnis</h2> 2184 <p>Du hast ${data.score} von ${data.total} Fragen richtig beantwortet.</p> 2185 `; 2186 2187 $('.survey-container').html(answer); 2188 $('.navigation-buttons').hide(1000); 2189 2190 } 2191 }); 2192 }); 2193//getBasket(); 2194 2195}); 2196 2197//activity 2198 2199 2200let idleTime = 0; 2201let active = true; 2202 2203document.addEventListener('mousemove', () => { idleTime = 0; active = true; }); 2204document.addEventListener('keypress', () => { idleTime = 0; active = true; }); 2205 2206setInterval(() => { 2207 idleTime++; 2208 if (idleTime > 60 && active) { 2209 console.log('Benutzer inaktiv > 60 Sek.'); 2210 active = false; 2211 } 2212}, 1000); 2213 2214document.addEventListener('visibilitychange', () => { 2215 if (document.visibilityState === 'hidden') { 2216 let endTime = Date.now(); 2217 let timeSpent = (endTime - startTime) / 1000; // In Sekunden 2218 if (timeSpent >= 30) { // Beispiel: 30 Sekunden 2219 console.log('Tab lost @ ' + timeSpent); 2220 } 2221 } 2222}); 2223 2224// Überwachung von Benutzeraktivitäten 2225function detectActivity() { 2226 lastActivityTime = Date.now(); 2227 activityDetected = true; 2228} 2229 2230// Event-Listener für Mausbewegung, Scrollen und Tastatureingaben 2231['mousemove', 'scroll', 'keydown'].forEach(eventType => { 2232 document.addEventListener(eventType, detectActivity); 2233}); 2234 2235 2236 2237 2238 2239// Timer, der die aktive Verweildauer überwacht 2240setInterval(() => { 2241 2242console.log(decodeURIComponent(getCookieValue('entryPoint'))); 2243console.log( 'activeTime: ' + activeTime + ' // ' + decodeURIComponent(getCookieValue('entryPoint')).includes("gclid=") + ' // BusinessType: ' + getCookieCustomer('businessType') ); 2244 2245//console.log(hasGclid); // true 2246
2247 let currentTime = Date.now(); 2248 2249 // Prüfen, ob der Benutzer in den letzten 5 Sekunden aktiv war 2250 if (currentTime - lastActivityTime <= 5000) { 2251 activeTime += 1; // 1 Sekunde aktive Zeit hinzufügen 2252 //console.log(`Aktive Zeit: ${activeTime} Sekunden`); 2253 } else { 2254 activityDetected = false; // Keine Aktivität festgestellt 2255 } 2256 2257 // Trigger, wenn 30 Sekunden aktive Zeit überschritten wurden 2258 if (activeTime >= 60 && activityDetected) { 2259 console.log( 'activeTime>60: ' + decodeURIComponent(getCookieValue('entryPoint')).includes("gclid=") + ' // BusinessType: ' + getCookieCustomer('businessType') ); 2260 2261 2262 //console.log('120, Hier triggern bei ' + activeTime); 2263 activeTime = 0; // Zurücksetzen, um weitere Microconversions zu vermeiden 2264 if(getCookieValue('cookie_tracking')=='true') 2265 { 2266 2267 gtag('event', 'conversion', {'send_to': 'AW-925552768/jSoYCLTehP0YEIChq7kD'}); 2268 2269 } 2270 2271 2272 if (measure_array.includes($('#article_id').val())) 2273 { 2274 setCustomerType($('#article_id').val(),'1','verweildauer_60'); 2275 } 2276 2277 } 2278 2279 if (activeTime >= 30 && activeTime <60 && activityDetected) { 2280 //console.log('30-59, Hier triggern bei ' + activeTime); 2281 //activeTime = 0; // Zurücksetzen, um weitere Microconversions zu vermeiden 2282 } 2283 2284 if (activeTime >= 60 && activeTime <120 && activityDetected) { 2285 //console.log('60-119, Hier triggern bei ' + activeTime); 2286 //activeTime = 0; // Zurücksetzen, um weitere Microconversions zu vermeiden 2287 2288 2289 } 2290}, 1000); // Überprüfung alle 1 Sekunde 2291 2292 2293const target = document.getElementById('social_bottom'); 2294 2295// Intersection Observer erstellen 2296const observer = new IntersectionObserver((entries, observer) => { 2297 entries.forEach(entry => { 2298 if (entry.isIntersecting) { 2299 2300 2301 if (measure_array.includes($('#article_id').val())) 2302 { 2303 setCustomerType($('#article_id').val(),'1','scroll_bottom_' + activeTime); 2304 observer.disconnect(); 2305 } 2306 2307 //console.log('Social bottom reached after ' + activeTime); 2308 // Optional: Aktionen hier ausführen 2309 } 2310 }); 2311}, { threshold: 0.1 }); // 10% des Elements müssen sichtbar sein 2312 2313// Ziel-Element beobachten 2314observer.observe(target); 2315 2316 2317 2318 2319 2320 2321 2322 2323/* global jQuery */ 2324 2325function mgpsOpenWiderrufModal() { 2326 jQuery('#mgpsWiderrufOverlay').fadeIn(160).attr('aria-hidden', 'false'); 2327 jQuery('body').addClass('mgps-widerruf-open'); 2328 2329 window.setTimeout(function () { 2330 jQuery('#mgpsConsumerName').focus(); 2331 }, 180); 2332} 2333 2334function mgpsCloseWiderrufModal() { 2335 jQuery('#mgpsWiderrufOverlay').fadeOut(140).attr('aria-hidden', 'true'); 2336 jQuery('body').removeClass('mgps-widerruf-open'); 2337 window.location.reload(); 2338} 2339 2340function mgpsShowMessage(type, text) { 2341 var box = jQuery('#mgpsWiderrufMessage'); 2342 2343 box.removeClass('mgps-success mgps-error'); 2344 box.addClass(type === 'success' ? 'mgps-success' : 'mgps-error'); 2345 box.html(text).show(); 2346} 2347 2348function mgpsIsValidEmail(email) { 2349 return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email); 2350} 2351 2352jQuery(function ($) { 2353 2354 $(document).on('keyup', function (e) { 2355 if (e.keyCode === 27) { 2356 mgpsCloseWiderrufModal(); 2357 } 2358 }); 2359 2360 /* 2361 * Wichtig: 2362 * Das Modal wird NICHT mehr geschlossen, wenn der Kunde ausserhalb 2363 * des Fensters in den Overlay-Bereich klickt. 2364 */ 2365 $('#mgpsWiderrufOverlay').on('click', function (e) { 2366 if (e.target === this) { 2367 e.preventDefault(); 2368 e.stopPropagation(); 2369 return false; 2370 } 2371 }); 2372 2373 /* 2374 * Verhindert, dass Klicks im Modal selbst nach oben durchgereicht werden. 2375 */ 2376 $('.mgps-widerruf-modal').on('click', function (e) { 2377 e.stopPropagation(); 2378 }); 2379 2380 $('#mgpsWiderrufForm').on('submit', function (e) { 2381 e.preventDefault(); 2382 2383 var form = $(this); 2384 var submitButton = $('#mgpsWiderrufSubmit'); 2385 var consumerName = $.trim($('#mgpsConsumerName').val()); 2386 var customerNumber = $.trim($('#mgpsCustomerNumber').val()); 2387 var invoiceNumber = $.trim($('#mgpsInvoiceNumber').val()); 2388 var contactEmail = $.trim($('#mgpsContactEmail').val()); 2389 var hasError = false; 2390 2391 $('.mgps-form-row').removeClass('mgps-form-error'); 2392 $('#mgpsWiderrufMessage').hide(); 2393 2394 if (consumerName === '') { 2395 $('#mgpsConsumerName').closest('.mgps-form-row').addClass('mgps-form-error'); 2396 hasError = true; 2397 } 2398 2399 if (customerNumber === '') { 2400 $('#mgpsCustomerNumber').closest('.mgps-form-row').addClass('mgps-form-error'); 2401 hasError = true; 2402 } 2403 2404 if (invoiceNumber === '') { 2405 $('#mgpsInvoiceNumber').closest('.mgps-form-row').addClass('mgps-form-error'); 2406 hasError = true; 2407 } 2408 2409 if (contactEmail === '' || !mgpsIsValidEmail(contactEmail)) { 2410 $('#mgpsContactEmail').closest('.mgps-form-row').addClass('mgps-form-error'); 2411 hasError = true; 2412 } 2413 2414 if (hasError) { 2415 mgpsShowMessage('error', 'Bitte fuelle die markierten Pflichtfelder aus.'); 2416 return false; 2417 } 2418 2419 submitButton.prop('disabled', true).text('Widerruf wird gesendet ...'); 2420 2421 $.ajax({
2422 url: form.attr('action'), 2423 type: 'POST', 2424 data: form.serialize(), 2425 dataType: 'json', 2426 cache: false, 2427 timeout: 20000, 2428 success: function (response) { 2429 if (response && response.success) { 2430 mgpsShowMessage('success', response.message || 'Dein Widerruf wurde \u00fcbermittelt.'); 2431 2432 /* 2433 * Nach erfolgreichem Versand: 2434 * Nur Formularfelder, Labels und Aktionsbuttons ausblenden. 2435 * Erfolgsmeldung bleibt sichtbar. 2436 * Neuer Button "Fenster schließen" wird eingeblendet. 2437 */ 2438 $('#mgpsWiderrufFormFields').hide(); 2439 $('#mgpsWiderrufDoneActions').show(); 2440 2441 form[0].reset(); 2442 } else { 2443 mgpsShowMessage('error', (response && response.message) ? response.message : 'Der Widerruf konnte nicht verarbeitet werden.'); 2444 submitButton.prop('disabled', false).text('Widerruf best\u00e4tigen'); 2445 } 2446 }, 2447 error: function (xhr) { 2448 var message = 'Es ist ein technischer Fehler aufgetreten. Bitte versuche es erneut.'; 2449 2450 if (xhr && xhr.responseText) { 2451 try { 2452 var parsed = $.parseJSON(xhr.responseText); 2453 if (parsed && parsed.message) { 2454 message = parsed.message; 2455 } 2456 } catch (ignore) {} 2457 } 2458 2459 mgpsShowMessage('error', message); 2460 submitButton.prop('disabled', false).text('Widerruf best\u00e4tigen'); 2461 } 2462 }); 2463 2464 return false; 2465 }); 2466});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.