diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index f3243b2c..03b62ae3 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: Mon Jan 24 13:13:33 2011 +0000 +* Date: Mon Jan 24 14:02:30 2011 +0000 */ /* Fluid class for determining actual width in IE */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 7c8a5519..7346cf94 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: Mon Jan 24 13:13:33 2011 +0000 +* Date: Mon Jan 24 14:02:30 2011 +0000 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -2414,19 +2414,20 @@ $.fn.qtip.plugins.svg = function(svg, corner) // Return if no method is found if(!root.createSVGPoint) { return result; } - // Create our point variables + // Create our point var point = root.createSVGPoint(); - tPoint = point.matrixTransform(mtx); // Adjust top and left point.x = box.x; point.y = box.y; + tPoint = point.matrixTransform(mtx); result.offset.left = tPoint.x; result.offset.top = tPoint.y; // Adjust width and height point.x += box.width; point.y += box.height; + tPoint = point.matrixTransform(mtx); result.width = tPoint.x - result.offset.left; result.height = tPoint.y - result.offset.top; } diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 3b62462b..87a4d5eb 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,74 +9,74 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Mon Jan 24 13:13:33 2011 +0000 +* Date: Mon Jan 24 14:02:30 2011 +0000 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ /*global window: false, jQuery: false */ -(function(b,M,T){function $(){var d=M.console;return d&&(d.error||d.log||b.noop).apply(d,arguments)}function W(d){var a;if(!d||"object"!==typeof d)return m;if("object"!==typeof d.metadata)d.metadata={type:d.metadata};if("content"in d){if("object"!==typeof d.content||d.content.jquery)d.content={text:d.content};a=d.content.text||m;if(!b.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))d.content.text=m;if("title"in d.content){if("object"!==typeof d.content.title)d.content.title= -{text:d.content.title};a=d.content.title.text||m;if(!b.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))d.content.title.text=m}}if("position"in d)if("object"!==typeof d.position)d.position={my:d.position,at:d.position};if("show"in d)if("object"!==typeof d.show)d.show=d.show.jquery?{target:d.show}:{event:d.show};if("hide"in d)if("object"!==typeof d.hide)d.hide=d.hide.jquery?{target:d.hide}:{event:d.hide};if("style"in d)if("object"!==typeof d.style)d.style={classes:d.style}; -b.each(b.fn.qtip.plugins,function(){this.sanitize&&this.sanitize(d)});return d}function aa(d,a,l,h){function r(e){var f,j=e.split("."),p=a[j[0]];for(e=1;e",{"class":"ui-state-default "+(a.style.widget?"":N+"-icon"),title:"Close tooltip","aria-label":"Close tooltip"}).prepend(b("",{"class":"ui-icon ui-icon-close",html:"×"}));e.button.appendTo(e.titlebar).attr("role","button").hover(function(j){b(this).toggleClass("ui-state-hover",j.type==="mouseenter")}).click(function(j){g.hasClass(S)||c.hide(j); -return m}).bind("mousedown keydown mouseup keyup mouseout",function(j){b(this).toggleClass("ui-state-active ui-state-focus",j.type.substr(-4)==="down")});c.redraw()}function y(){var e=c.elements,f=C+"-title";e.titlebar&&q();e.titlebar=b("
",{"class":N+"-titlebar "+(a.style.widget?"ui-widget-header":"")}).append(e.title=b("
",{id:f,"class":N+"-title","aria-atomic":w})).insertBefore(e.content);if(a.content.title.button)A();else c.rendered===w&&c.redraw()}function z(e){var f=c.elements.title; -if(!c.rendered||!e)return m;if(b.isFunction(e))e=e.call(d,c)||"";e.jquery&&e.length>0?f.empty().append(e.css({display:"block"})):f.html(e);c.redraw();c.rendered===w&&c.reposition(c.cache.event)}function O(e){var f=c.elements.content;if(!c.rendered||!e)return m;if(b.isFunction(e))e=e.call(d,c)||"";e.jquery&&e.length>0?f.empty().append(e.css({display:"block"})):f.html(e);g.queue("fx",function(j){function p(u){s=s.not(u);if(s.length===0){c.redraw();c.rendered===w&&c.reposition(c.cache.event);j()}}var s= -f.find("img:not([height]):not([width])");s.each(function(u,E){var K=["abort","error","load","unload",""].join(".qtip-image ");b(this).bind(K,function(){clearTimeout(c.timers.img[u]);p(this)});(function B(){if(E.height)return p(E);c.timers.img[u]=setTimeout(B,20)})();return w});s.length===0&&p(s)});return c}function k(e,f,j,p){function s(t){if(g.hasClass(S))return m;G.show.trigger("qtip-"+l+"-inactive");clearTimeout(c.timers.show);clearTimeout(c.timers.hide);var H=function(){c.show(t)};if(a.show.delay> -0)c.timers.show=setTimeout(H,a.show.delay);else H()}function u(t){if(g.hasClass(S))return m;var H=b(t.relatedTarget||t.target),J=H.closest(X)[0]===g[0];H=H[0]===G.show[0];clearTimeout(c.timers.show);clearTimeout(c.timers.hide);if(D.target==="mouse"&&J||a.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(J||H)){t.stopPropagation();t.preventDefault();return m}g.stop(1,1);if(a.hide.delay>0)c.timers.hide=setTimeout(function(){c.hide(t)},a.hide.delay);else c.hide(t)}function E(t){if(g.hasClass(S))return m; -clearTimeout(c.timers.inactive);c.timers.inactive=setTimeout(function(){c.hide(t)},a.hide.inactive)}function K(t){if(!c.cache.processing){c.cache.processing=1;n()&&c.reposition(t);c.cache.processing=0}}var B=".qtip-"+l,D=a.position,G={show:a.show.target,hide:a.hide.target,container:D.container[0]===v?document:D.container},Q={show:String(a.show.event).split(" "),hide:String(a.hide.event).split(" ")},R=b(document),I=b.browser.msie&&parseInt(b.browser.version,10)===6;if(j){if(a.hide.fixed){G.hide=G.hide.add(g); -g.bind("mouseover"+B,function(){g.hasClass(S)||clearTimeout(c.timers.hide)})}g.bind("mouseenter"+B+" mouseleave"+B,function(t){c[t.type==="mouseenter"?"focus":"blur"](t)})}if(f){if("number"===typeof a.hide.inactive){G.show.bind("qtip-"+l+"-inactive",E);b.each(b.fn.qtip.inactiveEvents,function(t,H){G.hide.add(c.elements.tooltip).bind(H+B+"-inactive",E)})}b.each(Q.hide,function(t,H){var J=b.inArray(H,Q.show),L=b(G.hide);if(J>-1&&L.add(G.show).length===L.length||H==="unfocus"){G.show.bind(H+B,function(P){n()? -u(P):s(P)});delete Q.show[J]}else G.hide.bind(H+B,u)})}e&&b.each(Q.show,function(t,H){G.show.bind(H+B,s)});if(p){if(D.adjust.resize||D.viewport)b(b.event.special.resize?D.viewport:M).bind("resize"+B,K);if(D.viewport||I&&g.css("position")==="fixed")b(D.viewport).bind("scroll"+B,K);/unfocus/i.test(a.hide.event)&&R.bind("mousedown"+B,function(t){var H=b(t.target);H.parents(X).length===0&&H.add(d).length>1&&n()&&!g.hasClass(S)&&c.hide(t)});D.target==="mouse"&&R.bind("mousemove"+B,function(t){if(D.adjust.mouse&& -!g.hasClass(S)&&n())c.reposition(t||b.fn.qtip.mouse)})}}function o(e,f,j,p){p=parseInt(p,10)!==0;var s=".qtip-"+l;f={show:e?a.show.target:F,hide:f?a.hide.target:F,tooltip:j?c.elements.tooltip:F,content:j?c.elements.content:F,container:p?a.position.container[0]===v?document:a.position.container:F,window:p?M:F};if(c.rendered)b([]).pushStack(b.grep([f.show,f.hide,f.tooltip,f.container,f.content,f.window],function(){return this!==null})).unbind(s);else e&&f.show.unbind(s+"-create")}var c=this,v=document.body, -C=N+"-"+l,g;c.id=l;c.rendered=m;c.elements={target:d};c.timers={img:[]};c.options=a;c.plugins={};c.cache={event:{},target:F,disabled:m,lastFocus:v,attr:h};b.extend(c,{render:function(e){if(c.rendered)return m;var f=c.elements,j=a.content.text,p=a.content.title.text,s=b.Event("tooltiprender");b.attr(d[0],"aria-describedby",C);g=f.tooltip=b("
").attr({id:C,"class":N+" qtip ui-helper-reset "+a.style.classes,role:"alert","aria-live":"polite","aria-atomic":m,"aria-describedby":C+"-content","aria-hidden":w}).toggleClass(S, -c.cache.disabled).data("qtip",c).appendTo(a.position.container).append(f.content=b("
",{"class":N+"-content",id:C+"-content","aria-atomic":w}));c.rendered=w;if(p){y();z(p)}O(j);x();b.each(b.fn.qtip.plugins,function(){this.initialize==="render"&&this(c)});k(1,1,1,1);b.each(a.events,function(u,E){if(E)g.bind(u==="toggle"?"tooltipshow tooltiphide":"tooltip"+u,E)});g.css("visibility","hidden").queue("fx",function(u){s.originalEvent=c.cache.event;g.trigger(s,[c]);if(a.show.ready||e)c.show(c.cache.event); -u()});return c},get:function(e){switch(e.toLowerCase()){case "dimensions":e={height:g.outerHeight(),width:g.outerWidth()};break;case "offset":e=i(g[0],a.position.container[0]);break;default:e=r(e.toLowerCase());e=e[0].precedance?e[0].string():e[0].jquery?e[0]:e[0][e[1]];break}return e},set:function(e,f){e=e.toLowerCase();var j=r(e),p=c.elements,s,u,E,K={builtin:{"^id$":function(){var B=f===w?b.fn.qtip.nextid:f,D=N+"-"+B;if(B!==m&&B.length>0&&!b("#"+D).length){g[0].id=D;p.content[0].id=D+"-content"; -p.title[0].id=D+"-title"}},"^content.text$":function(){O(f)},"^content.title.text$":function(){if(!f)return q();!c.elements.title&&f&&y();z(f)},"^content.title.button$":function(){var B=c.elements.button,D=c.elements.title;if(c.rendered)if(f){D||y();A()}else B.remove()},"^position.(my|at)$":function(){var B=/my$/i.test(e)?"my":"at";if("string"===typeof f)a.position[B]=new b.fn.qtip.plugins.Corner(f)},"^position.container$":function(){c.rendered===w&&g.appendTo(f)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(B, -D,G,Q){var R=e.search(/fixed/i)>-1?[0,[0,1,1,1]]:[e.substr(0,3),e.charAt(0)==="s"?[1,0,0,0]:[0,1,0,0]];if(R[0])B[D]=Q;o.apply(c,R[1]);if(R[0])B[D]=G;k.apply(c,R[1])},"^show.ready$":function(){c.rendered===m&&c.show()},"^style.classes$":function(){b.attr(g[0],"class",N+" qtip ui-helper-reset "+f)},"^style.widget|content.title":x,"^events.(render|show|move|hide|focus|blur)$":function(B,D,G){p.tooltip[(b.isFunction(f)?"":"un")+"bind"]("tooltip"+D,G)},"^position.(my|at|adjust|target|container)|style|content":function(){c.reposition()}}}; -b.each(c.plugins,function(B){if("object"===typeof this.checks)K[B]=this.checks});s=j[0][j[1]];j[0][j[1]]=f.nodeType?b(f):f;W(a);for(u in K)for(E in K[u])RegExp(E,"i").test(e)&&K[u][E].call(c,j[0],j[1],f,s);return c},toggle:function(e,f){function j(){if(e)b.browser.msie&&g[0].style.removeAttribute("filter");else g.css({display:"",visibility:"hidden",width:"",opacity:"",left:"",top:""})}if(c.rendered===m)return m;var p=e?"show":"hide",s=a[p],u=n();if((typeof e).search("boolean|number"))e=!u;if(u=== -e)return c;if(f){if(/over|enter/.test(f.type)&&/out|leave/.test(c.cache.event.type)&&f.target===a.show.target[0]&&g.has(f.relatedTarget).length)return c;c.cache.event=b.extend({},f)}u=b.Event("tooltip"+p);u.originalEvent=f?c.cache.event:F;g.trigger(u,[c,90]);if(u.isDefaultPrevented())return c;b.attr(g[0],"aria-hidden",!!!e);if(e){g.hide().css({visibility:""});c.focus(f);c.reposition(f,0);s.solo&&b(X).not(g).qtip("hide")}else{clearTimeout(c.timers.show);c.blur(f)}g.stop(1,1);if(b.isFunction(s.effect)){s.effect.call(g, -c);g.queue("fx",function(E){j.call(this,E);E()})}else if(s.effect===m){g[p]();j.call(g)}else g.fadeTo(90,e?1:0,j);e&&s.target.trigger("qtip-"+l+"-inactive");return b.fn.qtip.lastShown=c},show:function(e){c.toggle(w,e)},hide:function(e){c.toggle(m,e)},focus:function(e){if(c.rendered===m)return m;var f=b(X),j=parseInt(g[0].style.zIndex,10),p=b.fn.qtip.zindex+f.length;e=b.extend({},e);if(!g.hasClass(Y)){if(j!==p){f.each(function(){if(this.style.zIndex>j)this.style.zIndex-=1});f.filter("."+Y).qtip("blur", -e)}c.cache.lastFocus=document.activeElement;f=b.Event("tooltipfocus");f.originalEvent=e;g.trigger(f,[c,p]);if(!f.isDefaultPrevented())g.addClass(Y)[0].style.zIndex=p}return c},blur:function(e){e=b.extend({},e);var f;g.removeClass(Y);f=b.Event("tooltipblur");f.originalEvent=e;g.trigger(f,[c])},reposition:function(e,f){if(c.rendered===m)return m;var j=a.position.target,p=a.position,s=p.my,u=p.at,E=p.adjust,K=g.outerWidth(),B=g.outerHeight(),D=0,G=0,Q=b.Event("tooltipmove"),R=g.css("position")==="fixed", -I=p.viewport.jquery?p.viewport:b(M),t={left:0,top:0},H={left:function(J){var L=I.scrollLeft,P=u.x==="left"?D:u.x==="right"?-D:-D/2,U=L-J;L=J+K-I.width-L;P=(s.x==="left"?K:s.x==="right"?-K:-K/2)-(s.precedance==="x"||s.x===s.y?P:0);if(U>0&&(s.x!=="left"||L>0))t.left-=P;else if(L>0&&(s.x!=="right"||U>0))t.left-=(s.x==="center"?-1:1)*P+2*E.x;if(t.left<0&&-t.left>L)t.left=J;return t.left-J},top:function(J){var L=I.scrollTop,P=u.y==="top"?G:u.y==="bottom"?-G:-G/2,U=L-J;L=J+B-I.height-L;P=(s.y==="top"?B: -s.y==="bottom"?-B:-B/2)-(s.precedance==="y"||s.x===s.y?P:0);if(U>0&&(s.y!=="top"||L>0))t.top-=P;else if(L>0&&(s.y!=="bottom"||U>0))t.top-=(s.y==="center"?-1:1)*P+2*E.y;if(t.top<0&&-t.top>L)t.top=J;return t.top-J}};f=f===T||!!f||m;I=!I?m:{elem:I,height:I[(I[0]===M?"h":"outerH")+"eight"](),width:I[(I[0]===M?"w":"outerW")+"idth"](),scrollLeft:I.scrollLeft(),scrollTop:I.scrollTop()};if(j==="mouse"){u={x:"left",y:"top"};e=e&&(e.type==="resize"||e.type==="scroll")?c.cache.event:E.mouse||!e||!e.pageX?b.extend({}, -b.fn.qtip.mouse):e;t={top:e.pageY,left:e.pageX}}else{if(j==="event")j=e&&e.target&&e.type!=="scroll"&&e.type!=="resize"?c.cache.target=b(e.target):c.cache.target;j=b(j).eq(0);if(j.length===0)return c;else if(j[0]===document||j[0]===M){D=j.width();G=j.height();if(j[0]===M)t={top:R?0:I.scrollTop,left:R?0:I.scrollLeft}}else if(j.is("area")&&b.fn.qtip.plugins.imagemap){t=b.fn.qtip.plugins.imagemap(j,u);D=t.width;G=t.height;t=t.offset}else if(j[0].namespaceURI=="http://www.w3.org/2000/svg"&&b.fn.qtip.plugins.svg){t= -b.fn.qtip.plugins.svg(j,u);D=t.width;G=t.height;t=t.offset}else{D=j.outerWidth();G=j.outerHeight();t=i(j[0],p.container[0])}t.left+=u.x==="right"?D:u.x==="center"?D/2:0;t.top+=u.y==="bottom"?G:u.y==="center"?G/2:0}t.left+=E.x+(s.x==="right"?-K:s.x==="center"?-K/2:0);t.top+=E.y+(s.y==="bottom"?-B:s.y==="center"?-B/2:0);t.adjusted=p.viewport.jquery&&j[0]!==M&&j[0]!==v?{left:H.left(t.left),top:H.top(t.top)}:{left:0,top:0};g.attr("class",function(){return b.attr(this,"class").replace(/ui-tooltip-pos-\w+/i, -"")}).addClass(N+"-pos-"+s.abbreviation());Q.originalEvent=b.extend({},e);g.trigger(Q,[c,t,I.elem]);if(Q.isDefaultPrevented())return c;delete t.adjusted;if(!f||!isNaN(t.left,t.top))g.css(t);else if(n()&&b.isFunction(p.effect)){p.effect.call(g,c,t);g.queue(function(J){b(this).css({opacity:"",height:""});b.browser.msie&&this.style&&this.style.removeAttribute("filter");J()})}return c},redraw:function(){if(!c.rendered||!(b.browser.msie&&b.browser.version<8))return m;var e=N+"-fluid",f;g.css({width:"auto", -height:"auto"}).addClass(e);f={height:g.outerHeight(),width:g.outerWidth()};b.each(["width","height"],function(j,p){var s=parseInt(g.css("max-"+p),10)||0,u=parseInt(g.css("min-"+p),10)||0;f[p]=s+u?Math.min(Math.max(f[p],u),s):f[p]});g.css(f).removeClass(e)},disable:function(e){var f=S;if("boolean"!==typeof e)e=!(g.hasClass(f)||c.cache.disabled);if(c.rendered){g.toggleClass(f,e);b.attr(g[0],"aria-disabled",e)}else c.cache.disabled=!!e;return c},destroy:function(){var e=d[0],f=b.data(e,V);if(c.rendered){g.remove(); -b.each(c.plugins,function(){this.initialize==="render"&&this.destroy()})}clearTimeout(c.timers.show);clearTimeout(c.timers.hide);o(1,1,1,1);b.removeData(e,"qtip");f&&b.attr(e,"title",f);d.removeAttr("aria-describedby");return d}})}function ca(d,a){var l,h,r,i,n=b(this),x=b(document.body),q=this===document?x:n;h=n.metadata?n.metadata(a.metadata):F;i=a.metadata.type==="html5"&&h?h[a.metadata.name]:F;var A=n.data(a.metadata.name||"qtipopts");try{A=typeof A==="string"?(new Function("return "+A))():A}catch(y){$("Unable to parse HTML5 attribute data: "+ -A)}i=b.extend(w,{},b.fn.qtip.defaults,a,typeof A==="object"?W(A):F,W(i||h));h&&b.removeData(this,"metadata");h=i.position;if("boolean"===typeof i.content.text){r=n.attr(i.content.attr);if(i.content.attr!==m&&r)i.content.text=r;else return m}if(h.container===m)h.container=x;if(h.target===m)h.target=q;if(i.show.target===m)i.show.target=q;if(i.hide.target===m)i.hide.target=q;if(i.position.viewport===w)i.position.viewport=h.container;h.at=new b.fn.qtip.plugins.Corner(h.at);h.my=new b.fn.qtip.plugins.Corner(h.my); -if(b.data(this,"qtip"))if(i.overwrite)n.qtip("destroy");else if(i.overwrite===m)return m;if(b.attr(this,"title")){b.data(this,V,b.attr(this,"title"));n.removeAttr("title")}l=new aa(n,i,d,!!r);b.data(this,"qtip",l);n.bind("remove.qtip",function(){l.destroy()});return l}function da(d){var a=this,l=d.elements.tooltip,h=d.options.content.ajax;a.checks={"^content.ajax":function(r,i){if(i==="once")a.once();else h&&h.url&&a.load()}};b.extend(a,{init:function(){if(h&&h.url){a.load();l.one("tooltipshow",a.once)}}, -once:function(){h.once?a.destroy():l.bind("tooltipshow.qtip-ajax",a.load)},load:function(){b.ajax(b.extend({success:function(r){d.set("content.text",r)},error:function(r,i,n){d.set("content.text",i+": "+n)},context:d},h));return a},destroy:function(){l.unbind(".qtip-ajax")}});a.init()}function ea(d,a,l){var h=Math.ceil(a/2),r=Math.ceil(l/2);a={bottomright:[[0,0],[a,l],[a,0]],bottomleft:[[0,0],[a,0],[0,l]],topright:[[0,l],[a,0],[a,l]],topleft:[[0,0],[0,l],[a,l]],topcenter:[[0,l],[h,0],[a,l]],bottomcenter:[[0, -0],[a,0],[h,l]],rightcenter:[[0,0],[a,r],[0,l]],leftcenter:[[a,0],[a,l],[0,r]]};a.lefttop=a.bottomright;a.righttop=a.bottomleft;a.leftbottom=a.topright;a.rightbottom=a.topleft;return a[d.string()]}function fa(d){function a(k,o,c){if(n.tip){k=b.extend({},r.corner);o=c.adjusted;var v;if(r.corner.fixed!==w){if(o.left)k.x=k.x==="center"?o.left>0?"left":"right":k.x==="left"?"right":"left";if(o.top)k.y=k.y==="center"?o.top>0?"top":"bottom":k.y==="top"?"bottom":"top";if(k.string()!==q.corner&&(q.top!==o.top|| -q.left!==o.left))v=r.update(k)}v||(v=r.position(k,0));if(v.right!==T)v.left=v.right;if(v.bottom!==T)v.top=v.bottom;v.option=Math.max(0,i.offset);c.left-=v.left.charAt?v.option:(v.right?-1:1)*v.left;c.top-=v.top.charAt?v.option:(v.bottom?-1:1)*v.top;q.left=o.left;q.top=o.top;q.corner=k.string()}}function l(k,o,c){o=!o?k[k.precedance]:o;o="border-"+o+"-width";k=parseInt((n.titlebar&&k.y==="top"?n.titlebar:n.content).css(o),10);return(c?k||parseInt(x.css(o),10):k)||0}function h(k){var o=k.precedance=== -"y",c=A[o?"width":"height"],v=A[o?"height":"width"],C=k.string().indexOf("center")>-1,g=c*(C?0.5:1),e=Math.pow;k=Math.round;var f=Math.sqrt(e(g,2)+e(v,2));g=[z/g*f,z/v*f];g[2]=Math.sqrt(e(g[0],2)-e(z,2));g[3]=Math.sqrt(e(g[1],2)-e(z,2));C=(f+g[2]+g[3]+(C?0:g[0]))/f;c=[k(C*v),k(C*c)];return{height:c[o?0:1],width:c[o?1:0]}}var r=this,i=d.options.style.tip,n=d.elements,x=n.tooltip,q={top:0,left:0,corner:""},A={width:i.width,height:i.height},y={},z=i.border||0,O=b("")[0].getContext;r.corner= -F;r.mimic=F;r.checks={"^position.my|style.tip.(corner|mimic|border)$":function(){r.init()||r.destroy();d.reposition()},"^style.tip.(height|width)$":function(){A={width:i.width,height:i.height};r.create();r.update();d.reposition()},"^content.title.text|style.(classes|widget)$":function(){n.tip&&r.update()}};b.extend(r,{init:function(){var k=r.detectCorner()&&(O||b.browser.msie);if(k){r.create();r.update();x.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",a)}return k},detectCorner:function(){var k= -i.corner,o=d.options.position,c=o.at;o=o.my.string?o.my.string():o.my;if(k===m||o===m&&c===m)return m;else if(k===w)r.corner=new b.fn.qtip.plugins.Corner(o);else if(!k.string){r.corner=new b.fn.qtip.plugins.Corner(k);r.corner.fixed=w}return r.corner.string()!=="centercenter"},detectColours:function(){var k=n.tip.css({backgroundColor:"",border:""}),o=r.corner,c=o[o.precedance],v="border-"+c+"-color";c="border"+c.charAt(0)+c.substr(1)+"Color";var C=/rgba?\(0, 0, 0(, 0)?\)|transparent/i;o=n.titlebar&& -(o.y==="top"||o.y==="center"&&k.position().top+A.height/2+i.offset",{"class":"ui-tooltip-tip"}).css({width:k,height:o}).prependTo(x);if(O)b("").appendTo(n.tip)[0].getContext("2d").save();else{k='';n.tip.html(z?k+=k:k)}},update:function(k){var o=n.tip,c=o.children(),v=A.width,C=A.height,g=i.mimic,e=Math.round, -f,j,p;if(!k)k=r.corner;if(g===m)g=k;else{g=new b.fn.qtip.plugins.Corner(g);g.precedance=k.precedance;if(g.x==="inherit")g.x=k.x;else if(g.y==="inherit")g.y=k.y;else if(g.x===g.y)g[k.precedance]=k[k.precedance]}f=g.precedance;r.detectColours();z=y.border==="transparent"||y.border==="#123456"?0:i.border===w?l(k,F,w):i.border;j=ea(g,v,C);p=h(k);o.css(p);o=k.precedance==="y"?[e(g.x==="left"?z:g.x==="right"?p.width-v-z:(p.width-v)/2),e(g.y==="top"?p.height-C:0)]:[e(g.x==="left"?p.width-v:0),e(g.y==="top"? -z:g.y==="bottom"?p.height-C-z:(p.height-C)/2)];if(O){c.attr(p);c=c[0].getContext("2d");c.restore();c.save();c.clearRect(0,0,3E3,3E3);c.translate(o[0],o[1]);c.beginPath();c.moveTo(j[0][0],j[0][1]);c.lineTo(j[1][0],j[1][1]);c.lineTo(j[2][0],j[2][1]);c.closePath();c.fillStyle=y.fill;c.strokeStyle=y.border;c.lineWidth=z*2;c.lineJoin="miter";c.miterLimit=100;c.stroke();c.fill()}else{j="m"+j[0][0]+","+j[0][1]+" l"+j[1][0]+","+j[1][1]+" "+j[2][0]+","+j[2][1]+" xe";o[2]=z&&/^(r|b)/i.test(k.string())?1:0; -c.css({antialias:""+(g.string().indexOf("center")>-1),left:o[0]-o[2]*Number(f==="x"),top:o[1]-o[2]*Number(f==="y"),width:v+z,height:C+z}).each(function(s){var u=b(this);u.attr({coordsize:v+z+" "+(C+z),path:j,fillcolor:y.fill,filled:!!s,stroked:!!!s}).css({display:z||s?"block":"none"});!s&&z>0&&u.html()===""&&u.html('')})}return r.position(k,1)},position:function(k, -o){var c=n.tip,v={},C=Math.max(0,i.offset),g,e,f;if(i.corner===m||!c)return m;k=k||r.corner;g=k.precedance;e=h(k);f=b.browser.msie&&z&&/^(b|r)/i.test(k.string())?1:0;b.each(g==="y"?[k.x,k.y]:[k.y,k.x],function(j,p){var s,u;if(p==="center"){s=g==="y"?"left":"top";v[s]="50%";v["margin-"+s]=-Math.round(e[g==="y"?"width":"height"]/2)+C}else{s=l(k,p,w);u=b.browser.mozilla;var E=k.y+(u?"":"-")+k.x;u=(u?"-moz-":b.browser.webkit?"-webkit-":"")+(u?"border-radius-"+E:"border-"+E+"-radius");u=parseInt((n.titlebar&& -k.y==="top"?n.titlebar:n.content).css(u),10)||parseInt(x.css(u),10)||0;v[p]=j||!z?l(k,p):C+(u>s?u:0)}});v[k[g]]-=e[g==="x"?"width":"height"]+f;o&&c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(v);return v},destroy:function(){n.tip&&n.tip.remove();x.unbind(".qtip-tip")}});r.init()}function ga(d){var a=this,l=d.options.show.modal,h=d.elements,r=h.tooltip;a.checks={"^show.modal.(on|blur)$":function(){a.init();h.overlay.toggle(r.is(":visible"))}};b.extend(a,{init:function(){if(l.on){r.unbind(".qtipmodal").bind("tooltipshow.qtipmodal tooltiphide.qtipmodal", -function(i,n,x){i=i.type.replace("tooltip","");b.isFunction(l[i])?l[i].call(h.overlay,x,n):a[i](x)});a.create();l.blur===w&&h.overlay.unbind(".qtipmodal"+d.id).bind("click.qtipmodal"+d.id,function(){d.hide.call(d)})}},create:function(){var i=b("#qtip-overlay");if(i.length)h.overlay=i;else{h.overlay=b("
",{id:"#qtip-overlay".substr(1),css:{position:"absolute",top:0,left:0,display:"none",zIndex:parseInt(r.css("z-index"),10)-1}}).appendTo(document.body);b(M).bind("resize.qtipmodal",function(){h.overlay.css({height:Math.max(b(M).height(), -b(document).height()),width:Math.max(b(M).width(),b(document).width())})}).trigger("resize")}},toggle:function(i){var n=h.overlay,x=d.options.show.modal.effect,q=i?"show":"hide";n.stop(w,m);if(b.isFunction(x))x.call(n,i);else x===m?n[q]():n.fadeTo(90,i?0.7:0,function(){i||b(this).hide()})},show:function(){a.toggle(w)},hide:function(){a.toggle(m)},destroy:function(){var i=w;b("*").each(function(){var n=b(this).data("qtip");if(n&&n.id!==d.id&&n.options.show.modal)return i=m});if(i){h.overlay.remove(); -b(M).unbind(".qtipmodal")}else h.overlay.unbind(".qtipmodal"+d.id);r.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});a.init()}function ha(d){var a=this,l=d.elements,h=l.tooltip,r=".bgiframe-"+d.id,i="tooltipmove"+r+" tooltipshow"+r;b.extend(a,{init:function(){l.bgiframe=b('');l.bgiframe.appendTo(h);h.bind(i,a.adjust)}, -adjust:function(){var n=d.get("dimensions"),x=d.plugins.tip,q=d.elements.tip,A;A=parseInt(h.css("border-left-width"),10)||0;A={left:-A,top:-A};if(x&&q){x=x.corner.precedance==="x"?["width","left"]:["height","top"];A[x[1]]-=q[x[0]]()}l.bgiframe.css(A).css(n)},destroy:function(){a.iframe.remove();h.unbind(i)}});a.init()}var w=true,m=false,F=null,N="ui-tooltip",Z="ui-widget",S="ui-state-disabled",X="div.qtip."+N,Y=N+"-focus",ba="-31000px",V="oldtitle";b.fn.qtip=function(d,a,l){var h=String(d).toLowerCase(), -r=F,i=h==="disable"?[w]:b.makeArray(arguments).slice(1,10),n=i[i.length-1],x=this[0]?b.data(this[0],"qtip"):F;if(!arguments.length&&x||h==="api")return x;else if("string"===typeof d){this.each(function(){var q=b.data(this,"qtip");if(!q)return w;if(/option|set/.test(h)&&a)if(l!==T)q.set(a,l);else r=q.get(a);else{if(!q.rendered&&(h==="show"||h==="toggle")){if(n&&n.timeStamp)q.cache.event=n;q.render(1)}else if(h==="enable"){h="disable";i=[m]}q[h]&&q[h].apply(q[h],i)}});return r!==F?r:this}else if("object"=== -typeof d||!arguments.length){x=W(b.extend(w,{},d));return b.fn.qtip.bind.call(this,x,n)}};b.fn.qtip.bind=function(d,a){return this.each(function(){function l(A){function y(){q.render(typeof A==="object"||h.show.ready);r.show.unbind(i.show);r.hide.unbind(i.hide)}if(q.cache.disabled)return m;q.cache.event=b.extend({},A);if(h.show.delay>0){clearTimeout(q.timers.show);q.timers.show=setTimeout(y,h.show.delay);i.show!==i.hide&&r.hide.bind(i.hide,function(){clearTimeout(q.timers.show)})}else y()}var h,r, -i,n=d.id=!d.id||d.id===m||d.id.length<1||b("#"+N+"-"+d.id).length?b.fn.qtip.nextid++:d.id,x=".qtip-"+n+"-create",q=ca.call(this,n,d);if(q===m)return w;h=q.options;b.each(b.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(q)});r={show:h.show.target,hide:h.hide.target};i={show:String(h.show.event).replace(" ",x+" ")+x,hide:String(h.hide.event).replace(" ",x+" ")+x};r.show.bind(i.show,l);if(h.show.ready||h.prerender)l(a)})};b.each({attr:function(d,a){if(this.length){var l=this[0],h=b.data(l, -"qtip");if(d==="title")if(arguments.length<2)return b.data(l,V);else if(typeof h==="object"){h&&h.rendered&&h.options.content.attr==="title"&&h.cache.attr&&h.set("content.text",a);b.fn.attr_replacedByqTip.apply(this,arguments);b.data(l,V,b.attr(l,"title"));return this.removeAttr("title")}}},clone:function(){var d=b([]),a;b("*",this).add(this).each(function(){var l=b.data(this,V);if(l){b.attr(this,"title",l);d=d.add(this)}});a=b.fn.clone_replacedByqTip.apply(this,arguments);d.removeAttr("title");return a}, +(function(b,M,T){function $(){var d=M.console;return d&&(d.error||d.log||b.noop).apply(d,arguments)}function W(d){var a;if(!d||"object"!==typeof d)return n;if("object"!==typeof d.metadata)d.metadata={type:d.metadata};if("content"in d){if("object"!==typeof d.content||d.content.jquery)d.content={text:d.content};a=d.content.text||n;if(!b.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))d.content.text=n;if("title"in d.content){if("object"!==typeof d.content.title)d.content.title= +{text:d.content.title};a=d.content.title.text||n;if(!b.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))d.content.title.text=n}}if("position"in d)if("object"!==typeof d.position)d.position={my:d.position,at:d.position};if("show"in d)if("object"!==typeof d.show)d.show=d.show.jquery?{target:d.show}:{event:d.show};if("hide"in d)if("object"!==typeof d.hide)d.hide=d.hide.jquery?{target:d.hide}:{event:d.hide};if("style"in d)if("object"!==typeof d.style)d.style={classes:d.style}; +b.each(b.fn.qtip.plugins,function(){this.sanitize&&this.sanitize(d)});return d}function aa(d,a,l,k){function m(e){var f,i=e.split("."),q=a[i[0]];for(e=1;e",{"class":"ui-state-default "+(a.style.widget?"":N+"-icon"),title:"Close tooltip","aria-label":"Close tooltip"}).prepend(b("",{"class":"ui-icon ui-icon-close",html:"×"}));e.button.appendTo(e.titlebar).attr("role","button").hover(function(i){b(this).toggleClass("ui-state-hover",i.type==="mouseenter")}).click(function(i){g.hasClass(S)||c.hide(i); +return n}).bind("mousedown keydown mouseup keyup mouseout",function(i){b(this).toggleClass("ui-state-active ui-state-focus",i.type.substr(-4)==="down")});c.redraw()}function y(){var e=c.elements,f=C+"-title";e.titlebar&&r();e.titlebar=b("
",{"class":N+"-titlebar "+(a.style.widget?"ui-widget-header":"")}).append(e.title=b("
",{id:f,"class":N+"-title","aria-atomic":w})).insertBefore(e.content);if(a.content.title.button)A();else c.rendered===w&&c.redraw()}function z(e){var f=c.elements.title; +if(!c.rendered||!e)return n;if(b.isFunction(e))e=e.call(d,c)||"";e.jquery&&e.length>0?f.empty().append(e.css({display:"block"})):f.html(e);c.redraw();c.rendered===w&&c.reposition(c.cache.event)}function O(e){var f=c.elements.content;if(!c.rendered||!e)return n;if(b.isFunction(e))e=e.call(d,c)||"";e.jquery&&e.length>0?f.empty().append(e.css({display:"block"})):f.html(e);g.queue("fx",function(i){function q(u){s=s.not(u);if(s.length===0){c.redraw();c.rendered===w&&c.reposition(c.cache.event);i()}}var s= +f.find("img:not([height]):not([width])");s.each(function(u,E){var K=["abort","error","load","unload",""].join(".qtip-image ");b(this).bind(K,function(){clearTimeout(c.timers.img[u]);q(this)});(function B(){if(E.height)return q(E);c.timers.img[u]=setTimeout(B,20)})();return w});s.length===0&&q(s)});return c}function j(e,f,i,q){function s(t){if(g.hasClass(S))return n;G.show.trigger("qtip-"+l+"-inactive");clearTimeout(c.timers.show);clearTimeout(c.timers.hide);var H=function(){c.show(t)};if(a.show.delay> +0)c.timers.show=setTimeout(H,a.show.delay);else H()}function u(t){if(g.hasClass(S))return n;var H=b(t.relatedTarget||t.target),J=H.closest(X)[0]===g[0];H=H[0]===G.show[0];clearTimeout(c.timers.show);clearTimeout(c.timers.hide);if(D.target==="mouse"&&J||a.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(J||H)){t.stopPropagation();t.preventDefault();return n}g.stop(1,1);if(a.hide.delay>0)c.timers.hide=setTimeout(function(){c.hide(t)},a.hide.delay);else c.hide(t)}function E(t){if(g.hasClass(S))return n; +clearTimeout(c.timers.inactive);c.timers.inactive=setTimeout(function(){c.hide(t)},a.hide.inactive)}function K(t){if(!c.cache.processing){c.cache.processing=1;o()&&c.reposition(t);c.cache.processing=0}}var B=".qtip-"+l,D=a.position,G={show:a.show.target,hide:a.hide.target,container:D.container[0]===v?document:D.container},Q={show:String(a.show.event).split(" "),hide:String(a.hide.event).split(" ")},R=b(document),I=b.browser.msie&&parseInt(b.browser.version,10)===6;if(i){if(a.hide.fixed){G.hide=G.hide.add(g); +g.bind("mouseover"+B,function(){g.hasClass(S)||clearTimeout(c.timers.hide)})}g.bind("mouseenter"+B+" mouseleave"+B,function(t){c[t.type==="mouseenter"?"focus":"blur"](t)})}if(f){if("number"===typeof a.hide.inactive){G.show.bind("qtip-"+l+"-inactive",E);b.each(b.fn.qtip.inactiveEvents,function(t,H){G.hide.add(c.elements.tooltip).bind(H+B+"-inactive",E)})}b.each(Q.hide,function(t,H){var J=b.inArray(H,Q.show),L=b(G.hide);if(J>-1&&L.add(G.show).length===L.length||H==="unfocus"){G.show.bind(H+B,function(P){o()? +u(P):s(P)});delete Q.show[J]}else G.hide.bind(H+B,u)})}e&&b.each(Q.show,function(t,H){G.show.bind(H+B,s)});if(q){if(D.adjust.resize||D.viewport)b(b.event.special.resize?D.viewport:M).bind("resize"+B,K);if(D.viewport||I&&g.css("position")==="fixed")b(D.viewport).bind("scroll"+B,K);/unfocus/i.test(a.hide.event)&&R.bind("mousedown"+B,function(t){var H=b(t.target);H.parents(X).length===0&&H.add(d).length>1&&o()&&!g.hasClass(S)&&c.hide(t)});D.target==="mouse"&&R.bind("mousemove"+B,function(t){if(D.adjust.mouse&& +!g.hasClass(S)&&o())c.reposition(t||b.fn.qtip.mouse)})}}function p(e,f,i,q){q=parseInt(q,10)!==0;var s=".qtip-"+l;f={show:e?a.show.target:F,hide:f?a.hide.target:F,tooltip:i?c.elements.tooltip:F,content:i?c.elements.content:F,container:q?a.position.container[0]===v?document:a.position.container:F,window:q?M:F};if(c.rendered)b([]).pushStack(b.grep([f.show,f.hide,f.tooltip,f.container,f.content,f.window],function(){return this!==null})).unbind(s);else e&&f.show.unbind(s+"-create")}var c=this,v=document.body, +C=N+"-"+l,g;c.id=l;c.rendered=n;c.elements={target:d};c.timers={img:[]};c.options=a;c.plugins={};c.cache={event:{},target:F,disabled:n,lastFocus:v,attr:k};b.extend(c,{render:function(e){if(c.rendered)return n;var f=c.elements,i=a.content.text,q=a.content.title.text,s=b.Event("tooltiprender");b.attr(d[0],"aria-describedby",C);g=f.tooltip=b("
").attr({id:C,"class":N+" qtip ui-helper-reset "+a.style.classes,role:"alert","aria-live":"polite","aria-atomic":n,"aria-describedby":C+"-content","aria-hidden":w}).toggleClass(S, +c.cache.disabled).data("qtip",c).appendTo(a.position.container).append(f.content=b("
",{"class":N+"-content",id:C+"-content","aria-atomic":w}));c.rendered=w;if(q){y();z(q)}O(i);x();b.each(b.fn.qtip.plugins,function(){this.initialize==="render"&&this(c)});j(1,1,1,1);b.each(a.events,function(u,E){if(E)g.bind(u==="toggle"?"tooltipshow tooltiphide":"tooltip"+u,E)});g.css("visibility","hidden").queue("fx",function(u){s.originalEvent=c.cache.event;g.trigger(s,[c]);if(a.show.ready||e)c.show(c.cache.event); +u()});return c},get:function(e){switch(e.toLowerCase()){case "dimensions":e={height:g.outerHeight(),width:g.outerWidth()};break;case "offset":e=h(g[0],a.position.container[0]);break;default:e=m(e.toLowerCase());e=e[0].precedance?e[0].string():e[0].jquery?e[0]:e[0][e[1]];break}return e},set:function(e,f){e=e.toLowerCase();var i=m(e),q=c.elements,s,u,E,K={builtin:{"^id$":function(){var B=f===w?b.fn.qtip.nextid:f,D=N+"-"+B;if(B!==n&&B.length>0&&!b("#"+D).length){g[0].id=D;q.content[0].id=D+"-content"; +q.title[0].id=D+"-title"}},"^content.text$":function(){O(f)},"^content.title.text$":function(){if(!f)return r();!c.elements.title&&f&&y();z(f)},"^content.title.button$":function(){var B=c.elements.button,D=c.elements.title;if(c.rendered)if(f){D||y();A()}else B.remove()},"^position.(my|at)$":function(){var B=/my$/i.test(e)?"my":"at";if("string"===typeof f)a.position[B]=new b.fn.qtip.plugins.Corner(f)},"^position.container$":function(){c.rendered===w&&g.appendTo(f)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(B, +D,G,Q){var R=e.search(/fixed/i)>-1?[0,[0,1,1,1]]:[e.substr(0,3),e.charAt(0)==="s"?[1,0,0,0]:[0,1,0,0]];if(R[0])B[D]=Q;p.apply(c,R[1]);if(R[0])B[D]=G;j.apply(c,R[1])},"^show.ready$":function(){c.rendered===n&&c.show()},"^style.classes$":function(){b.attr(g[0],"class",N+" qtip ui-helper-reset "+f)},"^style.widget|content.title":x,"^events.(render|show|move|hide|focus|blur)$":function(B,D,G){q.tooltip[(b.isFunction(f)?"":"un")+"bind"]("tooltip"+D,G)},"^position.(my|at|adjust|target|container)|style|content":function(){c.reposition()}}}; +b.each(c.plugins,function(B){if("object"===typeof this.checks)K[B]=this.checks});s=i[0][i[1]];i[0][i[1]]=f.nodeType?b(f):f;W(a);for(u in K)for(E in K[u])RegExp(E,"i").test(e)&&K[u][E].call(c,i[0],i[1],f,s);return c},toggle:function(e,f){function i(){if(e)b.browser.msie&&g[0].style.removeAttribute("filter");else g.css({display:"",visibility:"hidden",width:"",opacity:"",left:"",top:""})}if(c.rendered===n)return n;var q=e?"show":"hide",s=a[q],u=o();if((typeof e).search("boolean|number"))e=!u;if(u=== +e)return c;if(f){if(/over|enter/.test(f.type)&&/out|leave/.test(c.cache.event.type)&&f.target===a.show.target[0]&&g.has(f.relatedTarget).length)return c;c.cache.event=b.extend({},f)}u=b.Event("tooltip"+q);u.originalEvent=f?c.cache.event:F;g.trigger(u,[c,90]);if(u.isDefaultPrevented())return c;b.attr(g[0],"aria-hidden",!!!e);if(e){g.hide().css({visibility:""});c.focus(f);c.reposition(f,0);s.solo&&b(X).not(g).qtip("hide")}else{clearTimeout(c.timers.show);c.blur(f)}g.stop(1,1);if(b.isFunction(s.effect)){s.effect.call(g, +c);g.queue("fx",function(E){i.call(this,E);E()})}else if(s.effect===n){g[q]();i.call(g)}else g.fadeTo(90,e?1:0,i);e&&s.target.trigger("qtip-"+l+"-inactive");return b.fn.qtip.lastShown=c},show:function(e){c.toggle(w,e)},hide:function(e){c.toggle(n,e)},focus:function(e){if(c.rendered===n)return n;var f=b(X),i=parseInt(g[0].style.zIndex,10),q=b.fn.qtip.zindex+f.length;e=b.extend({},e);if(!g.hasClass(Y)){if(i!==q){f.each(function(){if(this.style.zIndex>i)this.style.zIndex-=1});f.filter("."+Y).qtip("blur", +e)}c.cache.lastFocus=document.activeElement;f=b.Event("tooltipfocus");f.originalEvent=e;g.trigger(f,[c,q]);if(!f.isDefaultPrevented())g.addClass(Y)[0].style.zIndex=q}return c},blur:function(e){e=b.extend({},e);var f;g.removeClass(Y);f=b.Event("tooltipblur");f.originalEvent=e;g.trigger(f,[c])},reposition:function(e,f){if(c.rendered===n)return n;var i=a.position.target,q=a.position,s=q.my,u=q.at,E=q.adjust,K=g.outerWidth(),B=g.outerHeight(),D=0,G=0,Q=b.Event("tooltipmove"),R=g.css("position")==="fixed", +I=q.viewport.jquery?q.viewport:b(M),t={left:0,top:0},H={left:function(J){var L=I.scrollLeft,P=u.x==="left"?D:u.x==="right"?-D:-D/2,U=L-J;L=J+K-I.width-L;P=(s.x==="left"?K:s.x==="right"?-K:-K/2)-(s.precedance==="x"||s.x===s.y?P:0);if(U>0&&(s.x!=="left"||L>0))t.left-=P;else if(L>0&&(s.x!=="right"||U>0))t.left-=(s.x==="center"?-1:1)*P+2*E.x;if(t.left<0&&-t.left>L)t.left=J;return t.left-J},top:function(J){var L=I.scrollTop,P=u.y==="top"?G:u.y==="bottom"?-G:-G/2,U=L-J;L=J+B-I.height-L;P=(s.y==="top"?B: +s.y==="bottom"?-B:-B/2)-(s.precedance==="y"||s.x===s.y?P:0);if(U>0&&(s.y!=="top"||L>0))t.top-=P;else if(L>0&&(s.y!=="bottom"||U>0))t.top-=(s.y==="center"?-1:1)*P+2*E.y;if(t.top<0&&-t.top>L)t.top=J;return t.top-J}};f=f===T||!!f||n;I=!I?n:{elem:I,height:I[(I[0]===M?"h":"outerH")+"eight"](),width:I[(I[0]===M?"w":"outerW")+"idth"](),scrollLeft:I.scrollLeft(),scrollTop:I.scrollTop()};if(i==="mouse"){u={x:"left",y:"top"};e=e&&(e.type==="resize"||e.type==="scroll")?c.cache.event:E.mouse||!e||!e.pageX?b.extend({}, +b.fn.qtip.mouse):e;t={top:e.pageY,left:e.pageX}}else{if(i==="event")i=e&&e.target&&e.type!=="scroll"&&e.type!=="resize"?c.cache.target=b(e.target):c.cache.target;i=b(i).eq(0);if(i.length===0)return c;else if(i[0]===document||i[0]===M){D=i.width();G=i.height();if(i[0]===M)t={top:R?0:I.scrollTop,left:R?0:I.scrollLeft}}else if(i.is("area")&&b.fn.qtip.plugins.imagemap){t=b.fn.qtip.plugins.imagemap(i,u);D=t.width;G=t.height;t=t.offset}else if(i[0].namespaceURI=="http://www.w3.org/2000/svg"&&b.fn.qtip.plugins.svg){t= +b.fn.qtip.plugins.svg(i,u);D=t.width;G=t.height;t=t.offset}else{D=i.outerWidth();G=i.outerHeight();t=h(i[0],q.container[0])}t.left+=u.x==="right"?D:u.x==="center"?D/2:0;t.top+=u.y==="bottom"?G:u.y==="center"?G/2:0}t.left+=E.x+(s.x==="right"?-K:s.x==="center"?-K/2:0);t.top+=E.y+(s.y==="bottom"?-B:s.y==="center"?-B/2:0);t.adjusted=q.viewport.jquery&&i[0]!==M&&i[0]!==v?{left:H.left(t.left),top:H.top(t.top)}:{left:0,top:0};g.attr("class",function(){return b.attr(this,"class").replace(/ui-tooltip-pos-\w+/i, +"")}).addClass(N+"-pos-"+s.abbreviation());Q.originalEvent=b.extend({},e);g.trigger(Q,[c,t,I.elem]);if(Q.isDefaultPrevented())return c;delete t.adjusted;if(!f||!isNaN(t.left,t.top))g.css(t);else if(o()&&b.isFunction(q.effect)){q.effect.call(g,c,t);g.queue(function(J){b(this).css({opacity:"",height:""});b.browser.msie&&this.style&&this.style.removeAttribute("filter");J()})}return c},redraw:function(){if(!c.rendered||!(b.browser.msie&&b.browser.version<8))return n;var e=N+"-fluid",f;g.css({width:"auto", +height:"auto"}).addClass(e);f={height:g.outerHeight(),width:g.outerWidth()};b.each(["width","height"],function(i,q){var s=parseInt(g.css("max-"+q),10)||0,u=parseInt(g.css("min-"+q),10)||0;f[q]=s+u?Math.min(Math.max(f[q],u),s):f[q]});g.css(f).removeClass(e)},disable:function(e){var f=S;if("boolean"!==typeof e)e=!(g.hasClass(f)||c.cache.disabled);if(c.rendered){g.toggleClass(f,e);b.attr(g[0],"aria-disabled",e)}else c.cache.disabled=!!e;return c},destroy:function(){var e=d[0],f=b.data(e,V);if(c.rendered){g.remove(); +b.each(c.plugins,function(){this.initialize==="render"&&this.destroy()})}clearTimeout(c.timers.show);clearTimeout(c.timers.hide);p(1,1,1,1);b.removeData(e,"qtip");f&&b.attr(e,"title",f);d.removeAttr("aria-describedby");return d}})}function ca(d,a){var l,k,m,h,o=b(this),x=b(document.body),r=this===document?x:o;k=o.metadata?o.metadata(a.metadata):F;h=a.metadata.type==="html5"&&k?k[a.metadata.name]:F;var A=o.data(a.metadata.name||"qtipopts");try{A=typeof A==="string"?(new Function("return "+A))():A}catch(y){$("Unable to parse HTML5 attribute data: "+ +A)}h=b.extend(w,{},b.fn.qtip.defaults,a,typeof A==="object"?W(A):F,W(h||k));k&&b.removeData(this,"metadata");k=h.position;if("boolean"===typeof h.content.text){m=o.attr(h.content.attr);if(h.content.attr!==n&&m)h.content.text=m;else return n}if(k.container===n)k.container=x;if(k.target===n)k.target=r;if(h.show.target===n)h.show.target=r;if(h.hide.target===n)h.hide.target=r;if(h.position.viewport===w)h.position.viewport=k.container;k.at=new b.fn.qtip.plugins.Corner(k.at);k.my=new b.fn.qtip.plugins.Corner(k.my); +if(b.data(this,"qtip"))if(h.overwrite)o.qtip("destroy");else if(h.overwrite===n)return n;if(b.attr(this,"title")){b.data(this,V,b.attr(this,"title"));o.removeAttr("title")}l=new aa(o,h,d,!!m);b.data(this,"qtip",l);o.bind("remove.qtip",function(){l.destroy()});return l}function da(d){var a=this,l=d.elements.tooltip,k=d.options.content.ajax;a.checks={"^content.ajax":function(m,h){if(h==="once")a.once();else k&&k.url&&a.load()}};b.extend(a,{init:function(){if(k&&k.url){a.load();l.one("tooltipshow",a.once)}}, +once:function(){k.once?a.destroy():l.bind("tooltipshow.qtip-ajax",a.load)},load:function(){b.ajax(b.extend({success:function(m){d.set("content.text",m)},error:function(m,h,o){d.set("content.text",h+": "+o)},context:d},k));return a},destroy:function(){l.unbind(".qtip-ajax")}});a.init()}function ea(d,a,l){var k=Math.ceil(a/2),m=Math.ceil(l/2);a={bottomright:[[0,0],[a,l],[a,0]],bottomleft:[[0,0],[a,0],[0,l]],topright:[[0,l],[a,0],[a,l]],topleft:[[0,0],[0,l],[a,l]],topcenter:[[0,l],[k,0],[a,l]],bottomcenter:[[0, +0],[a,0],[k,l]],rightcenter:[[0,0],[a,m],[0,l]],leftcenter:[[a,0],[a,l],[0,m]]};a.lefttop=a.bottomright;a.righttop=a.bottomleft;a.leftbottom=a.topright;a.rightbottom=a.topleft;return a[d.string()]}function fa(d){function a(j,p,c){if(o.tip){j=b.extend({},m.corner);p=c.adjusted;var v;if(m.corner.fixed!==w){if(p.left)j.x=j.x==="center"?p.left>0?"left":"right":j.x==="left"?"right":"left";if(p.top)j.y=j.y==="center"?p.top>0?"top":"bottom":j.y==="top"?"bottom":"top";if(j.string()!==r.corner&&(r.top!==p.top|| +r.left!==p.left))v=m.update(j)}v||(v=m.position(j,0));if(v.right!==T)v.left=v.right;if(v.bottom!==T)v.top=v.bottom;v.option=Math.max(0,h.offset);c.left-=v.left.charAt?v.option:(v.right?-1:1)*v.left;c.top-=v.top.charAt?v.option:(v.bottom?-1:1)*v.top;r.left=p.left;r.top=p.top;r.corner=j.string()}}function l(j,p,c){p=!p?j[j.precedance]:p;p="border-"+p+"-width";j=parseInt((o.titlebar&&j.y==="top"?o.titlebar:o.content).css(p),10);return(c?j||parseInt(x.css(p),10):j)||0}function k(j){var p=j.precedance=== +"y",c=A[p?"width":"height"],v=A[p?"height":"width"],C=j.string().indexOf("center")>-1,g=c*(C?0.5:1),e=Math.pow;j=Math.round;var f=Math.sqrt(e(g,2)+e(v,2));g=[z/g*f,z/v*f];g[2]=Math.sqrt(e(g[0],2)-e(z,2));g[3]=Math.sqrt(e(g[1],2)-e(z,2));C=(f+g[2]+g[3]+(C?0:g[0]))/f;c=[j(C*v),j(C*c)];return{height:c[p?0:1],width:c[p?1:0]}}var m=this,h=d.options.style.tip,o=d.elements,x=o.tooltip,r={top:0,left:0,corner:""},A={width:h.width,height:h.height},y={},z=h.border||0,O=b("")[0].getContext;m.corner= +F;m.mimic=F;m.checks={"^position.my|style.tip.(corner|mimic|border)$":function(){m.init()||m.destroy();d.reposition()},"^style.tip.(height|width)$":function(){A={width:h.width,height:h.height};m.create();m.update();d.reposition()},"^content.title.text|style.(classes|widget)$":function(){o.tip&&m.update()}};b.extend(m,{init:function(){var j=m.detectCorner()&&(O||b.browser.msie);if(j){m.create();m.update();x.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",a)}return j},detectCorner:function(){var j= +h.corner,p=d.options.position,c=p.at;p=p.my.string?p.my.string():p.my;if(j===n||p===n&&c===n)return n;else if(j===w)m.corner=new b.fn.qtip.plugins.Corner(p);else if(!j.string){m.corner=new b.fn.qtip.plugins.Corner(j);m.corner.fixed=w}return m.corner.string()!=="centercenter"},detectColours:function(){var j=o.tip.css({backgroundColor:"",border:""}),p=m.corner,c=p[p.precedance],v="border-"+c+"-color";c="border"+c.charAt(0)+c.substr(1)+"Color";var C=/rgba?\(0, 0, 0(, 0)?\)|transparent/i;p=o.titlebar&& +(p.y==="top"||p.y==="center"&&j.position().top+A.height/2+h.offset",{"class":"ui-tooltip-tip"}).css({width:j,height:p}).prependTo(x);if(O)b("").appendTo(o.tip)[0].getContext("2d").save();else{j='';o.tip.html(z?j+=j:j)}},update:function(j){var p=o.tip,c=p.children(),v=A.width,C=A.height,g=h.mimic,e=Math.round, +f,i,q;if(!j)j=m.corner;if(g===n)g=j;else{g=new b.fn.qtip.plugins.Corner(g);g.precedance=j.precedance;if(g.x==="inherit")g.x=j.x;else if(g.y==="inherit")g.y=j.y;else if(g.x===g.y)g[j.precedance]=j[j.precedance]}f=g.precedance;m.detectColours();z=y.border==="transparent"||y.border==="#123456"?0:h.border===w?l(j,F,w):h.border;i=ea(g,v,C);q=k(j);p.css(q);p=j.precedance==="y"?[e(g.x==="left"?z:g.x==="right"?q.width-v-z:(q.width-v)/2),e(g.y==="top"?q.height-C:0)]:[e(g.x==="left"?q.width-v:0),e(g.y==="top"? +z:g.y==="bottom"?q.height-C-z:(q.height-C)/2)];if(O){c.attr(q);c=c[0].getContext("2d");c.restore();c.save();c.clearRect(0,0,3E3,3E3);c.translate(p[0],p[1]);c.beginPath();c.moveTo(i[0][0],i[0][1]);c.lineTo(i[1][0],i[1][1]);c.lineTo(i[2][0],i[2][1]);c.closePath();c.fillStyle=y.fill;c.strokeStyle=y.border;c.lineWidth=z*2;c.lineJoin="miter";c.miterLimit=100;c.stroke();c.fill()}else{i="m"+i[0][0]+","+i[0][1]+" l"+i[1][0]+","+i[1][1]+" "+i[2][0]+","+i[2][1]+" xe";p[2]=z&&/^(r|b)/i.test(j.string())?1:0; +c.css({antialias:""+(g.string().indexOf("center")>-1),left:p[0]-p[2]*Number(f==="x"),top:p[1]-p[2]*Number(f==="y"),width:v+z,height:C+z}).each(function(s){var u=b(this);u.attr({coordsize:v+z+" "+(C+z),path:i,fillcolor:y.fill,filled:!!s,stroked:!!!s}).css({display:z||s?"block":"none"});!s&&z>0&&u.html()===""&&u.html('')})}return m.position(j,1)},position:function(j, +p){var c=o.tip,v={},C=Math.max(0,h.offset),g,e,f;if(h.corner===n||!c)return n;j=j||m.corner;g=j.precedance;e=k(j);f=b.browser.msie&&z&&/^(b|r)/i.test(j.string())?1:0;b.each(g==="y"?[j.x,j.y]:[j.y,j.x],function(i,q){var s,u;if(q==="center"){s=g==="y"?"left":"top";v[s]="50%";v["margin-"+s]=-Math.round(e[g==="y"?"width":"height"]/2)+C}else{s=l(j,q,w);u=b.browser.mozilla;var E=j.y+(u?"":"-")+j.x;u=(u?"-moz-":b.browser.webkit?"-webkit-":"")+(u?"border-radius-"+E:"border-"+E+"-radius");u=parseInt((o.titlebar&& +j.y==="top"?o.titlebar:o.content).css(u),10)||parseInt(x.css(u),10)||0;v[q]=i||!z?l(j,q):C+(u>s?u:0)}});v[j[g]]-=e[g==="x"?"width":"height"]+f;p&&c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(v);return v},destroy:function(){o.tip&&o.tip.remove();x.unbind(".qtip-tip")}});m.init()}function ga(d){var a=this,l=d.options.show.modal,k=d.elements,m=k.tooltip;a.checks={"^show.modal.(on|blur)$":function(){a.init();k.overlay.toggle(m.is(":visible"))}};b.extend(a,{init:function(){if(l.on){m.unbind(".qtipmodal").bind("tooltipshow.qtipmodal tooltiphide.qtipmodal", +function(h,o,x){h=h.type.replace("tooltip","");b.isFunction(l[h])?l[h].call(k.overlay,x,o):a[h](x)});a.create();l.blur===w&&k.overlay.unbind(".qtipmodal"+d.id).bind("click.qtipmodal"+d.id,function(){d.hide.call(d)})}},create:function(){var h=b("#qtip-overlay");if(h.length)k.overlay=h;else{k.overlay=b("
",{id:"#qtip-overlay".substr(1),css:{position:"absolute",top:0,left:0,display:"none",zIndex:parseInt(m.css("z-index"),10)-1}}).appendTo(document.body);b(M).bind("resize.qtipmodal",function(){k.overlay.css({height:Math.max(b(M).height(), +b(document).height()),width:Math.max(b(M).width(),b(document).width())})}).trigger("resize")}},toggle:function(h){var o=k.overlay,x=d.options.show.modal.effect,r=h?"show":"hide";o.stop(w,n);if(b.isFunction(x))x.call(o,h);else x===n?o[r]():o.fadeTo(90,h?0.7:0,function(){h||b(this).hide()})},show:function(){a.toggle(w)},hide:function(){a.toggle(n)},destroy:function(){var h=w;b("*").each(function(){var o=b(this).data("qtip");if(o&&o.id!==d.id&&o.options.show.modal)return h=n});if(h){k.overlay.remove(); +b(M).unbind(".qtipmodal")}else k.overlay.unbind(".qtipmodal"+d.id);m.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});a.init()}function ha(d){var a=this,l=d.elements,k=l.tooltip,m=".bgiframe-"+d.id,h="tooltipmove"+m+" tooltipshow"+m;b.extend(a,{init:function(){l.bgiframe=b('');l.bgiframe.appendTo(k);k.bind(h,a.adjust)}, +adjust:function(){var o=d.get("dimensions"),x=d.plugins.tip,r=d.elements.tip,A;A=parseInt(k.css("border-left-width"),10)||0;A={left:-A,top:-A};if(x&&r){x=x.corner.precedance==="x"?["width","left"]:["height","top"];A[x[1]]-=r[x[0]]()}l.bgiframe.css(A).css(o)},destroy:function(){a.iframe.remove();k.unbind(h)}});a.init()}var w=true,n=false,F=null,N="ui-tooltip",Z="ui-widget",S="ui-state-disabled",X="div.qtip."+N,Y=N+"-focus",ba="-31000px",V="oldtitle";b.fn.qtip=function(d,a,l){var k=String(d).toLowerCase(), +m=F,h=k==="disable"?[w]:b.makeArray(arguments).slice(1,10),o=h[h.length-1],x=this[0]?b.data(this[0],"qtip"):F;if(!arguments.length&&x||k==="api")return x;else if("string"===typeof d){this.each(function(){var r=b.data(this,"qtip");if(!r)return w;if(/option|set/.test(k)&&a)if(l!==T)r.set(a,l);else m=r.get(a);else{if(!r.rendered&&(k==="show"||k==="toggle")){if(o&&o.timeStamp)r.cache.event=o;r.render(1)}else if(k==="enable"){k="disable";h=[n]}r[k]&&r[k].apply(r[k],h)}});return m!==F?m:this}else if("object"=== +typeof d||!arguments.length){x=W(b.extend(w,{},d));return b.fn.qtip.bind.call(this,x,o)}};b.fn.qtip.bind=function(d,a){return this.each(function(){function l(A){function y(){r.render(typeof A==="object"||k.show.ready);m.show.unbind(h.show);m.hide.unbind(h.hide)}if(r.cache.disabled)return n;r.cache.event=b.extend({},A);if(k.show.delay>0){clearTimeout(r.timers.show);r.timers.show=setTimeout(y,k.show.delay);h.show!==h.hide&&m.hide.bind(h.hide,function(){clearTimeout(r.timers.show)})}else y()}var k,m, +h,o=d.id=!d.id||d.id===n||d.id.length<1||b("#"+N+"-"+d.id).length?b.fn.qtip.nextid++:d.id,x=".qtip-"+o+"-create",r=ca.call(this,o,d);if(r===n)return w;k=r.options;b.each(b.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(r)});m={show:k.show.target,hide:k.hide.target};h={show:String(k.show.event).replace(" ",x+" ")+x,hide:String(k.hide.event).replace(" ",x+" ")+x};m.show.bind(h.show,l);if(k.show.ready||k.prerender)l(a)})};b.each({attr:function(d,a){if(this.length){var l=this[0],k=b.data(l, +"qtip");if(d==="title")if(arguments.length<2)return b.data(l,V);else if(typeof k==="object"){k&&k.rendered&&k.options.content.attr==="title"&&k.cache.attr&&k.set("content.text",a);b.fn.attr_replacedByqTip.apply(this,arguments);b.data(l,V,b.attr(l,"title"));return this.removeAttr("title")}}},clone:function(){var d=b([]),a;b("*",this).add(this).each(function(){var l=b.data(this,V);if(l){b.attr(this,"title",l);d=d.add(this)}});a=b.fn.clone_replacedByqTip.apply(this,arguments);d.removeAttr("title");return a}, remove:b.ui?F:function(d,a){b(this).each(function(){if(!a)if(!d||b.filter(d,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")})})}},function(d,a){if(!a)return w;var l=b.fn[d+"_replacedByqTip"]=b.fn[d];b.fn[d]=function(){return a.apply(this,arguments)||l.apply(this,arguments)}});b(M).load(function(){var d=document,a=d.body;b(d).bind("mousemove.qtip",function(l){b.fn.qtip.mouse={pageX:l.pageX,pageY:l.pageY}});d.activeElement===T&&d.addEventListener("focus",function(l){if(l&& l.target)d.activeElement=l.target===d?a:l.target},true)});b.fn.qtip.version="2.0.0pre";b.fn.qtip.nextid=0;b.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");b.fn.qtip.zindex=15E3;b.fn.qtip.plugins={Corner:function(d){d=String(d).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(d.match(/left|right/i)||d.match(/center/)||["inherit"])[0].toLowerCase();this.y=(d.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance= -d.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),l=this.y.substr(0,1);return a===l?a:a==="c"||a!=="c"&&l!=="c"?l+a:a+l}},iOS:parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<4.1};b.fn.qtip.defaults={prerender:m,id:m,overwrite:w,content:{text:w,attr:"title",title:{text:m,button:m}},position:{my:"top left",at:"bottom right", -target:m,container:m,viewport:m,adjust:{x:0,y:0,mouse:w,resize:w},effect:w},show:{target:m,event:"mouseenter",effect:w,delay:90,solo:m,ready:m},hide:{target:m,event:"mouseleave",effect:w,delay:0,fixed:m,inactive:m},style:{classes:"",widget:m},events:{render:F,move:F,show:F,hide:F,toggle:F,focus:F,blur:F}};b.fn.qtip.plugins.ajax=function(d){var a=d.plugins.ajax;return"object"===typeof a?a:d.plugins.ajax=new da(d)};b.fn.qtip.plugins.ajax.initialize="render";b.fn.qtip.plugins.ajax.sanitize=function(d){var a= +d.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),l=this.y.substr(0,1);return a===l?a:a==="c"||a!=="c"&&l!=="c"?l+a:a+l}},iOS:parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<4.1};b.fn.qtip.defaults={prerender:n,id:n,overwrite:w,content:{text:w,attr:"title",title:{text:n,button:n}},position:{my:"top left",at:"bottom right", +target:n,container:n,viewport:n,adjust:{x:0,y:0,mouse:w,resize:w},effect:w},show:{target:n,event:"mouseenter",effect:w,delay:90,solo:n,ready:n},hide:{target:n,event:"mouseleave",effect:w,delay:0,fixed:n,inactive:n},style:{classes:"",widget:n},events:{render:F,move:F,show:F,hide:F,toggle:F,focus:F,blur:F}};b.fn.qtip.plugins.ajax=function(d){var a=d.plugins.ajax;return"object"===typeof a?a:d.plugins.ajax=new da(d)};b.fn.qtip.plugins.ajax.initialize="render";b.fn.qtip.plugins.ajax.sanitize=function(d){var a= d.content;if(a&&"ajax"in a){a=a.ajax;if(typeof a!=="object")a=d.content.ajax={url:a};if("boolean"!==typeof a.once&&a.once)a.once=!!a.once}};b.extend(w,b.fn.qtip.defaults,{content:{ajax:{once:w}}});b.fn.qtip.plugins.tip=function(d){var a=d.plugins.tip;return"object"===typeof a?a:d.plugins.tip=new fa(d)};b.fn.qtip.plugins.tip.initialize="render";b.fn.qtip.plugins.tip.sanitize=function(d){var a=d.style;if(a&&"tip"in a){a=d.style.tip;if(typeof a!=="object")d.style.tip={corner:a};if(!/string|boolean/i.test(typeof a.corner))a.corner= -w;typeof a.width!=="number"&&delete a.width;typeof a.height!=="number"&&delete a.height;typeof a.border!=="number"&&a.border!==w&&delete a.border;typeof a.offset!=="number"&&delete a.offset}};b.extend(w,b.fn.qtip.defaults,{style:{tip:{corner:w,mimic:m,width:8,height:8,border:w,offset:0}}});b.fn.qtip.plugins.imagemap=function(d,a){function l(z,O){for(var k=0,o=1,c=1,v=0,C=0,g=z.width,e=z.height;g>0&&e>0&&o>0&&c>0;){g=Math.floor(g/2);e=Math.floor(e/2);if(a.x==="left")o=g;else if(a.x==="right")o=z.width- -g;else o+=Math.floor(g/2);if(a.y==="top")c=e;else if(a.y==="bottom")c=z.height-e;else c+=Math.floor(e/2);for(k=O.length;k--;){if(O.length<2)break;v=O[k][0]-z.offset.left;C=O[k][1]-z.offset.top;if(a.x==="left"&&v>=o||a.x==="right"&&v<=o||a.x==="center"&&(vz.width-o)||a.y==="top"&&C>=c||a.y==="bottom"&&C<=c||a.y==="center"&&(Cz.height-c))O.splice(k,1)}}return{left:O[0][0],top:O[0][1]}}var h=d.attr("shape").toLowerCase(),r=d.attr("coords").split(","),i=[],n=b('img[usemap="#'+d.parent("map").attr("name")+ -'"]'),x=n.offset(),q={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},A=0,y=0;x.left+=Math.ceil((n.outerWidth()-n.width())/2);x.top+=Math.ceil((n.outerHeight()-n.height())/2);if(h==="poly")for(A=r.length;A--;){y=[parseInt(r[--A],10),parseInt(r[A+1],10)];if(y[0]>q.offset.right)q.offset.right=y[0];if(y[0]q.offset.bottom)q.offset.bottom=y[1];if(y[1]0&&e>0&&p>0&&c>0;){g=Math.floor(g/2);e=Math.floor(e/2);if(a.x==="left")p=g;else if(a.x==="right")p=z.width- +g;else p+=Math.floor(g/2);if(a.y==="top")c=e;else if(a.y==="bottom")c=z.height-e;else c+=Math.floor(e/2);for(j=O.length;j--;){if(O.length<2)break;v=O[j][0]-z.offset.left;C=O[j][1]-z.offset.top;if(a.x==="left"&&v>=p||a.x==="right"&&v<=p||a.x==="center"&&(vz.width-p)||a.y==="top"&&C>=c||a.y==="bottom"&&C<=c||a.y==="center"&&(Cz.height-c))O.splice(j,1)}}return{left:O[0][0],top:O[0][1]}}var k=d.attr("shape").toLowerCase(),m=d.attr("coords").split(","),h=[],o=b('img[usemap="#'+d.parent("map").attr("name")+ +'"]'),x=o.offset(),r={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},A=0,y=0;x.left+=Math.ceil((o.outerWidth()-o.width())/2);x.top+=Math.ceil((o.outerHeight()-o.height())/2);if(k==="poly")for(A=m.length;A--;){y=[parseInt(m[--A],10),parseInt(m[A+1],10)];if(y[0]>r.offset.right)r.offset.right=y[0];if(y[0]r.offset.bottom)r.offset.bottom=y[1];if(y[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}('"5v 5w";(12(b,M,T){12 $(){13 d=M.83;14 d&&(d.3Z||d.5x||b.5y).2z(d,2p)}12 W(d){13 a;11(!d||"1v"!==1j d)14 m;11("1v"!==1j d.2b)d.2b={1W:d.2b};11("1b"2h d){11("1v"!==1j d.1b||d.1b.1Z)d.1b={1H:d.1b};a=d.1b.1H||m;11(!b.2s(a)&&(!a&&!a.1q||a.1p<1||"1v"===1j a&&!a.1Z))d.1b.1H=m;11("1k"2h d.1b){11("1v"!==1j d.1b.1k)d.1b.1k={1H:d.1b.1k};a=d.1b.1k.1H||m;11(!b.2s(a)&&(!a&&!a.1q||a.1p<1||"1v"===1j a&&!a.1Z))d.1b.1k.1H=m}}11("1m"2h d)11("1v"!==1j d.1m)d.1m={1X:d.1m,2t:d.1m};11("17"2h d)11("1v"!==1j d.17)d.17=d.17.1Z?{1l:d.17}:{1u:d.17};11("1a"2h d)11("1v"!==1j d.1a)d.1a=d.1a.1Z?{1l:d.1a}:{1u:d.1a};11("1n"2h d)11("1v"!==1j d.1n)d.1n={3r:d.1n};b.1z(b.1c.15.1h,12(){16.3l&&16.3l(d)});14 d}12 4R(d,a,l,h){12 r(e){13 f,j=e.3f("."),p=a[j[0]];2Q(e=1;e",{"25":"1L-3n-3t "+(a.1n.2H?"":N+"-3G"),1k:"4n 1E","24-5E":"4n 1E"}).7m(b("<5F />",{"25":"1L-3G 1L-3G-5G",2Y:"&5H;"}));e.1V.34(e.1N).1q("5g","1V").4O(12(j){b(16).2B("1L-3n-4O",j.1W==="3o")}).48(12(j){g.2r(S)||c.1a(j);14 m}).1r("3V 79 4I 5I 7J",12(j){b(16).2B("1L-3n-8c 1L-3n-2C",j.1W.35(-4)==="5K")});c.3c()}12 y(){13 e=c.1A,f=C+"-1k";e.1N&&q();e.1N=b("<2O />",{"25":N+"-1N "+(a.1n.2H?"1L-2H-4C":"")}).3z(e.1k=b("<2O />",{1w:f,"25":N+"-1k","24-3N":w})).6A(e.1b);11(a.1b.1k.1V)A();1f c.1B===w&&c.3c()}12 z(e){13 f=c.1A.1k;11(!c.1B||!e)14 m;11(b.2s(e))e=e.22(d,c)||"";e.1Z&&e.1p>0?f.4z().3z(e.1g({2G:"2Z"})):f.2Y(e);c.3c();c.1B===w&&c.2e(c.1x.1u)}12 O(e){13 f=c.1A.1b;11(!c.1B||!e)14 m;11(b.2s(e))e=e.22(d,c)||"";e.1Z&&e.1p>0?f.4z().3z(e.1g({2G:"2Z"})):f.2Y(e);g.3x("3O",12(j){12 p(u){s=s.3J(u);11(s.1p===0){c.3c();c.1B===w&&c.2e(c.1x.1u);j()}}13 s=f.5N("3g:3J([1e]):3J([1d])");s.1z(12(u,E){13 K=["5O","3Z","2W","6w",""].5Q(".15-5R ");b(16).1r(K,12(){21(c.1G.3g[u]);p(16)});(12 B(){11(E.1e)14 p(E);c.1G.3g[u]=3b(B,20)})();14 w});s.1p===0&&p(s)});14 c}12 k(e,f,j,p){12 s(t){11(g.2r(S))14 m;G.17.2x("15-"+l+"-2k");21(c.1G.17);21(c.1G.1a);13 H=12(){c.17(t)};11(a.17.2v>0)c.1G.17=3b(H,a.17.2v);1f H()}12 u(t){11(g.2r(S))14 m;13 H=b(t.4v||t.1l),J=H.6u(X)[0]===g[0];H=H[0]===G.17[0];21(c.1G.17);21(c.1G.1a);11(D.1l==="2g"&&J||a.1a.2c&&/2g(4t|4u|4m)/.1O(t.1W)&&(J||H)){t.6x();t.5T();14 m}g.4f(1,1);11(a.1a.2v>0)c.1G.1a=3b(12(){c.1a(t)},a.1a.2v);1f c.1a(t)}12 E(t){11(g.2r(S))14 m;21(c.1G.2k);c.1G.2k=3b(12(){c.1a(t)},a.1a.2k)}12 K(t){11(!c.1x.3U){c.1x.3U=1;n()&&c.2e(t);c.1x.3U=0}}13 B=".15-"+l,D=a.1m,G={17:a.17.1l,1a:a.1a.1l,1M:D.1M[0]===v?1U:D.1M},Q={17:2U(a.17.1u).3f(" "),1a:2U(a.1a.1u).3f(" ")},R=b(1U),I=b.23.2K&&1R(b.23.3F,10)===6;11(j){11(a.1a.2c){G.1a=G.1a.2y(g);g.1r("6t"+B,12(){g.2r(S)||21(c.1G.1a)})}g.1r("3o"+B+" 4i"+B,12(t){c[t.1W==="3o"?"2C":"2u"](t)})}11(f){11("2R"===1j a.1a.2k){G.17.1r("15-"+l+"-2k",E);b.1z(b.1c.15.4F,12(t,H){G.1a.2y(c.1A.1E).1r(H+B+"-2k",E)})}b.1z(Q.1a,12(t,H){13 J=b.5V(H,Q.17),L=b(G.1a);11(J>-1&&L.2y(G.17).1p===L.1p||H==="4q"){G.17.1r(H+B,12(P){n()?u(P):s(P)});33 Q.17[J]}1f G.1a.1r(H+B,u)})}e&&b.1z(Q.17,12(t,H){G.17.1r(H+B,s)});11(p){11(D.2J.2w||D.2i)b(b.1u.5W.2w?D.2i:M).1r("2w"+B,K);11(D.2i||I&&g.1g("1m")==="2c")b(D.2i).1r("3P"+B,K);/4q/i.1O(a.1a.1u)&&R.1r("3V"+B,12(t){13 H=b(t.1l);H.6m(X).1p===0&&H.2y(d).1p>1&&n()&&!g.2r(S)&&c.1a(t)});D.1l==="2g"&&R.1r("3X"+B,12(t){11(D.2J.2g&&!g.2r(S)&&n())c.2e(t||b.1c.15.2g)})}}12 o(e,f,j,p){p=1R(p,10)!==0;13 s=".15-"+l;f={17:e?a.17.1l:F,1a:f?a.1a.1l:F,1E:j?c.1A.1E:F,1b:j?c.1A.1b:F,1M:p?a.1m.1M[0]===v?1U:a.1m.1M:F,4d:p?M:F};11(c.1B)b([]).5X(b.5Y([f.17,f.1a,f.1E,f.1M,f.1b,f.4d],12(){14 16!==5j})).1T(s);1f e&&f.17.1T(s+"-2I")}13 c=16,v=1U.39,C=N+"-"+l,g;c.1w=l;c.1B=m;c.1A={1l:d};c.1G={3g:[]};c.2o=a;c.1h={};c.1x={1u:{},1l:F,2L:m,4w:v,1q:h};b.1F(c,{28:12(e){11(c.1B)14 m;13 f=c.1A,j=a.1b.1H,p=a.1b.1k.1H,s=b.3a("5Z");b.1q(d[0],"24-3S",C);g=f.1E=b("<2O/>").1q({1w:C,"25":N+" 15 1L-4r-4s "+a.1n.3r,5g:"60","24-61":"62","24-3N":m,"24-3S":C+"-1b","24-3j":w}).2B(S,c.1x.2L).1S("15",c).34(a.1m.1M).3z(f.1b=b("<2O />",{"25":N+"-1b",1w:C+"-1b","24-3N":w}));c.1B=w;11(p){y();z(p)}O(j);x();b.1z(b.1c.15.1h,12(){16.2A==="28"&&16(c)});k(1,1,1,1);b.1z(a.4k,12(u,E){11(E)g.1r(u==="29"?"30 4g":"1E"+u,E)});g.1g("3w","3j").3x("3O",12(u){s.3k=c.1x.1u;g.2x(s,[c]);11(a.17.3q||e)c.17(c.1x.1u);u()});14 c},3Q:12(e){5f(e.2F()){3p"5t":e={1e:g.2T(),1d:g.3h()};2D;3p"1i":e=i(g[0],a.1m.1M[0]);2D;3t:e=r(e.2F());e=e[0].1K?e[0].1I():e[0].1Z?e[0]:e[0][e[1]];2D}14 e},32:12(e,f){e=e.2F();13 j=r(e),p=c.1A,s,u,E,K={63:{"^1w$":12(){13 B=f===w?b.1c.15.43:f,D=N+"-"+B;11(B!==m&&B.1p>0&&!b("#"+D).1p){g[0].1w=D;p.1b[0].1w=D+"-1b";p.1k[0].1w=D+"-1k"}},"^1b.1H$":12(){O(f)},"^1b.1k.1H$":12(){11(!f)14 q();!c.1A.1k&&f&&y();z(f)},"^1b.1k.1V$":12(){13 B=c.1A.1V,D=c.1A.1k;11(c.1B)11(f){D||y();A()}1f B.26()},"^1m.(1X|2t)$":12(){13 B=/1X$/i.1O(e)?"1X":"2t";11("1I"===1j f)a.1m[B]=1Y b.1c.15.1h.2N(f)},"^1m.1M$":12(){c.1B===w&&g.34(f)},"^(17|1a).(1u|1l|2c|2v|2k)$":12(B,D,G,Q){13 R=e.41(/2c/i)>-1?[0,[0,1,1,1]]:[e.35(0,3),e.3e(0)==="s"?[1,0,0,0]:[0,1,0,0]];11(R[0])B[D]=Q;o.2z(c,R[1]);11(R[0])B[D]=G;k.2z(c,R[1])},"^17.3q$":12(){c.1B===m&&c.17()},"^1n.3r$":12(){b.1q(g[0],"25",N+" 15 1L-4r-4s "+f)},"^1n.2H|1b.1k":x,"^4k.(28|17|4m|1a|2C|2u)$":12(B,D,G){p.1E[(b.2s(f)?"":"64")+"1r"]("1E"+D,G)},"^1m.(1X|2t|2J|1l|1M)|1n|1b":12(){c.2e()}}};b.1z(c.1h,12(B){11("1v"===1j 16.37)K[B]=16.37});s=j[0][j[1]];j[0][j[1]]=f.65?b(f):f;W(a);2Q(u 2h K)2Q(E 2h K[u])66(E,"i").1O(e)&&K[u][E].22(c,j[0],j[1],f,s);14 c},29:12(e,f){12 j(){11(e)b.23.2K&&g[0].1n.4B("3m");1f g.1g({2G:"",3w:"3j",1d:"",4l:"",19:"",18:""})}11(c.1B===m)14 m;13 p=e?"17":"1a",s=a[p],u=n();11((1j e).41("3s|2R"))e=!u;11(u===e)14 c;11(f){11(/67|68/.1O(f.1W)&&/4t|4u/.1O(c.1x.1u.1W)&&f.1l===a.17.1l[0]&&g.69(f.4v).1p)14 c;c.1x.1u=b.1F({},f)}u=b.3a("1E"+p);u.3k=f?c.1x.1u:F;g.2x(u,[c,3I]);11(u.47())14 c;b.1q(g[0],"24-3j",!!!e);11(e){g.1a().1g({3w:""});c.2C(f);c.2e(f,0);s.5p&&b(X).3J(g).15("1a")}1f{21(c.1G.17);c.2u(f)}g.4f(1,1);11(b.2s(s.2l)){s.2l.22(g,c);g.3x("3O",12(E){j.22(16,E);E()})}1f 11(s.2l===m){g[p]();j.22(g)}1f g.5q(3I,e?1:0,j);e&&s.1l.2x("15-"+l+"-2k");14 b.1c.15.6a=c},17:12(e){c.29(w,e)},1a:12(e){c.29(m,e)},2C:12(e){11(c.1B===m)14 m;13 f=b(X),j=1R(g[0].1n.36,10),p=b.1c.15.4M+f.1p;e=b.1F({},e);11(!g.2r(Y)){11(j!==p){f.1z(12(){11(16.1n.36>j)16.1n.36-=1});f.3m("."+Y).15("2u",e)}c.1x.4w=1U.3T;f=b.3a("87");f.3k=e;g.2x(f,[c,p]);11(!f.47())g.46(Y)[0].1n.36=p}14 c},2u:12(e){e=b.1F({},e);13 f;g.4E(Y);f=b.3a("6c");f.3k=e;g.2x(f,[c])},2e:12(e,f){11(c.1B===m)14 m;13 j=a.1m.1l,p=a.1m,s=p.1X,u=p.2t,E=p.2J,K=g.3h(),B=g.2T(),D=0,G=0,Q=b.3a("4h"),R=g.1g("1m")==="2c",I=p.2i.1Z?p.2i:b(M),t={19:0,18:0},H={19:12(J){13 L=I.2X,P=u.x==="19"?D:u.x==="1D"?-D:-D/2,U=L-J;L=J+K-I.1d-L;P=(s.x==="19"?K:s.x==="1D"?-K:-K/2)-(s.1K==="x"||s.x===s.y?P:0);11(U>0&&(s.x!=="19"||L>0))t.19-=P;1f 11(L>0&&(s.x!=="1D"||U>0))t.19-=(s.x==="1J"?-1:1)*P+2*E.x;11(t.19<0&&-t.19>L)t.19=J;14 t.19-J},18:12(J){13 L=I.2V,P=u.y==="18"?G:u.y==="1C"?-G:-G/2,U=L-J;L=J+B-I.1e-L;P=(s.y==="18"?B:s.y==="1C"?-B:-B/2)-(s.1K==="y"||s.x===s.y?P:0);11(U>0&&(s.y!=="18"||L>0))t.18-=P;1f 11(L>0&&(s.y!=="1C"||U>0))t.18-=(s.y==="1J"?-1:1)*P+2*E.y;11(t.18<0&&-t.18>L)t.18=J;14 t.18-J}};f=f===T||!!f||m;I=!I?m:{4y:I,1e:I[(I[0]===M?"h":"6f")+"6g"](),1d:I[(I[0]===M?"w":"7Z")+"6i"](),2X:I.2X(),2V:I.2V()};11(j==="2g"){u={x:"19",y:"18"};e=e&&(e.1W==="2w"||e.1W==="3P")?c.1x.1u:E.2g||!e||!e.3C?b.1F({},b.1c.15.2g):e;t={18:e.45,19:e.3C}}1f{11(j==="1u")j=e&&e.1l&&e.1W!=="3P"&&e.1W!=="2w"?c.1x.1l=b(e.1l):c.1x.1l;j=b(j).6j(0);11(j.1p===0)14 c;1f 11(j[0]===1U||j[0]===M){D=j.1d();G=j.1e();11(j[0]===M)t={18:R?0:I.2V,19:R?0:I.2X}}1f 11(j.5m("6k")&&b.1c.15.1h.4e){t=b.1c.15.1h.4e(j,u);D=t.1d;G=t.1e;t=t.1i}1f 11(j[0].7R=="6n://7P.6o.6q/6r/3L"&&b.1c.15.1h.3L){t=b.1c.15.1h.3L(j,u);D=t.1d;G=t.1e;t=t.1i}1f{D=j.3h();G=j.2T();t=i(j[0],p.1M[0])}t.19+=u.x==="1D"?D:u.x==="1J"?D/2:0;t.18+=u.y==="1C"?G:u.y==="1J"?G/2:0}t.19+=E.x+(s.x==="1D"?-K:s.x==="1J"?-K/2:0);t.18+=E.y+(s.y==="1C"?-B:s.y==="1J"?-B/2:0);t.3Y=p.2i.1Z&&j[0]!==M&&j[0]!==v?{19:H.19(t.19),18:H.18(t.18)}:{19:0,18:0};g.1q("25",12(){14 b.1q(16,"25").2M(/1L-1E-54-\\w+/i,"")}).46(N+"-54-"+s.4T());Q.3k=b.1F({},e);g.2x(Q,[c,t,I.4y]);11(Q.47())14 c;33 t.3Y;11(!f||!6y(t.19,t.18))g.1g(t);1f 11(n()&&b.2s(p.2l)){p.2l.22(g,c,t);g.3x(12(J){b(16).1g({4l:"",1e:""});b.23.2K&&16.1n&&16.1n.4B("3m");J()})}14 c},3c:12(){11(!c.1B||!(b.23.2K&&b.23.3F<8))14 m;13 e=N+"-6z",f;g.1g({1d:"4D",1e:"4D"}).46(e);f={1e:g.2T(),1d:g.3h()};b.1z(["1d","1e"],12(j,p){13 s=1R(g.1g("2P-"+p),10)||0,u=1R(g.1g("53-"+p),10)||0;f[p]=s+u?1t.53(1t.2P(f[p],u),s):f[p]});g.1g(f).4E(e)},49:12(e){13 f=S;11("3s"!==1j e)e=!(g.2r(f)||c.1x.2L);11(c.1B){g.2B(f,e);b.1q(g[0],"24-2L",e)}1f c.1x.2L=!!e;14 c},2n:12(){13 e=d[0],f=b.1S(e,V);11(c.1B){g.26();b.1z(c.1h,12(){16.2A==="28"&&16.2n()})}21(c.1G.17);21(c.1G.1a);o(1,1,1,1);b.4H(e,"15");f&&b.1q(e,"1k",f);d.3H("24-3S");14 d}})}12 4o(d,a){13 l,h,r,i,n=b(16),x=b(1U.39),q=16===1U?x:n;h=n.2b?n.2b(a.2b):F;i=a.2b.1W==="7l"&&h?h[a.2b.42]:F;13 A=n.1S(a.2b.42||"6D");6E{A=1j A==="1I"?(1Y 6F("14 "+A))():A}6H(y){$("6I 6J 6K 7d 6L 1S: "+A)}i=b.1F(w,{},b.1c.15.38,a,1j A==="1v"?W(A):F,W(i||h));h&&b.4H(16,"2b");h=i.1m;11("3s"===1j i.1b.1H){r=n.1q(i.1b.1q);11(i.1b.1q!==m&&r)i.1b.1H=r;1f 14 m}11(h.1M===m)h.1M=x;11(h.1l===m)h.1l=q;11(i.17.1l===m)i.17.1l=q;11(i.1a.1l===m)i.1a.1l=q;11(i.1m.2i===w)i.1m.2i=h.1M;h.2t=1Y b.1c.15.1h.2N(h.2t);h.1X=1Y b.1c.15.1h.2N(h.1X);11(b.1S(16,"15"))11(i.4a)n.15("2n");1f 11(i.4a===m)14 m;11(b.1q(16,"1k")){b.1S(16,V,b.1q(16,"1k"));n.3H("1k")}l=1Y 4R(n,i,d,!!r);b.1S(16,"15",l);n.1r("26.15",12(){l.2n()});14 l}12 5b(d){13 a=16,l=d.1A.1E,h=d.2o.1b.1Q;a.37={"^1b.1Q":12(r,i){11(i==="2a")a.2a();1f h&&h.3i&&a.2W()}};b.1F(a,{2f:12(){11(h&&h.3i){a.2W();l.6N("30",a.2a)}},2a:12(){h.2a?a.2n():l.1r("30.15-1Q",a.2W)},2W:12(){b.1Q(b.1F({6O:12(r){d.32("1b.1H",r)},3Z:12(r,i,n){d.32("1b.1H",i+": "+n)},75:d},h));14 a},2n:12(){l.1T(".15-1Q")}});a.2f()}12 4V(d,a,l){13 h=1t.3B(a/2),r=1t.3B(l/2);a={4J:[[0,0],[a,l],[a,0]],4K:[[0,0],[a,0],[0,l]],4L:[[0,l],[a,0],[a,l]],4N:[[0,0],[0,l],[a,l]],6Q:[[0,l],[h,0],[a,l]],6R:[[0,0],[a,0],[h,l]],6S:[[0,0],[a,r],[0,l]],6T:[[a,0],[a,l],[0,r]]};a.6U=a.4J;a.6W=a.4K;a.6X=a.4L;a.6Y=a.4N;14 a[d.1I()]}12 4p(d){12 a(k,o,c){11(n.1o){k=b.1F({},r.1y);o=c.3Y;13 v;11(r.1y.2c!==w){11(o.19)k.x=k.x==="1J"?o.19>0?"19":"1D":k.x==="19"?"1D":"19";11(o.18)k.y=k.y==="1J"?o.18>0?"18":"1C":k.y==="18"?"1C":"18";11(k.1I()!==q.1y&&(q.18!==o.18||q.19!==o.19))v=r.3d(k)}v||(v=r.1m(k,0));11(v.1D!==T)v.19=v.1D;11(v.1C!==T)v.18=v.1C;v.3A=1t.2P(0,i.1i);c.19-=v.19.3e?v.3A:(v.1D?-1:1)*v.19;c.18-=v.18.3e?v.3A:(v.1C?-1:1)*v.18;q.19=o.19;q.18=o.18;q.1y=k.1I()}}12 l(k,o,c){o=!o?k[k.1K]:o;o="1s-"+o+"-1d";k=1R((n.1N&&k.y==="18"?n.1N:n.1b).1g(o),10);14(c?k||1R(x.1g(o),10):k)||0}12 h(k){13 o=k.1K==="y",c=A[o?"1d":"1e"],v=A[o?"1e":"1d"],C=k.1I().55("1J")>-1,g=c*(C?0.5:1),e=1t.72;k=1t.4b;13 f=1t.3W(e(g,2)+e(v,2));g=[z/g*f,z/v*f];g[2]=1t.3W(e(g[0],2)-e(z,2));g[3]=1t.3W(e(g[1],2)-e(z,2));C=(f+g[2]+g[3]+(C?0:g[0]))/f;c=[k(C*v),k(C*c)];14{1e:c[o?0:1],1d:c[o?1:0]}}13 r=16,i=d.2o.1n.1o,n=d.1A,x=n.1E,q={18:0,19:0,1y:""},A={1d:i.1d,1e:i.1e},y={},z=i.1s||0,O=b("<4S />")[0].3R;r.1y=F;r.3u=F;r.37={"^1m.1X|1n.1o.(1y|3u|1s)$":12(){r.2f()||r.2n();d.2e()},"^1n.1o.(1e|1d)$":12(){A={1d:i.1d,1e:i.1e};r.2I();r.3d();d.2e()},"^1b.1k.1H|1n.(3r|2H)$":12(){n.1o&&r.3d()}};b.1F(r,{2f:12(){13 k=r.4P()&&(O||b.23.2K);11(k){r.2I();r.3d();x.1T(".15-1o").1r("4h.15-1o",a)}14 k},4P:12(){13 k=i.1y,o=d.2o.1m,c=o.2t;o=o.1X.1I?o.1X.1I():o.1X;11(k===m||o===m&&c===m)14 m;1f 11(k===w)r.1y=1Y b.1c.15.1h.2N(o);1f 11(!k.1I){r.1y=1Y b.1c.15.1h.2N(k);r.1y.2c=w}14 r.1y.1I()!=="5l"},4U:12(){13 k=n.1o.1g({74:"",1s:""}),o=r.1y,c=o[o.1K],v="1s-"+c+"-2E";c="1s"+c.3e(0)+c.35(1)+"76";13 C=/77?\\(0, 0, 0(, 0)?\\)|2S/i;o=n.1N&&(o.y==="18"||o.y==="1J"&&k.1m().18+A.1e/2+i.1i",{"25":"1L-1E-1o"}).1g({1d:k,1e:o}).7b(x);11(O)b("<4S />").34(n.1o)[0].3R("2d").4Y();1f{k=\'<3M:44 7c="0,0" 1n="2G:2Z; 1m:4j; 5d:3i(#3t#5e);">\';n.1o.2Y(z?k+=k:k)}},3d:12(k){13 o=n.1o,c=o.7e(),v=A.1d,C=A.1e,g=i.3u,e=1t.4b,f,j,p;11(!k)k=r.1y;11(g===m)g=k;1f{g=1Y b.1c.15.1h.2N(g);g.1K=k.1K;11(g.x==="3E")g.x=k.x;1f 11(g.y==="3E")g.y=k.y;1f 11(g.x===g.y)g[k.1K]=k[k.1K]}f=g.1K;r.4U();z=y.1s==="2S"||y.1s==="#7f"?0:i.1s===w?l(k,F,w):i.1s;j=4V(g,v,C);p=h(k);o.1g(p);o=k.1K==="y"?[e(g.x==="19"?z:g.x==="1D"?p.1d-v-z:(p.1d-v)/2),e(g.y==="18"?p.1e-C:0)]:[e(g.x==="19"?p.1d-v:0),e(g.y==="18"?z:g.y==="1C"?p.1e-C-z:(p.1e-C)/2)];11(O){c.1q(p);c=c[0].3R("2d");c.7h();c.4Y();c.7j(0,0,4Z,4Z);c.7n(o[0],o[1]);c.7o();c.7q(j[0][0],j[0][1]);c.51(j[1][0],j[1][1]);c.51(j[2][0],j[2][1]);c.7s();c.7t=y.2q;c.7v=y.1s;c.7w=z*2;c.7y="5c";c.7z=7B;c.58();c.2q()}1f{j="m"+j[0][0]+","+j[0][1]+" l"+j[1][0]+","+j[1][1]+" "+j[2][0]+","+j[2][1]+" 7C";o[2]=z&&/^(r|b)/i.1O(k.1I())?1:0;c.1g({7F:""+(g.1I().55("1J")>-1),19:o[0]-o[2]*56(f==="x"),18:o[1]-o[2]*56(f==="y"),1d:v+z,1e:C+z}).1z(12(s){13 u=b(16);u.1q({7H:v+z+" "+(C+z),7K:j,7L:y.2q,7M:!!s,7O:!!!s}).1g({2G:z||s?"2Z":"5o"});!s&&z>0&&u.2Y()===""&&u.2Y(\'<3M:58 7S="\'+z*2+\'7T" 2E="\'+y.1s+\'" 7U="7V" 7W="5c" 1n="5d:3i(#3t#5e); 2G:2Z;" />\')})}14 r.1m(k,1)},1m:12(k,o){13 c=n.1o,v={},C=1t.2P(0,i.1i),g,e,f;11(i.1y===m||!c)14 m;k=k||r.1y;g=k.1K;e=h(k);f=b.23.2K&&z&&/^(b|r)/i.1O(k.1I())?1:0;b.1z(g==="y"?[k.x,k.y]:[k.y,k.x],12(j,p){13 s,u;11(p==="1J"){s=g==="y"?"19":"18";v[s]="50%";v["5k-"+s]=-1t.4b(e[g==="y"?"1d":"1e"]/2)+C}1f{s=l(k,p,w);u=b.23.7Y;13 E=k.y+(u?"":"-")+k.x;u=(u?"-80-":b.23.5h?"-5h-":"")+(u?"1s-5i-"+E:"1s-"+E+"-5i");u=1R((n.1N&&k.y==="18"?n.1N:n.1b).1g(u),10)||1R(x.1g(u),10)||0;v[p]=j||!z?l(k,p):C+(u>s?u:0)}});v[k[g]]-=e[g==="x"?"1d":"1e"]+f;o&&c.1g({18:"",1C:"",19:"",1D:"",5k:""}).1g(v);14 v},2n:12(){n.1o&&n.1o.26();x.1T(".15-1o")}});r.2f()}12 52(d){13 a=16,l=d.2o.17.1P,h=d.1A,r=h.1E;a.37={"^17.1P.(31|2u)$":12(){a.2f();h.27.29(r.5m(":5n"))}};b.1F(a,{2f:12(){11(l.31){r.1T(".2m").1r("30.2m 4g.2m",12(i,n,x){i=i.1W.2M("1E","");b.2s(l[i])?l[i].22(h.27,x,n):a[i](x)});a.2I();l.2u===w&&h.27.1T(".2m"+d.1w).1r("48.2m"+d.1w,12(){d.1a.22(d)})}},2I:12(){13 i=b("#15-27");11(i.1p)h.27=i;1f{h.27=b("<2O />",{1w:"#15-27".35(1),1g:{1m:"4j",18:0,19:0,2G:"5o",36:1R(r.1g("z-5s"),10)-1}}).34(1U.39);b(M).1r("2w.2m",12(){h.27.1g({1e:1t.2P(b(M).1e(),b(1U).1e()),1d:1t.2P(b(M).1d(),b(1U).1d())})}).2x("2w")}},29:12(i){13 n=h.27,x=d.2o.17.1P.2l,q=i?"17":"1a";n.4f(w,m);11(b.2s(x))x.22(n,i);1f x===m?n[q]():n.5q(3I,i?0.7:0,12(){i||b(16).1a()})},17:12(){a.29(w)},1a:12(){a.29(m)},2n:12(){13 i=w;b("*").1z(12(){13 n=b(16).1S("15");11(n&&n.1w!==d.1w&&n.2o.17.1P)14 i=m});11(i){h.27.26();b(M).1T(".2m")}1f h.27.1T(".2m"+d.1w);r.1T("30.2m 4g.2m")}});a.2f()}12 4G(d){13 a=16,l=d.1A,h=l.1E,r=".2j-"+d.1w,i="4h"+r+" 30"+r;b.1F(a,{2f:12(){l.2j=b(\'<4c 25="1L-1E-2j" 85="0" 86="-1" 88="89:\\\'\\\';" 1n="2G:2Z; 1m:4j; z-5s:-1; 3m:8a(4l=0);">\');l.2j.34(h);h.1r(i,a.2J)},2J:12(){13 n=d.3Q("5t"),x=d.1h.1o,q=d.1A.1o,A;A=1R(h.1g("1s-19-1d"),10)||0;A={19:-A,18:-A};11(x&&q){x=x.1y.1K==="x"?["1d","19"]:["1e","18"];A[x[1]]-=q[x[0]]()}l.2j.1g(A).1g(n)},2n:12(){a.4c.26();h.1T(i)}});a.2f()}13 w=4X,m=5A,F=5j,N="1L-1E",Z="1L-2H",S="1L-3n-2L",X="2O.15."+N,Y=N+"-2C",4Q="-5J",V="5L";b.1c.15=12(d,a,l){13 h=2U(d).2F(),r=F,i=h==="49"?[w]:b.5M(2p).4A(1,10),n=i[i.1p-1],x=16[0]?b.1S(16[0],"15"):F;11(!2p.1p&&x||h==="5P")14 x;1f 11("1I"===1j d){16.1z(12(){13 q=b.1S(16,"15");11(!q)14 w;11(/3A|32/.1O(h)&&a)11(l!==T)q.32(a,l);1f r=q.3Q(a);1f{11(!q.1B&&(h==="17"||h==="29")){11(n&&n.5S)q.1x.1u=n;q.28(1)}1f 11(h==="5U"){h="49";i=[m]}q[h]&&q[h].2z(q[h],i)}});14 r!==F?r:16}1f 11("1v"===1j d||!2p.1p){x=W(b.1F(w,{},d));14 b.1c.15.1r.22(16,x,n)}};b.1c.15.1r=12(d,a){14 16.1z(12(){12 l(A){12 y(){q.28(1j A==="1v"||h.17.3q);r.17.1T(i.17);r.1a.1T(i.1a)}11(q.1x.2L)14 m;q.1x.1u=b.1F({},A);11(h.17.2v>0){21(q.1G.17);q.1G.17=3b(y,h.17.2v);i.17!==i.1a&&r.1a.1r(i.1a,12(){21(q.1G.17)})}1f y()}13 h,r,i,n=d.1w=!d.1w||d.1w===m||d.1w.1p<1||b("#"+N+"-"+d.1w).1p?b.1c.15.43++:d.1w,x=".15-"+n+"-2I",q=4o.22(16,n,d);11(q===m)14 w;h=q.2o;b.1z(b.1c.15.1h,12(){16.2A==="2A"&&16(q)});r={17:h.17.1l,1a:h.1a.1l};i={17:2U(h.17.1u).2M(" ",x+" ")+x,1a:2U(h.1a.1u).2M(" ",x+" ")+x};r.17.1r(i.17,l);11(h.17.3q||h.59)l(a)})};b.1z({1q:12(d,a){11(16.1p){13 l=16[0],h=b.1S(l,"15");11(d==="1k")11(2p.1p<2)14 b.1S(l,V);1f 11(1j h==="1v"){h&&h.1B&&h.2o.1b.1q==="1k"&&h.1x.1q&&h.32("1b.1H",a);b.1c.6b.2z(16,2p);b.1S(l,V,b.1q(l,"1k"));14 16.3H("1k")}}},6d:12(){13 d=b([]),a;b("*",16).2y(16).1z(12(){13 l=b.1S(16,V);11(l){b.1q(16,"1k",l);d=d.2y(16)}});a=b.1c.6h.2z(16,2p);d.3H("1k");14 a},26:b.1L?F:12(d,a){b(16).1z(12(){11(!a)11(!d||b.3m(d,[16]).1p)b("*",16).2y(16).1z(12(){b(16).6p("26")})})}},12(d,a){11(!a)14 w;13 l=b.1c[d+"6s"]=b.1c[d];b.1c[d]=12(){14 a.2z(16,2p)||l.2z(16,2p)}});b(M).2W(12(){13 d=1U,a=d.39;b(d).1r("3X.15",12(l){b.1c.15.2g={3C:l.3C,45:l.45}});d.3T===T&&d.6C("2C",12(l){11(l&&l.1l)d.3T=l.1l===d?a:l.1l},4X)});b.1c.15.3F="2.0.6G";b.1c.15.43=0;b.1c.15.4F="48 6M 3V 4I 3X 4i 3o".3f(" ");b.1c.15.4M=6V;b.1c.15.1h={2N:12(d){d=2U(d).2M(/([A-Z])/," $1").2M(/70/71,"1J").2F();16.x=(d.40(/19|1D/i)||d.40(/1J/)||["3E"])[0].2F();16.y=(d.40(/18|1C|1J/i)||["3E"])[0].2F();16.1K=d.3e(0).41(/^(t|b)/)>-1?"y":"x";16.1I=12(){14 16.1K==="y"?16.y+16.x:16.x+16.y};16.4T=12(){13 a=16.x.35(0,1),l=16.y.35(0,1);14 a===l?a:a==="c"||a!=="c"&&l!=="c"?l+a:a+l}},4W:7i((/7k.+7p ([0-7r]{3}).*7u.*7x/i.7A(7D.7G)||[0,"7I"])[1].2M("7N","."))<4.1};b.1c.15.38={59:m,1w:m,4a:w,1b:{1H:w,1q:"1k",1k:{1H:m,1V:m}},1m:{1X:"18 19",2t:"1C 1D",1l:m,1M:m,2i:m,2J:{x:0,y:0,2g:w,2w:w},2l:w},17:{1l:m,1u:"3o",2l:w,2v:3I,5p:m,3q:m},1a:{1l:m,1u:"4i",2l:w,2v:0,2c:m,2k:m},1n:{3r:"",2H:m},4k:{28:F,4m:F,17:F,1a:F,29:F,2C:F,2u:F}};b.1c.15.1h.1Q=12(d){13 a=d.1h.1Q;14"1v"===1j a?a:d.1h.1Q=1Y 5b(d)};b.1c.15.1h.1Q.2A="28";b.1c.15.1h.1Q.3l=12(d){13 a=d.1b;11(a&&"1Q"2h a){a=a.1Q;11(1j a!=="1v")a=d.1b.1Q={3i:a};11("3s"!==1j a.2a&&a.2a)a.2a=!!a.2a}};b.1F(w,b.1c.15.38,{1b:{1Q:{2a:w}}});b.1c.15.1h.1o=12(d){13 a=d.1h.1o;14"1v"===1j a?a:d.1h.1o=1Y 4p(d)};b.1c.15.1h.1o.2A="28";b.1c.15.1h.1o.3l=12(d){13 a=d.1n;11(a&&"1o"2h a){a=d.1n.1o;11(1j a!=="1v")d.1n.1o={1y:a};11(!/1I|3s/i.1O(1j a.1y))a.1y=w;1j a.1d!=="2R"&&33 a.1d;1j a.1e!=="2R"&&33 a.1e;1j a.1s!=="2R"&&a.1s!==w&&33 a.1s;1j a.1i!=="2R"&&33 a.1i}};b.1F(w,b.1c.15.38,{1n:{1o:{1y:w,3u:m,1d:8,1e:8,1s:w,1i:0}}});b.1c.15.1h.4e=12(d,a){12 l(z,O){2Q(13 k=0,o=1,c=1,v=0,C=0,g=z.1d,e=z.1e;g>0&&e>0&&o>0&&c>0;){g=1t.3y(g/2);e=1t.3y(e/2);11(a.x==="19")o=g;1f 11(a.x==="1D")o=z.1d-g;1f o+=1t.3y(g/2);11(a.y==="18")c=e;1f 11(a.y==="1C")c=z.1e-e;1f c+=1t.3y(e/2);2Q(k=O.1p;k--;){11(O.1p<2)2D;v=O[k][0]-z.1i.19;C=O[k][1]-z.1i.18;11(a.x==="19"&&v>=o||a.x==="1D"&&v<=o||a.x==="1J"&&(vz.1d-o)||a.y==="18"&&C>=c||a.y==="1C"&&C<=c||a.y==="1J"&&(Cz.1e-c))O.6B(k,1)}}14{19:O[0][0],18:O[0][1]}}13 h=d.1q("44").2F(),r=d.1q("6P").3f(","),i=[],n=b(\'3g[6Z="#\'+d.73("57").1q("42")+\'"]\'),x=n.1i(),q={1d:0,1e:0,1i:{18:3v,1D:0,1C:0,19:3v}},A=0,y=0;x.19+=1t.3B((n.3h()-n.1d())/2);x.18+=1t.3B((n.2T()-n.1e())/2);11(h==="5r")2Q(A=r.1p;A--;){y=[1R(r[--A],10),1R(r[A+1],10)];11(y[0]>q.1i.1D)q.1i.1D=y[0];11(y[0]q.1i.1C)q.1i.1C=y[1];11(y[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}('"5w 5x";(12(b,M,T){12 $(){13 d=M.85;14 d&&(d.3X||d.82||b.7Y).2F(d,2q)}12 W(d){13 a;11(!d||"1v"!==1j d)14 n;11("1v"!==1j d.2n)d.2n={1W:d.2n};11("1b"2c d){11("1v"!==1j d.1b||d.1b.1Y)d.1b={1G:d.1b};a=d.1b.1G||n;11(!b.2u(a)&&(!a&&!a.1q||a.1p<1||"1v"===1j a&&!a.1Y))d.1b.1G=n;11("1k"2c d.1b){11("1v"!==1j d.1b.1k)d.1b.1k={1G:d.1b.1k};a=d.1b.1k.1G||n;11(!b.2u(a)&&(!a&&!a.1q||a.1p<1||"1v"===1j a&&!a.1Y))d.1b.1k.1G=n}}11("1m"2c d)11("1v"!==1j d.1m)d.1m={1T:d.1m,2o:d.1m};11("17"2c d)11("1v"!==1j d.17)d.17=d.17.1Y?{1l:d.17}:{1u:d.17};11("1a"2c d)11("1v"!==1j d.1a)d.1a=d.1a.1Y?{1l:d.1a}:{1u:d.1a};11("1n"2c d)11("1v"!==1j d.1n)d.1n={3s:d.1n};b.1A(b.1c.15.1h,12(){16.3k&&16.3k(d)});14 d}12 4S(d,a,l,k){12 m(e){13 f,i=e.3f("."),q=a[i[0]];2S(e=1;e",{"27":"1L-3r-3t "+(a.1n.2y?"":N+"-3D"),1k:"4o 1C","26-5D":"4o 1C"}).7H(b("<5E />",{"27":"1L-3D 1L-3D-5F",2Q:"&5G;"}));e.1U.2X(e.1N).1q("4z","1U").4U(12(i){b(16).2C("1L-3r-4U",i.1W==="37")}).3W(12(i){g.2v(S)||c.1a(i);14 n}).1s("46 7I 4V 5H 6I",12(i){b(16).2C("1L-3r-6w 1L-3r-2H",i.1W.2T(-4)==="5K")});c.3b()}12 y(){13 e=c.1z,f=C+"-1k";e.1N&&r();e.1N=b("<2M />",{"27":N+"-1N "+(a.1n.2y?"1L-2y-4E":"")}).3G(e.1k=b("<2M />",{1w:f,"27":N+"-1k","26-3O":w})).6v(e.1b);11(a.1b.1k.1U)A();1f c.1B===w&&c.3b()}12 z(e){13 f=c.1z.1k;11(!c.1B||!e)14 n;11(b.2u(e))e=e.23(d,c)||"";e.1Y&&e.1p>0?f.4F().3G(e.1g({2z:"2Y"})):f.2Q(e);c.3b();c.1B===w&&c.2g(c.1x.1u)}12 O(e){13 f=c.1z.1b;11(!c.1B||!e)14 n;11(b.2u(e))e=e.23(d,c)||"";e.1Y&&e.1p>0?f.4F().3G(e.1g({2z:"2Y"})):f.2Q(e);g.3H("4m",12(i){12 q(u){s=s.3L(u);11(s.1p===0){c.3b();c.1B===w&&c.2g(c.1x.1u);i()}}13 s=f.5N("3g:3L([1d]):3L([1e])");s.1A(12(u,E){13 K=["5O","3X","2W","6s",""].5P(".15-6t ");b(16).1s(K,12(){22(c.1I.3g[u]);q(16)});(12 B(){11(E.1d)14 q(E);c.1I.3g[u]=39(B,20)})();14 w});s.1p===0&&q(s)});14 c}12 j(e,f,i,q){12 s(t){11(g.2v(S))14 n;G.17.2w("15-"+l+"-2i");22(c.1I.17);22(c.1I.1a);13 H=12(){c.17(t)};11(a.17.2r>0)c.1I.17=39(H,a.17.2r);1f H()}12 u(t){11(g.2v(S))14 n;13 H=b(t.4y||t.1l),J=H.6y(X)[0]===g[0];H=H[0]===G.17[0];22(c.1I.17);22(c.1I.1a);11(D.1l==="2a"&&J||a.1a.2j&&/2a(4w|4x|4l)/.1P(t.1W)&&(J||H)){t.6J();t.5S();14 n}g.4e(1,1);11(a.1a.2r>0)c.1I.1a=39(12(){c.1a(t)},a.1a.2r);1f c.1a(t)}12 E(t){11(g.2v(S))14 n;22(c.1I.2i);c.1I.2i=39(12(){c.1a(t)},a.1a.2i)}12 K(t){11(!c.1x.3N){c.1x.3N=1;o()&&c.2g(t);c.1x.3N=0}}13 B=".15-"+l,D=a.1m,G={17:a.17.1l,1a:a.1a.1l,1M:D.1M[0]===v?1V:D.1M},Q={17:35(a.17.1u).3f(" "),1a:35(a.1a.1u).3f(" ")},R=b(1V),I=b.21.2J&&1Q(b.21.3E,10)===6;11(i){11(a.1a.2j){G.1a=G.1a.2E(g);g.1s("6n"+B,12(){g.2v(S)||22(c.1I.1a)})}g.1s("37"+B+" 4g"+B,12(t){c[t.1W==="37"?"2H":"2t"](t)})}11(f){11("30"===1j a.1a.2i){G.17.1s("15-"+l+"-2i",E);b.1A(b.1c.15.4J,12(t,H){G.1a.2E(c.1z.1C).1s(H+B+"-2i",E)})}b.1A(Q.1a,12(t,H){13 J=b.5T(H,Q.17),L=b(G.1a);11(J>-1&&L.2E(G.17).1p===L.1p||H==="4s"){G.17.1s(H+B,12(P){o()?u(P):s(P)});2Z Q.17[J]}1f G.1a.1s(H+B,u)})}e&&b.1A(Q.17,12(t,H){G.17.1s(H+B,s)});11(q){11(D.2O.2x||D.2b)b(b.1u.5U.2x?D.2b:M).1s("2x"+B,K);11(D.2b||I&&g.1g("1m")==="2j")b(D.2b).1s("3P"+B,K);/4s/i.1P(a.1a.1u)&&R.1s("46"+B,12(t){13 H=b(t.1l);H.6r(X).1p===0&&H.2E(d).1p>1&&o()&&!g.2v(S)&&c.1a(t)});D.1l==="2a"&&R.1s("3Y"+B,12(t){11(D.2O.2a&&!g.2v(S)&&o())c.2g(t||b.1c.15.2a)})}}12 p(e,f,i,q){q=1Q(q,10)!==0;13 s=".15-"+l;f={17:e?a.17.1l:F,1a:f?a.1a.1l:F,1C:i?c.1z.1C:F,1b:i?c.1z.1b:F,1M:q?a.1m.1M[0]===v?1V:a.1m.1M:F,4d:q?M:F};11(c.1B)b([]).5V(b.5W([f.17,f.1a,f.1C,f.1M,f.1b,f.4d],12(){14 16!==5j})).1X(s);1f e&&f.17.1X(s+"-2I")}13 c=16,v=1V.3l,C=N+"-"+l,g;c.1w=l;c.1B=n;c.1z={1l:d};c.1I={3g:[]};c.2s=a;c.1h={};c.1x={1u:{},1l:F,2N:n,5m:v,1q:k};b.1F(c,{24:12(e){11(c.1B)14 n;13 f=c.1z,i=a.1b.1G,q=a.1b.1k.1G,s=b.3a("5X");b.1q(d[0],"26-3V",C);g=f.1C=b("<2M/>").1q({1w:C,"27":N+" 15 1L-4t-4u "+a.1n.3s,4z:"5Y","26-5Z":"60","26-3O":n,"26-3V":C+"-1b","26-3d":w}).2C(S,c.1x.2N).1R("15",c).2X(a.1m.1M).3G(f.1b=b("<2M />",{"27":N+"-1b",1w:C+"-1b","26-3O":w}));c.1B=w;11(q){y();z(q)}O(i);x();b.1A(b.1c.15.1h,12(){16.2G==="24"&&16(c)});j(1,1,1,1);b.1A(a.4j,12(u,E){11(E)g.1s(u==="2m"?"31 4f":"1C"+u,E)});g.1g("3v","3d").3H("4m",12(u){s.3j=c.1x.1u;g.2w(s,[c]);11(a.17.38||e)c.17(c.1x.1u);u()});14 c},3R:12(e){5e(e.2B()){36"5u":e={1d:g.32(),1e:g.3c()};2D;36"1i":e=h(g[0],a.1m.1M[0]);2D;3t:e=m(e.2B());e=e[0].1K?e[0].1H():e[0].1Y?e[0]:e[0][e[1]];2D}14 e},33:12(e,f){e=e.2B();13 i=m(e),q=c.1z,s,u,E,K={61:{"^1w$":12(){13 B=f===w?b.1c.15.3S:f,D=N+"-"+B;11(B!==n&&B.1p>0&&!b("#"+D).1p){g[0].1w=D;q.1b[0].1w=D+"-1b";q.1k[0].1w=D+"-1k"}},"^1b.1G$":12(){O(f)},"^1b.1k.1G$":12(){11(!f)14 r();!c.1z.1k&&f&&y();z(f)},"^1b.1k.1U$":12(){13 B=c.1z.1U,D=c.1z.1k;11(c.1B)11(f){D||y();A()}1f B.25()},"^1m.(1T|2o)$":12(){13 B=/1T$/i.1P(e)?"1T":"2o";11("1H"===1j f)a.1m[B]=1Z b.1c.15.1h.2L(f)},"^1m.1M$":12(){c.1B===w&&g.2X(f)},"^(17|1a).(1u|1l|2j|2r|2i)$":12(B,D,G,Q){13 R=e.42(/2j/i)>-1?[0,[0,1,1,1]]:[e.2T(0,3),e.3e(0)==="s"?[1,0,0,0]:[0,1,0,0]];11(R[0])B[D]=Q;p.2F(c,R[1]);11(R[0])B[D]=G;j.2F(c,R[1])},"^17.38$":12(){c.1B===n&&c.17()},"^1n.3s$":12(){b.1q(g[0],"27",N+" 15 1L-4t-4u "+f)},"^1n.2y|1b.1k":x,"^4j.(24|17|4l|1a|2H|2t)$":12(B,D,G){q.1C[(b.2u(f)?"":"62")+"1s"]("1C"+D,G)},"^1m.(1T|2o|2O|1l|1M)|1n|1b":12(){c.2g()}}};b.1A(c.1h,12(B){11("1v"===1j 16.3p)K[B]=16.3p});s=i[0][i[1]];i[0][i[1]]=f.63?b(f):f;W(a);2S(u 2c K)2S(E 2c K[u])64(E,"i").1P(e)&&K[u][E].23(c,i[0],i[1],f,s);14 c},2m:12(e,f){12 i(){11(e)b.21.2J&&g[0].1n.56("3m");1f g.1g({2z:"",3v:"3d",1e:"",4k:"",19:"",18:""})}11(c.1B===n)14 n;13 q=e?"17":"1a",s=a[q],u=o();11((1j e).42("3n|30"))e=!u;11(u===e)14 c;11(f){11(/65|66/.1P(f.1W)&&/4w|4x/.1P(c.1x.1u.1W)&&f.1l===a.17.1l[0]&&g.67(f.4y).1p)14 c;c.1x.1u=b.1F({},f)}u=b.3a("1C"+q);u.3j=f?c.1x.1u:F;g.2w(u,[c,3J]);11(u.48())14 c;b.1q(g[0],"26-3d",!!!e);11(e){g.1a().1g({3v:""});c.2H(f);c.2g(f,0);s.5q&&b(X).3L(g).15("1a")}1f{22(c.1I.17);c.2t(f)}g.4e(1,1);11(b.2u(s.2l)){s.2l.23(g,c);g.3H("4m",12(E){i.23(16,E);E()})}1f 11(s.2l===n){g[q]();i.23(g)}1f g.5s(3J,e?1:0,i);e&&s.1l.2w("15-"+l+"-2i");14 b.1c.15.69=c},17:12(e){c.2m(w,e)},1a:12(e){c.2m(n,e)},2H:12(e){11(c.1B===n)14 n;13 f=b(X),i=1Q(g[0].1n.3q,10),q=b.1c.15.4P+f.1p;e=b.1F({},e);11(!g.2v(Y)){11(i!==q){f.1A(12(){11(16.1n.3q>i)16.1n.3q-=1});f.3m("."+Y).15("2t",e)}c.1x.5m=1V.3U;f=b.3a("6c");f.3j=e;g.2w(f,[c,q]);11(!f.48())g.47(Y)[0].1n.3q=q}14 c},2t:12(e){e=b.1F({},e);13 f;g.4H(Y);f=b.3a("6d");f.3j=e;g.2w(f,[c])},2g:12(e,f){11(c.1B===n)14 n;13 i=a.1m.1l,q=a.1m,s=q.1T,u=q.2o,E=q.2O,K=g.3c(),B=g.32(),D=0,G=0,Q=b.3a("4h"),R=g.1g("1m")==="2j",I=q.2b.1Y?q.2b:b(M),t={19:0,18:0},H={19:12(J){13 L=I.2R,P=u.x==="19"?D:u.x==="1D"?-D:-D/2,U=L-J;L=J+K-I.1e-L;P=(s.x==="19"?K:s.x==="1D"?-K:-K/2)-(s.1K==="x"||s.x===s.y?P:0);11(U>0&&(s.x!=="19"||L>0))t.19-=P;1f 11(L>0&&(s.x!=="1D"||U>0))t.19-=(s.x==="1J"?-1:1)*P+2*E.x;11(t.19<0&&-t.19>L)t.19=J;14 t.19-J},18:12(J){13 L=I.2P,P=u.y==="18"?G:u.y==="1E"?-G:-G/2,U=L-J;L=J+B-I.1d-L;P=(s.y==="18"?B:s.y==="1E"?-B:-B/2)-(s.1K==="y"||s.x===s.y?P:0);11(U>0&&(s.y!=="18"||L>0))t.18-=P;1f 11(L>0&&(s.y!=="1E"||U>0))t.18-=(s.y==="1J"?-1:1)*P+2*E.y;11(t.18<0&&-t.18>L)t.18=J;14 t.18-J}};f=f===T||!!f||n;I=!I?n:{4C:I,1d:I[(I[0]===M?"h":"6g")+"6h"](),1e:I[(I[0]===M?"w":"7Z")+"6i"](),2R:I.2R(),2P:I.2P()};11(i==="2a"){u={x:"19",y:"18"};e=e&&(e.1W==="2x"||e.1W==="3P")?c.1x.1u:E.2a||!e||!e.3w?b.1F({},b.1c.15.2a):e;t={18:e.3T,19:e.3w}}1f{11(i==="1u")i=e&&e.1l&&e.1W!=="3P"&&e.1W!=="2x"?c.1x.1l=b(e.1l):c.1x.1l;i=b(i).6j(0);11(i.1p===0)14 c;1f 11(i[0]===1V||i[0]===M){D=i.1e();G=i.1d();11(i[0]===M)t={18:R?0:I.2P,19:R?0:I.2R}}1f 11(i.4n("6k")&&b.1c.15.1h.4b){t=b.1c.15.1h.4b(i,u);D=t.1e;G=t.1d;t=t.1i}1f 11(i[0].7R=="7Q://7P.6m.6o/6p/3y"&&b.1c.15.1h.3y){t=b.1c.15.1h.3y(i,u);D=t.1e;G=t.1d;t=t.1i}1f{D=i.3c();G=i.32();t=h(i[0],q.1M[0])}t.19+=u.x==="1D"?D:u.x==="1J"?D/2:0;t.18+=u.y==="1E"?G:u.y==="1J"?G/2:0}t.19+=E.x+(s.x==="1D"?-K:s.x==="1J"?-K/2:0);t.18+=E.y+(s.y==="1E"?-B:s.y==="1J"?-B/2:0);t.3Z=q.2b.1Y&&i[0]!==M&&i[0]!==v?{19:H.19(t.19),18:H.18(t.18)}:{19:0,18:0};g.1q("27",12(){14 b.1q(16,"27").2K(/1L-1C-4B-\\w+/i,"")}).47(N+"-4B-"+s.4X());Q.3j=b.1F({},e);g.2w(Q,[c,t,I.4C]);11(Q.48())14 c;2Z t.3Z;11(!f||!6u(t.19,t.18))g.1g(t);1f 11(o()&&b.2u(q.2l)){q.2l.23(g,c,t);g.3H(12(J){b(16).1g({4k:"",1d:""});b.21.2J&&16.1n&&16.1n.56("3m");J()})}14 c},3b:12(){11(!c.1B||!(b.21.2J&&b.21.3E<8))14 n;13 e=N+"-6x",f;g.1g({1e:"4G",1d:"4G"}).47(e);f={1d:g.32(),1e:g.3c()};b.1A(["1e","1d"],12(i,q){13 s=1Q(g.1g("2V-"+q),10)||0,u=1Q(g.1g("55-"+q),10)||0;f[q]=s+u?1t.55(1t.2V(f[q],u),s):f[q]});g.1g(f).4H(e)},3Q:12(e){13 f=S;11("3n"!==1j e)e=!(g.2v(f)||c.1x.2N);11(c.1B){g.2C(f,e);b.1q(g[0],"26-2N",e)}1f c.1x.2N=!!e;14 c},2h:12(){13 e=d[0],f=b.1R(e,V);11(c.1B){g.25();b.1A(c.1h,12(){16.2G==="24"&&16.2h()})}22(c.1I.17);22(c.1I.1a);p(1,1,1,1);b.4L(e,"15");f&&b.1q(e,"1k",f);d.3I("26-3V");14 d}})}12 4q(d,a){13 l,k,m,h,o=b(16),x=b(1V.3l),r=16===1V?x:o;k=o.2n?o.2n(a.2n):F;h=a.2n.1W==="7l"&&k?k[a.2n.43]:F;13 A=o.1R(a.2n.43||"7k");6C{A=1j A==="1H"?(1Z 6D("14 "+A))():A}6E(y){$("6F 6G 6H 7d 6K 1R: "+A)}h=b.1F(w,{},b.1c.15.3o,a,1j A==="1v"?W(A):F,W(h||k));k&&b.4L(16,"2n");k=h.1m;11("3n"===1j h.1b.1G){m=o.1q(h.1b.1q);11(h.1b.1q!==n&&m)h.1b.1G=m;1f 14 n}11(k.1M===n)k.1M=x;11(k.1l===n)k.1l=r;11(h.17.1l===n)h.17.1l=r;11(h.1a.1l===n)h.1a.1l=r;11(h.1m.2b===w)h.1m.2b=k.1M;k.2o=1Z b.1c.15.1h.2L(k.2o);k.1T=1Z b.1c.15.1h.2L(k.1T);11(b.1R(16,"15"))11(h.4a)o.15("2h");1f 11(h.4a===n)14 n;11(b.1q(16,"1k")){b.1R(16,V,b.1q(16,"1k"));o.3I("1k")}l=1Z 4S(o,h,d,!!m);b.1R(16,"15",l);o.1s("25.15",12(){l.2h()});14 l}12 5h(d){13 a=16,l=d.1z.1C,k=d.2s.1b.1S;a.3p={"^1b.1S":12(m,h){11(h==="2e")a.2e();1f k&&k.3i&&a.2W()}};b.1F(a,{2f:12(){11(k&&k.3i){a.2W();l.6M("31",a.2e)}},2e:12(){k.2e?a.2h():l.1s("31.15-1S",a.2W)},2W:12(){b.1S(b.1F({6N:12(m){d.33("1b.1G",m)},3X:12(m,h,o){d.33("1b.1G",h+": "+o)},75:d},k));14 a},2h:12(){l.1X(".15-1S")}});a.2f()}12 51(d,a,l){13 k=1t.3F(a/2),m=1t.3F(l/2);a={4M:[[0,0],[a,l],[a,0]],4N:[[0,0],[a,0],[0,l]],4O:[[0,l],[a,0],[a,l]],4Q:[[0,0],[0,l],[a,l]],6P:[[0,l],[k,0],[a,l]],73:[[0,0],[a,0],[k,l]],6Q:[[0,0],[a,m],[0,l]],6S:[[a,0],[a,l],[0,m]]};a.6T=a.4M;a.6U=a.4N;a.6V=a.4O;a.6X=a.4Q;14 a[d.1H()]}12 4r(d){12 a(j,p,c){11(o.1o){j=b.1F({},m.1y);p=c.3Z;13 v;11(m.1y.2j!==w){11(p.19)j.x=j.x==="1J"?p.19>0?"19":"1D":j.x==="19"?"1D":"19";11(p.18)j.y=j.y==="1J"?p.18>0?"18":"1E":j.y==="18"?"1E":"18";11(j.1H()!==r.1y&&(r.18!==p.18||r.19!==p.19))v=m.3h(j)}v||(v=m.1m(j,0));11(v.1D!==T)v.19=v.1D;11(v.1E!==T)v.18=v.1E;v.3z=1t.2V(0,h.1i);c.19-=v.19.3e?v.3z:(v.1D?-1:1)*v.19;c.18-=v.18.3e?v.3z:(v.1E?-1:1)*v.18;r.19=p.19;r.18=p.18;r.1y=j.1H()}}12 l(j,p,c){p=!p?j[j.1K]:p;p="1r-"+p+"-1e";j=1Q((o.1N&&j.y==="18"?o.1N:o.1b).1g(p),10);14(c?j||1Q(x.1g(p),10):j)||0}12 k(j){13 p=j.1K==="y",c=A[p?"1e":"1d"],v=A[p?"1d":"1e"],C=j.1H().58("1J")>-1,g=c*(C?0.5:1),e=1t.70;j=1t.4c;13 f=1t.41(e(g,2)+e(v,2));g=[z/g*f,z/v*f];g[2]=1t.41(e(g[0],2)-e(z,2));g[3]=1t.41(e(g[1],2)-e(z,2));C=(f+g[2]+g[3]+(C?0:g[0]))/f;c=[j(C*v),j(C*c)];14{1d:c[p?0:1],1e:c[p?1:0]}}13 m=16,h=d.2s.1n.1o,o=d.1z,x=o.1C,r={18:0,19:0,1y:""},A={1e:h.1e,1d:h.1d},y={},z=h.1r||0,O=b("<4W />")[0].45;m.1y=F;m.3u=F;m.3p={"^1m.1T|1n.1o.(1y|3u|1r)$":12(){m.2f()||m.2h();d.2g()},"^1n.1o.(1d|1e)$":12(){A={1e:h.1e,1d:h.1d};m.2I();m.3h();d.2g()},"^1b.1k.1G|1n.(3s|2y)$":12(){o.1o&&m.3h()}};b.1F(m,{2f:12(){13 j=m.4R()&&(O||b.21.2J);11(j){m.2I();m.3h();x.1X(".15-1o").1s("4h.15-1o",a)}14 j},4R:12(){13 j=h.1y,p=d.2s.1m,c=p.2o;p=p.1T.1H?p.1T.1H():p.1T;11(j===n||p===n&&c===n)14 n;1f 11(j===w)m.1y=1Z b.1c.15.1h.2L(p);1f 11(!j.1H){m.1y=1Z b.1c.15.1h.2L(j);m.1y.2j=w}14 m.1y.1H()!=="5v"},4Y:12(){13 j=o.1o.1g({72:"",1r:""}),p=m.1y,c=p[p.1K],v="1r-"+c+"-2A";c="1r"+c.3e(0)+c.2T(1)+"74";13 C=/76?\\(0, 0, 0(, 0)?\\)|2U/i;p=o.1N&&(p.y==="18"||p.y==="1J"&&j.1m().18+A.1d/2+h.1i",{"27":"1L-1C-1o"}).1g({1e:j,1d:p}).79(x);11(O)b("<4W />").2X(o.1o)[0].45("2d").52();1f{j=\'<49:44 7a="0,0" 1n="2z:2Y; 1m:4i; 5g:3i(#3t#5i);">\';o.1o.2Q(z?j+=j:j)}},3h:12(j){13 p=o.1o,c=p.7b(),v=A.1e,C=A.1d,g=h.3u,e=1t.4c,f,i,q;11(!j)j=m.1y;11(g===n)g=j;1f{g=1Z b.1c.15.1h.2L(g);g.1K=j.1K;11(g.x==="3C")g.x=j.x;1f 11(g.y==="3C")g.y=j.y;1f 11(g.x===g.y)g[j.1K]=j[j.1K]}f=g.1K;m.4Y();z=y.1r==="2U"||y.1r==="#7c"?0:h.1r===w?l(j,F,w):h.1r;i=51(g,v,C);q=k(j);p.1g(q);p=j.1K==="y"?[e(g.x==="19"?z:g.x==="1D"?q.1e-v-z:(q.1e-v)/2),e(g.y==="18"?q.1d-C:0)]:[e(g.x==="19"?q.1e-v:0),e(g.y==="18"?z:g.y==="1E"?q.1d-C-z:(q.1d-C)/2)];11(O){c.1q(q);c=c[0].45("2d");c.7g();c.52();c.7i(0,0,53,53);c.7m(p[0],p[1]);c.7n();c.7p(i[0][0],i[0][1]);c.54(i[1][0],i[1][1]);c.54(i[2][0],i[2][1]);c.7r();c.7s=y.2p;c.7u=y.1r;c.7v=z*2;c.7x="5f";c.7y=7A;c.5c();c.2p()}1f{i="m"+i[0][0]+","+i[0][1]+" l"+i[1][0]+","+i[1][1]+" "+i[2][0]+","+i[2][1]+" 7B";p[2]=z&&/^(r|b)/i.1P(j.1H())?1:0;c.1g({7E:""+(g.1H().58("1J")>-1),19:p[0]-p[2]*59(f==="x"),18:p[1]-p[2]*59(f==="y"),1e:v+z,1d:C+z}).1A(12(s){13 u=b(16);u.1q({7G:v+z+" "+(C+z),7J:i,7K:y.2p,7M:!!s,7N:!!!s}).1g({2z:z||s?"2Y":"5p"});!s&&z>0&&u.2Q()===""&&u.2Q(\'<49:5c 7O="\'+z*2+\'7S" 2A="\'+y.1r+\'" 7T="7V" 7W="5f" 1n="5g:3i(#3t#5i); 2z:2Y;" />\')})}14 m.1m(j,1)},1m:12(j,p){13 c=o.1o,v={},C=1t.2V(0,h.1i),g,e,f;11(h.1y===n||!c)14 n;j=j||m.1y;g=j.1K;e=k(j);f=b.21.2J&&z&&/^(b|r)/i.1P(j.1H())?1:0;b.1A(g==="y"?[j.x,j.y]:[j.y,j.x],12(i,q){13 s,u;11(q==="1J"){s=g==="y"?"19":"18";v[s]="50%";v["5n-"+s]=-1t.4c(e[g==="y"?"1e":"1d"]/2)+C}1f{s=l(j,q,w);u=b.21.80;13 E=j.y+(u?"":"-")+j.x;u=(u?"-81-":b.21.5k?"-5k-":"")+(u?"1r-5l-"+E:"1r-"+E+"-5l");u=1Q((o.1N&&j.y==="18"?o.1N:o.1b).1g(u),10)||1Q(x.1g(u),10)||0;v[q]=i||!z?l(j,q):C+(u>s?u:0)}});v[j[g]]-=e[g==="x"?"1e":"1d"]+f;p&&c.1g({18:"",1E:"",19:"",1D:"",5n:""}).1g(v);14 v},2h:12(){o.1o&&o.1o.25();x.1X(".15-1o")}});m.2f()}12 57(d){13 a=16,l=d.2s.17.1O,k=d.1z,m=k.1C;a.3p={"^17.1O.(34|2t)$":12(){a.2f();k.28.2m(m.4n(":5o"))}};b.1F(a,{2f:12(){11(l.34){m.1X(".2k").1s("31.2k 4f.2k",12(h,o,x){h=h.1W.2K("1C","");b.2u(l[h])?l[h].23(k.28,x,o):a[h](x)});a.2I();l.2t===w&&k.28.1X(".2k"+d.1w).1s("3W.2k"+d.1w,12(){d.1a.23(d)})}},2I:12(){13 h=b("#15-28");11(h.1p)k.28=h;1f{k.28=b("<2M />",{1w:"#15-28".2T(1),1g:{1m:"4i",18:0,19:0,2z:"5p",3q:1Q(m.1g("z-5t"),10)-1}}).2X(1V.3l);b(M).1s("2x.2k",12(){k.28.1g({1d:1t.2V(b(M).1d(),b(1V).1d()),1e:1t.2V(b(M).1e(),b(1V).1e())})}).2w("2x")}},2m:12(h){13 o=k.28,x=d.2s.17.1O.2l,r=h?"17":"1a";o.4e(w,n);11(b.2u(x))x.23(o,h);1f x===n?o[r]():o.5s(3J,h?0.7:0,12(){h||b(16).1a()})},17:12(){a.2m(w)},1a:12(){a.2m(n)},2h:12(){13 h=w;b("*").1A(12(){13 o=b(16).1R("15");11(o&&o.1w!==d.1w&&o.2s.17.1O)14 h=n});11(h){k.28.25();b(M).1X(".2k")}1f k.28.1X(".2k"+d.1w);m.1X("31.2k 4f.2k")}});a.2f()}12 4K(d){13 a=16,l=d.1z,k=l.1C,m=".29-"+d.1w,h="4h"+m+" 31"+m;b.1F(a,{2f:12(){l.29=b(\'<3M 27="1L-1C-29" 88="0" 89="-1" 8a="8b:\\\'\\\';" 1n="2z:2Y; 1m:4i; z-5t:-1; 3m:8c(4k=0);">\');l.29.2X(k);k.1s(h,a.2O)},2O:12(){13 o=d.3R("5u"),x=d.1h.1o,r=d.1z.1o,A;A=1Q(k.1g("1r-19-1e"),10)||0;A={19:-A,18:-A};11(x&&r){x=x.1y.1K==="x"?["1e","19"]:["1d","18"];A[x[1]]-=r[x[0]]()}l.29.1g(A).1g(o)},2h:12(){a.3M.25();k.1X(h)}});a.2f()}13 w=4I,n=5y,F=5j,N="1L-1C",Z="1L-2y",S="1L-3r-2N",X="2M.15."+N,Y=N+"-2H",4T="-5I",V="5J";b.1c.15=12(d,a,l){13 k=35(d).2B(),m=F,h=k==="3Q"?[w]:b.5L(2q).4p(1,10),o=h[h.1p-1],x=16[0]?b.1R(16[0],"15"):F;11(!2q.1p&&x||k==="5M")14 x;1f 11("1H"===1j d){16.1A(12(){13 r=b.1R(16,"15");11(!r)14 w;11(/3z|33/.1P(k)&&a)11(l!==T)r.33(a,l);1f m=r.3R(a);1f{11(!r.1B&&(k==="17"||k==="2m")){11(o&&o.5Q)r.1x.1u=o;r.24(1)}1f 11(k==="5R"){k="3Q";h=[n]}r[k]&&r[k].2F(r[k],h)}});14 m!==F?m:16}1f 11("1v"===1j d||!2q.1p){x=W(b.1F(w,{},d));14 b.1c.15.1s.23(16,x,o)}};b.1c.15.1s=12(d,a){14 16.1A(12(){12 l(A){12 y(){r.24(1j A==="1v"||k.17.38);m.17.1X(h.17);m.1a.1X(h.1a)}11(r.1x.2N)14 n;r.1x.1u=b.1F({},A);11(k.17.2r>0){22(r.1I.17);r.1I.17=39(y,k.17.2r);h.17!==h.1a&&m.1a.1s(h.1a,12(){22(r.1I.17)})}1f y()}13 k,m,h,o=d.1w=!d.1w||d.1w===n||d.1w.1p<1||b("#"+N+"-"+d.1w).1p?b.1c.15.3S++:d.1w,x=".15-"+o+"-2I",r=4q.23(16,o,d);11(r===n)14 w;k=r.2s;b.1A(b.1c.15.1h,12(){16.2G==="2G"&&16(r)});m={17:k.17.1l,1a:k.1a.1l};h={17:35(k.17.1u).2K(" ",x+" ")+x,1a:35(k.1a.1u).2K(" ",x+" ")+x};m.17.1s(h.17,l);11(k.17.38||k.5b)l(a)})};b.1A({1q:12(d,a){11(16.1p){13 l=16[0],k=b.1R(l,"15");11(d==="1k")11(2q.1p<2)14 b.1R(l,V);1f 11(1j k==="1v"){k&&k.1B&&k.2s.1b.1q==="1k"&&k.1x.1q&&k.33("1b.1G",a);b.1c.68.2F(16,2q);b.1R(l,V,b.1q(l,"1k"));14 16.3I("1k")}}},6a:12(){13 d=b([]),a;b("*",16).2E(16).1A(12(){13 l=b.1R(16,V);11(l){b.1q(16,"1k",l);d=d.2E(16)}});a=b.1c.6e.2F(16,2q);d.3I("1k");14 a},25:b.1L?F:12(d,a){b(16).1A(12(){11(!a)11(!d||b.3m(d,[16]).1p)b("*",16).2E(16).1A(12(){b(16).6l("25")})})}},12(d,a){11(!a)14 w;13 l=b.1c[d+"6q"]=b.1c[d];b.1c[d]=12(){14 a.2F(16,2q)||l.2F(16,2q)}});b(M).2W(12(){13 d=1V,a=d.3l;b(d).1s("3Y.15",12(l){b.1c.15.2a={3w:l.3w,3T:l.3T}});d.3U===T&&d.6A("2H",12(l){11(l&&l.1l)d.3U=l.1l===d?a:l.1l},4I)});b.1c.15.3E="2.0.6B";b.1c.15.3S=0;b.1c.15.4J="3W 6L 46 4V 3Y 4g 37".3f(" ");b.1c.15.4P=6R;b.1c.15.1h={2L:12(d){d=35(d).2K(/([A-Z])/," $1").2K(/6Y/6Z,"1J").2B();16.x=(d.40(/19|1D/i)||d.40(/1J/)||["3C"])[0].2B();16.y=(d.40(/18|1E|1J/i)||["3C"])[0].2B();16.1K=d.3e(0).42(/^(t|b)/)>-1?"y":"x";16.1H=12(){14 16.1K==="y"?16.y+16.x:16.x+16.y};16.4X=12(){13 a=16.x.2T(0,1),l=16.y.2T(0,1);14 a===l?a:a==="c"||a!=="c"&&l!=="c"?l+a:a+l}},4Z:7e((/7h.+7j ([0-7o]{3}).*7q.*7t/i.7w(7z.7C)||[0,"7F"])[1].2K("7L","."))<4.1};b.1c.15.3o={5b:n,1w:n,4a:w,1b:{1G:w,1q:"1k",1k:{1G:n,1U:n}},1m:{1T:"18 19",2o:"1E 1D",1l:n,1M:n,2b:n,2O:{x:0,y:0,2a:w,2x:w},2l:w},17:{1l:n,1u:"37",2l:w,2r:3J,5q:n,38:n},1a:{1l:n,1u:"4g",2l:w,2r:0,2j:n,2i:n},1n:{3s:"",2y:n},4j:{24:F,4l:F,17:F,1a:F,2m:F,2H:F,2t:F}};b.1c.15.1h.1S=12(d){13 a=d.1h.1S;14"1v"===1j a?a:d.1h.1S=1Z 5h(d)};b.1c.15.1h.1S.2G="24";b.1c.15.1h.1S.3k=12(d){13 a=d.1b;11(a&&"1S"2c a){a=a.1S;11(1j a!=="1v")a=d.1b.1S={3i:a};11("3n"!==1j a.2e&&a.2e)a.2e=!!a.2e}};b.1F(w,b.1c.15.3o,{1b:{1S:{2e:w}}});b.1c.15.1h.1o=12(d){13 a=d.1h.1o;14"1v"===1j a?a:d.1h.1o=1Z 4r(d)};b.1c.15.1h.1o.2G="24";b.1c.15.1h.1o.3k=12(d){13 a=d.1n;11(a&&"1o"2c a){a=d.1n.1o;11(1j a!=="1v")d.1n.1o={1y:a};11(!/1H|3n/i.1P(1j a.1y))a.1y=w;1j a.1e!=="30"&&2Z a.1e;1j a.1d!=="30"&&2Z a.1d;1j a.1r!=="30"&&a.1r!==w&&2Z a.1r;1j a.1i!=="30"&&2Z a.1i}};b.1F(w,b.1c.15.3o,{1n:{1o:{1y:w,3u:n,1e:8,1d:8,1r:w,1i:0}}});b.1c.15.1h.4b=12(d,a){12 l(z,O){2S(13 j=0,p=1,c=1,v=0,C=0,g=z.1e,e=z.1d;g>0&&e>0&&p>0&&c>0;){g=1t.3x(g/2);e=1t.3x(e/2);11(a.x==="19")p=g;1f 11(a.x==="1D")p=z.1e-g;1f p+=1t.3x(g/2);11(a.y==="18")c=e;1f 11(a.y==="1E")c=z.1d-e;1f c+=1t.3x(e/2);2S(j=O.1p;j--;){11(O.1p<2)2D;v=O[j][0]-z.1i.19;C=O[j][1]-z.1i.18;11(a.x==="19"&&v>=p||a.x==="1D"&&v<=p||a.x==="1J"&&(vz.1e-p)||a.y==="18"&&C>=c||a.y==="1E"&&C<=c||a.y==="1J"&&(Cz.1d-c))O.6z(j,1)}}14{19:O[0][0],18:O[0][1]}}13 k=d.1q("44").2B(),m=d.1q("6O").3f(","),h=[],o=b(\'3g[6W="#\'+d.71("5a").1q("43")+\'"]\'),x=o.1i(),r={1e:0,1d:0,1i:{18:3A,1D:0,1E:0,19:3A}},A=0,y=0;x.19+=1t.3F((o.3c()-o.1e())/2);x.18+=1t.3F((o.32()-o.1d())/2);11(k==="5r")2S(A=m.1p;A--;){y=[1Q(m[--A],10),1Q(m[A+1],10)];11(y[0]>r.1i.1D)r.1i.1D=y[0];11(y[0]r.1i.1E)r.1i.1E=y[1];11(y[1]