@swisspost/internet-header 1.5.0-beta.0 → 1.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/{klp-widget.controller-675b23db.js → klp-widget.controller-84642428.js} +1712 -1712
  2. package/dist/cjs/klp-widget.controller-84642428.js.map +1 -0
  3. package/dist/cjs/post-klp-login-widget.cjs.entry.js +1 -1
  4. package/dist/cjs/swisspost-internet-header.cjs.entry.js +5 -2
  5. package/dist/cjs/swisspost-internet-header.cjs.entry.js.map +1 -1
  6. package/dist/collection/assets/js/klp-login-widget.js +1716 -1716
  7. package/dist/components/klp-widget.controller.js +1711 -1711
  8. package/dist/components/klp-widget.controller.js.map +1 -1
  9. package/dist/components/swisspost-internet-header.js +5 -2
  10. package/dist/components/swisspost-internet-header.js.map +1 -1
  11. package/dist/esm/{klp-widget.controller-be1eeb16.js → klp-widget.controller-903e0422.js} +1712 -1712
  12. package/dist/esm/klp-widget.controller-903e0422.js.map +1 -0
  13. package/dist/esm/post-klp-login-widget.entry.js +1 -1
  14. package/dist/esm/swisspost-internet-header.entry.js +5 -2
  15. package/dist/esm/swisspost-internet-header.entry.js.map +1 -1
  16. package/dist/esm-es5/{klp-widget.controller-be1eeb16.js → klp-widget.controller-903e0422.js} +2 -2
  17. package/dist/esm-es5/{klp-widget.controller-be1eeb16.js.map → klp-widget.controller-903e0422.js.map} +1 -1
  18. package/dist/esm-es5/post-klp-login-widget.entry.js +1 -1
  19. package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
  20. package/dist/esm-es5/swisspost-internet-header.entry.js.map +1 -1
  21. package/dist/swisspost-internet-header/{p-43cbbf42.entry.js → p-12baacf0.entry.js} +2 -2
  22. package/dist/swisspost-internet-header/{p-43cbbf42.entry.js.map → p-12baacf0.entry.js.map} +0 -0
  23. package/dist/swisspost-internet-header/p-17a47667.system.js +1 -1
  24. package/dist/swisspost-internet-header/p-458c9862.system.entry.js +2 -0
  25. package/dist/swisspost-internet-header/{p-6a09e0b4.system.entry.js.map → p-458c9862.system.entry.js.map} +1 -1
  26. package/dist/swisspost-internet-header/{p-7e653a26.js → p-83f6cd1e.js} +2 -2
  27. package/dist/swisspost-internet-header/{p-7e653a26.js.map → p-83f6cd1e.js.map} +1 -1
  28. package/dist/swisspost-internet-header/{p-4c9ec2d8.system.js → p-872a76a4.system.js} +2 -2
  29. package/dist/swisspost-internet-header/{p-4c9ec2d8.system.js.map → p-872a76a4.system.js.map} +1 -1
  30. package/dist/swisspost-internet-header/{p-cb06a633.system.entry.js → p-b406315a.system.entry.js} +2 -2
  31. package/dist/swisspost-internet-header/{p-cb06a633.system.entry.js.map → p-b406315a.system.entry.js.map} +0 -0
  32. package/dist/swisspost-internet-header/p-fa0c66c7.entry.js +2 -0
  33. package/dist/swisspost-internet-header/{p-bdfd2460.entry.js.map → p-fa0c66c7.entry.js.map} +1 -1
  34. package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/cjs/klp-widget.controller-675b23db.js.map +0 -1
  37. package/dist/esm/klp-widget.controller-be1eeb16.js.map +0 -1
  38. package/dist/swisspost-internet-header/p-6a09e0b4.system.entry.js +0 -2
  39. package/dist/swisspost-internet-header/p-bdfd2460.entry.js +0 -2
