From 24415afb4ce84b89f8bf6ab7360acf47edf23aa2 Mon Sep 17 00:00:00 2001 From: Craig Michael Thompson Date: Tue, 14 Jun 2011 15:11:53 +0100 Subject: [PATCH] Fixed issuewith viewport effect stopping tooltip show/hide --- dist/jquery.qtip.basic.js | 7 +++++-- dist/jquery.qtip.css | 2 +- dist/jquery.qtip.js | 7 +++++-- dist/jquery.qtip.min.js | 4 ++-- dist/jquery.qtip.pack.js | 4 ++-- src/core.js | 5 ++++- 6 files changed, 19 insertions(+), 10 deletions(-) diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index 35edfb7f..70b8876a 100644 --- a/dist/jquery.qtip.basic.js +++ b/dist/jquery.qtip.basic.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Jun 14 14:43:01 2011 +0100 +* Date: Tue Jun 14 15:10:33 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -1831,7 +1831,10 @@ QTIP.defaults = { method: 'flip flip' }, effect: function(api, pos, viewport) { - $(this).stop().animate(pos, 200); + $(this).animate(pos, { + duration: 200, + queue: FALSE + }); } }, show: { diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 1342a405..6c507005 100644 --- a/dist/jquery.qtip.css +++ b/dist/jquery.qtip.css @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Jun 14 14:43:01 2011 +0100 +* Date: Tue Jun 14 15:10:33 2011 +0100 */ /* Core qTip styles */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 9dda13a6..dbbb9616 100644 --- a/dist/jquery.qtip.js +++ b/dist/jquery.qtip.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Jun 14 14:43:01 2011 +0100 +* Date: Tue Jun 14 15:10:33 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -1831,7 +1831,10 @@ QTIP.defaults = { method: 'flip flip' }, effect: function(api, pos, viewport) { - $(this).stop().animate(pos, 200); + $(this).animate(pos, { + duration: 200, + queue: FALSE + }); } }, show: { diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index ad4d1abc..43333320 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,5 +9,5 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Jun 14 14:43:01 2011 +0100 -*//*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true *//*global window: false, jQuery: false, console: false */(function(a,b,c){function E(b){var c=this,d=b.elements,e=d.tooltip,f=".bgiframe-"+b.id;a.extend(c,{init:function(){d.bgiframe=a(''),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function D(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){var d=a.originalEvent;d&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget.closest(q[0]).length?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(p)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(p)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}q=h.overlay=a("
",{id:j.substr(1),html:"
",mousedown:function(){return e}}).insertBefore(a(n).last()),a(b).unbind(k).bind("resize"+k,function(){q.css({height:a(b).height(),width:a(b).width()})}).triggerHandler("resize");return q},toggle:function(b,c,h){if(b&&b.isDefaultPrevented())return f;var j=g.effect,k=c?"show":"hide",p=q.is(":visible"),r=a("["+m+"]:visible").not(i),s;q||(q=f.create());if(q.is(":animated")&&p===c||!c&&r.length)return f;c?(q.css({left:0,top:0}),q.toggleClass("blurs",g.blur),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focus"+l),q.stop(d,e),a.isFunction(j)?j.call(q,c):j===e?q[k]():q.fadeTo(parseInt(h,10)||90,c?1:0,function(){c||a(this).hide()}),c||q.queue(function(a){q.css({left:"",top:""}),a()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focus"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function C(b,g){function w(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function v(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function u(a,b,c){b=b?b:a[a.precedance];var d=l.hasClass(r),e=k.titlebar&&a.y==="top",f=e?k.titlebar:k.content,g="border-"+b+"-width",h;l.addClass(r),h=parseInt(f.css(g),10),h=(c?h||parseInt(l.css(g),10):h)||0,l.toggleClass(r,d);return h}function t(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",s=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.border=p,i.offset=j.offset,i.size=n,b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(s||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,t));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,s="background-color",t="transparent",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),s?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(d+d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,r="px solid ",t="px dashed transparent",v=j.mimic,x=Math.round,y,z,A,C,D;b||(b=i.corner),v===e?v=b:(v=new h.Corner(v),v.precedance=b.precedance,v.x==="inherit"?v.x=b.x:v.y==="inherit"?v.y=b.y:v.x===v.y&&(v[b.precedance]=b[b.precedance])),y=v.precedance,i.detectColours(),o.border!=="transparent"&&o.border!=="#123456"?(p=u(b,f,d),j.border===0&&p>0&&(o.fill=o.border),i.border=p=j.border!==d?j.border:p):i.border=p=0,A=B(v,m,q),i.size=D=w(b),g.css(D),b.precedance==="y"?C=[x(v.x==="left"?p:v.x==="right"?D.width-m-p:(D.width-m)/2),x(v.y==="top"?D.height-q:0)]:C=[x(v.x==="left"?D.width-m:0),x(v.y==="top"?p:v.y==="bottom"?D.height-q-p:(D.height-q)/2)],s?(l.attr(D),z=l[0].getContext("2d"),z.restore(),z.save(),z.clearRect(0,0,3e3,3e3),z.translate(C[0],C[1]),z.beginPath(),z.moveTo(A[0][0],A[0][1]),z.lineTo(A[1][0],A[1][1]),z.lineTo(A[2][0],A[2][1]),z.closePath(),z.fillStyle=o.fill,z.strokeStyle=o.border,z.lineWidth=p*2,z.lineJoin="miter",z.miterLimit=100,p&&z.stroke(),z.fill()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(v.string().indexOf("center")>-1),left:C[0]-C[2]*Number(y==="x"),top:C[1]-C[2]*Number(y==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:A,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=w(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function B(a,b,c){var d=Math.ceil(b/2),e=Math.ceil(c/2),f={bottomright:[[0,0],[b,c],[b,0]],bottomleft:[[0,0],[b,0],[0,c]],topright:[[0,c],[b,0],[b,c]],topleft:[[0,0],[0,c],[b,c]],topcenter:[[0,c],[d,0],[b,c]],bottomcenter:[[0,0],[b,0],[d,c]],rightcenter:[[0,0],[b,e],[0,c]],leftcenter:[[b,0],[b,c],[0,e]]};f.lefttop=f.bottomright,f.righttop=f.bottomleft,f.leftbottom=f.topright,f.rightbottom=f.topleft;return f[a.string()]}function A(b){var c=this,f=b.elements.tooltip,g=b.options.content.ajax,h=".qtip-ajax",i=/)<[^<]*)*<\/script>/gi,j=d;b.checks.ajax={"^content.ajax":function(a,b,d){b==="ajax"&&(g=d),b==="once"?c.init():g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.unbind(h)[g.once?"one":"bind"]("tooltipshow"+h,c.load);return c},load:function(d,h){function p(a,c,d){b.set("content.text",c+": "+d),n()}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c),n()}function n(){m&&(f.css("visibility",""),h=e)}if(d&&d.isDefaultPrevented())return c;var j=g.url.indexOf(" "),k=g.url,l,m=g.once&&!g.loading&&h;m&&f.css("visibility","hidden"),j>-1&&(l=k.substr(j),k=k.substr(0,j)),a.ajax(a.extend({success:o,error:p,context:b},g,{url:k}));return c}}),c.init()}function z(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){w("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?x(r):f,x(q||p)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else{w("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m);return e}}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,u,a.attr(this,"title")),this.removeAttribute("title")),i=new y(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave&&h.window.bind("mouse"+(s.hide.leave.indexOf("frame")>-1?"out":"leave")+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&y.hide(b)}),"number"===typeof s.hide.inactive&&(h.show.bind("qtip-"+t+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(F.tooltip).bind(b+E+"-inactive",p)})),a.each(j.hide,function(b,c){var d=a.inArray(c,j.show),e=a(h.hide);d>-1&&e.add(h.show).length===e.length||c==="unfocus"?(h.show.bind(c+E,function(a){D.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+E,o)}),a.each(j.show,function(a,b){h.show.bind(b+E,l)}),"number"===typeof s.hide.distance&&h.show.bind("mousemove"+E,function(a){var b=G.origin||{},c=s.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&y.hide(a)}),f.target==="mouse"&&(h.show.bind("mousemove"+E,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(s.hide.event&&D.bind("mouseleave"+E,function(a){(a.relatedTarget||a.target)!==h.show[0]&&y.hide(a)}),h.document.bind("mousemove"+E,function(a){!D.hasClass(m)&&D.is(":visible")&&y.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+E,r),(h.viewport.length||k&&D.css("position")==="fixed")&&h.viewport.bind("scroll"+E,r)}function O(b,d){function g(b){function g(f){clearTimeout(y.timers.img[this]),a(this).unbind(E),(c=c.not(this)).length===0&&(y.redraw(),d!==e&&y.reposition(G.event),b())}var c;if((c=f.find("img:not([height]):not([width])")).length===0)return g.call(c);c.each(function(b,c){(function d(){if(c.height&&c.width)return g.call(c);y.timers.img[c]=setTimeout(d,1e3)})(),a(c).bind("error"+E+" load"+E,g)})}var f=F.content;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.rendered<0?D.queue("fx",g):(C=0,g(a.noop));return y}function N(b,d){var f=F.title;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.redraw(),d!==e&&y.rendered&&D.is(":visible")&&y.reposition(G.event)}function M(a){var b=F.button,c=F.title;if(!y.rendered)return e;a?(c||L(),K()):b.remove()}function L(){var b=A+"-title";F.titlebar&&J(),F.titlebar=a("
",{"class":k+"-titlebar "+(s.style.widget?"ui-widget-header":"")}).append(F.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(F.content),s.content.title.button?K():y.rendered&&y.redraw()}function K(){var b=s.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";F.button&&F.button.remove(),b.jquery?F.button=b:F.button=a("",{"class":"ui-state-default "+(s.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),F.button.appendTo(F.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){D.hasClass(m)||y.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),y.redraw()}function J(){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(b,c,d){a.attr(D[0],"class",k+" qtip ui-helper-reset "+d)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,f&&(L(),N(f)),O(s.content.text,e),y.rendered=d,I(),a.each(s.events,function(b,c){a.isFunction(c)&&D.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(y)}),P(),D.queue("fx",function(a){i.originalEvent=G.event,D.trigger(i,[y]),C=0,y.redraw(),(s.show.ready||b)&&y.toggle(d,G.event),a()});return y},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:D.outerHeight(),width:D.outerWidth()};break;case"offset":b=h.offset(D,s.position.container);break;default:c=H(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(y,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=y.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=H(c.toLowerCase()),f;f=e[0][e[1]],e[0][e[1]]="object"===typeof d&&d.nodeType?a(d):d,b[c]=[e[0],e[1],d,f],i=g.test(c)||i,j=h.test(c)||j}),x(s),B=C=1,a.each(b,m),B=C=0,D.is(":visible")&&y.rendered&&(i&&y.reposition(s.position.target==="mouse"?f:G.event),j&&y.redraw());return y},toggle:function(b,c){function q(){b?(a.browser.msie&&D[0].style.removeAttribute("filter"),D.css("overflow","")):D.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function w(){if(console)return(console.info||console.info||a.noop).apply(console,arguments)}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v=e;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:function(b,c,d){a(this).stop().animate(c,200)}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new A(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new C(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}b.jquery||(b=a(b));var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[1]'),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function D(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){var d=a.originalEvent;d&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget.closest(q[0]).length?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(p)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(p)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}q=h.overlay=a("
",{id:j.substr(1),html:"
",mousedown:function(){return e}}).insertBefore(a(n).last()),a(b).unbind(k).bind("resize"+k,function(){q.css({height:a(b).height(),width:a(b).width()})}).triggerHandler("resize");return q},toggle:function(b,c,h){if(b&&b.isDefaultPrevented())return f;var j=g.effect,k=c?"show":"hide",p=q.is(":visible"),r=a("["+m+"]:visible").not(i),s;q||(q=f.create());if(q.is(":animated")&&p===c||!c&&r.length)return f;c?(q.css({left:0,top:0}),q.toggleClass("blurs",g.blur),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focus"+l),q.stop(d,e),a.isFunction(j)?j.call(q,c):j===e?q[k]():q.fadeTo(parseInt(h,10)||90,c?1:0,function(){c||a(this).hide()}),c||q.queue(function(a){q.css({left:"",top:""}),a()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focus"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function C(b,g){function w(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function v(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function u(a,b,c){b=b?b:a[a.precedance];var d=l.hasClass(r),e=k.titlebar&&a.y==="top",f=e?k.titlebar:k.content,g="border-"+b+"-width",h;l.addClass(r),h=parseInt(f.css(g),10),h=(c?h||parseInt(l.css(g),10):h)||0,l.toggleClass(r,d);return h}function t(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",s=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.border=p,i.offset=j.offset,i.size=n,b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(s||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,t));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,s="background-color",t="transparent",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),s?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(d+d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,r="px solid ",t="px dashed transparent",v=j.mimic,x=Math.round,y,z,A,C,D;b||(b=i.corner),v===e?v=b:(v=new h.Corner(v),v.precedance=b.precedance,v.x==="inherit"?v.x=b.x:v.y==="inherit"?v.y=b.y:v.x===v.y&&(v[b.precedance]=b[b.precedance])),y=v.precedance,i.detectColours(),o.border!=="transparent"&&o.border!=="#123456"?(p=u(b,f,d),j.border===0&&p>0&&(o.fill=o.border),i.border=p=j.border!==d?j.border:p):i.border=p=0,A=B(v,m,q),i.size=D=w(b),g.css(D),b.precedance==="y"?C=[x(v.x==="left"?p:v.x==="right"?D.width-m-p:(D.width-m)/2),x(v.y==="top"?D.height-q:0)]:C=[x(v.x==="left"?D.width-m:0),x(v.y==="top"?p:v.y==="bottom"?D.height-q-p:(D.height-q)/2)],s?(l.attr(D),z=l[0].getContext("2d"),z.restore(),z.save(),z.clearRect(0,0,3e3,3e3),z.translate(C[0],C[1]),z.beginPath(),z.moveTo(A[0][0],A[0][1]),z.lineTo(A[1][0],A[1][1]),z.lineTo(A[2][0],A[2][1]),z.closePath(),z.fillStyle=o.fill,z.strokeStyle=o.border,z.lineWidth=p*2,z.lineJoin="miter",z.miterLimit=100,p&&z.stroke(),z.fill()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(v.string().indexOf("center")>-1),left:C[0]-C[2]*Number(y==="x"),top:C[1]-C[2]*Number(y==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:A,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=w(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function B(a,b,c){var d=Math.ceil(b/2),e=Math.ceil(c/2),f={bottomright:[[0,0],[b,c],[b,0]],bottomleft:[[0,0],[b,0],[0,c]],topright:[[0,c],[b,0],[b,c]],topleft:[[0,0],[0,c],[b,c]],topcenter:[[0,c],[d,0],[b,c]],bottomcenter:[[0,0],[b,0],[d,c]],rightcenter:[[0,0],[b,e],[0,c]],leftcenter:[[b,0],[b,c],[0,e]]};f.lefttop=f.bottomright,f.righttop=f.bottomleft,f.leftbottom=f.topright,f.rightbottom=f.topleft;return f[a.string()]}function A(b){var c=this,f=b.elements.tooltip,g=b.options.content.ajax,h=".qtip-ajax",i=/)<[^<]*)*<\/script>/gi,j=d;b.checks.ajax={"^content.ajax":function(a,b,d){b==="ajax"&&(g=d),b==="once"?c.init():g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.unbind(h)[g.once?"one":"bind"]("tooltipshow"+h,c.load);return c},load:function(d,h){function p(a,c,d){b.set("content.text",c+": "+d),n()}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c),n()}function n(){m&&(f.css("visibility",""),h=e)}if(d&&d.isDefaultPrevented())return c;var j=g.url.indexOf(" "),k=g.url,l,m=g.once&&!g.loading&&h;m&&f.css("visibility","hidden"),j>-1&&(l=k.substr(j),k=k.substr(0,j)),a.ajax(a.extend({success:o,error:p,context:b},g,{url:k}));return c}}),c.init()}function z(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){w("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?x(r):f,x(q||p)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else{w("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m);return e}}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,u,a.attr(this,"title")),this.removeAttribute("title")),i=new y(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave&&h.window.bind("mouse"+(s.hide.leave.indexOf("frame")>-1?"out":"leave")+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&y.hide(b)}),"number"===typeof s.hide.inactive&&(h.show.bind("qtip-"+t+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(F.tooltip).bind(b+E+"-inactive",p)})),a.each(j.hide,function(b,c){var d=a.inArray(c,j.show),e=a(h.hide);d>-1&&e.add(h.show).length===e.length||c==="unfocus"?(h.show.bind(c+E,function(a){D.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+E,o)}),a.each(j.show,function(a,b){h.show.bind(b+E,l)}),"number"===typeof s.hide.distance&&h.show.bind("mousemove"+E,function(a){var b=G.origin||{},c=s.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&y.hide(a)}),f.target==="mouse"&&(h.show.bind("mousemove"+E,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(s.hide.event&&D.bind("mouseleave"+E,function(a){(a.relatedTarget||a.target)!==h.show[0]&&y.hide(a)}),h.document.bind("mousemove"+E,function(a){!D.hasClass(m)&&D.is(":visible")&&y.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+E,r),(h.viewport.length||k&&D.css("position")==="fixed")&&h.viewport.bind("scroll"+E,r)}function O(b,d){function g(b){function g(f){clearTimeout(y.timers.img[this]),a(this).unbind(E),(c=c.not(this)).length===0&&(y.redraw(),d!==e&&y.reposition(G.event),b())}var c;if((c=f.find("img:not([height]):not([width])")).length===0)return g.call(c);c.each(function(b,c){(function d(){if(c.height&&c.width)return g.call(c);y.timers.img[c]=setTimeout(d,1e3)})(),a(c).bind("error"+E+" load"+E,g)})}var f=F.content;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.rendered<0?D.queue("fx",g):(C=0,g(a.noop));return y}function N(b,d){var f=F.title;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.redraw(),d!==e&&y.rendered&&D.is(":visible")&&y.reposition(G.event)}function M(a){var b=F.button,c=F.title;if(!y.rendered)return e;a?(c||L(),K()):b.remove()}function L(){var b=A+"-title";F.titlebar&&J(),F.titlebar=a("
",{"class":k+"-titlebar "+(s.style.widget?"ui-widget-header":"")}).append(F.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(F.content),s.content.title.button?K():y.rendered&&y.redraw()}function K(){var b=s.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";F.button&&F.button.remove(),b.jquery?F.button=b:F.button=a("",{"class":"ui-state-default "+(s.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),F.button.appendTo(F.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){D.hasClass(m)||y.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),y.redraw()}function J(){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(b,c,d){a.attr(D[0],"class",k+" qtip ui-helper-reset "+d)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,f&&(L(),N(f)),O(s.content.text,e),y.rendered=d,I(),a.each(s.events,function(b,c){a.isFunction(c)&&D.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(y)}),P(),D.queue("fx",function(a){i.originalEvent=G.event,D.trigger(i,[y]),C=0,y.redraw(),(s.show.ready||b)&&y.toggle(d,G.event),a()});return y},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:D.outerHeight(),width:D.outerWidth()};break;case"offset":b=h.offset(D,s.position.container);break;default:c=H(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(y,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=y.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=H(c.toLowerCase()),f;f=e[0][e[1]],e[0][e[1]]="object"===typeof d&&d.nodeType?a(d):d,b[c]=[e[0],e[1],d,f],i=g.test(c)||i,j=h.test(c)||j}),x(s),B=C=1,a.each(b,m),B=C=0,D.is(":visible")&&y.rendered&&(i&&y.reposition(s.position.target==="mouse"?f:G.event),j&&y.redraw());return y},toggle:function(b,c){function q(){b?(a.browser.msie&&D[0].style.removeAttribute("filter"),D.css("overflow","")):D.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function w(){if(console)return(console.info||console.info||a.noop).apply(console,arguments)}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v=e;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new A(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new C(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}b.jquery||(b=a(b));var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(7(a,b,c){7 E(b){T c=V,d=b.2X,e=d.1x,f=".22-"+b.1w;a.1r(c,{1V:7(){d.22=a(\'<5L 1X="1B-1x-22" 8c="0" 87="-1" 8a="8f:\\\'\\\';" 18="2J:37; 17:4C; z-8g:-1; 2O:8r(4r=0); -8i-2O:"8j:8m.8n.8o(8q=0)";">\'),d.22.3c(e),e.1b("4n"+f,c.1R)},1R:7(){T a=b.4w("5j"),c=b.1M.1e,f=d.1e,g,h;h=1A(e.13("1g-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1h.1j==="x"?["Y","R"]:["14","9"],h[g[1]]-=f[g[0]]()),d.22.13(h).13(a)},2j:7(){d.22.21(),e.1u(f)}}),c.1V()}7 D(c){T f=V,g=c.2h.U.1E,h=c.2X,i=h.1x,j="#1i-2N",k=".7C",l=k+c.1w,m="1I-1E-1i",o=a(1C.39),q;c.2Z.1E={"^U.1E.(2S|2g)$":7(){f.1V(),h.2N.1L(i.1I(":1T"))}},a.1r(f,{1V:7(){X(!g.2S)S f;q=f.2v(),i.19(m,d).1u(k).1u(l).1b("4e"+k+" 45"+k,7(a,b,c){T d=a.33;d&&a.1y==="45"&&/1m(23|3Y)/.1z(d.1y)&&d.3g.4b(q[0]).1a?a.55():f[a.1y.2i("1x","")](a,c)}).1b("5o"+k,7(a,b,c){q[0].18.2U=c}).1b("5r"+k,7(b){a("["+m+"]:1T").2n(i).5q().1i("1U",b)}),g.4O&&a(b).1u(l).1b("57"+l,7(a){a.5N===27&&i.1O(p)&&c.W(a)}),g.2g&&h.2N.1u(l).1b("4l"+l,7(a){i.1O(p)&&c.W(a)});S f},2v:7(){T c=a(j);X(c.1a){h.2N=c;S c}q=h.2N=a("<28 />",{1w:j.2F(1),2L:"<28>",3L:7(){S e}}).51(a(n).5q()),a(b).1u(k).1b("2D"+k,7(){q.13({14:a(b).14(),Y:a(b).Y()})}).5i("2D");S q},1L:7(b,c,h){X(b&&b.3o())S f;T j=g.1Y,k=c?"U":"W",p=q.1I(":1T"),r=a("["+m+"]:1T").2n(i),s;q||(q=f.2v());X(q.1I(":5l")&&p===c||!c&&r.1a)S f;c?(q.13({R:0,9:0}),q.1S("7B",g.2g),o.7A("*","5P"+l,7(b){a(b.15).4b(n)[0]!==i[0]&&a("a, :5Q, 34",i).2B(i).1U()})):o.5h("*","1U"+l),q.4t(d,e),a.1Q(j)?j.2b(q,c):j===e?q[k]():q.4I(1A(h,10)||3V,c?1:0,7(){c||a(V).W()}),c||q.3l(7(a){q.13({R:"",9:""}),a()});S f},U:7(a,b){S f.1L(a,d,b)},W:7(a,b){S f.1L(a,e,b)},2j:7(){T d=q;d&&(d=a("["+m+"]").2n(i).1a<1,d?(h.2N.21(),a(b).1u(k)):h.2N.1u(k+c.1w),o.5h("*","1U"+l));S i.3H(m).1u(k)}}),f.1V()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"14"],d=n[b?"14":"Y"],e=a.1v().2z("1k")>-1,f=c*(e?.5:1),g=1d.5T,h=1d.3U,i,j,k,l=1d.4m(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.4m(g(m[0],2)-g(p,2)),m[3]=1d.4m(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];S{14:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1D&&b.y==="9",d=c?k.1D:k.12,e=a.2f.5U,f=e?"-5V-":a.2f.4z?"-4z-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1g-4V-"+g:"1g-"+g+"-4V");S 1A(d.13(h),10)||1A(l.13(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1O(r),e=k.1D&&a.y==="9",f=e?k.1D:k.12,g="1g-"+b+"-Y",h;l.3r(r),h=1A(f.13(g),10),h=(c?h||1A(l.13(g),10):h)||0,l.1S(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1h),o=h.3R,p=b.2h.17.1R.4s.2M(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1h.2x!==d&&(q==="2A"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3S"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1n":n.x==="R"?"1n":"R"),r==="2A"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3S"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1q":n.y==="9"?"1q":"9"),n.1v()!==m.1h&&(m.9!==o.9||m.R!==o.R)&&i.3z(n,e)),t=i.17(n,o),t.1n!==c&&(t.R=-t.1n),t.1q!==c&&(t.9=-t.1q),t.48=1d.26(0,j.11);X(s.R=q==="2A"&&!!o.R)n.x==="1k"?u["30-R"]=s.x=t["30-R"]-o.R:(v=t.1n!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.26(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1n!==c?"1n":"R"]=s.x);X(s.9=r==="2A"&&!!o.9)n.y==="1k"?u["30-9"]=s.y=t["30-9"]-o.9:(v=t.1q!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.26(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1q!==c?"1q":"9"]=s.y);k.1e.13(u).1L(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3m?t.48:q!=="2A"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3m?t.48:r!=="2A"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1h=n.1v()}}T i=V,j=b.2h.18.1e,k=b.2X,l=k.1x,m={9:0,R:0,1h:""},n={Y:j.Y,14:j.14},o={},p=j.1g||0,q=".1i-1e",s=!!(a("<4M />")[0]||{}).3Z;i.1h=f,i.3D=f,i.1g=p,i.11=j.11,i.2T=n,b.2Z.1e={"^17.1W|18.1e.(1h|3D|1g)$":7(){i.1V()||i.2j(),b.2a()},"^18.1e.(14|Y)$":7(){n={Y:j.Y,14:j.14},i.2v(),i.3z(),b.2a()},"^12.1c.1o|18.(3a|2r)$":7(){k.1e&&i.3z()}},a.1r(i,{1V:7(){T b=i.52()&&(s||a.2f.38);b&&(i.2v(),i.3z(),l.1u(q).1b("4n"+q,t));S b},52:7(){T a=j.1h,c=b.2h.17,f=c.2E,g=c.1W.1v?c.1W.1v():c.1W;X(a===e||g===e&&f===e)S e;a===d?i.1h=1J h.2G(g):a.1v||(i.1h=1J h.2G(a),i.1h.2x=d);S i.1h.1v()!=="5H"},4D:7(){T c,d,e,f=k.1e.13({5X:"",1g:""}),g=i.1h,h=g[g.1j],m="1g-"+h+"-3k",p="1g"+h.3m(0)+h.2F(1)+"6v",q=/6A?\\(0, 0, 0(, 0)?\\)|3A/i,s="60-3k",t="3A",u=a(1C.39).13("3k"),v=b.2X.12.13("3k"),w=k.1D&&(g.y==="9"||g.y==="1k"&&f.17().9+n.14/2+j.11",{"1X":"1B-1x-1e"}).13({Y:b,14:c}).61(l),s?a("<4M />").3c(k.1e)[0].3Z("2d").4F():(d=\'<43:49 62="0,0" 18="2J:5A-37; 17:4C; 5y:2o(#3y#5z);">\',k.1e.2L(d+d))},3z:7(b,c){T g=k.1e,l=g.64(),m=n.Y,q=n.14,r="44 65 ",t="44 66 3A",v=j.3D,x=1d.3U,y,z,A,C,D;b||(b=i.1h),v===e?v=b:(v=1J h.2G(v),v.1j=b.1j,v.x==="3M"?v.x=b.x:v.y==="3M"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4D(),o.1g!=="3A"&&o.1g!=="#68"?(p=u(b,f,d),j.1g===0&&p>0&&(o.2y=o.1g),i.1g=p=j.1g!==d?j.1g:p):i.1g=p=0,A=B(v,m,q),i.2T=D=w(b),g.13(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1n"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.14-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1q"?D.14-q-p:(D.14-q)/2)],s?(l.19(D),z=l[0].3Z("2d"),z.69(),z.4F(),z.6a(0,0,4G,4G),z.6q(C[0],C[1]),z.6b(),z.6c(A[0][0],A[0][1]),z.4H(A[1][0],A[1][1]),z.4H(A[2][0],A[2][1]),z.8p(),z.6d=o.2y,z.6e=o.1g,z.6f=p*2,z.8l="5x",z.8k=5G,p&&z.4N(),z.2y()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6i",C[2]=p&&/^(r|b)/i.1z(b.1v())?5a(a.2f.3N,10)===8?2:1:0,l.13({6j:""+(v.1v().2z("1k")>-1),R:C[0]-C[2]*4K(y==="x"),9:C[1]-C[2]*4K(y==="y"),Y:m+p,14:q+p}).1s(7(b){T c=a(V);c[c.4L?"4L":"19"]({6k:m+p+" "+(q+p),6l:A,6m:o.2y,6n:!!b,6o:!b}).13({2J:p||b?"37":"4q"}),!b&&c.2L()===""&&c.2L(\'<43:4N 6p="\'+p*2+\'44" 3k="\'+o.1g+\'" 6r="6s" 6t="5x" 18="5y:2o(#3y#5z); 2J:5A-37;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.26(0,j.11),h,l,m;X(j.1h===e||!c)S e;b=b||i.1h,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6w(),a.1s(m,7(a,c){T e,i;c==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["30-"+e]=-1d.3U(l[h==="y"?"Y":"14"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"14"],c.13({9:"",1q:"",R:"",1n:"",30:""}).13(f);S f},2j:7(){k.1e&&k.1e.21(),l.1u(q)}}),i.1V()}7 B(a,b,c){T d=1d.3O(b/2),e=1d.3O(c/2),f={5F:[[0,0],[b,c],[b,0]],4S:[[0,0],[b,0],[0,c]],5k:[[0,c],[b,0],[b,c]],4U:[[0,0],[0,c],[b,c]],7T:[[0,c],[d,0],[b,c]],6x:[[0,0],[b,0],[d,c]],6y:[[0,0],[b,e],[0,c]],6z:[[b,0],[b,c],[0,e]]};f.6B=f.5F,f.6C=f.4S,f.6D=f.5k,f.6E=f.4U;S f[a.1v()]}7 A(b){T c=V,f=b.2X.1x,g=b.2h.12.1F,h=".1i-1F",i=/<4i\\b[^<]*(?:(?!<\\/4i>)<[^<]*)*<\\/4i>/4Q,j=d;b.2Z.1F={"^12.1F":7(a,b,d){b==="1F"&&(g=d),b==="2w"?c.1V():g&&g.2o?c.3I():f.1u(h)}},a.1r(c,{1V:7(){g&&g.2o&&f.1u(h)[g.2w?"7G":"1b"]("4e"+h,c.3I);S c},3I:7(d,h){7 p(a,c,d){b.3b("12.1o",c+": "+d),n()}7 o(c){l&&(c=a("<28/>").3d(c.2i(i,"")).56(l)),b.3b("12.1o",c),n()}7 n(){m&&(f.13("4h",""),h=e)}X(d&&d.3o())S c;T j=g.2o.2z(" "),k=g.2o,l,m=g.2w&&!g.4J&&h;m&&f.13("4h","4j"),j>-1&&(l=k.2F(j),k=k.2F(0,j)),a.1F(a.1r({7F:o,4Y:p,6G:b},g,{2o:k}));S c}}),c.1V()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1C.39),o=V===1C?n:m,p=m.2k?m.2k(c.2k):f,q=c.2k.1y==="6I"&&p?p[c.2k.4c]:f,r=m.2u(c.2k.4c||"6K");6L{r=16 r==="1v"?(1J 7z("S "+r))():r}7y(s){w("5g 4W 7x 6N 6P 2u: "+r)}l=a.1r(d,{},g.3q,c,16 r==="1l"?x(r):f,x(q||p)),j=l.17,l.1w=b;X("3p"===16 l.12.1o){k=m.19(l.12.19);X(l.12.19!==e&&k)l.12.1o=k;2p{w("5g 4W 6Q 12 4f 1x! 7r 1N 6R 1x 2S 7p: ",m);S e}}j.1Z===e&&(j.1Z=n),j.15===e&&(j.15=o),l.U.15===e&&(l.U.15=o),l.U.35===d&&(l.U.35=n),l.W.15===e&&(l.W.15=o),l.17.1P===d&&(l.17.1P=j.1Z),j.2E=1J h.2G(j.2E),j.1W=1J h.2G(j.1W);X(a.2u(V,"1i"))X(l.4o)m.1i("2j");2p X(l.4o===e)S e;a.19(V,"1c")&&(a.19(V,u,a.19(V,"1c")),V.3C("1c")),i=1J y(m,l,b,!!k),a.2u(V,"1i",i),m.1b("21.1i",7(){i.2j()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.15[0],s.W.15[0],y.1p&&F.1x[0],s.17.1Z[0],s.17.1P[0],b,1C];y.1p?a([]).6S(a.6U(c,7(a){S 16 a==="1l"})).1u(E):s.U.15.1u(E+"-2v")}7 P(){7 r(a){D.1I(":1T")&&y.2a(a)}7 p(a){X(D.1O(m))S e;1H(y.1t.24),y.1t.24=3v(7(){y.W(a)},s.W.24)}7 o(b){X(D.1O(m))S e;T c=a(b.3g||b.15),d=c.4b(n)[0]===D[0],g=c[0]===h.U[0];1H(y.1t.U),1H(y.1t.W);f.15==="1m"&&d||s.W.2x&&(/1m(3t|23|4p)/.1z(b.1y)&&(d||g))?b.55():s.W.2C>0?y.1t.W=3v(7(){y.W(b)},s.W.2C):y.W(b)}7 l(a){X(D.1O(m))S e;h.U.2Q("1i-"+t+"-24"),1H(y.1t.U),1H(y.1t.W);T b=7(){y.1L(d,a)};s.U.2C>0?y.1t.U=3v(b,s.U.2C):b()}T f=s.17,h={U:s.U.15,W:s.W.15,1P:a(f.1P),1C:a(1C),3w:a(b)},j={U:a.3X(""+s.U.1f).2M(" "),W:a.3X(""+s.W.1f).2M(" ")},k=a.2f.38&&1A(a.2f.3N,10)===6;D.1b("3u"+E+" 2Y"+E,7(a){T b=a.1y==="3u";b&&y.1U(a),D.1S(q,b)}),s.W.2x&&(h.W=h.W.2B(D),D.1b("6W"+E,7(){D.1O(m)||1H(y.1t.W)})),/1m(3t|23)/i.1z(s.W.1f)?s.W.23&&h.3w.1b("1m"+(s.W.23.2z("7j")>-1?"3t":"23")+E,7(a){/53|4B/.1z(a.15)&&!a.3g&&y.W(a)}):/1m(4x|3Y)/i.1z(s.U.1f)&&h.W.1b("2Y"+E,7(a){1H(y.1t.U)}),(""+s.W.1f).2z("54")>-1&&h.1C.1b("3L"+E,7(b){T d=a(b.15),e=!D.1O(m)&&D.1I(":1T");d.7i(n).1a===0&&d.2B(c).1a>1&&y.W(b)}),"2P"===16 s.W.24&&(h.U.1b("1i-"+t+"-24",p),a.1s(g.5n,7(a,b){h.W.2B(F.1x).1b(b+E+"-24",p)})),a.1s(j.W,7(b,c){T d=a.7h(c,j.U),e=a(h.W);d>-1&&e.2B(h.U).1a===e.1a||c==="54"?(h.U.1b(c+E,7(a){D.1I(":1T")?o(a):l(a)}),2m j.U[d]):h.W.1b(c+E,o)}),a.1s(j.U,7(a,b){h.U.1b(b+E,l)}),"2P"===16 s.W.3K&&h.U.1b("2c"+E,7(a){T b=G.3i||{},c=s.W.3K,d=1d.3s;(d(a.1K-b.1K)>=c||d(a.2e-b.2e)>=c)&&y.W(a)}),f.15==="1m"&&(h.U.1b("2c"+E,7(a){i={1K:a.1K,2e:a.2e,1y:"2c"}}),f.1R.1m&&(s.W.1f&&D.1b("2Y"+E,7(a){(a.3g||a.15)!==h.U[0]&&y.W(a)}),h.1C.1b("2c"+E,7(a){!D.1O(m)&&D.1I(":1T")&&y.2a(a||i)}))),(f.1R.2D||h.1P.1a)&&(a.1f.70.2D?h.1P:h.3w).1b("2D"+E,r),(h.1P.1a||k&&D.13("17")==="2x")&&h.1P.1b("40"+E,r)}7 O(b,d){7 g(b){7 g(f){1H(y.1t.34[V]),a(V).1u(E),(c=c.2n(V)).1a===0&&(y.2R(),d!==e&&y.2a(G.1f),b())}T c;X((c=f.56("34:2n([14]):2n([Y])")).1a===0)S g.2b(c);c.1s(7(b,c){(7 d(){X(c.14&&c.Y)S g.2b(c);y.1t.34[c]=3v(d,72)})(),a(c).1b("4Y"+E+" 3I"+E,g)})}T f=F.12;X(!y.1p||!b)S e;a.1Q(b)&&(b=b.2b(c,G.1f,y)||""),b.25&&b.1a>0?f.4Z().3d(b.13({2J:"37"})):f.2L(b),y.1p<0?D.3l("41",g):(C=0,g(a.5J));S y}7 N(b,d){T f=F.1c;X(!y.1p||!b)S e;a.1Q(b)&&(b=b.2b(c,G.1f,y)||""),b.25&&b.1a>0?f.4Z().3d(b.13({2J:"37"})):f.2L(b),y.2R(),d!==e&&y.1p&&D.1I(":1T")&&y.2a(G.1f)}7 M(a){T b=F.1G,c=F.1c;X(!y.1p)S e;a?(c||L(),K()):b.21()}7 L(){T b=A+"-1c";F.1D&&J(),F.1D=a("<28 />",{"1X":k+"-1D "+(s.18.2r?"1B-2r-59":"")}).3d(F.1c=a("<28 />",{1w:b,"1X":k+"-1c","20-4d":d})).51(F.12),s.12.1c.1G?K():y.1p&&y.2R()}7 K(){T b=s.12.1c.1G,c=16 b==="1v",d=c?b:"76 1x";F.1G&&F.1G.21(),b.25?F.1G=b:F.1G=a("",{"1X":"1B-3x-3y "+(s.18.2r?"":k+"-3F"),1c:d,"20-77":d}).78(a("<79 />",{"1X":"1B-3F 1B-3F-7a",2L:"&7c;"})),F.1G.3c(F.1D).19("5f","1G").4g(7(b){a(V).1S("1B-3x-4g",b.1y==="3u")}).4l(7(a){D.1O(m)||y.W(a);S e}).1b("3L 57 5s 7e 7f",7(b){a(V).1S("1B-3x-7g 1B-3x-1U",b.1y.2F(-4)==="7k")}),y.2R()}7 J(){F.1c&&(F.1D.21(),F.1D=F.1c=F.1G=f,y.2a())}7 I(){T a=s.18.2r;D.1S(l,a).1S(o,!a),F.12.1S(l+"-12",a),F.1D&&F.1D.1S(l+"-59",a),F.1G&&F.1G.1S(k+"-3F",!a)}7 H(a){T b=0,c,d=s,e=a.2M(".");3f(d=d[e[b++]])b0&&!a("#"+i).1a&&(D[0].1w=i,F.12[0].1w=i+"-12",F.1c[0].1w=i+"-1c")},"^12.1o$":7(a,b,c){O(c)},"^12.1c.1o$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1G$":7(a,b,c){M(c)},"^17.(1W|2E)$":7(a,b,c){"1v"===16 c&&(a[b]=1J h.2G(c))},"^17.1Z$":7(a,b,c){y.1p&&D.3c(c)},"^U.36$":7(){y.1p?y.1L(d):y.1N(1)},"^18.3a$":7(b,c,d){a.19(D[0],"1X",k+" 1i 1B-5d-5e "+d)},"^18.2r|12.1c":I,"^4y.(1N|U|4p|W|1U|2g)$":7(b,c,d){D[(a.1Q(d)?"":"7o")+"1b"]("1x"+c,d)},"^(U|W|17).(1f|15|2x|24|23|3K|1P|1R)":7(){T a=s.17;D.19("4k",a.15==="1m"&&a.1R.1m),Q(),P()}},a.1r(y,{1N:7(b){X(y.1p)S y;T f=s.12.1c.1o,g=s.17,i=a.3h("7s");a.19(c[0],"20-4v",A),D=F.1x=a("<28/>",{1w:A,"1X":k+" 1i 1B-5d-5e "+o+" "+s.18.3a,Y:s.18.Y||"",4k:g.15==="1m"&&g.1R.1m,5f:"7t","20-7u":"7v","20-4d":e,"20-4v":A+"-12","20-4j":d}).1S(m,G.2H).2u("1i",y).3c(s.17.1Z).3d(F.12=a("<28 />",{"1X":k+"-12",1w:A+"-12","20-4d":d})),y.1p=-1,C=1,f&&(L(),N(f)),O(s.12.1o,e),y.1p=d,I(),a.1s(s.4y,7(b,c){a.1Q(c)&&D.1b(b==="1L"?"4e 45":"1x"+b,c)}),a.1s(h,7(){V.2K==="1N"&&V(y)}),P(),D.3l("41",7(a){i.33=G.1f,D.2Q(i,[y]),C=0,y.2R(),(s.U.36||b)&&y.1L(d,G.1f),a()});S y},4w:7(a){T b,c;5v(a.2t()){3n"5j":b={14:D.3e(),Y:D.3B()};32;3n"11":b=h.11(D,s.17.1Z);32;3y:c=H(a.2t()),b=c[0][c[1]],b=b.1j?b.1v():b}S b},3b:7(b,c){7 m(a,b){T c,d,e;4f(c 29 k)4f(d 29 k[c])X(e=(1J 7D(d,"i")).58(a))b.5m(e),k[c][d].2I(y,b)}T g=/^17\\.(1W|2E|1R|15|1Z)|18|12|U\\.36/i,h=/^12\\.(1c|19)|18/i,i=e,j=e,k=y.2Z,l;"1v"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2t()),f;f=e[0][e[1]],e[0][e[1]]="1l"===16 d&&d.7E?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1z(c)||i,j=h.1z(c)||j}),x(s),B=C=1,a.1s(b,m),B=C=0,D.1I(":1T")&&y.1p&&(i&&y.2a(s.17.15==="1m"?f:G.1f),j&&y.2R());S y},1L:7(b,c){7 q(){b?(a.2f.38&&D[0].18.3C("2O"),D.13("7H","")):D.13({2J:"",4h:"",4r:"",R:"",9:""})}X(!y.1p)X(b)y.1N(1);2p S y;T g=b?"U":"W",h=s[g],j=D.1I(":1T"),k=!c||G.15[0]===c.15,l=s.17,m=s.12,o,p;(16 b).4R("3p|2P")&&(b=!j);X(!D.1I(":5l")&&j===b&&k)S y;X(c){X(/4x|3Y/.1z(c.1y)&&/3t|23/.1z(G.1f.1y)&&c.15===s.U.15[0]&&D.7I(c.3g).1a)S y;G.1f=a.1r({},c)}p=a.3h("1x"+g),p.33=c?G.1f:f,D.2Q(p,[y,3V]);X(p.3o())S y;a.19(D[0],"20-4j",!b),b?(G.3i=a.1r({},i),y.1U(c),a.1Q(m.1o)&&O(m.1o,e),a.1Q(m.1c.1o)&&N(m.1c.1o,e),!v&&l.15==="1m"&&l.1R.1m&&(a(1C).1b("2c.1i",7(a){i={1K:a.1K,2e:a.2e,1y:"2c"}}),v=d),y.2a(c),h.35&&a(n,h.35).2n(D).1i("W",p)):(1H(y.1t.U),2m G.3i,v&&!a(n+\'[4k="7K"]:1T\',h.35).2n(D).1a&&(a(1C).1u("2c.1i"),v=e),y.2g(c)),k&&D.4t(0,1),h.1Y===e?(D[g](),q.2b(D)):a.1Q(h.1Y)?(h.1Y.2b(D,y),D.3l("41",7(a){q(),a()})):D.4I(3V,b?1:0,q),b&&h.15.2Q("1i-"+t+"-24");S y},U:7(a){S y.1L(d,a)},W:7(a){S y.1L(e,a)},1U:7(b){X(!y.1p)S y;T c=a(n),d=1A(D[0].18.2U,10),e=g.5t+c.1a,f=a.1r({},b),h,i;D.1O(p)||(i=a.3h("5o"),i.33=f,D.2Q(i,[y,e]),i.3o()||(d!==e&&(c.1s(7(){V.18.2U>d&&(V.18.2U=V.18.2U-1)}),c.2O("."+p).1i("2g",f)),D.3r(p)[0].18.2U=e));S y},2g:7(b){T c=a.1r({},b),d;D.4u(p),d=a.3h("5r"),d.33=c,D.2Q(d,[y]);S y},2a:7(c,d){X(!y.1p||B)S y;B=1;T f=s.17.15,g=s.17,j=g.1W,l=g.2E,m=g.1R,n=m.4s.2M(" "),o=D.3B(),p=D.3e(),q=0,r=0,t=a.3h("4n"),u=D.13("17")==="2x",v=g.1P,w={R:0,9:0},x=y.1M.1e,A={3P:n[0],3Q:n[1]||n[0],R:7(a){T b=A.3P==="2A",c=v.11.R+v.31,d=j.x==="R"?o:j.x==="1n"?-o:-o/2,e=l.x==="R"?q:l.x==="1n"?-q:-q/2,f=x&&x.2T?x.2T.Y||0:0,g=x&&x.1h&&x.1h.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1k";b?(g=x&&x.1h.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.26(v.11.R+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3T(1d.26(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1n"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3Q==="2A",c=v.11.9+v.2V,d=j.y==="9"?p:j.y==="1q"?-p:-p/2,e=l.y==="9"?r:l.y==="1q"?-r:-r/2,f=x&&x.2T?x.2T.14||0:0,g=x&&x.1h&&x.1h.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.14-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1k";b?(g=x&&x.1h.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.26(v.11.9+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3T(1d.26(v.11.9+v.14,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1q"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.4A(f)&&f.1a===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2p X(f==="1m"&&(c&&c.1K||G.1f.1K))l={x:"R",y:"9"},c=c&&(c.1y==="2D"||c.1y==="40")?G.1f:c&&c.1K&&c.1y==="2c"?c:i&&(m.1m||!c||!c.1K)?{1K:i.1K,2e:i.2e}:!m.1m&&G.3i?G.3i:c,w={9:c.2e,R:c.1K};2p{f==="1f"?c&&c.15&&c.1y!=="40"&&c.1y!=="2D"?f=G.15=a(c.15):f=G.15:G.15=a(f),f=a(f).7N(0);X(f.1a===0)S y;f[0]===1C||f[0]===b?(q=h.2s?b.7O:f.Y(),r=h.2s?b.7P:f.14(),f[0]===b&&(w={9:!u||h.2s?(v||f).2V():0,R:!u||h.2s?(v||f).31():0})):f.1I("7Q")&&h.47?w=h.47(f,l):f[0].7S==="7U://7V.7W.7X/7Y/3J"&&h.3J?w=h.3J(f,l):(q=f.3B(),r=f.3e(),w=h.11(f,g.1Z,u)),w.11&&(q=w.Y,r=w.14,w=w.11),w.R+=l.x==="1n"?q:l.x==="1k"?q/2:0,w.9+=l.y==="1q"?r:l.y==="1k"?r/2:0}w.R+=m.x+(j.x==="1n"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1q"?-p:j.y==="1k"?-p/2:0),v.25&&f[0]!==b&&f[0]!==z&&A.3Q+A.3P!=="7Z"?(v={5C:v,14:v[(v[0]===b?"h":"80")+"82"](),Y:v[(v[0]===b?"w":"83")+"84"](),31:u?0:v.31(),2V:u?0:v.2V(),11:v.11()||{R:0,9:0}},w.3R={R:A.3P!=="4q"?A.R(w.R):0,9:A.3Q!=="4q"?A.9(w.9):0}):w.3R={R:0,9:0},D.19("1X",7(b,c){S a.19(V,"1X").2i(/1B-1x-5B-\\w+/i,"")}).3r(k+"-5B-"+j.5M()),t.33=a.1r({},c),D.2Q(t,[y,w,v.5C||v]);X(t.3o())S y;2m w.3R,d===e||5E(w.R)||5E(w.9)||f==="1m"||!a.1Q(g.1Y)?D.13(w):a.1Q(g.1Y)&&(g.1Y.2b(D,y,a.1r({},w)),D.3l(7(b){a(V).13({4r:"",14:""}),a.2f.38&&V.18.3C("2O"),b()})),B=0;S y},2R:7(){X(y.1p<1||C)S y;T a=s.17.1Z,b,c,d,e;C=1,s.18.Y?D.13("Y",s.18.Y):(D.13("Y","").3r(r),c=D.Y()+1,d=D.13("26-Y")||"",e=D.13("3T-Y")||"",b=(d+e).2z("%")>-1?a.Y()/5G:0,d=(d.2z("%")>-1?b:1)*1A(d,10)||c,e=(e.2z("%")>-1?b:1)*1A(e,10)||0,c=d+e?1d.3T(1d.26(c,e),d):c,D.13("Y",1d.3U(c)).4u(r)),C=0;S y},4a:7(b){T c=m;"3p"!==16 b&&(b=!D.1O(c)&&!G.2H),y.1p?(D.1S(c,b),a.19(D[0],"20-2H",b)):G.2H=!!b;S y},88:7(){S y.4a(e)},2j:7(){T b=c[0],d=a.19(b,u);y.1p&&(D.21(),a.1s(y.1M,7(){V.2j&&V.2j()})),1H(y.1t.U),1H(y.1t.W),Q(),a.89(b,"1i"),d&&(a.19(b,"1c",d),c.3H(u)),c.3H("20-4v").1u(".1i"),2m j[y.1w];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2k&&(b.2k={1y:b.2k});X("12"29 b){X("1l"!==16 b.12||b.12.25)b.12={1o:b.12};c=b.12.1o||e,!a.1Q(c)&&(!c&&!c.19||c.1a<1||"1l"===16 c&&!c.25)&&(b.12.1o=e),"1c"29 b.12&&("1l"!==16 b.12.1c&&(b.12.1c={1o:b.12.1c}),c=b.12.1c.1o||e,!a.1Q(c)&&(!c&&!c.19||c.1a<1||"1l"===16 c&&!c.25)&&(b.12.1c.1o=e))}"17"29 b&&("1l"!==16 b.17&&(b.17={1W:b.17,2E:b.17})),"U"29 b&&("1l"!==16 b.U&&(b.U.25?b.U={15:b.U}:b.U={1f:b.U})),"W"29 b&&("1l"!==16 b.W&&(b.W.25?b.W={15:b.W}:b.W={1f:b.W})),"18"29 b&&("1l"!==16 b.18&&(b.18={3a:b.18})),a.1s(h,7(){V.3j&&V.3j(b)});S b}7 w(){X(3W)S(3W.5I||3W.5I||a.5J).2I(3W,2l)}"8d 8e";T d=!0,e=!1,f=8h,g,h,i,j={},k="1B-1x",l="1B-2r",m="1B-3x-2H",n="28.1i."+k,o=k+"-3y",p=k+"-1U",q=k+"-4g",r=k+"-5O",s="-5R",t="5S",u="5c",v=e;g=a.2q.1i=7(b,h,i){T j=(""+b).2t(),k=f,l=j==="4a"?[d]:a.5W(2l).5K(1),m=l[l.1a-1],n=V[0]?a.2u(V[0],"1i"):f;X(!2l.1a&&n||j==="5Y")S n;X("1v"===16 b){V.1s(7(){T b=a.2u(V,"1i");X(!b)S d;m&&m.5Z&&(b.2W.1f=m);X(j!=="4B"&&j!=="2h"||!h)b[j]&&b[j].2I(b[j],l);2p X(a.63(h)||i!==c)b.3b(h,i);2p{k=b.4w(h);S e}});S k!==f?k:V}X("1l"===16 b||!2l.1a){n=x(a.1r(d,{},b));S g.1b.2b(V,n,m)}},g.1b=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1N(16 b==="1l"||k.U.36),l.U.2B(l.W).1u(n)}X(o.2W.2H)S e;o.2W.1f=a.1r({},b),o.2W.15=b?a(b.15):[c],k.U.2C>0?(1H(o.1t.U),o.1t.U=3v(d,k.U.2C),m.U!==m.W&&l.W.1b(m.W,7(){1H(o.1t.U)})):d()}T k,l,m,n,o,p;p=a.4A(b.1w)?b.1w[i]:b.1w,p=!p||p===e||p.1a<1||j[p]?g.42++:j[p]=p,n=".1i-"+p+"-2v",o=z.2b(V,p,b);X(o===e)S d;k=o.2h,a.1s(h,7(){V.2K==="2K"&&V(o)}),l={U:k.U.15,W:k.W.15},m={U:a.3X(""+k.U.1f).2i(/ /g,n+" ")+n,W:a.3X(""+k.W.1f).2i(/ /g,n+" ")+n},/1m(4x|3Y)/i.1z(m.U)&&!/1m(3t|23)/i.1z(m.W)&&(m.W+=" 2Y"+n),l.U.1b(m.U,q),(k.U.36||k.5u)&&q(f)})},h=g.1M={2G:7(a){a=(""+a).2i(/([A-Z])/," $1").2i(/6u/4Q,"1k").2t(),V.x=(a.46(/R|1n/i)||a.46(/1k/)||["3M"])[0].2t(),V.y=(a.46(/9|1q|1k/i)||["3M"])[0].2t(),V.1j=a.3m(0).4R(/^(t|b)/)>-1?"y":"x",V.1v=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.5M=7(){T a=V.x.2F(0,1),b=V.y.2F(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.31(),f.9+=b*a.2V()}T f=c.11(),g=d,i=0,j=1C.39,k;X(g){6F{g.13("17")!=="6H"&&(k=g[0]===j?{R:1A(g.13("R"),10)||0,9:1A(g.13("9"),10)||0}:g.17(),f.R-=k.R+(1A(g.13("6J"),10)||0),f.9-=k.9+(1A(g.13("6M"),10)||0),i++);X(g[0]===j)32}3f(g=g.6O());(d[0]!==j||i>1)&&l(d,1),(h.2s<4.1&&h.2s>3.1||!h.2s&&e)&&l(a(b),-1)}S f},2s:5a((""+(/4X.*6T ([0-6V]{1,3})|(4X 6X).*6Y.*71/i.58(73.74)||[0,""])[1]).2i("5w","75").2i("7b","."))||e,2q:{19:7(b,c){X(V.1a){T d=V[0],e="1c",f=a.2u(d,"1i");X(b===e){X(2l.1a<2)S a.19(d,u);X(16 f==="1l"){f&&f.1p&&f.2h.12.19===e&&f.2W.19&&f.3b("12.1o",c),a.2q["19"+t].2I(V,2l),a.19(d,u,a.19(d,e));S V.3H(e)}}}},5b:7(b){T c=a([]),d="1c",e;e=a.2q["5b"+t].2I(V,2l).2O("[5c]").1s(7(){a.19(V,d,a.19(V,u)),V.3C(u)}).7w();S e},21:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2O(b,[V]).1a)&&a("*",V).2B(V).1s(7(){a(V).5i("21")})})}}},a.1s(h.2q,7(b,c){X(!c)S d;T e=a.2q[b+t]=a.2q[b];a.2q[b]=7(){S c.2I(V,2l)||e.2I(V,2l)}}),g.3N="2.0.7J",g.42=0,g.5n="4l 7L 3L 5s 2c 2Y 3u".2M(" "),g.5t=7M,g.3q={5u:e,1w:e,4o:d,12:{1o:d,19:"1c",1c:{1o:e,1G:e}},17:{1W:"9 R",2E:"1q 1n",15:e,1Z:e,1P:e,1R:{x:0,y:0,1m:d,2D:d,4s:"3S 3S"},1Y:7(b,c,d){a(V).4t().85(c,86)}},U:{15:e,1f:"3u",1Y:d,2C:3V,35:e,36:e},W:{15:e,1f:"2Y",1Y:d,2C:0,2x:e,24:e,23:"3w",3K:e},18:{3a:"",2r:e,Y:e},4y:{1N:f,4p:f,U:f,W:f,1L:f,1U:f,2g:f}},h.1F=7(a){T b=a.1M.1F;S"1l"===16 b?b:a.1M.1F=1J A(a)},h.1F.2K="1N",h.1F.3j=7(a){T b=a.12,c;b&&"1F"29 b&&(c=b.1F,16 c!=="1l"&&(c=a.12.1F={2o:c}),"3p"!==16 c.2w&&c.2w&&(c.2w=!!c.2w))},a.1r(d,g.3q,{12:{1F:{4J:d,2w:d}}}),h.1e=7(a){T b=a.1M.1e;S"1l"===16 b?b:a.1M.1e=1J C(a)},h.1e.2K="1N",h.1e.3j=7(a){T b=a.18,c;b&&"1e"29 b&&(c=a.18.1e,16 c!=="1l"&&(a.18.1e={1h:c}),/1v|3p/i.1z(16 c.1h)||(c.1h=d),16 c.Y!=="2P"&&2m c.Y,16 c.14!=="2P"&&2m c.14,16 c.1g!=="2P"&&c.1g!==d&&2m c.1g,16 c.11!=="2P"&&2m c.11)},a.1r(d,g.3q,{18:{1e:{1h:d,3D:e,Y:6,14:6,1g:d,11:0}}}),h.47=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.14;3f(i>0&&j>0&&e>0&&f>0){i=1d.3G(i/2),j=1d.3G(j/2),c.x==="R"?e=i:c.x==="1n"?e=a.Y-i:e+=1d.3G(i/2),c.y==="9"?f=j:c.y==="1q"?f=a.14-j:f+=1d.3G(j/2),d=b.1a;3f(d--){X(b.1a<2)32;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1n"&&g<=e||c.x==="1k"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1q"&&h<=f||c.y==="1k"&&(ha.14-f))&&b.6Z(d,1)}}S{R:b[0][0],9:b[0][1]}}b.25||(b=a(b));T d=b.19("49").2t(),e=b.19("7d").2M(","),f=[],g=a(\'34[7n="#\'+b.7q("5p").19("4c")+\'"]\'),h=g.11(),i={Y:0,14:0,11:{9:3E,1n:0,1q:0,R:3E}},j=0,k=0;h.R+=1d.3O((g.3B()-g.Y())/2),h.9+=1d.3O((g.3e()-g.14())/2);X(d==="5D"){j=e.1a;3f(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.11.1n&&(i.11.1n=k[0]),k[0]i.11.1q&&(i.11.1q=k[1]),k[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(7(a,b,c){7 E(b){T c=V,d=b.2Z,e=d.1y,f=".22-"+b.1x;a.1r(c,{1Z:7(){d.22=a(\'<5K 1X="1B-1y-22" 8r="0" 8e="-1" 8a="8b:\\\'\\\';" 18="2J:37; 17:4J; z-8h:-1; 2L:8i(4s=0); -81-2L:"8j:8k.8m.8n(8o=0)";">\'),d.22.3g(e),e.1a("4m"+f,c.1T)},1T:7(){T a=b.44("5e"),c=b.1H.1e,f=d.1e,g,h;h=1z(e.13("1f-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1h.1j==="x"?["Y","R"]:["14","9"],h[g[1]]-=f[g[0]]()),d.22.13(h).13(a)},2k:7(){d.22.20(),e.1u(f)}}),c.1Z()}7 D(c){T f=V,g=c.2f.U.1E,h=c.2Z,i=h.1y,j="#1i-2K",k=".8q",l=k+c.1x,m="1L-1E-1i",o=a(1D.3k),q;c.2T.1E={"^U.1E.(2S|2e)$":7(){f.1Z(),h.2K.1M(i.1L(":1R"))}},a.1r(f,{1Z:7(){X(!g.2S)S f;q=f.2p(),i.19(m,d).1u(k).1u(l).1a("4d"+k+" 4e"+k,7(a,b,c){T d=a.31;d&&a.1w==="4e"&&/1p(23|3V)/.1A(d.1w)&&d.3d.49(q[0]).1b?a.54():f[a.1w.2l("1y","")](a,c)}).1a("5m"+k,7(a,b,c){q[0].18.30=c}).1a("5n"+k,7(b){a("["+m+"]:1R").2o(i).5j().1i("1U",b)}),g.4B&&a(b).1u(l).1a("52"+l,7(a){a.7F===27&&i.1O(p)&&c.W(a)}),g.2e&&h.2K.1u(l).1a("4l"+l,7(a){i.1O(p)&&c.W(a)});S f},2p:7(){T c=a(j);X(c.1b){h.2K=c;S c}q=h.2K=a("<25 />",{1x:j.2H(1),2M:"<25>",3M:7(){S e}}).4Z(a(n).5j()),a(b).1u(k).1a("2x"+k,7(){q.13({14:a(b).14(),Y:a(b).Y()})}).5d("2x");S q},1M:7(b,c,h){X(b&&b.3s())S f;T j=g.1V,k=c?"U":"W",p=q.1L(":1R"),r=a("["+m+"]:1R").2o(i),s;q||(q=f.2p());X(q.1L(":5g")&&p===c||!c&&r.1b)S f;c?(q.13({R:0,9:0}),q.1S("7A",g.2e),o.7x("*","5O"+l,7(b){a(b.15).49(n)[0]!==i[0]&&a("a, :5P, 2W",i).2D(i).1U()})):o.56("*","1U"+l),q.4G(d,e),a.1Q(j)?j.29(q,c):j===e?q[k]():q.5l(1z(h,10)||3U,c?1:0,7(){c||a(V).W()}),c||q.34(7(a){q.13({R:"",9:""}),a()});S f},U:7(a,b){S f.1M(a,d,b)},W:7(a,b){S f.1M(a,e,b)},2k:7(){T d=q;d&&(d=a("["+m+"]").2o(i).1b<1,d?(h.2K.20(),a(b).1u(k)):h.2K.1u(k+c.1x),o.56("*","1U"+l));S i.3G(m).1u(k)}}),f.1Z()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"14"],d=n[b?"14":"Y"],e=a.1t().2A("1k")>-1,f=c*(e?.5:1),g=1d.5S,h=1d.3T,i,j,k,l=1d.3Z(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.3Z(g(m[0],2)-g(p,2)),m[3]=1d.3Z(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];S{14:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1C&&b.y==="9",d=c?k.1C:k.12,e=a.2g.8s,f=e?"-5T-":a.2g.4Q?"-4Q-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4z-"+g:"1f-"+g+"-4z");S 1z(d.13(h),10)||1z(l.13(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1O(r),e=k.1C&&a.y==="9",f=e?k.1C:k.12,g="1f-"+b+"-Y",h;l.3v(r),h=1z(f.13(g),10),h=(c?h||1z(l.13(g),10):h)||0,l.1S(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1h),o=h.3Q,p=b.2f.17.1T.4r.2O(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1h.2y!==d&&(q==="2w"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3R"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1n":n.x==="R"?"1n":"R"),r==="2w"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3R"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1o":n.y==="9"?"1o":"9"),n.1t()!==m.1h&&(m.9!==o.9||m.R!==o.R)&&i.3b(n,e)),t=i.17(n,o),t.1n!==c&&(t.R=-t.1n),t.1o!==c&&(t.9=-t.1o),t.46=1d.26(0,j.11);X(s.R=q==="2w"&&!!o.R)n.x==="1k"?u["2Y-R"]=s.x=t["2Y-R"]-o.R:(v=t.1n!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.26(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1n!==c?"1n":"R"]=s.x);X(s.9=r==="2w"&&!!o.9)n.y==="1k"?u["2Y-9"]=s.y=t["2Y-9"]-o.9:(v=t.1o!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.26(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1o!==c?"1o":"9"]=s.y);k.1e.13(u).1M(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3u?t.46:q!=="2w"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3u?t.46:r!=="2w"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1h=n.1t()}}T i=V,j=b.2f.18.1e,k=b.2Z,l=k.1y,m={9:0,R:0,1h:""},n={Y:j.Y,14:j.14},o={},p=j.1f||0,q=".1i-1e",s=!!(a("<4A />")[0]||{}).40;i.1h=f,i.3E=f,i.1f=p,i.11=j.11,i.2V=n,b.2T.1e={"^17.1W|18.1e.(1h|3E|1f)$":7(){i.1Z()||i.2k(),b.28()},"^18.1e.(14|Y)$":7(){n={Y:j.Y,14:j.14},i.2p(),i.3b(),b.28()},"^12.1c.1m|18.(3f|2r)$":7(){k.1e&&i.3b()}},a.1r(i,{1Z:7(){T b=i.4X()&&(s||a.2g.3e);b&&(i.2p(),i.3b(),l.1u(q).1a("4m"+q,t));S b},4X:7(){T a=j.1h,c=b.2f.17,f=c.2z,g=c.1W.1t?c.1W.1t():c.1W;X(a===e||g===e&&f===e)S e;a===d?i.1h=1J h.2N(g):a.1t||(i.1h=1J h.2N(a),i.1h.2y=d);S i.1h.1t()!=="5F"},4C:7(){T c,d,e,f=k.1e.13({6t:"",1f:""}),g=i.1h,h=g[g.1j],m="1f-"+h+"-3t",p="1f"+h.3u(0)+h.2H(1)+"5W",q=/6L?\\(0, 0, 0(, 0)?\\)|3Y/i,s="5Y-3t",t="3Y",u=a(1D.3k).13("3t"),v=b.2Z.12.13("3t"),w=k.1C&&(g.y==="9"||g.y==="1k"&&f.17().9+n.14/2+j.11",{"1X":"1B-1y-1e"}).13({Y:b,14:c}).5Z(l),s?a("<4A />").3g(k.1e)[0].40("2d").4y():(d=\'<4t:47 61="0,0" 18="2J:5w-37; 17:4J; 4L:2n(#3l#5v);">\',k.1e.2M(d+d))},3b:7(b,c){T g=k.1e,l=g.62(),m=n.Y,q=n.14,r="45 63 ",t="45 64 3Y",v=j.3E,x=1d.3T,y,z,A,C,D;b||(b=i.1h),v===e?v=b:(v=1J h.2N(v),v.1j=b.1j,v.x==="3B"?v.x=b.x:v.y==="3B"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4C(),o.1f!=="3Y"&&o.1f!=="#66"?(p=u(b,f,d),j.1f===0&&p>0&&(o.2C=o.1f),i.1f=p=j.1f!==d?j.1f:p):i.1f=p=0,A=B(v,m,q),i.2V=D=w(b),g.13(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1n"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.14-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1o"?D.14-q-p:(D.14-q)/2)],s?(l.19(D),z=l[0].40("2d"),z.67(),z.4y(),z.68(0,0,4F,4F),z.69(C[0],C[1]),z.79(),z.6a(A[0][0],A[0][1]),z.4H(A[1][0],A[1][1]),z.4H(A[2][0],A[2][1]),z.6b(),z.8p=o.2C,z.6c=o.1f,z.6e=p*2,z.6f="5y",z.8l=5E,p&&z.4K(),z.2C()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6g",C[2]=p&&/^(r|b)/i.1A(b.1t())?4S(a.2g.3N,10)===8?2:1:0,l.13({6h:""+(v.1t().2A("1k")>-1),R:C[0]-C[2]*5L(y==="x"),9:C[1]-C[2]*5L(y==="y"),Y:m+p,14:q+p}).1s(7(b){T c=a(V);c[c.4I?"4I":"19"]({6j:m+p+" "+(q+p),6k:A,6l:o.2C,6m:!!b,6n:!b}).13({2J:p||b?"37":"4q"}),!b&&c.2M()===""&&c.2M(\'<4t:4K 6o="\'+p*2+\'45" 3t="\'+o.1f+\'" 6p="6q" 6r="5y" 18="4L:2n(#3l#5v); 2J:5w-37;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.26(0,j.11),h,l,m;X(j.1h===e||!c)S e;b=b||i.1h,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6u(),a.1s(m,7(a,c){T e,i;c==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["2Y-"+e]=-1d.3T(l[h==="y"?"Y":"14"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"14"],c.13({9:"",1o:"",R:"",1n:"",2Y:""}).13(f);S f},2k:7(){k.1e&&k.1e.20(),l.1u(q)}}),i.1Z()}7 B(a,b,c){T d=1d.3K(b/2),e=1d.3K(c/2),f={5D:[[0,0],[b,c],[b,0]],4N:[[0,0],[b,0],[0,c]],5f:[[0,c],[b,0],[b,c]],4P:[[0,0],[0,c],[b,c]],6v:[[0,c],[d,0],[b,c]],6w:[[0,0],[b,0],[d,c]],6x:[[0,0],[b,e],[0,c]],6y:[[b,0],[b,c],[0,e]]};f.6z=f.5D,f.6A=f.4N,f.6B=f.5f,f.6C=f.4P;S f[a.1t()]}7 A(b){T c=V,f=b.2Z.1y,g=b.2f.12.1F,h=".1i-1F",i=/<4h\\b[^<]*(?:(?!<\\/4h>)<[^<]*)*<\\/4h>/4M,j=d;b.2T.1F={"^12.1F":7(a,b,d){b==="1F"&&(g=d),b==="2E"?c.1Z():g&&g.2n?c.3D():f.1u(h)}},a.1r(c,{1Z:7(){g&&g.2n&&f.1u(h)[g.2E?"7H":"1a"]("4d"+h,c.3D);S c},3D:7(d,h){7 p(a,c,d){b.3h("12.1m",c+": "+d),n()}7 o(c){l&&(c=a("<25/>").3i(c.2l(i,"")).53(l)),b.3h("12.1m",c),n()}7 n(){m&&(f.13("4i",""),h=e)}X(d&&d.3s())S c;T j=g.2n.2A(" "),k=g.2n,l,m=g.2E&&!g.5I&&h;m&&f.13("4i","4j"),j>-1&&(l=k.2H(j),k=k.2H(0,j)),a.1F(a.1r({7G:o,4V:p,6F:b},g,{2n:k}));S c}}),c.1Z()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1D.3k),o=V===1D?n:m,p=m.2h?m.2h(c.2h):f,q=c.2h.1w==="7D"&&p?p[c.2h.4c]:f,r=m.2q(c.2h.4c||"6H");6I{r=16 r==="1t"?(1J 6J("S "+r))():r}7z(s){w("5b 4R 7y 6N 6O 2q: "+r)}l=a.1r(d,{},g.3o,c,16 r==="1l"?x(r):f,x(q||p)),j=l.17,l.1x=b;X("3p"===16 l.12.1m){k=m.19(l.12.19);X(l.12.19!==e&&k)l.12.1m=k;2m{w("5b 4R 6P 12 4g 1y! 6Q 1P 7r 1y 2S 7q: ",m);S e}}j.21===e&&(j.21=n),j.15===e&&(j.15=o),l.U.15===e&&(l.U.15=o),l.U.35===d&&(l.U.35=n),l.W.15===e&&(l.W.15=o),l.17.1N===d&&(l.17.1N=j.21),j.2z=1J h.2N(j.2z),j.1W=1J h.2N(j.1W);X(a.2q(V,"1i"))X(l.4n)m.1i("2k");2m X(l.4n===e)S e;a.19(V,"1c")&&(a.19(V,u,a.19(V,"1c")),V.3C("1c")),i=1J y(m,l,b,!!k),a.2q(V,"1i",i),m.1a("20.1i",7(){i.2k()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.15[0],s.W.15[0],y.1q&&F.1y[0],s.17.21[0],s.17.1N[0],b,1D];y.1q?a([]).7p(a.6S(c,7(a){S 16 a==="1l"})).1u(E):s.U.15.1u(E+"-2p")}7 P(){7 r(a){D.1L(":1R")&&y.28(a)}7 p(a){X(D.1O(m))S e;1I(y.1v.2a),y.1v.2a=39(7(){y.W(a)},s.W.2a)}7 o(b){X(D.1O(m))S e;T c=a(b.3d||b.15),d=c.49(n)[0]===D[0],g=c[0]===h.U[0];1I(y.1v.U),1I(y.1v.W);f.15==="1p"&&d||s.W.2y&&(/1p(3y|23|4o)/.1A(b.1w)&&(d||g))?b.54():s.W.2B>0?y.1v.W=39(7(){y.W(b)},s.W.2B):y.W(b)}7 l(a){X(D.1O(m))S e;h.U.2Q("1i-"+t+"-2a"),1I(y.1v.U),1I(y.1v.W);T b=7(){y.1M(d,a)};s.U.2B>0?y.1v.U=39(b,s.U.2B):b()}T f=s.17,h={U:s.U.15,W:s.W.15,1N:a(f.1N),1D:a(1D),3z:a(b)},j={U:a.3X(""+s.U.1g).2O(" "),W:a.3X(""+s.W.1g).2O(" ")},k=a.2g.3e&&1z(a.2g.3N,10)===6;D.1a("3x"+E+" 32"+E,7(a){T b=a.1w==="3x";b&&y.1U(a),D.1S(q,b)}),s.W.2y&&(h.W=h.W.2D(D),D.1a("6U"+E,7(){D.1O(m)||1I(y.1v.W)})),/1p(3y|23)/i.1A(s.W.1g)?s.W.23&&h.3z.1a("1p"+(s.W.23.2A("6V")>-1?"3y":"23")+E,7(a){/4W|4Y/.1A(a.15)&&!a.3d&&y.W(a)}):/1p(4w|3V)/i.1A(s.U.1g)&&h.W.1a("32"+E,7(a){1I(y.1v.U)}),(""+s.W.1g).2A("51")>-1&&h.1D.1a("3M"+E,7(b){T d=a(b.15),e=!D.1O(m)&&D.1L(":1R");d.7j(n).1b===0&&d.2D(c).1b>1&&y.W(b)}),"2G"===16 s.W.2a&&(h.U.1a("1i-"+t+"-2a",p),a.1s(g.5i,7(a,b){h.W.2D(F.1y).1a(b+E+"-2a",p)})),a.1s(j.W,7(b,c){T d=a.7i(c,j.U),e=a(h.W);d>-1&&e.2D(h.U).1b===e.1b||c==="51"?(h.U.1a(c+E,7(a){D.1L(":1R")?o(a):l(a)}),2v j.U[d]):h.W.1a(c+E,o)}),a.1s(j.U,7(a,b){h.U.1a(b+E,l)}),"2G"===16 s.W.3L&&h.U.1a("2j"+E,7(a){T b=G.3a||{},c=s.W.3L,d=1d.3w;(d(a.1K-b.1K)>=c||d(a.2i-b.2i)>=c)&&y.W(a)}),f.15==="1p"&&(h.U.1a("2j"+E,7(a){i={1K:a.1K,2i:a.2i,1w:"2j"}}),f.1T.1p&&(s.W.1g&&D.1a("32"+E,7(a){(a.3d||a.15)!==h.U[0]&&y.W(a)}),h.1D.1a("2j"+E,7(a){!D.1O(m)&&D.1L(":1R")&&y.28(a||i)}))),(f.1T.2x||h.1N.1b)&&(a.1g.7g.2x?h.1N:h.3z).1a("2x"+E,r),(h.1N.1b||k&&D.13("17")==="2y")&&h.1N.1a("41"+E,r)}7 O(b,d){7 g(b){7 g(f){1I(y.1v.2W[V]),a(V).1u(E),(c=c.2o(V)).1b===0&&(y.2R(),d!==e&&y.28(G.1g),b())}T c;X((c=f.53("2W:2o([14]):2o([Y])")).1b===0)S g.29(c);c.1s(7(b,c){(7 d(){X(c.14&&c.Y)S g.29(c);y.1v.2W[c]=39(d,70)})(),a(c).1a("4V"+E+" 3D"+E,g)})}T f=F.12;X(!y.1q||!b)S e;a.1Q(b)&&(b=b.29(c,G.1g,y)||""),b.24&&b.1b>0?f.5q().3i(b.13({2J:"37"})):f.2M(b),y.1q<0?D.34("42",g):(C=0,g(a.5H));S y}7 N(b,d){T f=F.1c;X(!y.1q||!b)S e;a.1Q(b)&&(b=b.29(c,G.1g,y)||""),b.24&&b.1b>0?f.5q().3i(b.13({2J:"37"})):f.2M(b),y.2R(),d!==e&&y.1q&&D.1L(":1R")&&y.28(G.1g)}7 M(a){T b=F.1G,c=F.1c;X(!y.1q)S e;a?(c||L(),K()):b.20()}7 L(){T b=A+"-1c";F.1C&&J(),F.1C=a("<25 />",{"1X":k+"-1C "+(s.18.2r?"1B-2r-55":"")}).3i(F.1c=a("<25 />",{1x:b,"1X":k+"-1c","1Y-4b":d})).4Z(F.12),s.12.1c.1G?K():y.1q&&y.2R()}7 K(){T b=s.12.1c.1G,c=16 b==="1t",d=c?b:"74 1y";F.1G&&F.1G.20(),b.24?F.1G=b:F.1G=a("",{"1X":"1B-3q-3l "+(s.18.2r?"":k+"-3F"),1c:d,"1Y-75":d}).76(a("<77 />",{"1X":"1B-3F 1B-3F-7a",2M:"&7b;"})),F.1G.3g(F.1C).19("5c","1G").4x(7(b){a(V).1S("1B-3q-4x",b.1w==="3x")}).4l(7(a){D.1O(m)||y.W(a);S e}).1a("3M 52 5o 7d 7e",7(b){a(V).1S("1B-3q-7f 1B-3q-1U",b.1w.2H(-4)==="7h")}),y.2R()}7 J(){F.1c&&(F.1C.20(),F.1C=F.1c=F.1G=f,y.28())}7 I(){T a=s.18.2r;D.1S(l,a).1S(o,!a),F.12.1S(l+"-12",a),F.1C&&F.1C.1S(l+"-55",a),F.1G&&F.1G.1S(k+"-3F",!a)}7 H(a){T b=0,c,d=s,e=a.2O(".");3c(d=d[e[b++]])b0&&!a("#"+i).1b&&(D[0].1x=i,F.12[0].1x=i+"-12",F.1c[0].1x=i+"-1c")},"^12.1m$":7(a,b,c){O(c)},"^12.1c.1m$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1G$":7(a,b,c){M(c)},"^17.(1W|2z)$":7(a,b,c){"1t"===16 c&&(a[b]=1J h.2N(c))},"^17.21$":7(a,b,c){y.1q&&D.3g(c)},"^U.36$":7(){y.1q?y.1M(d):y.1P(1)},"^18.3f$":7(b,c,d){a.19(D[0],"1X",k+" 1i 1B-59-5a "+d)},"^18.2r|12.1c":I,"^4a.(1P|U|4o|W|1U|2e)$":7(b,c,d){D[(a.1Q(d)?"":"7n")+"1a"]("1y"+c,d)},"^(U|W|17).(1g|15|2y|2a|23|3L|1N|1T)":7(){T a=s.17;D.19("43",a.15==="1p"&&a.1T.1p),Q(),P()}},a.1r(y,{1P:7(b){X(y.1q)S y;T f=s.12.1c.1m,g=s.17,i=a.3m("7o");a.19(c[0],"1Y-4v",A),D=F.1y=a("<25/>",{1x:A,"1X":k+" 1i 1B-59-5a "+o+" "+s.18.3f,Y:s.18.Y||"",43:g.15==="1p"&&g.1T.1p,5c:"7t","1Y-7u":"7v","1Y-4b":e,"1Y-4v":A+"-12","1Y-4j":d}).1S(m,G.2F).2q("1i",y).3g(s.17.21).3i(F.12=a("<25 />",{"1X":k+"-12",1x:A+"-12","1Y-4b":d})),y.1q=-1,C=1,f&&(L(),N(f)),O(s.12.1m,e),y.1q=d,I(),a.1s(s.4a,7(b,c){a.1Q(c)&&D.1a(b==="1M"?"4d 4e":"1y"+b,c)}),a.1s(h,7(){V.2I==="1P"&&V(y)}),P(),D.34("42",7(a){i.31=G.1g,D.2Q(i,[y]),C=0,y.2R(),(s.U.36||b)&&y.1M(d,G.1g),a()});S y},44:7(a){T b,c;5s(a.2s()){3r"5e":b={14:D.3j(),Y:D.3J()};38;3r"11":b=h.11(D,s.17.21);38;3l:c=H(a.2s()),b=c[0][c[1]],b=b.1j?b.1t():b}S b},3h:7(b,c){7 m(a,b){T c,d,e;4g(c 2b k)4g(d 2b k[c])X(e=(1J 7B(d,"i")).4U(a))b.5h(e),k[c][d].2P(y,b)}T g=/^17\\.(1W|2z|1T|15|21)|18|12|U\\.36/i,h=/^12\\.(1c|19)|18/i,i=e,j=e,k=y.2T,l;"1t"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2s()),f;f=e[0][e[1]],e[0][e[1]]="1l"===16 d&&d.7C?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1A(c)||i,j=h.1A(c)||j}),x(s),B=C=1,a.1s(b,m),B=C=0,D.1L(":1R")&&y.1q&&(i&&y.28(s.17.15==="1p"?f:G.1g),j&&y.2R());S y},1M:7(b,c){7 q(){b?(a.2g.3e&&D[0].18.3C("2L"),D.13("7E","")):D.13({2J:"",4i:"",4s:"",R:"",9:""})}X(!y.1q)X(b)y.1P(1);2m S y;T g=b?"U":"W",h=s[g],j=D.1L(":1R"),k=!c||G.15[0]===c.15,l=s.17,m=s.12,o,p;(16 b).5t("3p|2G")&&(b=!j);X(!D.1L(":5g")&&j===b&&k)S y;X(c){X(/4w|3V/.1A(c.1w)&&/3y|23/.1A(G.1g.1w)&&c.15===s.U.15[0]&&D.7I(c.3d).1b)S y;G.1g=a.1r({},c)}p=a.3m("1y"+g),p.31=c?G.1g:f,D.2Q(p,[y,3U]);X(p.3s())S y;a.19(D[0],"1Y-4j",!b),b?(G.3a=a.1r({},i),y.1U(c),a.1Q(m.1m)&&O(m.1m,e),a.1Q(m.1c.1m)&&N(m.1c.1m,e),!v&&l.15==="1p"&&l.1T.1p&&(a(1D).1a("2j.1i",7(a){i={1K:a.1K,2i:a.2i,1w:"2j"}}),v=d),y.28(c),h.35&&a(n,h.35).2o(D).1i("W",p)):(1I(y.1v.U),2v G.3a,v&&!a(n+\'[43="7K"]:1R\',h.35).2o(D).1b&&(a(1D).1u("2j.1i"),v=e),y.2e(c)),k&&D.4G(0,1),h.1V===e?(D[g](),q.29(D)):a.1Q(h.1V)?(h.1V.29(D,y),D.34("42",7(a){q(),a()})):D.5l(3U,b?1:0,q),b&&h.15.2Q("1i-"+t+"-2a");S y},U:7(a){S y.1M(d,a)},W:7(a){S y.1M(e,a)},1U:7(b){X(!y.1q)S y;T c=a(n),d=1z(D[0].18.30,10),e=g.5p+c.1b,f=a.1r({},b),h,i;D.1O(p)||(i=a.3m("5m"),i.31=f,D.2Q(i,[y,e]),i.3s()||(d!==e&&(c.1s(7(){V.18.30>d&&(V.18.30=V.18.30-1)}),c.2L("."+p).1i("2e",f)),D.3v(p)[0].18.30=e));S y},2e:7(b){T c=a.1r({},b),d;D.4u(p),d=a.3m("5n"),d.31=c,D.2Q(d,[y]);S y},28:7(c,d){X(!y.1q||B)S y;B=1;T f=s.17.15,g=s.17,j=g.1W,l=g.2z,m=g.1T,n=m.4r.2O(" "),o=D.3J(),p=D.3j(),q=0,r=0,t=a.3m("4m"),u=D.13("17")==="2y",v=g.1N,w={R:0,9:0},x=y.1H.1e,A={3O:n[0],3P:n[1]||n[0],R:7(a){T b=A.3O==="2w",c=v.11.R+v.33,d=j.x==="R"?o:j.x==="1n"?-o:-o/2,e=l.x==="R"?q:l.x==="1n"?-q:-q/2,f=x&&x.2V?x.2V.Y||0:0,g=x&&x.1h&&x.1h.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1k";b?(g=x&&x.1h.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.26(v.11.R+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3S(1d.26(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1n"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3P==="2w",c=v.11.9+v.2U,d=j.y==="9"?p:j.y==="1o"?-p:-p/2,e=l.y==="9"?r:l.y==="1o"?-r:-r/2,f=x&&x.2V?x.2V.14||0:0,g=x&&x.1h&&x.1h.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.14-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1k";b?(g=x&&x.1h.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.26(v.11.9+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3S(1d.26(v.11.9+v.14,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1o"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.4E(f)&&f.1b===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2m X(f==="1p"&&(c&&c.1K||G.1g.1K))l={x:"R",y:"9"},c=c&&(c.1w==="2x"||c.1w==="41")?G.1g:c&&c.1K&&c.1w==="2j"?c:i&&(m.1p||!c||!c.1K)?{1K:i.1K,2i:i.2i}:!m.1p&&G.3a?G.3a:c,w={9:c.2i,R:c.1K};2m{f==="1g"?c&&c.15&&c.1w!=="41"&&c.1w!=="2x"?f=G.15=a(c.15):f=G.15:G.15=a(f),f=a(f).7N(0);X(f.1b===0)S y;f[0]===1D||f[0]===b?(q=h.2u?b.7O:f.Y(),r=h.2u?b.7P:f.14(),f[0]===b&&(w={9:!u||h.2u?(v||f).2U():0,R:!u||h.2u?(v||f).33():0})):f.1L("7Q")&&h.4f?w=h.4f(f,l):f[0].7S==="7T://7U.7V.7W/7X/3I"&&h.3I?w=h.3I(f,l):(q=f.3J(),r=f.3j(),w=h.11(f,g.21,u)),w.11&&(q=w.Y,r=w.14,w=w.11),w.R+=l.x==="1n"?q:l.x==="1k"?q/2:0,w.9+=l.y==="1o"?r:l.y==="1k"?r/2:0}w.R+=m.x+(j.x==="1n"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1o"?-p:j.y==="1k"?-p/2:0),v.24&&f[0]!==b&&f[0]!==z&&A.3P+A.3O!=="7Y"?(v={5A:v,14:v[(v[0]===b?"h":"7Z")+"82"](),Y:v[(v[0]===b?"w":"83")+"84"](),33:u?0:v.33(),2U:u?0:v.2U(),11:v.11()||{R:0,9:0}},w.3Q={R:A.3O!=="4q"?A.R(w.R):0,9:A.3P!=="4q"?A.9(w.9):0}):w.3Q={R:0,9:0},D.19("1X",7(b,c){S a.19(V,"1X").2l(/1B-1y-5z-\\w+/i,"")}).3v(k+"-5z-"+j.5M()),t.31=a.1r({},c),D.2Q(t,[y,w,v.5A||v]);X(t.3s())S y;2v w.3Q,d===e||5C(w.R)||5C(w.9)||f==="1p"||!a.1Q(g.1V)?D.13(w):a.1Q(g.1V)&&(g.1V.29(D,y,a.1r({},w)),D.34(7(b){a(V).13({4s:"",14:""}),a.2g.3e&&V.18.3C("2L"),b()})),B=0;S y},2R:7(){X(y.1q<1||C)S y;T a=s.17.21,b,c,d,e;C=1,s.18.Y?D.13("Y",s.18.Y):(D.13("Y","").3v(r),c=D.Y()+1,d=D.13("26-Y")||"",e=D.13("3S-Y")||"",b=(d+e).2A("%")>-1?a.Y()/5E:0,d=(d.2A("%")>-1?b:1)*1z(d,10)||c,e=(e.2A("%")>-1?b:1)*1z(e,10)||0,c=d+e?1d.3S(1d.26(c,e),d):c,D.13("Y",1d.3T(c)).4u(r)),C=0;S y},48:7(b){T c=m;"3p"!==16 b&&(b=!D.1O(c)&&!G.2F),y.1q?(D.1S(c,b),a.19(D[0],"1Y-2F",b)):G.2F=!!b;S y},88:7(){S y.48(e)},2k:7(){T b=c[0],d=a.19(b,u);y.1q&&(D.20(),a.1s(y.1H,7(){V.2k&&V.2k()})),1I(y.1v.U),1I(y.1v.W),Q(),a.89(b,"1i"),d&&(a.19(b,"1c",d),c.3G(u)),c.3G("1Y-4v").1u(".1i"),2v j[y.1x];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2h&&(b.2h={1w:b.2h});X("12"2b b){X("1l"!==16 b.12||b.12.24)b.12={1m:b.12};c=b.12.1m||e,!a.1Q(c)&&(!c&&!c.19||c.1b<1||"1l"===16 c&&!c.24)&&(b.12.1m=e),"1c"2b b.12&&("1l"!==16 b.12.1c&&(b.12.1c={1m:b.12.1c}),c=b.12.1c.1m||e,!a.1Q(c)&&(!c&&!c.19||c.1b<1||"1l"===16 c&&!c.24)&&(b.12.1c.1m=e))}"17"2b b&&("1l"!==16 b.17&&(b.17={1W:b.17,2z:b.17})),"U"2b b&&("1l"!==16 b.U&&(b.U.24?b.U={15:b.U}:b.U={1g:b.U})),"W"2b b&&("1l"!==16 b.W&&(b.W.24?b.W={15:b.W}:b.W={1g:b.W})),"18"2b b&&("1l"!==16 b.18&&(b.18={3f:b.18})),a.1s(h,7(){V.3n&&V.3n(b)});S b}7 w(){X(3W)S(3W.5G||3W.5G||a.5H).2P(3W,2c)}"8d 8f";T d=!0,e=!1,f=8g,g,h,i,j={},k="1B-1y",l="1B-2r",m="1B-3q-2F",n="25.1i."+k,o=k+"-3l",p=k+"-1U",q=k+"-4x",r=k+"-5N",s="-5Q",t="5R",u="58",v=e;g=a.2t.1i=7(b,h,i){T j=(""+b).2s(),k=f,l=j==="48"?[d]:a.5U(2c).5J(1),m=l[l.1b-1],n=V[0]?a.2q(V[0],"1i"):f;X(!2c.1b&&n||j==="5V")S n;X("1t"===16 b){V.1s(7(){T b=a.2q(V,"1i");X(!b)S d;m&&m.5X&&(b.2X.1g=m);X(j!=="4Y"&&j!=="2f"||!h)b[j]&&b[j].2P(b[j],l);2m X(a.60(h)||i!==c)b.3h(h,i);2m{k=b.44(h);S e}});S k!==f?k:V}X("1l"===16 b||!2c.1b){n=x(a.1r(d,{},b));S g.1a.29(V,n,m)}},g.1a=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1P(16 b==="1l"||k.U.36),l.U.2D(l.W).1u(n)}X(o.2X.2F)S e;o.2X.1g=a.1r({},b),o.2X.15=b?a(b.15):[c],k.U.2B>0?(1I(o.1v.U),o.1v.U=39(d,k.U.2B),m.U!==m.W&&l.W.1a(m.W,7(){1I(o.1v.U)})):d()}T k,l,m,n,o,p;p=a.4E(b.1x)?b.1x[i]:b.1x,p=!p||p===e||p.1b<1||j[p]?g.4k++:j[p]=p,n=".1i-"+p+"-2p",o=z.29(V,p,b);X(o===e)S d;k=o.2f,a.1s(h,7(){V.2I==="2I"&&V(o)}),l={U:k.U.15,W:k.W.15},m={U:a.3X(""+k.U.1g).2l(/ /g,n+" ")+n,W:a.3X(""+k.W.1g).2l(/ /g,n+" ")+n},/1p(4w|3V)/i.1A(m.U)&&!/1p(3y|23)/i.1A(m.W)&&(m.W+=" 32"+n),l.U.1a(m.U,q),(k.U.36||k.5r)&&q(f)})},h=g.1H={2N:7(a){a=(""+a).2l(/([A-Z])/," $1").2l(/6s/4M,"1k").2s(),V.x=(a.4p(/R|1n/i)||a.4p(/1k/)||["3B"])[0].2s(),V.y=(a.4p(/9|1o|1k/i)||["3B"])[0].2s(),V.1j=a.3u(0).5t(/^(t|b)/)>-1?"y":"x",V.1t=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.5M=7(){T a=V.x.2H(0,1),b=V.y.2H(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.33(),f.9+=b*a.2U()}T f=c.11(),g=d,i=0,j=1D.3k,k;X(g){6D{g.13("17")!=="6E"&&(k=g[0]===j?{R:1z(g.13("R"),10)||0,9:1z(g.13("9"),10)||0}:g.17(),f.R-=k.R+(1z(g.13("6G"),10)||0),f.9-=k.9+(1z(g.13("6K"),10)||0),i++);X(g[0]===j)38}3c(g=g.6M());(d[0]!==j||i>1)&&l(d,1),(h.2u<4.1&&h.2u>3.1||!h.2u&&e)&&l(a(b),-1)}S f},2u:4S((""+(/4T.*6R ([0-6T]{1,3})|(4T 6W).*6X.*6Y/i.4U(71.72)||[0,""])[1]).2l("5u","73").2l("78","."))||e,2t:{19:7(b,c){X(V.1b){T d=V[0],e="1c",f=a.2q(d,"1i");X(b===e){X(2c.1b<2)S a.19(d,u);X(16 f==="1l"){f&&f.1q&&f.2f.12.19===e&&f.2X.19&&f.3h("12.1m",c),a.2t["19"+t].2P(V,2c),a.19(d,u,a.19(d,e));S V.3G(e)}}}},57:7(b){T c=a([]),d="1c",e;e=a.2t["57"+t].2P(V,2c).2L("[58]").1s(7(){a.19(V,d,a.19(V,u)),V.3C(u)}).7w();S e},20:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2L(b,[V]).1b)&&a("*",V).2D(V).1s(7(){a(V).5d("20")})})}}},a.1s(h.2t,7(b,c){X(!c)S d;T e=a.2t[b+t]=a.2t[b];a.2t[b]=7(){S c.2P(V,2c)||e.2P(V,2c)}}),g.3N="2.0.7J",g.4k=0,g.5i="4l 7L 3M 5o 2j 32 3x".2O(" "),g.5p=7M,g.3o={5r:e,1x:e,4n:d,12:{1m:d,19:"1c",1c:{1m:e,1G:e}},17:{1W:"9 R",2z:"1o 1n",15:e,21:e,1N:e,1T:{x:0,y:0,1p:d,2x:d,4r:"3R 3R"},1V:7(b,c,d){a(V).85(c,{86:87,34:e})}},U:{15:e,1g:"3x",1V:d,2B:3U,35:e,36:e},W:{15:e,1g:"32",1V:d,2B:0,2y:e,2a:e,23:"3z",3L:e},18:{3f:"",2r:e,Y:e},4a:{1P:f,4o:f,U:f,W:f,1M:f,1U:f,2e:f}},h.1F=7(a){T b=a.1H.1F;S"1l"===16 b?b:a.1H.1F=1J A(a)},h.1F.2I="1P",h.1F.3n=7(a){T b=a.12,c;b&&"1F"2b b&&(c=b.1F,16 c!=="1l"&&(c=a.12.1F={2n:c}),"3p"!==16 c.2E&&c.2E&&(c.2E=!!c.2E))},a.1r(d,g.3o,{12:{1F:{5I:d,2E:d}}}),h.1e=7(a){T b=a.1H.1e;S"1l"===16 b?b:a.1H.1e=1J C(a)},h.1e.2I="1P",h.1e.3n=7(a){T b=a.18,c;b&&"1e"2b b&&(c=a.18.1e,16 c!=="1l"&&(a.18.1e={1h:c}),/1t|3p/i.1A(16 c.1h)||(c.1h=d),16 c.Y!=="2G"&&2v c.Y,16 c.14!=="2G"&&2v c.14,16 c.1f!=="2G"&&c.1f!==d&&2v c.1f,16 c.11!=="2G"&&2v c.11)},a.1r(d,g.3o,{18:{1e:{1h:d,3E:e,Y:6,14:6,1f:d,11:0}}}),h.4f=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.14;3c(i>0&&j>0&&e>0&&f>0){i=1d.3H(i/2),j=1d.3H(j/2),c.x==="R"?e=i:c.x==="1n"?e=a.Y-i:e+=1d.3H(i/2),c.y==="9"?f=j:c.y==="1o"?f=a.14-j:f+=1d.3H(j/2),d=b.1b;3c(d--){X(b.1b<2)38;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1n"&&g<=e||c.x==="1k"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1o"&&h<=f||c.y==="1k"&&(ha.14-f))&&b.6Z(d,1)}}S{R:b[0][0],9:b[0][1]}}b.24||(b=a(b));T d=b.19("47").2s(),e=b.19("7c").2O(","),f=[],g=a(\'2W[7m="#\'+b.7s("5k").19("4c")+\'"]\'),h=g.11(),i={Y:0,14:0,11:{9:3A,1n:0,1o:0,R:3A}},j=0,k=0;h.R+=1d.3K((g.3J()-g.Y())/2),h.9+=1d.3K((g.3j()-g.14())/2);X(d==="5B"){j=e.1b;3c(j--)k=[1z(e[--j],10),1z(e[j+1],10)],k[0]>i.11.1n&&(i.11.1n=k[0]),k[0]i.11.1o&&(i.11.1o=k[1]),k[1]