| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- (function(c,E,L){function S(){var a=E.console;return a&&(a.error||a.log||c.noop).apply(a,arguments)}function P(a){var b;if(!a||"object"!==typeof a)return k;"object"!==typeof a.metadata&&(a.metadata={type:a.metadata});if("content"in a){if("object"!==typeof a.content||a.content.jquery)a.content={text:a.content};b=a.content.text||k;if(!c.isFunction(b)&&(!b&&!b.attr||1>b.length||"object"===typeof b&&!b.jquery))a.content.text=k;if("title"in a.content&&("object"!==typeof a.content.title&&(a.content.title=
- {text:a.content.title}),b=a.content.title.text||k,!c.isFunction(b)&&(!b&&!b.attr||1>b.length||"object"===typeof b&&!b.jquery)))a.content.title.text=k}"position"in a&&"object"!==typeof a.position&&(a.position={my:a.position,at:a.position});"show"in a&&"object"!==typeof a.show&&(a.show=a.show.jquery?{target:a.show}:{event:a.show});"hide"in a&&"object"!==typeof a.hide&&(a.hide=a.hide.jquery?{target:a.hide}:{event:a.hide});"style"in a&&"object"!==typeof a.style&&(a.style={classes:a.style});c.each(y,function(){this.sanitize&&
- this.sanitize(a)});return a}function T(a,b,p,e){function g(a){var c=0,d,f=b;for(a=a.split(".");f=f[a[c++]];)c<a.length&&(d=f);return[d||b,a.pop()]}function j(){var a=b.style.widget;f.toggleClass(R,a);t.content.toggleClass(R+"-content",a);t.titlebar&&t.titlebar.toggleClass(R+"-header",a);t.button&&t.button.toggleClass(H+"-icon",!a)}function l(){t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=B,d.reposition())}function h(){var a=b.content.title.button,r="string"===typeof a?a:"Close tooltip";
- t.button&&t.button.remove();t.button=a.jquery?a:c("<a />",{"class":"ui-state-default "+(b.style.widget?"":H+"-icon"),title:r,"aria-label":r}).prepend(c("<span />",{"class":"ui-icon ui-icon-close",html:"×"}));t.button.appendTo(t.titlebar).attr("role","button").hover(function(a){c(this).toggleClass("ui-state-hover","mouseenter"===a.type)}).click(function(a){f.hasClass(K)||d.hide(a);return k}).bind("mousedown keydown mouseup keyup mouseout",function(a){c(this).toggleClass("ui-state-active ui-state-focus",
- "down"===a.type.substr(-4))});d.redraw()}function u(){var a=s+"-title";t.titlebar&&l();t.titlebar=c("<div />",{"class":H+"-titlebar "+(b.style.widget?"ui-widget-header":"")}).append(t.title=c("<div />",{id:a,"class":H+"-title","aria-atomic":w})).insertBefore(t.content);b.content.title.button?h():d.rendered&&d.redraw()}function x(b){var r=t.title;if(!d.rendered||!b)return k;c.isFunction(b)&&(b=b.call(a,d)||"");b.jquery&&0<b.length?r.empty().append(b.css({display:"block"})):r.html(b);d.redraw();d.rendered&&
- f.is(":visible")&&d.reposition(z.event)}function n(A){function r(a){function b(){if(0===(c=c.not(this)).length)d.redraw(),d.reposition(z.event),a()}var c;if(0===(c=q.find("img:not([height]):not([width])")).length)return b.call(c);c.each(function(a,c){(function U(){var A=d.timers.img;if(c.height&&c.width)return clearTimeout(A[a]),b.call(c);A[a]=setTimeout(U,20)})()})}var q=t.content;A=A||b.content.text;if(!d.rendered||!A)return k;c.isFunction(A)&&(A=A.call(a,d)||"");A.jquery&&0<A.length?q.empty().append(A.css({display:"block"})):
- q.html(A);0>d.rendered?f.queue("fx",r):(G=0,r(c.noop));return d}function D(A,h,q,e){function I(a){if(f.hasClass(K))return k;C.show.trigger("qtip-"+p+"-inactive");clearTimeout(d.timers.show);clearTimeout(d.timers.hide);var c=function(){d.show(a)};0<b.show.delay?d.timers.show=setTimeout(c,b.show.delay):c()}function g(a){if(f.hasClass(K))return k;var A=c(a.relatedTarget||a.target),q=A.closest(Q)[0]===f[0],A=A[0]===C.show[0];clearTimeout(d.timers.show);clearTimeout(d.timers.hide);if("mouse"===j.target&&
- q||b.hide.fixed&&/mouse(out|leave|move)/.test(a.type)&&(q||A))return a.stopPropagation(),a.preventDefault(),k;0<b.hide.delay?d.timers.hide=setTimeout(function(){d.hide(a)},b.hide.delay):d.hide(a)}function l(a){if(f.hasClass(K))return k;clearTimeout(d.timers.inactive);d.timers.inactive=setTimeout(function(){d.hide(a)},b.hide.inactive)}function u(a){f.is(":visible")&&d.reposition(a)}var s=".qtip-"+p,j=b.position,C={show:b.show.target,hide:b.hide.target,container:j.container[0]===r?c(document):j.container,
- doc:c(document)},m=c.trim(""+b.show.event).split(" "),G=c.trim(""+b.hide.event).split(" "),x=c.browser.msie&&6===parseInt(c.browser.version,10);q&&(b.hide.fixed&&(C.hide=C.hide.add(f),f.bind("mouseover"+s,function(){f.hasClass(K)||clearTimeout(d.timers.hide)})),"mouse"===j.target&&(j.adjust.mouse&&b.hide.event)&&f.bind("mouseleave"+s,function(a){(a.relatedTarget||a.target)!==C.show[0]&&d.hide(a)}),f.bind("mouseenter"+s,function(a){d["mouseenter"===a.type?"focus":"blur"](a)}),f.bind("mouseenter"+s+
- " mouseleave"+s,function(a){f.toggleClass(V,"mouseenter"===a.type)}));h&&("number"===typeof b.hide.inactive&&(C.show.bind("qtip-"+p+"-inactive",l),c.each(F.inactiveEvents,function(a,b){C.hide.add(t.tooltip).bind(b+s+"-inactive",l)})),/mouse(over|enter)/i.test(b.show.event)&&!/mouse(out|leave)/i.test(b.hide.event)&&C.hide.bind("mouseleave"+s,function(){clearTimeout(d.timers.show)}),c.each(G,function(a,b){var A=c.inArray(b,m),d=c(C.hide);-1<A&&d.add(C.show).length===d.length||"unfocus"===b?(C.show.bind(b+
- s,function(a){f.is(":visible")?g(a):I(a)}),delete m[A]):C.hide.bind(b+s,g)}));A&&(c.each(m,function(a,b){C.show.bind(b+s,I)}),"number"===typeof b.hide.distance&&C.show.bind("mousemove"+s,function(a){var c=z.origin||{},A=b.hide.distance,q=Math.abs;c&&(q(a.pageX-c.pageX)>=A||q(a.pageY-c.pageY)>=A)&&d.hide(a)}));if(e){if(j.adjust.resize||j.viewport)c(c.event.special.resize?j.viewport:E).bind("resize"+s,u);(j.viewport||x&&"fixed"===f.css("position"))&&c(j.viewport).bind("scroll"+s,u);/unfocus/i.test(b.hide.event)&&
- C.doc.bind("mousedown"+s,function(b){var A=c(b.target);0===A.parents(Q).length&&(1<A.add(a).length&&f.is(":visible")&&!f.hasClass(K))&&d.hide(b)});b.hide.leave&&/mouseleave|mouseout/i.test(b.hide.event)&&c(E).bind("blur"+s+" mouse"+(-1<b.hide.leave.indexOf("frame")?"out":"leave")+s,function(a){a.relatedTarget||d.hide(a)});"mouse"===j.target&&C.doc.bind("mousemove"+s,function(a){j.adjust.mouse&&(!f.hasClass(K)&&f.is(":visible"))&&d.reposition(a||N)})}}function m(a,f,q,h){h=0!==parseInt(h,10);var e=
- ".qtip-"+p,g=a&&b.show.target[0];f=f&&b.hide.target[0];var s=q&&d.rendered&&t.tooltip[0];q=q&&d.rendered&&t.content[0];var j=h&&b.position.container[0]===r?document:b.position.container[0];h=h&&E;d.rendered?c([]).pushStack(c.grep([g,f,s,j,q,h],function(a){return"object"===typeof a})).unbind(e):a&&b.show.target.unbind(e+"-create")}var d=this,r=document.body,s=H+"-"+p,C=0,G=0,f=c(),t,z;d.id=p;d.rendered=k;d.elements=t={target:a};d.timers={img:[]};d.options=b;d.checks={};d.plugins={};d.cache=z={event:{},
- target:B,disabled:k,attr:e};d.checks.builtin={"^id$":function(a,b,d){a=d===w?F.nextid:d;b=H+"-"+a;a!==k&&(0<a.length&&!c("#"+b).length)&&(f[0].id=b,t.content[0].id=b+"-content",t.title[0].id=b+"-title")},"^content.text$":function(a,b,c){n(c)},"^content.title.text$":function(a,b,c){if(!c)return l();!t.title&&c&&u();x(c)},"^content.title.button$":function(a,b,c){a=t.button;b=t.title;d.rendered&&(c?(b||u(),h()):a.remove())},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new y.Corner(c))},
- "^position.container$":function(a,b,c){d.rendered&&f.appendTo(c)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(a,b,c,f,r){a=[1,0,0];a["show"===r[1]?"push":"unshift"](0);m.apply(d,a);D.apply(d,[1,1,0,0])},"^show.ready$":function(){d.rendered?d.show():d.render(1)},"^style.classes$":function(a,b,d){c.attr(f[0],"class",H+" qtip ui-helper-reset "+d)},"^style.widget|content.title":j,"^events.(render|show|move|hide|focus|blur)$":function(a,b,d){f[(c.isFunction(d)?"":"un")+"bind"]("tooltip"+
- b,d)}};c.extend(d,{render:function(A){if(d.rendered)return d;var r=b.content.title.text,q=c.Event("tooltiprender");c.attr(a[0],"aria-describedby",s);f=t.tooltip=c("<div/>",{id:s,"class":H+" qtip ui-helper-reset "+b.style.classes,width:b.style.width||"",role:"alert","aria-live":"polite","aria-atomic":k,"aria-describedby":s+"-content","aria-hidden":w}).toggleClass(K,z.disabled).data("qtip",d).appendTo(b.position.container).append(t.content=c("<div />",{"class":H+"-content",id:s+"-content","aria-atomic":w}));
- d.rendered=-1;G=1;r&&(u(),x(r));n();d.rendered=w;j();c.each(b.events,function(a,b){c.isFunction(b)&&f.bind("toggle"===a?"tooltipshow tooltiphide":"tooltip"+a,b)});c.each(y,function(){"render"===this.initialize&&this(d)});D(1,1,1,1);f.queue("fx",function(a){q.originalEvent=z.event;f.trigger(q,[d]);G=0;d.redraw();(b.show.ready||A)&&d.show(z.event);a()});return d},get:function(a){switch(a.toLowerCase()){case "dimensions":a={height:f.outerHeight(),width:f.outerWidth()};break;case "offset":a=y.offset(f,
- b.position.container);break;default:a=g(a.toLowerCase()),a=a[0][a[1]],a=a.precedance?a.string():a}return a},set:function(a,r){var q=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,e=k,s=k,j=d.checks,l;"string"===typeof a?(l=a,a={},a[l]=r):a=c.extend(w,{},a);c.each(a,function(b,d){var f=g(b.toLowerCase()),r;r=f[0][f[1]];f[0][f[1]]="object"===typeof d&&d.nodeType?c(d):d;a[b]=[f[0],f[1],d,r];e=q.test(b)||e;s=h.test(b)||s});P(b);C=G=1;c.each(a,
- function(a,b){var c,f,r;for(c in j)for(f in j[c])if(r=RegExp(f,"i").exec(a))b.push(r),j[c][f].apply(d,b)});C=G=0;f.is(":visible")&&d.rendered&&(e&&d.reposition("mouse"===b.position.target?B:z.event),s&&d.redraw());return d},toggle:function(a,r){function q(){a?(c.browser.msie&&f[0].style.removeAttribute("filter"),f.css("overflow","")):f.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}if(!d.rendered)if(a)d.render(1);else return d;var h=a?"show":"hide",e=b[h],s=f.is(":visible");(typeof a).search("boolean|number")&&
- (a=!s);if(s===a)return d;if(r){if(/over|enter/.test(r.type)&&/out|leave/.test(z.event.type)&&r.target===b.show.target[0]&&f.has(r.relatedTarget).length)return d;z.event=c.extend({},r)}s=c.Event("tooltip"+h);s.originalEvent=r?z.event:B;f.trigger(s,[d,90]);if(s.isDefaultPrevented())return d;c.attr(f[0],"aria-hidden",!a);a?(z.origin=c.extend({},N),d.focus(r),c.isFunction(b.content.text)&&n(),d.reposition(r),e.solo&&c(Q,e.solo).not(f).qtip("hide",s)):(clearTimeout(d.timers.show),delete z.origin,d.blur(r));
- f.stop(0,1);c.isFunction(e.effect)?(e.effect.call(f,d),f.queue("fx",function(a){q();a()})):e.effect===k?(f[h](),q.call(f)):f.fadeTo(90,a?1:0,q);a&&e.target.trigger("qtip-"+p+"-inactive");return d},show:function(a){return d.toggle(w,a)},hide:function(a){return d.toggle(k,a)},focus:function(a){if(!d.rendered)return d;var b=c(Q),r=parseInt(f[0].style.zIndex,10),h=F.zindex+b.length;a=c.extend({},a);var e;f.hasClass(O)||(e=c.Event("tooltipfocus"),e.originalEvent=a,f.trigger(e,[d,h]),e.isDefaultPrevented()||
- (r!==h&&(b.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),b.filter("."+O).qtip("blur",a)),f.addClass(O)[0].style.zIndex=h));return d},blur:function(a){a=c.extend({},a);var b;f.removeClass(O);b=c.Event("tooltipblur");b.originalEvent=a;f.trigger(b,[d]);return d},reposition:function(a,h){if(!d.rendered||C)return d;C=1;var e=b.position.target,s=b.position,g=s.my,j=s.at,l=s.adjust,p=l.method.split(" "),t=f.outerWidth(),u=f.outerHeight(),m=0,G=0,x=c.Event("tooltipmove"),w="fixed"===f.css("position"),
- n=s.viewport,v={left:0,top:0},D=(d.plugins.tip||{}).corner,B={horizontal:p[0],vertical:p[1]||p[0],tip:b.style.tip||{},left:function(a){var b="shift"===B.horizontal,c=n.offset.left+n.scrollLeft,d="left"===g.x?t:"right"===g.x?-t:-t/2,f="left"===j.x?m:"right"===j.x?-m:-m/2,r=B.tip.width+2*B.tip.border||0,e=D&&"x"===D.precedance&&!b?r:0,h=c-a-e,s=a+t-n.width-c+e,f=d-("x"===g.precedance||g.x===g.y?f:0),e="center"===g.x;if(b)e=D&&"y"===D.precedance?r:0,f=("left"===g.x?1:-1)*d-e,v.left+=0<h?h:0<s?-s:0,v.left=
- Math.max(n.offset.left+(e&&"center"===D.x?B.tip.offset:0),a-f,Math.min(Math.max(n.offset.left+n.width,a+f),v.left));else{if(0<h&&("left"!==g.x||0<s))v.left-=f+(e?0:2*l.x);else if(0<s&&("right"!==g.x||0<h))v.left-=e?-f:f+2*l.x;v.left!==a&&e&&(v.left-=l.x);v.left<c&&-v.left>s&&(v.left=a)}return v.left-a},top:function(a){var b="shift"===B.vertical,c=n.offset.top+n.scrollTop,d="top"===g.y?u:"bottom"===g.y?-u:-u/2,f="top"===j.y?G:"bottom"===j.y?-G:-G/2,e=B.tip.height+2*B.tip.border||0,r=D&&"y"===D.precedance&&
- !b?e:0,h=c-a-r,c=a+u-n.height-c+r,f=d-("y"===g.precedance||g.x===g.y?f:0),r="center"===g.y;if(b)r=D&&"x"===D.precedance?e:0,f=("top"===g.y?1:-1)*d-r,v.top+=0<h?h:0<c?-c:0,v.top=Math.max(n.offset.top+(r&&"center"===D.x?B.tip.offset:0),a-f,Math.min(Math.max(n.offset.top+n.height,a+f),v.top));else{if(0<h&&("top"!==g.y||0<c))v.top-=f+(r?0:2*l.y);else if(0<c&&("bottom"!==g.y||0<h))v.top-=r?-f:f+2*l.y;v.top!==a&&r&&(v.top-=l.y);0>v.top&&-v.top>c&&(v.top=a)}return v.top-a}};if("mouse"===e)j={x:"left",y:"top"},
- a=a&&("resize"===a.type||"scroll"===a.type)?z.event:!l.mouse&&z.origin?z.origin:N&&(l.mouse||!a||!a.pageX)?{pageX:N.pageX,pageY:N.pageY}:a,v={top:a.pageY,left:a.pageX};else{"event"===e&&(e=a&&a.target&&"scroll"!==a.type&&"resize"!==a.type?z.target=c(a.target):z.target);e=c(e).eq(0);if(0===e.length)return d;e[0]===document||e[0]===E?(m=y.iOS?E.innerWidth:e.width(),G=y.iOS?E.innerHeight:e.height(),e[0]===E&&(v={top:!w||y.iOS?n.scrollTop():0,left:!w||y.iOS?n.scrollLeft():0})):e.is("area")&&y.imagemap?
- v=y.imagemap(e,j):"http://www.w3.org/2000/svg"===e[0].namespaceURI&&y.svg?v=y.svg(e,j):(m=e.outerWidth(),G=e.outerHeight(),v=y.offset(e,s.container,w));v.offset&&(m=v.width,G=v.height,v=v.offset);v.left+="right"===j.x?m:"center"===j.x?m/2:0;v.top+="bottom"===j.y?G:"center"===j.y?G/2:0}v.left+=l.x+("right"===g.x?-t:"center"===g.x?-t/2:0);v.top+=l.y+("bottom"===g.y?-u:"center"===g.y?-u/2:0);n.jquery&&e[0]!==E&&e[0]!==r&&"nonenone"!==B.vertical+B.horizontal?(n={elem:n,height:n[(n[0]===E?"h":"outerH")+
- "eight"](),width:n[(n[0]===E?"w":"outerW")+"idth"](),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),offset:n.offset()||{left:0,top:0}},v.adjusted={left:"none"!==B.horizontal?B.left(v.left):0,top:"none"!==B.vertical?B.top(v.top):0}):v.adjusted={left:0,top:0};f.attr("class",function(){return c.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(H+"-pos-"+g.abbreviation());x.originalEvent=c.extend({},a);f.trigger(x,[d,v,n.elem||n]);if(x.isDefaultPrevented())return d;delete v.adjusted;
- h===k||isNaN(v.left)||isNaN(v.top)||!c.isFunction(s.effect)?f.css(v):c.isFunction(s.effect)&&(s.effect.call(f,d,c.extend({},v)),f.queue(function(a){c(this).css({opacity:"",height:""});c.browser.msie&&this.style.removeAttribute("filter");a()}));C=0;return d},redraw:function(){if(1>d.rendered||b.style.width||G)return d;var a=H+"-fluid",r=b.position.container,e,h,s;G=1;f.css("width","").addClass(a);e=f.width()+(c.browser.mozilla?1:0);h=f.css("max-width")||"";s=f.css("min-width")||"";r=-1<(h+s).indexOf("%")?
- r.width()/100:0;h=(-1<h.indexOf("%")?r:1)*parseInt(h,10)||e;s=(-1<s.indexOf("%")?r:1)*parseInt(s,10)||0;e=h+s?Math.min(Math.max(e,s),h):e;f.css("width",Math.round(e)).removeClass(a);G=0;return d},disable:function(a){var b=K;"boolean"!==typeof a&&(a=!(f.hasClass(b)||z.disabled));d.rendered?(f.toggleClass(b,a),c.attr(f[0],"aria-disabled",a)):z.disabled=!!a;return d},enable:function(){return d.disable(k)},destroy:function(){var b=a[0],r=c.attr(b,M);d.rendered&&(f.remove(),c.each(d.plugins,function(){this.destroy&&
- this.destroy()}));clearTimeout(d.timers.show);clearTimeout(d.timers.hide);m(1,1,1,1);c.removeData(b,"qtip");r&&(c.attr(b,"title",r),a.removeAttr(M));a.removeAttr("aria-describedby").unbind(".qtip");return a}})}function W(a){var b=this,p=a.elements.tooltip,e=a.options.content.ajax,g=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;a.checks.ajax={"^content.ajax":function(a,c,h){"ajax"===c&&(e=h);"once"===c?b.init():e&&e.url?b.load():p.unbind(".qtip-ajax")}};c.extend(b,{init:function(){if(e&&e.url)p.unbind(".qtip-ajax")[e.once?
- "one":"bind"]("tooltipshow.qtip-ajax",b.load);return b},load:function(j,l){function h(){w&&(p.css("visibility",""),l=k)}if(j&&j.isDefaultPrevented())return b;var u=e.url.indexOf(" "),x=e.url,n,w=e.once&&!e.loading&&l;w&&p.css("visibility","hidden");-1<u&&(n=x.substr(u),x=x.substr(0,u));c.ajax(c.extend({success:function(b){n&&(b=c("<div/>").append(b.replace(g,"")).find(n));a.set("content.text",b);h()},error:function(b,c,r){a.set("content.text",c+": "+r);h()},context:a,beforeSend:function(a){var b=
- c.cookie(headtoken)||token;a.setRequestHeader(headtoken,b)}},e,{url:x}));return b}});b.init()}function X(a){function b(b,d,e){if(l.tip){b=c.extend({},g.corner);d=e.adjusted;var h=a.options.position.adjust.method.split(" "),f=h[0],h=h[1]||h[0],t=k,p=k,n=0,m=0,q,x={},y;g.corner.fixed!==w&&("shift"===f&&"x"===b.precedance&&d.left&&"center"!==b.y?b.precedance="x"===b.precedance?"y":"x":"flip"===f&&d.left&&(b.x="center"===b.x?0<d.left?"left":"right":"left"===b.x?"right":"left"),"shift"===h&&"y"===b.precedance&&
- d.top&&"center"!==b.x?b.precedance="y"===b.precedance?"x":"y":"flip"===h&&d.top&&(b.y="center"===b.y?0<d.top?"top":"bottom":"top"===b.y?"bottom":"top"),b.string()!==u.corner&&(u.top!==d.top||u.left!==d.left)&&g.update(b,k));q=g.position(b,d);q.right!==L&&(q.left=-q.right);q.bottom!==L&&(q.top=-q.bottom);q.user=Math.max(0,j.offset);if(t="shift"===f&&!!d.left)if("center"===b.x)x["margin-left"]=n=q["margin-left"]-d.left;else{y=q.right!==L?[d.left,-q.left]:[-d.left,q.left];if((n=Math.max(y[0],y[1]))>
- y[0])e.left-=d.left,t=k;x[q.right!==L?"right":"left"]=n}if(p="shift"===h&&!!d.top)if("center"===b.y)x["margin-top"]=m=q["margin-top"]-d.top;else{y=q.bottom!==L?[d.top,-q.top]:[-d.top,q.top];if((m=Math.max(y[0],y[1]))>y[0])e.top-=d.top,p=k;x[q.bottom!==L?"bottom":"top"]=m}l.tip.css(x).toggle(!(n&&m||"center"===b.x&&m||"center"===b.y&&n));e.left-=q.left.charAt?q.user:"shift"!==f||p||!t&&!p?q.left:0;e.top-=q.top.charAt?q.user:"shift"!==h||t||!t&&!p?q.top:0;u.left=d.left;u.top=d.top;u.corner=b.string()}}
- function p(a,b,c){b=!b?a[a.precedance]:b;b="border-"+b+"-width";a=parseInt((l.titlebar&&"top"===a.y?l.titlebar:l.content).css(b),10);return(c?a||parseInt(h.css(b),10):a)||0}function e(a){var b="y"===a.precedance,c=x[b?"width":"height"],d=x[b?"height":"width"],e=-1<a.string().indexOf("center"),h=c*(e?0.5:1),g=Math.pow;a=Math.round;var j=Math.sqrt(g(h,2)+g(d,2)),h=[m/h*j,m/d*j];h[2]=Math.sqrt(g(h[0],2)-g(m,2));h[3]=Math.sqrt(g(h[1],2)-g(m,2));e=(j+h[2]+h[3]+(e?0:h[0]))/j;c=[a(e*d),a(e*c)];return{height:c[b?
- 0:1],width:c[b?1:0]}}var g=this,j=a.options.style.tip,l=a.elements,h=l.tooltip,u={top:0,left:0,corner:""},x={width:j.width,height:j.height},n,D,m=j.border||0,d=c("<canvas />")[0].getContext;g.corner=B;g.mimic=B;g.position={};a.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){g.init()||g.destroy();a.reposition()},"^style.tip.(height|width)$":function(){x={width:j.width,height:j.height};g.create();g.update();a.reposition()},"^content.title.text|style.(classes|widget)$":function(){l.tip&&
- g.update()}};c.extend(g,{init:function(){var a=g.detectCorner()&&(d||c.browser.msie);a&&(g.create(),g.update(),h.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",b));return a},detectCorner:function(){var b=j.corner,c=a.options.position,d=c.at,c=c.my.string?c.my.string():c.my;if(b===k||c===k&&d===k)return k;b===w?g.corner=new y.Corner(c):b.string||(g.corner=new y.Corner(b),g.corner.fixed=w);return"centercenter"!==g.corner.string()},detectColours:function(){var b,d,e=l.tip.css({backgroundColor:"",border:""});
- b=g.corner;var p=b[b.precedance],f="border-"+p+"-color";d="border"+p.charAt(0)+p.substr(1)+"Color";var p=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,u=c(document.body).css("color"),k=a.elements.content.css("color"),m=l.titlebar&&("top"===b.y||"center"===b.y&&e.position().top+x.height/2+j.offset<l.titlebar.outerHeight(1))?l.titlebar:l.content;h.addClass("ui-tooltip-fluid");b=e.css("background-color")||"transparent";d=e[0].style[d];if(!b||p.test(b))n=m.css("background-color"),p.test(n)&&(n=h.css("background-color")||
- b);if(!d||p.test(d))if(D=h.css(f),p.test(D)||D===u)D=m.css(f),D===k&&(D=d);c("*",e).add(e).css("background-color","transparent").css("border","");h.removeClass("ui-tooltip-fluid")},create:function(){var a=x.width,b=x.height;l.tip&&l.tip.remove();l.tip=c("<div />",{"class":"ui-tooltip-tip"}).css({width:a,height:b}).prependTo(h);d?c("<canvas />").appendTo(l.tip)[0].getContext("2d").save():l.tip.html(m?'<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape><vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>':
- '<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>')},update:function(a,b){var h=l.tip,u=h.children(),f=x.width,t=x.height,z=j.mimic,A=Math.round,E,q,J;a||(a=g.corner);z===k?z=a:(z=new y.Corner(z),z.precedance=a.precedance,"inherit"===z.x?z.x=a.x:"inherit"===z.y?z.y=a.y:z.x===z.y&&(z[a.precedance]=a[a.precedance]));E=z.precedance;g.detectColours();m="transparent"===D||"#123456"===D?0:j.border===w?p(a,B,w):j.border;J=z;var I=Math.ceil(f/
- 2),F=Math.ceil(t/2),I={bottomright:[[0,0],[f,t],[f,0]],bottomleft:[[0,0],[f,0],[0,t]],topright:[[0,t],[f,0],[f,t]],topleft:[[0,0],[0,t],[f,t]],topcenter:[[0,t],[I,0],[f,t]],bottomcenter:[[0,0],[f,0],[I,t]],rightcenter:[[0,0],[f,F],[0,t]],leftcenter:[[f,0],[f,t],[0,F]]};I.lefttop=I.bottomright;I.righttop=I.bottomleft;I.leftbottom=I.topright;I.rightbottom=I.topleft;q=I[J.string()];J=e(a);h.css(J);h="y"===a.precedance?[A("left"===z.x?m:"right"===z.x?J.width-f-m:(J.width-f)/2),A("top"===z.y?J.height-
- t:0)]:[A("left"===z.x?J.width-f:0),A("top"===z.y?m:"bottom"===z.y?J.height-t-m:(J.height-t)/2)];d?(u.attr(J),u=u[0].getContext("2d"),u.restore(),u.save(),u.clearRect(0,0,3E3,3E3),u.translate(h[0],h[1]),u.beginPath(),u.moveTo(q[0][0],q[0][1]),u.lineTo(q[1][0],q[1][1]),u.lineTo(q[2][0],q[2][1]),u.closePath(),u.fillStyle=n,u.strokeStyle=D,u.lineWidth=2*m,u.lineJoin="miter",u.miterLimit=100,u.stroke(),u.fill()):(q="m"+q[0][0]+","+q[0][1]+" l"+q[1][0]+","+q[1][1]+" "+q[2][0]+","+q[2][1]+" xe",h[2]=m&&
- /^(r|b)/i.test(a.string())?8===parseFloat(c.browser.version,10)?2:1:0,u.css({antialias:""+(-1<z.string().indexOf("center")),left:h[0]-h[2]*Number("x"===E),top:h[1]-h[2]*Number("y"===E),width:f+m,height:t+m}).each(function(a){var b=c(this);b.attr({coordsize:f+m+" "+(t+m),path:q,fillcolor:n,filled:!!a,stroked:!a}).css({display:m||a?"block":"none"});!a&&(0<m&&""===b.html())&&b.html('<vml:stroke weight="'+2*m+'px" color="'+D+'" miterlimit="1000" joinstyle="miter" style="behavior:url(#default#VML); display:inline-block;" />')}));
- b!==k&&g.position(a)},position:function(a){var b=l.tip,d={},u=Math.max(0,j.offset),f,m,n;if(j.corner===k||!b)return k;a=a||g.corner;f=a.precedance;m=e(a);n=[a.x,a.y];"x"===f&&n.reverse();c.each(n,function(b,e){var g,j;if("center"===e)g="y"===f?"left":"top",d[g]="50%",d["margin-"+g]=-Math.round(m["y"===f?"width":"height"]/2)+u;else{g=p(a,e,w);j=c.browser.mozilla;var k=a.y+(j?"":"-")+a.x;j=(j?"-moz-":c.browser.webkit?"-webkit-":"")+(j?"border-radius-"+k:"border-"+k+"-radius");j=parseInt((l.titlebar&&
- "top"===a.y?l.titlebar:l.content).css(j),10)||parseInt(h.css(j),10)||0;d[e]=b?p(a,e):u+(j>g?j:0)}});d[a[f]]-=m["x"===f?"width":"height"];b.css({top:"",bottom:"",left:"",right:"",margin:""}).css(d);return d},destroy:function(){l.tip&&l.tip.remove();h.unbind(".qtip-tip")}});g.init()}function Y(a){var b=this,p=a.options.show.modal,e=a.elements,g=e.tooltip,j=".qtipmodal"+a.id,l;a.checks.modal={"^show.modal.(on|blur)$":function(){b.init();e.overlay.toggle(g.is(":visible"))}};c.extend(b,{init:function(){if(!p.on)return b;
- l=b.create();g.attr("is-modal-qtip",w).unbind(".qtipmodal").unbind(j).bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(a,c,e){b[a.type.replace("tooltip","")](a,e)}).bind("tooltipfocus.qtipmodal",function(a,b,c){l[0].style.zIndex=c-1}).bind("tooltipblur.qtipmodal",function(a){c("[is-modal-qtip]:visible").not(g).last().qtip("focus",a)});p.escape&&c(E).unbind(j).bind("keydown"+j,function(b){27===b.keyCode&&g.hasClass(O)&&a.hide(b)});p.blur&&e.overlay.unbind(j).bind("click"+j,function(b){g.hasClass(O)&&
- a.hide(b)});return b},create:function(){var a=c("#qtip-overlay");if(a.length)return e.overlay=a;l=e.overlay=c("<div />",{id:"qtip-overlay",css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return k}}).appendTo(document.body);c(E).unbind(".qtipmodal").bind("resize.qtipmodal",function(){l.css({height:Math.max(c(E).height(),c(document).height()),width:Math.max(c(E).width(),c(document).width())})}).trigger("resize");return l},toggle:function(a,j,x){if(a&&a.isDefaultPrevented())return b;
- a=p.effect;var n=j?"show":"hide",y=c("[is-modal-qtip]:visible").not(g);l||(l=b.create());if(l.is(":animated")&&!j||!j&&y.length)return b;j&&e.overlay.css("cursor",p.blur?"pointer":"");l.stop(w,k);if(c.isFunction(a))a.call(l,j);else if(a===k)l[n]();else l.fadeTo(parseInt(x,10)||90,j?0.7:0,function(){j||c(this).hide()});return b},show:function(a,c){return b.toggle(a,w,c)},hide:function(a,c){return b.toggle(a,k,c)},destroy:function(){var b=l;b&&((b=1>c("[is-modal-qtip]").not(g).length)?(e.overlay.remove(),
- c(E).unbind(".qtipmodal")):e.overlay.unbind(".qtipmodal"+a.id));return g.removeAttr("is-modal-qtip").unbind(".qtipmodal")}});b.init()}function Z(a){var b=this,p=a.elements,e=p.tooltip,g=".bgiframe-"+a.id;c.extend(b,{init:function(){p.bgiframe=c('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>');p.bgiframe.appendTo(e);
- e.bind("tooltipmove"+g,b.adjust)},adjust:function(){var b=a.get("dimensions"),c=a.plugins.tip,h=p.tip,g;g=parseInt(e.css("border-left-width"),10)||0;g={left:-g,top:-g};c&&h&&(c="x"===c.corner.precedance?["width","left"]:["height","top"],g[c[1]]-=h[c[0]]());p.bgiframe.css(g).css(b)},destroy:function(){p.bgiframe.remove();e.unbind(g)}});b.init()}var w=!0,k=!1,B=null,F,y,N,H="ui-tooltip",R="ui-widget",K="ui-state-disabled",Q="div.qtip."+H,O=H+"-focus",V=H+"-hover",M="oldtitle";F=c.fn.qtip=function(a,
- b,p){var e=(""+a).toLowerCase(),g=B,j="disable"===e?[w]:c.makeArray(arguments).slice(1,10),l=j[j.length-1],h=this[0]?c.data(this[0],"qtip"):B;if(!arguments.length&&h||"api"===e)return h;if("string"===typeof a)return this.each(function(){var a=c.data(this,"qtip");if(!a)return w;l&&l.timeStamp&&(a.cache.event=l);if(("option"===e||"options"===e)&&b)if(c.isPlainObject(b)||p!==L)a.set(b,p);else return g=a.get(b),k;else a[e]&&a[e].apply(a[e],j)}),g!==B?g:this;if("object"===typeof a||!arguments.length)return h=
- P(c.extend(w,{},a)),F.bind.call(this,h,l)};F.bind=function(a,b){return this.each(function(){function p(a){function b(){u.render("object"===typeof a||e.show.ready);g.show.unbind(j.show);g.hide.unbind(j.hide)}if(u.cache.disabled)return k;u.cache.event=c.extend({},a);0<e.show.delay?(clearTimeout(u.timers.show),u.timers.show=setTimeout(b,e.show.delay),j.show!==j.hide&&g.hide.bind(j.hide,function(){clearTimeout(u.timers.show)})):b()}var e,g,j,l=!a.id||a.id===k||1>a.id.length||c("#"+H+"-"+a.id).length?
- F.nextid++:a.id,h=".qtip-"+l+"-create",u;a:{var x,n,D,m,d=c(this),r=c(document.body),s=this===document?r:d;n=d.metadata?d.metadata(a.metadata):B;m="html5"===a.metadata.type&&n?n[a.metadata.name]:B;var C=d.data(a.metadata.name||"qtipopts");try{C="string"===typeof C?(new Function("return "+C))():C}catch(E){S("Unable to parse HTML5 attribute data: "+C)}m=c.extend(w,{},F.defaults,a,"object"===typeof C?P(C):B,P(m||n));n&&c.removeData(this,"metadata");n=m.position;m.id=l;if("boolean"===typeof m.content.text)if(D=
- d.attr(m.content.attr),m.content.attr!==k&&D)m.content.text=D;else{u=k;break a}n.container===k&&(n.container=r);n.target===k&&(n.target=s);m.show.target===k&&(m.show.target=s);m.show.solo===w&&(m.show.solo=r);m.hide.target===k&&(m.hide.target=s);m.position.viewport===w&&(m.position.viewport=n.container);n.at=new y.Corner(n.at);n.my=new y.Corner(n.my);if(c.data(this,"qtip"))if(m.overwrite)d.qtip("destroy");else if(m.overwrite===k){u=k;break a}c.attr(this,"title")&&(c.attr(this,M,c.attr(this,"title")),
- this.removeAttribute("title"));x=new T(d,m,l,!!D);c.data(this,"qtip",x);d.bind("remove.qtip",function(){x.destroy()});u=x}if(u===k)return w;e=u.options;c.each(y,function(){"initialize"===this.initialize&&this(u)});g={show:e.show.target,hide:e.hide.target};j={show:c.trim(""+e.show.event).replace(/ /g,h+" ")+h,hide:c.trim(""+e.hide.event).replace(/ /g,h+" ")+h};/mouse(over|enter)/i.test(j.show)&&!/mouse(out|leave)/i.test(j.hide)&&(j.hide+=" mouseleave"+h);g.show.bind(j.show,p);(e.show.ready||e.prerender)&&
- p(b)})};y=F.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase();this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=-1<a.charAt(0).search(/^(t|b)/)?"y":"x";this.string=function(){return"y"===this.precedance?this.y+this.x:this.x+this.y};this.abbreviation=function(){var a=this.x.substr(0,1),c=this.y.substr(0,1);return a===c?a:"c"===a||
- "c"!==a&&"c"!==c?c+a:a+c}},offset:function(a,b,p){a=a.offset();var e=b,g=0,j=document.body,l;if(e){do if(e[0]===j)break;else"static"!==e.css("position")&&(l=e.position(),a.left-=l.left+(parseInt(e.css("borderLeftWidth"),10)||0),a.top-=l.top+(parseInt(e.css("borderTopWidth"),10)||0),g++);while(e=e.offsetParent());if(b[0]!==j||1<g)a.left+=1*b.scrollLeft(),a.top+=1*b.scrollTop();if(4.1>y.iOS&&3.1<y.iOS||!y.iOS&&p)b=c(E),a.left+=-1*b.scrollLeft(),a.top+=-1*b.scrollTop()}return a},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||
- [0,""])[1]).replace("undefined","3_2").replace("_","."))||k,fn:{attr:function(a,b){if(this.length){var p=this[0],e=c.data(p,"qtip");if("title"===a){if(2>arguments.length)return c.attr(p,M);if("object"===typeof e)return e&&(e.rendered&&"title"===e.options.content.attr&&e.cache.attr)&&e.set("content.text",b),c.fn.attr_replacedByqTip.apply(this,arguments),c.attr(p,M,c.attr(p,"title")),this.removeAttr("title")}}},clone:function(a){c([]);return c.fn.clone_replacedByqTip.apply(this,arguments).filter("[oldtitle]").each(function(){c.attr(this,
- "title",c.attr(this,M));this.removeAttribute(M)}).end()},remove:c.ui?B:function(a,b){c(this).each(function(){b||(!a||c.filter(a,[this]).length)&&c("*",this).add(this).each(function(){c(this).triggerHandler("remove")})})}}};c.each(y.fn,function(a,b){if(!b)return w;var p=c.fn[a+"_replacedByqTip"]=c.fn[a];c.fn[a]=function(){return b.apply(this,arguments)||p.apply(this,arguments)}});c(document).bind("mousemove.qtip",function(a){N={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});F.version="nightly";F.nextid=
- 0;F.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");F.zindex=15E3;F.defaults={prerender:k,id:k,overwrite:w,content:{text:w,attr:"title",title:{text:k,button:k}},position:{my:"top left",at:"bottom right",target:k,container:k,viewport:k,adjust:{x:0,y:0,mouse:w,resize:w,method:"flip flip"},effect:w},show:{target:k,event:"mouseenter",effect:w,delay:90,solo:k,ready:k},hide:{target:k,event:"mouseleave",effect:w,delay:0,fixed:k,inactive:k,leave:"window",distance:k},
- style:{classes:"",widget:k,width:k},events:{render:B,move:B,show:B,hide:B,toggle:B,focus:B,blur:B}};y.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new W(a)};y.ajax.initialize="render";y.ajax.sanitize=function(a){var b=a.content;b&&"ajax"in b&&(b=b.ajax,"object"!==typeof b&&(b=a.content.ajax={url:b}),"boolean"!==typeof b.once&&b.once&&(b.once=!!b.once))};c.extend(w,F.defaults,{content:{ajax:{loading:w,once:w}}});y.imagemap=function(a,b){var p=a.attr("shape").toLowerCase(),
- e=a.attr("coords").split(","),g=[],j=c('img[usemap="#'+a.parent("map").attr("name")+'"]'),l=j.offset(),h={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},k=0,x=0;l.left+=Math.ceil((j.outerWidth()-j.width())/2);l.top+=Math.ceil((j.outerHeight()-j.height())/2);if("poly"===p)for(k=e.length;k--;)x=[parseInt(e[--k],10),parseInt(e[k+1],10)],x[0]>h.offset.right&&(h.offset.right=x[0]),x[0]<h.offset.left&&(h.offset.left=x[0]),x[1]>h.offset.bottom&&(h.offset.bottom=x[1]),x[1]<h.offset.top&&(h.offset.top=
- x[1]),g.push(x);else g=c.map(e,function(a){return parseInt(a,10)});switch(p){case "rect":h={width:Math.abs(g[2]-g[0]),height:Math.abs(g[3]-g[1]),offset:{left:g[0],top:g[1]}};break;case "circle":h={width:g[2]+2,height:g[2]+2,offset:{left:g[0],top:g[1]}};break;case "poly":c.extend(h,{width:Math.abs(h.offset.right-h.offset.left),height:Math.abs(h.offset.bottom-h.offset.top)});if("centercenter"===b.string())h.offset={left:h.offset.left+h.width/2,top:h.offset.top+h.height/2};else{for(var e=p=h,g=g.slice(),
- j=0,x=k=1,n=0,w=0,m=e.width,d=e.height;0<m&&0<d&&0<k&&0<x;){m=Math.floor(m/2);d=Math.floor(d/2);k="left"===b.x?m:"right"===b.x?e.width-m:k+Math.floor(m/2);x="top"===b.y?d:"bottom"===b.y?e.height-d:x+Math.floor(d/2);for(j=g.length;j--&&!(2>g.length);)n=g[j][0]-e.offset.left,w=g[j][1]-e.offset.top,("left"===b.x&&n>=k||"right"===b.x&&n<=k||"center"===b.x&&(n<k||n>e.width-k)||"top"===b.y&&w>=x||"bottom"===b.y&&w<=x||"center"===b.y&&(w<x||w>e.height-x))&&g.splice(j,1)}p.offset={left:g[0][0],top:g[0][1]}}h.width=
- h.height=0}h.offset.left+=l.left;h.offset.top+=l.top;return h};y.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new X(a)};y.tip.initialize="render";y.tip.sanitize=function(a){var b=a.style;b&&"tip"in b&&(b=a.style.tip,"object"!==typeof b&&(a.style.tip={corner:b}),/string|boolean/i.test(typeof b.corner)||(b.corner=w),"number"!==typeof b.width&&delete b.width,"number"!==typeof b.height&&delete b.height,"number"!==typeof b.border&&b.border!==w&&delete b.border,"number"!==
- typeof b.offset&&delete b.offset)};c.extend(w,F.defaults,{style:{tip:{corner:w,mimic:k,width:6,height:6,border:w,offset:0}}});y.svg=function(a){var b=c(document),k=a[0];a={width:0,height:0,offset:{top:1E10,left:1E10}};var e,g,j;if(k.getBBox&&k.parentNode){e=k.getBBox();g=k.getScreenCTM();k=k.farthestViewportElement||k;if(!k.createSVGPoint)return a;k=k.createSVGPoint();k.x=e.x;k.y=e.y;j=k.matrixTransform(g);a.offset.left=j.x;a.offset.top=j.y;k.x+=e.width;k.y+=e.height;j=k.matrixTransform(g);a.width=
- j.x-a.offset.left;a.height=j.y-a.offset.top;a.offset.left+=b.scrollLeft();a.offset.top+=b.scrollTop()}return a};y.modal=function(a){var b=a.plugins.modal;return"object"===typeof b?b:a.plugins.modal=new Y(a)};y.modal.initialize="render";y.modal.sanitize=function(a){a.show&&("object"!==typeof a.show.modal?a.show.modal={on:!!a.show.modal}:"undefined"===typeof a.show.modal.on&&(a.show.modal.on=w))};c.extend(w,F.defaults,{show:{modal:{on:k,effect:w,blur:w,escape:w}}});y.bgiframe=function(a){var b=c.browser,
- p=a.plugins.bgiframe;return 1>c("select, object").length||!(b.msie&&"6"===b.version.charAt(0))?k:"object"===typeof p?p:a.plugins.bgiframe=new Z(a)};y.bgiframe.initialize="render"})(jQuery,window);
|