@@ -23,5 +23,5 @@ import{a as n,c as t}from"./p-112455b1.js";(function(n){var t;if(typeof window!=
23
23
  *
24
24
  * Date: 2022-12-19
25
25
  */
26
- function(n){var t,e,i,r,o,u,f,s,a,c,l,d,h,p,v,g,b,m,w,y="sizzle"+1*new Date,k=n.document,x=0,C=0,S=an(),E=an(),j=an(),F=an(),T=function(n,t){if(n===t){l=true}return 0},O={}.hasOwnProperty,A=[],R=A.pop,I=A.push,N=A.push,L=A.slice,D=function(n,t){var e=0,i=n.length;for(;e<i;e++){if(n[e]===t){return e}}return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|"+"ismap|loop|multiple|open|readonly|required|scoped",_="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+_+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+_+"*("+U+")(?:"+_+"*([*^$|!~]?=)"+_+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+_+"*\\]",$=":("+U+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|"+".*"+")\\)|)",z=new RegExp(_+"+","g"),q=new RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),J=new RegExp("^"+_+"*,"+_+"*"),W=new RegExp("^"+_+"*([>+~]|"+_+")"+_+"*"),H=new RegExp(_+"|>"),B=new RegExp($),K=new RegExp("^"+U+"$"),X={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nn=/[+~]/,tn=new RegExp("\\\\[\\da-fA-F]{1,6}"+_+"?|\\\\([^\\r\\n\\f])","g"),en=function(n,t){var e="0x"+n.slice(1)-65536;return t?t:e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,e&1023|56320)},rn=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,on=function(n,t){if(t){if(n==="\0"){return"�"}return n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" "}return"\\"+n},un=function(){d()},fn=kn((function(n){return n.disabled===true&&n.nodeName.toLowerCase()==="fieldset"}),{dir:"parentNode",next:"legend"});try{N.apply(A=L.call(k.childNodes),k.childNodes)}catch(n){N={apply:A.length?function(n,t){I.apply(n,L.call(t))}:function(n,t){var e=n.length,i=0;while(n[e++]=t[i++]){}n.length=e-1}}}function sn(n,t,i,r){var o,f,a,c,l,p,b,m=t&&t.ownerDocument,k=t?t.nodeType:9;i=i||[];if(typeof n!=="string"||!n||k!==1&&k!==9&&k!==11){return i}if(!r){d(t);t=t||h;if(v){if(k!==11&&(l=Q.exec(n))){if(o=l[1]){if(k===9){if(a=t.getElementById(o)){if(a.id===o){i.push(a);return i}}else{return i}}else{if(m&&(a=m.getElementById(o))&&w(t,a)&&a.id===o){i.push(a);return i}}}else if(l[2]){N.apply(i,t.getElementsByTagName(n));return i}else if((o=l[3])&&e.getElementsByClassName&&t.getElementsByClassName){N.apply(i,t.getElementsByClassName(o));return i}}if(e.qsa&&!F[n+" "]&&(!g||!g.test(n))&&(k!==1||t.nodeName.toLowerCase()!=="object")){b=n;m=t;if(k===1&&(H.test(n)||W.test(n))){m=nn.test(n)&&mn(t.parentNode)||t;if(m!==t||!e.scope){if(c=t.getAttribute("id")){c=c.replace(rn,on)}else{t.setAttribute("id",c=y)}}p=u(n);f=p.length;while(f--){p[f]=(c?"#"+c:":scope")+" "+yn(p[f])}b=p.join(",")}try{if(e.cssSupportsSelector&&!CSS.supports("selector(:is("+b+"))")){throw new Error}N.apply(i,m.querySelectorAll(b));return i}catch(t){F(n,true)}finally{if(c===y){t.removeAttribute("id")}}}}}return s(n.replace(q,"$1"),t,i,r)}function an(){var n=[];function t(e,r){if(n.push(e+" ")>i.cacheLength){delete t[n.shift()]}return t[e+" "]=r}return t}function cn(n){n[y]=true;return n}function ln(n){var t=h.createElement("fieldset");try{return!!n(t)}catch(n){return false}finally{if(t.parentNode){t.parentNode.removeChild(t)}t=null}}function dn(n,t){var e=n.split("|"),r=e.length;while(r--){i.attrHandle[e[r]]=t}}function hn(n,t){var e=t&&n,i=e&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(i){return i}if(e){while(e=e.nextSibling){if(e===t){return-1}}}return n?1:-1}function pn(n){return function(t){var e=t.nodeName.toLowerCase();return e==="input"&&t.type===n}}function vn(n){return function(t){var e=t.nodeName.toLowerCase();return(e==="input"||e==="button")&&t.type===n}}function gn(n){return function(t){if("form"in t){if(t.parentNode&&t.disabled===false){if("label"in t){if("label"in t.parentNode){return t.parentNode.disabled===n}else{return t.disabled===n}}return t.isDisabled===n||t.isDisabled!==!n&&fn(t)===n}return t.disabled===n}else if("label"in t){return t.disabled===n}return false}}function bn(n){return cn((function(t){t=+t;return cn((function(e,i){var r,o=n([],e.length,t),u=o.length;while(u--){if(e[r=o[u]]){e[r]=!(i[r]=e[r])}}}))}))}function mn(n){return n&&typeof n.getElementsByTagName!=="undefined"&&n}e=sn.support={};o=sn.isXML=function(n){var t=n&&n.namespaceURI,e=n&&(n.ownerDocument||n).documentElement;return!G.test(t||e&&e.nodeName||"HTML")};d=sn.setDocument=function(n){var t,r,u=n?n.ownerDocument||n:k;if(u==h||u.nodeType!==9||!u.documentElement){return h}h=u;p=h.documentElement;v=!o(h);if(k!=h&&(r=h.defaultView)&&r.top!==r){if(r.addEventListener){r.addEventListener("unload",un,false)}else if(r.attachEvent){r.attachEvent("onunload",un)}}e.scope=ln((function(n){p.appendChild(n).appendChild(h.createElement("div"));return typeof n.querySelectorAll!=="undefined"&&!n.querySelectorAll(":scope fieldset div").length}));e.cssSupportsSelector=ln((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}));e.attributes=ln((function(n){n.className="i";return!n.getAttribute("className")}));e.getElementsByTagName=ln((function(n){n.appendChild(h.createComment(""));return!n.getElementsByTagName("*").length}));e.getElementsByClassName=Z.test(h.getElementsByClassName);e.getById=ln((function(n){p.appendChild(n).id=y;return!h.getElementsByName||!h.getElementsByName(y).length}));if(e.getById){i.filter["ID"]=function(n){var t=n.replace(tn,en);return function(n){return n.getAttribute("id")===t}};i.find["ID"]=function(n,t){if(typeof t.getElementById!=="undefined"&&v){var e=t.getElementById(n);return e?[e]:[]}}}else{i.filter["ID"]=function(n){var t=n.replace(tn,en);return function(n){var e=typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id");return e&&e.value===t}};i.find["ID"]=function(n,t){if(typeof t.getElementById!=="undefined"&&v){var e,i,r,o=t.getElementById(n);if(o){e=o.getAttributeNode("id");if(e&&e.value===n){return[o]}r=t.getElementsByName(n);i=0;while(o=r[i++]){e=o.getAttributeNode("id");if(e&&e.value===n){return[o]}}}return[]}}}i.find["TAG"]=e.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!=="undefined"){return t.getElementsByTagName(n)}else if(e.qsa){return t.querySelectorAll(n)}}:function(n,t){var e,i=[],r=0,o=t.getElementsByTagName(n);if(n==="*"){while(e=o[r++]){if(e.nodeType===1){i.push(e)}}return i}return o};i.find["CLASS"]=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!=="undefined"&&v){return t.getElementsByClassName(n)}};b=[];g=[];if(e.qsa=Z.test(h.querySelectorAll)){ln((function(n){var t;p.appendChild(n).innerHTML="<a id='"+y+"'></a>"+"<select id='"+y+"-\r\\' msallowcapture=''>"+"<option selected=''></option></select>";if(n.querySelectorAll("[msallowcapture^='']").length){g.push("[*^$]="+_+"*(?:''|\"\")")}if(!n.querySelectorAll("[selected]").length){g.push("\\["+_+"*(?:value|"+M+")")}if(!n.querySelectorAll("[id~="+y+"-]").length){g.push("~=")}t=h.createElement("input");t.setAttribute("name","");n.appendChild(t);if(!n.querySelectorAll("[name='']").length){g.push("\\["+_+"*name"+_+"*="+_+"*(?:''|\"\")")}if(!n.querySelectorAll(":checked").length){g.push(":checked")}if(!n.querySelectorAll("a#"+y+"+*").length){g.push(".#.+[+~]")}n.querySelectorAll("\\\f");g.push("[\\r\\n\\f]")}));ln((function(n){n.innerHTML="<a href='' disabled='disabled'></a>"+"<select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");if(n.querySelectorAll("[name=d]").length){g.push("name"+_+"*[*^$|!~]?=")}if(n.querySelectorAll(":enabled").length!==2){g.push(":enabled",":disabled")}p.appendChild(n).disabled=true;if(n.querySelectorAll(":disabled").length!==2){g.push(":enabled",":disabled")}n.querySelectorAll("*,:x");g.push(",.*:")}))}if(e.matchesSelector=Z.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector)){ln((function(n){e.disconnectedMatch=m.call(n,"*");m.call(n,"[s!='']:x");b.push("!=",$)}))}if(!e.cssSupportsSelector){g.push(":has")}g=g.length&&new RegExp(g.join("|"));b=b.length&&new RegExp(b.join("|"));t=Z.test(p.compareDocumentPosition);w=t||Z.test(p.contains)?function(n,t){var e=n.nodeType===9&&n.documentElement||n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(e.contains?e.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t){while(t=t.parentNode){if(t===n){return true}}}return false};T=t?function(n,t){if(n===t){l=true;return 0}var i=!n.compareDocumentPosition-!t.compareDocumentPosition;if(i){return i}i=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1;if(i&1||!e.sortDetached&&t.compareDocumentPosition(n)===i){if(n==h||n.ownerDocument==k&&w(k,n)){return-1}if(t==h||t.ownerDocument==k&&w(k,t)){return 1}return c?D(c,n)-D(c,t):0}return i&4?-1:1}:function(n,t){if(n===t){l=true;return 0}var e,i=0,r=n.parentNode,o=t.parentNode,u=[n],f=[t];if(!r||!o){return n==h?-1:t==h?1:r?-1:o?1:c?D(c,n)-D(c,t):0}else if(r===o){return hn(n,t)}e=n;while(e=e.parentNode){u.unshift(e)}e=t;while(e=e.parentNode){f.unshift(e)}while(u[i]===f[i]){i++}return i?hn(u[i],f[i]):u[i]==k?-1:f[i]==k?1:0};return h};sn.matches=function(n,t){return sn(n,null,null,t)};sn.matchesSelector=function(n,t){d(n);if(e.matchesSelector&&v&&!F[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t))){try{var i=m.call(n,t);if(i||e.disconnectedMatch||n.document&&n.document.nodeType!==11){return i}}catch(n){F(t,true)}}return sn(t,h,null,[n]).length>0};sn.contains=function(n,t){if((n.ownerDocument||n)!=h){d(n)}return w(n,t)};sn.attr=function(n,t){if((n.ownerDocument||n)!=h){d(n)}var r=i.attrHandle[t.toLowerCase()],o=r&&O.call(i.attrHandle,t.toLowerCase())?r(n,t,!v):undefined;return o!==undefined?o:e.attributes||!v?n.getAttribute(t):(o=n.getAttributeNode(t))&&o.specified?o.value:null};sn.escape=function(n){return(n+"").replace(rn,on)};sn.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n)};sn.uniqueSort=function(n){var t,i=[],r=0,o=0;l=!e.detectDuplicates;c=!e.sortStable&&n.slice(0);n.sort(T);if(l){while(t=n[o++]){if(t===n[o]){r=i.push(o)}}while(r--){n.splice(i[r],1)}}c=null;return n};r=sn.getText=function(n){var t,e="",i=0,o=n.nodeType;if(!o){while(t=n[i++]){e+=r(t)}}else if(o===1||o===9||o===11){if(typeof n.textContent==="string"){return n.textContent}else{for(n=n.firstChild;n;n=n.nextSibling){e+=r(n)}}}else if(o===3||o===4){return n.nodeValue}return e};i=sn.selectors={cacheLength:50,createPseudo:cn,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){n[1]=n[1].replace(tn,en);n[3]=(n[3]||n[4]||n[5]||"").replace(tn,en);if(n[2]==="~="){n[3]=" "+n[3]+" "}return n.slice(0,4)},CHILD:function(n){n[1]=n[1].toLowerCase();if(n[1].slice(0,3)==="nth"){if(!n[3]){sn.error(n[0])}n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd"));n[5]=+(n[7]+n[8]||n[3]==="odd")}else if(n[3]){sn.error(n[0])}return n},PSEUDO:function(n){var t,e=!n[6]&&n[2];if(X["CHILD"].test(n[0])){return null}if(n[3]){n[2]=n[4]||n[5]||""}else if(e&&B.test(e)&&(t=u(e,true))&&(t=e.indexOf(")",e.length-t)-e.length)){n[0]=n[0].slice(0,t);n[2]=e.slice(0,t)}return n.slice(0,3)}},filter:{TAG:function(n){var t=n.replace(tn,en).toLowerCase();return n==="*"?function(){return true}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=S[n+" "];return t||(t=new RegExp("(^|"+_+")"+n+"("+_+"|$)"))&&S(n,(function(n){return t.test(typeof n.className==="string"&&n.className||typeof n.getAttribute!=="undefined"&&n.getAttribute("class")||"")}))},ATTR:function(n,t,e){return function(i){var r=sn.attr(i,n);if(r==null){return t==="!="}if(!t){return true}r+="";return t==="="?r===e:t==="!="?r!==e:t==="^="?e&&r.indexOf(e)===0:t==="*="?e&&r.indexOf(e)>-1:t==="$="?e&&r.slice(-e.length)===e:t==="~="?(" "+r.replace(z," ")+" ").indexOf(e)>-1:t==="|="?r===e||r.slice(0,e.length+1)===e+"-":false}},CHILD:function(n,t,e,i,r){var o=n.slice(0,3)!=="nth",u=n.slice(-4)!=="last",f=t==="of-type";return i===1&&r===0?function(n){return!!n.parentNode}:function(t,e,s){var a,c,l,d,h,p,v=o!==u?"nextSibling":"previousSibling",g=t.parentNode,b=f&&t.nodeName.toLowerCase(),m=!s&&!f,w=false;if(g){if(o){while(v){d=t;while(d=d[v]){if(f?d.nodeName.toLowerCase()===b:d.nodeType===1){return false}}p=v=n==="only"&&!p&&"nextSibling"}return true}p=[u?g.firstChild:g.lastChild];if(u&&m){d=g;l=d[y]||(d[y]={});c=l[d.uniqueID]||(l[d.uniqueID]={});a=c[n]||[];h=a[0]===x&&a[1];w=h&&a[2];d=h&&g.childNodes[h];while(d=++h&&d&&d[v]||(w=h=0)||p.pop()){if(d.nodeType===1&&++w&&d===t){c[n]=[x,h,w];break}}}else{if(m){d=t;l=d[y]||(d[y]={});c=l[d.uniqueID]||(l[d.uniqueID]={});a=c[n]||[];h=a[0]===x&&a[1];w=h}if(w===false){while(d=++h&&d&&d[v]||(w=h=0)||p.pop()){if((f?d.nodeName.toLowerCase()===b:d.nodeType===1)&&++w){if(m){l=d[y]||(d[y]={});c=l[d.uniqueID]||(l[d.uniqueID]={});c[n]=[x,w]}if(d===t){break}}}}}w-=r;return w===i||w%i===0&&w/i>=0}}},PSEUDO:function(n,t){var e,r=i.pseudos[n]||i.setFilters[n.toLowerCase()]||sn.error("unsupported pseudo: "+n);if(r[y]){return r(t)}if(r.length>1){e=[n,n,"",t];return i.setFilters.hasOwnProperty(n.toLowerCase())?cn((function(n,e){var i,o=r(n,t),u=o.length;while(u--){i=D(n,o[u]);n[i]=!(e[i]=o[u])}})):function(n){return r(n,0,e)}}return r}},pseudos:{not:cn((function(n){var t=[],e=[],i=f(n.replace(q,"$1"));return i[y]?cn((function(n,t,e,r){var o,u=i(n,null,r,[]),f=n.length;while(f--){if(o=u[f]){n[f]=!(t[f]=o)}}})):function(n,r,o){t[0]=n;i(t,null,o,e);t[0]=null;return!e.pop()}})),has:cn((function(n){return function(t){return sn(n,t).length>0}})),contains:cn((function(n){n=n.replace(tn,en);return function(t){return(t.textContent||r(t)).indexOf(n)>-1}})),lang:cn((function(n){if(!K.test(n||"")){sn.error("unsupported lang: "+n)}n=n.replace(tn,en).toLowerCase();return function(t){var e;do{if(e=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){e=e.toLowerCase();return e===n||e.indexOf(n+"-")===0}}while((t=t.parentNode)&&t.nodeType===1);return false}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(n){return n===p},focus:function(n){return n===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:gn(false),disabled:gn(true),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.selected===true},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling){if(n.nodeType<6){return false}}return true},parent:function(n){return!i.pseudos["empty"](n)},header:function(n){return V.test(n.nodeName)},input:function(n){return Y.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:bn((function(){return[0]})),last:bn((function(n,t){return[t-1]})),eq:bn((function(n,t,e){return[e<0?e+t:e]})),even:bn((function(n,t){var e=0;for(;e<t;e+=2){n.push(e)}return n})),odd:bn((function(n,t){var e=1;for(;e<t;e+=2){n.push(e)}return n})),lt:bn((function(n,t,e){var i=e<0?e+t:e>t?t:e;for(;--i>=0;){n.push(i)}return n})),gt:bn((function(n,t,e){var i=e<0?e+t:e;for(;++i<t;){n.push(i)}return n}))}};i.pseudos["nth"]=i.pseudos["eq"];for(t in{radio:true,checkbox:true,file:true,password:true,image:true}){i.pseudos[t]=pn(t)}for(t in{submit:true,reset:true}){i.pseudos[t]=vn(t)}function wn(){}wn.prototype=i.filters=i.pseudos;i.setFilters=new wn;u=sn.tokenize=function(n,t){var e,r,o,u,f,s,a,c=E[n+" "];if(c){return t?0:c.slice(0)}f=n;s=[];a=i.preFilter;while(f){if(!e||(r=J.exec(f))){if(r){f=f.slice(r[0].length)||f}s.push(o=[])}e=false;if(r=W.exec(f)){e=r.shift();o.push({value:e,type:r[0].replace(q," ")});f=f.slice(e.length)}for(u in i.filter){if((r=X[u].exec(f))&&(!a[u]||(r=a[u](r)))){e=r.shift();o.push({value:e,type:u,matches:r});f=f.slice(e.length)}}if(!e){break}}return t?f.length:f?sn.error(n):E(n,s).slice(0)};function yn(n){var t=0,e=n.length,i="";for(;t<e;t++){i+=n[t].value}return i}function kn(n,t,e){var i=t.dir,r=t.next,o=r||i,u=e&&o==="parentNode",f=C++;return t.first?function(t,e,r){while(t=t[i]){if(t.nodeType===1||u){return n(t,e,r)}}return false}:function(t,e,s){var a,c,l,d=[x,f];if(s){while(t=t[i]){if(t.nodeType===1||u){if(n(t,e,s)){return true}}}}else{while(t=t[i]){if(t.nodeType===1||u){l=t[y]||(t[y]={});c=l[t.uniqueID]||(l[t.uniqueID]={});if(r&&r===t.nodeName.toLowerCase()){t=t[i]||t}else if((a=c[o])&&a[0]===x&&a[1]===f){return d[2]=a[2]}else{c[o]=d;if(d[2]=n(t,e,s)){return true}}}}}return false}}function xn(n){return n.length>1?function(t,e,i){var r=n.length;while(r--){if(!n[r](t,e,i)){return false}}return true}:n[0]}function Cn(n,t,e){var i=0,r=t.length;for(;i<r;i++){sn(n,t[i],e)}return e}function Sn(n,t,e,i,r){var o,u=[],f=0,s=n.length,a=t!=null;for(;f<s;f++){if(o=n[f]){if(!e||e(o,i,r)){u.push(o);if(a){t.push(f)}}}}return u}function En(n,t,e,i,r,o){if(i&&!i[y]){i=En(i)}if(r&&!r[y]){r=En(r,o)}return cn((function(o,u,f,s){var a,c,l,d=[],h=[],p=u.length,v=o||Cn(t||"*",f.nodeType?[f]:f,[]),g=n&&(o||!t)?Sn(v,d,n,f,s):v,b=e?r||(o?n:p||i)?[]:u:g;if(e){e(g,b,f,s)}if(i){a=Sn(b,h);i(a,[],f,s);c=a.length;while(c--){if(l=a[c]){b[h[c]]=!(g[h[c]]=l)}}}if(o){if(r||n){if(r){a=[];c=b.length;while(c--){if(l=b[c]){a.push(g[c]=l)}}r(null,b=[],a,s)}c=b.length;while(c--){if((l=b[c])&&(a=r?D(o,l):d[c])>-1){o[a]=!(u[a]=l)}}}}else{b=Sn(b===u?b.splice(p,b.length):b);if(r){r(null,u,b,s)}else{N.apply(u,b)}}}))}function jn(n){var t,e,r,o=n.length,u=i.relative[n[0].type],f=u||i.relative[" "],s=u?1:0,c=kn((function(n){return n===t}),f,true),l=kn((function(n){return D(t,n)>-1}),f,true),d=[function(n,e,i){var r=!u&&(i||e!==a)||((t=e).nodeType?c(n,e,i):l(n,e,i));t=null;return r}];for(;s<o;s++){if(e=i.relative[n[s].type]){d=[kn(xn(d),e)]}else{e=i.filter[n[s].type].apply(null,n[s].matches);if(e[y]){r=++s;for(;r<o;r++){if(i.relative[n[r].type]){break}}return En(s>1&&xn(d),s>1&&yn(n.slice(0,s-1).concat({value:n[s-2].type===" "?"*":""})).replace(q,"$1"),e,s<r&&jn(n.slice(s,r)),r<o&&jn(n=n.slice(r)),r<o&&yn(n))}d.push(e)}}return xn(d)}function Fn(n,t){var e=t.length>0,r=n.length>0,o=function(o,u,f,s,c){var l,p,g,b=0,m="0",w=o&&[],y=[],k=a,C=o||r&&i.find["TAG"]("*",c),S=x+=k==null?1:Math.random()||.1,E=C.length;if(c){a=u==h||u||c}for(;m!==E&&(l=C[m])!=null;m++){if(r&&l){p=0;if(!u&&l.ownerDocument!=h){d(l);f=!v}while(g=n[p++]){if(g(l,u||h,f)){s.push(l);break}}if(c){x=S}}if(e){if(l=!g&&l){b--}if(o){w.push(l)}}}b+=m;if(e&&m!==b){p=0;while(g=t[p++]){g(w,y,u,f)}if(o){if(b>0){while(m--){if(!(w[m]||y[m])){y[m]=R.call(s)}}}y=Sn(y)}N.apply(s,y);if(c&&!o&&y.length>0&&b+t.length>1){sn.uniqueSort(s)}}if(c){x=S;a=k}return w};return e?cn(o):o}f=sn.compile=function(n,t){var e,i=[],r=[],o=j[n+" "];if(!o){if(!t){t=u(n)}e=t.length;while(e--){o=jn(t[e]);if(o[y]){i.push(o)}else{r.push(o)}}o=j(n,Fn(r,i));o.selector=n}return o};s=sn.select=function(n,t,e,r){var o,s,a,c,l,d=typeof n==="function"&&n,h=!r&&u(n=d.selector||n);e=e||[];if(h.length===1){s=h[0]=h[0].slice(0);if(s.length>2&&(a=s[0]).type==="ID"&&t.nodeType===9&&v&&i.relative[s[1].type]){t=(i.find["ID"](a.matches[0].replace(tn,en),t)||[])[0];if(!t){return e}else if(d){t=t.parentNode}n=n.slice(s.shift().value.length)}o=X["needsContext"].test(n)?0:s.length;while(o--){a=s[o];if(i.relative[c=a.type]){break}if(l=i.find[c]){if(r=l(a.matches[0].replace(tn,en),nn.test(s[0].type)&&mn(t.parentNode)||t)){s.splice(o,1);n=r.length&&yn(s);if(!n){N.apply(e,r);return e}break}}}}(d||f(n,h))(r,t,!v,e,!t||nn.test(n)&&mn(t.parentNode)||t);return e};e.sortStable=y.split("").sort(T).join("")===y;e.detectDuplicates=!!l;d();e.sortDetached=ln((function(n){return n.compareDocumentPosition(h.createElement("fieldset"))&1}));if(!ln((function(n){n.innerHTML="<a href='#'></a>";return n.firstChild.getAttribute("href")==="#"}))){dn("type|href|height|width",(function(n,t,e){if(!e){return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}}))}if(!e.attributes||!ln((function(n){n.innerHTML="<input/>";n.firstChild.setAttribute("value","");return n.firstChild.getAttribute("value")===""}))){dn("value",(function(n,t,e){if(!e&&n.nodeName.toLowerCase()==="input"){return n.defaultValue}}))}if(!ln((function(n){return n.getAttribute("disabled")==null}))){dn(M,(function(n,t,e){var i;if(!e){return n[t]===true?t.toLowerCase():(i=n.getAttributeNode(t))&&i.specified?i.value:null}}))}return sn}(n);k.find=C;k.expr=C.selectors;k.expr[":"]=k.expr.pseudos;k.uniqueSort=k.unique=C.uniqueSort;k.text=C.getText;k.isXMLDoc=C.isXML;k.contains=C.contains;k.escapeSelector=C.escape;var S=function(n,t,e){var i=[],r=e!==undefined;while((n=n[t])&&n.nodeType!==9){if(n.nodeType===1){if(r&&k(n).is(e)){break}i.push(n)}}return i};var E=function(n,t){var e=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==t){e.push(n)}}return e};var j=k.expr.match.needsContext;function F(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(n,t,e){if(p(t)){return k.grep(n,(function(n,i){return!!t.call(n,i,n)!==e}))}if(t.nodeType){return k.grep(n,(function(n){return n===t!==e}))}if(typeof t!=="string"){return k.grep(n,(function(n){return f.call(t,n)>-1!==e}))}return k.filter(t,n,e)}k.filter=function(n,t,e){var i=t[0];if(e){n=":not("+n+")"}if(t.length===1&&i.nodeType===1){return k.find.matchesSelector(i,n)?[i]:[]}return k.find.matches(n,k.grep(t,(function(n){return n.nodeType===1})))};k.fn.extend({find:function(n){var t,e,i=this.length,r=this;if(typeof n!=="string"){return this.pushStack(k(n).filter((function(){for(t=0;t<i;t++){if(k.contains(r[t],this)){return true}}})))}e=this.pushStack([]);for(t=0;t<i;t++){k.find(n,r[t],e)}return i>1?k.uniqueSort(e):e},filter:function(n){return this.pushStack(O(this,n||[],false))},not:function(n){return this.pushStack(O(this,n||[],true))},is:function(n){return!!O(this,typeof n==="string"&&j.test(n)?k(n):n||[],false).length}});var A,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,I=k.fn.init=function(n,t,e){var i,r;if(!n){return this}e=e||A;if(typeof n==="string"){if(n[0]==="<"&&n[n.length-1]===">"&&n.length>=3){i=[null,n,null]}else{i=R.exec(n)}if(i&&(i[1]||!t)){if(i[1]){t=t instanceof k?t[0]:t;k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,true));if(T.test(i[1])&&k.isPlainObject(t)){for(i in t){if(p(this[i])){this[i](t[i])}else{this.attr(i,t[i])}}}return this}else{r=g.getElementById(i[2]);if(r){this[0]=r;this.length=1}return this}}else if(!t||t.jquery){return(t||e).find(n)}else{return this.constructor(t).find(n)}}else if(n.nodeType){this[0]=n;this.length=1;return this}else if(p(n)){return e.ready!==undefined?e.ready(n):n(k)}return k.makeArray(n,this)};I.prototype=k.fn;A=k(g);var N=/^(?:parents|prev(?:Until|All))/,L={children:true,contents:true,next:true,prev:true};k.fn.extend({has:function(n){var t=k(n,this),e=t.length;return this.filter((function(){var n=0;for(;n<e;n++){if(k.contains(this,t[n])){return true}}}))},closest:function(n,t){var e,i=0,r=this.length,o=[],u=typeof n!=="string"&&k(n);if(!j.test(n)){for(;i<r;i++){for(e=this[i];e&&e!==t;e=e.parentNode){if(e.nodeType<11&&(u?u.index(e)>-1:e.nodeType===1&&k.find.matchesSelector(e,n))){o.push(e);break}}}}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(n){if(!n){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof n==="string"){return f.call(k(n),this[0])}return f.call(this,n.jquery?n[0]:n)},add:function(n,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});function D(n,t){while((n=n[t])&&n.nodeType!==1){}return n}k.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return S(n,"parentNode")},parentsUntil:function(n,t,e){return S(n,"parentNode",e)},next:function(n){return D(n,"nextSibling")},prev:function(n){return D(n,"previousSibling")},nextAll:function(n){return S(n,"nextSibling")},prevAll:function(n){return S(n,"previousSibling")},nextUntil:function(n,t,e){return S(n,"nextSibling",e)},prevUntil:function(n,t,e){return S(n,"previousSibling",e)},siblings:function(n){return E((n.parentNode||{}).firstChild,n)},children:function(n){return E(n.firstChild)},contents:function(n){if(n.contentDocument!=null&&i(n.contentDocument)){return n.contentDocument}if(F(n,"template")){n=n.content||n}return k.merge([],n.childNodes)}},(function(n,t){k.fn[n]=function(e,i){var r=k.map(this,t,e);if(n.slice(-5)!=="Until"){i=e}if(i&&typeof i==="string"){r=k.filter(i,r)}if(this.length>1){if(!L[n]){k.uniqueSort(r)}if(N.test(n)){r.reverse()}}return this.pushStack(r)}}));var M=/[^\x20\t\r\n\f]+/g;function _(n){var t={};k.each(n.match(M)||[],(function(n,e){t[e]=true}));return t}k.Callbacks=function(n){n=typeof n==="string"?_(n):k.extend({},n);var t,e,i,r,o=[],u=[],f=-1,s=function(){r=r||n.once;i=t=true;for(;u.length;f=-1){e=u.shift();while(++f<o.length){if(o[f].apply(e[0],e[1])===false&&n.stopOnFalse){f=o.length;e=false}}}if(!n.memory){e=false}t=false;if(r){if(e){o=[]}else{o=""}}},a={add:function(){if(o){if(e&&!t){f=o.length-1;u.push(e)}(function t(e){k.each(e,(function(e,i){if(p(i)){if(!n.unique||!a.has(i)){o.push(i)}}else if(i&&i.length&&w(i)!=="string"){t(i)}}))})(arguments);if(e&&!t){s()}}return this},remove:function(){k.each(arguments,(function(n,t){var e;while((e=k.inArray(t,o,e))>-1){o.splice(e,1);if(e<=f){f--}}}));return this},has:function(n){return n?k.inArray(n,o)>-1:o.length>0},empty:function(){if(o){o=[]}return this},disable:function(){r=u=[];o=e="";return this},disabled:function(){return!o},lock:function(){r=u=[];if(!e&&!t){o=e=""}return this},locked:function(){return!!r},fireWith:function(n,e){if(!r){e=e||[];e=[n,e.slice?e.slice():e];u.push(e);if(!t){s()}}return this},fire:function(){a.fireWith(this,arguments);return this},fired:function(){return!!i}};return a};function U(n){return n}function P(n){throw n}function $(n,t,e,i){var r;try{if(n&&p(r=n.promise)){r.call(n).done(t).fail(e)}else if(n&&p(r=n.then)){r.call(n,t,e)}else{t.apply(undefined,[n].slice(i))}}catch(n){e.apply(undefined,[n])}}k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){o.done(arguments).fail(arguments);return this},catch:function(n){return r.then(null,n)},pipe:function(){var n=arguments;return k.Deferred((function(t){k.each(e,(function(e,i){var r=p(n[i[4]])&&n[i[4]];o[i[1]]((function(){var n=r&&r.apply(this,arguments);if(n&&p(n.promise)){n.promise().progress(t.notify).done(t.resolve).fail(t.reject)}else{t[i[0]+"With"](this,r?[n]:arguments)}}))}));n=null})).promise()},then:function(t,i,r){var o=0;function u(t,e,i,r){return function(){var f=this,s=arguments,a=function(){var n,a;if(t<o){return}n=i.apply(f,s);if(n===e.promise()){throw new TypeError("Thenable self-resolution")}a=n&&(typeof n==="object"||typeof n==="function")&&n.then;if(p(a)){if(r){a.call(n,u(o,e,U,r),u(o,e,P,r))}else{o++;a.call(n,u(o,e,U,r),u(o,e,P,r),u(o,e,U,e.notifyWith))}}else{if(i!==U){f=undefined;s=[n]}(r||e.resolveWith)(f,s)}},c=r?a:function(){try{a()}catch(n){if(k.Deferred.exceptionHook){k.Deferred.exceptionHook(n,c.stackTrace)}if(t+1>=o){if(i!==P){f=undefined;s=[n]}e.rejectWith(f,s)}}};if(t){c()}else{if(k.Deferred.getStackHook){c.stackTrace=k.Deferred.getStackHook()}n.setTimeout(c)}}}return k.Deferred((function(n){e[0][3].add(u(0,n,p(r)?r:U,n.notifyWith));e[1][3].add(u(0,n,p(t)?t:U));e[2][3].add(u(0,n,p(i)?i:P))})).promise()},promise:function(n){return n!=null?k.extend(n,r):r}},o={};k.each(e,(function(n,t){var u=t[2],f=t[5];r[t[1]]=u.add;if(f){u.add((function(){i=f}),e[3-n][2].disable,e[3-n][3].disable,e[0][2].lock,e[0][3].lock)}u.add(t[3].fire);o[t[0]]=function(){o[t[0]+"With"](this===o?undefined:this,arguments);return this};o[t[0]+"With"]=u.fireWith}));r.promise(o);if(t){t.call(o,o)}return o},when:function(n){var t=arguments.length,e=t,i=Array(e),o=r.call(arguments),u=k.Deferred(),f=function(n){return function(e){i[n]=this;o[n]=arguments.length>1?r.call(arguments):e;if(!--t){u.resolveWith(i,o)}}};if(t<=1){$(n,u.done(f(e)).resolve,u.reject,!t);if(u.state()==="pending"||p(o[e]&&o[e].then)){return u.then()}}while(e--){$(o[e],f(e),u.reject)}return u.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){if(n.console&&n.console.warn&&t&&z.test(t.name)){n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)}};k.readyException=function(t){n.setTimeout((function(){throw t}))};var q=k.Deferred();k.fn.ready=function(n){q.then(n).catch((function(n){k.readyException(n)}));return this};k.extend({isReady:false,readyWait:1,ready:function(n){if(n===true?--k.readyWait:k.isReady){return}k.isReady=true;if(n!==true&&--k.readyWait>0){return}q.resolveWith(g,[k])}});k.ready.then=q.then;function J(){g.removeEventListener("DOMContentLoaded",J);n.removeEventListener("load",J);k.ready()}if(g.readyState==="complete"||g.readyState!=="loading"&&!g.documentElement.doScroll){n.setTimeout(k.ready)}else{g.addEventListener("DOMContentLoaded",J);n.addEventListener("load",J)}var W=function(n,t,e,i,r,o,u){var f=0,s=n.length,a=e==null;if(w(e)==="object"){r=true;for(f in e){W(n,t,f,e[f],true,o,u)}}else if(i!==undefined){r=true;if(!p(i)){u=true}if(a){if(u){t.call(n,i);t=null}else{a=t;t=function(n,t,e){return a.call(k(n),e)}}}if(t){for(;f<s;f++){t(n[f],e,u?i:i.call(n[f],f,t(n[f],e)))}}}if(r){return n}if(a){return t.call(n)}return s?t(n[0],e):o};var H=/^-ms-/,B=/-([a-z])/g;function K(n,t){return t.toUpperCase()}function X(n){return n.replace(H,"ms-").replace(B,K)}var G=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};function Y(){this.expando=k.expando+Y.uid++}Y.uid=1;Y.prototype={cache:function(n){var t=n[this.expando];if(!t){t={};if(G(n)){if(n.nodeType){n[this.expando]=t}else{Object.defineProperty(n,this.expando,{value:t,configurable:true})}}}return t},set:function(n,t,e){var i,r=this.cache(n);if(typeof t==="string"){r[X(t)]=e}else{for(i in t){r[X(i)]=t[i]}}return r},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][X(t)]},access:function(n,t,e){if(t===undefined||t&&typeof t==="string"&&e===undefined){return this.get(n,t)}this.set(n,t,e);return e!==undefined?e:t},remove:function(n,t){var e,i=n[this.expando];if(i===undefined){return}if(t!==undefined){if(Array.isArray(t)){t=t.map(X)}else{t=X(t);t=t in i?[t]:t.match(M)||[]}e=t.length;while(e--){delete i[t[e]]}}if(t===undefined||k.isEmptyObject(i)){if(n.nodeType){n[this.expando]=undefined}else{delete n[this.expando]}}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!k.isEmptyObject(t)}};var V=new Y;var Z=new Y;var Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nn=/[A-Z]/g;function tn(n){if(n==="true"){return true}if(n==="false"){return false}if(n==="null"){return null}if(n===+n+""){return+n}if(Q.test(n)){return JSON.parse(n)}return n}function en(n,t,e){var i;if(e===undefined&&n.nodeType===1){i="data-"+t.replace(nn,"-$&").toLowerCase();e=n.getAttribute(i);if(typeof e==="string"){try{e=tn(e)}catch(n){}Z.set(n,t,e)}else{e=undefined}}return e}k.extend({hasData:function(n){return Z.hasData(n)||V.hasData(n)},data:function(n,t,e){return Z.access(n,t,e)},removeData:function(n,t){Z.remove(n,t)},_data:function(n,t,e){return V.access(n,t,e)},_removeData:function(n,t){V.remove(n,t)}});k.fn.extend({data:function(n,t){var e,i,r,o=this[0],u=o&&o.attributes;if(n===undefined){if(this.length){r=Z.get(o);if(o.nodeType===1&&!V.get(o,"hasDataAttrs")){e=u.length;while(e--){if(u[e]){i=u[e].name;if(i.indexOf("data-")===0){i=X(i.slice(5));en(o,i,r[i])}}}V.set(o,"hasDataAttrs",true)}}return r}if(typeof n==="object"){return this.each((function(){Z.set(this,n)}))}return W(this,(function(t){var e;if(o&&t===undefined){e=Z.get(o,n);if(e!==undefined){return e}e=en(o,n);if(e!==undefined){return e}return}this.each((function(){Z.set(this,n,t)}))}),null,t,arguments.length>1,null,true)},removeData:function(n){return this.each((function(){Z.remove(this,n)}))}});k.extend({queue:function(n,t,e){var i;if(n){t=(t||"fx")+"queue";i=V.get(n,t);if(e){if(!i||Array.isArray(e)){i=V.access(n,t,k.makeArray(e))}else{i.push(e)}}return i||[]}},dequeue:function(n,t){t=t||"fx";var e=k.queue(n,t),i=e.length,r=e.shift(),o=k._queueHooks(n,t),u=function(){k.dequeue(n,t)};if(r==="inprogress"){r=e.shift();i--}if(r){if(t==="fx"){e.unshift("inprogress")}delete o.stop;r.call(n,u,o)}if(!i&&o){o.empty.fire()}},_queueHooks:function(n,t){var e=t+"queueHooks";return V.get(n,e)||V.access(n,e,{empty:k.Callbacks("once memory").add((function(){V.remove(n,[t+"queue",e])}))})}});k.fn.extend({queue:function(n,t){var e=2;if(typeof n!=="string"){t=n;n="fx";e--}if(arguments.length<e){return k.queue(this[0],n)}return t===undefined?this:this.each((function(){var e=k.queue(this,n,t);k._queueHooks(this,n);if(n==="fx"&&e[0]!=="inprogress"){k.dequeue(this,n)}}))},dequeue:function(n){return this.each((function(){k.dequeue(this,n)}))},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var e,i=1,r=k.Deferred(),o=this,u=this.length,f=function(){if(!--i){r.resolveWith(o,[o])}};if(typeof n!=="string"){t=n;n=undefined}n=n||"fx";while(u--){e=V.get(o[u],n+"queueHooks");if(e&&e.empty){i++;e.empty.add(f)}}f();return r.promise(t)}});var rn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var on=new RegExp("^(?:([+-])=|)("+rn+")([a-z%]*)$","i");var un=["Top","Right","Bottom","Left"];var fn=g.documentElement;var sn=function(n){return k.contains(n.ownerDocument,n)},an={composed:true};if(fn.getRootNode){sn=function(n){return k.contains(n.ownerDocument,n)||n.getRootNode(an)===n.ownerDocument}}var cn=function(n,t){n=t||n;return n.style.display==="none"||n.style.display===""&&sn(n)&&k.css(n,"display")==="none"};function ln(n,t,e,i){var r,o,u=20,f=i?function(){return i.cur()}:function(){return k.css(n,t,"")},s=f(),a=e&&e[3]||(k.cssNumber[t]?"":"px"),c=n.nodeType&&(k.cssNumber[t]||a!=="px"&&+s)&&on.exec(k.css(n,t));if(c&&c[3]!==a){s=s/2;a=a||c[3];c=+s||1;while(u--){k.style(n,t,c+a);if((1-o)*(1-(o=f()/s||.5))<=0){u=0}c=c/o}c=c*2;k.style(n,t,c+a);e=e||[]}if(e){c=+c||+s||0;r=e[1]?c+(e[1]+1)*e[2]:+e[2];if(i){i.unit=a;i.start=c;i.end=r}}return r}var dn={};function hn(n){var t,e=n.ownerDocument,i=n.nodeName,r=dn[i];if(r){return r}t=e.body.appendChild(e.createElement(i));r=k.css(t,"display");t.parentNode.removeChild(t);if(r==="none"){r="block"}dn[i]=r;return r}function pn(n,t){var e,i,r=[],o=0,u=n.length;for(;o<u;o++){i=n[o];if(!i.style){continue}e=i.style.display;if(t){if(e==="none"){r[o]=V.get(i,"display")||null;if(!r[o]){i.style.display=""}}if(i.style.display===""&&cn(i)){r[o]=hn(i)}}else{if(e!=="none"){r[o]="none";V.set(i,"display",e)}}}for(o=0;o<u;o++){if(r[o]!=null){n[o].style.display=r[o]}}return n}k.fn.extend({show:function(){return pn(this,true)},hide:function(){return pn(this)},toggle:function(n){if(typeof n==="boolean"){return n?this.show():this.hide()}return this.each((function(){if(cn(this)){k(this).show()}else{k(this).hide()}}))}});var vn=/^(?:checkbox|radio)$/i;var gn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var bn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var n=g.createDocumentFragment(),t=n.appendChild(g.createElement("div")),e=g.createElement("input");e.setAttribute("type","radio");e.setAttribute("checked","checked");e.setAttribute("name","t");t.appendChild(e);h.checkClone=t.cloneNode(true).cloneNode(true).lastChild.checked;t.innerHTML="<textarea>x</textarea>";h.noCloneChecked=!!t.cloneNode(true).lastChild.defaultValue;t.innerHTML="<option></option>";h.option=!!t.lastChild})();var mn={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,"",""]};mn.tbody=mn.tfoot=mn.colgroup=mn.caption=mn.thead;mn.th=mn.td;if(!h.option){mn.optgroup=mn.option=[1,"<select multiple='multiple'>","</select>"]}function wn(n,t){var e;if(typeof n.getElementsByTagName!=="undefined"){e=n.getElementsByTagName(t||"*")}else if(typeof n.querySelectorAll!=="undefined"){e=n.querySelectorAll(t||"*")}else{e=[]}if(t===undefined||t&&F(n,t)){return k.merge([n],e)}return e}function yn(n,t){var e=0,i=n.length;for(;e<i;e++){V.set(n[e],"globalEval",!t||V.get(t[e],"globalEval"))}}var kn=/<|&#?\w+;/;function xn(n,t,e,i,r){var o,u,f,s,a,c,l=t.createDocumentFragment(),d=[],h=0,p=n.length;for(;h<p;h++){o=n[h];if(o||o===0){if(w(o)==="object"){k.merge(d,o.nodeType?[o]:o)}else if(!kn.test(o)){d.push(t.createTextNode(o))}else{u=u||l.appendChild(t.createElement("div"));f=(gn.exec(o)||["",""])[1].toLowerCase();s=mn[f]||mn._default;u.innerHTML=s[1]+k.htmlPrefilter(o)+s[2];c=s[0];while(c--){u=u.lastChild}k.merge(d,u.childNodes);u=l.firstChild;u.textContent=""}}}l.textContent="";h=0;while(o=d[h++]){if(i&&k.inArray(o,i)>-1){if(r){r.push(o)}continue}a=sn(o);u=wn(l.appendChild(o),"script");if(a){yn(u)}if(e){c=0;while(o=u[c++]){if(bn.test(o.type||"")){e.push(o)}}}}return l}var Cn=/^([^.]*)(?:\.(.+)|)/;function Sn(){return true}function En(){return false}function jn(n,t){return n===Fn()===(t==="focus")}function Fn(){try{return g.activeElement}catch(n){}}function Tn(n,t,e,i,r,o){var u,f;if(typeof t==="object"){if(typeof e!=="string"){i=i||e;e=undefined}for(f in t){Tn(n,f,e,i,t[f],o)}return n}if(i==null&&r==null){r=e;i=e=undefined}else if(r==null){if(typeof e==="string"){r=i;i=undefined}else{r=i;i=e;e=undefined}}if(r===false){r=En}else if(!r){return n}if(o===1){u=r;r=function(n){k().off(n);return u.apply(this,arguments)};r.guid=u.guid||(u.guid=k.guid++)}return n.each((function(){k.event.add(this,t,r,i,e)}))}k.event={global:{},add:function(n,t,e,i,r){var o,u,f,s,a,c,l,d,h,p,v,g=V.get(n);if(!G(n)){return}if(e.handler){o=e;e=o.handler;r=o.selector}if(r){k.find.matchesSelector(fn,r)}if(!e.guid){e.guid=k.guid++}if(!(s=g.events)){s=g.events=Object.create(null)}if(!(u=g.handle)){u=g.handle=function(t){return typeof k!=="undefined"&&k.event.triggered!==t.type?k.event.dispatch.apply(n,arguments):undefined}}t=(t||"").match(M)||[""];a=t.length;while(a--){f=Cn.exec(t[a])||[];h=v=f[1];p=(f[2]||"").split(".").sort();if(!h){continue}l=k.event.special[h]||{};h=(r?l.delegateType:l.bindType)||h;l=k.event.special[h]||{};c=k.extend({type:h,origType:v,data:i,handler:e,guid:e.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:p.join(".")},o);if(!(d=s[h])){d=s[h]=[];d.delegateCount=0;if(!l.setup||l.setup.call(n,i,p,u)===false){if(n.addEventListener){n.addEventListener(h,u)}}}if(l.add){l.add.call(n,c);if(!c.handler.guid){c.handler.guid=e.guid}}if(r){d.splice(d.delegateCount++,0,c)}else{d.push(c)}k.event.global[h]=true}},remove:function(n,t,e,i,r){var o,u,f,s,a,c,l,d,h,p,v,g=V.hasData(n)&&V.get(n);if(!g||!(s=g.events)){return}t=(t||"").match(M)||[""];a=t.length;while(a--){f=Cn.exec(t[a])||[];h=v=f[1];p=(f[2]||"").split(".").sort();if(!h){for(h in s){k.event.remove(n,h+t[a],e,i,true)}continue}l=k.event.special[h]||{};h=(i?l.delegateType:l.bindType)||h;d=s[h]||[];f=f[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");u=o=d.length;while(o--){c=d[o];if((r||v===c.origType)&&(!e||e.guid===c.guid)&&(!f||f.test(c.namespace))&&(!i||i===c.selector||i==="**"&&c.selector)){d.splice(o,1);if(c.selector){d.delegateCount--}if(l.remove){l.remove.call(n,c)}}}if(u&&!d.length){if(!l.teardown||l.teardown.call(n,p,g.handle)===false){k.removeEvent(n,h,g.handle)}delete s[h]}}if(k.isEmptyObject(s)){V.remove(n,"handle events")}},dispatch:function(n){var t,e,i,r,o,u,f=new Array(arguments.length),s=k.event.fix(n),a=(V.get(this,"events")||Object.create(null))[s.type]||[],c=k.event.special[s.type]||{};f[0]=s;for(t=1;t<arguments.length;t++){f[t]=arguments[t]}s.delegateTarget=this;if(c.preDispatch&&c.preDispatch.call(this,s)===false){return}u=k.event.handlers.call(this,s,a);t=0;while((r=u[t++])&&!s.isPropagationStopped()){s.currentTarget=r.elem;e=0;while((o=r.handlers[e++])&&!s.isImmediatePropagationStopped()){if(!s.rnamespace||o.namespace===false||s.rnamespace.test(o.namespace)){s.handleObj=o;s.data=o.data;i=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,f);if(i!==undefined){if((s.result=i)===false){s.preventDefault();s.stopPropagation()}}}}}if(c.postDispatch){c.postDispatch.call(this,s)}return s.result},handlers:function(n,t){var e,i,r,o,u,f=[],s=t.delegateCount,a=n.target;if(s&&a.nodeType&&!(n.type==="click"&&n.button>=1)){for(;a!==this;a=a.parentNode||this){if(a.nodeType===1&&!(n.type==="click"&&a.disabled===true)){o=[];u={};for(e=0;e<s;e++){i=t[e];r=i.selector+" ";if(u[r]===undefined){u[r]=i.needsContext?k(r,this).index(a)>-1:k.find(r,this,null,[a]).length}if(u[r]){o.push(i)}}if(o.length){f.push({elem:a,handlers:o})}}}}a=this;if(s<t.length){f.push({elem:a,handlers:t.slice(s)})}return f},addProp:function(n,t){Object.defineProperty(k.Event.prototype,n,{enumerable:true,configurable:true,get:p(t)?function(){if(this.originalEvent){return t(this.originalEvent)}}:function(){if(this.originalEvent){return this.originalEvent[n]}},set:function(t){Object.defineProperty(this,n,{enumerable:true,configurable:true,writable:true,value:t})}})},fix:function(n){return n[k.expando]?n:new k.Event(n)},special:{load:{noBubble:true},click:{setup:function(n){var t=this||n;if(vn.test(t.type)&&t.click&&F(t,"input")){On(t,"click",Sn)}return false},trigger:function(n){var t=this||n;if(vn.test(t.type)&&t.click&&F(t,"input")){On(t,"click")}return true},_default:function(n){var t=n.target;return vn.test(t.type)&&t.click&&F(t,"input")&&V.get(t,"click")||F(t,"a")}},beforeunload:{postDispatch:function(n){if(n.result!==undefined&&n.originalEvent){n.originalEvent.returnValue=n.result}}}}};function On(n,t,e){if(!e){if(V.get(n,t)===undefined){k.event.add(n,t,Sn)}return}V.set(n,t,false);k.event.add(n,t,{namespace:false,handler:function(n){var i,o,u=V.get(this,t);if(n.isTrigger&1&&this[t]){if(!u.length){u=r.call(arguments);V.set(this,t,u);i=e(this,t);this[t]();o=V.get(this,t);if(u!==o||i){V.set(this,t,false)}else{o={}}if(u!==o){n.stopImmediatePropagation();n.preventDefault();return o&&o.value}}else if((k.event.special[t]||{}).delegateType){n.stopPropagation()}}else if(u.length){V.set(this,t,{value:k.event.trigger(k.extend(u[0],k.Event.prototype),u.slice(1),this)});n.stopImmediatePropagation()}}})}k.removeEvent=function(n,t,e){if(n.removeEventListener){n.removeEventListener(t,e)}};k.Event=function(n,t){if(!(this instanceof k.Event)){return new k.Event(n,t)}if(n&&n.type){this.originalEvent=n;this.type=n.type;this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===false?Sn:En;this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target;this.currentTarget=n.currentTarget;this.relatedTarget=n.relatedTarget}else{this.type=n}if(t){k.extend(this,t)}this.timeStamp=n&&n.timeStamp||Date.now();this[k.expando]=true};k.Event.prototype={constructor:k.Event,isDefaultPrevented:En,isPropagationStopped:En,isImmediatePropagationStopped:En,isSimulated:false,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=Sn;if(n&&!this.isSimulated){n.preventDefault()}},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=Sn;if(n&&!this.isSimulated){n.stopPropagation()}},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=Sn;if(n&&!this.isSimulated){n.stopImmediatePropagation()}this.stopPropagation()}};k.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},k.event.addProp);k.each({focus:"focusin",blur:"focusout"},(function(n,t){k.event.special[n]={setup:function(){On(this,n,jn);return false},trigger:function(){On(this,n);return true},_default:function(t){return V.get(t.target,n)},delegateType:t}}));k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(n,t){k.event.special[n]={delegateType:t,bindType:t,handle:function(n){var e,i=this,r=n.relatedTarget,o=n.handleObj;if(!r||r!==i&&!k.contains(i,r)){n.type=o.origType;e=o.handler.apply(this,arguments);n.type=t}return e}}}));k.fn.extend({on:function(n,t,e,i){return Tn(this,n,t,e,i)},one:function(n,t,e,i){return Tn(this,n,t,e,i,1)},off:function(n,t,e){var i,r;if(n&&n.preventDefault&&n.handleObj){i=n.handleObj;k(n.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);return this}if(typeof n==="object"){for(r in n){this.off(r,t,n[r])}return this}if(t===false||typeof t==="function"){e=t;t=undefined}if(e===false){e=En}return this.each((function(){k.event.remove(this,n,e,t)}))}});var An=/<script|<style|<link/i,Rn=/checked\s*(?:[^=]|=\s*.checked.)/i,In=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Nn(n,t){if(F(n,"table")&&F(t.nodeType!==11?t:t.firstChild,"tr")){return k(n).children("tbody")[0]||n}return n}function Ln(n){n.type=(n.getAttribute("type")!==null)+"/"+n.type;return n}function Dn(n){if((n.type||"").slice(0,5)==="true/"){n.type=n.type.slice(5)}else{n.removeAttribute("type")}return n}function Mn(n,t){var e,i,r,o,u,f,s;if(t.nodeType!==1){return}if(V.hasData(n)){o=V.get(n);s=o.events;if(s){V.remove(t,"handle events");for(r in s){for(e=0,i=s[r].length;e<i;e++){k.event.add(t,r,s[r][e])}}}}if(Z.hasData(n)){u=Z.access(n);f=k.extend({},u);Z.set(t,f)}}function _n(n,t){var e=t.nodeName.toLowerCase();if(e==="input"&&vn.test(n.type)){t.checked=n.checked}else if(e==="input"||e==="textarea"){t.defaultValue=n.defaultValue}}function Un(n,t,e,i){t=o(t);var r,u,f,s,a,c,l=0,d=n.length,v=d-1,g=t[0],b=p(g);if(b||d>1&&typeof g==="string"&&!h.checkClone&&Rn.test(g)){return n.each((function(r){var o=n.eq(r);if(b){t[0]=g.call(this,r,o.html())}Un(o,t,e,i)}))}if(d){r=xn(t,n[0].ownerDocument,false,n,i);u=r.firstChild;if(r.childNodes.length===1){r=u}if(u||i){f=k.map(wn(r,"script"),Ln);s=f.length;for(;l<d;l++){a=r;if(l!==v){a=k.clone(a,true,true);if(s){k.merge(f,wn(a,"script"))}}e.call(n[l],a,l)}if(s){c=f[f.length-1].ownerDocument;k.map(f,Dn);for(l=0;l<s;l++){a=f[l];if(bn.test(a.type||"")&&!V.access(a,"globalEval")&&k.contains(c,a)){if(a.src&&(a.type||"").toLowerCase()!=="module"){if(k._evalUrl&&!a.noModule){k._evalUrl(a.src,{nonce:a.nonce||a.getAttribute("nonce")},c)}}else{m(a.textContent.replace(In,""),a,c)}}}}}}return n}function Pn(n,t,e){var i,r=t?k.filter(t,n):n,o=0;for(;(i=r[o])!=null;o++){if(!e&&i.nodeType===1){k.cleanData(wn(i))}if(i.parentNode){if(e&&sn(i)){yn(wn(i,"script"))}i.parentNode.removeChild(i)}}return n}k.extend({htmlPrefilter:function(n){return n},clone:function(n,t,e){var i,r,o,u,f=n.cloneNode(true),s=sn(n);if(!h.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!k.isXMLDoc(n)){u=wn(f);o=wn(n);for(i=0,r=o.length;i<r;i++){_n(o[i],u[i])}}if(t){if(e){o=o||wn(n);u=u||wn(f);for(i=0,r=o.length;i<r;i++){Mn(o[i],u[i])}}else{Mn(n,f)}}u=wn(f,"script");if(u.length>0){yn(u,!s&&wn(n,"script"))}return f},cleanData:function(n){var t,e,i,r=k.event.special,o=0;for(;(e=n[o])!==undefined;o++){if(G(e)){if(t=e[V.expando]){if(t.events){for(i in t.events){if(r[i]){k.event.remove(e,i)}else{k.removeEvent(e,i,t.handle)}}}e[V.expando]=undefined}if(e[Z.expando]){e[Z.expando]=undefined}}}}});k.fn.extend({detach:function(n){return Pn(this,n,true)},remove:function(n){return Pn(this,n)},text:function(n){return W(this,(function(n){return n===undefined?k.text(this):this.empty().each((function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=n}}))}),null,n,arguments.length)},append:function(){return Un(this,arguments,(function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Nn(this,n);t.appendChild(n)}}))},prepend:function(){return Un(this,arguments,(function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Nn(this,n);t.insertBefore(n,t.firstChild)}}))},before:function(){return Un(this,arguments,(function(n){if(this.parentNode){this.parentNode.insertBefore(n,this)}}))},after:function(){return Un(this,arguments,(function(n){if(this.parentNode){this.parentNode.insertBefore(n,this.nextSibling)}}))},empty:function(){var n,t=0;for(;(n=this[t])!=null;t++){if(n.nodeType===1){k.cleanData(wn(n,false));n.textContent=""}}return this},clone:function(n,t){n=n==null?false:n;t=t==null?n:t;return this.map((function(){return k.clone(this,n,t)}))},html:function(n){return W(this,(function(n){var t=this[0]||{},e=0,i=this.length;if(n===undefined&&t.nodeType===1){return t.innerHTML}if(typeof n==="string"&&!An.test(n)&&!mn[(gn.exec(n)||["",""])[1].toLowerCase()]){n=k.htmlPrefilter(n);try{for(;e<i;e++){t=this[e]||{};if(t.nodeType===1){k.cleanData(wn(t,false));t.innerHTML=n}}t=0}catch(n){}}if(t){this.empty().append(n)}}),null,n,arguments.length)},replaceWith:function(){var n=[];return Un(this,arguments,(function(t){var e=this.parentNode;if(k.inArray(this,n)<0){k.cleanData(wn(this));if(e){e.replaceChild(t,this)}}}),n)}});k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(n,t){k.fn[n]=function(n){var e,i=[],r=k(n),o=r.length-1,f=0;for(;f<=o;f++){e=f===o?this:this.clone(true);k(r[f])[t](e);u.apply(i,e.get())}return this.pushStack(i)}}));var $n=new RegExp("^("+rn+")(?!px)[a-z%]+$","i");var zn=/^--/;var qn=function(t){var e=t.ownerDocument.defaultView;if(!e||!e.opener){e=n}return e.getComputedStyle(t)};var Jn=function(n,t,e){var i,r,o={};for(r in t){o[r]=n.style[r];n.style[r]=t[r]}i=e.call(n);for(r in t){n.style[r]=o[r]}return i};var Wn=new RegExp(un.join("|"),"i");var Hn="[\\x20\\t\\r\\n\\f]";var Bn=new RegExp("^"+Hn+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Hn+"+$","g");(function(){function t(){if(!c){return}a.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%";fn.appendChild(a).appendChild(c);var t=n.getComputedStyle(c);i=t.top!=="1%";s=e(t.marginLeft)===12;c.style.right="60%";u=e(t.right)===36;r=e(t.width)===36;c.style.position="absolute";o=e(c.offsetWidth/3)===12;fn.removeChild(a);c=null}function e(n){return Math.round(parseFloat(n))}var i,r,o,u,f,s,a=g.createElement("div"),c=g.createElement("div");if(!c.style){return}c.style.backgroundClip="content-box";c.cloneNode(true).style.backgroundClip="";h.clearCloneStyle=c.style.backgroundClip==="content-box";k.extend(h,{boxSizingReliable:function(){t();return r},pixelBoxStyles:function(){t();return u},pixelPosition:function(){t();return i},reliableMarginLeft:function(){t();return s},scrollboxSize:function(){t();return o},reliableTrDimensions:function(){var t,e,i,r;if(f==null){t=g.createElement("table");e=g.createElement("tr");i=g.createElement("div");t.style.cssText="position:absolute;left:-11111px;border-collapse:separate";e.style.cssText="border:1px solid";e.style.height="1px";i.style.height="9px";i.style.display="block";fn.appendChild(t).appendChild(e).appendChild(i);r=n.getComputedStyle(e);f=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight;fn.removeChild(t)}return f}})})();function Kn(n,t,e){var i,r,o,u,f=zn.test(t),s=n.style;e=e||qn(n);if(e){u=e.getPropertyValue(t)||e[t];if(f&&u){u=u.replace(Bn,"$1")||undefined}if(u===""&&!sn(n)){u=k.style(n,t)}if(!h.pixelBoxStyles()&&$n.test(u)&&Wn.test(t)){i=s.width;r=s.minWidth;o=s.maxWidth;s.minWidth=s.maxWidth=s.width=u;u=e.width;s.width=i;s.minWidth=r;s.maxWidth=o}}return u!==undefined?u+"":u}function Xn(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var Gn=["Webkit","Moz","ms"],Yn=g.createElement("div").style,Vn={};function Zn(n){var t=n[0].toUpperCase()+n.slice(1),e=Gn.length;while(e--){n=Gn[e]+t;if(n in Yn){return n}}}function Qn(n){var t=k.cssProps[n]||Vn[n];if(t){return t}if(n in Yn){return n}return Vn[n]=Zn(n)||n}var nt=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function it(n,t,e){var i=on.exec(t);return i?Math.max(0,i[2]-(e||0))+(i[3]||"px"):t}function rt(n,t,e,i,r,o){var u=t==="width"?1:0,f=0,s=0;if(e===(i?"border":"content")){return 0}for(;u<4;u+=2){if(e==="margin"){s+=k.css(n,e+un[u],true,r)}if(!i){s+=k.css(n,"padding"+un[u],true,r);if(e!=="padding"){s+=k.css(n,"border"+un[u]+"Width",true,r)}else{f+=k.css(n,"border"+un[u]+"Width",true,r)}}else{if(e==="content"){s-=k.css(n,"padding"+un[u],true,r)}if(e!=="margin"){s-=k.css(n,"border"+un[u]+"Width",true,r)}}}if(!i&&o>=0){s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-o-s-f-.5))||0}return s}function ot(n,t,e){var i=qn(n),r=!h.boxSizingReliable()||e,o=r&&k.css(n,"boxSizing",false,i)==="border-box",u=o,f=Kn(n,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if($n.test(f)){if(!e){return f}f="auto"}if((!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&F(n,"tr")||f==="auto"||!parseFloat(f)&&k.css(n,"display",false,i)==="inline")&&n.getClientRects().length){o=k.css(n,"boxSizing",false,i)==="border-box";u=s in n;if(u){f=n[s]}}f=parseFloat(f)||0;return f+rt(n,t,e||(o?"border":"content"),u,i,f)+"px"}k.extend({cssHooks:{opacity:{get:function(n,t){if(t){var e=Kn(n,"opacity");return e===""?"1":e}}}},cssNumber:{animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{},style:function(n,t,e,i){if(!n||n.nodeType===3||n.nodeType===8||!n.style){return}var r,o,u,f=X(t),s=zn.test(t),a=n.style;if(!s){t=Qn(f)}u=k.cssHooks[t]||k.cssHooks[f];if(e!==undefined){o=typeof e;if(o==="string"&&(r=on.exec(e))&&r[1]){e=ln(n,t,r);o="number"}if(e==null||e!==e){return}if(o==="number"&&!s){e+=r&&r[3]||(k.cssNumber[f]?"":"px")}if(!h.clearCloneStyle&&e===""&&t.indexOf("background")===0){a[t]="inherit"}if(!u||!("set"in u)||(e=u.set(n,e,i))!==undefined){if(s){a.setProperty(t,e)}else{a[t]=e}}}else{if(u&&"get"in u&&(r=u.get(n,false,i))!==undefined){return r}return a[t]}},css:function(n,t,e,i){var r,o,u,f=X(t),s=zn.test(t);if(!s){t=Qn(f)}u=k.cssHooks[t]||k.cssHooks[f];if(u&&"get"in u){r=u.get(n,true,e)}if(r===undefined){r=Kn(n,t,i)}if(r==="normal"&&t in et){r=et[t]}if(e===""||e){o=parseFloat(r);return e===true||isFinite(o)?o||0:r}return r}});k.each(["height","width"],(function(n,t){k.cssHooks[t]={get:function(n,e,i){if(e){return nt.test(k.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?Jn(n,tt,(function(){return ot(n,t,i)})):ot(n,t,i)}},set:function(n,e,i){var r,o=qn(n),u=!h.scrollboxSize()&&o.position==="absolute",f=u||i,s=f&&k.css(n,"boxSizing",false,o)==="border-box",a=i?rt(n,t,i,s,o):0;if(s&&u){a-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(n,t,"border",false,o)-.5)}if(a&&(r=on.exec(e))&&(r[3]||"px")!=="px"){n.style[t]=e;e=k.css(n,t)}return it(n,e,a)}}}));k.cssHooks.marginLeft=Xn(h.reliableMarginLeft,(function(n,t){if(t){return(parseFloat(Kn(n,"marginLeft"))||n.getBoundingClientRect().left-Jn(n,{marginLeft:0},(function(){return n.getBoundingClientRect().left})))+"px"}}));k.each({margin:"",padding:"",border:"Width"},(function(n,t){k.cssHooks[n+t]={expand:function(e){var i=0,r={},o=typeof e==="string"?e.split(" "):[e];for(;i<4;i++){r[n+un[i]+t]=o[i]||o[i-2]||o[0]}return r}};if(n!=="margin"){k.cssHooks[n+t].set=it}}));k.fn.extend({css:function(n,t){return W(this,(function(n,t,e){var i,r,o={},u=0;if(Array.isArray(t)){i=qn(n);r=t.length;for(;u<r;u++){o[t[u]]=k.css(n,t[u],false,i)}return o}return e!==undefined?k.style(n,t,e):k.css(n,t)}),n,t,arguments.length>1)}});k.fn.delay=function(t,e){t=k.fx?k.fx.speeds[t]||t:t;e=e||"fx";return this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))};(function(){var n=g.createElement("input"),t=g.createElement("select"),e=t.appendChild(g.createElement("option"));n.type="checkbox";h.checkOn=n.value!=="";h.optSelected=e.selected;n=g.createElement("input");n.value="t";n.type="radio";h.radioValue=n.value==="t"})();var ut,ft=k.expr.attrHandle;k.fn.extend({attr:function(n,t){return W(this,k.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each((function(){k.removeAttr(this,n)}))}});k.extend({attr:function(n,t,e){var i,r,o=n.nodeType;if(o===3||o===8||o===2){return}if(typeof n.getAttribute==="undefined"){return k.prop(n,t,e)}if(o!==1||!k.isXMLDoc(n)){r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ut:undefined)}if(e!==undefined){if(e===null){k.removeAttr(n,t);return}if(r&&"set"in r&&(i=r.set(n,e,t))!==undefined){return i}n.setAttribute(t,e+"");return e}if(r&&"get"in r&&(i=r.get(n,t))!==null){return i}i=k.find.attr(n,t);return i==null?undefined:i},attrHooks:{type:{set:function(n,t){if(!h.radioValue&&t==="radio"&&F(n,"input")){var e=n.value;n.setAttribute("type",t);if(e){n.value=e}return t}}}},removeAttr:function(n,t){var e,i=0,r=t&&t.match(M);if(r&&n.nodeType===1){while(e=r[i++]){n.removeAttribute(e)}}}});ut={set:function(n,t,e){if(t===false){k.removeAttr(n,e)}else{n.setAttribute(e,e)}return e}};k.each(k.expr.match.bool.source.match(/\w+/g),(function(n,t){var e=ft[t]||k.find.attr;ft[t]=function(n,t,i){var r,o,u=t.toLowerCase();if(!i){o=ft[u];ft[u]=r;r=e(n,t,i)!=null?u:null;ft[u]=o}return r}}));var st=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;k.fn.extend({prop:function(n,t){return W(this,k.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each((function(){delete this[k.propFix[n]||n]}))}});k.extend({prop:function(n,t,e){var i,r,o=n.nodeType;if(o===3||o===8||o===2){return}if(o!==1||!k.isXMLDoc(n)){t=k.propFix[t]||t;r=k.propHooks[t]}if(e!==undefined){if(r&&"set"in r&&(i=r.set(n,e,t))!==undefined){return i}return n[t]=e}if(r&&"get"in r&&(i=r.get(n,t))!==null){return i}return n[t]},propHooks:{tabIndex:{get:function(n){var t=k.find.attr(n,"tabindex");if(t){return parseInt(t,10)}if(st.test(n.nodeName)||at.test(n.nodeName)&&n.href){return 0}return-1}}},propFix:{for:"htmlFor",class:"className"}});if(!h.optSelected){k.propHooks.selected={get:function(n){return null},set:function(n){}}}k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this}));function ct(n){var t=n.match(M)||[];return t.join(" ")}function lt(n){return n.getAttribute&&n.getAttribute("class")||""}function dt(n){if(Array.isArray(n)){return n}if(typeof n==="string"){return n.match(M)||[]}return[]}k.fn.extend({addClass:function(n){var t,e,i,r,o,u;if(p(n)){return this.each((function(t){k(this).addClass(n.call(this,t,lt(this)))}))}t=dt(n);if(t.length){return this.each((function(){i=lt(this);e=this.nodeType===1&&" "+ct(i)+" ";if(e){for(o=0;o<t.length;o++){r=t[o];if(e.indexOf(" "+r+" ")<0){e+=r+" "}}u=ct(e);if(i!==u){this.setAttribute("class",u)}}}))}return this},removeClass:function(n){var t,e,i,r,o,u;if(p(n)){return this.each((function(t){k(this).removeClass(n.call(this,t,lt(this)))}))}if(!arguments.length){return this.attr("class","")}t=dt(n);if(t.length){return this.each((function(){i=lt(this);e=this.nodeType===1&&" "+ct(i)+" ";if(e){for(o=0;o<t.length;o++){r=t[o];while(e.indexOf(" "+r+" ")>-1){e=e.replace(" "+r+" "," ")}}u=ct(e);if(i!==u){this.setAttribute("class",u)}}}))}return this},toggleClass:function(n,t){var e,i,r,o,u=typeof n,f=u==="string"||Array.isArray(n);if(p(n)){return this.each((function(e){k(this).toggleClass(n.call(this,e,lt(this),t),t)}))}if(typeof t==="boolean"&&f){return t?this.addClass(n):this.removeClass(n)}e=dt(n);return this.each((function(){if(f){o=k(this);for(r=0;r<e.length;r++){i=e[r];if(o.hasClass(i)){o.removeClass(i)}else{o.addClass(i)}}}else if(n===undefined||u==="boolean"){i=lt(this);if(i){V.set(this,"__className__",i)}if(this.setAttribute){this.setAttribute("class",i||n===false?"":V.get(this,"__className__")||"")}}}))},hasClass:function(n){var t,e,i=0;t=" "+n+" ";while(e=this[i++]){if(e.nodeType===1&&(" "+ct(lt(e))+" ").indexOf(t)>-1){return true}}return false}});var ht=/\r/g;k.fn.extend({val:function(n){var t,e,i,r=this[0];if(!arguments.length){if(r){t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()];if(t&&"get"in t&&(e=t.get(r,"value"))!==undefined){return e}e=r.value;if(typeof e==="string"){return e.replace(ht,"")}return e==null?"":e}return}i=p(n);return this.each((function(e){var r;if(this.nodeType!==1){return}if(i){r=n.call(this,e,k(this).val())}else{r=n}if(r==null){r=""}else if(typeof r==="number"){r+=""}else if(Array.isArray(r)){r=k.map(r,(function(n){return n==null?"":n+""}))}t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,r,"value")===undefined){this.value=r}}))}});k.extend({valHooks:{option:{get:function(n){var t=k.find.attr(n,"value");return t!=null?t:ct(k.text(n))}},select:{get:function(n){var t,e,i,r=n.options,o=n.selectedIndex,u=n.type==="select-one",f=u?null:[],s=u?o+1:r.length;if(o<0){i=s}else{i=u?o:0}for(;i<s;i++){e=r[i];if((e.selected||i===o)&&!e.disabled&&(!e.parentNode.disabled||!F(e.parentNode,"optgroup"))){t=k(e).val();if(u){return t}f.push(t)}}return f},set:function(n,t){var e,i,r=n.options,o=k.makeArray(t),u=r.length;while(u--){i=r[u];if(i.selected=k.inArray(k.valHooks.option.get(i),o)>-1){e=true}}if(!e){n.selectedIndex=-1}return o}}}});k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(n,t){if(Array.isArray(t)){return n.checked=k.inArray(k(n).val(),t)>-1}}};if(!h.checkOn){k.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value}}}));h.focusin="onfocusin"in n;var pt=/^(?:focusinfocus|focusoutblur)$/,vt=function(n){n.stopPropagation()};k.extend(k.event,{trigger:function(t,e,i,r){var o,u,f,s,a,l,d,h,b=[i||g],m=c.call(t,"type")?t.type:t,w=c.call(t,"namespace")?t.namespace.split("."):[];u=h=f=i=i||g;if(i.nodeType===3||i.nodeType===8){return}if(pt.test(m+k.event.triggered)){return}if(m.indexOf(".")>-1){w=m.split(".");m=w.shift();w.sort()}a=m.indexOf(":")<0&&"on"+m;t=t[k.expando]?t:new k.Event(m,typeof t==="object"&&t);t.isTrigger=r?2:3;t.namespace=w.join(".");t.rnamespace=t.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;t.result=undefined;if(!t.target){t.target=i}e=e==null?[t]:k.makeArray(e,[t]);d=k.event.special[m]||{};if(!r&&d.trigger&&d.trigger.apply(i,e)===false){return}if(!r&&!d.noBubble&&!v(i)){s=d.delegateType||m;if(!pt.test(s+m)){u=u.parentNode}for(;u;u=u.parentNode){b.push(u);f=u}if(f===(i.ownerDocument||g)){b.push(f.defaultView||f.parentWindow||n)}}o=0;while((u=b[o++])&&!t.isPropagationStopped()){h=u;t.type=o>1?s:d.bindType||m;l=(V.get(u,"events")||Object.create(null))[t.type]&&V.get(u,"handle");if(l){l.apply(u,e)}l=a&&u[a];if(l&&l.apply&&G(u)){t.result=l.apply(u,e);if(t.result===false){t.preventDefault()}}}t.type=m;if(!r&&!t.isDefaultPrevented()){if((!d._default||d._default.apply(b.pop(),e)===false)&&G(i)){if(a&&p(i[m])&&!v(i)){f=i[a];if(f){i[a]=null}k.event.triggered=m;if(t.isPropagationStopped()){h.addEventListener(m,vt)}i[m]();if(t.isPropagationStopped()){h.removeEventListener(m,vt)}k.event.triggered=undefined;if(f){i[a]=f}}}}return t.result},simulate:function(n,t,e){var i=k.extend(new k.Event,e,{type:n,isSimulated:true});k.event.trigger(i,null,t)}});k.fn.extend({trigger:function(n,t){return this.each((function(){k.event.trigger(n,t,this)}))},triggerHandler:function(n,t){var e=this[0];if(e){return k.event.trigger(n,t,e,true)}}});if(!h.focusin){k.each({focus:"focusin",blur:"focusout"},(function(n,t){var e=function(n){k.event.simulate(t,n.target,k.event.fix(n))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=V.access(i,t);if(!r){i.addEventListener(n,e,true)}V.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=V.access(i,t)-1;if(!r){i.removeEventListener(n,e,true);V.remove(i,t)}else{V.access(i,t,r)}}}}))}k.parseXML=function(t){var e,i;if(!t||typeof t!=="string"){return null}try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(n){}i=e&&e.getElementsByTagName("parsererror")[0];if(!e||i){k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(n){return n.textContent})).join("\n"):t))}return e};var gt=/\[\]$/,bt=/\r?\n/g,mt=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function yt(n,t,e,i){var r;if(Array.isArray(t)){k.each(t,(function(t,r){if(e||gt.test(n)){i(n,r)}else{yt(n+"["+(typeof r==="object"&&r!=null?t:"")+"]",r,e,i)}}))}else if(!e&&w(t)==="object"){for(r in t){yt(n+"["+r+"]",t[r],e,i)}}else{i(n,t)}}k.param=function(n,t){var e,i=[],r=function(n,t){var e=p(t)?t():t;i[i.length]=encodeURIComponent(n)+"="+encodeURIComponent(e==null?"":e)};if(n==null){return""}if(Array.isArray(n)||n.jquery&&!k.isPlainObject(n)){k.each(n,(function(){r(this.name,this.value)}))}else{for(e in n){yt(e,n[e],t,r)}}return i.join("&")};k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var n=k.prop(this,"elements");return n?k.makeArray(n):this})).filter((function(){var n=this.type;return this.name&&!k(this).is(":disabled")&&wt.test(this.nodeName)&&!mt.test(n)&&(this.checked||!vn.test(n))})).map((function(n,t){var e=k(this).val();if(e==null){return null}if(Array.isArray(e)){return k.map(e,(function(n){return{name:t.name,value:n.replace(bt,"\r\n")}}))}return{name:t.name,value:e.replace(bt,"\r\n")}})).get()}});k.fn.extend({wrapAll:function(n){var t;if(this[0]){if(p(n)){n=n.call(this[0])}t=k(n,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map((function(){var n=this;while(n.firstElementChild){n=n.firstElementChild}return n})).append(this)}return this},wrapInner:function(n){if(p(n)){return this.each((function(t){k(this).wrapInner(n.call(this,t))}))}return this.each((function(){var t=k(this),e=t.contents();if(e.length){e.wrapAll(n)}else{t.append(n)}}))},wrap:function(n){var t=p(n);return this.each((function(e){k(this).wrapAll(t?n.call(this,e):n)}))},unwrap:function(n){this.parent(n).not("body").each((function(){k(this).replaceWith(this.childNodes)}));return this}});k.expr.pseudos.hidden=function(n){return!k.expr.pseudos.visible(n)};k.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)};h.createHTMLDocument=function(){var n=g.implementation.createHTMLDocument("").body;n.innerHTML="<form></form><form></form>";return n.childNodes.length===2}();k.parseHTML=function(n,t,e){if(typeof n!=="string"){return[]}if(typeof t==="boolean"){e=t;t=false}var i,r,o;if(!t){if(h.createHTMLDocument){t=g.implementation.createHTMLDocument("");i=t.createElement("base");i.href=g.location.href;t.head.appendChild(i)}else{t=g}}r=T.exec(n);o=!e&&[];if(r){return[t.createElement(r[1])]}r=xn([n],t,o);if(o&&o.length){k(o).remove()}return k.merge([],r.childNodes)};k.offset={setOffset:function(n,t,e){var i,r,o,u,f,s,a,c=k.css(n,"position"),l=k(n),d={};if(c==="static"){n.style.position="relative"}f=l.offset();o=k.css(n,"top");s=k.css(n,"left");a=(c==="absolute"||c==="fixed")&&(o+s).indexOf("auto")>-1;if(a){i=l.position();u=i.top;r=i.left}else{u=parseFloat(o)||0;r=parseFloat(s)||0}if(p(t)){t=t.call(n,e,k.extend({},f))}if(t.top!=null){d.top=t.top-f.top+u}if(t.left!=null){d.left=t.left-f.left+r}if("using"in t){t.using.call(n,d)}else{l.css(d)}}};k.fn.extend({offset:function(n){if(arguments.length){return n===undefined?this:this.each((function(t){k.offset.setOffset(this,n,t)}))}var t,e,i=this[0];if(!i){return}if(!i.getClientRects().length){return{top:0,left:0}}t=i.getBoundingClientRect();e=i.ownerDocument.defaultView;return{top:t.top+e.pageYOffset,left:t.left+e.pageXOffset}},position:function(){if(!this[0]){return}var n,t,e,i=this[0],r={top:0,left:0};if(k.css(i,"position")==="fixed"){t=i.getBoundingClientRect()}else{t=this.offset();e=i.ownerDocument;n=i.offsetParent||e.documentElement;while(n&&(n===e.body||n===e.documentElement)&&k.css(n,"position")==="static"){n=n.parentNode}if(n&&n!==i&&n.nodeType===1){r=k(n).offset();r.top+=k.css(n,"borderTopWidth",true);r.left+=k.css(n,"borderLeftWidth",true)}}return{top:t.top-r.top-k.css(i,"marginTop",true),left:t.left-r.left-k.css(i,"marginLeft",true)}},offsetParent:function(){return this.map((function(){var n=this.offsetParent;while(n&&k.css(n,"position")==="static"){n=n.offsetParent}return n||fn}))}});k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,t){var e="pageYOffset"===t;k.fn[n]=function(i){return W(this,(function(n,i,r){var o;if(v(n)){o=n}else if(n.nodeType===9){o=n.defaultView}if(r===undefined){return o?o[t]:n[i]}if(o){o.scrollTo(!e?r:o.pageXOffset,e?r:o.pageYOffset)}else{n[i]=r}}),n,i,arguments.length)}}));k.each(["top","left"],(function(n,t){k.cssHooks[t]=Xn(h.pixelPosition,(function(n,e){if(e){e=Kn(n,t);return $n.test(e)?k(n).position()[t]+"px":e}}))}));k.each({Height:"height",Width:"width"},(function(n,t){k.each({padding:"inner"+n,content:t,"":"outer"+n},(function(e,i){k.fn[i]=function(r,o){var u=arguments.length&&(e||typeof r!=="boolean"),f=e||(r===true||o===true?"margin":"border");return W(this,(function(t,e,r){var o;if(v(t)){return i.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]}if(t.nodeType===9){o=t.documentElement;return Math.max(t.body["scroll"+n],o["scroll"+n],t.body["offset"+n],o["offset"+n],o["client"+n])}return r===undefined?k.css(t,e,f):k.style(t,e,r,f)}),t,u?r:undefined,u)}}))}));k.fn.extend({bind:function(n,t,e){return this.on(n,null,t,e)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,e,i){return this.on(t,n,e,i)},undelegate:function(n,t,e){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",e)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});k.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(n,t){k.fn[t]=function(n,e){return arguments.length>0?this.on(t,null,n,e):this.trigger(t)}}));var kt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(n,t){var e,i,o;if(typeof t==="string"){e=n[t];t=n;n=e}if(!p(n)){return undefined}i=r.call(arguments,2);o=function(){return n.apply(t||this,i.concat(r.call(arguments)))};o.guid=n.guid=n.guid||k.guid++;return o};k.holdReady=function(n){if(n){k.readyWait++}else{k.ready(true)}};k.isArray=Array.isArray;k.parseJSON=JSON.parse;k.nodeName=F;k.isFunction=p;k.isWindow=v;k.camelCase=X;k.type=w;k.now=Date.now;k.isNumeric=function(n){var t=k.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))};k.trim=function(n){return n==null?"":(n+"").replace(kt,"$1")};var xt=n.jQuery,Ct=n.$;k.noConflict=function(t){if(n.$===k){n.$=Ct}if(t&&n.jQuery===k){n.jQuery=xt}return k};if(typeof t==="undefined"){n.jQuery=n.$=k}return k}))}));const i=i||{};!function(n){n(SockJS)}((function(n){i.EventBus=function(t,e){const r=this;const o=new n(t,undefined,e);const u={};const f={};let s=i.EventBus.CONNECTING;let a=null;let c=null;if(e){c=e.vertxbus_ping_interval}if(!c){c=5e3}r.onopen=null;r.onclose=null;r.login=function(n,t,e){d("send","vertx.basicauthmanager.login",{username:n,password:t},(function(n){if(n.status==="ok"){r.sessionID=n.sessionID}if(e){delete n.sessionID;e(n)}}))};r.send=function(n,t,e){d("send",n,t,e)};r.publish=function(n,t){d("publish",n,t,null)};r.registerHandler=function(n,t){p("address","string",n);p("handler","function",t);h();let e=u[n];if(!e){e=[t];u[n]=e;const i={type:"register",address:n};o.send(JSON.stringify(i))}else{e[e.length]=t}};r.unregisterHandler=function(n,t){p("address","string",n);p("handler","function",t);h();const e=u[n];if(e){const i=e.indexOf(t);if(i!==-1)e.splice(i,1);if(e.length===0){const t={type:"unregister",address:n};o.send(JSON.stringify(t));delete u[n]}}};r.close=function(){h();s=i.EventBus.CLOSING;o.close()};r.readyState=function(){return s};o.onopen=function(){l();a=setInterval(l,c);s=i.EventBus.OPEN;if(r.onopen){r.onopen()}};o.onclose=function(){s=i.EventBus.CLOSED;if(a)clearInterval(a);if(r.onclose){r.onclose()}};o.onmessage=function(n){const t=n.data;const e=JSON.parse(t);const i=e.body;const o=e.replyAddress;const s=e.address;let a;if(o){a=function(n,t){r.send(o,n,t)}}const c=u[s];if(c){const n=c.slice(0);for(const t of n){t(i,a)}}else{const n=f[s];if(n){delete f[s];n(i,a)}}};function l(){const n={type:"ping"};o.send(JSON.stringify(n))}function d(n,t,e,i){p("address","string",t);p("replyHandler","function",i,true);h();const u={type:n,address:t,body:e};if(r.sessionID){u.sessionID=r.sessionID}if(i){const n=v();u.replyAddress=n;f[n]=i}const s=JSON.stringify(u);o.send(s)}function h(){if(s!==i.EventBus.OPEN){throw new Error("INVALID_STATE_ERR")}}function p(n,t,e,i){if(!i&&!e){throw new Error("Parameter "+n+" must be specified")}if(e&&typeof e!==t){throw new Error("Parameter "+n+" must be of type "+t)}}function v(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(n=>(n^crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16)))}};i.EventBus.CONNECTING=0;i.EventBus.OPEN=1;i.EventBus.CLOSING=2;i.EventBus.CLOSED=3;return i.EventBus}));(function(n){window.klpWidgetDev=function(t,e,r,o,u,f,s,a,c){const l=document.getElementsByTagName("header")[0];const d={attributes:true,childList:false,subtree:false};const h=function(e,i){for(let i of e){if(i.attributeName==="class"){if(n("header").hasClass("h-fixed-position")&&!n("header").hasClass("h-visible")){Dn().find(".klp-widget-authenticated-menu").css("display","none");Dn().find("#"+t).removeClass("bubble")}}}};const p=new MutationObserver(h);if(l){p.observe(l,d)}let v="klp-widget-keepalive",g="klp.widget.state",b="klp.widget.document.",m="NCTRL",w="post.ch",y=new RegExp(w+"$"),k=new RegExp(m+"=([^;]+)"),x=undefined,C=undefined,S=false,E=undefined,j=undefined,F=undefined,T=undefined,O={},A="UNREAD_NOTIFICATIONS",R=true,I=undefined,N="de",L="",D=(new Date).getTime(),M="16.01.00.01",_=0,U={de:{"sign-in":"Login","sign-out":"Logout","change-company":"Firma wählen","change-company-confirm-dialog":'Möchten Sie die aktuelle Firma wechseln? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Firma wählen</button>',"change-company-support-dialog":'Im Kunden-Supportlogin steht die Funktion "Firma wechseln" nicht zur Verfügung. Führen Sie stattdessen ein Logout durch und starten Sie das Kunden-Supportlogin auf einem neuen Benutzer oder einer neuen Firma. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Benutzerkonto wechseln","change-account-confirm-dialog":'Möchten Sie in ein anderes Benutzerkonto wechseln? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Weiter</button>',"change-account-support-dialog":'Im Kunden-Supportlogin steht die Funktion "Benutzerkonto wechseln" nicht zur Verfügung. Führen Sie stattdessen ein Logout durch und starten Sie das Kunden-Supportlogin auf einem neuen Benutzer oder einer neuen Firma. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"Meine Onlinedienste",notifications:"Meldungen","toggle-menu":"toggle-menu","no-links":"Keine Favoriten bei Onlinedienste","no-notifications":"Keine ungelesenen Meldungen","more-notifications":"Alle Meldungen","title-text-menu":"Meine Übersicht","title-text-links":"Meine Onlinedienste","title-text-notifications":"Nachrichten",userProfile:"Mein Profil",settings:"Einstellungen"},fr:{"sign-in":"Login","sign-out":"Logout","change-company":"Changer entreprise","change-company-confirm-dialog":'Voulez-vous quitter l\'entreprise actuelle? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Changer enterprise</button>.',"change-company-support-dialog":'Dans le Login-Support, la fonction changer entreprise n\'est pas disponible. Il faut quitter la session et puis démarrer un nouveau Login-Support avec un autre compte ou une société différente. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Déconnexion</button>',"change-account":"Changer de compte","change-account-confirm-dialog":'Vous souhaitez changer de compte utilisateur? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Continuer</button>',"change-account-support-dialog":'La fonction "Changer de compte" n\'est pas disponible dans le login de support client. Déconnectez-vous et démarrez le login de support client sur un autre compte utilisateur ou d\'entreprise. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Déconnexion</button>',links:"Mes services en ligne",notifications:"notifications","toggle-menu":"toggle-menu","no-links":"Pas de favoris","no-notifications":"Pas de notifications non lues","more-notifications":"Toutes les notifications","title-text-menu":"Mon compte","title-text-links":"Mes services en ligne","title-text-notifications":"Messages",userProfile:"Mon profil",settings:"Paramètres"},it:{"sign-in":"Login","sign-out":"Logout","change-company":"Cambia la ditta","change-company-confirm-dialog":'È sicuro di voler uscire dall\'attuale ditta? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Cambia la ditta</button>',"change-company-support-dialog":'Nell\'Assistenza clienti, il cambiamento di ditta non è disponibile. Bisogna prima eseguire un Logout, quindi avviare nuovamente l\'Assistenza clienti selezionando un utente o una ditta differente. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Cambia account utente","change-account-confirm-dialog":'Desidera accedere con un altro account utente? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Avanti</button>',"change-account-support-dialog":'Nel login assistenza clienti non è disponibile la funzione "Modifica account utente". Si consiglia di effettuare il logout, quindi di riaccedere al login assistenza clienti tramite un nuovo account utente o una nuova ditta. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"I miei servizi online",notifications:"notifiche","toggle-menu":"toggle-menu","no-links":"Nessun preferito","no-notifications":"Nessuna notifica non letta","more-notifications":"Tutte le notifiche","title-text-menu":"Il mio riepilogo","title-text-links":"I miei servizi online","title-text-notifications":"Messaggi",userProfile:"Il mio profilo",settings:"Impostazioni"},en:{"sign-in":"Login","sign-out":"Logout","change-company":"Change company","change-company-confirm-dialog":'Would you like to sign-out from the current company? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Next</button>.',"change-company-support-dialog":'On Kunden-Supportlogin, the function Change company is not available. You have to SignOut and then start again a new Kunden-Supportlogin selecting a different account or company. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Change user account","change-account-confirm-dialog":'Do you want to change to another user account? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Next</button>',"change-account-support-dialog":'The "Change user account" function is not available in the customer support login. Instead, log out and start the customer support login using a new user or new company. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"My online services",notifications:"notifications","toggle-menu":"toggle-menu","no-links":"No favorites","no-notifications":"No unread notifications","more-notifications":"All notifications","title-text-menu":"My overview","title-text-links":"My online services","title-text-notifications":"Inbox",userProfile:"My Profile",settings:"Settings"}},P={"sign-in":{"access-key":"i","tab-index":0},"sign-out":{"access-key":"o","tab-index":3},"toggle-menu":{"access-key":"m","tab-index":0},"change-company":{"access-key":"c","tab-index":2},"change-account":{"access-key":"c","tab-index":2},notifications:{"access-key":"n","tab-index":1},links:{"access-key":"l","tab-index":4}},$={audit:s.endPoint+"/v1/audit",keepalive:s.endPoint+"/v1/session/keepalive",subscribe:s.endPoint+"/v1/session/subscribe",eventbus:s.endPoint+"/eventbus"},z={logoutTargetURL:"",keepAlive:true,keepAliveListeningEvents:"click touchstart keydown",keepAliveOnInit:true,keepAliveInterval:9,showLinks:true,tabIndex:-1,accessKeys:false,notificationsNrToLoad:5,debug:false};if(f!==undefined){N=f.toLowerCase()}const q=function(n){return new URL(n)};const J=q(on());L=J.origin;const W=[{description:U[N].userProfile,url:L+"/selfadmin/?lang="+N,iconclass:"widget_icon_profile"}];const H=L+"/selfadmin/messages/?lang="+N;if(a!==undefined){z=Object.assign({},z,a)}function B(){try{return"sessionStorage"in window&&window.sessionStorage!==null}catch(n){X("No local storage available");return false}}function K(){const n=new Date;return n.getFullYear()+"-"+n.getMonth()+1+"-"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+","+n.getMilliseconds()}function X(n){if(z.debug&&window.console&&window.console.log){console.log("["+K()+"] - KLP.WIDGET - "+n)}}function G(n){const t=JSON.stringify({adr:C,evt:n});if(n.adt){X("Sending auditing event: "+t);fetch($.audit,{method:"POST",credentials:"include",mode:"cors",body:t})}else{X("Auditing disabled: "+t)}}function Y(n,t){if(z.debug&&window.console&&window.console.log){X("Method "+n+" executed on "+t+" ms")}}function V(){return Math.floor(Math.random()*999999999+1)}function Z(n){return U[N][n]}function Q(n){if(z.accessKeys===false||P[n]["access-key"]==null){return""}return'accesskey="'+P[n]["access-key"]+'"'}function nn(n){if(z.tabIndex<0){return 0}return P[n]["tab-index"]+z.tabIndex}function tn(n,t){if(t===undefined){return n}if(n.indexOf("?")===-1){return n+"?"+t}else{return n+"&"+t}}function en(){return tn(o,rn())}function rn(){let t="";n.each({app:e,service:r,lang:N},(function(n,e){if(o.toLowerCase().indexOf(n.toLowerCase())===-1){if(t.length>0){t+="&"}t+=n+"="+e}}));return t.length>0?t:undefined}function on(){const n="klp";const t=false;return tn(s.logoutURL,"app="+e+"&lang="+N+"&service="+n+"&inIframe="+t+"&logoutTargetURL="+z.logoutTargetURL)}function un(n){X("Clearing cache and sessionData before starting the logout process");E=undefined;pn();X("Proceeding to logoutUrl with following path "+n);window.location.href=n}function fn(){Dn().find("#"+t+" #klp-widget-authenticated-menu-changecompany").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" #klp-widget-authenticated-menu-changecompany").focus();sn();return false}))}function sn(){let n;let e;if(E!==undefined&&E.support){if(Pn()){n=Z("change-account-support-dialog")}else{n=Z("change-company-support-dialog")}e=on()}else{if(Pn()){n=Z("change-account-confirm-dialog")}else{n=Z("change-company-confirm-dialog")}e=an()}if(Dn().find("#"+t+" #klp-widget-authenticated-changecompanydialog").length===0){const i='<div id="changeAccountModal" class="modal"><div class="modal-content"><div class="modal-text-container row"><div class="col-12 text-align-center"><i class="pi pi-2086"></i></div><span class="close">&times;</span><div class="col-1"></div><div class="col-10 text-align-center"><p class="modal-text">'+n+"</div></div></div>";Dn().find("#"+t+" .klp-widget-authenticated").append(i);let r=Dn().find("#changeAccountModal");if(r.length&&r.length>=1){r=r[0]}r.style.display="table";const o=Dn().find("#changeAccountModal .close")[0];o.onclick=function(){r.parentElement.removeChild(r)};window.onclick=function(n){if(n.target===r){r.parentElement.removeChild(r)}};Dn().find("#klp-widget-authenticated-dochangecompany").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" #klp-widget-authenticated-dochangecompany").focus();un(e);return false}))}}function an(){return on()+"&changecompany=true"}function cn(){R=true}function ln(){const n=dn();if(n){C=n.address;S=true;E=n.sessionData;ot();if(gn()){Jn(kn(A))}}}function dn(){if(B()){const n=sessionStorage.getItem(g);if(n){try{const t=JSON.parse(n);if(t.ttl>(new Date).getTime()&&vn(t.sessionData)){X("Valid persisted state loaded: "+n);return t}else{X("Persisted state expired or invalid");pn();wn("all","sub")}}catch(n){X("Persisted state was invalid due to error '"+n+"'");pn();wn("all","sub")}}else{X("No persisted state found");pn();wn("all","sub")}}else{X("State not loaded because HTML storage not supported")}return null}function hn(n){if(B()){sessionStorage.setItem(g,'{"ttl": '+((new Date).getTime()+n)+',"sessionData": '+JSON.stringify(E)+', "address":"'+C+'"}');X("State persisted");wn("hash",encodeURIComponent(bn(E)))}else{X("State not persisted because HTML storage not supported")}}function pn(){if(B()){sessionStorage.removeItem(g);X("Persisted state removed");yn()}else{X("Persisted state not removed because HTML storage not supported")}}function vn(n){const t=bn(n).toString();const e=mn("hash");if(t===e){return true}if(e===undefined&&!gn()){X("Cache validated because on a different host=["+window.location.hostname+"] than control cookie domain=["+w+"]");return true}X("PersistedData are invalid [hashPersistedData="+t+",control cookie="+e+"]");return false}function gn(){return window.location.hostname.match(y)}function bn(n){n=JSON.stringify(n);let t=0,e,i,r;if(n.length===0)return t;for(e=0,r=n.length;e<r;e++){i=n.charCodeAt(e);t=(t<<5)-t+i;t|=0}return t}function mn(n){const t=k.exec(document.cookie);if(t!=null){const e=decodeURIComponent(t[1]).split(":");switch(n){case"hash":if(e[0]!=null)return e[0];break;case"keepalive":if(e[1]!=null)return e[1];break;default:return decodeURIComponent(t[1])}return null}else{X("Control cookie not found");return null}}function wn(n,t){const e="; SameSite=None; Secure";switch(n){case"hash":document.cookie=m+"="+t+":"+mn("keepalive")+"; Path=/; domain="+w+e;break;case"keepalive":document.cookie=m+"="+mn("hash")+":"+t+"; Path=/; domain="+w+e;break;default:document.cookie=m+"="+t+"; Path=/; domain="+w+e;break}}function yn(){if(S){document.cookie=m+"="+"sub"+"; Path=/; domain="+w;X("Control cookie set to sub")}else{document.cookie=m+"="+""+"; Path=/; Expires=Wed, 01 Apr 2014 01:00:00 GMT; domain="+w;X("Control cookie removed")}}function kn(t){const e=b+t;if(B()){const i=sessionStorage.getItem(e);if(i){const e=n.parseJSON(i);X("Document "+t+" has been read from cache with value "+e);return e}}return null}function xn(n,t){const e=b+t;if(B()){sessionStorage.setItem(e,JSON.stringify(n));X("Document "+t+" has been persisted on cached with value "+JSON.stringify(n))}}function Cn(){Sn(A)}function Sn(n){const t=b+n;if(B()){sessionStorage.removeItem(t);X("Document "+n+" has been removed from cache")}}function En(){if(z.keepAliveListeningEvents.length>0){n(document).on(z.keepAliveListeningEvents,cn)}}function jn(){if(z.keepAliveListeningEvents.length>0){n(document).off(z.keepAliveListeningEvents,cn)}}function Fn(){if(R){R=false;An()}else{X("Keepalive call canceled due to user inactivity")}}function Tn(){if(z.keepAlive&&I===undefined){En();I=window.setInterval(Fn,z.keepAliveInterval*60*1e3)}}function On(){if(z.keepAlive){jn();if(I){window.clearInterval(I);I=undefined}}}function An(){if(Bn()){const n="<img src='"+s.keepAliveURL+"/?"+V()+"'><img src='"+$.keepalive+"?"+V()+"'>";Dn().find("#"+v).html(n);if(typeof F=="function"){F()}wn("keepalive",(new Date).getTime())}}function Rn(){const n=(new Date).getTime();const t=mn("keepalive");if(isNaN(t)||n-parseInt(t)>z.keepAliveInterval*60*1e3){X("Running keepAliveSessionsOnInit");An();return}X("keepAliveSessionsOnInit not running due to [now="+n+",last="+t+",interval="+z.keepAliveInterval*60*1e3)}function In(){X("Preparing for communication with iframe content");function n(n){const t=["post.ch","postauto.ch","postfinance.ch"];const e=new URL(n.origin);if(t.includes(e.host)&&n.data==="syncWidget"){X("PostMessage syncWidget received");et()}}if(window.addEventListener){window.addEventListener("message",n)}else{window.attachEvent("onmessage",n)}}function Nn(){if(D){X("Widget shows up in "+((new Date).getTime()-D)+" [msec]");D=undefined}}function Ln(n,t){Dn().find(n).append('<div id="'+t+'" style="display:none;"></div>')}function Dn(){return n(document.querySelector("swisspost-internet-header").shadowRoot.querySelector("post-klp-login-widget").shadowRoot.querySelector(".widget-wrapper"))}function Mn(){Dn().find("#"+t).addClass("anonymous");Dn().find("#"+t).attr("data-custom-focus-id","klp-widget");Dn().find("#"+t).html('<div class="klp-widget-anonymous"><div class="klp-widget-anonymous__wrapper">'+'<a tabindex="'+nn("sign-in")+'" '+Q("sign-in")+' title="'+Z("sign-in")+'" href="'+en()+'" data-custom-focus-target="klp-widget" data-custom-focus-direction="parent" role="button"><span class="klp-widget-anonymous__text">'+Z("sign-in")+'</span><svg class="ppm-svg-icon ppm-main-navigation__login-icon" focusable="false"><use xlink:href="#2064_arrow-enter"></use></svg></a>'+"</div></div>");Dn().find("#"+t).on("click touch",(function(n){n.preventDefault();document.location.href=en();return false}))}function _n(){Dn().find("#"+t).off("click touch");let n="",e="";if(E.userType==="B2C"){e="klp-widget-authenticated-session-name u_var_centered"}else{n=E.company;e="klp-widget-authenticated-session-name"}let i="klp-widget-authenticated";if(E.support){i+=" klp-widget-support"}Dn().find("#"+t).html('<div class="'+i+'">'+'<div class="klp-widget-authenticated-session klp-widget-menu-close">'+'<a href="about:blank" role="button" class="klp-widget-authenticated-session-link klp-widget__user" title="'+Z("title-text-menu")+'" tabindex="'+nn("toggle-menu")+'" '+Q("toggle-menu")+' data-dropdown="klp-widget-authenticated-menu" aria-expanded="false" aria-controls="authenticated-menu">'+'<div class="'+e+'">'+E.name+"&nbsp;"+E.surname+"</div>"+'<span class="initials-mobile">'+E.name.substring(0,1)+E.surname.substring(0,1)+"</span>"+'<span class="notification-number"></span>'+"</a>"+$n(e,n,E)+"</div>"+"</div>");Dn().find(".notification-number").css("visibility","hidden");Dn().find(".notification-number-detail").css("visibility","hidden");Ln("#"+t,v);Dn().find("#"+t+" .klp-widget__user").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" .klp-widget__user").focus();Wn();Hn();return false}));Dn().find("#"+t+" #klp-widget-authenticated-menu-logout").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" #klp-widget-authenticated-menu-logout").focus();un(on());return false}));if(Un()||Pn()){fn()}at()}function Un(){return E.userType==="B2B"&&E.canChangeCompany&&E.changeUserAndProfile==null||E.changeUserAndProfile!=null&&E.changeUserAndProfile==="profile"}function Pn(){return E.changeUserAndProfile!=null&&E.changeUserAndProfile==="userAndProfile"}function $n(t,e,i){let r="";let o="name";let u="info";if(W!==undefined){if(t.indexOf("centered")!==-1){o="nameCentered"}if(e.length===0){u="infoHidden"}r+='<li class="name-and-surname">'+'<div class="initials-circle">'+'<div class="initials-container">'+"<div>"+i.name.substring(0,1)+i.surname.substring(0,1)+"</div>"+"</div>"+"</div>"+'<div class="nameAndInfoWrapper"><span class="'+o+'">'+i.name+"&nbsp;"+i.surname+"</span>"+'<span class="'+u+'">'+e+"</span></div>"+"</li>";n.each(W,(function(n,t){r+="<li>"+'<a class="notification-link" title="'+t.description+'" href="'+t.url+'"><div class="'+t.iconclass+'"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+t.description+"</span></div></a>"+"</li>"}));r+="<li>"+'<a class="notification-link" title="'+Z("title-text-notifications")+'" href="'+H+'"><div class="widget_icon_notification" aria-hidden></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("title-text-notifications")+'</span><span class="notification-number-detail"></span></div></a>'+"</li>"}if(i.userType==="B2C"){const n={int01:"https://serviceint1.post.ch/kvm/app/ui",int02:"https://serviceint2.post.ch/kvm/app/ui",prod:"https://service.post.ch/kvm/app/ui"};const t=`${n[c]}/settings`;r+=`\n <li>\n <a class="notification-link" href="${t}">\n <div class="widget_icon_settings" aria-hidden></div>\n <div class="linkContainer">\n <span class="klp-widget-notification-link-text">${U[N].settings}</span>\n </div>\n </a>\n </li>\n `}let f="";if(Un()){f="<li>"+'<a id="klp-widget-authenticated-menu-changecompany" class="notification-link" tabindex="'+nn("change-company")+'" '+Q("change-company")+' href="about:blank" role="button" title="'+Z("change-company")+'"><div class="widget_icon_changecompany"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("change-company")+"</span></div></a>"+"</li>"}else if(Pn()){f="<li>"+'<a id="klp-widget-authenticated-menu-changecompany" class="notification-link" tabindex="'+nn("change-account")+'" '+Q("change-company")+' href="about:blank" role="button" title="'+Z("change-account")+'"><div class="widget_icon_changecompany"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("change-account")+"</span></div></a>"+"</li>"}return'<div class="klp-widget-authenticated-menu" id="authenticated-menu" data-dropdown-toggler="klp-widget__user">'+"<ul>"+r+f+"<li>"+'<a id="klp-widget-authenticated-menu-logout" class="notification-link" tabindex="'+nn("sign-out")+'" '+Q("sign-out")+' title="'+Z("sign-out")+'" href="about:blank" role="button"><div class="widget_icon_logout"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("sign-out")+"</span></div></a>"+"</li>"+"</ul>"+"</div>"}function zn(n,t){switch(t){case A:Jn(n);xn(n,A);break;default:X("Unknown documentType received: "+t)}if(typeof O[t]=="function"){O[t](n)}}function qn(n){switch(n){case A:Sn(A);break;default:X("Unknown documentType received: "+n)}if(typeof O[n]=="function"){O[n](undefined)}}function Jn(t){if(t!=null&&n(".notification-number").text()!==t.unreadNotifications){_=t.unreadNotifications;if(_===0){n(".notification-number").css("visibility","hidden")}else{n(".notification-number").css("visibility","visible")}}}function Wn(){ft(Dn().find("#"+t+" .klp-widget-authenticated-menu"))}function Hn(){if(_!==0){if(_>99){Dn().find(".notification-number-detail").css("visibility","visible").text("99+")}else{Dn().find(".notification-number-detail").css("visibility","visible").text(_)}}else{Dn().find(".notification-number-detail").css("visibility","hidden")}}function Bn(){return typeof E!=="undefined"}function Kn(){if(!Bn()){return"NONE"}return E.userType}function Xn(){if(!Bn()){return"NONE"}return E.authLevel}function Gn(n){if(n!==undefined){o=n;ot();X("Widget appLoginURL has been replaced with "+o)}}function Yn(t){if(t!==undefined){z=n.extend(z,t);ot()}X("Widget has been updated")}function Vn(n,t,e){E=n;ot();Tn();hn(t);if(e&&typeof j=="function"){j();X("loginCallback has been called: "+j)}}function Zn(){E=undefined;C=undefined;pn();Cn();ot();On();if(typeof T=="function"){T()}}function Qn(){if(x){x.registerHandler(C,(function(n,t){nt(n)}))}}function nt(n){X("Message received: "+JSON.stringify(n));G(n);S=false;switch(n.typ){case"ukn":if(n.sub){S=true;Zn();et()}else{Zn()}break;case"sub":C=n.adr;Vn(n.data,n.ttl,false);it();break;case"hi":Vn(n.data,n.ttl,true);Sn(A);break;case"bye":Zn();break;case"doc":zn(n.doc,n.doctyp);break;case"rem":qn(n.doctyp);break;default:X("Unknown event received: "+n.typ);Zn();break}}function tt(){if(gn()){return null!=mn()}else{return true}}function et(){if(!C){if(tt()){X("Subscribing to get an address");const n=(new Date).getTime();fetch($.subscribe,{method:"GET",credentials:"include",mode:"cors"}).then((n=>n.json())).then((n=>nt(n))).catch((n=>{X("Failed to subscribe: "+n.message);Zn();ot()}));Y("subscribe()",(new Date).getTime()-n)}else{X("Control cookie not found, skipping subscription");ot()}}else{X("Address available, skipping subscription");it()}}function it(){if(!x){x=new i.EventBus($.eventbus,{debug:z.debug,devel:z.debug});x.onopen=function(){X("EventBus opened");Qn();n(window).on("beforeunload",rt)};x.onclose=function(){X("EventBus closed");X("Communication closed with retrySubscribeOnFail="+S+". Retrying subscribe");x=null;n(window).off("beforeunload",rt);if(S){S=false;C=undefined;et()}}}}function rt(){if(x){x.close()}}function ot(){if(typeof E!=="undefined"){_n()}else{Mn()}document.dispatchEvent(new CustomEvent("wepploginwidget_widget_ready"));Nn();Dn().find(".klp-widget-authenticated-session-link").click()}function ut(){ln();et();if(z.keepAliveOnInit&&Bn()){Rn()}In()}function ft(e){if(e.is(":visible")){Dn().find("#"+t).removeClass("bubble");st();return}st();Dn().find("."+e.attr("data-dropdown-toggler")).attr("aria-expanded",true);Dn().find("#"+t).addClass("bubble");e.show();n(document).on("click",st);if(e.hasClass("klp-widget-authenticated-menu")){e.parent().removeClass("klp-widget-menu-close").addClass("klp-widget-menu-open")}}function st(n){if(n!=null){if(Dn().find(n.target).parents("#"+t).length>0){return}}Dn().find(document).off("click",st);Dn().find("#"+t).removeClass("bubble");Dn().find("#"+t+" .klp-widget-authenticated-menu").hide().parent().removeClass("klp-widget-menu-open").addClass("klp-widget-menu-close");Dn().find("."+Dn().find("#"+t+" .klp-widget-authenticated-menu").attr("data-dropdown-toggler")).attr("aria-expanded",false)}function at(){Dn().find(".klp-widget__user").on("keydown",(function(n){if(n.which<37||n.which>40){return}n.preventDefault();const t=Dn().find(this).parent();const e=Dn().find("."+Dn().find(this).attr("data-dropdown"));switch(n.which){case 37:if(t.prev().length){t.prev().find("a").focus()}if(e.is(":visible")){Dn().find(this).click()}break;case 38:if(e.is(":visible")){Dn().find(this).click()}break;case 39:if(t.next().length){t.next().find("a").focus()}if(e.is(":visible")){Dn().find(this).click()}break;case 40:if(!e.is(":visible")){Dn().find(this).click()}e.find("li:first a").focus();break}}));Dn().find(".klp-widget-authenticated-menu").on("keydown","a",(function(n){if(n.which<37||n.which>40){return}n.preventDefault();const t=Dn().find(this).parent();const e=Dn().find("."+Dn().find(this).parents("div").first().attr("data-dropdown-toggler"));switch(n.which){case 37:case 38:if(t.prev("li").length>0){t.prev("li").find("a").focus()}else{e.click().focus()}break;case 39:case 40:if(t.next("li").length>0){t.next("li").find("a").focus()}break}}));n("body").on("keydown",(function(n){if(n.which!==27){return}st()}))}ut();return{keepAliveSessions:function(){An()},isUserAuthenticated:function(){return Bn()},getUserType:function(){return Kn()},getCurrentAuthLevel:function(){return Xn()},changeAppLoginURL:function(n){Gn(n)},updateWidget:function(n){Yn(n)},registerLoginCallback:function(n){X("Login callback has been registered");j=n},unregisterLoginCallback:function(){X("Login callback has been un-registered");j=undefined},registerKeepAliveCallback:function(n){X("KeepAlive callback has been registered");F=n},unregisterKeepAliveCallback:function(){X("KeepAlive callback has been un-registered");F=undefined},registerLogoutCallback:function(n){X("Logout callback has been registered");T=n},unregisterLogoutCallback:function(){X("Logout callback has been un-registered");T=undefined},registerDocumentCallback:function(n,t){X("Document callback for documentType "+n+" has been registered");O[n]=t},unregisterDocumentCallback:function(n){X("Document callback for documentType "+n+" has been un-registered");O[n]=undefined},version:function(){return M},setDebug:function(n){z.debug=n}}}})(e);const r=(n,t)=>{if(!t){return}try{window.OPPklpWidget=window.klpWidgetDev(n,t.applicationId,t.serviceId,t.appLoginUrl,null,t.currentLang,t.platform,t.options,t.environment)}catch(n){console.error(n)}};export{r as initializeKLPLoginWidget};
27
- //# sourceMappingURL=p-7e653a26.js.map
26
+ function(n){var t,e,i,r,o,u,f,s,a,c,l,d,h,p,v,g,b,m,w,y="sizzle"+1*new Date,k=n.document,x=0,C=0,S=an(),E=an(),j=an(),F=an(),T=function(n,t){if(n===t){l=true}return 0},O={}.hasOwnProperty,A=[],R=A.pop,I=A.push,N=A.push,L=A.slice,D=function(n,t){var e=0,i=n.length;for(;e<i;e++){if(n[e]===t){return e}}return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|"+"ismap|loop|multiple|open|readonly|required|scoped",_="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+_+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+_+"*("+U+")(?:"+_+"*([*^$|!~]?=)"+_+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+_+"*\\]",$=":("+U+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|"+".*"+")\\)|)",z=new RegExp(_+"+","g"),q=new RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),J=new RegExp("^"+_+"*,"+_+"*"),W=new RegExp("^"+_+"*([>+~]|"+_+")"+_+"*"),H=new RegExp(_+"|>"),B=new RegExp($),K=new RegExp("^"+U+"$"),X={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nn=/[+~]/,tn=new RegExp("\\\\[\\da-fA-F]{1,6}"+_+"?|\\\\([^\\r\\n\\f])","g"),en=function(n,t){var e="0x"+n.slice(1)-65536;return t?t:e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,e&1023|56320)},rn=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,on=function(n,t){if(t){if(n==="\0"){return"�"}return n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" "}return"\\"+n},un=function(){d()},fn=kn((function(n){return n.disabled===true&&n.nodeName.toLowerCase()==="fieldset"}),{dir:"parentNode",next:"legend"});try{N.apply(A=L.call(k.childNodes),k.childNodes)}catch(n){N={apply:A.length?function(n,t){I.apply(n,L.call(t))}:function(n,t){var e=n.length,i=0;while(n[e++]=t[i++]){}n.length=e-1}}}function sn(n,t,i,r){var o,f,a,c,l,p,b,m=t&&t.ownerDocument,k=t?t.nodeType:9;i=i||[];if(typeof n!=="string"||!n||k!==1&&k!==9&&k!==11){return i}if(!r){d(t);t=t||h;if(v){if(k!==11&&(l=Q.exec(n))){if(o=l[1]){if(k===9){if(a=t.getElementById(o)){if(a.id===o){i.push(a);return i}}else{return i}}else{if(m&&(a=m.getElementById(o))&&w(t,a)&&a.id===o){i.push(a);return i}}}else if(l[2]){N.apply(i,t.getElementsByTagName(n));return i}else if((o=l[3])&&e.getElementsByClassName&&t.getElementsByClassName){N.apply(i,t.getElementsByClassName(o));return i}}if(e.qsa&&!F[n+" "]&&(!g||!g.test(n))&&(k!==1||t.nodeName.toLowerCase()!=="object")){b=n;m=t;if(k===1&&(H.test(n)||W.test(n))){m=nn.test(n)&&mn(t.parentNode)||t;if(m!==t||!e.scope){if(c=t.getAttribute("id")){c=c.replace(rn,on)}else{t.setAttribute("id",c=y)}}p=u(n);f=p.length;while(f--){p[f]=(c?"#"+c:":scope")+" "+yn(p[f])}b=p.join(",")}try{if(e.cssSupportsSelector&&!CSS.supports("selector(:is("+b+"))")){throw new Error}N.apply(i,m.querySelectorAll(b));return i}catch(t){F(n,true)}finally{if(c===y){t.removeAttribute("id")}}}}}return s(n.replace(q,"$1"),t,i,r)}function an(){var n=[];function t(e,r){if(n.push(e+" ")>i.cacheLength){delete t[n.shift()]}return t[e+" "]=r}return t}function cn(n){n[y]=true;return n}function ln(n){var t=h.createElement("fieldset");try{return!!n(t)}catch(n){return false}finally{if(t.parentNode){t.parentNode.removeChild(t)}t=null}}function dn(n,t){var e=n.split("|"),r=e.length;while(r--){i.attrHandle[e[r]]=t}}function hn(n,t){var e=t&&n,i=e&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(i){return i}if(e){while(e=e.nextSibling){if(e===t){return-1}}}return n?1:-1}function pn(n){return function(t){var e=t.nodeName.toLowerCase();return e==="input"&&t.type===n}}function vn(n){return function(t){var e=t.nodeName.toLowerCase();return(e==="input"||e==="button")&&t.type===n}}function gn(n){return function(t){if("form"in t){if(t.parentNode&&t.disabled===false){if("label"in t){if("label"in t.parentNode){return t.parentNode.disabled===n}else{return t.disabled===n}}return t.isDisabled===n||t.isDisabled!==!n&&fn(t)===n}return t.disabled===n}else if("label"in t){return t.disabled===n}return false}}function bn(n){return cn((function(t){t=+t;return cn((function(e,i){var r,o=n([],e.length,t),u=o.length;while(u--){if(e[r=o[u]]){e[r]=!(i[r]=e[r])}}}))}))}function mn(n){return n&&typeof n.getElementsByTagName!=="undefined"&&n}e=sn.support={};o=sn.isXML=function(n){var t=n&&n.namespaceURI,e=n&&(n.ownerDocument||n).documentElement;return!G.test(t||e&&e.nodeName||"HTML")};d=sn.setDocument=function(n){var t,r,u=n?n.ownerDocument||n:k;if(u==h||u.nodeType!==9||!u.documentElement){return h}h=u;p=h.documentElement;v=!o(h);if(k!=h&&(r=h.defaultView)&&r.top!==r){if(r.addEventListener){r.addEventListener("unload",un,false)}else if(r.attachEvent){r.attachEvent("onunload",un)}}e.scope=ln((function(n){p.appendChild(n).appendChild(h.createElement("div"));return typeof n.querySelectorAll!=="undefined"&&!n.querySelectorAll(":scope fieldset div").length}));e.cssSupportsSelector=ln((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}));e.attributes=ln((function(n){n.className="i";return!n.getAttribute("className")}));e.getElementsByTagName=ln((function(n){n.appendChild(h.createComment(""));return!n.getElementsByTagName("*").length}));e.getElementsByClassName=Z.test(h.getElementsByClassName);e.getById=ln((function(n){p.appendChild(n).id=y;return!h.getElementsByName||!h.getElementsByName(y).length}));if(e.getById){i.filter["ID"]=function(n){var t=n.replace(tn,en);return function(n){return n.getAttribute("id")===t}};i.find["ID"]=function(n,t){if(typeof t.getElementById!=="undefined"&&v){var e=t.getElementById(n);return e?[e]:[]}}}else{i.filter["ID"]=function(n){var t=n.replace(tn,en);return function(n){var e=typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id");return e&&e.value===t}};i.find["ID"]=function(n,t){if(typeof t.getElementById!=="undefined"&&v){var e,i,r,o=t.getElementById(n);if(o){e=o.getAttributeNode("id");if(e&&e.value===n){return[o]}r=t.getElementsByName(n);i=0;while(o=r[i++]){e=o.getAttributeNode("id");if(e&&e.value===n){return[o]}}}return[]}}}i.find["TAG"]=e.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!=="undefined"){return t.getElementsByTagName(n)}else if(e.qsa){return t.querySelectorAll(n)}}:function(n,t){var e,i=[],r=0,o=t.getElementsByTagName(n);if(n==="*"){while(e=o[r++]){if(e.nodeType===1){i.push(e)}}return i}return o};i.find["CLASS"]=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!=="undefined"&&v){return t.getElementsByClassName(n)}};b=[];g=[];if(e.qsa=Z.test(h.querySelectorAll)){ln((function(n){var t;p.appendChild(n).innerHTML="<a id='"+y+"'></a>"+"<select id='"+y+"-\r\\' msallowcapture=''>"+"<option selected=''></option></select>";if(n.querySelectorAll("[msallowcapture^='']").length){g.push("[*^$]="+_+"*(?:''|\"\")")}if(!n.querySelectorAll("[selected]").length){g.push("\\["+_+"*(?:value|"+M+")")}if(!n.querySelectorAll("[id~="+y+"-]").length){g.push("~=")}t=h.createElement("input");t.setAttribute("name","");n.appendChild(t);if(!n.querySelectorAll("[name='']").length){g.push("\\["+_+"*name"+_+"*="+_+"*(?:''|\"\")")}if(!n.querySelectorAll(":checked").length){g.push(":checked")}if(!n.querySelectorAll("a#"+y+"+*").length){g.push(".#.+[+~]")}n.querySelectorAll("\\\f");g.push("[\\r\\n\\f]")}));ln((function(n){n.innerHTML="<a href='' disabled='disabled'></a>"+"<select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");if(n.querySelectorAll("[name=d]").length){g.push("name"+_+"*[*^$|!~]?=")}if(n.querySelectorAll(":enabled").length!==2){g.push(":enabled",":disabled")}p.appendChild(n).disabled=true;if(n.querySelectorAll(":disabled").length!==2){g.push(":enabled",":disabled")}n.querySelectorAll("*,:x");g.push(",.*:")}))}if(e.matchesSelector=Z.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector)){ln((function(n){e.disconnectedMatch=m.call(n,"*");m.call(n,"[s!='']:x");b.push("!=",$)}))}if(!e.cssSupportsSelector){g.push(":has")}g=g.length&&new RegExp(g.join("|"));b=b.length&&new RegExp(b.join("|"));t=Z.test(p.compareDocumentPosition);w=t||Z.test(p.contains)?function(n,t){var e=n.nodeType===9&&n.documentElement||n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(e.contains?e.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t){while(t=t.parentNode){if(t===n){return true}}}return false};T=t?function(n,t){if(n===t){l=true;return 0}var i=!n.compareDocumentPosition-!t.compareDocumentPosition;if(i){return i}i=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1;if(i&1||!e.sortDetached&&t.compareDocumentPosition(n)===i){if(n==h||n.ownerDocument==k&&w(k,n)){return-1}if(t==h||t.ownerDocument==k&&w(k,t)){return 1}return c?D(c,n)-D(c,t):0}return i&4?-1:1}:function(n,t){if(n===t){l=true;return 0}var e,i=0,r=n.parentNode,o=t.parentNode,u=[n],f=[t];if(!r||!o){return n==h?-1:t==h?1:r?-1:o?1:c?D(c,n)-D(c,t):0}else if(r===o){return hn(n,t)}e=n;while(e=e.parentNode){u.unshift(e)}e=t;while(e=e.parentNode){f.unshift(e)}while(u[i]===f[i]){i++}return i?hn(u[i],f[i]):u[i]==k?-1:f[i]==k?1:0};return h};sn.matches=function(n,t){return sn(n,null,null,t)};sn.matchesSelector=function(n,t){d(n);if(e.matchesSelector&&v&&!F[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t))){try{var i=m.call(n,t);if(i||e.disconnectedMatch||n.document&&n.document.nodeType!==11){return i}}catch(n){F(t,true)}}return sn(t,h,null,[n]).length>0};sn.contains=function(n,t){if((n.ownerDocument||n)!=h){d(n)}return w(n,t)};sn.attr=function(n,t){if((n.ownerDocument||n)!=h){d(n)}var r=i.attrHandle[t.toLowerCase()],o=r&&O.call(i.attrHandle,t.toLowerCase())?r(n,t,!v):undefined;return o!==undefined?o:e.attributes||!v?n.getAttribute(t):(o=n.getAttributeNode(t))&&o.specified?o.value:null};sn.escape=function(n){return(n+"").replace(rn,on)};sn.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n)};sn.uniqueSort=function(n){var t,i=[],r=0,o=0;l=!e.detectDuplicates;c=!e.sortStable&&n.slice(0);n.sort(T);if(l){while(t=n[o++]){if(t===n[o]){r=i.push(o)}}while(r--){n.splice(i[r],1)}}c=null;return n};r=sn.getText=function(n){var t,e="",i=0,o=n.nodeType;if(!o){while(t=n[i++]){e+=r(t)}}else if(o===1||o===9||o===11){if(typeof n.textContent==="string"){return n.textContent}else{for(n=n.firstChild;n;n=n.nextSibling){e+=r(n)}}}else if(o===3||o===4){return n.nodeValue}return e};i=sn.selectors={cacheLength:50,createPseudo:cn,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){n[1]=n[1].replace(tn,en);n[3]=(n[3]||n[4]||n[5]||"").replace(tn,en);if(n[2]==="~="){n[3]=" "+n[3]+" "}return n.slice(0,4)},CHILD:function(n){n[1]=n[1].toLowerCase();if(n[1].slice(0,3)==="nth"){if(!n[3]){sn.error(n[0])}n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd"));n[5]=+(n[7]+n[8]||n[3]==="odd")}else if(n[3]){sn.error(n[0])}return n},PSEUDO:function(n){var t,e=!n[6]&&n[2];if(X["CHILD"].test(n[0])){return null}if(n[3]){n[2]=n[4]||n[5]||""}else if(e&&B.test(e)&&(t=u(e,true))&&(t=e.indexOf(")",e.length-t)-e.length)){n[0]=n[0].slice(0,t);n[2]=e.slice(0,t)}return n.slice(0,3)}},filter:{TAG:function(n){var t=n.replace(tn,en).toLowerCase();return n==="*"?function(){return true}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=S[n+" "];return t||(t=new RegExp("(^|"+_+")"+n+"("+_+"|$)"))&&S(n,(function(n){return t.test(typeof n.className==="string"&&n.className||typeof n.getAttribute!=="undefined"&&n.getAttribute("class")||"")}))},ATTR:function(n,t,e){return function(i){var r=sn.attr(i,n);if(r==null){return t==="!="}if(!t){return true}r+="";return t==="="?r===e:t==="!="?r!==e:t==="^="?e&&r.indexOf(e)===0:t==="*="?e&&r.indexOf(e)>-1:t==="$="?e&&r.slice(-e.length)===e:t==="~="?(" "+r.replace(z," ")+" ").indexOf(e)>-1:t==="|="?r===e||r.slice(0,e.length+1)===e+"-":false}},CHILD:function(n,t,e,i,r){var o=n.slice(0,3)!=="nth",u=n.slice(-4)!=="last",f=t==="of-type";return i===1&&r===0?function(n){return!!n.parentNode}:function(t,e,s){var a,c,l,d,h,p,v=o!==u?"nextSibling":"previousSibling",g=t.parentNode,b=f&&t.nodeName.toLowerCase(),m=!s&&!f,w=false;if(g){if(o){while(v){d=t;while(d=d[v]){if(f?d.nodeName.toLowerCase()===b:d.nodeType===1){return false}}p=v=n==="only"&&!p&&"nextSibling"}return true}p=[u?g.firstChild:g.lastChild];if(u&&m){d=g;l=d[y]||(d[y]={});c=l[d.uniqueID]||(l[d.uniqueID]={});a=c[n]||[];h=a[0]===x&&a[1];w=h&&a[2];d=h&&g.childNodes[h];while(d=++h&&d&&d[v]||(w=h=0)||p.pop()){if(d.nodeType===1&&++w&&d===t){c[n]=[x,h,w];break}}}else{if(m){d=t;l=d[y]||(d[y]={});c=l[d.uniqueID]||(l[d.uniqueID]={});a=c[n]||[];h=a[0]===x&&a[1];w=h}if(w===false){while(d=++h&&d&&d[v]||(w=h=0)||p.pop()){if((f?d.nodeName.toLowerCase()===b:d.nodeType===1)&&++w){if(m){l=d[y]||(d[y]={});c=l[d.uniqueID]||(l[d.uniqueID]={});c[n]=[x,w]}if(d===t){break}}}}}w-=r;return w===i||w%i===0&&w/i>=0}}},PSEUDO:function(n,t){var e,r=i.pseudos[n]||i.setFilters[n.toLowerCase()]||sn.error("unsupported pseudo: "+n);if(r[y]){return r(t)}if(r.length>1){e=[n,n,"",t];return i.setFilters.hasOwnProperty(n.toLowerCase())?cn((function(n,e){var i,o=r(n,t),u=o.length;while(u--){i=D(n,o[u]);n[i]=!(e[i]=o[u])}})):function(n){return r(n,0,e)}}return r}},pseudos:{not:cn((function(n){var t=[],e=[],i=f(n.replace(q,"$1"));return i[y]?cn((function(n,t,e,r){var o,u=i(n,null,r,[]),f=n.length;while(f--){if(o=u[f]){n[f]=!(t[f]=o)}}})):function(n,r,o){t[0]=n;i(t,null,o,e);t[0]=null;return!e.pop()}})),has:cn((function(n){return function(t){return sn(n,t).length>0}})),contains:cn((function(n){n=n.replace(tn,en);return function(t){return(t.textContent||r(t)).indexOf(n)>-1}})),lang:cn((function(n){if(!K.test(n||"")){sn.error("unsupported lang: "+n)}n=n.replace(tn,en).toLowerCase();return function(t){var e;do{if(e=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){e=e.toLowerCase();return e===n||e.indexOf(n+"-")===0}}while((t=t.parentNode)&&t.nodeType===1);return false}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(n){return n===p},focus:function(n){return n===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:gn(false),disabled:gn(true),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.selected===true},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling){if(n.nodeType<6){return false}}return true},parent:function(n){return!i.pseudos["empty"](n)},header:function(n){return V.test(n.nodeName)},input:function(n){return Y.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:bn((function(){return[0]})),last:bn((function(n,t){return[t-1]})),eq:bn((function(n,t,e){return[e<0?e+t:e]})),even:bn((function(n,t){var e=0;for(;e<t;e+=2){n.push(e)}return n})),odd:bn((function(n,t){var e=1;for(;e<t;e+=2){n.push(e)}return n})),lt:bn((function(n,t,e){var i=e<0?e+t:e>t?t:e;for(;--i>=0;){n.push(i)}return n})),gt:bn((function(n,t,e){var i=e<0?e+t:e;for(;++i<t;){n.push(i)}return n}))}};i.pseudos["nth"]=i.pseudos["eq"];for(t in{radio:true,checkbox:true,file:true,password:true,image:true}){i.pseudos[t]=pn(t)}for(t in{submit:true,reset:true}){i.pseudos[t]=vn(t)}function wn(){}wn.prototype=i.filters=i.pseudos;i.setFilters=new wn;u=sn.tokenize=function(n,t){var e,r,o,u,f,s,a,c=E[n+" "];if(c){return t?0:c.slice(0)}f=n;s=[];a=i.preFilter;while(f){if(!e||(r=J.exec(f))){if(r){f=f.slice(r[0].length)||f}s.push(o=[])}e=false;if(r=W.exec(f)){e=r.shift();o.push({value:e,type:r[0].replace(q," ")});f=f.slice(e.length)}for(u in i.filter){if((r=X[u].exec(f))&&(!a[u]||(r=a[u](r)))){e=r.shift();o.push({value:e,type:u,matches:r});f=f.slice(e.length)}}if(!e){break}}return t?f.length:f?sn.error(n):E(n,s).slice(0)};function yn(n){var t=0,e=n.length,i="";for(;t<e;t++){i+=n[t].value}return i}function kn(n,t,e){var i=t.dir,r=t.next,o=r||i,u=e&&o==="parentNode",f=C++;return t.first?function(t,e,r){while(t=t[i]){if(t.nodeType===1||u){return n(t,e,r)}}return false}:function(t,e,s){var a,c,l,d=[x,f];if(s){while(t=t[i]){if(t.nodeType===1||u){if(n(t,e,s)){return true}}}}else{while(t=t[i]){if(t.nodeType===1||u){l=t[y]||(t[y]={});c=l[t.uniqueID]||(l[t.uniqueID]={});if(r&&r===t.nodeName.toLowerCase()){t=t[i]||t}else if((a=c[o])&&a[0]===x&&a[1]===f){return d[2]=a[2]}else{c[o]=d;if(d[2]=n(t,e,s)){return true}}}}}return false}}function xn(n){return n.length>1?function(t,e,i){var r=n.length;while(r--){if(!n[r](t,e,i)){return false}}return true}:n[0]}function Cn(n,t,e){var i=0,r=t.length;for(;i<r;i++){sn(n,t[i],e)}return e}function Sn(n,t,e,i,r){var o,u=[],f=0,s=n.length,a=t!=null;for(;f<s;f++){if(o=n[f]){if(!e||e(o,i,r)){u.push(o);if(a){t.push(f)}}}}return u}function En(n,t,e,i,r,o){if(i&&!i[y]){i=En(i)}if(r&&!r[y]){r=En(r,o)}return cn((function(o,u,f,s){var a,c,l,d=[],h=[],p=u.length,v=o||Cn(t||"*",f.nodeType?[f]:f,[]),g=n&&(o||!t)?Sn(v,d,n,f,s):v,b=e?r||(o?n:p||i)?[]:u:g;if(e){e(g,b,f,s)}if(i){a=Sn(b,h);i(a,[],f,s);c=a.length;while(c--){if(l=a[c]){b[h[c]]=!(g[h[c]]=l)}}}if(o){if(r||n){if(r){a=[];c=b.length;while(c--){if(l=b[c]){a.push(g[c]=l)}}r(null,b=[],a,s)}c=b.length;while(c--){if((l=b[c])&&(a=r?D(o,l):d[c])>-1){o[a]=!(u[a]=l)}}}}else{b=Sn(b===u?b.splice(p,b.length):b);if(r){r(null,u,b,s)}else{N.apply(u,b)}}}))}function jn(n){var t,e,r,o=n.length,u=i.relative[n[0].type],f=u||i.relative[" "],s=u?1:0,c=kn((function(n){return n===t}),f,true),l=kn((function(n){return D(t,n)>-1}),f,true),d=[function(n,e,i){var r=!u&&(i||e!==a)||((t=e).nodeType?c(n,e,i):l(n,e,i));t=null;return r}];for(;s<o;s++){if(e=i.relative[n[s].type]){d=[kn(xn(d),e)]}else{e=i.filter[n[s].type].apply(null,n[s].matches);if(e[y]){r=++s;for(;r<o;r++){if(i.relative[n[r].type]){break}}return En(s>1&&xn(d),s>1&&yn(n.slice(0,s-1).concat({value:n[s-2].type===" "?"*":""})).replace(q,"$1"),e,s<r&&jn(n.slice(s,r)),r<o&&jn(n=n.slice(r)),r<o&&yn(n))}d.push(e)}}return xn(d)}function Fn(n,t){var e=t.length>0,r=n.length>0,o=function(o,u,f,s,c){var l,p,g,b=0,m="0",w=o&&[],y=[],k=a,C=o||r&&i.find["TAG"]("*",c),S=x+=k==null?1:Math.random()||.1,E=C.length;if(c){a=u==h||u||c}for(;m!==E&&(l=C[m])!=null;m++){if(r&&l){p=0;if(!u&&l.ownerDocument!=h){d(l);f=!v}while(g=n[p++]){if(g(l,u||h,f)){s.push(l);break}}if(c){x=S}}if(e){if(l=!g&&l){b--}if(o){w.push(l)}}}b+=m;if(e&&m!==b){p=0;while(g=t[p++]){g(w,y,u,f)}if(o){if(b>0){while(m--){if(!(w[m]||y[m])){y[m]=R.call(s)}}}y=Sn(y)}N.apply(s,y);if(c&&!o&&y.length>0&&b+t.length>1){sn.uniqueSort(s)}}if(c){x=S;a=k}return w};return e?cn(o):o}f=sn.compile=function(n,t){var e,i=[],r=[],o=j[n+" "];if(!o){if(!t){t=u(n)}e=t.length;while(e--){o=jn(t[e]);if(o[y]){i.push(o)}else{r.push(o)}}o=j(n,Fn(r,i));o.selector=n}return o};s=sn.select=function(n,t,e,r){var o,s,a,c,l,d=typeof n==="function"&&n,h=!r&&u(n=d.selector||n);e=e||[];if(h.length===1){s=h[0]=h[0].slice(0);if(s.length>2&&(a=s[0]).type==="ID"&&t.nodeType===9&&v&&i.relative[s[1].type]){t=(i.find["ID"](a.matches[0].replace(tn,en),t)||[])[0];if(!t){return e}else if(d){t=t.parentNode}n=n.slice(s.shift().value.length)}o=X["needsContext"].test(n)?0:s.length;while(o--){a=s[o];if(i.relative[c=a.type]){break}if(l=i.find[c]){if(r=l(a.matches[0].replace(tn,en),nn.test(s[0].type)&&mn(t.parentNode)||t)){s.splice(o,1);n=r.length&&yn(s);if(!n){N.apply(e,r);return e}break}}}}(d||f(n,h))(r,t,!v,e,!t||nn.test(n)&&mn(t.parentNode)||t);return e};e.sortStable=y.split("").sort(T).join("")===y;e.detectDuplicates=!!l;d();e.sortDetached=ln((function(n){return n.compareDocumentPosition(h.createElement("fieldset"))&1}));if(!ln((function(n){n.innerHTML="<a href='#'></a>";return n.firstChild.getAttribute("href")==="#"}))){dn("type|href|height|width",(function(n,t,e){if(!e){return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}}))}if(!e.attributes||!ln((function(n){n.innerHTML="<input/>";n.firstChild.setAttribute("value","");return n.firstChild.getAttribute("value")===""}))){dn("value",(function(n,t,e){if(!e&&n.nodeName.toLowerCase()==="input"){return n.defaultValue}}))}if(!ln((function(n){return n.getAttribute("disabled")==null}))){dn(M,(function(n,t,e){var i;if(!e){return n[t]===true?t.toLowerCase():(i=n.getAttributeNode(t))&&i.specified?i.value:null}}))}return sn}(n);k.find=C;k.expr=C.selectors;k.expr[":"]=k.expr.pseudos;k.uniqueSort=k.unique=C.uniqueSort;k.text=C.getText;k.isXMLDoc=C.isXML;k.contains=C.contains;k.escapeSelector=C.escape;var S=function(n,t,e){var i=[],r=e!==undefined;while((n=n[t])&&n.nodeType!==9){if(n.nodeType===1){if(r&&k(n).is(e)){break}i.push(n)}}return i};var E=function(n,t){var e=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==t){e.push(n)}}return e};var j=k.expr.match.needsContext;function F(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(n,t,e){if(p(t)){return k.grep(n,(function(n,i){return!!t.call(n,i,n)!==e}))}if(t.nodeType){return k.grep(n,(function(n){return n===t!==e}))}if(typeof t!=="string"){return k.grep(n,(function(n){return f.call(t,n)>-1!==e}))}return k.filter(t,n,e)}k.filter=function(n,t,e){var i=t[0];if(e){n=":not("+n+")"}if(t.length===1&&i.nodeType===1){return k.find.matchesSelector(i,n)?[i]:[]}return k.find.matches(n,k.grep(t,(function(n){return n.nodeType===1})))};k.fn.extend({find:function(n){var t,e,i=this.length,r=this;if(typeof n!=="string"){return this.pushStack(k(n).filter((function(){for(t=0;t<i;t++){if(k.contains(r[t],this)){return true}}})))}e=this.pushStack([]);for(t=0;t<i;t++){k.find(n,r[t],e)}return i>1?k.uniqueSort(e):e},filter:function(n){return this.pushStack(O(this,n||[],false))},not:function(n){return this.pushStack(O(this,n||[],true))},is:function(n){return!!O(this,typeof n==="string"&&j.test(n)?k(n):n||[],false).length}});var A,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,I=k.fn.init=function(n,t,e){var i,r;if(!n){return this}e=e||A;if(typeof n==="string"){if(n[0]==="<"&&n[n.length-1]===">"&&n.length>=3){i=[null,n,null]}else{i=R.exec(n)}if(i&&(i[1]||!t)){if(i[1]){t=t instanceof k?t[0]:t;k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,true));if(T.test(i[1])&&k.isPlainObject(t)){for(i in t){if(p(this[i])){this[i](t[i])}else{this.attr(i,t[i])}}}return this}else{r=g.getElementById(i[2]);if(r){this[0]=r;this.length=1}return this}}else if(!t||t.jquery){return(t||e).find(n)}else{return this.constructor(t).find(n)}}else if(n.nodeType){this[0]=n;this.length=1;return this}else if(p(n)){return e.ready!==undefined?e.ready(n):n(k)}return k.makeArray(n,this)};I.prototype=k.fn;A=k(g);var N=/^(?:parents|prev(?:Until|All))/,L={children:true,contents:true,next:true,prev:true};k.fn.extend({has:function(n){var t=k(n,this),e=t.length;return this.filter((function(){var n=0;for(;n<e;n++){if(k.contains(this,t[n])){return true}}}))},closest:function(n,t){var e,i=0,r=this.length,o=[],u=typeof n!=="string"&&k(n);if(!j.test(n)){for(;i<r;i++){for(e=this[i];e&&e!==t;e=e.parentNode){if(e.nodeType<11&&(u?u.index(e)>-1:e.nodeType===1&&k.find.matchesSelector(e,n))){o.push(e);break}}}}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(n){if(!n){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof n==="string"){return f.call(k(n),this[0])}return f.call(this,n.jquery?n[0]:n)},add:function(n,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});function D(n,t){while((n=n[t])&&n.nodeType!==1){}return n}k.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return S(n,"parentNode")},parentsUntil:function(n,t,e){return S(n,"parentNode",e)},next:function(n){return D(n,"nextSibling")},prev:function(n){return D(n,"previousSibling")},nextAll:function(n){return S(n,"nextSibling")},prevAll:function(n){return S(n,"previousSibling")},nextUntil:function(n,t,e){return S(n,"nextSibling",e)},prevUntil:function(n,t,e){return S(n,"previousSibling",e)},siblings:function(n){return E((n.parentNode||{}).firstChild,n)},children:function(n){return E(n.firstChild)},contents:function(n){if(n.contentDocument!=null&&i(n.contentDocument)){return n.contentDocument}if(F(n,"template")){n=n.content||n}return k.merge([],n.childNodes)}},(function(n,t){k.fn[n]=function(e,i){var r=k.map(this,t,e);if(n.slice(-5)!=="Until"){i=e}if(i&&typeof i==="string"){r=k.filter(i,r)}if(this.length>1){if(!L[n]){k.uniqueSort(r)}if(N.test(n)){r.reverse()}}return this.pushStack(r)}}));var M=/[^\x20\t\r\n\f]+/g;function _(n){var t={};k.each(n.match(M)||[],(function(n,e){t[e]=true}));return t}k.Callbacks=function(n){n=typeof n==="string"?_(n):k.extend({},n);var t,e,i,r,o=[],u=[],f=-1,s=function(){r=r||n.once;i=t=true;for(;u.length;f=-1){e=u.shift();while(++f<o.length){if(o[f].apply(e[0],e[1])===false&&n.stopOnFalse){f=o.length;e=false}}}if(!n.memory){e=false}t=false;if(r){if(e){o=[]}else{o=""}}},a={add:function(){if(o){if(e&&!t){f=o.length-1;u.push(e)}(function t(e){k.each(e,(function(e,i){if(p(i)){if(!n.unique||!a.has(i)){o.push(i)}}else if(i&&i.length&&w(i)!=="string"){t(i)}}))})(arguments);if(e&&!t){s()}}return this},remove:function(){k.each(arguments,(function(n,t){var e;while((e=k.inArray(t,o,e))>-1){o.splice(e,1);if(e<=f){f--}}}));return this},has:function(n){return n?k.inArray(n,o)>-1:o.length>0},empty:function(){if(o){o=[]}return this},disable:function(){r=u=[];o=e="";return this},disabled:function(){return!o},lock:function(){r=u=[];if(!e&&!t){o=e=""}return this},locked:function(){return!!r},fireWith:function(n,e){if(!r){e=e||[];e=[n,e.slice?e.slice():e];u.push(e);if(!t){s()}}return this},fire:function(){a.fireWith(this,arguments);return this},fired:function(){return!!i}};return a};function U(n){return n}function P(n){throw n}function $(n,t,e,i){var r;try{if(n&&p(r=n.promise)){r.call(n).done(t).fail(e)}else if(n&&p(r=n.then)){r.call(n,t,e)}else{t.apply(undefined,[n].slice(i))}}catch(n){e.apply(undefined,[n])}}k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){o.done(arguments).fail(arguments);return this},catch:function(n){return r.then(null,n)},pipe:function(){var n=arguments;return k.Deferred((function(t){k.each(e,(function(e,i){var r=p(n[i[4]])&&n[i[4]];o[i[1]]((function(){var n=r&&r.apply(this,arguments);if(n&&p(n.promise)){n.promise().progress(t.notify).done(t.resolve).fail(t.reject)}else{t[i[0]+"With"](this,r?[n]:arguments)}}))}));n=null})).promise()},then:function(t,i,r){var o=0;function u(t,e,i,r){return function(){var f=this,s=arguments,a=function(){var n,a;if(t<o){return}n=i.apply(f,s);if(n===e.promise()){throw new TypeError("Thenable self-resolution")}a=n&&(typeof n==="object"||typeof n==="function")&&n.then;if(p(a)){if(r){a.call(n,u(o,e,U,r),u(o,e,P,r))}else{o++;a.call(n,u(o,e,U,r),u(o,e,P,r),u(o,e,U,e.notifyWith))}}else{if(i!==U){f=undefined;s=[n]}(r||e.resolveWith)(f,s)}},c=r?a:function(){try{a()}catch(n){if(k.Deferred.exceptionHook){k.Deferred.exceptionHook(n,c.stackTrace)}if(t+1>=o){if(i!==P){f=undefined;s=[n]}e.rejectWith(f,s)}}};if(t){c()}else{if(k.Deferred.getStackHook){c.stackTrace=k.Deferred.getStackHook()}n.setTimeout(c)}}}return k.Deferred((function(n){e[0][3].add(u(0,n,p(r)?r:U,n.notifyWith));e[1][3].add(u(0,n,p(t)?t:U));e[2][3].add(u(0,n,p(i)?i:P))})).promise()},promise:function(n){return n!=null?k.extend(n,r):r}},o={};k.each(e,(function(n,t){var u=t[2],f=t[5];r[t[1]]=u.add;if(f){u.add((function(){i=f}),e[3-n][2].disable,e[3-n][3].disable,e[0][2].lock,e[0][3].lock)}u.add(t[3].fire);o[t[0]]=function(){o[t[0]+"With"](this===o?undefined:this,arguments);return this};o[t[0]+"With"]=u.fireWith}));r.promise(o);if(t){t.call(o,o)}return o},when:function(n){var t=arguments.length,e=t,i=Array(e),o=r.call(arguments),u=k.Deferred(),f=function(n){return function(e){i[n]=this;o[n]=arguments.length>1?r.call(arguments):e;if(!--t){u.resolveWith(i,o)}}};if(t<=1){$(n,u.done(f(e)).resolve,u.reject,!t);if(u.state()==="pending"||p(o[e]&&o[e].then)){return u.then()}}while(e--){$(o[e],f(e),u.reject)}return u.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){if(n.console&&n.console.warn&&t&&z.test(t.name)){n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)}};k.readyException=function(t){n.setTimeout((function(){throw t}))};var q=k.Deferred();k.fn.ready=function(n){q.then(n).catch((function(n){k.readyException(n)}));return this};k.extend({isReady:false,readyWait:1,ready:function(n){if(n===true?--k.readyWait:k.isReady){return}k.isReady=true;if(n!==true&&--k.readyWait>0){return}q.resolveWith(g,[k])}});k.ready.then=q.then;function J(){g.removeEventListener("DOMContentLoaded",J);n.removeEventListener("load",J);k.ready()}if(g.readyState==="complete"||g.readyState!=="loading"&&!g.documentElement.doScroll){n.setTimeout(k.ready)}else{g.addEventListener("DOMContentLoaded",J);n.addEventListener("load",J)}var W=function(n,t,e,i,r,o,u){var f=0,s=n.length,a=e==null;if(w(e)==="object"){r=true;for(f in e){W(n,t,f,e[f],true,o,u)}}else if(i!==undefined){r=true;if(!p(i)){u=true}if(a){if(u){t.call(n,i);t=null}else{a=t;t=function(n,t,e){return a.call(k(n),e)}}}if(t){for(;f<s;f++){t(n[f],e,u?i:i.call(n[f],f,t(n[f],e)))}}}if(r){return n}if(a){return t.call(n)}return s?t(n[0],e):o};var H=/^-ms-/,B=/-([a-z])/g;function K(n,t){return t.toUpperCase()}function X(n){return n.replace(H,"ms-").replace(B,K)}var G=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};function Y(){this.expando=k.expando+Y.uid++}Y.uid=1;Y.prototype={cache:function(n){var t=n[this.expando];if(!t){t={};if(G(n)){if(n.nodeType){n[this.expando]=t}else{Object.defineProperty(n,this.expando,{value:t,configurable:true})}}}return t},set:function(n,t,e){var i,r=this.cache(n);if(typeof t==="string"){r[X(t)]=e}else{for(i in t){r[X(i)]=t[i]}}return r},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][X(t)]},access:function(n,t,e){if(t===undefined||t&&typeof t==="string"&&e===undefined){return this.get(n,t)}this.set(n,t,e);return e!==undefined?e:t},remove:function(n,t){var e,i=n[this.expando];if(i===undefined){return}if(t!==undefined){if(Array.isArray(t)){t=t.map(X)}else{t=X(t);t=t in i?[t]:t.match(M)||[]}e=t.length;while(e--){delete i[t[e]]}}if(t===undefined||k.isEmptyObject(i)){if(n.nodeType){n[this.expando]=undefined}else{delete n[this.expando]}}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!k.isEmptyObject(t)}};var V=new Y;var Z=new Y;var Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nn=/[A-Z]/g;function tn(n){if(n==="true"){return true}if(n==="false"){return false}if(n==="null"){return null}if(n===+n+""){return+n}if(Q.test(n)){return JSON.parse(n)}return n}function en(n,t,e){var i;if(e===undefined&&n.nodeType===1){i="data-"+t.replace(nn,"-$&").toLowerCase();e=n.getAttribute(i);if(typeof e==="string"){try{e=tn(e)}catch(n){}Z.set(n,t,e)}else{e=undefined}}return e}k.extend({hasData:function(n){return Z.hasData(n)||V.hasData(n)},data:function(n,t,e){return Z.access(n,t,e)},removeData:function(n,t){Z.remove(n,t)},_data:function(n,t,e){return V.access(n,t,e)},_removeData:function(n,t){V.remove(n,t)}});k.fn.extend({data:function(n,t){var e,i,r,o=this[0],u=o&&o.attributes;if(n===undefined){if(this.length){r=Z.get(o);if(o.nodeType===1&&!V.get(o,"hasDataAttrs")){e=u.length;while(e--){if(u[e]){i=u[e].name;if(i.indexOf("data-")===0){i=X(i.slice(5));en(o,i,r[i])}}}V.set(o,"hasDataAttrs",true)}}return r}if(typeof n==="object"){return this.each((function(){Z.set(this,n)}))}return W(this,(function(t){var e;if(o&&t===undefined){e=Z.get(o,n);if(e!==undefined){return e}e=en(o,n);if(e!==undefined){return e}return}this.each((function(){Z.set(this,n,t)}))}),null,t,arguments.length>1,null,true)},removeData:function(n){return this.each((function(){Z.remove(this,n)}))}});k.extend({queue:function(n,t,e){var i;if(n){t=(t||"fx")+"queue";i=V.get(n,t);if(e){if(!i||Array.isArray(e)){i=V.access(n,t,k.makeArray(e))}else{i.push(e)}}return i||[]}},dequeue:function(n,t){t=t||"fx";var e=k.queue(n,t),i=e.length,r=e.shift(),o=k._queueHooks(n,t),u=function(){k.dequeue(n,t)};if(r==="inprogress"){r=e.shift();i--}if(r){if(t==="fx"){e.unshift("inprogress")}delete o.stop;r.call(n,u,o)}if(!i&&o){o.empty.fire()}},_queueHooks:function(n,t){var e=t+"queueHooks";return V.get(n,e)||V.access(n,e,{empty:k.Callbacks("once memory").add((function(){V.remove(n,[t+"queue",e])}))})}});k.fn.extend({queue:function(n,t){var e=2;if(typeof n!=="string"){t=n;n="fx";e--}if(arguments.length<e){return k.queue(this[0],n)}return t===undefined?this:this.each((function(){var e=k.queue(this,n,t);k._queueHooks(this,n);if(n==="fx"&&e[0]!=="inprogress"){k.dequeue(this,n)}}))},dequeue:function(n){return this.each((function(){k.dequeue(this,n)}))},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var e,i=1,r=k.Deferred(),o=this,u=this.length,f=function(){if(!--i){r.resolveWith(o,[o])}};if(typeof n!=="string"){t=n;n=undefined}n=n||"fx";while(u--){e=V.get(o[u],n+"queueHooks");if(e&&e.empty){i++;e.empty.add(f)}}f();return r.promise(t)}});var rn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var on=new RegExp("^(?:([+-])=|)("+rn+")([a-z%]*)$","i");var un=["Top","Right","Bottom","Left"];var fn=g.documentElement;var sn=function(n){return k.contains(n.ownerDocument,n)},an={composed:true};if(fn.getRootNode){sn=function(n){return k.contains(n.ownerDocument,n)||n.getRootNode(an)===n.ownerDocument}}var cn=function(n,t){n=t||n;return n.style.display==="none"||n.style.display===""&&sn(n)&&k.css(n,"display")==="none"};function ln(n,t,e,i){var r,o,u=20,f=i?function(){return i.cur()}:function(){return k.css(n,t,"")},s=f(),a=e&&e[3]||(k.cssNumber[t]?"":"px"),c=n.nodeType&&(k.cssNumber[t]||a!=="px"&&+s)&&on.exec(k.css(n,t));if(c&&c[3]!==a){s=s/2;a=a||c[3];c=+s||1;while(u--){k.style(n,t,c+a);if((1-o)*(1-(o=f()/s||.5))<=0){u=0}c=c/o}c=c*2;k.style(n,t,c+a);e=e||[]}if(e){c=+c||+s||0;r=e[1]?c+(e[1]+1)*e[2]:+e[2];if(i){i.unit=a;i.start=c;i.end=r}}return r}var dn={};function hn(n){var t,e=n.ownerDocument,i=n.nodeName,r=dn[i];if(r){return r}t=e.body.appendChild(e.createElement(i));r=k.css(t,"display");t.parentNode.removeChild(t);if(r==="none"){r="block"}dn[i]=r;return r}function pn(n,t){var e,i,r=[],o=0,u=n.length;for(;o<u;o++){i=n[o];if(!i.style){continue}e=i.style.display;if(t){if(e==="none"){r[o]=V.get(i,"display")||null;if(!r[o]){i.style.display=""}}if(i.style.display===""&&cn(i)){r[o]=hn(i)}}else{if(e!=="none"){r[o]="none";V.set(i,"display",e)}}}for(o=0;o<u;o++){if(r[o]!=null){n[o].style.display=r[o]}}return n}k.fn.extend({show:function(){return pn(this,true)},hide:function(){return pn(this)},toggle:function(n){if(typeof n==="boolean"){return n?this.show():this.hide()}return this.each((function(){if(cn(this)){k(this).show()}else{k(this).hide()}}))}});var vn=/^(?:checkbox|radio)$/i;var gn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var bn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var n=g.createDocumentFragment(),t=n.appendChild(g.createElement("div")),e=g.createElement("input");e.setAttribute("type","radio");e.setAttribute("checked","checked");e.setAttribute("name","t");t.appendChild(e);h.checkClone=t.cloneNode(true).cloneNode(true).lastChild.checked;t.innerHTML="<textarea>x</textarea>";h.noCloneChecked=!!t.cloneNode(true).lastChild.defaultValue;t.innerHTML="<option></option>";h.option=!!t.lastChild})();var mn={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,"",""]};mn.tbody=mn.tfoot=mn.colgroup=mn.caption=mn.thead;mn.th=mn.td;if(!h.option){mn.optgroup=mn.option=[1,"<select multiple='multiple'>","</select>"]}function wn(n,t){var e;if(typeof n.getElementsByTagName!=="undefined"){e=n.getElementsByTagName(t||"*")}else if(typeof n.querySelectorAll!=="undefined"){e=n.querySelectorAll(t||"*")}else{e=[]}if(t===undefined||t&&F(n,t)){return k.merge([n],e)}return e}function yn(n,t){var e=0,i=n.length;for(;e<i;e++){V.set(n[e],"globalEval",!t||V.get(t[e],"globalEval"))}}var kn=/<|&#?\w+;/;function xn(n,t,e,i,r){var o,u,f,s,a,c,l=t.createDocumentFragment(),d=[],h=0,p=n.length;for(;h<p;h++){o=n[h];if(o||o===0){if(w(o)==="object"){k.merge(d,o.nodeType?[o]:o)}else if(!kn.test(o)){d.push(t.createTextNode(o))}else{u=u||l.appendChild(t.createElement("div"));f=(gn.exec(o)||["",""])[1].toLowerCase();s=mn[f]||mn._default;u.innerHTML=s[1]+k.htmlPrefilter(o)+s[2];c=s[0];while(c--){u=u.lastChild}k.merge(d,u.childNodes);u=l.firstChild;u.textContent=""}}}l.textContent="";h=0;while(o=d[h++]){if(i&&k.inArray(o,i)>-1){if(r){r.push(o)}continue}a=sn(o);u=wn(l.appendChild(o),"script");if(a){yn(u)}if(e){c=0;while(o=u[c++]){if(bn.test(o.type||"")){e.push(o)}}}}return l}var Cn=/^([^.]*)(?:\.(.+)|)/;function Sn(){return true}function En(){return false}function jn(n,t){return n===Fn()===(t==="focus")}function Fn(){try{return g.activeElement}catch(n){}}function Tn(n,t,e,i,r,o){var u,f;if(typeof t==="object"){if(typeof e!=="string"){i=i||e;e=undefined}for(f in t){Tn(n,f,e,i,t[f],o)}return n}if(i==null&&r==null){r=e;i=e=undefined}else if(r==null){if(typeof e==="string"){r=i;i=undefined}else{r=i;i=e;e=undefined}}if(r===false){r=En}else if(!r){return n}if(o===1){u=r;r=function(n){k().off(n);return u.apply(this,arguments)};r.guid=u.guid||(u.guid=k.guid++)}return n.each((function(){k.event.add(this,t,r,i,e)}))}k.event={global:{},add:function(n,t,e,i,r){var o,u,f,s,a,c,l,d,h,p,v,g=V.get(n);if(!G(n)){return}if(e.handler){o=e;e=o.handler;r=o.selector}if(r){k.find.matchesSelector(fn,r)}if(!e.guid){e.guid=k.guid++}if(!(s=g.events)){s=g.events=Object.create(null)}if(!(u=g.handle)){u=g.handle=function(t){return typeof k!=="undefined"&&k.event.triggered!==t.type?k.event.dispatch.apply(n,arguments):undefined}}t=(t||"").match(M)||[""];a=t.length;while(a--){f=Cn.exec(t[a])||[];h=v=f[1];p=(f[2]||"").split(".").sort();if(!h){continue}l=k.event.special[h]||{};h=(r?l.delegateType:l.bindType)||h;l=k.event.special[h]||{};c=k.extend({type:h,origType:v,data:i,handler:e,guid:e.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:p.join(".")},o);if(!(d=s[h])){d=s[h]=[];d.delegateCount=0;if(!l.setup||l.setup.call(n,i,p,u)===false){if(n.addEventListener){n.addEventListener(h,u)}}}if(l.add){l.add.call(n,c);if(!c.handler.guid){c.handler.guid=e.guid}}if(r){d.splice(d.delegateCount++,0,c)}else{d.push(c)}k.event.global[h]=true}},remove:function(n,t,e,i,r){var o,u,f,s,a,c,l,d,h,p,v,g=V.hasData(n)&&V.get(n);if(!g||!(s=g.events)){return}t=(t||"").match(M)||[""];a=t.length;while(a--){f=Cn.exec(t[a])||[];h=v=f[1];p=(f[2]||"").split(".").sort();if(!h){for(h in s){k.event.remove(n,h+t[a],e,i,true)}continue}l=k.event.special[h]||{};h=(i?l.delegateType:l.bindType)||h;d=s[h]||[];f=f[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");u=o=d.length;while(o--){c=d[o];if((r||v===c.origType)&&(!e||e.guid===c.guid)&&(!f||f.test(c.namespace))&&(!i||i===c.selector||i==="**"&&c.selector)){d.splice(o,1);if(c.selector){d.delegateCount--}if(l.remove){l.remove.call(n,c)}}}if(u&&!d.length){if(!l.teardown||l.teardown.call(n,p,g.handle)===false){k.removeEvent(n,h,g.handle)}delete s[h]}}if(k.isEmptyObject(s)){V.remove(n,"handle events")}},dispatch:function(n){var t,e,i,r,o,u,f=new Array(arguments.length),s=k.event.fix(n),a=(V.get(this,"events")||Object.create(null))[s.type]||[],c=k.event.special[s.type]||{};f[0]=s;for(t=1;t<arguments.length;t++){f[t]=arguments[t]}s.delegateTarget=this;if(c.preDispatch&&c.preDispatch.call(this,s)===false){return}u=k.event.handlers.call(this,s,a);t=0;while((r=u[t++])&&!s.isPropagationStopped()){s.currentTarget=r.elem;e=0;while((o=r.handlers[e++])&&!s.isImmediatePropagationStopped()){if(!s.rnamespace||o.namespace===false||s.rnamespace.test(o.namespace)){s.handleObj=o;s.data=o.data;i=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,f);if(i!==undefined){if((s.result=i)===false){s.preventDefault();s.stopPropagation()}}}}}if(c.postDispatch){c.postDispatch.call(this,s)}return s.result},handlers:function(n,t){var e,i,r,o,u,f=[],s=t.delegateCount,a=n.target;if(s&&a.nodeType&&!(n.type==="click"&&n.button>=1)){for(;a!==this;a=a.parentNode||this){if(a.nodeType===1&&!(n.type==="click"&&a.disabled===true)){o=[];u={};for(e=0;e<s;e++){i=t[e];r=i.selector+" ";if(u[r]===undefined){u[r]=i.needsContext?k(r,this).index(a)>-1:k.find(r,this,null,[a]).length}if(u[r]){o.push(i)}}if(o.length){f.push({elem:a,handlers:o})}}}}a=this;if(s<t.length){f.push({elem:a,handlers:t.slice(s)})}return f},addProp:function(n,t){Object.defineProperty(k.Event.prototype,n,{enumerable:true,configurable:true,get:p(t)?function(){if(this.originalEvent){return t(this.originalEvent)}}:function(){if(this.originalEvent){return this.originalEvent[n]}},set:function(t){Object.defineProperty(this,n,{enumerable:true,configurable:true,writable:true,value:t})}})},fix:function(n){return n[k.expando]?n:new k.Event(n)},special:{load:{noBubble:true},click:{setup:function(n){var t=this||n;if(vn.test(t.type)&&t.click&&F(t,"input")){On(t,"click",Sn)}return false},trigger:function(n){var t=this||n;if(vn.test(t.type)&&t.click&&F(t,"input")){On(t,"click")}return true},_default:function(n){var t=n.target;return vn.test(t.type)&&t.click&&F(t,"input")&&V.get(t,"click")||F(t,"a")}},beforeunload:{postDispatch:function(n){if(n.result!==undefined&&n.originalEvent){n.originalEvent.returnValue=n.result}}}}};function On(n,t,e){if(!e){if(V.get(n,t)===undefined){k.event.add(n,t,Sn)}return}V.set(n,t,false);k.event.add(n,t,{namespace:false,handler:function(n){var i,o,u=V.get(this,t);if(n.isTrigger&1&&this[t]){if(!u.length){u=r.call(arguments);V.set(this,t,u);i=e(this,t);this[t]();o=V.get(this,t);if(u!==o||i){V.set(this,t,false)}else{o={}}if(u!==o){n.stopImmediatePropagation();n.preventDefault();return o&&o.value}}else if((k.event.special[t]||{}).delegateType){n.stopPropagation()}}else if(u.length){V.set(this,t,{value:k.event.trigger(k.extend(u[0],k.Event.prototype),u.slice(1),this)});n.stopImmediatePropagation()}}})}k.removeEvent=function(n,t,e){if(n.removeEventListener){n.removeEventListener(t,e)}};k.Event=function(n,t){if(!(this instanceof k.Event)){return new k.Event(n,t)}if(n&&n.type){this.originalEvent=n;this.type=n.type;this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===false?Sn:En;this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target;this.currentTarget=n.currentTarget;this.relatedTarget=n.relatedTarget}else{this.type=n}if(t){k.extend(this,t)}this.timeStamp=n&&n.timeStamp||Date.now();this[k.expando]=true};k.Event.prototype={constructor:k.Event,isDefaultPrevented:En,isPropagationStopped:En,isImmediatePropagationStopped:En,isSimulated:false,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=Sn;if(n&&!this.isSimulated){n.preventDefault()}},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=Sn;if(n&&!this.isSimulated){n.stopPropagation()}},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=Sn;if(n&&!this.isSimulated){n.stopImmediatePropagation()}this.stopPropagation()}};k.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},k.event.addProp);k.each({focus:"focusin",blur:"focusout"},(function(n,t){k.event.special[n]={setup:function(){On(this,n,jn);return false},trigger:function(){On(this,n);return true},_default:function(t){return V.get(t.target,n)},delegateType:t}}));k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(n,t){k.event.special[n]={delegateType:t,bindType:t,handle:function(n){var e,i=this,r=n.relatedTarget,o=n.handleObj;if(!r||r!==i&&!k.contains(i,r)){n.type=o.origType;e=o.handler.apply(this,arguments);n.type=t}return e}}}));k.fn.extend({on:function(n,t,e,i){return Tn(this,n,t,e,i)},one:function(n,t,e,i){return Tn(this,n,t,e,i,1)},off:function(n,t,e){var i,r;if(n&&n.preventDefault&&n.handleObj){i=n.handleObj;k(n.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);return this}if(typeof n==="object"){for(r in n){this.off(r,t,n[r])}return this}if(t===false||typeof t==="function"){e=t;t=undefined}if(e===false){e=En}return this.each((function(){k.event.remove(this,n,e,t)}))}});var An=/<script|<style|<link/i,Rn=/checked\s*(?:[^=]|=\s*.checked.)/i,In=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Nn(n,t){if(F(n,"table")&&F(t.nodeType!==11?t:t.firstChild,"tr")){return k(n).children("tbody")[0]||n}return n}function Ln(n){n.type=(n.getAttribute("type")!==null)+"/"+n.type;return n}function Dn(n){if((n.type||"").slice(0,5)==="true/"){n.type=n.type.slice(5)}else{n.removeAttribute("type")}return n}function Mn(n,t){var e,i,r,o,u,f,s;if(t.nodeType!==1){return}if(V.hasData(n)){o=V.get(n);s=o.events;if(s){V.remove(t,"handle events");for(r in s){for(e=0,i=s[r].length;e<i;e++){k.event.add(t,r,s[r][e])}}}}if(Z.hasData(n)){u=Z.access(n);f=k.extend({},u);Z.set(t,f)}}function _n(n,t){var e=t.nodeName.toLowerCase();if(e==="input"&&vn.test(n.type)){t.checked=n.checked}else if(e==="input"||e==="textarea"){t.defaultValue=n.defaultValue}}function Un(n,t,e,i){t=o(t);var r,u,f,s,a,c,l=0,d=n.length,v=d-1,g=t[0],b=p(g);if(b||d>1&&typeof g==="string"&&!h.checkClone&&Rn.test(g)){return n.each((function(r){var o=n.eq(r);if(b){t[0]=g.call(this,r,o.html())}Un(o,t,e,i)}))}if(d){r=xn(t,n[0].ownerDocument,false,n,i);u=r.firstChild;if(r.childNodes.length===1){r=u}if(u||i){f=k.map(wn(r,"script"),Ln);s=f.length;for(;l<d;l++){a=r;if(l!==v){a=k.clone(a,true,true);if(s){k.merge(f,wn(a,"script"))}}e.call(n[l],a,l)}if(s){c=f[f.length-1].ownerDocument;k.map(f,Dn);for(l=0;l<s;l++){a=f[l];if(bn.test(a.type||"")&&!V.access(a,"globalEval")&&k.contains(c,a)){if(a.src&&(a.type||"").toLowerCase()!=="module"){if(k._evalUrl&&!a.noModule){k._evalUrl(a.src,{nonce:a.nonce||a.getAttribute("nonce")},c)}}else{m(a.textContent.replace(In,""),a,c)}}}}}}return n}function Pn(n,t,e){var i,r=t?k.filter(t,n):n,o=0;for(;(i=r[o])!=null;o++){if(!e&&i.nodeType===1){k.cleanData(wn(i))}if(i.parentNode){if(e&&sn(i)){yn(wn(i,"script"))}i.parentNode.removeChild(i)}}return n}k.extend({htmlPrefilter:function(n){return n},clone:function(n,t,e){var i,r,o,u,f=n.cloneNode(true),s=sn(n);if(!h.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!k.isXMLDoc(n)){u=wn(f);o=wn(n);for(i=0,r=o.length;i<r;i++){_n(o[i],u[i])}}if(t){if(e){o=o||wn(n);u=u||wn(f);for(i=0,r=o.length;i<r;i++){Mn(o[i],u[i])}}else{Mn(n,f)}}u=wn(f,"script");if(u.length>0){yn(u,!s&&wn(n,"script"))}return f},cleanData:function(n){var t,e,i,r=k.event.special,o=0;for(;(e=n[o])!==undefined;o++){if(G(e)){if(t=e[V.expando]){if(t.events){for(i in t.events){if(r[i]){k.event.remove(e,i)}else{k.removeEvent(e,i,t.handle)}}}e[V.expando]=undefined}if(e[Z.expando]){e[Z.expando]=undefined}}}}});k.fn.extend({detach:function(n){return Pn(this,n,true)},remove:function(n){return Pn(this,n)},text:function(n){return W(this,(function(n){return n===undefined?k.text(this):this.empty().each((function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=n}}))}),null,n,arguments.length)},append:function(){return Un(this,arguments,(function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Nn(this,n);t.appendChild(n)}}))},prepend:function(){return Un(this,arguments,(function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Nn(this,n);t.insertBefore(n,t.firstChild)}}))},before:function(){return Un(this,arguments,(function(n){if(this.parentNode){this.parentNode.insertBefore(n,this)}}))},after:function(){return Un(this,arguments,(function(n){if(this.parentNode){this.parentNode.insertBefore(n,this.nextSibling)}}))},empty:function(){var n,t=0;for(;(n=this[t])!=null;t++){if(n.nodeType===1){k.cleanData(wn(n,false));n.textContent=""}}return this},clone:function(n,t){n=n==null?false:n;t=t==null?n:t;return this.map((function(){return k.clone(this,n,t)}))},html:function(n){return W(this,(function(n){var t=this[0]||{},e=0,i=this.length;if(n===undefined&&t.nodeType===1){return t.innerHTML}if(typeof n==="string"&&!An.test(n)&&!mn[(gn.exec(n)||["",""])[1].toLowerCase()]){n=k.htmlPrefilter(n);try{for(;e<i;e++){t=this[e]||{};if(t.nodeType===1){k.cleanData(wn(t,false));t.innerHTML=n}}t=0}catch(n){}}if(t){this.empty().append(n)}}),null,n,arguments.length)},replaceWith:function(){var n=[];return Un(this,arguments,(function(t){var e=this.parentNode;if(k.inArray(this,n)<0){k.cleanData(wn(this));if(e){e.replaceChild(t,this)}}}),n)}});k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(n,t){k.fn[n]=function(n){var e,i=[],r=k(n),o=r.length-1,f=0;for(;f<=o;f++){e=f===o?this:this.clone(true);k(r[f])[t](e);u.apply(i,e.get())}return this.pushStack(i)}}));var $n=new RegExp("^("+rn+")(?!px)[a-z%]+$","i");var zn=/^--/;var qn=function(t){var e=t.ownerDocument.defaultView;if(!e||!e.opener){e=n}return e.getComputedStyle(t)};var Jn=function(n,t,e){var i,r,o={};for(r in t){o[r]=n.style[r];n.style[r]=t[r]}i=e.call(n);for(r in t){n.style[r]=o[r]}return i};var Wn=new RegExp(un.join("|"),"i");var Hn="[\\x20\\t\\r\\n\\f]";var Bn=new RegExp("^"+Hn+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Hn+"+$","g");(function(){function t(){if(!c){return}a.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%";fn.appendChild(a).appendChild(c);var t=n.getComputedStyle(c);i=t.top!=="1%";s=e(t.marginLeft)===12;c.style.right="60%";u=e(t.right)===36;r=e(t.width)===36;c.style.position="absolute";o=e(c.offsetWidth/3)===12;fn.removeChild(a);c=null}function e(n){return Math.round(parseFloat(n))}var i,r,o,u,f,s,a=g.createElement("div"),c=g.createElement("div");if(!c.style){return}c.style.backgroundClip="content-box";c.cloneNode(true).style.backgroundClip="";h.clearCloneStyle=c.style.backgroundClip==="content-box";k.extend(h,{boxSizingReliable:function(){t();return r},pixelBoxStyles:function(){t();return u},pixelPosition:function(){t();return i},reliableMarginLeft:function(){t();return s},scrollboxSize:function(){t();return o},reliableTrDimensions:function(){var t,e,i,r;if(f==null){t=g.createElement("table");e=g.createElement("tr");i=g.createElement("div");t.style.cssText="position:absolute;left:-11111px;border-collapse:separate";e.style.cssText="border:1px solid";e.style.height="1px";i.style.height="9px";i.style.display="block";fn.appendChild(t).appendChild(e).appendChild(i);r=n.getComputedStyle(e);f=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight;fn.removeChild(t)}return f}})})();function Kn(n,t,e){var i,r,o,u,f=zn.test(t),s=n.style;e=e||qn(n);if(e){u=e.getPropertyValue(t)||e[t];if(f&&u){u=u.replace(Bn,"$1")||undefined}if(u===""&&!sn(n)){u=k.style(n,t)}if(!h.pixelBoxStyles()&&$n.test(u)&&Wn.test(t)){i=s.width;r=s.minWidth;o=s.maxWidth;s.minWidth=s.maxWidth=s.width=u;u=e.width;s.width=i;s.minWidth=r;s.maxWidth=o}}return u!==undefined?u+"":u}function Xn(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var Gn=["Webkit","Moz","ms"],Yn=g.createElement("div").style,Vn={};function Zn(n){var t=n[0].toUpperCase()+n.slice(1),e=Gn.length;while(e--){n=Gn[e]+t;if(n in Yn){return n}}}function Qn(n){var t=k.cssProps[n]||Vn[n];if(t){return t}if(n in Yn){return n}return Vn[n]=Zn(n)||n}var nt=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function it(n,t,e){var i=on.exec(t);return i?Math.max(0,i[2]-(e||0))+(i[3]||"px"):t}function rt(n,t,e,i,r,o){var u=t==="width"?1:0,f=0,s=0;if(e===(i?"border":"content")){return 0}for(;u<4;u+=2){if(e==="margin"){s+=k.css(n,e+un[u],true,r)}if(!i){s+=k.css(n,"padding"+un[u],true,r);if(e!=="padding"){s+=k.css(n,"border"+un[u]+"Width",true,r)}else{f+=k.css(n,"border"+un[u]+"Width",true,r)}}else{if(e==="content"){s-=k.css(n,"padding"+un[u],true,r)}if(e!=="margin"){s-=k.css(n,"border"+un[u]+"Width",true,r)}}}if(!i&&o>=0){s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-o-s-f-.5))||0}return s}function ot(n,t,e){var i=qn(n),r=!h.boxSizingReliable()||e,o=r&&k.css(n,"boxSizing",false,i)==="border-box",u=o,f=Kn(n,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if($n.test(f)){if(!e){return f}f="auto"}if((!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&F(n,"tr")||f==="auto"||!parseFloat(f)&&k.css(n,"display",false,i)==="inline")&&n.getClientRects().length){o=k.css(n,"boxSizing",false,i)==="border-box";u=s in n;if(u){f=n[s]}}f=parseFloat(f)||0;return f+rt(n,t,e||(o?"border":"content"),u,i,f)+"px"}k.extend({cssHooks:{opacity:{get:function(n,t){if(t){var e=Kn(n,"opacity");return e===""?"1":e}}}},cssNumber:{animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{},style:function(n,t,e,i){if(!n||n.nodeType===3||n.nodeType===8||!n.style){return}var r,o,u,f=X(t),s=zn.test(t),a=n.style;if(!s){t=Qn(f)}u=k.cssHooks[t]||k.cssHooks[f];if(e!==undefined){o=typeof e;if(o==="string"&&(r=on.exec(e))&&r[1]){e=ln(n,t,r);o="number"}if(e==null||e!==e){return}if(o==="number"&&!s){e+=r&&r[3]||(k.cssNumber[f]?"":"px")}if(!h.clearCloneStyle&&e===""&&t.indexOf("background")===0){a[t]="inherit"}if(!u||!("set"in u)||(e=u.set(n,e,i))!==undefined){if(s){a.setProperty(t,e)}else{a[t]=e}}}else{if(u&&"get"in u&&(r=u.get(n,false,i))!==undefined){return r}return a[t]}},css:function(n,t,e,i){var r,o,u,f=X(t),s=zn.test(t);if(!s){t=Qn(f)}u=k.cssHooks[t]||k.cssHooks[f];if(u&&"get"in u){r=u.get(n,true,e)}if(r===undefined){r=Kn(n,t,i)}if(r==="normal"&&t in et){r=et[t]}if(e===""||e){o=parseFloat(r);return e===true||isFinite(o)?o||0:r}return r}});k.each(["height","width"],(function(n,t){k.cssHooks[t]={get:function(n,e,i){if(e){return nt.test(k.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?Jn(n,tt,(function(){return ot(n,t,i)})):ot(n,t,i)}},set:function(n,e,i){var r,o=qn(n),u=!h.scrollboxSize()&&o.position==="absolute",f=u||i,s=f&&k.css(n,"boxSizing",false,o)==="border-box",a=i?rt(n,t,i,s,o):0;if(s&&u){a-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(n,t,"border",false,o)-.5)}if(a&&(r=on.exec(e))&&(r[3]||"px")!=="px"){n.style[t]=e;e=k.css(n,t)}return it(n,e,a)}}}));k.cssHooks.marginLeft=Xn(h.reliableMarginLeft,(function(n,t){if(t){return(parseFloat(Kn(n,"marginLeft"))||n.getBoundingClientRect().left-Jn(n,{marginLeft:0},(function(){return n.getBoundingClientRect().left})))+"px"}}));k.each({margin:"",padding:"",border:"Width"},(function(n,t){k.cssHooks[n+t]={expand:function(e){var i=0,r={},o=typeof e==="string"?e.split(" "):[e];for(;i<4;i++){r[n+un[i]+t]=o[i]||o[i-2]||o[0]}return r}};if(n!=="margin"){k.cssHooks[n+t].set=it}}));k.fn.extend({css:function(n,t){return W(this,(function(n,t,e){var i,r,o={},u=0;if(Array.isArray(t)){i=qn(n);r=t.length;for(;u<r;u++){o[t[u]]=k.css(n,t[u],false,i)}return o}return e!==undefined?k.style(n,t,e):k.css(n,t)}),n,t,arguments.length>1)}});k.fn.delay=function(t,e){t=k.fx?k.fx.speeds[t]||t:t;e=e||"fx";return this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))};(function(){var n=g.createElement("input"),t=g.createElement("select"),e=t.appendChild(g.createElement("option"));n.type="checkbox";h.checkOn=n.value!=="";h.optSelected=e.selected;n=g.createElement("input");n.value="t";n.type="radio";h.radioValue=n.value==="t"})();var ut,ft=k.expr.attrHandle;k.fn.extend({attr:function(n,t){return W(this,k.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each((function(){k.removeAttr(this,n)}))}});k.extend({attr:function(n,t,e){var i,r,o=n.nodeType;if(o===3||o===8||o===2){return}if(typeof n.getAttribute==="undefined"){return k.prop(n,t,e)}if(o!==1||!k.isXMLDoc(n)){r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ut:undefined)}if(e!==undefined){if(e===null){k.removeAttr(n,t);return}if(r&&"set"in r&&(i=r.set(n,e,t))!==undefined){return i}n.setAttribute(t,e+"");return e}if(r&&"get"in r&&(i=r.get(n,t))!==null){return i}i=k.find.attr(n,t);return i==null?undefined:i},attrHooks:{type:{set:function(n,t){if(!h.radioValue&&t==="radio"&&F(n,"input")){var e=n.value;n.setAttribute("type",t);if(e){n.value=e}return t}}}},removeAttr:function(n,t){var e,i=0,r=t&&t.match(M);if(r&&n.nodeType===1){while(e=r[i++]){n.removeAttribute(e)}}}});ut={set:function(n,t,e){if(t===false){k.removeAttr(n,e)}else{n.setAttribute(e,e)}return e}};k.each(k.expr.match.bool.source.match(/\w+/g),(function(n,t){var e=ft[t]||k.find.attr;ft[t]=function(n,t,i){var r,o,u=t.toLowerCase();if(!i){o=ft[u];ft[u]=r;r=e(n,t,i)!=null?u:null;ft[u]=o}return r}}));var st=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;k.fn.extend({prop:function(n,t){return W(this,k.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each((function(){delete this[k.propFix[n]||n]}))}});k.extend({prop:function(n,t,e){var i,r,o=n.nodeType;if(o===3||o===8||o===2){return}if(o!==1||!k.isXMLDoc(n)){t=k.propFix[t]||t;r=k.propHooks[t]}if(e!==undefined){if(r&&"set"in r&&(i=r.set(n,e,t))!==undefined){return i}return n[t]=e}if(r&&"get"in r&&(i=r.get(n,t))!==null){return i}return n[t]},propHooks:{tabIndex:{get:function(n){var t=k.find.attr(n,"tabindex");if(t){return parseInt(t,10)}if(st.test(n.nodeName)||at.test(n.nodeName)&&n.href){return 0}return-1}}},propFix:{for:"htmlFor",class:"className"}});if(!h.optSelected){k.propHooks.selected={get:function(n){return null},set:function(n){}}}k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this}));function ct(n){var t=n.match(M)||[];return t.join(" ")}function lt(n){return n.getAttribute&&n.getAttribute("class")||""}function dt(n){if(Array.isArray(n)){return n}if(typeof n==="string"){return n.match(M)||[]}return[]}k.fn.extend({addClass:function(n){var t,e,i,r,o,u;if(p(n)){return this.each((function(t){k(this).addClass(n.call(this,t,lt(this)))}))}t=dt(n);if(t.length){return this.each((function(){i=lt(this);e=this.nodeType===1&&" "+ct(i)+" ";if(e){for(o=0;o<t.length;o++){r=t[o];if(e.indexOf(" "+r+" ")<0){e+=r+" "}}u=ct(e);if(i!==u){this.setAttribute("class",u)}}}))}return this},removeClass:function(n){var t,e,i,r,o,u;if(p(n)){return this.each((function(t){k(this).removeClass(n.call(this,t,lt(this)))}))}if(!arguments.length){return this.attr("class","")}t=dt(n);if(t.length){return this.each((function(){i=lt(this);e=this.nodeType===1&&" "+ct(i)+" ";if(e){for(o=0;o<t.length;o++){r=t[o];while(e.indexOf(" "+r+" ")>-1){e=e.replace(" "+r+" "," ")}}u=ct(e);if(i!==u){this.setAttribute("class",u)}}}))}return this},toggleClass:function(n,t){var e,i,r,o,u=typeof n,f=u==="string"||Array.isArray(n);if(p(n)){return this.each((function(e){k(this).toggleClass(n.call(this,e,lt(this),t),t)}))}if(typeof t==="boolean"&&f){return t?this.addClass(n):this.removeClass(n)}e=dt(n);return this.each((function(){if(f){o=k(this);for(r=0;r<e.length;r++){i=e[r];if(o.hasClass(i)){o.removeClass(i)}else{o.addClass(i)}}}else if(n===undefined||u==="boolean"){i=lt(this);if(i){V.set(this,"__className__",i)}if(this.setAttribute){this.setAttribute("class",i||n===false?"":V.get(this,"__className__")||"")}}}))},hasClass:function(n){var t,e,i=0;t=" "+n+" ";while(e=this[i++]){if(e.nodeType===1&&(" "+ct(lt(e))+" ").indexOf(t)>-1){return true}}return false}});var ht=/\r/g;k.fn.extend({val:function(n){var t,e,i,r=this[0];if(!arguments.length){if(r){t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()];if(t&&"get"in t&&(e=t.get(r,"value"))!==undefined){return e}e=r.value;if(typeof e==="string"){return e.replace(ht,"")}return e==null?"":e}return}i=p(n);return this.each((function(e){var r;if(this.nodeType!==1){return}if(i){r=n.call(this,e,k(this).val())}else{r=n}if(r==null){r=""}else if(typeof r==="number"){r+=""}else if(Array.isArray(r)){r=k.map(r,(function(n){return n==null?"":n+""}))}t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,r,"value")===undefined){this.value=r}}))}});k.extend({valHooks:{option:{get:function(n){var t=k.find.attr(n,"value");return t!=null?t:ct(k.text(n))}},select:{get:function(n){var t,e,i,r=n.options,o=n.selectedIndex,u=n.type==="select-one",f=u?null:[],s=u?o+1:r.length;if(o<0){i=s}else{i=u?o:0}for(;i<s;i++){e=r[i];if((e.selected||i===o)&&!e.disabled&&(!e.parentNode.disabled||!F(e.parentNode,"optgroup"))){t=k(e).val();if(u){return t}f.push(t)}}return f},set:function(n,t){var e,i,r=n.options,o=k.makeArray(t),u=r.length;while(u--){i=r[u];if(i.selected=k.inArray(k.valHooks.option.get(i),o)>-1){e=true}}if(!e){n.selectedIndex=-1}return o}}}});k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(n,t){if(Array.isArray(t)){return n.checked=k.inArray(k(n).val(),t)>-1}}};if(!h.checkOn){k.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value}}}));h.focusin="onfocusin"in n;var pt=/^(?:focusinfocus|focusoutblur)$/,vt=function(n){n.stopPropagation()};k.extend(k.event,{trigger:function(t,e,i,r){var o,u,f,s,a,l,d,h,b=[i||g],m=c.call(t,"type")?t.type:t,w=c.call(t,"namespace")?t.namespace.split("."):[];u=h=f=i=i||g;if(i.nodeType===3||i.nodeType===8){return}if(pt.test(m+k.event.triggered)){return}if(m.indexOf(".")>-1){w=m.split(".");m=w.shift();w.sort()}a=m.indexOf(":")<0&&"on"+m;t=t[k.expando]?t:new k.Event(m,typeof t==="object"&&t);t.isTrigger=r?2:3;t.namespace=w.join(".");t.rnamespace=t.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;t.result=undefined;if(!t.target){t.target=i}e=e==null?[t]:k.makeArray(e,[t]);d=k.event.special[m]||{};if(!r&&d.trigger&&d.trigger.apply(i,e)===false){return}if(!r&&!d.noBubble&&!v(i)){s=d.delegateType||m;if(!pt.test(s+m)){u=u.parentNode}for(;u;u=u.parentNode){b.push(u);f=u}if(f===(i.ownerDocument||g)){b.push(f.defaultView||f.parentWindow||n)}}o=0;while((u=b[o++])&&!t.isPropagationStopped()){h=u;t.type=o>1?s:d.bindType||m;l=(V.get(u,"events")||Object.create(null))[t.type]&&V.get(u,"handle");if(l){l.apply(u,e)}l=a&&u[a];if(l&&l.apply&&G(u)){t.result=l.apply(u,e);if(t.result===false){t.preventDefault()}}}t.type=m;if(!r&&!t.isDefaultPrevented()){if((!d._default||d._default.apply(b.pop(),e)===false)&&G(i)){if(a&&p(i[m])&&!v(i)){f=i[a];if(f){i[a]=null}k.event.triggered=m;if(t.isPropagationStopped()){h.addEventListener(m,vt)}i[m]();if(t.isPropagationStopped()){h.removeEventListener(m,vt)}k.event.triggered=undefined;if(f){i[a]=f}}}}return t.result},simulate:function(n,t,e){var i=k.extend(new k.Event,e,{type:n,isSimulated:true});k.event.trigger(i,null,t)}});k.fn.extend({trigger:function(n,t){return this.each((function(){k.event.trigger(n,t,this)}))},triggerHandler:function(n,t){var e=this[0];if(e){return k.event.trigger(n,t,e,true)}}});if(!h.focusin){k.each({focus:"focusin",blur:"focusout"},(function(n,t){var e=function(n){k.event.simulate(t,n.target,k.event.fix(n))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=V.access(i,t);if(!r){i.addEventListener(n,e,true)}V.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=V.access(i,t)-1;if(!r){i.removeEventListener(n,e,true);V.remove(i,t)}else{V.access(i,t,r)}}}}))}k.parseXML=function(t){var e,i;if(!t||typeof t!=="string"){return null}try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(n){}i=e&&e.getElementsByTagName("parsererror")[0];if(!e||i){k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(n){return n.textContent})).join("\n"):t))}return e};var gt=/\[\]$/,bt=/\r?\n/g,mt=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function yt(n,t,e,i){var r;if(Array.isArray(t)){k.each(t,(function(t,r){if(e||gt.test(n)){i(n,r)}else{yt(n+"["+(typeof r==="object"&&r!=null?t:"")+"]",r,e,i)}}))}else if(!e&&w(t)==="object"){for(r in t){yt(n+"["+r+"]",t[r],e,i)}}else{i(n,t)}}k.param=function(n,t){var e,i=[],r=function(n,t){var e=p(t)?t():t;i[i.length]=encodeURIComponent(n)+"="+encodeURIComponent(e==null?"":e)};if(n==null){return""}if(Array.isArray(n)||n.jquery&&!k.isPlainObject(n)){k.each(n,(function(){r(this.name,this.value)}))}else{for(e in n){yt(e,n[e],t,r)}}return i.join("&")};k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var n=k.prop(this,"elements");return n?k.makeArray(n):this})).filter((function(){var n=this.type;return this.name&&!k(this).is(":disabled")&&wt.test(this.nodeName)&&!mt.test(n)&&(this.checked||!vn.test(n))})).map((function(n,t){var e=k(this).val();if(e==null){return null}if(Array.isArray(e)){return k.map(e,(function(n){return{name:t.name,value:n.replace(bt,"\r\n")}}))}return{name:t.name,value:e.replace(bt,"\r\n")}})).get()}});k.fn.extend({wrapAll:function(n){var t;if(this[0]){if(p(n)){n=n.call(this[0])}t=k(n,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map((function(){var n=this;while(n.firstElementChild){n=n.firstElementChild}return n})).append(this)}return this},wrapInner:function(n){if(p(n)){return this.each((function(t){k(this).wrapInner(n.call(this,t))}))}return this.each((function(){var t=k(this),e=t.contents();if(e.length){e.wrapAll(n)}else{t.append(n)}}))},wrap:function(n){var t=p(n);return this.each((function(e){k(this).wrapAll(t?n.call(this,e):n)}))},unwrap:function(n){this.parent(n).not("body").each((function(){k(this).replaceWith(this.childNodes)}));return this}});k.expr.pseudos.hidden=function(n){return!k.expr.pseudos.visible(n)};k.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)};h.createHTMLDocument=function(){var n=g.implementation.createHTMLDocument("").body;n.innerHTML="<form></form><form></form>";return n.childNodes.length===2}();k.parseHTML=function(n,t,e){if(typeof n!=="string"){return[]}if(typeof t==="boolean"){e=t;t=false}var i,r,o;if(!t){if(h.createHTMLDocument){t=g.implementation.createHTMLDocument("");i=t.createElement("base");i.href=g.location.href;t.head.appendChild(i)}else{t=g}}r=T.exec(n);o=!e&&[];if(r){return[t.createElement(r[1])]}r=xn([n],t,o);if(o&&o.length){k(o).remove()}return k.merge([],r.childNodes)};k.offset={setOffset:function(n,t,e){var i,r,o,u,f,s,a,c=k.css(n,"position"),l=k(n),d={};if(c==="static"){n.style.position="relative"}f=l.offset();o=k.css(n,"top");s=k.css(n,"left");a=(c==="absolute"||c==="fixed")&&(o+s).indexOf("auto")>-1;if(a){i=l.position();u=i.top;r=i.left}else{u=parseFloat(o)||0;r=parseFloat(s)||0}if(p(t)){t=t.call(n,e,k.extend({},f))}if(t.top!=null){d.top=t.top-f.top+u}if(t.left!=null){d.left=t.left-f.left+r}if("using"in t){t.using.call(n,d)}else{l.css(d)}}};k.fn.extend({offset:function(n){if(arguments.length){return n===undefined?this:this.each((function(t){k.offset.setOffset(this,n,t)}))}var t,e,i=this[0];if(!i){return}if(!i.getClientRects().length){return{top:0,left:0}}t=i.getBoundingClientRect();e=i.ownerDocument.defaultView;return{top:t.top+e.pageYOffset,left:t.left+e.pageXOffset}},position:function(){if(!this[0]){return}var n,t,e,i=this[0],r={top:0,left:0};if(k.css(i,"position")==="fixed"){t=i.getBoundingClientRect()}else{t=this.offset();e=i.ownerDocument;n=i.offsetParent||e.documentElement;while(n&&(n===e.body||n===e.documentElement)&&k.css(n,"position")==="static"){n=n.parentNode}if(n&&n!==i&&n.nodeType===1){r=k(n).offset();r.top+=k.css(n,"borderTopWidth",true);r.left+=k.css(n,"borderLeftWidth",true)}}return{top:t.top-r.top-k.css(i,"marginTop",true),left:t.left-r.left-k.css(i,"marginLeft",true)}},offsetParent:function(){return this.map((function(){var n=this.offsetParent;while(n&&k.css(n,"position")==="static"){n=n.offsetParent}return n||fn}))}});k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,t){var e="pageYOffset"===t;k.fn[n]=function(i){return W(this,(function(n,i,r){var o;if(v(n)){o=n}else if(n.nodeType===9){o=n.defaultView}if(r===undefined){return o?o[t]:n[i]}if(o){o.scrollTo(!e?r:o.pageXOffset,e?r:o.pageYOffset)}else{n[i]=r}}),n,i,arguments.length)}}));k.each(["top","left"],(function(n,t){k.cssHooks[t]=Xn(h.pixelPosition,(function(n,e){if(e){e=Kn(n,t);return $n.test(e)?k(n).position()[t]+"px":e}}))}));k.each({Height:"height",Width:"width"},(function(n,t){k.each({padding:"inner"+n,content:t,"":"outer"+n},(function(e,i){k.fn[i]=function(r,o){var u=arguments.length&&(e||typeof r!=="boolean"),f=e||(r===true||o===true?"margin":"border");return W(this,(function(t,e,r){var o;if(v(t)){return i.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]}if(t.nodeType===9){o=t.documentElement;return Math.max(t.body["scroll"+n],o["scroll"+n],t.body["offset"+n],o["offset"+n],o["client"+n])}return r===undefined?k.css(t,e,f):k.style(t,e,r,f)}),t,u?r:undefined,u)}}))}));k.fn.extend({bind:function(n,t,e){return this.on(n,null,t,e)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,e,i){return this.on(t,n,e,i)},undelegate:function(n,t,e){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",e)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});k.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(n,t){k.fn[t]=function(n,e){return arguments.length>0?this.on(t,null,n,e):this.trigger(t)}}));var kt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(n,t){var e,i,o;if(typeof t==="string"){e=n[t];t=n;n=e}if(!p(n)){return undefined}i=r.call(arguments,2);o=function(){return n.apply(t||this,i.concat(r.call(arguments)))};o.guid=n.guid=n.guid||k.guid++;return o};k.holdReady=function(n){if(n){k.readyWait++}else{k.ready(true)}};k.isArray=Array.isArray;k.parseJSON=JSON.parse;k.nodeName=F;k.isFunction=p;k.isWindow=v;k.camelCase=X;k.type=w;k.now=Date.now;k.isNumeric=function(n){var t=k.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))};k.trim=function(n){return n==null?"":(n+"").replace(kt,"$1")};var xt=n.jQuery,Ct=n.$;k.noConflict=function(t){if(n.$===k){n.$=Ct}if(t&&n.jQuery===k){n.jQuery=xt}return k};if(typeof t==="undefined"){n.jQuery=n.$=k}return k}))}));const i=window.vertx||{};!function(n){n(SockJS)}((function(n){i.EventBus=function(t,e){const r=this;const o=new n(t,undefined,e);const u={};const f={};let s=i.EventBus.CONNECTING;let a=null;let c=null;if(e){c=e.vertxbus_ping_interval}if(!c){c=5e3}r.onopen=null;r.onclose=null;r.login=function(n,t,e){d("send","vertx.basicauthmanager.login",{username:n,password:t},(function(n){if(n.status==="ok"){r.sessionID=n.sessionID}if(e){delete n.sessionID;e(n)}}))};r.send=function(n,t,e){d("send",n,t,e)};r.publish=function(n,t){d("publish",n,t,null)};r.registerHandler=function(n,t){p("address","string",n);p("handler","function",t);h();let e=u[n];if(!e){e=[t];u[n]=e;const i={type:"register",address:n};o.send(JSON.stringify(i))}else{e[e.length]=t}};r.unregisterHandler=function(n,t){p("address","string",n);p("handler","function",t);h();const e=u[n];if(e){const i=e.indexOf(t);if(i!==-1)e.splice(i,1);if(e.length===0){const t={type:"unregister",address:n};o.send(JSON.stringify(t));delete u[n]}}};r.close=function(){h();s=i.EventBus.CLOSING;o.close()};r.readyState=function(){return s};o.onopen=function(){l();a=setInterval(l,c);s=i.EventBus.OPEN;if(r.onopen){r.onopen()}};o.onclose=function(){s=i.EventBus.CLOSED;if(a)clearInterval(a);if(r.onclose){r.onclose()}};o.onmessage=function(n){const t=n.data;const e=JSON.parse(t);const i=e.body;const o=e.replyAddress;const s=e.address;let a;if(o){a=function(n,t){r.send(o,n,t)}}const c=u[s];if(c){const n=c.slice(0);for(const t of n){t(i,a)}}else{const n=f[s];if(n){delete f[s];n(i,a)}}};function l(){const n={type:"ping"};o.send(JSON.stringify(n))}function d(n,t,e,i){p("address","string",t);p("replyHandler","function",i,true);h();const u={type:n,address:t,body:e};if(r.sessionID){u.sessionID=r.sessionID}if(i){const n=v();u.replyAddress=n;f[n]=i}const s=JSON.stringify(u);o.send(s)}function h(){if(s!==i.EventBus.OPEN){throw new Error("INVALID_STATE_ERR")}}function p(n,t,e,i){if(!i&&!e){throw new Error("Parameter "+n+" must be specified")}if(e&&typeof e!==t){throw new Error("Parameter "+n+" must be of type "+t)}}function v(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(n=>(n^crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16)))}};i.EventBus.CONNECTING=0;i.EventBus.OPEN=1;i.EventBus.CLOSING=2;i.EventBus.CLOSED=3;return i.EventBus}));(function(n){window.klpWidgetDev=function(t,e,r,o,u,f,s,a,c){const l=document.getElementsByTagName("header")[0];const d={attributes:true,childList:false,subtree:false};const h=function(e,i){for(let i of e){if(i.attributeName==="class"){if(n("header").hasClass("h-fixed-position")&&!n("header").hasClass("h-visible")){Dn().find(".klp-widget-authenticated-menu").css("display","none");Dn().find("#"+t).removeClass("bubble")}}}};const p=new MutationObserver(h);if(l){p.observe(l,d)}let v="klp-widget-keepalive",g="klp.widget.state",b="klp.widget.document.",m="NCTRL",w="post.ch",y=new RegExp(w+"$"),k=new RegExp(m+"=([^;]+)"),x=undefined,C=undefined,S=false,E=undefined,j=undefined,F=undefined,T=undefined,O={},A="UNREAD_NOTIFICATIONS",R=true,I=undefined,N="de",L="",D=(new Date).getTime(),M="16.01.00.01",_=0,U={de:{"sign-in":"Login","sign-out":"Logout","change-company":"Firma wählen","change-company-confirm-dialog":'Möchten Sie die aktuelle Firma wechseln? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Firma wählen</button>',"change-company-support-dialog":'Im Kunden-Supportlogin steht die Funktion "Firma wechseln" nicht zur Verfügung. Führen Sie stattdessen ein Logout durch und starten Sie das Kunden-Supportlogin auf einem neuen Benutzer oder einer neuen Firma. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Benutzerkonto wechseln","change-account-confirm-dialog":'Möchten Sie in ein anderes Benutzerkonto wechseln? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Weiter</button>',"change-account-support-dialog":'Im Kunden-Supportlogin steht die Funktion "Benutzerkonto wechseln" nicht zur Verfügung. Führen Sie stattdessen ein Logout durch und starten Sie das Kunden-Supportlogin auf einem neuen Benutzer oder einer neuen Firma. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"Meine Onlinedienste",notifications:"Meldungen","toggle-menu":"toggle-menu","no-links":"Keine Favoriten bei Onlinedienste","no-notifications":"Keine ungelesenen Meldungen","more-notifications":"Alle Meldungen","title-text-menu":"Meine Übersicht","title-text-links":"Meine Onlinedienste","title-text-notifications":"Nachrichten",userProfile:"Mein Profil",settings:"Einstellungen"},fr:{"sign-in":"Login","sign-out":"Logout","change-company":"Changer entreprise","change-company-confirm-dialog":'Voulez-vous quitter l\'entreprise actuelle? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Changer enterprise</button>.',"change-company-support-dialog":'Dans le Login-Support, la fonction changer entreprise n\'est pas disponible. Il faut quitter la session et puis démarrer un nouveau Login-Support avec un autre compte ou une société différente. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Déconnexion</button>',"change-account":"Changer de compte","change-account-confirm-dialog":'Vous souhaitez changer de compte utilisateur? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Continuer</button>',"change-account-support-dialog":'La fonction "Changer de compte" n\'est pas disponible dans le login de support client. Déconnectez-vous et démarrez le login de support client sur un autre compte utilisateur ou d\'entreprise. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Déconnexion</button>',links:"Mes services en ligne",notifications:"notifications","toggle-menu":"toggle-menu","no-links":"Pas de favoris","no-notifications":"Pas de notifications non lues","more-notifications":"Toutes les notifications","title-text-menu":"Mon compte","title-text-links":"Mes services en ligne","title-text-notifications":"Messages",userProfile:"Mon profil",settings:"Paramètres"},it:{"sign-in":"Login","sign-out":"Logout","change-company":"Cambia la ditta","change-company-confirm-dialog":'È sicuro di voler uscire dall\'attuale ditta? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Cambia la ditta</button>',"change-company-support-dialog":'Nell\'Assistenza clienti, il cambiamento di ditta non è disponibile. Bisogna prima eseguire un Logout, quindi avviare nuovamente l\'Assistenza clienti selezionando un utente o una ditta differente. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Cambia account utente","change-account-confirm-dialog":'Desidera accedere con un altro account utente? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Avanti</button>',"change-account-support-dialog":'Nel login assistenza clienti non è disponibile la funzione "Modifica account utente". Si consiglia di effettuare il logout, quindi di riaccedere al login assistenza clienti tramite un nuovo account utente o una nuova ditta. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"I miei servizi online",notifications:"notifiche","toggle-menu":"toggle-menu","no-links":"Nessun preferito","no-notifications":"Nessuna notifica non letta","more-notifications":"Tutte le notifiche","title-text-menu":"Il mio riepilogo","title-text-links":"I miei servizi online","title-text-notifications":"Messaggi",userProfile:"Il mio profilo",settings:"Impostazioni"},en:{"sign-in":"Login","sign-out":"Logout","change-company":"Change company","change-company-confirm-dialog":'Would you like to sign-out from the current company? </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Next</button>.',"change-company-support-dialog":'On Kunden-Supportlogin, the function Change company is not available. You have to SignOut and then start again a new Kunden-Supportlogin selecting a different account or company. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',"change-account":"Change user account","change-account-confirm-dialog":'Do you want to change to another user account? </p></div></div><div class="modal-button-container row"><div class="item-centered d-flex justify-content-center col-lg-12 col-12 pe-0 me-0"><div class="col-lg-4 col-12 me-0 pe-0"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary w-100">Next</button>',"change-account-support-dialog":'The "Change user account" function is not available in the customer support login. Instead, log out and start the customer support login using a new user or new company. </p></div></div><div class="modal-button-container row"><div class="col-6"></div><div class="col-6 item-centered"><button id="klp-widget-authenticated-dochangecompany" class="ppm-button btn btn-primary col-11">Logout</button>',links:"My online services",notifications:"notifications","toggle-menu":"toggle-menu","no-links":"No favorites","no-notifications":"No unread notifications","more-notifications":"All notifications","title-text-menu":"My overview","title-text-links":"My online services","title-text-notifications":"Inbox",userProfile:"My Profile",settings:"Settings"}},P={"sign-in":{"access-key":"i","tab-index":0},"sign-out":{"access-key":"o","tab-index":3},"toggle-menu":{"access-key":"m","tab-index":0},"change-company":{"access-key":"c","tab-index":2},"change-account":{"access-key":"c","tab-index":2},notifications:{"access-key":"n","tab-index":1},links:{"access-key":"l","tab-index":4}},$={audit:s.endPoint+"/v1/audit",keepalive:s.endPoint+"/v1/session/keepalive",subscribe:s.endPoint+"/v1/session/subscribe",eventbus:s.endPoint+"/eventbus"},z={logoutTargetURL:"",keepAlive:true,keepAliveListeningEvents:"click touchstart keydown",keepAliveOnInit:true,keepAliveInterval:9,showLinks:true,tabIndex:-1,accessKeys:false,notificationsNrToLoad:5,debug:false};if(f!==undefined){N=f.toLowerCase()}const q=function(n){return new URL(n)};const J=q(on());L=J.origin;const W=[{description:U[N].userProfile,url:L+"/selfadmin/?lang="+N,iconclass:"widget_icon_profile"}];const H=L+"/selfadmin/messages/?lang="+N;if(a!==undefined){z=Object.assign({},z,a)}function B(){try{return"sessionStorage"in window&&window.sessionStorage!==null}catch(n){X("No local storage available");return false}}function K(){const n=new Date;return n.getFullYear()+"-"+n.getMonth()+1+"-"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+","+n.getMilliseconds()}function X(n){if(z.debug&&window.console&&window.console.log){console.log("["+K()+"] - KLP.WIDGET - "+n)}}function G(n){const t=JSON.stringify({adr:C,evt:n});if(n.adt){X("Sending auditing event: "+t);fetch($.audit,{method:"POST",credentials:"include",mode:"cors",body:t})}else{X("Auditing disabled: "+t)}}function Y(n,t){if(z.debug&&window.console&&window.console.log){X("Method "+n+" executed on "+t+" ms")}}function V(){return Math.floor(Math.random()*999999999+1)}function Z(n){return U[N][n]}function Q(n){if(z.accessKeys===false||P[n]["access-key"]==null){return""}return'accesskey="'+P[n]["access-key"]+'"'}function nn(n){if(z.tabIndex<0){return 0}return P[n]["tab-index"]+z.tabIndex}function tn(n,t){if(t===undefined){return n}if(n.indexOf("?")===-1){return n+"?"+t}else{return n+"&"+t}}function en(){return tn(o,rn())}function rn(){let t="";n.each({app:e,service:r,lang:N},(function(n,e){if(o.toLowerCase().indexOf(n.toLowerCase())===-1){if(t.length>0){t+="&"}t+=n+"="+e}}));return t.length>0?t:undefined}function on(){const n="klp";const t=false;return tn(s.logoutURL,"app="+e+"&lang="+N+"&service="+n+"&inIframe="+t+"&logoutTargetURL="+z.logoutTargetURL)}function un(n){X("Clearing cache and sessionData before starting the logout process");E=undefined;pn();X("Proceeding to logoutUrl with following path "+n);window.location.href=n}function fn(){Dn().find("#"+t+" #klp-widget-authenticated-menu-changecompany").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" #klp-widget-authenticated-menu-changecompany").focus();sn();return false}))}function sn(){let n;let e;if(E!==undefined&&E.support){if(Pn()){n=Z("change-account-support-dialog")}else{n=Z("change-company-support-dialog")}e=on()}else{if(Pn()){n=Z("change-account-confirm-dialog")}else{n=Z("change-company-confirm-dialog")}e=an()}if(Dn().find("#"+t+" #klp-widget-authenticated-changecompanydialog").length===0){const i='<div id="changeAccountModal" class="modal"><div class="modal-content"><div class="modal-text-container row"><div class="col-12 text-align-center"><i class="pi pi-2086"></i></div><span class="close">&times;</span><div class="col-1"></div><div class="col-10 text-align-center"><p class="modal-text">'+n+"</div></div></div>";Dn().find("#"+t+" .klp-widget-authenticated").append(i);let r=Dn().find("#changeAccountModal");if(r.length&&r.length>=1){r=r[0]}r.style.display="table";const o=Dn().find("#changeAccountModal .close")[0];o.onclick=function(){r.parentElement.removeChild(r)};window.onclick=function(n){if(n.target===r){r.parentElement.removeChild(r)}};Dn().find("#klp-widget-authenticated-dochangecompany").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" #klp-widget-authenticated-dochangecompany").focus();un(e);return false}))}}function an(){return on()+"&changecompany=true"}function cn(){R=true}function ln(){const n=dn();if(n){C=n.address;S=true;E=n.sessionData;ot();if(gn()){Jn(kn(A))}}}function dn(){if(B()){const n=sessionStorage.getItem(g);if(n){try{const t=JSON.parse(n);if(t.ttl>(new Date).getTime()&&vn(t.sessionData)){X("Valid persisted state loaded: "+n);return t}else{X("Persisted state expired or invalid");pn();wn("all","sub")}}catch(n){X("Persisted state was invalid due to error '"+n+"'");pn();wn("all","sub")}}else{X("No persisted state found");pn();wn("all","sub")}}else{X("State not loaded because HTML storage not supported")}return null}function hn(n){if(B()){sessionStorage.setItem(g,'{"ttl": '+((new Date).getTime()+n)+',"sessionData": '+JSON.stringify(E)+', "address":"'+C+'"}');X("State persisted");wn("hash",encodeURIComponent(bn(E)))}else{X("State not persisted because HTML storage not supported")}}function pn(){if(B()){sessionStorage.removeItem(g);X("Persisted state removed");yn()}else{X("Persisted state not removed because HTML storage not supported")}}function vn(n){const t=bn(n).toString();const e=mn("hash");if(t===e){return true}if(e===undefined&&!gn()){X("Cache validated because on a different host=["+window.location.hostname+"] than control cookie domain=["+w+"]");return true}X("PersistedData are invalid [hashPersistedData="+t+",control cookie="+e+"]");return false}function gn(){return window.location.hostname.match(y)}function bn(n){n=JSON.stringify(n);let t=0,e,i,r;if(n.length===0)return t;for(e=0,r=n.length;e<r;e++){i=n.charCodeAt(e);t=(t<<5)-t+i;t|=0}return t}function mn(n){const t=k.exec(document.cookie);if(t!=null){const e=decodeURIComponent(t[1]).split(":");switch(n){case"hash":if(e[0]!=null)return e[0];break;case"keepalive":if(e[1]!=null)return e[1];break;default:return decodeURIComponent(t[1])}return null}else{X("Control cookie not found");return null}}function wn(n,t){const e="; SameSite=None; Secure";switch(n){case"hash":document.cookie=m+"="+t+":"+mn("keepalive")+"; Path=/; domain="+w+e;break;case"keepalive":document.cookie=m+"="+mn("hash")+":"+t+"; Path=/; domain="+w+e;break;default:document.cookie=m+"="+t+"; Path=/; domain="+w+e;break}}function yn(){if(S){document.cookie=m+"="+"sub"+"; Path=/; domain="+w;X("Control cookie set to sub")}else{document.cookie=m+"="+""+"; Path=/; Expires=Wed, 01 Apr 2014 01:00:00 GMT; domain="+w;X("Control cookie removed")}}function kn(t){const e=b+t;if(B()){const i=sessionStorage.getItem(e);if(i){const e=n.parseJSON(i);X("Document "+t+" has been read from cache with value "+e);return e}}return null}function xn(n,t){const e=b+t;if(B()){sessionStorage.setItem(e,JSON.stringify(n));X("Document "+t+" has been persisted on cached with value "+JSON.stringify(n))}}function Cn(){Sn(A)}function Sn(n){const t=b+n;if(B()){sessionStorage.removeItem(t);X("Document "+n+" has been removed from cache")}}function En(){if(z.keepAliveListeningEvents.length>0){n(document).on(z.keepAliveListeningEvents,cn)}}function jn(){if(z.keepAliveListeningEvents.length>0){n(document).off(z.keepAliveListeningEvents,cn)}}function Fn(){if(R){R=false;An()}else{X("Keepalive call canceled due to user inactivity")}}function Tn(){if(z.keepAlive&&I===undefined){En();I=window.setInterval(Fn,z.keepAliveInterval*60*1e3)}}function On(){if(z.keepAlive){jn();if(I){window.clearInterval(I);I=undefined}}}function An(){if(Bn()){const n="<img src='"+s.keepAliveURL+"/?"+V()+"'><img src='"+$.keepalive+"?"+V()+"'>";Dn().find("#"+v).html(n);if(typeof F=="function"){F()}wn("keepalive",(new Date).getTime())}}function Rn(){const n=(new Date).getTime();const t=mn("keepalive");if(isNaN(t)||n-parseInt(t)>z.keepAliveInterval*60*1e3){X("Running keepAliveSessionsOnInit");An();return}X("keepAliveSessionsOnInit not running due to [now="+n+",last="+t+",interval="+z.keepAliveInterval*60*1e3)}function In(){X("Preparing for communication with iframe content");function n(n){const t=["post.ch","postauto.ch","postfinance.ch"];const e=new URL(n.origin);if(t.includes(e.host)&&n.data==="syncWidget"){X("PostMessage syncWidget received");et()}}if(window.addEventListener){window.addEventListener("message",n)}else{window.attachEvent("onmessage",n)}}function Nn(){if(D){X("Widget shows up in "+((new Date).getTime()-D)+" [msec]");D=undefined}}function Ln(n,t){Dn().find(n).append('<div id="'+t+'" style="display:none;"></div>')}function Dn(){return n(document.querySelector("swisspost-internet-header").shadowRoot.querySelector("post-klp-login-widget").shadowRoot.querySelector(".widget-wrapper"))}function Mn(){Dn().find("#"+t).addClass("anonymous");Dn().find("#"+t).attr("data-custom-focus-id","klp-widget");Dn().find("#"+t).html('<div class="klp-widget-anonymous"><div class="klp-widget-anonymous__wrapper">'+'<a tabindex="'+nn("sign-in")+'" '+Q("sign-in")+' title="'+Z("sign-in")+'" href="'+en()+'" data-custom-focus-target="klp-widget" data-custom-focus-direction="parent" role="button"><span class="klp-widget-anonymous__text">'+Z("sign-in")+'</span><svg class="ppm-svg-icon ppm-main-navigation__login-icon" focusable="false"><use xlink:href="#2064_arrow-enter"></use></svg></a>'+"</div></div>");Dn().find("#"+t).on("click touch",(function(n){n.preventDefault();document.location.href=en();return false}))}function _n(){Dn().find("#"+t).off("click touch");let n="",e="";if(E.userType==="B2C"){e="klp-widget-authenticated-session-name u_var_centered"}else{n=E.company;e="klp-widget-authenticated-session-name"}let i="klp-widget-authenticated";if(E.support){i+=" klp-widget-support"}Dn().find("#"+t).html('<div class="'+i+'">'+'<div class="klp-widget-authenticated-session klp-widget-menu-close">'+'<a href="about:blank" role="button" class="klp-widget-authenticated-session-link klp-widget__user" title="'+Z("title-text-menu")+'" tabindex="'+nn("toggle-menu")+'" '+Q("toggle-menu")+' data-dropdown="klp-widget-authenticated-menu" aria-expanded="false" aria-controls="authenticated-menu">'+'<div class="'+e+'">'+E.name+"&nbsp;"+E.surname+"</div>"+'<span class="initials-mobile">'+E.name.substring(0,1)+E.surname.substring(0,1)+"</span>"+'<span class="notification-number"></span>'+"</a>"+$n(e,n,E)+"</div>"+"</div>");Dn().find(".notification-number").css("visibility","hidden");Dn().find(".notification-number-detail").css("visibility","hidden");Ln("#"+t,v);Dn().find("#"+t+" .klp-widget__user").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" .klp-widget__user").focus();Wn();Hn();return false}));Dn().find("#"+t+" #klp-widget-authenticated-menu-logout").on("click touch",(function(n){n.preventDefault();Dn().find("#"+t+" #klp-widget-authenticated-menu-logout").focus();un(on());return false}));if(Un()||Pn()){fn()}at()}function Un(){return E.userType==="B2B"&&E.canChangeCompany&&E.changeUserAndProfile==null||E.changeUserAndProfile!=null&&E.changeUserAndProfile==="profile"}function Pn(){return E.changeUserAndProfile!=null&&E.changeUserAndProfile==="userAndProfile"}function $n(t,e,i){let r="";let o="name";let u="info";if(W!==undefined){if(t.indexOf("centered")!==-1){o="nameCentered"}if(e.length===0){u="infoHidden"}r+='<li class="name-and-surname">'+'<div class="initials-circle">'+'<div class="initials-container">'+"<div>"+i.name.substring(0,1)+i.surname.substring(0,1)+"</div>"+"</div>"+"</div>"+'<div class="nameAndInfoWrapper"><span class="'+o+'">'+i.name+"&nbsp;"+i.surname+"</span>"+'<span class="'+u+'">'+e+"</span></div>"+"</li>";n.each(W,(function(n,t){r+="<li>"+'<a class="notification-link" title="'+t.description+'" href="'+t.url+'"><div class="'+t.iconclass+'"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+t.description+"</span></div></a>"+"</li>"}));r+="<li>"+'<a class="notification-link" title="'+Z("title-text-notifications")+'" href="'+H+'"><div class="widget_icon_notification" aria-hidden></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("title-text-notifications")+'</span><span class="notification-number-detail"></span></div></a>'+"</li>"}if(i.userType==="B2C"){const n={int01:"https://serviceint1.post.ch/kvm/app/ui",int02:"https://serviceint2.post.ch/kvm/app/ui",prod:"https://service.post.ch/kvm/app/ui"};const t=`${n[c]}/settings`;r+=`\n <li>\n <a class="notification-link" href="${t}">\n <div class="widget_icon_settings" aria-hidden></div>\n <div class="linkContainer">\n <span class="klp-widget-notification-link-text">${U[N].settings}</span>\n </div>\n </a>\n </li>\n `}let f="";if(Un()){f="<li>"+'<a id="klp-widget-authenticated-menu-changecompany" class="notification-link" tabindex="'+nn("change-company")+'" '+Q("change-company")+' href="about:blank" role="button" title="'+Z("change-company")+'"><div class="widget_icon_changecompany"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("change-company")+"</span></div></a>"+"</li>"}else if(Pn()){f="<li>"+'<a id="klp-widget-authenticated-menu-changecompany" class="notification-link" tabindex="'+nn("change-account")+'" '+Q("change-company")+' href="about:blank" role="button" title="'+Z("change-account")+'"><div class="widget_icon_changecompany"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("change-account")+"</span></div></a>"+"</li>"}return'<div class="klp-widget-authenticated-menu" id="authenticated-menu" data-dropdown-toggler="klp-widget__user">'+"<ul>"+r+f+"<li>"+'<a id="klp-widget-authenticated-menu-logout" class="notification-link" tabindex="'+nn("sign-out")+'" '+Q("sign-out")+' title="'+Z("sign-out")+'" href="about:blank" role="button"><div class="widget_icon_logout"></div><div class="linkContainer">'+'<span class="klp-widget-notification-link-text">'+Z("sign-out")+"</span></div></a>"+"</li>"+"</ul>"+"</div>"}function zn(n,t){switch(t){case A:Jn(n);xn(n,A);break;default:X("Unknown documentType received: "+t)}if(typeof O[t]=="function"){O[t](n)}}function qn(n){switch(n){case A:Sn(A);break;default:X("Unknown documentType received: "+n)}if(typeof O[n]=="function"){O[n](undefined)}}function Jn(t){if(t!=null&&n(".notification-number").text()!==t.unreadNotifications){_=t.unreadNotifications;if(_===0){n(".notification-number").css("visibility","hidden")}else{n(".notification-number").css("visibility","visible")}}}function Wn(){ft(Dn().find("#"+t+" .klp-widget-authenticated-menu"))}function Hn(){if(_!==0){if(_>99){Dn().find(".notification-number-detail").css("visibility","visible").text("99+")}else{Dn().find(".notification-number-detail").css("visibility","visible").text(_)}}else{Dn().find(".notification-number-detail").css("visibility","hidden")}}function Bn(){return typeof E!=="undefined"}function Kn(){if(!Bn()){return"NONE"}return E.userType}function Xn(){if(!Bn()){return"NONE"}return E.authLevel}function Gn(n){if(n!==undefined){o=n;ot();X("Widget appLoginURL has been replaced with "+o)}}function Yn(t){if(t!==undefined){z=n.extend(z,t);ot()}X("Widget has been updated")}function Vn(n,t,e){E=n;ot();Tn();hn(t);if(e&&typeof j=="function"){j();X("loginCallback has been called: "+j)}}function Zn(){E=undefined;C=undefined;pn();Cn();ot();On();if(typeof T=="function"){T()}}function Qn(){if(x){x.registerHandler(C,(function(n,t){nt(n)}))}}function nt(n){X("Message received: "+JSON.stringify(n));G(n);S=false;switch(n.typ){case"ukn":if(n.sub){S=true;Zn();et()}else{Zn()}break;case"sub":C=n.adr;Vn(n.data,n.ttl,false);it();break;case"hi":Vn(n.data,n.ttl,true);Sn(A);break;case"bye":Zn();break;case"doc":zn(n.doc,n.doctyp);break;case"rem":qn(n.doctyp);break;default:X("Unknown event received: "+n.typ);Zn();break}}function tt(){if(gn()){return null!=mn()}else{return true}}function et(){if(!C){if(tt()){X("Subscribing to get an address");const n=(new Date).getTime();fetch($.subscribe,{method:"GET",credentials:"include",mode:"cors"}).then((n=>n.json())).then((n=>nt(n))).catch((n=>{X("Failed to subscribe: "+n.message);Zn();ot()}));Y("subscribe()",(new Date).getTime()-n)}else{X("Control cookie not found, skipping subscription");ot()}}else{X("Address available, skipping subscription");it()}}function it(){if(!x){x=new i.EventBus($.eventbus,{debug:z.debug,devel:z.debug});x.onopen=function(){X("EventBus opened");Qn();n(window).on("beforeunload",rt)};x.onclose=function(){X("EventBus closed");X("Communication closed with retrySubscribeOnFail="+S+". Retrying subscribe");x=null;n(window).off("beforeunload",rt);if(S){S=false;C=undefined;et()}}}}function rt(){if(x){x.close()}}function ot(){if(typeof E!=="undefined"){_n()}else{Mn()}document.dispatchEvent(new CustomEvent("wepploginwidget_widget_ready"));Nn();Dn().find(".klp-widget-authenticated-session-link").click()}function ut(){ln();et();if(z.keepAliveOnInit&&Bn()){Rn()}In()}function ft(e){if(e.is(":visible")){Dn().find("#"+t).removeClass("bubble");st();return}st();Dn().find("."+e.attr("data-dropdown-toggler")).attr("aria-expanded",true);Dn().find("#"+t).addClass("bubble");e.show();n(document).on("click",st);if(e.hasClass("klp-widget-authenticated-menu")){e.parent().removeClass("klp-widget-menu-close").addClass("klp-widget-menu-open")}}function st(n){if(n!=null){if(Dn().find(n.target).parents("#"+t).length>0){return}}Dn().find(document).off("click",st);Dn().find("#"+t).removeClass("bubble");Dn().find("#"+t+" .klp-widget-authenticated-menu").hide().parent().removeClass("klp-widget-menu-open").addClass("klp-widget-menu-close");Dn().find("."+Dn().find("#"+t+" .klp-widget-authenticated-menu").attr("data-dropdown-toggler")).attr("aria-expanded",false)}function at(){Dn().find(".klp-widget__user").on("keydown",(function(n){if(n.which<37||n.which>40){return}n.preventDefault();const t=Dn().find(this).parent();const e=Dn().find("."+Dn().find(this).attr("data-dropdown"));switch(n.which){case 37:if(t.prev().length){t.prev().find("a").focus()}if(e.is(":visible")){Dn().find(this).click()}break;case 38:if(e.is(":visible")){Dn().find(this).click()}break;case 39:if(t.next().length){t.next().find("a").focus()}if(e.is(":visible")){Dn().find(this).click()}break;case 40:if(!e.is(":visible")){Dn().find(this).click()}e.find("li:first a").focus();break}}));Dn().find(".klp-widget-authenticated-menu").on("keydown","a",(function(n){if(n.which<37||n.which>40){return}n.preventDefault();const t=Dn().find(this).parent();const e=Dn().find("."+Dn().find(this).parents("div").first().attr("data-dropdown-toggler"));switch(n.which){case 37:case 38:if(t.prev("li").length>0){t.prev("li").find("a").focus()}else{e.click().focus()}break;case 39:case 40:if(t.next("li").length>0){t.next("li").find("a").focus()}break}}));n("body").on("keydown",(function(n){if(n.which!==27){return}st()}))}ut();return{keepAliveSessions:function(){An()},isUserAuthenticated:function(){return Bn()},getUserType:function(){return Kn()},getCurrentAuthLevel:function(){return Xn()},changeAppLoginURL:function(n){Gn(n)},updateWidget:function(n){Yn(n)},registerLoginCallback:function(n){X("Login callback has been registered");j=n},unregisterLoginCallback:function(){X("Login callback has been un-registered");j=undefined},registerKeepAliveCallback:function(n){X("KeepAlive callback has been registered");F=n},unregisterKeepAliveCallback:function(){X("KeepAlive callback has been un-registered");F=undefined},registerLogoutCallback:function(n){X("Logout callback has been registered");T=n},unregisterLogoutCallback:function(){X("Logout callback has been un-registered");T=undefined},registerDocumentCallback:function(n,t){X("Document callback for documentType "+n+" has been registered");O[n]=t},unregisterDocumentCallback:function(n){X("Document callback for documentType "+n+" has been un-registered");O[n]=undefined},version:function(){return M},setDebug:function(n){z.debug=n}}}})(e);const r=(n,t)=>{if(!t){return}try{window.OPPklpWidget=window.klpWidgetDev(n,t.applicationId,t.serviceId,t.appLoginUrl,null,t.currentLang,t.platform,t.options,t.environment)}catch(n){console.error(n)}};export{r as initializeKLPLoginWidget};
27
+ //# sourceMappingURL=p-83f6cd1e.js.map