diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 112562bb..0de042c0 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: Wed Jan 19 13:16:32 2011 +0000 +* Date: Wed Jan 19 14:31:31 2011 +0000 */ /* Fluid class for determining actual width in IE */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 8eed8004..5e902ee0 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: Wed Jan 19 13:16:32 2011 +0000 +* Date: Wed Jan 19 14:31:31 2011 +0000 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -30,7 +30,9 @@ disabled = 'ui-state-disabled', selector = 'div.qtip.'+uitooltip, focusClass = uitooltip + '-focus', - hideOffset = '-31000px'; + hideOffset = '-31000px', + replaceSuffix = '_replacedByqTip', + oldtitle = 'oldtitle'; // Option object sanitizer @@ -643,7 +645,7 @@ function QTip(target, options, id, attr) callback = $.Event('tooltiprender'); // Add ARIA attributes to target - target.attr({ 'aria-describedby': tooltipID }); + $.attr(target[0], 'aria-describedby', tooltipID); // Create tooltip element tooltip = elements.tooltip = $('
') @@ -807,7 +809,7 @@ function QTip(target, options, id, attr) // Style checks '^style.classes$': function() { - tooltip.attr('class', uitooltip + ' qtip ui-helper-reset ' + value); + $.attr(tooltip[0], 'class', uitooltip + ' qtip ui-helper-reset ' + value); }, '^style.widget|content.title': setWidget, @@ -882,7 +884,7 @@ function QTip(target, options, id, attr) if(callback.isDefaultPrevented()){ return self; } // Set ARIA hidden status attribute - tooltip.attr('aria-hidden', !!!state); + $.attr(tooltip[0], 'aria-hidden', !!!state); // Execute state specific properties if(state) { @@ -1153,7 +1155,7 @@ function QTip(target, options, id, attr) // Set tooltip position class tooltip.attr('class', function(i, val) { - return $(this).attr('class').replace(/ui-tooltip-pos-\w+/i, ''); + return $.attr(this, 'class').replace(/ui-tooltip-pos-\w+/i, ''); }) .addClass(uitooltip + '-pos-' + my.abbreviation()); @@ -1226,7 +1228,7 @@ function QTip(target, options, id, attr) if(self.rendered) { tooltip.toggleClass(c, state); - tooltip.attr('aria-disabled', state); + $.attr(tooltip[0], 'aria-disabled', state); } else { self.cache.disabled = !!state; @@ -1237,7 +1239,8 @@ function QTip(target, options, id, attr) destroy: function() { - var oldtitle = $.data(target[0], 'oldtitle'); + var t = target[0], + oldtitle = $.data(t, oldtitle); // Destroy tooltip and any associated plugins if rendered if(self.rendered) { @@ -1254,11 +1257,11 @@ function QTip(target, options, id, attr) unassignEvents(1, 1, 1, 1); // Remove api object - target.removeData('qtip'); + $.removeData(t, 'qtip'); // Reset old title attribute if removed if(oldtitle) { - target.attr('title', oldtitle); + $.attr(t, 'title', oldtitle); } // Remove ARIA attributse @@ -1272,7 +1275,7 @@ function QTip(target, options, id, attr) // Initialization method function init(id, opts) { - var obj, posOptions, usedAttr, + var obj, posOptions, attr, usedAttr, // Setup element references elem = $(this), @@ -1289,17 +1292,18 @@ function init(id, opts) // Merge in our sanitized metadata and remove metadata object so we don't interfere with other metadata calls config = $.extend(TRUE, {}, $.fn.qtip.defaults, opts, sanitizeOptions(metadata5 || metadata)); - elem.removeData('metadata'); + $.removeData(this, 'metadata'); // Re-grab our positioning options now we've merged our metadata posOptions = config.position; // Setup missing content if none is detected if('boolean' === typeof config.content.text) { - + var attr = $.attr(this, config.content.attr); + // Grab from supplied attribute if available - if(config.content.attr !== FALSE && elem.attr(config.content.attr)) { - config.content.text = elem.attr(config.content.attr); + if(config.content.attr !== FALSE && attr) { + config.content.text = attr; usedAttr = config.content.attr; } @@ -1331,8 +1335,8 @@ function init(id, opts) } // Remove title attribute and store it if present - if(elem.attr('title')) { - $.data(this, 'oldtitle', elem.attr('title')); + if($.attr(this, 'title')) { + $.data(this, oldtitle, $.attr(this, 'title')); elem.removeAttr('title'); } @@ -1483,14 +1487,14 @@ $.each({ if(attr === 'title') { if(arguments.length === 1) { - return $.data(self, 'oldtitle'); + return $.data(self, oldtitle); } else { // If qTip is rendered and title was originally used as content, update it if(api && api.rendered && api.options.content.attr === 'title' && api.cache.attr) { api.set('content.text', val); } - return $.data(self, 'oldtitle', val); + return $.data(self, oldtitle, val); } } }, @@ -1501,7 +1505,7 @@ $.each({ // Re-add cached titles before we clone $('*', this).each(function() { - var oldtitle = $.data(this, 'oldtitle'); + var oldtitle = $.data(this, oldtitle); if(oldtitle) { $.attr(this, 'title', oldtitle); titles = titles.add(this); @@ -1509,7 +1513,7 @@ $.each({ }); // Clone our element using the real clone method - elem = $.fn.Oldclone.apply(this, arguments); + elem = $.fn['clone'+replaceSuffix].apply(this, arguments); // Remove the old titles again titles.removeAttr('title'); @@ -1535,9 +1539,10 @@ $.each({ }, function(name, func) { if(!func) { return TRUE; } - $.fn['Old'+name] = $.fn[name]; + + var old = $.fn[name+replaceSuffix] = $.fn[name]; $.fn[name] = function() { - return func.apply(this, arguments) || $.fn['Old'+name].apply(this, arguments); + return func.apply(this, arguments) || old.apply(this, arguments); }; }); diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 21526ba5..37b95e2a 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,72 +9,72 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Jan 19 13:16:32 2011 +0000 +* Date: Wed Jan 19 14:31:31 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,O,T){function X(d){var a;if(!d)return o;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||o;if(!b.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))d.content.text=o;if("title"in d.content){if("object"!==typeof d.content.title)d.content.title={text:d.content.title};a=d.content.title.text||o;if(!b.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"=== -typeof a&&!a.jquery))d.content.title.text=o}}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 Z(d,a,m,l){function r(e){var g, -i=e.split("."),q=a[i[0]];for(e=1;e",{"class":"ui-state-default "+ -(a.style.widget?"":M+"-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){f.hasClass(S)||c.hide(i);return o}).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,g=B+"-title";e.titlebar&&k();e.titlebar=b("
",{"class":M+"-titlebar "+(a.style.widget?"ui-widget-header":"")}).append(e.title=b("
",{id:g,"class":M+"-title","aria-atomic":w})).insertBefore(e.content);if(a.content.title.button)D();else c.rendered===w&&c.redraw()}function z(e){var g=c.elements.title;if(!c.rendered||!e)return o;if(b.isFunction(e))e=e.call(d,c)||"";e.jquery&&e.length>0?g.empty().append(e.css({display:"block"})):g.html(e);c.redraw();c.rendered===w&&c.reposition(c.cache.event)} -function N(e){var g=c.elements.content;if(!c.rendered||!e)return o;if(b.isFunction(e))e=e.call(d,c)||"";e.jquery&&e.length>0?g.empty().append(e.css({display:"block"})):g.html(e);f.queue("fx",function(i){function q(u){n=n.not(u);if(n.length===0){c.redraw();c.rendered===w&&c.reposition(c.cache.event);i()}}var n=g.find("img:not([height]):not([width])");n.each(function(u,F){var K=["abort","error","load","unload",""].join(".qtip-image ");b(this).bind(K,function(){clearTimeout(c.timers.img[u]);q(this)}); -(function A(){if(F.height)return q(F);c.timers.img[u]=setTimeout(A,20)})();return w});n.length===0&&q(n)});return c}function h(e,g,i,q){function n(t){if(f.hasClass(S))return o;G.show.trigger("qtip-"+m+"-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(f.hasClass(S))return o;var H=b(t.relatedTarget||t.target),J=H.parents(V)[0]===f[0];H=H[0]===G.show[0];clearTimeout(c.timers.show); -clearTimeout(c.timers.hide);if(a.hide.fixed&&(C.target==="mouse"&&J||/mouse(out|leave|move)/.test(t.type)&&(J||H))){t.stopPropagation();t.preventDefault();return o}f.stop(1,1);if(a.hide.delay>0)c.timers.hide=setTimeout(function(){c.hide(t)},a.hide.delay);else c.hide(t)}function F(t){if(f.hasClass(S))return o;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;s()&&c.reposition(t);c.cache.processing= -0}}var A=".qtip-"+m,C=a.position,G={show:a.show.target,hide:a.hide.target,container:C.container[0]===v?document:C.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(f);f.bind("mouseover"+A,function(){f.hasClass(S)||clearTimeout(c.timers.hide)})}f.bind("mouseenter"+A+" mouseleave"+A,function(t){c[t.type==="mouseenter"?"focus":"blur"](t)})}if(g){if("number"=== -typeof a.hide.inactive){G.show.bind("qtip-"+m+"-inactive",F);b.each(b.fn.qtip.inactiveEvents,function(t,H){G.hide.add(c.elements.tooltip).bind(H+A+"-inactive",F)})}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+A,function(P){s()?u(P):n(P)});delete Q.show[J]}else G.hide.bind(H+A,u)})}e&&b.each(Q.show,function(t,H){G.show.bind(H+A,n)});if(q){if(C.adjust.resize||C.viewport)b(b.event.special.resize?C.viewport:O).bind("resize"+ -A,K);if(C.viewport||I&&f.css("position")==="fixed")b(C.viewport).bind("scroll"+A,K);/unfocus/i.test(a.hide.event)&&R.bind("mousedown"+A,function(t){var H=b(t.target);H.parents(V).length===0&&H.add(d).length>1&&s()&&!f.hasClass(S)&&c.hide(t)});C.target==="mouse"&&R.bind("mousemove"+A,function(t){if(C.adjust.mouse&&!f.hasClass(S)&&s())c.reposition(t||b.fn.qtip.mouse)})}}function p(e,g,i,q){q=parseInt(q,10)!==0;var n=".qtip-"+m;g={show:e?a.show.target:E,hide:g?a.hide.target:E,tooltip:i?c.elements.tooltip: -E,content:i?c.elements.content:E,container:q?a.position.container[0]===v?document:a.position.container:E,window:q?O:E};if(c.rendered)b([]).pushStack(b.grep([g.show,g.hide,g.tooltip,g.container,g.content,g.window],function(){return this!==null})).unbind(n);else e&&g.show.unbind(n+"-create")}var c=this,v=document.body,B=M+"-"+m,f;c.id=m;c.rendered=o;c.elements={target:d};c.timers={img:[]};c.options=a;c.plugins={};c.cache={event:{},target:E,disabled:o,lastFocus:v,attr:l};b.extend(c,{render:function(e){if(c.rendered)return o; -var g=c.elements,i=a.content.text,q=a.content.title.text,n=b.Event("tooltiprender");d.attr({"aria-describedby":B});f=g.tooltip=b("
").attr({id:B,"class":M+" qtip ui-helper-reset "+a.style.classes,role:"alert","aria-live":"polite","aria-atomic":o,"aria-describedby":B+"-content","aria-hidden":w}).toggleClass(S,c.cache.disabled).data("qtip",c).appendTo(a.position.container).append(g.content=b("
",{"class":M+"-content",id:B+"-content","aria-atomic":w}));c.rendered=w;if(q){y();z(q)}N(i);b.each(b.fn.qtip.plugins, -function(){this.initialize==="render"&&this(c)});h(1,1,1,1);b.each(a.events,function(u,F){if(F)f.bind(u==="toggle"?"tooltipshow tooltiphide":"tooltip"+u,F)});f.queue("fx",function(u){n.originalEvent=c.cache.event;f.trigger(n,[c]);if(a.show.ready||e){f.hide();c.show(c.cache.event)}u()});return c},get:function(e){switch(e.toLowerCase()){case "dimensions":e={height:f.outerHeight(),width:f.outerWidth()};break;case "offset":e=j(f[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,g){e=e.toLowerCase();var i=r(e),q=c.elements,n,u,F,K={builtin:{"^id$":function(){var A=g===w?b.fn.qtip.nextid:g,C=M+"-"+A;if(A!==o&&A.length>0&&!b("#"+C).length){f[0].id=C;q.content[0].id=C+"-content";q.title[0].id=C+"-title"}},"^content.text$":function(){N(g)},"^content.title.text$":function(){if(!g)return k();!c.elements.title&&g&&y();z(g)},"^content.title.button$":function(){var A=c.elements.button,C=c.elements.title;if(c.rendered)if(g){C|| -y();D()}else A.remove()},"^position.(my|at)$":function(){var A=/my$/i.test(e)?"my":"at";if("string"===typeof g)a.position[A]=new b.fn.qtip.plugins.Corner(g)},"^position.container$":function(){c.rendered===w&&f.appendTo(g)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(A,C,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])A[C]=Q;p.apply(c,R[1]);if(R[0])A[C]=G;h.apply(c,R[1])},"^show.ready$":function(){c.rendered===o&&c.show()}, -"^style.classes$":function(){f.attr("class",M+" qtip ui-helper-reset "+g)},"^style.widget|content.title":x,"^events.(render|show|move|hide|focus|blur)$":function(A,C,G){q.tooltip[(b.isFunction(g)?"":"un")+"bind"]("tooltip"+C,G)},"^position.(my|at|adjust|target|container)|style|content":function(){c.reposition()}}};b.each(c.plugins,function(A){if("object"===typeof this.checks)K[A]=this.checks});n=i[0][i[1]];i[0][i[1]]=g.nodeType?b(g):g;X(a);for(u in K)for(F in K[u])RegExp(F,"i").test(e)&&K[u][F].call(c, -i[0],i[1],g,n);return c},toggle:function(e,g){function i(){if(e)b.browser.msie&&f[0].style.removeAttribute("filter");else f.css({display:"",visibility:"hidden",width:"",opacity:"",left:"",top:""})}if(c.rendered===o)return o;var q=e?"show":"hide",n=a[q],u=s();if((typeof e).search("boolean|number"))e=!u;if(!u&&!e||f.is(":animated"))return c;if(g){if(/over|enter/.test(g.type)&&/out|leave/.test(c.cache.event.type)&&g.target===a.show.target[0]&&f.has(g.relatedTarget).length)return c;c.cache.event=b.extend({}, -g)}u=b.Event("tooltip"+q);u.originalEvent=g?c.cache.event:E;f.trigger(u,[c,90]);if(u.isDefaultPrevented())return c;f.attr("aria-hidden",!!!e);if(e){f.hide().css({visibility:""});c.focus(g);c.reposition(g,0);n.solo&&b(V).not(f).qtip("hide")}else{clearTimeout(c.timers.show);c.blur(g)}f.stop(1,1);if(b.isFunction(n.effect)){n.effect.call(f,c);f.queue("fx",function(F){i.call(this,F);F()})}else if(n.effect===o){f[q]();i.call(f)}else f.fadeTo(90,e?1:0,i);e&&n.target.trigger("qtip-"+m+"-inactive");return b.fn.qtip.lastShown= -c},show:function(e){c.toggle(w,e)},hide:function(e){c.toggle(o,e)},focus:function(e){if(c.rendered===o)return o;var g=b(V),i=parseInt(f[0].style.zIndex,10),q=b.fn.qtip.zindex+g.length;e=b.extend({},e);if(!f.hasClass(W)){if(i!==q){g.each(function(){if(this.style.zIndex>i)this.style.zIndex-=1});g.filter("."+W).qtip("blur",e)}c.cache.lastFocus=document.activeElement;g=b.Event("tooltipfocus");g.originalEvent=e;f.trigger(g,[c,q]);if(!g.isDefaultPrevented())f.addClass(W)[0].style.zIndex=q}return c},blur:function(e){e= -b.extend({},e);var g;f.removeClass(W);g=b.Event("tooltipblur");g.originalEvent=e;f.trigger(g,[c])},reposition:function(e,g){if(c.rendered===o)return o;var i=a.position.target,q=a.position,n=q.my,u=q.at,F=q.adjust,K=f.outerWidth(),A=f.outerHeight(),C=0,G=0,Q=b.Event("tooltipmove"),R=f.css("position")==="fixed",I=q.viewport.jquery?q.viewport:b(O),t={left:0,top:0},H={left:function(J){var L=I.scrollLeft,P=u.x==="left"?C:u.x==="right"?-C:-C/2,U=L-J;L=J+K-I.width-L;P=(n.x==="left"?K:n.x==="right"?-K:-K/ -2)-(n.precedance==="x"||n.x===n.y?P:0);if(U>0&&(n.x!=="left"||L>0))t.left-=P;else if(L>0&&(n.x!=="right"||U>0))t.left-=(n.x==="center"?-1:1)*P+2*F.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+A-I.height-L;P=(n.y==="top"?A:n.y==="bottom"?-A:-A/2)-(n.precedance==="y"||n.x===n.y?P:0);if(U>0&&(n.y!=="top"||L>0))t.top-=P;else if(L>0&&(n.y!=="bottom"||U>0))t.top-=(n.y==="center"?-1:1)*P+2*F.y;if(t.top<0&&-t.top>L)t.top= -J;return t.top-J}};g=g===T||!!g||o;I=!I?o:{elem:I,height:I[(I[0]===O?"h":"outerH")+"eight"](),width:I[(I[0]===O?"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:F.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]===O){C=i.width();G=i.height();if(i[0]===O)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);C=t.width;G=t.height;t=t.offset}else{C=i.outerWidth();G=i.outerHeight();t=j(i[0],q.container[0])}t.left+=u.x==="right"?C:u.x==="center"?C/2:0;t.top+=u.y==="bottom"?G:u.y==="center"?G/2:0}t.left+=F.x+(n.x==="right"?-K:n.x==="center"?-K/2:0);t.top+=F.y+(n.y==="bottom"?-A:n.y==="center"?-A/ -2:0);t.adjusted=q.viewport.jquery&&i[0]!==O&&i[0]!==v?{left:H.left(t.left),top:H.top(t.top)}:{left:0,top:0};f.attr("class",function(){return b(this).attr("class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(M+"-pos-"+n.abbreviation());Q.originalEvent=b.extend({},e);f.trigger(Q,[c,t,I.elem]);if(Q.isDefaultPrevented())return c;delete t.adjusted;if(!g||!isNaN(t.left,t.top))f.css(t);else if(s()&&b.isFunction(q.effect)){q.effect.call(f,c,t);f.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 o;var e=M+"-fluid",g;f.css({width:"auto",height:"auto"}).addClass(e);g={height:f.outerHeight(),width:f.outerWidth()};b.each(["width","height"],function(i,q){var n=parseInt(f.css("max-"+q),10)||0,u=parseInt(f.css("min-"+q),10)||0;g[q]=n+u?Math.min(Math.max(g[q],u),n):g[q]});f.css(g).removeClass(e)},disable:function(e){var g=S;if("boolean"!==typeof e)e=!(f.hasClass(g)|| -c.cache.disabled);if(c.rendered){f.toggleClass(g,e);f.attr("aria-disabled",e)}else c.cache.disabled=!!e;return c},destroy:function(){var e=b.data(d[0],"oldtitle");if(c.rendered){f.remove();b.each(c.plugins,function(){this.initialize==="render"&&this.destroy()})}clearTimeout(c.timers.show);clearTimeout(c.timers.hide);p(1,1,1,1);d.removeData("qtip");e&&d.attr("title",e);d.removeAttr("aria-describedby");return d}})}function aa(d,a){var m,l,r,j=b(this),s=b(document.body),x=this===document?s:j;l=j.metadata? -j.metadata(a.metadata):E;var k=b.extend(w,{},b.fn.qtip.defaults,a,X((l&&a.metadata.type==="html5"?l[a.metadata.name]:E)||l));j.removeData("metadata");l=k.position;if("boolean"===typeof k.content.text)if(k.content.attr!==o&&j.attr(k.content.attr)){k.content.text=j.attr(k.content.attr);r=k.content.attr}else return o;if(l.container===o)l.container=s;if(l.target===o)l.target=x;if(k.show.target===o)k.show.target=x;if(k.hide.target===o)k.hide.target=x;if(k.position.viewport===w)k.position.viewport=l.container; -l.at=new b.fn.qtip.plugins.Corner(l.at);l.my=new b.fn.qtip.plugins.Corner(l.my);if(b.data(this,"qtip"))if(k.overwrite)j.qtip("destroy");else if(k.overwrite===o)return o;if(j.attr("title")){b.data(this,"oldtitle",j.attr("title"));j.removeAttr("title")}m=new Z(j,k,d,r);b.data(this,"qtip",m);j.bind("remove.qtip",function(){m.destroy()});return m}function ba(d){var a=this,m=d.elements.tooltip,l=d.options.content.ajax;a.checks={"^content.ajax":function(r,j){if(j==="once")a.once();else l&&l.url&&a.load()}}; -b.extend(a,{init:function(){if(l&&l.url){a.load();m.one("tooltipshow",a.once)}},once:function(){l.once?a.destroy():m.bind("tooltipshow.qtip-ajax",a.load)},load:function(){b.ajax(b.extend({success:function(r){d.set("content.text",r)},error:function(r,j,s){d.set("content.text",j+": "+s)},context:d},l));return a},destroy:function(){m.unbind(".qtip-ajax")}});a.init()}function ca(d,a,m){var l=Math.ceil(a/2),r=Math.ceil(m/2);a={bottomright:[[0,0],[a,m],[a,0]],bottomleft:[[0,0],[a,0],[0,m]],topright:[[0, -m],[a,0],[a,m]],topleft:[[0,0],[0,m],[a,m]],topcenter:[[0,m],[l,0],[a,m]],bottomcenter:[[0,0],[a,0],[l,m]],rightcenter:[[0,0],[a,r],[0,m]],leftcenter:[[a,0],[a,m],[0,r]]};a.lefttop=a.bottomright;a.righttop=a.bottomleft;a.leftbottom=a.topright;a.rightbottom=a.topleft;return a[d.string()]}function da(d){function a(h,p,c){if(s.tip){h=b.extend({},r.corner);p=c.adjusted;var v;if(r.corner.fixed!==w){if(p.left)h.x=h.x==="center"?p.left>0?"left":"right":h.x==="left"?"right":"left";if(p.top)h.y=h.y==="center"? -p.top>0?"top":"bottom":h.y==="top"?"bottom":"top";if(h.string()!==k.corner&&(k.top!==p.top||k.left!==p.left))v=r.update(h)}v||(v=r.position(h,0));if(v.right!==T)v.left=v.right;if(v.bottom!==T)v.top=v.bottom;v.option=Math.max(0,j.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;k.left=p.left;k.top=p.top;k.corner=h.string()}}function m(h,p,c){p=!p?h[h.precedance]:p;p="border-"+p+"-width";h=parseInt((s.titlebar&&h.y==="top"?s.titlebar:s.content).css(p), -10);return(c?h||parseInt(x.css(p),10):h)||0}function l(h){var p=h.precedance==="y",c=D[p?"width":"height"],v=D[p?"height":"width"],B=h.string().indexOf("center")>-1,f=c*(B?0.5:1),e=Math.pow;h=Math.round;var g=Math.sqrt(e(f,2)+e(v,2));f=[z/f*g,z/v*g];f[2]=Math.sqrt(e(f[0],2)-e(z,2));f[3]=Math.sqrt(e(f[1],2)-e(z,2));B=(g+f[2]+f[3]+(B?0:f[0]))/g;c=[h(B*v),h(B*c)];return{height:c[p?0:1],width:c[p?1:0]}}var r=this,j=d.options.style.tip,s=d.elements,x=s.tooltip,k={top:0,left:0,corner:""},D={width:j.width, -height:j.height},y={},z=j.border||0,N=b("")[0].getContext;r.corner=E;r.mimic=E;r.checks={"^position.my|style.tip.(corner|mimic|border)$":function(){r.init()||r.destroy();d.reposition()},"^style.tip.(height|width)$":function(){D={width:j.width,height:j.height};r.create();r.update();d.reposition()},"^content.title.text|style.(classes|widget)$":function(){s.tip&&r.update()}};b.extend(r,{init:function(){var h=r.detectCorner()&&(N||b.browser.msie);if(h){r.create();r.update();x.unbind(".qtip-tip").bind("tooltipmove.qtip-tip", -a)}return h},detectCorner:function(){var h=j.corner,p=d.options.position,c=p.at;p=p.my.string?p.my.string():p.my;if(h===o||p===o&&c===o)return o;else if(h===w)r.corner=new b.fn.qtip.plugins.Corner(p);else if(!h.string){r.corner=new b.fn.qtip.plugins.Corner(h);r.corner.fixed=w}return r.corner.string()!=="centercenter"},detectColours:function(){var h=s.tip.css({backgroundColor:"",border:""}),p=r.corner,c=p[p.precedance],v="border-"+c+"-color";c="border"+c.charAt(0)+c.substr(1)+"Color";var B=/rgba?\(0, 0, 0(, 0)?\)|transparent/i; -p=s.titlebar&&(p.y==="top"||p.y==="center"&&h.position().top+D.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:h,height:p}).prependTo(x);if(N)b("").appendTo(s.tip)[0].getContext("2d").save();else{h='';s.tip.html(z?h+=h:h)}},update:function(h){var p=s.tip,c=p.children(),v=D.width,B= -D.height,f=j.mimic,e=Math.round,g,i,q;if(!h)h=r.corner;if(f===o)f=h;else{f=new b.fn.qtip.plugins.Corner(f);f.precedance=h.precedance;if(f.x==="inherit")f.x=h.x;else if(f.y==="inherit")f.y=h.y;else if(f.x===f.y)f[h.precedance]=h[h.precedance]}g=f.precedance;r.detectColours();z=y.border==="transparent"||y.border==="#123456"?0:j.border===w?m(h,E,w):j.border;i=ca(f,v,B);q=l(h);p.css(q);p=h.precedance==="y"?[e(f.x==="left"?z:f.x==="right"?q.width-v-z:(q.width-v)/2),e(f.y==="top"?q.height-B:0)]:[e(f.x=== -"left"?q.width-v:0),e(f.y==="top"?z:f.y==="bottom"?q.height-B-z:(q.height-B)/2)];if(N){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(h.string())?1:0;c.css({antialias:""+(f.string().indexOf("center")>-1),left:p[0]-p[2]*Number(g==="x"),top:p[1]-p[2]*Number(g==="y"),width:v+z,height:B+z}).each(function(n){var u=b(this);u.attr({coordsize:v+z+" "+(B+z),path:i,fillcolor:y.fill,filled:!!n,stroked:!!!n}).css({display:z||n?"block":"none"});!n&&z>0&&u.html()===""&&u.html('')})}return r.position(h, -1)},position:function(h,p){var c=s.tip,v={},B=Math.max(0,j.offset),f,e,g;if(j.corner===o||!c)return o;h=h||r.corner;f=h.precedance;e=l(h)[f==="x"?"width":"height"];g=b.browser.msie&&z&&/^(b|r)/i.test(h.string())?1:0;b.each(f==="y"?[h.x,h.y]:[h.y,h.x],function(i,q){var n,u;if(q==="center"){n=f==="y"?"left":"top";v[n]="50%";v["margin-"+n]=-Math.round(e/2)+B}else{n=m(h,q,w);u=b.browser.mozilla;var F=h.y+(u?"":"-")+h.x;u=(u?"-moz-":b.browser.webkit?"-webkit-":"")+(u?"border-radius-"+F:"border-"+F+"-radius"); -u=parseInt((s.titlebar&&h.y==="top"?s.titlebar:s.content).css(u),10)||parseInt(x.css(u),10)||0;v[q]=i||!z?m(h,q):B+(u>n?u:0)}});v[h[f]]-=e+g;p&&c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(v);return v},destroy:function(){s.tip&&s.tip.remove();x.unbind(".qtip-tip")}});r.init()}function ea(d){var a=this,m=d.options.show.modal,l=d.elements,r=l.tooltip;a.checks={"^show.modal.(on|blur)$":function(){a.init();l.overlay.toggle(r.is(":visible"))}};b.extend(a,{init:function(){if(m.on){r.unbind(".qtipmodal").bind("tooltipshow.qtipmodal tooltiphide.qtipmodal", -function(j,s,x){j=j.type.replace("tooltip","");b.isFunction(m[j])?m[j].call(l.overlay,x,s):a[j](x)});a.create();m.blur===w&&l.overlay.unbind(".qtipmodal"+d.id).bind("click.qtipmodal"+d.id,function(){d.hide.call(d)})}},create:function(){var j=b("#qtip-overlay");if(j.length)l.overlay=j;else{l.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(O).bind("resize.qtipmodal",function(){l.overlay.css({height:Math.max(b(O).height(), -b(document).height()),width:Math.max(b(O).width(),b(document).width())})}).trigger("resize")}},toggle:function(j){var s=l.overlay,x=d.options.show.modal.effect,k=j?"show":"hide";s.stop(w,o);if(b.isFunction(x))x.call(s,j);else x===o?s[k]():s.fadeTo(90,j?0.7:0,function(){j||b(this).hide()})},show:function(){a.toggle(w)},hide:function(){a.toggle(o)},destroy:function(){var j=w;b("*").each(function(){var s=b(this).data("qtip");if(s&&s.id!==d.id&&s.options.show.modal)return j=o});if(j){l.overlay.remove(); -b(O).unbind(".qtipmodal")}else l.overlay.unbind(".qtipmodal"+d.id);r.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});a.init()}function fa(d){var a=this,m=d.elements,l=m.tooltip,r=".bgiframe-"+d.id,j="tooltipmove"+r+" tooltipshow"+r;b.extend(a,{init:function(){m.bgiframe=b('');m.bgiframe.appendTo(l);l.bind(j,a.adjust)}, -adjust:function(){var s=d.get("dimensions"),x=d.plugins.tip,k=d.elements.tip,D;D=parseInt(l.css("border-left-width"),10)||0;D={left:-D,top:-D};if(x&&k){x=x.corner.precedance==="x"?["width","left"]:["height","top"];D[x[1]]-=k[x[0]]()}m.bgiframe.css(D).css(s)},destroy:function(){a.iframe.remove();l.unbind(j)}});a.init()}var w=true,o=false,E=null,M="ui-tooltip",Y="ui-widget",S="ui-state-disabled",V="div.qtip."+M,W=M+"-focus",$="-31000px";b.fn.qtip=function(d,a,m){var l=String(d).toLowerCase(),r=E,j= -l==="disable"?[w]:b.makeArray(arguments).slice(1,10),s=j[j.length-1],x=this[0]?b.data(this[0],"qtip"):E;if(!arguments.length&&x||l==="api")return x;else if("string"===typeof d){this.each(function(){var k=b.data(this,"qtip");if(!k)return w;if(/option|set/.test(l)&&a)if(m!==T)k.set(a,m);else r=k.get(a);else{if(!k.rendered&&(l==="show"||l==="toggle")){if(s&&s.timeStamp)k.cache.event=s;k.render(1)}else if(l==="enable"){l="disable";j=[o]}k[l]&&k[l].apply(k[l],j)}});return r!==E?r:this}else if("object"=== -typeof d||!arguments.length){x=X(b.extend(w,{},d));return b.fn.qtip.bind.call(this,x,s)}};b.fn.qtip.bind=function(d,a){return this.each(function(){function m(D){function y(){k.render(typeof D==="object"||l.show.ready);r.show.unbind(j.show);r.hide.unbind(j.hide)}if(k.cache.disabled)return o;k.cache.event=b.extend({},D);if(l.show.delay>0){clearTimeout(k.timers.show);k.timers.show=setTimeout(y,l.show.delay);j.show!==j.hide&&r.hide.bind(j.hide,function(){clearTimeout(k.timers.show)})}else y()}var l,r, -j,s=d.id=!d.id||d.id===o||d.id.length<1||b("#"+M+"-"+d.id).length?b.fn.qtip.nextid++:d.id,x=".qtip-"+s+"-create",k=aa.call(this,s,d);if(k===o)return w;l=k.options;b.each(b.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(k)});r={show:l.show.target,hide:l.hide.target};j={show:String(l.show.event).replace(" ",x+" ")+x,hide:String(l.hide.event).replace(" ",x+" ")+x};r.show.bind(j.show,m);if(l.show.ready||l.prerender)m(a)})};b.each({attr:function(d,a){var m=this[0],l=b.data(m,"qtip");if(d=== -"title")if(arguments.length===1)return b.data(m,"oldtitle");else{l&&l.rendered&&l.options.content.attr==="title"&&l.cache.attr&&l.set("content.text",a);return b.data(m,"oldtitle",a)}},clone:function(){var d=b([]),a;b("*",this).each(function(){var m=b.data(this,"oldtitle");if(m){b.attr(this,"title",m);d=d.add(this)}});a=b.fn.Oldclone.apply(this,arguments);d.removeAttr("title");return a},remove:b.ui?E: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;b.fn["Old"+d]=b.fn[d];b.fn[d]=function(){return a.apply(this,arguments)||b.fn["Old"+d].apply(this,arguments)}});b(O).load(function(){var d=document,a=d.body;b(d).bind("mousemove.qtip",function(m){b.fn.qtip.mouse={pageX:m.pageX,pageY:m.pageY}});d.activeElement===T&&d.addEventListener("focus",function(m){if(m&&m.target)d.activeElement=m.target===d?a:m.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),m=this.y.substr(0,1); -return a===m?a:a==="c"||a!=="c"&&m!=="c"?m+a:a+m}},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:o,id:o,overwrite:w,metadata:{type:"class"},content:{text:w,attr:"title",title:{text:o,button:o}},position:{my:"top left",at:"bottom right",target:o,container:o,viewport:o,adjust:{x:0,y:0,mouse:w,resize:w},effect:w},show:{target:o,event:"mouseenter",effect:w,delay:90,solo:o,ready:o},hide:{target:o, -event:"mouseleave",effect:w,delay:0,fixed:o,inactive:o},style:{classes:"",widget:o},events:{render:E,move:E,show:E,hide:E,toggle:E,focus:E,blur:E}};b.fn.qtip.plugins.ajax=function(d){var a=d.plugins.ajax;return"object"===typeof a?a:d.plugins.ajax=new ba(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 da(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:o,width:8,height:8,border:w,offset:0}}});b.fn.qtip.plugins.imagemap=function(d,a){function m(z,N){for(var h=0,p=1,c=1,v=0,B=0,f=z.width,e=z.height;f>0&&e>0&&p>0&&c>0;){f=Math.floor(f/2);e=Math.floor(e/2);if(a.x==="left")p=f;else if(a.x==="right")p=z.width-f;else p+=Math.floor(f/2);if(a.y==="top")c=e;else if(a.y==="bottom")c=z.height-e;else c+=Math.floor(e/2);for(h=N.length;h--;){if(N.length< -2)break;v=N[h][0]-z.offset.left;B=N[h][1]-z.offset.top;if(a.x==="left"&&v>=p||a.x==="right"&&v<=p||a.x==="center"&&(vz.width-p)||a.y==="top"&&B>=c||a.y==="bottom"&&B<=c||a.y==="center"&&(Bz.height-c))N.splice(h,1)}}return{left:N[0][0],top:N[0][1]}}var l=d.attr("shape").toLowerCase(),r=d.attr("coords").split(","),j=[],s=b('img[usemap="#'+d.parent("map").attr("name")+'"]'),x=s.offset(),k={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},D=0,y=0;x.left+=Math.ceil((s.outerWidth()- -s.width())/2);x.top+=Math.ceil((s.outerHeight()-s.height())/2);if(l==="poly")for(D=r.length;D--;){y=[parseInt(r[--D],10),parseInt(r[D+1],10)];if(y[0]>k.offset.right)k.offset.right=y[0];if(y[0]k.offset.bottom)k.offset.bottom=y[1];if(y[1]",{"class":"ui-state-default "+ +(b.style.widget?"":M+"-icon"),title:"Close tooltip","aria-label":"Close tooltip"}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"}));d.button.appendTo(d.titlebar).attr("role","button").hover(function(i){a(this).toggleClass("ui-state-hover",i.type==="mouseenter")}).click(function(i){g.hasClass(S)||c.hide(i);return o}).bind("mousedown keydown mouseup keyup mouseout",function(i){a(this).toggleClass("ui-state-active ui-state-focus",i.type.substr(-4)==="down")});c.redraw()}function y(){var d= +c.elements,f=B+"-title";d.titlebar&&j();d.titlebar=a("
",{"class":M+"-titlebar "+(b.style.widget?"ui-widget-header":"")}).append(d.title=a("
",{id:f,"class":M+"-title","aria-atomic":w})).insertBefore(d.content);if(b.content.title.button)D();else c.rendered===w&&c.redraw()}function z(d){var f=c.elements.title;if(!c.rendered||!d)return o;if(a.isFunction(d))d=d.call(e,c)||"";d.jquery&&d.length>0?f.empty().append(d.css({display:"block"})):f.html(d);c.redraw();c.rendered===w&&c.reposition(c.cache.event)} +function N(d){var f=c.elements.content;if(!c.rendered||!d)return o;if(a.isFunction(d))d=d.call(e,c)||"";d.jquery&&d.length>0?f.empty().append(d.css({display:"block"})):f.html(d);g.queue("fx",function(i){function r(u){n=n.not(u);if(n.length===0){c.redraw();c.rendered===w&&c.reposition(c.cache.event);i()}}var n=f.find("img:not([height]):not([width])");n.each(function(u,F){var K=["abort","error","load","unload",""].join(".qtip-image ");a(this).bind(K,function(){clearTimeout(c.timers.img[u]);r(this)}); +(function A(){if(F.height)return r(F);c.timers.img[u]=setTimeout(A,20)})();return w});n.length===0&&r(n)});return c}function h(d,f,i,r){function n(t){if(g.hasClass(S))return o;G.show.trigger("qtip-"+m+"-inactive");clearTimeout(c.timers.show);clearTimeout(c.timers.hide);var H=function(){c.show(t)};if(b.show.delay>0)c.timers.show=setTimeout(H,b.show.delay);else H()}function u(t){if(g.hasClass(S))return o;var H=a(t.relatedTarget||t.target),J=H.parents(V)[0]===g[0];H=H[0]===G.show[0];clearTimeout(c.timers.show); +clearTimeout(c.timers.hide);if(b.hide.fixed&&(C.target==="mouse"&&J||/mouse(out|leave|move)/.test(t.type)&&(J||H))){t.stopPropagation();t.preventDefault();return o}g.stop(1,1);if(b.hide.delay>0)c.timers.hide=setTimeout(function(){c.hide(t)},b.hide.delay);else c.hide(t)}function F(t){if(g.hasClass(S))return o;clearTimeout(c.timers.inactive);c.timers.inactive=setTimeout(function(){c.hide(t)},b.hide.inactive)}function K(t){if(!c.cache.processing){c.cache.processing=1;s()&&c.reposition(t);c.cache.processing= +0}}var A=".qtip-"+m,C=b.position,G={show:b.show.target,hide:b.hide.target,container:C.container[0]===v?document:C.container},Q={show:String(b.show.event).split(" "),hide:String(b.hide.event).split(" ")},R=a(document),I=a.browser.msie&&parseInt(a.browser.version,10)===6;if(i){if(b.hide.fixed){G.hide=G.hide.add(g);g.bind("mouseover"+A,function(){g.hasClass(S)||clearTimeout(c.timers.hide)})}g.bind("mouseenter"+A+" mouseleave"+A,function(t){c[t.type==="mouseenter"?"focus":"blur"](t)})}if(f){if("number"=== +typeof b.hide.inactive){G.show.bind("qtip-"+m+"-inactive",F);a.each(a.fn.qtip.inactiveEvents,function(t,H){G.hide.add(c.elements.tooltip).bind(H+A+"-inactive",F)})}a.each(Q.hide,function(t,H){var J=a.inArray(H,Q.show),L=a(G.hide);if(J>-1&&L.add(G.show).length===L.length||H==="unfocus"){G.show.bind(H+A,function(P){s()?u(P):n(P)});delete Q.show[J]}else G.hide.bind(H+A,u)})}d&&a.each(Q.show,function(t,H){G.show.bind(H+A,n)});if(r){if(C.adjust.resize||C.viewport)a(a.event.special.resize?C.viewport:O).bind("resize"+ +A,K);if(C.viewport||I&&g.css("position")==="fixed")a(C.viewport).bind("scroll"+A,K);/unfocus/i.test(b.hide.event)&&R.bind("mousedown"+A,function(t){var H=a(t.target);H.parents(V).length===0&&H.add(e).length>1&&s()&&!g.hasClass(S)&&c.hide(t)});C.target==="mouse"&&R.bind("mousemove"+A,function(t){if(C.adjust.mouse&&!g.hasClass(S)&&s())c.reposition(t||a.fn.qtip.mouse)})}}function p(d,f,i,r){r=parseInt(r,10)!==0;var n=".qtip-"+m;f={show:d?b.show.target:E,hide:f?b.hide.target:E,tooltip:i?c.elements.tooltip: +E,content:i?c.elements.content:E,container:r?b.position.container[0]===v?document:b.position.container:E,window:r?O:E};if(c.rendered)a([]).pushStack(a.grep([f.show,f.hide,f.tooltip,f.container,f.content,f.window],function(){return this!==null})).unbind(n);else d&&f.show.unbind(n+"-create")}var c=this,v=document.body,B=M+"-"+m,g;c.id=m;c.rendered=o;c.elements={target:e};c.timers={img:[]};c.options=b;c.plugins={};c.cache={event:{},target:E,disabled:o,lastFocus:v,attr:k};a.extend(c,{render:function(d){if(c.rendered)return o; +var f=c.elements,i=b.content.text,r=b.content.title.text,n=a.Event("tooltiprender");a.attr(e[0],"aria-describedby",B);g=f.tooltip=a("
").attr({id:B,"class":M+" qtip ui-helper-reset "+b.style.classes,role:"alert","aria-live":"polite","aria-atomic":o,"aria-describedby":B+"-content","aria-hidden":w}).toggleClass(S,c.cache.disabled).data("qtip",c).appendTo(b.position.container).append(f.content=a("
",{"class":M+"-content",id:B+"-content","aria-atomic":w}));c.rendered=w;if(r){y();z(r)}N(i); +a.each(a.fn.qtip.plugins,function(){this.initialize==="render"&&this(c)});h(1,1,1,1);a.each(b.events,function(u,F){if(F)g.bind(u==="toggle"?"tooltipshow tooltiphide":"tooltip"+u,F)});g.queue("fx",function(u){n.originalEvent=c.cache.event;g.trigger(n,[c]);if(b.show.ready||d){g.hide();c.show(c.cache.event)}u()});return c},get:function(d){switch(d.toLowerCase()){case "dimensions":d={height:g.outerHeight(),width:g.outerWidth()};break;case "offset":d=l(g[0],b.position.container[0]);break;default:d=q(d.toLowerCase()); +d=d[0].precedance?d[0].string():d[0].jquery?d[0]:d[0][d[1]];break}return d},set:function(d,f){d=d.toLowerCase();var i=q(d),r=c.elements,n,u,F,K={builtin:{"^id$":function(){var A=f===w?a.fn.qtip.nextid:f,C=M+"-"+A;if(A!==o&&A.length>0&&!a("#"+C).length){g[0].id=C;r.content[0].id=C+"-content";r.title[0].id=C+"-title"}},"^content.text$":function(){N(f)},"^content.title.text$":function(){if(!f)return j();!c.elements.title&&f&&y();z(f)},"^content.title.button$":function(){var A=c.elements.button,C=c.elements.title; +if(c.rendered)if(f){C||y();D()}else A.remove()},"^position.(my|at)$":function(){var A=/my$/i.test(d)?"my":"at";if("string"===typeof f)b.position[A]=new a.fn.qtip.plugins.Corner(f)},"^position.container$":function(){c.rendered===w&&g.appendTo(f)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(A,C,G,Q){var R=d.search(/fixed/i)>-1?[0,[0,1,1,1]]:[d.substr(0,3),d.charAt(0)==="s"?[1,0,0,0]:[0,1,0,0]];if(R[0])A[C]=Q;p.apply(c,R[1]);if(R[0])A[C]=G;h.apply(c,R[1])},"^show.ready$":function(){c.rendered=== +o&&c.show()},"^style.classes$":function(){a.attr(g[0],"class",M+" qtip ui-helper-reset "+f)},"^style.widget|content.title":x,"^events.(render|show|move|hide|focus|blur)$":function(A,C,G){r.tooltip[(a.isFunction(f)?"":"un")+"bind"]("tooltip"+C,G)},"^position.(my|at|adjust|target|container)|style|content":function(){c.reposition()}}};a.each(c.plugins,function(A){if("object"===typeof this.checks)K[A]=this.checks});n=i[0][i[1]];i[0][i[1]]=f.nodeType?a(f):f;X(b);for(u in K)for(F in K[u])RegExp(F,"i").test(d)&& +K[u][F].call(c,i[0],i[1],f,n);return c},toggle:function(d,f){function i(){if(d)a.browser.msie&&g[0].style.removeAttribute("filter");else g.css({display:"",visibility:"hidden",width:"",opacity:"",left:"",top:""})}if(c.rendered===o)return o;var r=d?"show":"hide",n=b[r],u=s();if((typeof d).search("boolean|number"))d=!u;if(!u&&!d||g.is(":animated"))return c;if(f){if(/over|enter/.test(f.type)&&/out|leave/.test(c.cache.event.type)&&f.target===b.show.target[0]&&g.has(f.relatedTarget).length)return c;c.cache.event= +a.extend({},f)}u=a.Event("tooltip"+r);u.originalEvent=f?c.cache.event:E;g.trigger(u,[c,90]);if(u.isDefaultPrevented())return c;a.attr(g[0],"aria-hidden",!!!d);if(d){g.hide().css({visibility:""});c.focus(f);c.reposition(f,0);n.solo&&a(V).not(g).qtip("hide")}else{clearTimeout(c.timers.show);c.blur(f)}g.stop(1,1);if(a.isFunction(n.effect)){n.effect.call(g,c);g.queue("fx",function(F){i.call(this,F);F()})}else if(n.effect===o){g[r]();i.call(g)}else g.fadeTo(90,d?1:0,i);d&&n.target.trigger("qtip-"+m+"-inactive"); +return a.fn.qtip.lastShown=c},show:function(d){c.toggle(w,d)},hide:function(d){c.toggle(o,d)},focus:function(d){if(c.rendered===o)return o;var f=a(V),i=parseInt(g[0].style.zIndex,10),r=a.fn.qtip.zindex+f.length;d=a.extend({},d);if(!g.hasClass(W)){if(i!==r){f.each(function(){if(this.style.zIndex>i)this.style.zIndex-=1});f.filter("."+W).qtip("blur",d)}c.cache.lastFocus=document.activeElement;f=a.Event("tooltipfocus");f.originalEvent=d;g.trigger(f,[c,r]);if(!f.isDefaultPrevented())g.addClass(W)[0].style.zIndex= +r}return c},blur:function(d){d=a.extend({},d);var f;g.removeClass(W);f=a.Event("tooltipblur");f.originalEvent=d;g.trigger(f,[c])},reposition:function(d,f){if(c.rendered===o)return o;var i=b.position.target,r=b.position,n=r.my,u=r.at,F=r.adjust,K=g.outerWidth(),A=g.outerHeight(),C=0,G=0,Q=a.Event("tooltipmove"),R=g.css("position")==="fixed",I=r.viewport.jquery?r.viewport:a(O),t={left:0,top:0},H={left:function(J){var L=I.scrollLeft,P=u.x==="left"?C:u.x==="right"?-C:-C/2,U=L-J;L=J+K-I.width-L;P=(n.x=== +"left"?K:n.x==="right"?-K:-K/2)-(n.precedance==="x"||n.x===n.y?P:0);if(U>0&&(n.x!=="left"||L>0))t.left-=P;else if(L>0&&(n.x!=="right"||U>0))t.left-=(n.x==="center"?-1:1)*P+2*F.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+A-I.height-L;P=(n.y==="top"?A:n.y==="bottom"?-A:-A/2)-(n.precedance==="y"||n.x===n.y?P:0);if(U>0&&(n.y!=="top"||L>0))t.top-=P;else if(L>0&&(n.y!=="bottom"||U>0))t.top-=(n.y==="center"?-1:1)*P+ +2*F.y;if(t.top<0&&-t.top>L)t.top=J;return t.top-J}};f=f===T||!!f||o;I=!I?o:{elem:I,height:I[(I[0]===O?"h":"outerH")+"eight"](),width:I[(I[0]===O?"w":"outerW")+"idth"](),scrollLeft:I.scrollLeft(),scrollTop:I.scrollTop()};if(i==="mouse"){u={x:"left",y:"top"};d=d&&(d.type==="resize"||d.type==="scroll")?c.cache.event:F.mouse||!d||!d.pageX?a.extend({},a.fn.qtip.mouse):d;t={top:d.pageY,left:d.pageX}}else{if(i==="event")i=d&&d.target&&d.type!=="scroll"&&d.type!=="resize"?c.cache.target=a(d.target):c.cache.target; +i=a(i).eq(0);if(i.length===0)return c;else if(i[0]===document||i[0]===O){C=i.width();G=i.height();if(i[0]===O)t={top:R?0:I.scrollTop,left:R?0:I.scrollLeft}}else if(i.is("area")&&a.fn.qtip.plugins.imagemap){t=a.fn.qtip.plugins.imagemap(i,u);C=t.width;G=t.height;t=t.offset}else{C=i.outerWidth();G=i.outerHeight();t=l(i[0],r.container[0])}t.left+=u.x==="right"?C:u.x==="center"?C/2:0;t.top+=u.y==="bottom"?G:u.y==="center"?G/2:0}t.left+=F.x+(n.x==="right"?-K:n.x==="center"?-K/2:0);t.top+=F.y+(n.y==="bottom"? +-A:n.y==="center"?-A/2:0);t.adjusted=r.viewport.jquery&&i[0]!==O&&i[0]!==v?{left:H.left(t.left),top:H.top(t.top)}:{left:0,top:0};g.attr("class",function(){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(M+"-pos-"+n.abbreviation());Q.originalEvent=a.extend({},d);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(s()&&a.isFunction(r.effect)){r.effect.call(g,c,t);g.queue(function(J){a(this).css({opacity:"", +height:""});a.browser.msie&&this.style&&this.style.removeAttribute("filter");J()})}return c},redraw:function(){if(!c.rendered||!(a.browser.msie&&a.browser.version<8))return o;var d=M+"-fluid",f;g.css({width:"auto",height:"auto"}).addClass(d);f={height:g.outerHeight(),width:g.outerWidth()};a.each(["width","height"],function(i,r){var n=parseInt(g.css("max-"+r),10)||0,u=parseInt(g.css("min-"+r),10)||0;f[r]=n+u?Math.min(Math.max(f[r],u),n):f[r]});g.css(f).removeClass(d)},disable:function(d){var f=S;if("boolean"!== +typeof d)d=!(g.hasClass(f)||c.cache.disabled);if(c.rendered){g.toggleClass(f,d);a.attr(g[0],"aria-disabled",d)}else c.cache.disabled=!!d;return c},destroy:function(){var d=e[0],f=a.data(d,f);if(c.rendered){g.remove();a.each(c.plugins,function(){this.initialize==="render"&&this.destroy()})}clearTimeout(c.timers.show);clearTimeout(c.timers.hide);p(1,1,1,1);a.removeData(d,"qtip");f&&a.attr(d,"title",f);e.removeAttr("aria-describedby");return e}})}function ba(e,b){var m,k,q,l=a(this),s=a(document.body), +x=this===document?s:l;k=l.metadata?l.metadata(b.metadata):E;var j=a.extend(w,{},a.fn.qtip.defaults,b,X((k&&b.metadata.type==="html5"?k[b.metadata.name]:E)||k));a.removeData(this,"metadata");k=j.position;if("boolean"===typeof j.content.text){q=a.attr(this,j.content.attr);if(j.content.attr!==o&&q){j.content.text=q;q=j.content.attr}else return o}if(k.container===o)k.container=s;if(k.target===o)k.target=x;if(j.show.target===o)j.show.target=x;if(j.hide.target===o)j.hide.target=x;if(j.position.viewport=== +w)j.position.viewport=k.container;k.at=new a.fn.qtip.plugins.Corner(k.at);k.my=new a.fn.qtip.plugins.Corner(k.my);if(a.data(this,"qtip"))if(j.overwrite)l.qtip("destroy");else if(j.overwrite===o)return o;if(a.attr(this,"title")){a.data(this,Z,a.attr(this,"title"));l.removeAttr("title")}m=new $(l,j,e,q);a.data(this,"qtip",m);l.bind("remove.qtip",function(){m.destroy()});return m}function ca(e){var b=this,m=e.elements.tooltip,k=e.options.content.ajax;b.checks={"^content.ajax":function(q,l){if(l==="once")b.once(); +else k&&k.url&&b.load()}};a.extend(b,{init:function(){if(k&&k.url){b.load();m.one("tooltipshow",b.once)}},once:function(){k.once?b.destroy():m.bind("tooltipshow.qtip-ajax",b.load)},load:function(){a.ajax(a.extend({success:function(q){e.set("content.text",q)},error:function(q,l,s){e.set("content.text",l+": "+s)},context:e},k));return b},destroy:function(){m.unbind(".qtip-ajax")}});b.init()}function da(e,b,m){var k=Math.ceil(b/2),q=Math.ceil(m/2);b={bottomright:[[0,0],[b,m],[b,0]],bottomleft:[[0,0], +[b,0],[0,m]],topright:[[0,m],[b,0],[b,m]],topleft:[[0,0],[0,m],[b,m]],topcenter:[[0,m],[k,0],[b,m]],bottomcenter:[[0,0],[b,0],[k,m]],rightcenter:[[0,0],[b,q],[0,m]],leftcenter:[[b,0],[b,m],[0,q]]};b.lefttop=b.bottomright;b.righttop=b.bottomleft;b.leftbottom=b.topright;b.rightbottom=b.topleft;return b[e.string()]}function ea(e){function b(h,p,c){if(s.tip){h=a.extend({},q.corner);p=c.adjusted;var v;if(q.corner.fixed!==w){if(p.left)h.x=h.x==="center"?p.left>0?"left":"right":h.x==="left"?"right":"left"; +if(p.top)h.y=h.y==="center"?p.top>0?"top":"bottom":h.y==="top"?"bottom":"top";if(h.string()!==j.corner&&(j.top!==p.top||j.left!==p.left))v=q.update(h)}v||(v=q.position(h,0));if(v.right!==T)v.left=v.right;if(v.bottom!==T)v.top=v.bottom;v.option=Math.max(0,l.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;j.left=p.left;j.top=p.top;j.corner=h.string()}}function m(h,p,c){p=!p?h[h.precedance]:p;p="border-"+p+"-width";h=parseInt((s.titlebar&& +h.y==="top"?s.titlebar:s.content).css(p),10);return(c?h||parseInt(x.css(p),10):h)||0}function k(h){var p=h.precedance==="y",c=D[p?"width":"height"],v=D[p?"height":"width"],B=h.string().indexOf("center")>-1,g=c*(B?0.5:1),d=Math.pow;h=Math.round;var f=Math.sqrt(d(g,2)+d(v,2));g=[z/g*f,z/v*f];g[2]=Math.sqrt(d(g[0],2)-d(z,2));g[3]=Math.sqrt(d(g[1],2)-d(z,2));B=(f+g[2]+g[3]+(B?0:g[0]))/f;c=[h(B*v),h(B*c)];return{height:c[p?0:1],width:c[p?1:0]}}var q=this,l=e.options.style.tip,s=e.elements,x=s.tooltip, +j={top:0,left:0,corner:""},D={width:l.width,height:l.height},y={},z=l.border||0,N=a("")[0].getContext;q.corner=E;q.mimic=E;q.checks={"^position.my|style.tip.(corner|mimic|border)$":function(){q.init()||q.destroy();e.reposition()},"^style.tip.(height|width)$":function(){D={width:l.width,height:l.height};q.create();q.update();e.reposition()},"^content.title.text|style.(classes|widget)$":function(){s.tip&&q.update()}};a.extend(q,{init:function(){var h=q.detectCorner()&&(N||a.browser.msie); +if(h){q.create();q.update();x.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",b)}return h},detectCorner:function(){var h=l.corner,p=e.options.position,c=p.at;p=p.my.string?p.my.string():p.my;if(h===o||p===o&&c===o)return o;else if(h===w)q.corner=new a.fn.qtip.plugins.Corner(p);else if(!h.string){q.corner=new a.fn.qtip.plugins.Corner(h);q.corner.fixed=w}return q.corner.string()!=="centercenter"},detectColours:function(){var h=s.tip.css({backgroundColor:"",border:""}),p=q.corner,c=p[p.precedance],v= +"border-"+c+"-color";c="border"+c.charAt(0)+c.substr(1)+"Color";var B=/rgba?\(0, 0, 0(, 0)?\)|transparent/i;p=s.titlebar&&(p.y==="top"||p.y==="center"&&h.position().top+D.height/2+l.offset",{"class":"ui-tooltip-tip"}).css({width:h,height:p}).prependTo(x);if(N)a("").appendTo(s.tip)[0].getContext("2d").save();else{h=''; +s.tip.html(z?h+=h:h)}},update:function(h){var p=s.tip,c=p.children(),v=D.width,B=D.height,g=l.mimic,d=Math.round,f,i,r;if(!h)h=q.corner;if(g===o)g=h;else{g=new a.fn.qtip.plugins.Corner(g);g.precedance=h.precedance;if(g.x==="inherit")g.x=h.x;else if(g.y==="inherit")g.y=h.y;else if(g.x===g.y)g[h.precedance]=h[h.precedance]}f=g.precedance;q.detectColours();z=y.border==="transparent"||y.border==="#123456"?0:l.border===w?m(h,E,w):l.border;i=da(g,v,B);r=k(h);p.css(r);p=h.precedance==="y"?[d(g.x==="left"? +z:g.x==="right"?r.width-v-z:(r.width-v)/2),d(g.y==="top"?r.height-B:0)]:[d(g.x==="left"?r.width-v:0),d(g.y==="top"?z:g.y==="bottom"?r.height-B-z:(r.height-B)/2)];if(N){c.attr(r);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(h.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:B+z}).each(function(n){var u=a(this);u.attr({coordsize:v+z+" "+(B+z),path:i,fillcolor:y.fill,filled:!!n,stroked:!!!n}).css({display:z||n?"block":"none"});!n&&z>0&&u.html()===""&&u.html('')})}return q.position(h, +1)},position:function(h,p){var c=s.tip,v={},B=Math.max(0,l.offset),g,d,f;if(l.corner===o||!c)return o;h=h||q.corner;g=h.precedance;d=k(h)[g==="x"?"width":"height"];f=a.browser.msie&&z&&/^(b|r)/i.test(h.string())?1:0;a.each(g==="y"?[h.x,h.y]:[h.y,h.x],function(i,r){var n,u;if(r==="center"){n=g==="y"?"left":"top";v[n]="50%";v["margin-"+n]=-Math.round(d/2)+B}else{n=m(h,r,w);u=a.browser.mozilla;var F=h.y+(u?"":"-")+h.x;u=(u?"-moz-":a.browser.webkit?"-webkit-":"")+(u?"border-radius-"+F:"border-"+F+"-radius"); +u=parseInt((s.titlebar&&h.y==="top"?s.titlebar:s.content).css(u),10)||parseInt(x.css(u),10)||0;v[r]=i||!z?m(h,r):B+(u>n?u:0)}});v[h[g]]-=d+f;p&&c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(v);return v},destroy:function(){s.tip&&s.tip.remove();x.unbind(".qtip-tip")}});q.init()}function fa(e){var b=this,m=e.options.show.modal,k=e.elements,q=k.tooltip;b.checks={"^show.modal.(on|blur)$":function(){b.init();k.overlay.toggle(q.is(":visible"))}};a.extend(b,{init:function(){if(m.on){q.unbind(".qtipmodal").bind("tooltipshow.qtipmodal tooltiphide.qtipmodal", +function(l,s,x){l=l.type.replace("tooltip","");a.isFunction(m[l])?m[l].call(k.overlay,x,s):b[l](x)});b.create();m.blur===w&&k.overlay.unbind(".qtipmodal"+e.id).bind("click.qtipmodal"+e.id,function(){e.hide.call(e)})}},create:function(){var l=a("#qtip-overlay");if(l.length)k.overlay=l;else{k.overlay=a("
",{id:"#qtip-overlay".substr(1),css:{position:"absolute",top:0,left:0,display:"none",zIndex:parseInt(q.css("z-index"),10)-1}}).appendTo(document.body);a(O).bind("resize.qtipmodal",function(){k.overlay.css({height:Math.max(a(O).height(), +a(document).height()),width:Math.max(a(O).width(),a(document).width())})}).trigger("resize")}},toggle:function(l){var s=k.overlay,x=e.options.show.modal.effect,j=l?"show":"hide";s.stop(w,o);if(a.isFunction(x))x.call(s,l);else x===o?s[j]():s.fadeTo(90,l?0.7:0,function(){l||a(this).hide()})},show:function(){b.toggle(w)},hide:function(){b.toggle(o)},destroy:function(){var l=w;a("*").each(function(){var s=a(this).data("qtip");if(s&&s.id!==e.id&&s.options.show.modal)return l=o});if(l){k.overlay.remove(); +a(O).unbind(".qtipmodal")}else k.overlay.unbind(".qtipmodal"+e.id);q.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});b.init()}function ga(e){var b=this,m=e.elements,k=m.tooltip,q=".bgiframe-"+e.id,l="tooltipmove"+q+" tooltipshow"+q;a.extend(b,{init:function(){m.bgiframe=a('');m.bgiframe.appendTo(k);k.bind(l,b.adjust)}, +adjust:function(){var s=e.get("dimensions"),x=e.plugins.tip,j=e.elements.tip,D;D=parseInt(k.css("border-left-width"),10)||0;D={left:-D,top:-D};if(x&&j){x=x.corner.precedance==="x"?["width","left"]:["height","top"];D[x[1]]-=j[x[0]]()}m.bgiframe.css(D).css(s)},destroy:function(){b.iframe.remove();k.unbind(l)}});b.init()}var w=true,o=false,E=null,M="ui-tooltip",Y="ui-widget",S="ui-state-disabled",V="div.qtip."+M,W=M+"-focus",aa="-31000px",Z="oldtitle";a.fn.qtip=function(e,b,m){var k=String(e).toLowerCase(), +q=E,l=k==="disable"?[w]:a.makeArray(arguments).slice(1,10),s=l[l.length-1],x=this[0]?a.data(this[0],"qtip"):E;if(!arguments.length&&x||k==="api")return x;else if("string"===typeof e){this.each(function(){var j=a.data(this,"qtip");if(!j)return w;if(/option|set/.test(k)&&b)if(m!==T)j.set(b,m);else q=j.get(b);else{if(!j.rendered&&(k==="show"||k==="toggle")){if(s&&s.timeStamp)j.cache.event=s;j.render(1)}else if(k==="enable"){k="disable";l=[o]}j[k]&&j[k].apply(j[k],l)}});return q!==E?q:this}else if("object"=== +typeof e||!arguments.length){x=X(a.extend(w,{},e));return a.fn.qtip.bind.call(this,x,s)}};a.fn.qtip.bind=function(e,b){return this.each(function(){function m(D){function y(){j.render(typeof D==="object"||k.show.ready);q.show.unbind(l.show);q.hide.unbind(l.hide)}if(j.cache.disabled)return o;j.cache.event=a.extend({},D);if(k.show.delay>0){clearTimeout(j.timers.show);j.timers.show=setTimeout(y,k.show.delay);l.show!==l.hide&&q.hide.bind(l.hide,function(){clearTimeout(j.timers.show)})}else y()}var k,q, +l,s=e.id=!e.id||e.id===o||e.id.length<1||a("#"+M+"-"+e.id).length?a.fn.qtip.nextid++:e.id,x=".qtip-"+s+"-create",j=ba.call(this,s,e);if(j===o)return w;k=j.options;a.each(a.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(j)});q={show:k.show.target,hide:k.hide.target};l={show:String(k.show.event).replace(" ",x+" ")+x,hide:String(k.hide.event).replace(" ",x+" ")+x};q.show.bind(l.show,m);if(k.show.ready||k.prerender)m(b)})};a.each({attr:function(e,b){var m=this[0],k=a.data(m,"qtip");if(e=== +"title")if(arguments.length===1)return a.data(m,Z);else{k&&k.rendered&&k.options.content.attr==="title"&&k.cache.attr&&k.set("content.text",b);return a.data(m,Z,b)}},clone:function(){var e=a([]),b;a("*",this).each(function(){var m=a.data(this,m);if(m){a.attr(this,"title",m);e=e.add(this)}});b=a.fn.clone_replacedByqTip.apply(this,arguments);e.removeAttr("title");return b},remove:a.ui?E:function(e,b){a(this).each(function(){if(!b)if(!e||a.filter(e,[this]).length)a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}, +function(e,b){if(!b)return w;var m=a.fn[e+"_replacedByqTip"]=a.fn[e];a.fn[e]=function(){return b.apply(this,arguments)||m.apply(this,arguments)}});a(O).load(function(){var e=document,b=e.body;a(e).bind("mousemove.qtip",function(m){a.fn.qtip.mouse={pageX:m.pageX,pageY:m.pageY}});e.activeElement===T&&e.addEventListener("focus",function(m){if(m&&m.target)e.activeElement=m.target===e?b:m.target},true)});a.fn.qtip.version="2.0.0pre";a.fn.qtip.nextid=0;a.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "); +a.fn.qtip.zindex=15E3;a.fn.qtip.plugins={Corner:function(e){e=String(e).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase();this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=e.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 b=this.x.substr(0,1),m=this.y.substr(0,1); +return b===m?b:b==="c"||b!=="c"&&m!=="c"?m+b:b+m}},iOS:parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<4.1};a.fn.qtip.defaults={prerender:o,id:o,overwrite:w,metadata:{type:"class"},content:{text:w,attr:"title",title:{text:o,button:o}},position:{my:"top left",at:"bottom right",target:o,container:o,viewport:o,adjust:{x:0,y:0,mouse:w,resize:w},effect:w},show:{target:o,event:"mouseenter",effect:w,delay:90,solo:o,ready:o},hide:{target:o, +event:"mouseleave",effect:w,delay:0,fixed:o,inactive:o},style:{classes:"",widget:o},events:{render:E,move:E,show:E,hide:E,toggle:E,focus:E,blur:E}};a.fn.qtip.plugins.ajax=function(e){var b=e.plugins.ajax;return"object"===typeof b?b:e.plugins.ajax=new ca(e)};a.fn.qtip.plugins.ajax.initialize="render";a.fn.qtip.plugins.ajax.sanitize=function(e){var b=e.content;if(b&&"ajax"in b){b=b.ajax;if(typeof b!=="object")b=e.content.ajax={url:b};if("boolean"!==typeof b.once&&b.once)b.once=!!b.once}};a.extend(w, +a.fn.qtip.defaults,{content:{ajax:{once:w}}});a.fn.qtip.plugins.tip=function(e){var b=e.plugins.tip;return"object"===typeof b?b:e.plugins.tip=new ea(e)};a.fn.qtip.plugins.tip.initialize="render";a.fn.qtip.plugins.tip.sanitize=function(e){var b=e.style;if(b&&"tip"in b){b=e.style.tip;if(typeof b!=="object")e.style.tip={corner:b};if(!/string|boolean/i.test(typeof b.corner))b.corner=w;typeof b.width!=="number"&&delete b.width;typeof b.height!=="number"&&delete b.height;typeof b.border!=="number"&&b.border!== +w&&delete b.border;typeof b.offset!=="number"&&delete b.offset}};a.extend(w,a.fn.qtip.defaults,{style:{tip:{corner:w,mimic:o,width:8,height:8,border:w,offset:0}}});a.fn.qtip.plugins.imagemap=function(e,b){function m(z,N){for(var h=0,p=1,c=1,v=0,B=0,g=z.width,d=z.height;g>0&&d>0&&p>0&&c>0;){g=Math.floor(g/2);d=Math.floor(d/2);if(b.x==="left")p=g;else if(b.x==="right")p=z.width-g;else p+=Math.floor(g/2);if(b.y==="top")c=d;else if(b.y==="bottom")c=z.height-d;else c+=Math.floor(d/2);for(h=N.length;h--;){if(N.length< +2)break;v=N[h][0]-z.offset.left;B=N[h][1]-z.offset.top;if(b.x==="left"&&v>=p||b.x==="right"&&v<=p||b.x==="center"&&(vz.width-p)||b.y==="top"&&B>=c||b.y==="bottom"&&B<=c||b.y==="center"&&(Bz.height-c))N.splice(h,1)}}return{left:N[0][0],top:N[0][1]}}var k=e.attr("shape").toLowerCase(),q=e.attr("coords").split(","),l=[],s=a('img[usemap="#'+e.parent("map").attr("name")+'"]'),x=s.offset(),j={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},D=0,y=0;x.left+=Math.ceil((s.outerWidth()- +s.width())/2);x.top+=Math.ceil((s.outerHeight()-s.height())/2);if(k==="poly")for(D=q.length;D--;){y=[parseInt(q[--D],10),parseInt(q[D+1],10)];if(y[0]>j.offset.right)j.offset.right=y[0];if(y[0]j.offset.bottom)j.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 7B";(12(b,O,T){12 X(d){13 a;11(!d)15 o;11("1D"!==1k d.2a)d.2a={1S:d.2a};11("1b"2j d){11("1D"!==1k d.1b||d.1b.21)d.1b={1H:d.1b};a=d.1b.1H||o;11(!b.2u(a)&&(!a&&!a.1o||a.1q<1||"1D"===1k a&&!a.21))d.1b.1H=o;11("1j"2j d.1b){11("1D"!==1k d.1b.1j)d.1b.1j={1H:d.1b.1j};a=d.1b.1j.1H||o;11(!b.2u(a)&&(!a&&!a.1o||a.1q<1||"1D"===1k a&&!a.21))d.1b.1j.1H=o}}11("1l"2j d)11("1D"!==1k d.1l)d.1l={1T:d.1l,2o:d.1l};11("16"2j d)11("1D"!==1k d.16)d.16=d.16.21?{1i:d.16}:{1u:d.16};11("1a"2j d)11("1D"!==1k d.1a)d.1a=d.1a.21?{1i:d.1a}:{1u:d.1a};11("1n"2j d)11("1D"!==1k d.1n)d.1n={36:d.1n};b.1x(b.1c.14.1h,12(){18.3m&&18.3m(d)});15 d}12 Z(d,a,m,l){12 r(e){13 g,i=e.3j("."),q=a[i[0]];2O(e=1;e",{"1Y":"1M-38-3F "+(a.1n.2v?"":M+"-3v"),1j:"4n 1A","25-5C":"4n 1A"}).7A(b("<7t />",{"1Y":"1M-3v 1M-3v-5E",2V:"&5G;"}));e.1V.35(e.1O).1o("4t","1V").4R(12(i){b(18).2D("1M-38-4R",i.1S==="3r")}).40(12(i){f.2n(S)||c.1a(i);15 o}).1r("3S 5H 51 5I 6C",12(i){b(18).2D("1M-38-5J 1M-38-2w",i.1S.2Q(-4)==="5K")});c.3o()}12 y(){13 e=c.1y,g=B+"-1j";e.1O&&k();e.1O=b("<2F />",{"1Y":M+"-1O "+(a.1n.2v?"1M-2v-4o":"")}).3y(e.1j=b("<2F />",{1w:g,"1Y":M+"-1j","25-3M":w})).5L(e.1b);11(a.1b.1j.1V)D();1d c.1C===w&&c.3o()}12 z(e){13 g=c.1y.1j;11(!c.1C||!e)15 o;11(b.2u(e))e=e.1X(d,c)||"";e.21&&e.1q>0?g.4L().3y(e.1g({2E:"2Y"})):g.2V(e);c.3o();c.1C===w&&c.2e(c.1v.1u)}12 N(e){13 g=c.1y.1b;11(!c.1C||!e)15 o;11(b.2u(e))e=e.1X(d,c)||"";e.21&&e.1q>0?g.4L().3y(e.1g({2E:"2Y"})):g.2V(e);f.3z("3N",12(i){12 q(u){n=n.3u(u);11(n.1q===0){c.3o();c.1C===w&&c.2e(c.1v.1u);i()}}13 n=g.5M("3h:3u([1f]):3u([1e])");n.1x(12(u,F){13 K=["5N","4Z","2W","7e",""].5O(".14-5P ");b(18).1r(K,12(){1Z(c.1G.3h[u]);q(18)});(12 A(){11(F.1f)15 q(F);c.1G.3h[u]=3d(A,20)})();15 w});n.1q===0&&q(n)});15 c}12 h(e,g,i,q){12 n(t){11(f.2n(S))15 o;G.16.2y("14-"+m+"-2b");1Z(c.1G.16);1Z(c.1G.1a);13 H=12(){c.16(t)};11(a.16.2q>0)c.1G.16=3d(H,a.16.2q);1d H()}12 u(t){11(f.2n(S))15 o;13 H=b(t.4x||t.1i),J=H.4r(V)[0]===f[0];H=H[0]===G.16[0];1Z(c.1G.16);1Z(c.1G.1a);11(a.1a.2r&&(C.1i==="2m"&&J||/2m(4m|4w|3J)/.1P(t.1S)&&(J||H))){t.5Q();t.5R();15 o}f.4c(1,1);11(a.1a.2q>0)c.1G.1a=3d(12(){c.1a(t)},a.1a.2q);1d c.1a(t)}12 F(t){11(f.2n(S))15 o;1Z(c.1G.2b);c.1G.2b=3d(12(){c.1a(t)},a.1a.2b)}12 K(t){11(!c.1v.3O){c.1v.3O=1;s()&&c.2e(t);c.1v.3O=0}}13 A=".14-"+m,C=a.1l,G={16:a.16.1i,1a:a.1a.1i,1L:C.1L[0]===v?1W:C.1L},Q={16:2R(a.16.1u).3j(" "),1a:2R(a.1a.1u).3j(" ")},R=b(1W),I=b.22.2I&&1Q(b.22.3D,10)===6;11(i){11(a.1a.2r){G.1a=G.1a.2J(f);f.1r("5S"+A,12(){f.2n(S)||1Z(c.1G.1a)})}f.1r("3r"+A+" 4g"+A,12(t){c[t.1S==="3r"?"2w":"2s"](t)})}11(g){11("34"===1k a.1a.2b){G.16.1r("14-"+m+"-2b",F);b.1x(b.1c.14.56,12(t,H){G.1a.2J(c.1y.1A).1r(H+A+"-2b",F)})}b.1x(Q.1a,12(t,H){13 J=b.5T(H,Q.16),L=b(G.1a);11(J>-1&&L.2J(G.16).1q===L.1q||H==="4B"){G.16.1r(H+A,12(P){s()?u(P):n(P)});2T Q.16[J]}1d G.1a.1r(H+A,u)})}e&&b.1x(Q.16,12(t,H){G.16.1r(H+A,n)});11(q){11(C.2G.2x||C.2h)b(b.1u.5U.2x?C.2h:O).1r("2x"+A,K);11(C.2h||I&&f.1g("1l")==="2r")b(C.2h).1r("46"+A,K);/4B/i.1P(a.1a.1u)&&R.1r("3S"+A,12(t){13 H=b(t.1i);H.4r(V).1q===0&&H.2J(d).1q>1&&s()&&!f.2n(S)&&c.1a(t)});C.1i==="2m"&&R.1r("4f"+A,12(t){11(C.2G.2m&&!f.2n(S)&&s())c.2e(t||b.1c.14.2m)})}}12 p(e,g,i,q){q=1Q(q,10)!==0;13 n=".14-"+m;g={16:e?a.16.1i:E,1a:g?a.1a.1i:E,1A:i?c.1y.1A:E,1b:i?c.1y.1b:E,1L:q?a.1l.1L[0]===v?1W:a.1l.1L:E,4b:q?O:E};11(c.1C)b([]).6c(b.5V([g.16,g.1a,g.1A,g.1L,g.1b,g.4b],12(){15 18!==4l})).1U(n);1d e&&g.16.1U(n+"-2H")}13 c=18,v=1W.3g,B=M+"-"+m,f;c.1w=m;c.1C=o;c.1y={1i:d};c.1G={3h:[]};c.2p=a;c.1h={};c.1v={1u:{},1i:E,2L:o,4z:v,1o:l};b.1F(c,{27:12(e){11(c.1C)15 o;13 g=c.1y,i=a.1b.1H,q=a.1b.1j.1H,n=b.3c("5W");d.1o({"25-3Q":B});f=g.1A=b("<2F/>").1o({1w:B,"1Y":M+" 14 1M-4s-4u "+a.1n.36,4t:"6f","25-5X":"5Y","25-3M":o,"25-3Q":B+"-1b","25-3K":w}).2D(S,c.1v.2L).23("14",c).35(a.1l.1L).3y(g.1b=b("<2F />",{"1Y":M+"-1b",1w:B+"-1b","25-3M":w}));c.1C=w;11(q){y();z(q)}N(i);b.1x(b.1c.14.1h,12(){18.2C==="27"&&18(c)});h(1,1,1,1);b.1x(a.3I,12(u,F){11(F)f.1r(u==="2l"?"32 4d":"1A"+u,F)});f.3z("3N",12(u){n.3f=c.1v.1u;f.2y(n,[c]);11(a.16.3s||e){f.1a();c.16(c.1v.1u)}u()});15 c},48:12(e){5q(e.2B()){39"4k":e={1f:f.2U(),1e:f.3n()};2A;39"1m":e=j(f[0],a.1l.1L[0]);2A;3F:e=r(e.2B());e=e[0].1J?e[0].1I():e[0].21?e[0]:e[0][e[1]];2A}15 e},2X:12(e,g){e=e.2B();13 i=r(e),q=c.1y,n,u,F,K={60:{"^1w$":12(){13 A=g===w?b.1c.14.3R:g,C=M+"-"+A;11(A!==o&&A.1q>0&&!b("#"+C).1q){f[0].1w=C;q.1b[0].1w=C+"-1b";q.1j[0].1w=C+"-1j"}},"^1b.1H$":12(){N(g)},"^1b.1j.1H$":12(){11(!g)15 k();!c.1y.1j&&g&&y();z(g)},"^1b.1j.1V$":12(){13 A=c.1y.1V,C=c.1y.1j;11(c.1C)11(g){C||y();D()}1d A.28()},"^1l.(1T|2o)$":12(){13 A=/1T$/i.1P(e)?"1T":"2o";11("1I"===1k g)a.1l[A]=24 b.1c.14.1h.2K(g)},"^1l.1L$":12(){c.1C===w&&f.35(g)},"^(16|1a).(1u|1i|2r|2q|2b)$":12(A,C,G,Q){13 R=e.3W(/2r/i)>-1?[0,[0,1,1,1]]:[e.2Q(0,3),e.3i(0)==="s"?[1,0,0,0]:[0,1,0,0]];11(R[0])A[C]=Q;p.30(c,R[1]);11(R[0])A[C]=G;h.30(c,R[1])},"^16.3s$":12(){c.1C===o&&c.16()},"^1n.36$":12(){f.1o("1Y",M+" 14 1M-4s-4u "+g)},"^1n.2v|1b.1j":x,"^3I.(27|16|3J|1a|2w|2s)$":12(A,C,G){q.1A[(b.2u(g)?"":"69")+"1r"]("1A"+C,G)},"^1l.(1T|2o|2G|1i|1L)|1n|1b":12(){c.2e()}}};b.1x(c.1h,12(A){11("1D"===1k 18.3q)K[A]=18.3q});n=i[0][i[1]];i[0][i[1]]=g.6n?b(g):g;X(a);2O(u 2j K)2O(F 2j K[u])62(F,"i").1P(e)&&K[u][F].1X(c,i[0],i[1],g,n);15 c},2l:12(e,g){12 i(){11(e)b.22.2I&&f[0].1n.4H("37");1d f.1g({2E:"",4y:"3K",1e:"",4i:"",19:"",17:""})}11(c.1C===o)15 o;13 q=e?"16":"1a",n=a[q],u=s();11((1k e).3W("3e|34"))e=!u;11(!u&&!e||f.4a(":63"))15 c;11(g){11(/64|65/.1P(g.1S)&&/4m|4w/.1P(c.1v.1u.1S)&&g.1i===a.16.1i[0]&&f.66(g.4x).1q)15 c;c.1v.1u=b.1F({},g)}u=b.3c("1A"+q);u.3f=g?c.1v.1u:E;f.2y(u,[c,3H]);11(u.43())15 c;f.1o("25-3K",!!!e);11(e){f.1a().1g({4y:""});c.2w(g);c.2e(g,0);n.5p&&b(V).3u(f).14("1a")}1d{1Z(c.1G.16);c.2s(g)}f.4c(1,1);11(b.2u(n.2g)){n.2g.1X(f,c);f.3z("3N",12(F){i.1X(18,F);F()})}1d 11(n.2g===o){f[q]();i.1X(f)}1d f.5n(3H,e?1:0,i);e&&n.1i.2y("14-"+m+"-2b");15 b.1c.14.68=c},16:12(e){c.2l(w,e)},1a:12(e){c.2l(o,e)},2w:12(e){11(c.1C===o)15 o;13 g=b(V),i=1Q(f[0].1n.3l,10),q=b.1c.14.4X+g.1q;e=b.1F({},e);11(!f.2n(W)){11(i!==q){g.1x(12(){11(18.1n.3l>i)18.1n.3l-=1});g.37("."+W).14("2s",e)}c.1v.4z=1W.42;g=b.3c("6a");g.3f=e;f.2y(g,[c,q]);11(!g.43())f.41(W)[0].1n.3l=q}15 c},2s:12(e){e=b.1F({},e);13 g;f.4K(W);g=b.3c("6b");g.3f=e;f.2y(g,[c])},2e:12(e,g){11(c.1C===o)15 o;13 i=a.1l.1i,q=a.1l,n=q.1T,u=q.2o,F=q.2G,K=f.3n(),A=f.2U(),C=0,G=0,Q=b.3c("4e"),R=f.1g("1l")==="2r",I=q.2h.21?q.2h:b(O),t={19:0,17:0},H={19:12(J){13 L=I.2P,P=u.x==="19"?C:u.x==="1B"?-C:-C/2,U=L-J;L=J+K-I.1e-L;P=(n.x==="19"?K:n.x==="1B"?-K:-K/2)-(n.1J==="x"||n.x===n.y?P:0);11(U>0&&(n.x!=="19"||L>0))t.19-=P;1d 11(L>0&&(n.x!=="1B"||U>0))t.19-=(n.x==="1K"?-1:1)*P+2*F.x;11(t.19<0&&-t.19>L)t.19=J;15 t.19-J},17:12(J){13 L=I.2Z,P=u.y==="17"?G:u.y==="1E"?-G:-G/2,U=L-J;L=J+A-I.1f-L;P=(n.y==="17"?A:n.y==="1E"?-A:-A/2)-(n.1J==="y"||n.x===n.y?P:0);11(U>0&&(n.y!=="17"||L>0))t.17-=P;1d 11(L>0&&(n.y!=="1E"||U>0))t.17-=(n.y==="1K"?-1:1)*P+2*F.y;11(t.17<0&&-t.17>L)t.17=J;15 t.17-J}};g=g===T||!!g||o;I=!I?o:{4E:I,1f:I[(I[0]===O?"h":"6d")+"6e"](),1e:I[(I[0]===O?"w":"6g")+"6h"](),2P:I.2P(),2Z:I.2Z()};11(i==="2m"){u={x:"19",y:"17"};e=e&&(e.1S==="2x"||e.1S==="46")?c.1v.1u:F.2m||!e||!e.3E?b.1F({},b.1c.14.2m):e;t={17:e.3P,19:e.3E}}1d{11(i==="1u")i=e&&e.1i&&e.1S!=="46"&&e.1S!=="2x"?c.1v.1i=b(e.1i):c.1v.1i;i=b(i).6i(0);11(i.1q===0)15 c;1d 11(i[0]===1W||i[0]===O){C=i.1e();G=i.1f();11(i[0]===O)t={17:R?0:I.2Z,19:R?0:I.2P}}1d 11(i.4a("6j")&&b.1c.14.1h.49){t=b.1c.14.1h.49(i,u);C=t.1e;G=t.1f;t=t.1m}1d{C=i.3n();G=i.2U();t=j(i[0],q.1L[0])}t.19+=u.x==="1B"?C:u.x==="1K"?C/2:0;t.17+=u.y==="1E"?G:u.y==="1K"?G/2:0}t.19+=F.x+(n.x==="1B"?-K:n.x==="1K"?-K/2:0);t.17+=F.y+(n.y==="1E"?-A:n.y==="1K"?-A/2:0);t.3Y=q.2h.21&&i[0]!==O&&i[0]!==v?{19:H.19(t.19),17:H.17(t.17)}:{19:0,17:0};f.1o("1Y",12(){15 b(18).1o("1Y").2M(/1M-1A-4D-\\w+/i,"")}).41(M+"-4D-"+n.4S());Q.3f=b.1F({},e);f.2y(Q,[c,t,I.4E]);11(Q.43())15 c;2T t.3Y;11(!g||!6l(t.19,t.17))f.1g(t);1d 11(s()&&b.2u(q.2g)){q.2g.1X(f,c,t);f.3z(12(J){b(18).1g({4i:"",1f:""});b.22.2I&&18.1n&&18.1n.4H("37");J()})}15 c},3o:12(){11(!c.1C||!(b.22.2I&&b.22.3D<8))15 o;13 e=M+"-6o",g;f.1g({1e:"4I",1f:"4I"}).41(e);g={1f:f.2U(),1e:f.3n()};b.1x(["1e","1f"],12(i,q){13 n=1Q(f.1g("31-"+q),10)||0,u=1Q(f.1g("4J-"+q),10)||0;g[q]=n+u?1t.4J(1t.31(g[q],u),n):g[q]});f.1g(g).4K(e)},4j:12(e){13 g=S;11("3e"!==1k e)e=!(f.2n(g)||c.1v.2L);11(c.1C){f.2D(g,e);f.1o("25-2L",e)}1d c.1v.2L=!!e;15 c},2f:12(){13 e=b.23(d[0],"3b");11(c.1C){f.28();b.1x(c.1h,12(){18.2C==="27"&&18.2f()})}1Z(c.1G.16);1Z(c.1G.1a);p(1,1,1,1);d.53("14");e&&d.1o("1j",e);d.3L("25-3Q");15 d}})}12 4q(d,a){13 m,l,r,j=b(18),s=b(1W.3g),x=18===1W?s:j;l=j.2a?j.2a(a.2a):E;13 k=b.1F(w,{},b.1c.14.3p,a,X((l&&a.2a.1S==="6q"?l[a.2a.52]:E)||l));j.53("2a");l=k.1l;11("3e"===1k k.1b.1H)11(k.1b.1o!==o&&j.1o(k.1b.1o)){k.1b.1H=j.1o(k.1b.1o);r=k.1b.1o}1d 15 o;11(l.1L===o)l.1L=s;11(l.1i===o)l.1i=x;11(k.16.1i===o)k.16.1i=x;11(k.1a.1i===o)k.1a.1i=x;11(k.1l.2h===w)k.1l.2h=l.1L;l.2o=24 b.1c.14.1h.2K(l.2o);l.1T=24 b.1c.14.1h.2K(l.1T);11(b.23(18,"14"))11(k.45)j.14("2f");1d 11(k.45===o)15 o;11(j.1o("1j")){b.23(18,"3b",j.1o("1j"));j.3L("1j")}m=24 Z(j,k,d,r);b.23(18,"14",m);j.1r("28.14",12(){m.2f()});15 m}12 5r(d){13 a=18,m=d.1y.1A,l=d.2p.1b.1R;a.3q={"^1b.1R":12(r,j){11(j==="2c")a.2c();1d l&&l.3a&&a.2W()}};b.1F(a,{29:12(){11(l&&l.3a){a.2W();m.6r("32",a.2c)}},2c:12(){l.2c?a.2f():m.1r("32.14-1R",a.2W)},2W:12(){b.1R(b.1F({6t:12(r){d.2X("1b.1H",r)},4Z:12(r,j,s){d.2X("1b.1H",j+": "+s)},6u:d},l));15 a},2f:12(){m.1U(".14-1R")}});a.29()}12 4W(d,a,m){13 l=1t.3w(a/2),r=1t.3w(m/2);a={4T:[[0,0],[a,m],[a,0]],4N:[[0,0],[a,0],[0,m]],4Q:[[0,m],[a,0],[a,m]],4O:[[0,0],[0,m],[a,m]],6v:[[0,m],[l,0],[a,m]],6X:[[0,0],[a,0],[l,m]],6x:[[0,0],[a,r],[0,m]],6y:[[a,0],[a,m],[0,r]]};a.6z=a.4T;a.6A=a.4N;a.6B=a.4Q;a.6D=a.4O;15 a[d.1I()]}12 4p(d){12 a(h,p,c){11(s.1p){h=b.1F({},r.1z);p=c.3Y;13 v;11(r.1z.2r!==w){11(p.19)h.x=h.x==="1K"?p.19>0?"19":"1B":h.x==="19"?"1B":"19";11(p.17)h.y=h.y==="1K"?p.17>0?"17":"1E":h.y==="17"?"1E":"17";11(h.1I()!==k.1z&&(k.17!==p.17||k.19!==p.19))v=r.3k(h)}v||(v=r.1l(h,0));11(v.1B!==T)v.19=v.1B;11(v.1E!==T)v.17=v.1E;v.3G=1t.31(0,j.1m);c.19-=v.19.3i?v.3G:(v.1B?-1:1)*v.19;c.17-=v.17.3i?v.3G:(v.1E?-1:1)*v.17;k.19=p.19;k.17=p.17;k.1z=h.1I()}}12 m(h,p,c){p=!p?h[h.1J]:p;p="1s-"+p+"-1e";h=1Q((s.1O&&h.y==="17"?s.1O:s.1b).1g(p),10);15(c?h||1Q(x.1g(p),10):h)||0}12 l(h){13 p=h.1J==="y",c=D[p?"1e":"1f"],v=D[p?"1f":"1e"],B=h.1I().58("1K")>-1,f=c*(B?0.5:1),e=1t.6G;h=1t.47;13 g=1t.3V(e(f,2)+e(v,2));f=[z/f*g,z/v*g];f[2]=1t.3V(e(f[0],2)-e(z,2));f[3]=1t.3V(e(f[1],2)-e(z,2));B=(g+f[2]+f[3]+(B?0:f[0]))/g;c=[h(B*v),h(B*c)];15{1f:c[p?0:1],1e:c[p?1:0]}}13 r=18,j=d.2p.1n.1p,s=d.1y,x=s.1A,k={17:0,19:0,1z:""},D={1e:j.1e,1f:j.1f},y={},z=j.1s||0,N=b("<4M />")[0].3T;r.1z=E;r.3t=E;r.3q={"^1l.1T|1n.1p.(1z|3t|1s)$":12(){r.29()||r.2f();d.2e()},"^1n.1p.(1f|1e)$":12(){D={1e:j.1e,1f:j.1f};r.2H();r.3k();d.2e()},"^1b.1j.1H|1n.(36|2v)$":12(){s.1p&&r.3k()}};b.1F(r,{29:12(){13 h=r.4P()&&(N||b.22.2I);11(h){r.2H();r.3k();x.1U(".14-1p").1r("4e.14-1p",a)}15 h},4P:12(){13 h=j.1z,p=d.2p.1l,c=p.2o;p=p.1T.1I?p.1T.1I():p.1T;11(h===o||p===o&&c===o)15 o;1d 11(h===w)r.1z=24 b.1c.14.1h.2K(p);1d 11(!h.1I){r.1z=24 b.1c.14.1h.2K(h);r.1z.2r=w}15 r.1z.1I()!=="4v"},4U:12(){13 h=s.1p.1g({6I:"",1s:""}),p=r.1z,c=p[p.1J],v="1s-"+c+"-2z";c="1s"+c.3i(0)+c.2Q(1)+"6J";13 B=/6K?\\(0, 0, 0(, 0)?\\)|2S/i;p=s.1O&&(p.y==="17"||p.y==="1K"&&h.1l().17+D.1f/2+j.1m",{"1Y":"1M-1A-1p"}).1g({1e:h,1f:p}).6N(x);11(N)b("<4M />").35(s.1p)[0].3T("2d").4Y();1d{h=\'<44:3X 6O="0,0" 1n="2E:2Y; 1l:4h; 5d:3a(#3F#5e);">\';s.1p.2V(z?h+=h:h)}},3k:12(h){13 p=s.1p,c=p.6P(),v=D.1e,B=D.1f,f=j.3t,e=1t.47,g,i,q;11(!h)h=r.1z;11(f===o)f=h;1d{f=24 b.1c.14.1h.2K(f);f.1J=h.1J;11(f.x==="3B")f.x=h.x;1d 11(f.y==="3B")f.y=h.y;1d 11(f.x===f.y)f[h.1J]=h[h.1J]}g=f.1J;r.4U();z=y.1s==="2S"||y.1s==="#6R"?0:j.1s===w?m(h,E,w):j.1s;i=4W(f,v,B);q=l(h);p.1g(q);p=h.1J==="y"?[e(f.x==="19"?z:f.x==="1B"?q.1e-v-z:(q.1e-v)/2),e(f.y==="17"?q.1f-B:0)]:[e(f.x==="19"?q.1e-v:0),e(f.y==="17"?z:f.y==="1E"?q.1f-B-z:(q.1f-B)/2)];11(N){c.1o(q);c=c[0].3T("2d");c.6V();c.4Y();c.6Y(0,0,4A,4A);c.70(p[0],p[1]);c.71();c.73(i[0][0],i[0][1]);c.54(i[1][0],i[1][1]);c.54(i[2][0],i[2][1]);c.75();c.76=y.2t;c.78=y.1s;c.79=z*2;c.7b="5c";c.7c=7f;c.5b();c.2t()}1d{i="m"+i[0][0]+","+i[0][1]+" l"+i[1][0]+","+i[1][1]+" "+i[2][0]+","+i[2][1]+" 7g";p[2]=z&&/^(r|b)/i.1P(h.1I())?1:0;c.1g({7i:""+(f.1I().58("1K")>-1),19:p[0]-p[2]*59(g==="x"),17:p[1]-p[2]*59(g==="y"),1e:v+z,1f:B+z}).1x(12(n){13 u=b(18);u.1o({7k:v+z+" "+(B+z),7l:i,7m:y.2t,7o:!!n,7q:!!!n}).1g({2E:z||n?"2Y":"5m"});!n&&z>0&&u.2V()===""&&u.2V(\'<44:5b 7r="\'+z*2+\'7s" 2z="\'+y.1s+\'" 7u="7v" 7w="5c" 1n="5d:3a(#3F#5e); 2E:2Y;" />\')})}15 r.1l(h,1)},1l:12(h,p){13 c=s.1p,v={},B=1t.31(0,j.1m),f,e,g;11(j.1z===o||!c)15 o;h=h||r.1z;f=h.1J;e=l(h)[f==="x"?"1e":"1f"];g=b.22.2I&&z&&/^(b|r)/i.1P(h.1I())?1:0;b.1x(f==="y"?[h.x,h.y]:[h.y,h.x],12(i,q){13 n,u;11(q==="1K"){n=f==="y"?"19":"17";v[n]="50%";v["5k-"+n]=-1t.47(e/2)+B}1d{n=m(h,q,w);u=b.22.7y;13 F=h.y+(u?"":"-")+h.x;u=(u?"-7z-":b.22.5f?"-5f-":"")+(u?"1s-5h-"+F:"1s-"+F+"-5h");u=1Q((s.1O&&h.y==="17"?s.1O:s.1b).1g(u),10)||1Q(x.1g(u),10)||0;v[q]=i||!z?m(h,q):B+(u>n?u:0)}});v[h[f]]-=e+g;p&&c.1g({17:"",1E:"",19:"",1B:"",5k:""}).1g(v);15 v},2f:12(){s.1p&&s.1p.28();x.1U(".14-1p")}});r.29()}12 57(d){13 a=18,m=d.2p.16.1N,l=d.1y,r=l.1A;a.3q={"^16.1N.(33|2s)$":12(){a.29();l.26.2l(r.4a(":5l"))}};b.1F(a,{29:12(){11(m.33){r.1U(".2i").1r("32.2i 4d.2i",12(j,s,x){j=j.1S.2M("1A","");b.2u(m[j])?m[j].1X(l.26,x,s):a[j](x)});a.2H();m.2s===w&&l.26.1U(".2i"+d.1w).1r("40.2i"+d.1w,12(){d.1a.1X(d)})}},2H:12(){13 j=b("#14-26");11(j.1q)l.26=j;1d{l.26=b("<2F />",{1w:"#14-26".2Q(1),1g:{1l:"4h",17:0,19:0,2E:"5m",3l:1Q(r.1g("z-5s"),10)-1}}).35(1W.3g);b(O).1r("2x.2i",12(){l.26.1g({1f:1t.31(b(O).1f(),b(1W).1f()),1e:1t.31(b(O).1e(),b(1W).1e())})}).2y("2x")}},2l:12(j){13 s=l.26,x=d.2p.16.1N.2g,k=j?"16":"1a";s.4c(w,o);11(b.2u(x))x.1X(s,j);1d x===o?s[k]():s.5n(3H,j?0.7:0,12(){j||b(18).1a()})},16:12(){a.2l(w)},1a:12(){a.2l(o)},2f:12(){13 j=w;b("*").1x(12(){13 s=b(18).23("14");11(s&&s.1w!==d.1w&&s.2p.16.1N)15 j=o});11(j){l.26.28();b(O).1U(".2i")}1d l.26.1U(".2i"+d.1w);r.1U("32.2i 4d.2i")}});a.29()}12 4G(d){13 a=18,m=d.1y,l=m.1A,r=".2k-"+d.1w,j="4e"+r+" 32"+r;b.1F(a,{29:12(){m.2k=b(\'<3Z 1Y="1M-1A-2k" 7G="0" 7H="-1" 7I="7J:\\\'\\\';" 1n="2E:2Y; 1l:4h; z-5s:-1; 37:7L(4i=0);">\');m.2k.35(l);l.1r(j,a.2G)},2G:12(){13 s=d.48("4k"),x=d.1h.1p,k=d.1y.1p,D;D=1Q(l.1g("1s-19-1e"),10)||0;D={19:-D,17:-D};11(x&&k){x=x.1z.1J==="x"?["1e","19"]:["1f","17"];D[x[1]]-=k[x[0]]()}m.2k.1g(D).1g(s)},2f:12(){a.3Z.28();l.1U(j)}});a.29()}13 w=4F,o=5u,E=4l,M="1M-1A",Y="1M-2v",S="1M-38-2L",V="2F.14."+M,W=M+"-2w",$="-5w";b.1c.14=12(d,a,m){13 l=2R(d).2B(),r=E,j=l==="4j"?[w]:b.5x(2N).4C(1,10),s=j[j.1q-1],x=18[0]?b.23(18[0],"14"):E;11(!2N.1q&&x||l==="5z")15 x;1d 11("1I"===1k d){18.1x(12(){13 k=b.23(18,"14");11(!k)15 w;11(/3G|2X/.1P(l)&&a)11(m!==T)k.2X(a,m);1d r=k.48(a);1d{11(!k.1C&&(l==="16"||l==="2l")){11(s&&s.5D)k.1v.1u=s;k.27(1)}1d 11(l==="5F"){l="4j";j=[o]}k[l]&&k[l].30(k[l],j)}});15 r!==E?r:18}1d 11("1D"===1k d||!2N.1q){x=X(b.1F(w,{},d));15 b.1c.14.1r.1X(18,x,s)}};b.1c.14.1r=12(d,a){15 18.1x(12(){12 m(D){12 y(){k.27(1k D==="1D"||l.16.3s);r.16.1U(j.16);r.1a.1U(j.1a)}11(k.1v.2L)15 o;k.1v.1u=b.1F({},D);11(l.16.2q>0){1Z(k.1G.16);k.1G.16=3d(y,l.16.2q);j.16!==j.1a&&r.1a.1r(j.1a,12(){1Z(k.1G.16)})}1d y()}13 l,r,j,s=d.1w=!d.1w||d.1w===o||d.1w.1q<1||b("#"+M+"-"+d.1w).1q?b.1c.14.3R++:d.1w,x=".14-"+s+"-2H",k=4q.1X(18,s,d);11(k===o)15 w;l=k.2p;b.1x(b.1c.14.1h,12(){18.2C==="2C"&&18(k)});r={16:l.16.1i,1a:l.1a.1i};j={16:2R(l.16.1u).2M(" ",x+" ")+x,1a:2R(l.1a.1u).2M(" ",x+" ")+x};r.16.1r(j.16,m);11(l.16.3s||l.5a)m(a)})};b.1x({1o:12(d,a){13 m=18[0],l=b.23(m,"14");11(d==="1j")11(2N.1q===1)15 b.23(m,"3b");1d{l&&l.1C&&l.2p.1b.1o==="1j"&&l.1v.1o&&l.2X("1b.1H",a);15 b.23(m,"3b",a)}},5Z:12(){13 d=b([]),a;b("*",18).1x(12(){13 m=b.23(18,"3b");11(m){b.1o(18,"1j",m);d=d.2J(18)}});a=b.1c.61.30(18,2N);d.3L("1j");15 a},28:b.1M?E:12(d,a){b(18).1x(12(){11(!a)11(!d||b.37(d,[18]).1q)b("*",18).2J(18).1x(12(){b(18).67("28")})})}},12(d,a){11(!a)15 w;b.1c["5i"+d]=b.1c[d];b.1c[d]=12(){15 a.30(18,2N)||b.1c["5i"+d].30(18,2N)}});b(O).2W(12(){13 d=1W,a=d.3g;b(d).1r("4f.14",12(m){b.1c.14.2m={3E:m.3E,3P:m.3P}});d.42===T&&d.6k("2w",12(m){11(m&&m.1i)d.42=m.1i===d?a:m.1i},4F)});b.1c.14.3D="2.0.6m";b.1c.14.3R=0;b.1c.14.56="40 6p 3S 51 4f 4g 3r".3j(" ");b.1c.14.4X=6w;b.1c.14.1h={2K:12(d){d=2R(d).2M(/([A-Z])/," $1").2M(/6E/6F,"1K").2B();18.x=(d.3U(/19|1B/i)||d.3U(/1K/)||["3B"])[0].2B();18.y=(d.3U(/17|1E|1K/i)||["3B"])[0].2B();18.1J=d.3i(0).3W(/^(t|b)/)>-1?"y":"x";18.1I=12(){15 18.1J==="y"?18.y+18.x:18.x+18.y};18.4S=12(){13 a=18.x.2Q(0,1),m=18.y.2Q(0,1);15 a===m?a:a==="c"||a!=="c"&&m!=="c"?m+a:a+m}},4V:6U((/6W.+6Z ([0-72]{3}).*74.*77/i.7a(7d.7h)||[0,"7j"])[1].2M("7n","."))<4.1};b.1c.14.3p={5a:o,1w:o,45:w,2a:{1S:"1Y"},1b:{1H:w,1o:"1j",1j:{1H:o,1V:o}},1l:{1T:"17 19",2o:"1E 1B",1i:o,1L:o,2h:o,2G:{x:0,y:0,2m:w,2x:w},2g:w},16:{1i:o,1u:"3r",2g:w,2q:3H,5p:o,3s:o},1a:{1i:o,1u:"4g",2g:w,2q:0,2r:o,2b:o},1n:{36:"",2v:o},3I:{27:E,3J:E,16:E,1a:E,2l:E,2w:E,2s:E}};b.1c.14.1h.1R=12(d){13 a=d.1h.1R;15"1D"===1k a?a:d.1h.1R=24 5r(d)};b.1c.14.1h.1R.2C="27";b.1c.14.1h.1R.3m=12(d){13 a=d.1b;11(a&&"1R"2j a){a=a.1R;11(1k a!=="1D")a=d.1b.1R={3a:a};11("3e"!==1k a.2c&&a.2c)a.2c=!!a.2c}};b.1F(w,b.1c.14.3p,{1b:{1R:{2c:w}}});b.1c.14.1h.1p=12(d){13 a=d.1h.1p;15"1D"===1k a?a:d.1h.1p=24 4p(d)};b.1c.14.1h.1p.2C="27";b.1c.14.1h.1p.3m=12(d){13 a=d.1n;11(a&&"1p"2j a){a=d.1n.1p;11(1k a!=="1D")d.1n.1p={1z:a};11(!/1I|3e/i.1P(1k a.1z))a.1z=w;1k a.1e!=="34"&&2T a.1e;1k a.1f!=="34"&&2T a.1f;1k a.1s!=="34"&&a.1s!==w&&2T a.1s;1k a.1m!=="34"&&2T a.1m}};b.1F(w,b.1c.14.3p,{1n:{1p:{1z:w,3t:o,1e:8,1f:8,1s:w,1m:0}}});b.1c.14.1h.49=12(d,a){12 m(z,N){2O(13 h=0,p=1,c=1,v=0,B=0,f=z.1e,e=z.1f;f>0&&e>0&&p>0&&c>0;){f=1t.3x(f/2);e=1t.3x(e/2);11(a.x==="19")p=f;1d 11(a.x==="1B")p=z.1e-f;1d p+=1t.3x(f/2);11(a.y==="17")c=e;1d 11(a.y==="1E")c=z.1f-e;1d c+=1t.3x(e/2);2O(h=N.1q;h--;){11(N.1q<2)2A;v=N[h][0]-z.1m.19;B=N[h][1]-z.1m.17;11(a.x==="19"&&v>=p||a.x==="1B"&&v<=p||a.x==="1K"&&(vz.1e-p)||a.y==="17"&&B>=c||a.y==="1E"&&B<=c||a.y==="1K"&&(Bz.1f-c))N.6s(h,1)}}15{19:N[0][0],17:N[0][1]}}13 l=d.1o("3X").2B(),r=d.1o("6H").3j(","),j=[],s=b(\'3h[6Q="#\'+d.6S("5g").1o("52")+\'"]\'),x=s.1m(),k={1e:0,1f:0,1m:{17:55,1B:0,1E:0,19:55}},D=0,y=0;x.19+=1t.3w((s.3n()-s.1e())/2);x.17+=1t.3w((s.2U()-s.1f())/2);11(l==="5j")2O(D=r.1q;D--;){y=[1Q(r[--D],10),1Q(r[D+1],10)];11(y[0]>k.1m.1B)k.1m.1B=y[0];11(y[0]k.1m.1E)k.1m.1E=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}('"7C 5u";(12(a,O,T){12 X(e){13 b;11(!e)15 o;11("1E"!==1k e.2k)e.2k={1Q:e.2k};11("1b"2b e){11("1E"!==1k e.1b||e.1b.21)e.1b={1H:e.1b};b=e.1b.1H||o;11(!a.2q(b)&&(!b&&!b.1q||b.1p<1||"1E"===1k b&&!b.21))e.1b.1H=o;11("1j"2b e.1b){11("1E"!==1k e.1b.1j)e.1b.1j={1H:e.1b.1j};b=e.1b.1j.1H||o;11(!a.2q(b)&&(!b&&!b.1q||b.1p<1||"1E"===1k b&&!b.21))e.1b.1j.1H=o}}11("1l"2b e)11("1E"!==1k e.1l)e.1l={1U:e.1l,2n:e.1l};11("16"2b e)11("1E"!==1k e.16)e.16=e.16.21?{1i:e.16}:{1u:e.16};11("1a"2b e)11("1E"!==1k e.1a)e.1a=e.1a.21?{1i:e.1a}:{1u:e.1a};11("1m"2b e)11("1E"!==1k e.1m)e.1m={36:e.1m};a.1y(a.1c.14.1h,12(){17.3b&&17.3b(e)});15 e}12 $(e,b,m,k){12 q(d){13 f,i=d.3d("."),r=b[i[0]];2Q(d=1;d",{"1Z":"1L-3f-3D "+(b.1m.2C?"":M+"-3y"),1j:"4k 1C","27-5A":"4k 1C"}).5C(a("<5D />",{"1Z":"1L-3y 1L-3y-7B",2X:"&5E;"}));d.1T.35(d.1O).1q("4q","1T").4R(12(i){a(17).2B("1L-3f-4R",i.1Q==="3p")}).43(12(i){g.2s(S)||c.1a(i);15 o}).1r("3V 5G 53 5I 5J",12(i){a(17).2B("1L-3f-6A 1L-3f-2z",i.1Q.2V(-4)==="5K")});c.3i()}12 y(){13 d=c.1z,f=B+"-1j";d.1O&&j();d.1O=a("<2F />",{"1Z":M+"-1O "+(b.1m.2C?"1L-2C-4m":"")}).3G(d.1j=a("<2F />",{1w:f,"1Z":M+"-1j","27-3N":w})).5L(d.1b);11(b.1b.1j.1T)D();1d c.1D===w&&c.3i()}12 z(d){13 f=c.1z.1j;11(!c.1D||!d)15 o;11(a.2q(d))d=d.23(e,c)||"";d.21&&d.1p>0?f.4L().3G(d.1g({2D:"33"})):f.2X(d);c.3i();c.1D===w&&c.2e(c.1v.1u)}12 N(d){13 f=c.1z.1b;11(!c.1D||!d)15 o;11(a.2q(d))d=d.23(e,c)||"";d.21&&d.1p>0?f.4L().3G(d.1g({2D:"33"})):f.2X(d);g.3s("3U",12(i){12 r(u){n=n.3t(u);11(n.1p===0){c.3i();c.1D===w&&c.2e(c.1v.1u);i()}}13 n=f.5M("3j:3t([1f]):3t([1e])");n.1y(12(u,F){13 K=["5N","4X","2S","5O",""].7M(".14-5P ");a(17).1r(K,12(){1Y(c.1G.3j[u]);r(17)});(12 A(){11(F.1f)15 r(F);c.1G.3j[u]=3g(A,20)})();15 w});n.1p===0&&r(n)});15 c}12 h(d,f,i,r){12 n(t){11(g.2s(S))15 o;G.16.2A("14-"+m+"-2l");1Y(c.1G.16);1Y(c.1G.1a);13 H=12(){c.16(t)};11(b.16.2u>0)c.1G.16=3g(H,b.16.2u);1d H()}12 u(t){11(g.2s(S))15 o;13 H=a(t.4u||t.1i),J=H.4o(V)[0]===g[0];H=H[0]===G.16[0];1Y(c.1G.16);1Y(c.1G.1a);11(b.1a.2t&&(C.1i==="2i"&&J||/2i(4s|4t|3J)/.1N(t.1Q)&&(J||H))){t.5Q();t.5R();15 o}g.4c(1,1);11(b.1a.2u>0)c.1G.1a=3g(12(){c.1a(t)},b.1a.2u);1d c.1a(t)}12 F(t){11(g.2s(S))15 o;1Y(c.1G.2l);c.1G.2l=3g(12(){c.1a(t)},b.1a.2l)}12 K(t){11(!c.1v.3R){c.1v.3R=1;s()&&c.2e(t);c.1v.3R=0}}13 A=".14-"+m,C=b.1l,G={16:b.16.1i,1a:b.1a.1i,1M:C.1M[0]===v?1V:C.1M},Q={16:2U(b.16.1u).3d(" "),1a:2U(b.1a.1u).3d(" ")},R=a(1V),I=a.1X.2H&&1R(a.1X.3C,10)===6;11(i){11(b.1a.2t){G.1a=G.1a.2G(g);g.1r("5S"+A,12(){g.2s(S)||1Y(c.1G.1a)})}g.1r("3p"+A+" 4g"+A,12(t){c[t.1Q==="3p"?"2z":"2o"](t)})}11(f){11("34"===1k b.1a.2l){G.16.1r("14-"+m+"-2l",F);a.1y(a.1c.14.4I,12(t,H){G.1a.2G(c.1z.1C).1r(H+A+"-2l",F)})}a.1y(Q.1a,12(t,H){13 J=a.5T(H,Q.16),L=a(G.1a);11(J>-1&&L.2G(G.16).1p===L.1p||H==="4y"){G.16.1r(H+A,12(P){s()?u(P):n(P)});2Y Q.16[J]}1d G.1a.1r(H+A,u)})}d&&a.1y(Q.16,12(t,H){G.16.1r(H+A,n)});11(r){11(C.2M.2v||C.2c)a(a.1u.5V.2v?C.2c:O).1r("2v"+A,K);11(C.2c||I&&g.1g("1l")==="2t")a(C.2c).1r("3O"+A,K);/4y/i.1N(b.1a.1u)&&R.1r("3V"+A,12(t){13 H=a(t.1i);H.4o(V).1p===0&&H.2G(e).1p>1&&s()&&!g.2s(S)&&c.1a(t)});C.1i==="2i"&&R.1r("44"+A,12(t){11(C.2M.2i&&!g.2s(S)&&s())c.2e(t||a.1c.14.2i)})}}12 p(d,f,i,r){r=1R(r,10)!==0;13 n=".14-"+m;f={16:d?b.16.1i:E,1a:f?b.1a.1i:E,1C:i?c.1z.1C:E,1b:i?c.1z.1b:E,1M:r?b.1l.1M[0]===v?1V:b.1l.1M:E,4d:r?O:E};11(c.1D)a([]).5W(a.6h([f.16,f.1a,f.1C,f.1M,f.1b,f.4d],12(){15 17!==4j})).1W(n);1d d&&f.16.1W(n+"-2I")}13 c=17,v=1V.3a,B=M+"-"+m,g;c.1w=m;c.1D=o;c.1z={1i:e};c.1G={3j:[]};c.2p=b;c.1h={};c.1v={1u:{},1i:E,2L:o,4x:v,1q:k};a.1F(c,{24:12(d){11(c.1D)15 o;13 f=c.1z,i=b.1b.1H,r=b.1b.1j.1H,n=a.3q("5X");a.1q(e[0],"27-3P",B);g=f.1C=a("<2F/>").1q({1w:B,"1Z":M+" 14 1L-4p-4r "+b.1m.36,4q:"5Y","27-5Z":"60","27-3N":o,"27-3P":B+"-1b","27-3K":w}).2B(S,c.1v.2L).22("14",c).35(b.1l.1M).3G(f.1b=a("<2F />",{"1Z":M+"-1b",1w:B+"-1b","27-3N":w}));c.1D=w;11(r){y();z(r)}N(i);a.1y(a.1c.14.1h,12(){17.2E==="24"&&17(c)});h(1,1,1,1);a.1y(b.3I,12(u,F){11(F)g.1r(u==="2f"?"31 4e":"1C"+u,F)});g.3s("3U",12(u){n.3k=c.1v.1u;g.2A(n,[c]);11(b.16.3r||d){g.1a();c.16(c.1v.1u)}u()});15 c},47:12(d){5o(d.2y()){37"5q":d={1f:g.2W(),1e:g.3h()};2x;37"1n":d=l(g[0],b.1l.1M[0]);2x;3D:d=q(d.2y());d=d[0].1K?d[0].1I():d[0].21?d[0]:d[0][d[1]];2x}15 d},2P:12(d,f){d=d.2y();13 i=q(d),r=c.1z,n,u,F,K={61:{"^1w$":12(){13 A=f===w?a.1c.14.3T:f,C=M+"-"+A;11(A!==o&&A.1p>0&&!a("#"+C).1p){g[0].1w=C;r.1b[0].1w=C+"-1b";r.1j[0].1w=C+"-1j"}},"^1b.1H$":12(){N(f)},"^1b.1j.1H$":12(){11(!f)15 j();!c.1z.1j&&f&&y();z(f)},"^1b.1j.1T$":12(){13 A=c.1z.1T,C=c.1z.1j;11(c.1D)11(f){C||y();D()}1d A.25()},"^1l.(1U|2n)$":12(){13 A=/1U$/i.1N(d)?"1U":"2n";11("1I"===1k f)b.1l[A]=28 a.1c.14.1h.2K(f)},"^1l.1M$":12(){c.1D===w&&g.35(f)},"^(16|1a).(1u|1i|2t|2u|2l)$":12(A,C,G,Q){13 R=d.3Y(/2t/i)>-1?[0,[0,1,1,1]]:[d.2V(0,3),d.3e(0)==="s"?[1,0,0,0]:[0,1,0,0]];11(R[0])A[C]=Q;p.2R(c,R[1]);11(R[0])A[C]=G;h.2R(c,R[1])},"^16.3r$":12(){c.1D===o&&c.16()},"^1m.36$":12(){a.1q(g[0],"1Z",M+" 14 1L-4p-4r "+f)},"^1m.2C|1b.1j":x,"^3I.(24|16|3J|1a|2z|2o)$":12(A,C,G){r.1C[(a.2q(f)?"":"63")+"1r"]("1C"+C,G)},"^1l.(1U|2n|2M|1i|1M)|1m|1b":12(){c.2e()}}};a.1y(c.1h,12(A){11("1E"===1k 17.39)K[A]=17.39});n=i[0][i[1]];i[0][i[1]]=f.6p?a(f):f;X(b);2Q(u 2b K)2Q(F 2b K[u])5U(F,"i").1N(d)&&K[u][F].23(c,i[0],i[1],f,n);15 c},2f:12(d,f){12 i(){11(d)a.1X.2H&&g[0].1m.4G("38");1d g.1g({2D:"",4v:"3K",1e:"",4i:"",19:"",18:""})}11(c.1D===o)15 o;13 r=d?"16":"1a",n=b[r],u=s();11((1k d).3Y("3l|34"))d=!u;11(!u&&!d||g.4b(":65"))15 c;11(f){11(/66|67/.1N(f.1Q)&&/4s|4t/.1N(c.1v.1u.1Q)&&f.1i===b.16.1i[0]&&g.68(f.4u).1p)15 c;c.1v.1u=a.1F({},f)}u=a.3q("1C"+r);u.3k=f?c.1v.1u:E;g.2A(u,[c,3F]);11(u.3S())15 c;a.1q(g[0],"27-3K",!!!d);11(d){g.1a().1g({4v:""});c.2z(f);c.2e(f,0);n.5n&&a(V).3t(g).14("1a")}1d{1Y(c.1G.16);c.2o(f)}g.4c(1,1);11(a.2q(n.2g)){n.2g.23(g,c);g.3s("3U",12(F){i.23(17,F);F()})}1d 11(n.2g===o){g[r]();i.23(g)}1d g.5m(3F,d?1:0,i);d&&n.1i.2A("14-"+m+"-2l");15 a.1c.14.69=c},16:12(d){c.2f(w,d)},1a:12(d){c.2f(o,d)},2z:12(d){11(c.1D===o)15 o;13 f=a(V),i=1R(g[0].1m.3o,10),r=a.1c.14.4Z+f.1p;d=a.1F({},d);11(!g.2s(W)){11(i!==r){f.1y(12(){11(17.1m.3o>i)17.1m.3o-=1});f.38("."+W).14("2o",d)}c.1v.4x=1V.45;f=a.3q("6b");f.3k=d;g.2A(f,[c,r]);11(!f.3S())g.42(W)[0].1m.3o=r}15 c},2o:12(d){d=a.1F({},d);13 f;g.4K(W);f=a.3q("6c");f.3k=d;g.2A(f,[c])},2e:12(d,f){11(c.1D===o)15 o;13 i=b.1l.1i,r=b.1l,n=r.1U,u=r.2n,F=r.2M,K=g.3h(),A=g.2W(),C=0,G=0,Q=a.3q("4f"),R=g.1g("1l")==="2t",I=r.2c.21?r.2c:a(O),t={19:0,18:0},H={19:12(J){13 L=I.30,P=u.x==="19"?C:u.x==="1A"?-C:-C/2,U=L-J;L=J+K-I.1e-L;P=(n.x==="19"?K:n.x==="1A"?-K:-K/2)-(n.1K==="x"||n.x===n.y?P:0);11(U>0&&(n.x!=="19"||L>0))t.19-=P;1d 11(L>0&&(n.x!=="1A"||U>0))t.19-=(n.x==="1J"?-1:1)*P+2*F.x;11(t.19<0&&-t.19>L)t.19=J;15 t.19-J},18:12(J){13 L=I.2Z,P=u.y==="18"?G:u.y==="1B"?-G:-G/2,U=L-J;L=J+A-I.1f-L;P=(n.y==="18"?A:n.y==="1B"?-A:-A/2)-(n.1K==="y"||n.x===n.y?P:0);11(U>0&&(n.y!=="18"||L>0))t.18-=P;1d 11(L>0&&(n.y!=="1B"||U>0))t.18-=(n.y==="1J"?-1:1)*P+2*F.y;11(t.18<0&&-t.18>L)t.18=J;15 t.18-J}};f=f===T||!!f||o;I=!I?o:{4C:I,1f:I[(I[0]===O?"h":"6e")+"6f"](),1e:I[(I[0]===O?"w":"6g")+"6i"](),30:I.30(),2Z:I.2Z()};11(i==="2i"){u={x:"19",y:"18"};d=d&&(d.1Q==="2v"||d.1Q==="3O")?c.1v.1u:F.2i||!d||!d.3x?a.1F({},a.1c.14.2i):d;t={18:d.3Q,19:d.3x}}1d{11(i==="1u")i=d&&d.1i&&d.1Q!=="3O"&&d.1Q!=="2v"?c.1v.1i=a(d.1i):c.1v.1i;i=a(i).6j(0);11(i.1p===0)15 c;1d 11(i[0]===1V||i[0]===O){C=i.1e();G=i.1f();11(i[0]===O)t={18:R?0:I.2Z,19:R?0:I.30}}1d 11(i.4b("6k")&&a.1c.14.1h.4a){t=a.1c.14.1h.4a(i,u);C=t.1e;G=t.1f;t=t.1n}1d{C=i.3h();G=i.2W();t=l(i[0],r.1M[0])}t.19+=u.x==="1A"?C:u.x==="1J"?C/2:0;t.18+=u.y==="1B"?G:u.y==="1J"?G/2:0}t.19+=F.x+(n.x==="1A"?-K:n.x==="1J"?-K/2:0);t.18+=F.y+(n.y==="1B"?-A:n.y==="1J"?-A/2:0);t.3W=r.2c.21&&i[0]!==O&&i[0]!==v?{19:H.19(t.19),18:H.18(t.18)}:{19:0,18:0};g.1q("1Z",12(){15 a.1q(17,"1Z").2J(/1L-1C-4B-\\w+/i,"")}).42(M+"-4B-"+n.4M());Q.3k=a.1F({},d);g.2A(Q,[c,t,I.4C]);11(Q.3S())15 c;2Y t.3W;11(!f||!6m(t.19,t.18))g.1g(t);1d 11(s()&&a.2q(r.2g)){r.2g.23(g,c,t);g.3s(12(J){a(17).1g({4i:"",1f:""});a.1X.2H&&17.1m&&17.1m.4G("38");J()})}15 c},3i:12(){11(!c.1D||!(a.1X.2H&&a.1X.3C<8))15 o;13 d=M+"-6o",f;g.1g({1e:"56",1f:"56"}).42(d);f={1f:g.2W(),1e:g.3h()};a.1y(["1e","1f"],12(i,r){13 n=1R(g.1g("2O-"+r),10)||0,u=1R(g.1g("4J-"+r),10)||0;f[r]=n+u?1t.4J(1t.2O(f[r],u),n):f[r]});g.1g(f).4K(d)},3M:12(d){13 f=S;11("3l"!==1k d)d=!(g.2s(f)||c.1v.2L);11(c.1D){g.2B(f,d);a.1q(g[0],"27-2L",d)}1d c.1v.2L=!!d;15 c},2h:12(){13 d=e[0],f=a.22(d,f);11(c.1D){g.25();a.1y(c.1h,12(){17.2E==="24"&&17.2h()})}1Y(c.1G.16);1Y(c.1G.1a);p(1,1,1,1);a.4Y(d,"14");f&&a.1q(d,"1j",f);e.3L("27-3P");15 e}})}12 4A(e,b){13 m,k,q,l=a(17),s=a(1V.3a),x=17===1V?s:l;k=l.2k?l.2k(b.2k):E;13 j=a.1F(w,{},a.1c.14.3n,b,X((k&&b.2k.1Q==="6r"?k[b.2k.52]:E)||k));a.4Y(17,"2k");k=j.1l;11("3l"===1k j.1b.1H){q=a.1q(17,j.1b.1q);11(j.1b.1q!==o&&q){j.1b.1H=q;q=j.1b.1q}1d 15 o}11(k.1M===o)k.1M=s;11(k.1i===o)k.1i=x;11(j.16.1i===o)j.16.1i=x;11(j.1a.1i===o)j.1a.1i=x;11(j.1l.2c===w)j.1l.2c=k.1M;k.2n=28 a.1c.14.1h.2K(k.2n);k.1U=28 a.1c.14.1h.2K(k.1U);11(a.22(17,"14"))11(j.48)l.14("2h");1d 11(j.48===o)15 o;11(a.1q(17,"1j")){a.22(17,Z,a.1q(17,"1j"));l.3L("1j")}m=28 $(l,j,e,q);a.22(17,"14",m);l.1r("25.14",12(){m.2h()});15 m}12 5f(e){13 b=17,m=e.1z.1C,k=e.2p.1b.1S;b.39={"^1b.1S":12(q,l){11(l==="2m")b.2m();1d k&&k.3m&&b.2S()}};a.1F(b,{2a:12(){11(k&&k.3m){b.2S();m.73("31",b.2m)}},2m:12(){k.2m?b.2h():m.1r("31.14-1S",b.2S)},2S:12(){a.1S(a.1F({6s:12(q){e.2P("1b.1H",q)},4X:12(q,l,s){e.2P("1b.1H",l+": "+s)},6u:e},k));15 b},2h:12(){m.1W(".14-1S")}});b.2a()}12 4V(e,b,m){13 k=1t.3u(b/2),q=1t.3u(m/2);b={4T:[[0,0],[b,m],[b,0]],4N:[[0,0],[b,0],[0,m]],4O:[[0,m],[b,0],[b,m]],4Q:[[0,0],[0,m],[b,m]],6v:[[0,m],[k,0],[b,m]],6w:[[0,0],[b,0],[k,m]],6X:[[0,0],[b,q],[0,m]],6y:[[b,0],[b,m],[0,q]]};b.6z=b.4T;b.6B=b.4N;b.6C=b.4O;b.6D=b.4Q;15 b[e.1I()]}12 4n(e){12 b(h,p,c){11(s.1o){h=a.1F({},q.1x);p=c.3W;13 v;11(q.1x.2t!==w){11(p.19)h.x=h.x==="1J"?p.19>0?"19":"1A":h.x==="19"?"1A":"19";11(p.18)h.y=h.y==="1J"?p.18>0?"18":"1B":h.y==="18"?"1B":"18";11(h.1I()!==j.1x&&(j.18!==p.18||j.19!==p.19))v=q.3c(h)}v||(v=q.1l(h,0));11(v.1A!==T)v.19=v.1A;11(v.1B!==T)v.18=v.1B;v.3E=1t.2O(0,l.1n);c.19-=v.19.3e?v.3E:(v.1A?-1:1)*v.19;c.18-=v.18.3e?v.3E:(v.1B?-1:1)*v.18;j.19=p.19;j.18=p.18;j.1x=h.1I()}}12 m(h,p,c){p=!p?h[h.1K]:p;p="1s-"+p+"-1e";h=1R((s.1O&&h.y==="18"?s.1O:s.1b).1g(p),10);15(c?h||1R(x.1g(p),10):h)||0}12 k(h){13 p=h.1K==="y",c=D[p?"1e":"1f"],v=D[p?"1f":"1e"],B=h.1I().57("1J")>-1,g=c*(B?0.5:1),d=1t.6G;h=1t.49;13 f=1t.3X(d(g,2)+d(v,2));g=[z/g*f,z/v*f];g[2]=1t.3X(d(g[0],2)-d(z,2));g[3]=1t.3X(d(g[1],2)-d(z,2));B=(f+g[2]+g[3]+(B?0:g[0]))/f;c=[h(B*v),h(B*c)];15{1f:c[p?0:1],1e:c[p?1:0]}}13 q=17,l=e.2p.1m.1o,s=e.1z,x=s.1C,j={18:0,19:0,1x:""},D={1e:l.1e,1f:l.1f},y={},z=l.1s||0,N=a("<4S />")[0].40;q.1x=E;q.3v=E;q.39={"^1l.1U|1m.1o.(1x|3v|1s)$":12(){q.2a()||q.2h();e.2e()},"^1m.1o.(1f|1e)$":12(){D={1e:l.1e,1f:l.1f};q.2I();q.3c();e.2e()},"^1b.1j.1H|1m.(36|2C)$":12(){s.1o&&q.3c()}};a.1F(q,{2a:12(){13 h=q.4P()&&(N||a.1X.2H);11(h){q.2I();q.3c();x.1W(".14-1o").1r("4f.14-1o",b)}15 h},4P:12(){13 h=l.1x,p=e.2p.1l,c=p.2n;p=p.1U.1I?p.1U.1I():p.1U;11(h===o||p===o&&c===o)15 o;1d 11(h===w)q.1x=28 a.1c.14.1h.2K(p);1d 11(!h.1I){q.1x=28 a.1c.14.1h.2K(h);q.1x.2t=w}15 q.1x.1I()!=="4w"},4U:12(){13 h=s.1o.1g({6I:"",1s:""}),p=q.1x,c=p[p.1K],v="1s-"+c+"-2w";c="1s"+c.3e(0)+c.2V(1)+"6J";13 B=/6K?\\(0, 0, 0(, 0)?\\)|2T/i;p=s.1O&&(p.y==="18"||p.y==="1J"&&h.1l().18+D.1f/2+l.1n",{"1Z":"1L-1C-1o"}).1g({1e:h,1f:p}).6N(x);11(N)a("<4S />").35(s.1o)[0].40("2d").4D();1d{h=\'<46:3Z 6O="0,0" 1m="2D:33; 1l:4h; 5c:3m(#3D#5d);">\';s.1o.2X(z?h+=h:h)}},3c:12(h){13 p=s.1o,c=p.6P(),v=D.1e,B=D.1f,g=l.3v,d=1t.49,f,i,r;11(!h)h=q.1x;11(g===o)g=h;1d{g=28 a.1c.14.1h.2K(g);g.1K=h.1K;11(g.x==="3A")g.x=h.x;1d 11(g.y==="3A")g.y=h.y;1d 11(g.x===g.y)g[h.1K]=h[h.1K]}f=g.1K;q.4U();z=y.1s==="2T"||y.1s==="#6R"?0:l.1s===w?m(h,E,w):l.1s;i=4V(g,v,B);r=k(h);p.1g(r);p=h.1K==="y"?[d(g.x==="19"?z:g.x==="1A"?r.1e-v-z:(r.1e-v)/2),d(g.y==="18"?r.1f-B:0)]:[d(g.x==="19"?r.1e-v:0),d(g.y==="18"?z:g.y==="1B"?r.1f-B-z:(r.1f-B)/2)];11(N){c.1q(r);c=c[0].40("2d");c.6V();c.4D();c.6W(0,0,51,51);c.6Z(p[0],p[1]);c.71();c.72(i[0][0],i[0][1]);c.54(i[1][0],i[1][1]);c.54(i[2][0],i[2][1]);c.75();c.77=y.2r;c.78=y.1s;c.7a=z*2;c.7b="5b";c.7d=7e;c.5a();c.2r()}1d{i="m"+i[0][0]+","+i[0][1]+" l"+i[1][0]+","+i[1][1]+" "+i[2][0]+","+i[2][1]+" 7g";p[2]=z&&/^(r|b)/i.1N(h.1I())?1:0;c.1g({7h:""+(g.1I().57("1J")>-1),19:p[0]-p[2]*58(f==="x"),18:p[1]-p[2]*58(f==="y"),1e:v+z,1f:B+z}).1y(12(n){13 u=a(17);u.1q({7k:v+z+" "+(B+z),7l:i,7m:y.2r,7o:!!n,7p:!!!n}).1g({2D:z||n?"33":"5l"});!n&&z>0&&u.2X()===""&&u.2X(\'<46:5a 7r="\'+z*2+\'7s" 2w="\'+y.1s+\'" 7t="7u" 7v="5b" 1m="5c:3m(#3D#5d); 2D:33;" />\')})}15 q.1l(h,1)},1l:12(h,p){13 c=s.1o,v={},B=1t.2O(0,l.1n),g,d,f;11(l.1x===o||!c)15 o;h=h||q.1x;g=h.1K;d=k(h)[g==="x"?"1e":"1f"];f=a.1X.2H&&z&&/^(b|r)/i.1N(h.1I())?1:0;a.1y(g==="y"?[h.x,h.y]:[h.y,h.x],12(i,r){13 n,u;11(r==="1J"){n=g==="y"?"19":"18";v[n]="50%";v["5j-"+n]=-1t.49(d/2)+B}1d{n=m(h,r,w);u=a.1X.7x;13 F=h.y+(u?"":"-")+h.x;u=(u?"-7y-":a.1X.5e?"-5e-":"")+(u?"1s-5g-"+F:"1s-"+F+"-5g");u=1R((s.1O&&h.y==="18"?s.1O:s.1b).1g(u),10)||1R(x.1g(u),10)||0;v[r]=i||!z?m(h,r):B+(u>n?u:0)}});v[h[g]]-=d+f;p&&c.1g({18:"",1B:"",19:"",1A:"",5j:""}).1g(v);15 v},2h:12(){s.1o&&s.1o.25();x.1W(".14-1o")}});q.2a()}12 4H(e){13 b=17,m=e.2p.16.1P,k=e.1z,q=k.1C;b.39={"^16.1P.(32|2o)$":12(){b.2a();k.26.2f(q.4b(":5k"))}};a.1F(b,{2a:12(){11(m.32){q.1W(".2j").1r("31.2j 4e.2j",12(l,s,x){l=l.1Q.2J("1C","");a.2q(m[l])?m[l].23(k.26,x,s):b[l](x)});b.2I();m.2o===w&&k.26.1W(".2j"+e.1w).1r("43.2j"+e.1w,12(){e.1a.23(e)})}},2I:12(){13 l=a("#14-26");11(l.1p)k.26=l;1d{k.26=a("<2F />",{1w:"#14-26".2V(1),1g:{1l:"4h",18:0,19:0,2D:"5l",3o:1R(q.1g("z-5p"),10)-1}}).35(1V.3a);a(O).1r("2v.2j",12(){k.26.1g({1f:1t.2O(a(O).1f(),a(1V).1f()),1e:1t.2O(a(O).1e(),a(1V).1e())})}).2A("2v")}},2f:12(l){13 s=k.26,x=e.2p.16.1P.2g,j=l?"16":"1a";s.4c(w,o);11(a.2q(x))x.23(s,l);1d x===o?s[j]():s.5m(3F,l?0.7:0,12(){l||a(17).1a()})},16:12(){b.2f(w)},1a:12(){b.2f(o)},2h:12(){13 l=w;a("*").1y(12(){13 s=a(17).22("14");11(s&&s.1w!==e.1w&&s.2p.16.1P)15 l=o});11(l){k.26.25();a(O).1W(".2j")}1d k.26.1W(".2j"+e.1w);q.1W("31.2j 4e.2j")}});b.2a()}12 4F(e){13 b=17,m=e.1z,k=m.1C,q=".29-"+e.1w,l="4f"+q+" 31"+q;a.1F(b,{2a:12(){m.29=a(\'<3H 1Z="1L-1C-29" 7G="0" 7H="-1" 7I="7J:\\\'\\\';" 1m="2D:33; 1l:4h; z-5p:-1; 38:7L(4i=0);">\');m.29.35(k);k.1r(l,b.2M)},2M:12(){13 s=e.47("5q"),x=e.1h.1o,j=e.1z.1o,D;D=1R(k.1g("1s-19-1e"),10)||0;D={19:-D,18:-D};11(x&&j){x=x.1x.1K==="x"?["1e","19"]:["1f","18"];D[x[1]]-=j[x[0]]()}m.29.1g(D).1g(s)},2h:12(){b.3H.25();k.1W(l)}});b.2a()}13 w=4E,o=5t,E=4j,M="1L-1C",Y="1L-2C",S="1L-3f-2L",V="2F.14."+M,W=M+"-2z",4l="-5w",Z="5x";a.1c.14=12(e,b,m){13 k=2U(e).2y(),q=E,l=k==="3M"?[w]:a.5z(2N).4z(1,10),s=l[l.1p-1],x=17[0]?a.22(17[0],"14"):E;11(!2N.1p&&x||k==="5B")15 x;1d 11("1I"===1k e){17.1y(12(){13 j=a.22(17,"14");11(!j)15 w;11(/3E|2P/.1N(k)&&b)11(m!==T)j.2P(b,m);1d q=j.47(b);1d{11(!j.1D&&(k==="16"||k==="2f")){11(s&&s.5F)j.1v.1u=s;j.24(1)}1d 11(k==="5H"){k="3M";l=[o]}j[k]&&j[k].2R(j[k],l)}});15 q!==E?q:17}1d 11("1E"===1k e||!2N.1p){x=X(a.1F(w,{},e));15 a.1c.14.1r.23(17,x,s)}};a.1c.14.1r=12(e,b){15 17.1y(12(){12 m(D){12 y(){j.24(1k D==="1E"||k.16.3r);q.16.1W(l.16);q.1a.1W(l.1a)}11(j.1v.2L)15 o;j.1v.1u=a.1F({},D);11(k.16.2u>0){1Y(j.1G.16);j.1G.16=3g(y,k.16.2u);l.16!==l.1a&&q.1a.1r(l.1a,12(){1Y(j.1G.16)})}1d y()}13 k,q,l,s=e.1w=!e.1w||e.1w===o||e.1w.1p<1||a("#"+M+"-"+e.1w).1p?a.1c.14.3T++:e.1w,x=".14-"+s+"-2I",j=4A.23(17,s,e);11(j===o)15 w;k=j.2p;a.1y(a.1c.14.1h,12(){17.2E==="2E"&&17(j)});q={16:k.16.1i,1a:k.1a.1i};l={16:2U(k.16.1u).2J(" ",x+" ")+x,1a:2U(k.1a.1u).2J(" ",x+" ")+x};q.16.1r(l.16,m);11(k.16.3r||k.59)m(b)})};a.1y({1q:12(e,b){13 m=17[0],k=a.22(m,"14");11(e==="1j")11(2N.1p===1)15 a.22(m,Z);1d{k&&k.1D&&k.2p.1b.1q==="1j"&&k.1v.1q&&k.2P("1b.1H",b);15 a.22(m,Z,b)}},62:12(){13 e=a([]),b;a("*",17).1y(12(){13 m=a.22(17,m);11(m){a.1q(17,"1j",m);e=e.2G(17)}});b=a.1c.64.2R(17,2N);e.3L("1j");15 b},25:a.1L?E:12(e,b){a(17).1y(12(){11(!b)11(!e||a.38(e,[17]).1p)a("*",17).2G(17).1y(12(){a(17).6a("25")})})}},12(e,b){11(!b)15 w;13 m=a.1c[e+"6d"]=a.1c[e];a.1c[e]=12(){15 b.2R(17,2N)||m.2R(17,2N)}});a(O).2S(12(){13 e=1V,b=e.3a;a(e).1r("44.14",12(m){a.1c.14.2i={3x:m.3x,3Q:m.3Q}});e.45===T&&e.6l("2z",12(m){11(m&&m.1i)e.45=m.1i===e?b:m.1i},4E)});a.1c.14.3C="2.0.6n";a.1c.14.3T=0;a.1c.14.4I="43 6q 3V 53 44 4g 3p".3d(" ");a.1c.14.4Z=6x;a.1c.14.1h={2K:12(e){e=2U(e).2J(/([A-Z])/," $1").2J(/6E/6F,"1J").2y();17.x=(e.41(/19|1A/i)||e.41(/1J/)||["3A"])[0].2y();17.y=(e.41(/18|1B|1J/i)||["3A"])[0].2y();17.1K=e.3e(0).3Y(/^(t|b)/)>-1?"y":"x";17.1I=12(){15 17.1K==="y"?17.y+17.x:17.x+17.y};17.4M=12(){13 b=17.x.2V(0,1),m=17.y.2V(0,1);15 b===m?b:b==="c"||b!=="c"&&m!=="c"?m+b:b+m}},4W:6U((/6Y.+70 ([0-74]{3}).*76.*79/i.7c(7f.7i)||[0,"7j"])[1].2J("7n","."))<4.1};a.1c.14.3n={59:o,1w:o,48:w,2k:{1Q:"1Z"},1b:{1H:w,1q:"1j",1j:{1H:o,1T:o}},1l:{1U:"18 19",2n:"1B 1A",1i:o,1M:o,2c:o,2M:{x:0,y:0,2i:w,2v:w},2g:w},16:{1i:o,1u:"3p",2g:w,2u:3F,5n:o,3r:o},1a:{1i:o,1u:"4g",2g:w,2u:0,2t:o,2l:o},1m:{36:"",2C:o},3I:{24:E,3J:E,16:E,1a:E,2f:E,2z:E,2o:E}};a.1c.14.1h.1S=12(e){13 b=e.1h.1S;15"1E"===1k b?b:e.1h.1S=28 5f(e)};a.1c.14.1h.1S.2E="24";a.1c.14.1h.1S.3b=12(e){13 b=e.1b;11(b&&"1S"2b b){b=b.1S;11(1k b!=="1E")b=e.1b.1S={3m:b};11("3l"!==1k b.2m&&b.2m)b.2m=!!b.2m}};a.1F(w,a.1c.14.3n,{1b:{1S:{2m:w}}});a.1c.14.1h.1o=12(e){13 b=e.1h.1o;15"1E"===1k b?b:e.1h.1o=28 4n(e)};a.1c.14.1h.1o.2E="24";a.1c.14.1h.1o.3b=12(e){13 b=e.1m;11(b&&"1o"2b b){b=e.1m.1o;11(1k b!=="1E")e.1m.1o={1x:b};11(!/1I|3l/i.1N(1k b.1x))b.1x=w;1k b.1e!=="34"&&2Y b.1e;1k b.1f!=="34"&&2Y b.1f;1k b.1s!=="34"&&b.1s!==w&&2Y b.1s;1k b.1n!=="34"&&2Y b.1n}};a.1F(w,a.1c.14.3n,{1m:{1o:{1x:w,3v:o,1e:8,1f:8,1s:w,1n:0}}});a.1c.14.1h.4a=12(e,b){12 m(z,N){2Q(13 h=0,p=1,c=1,v=0,B=0,g=z.1e,d=z.1f;g>0&&d>0&&p>0&&c>0;){g=1t.3w(g/2);d=1t.3w(d/2);11(b.x==="19")p=g;1d 11(b.x==="1A")p=z.1e-g;1d p+=1t.3w(g/2);11(b.y==="18")c=d;1d 11(b.y==="1B")c=z.1f-d;1d c+=1t.3w(d/2);2Q(h=N.1p;h--;){11(N.1p<2)2x;v=N[h][0]-z.1n.19;B=N[h][1]-z.1n.18;11(b.x==="19"&&v>=p||b.x==="1A"&&v<=p||b.x==="1J"&&(vz.1e-p)||b.y==="18"&&B>=c||b.y==="1B"&&B<=c||b.y==="1J"&&(Bz.1f-c))N.6t(h,1)}}15{19:N[0][0],18:N[0][1]}}13 k=e.1q("3Z").2y(),q=e.1q("6H").3d(","),l=[],s=a(\'3j[6Q="#\'+e.6S("5h").1q("52")+\'"]\'),x=s.1n(),j={1e:0,1f:0,1n:{18:55,1A:0,1B:0,19:55}},D=0,y=0;x.19+=1t.3u((s.3h()-s.1e())/2);x.18+=1t.3u((s.2W()-s.1f())/2);11(k==="5i")2Q(D=q.1p;D--;){y=[1R(q[--D],10),1R(q[D+1],10)];11(y[0]>j.1n.1A)j.1n.1A=y[0];11(y[0]j.1n.1B)j.1n.1B=y[1];11(y[1]') @@ -772,7 +772,7 @@ function QTip(target, options, id, attr) // Style checks '^style.classes$': function() { - tooltip.attr('class', uitooltip + ' qtip ui-helper-reset ' + value); + $.attr(tooltip[0], 'class', uitooltip + ' qtip ui-helper-reset ' + value); }, '^style.widget|content.title': setWidget, @@ -847,7 +847,7 @@ function QTip(target, options, id, attr) if(callback.isDefaultPrevented()){ return self; } // Set ARIA hidden status attribute - tooltip.attr('aria-hidden', !!!state); + $.attr(tooltip[0], 'aria-hidden', !!!state); // Execute state specific properties if(state) { @@ -1118,7 +1118,7 @@ function QTip(target, options, id, attr) // Set tooltip position class tooltip.attr('class', function(i, val) { - return $(this).attr('class').replace(/ui-tooltip-pos-\w+/i, ''); + return $.attr(this, 'class').replace(/ui-tooltip-pos-\w+/i, ''); }) .addClass(uitooltip + '-pos-' + my.abbreviation()); @@ -1191,7 +1191,7 @@ function QTip(target, options, id, attr) if(self.rendered) { tooltip.toggleClass(c, state); - tooltip.attr('aria-disabled', state); + $.attr(tooltip[0], 'aria-disabled', state); } else { self.cache.disabled = !!state; @@ -1202,7 +1202,8 @@ function QTip(target, options, id, attr) destroy: function() { - var oldtitle = $.data(target[0], 'oldtitle'); + var t = target[0], + oldtitle = $.data(t, oldtitle); // Destroy tooltip and any associated plugins if rendered if(self.rendered) { @@ -1219,11 +1220,11 @@ function QTip(target, options, id, attr) unassignEvents(1, 1, 1, 1); // Remove api object - target.removeData('qtip'); + $.removeData(t, 'qtip'); // Reset old title attribute if removed if(oldtitle) { - target.attr('title', oldtitle); + $.attr(t, 'title', oldtitle); } // Remove ARIA attributse @@ -1237,7 +1238,7 @@ function QTip(target, options, id, attr) // Initialization method function init(id, opts) { - var obj, posOptions, usedAttr, + var obj, posOptions, attr, usedAttr, // Setup element references elem = $(this), @@ -1254,17 +1255,18 @@ function init(id, opts) // Merge in our sanitized metadata and remove metadata object so we don't interfere with other metadata calls config = $.extend(TRUE, {}, $.fn.qtip.defaults, opts, sanitizeOptions(metadata5 || metadata)); - elem.removeData('metadata'); + $.removeData(this, 'metadata'); // Re-grab our positioning options now we've merged our metadata posOptions = config.position; // Setup missing content if none is detected if('boolean' === typeof config.content.text) { - + var attr = $.attr(this, config.content.attr); + // Grab from supplied attribute if available - if(config.content.attr !== FALSE && elem.attr(config.content.attr)) { - config.content.text = elem.attr(config.content.attr); + if(config.content.attr !== FALSE && attr) { + config.content.text = attr; usedAttr = config.content.attr; } @@ -1296,8 +1298,8 @@ function init(id, opts) } // Remove title attribute and store it if present - if(elem.attr('title')) { - $.data(this, 'oldtitle', elem.attr('title')); + if($.attr(this, 'title')) { + $.data(this, oldtitle, $.attr(this, 'title')); elem.removeAttr('title'); } @@ -1448,14 +1450,14 @@ $.each({ if(attr === 'title') { if(arguments.length === 1) { - return $.data(self, 'oldtitle'); + return $.data(self, oldtitle); } else { // If qTip is rendered and title was originally used as content, update it if(api && api.rendered && api.options.content.attr === 'title' && api.cache.attr) { api.set('content.text', val); } - return $.data(self, 'oldtitle', val); + return $.data(self, oldtitle, val); } } }, @@ -1466,7 +1468,7 @@ $.each({ // Re-add cached titles before we clone $('*', this).each(function() { - var oldtitle = $.data(this, 'oldtitle'); + var oldtitle = $.data(this, oldtitle); if(oldtitle) { $.attr(this, 'title', oldtitle); titles = titles.add(this); @@ -1474,7 +1476,7 @@ $.each({ }); // Clone our element using the real clone method - elem = $.fn.Oldclone.apply(this, arguments); + elem = $.fn['clone'+replaceSuffix].apply(this, arguments); // Remove the old titles again titles.removeAttr('title'); @@ -1500,9 +1502,10 @@ $.each({ }, function(name, func) { if(!func) { return TRUE; } - $.fn['Old'+name] = $.fn[name]; + + var old = $.fn[name+replaceSuffix] = $.fn[name]; $.fn[name] = function() { - return func.apply(this, arguments) || $.fn['Old'+name].apply(this, arguments); + return func.apply(this, arguments) || old.apply(this, arguments); }; }); diff --git a/src/intro.js b/src/intro.js index 9a8c7d1d..bf311d9b 100644 --- a/src/intro.js +++ b/src/intro.js @@ -16,6 +16,8 @@ disabled = 'ui-state-disabled', selector = 'div.qtip.'+uitooltip, focusClass = uitooltip + '-focus', - hideOffset = '-31000px'; + hideOffset = '-31000px', + replaceSuffix = '_replacedByqTip', + oldtitle = 'oldtitle';