/*
 * jQuery JavaScript Library v1.10.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03T13:48Z
 */
(function(a1,aE){var ag,w,aA=typeof aE,aJ=a1.location,l=a1.document,bV=l.documentElement,bh=a1.jQuery,G=a1.$,Y={},a5=[],s="1.10.2",aG=a5.concat,am=a5.push,a3=a5.slice,aK=a5.indexOf,y=Y.toString,T=Y.hasOwnProperty,aO=s.trim,bI=function(e,b3){return new bI.fn.init(e,b3,w)},bz=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,aa=/\S+/g,B=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bq=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,a=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,bg=/^[\],:{}\s]*$/,bj=/(?:^|:|,)(?:\s*\[)+/g,bF=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,aX=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,bR=/^-ms-/,aT=/-([\da-z])/gi,K=function(e,b3){return b3.toUpperCase()},bW=function(e){if(l.addEventListener||e.type==="load"||l.readyState==="complete"){bk();bI.ready()}},bk=function(){if(l.addEventListener){l.removeEventListener("DOMContentLoaded",bW,false);a1.removeEventListener("load",bW,false)}else{l.detachEvent("onreadystatechange",bW);a1.detachEvent("onload",bW)}};bI.fn=bI.prototype={jquery:s,constructor:bI,init:function(e,b5,b4){var b3,b6;if(!e){return this}if(typeof e==="string"){if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3){b3=[null,e,null]}else{b3=bq.exec(e)}if(b3&&(b3[1]||!b5)){if(b3[1]){b5=b5 instanceof bI?b5[0]:b5;bI.merge(this,bI.parseHTML(b3[1],b5&&b5.nodeType?b5.ownerDocument||b5:l,true));if(a.test(b3[1])&&bI.isPlainObject(b5)){for(b3 in b5){if(bI.isFunction(this[b3])){this[b3](b5[b3])}else{this.attr(b3,b5[b3])}}}return this}else{b6=l.getElementById(b3[2]);if(b6&&b6.parentNode){if(b6.id!==b3[2]){return b4.find(e)}this.length=1;this[0]=b6}this.context=l;this.selector=e;return this}}else{if(!b5||b5.jquery){return(b5||b4).find(e)}else{return this.constructor(b5).find(e)}}}else{if(e.nodeType){this.context=this[0]=e;this.length=1;return this}else{if(bI.isFunction(e)){return b4.ready(e)}}}if(e.selector!==aE){this.selector=e.selector;this.context=e.context}return bI.makeArray(e,this)},selector:"",length:0,toArray:function(){return a3.call(this)},get:function(e){return e==null?this.toArray():(e<0?this[this.length+e]:this[e])},pushStack:function(e){var b3=bI.merge(this.constructor(),e);b3.prevObject=this;b3.context=this.context;return b3},each:function(b3,e){return bI.each(this,b3,e)},ready:function(e){bI.ready.promise().done(e);return this},slice:function(){return this.pushStack(a3.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b4){var e=this.length,b3=+b4+(b4<0?e:0);return this.pushStack(b3>=0&&b3<e?[this[b3]]:[])},map:function(e){return this.pushStack(bI.map(this,function(b4,b3){return e.call(b4,b3,b4)}))},end:function(){return this.prevObject||this.constructor(null)},push:am,sort:[].sort,splice:[].splice};bI.fn.init.prototype=bI.fn;bI.extend=bI.fn.extend=function(){var e,b8,b3,b4,cb,b9,b7=arguments[0]||{},b6=1,b5=arguments.length,ca=false;if(typeof b7==="boolean"){ca=b7;b7=arguments[1]||{};b6=2}if(typeof b7!=="object"&&!bI.isFunction(b7)){b7={}}if(b5===b6){b7=this;--b6}for(;b6<b5;b6++){if((cb=arguments[b6])!=null){for(b4 in cb){e=b7[b4];b3=cb[b4];if(b7===b3){continue}if(ca&&b3&&(bI.isPlainObject(b3)||(b8=bI.isArray(b3)))){if(b8){b8=false;b9=e&&bI.isArray(e)?e:[]}else{b9=e&&bI.isPlainObject(e)?e:{}}b7[b4]=bI.extend(ca,b9,b3)}else{if(b3!==aE){b7[b4]=b3}}}}}return b7};bI.extend({expando:"jQuery"+(s+Math.random()).replace(/\D/g,""),noConflict:function(e){if(a1.$===bI){a1.$=G}if(e&&a1.jQuery===bI){a1.jQuery=bh}return bI},isReady:false,readyWait:1,holdReady:function(e){if(e){bI.readyWait++}else{bI.ready(true)}},ready:function(e){if(e===true?--bI.readyWait:bI.isReady){return}if(!l.body){return setTimeout(bI.ready)}bI.isReady=true;if(e!==true&&--bI.readyWait>0){return}ag.resolveWith(l,[bI]);if(bI.fn.trigger){bI(l).trigger("ready").off("ready")}},isFunction:function(e){return bI.type(e)==="function"},isArray:Array.isArray||function(e){return bI.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return !isNaN(parseFloat(e))&&isFinite(e)},type:function(e){if(e==null){return String(e)}return typeof e==="object"||typeof e==="function"?Y[y.call(e)]||"object":typeof e},isPlainObject:function(b5){var b3;if(!b5||bI.type(b5)!=="object"||b5.nodeType||bI.isWindow(b5)){return false}try{if(b5.constructor&&!T.call(b5,"constructor")&&!T.call(b5.constructor.prototype,"isPrototypeOf")){return false}}catch(b4){return false}if(bI.support.ownLast){for(b3 in b5){return T.call(b5,b3)}}for(b3 in b5){}return b3===aE||T.call(b5,b3)},isEmptyObject:function(b3){var e;for(e in b3){return false}return true},error:function(e){throw new Error(e)},parseHTML:function(b6,b4,b5){if(!b6||typeof b6!=="string"){return null}if(typeof b4==="boolean"){b5=b4;b4=false}b4=b4||l;var b3=a.exec(b6),e=!b5&&[];if(b3){return[b4.createElement(b3[1])]}b3=bI.buildFragment([b6],b4,e);if(e){bI(e).remove()}return bI.merge([],b3.childNodes)},parseJSON:function(e){if(a1.JSON&&a1.JSON.parse){return a1.JSON.parse(e)}if(e===null){return e}if(typeof e==="string"){e=bI.trim(e);if(e){if(bg.test(e.replace(bF,"@").replace(aX,"]").replace(bj,""))){return(new Function("return "+e))()}}}bI.error("Invalid JSON: "+e)},parseXML:function(b5){var b3,b4;if(!b5||typeof b5!=="string"){return null}try{if(a1.DOMParser){b4=new DOMParser();b3=b4.parseFromString(b5,"text/xml")}else{b3=new ActiveXObject("Microsoft.XMLDOM");b3.async="false";b3.loadXML(b5)}}catch(b6){b3=aE}if(!b3||!b3.documentElement||b3.getElementsByTagName("parsererror").length){bI.error("Invalid XML: "+b5)}return b3},noop:function(){},globalEval:function(e){if(e&&bI.trim(e)){(a1.execScript||function(b3){a1["eval"].call(a1,b3)})(e)}},camelCase:function(e){return e.replace(bR,"ms-").replace(aT,K)},nodeName:function(b3,e){return b3.nodeName&&b3.nodeName.toLowerCase()===e.toLowerCase()},each:function(b7,b8,b3){var b6,b4=0,b5=b7.length,e=Z(b7);if(b3){if(e){for(;b4<b5;b4++){b6=b8.apply(b7[b4],b3);if(b6===false){break}}}else{for(b4 in b7){b6=b8.apply(b7[b4],b3);if(b6===false){break}}}}else{if(e){for(;b4<b5;b4++){b6=b8.call(b7[b4],b4,b7[b4]);if(b6===false){break}}}else{for(b4 in b7){b6=b8.call(b7[b4],b4,b7[b4]);if(b6===false){break}}}}return b7},trim:aO&&!aO.call("\uFEFF\xA0")?function(e){return e==null?"":aO.call(e)}:function(e){return e==null?"":(e+"").replace(B,"")},makeArray:function(e,b4){var b3=b4||[];if(e!=null){if(Z(Object(e))){bI.merge(b3,typeof e==="string"?[e]:e)}else{am.call(b3,e)}}return b3},inArray:function(b5,b3,b4){var e;if(b3){if(aK){return aK.call(b3,b5,b4)}e=b3.length;b4=b4?b4<0?Math.max(0,e+b4):b4:0;for(;b4<e;b4++){if(b4 in b3&&b3[b4]===b5){return b4}}}return -1},merge:function(b6,b4){var e=b4.length,b5=b6.length,b3=0;if(typeof e==="number"){for(;b3<e;b3++){b6[b5++]=b4[b3]}}else{while(b4[b3]!==aE){b6[b5++]=b4[b3++]}}b6.length=b5;return b6},grep:function(b3,b8,e){var b7,b4=[],b5=0,b6=b3.length;e=!!e;for(;b5<b6;b5++){b7=!!b8(b3[b5],b5);if(e!==b7){b4.push(b3[b5])}}return b4},map:function(b4,b9,e){var b8,b6=0,b7=b4.length,b3=Z(b4),b5=[];if(b3){for(;b6<b7;b6++){b8=b9(b4[b6],b6,e);if(b8!=null){b5[b5.length]=b8}}}else{for(b6 in b4){b8=b9(b4[b6],b6,e);if(b8!=null){b5[b5.length]=b8}}}return aG.apply([],b5)},guid:1,proxy:function(b6,b5){var e,b4,b3;if(typeof b5==="string"){b3=b6[b5];b5=b6;b6=b3}if(!bI.isFunction(b6)){return aE}e=a3.call(arguments,2);b4=function(){return b6.apply(b5||this,e.concat(a3.call(arguments)))};b4.guid=b6.guid=b6.guid||bI.guid++;return b4},access:function(e,b7,b9,b8,b5,cb,ca){var b4=0,b3=e.length,b6=b9==null;if(bI.type(b9)==="object"){b5=true;for(b4 in b9){bI.access(e,b7,b4,b9[b4],true,cb,ca)}}else{if(b8!==aE){b5=true;if(!bI.isFunction(b8)){ca=true}if(b6){if(ca){b7.call(e,b8);b7=null}else{b6=b7;b7=function(cd,cc,ce){return b6.call(bI(cd),ce)}}}if(b7){for(;b4<b3;b4++){b7(e[b4],b9,ca?b8:b8.call(e[b4],b4,b7(e[b4],b9)))}}}}return b5?e:b6?b7.call(e):b3?b7(e[0],b9):cb},now:function(){return(new Date()).getTime()},swap:function(b7,b6,b8,b5){var b4,b3,e={};for(b3 in b6){e[b3]=b7.style[b3];b7.style[b3]=b6[b3]}b4=b8.apply(b7,b5||[]);for(b3 in b6){b7.style[b3]=e[b3]}return b4}});bI.ready.promise=function(b6){if(!ag){ag=bI.Deferred();if(l.readyState==="complete"){setTimeout(bI.ready)}else{if(l.addEventListener){l.addEventListener("DOMContentLoaded",bW,false);a1.addEventListener("load",bW,false)}else{l.attachEvent("onreadystatechange",bW);a1.attachEvent("onload",bW);var b5=false;try{b5=a1.frameElement==null&&l.documentElement}catch(b4){}if(b5&&b5.doScroll){(function b3(){if(!bI.isReady){try{b5.doScroll("left")}catch(b7){return setTimeout(b3,50)}bk();bI.ready()}})()}}}}return ag.promise(b6)};bI.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(b3,e){Y["[object "+e+"]"]=e.toLowerCase()});function Z(b4){var b3=b4.length,e=bI.type(b4);if(bI.isWindow(b4)){return false}if(b4.nodeType===1&&b3){return true}return e==="array"||e!=="function"&&(b3===0||typeof b3==="number"&&b3>0&&(b3-1) in b4)}w=bI(l);
/*
 * Sizzle CSS Selector Engine v1.10.2
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03
 */
(function(dc,ch){var cw,df,cc,cm,cF,cI,cT,dj,cG,cW,cA,cn,c5,c0,dd,cb,cD,c7="sizzle"+-(new Date()),cH=dc.document,dg=0,c1=0,b6=cy(),c6=cy(),cE=cy(),cU=false,cC=function(dk,e){if(dk===e){cU=true;return 0}return 0},db=typeof ch,cO=1<<31,cM=({}).hasOwnProperty,c9=[],da=c9.pop,cK=c9.push,b4=c9.push,cl=c9.slice,ca=c9.indexOf||function(dl){var dk=0,e=this.length;for(;dk<e;dk++){if(this[dk]===dl){return dk}}return -1},b5="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",co="[\\x20\\t\\r\\n\\f]",b3="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",cJ=b3.replace("w","w#"),c3="\\["+co+"*("+b3+")"+co+"*(?:([*^$|!~]?=)"+co+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+cJ+")|)|)"+co+"*\\]",cj=":("+b3+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+c3.replace(3,8)+")*)|.*)\\)|)",cq=new RegExp("^"+co+"+|((?:^|[^\\\\])(?:\\\\.)*)"+co+"+$","g"),ct=new RegExp("^"+co+"*,"+co+"*"),cz=new RegExp("^"+co+"*([>+~]|"+co+")"+co+"*"),cY=new RegExp(co+"*[+~]"),cs=new RegExp("="+co+"*([^\\]'\"]*)"+co+"*\\]","g"),cQ=new RegExp(cj),cR=new RegExp("^"+cJ+"$"),cZ={ID:new RegExp("^#("+b3+")"),CLASS:new RegExp("^\\.("+b3+")"),TAG:new RegExp("^("+b3.replace("w","w*")+")"),ATTR:new RegExp("^"+c3),PSEUDO:new RegExp("^"+cj),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+co+"*(even|odd|(([+-]|)(\\d*)n|)"+co+"*(?:([+-]|)"+co+"*(\\d+)|))"+co+"*\\)|)","i"),bool:new RegExp("^(?:"+b5+")$","i"),needsContext:new RegExp("^"+co+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+co+"*((?:-\\d)?\\d*)"+co+"*\\)|)(?=[^-]|$)","i")},cN=/^[^{]+\{\s*\[native \w/,cP=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,b9=/^(?:input|select|textarea|button)$/i,ck=/^h\d$/i,cL=/'|\\/g,cr=new RegExp("\\\\([\\da-f]{1,6}"+co+"?|("+co+")|.)","ig"),c2=function(e,dm,dk){var dl="0x"+dm-65536;return dl!==dl||dk?dm:dl<0?String.fromCharCode(dl+65536):String.fromCharCode(dl>>10|55296,dl&1023|56320)};try{b4.apply((c9=cl.call(cH.childNodes)),cH.childNodes);c9[cH.childNodes.length].nodeType}catch(cB){b4={apply:c9.length?function(dk,e){cK.apply(dk,cl.call(e))}:function(dm,dl){var e=dm.length,dk=0;while((dm[e++]=dl[dk++])){}dm.length=e-1}}}function cu(ds,dk,dw,dy){var dx,dp,dq,du,dv,dn,dm,e,dl,dt;if((dk?dk.ownerDocument||dk:cH)!==cA){cW(dk)}dk=dk||cA;dw=dw||[];if(!ds||typeof ds!=="string"){return dw}if((du=dk.nodeType)!==1&&du!==9){return[]}if(c5&&!dy){if((dx=cP.exec(ds))){if((dq=dx[1])){if(du===9){dp=dk.getElementById(dq);if(dp&&dp.parentNode){if(dp.id===dq){dw.push(dp);return dw}}else{return dw}}else{if(dk.ownerDocument&&(dp=dk.ownerDocument.getElementById(dq))&&cD(dk,dp)&&dp.id===dq){dw.push(dp);return dw}}}else{if(dx[2]){b4.apply(dw,dk.getElementsByTagName(ds));return dw}else{if((dq=dx[3])&&df.getElementsByClassName&&dk.getElementsByClassName){b4.apply(dw,dk.getElementsByClassName(dq));return dw}}}}if(df.qsa&&(!c0||!c0.test(ds))){e=dm=c7;dl=dk;dt=du===9&&ds;if(du===1&&dk.nodeName.toLowerCase()!=="object"){dn=cf(ds);if((dm=dk.getAttribute("id"))){e=dm.replace(cL,"\\$&")}else{dk.setAttribute("id",e)}e="[id='"+e+"'] ";dv=dn.length;while(dv--){dn[dv]=e+cg(dn[dv])}dl=cY.test(ds)&&dk.parentNode||dk;dt=dn.join(",")}if(dt){try{b4.apply(dw,dl.querySelectorAll(dt));return dw}catch(dr){}finally{if(!dm){dk.removeAttribute("id")}}}}}return de(ds.replace(cq,"$1"),dk,dw,dy)}function cy(){var dk=[];function e(dl,dm){if(dk.push(dl+=" ")>cm.cacheLength){delete e[dk.shift()]}return(e[dl]=dm)}return e}function ci(e){e[c7]=true;return e}function cd(dk){var dm=cA.createElement("div");try{return !!dk(dm)}catch(dl){return false}finally{if(dm.parentNode){dm.parentNode.removeChild(dm)}dm=null}}function dh(dk,dm){var e=dk.split("|"),dl=dk.length;while(dl--){cm.attrHandle[e[dl]]=dm}}function b7(dk,e){var dm=e&&dk,dl=dm&&dk.nodeType===1&&e.nodeType===1&&(~e.sourceIndex||cO)-(~dk.sourceIndex||cO);if(dl){return dl}if(dm){while((dm=dm.nextSibling)){if(dm===e){return -1}}}return dk?1:-1}function cv(e){return function(dl){var dk=dl.nodeName.toLowerCase();return dk==="input"&&dl.type===e}}function b8(e){return function(dl){var dk=dl.nodeName.toLowerCase();return(dk==="input"||dk==="button")&&dl.type===e}}function c4(e){return ci(function(dk){dk=+dk;return ci(function(dl,dq){var dn,dm=e([],dl.length,dk),dp=dm.length;while(dp--){if(dl[(dn=dm[dp])]){dl[dn]=!(dq[dn]=dl[dn])}}})})}cI=cu.isXML=function(e){var dk=e&&(e.ownerDocument||e).documentElement;return dk?dk.nodeName!=="HTML":false};df=cu.support={};cW=cu.setDocument=function(dk){var dl=dk?dk.ownerDocument||dk:cH,e=dl.defaultView;if(dl===cA||dl.nodeType!==9||!dl.documentElement){return cA}cA=dl;cn=dl.documentElement;c5=!cI(dl);if(e&&e.attachEvent&&e!==e.top){e.attachEvent("onbeforeunload",function(){cW()})}df.attributes=cd(function(dm){dm.className="i";return !dm.getAttribute("className")});df.getElementsByTagName=cd(function(dm){dm.appendChild(dl.createComment(""));return !dm.getElementsByTagName("*").length});df.getElementsByClassName=cd(function(dm){dm.innerHTML="<div class='a'></div><div class='a i'></div>";dm.firstChild.className="i";return dm.getElementsByClassName("i").length===2});df.getById=cd(function(dm){cn.appendChild(dm).id=c7;return !dl.getElementsByName||!dl.getElementsByName(c7).length});if(df.getById){cm.find.ID=function(dp,dn){if(typeof dn.getElementById!==db&&c5){var dm=dn.getElementById(dp);return dm&&dm.parentNode?[dm]:[]}};cm.filter.ID=function(dn){var dm=dn.replace(cr,c2);return function(dp){return dp.getAttribute("id")===dm}}}else{delete cm.find.ID;cm.filter.ID=function(dn){var dm=dn.replace(cr,c2);return function(dq){var dp=typeof dq.getAttributeNode!==db&&dq.getAttributeNode("id");return dp&&dp.value===dm}}}cm.find.TAG=df.getElementsByTagName?function(dm,dn){if(typeof dn.getElementsByTagName!==db){return dn.getElementsByTagName(dm)}}:function(dm,dr){var ds,dq=[],dp=0,dn=dr.getElementsByTagName(dm);if(dm==="*"){while((ds=dn[dp++])){if(ds.nodeType===1){dq.push(ds)}}return dq}return dn};cm.find.CLASS=df.getElementsByClassName&&function(dn,dm){if(typeof dm.getElementsByClassName!==db&&c5){return dm.getElementsByClassName(dn)}};dd=[];c0=[];if((df.qsa=cN.test(dl.querySelectorAll))){cd(function(dm){dm.innerHTML="<select><option selected=''></option></select>";if(!dm.querySelectorAll("[selected]").length){c0.push("\\["+co+"*(?:value|"+b5+")")}if(!dm.querySelectorAll(":checked").length){c0.push(":checked")}});cd(function(dn){var dm=dl.createElement("input");dm.setAttribute("type","hidden");dn.appendChild(dm).setAttribute("t","");if(dn.querySelectorAll("[t^='']").length){c0.push("[*^$]="+co+"*(?:''|\"\")")}if(!dn.querySelectorAll(":enabled").length){c0.push(":enabled",":disabled")}dn.querySelectorAll("*,:x");c0.push(",.*:")})}if((df.matchesSelector=cN.test((cb=cn.webkitMatchesSelector||cn.mozMatchesSelector||cn.oMatchesSelector||cn.msMatchesSelector)))){cd(function(dm){df.disconnectedMatch=cb.call(dm,"div");cb.call(dm,"[s!='']:x");dd.push("!=",cj)})}c0=c0.length&&new RegExp(c0.join("|"));dd=dd.length&&new RegExp(dd.join("|"));cD=cN.test(cn.contains)||cn.compareDocumentPosition?function(dn,dm){var dq=dn.nodeType===9?dn.documentElement:dn,dp=dm&&dm.parentNode;return dn===dp||!!(dp&&dp.nodeType===1&&(dq.contains?dq.contains(dp):dn.compareDocumentPosition&&dn.compareDocumentPosition(dp)&16))}:function(dn,dm){if(dm){while((dm=dm.parentNode)){if(dm===dn){return true}}}return false};cC=cn.compareDocumentPosition?function(dn,dm){if(dn===dm){cU=true;return 0}var dp=dm.compareDocumentPosition&&dn.compareDocumentPosition&&dn.compareDocumentPosition(dm);if(dp){if(dp&1||(!df.sortDetached&&dm.compareDocumentPosition(dn)===dp)){if(dn===dl||cD(cH,dn)){return -1}if(dm===dl||cD(cH,dm)){return 1}return cG?(ca.call(cG,dn)-ca.call(cG,dm)):0}return dp&4?-1:1}return dn.compareDocumentPosition?-1:1}:function(dn,dm){var du,dr=0,dt=dn.parentNode,dq=dm.parentNode,dp=[dn],ds=[dm];if(dn===dm){cU=true;return 0}else{if(!dt||!dq){return dn===dl?-1:dm===dl?1:dt?-1:dq?1:cG?(ca.call(cG,dn)-ca.call(cG,dm)):0}else{if(dt===dq){return b7(dn,dm)}}}du=dn;while((du=du.parentNode)){dp.unshift(du)}du=dm;while((du=du.parentNode)){ds.unshift(du)}while(dp[dr]===ds[dr]){dr++}return dr?b7(dp[dr],ds[dr]):dp[dr]===cH?-1:ds[dr]===cH?1:0};return dl};cu.matches=function(dk,e){return cu(dk,null,null,e)};cu.matchesSelector=function(dl,dn){if((dl.ownerDocument||dl)!==cA){cW(dl)}dn=dn.replace(cs,"='$1']");if(df.matchesSelector&&c5&&(!dd||!dd.test(dn))&&(!c0||!c0.test(dn))){try{var dk=cb.call(dl,dn);if(dk||df.disconnectedMatch||dl.document&&dl.document.nodeType!==11){return dk}}catch(dm){}}return cu(dn,cA,null,[dl]).length>0};cu.contains=function(e,dk){if((e.ownerDocument||e)!==cA){cW(e)}return cD(e,dk)};cu.attr=function(dl,e){if((dl.ownerDocument||dl)!==cA){cW(dl)}var dk=cm.attrHandle[e.toLowerCase()],dm=dk&&cM.call(cm.attrHandle,e.toLowerCase())?dk(dl,e,!c5):ch;return dm===ch?df.attributes||!c5?dl.getAttribute(e):(dm=dl.getAttributeNode(e))&&dm.specified?dm.value:null:dm};cu.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};cu.uniqueSort=function(dl){var dm,dn=[],e=0,dk=0;cU=!df.detectDuplicates;cG=!df.sortStable&&dl.slice(0);dl.sort(cC);if(cU){while((dm=dl[dk++])){if(dm===dl[dk]){e=dn.push(dk)}}while(e--){dl.splice(dn[e],1)}}return dl};cF=cu.getText=function(dn){var dm,dk="",dl=0,e=dn.nodeType;if(!e){for(;(dm=dn[dl]);dl++){dk+=cF(dm)}}else{if(e===1||e===9||e===11){if(typeof dn.textContent==="string"){return dn.textContent}else{for(dn=dn.firstChild;dn;dn=dn.nextSibling){dk+=cF(dn)}}}else{if(e===3||e===4){return dn.nodeValue}}}return dk};cm=cu.selectors={cacheLength:50,createPseudo:ci,match:cZ,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(cr,c2);e[3]=(e[4]||e[5]||"").replace(cr,c2);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){cu.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+((e[7]+e[8])||e[3]==="odd")}else{if(e[3]){cu.error(e[0])}}return e},PSEUDO:function(dk){var e,dl=!dk[5]&&dk[2];if(cZ.CHILD.test(dk[0])){return null}if(dk[3]&&dk[4]!==ch){dk[2]=dk[4]}else{if(dl&&cQ.test(dl)&&(e=cf(dl,true))&&(e=dl.indexOf(")",dl.length-e)-dl.length)){dk[0]=dk[0].slice(0,e);dk[2]=dl.slice(0,e)}}return dk.slice(0,3)}},filter:{TAG:function(dk){var e=dk.replace(cr,c2).toLowerCase();return dk==="*"?function(){return true}:function(dl){return dl.nodeName&&dl.nodeName.toLowerCase()===e}},CLASS:function(e){var dk=b6[e+" "];return dk||(dk=new RegExp("(^|"+co+")"+e+"("+co+"|$)"))&&b6(e,function(dl){return dk.test(typeof dl.className==="string"&&dl.className||typeof dl.getAttribute!==db&&dl.getAttribute("class")||"")})},ATTR:function(dl,dk,e){return function(dn){var dm=cu.attr(dn,dl);if(dm==null){return dk==="!="}if(!dk){return true}dm+="";return dk==="="?dm===e:dk==="!="?dm!==e:dk==="^="?e&&dm.indexOf(e)===0:dk==="*="?e&&dm.indexOf(e)>-1:dk==="$="?e&&dm.slice(-e.length)===e:dk==="~="?(" "+dm+" ").indexOf(e)>-1:dk==="|="?dm===e||dm.slice(0,e.length+1)===e+"-":false}},CHILD:function(dk,dn,dm,dp,dl){var dr=dk.slice(0,3)!=="nth",e=dk.slice(-4)!=="last",dq=dn==="of-type";return dp===1&&dl===0?function(ds){return !!ds.parentNode}:function(dy,dw,dB){var ds,dE,dz,dD,dA,dv,dx=dr!==e?"nextSibling":"previousSibling",dC=dy.parentNode,du=dq&&dy.nodeName.toLowerCase(),dt=!dB&&!dq;if(dC){if(dr){while(dx){dz=dy;while((dz=dz[dx])){if(dq?dz.nodeName.toLowerCase()===du:dz.nodeType===1){return false}}dv=dx=dk==="only"&&!dv&&"nextSibling"}return true}dv=[e?dC.firstChild:dC.lastChild];if(e&&dt){dE=dC[c7]||(dC[c7]={});ds=dE[dk]||[];dA=ds[0]===dg&&ds[1];dD=ds[0]===dg&&ds[2];dz=dA&&dC.childNodes[dA];while((dz=++dA&&dz&&dz[dx]||(dD=dA=0)||dv.pop())){if(dz.nodeType===1&&++dD&&dz===dy){dE[dk]=[dg,dA,dD];break}}}else{if(dt&&(ds=(dy[c7]||(dy[c7]={}))[dk])&&ds[0]===dg){dD=ds[1]}else{while((dz=++dA&&dz&&dz[dx]||(dD=dA=0)||dv.pop())){if((dq?dz.nodeName.toLowerCase()===du:dz.nodeType===1)&&++dD){if(dt){(dz[c7]||(dz[c7]={}))[dk]=[dg,dD]}if(dz===dy){break}}}}}dD-=dl;return dD===dp||(dD%dp===0&&dD/dp>=0)}}},PSEUDO:function(dm,dl){var e,dk=cm.pseudos[dm]||cm.setFilters[dm.toLowerCase()]||cu.error("unsupported pseudo: "+dm);if(dk[c7]){return dk(dl)}if(dk.length>1){e=[dm,dm,"",dl];return cm.setFilters.hasOwnProperty(dm.toLowerCase())?ci(function(dq,ds){var dp,dn=dk(dq,dl),dr=dn.length;while(dr--){dp=ca.call(dq,dn[dr]);dq[dp]=!(ds[dp]=dn[dr])}}):function(dn){return dk(dn,0,e)}}return dk}},pseudos:{not:ci(function(e){var dk=[],dl=[],dm=cT(e.replace(cq,"$1"));return dm[c7]?ci(function(dp,du,ds,dq){var dt,dn=dm(dp,null,dq,[]),dr=dp.length;while(dr--){if((dt=dn[dr])){dp[dr]=!(du[dr]=dt)}}}):function(dq,dp,dn){dk[0]=dq;dm(dk,null,dn,dl);return !dl.pop()}}),has:ci(function(e){return function(dk){return cu(e,dk).length>0}}),contains:ci(function(e){return function(dk){return(dk.textContent||dk.innerText||cF(dk)).indexOf(e)>-1}}),lang:ci(function(e){if(!cR.test(e||"")){cu.error("unsupported lang: "+e)}e=e.replace(cr,c2).toLowerCase();return function(dl){var dk;do{if((dk=c5?dl.lang:dl.getAttribute("xml:lang")||dl.getAttribute("lang"))){dk=dk.toLowerCase();return dk===e||dk.indexOf(e+"-")===0}}while((dl=dl.parentNode)&&dl.nodeType===1);return false}}),target:function(e){var dk=dc.location&&dc.location.hash;return dk&&dk.slice(1)===e.id},root:function(e){return e===cn},focus:function(e){return e===cA.activeElement&&(!cA.hasFocus||cA.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var dk=e.nodeName.toLowerCase();return(dk==="input"&&!!e.checked)||(dk==="option"&&!!e.selected)},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeName>"@"||e.nodeType===3||e.nodeType===4){return false}}return true},parent:function(e){return !cm.pseudos.empty(e)},header:function(e){return ck.test(e.nodeName)},input:function(e){return b9.test(e.nodeName)},button:function(dk){var e=dk.nodeName.toLowerCase();return e==="input"&&dk.type==="button"||e==="button"},text:function(dk){var e;return dk.nodeName.toLowerCase()==="input"&&dk.type==="text"&&((e=dk.getAttribute("type"))==null||e.toLowerCase()===dk.type)},first:c4(function(){return[0]}),last:c4(function(e,dk){return[dk-1]}),eq:c4(function(e,dl,dk){return[dk<0?dk+dl:dk]}),even:c4(function(e,dl){var dk=0;for(;dk<dl;dk+=2){e.push(dk)}return e}),odd:c4(function(e,dl){var dk=1;for(;dk<dl;dk+=2){e.push(dk)}return e}),lt:c4(function(e,dm,dl){var dk=dl<0?dl+dm:dl;for(;--dk>=0;){e.push(dk)}return e}),gt:c4(function(e,dm,dl){var dk=dl<0?dl+dm:dl;for(;++dk<dm;){e.push(dk)}return e})}};cm.pseudos.nth=cm.pseudos.eq;for(cw in {radio:true,checkbox:true,file:true,password:true,image:true}){cm.pseudos[cw]=cv(cw)}for(cw in {submit:true,reset:true}){cm.pseudos[cw]=b8(cw)}function cS(){}cS.prototype=cm.filters=cm.pseudos;cm.setFilters=new cS();function cf(dn,dt){var dk,dp,dr,ds,dq,dl,e,dm=c6[dn+" "];if(dm){return dt?0:dm.slice(0)}dq=dn;dl=[];e=cm.preFilter;while(dq){if(!dk||(dp=ct.exec(dq))){if(dp){dq=dq.slice(dp[0].length)||dq}dl.push(dr=[])}dk=false;if((dp=cz.exec(dq))){dk=dp.shift();dr.push({value:dk,type:dp[0].replace(cq," ")});dq=dq.slice(dk.length)}for(ds in cm.filter){if((dp=cZ[ds].exec(dq))&&(!e[ds]||(dp=e[ds](dp)))){dk=dp.shift();dr.push({value:dk,type:ds,matches:dp});dq=dq.slice(dk.length)}}if(!dk){break}}return dt?dq.length:dq?cu.error(dn):c6(dn,dl).slice(0)}function cg(dm){var dl=0,dk=dm.length,e="";for(;dl<dk;dl++){e+=dm[dl].value}return e}function cp(dn,dl,dm){var e=dl.dir,dp=dm&&e==="parentNode",dk=c1++;return dl.first?function(ds,dr,dq){while((ds=ds[e])){if(ds.nodeType===1||dp){return dn(ds,dr,dq)}}}:function(du,ds,dr){var dw,dq,dt,dv=dg+" "+dk;if(dr){while((du=du[e])){if(du.nodeType===1||dp){if(dn(du,ds,dr)){return true}}}}else{while((du=du[e])){if(du.nodeType===1||dp){dt=du[c7]||(du[c7]={});if((dq=dt[e])&&dq[0]===dv){if((dw=dq[1])===true||dw===cc){return dw===true}}else{dq=dt[e]=[dv];dq[1]=dn(du,ds,dr)||cc;if(dq[1]===true){return true}}}}}}}function di(e){return e.length>1?function(dn,dm,dk){var dl=e.length;while(dl--){if(!e[dl](dn,dm,dk)){return false}}return true}:e[0]}function cX(e,dk,dl,dm,dq){var dn,dt=[],dp=0,dr=e.length,ds=dk!=null;for(;dp<dr;dp++){if((dn=e[dp])){if(!dl||dl(dn,dm,dq)){dt.push(dn);if(ds){dk.push(dp)}}}}return dt}function ce(dl,dk,dn,dm,dp,e){if(dm&&!dm[c7]){dm=ce(dm)}if(dp&&!dp[c7]){dp=ce(dp,e)}return ci(function(dA,dx,ds,dz){var dC,dy,du,dt=[],dB=[],dr=dx.length,dq=dA||cx(dk||"*",ds.nodeType?[ds]:ds,[]),dv=dl&&(dA||!dk)?cX(dq,dt,dl,ds,dz):dq,dw=dn?dp||(dA?dl:dr||dm)?[]:dx:dv;if(dn){dn(dv,dw,ds,dz)}if(dm){dC=cX(dw,dB);dm(dC,[],ds,dz);dy=dC.length;while(dy--){if((du=dC[dy])){dw[dB[dy]]=!(dv[dB[dy]]=du)}}}if(dA){if(dp||dl){if(dp){dC=[];dy=dw.length;while(dy--){if((du=dw[dy])){dC.push((dv[dy]=du))}}dp(null,(dw=[]),dC,dz)}dy=dw.length;while(dy--){if((du=dw[dy])&&(dC=dp?ca.call(dA,du):dt[dy])>-1){dA[dC]=!(dx[dC]=du)}}}}else{dw=cX(dw===dx?dw.splice(dr,dw.length):dw);if(dp){dp(null,dx,dw,dz)}else{b4.apply(dx,dw)}}})}function c8(dq){var dk,dn,dl,dp=dq.length,dt=cm.relative[dq[0].type],du=dt||cm.relative[" "],dm=dt?1:0,dr=cp(function(dv){return dv===dk},du,true),ds=cp(function(dv){return ca.call(dk,dv)>-1},du,true),e=[function(dx,dw,dv){return(!dt&&(dv||dw!==dj))||((dk=dw).nodeType?dr(dx,dw,dv):ds(dx,dw,dv))}];for(;dm<dp;dm++){if((dn=cm.relative[dq[dm].type])){e=[cp(di(e),dn)]}else{dn=cm.filter[dq[dm].type].apply(null,dq[dm].matches);if(dn[c7]){dl=++dm;for(;dl<dp;dl++){if(cm.relative[dq[dl].type]){break}}return ce(dm>1&&di(e),dm>1&&cg(dq.slice(0,dm-1).concat({value:dq[dm-2].type===" "?"*":""})).replace(cq,"$1"),dn,dm<dl&&c8(dq.slice(dm,dl)),dl<dp&&c8((dq=dq.slice(dl))),dl<dp&&cg(dq))}e.push(dn)}}return di(e)}function cV(dm,dl){var dp=0,e=dl.length>0,dn=dm.length>0,dk=function(dz,dt,dy,dx,dF){var du,dv,dA,dE=[],dD=0,dw="0",dq=dz&&[],dB=dF!=null,dC=dj,ds=dz||dn&&cm.find.TAG("*",dF&&dt.parentNode||dt),dr=(dg+=dC==null?1:Math.random()||0.1);if(dB){dj=dt!==cA&&dt;cc=dp}for(;(du=ds[dw])!=null;dw++){if(dn&&du){dv=0;while((dA=dm[dv++])){if(dA(du,dt,dy)){dx.push(du);break}}if(dB){dg=dr;cc=++dp}}if(e){if((du=!dA&&du)){dD--}if(dz){dq.push(du)}}}dD+=dw;if(e&&dw!==dD){dv=0;while((dA=dl[dv++])){dA(dq,dE,dt,dy)}if(dz){if(dD>0){while(dw--){if(!(dq[dw]||dE[dw])){dE[dw]=da.call(dx)}}}dE=cX(dE)}b4.apply(dx,dE);if(dB&&!dz&&dE.length>0&&(dD+dl.length)>1){cu.uniqueSort(dx)}}if(dB){dg=dr;dj=dC}return dq};return e?ci(dk):dk}cT=cu.compile=function(e,dp){var dl,dk=[],dn=[],dm=cE[e+" "];if(!dm){if(!dp){dp=cf(e)}dl=dp.length;while(dl--){dm=c8(dp[dl]);if(dm[c7]){dk.push(dm)}else{dn.push(dm)}}dm=cE(e,cV(dn,dk))}return dm};function cx(dk,dn,dm){var dl=0,e=dn.length;for(;dl<e;dl++){cu(dk,dn[dl],dm)}return dm}function de(dl,e,dm,dq){var dn,ds,dk,dt,dr,dp=cf(dl);if(!dq){if(dp.length===1){ds=dp[0]=dp[0].slice(0);if(ds.length>2&&(dk=ds[0]).type==="ID"&&df.getById&&e.nodeType===9&&c5&&cm.relative[ds[1].type]){e=(cm.find.ID(dk.matches[0].replace(cr,c2),e)||[])[0];if(!e){return dm}dl=dl.slice(ds.shift().value.length)}dn=cZ.needsContext.test(dl)?0:ds.length;while(dn--){dk=ds[dn];if(cm.relative[(dt=dk.type)]){break}if((dr=cm.find[dt])){if((dq=dr(dk.matches[0].replace(cr,c2),cY.test(ds[0].type)&&e.parentNode||e))){ds.splice(dn,1);dl=dq.length&&cg(ds);if(!dl){b4.apply(dm,dq);return dm}break}}}}}cT(dl,dp)(dq,e,!c5,dm,cY.test(dl));return dm}df.sortStable=c7.split("").sort(cC).join("")===c7;df.detectDuplicates=cU;cW();df.sortDetached=cd(function(e){return e.compareDocumentPosition(cA.createElement("div"))&1});if(!cd(function(e){e.innerHTML="<a href='#'></a>";return e.firstChild.getAttribute("href")==="#"})){dh("type|href|height|width",function(dk,e,dl){if(!dl){return dk.getAttribute(e,e.toLowerCase()==="type"?1:2)}})}if(!df.attributes||!cd(function(e){e.innerHTML="<input/>";e.firstChild.setAttribute("value","");return e.firstChild.getAttribute("value")===""})){dh("value",function(dk,e,dl){if(!dl&&dk.nodeName.toLowerCase()==="input"){return dk.defaultValue}})}if(!cd(function(e){return e.getAttribute("disabled")==null})){dh(b5,function(dk,e,dm){var dl;if(!dm){return(dl=dk.getAttributeNode(e))&&dl.specified?dl.value:dk[e]===true?e.toLowerCase():null}})}bI.find=cu;bI.expr=cu.selectors;bI.expr[":"]=bI.expr.pseudos;bI.unique=cu.uniqueSort;bI.text=cu.getText;bI.isXMLDoc=cu.isXML;bI.contains=cu.contains})(a1);var bY={};function ac(b3){var e=bY[b3]={};bI.each(b3.match(aa)||[],function(b5,b4){e[b4]=true});return e}bI.Callbacks=function(cc){cc=typeof cc==="string"?(bY[cc]||ac(cc)):bI.extend({},cc);var b6,b5,e,b7,b8,b4,b9=[],ca=!cc.once&&[],b3=function(cd){b5=cc.memory&&cd;e=true;b8=b4||0;b4=0;b7=b9.length;b6=true;for(;b9&&b8<b7;b8++){if(b9[b8].apply(cd[0],cd[1])===false&&cc.stopOnFalse){b5=false;break}}b6=false;if(b9){if(ca){if(ca.length){b3(ca.shift())}}else{if(b5){b9=[]}else{cb.disable()}}}},cb={add:function(){if(b9){var ce=b9.length;(function cd(cf){bI.each(cf,function(ch,cg){var ci=bI.type(cg);if(ci==="function"){if(!cc.unique||!cb.has(cg)){b9.push(cg)}}else{if(cg&&cg.length&&ci!=="string"){cd(cg)}}})})(arguments);if(b6){b7=b9.length}else{if(b5){b4=ce;b3(b5)}}}return this},remove:function(){if(b9){bI.each(arguments,function(cf,cd){var ce;while((ce=bI.inArray(cd,b9,ce))>-1){b9.splice(ce,1);if(b6){if(ce<=b7){b7--}if(ce<=b8){b8--}}}})}return this},has:function(cd){return cd?bI.inArray(cd,b9)>-1:!!(b9&&b9.length)},empty:function(){b9=[];b7=0;return this},disable:function(){b9=ca=b5=aE;return this},disabled:function(){return !b9},lock:function(){ca=aE;if(!b5){cb.disable()}return this},locked:function(){return !ca},fireWith:function(ce,cd){if(b9&&(!e||ca)){cd=cd||[];cd=[ce,cd.slice?cd.slice():cd];if(b6){ca.push(cd)}else{b3(cd)}}return this},fire:function(){cb.fireWith(this,arguments);return this},fired:function(){return !!e}};return cb};bI.extend({Deferred:function(b4){var b3=[["resolve","done",bI.Callbacks("once memory"),"resolved"],["reject","fail",bI.Callbacks("once memory"),"rejected"],["notify","progress",bI.Callbacks("memory")]],b5="pending",b6={state:function(){return b5},always:function(){e.done(arguments).fail(arguments);return this},then:function(){var b7=arguments;return bI.Deferred(function(b8){bI.each(b3,function(ca,b9){var cc=b9[0],cb=bI.isFunction(b7[ca])&&b7[ca];e[b9[1]](function(){var cd=cb&&cb.apply(this,arguments);if(cd&&bI.isFunction(cd.promise)){cd.promise().done(b8.resolve).fail(b8.reject).progress(b8.notify)}else{b8[cc+"With"](this===b6?b8.promise():this,cb?[cd]:arguments)}})});b7=null}).promise()},promise:function(b7){return b7!=null?bI.extend(b7,b6):b6}},e={};b6.pipe=b6.then;bI.each(b3,function(b8,b7){var ca=b7[2],b9=b7[3];b6[b7[1]]=ca.add;if(b9){ca.add(function(){b5=b9},b3[b8^1][2].disable,b3[2][2].lock)}e[b7[0]]=function(){e[b7[0]+"With"](this===e?b6:this,arguments);return this};e[b7[0]+"With"]=ca.fireWith});b6.promise(e);if(b4){b4.call(e,e)}return e},when:function(b6){var b4=0,b8=a3.call(arguments),e=b8.length,b3=e!==1||(b6&&bI.isFunction(b6.promise))?e:0,cb=b3===1?b6:bI.Deferred(),b5=function(cd,ce,cc){return function(cf){ce[cd]=this;cc[cd]=arguments.length>1?a3.call(arguments):cf;if(cc===ca){cb.notifyWith(ce,cc)}else{if(!(--b3)){cb.resolveWith(ce,cc)}}}},ca,b7,b9;if(e>1){ca=new Array(e);b7=new Array(e);b9=new Array(e);for(;b4<e;b4++){if(b8[b4]&&bI.isFunction(b8[b4].promise)){b8[b4].promise().done(b5(b4,b9,b8)).fail(cb.reject).progress(b5(b4,b7,ca))}else{--b3}}}if(!b3){cb.resolveWith(b9,b8)}return cb.promise()}});bI.support=(function(ce){var cd,cb,ca,cc,b9,b5,b7,b4,b6,b3=l.createElement("div");b3.setAttribute("className","t");b3.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";cd=b3.getElementsByTagName("*")||[];cb=b3.getElementsByTagName("a")[0];if(!cb||!cb.style||!cd.length){return ce}cc=l.createElement("select");b5=cc.appendChild(l.createElement("option"));ca=b3.getElementsByTagName("input")[0];cb.style.cssText="top:1px;float:left;opacity:.5";ce.getSetAttribute=b3.className!=="t";ce.leadingWhitespace=b3.firstChild.nodeType===3;ce.tbody=!b3.getElementsByTagName("tbody").length;ce.htmlSerialize=!!b3.getElementsByTagName("link").length;ce.style=/top/.test(cb.getAttribute("style"));ce.hrefNormalized=cb.getAttribute("href")==="/a";ce.opacity=/^0.5/.test(cb.style.opacity);ce.cssFloat=!!cb.style.cssFloat;ce.checkOn=!!ca.value;ce.optSelected=b5.selected;ce.enctype=!!l.createElement("form").enctype;ce.html5Clone=l.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>";ce.inlineBlockNeedsLayout=false;ce.shrinkWrapBlocks=false;ce.pixelPosition=false;ce.deleteExpando=true;ce.noCloneEvent=true;ce.reliableMarginRight=true;ce.boxSizingReliable=true;ca.checked=true;ce.noCloneChecked=ca.cloneNode(true).checked;cc.disabled=true;ce.optDisabled=!b5.disabled;try{delete b3.test}catch(b8){ce.deleteExpando=false}ca=l.createElement("input");ca.setAttribute("value","");ce.input=ca.getAttribute("value")==="";ca.value="t";ca.setAttribute("type","radio");ce.radioValue=ca.value==="t";ca.setAttribute("checked","t");ca.setAttribute("name","t");b9=l.createDocumentFragment();b9.appendChild(ca);ce.appendChecked=ca.checked;ce.checkClone=b9.cloneNode(true).cloneNode(true).lastChild.checked;if(b3.attachEvent){b3.attachEvent("onclick",function(){ce.noCloneEvent=false});b3.cloneNode(true).click()}for(b6 in {submit:true,change:true,focusin:true}){b3.setAttribute(b7="on"+b6,"t");ce[b6+"Bubbles"]=b7 in a1||b3.attributes[b7].expando===false}b3.style.backgroundClip="content-box";b3.cloneNode(true).style.backgroundClip="";ce.clearCloneStyle=b3.style.backgroundClip==="content-box";for(b6 in bI(ce)){break}ce.ownLast=b6!=="0";bI(function(){var cf,ci,ch,cg="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",e=l.getElementsByTagName("body")[0];if(!e){return}cf=l.createElement("div");cf.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";e.appendChild(cf).appendChild(b3);b3.innerHTML="<table><tr><td></td><td>t</td></tr></table>";ch=b3.getElementsByTagName("td");ch[0].style.cssText="padding:0;margin:0;border:0;display:none";b4=(ch[0].offsetHeight===0);ch[0].style.display="";ch[1].style.display="none";ce.reliableHiddenOffsets=b4&&(ch[0].offsetHeight===0);b3.innerHTML="";b3.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";bI.swap(e,e.style.zoom!=null?{zoom:1}:{},function(){ce.boxSizing=b3.offsetWidth===4});if(a1.getComputedStyle){ce.pixelPosition=(a1.getComputedStyle(b3,null)||{}).top!=="1%";ce.boxSizingReliable=(a1.getComputedStyle(b3,null)||{width:"4px"}).width==="4px";ci=b3.appendChild(l.createElement("div"));ci.style.cssText=b3.style.cssText=cg;ci.style.marginRight=ci.style.width="0";b3.style.width="1px";ce.reliableMarginRight=!parseFloat((a1.getComputedStyle(ci,null)||{}).marginRight)}if(typeof b3.style.zoom!==aA){b3.innerHTML="";b3.style.cssText=cg+"width:1px;padding:1px;display:inline;zoom:1";ce.inlineBlockNeedsLayout=(b3.offsetWidth===3);b3.style.display="block";b3.innerHTML="<div></div>";b3.firstChild.style.width="5px";ce.shrinkWrapBlocks=(b3.offsetWidth!==3);if(ce.inlineBlockNeedsLayout){e.style.zoom=1}}e.removeChild(cf);cf=b3=ch=ci=null});cd=cc=b9=b5=cb=ca=null;return ce})({});var bv=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,aL=/([A-Z])/g;function a9(b5,b3,b7,b6){if(!bI.acceptData(b5)){return}var b9,b8,ca=bI.expando,cb=b5.nodeType,e=cb?bI.cache:b5,b4=cb?b5[ca]:b5[ca]&&ca;if((!b4||!e[b4]||(!b6&&!e[b4].data))&&b7===aE&&typeof b3==="string"){return}if(!b4){if(cb){b4=b5[ca]=a5.pop()||bI.guid++}else{b4=ca}}if(!e[b4]){e[b4]=cb?{}:{toJSON:bI.noop}}if(typeof b3==="object"||typeof b3==="function"){if(b6){e[b4]=bI.extend(e[b4],b3)}else{e[b4].data=bI.extend(e[b4].data,b3)}}b8=e[b4];if(!b6){if(!b8.data){b8.data={}}b8=b8.data}if(b7!==aE){b8[bI.camelCase(b3)]=b7}if(typeof b3==="string"){b9=b8[b3];if(b9==null){b9=b8[bI.camelCase(b3)]}}else{b9=b8}return b9}function X(b6,b4,e){if(!bI.acceptData(b6)){return}var b8,b5,b7=b6.nodeType,b3=b7?bI.cache:b6,b9=b7?b6[bI.expando]:bI.expando;if(!b3[b9]){return}if(b4){b8=e?b3[b9]:b3[b9].data;if(b8){if(!bI.isArray(b4)){if(b4 in b8){b4=[b4]}else{b4=bI.camelCase(b4);if(b4 in b8){b4=[b4]}else{b4=b4.split(" ")}}}else{b4=b4.concat(bI.map(b4,bI.camelCase))}b5=b4.length;while(b5--){delete b8[b4[b5]]}if(e?!L(b8):!bI.isEmptyObject(b8)){return}}}if(!e){delete b3[b9].data;if(!L(b3[b9])){return}}if(b7){bI.cleanData([b6],true)}else{if(bI.support.deleteExpando||b3!=b3.window){delete b3[b9]}else{b3[b9]=null}}}bI.extend({cache:{},noData:{applet:true,embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){e=e.nodeType?bI.cache[e[bI.expando]]:e[bI.expando];return !!e&&!L(e)},data:function(b3,e,b4){return a9(b3,e,b4)},removeData:function(b3,e){return X(b3,e)},_data:function(b3,e,b4){return a9(b3,e,b4,true)},_removeData:function(b3,e){return X(b3,e,true)},acceptData:function(b3){if(b3.nodeType&&b3.nodeType!==1&&b3.nodeType!==9){return false}var e=b3.nodeName&&bI.noData[b3.nodeName.toLowerCase()];return !e||e!==true&&b3.getAttribute("classid")===e}});bI.fn.extend({data:function(b5,b8){var b3,e,b7=null,b4=0,b6=this[0];if(b5===aE){if(this.length){b7=bI.data(b6);if(b6.nodeType===1&&!bI._data(b6,"parsedAttrs")){b3=b6.attributes;for(;b4<b3.length;b4++){e=b3[b4].name;if(e.indexOf("data-")===0){e=bI.camelCase(e.slice(5));bx(b6,e,b7[e])}}bI._data(b6,"parsedAttrs",true)}}return b7}if(typeof b5==="object"){return this.each(function(){bI.data(this,b5)})}return arguments.length>1?this.each(function(){bI.data(this,b5,b8)}):b6?bx(b6,b5,bI.data(b6,b5)):null},removeData:function(e){return this.each(function(){bI.removeData(this,e)})}});function bx(b5,b4,b6){if(b6===aE&&b5.nodeType===1){var b3="data-"+b4.replace(aL,"-$1").toLowerCase();b6=b5.getAttribute(b3);if(typeof b6==="string"){try{b6=b6==="true"?true:b6==="false"?false:b6==="null"?null:+b6+""===b6?+b6:bv.test(b6)?bI.parseJSON(b6):b6}catch(b7){}bI.data(b5,b4,b6)}else{b6=aE}}return b6}function L(b3){var e;for(e in b3){if(e==="data"&&bI.isEmptyObject(b3[e])){continue}if(e!=="toJSON"){return false}}return true}bI.extend({queue:function(b4,b3,b5){var e;if(b4){b3=(b3||"fx")+"queue";e=bI._data(b4,b3);if(b5){if(!e||bI.isArray(b5)){e=bI._data(b4,b3,bI.makeArray(b5))}else{e.push(b5)}}return e||[]}},dequeue:function(b7,b6){b6=b6||"fx";var b3=bI.queue(b7,b6),b8=b3.length,b5=b3.shift(),e=bI._queueHooks(b7,b6),b4=function(){bI.dequeue(b7,b6)};if(b5==="inprogress"){b5=b3.shift();b8--}if(b5){if(b6==="fx"){b3.unshift("inprogress")}delete e.stop;b5.call(b7,b4,e)}if(!b8&&e){e.empty.fire()}},_queueHooks:function(b4,b3){var e=b3+"queueHooks";return bI._data(b4,e)||bI._data(b4,e,{empty:bI.Callbacks("once memory").add(function(){bI._removeData(b4,b3+"queue");bI._removeData(b4,e)})})}});bI.fn.extend({queue:function(e,b3){var b4=2;if(typeof e!=="string"){b3=e;e="fx";b4--}if(arguments.length<b4){return bI.queue(this[0],e)}return b3===aE?this:this.each(function(){var b5=bI.queue(this,e,b3);bI._queueHooks(this,e);if(e==="fx"&&b5[0]!=="inprogress"){bI.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){bI.dequeue(this,e)})},delay:function(b3,e){b3=bI.fx?bI.fx.speeds[b3]||b3:b3;e=e||"fx";return this.queue(e,function(b5,b4){var b6=setTimeout(b5,b3);b4.stop=function(){clearTimeout(b6)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(b4,b8){var b3,b5=1,b9=bI.Deferred(),b7=this,e=this.length,b6=function(){if(!(--b5)){b9.resolveWith(b7,[b7])}};if(typeof b4!=="string"){b8=b4;b4=aE}b4=b4||"fx";while(e--){b3=bI._data(b7[e],b4+"queueHooks");if(b3&&b3.empty){b5++;b3.empty.add(b6)}}b6();return b9.promise(b8)}});var a7,bZ,bL=/[\t\r\n\f]/g,ah=/\r/g,aD=/^(?:input|select|textarea|button|object)$/i,C=/^(?:a|area)$/i,ao=/^(?:checked|selected)$/i,bO=bI.support.getSetAttribute,bE=bI.support.input;bI.fn.extend({attr:function(e,b3){return bI.access(this,bI.attr,e,b3,arguments.length>1)},removeAttr:function(e){return this.each(function(){bI.removeAttr(this,e)})},prop:function(e,b3){return bI.access(this,bI.prop,e,b3,arguments.length>1)},removeProp:function(e){e=bI.propFix[e]||e;return this.each(function(){try{this[e]=aE;delete this[e]}catch(b3){}})},addClass:function(b9){var b3,e,ca,b6,b4,b5=0,b7=this.length,b8=typeof b9==="string"&&b9;if(bI.isFunction(b9)){return this.each(function(cb){bI(this).addClass(b9.call(this,cb,this.className))})}if(b8){b3=(b9||"").match(aa)||[];for(;b5<b7;b5++){e=this[b5];ca=e.nodeType===1&&(e.className?(" "+e.className+" ").replace(bL," "):" ");if(ca){b4=0;while((b6=b3[b4++])){if(ca.indexOf(" "+b6+" ")<0){ca+=b6+" "}}e.className=bI.trim(ca)}}}return this},removeClass:function(b9){var b3,e,ca,b6,b4,b5=0,b7=this.length,b8=arguments.length===0||typeof b9==="string"&&b9;if(bI.isFunction(b9)){return this.each(function(cb){bI(this).removeClass(b9.call(this,cb,this.className))})}if(b8){b3=(b9||"").match(aa)||[];for(;b5<b7;b5++){e=this[b5];ca=e.nodeType===1&&(e.className?(" "+e.className+" ").replace(bL," "):"");if(ca){b4=0;while((b6=b3[b4++])){while(ca.indexOf(" "+b6+" ")>=0){ca=ca.replace(" "+b6+" "," ")}}e.className=b9?bI.trim(ca):""}}}return this},toggleClass:function(b4,e){var b3=typeof b4;if(typeof e==="boolean"&&b3==="string"){return e?this.addClass(b4):this.removeClass(b4)}if(bI.isFunction(b4)){return this.each(function(b5){bI(this).toggleClass(b4.call(this,b5,this.className,e),e)})}return this.each(function(){if(b3==="string"){var b7,b6=0,b5=bI(this),b8=b4.match(aa)||[];while((b7=b8[b6++])){if(b5.hasClass(b7)){b5.removeClass(b7)}else{b5.addClass(b7)}}}else{if(b3===aA||b3==="boolean"){if(this.className){bI._data(this,"__className__",this.className)}this.className=this.className||b4===false?"":bI._data(this,"__className__")||""}}})},hasClass:function(e){var b5=" "+e+" ",b4=0,b3=this.length;for(;b4<b3;b4++){if(this[b4].nodeType===1&&(" "+this[b4].className+" ").replace(bL," ").indexOf(b5)>=0){return true}}return false},val:function(b5){var b3,e,b6,b4=this[0];if(!arguments.length){if(b4){e=bI.valHooks[b4.type]||bI.valHooks[b4.nodeName.toLowerCase()];if(e&&"get" in e&&(b3=e.get(b4,"value"))!==aE){return b3}b3=b4.value;return typeof b3==="string"?b3.replace(ah,""):b3==null?"":b3}return}b6=bI.isFunction(b5);return this.each(function(b7){var b8;if(this.nodeType!==1){return}if(b6){b8=b5.call(this,b7,bI(this).val())}else{b8=b5}if(b8==null){b8=""}else{if(typeof b8==="number"){b8+=""}else{if(bI.isArray(b8)){b8=bI.map(b8,function(b9){return b9==null?"":b9+""})}}}e=bI.valHooks[this.type]||bI.valHooks[this.nodeName.toLowerCase()];if(!e||!("set" in e)||e.set(this,b8,"value")===aE){this.value=b8}})}});bI.extend({valHooks:{option:{get:function(e){var b3=bI.find.attr(e,"value");return b3!=null?b3:e.text}},select:{get:function(e){var b8,b4,ca=e.options,b6=e.selectedIndex,b5=e.type==="select-one"||b6<0,b9=b5?null:[],b7=b5?b6+1:ca.length,b3=b6<0?b7:b5?b6:0;for(;b3<b7;b3++){b4=ca[b3];if((b4.selected||b3===b6)&&(bI.support.optDisabled?!b4.disabled:b4.getAttribute("disabled")===null)&&(!b4.parentNode.disabled||!bI.nodeName(b4.parentNode,"optgroup"))){b8=bI(b4).val();if(b5){return b8}b9.push(b8)}}return b9},set:function(b6,b7){var b8,b5,b3=b6.options,e=bI.makeArray(b7),b4=b3.length;while(b4--){b5=b3[b4];if((b5.selected=bI.inArray(bI(b5).val(),e)>=0)){b8=true}}if(!b8){b6.selectedIndex=-1}return e}}},attr:function(b6,b5,b7){var e,b4,b3=b6.nodeType;if(!b6||b3===3||b3===8||b3===2){return}if(typeof b6.getAttribute===aA){return bI.prop(b6,b5,b7)}if(b3!==1||!bI.isXMLDoc(b6)){b5=b5.toLowerCase();e=bI.attrHooks[b5]||(bI.expr.match.bool.test(b5)?bZ:a7)}if(b7!==aE){if(b7===null){bI.removeAttr(b6,b5)}else{if(e&&"set" in e&&(b4=e.set(b6,b7,b5))!==aE){return b4}else{b6.setAttribute(b5,b7+"");return b7}}}else{if(e&&"get" in e&&(b4=e.get(b6,b5))!==null){return b4}else{b4=bI.find.attr(b6,b5);return b4==null?aE:b4}}},removeAttr:function(b4,b6){var e,b5,b3=0,b7=b6&&b6.match(aa);if(b7&&b4.nodeType===1){while((e=b7[b3++])){b5=bI.propFix[e]||e;if(bI.expr.match.bool.test(e)){if(bE&&bO||!ao.test(e)){b4[b5]=false}else{b4[bI.camelCase("default-"+e)]=b4[b5]=false}}else{bI.attr(b4,e,"")}b4.removeAttribute(bO?e:b5)}}},attrHooks:{type:{set:function(e,b3){if(!bI.support.radioValue&&b3==="radio"&&bI.nodeName(e,"input")){var b4=e.value;e.setAttribute("type",b3);if(b4){e.value=b4}return b3}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(b7,b5,b8){var b4,e,b6,b3=b7.nodeType;if(!b7||b3===3||b3===8||b3===2){return}b6=b3!==1||!bI.isXMLDoc(b7);if(b6){b5=bI.propFix[b5]||b5;e=bI.propHooks[b5]}if(b8!==aE){return e&&"set" in e&&(b4=e.set(b7,b8,b5))!==aE?b4:(b7[b5]=b8)}else{return e&&"get" in e&&(b4=e.get(b7,b5))!==null?b4:b7[b5]}},propHooks:{tabIndex:{get:function(b3){var e=bI.find.attr(b3,"tabindex");return e?parseInt(e,10):aD.test(b3.nodeName)||C.test(b3.nodeName)&&b3.href?0:-1}}}});bZ={set:function(b3,b4,e){if(b4===false){bI.removeAttr(b3,e)}else{if(bE&&bO||!ao.test(e)){b3.setAttribute(!bO&&bI.propFix[e]||e,e)}else{b3[bI.camelCase("default-"+e)]=b3[e]=true}}return e}};bI.each(bI.expr.match.bool.source.match(/\w+/g),function(b4,b3){var e=bI.expr.attrHandle[b3]||bI.find.attr;bI.expr.attrHandle[b3]=bE&&bO||!ao.test(b3)?function(b8,b6,b9){var b7=bI.expr.attrHandle[b6],b5=b9?aE:(bI.expr.attrHandle[b6]=aE)!=e(b8,b6,b9)?b6.toLowerCase():null;bI.expr.attrHandle[b6]=b7;return b5}:function(b6,b5,b7){return b7?aE:b6[bI.camelCase("default-"+b5)]?b5.toLowerCase():null}});if(!bE||!bO){bI.attrHooks.value={set:function(b3,b4,e){if(bI.nodeName(b3,"input")){b3.defaultValue=b4}else{return a7&&a7.set(b3,b4,e)}}}}if(!bO){a7={set:function(b4,b5,b3){var e=b4.getAttributeNode(b3);if(!e){b4.setAttributeNode((e=b4.ownerDocument.createAttribute(b3)))}e.value=b5+="";return b3==="value"||b5===b4.getAttribute(b3)?b5:aE}};bI.expr.attrHandle.id=bI.expr.attrHandle.name=bI.expr.attrHandle.coords=function(b4,b3,b5){var e;return b5?aE:(e=b4.getAttributeNode(b3))&&e.value!==""?e.value:null};bI.valHooks.button={get:function(b4,b3){var e=b4.getAttributeNode(b3);return e&&e.specified?e.value:aE},set:a7.set};bI.attrHooks.contenteditable={set:function(b3,b4,e){a7.set(b3,b4===""?false:b4,e)}};bI.each(["width","height"],function(b3,e){bI.attrHooks[e]={set:function(b4,b5){if(b5===""){b4.setAttribute(e,"auto");return b5}}}})}if(!bI.support.hrefNormalized){bI.each(["href","src"],function(b3,e){bI.propHooks[e]={get:function(b4){return b4.getAttribute(e,4)}}})}if(!bI.support.style){bI.attrHooks.style={get:function(e){return e.style.cssText||aE},set:function(e,b3){return(e.style.cssText=b3+"")}}}if(!bI.support.optSelected){bI.propHooks.selected={get:function(b3){var e=b3.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}}}bI.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){bI.propFix[this.toLowerCase()]=this});if(!bI.support.enctype){bI.propFix.enctype="encoding"}bI.each(["radio","checkbox"],function(){bI.valHooks[this]={set:function(e,b3){if(bI.isArray(b3)){return(e.checked=bI.inArray(bI(e).val(),b3)>=0)}}};if(!bI.support.checkOn){bI.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value}}});var bG=/^(?:input|select|textarea)$/i,a2=/^key/,bM=/^(?:mouse|contextmenu)|click/,bA=/^(?:focusinfocus|focusoutblur)$/,bt=/^([^.]*)(?:\.(.+)|)$/;function P(){return true}function V(){return false}function ai(){try{return l.activeElement}catch(e){}}bI.event={global:{},add:function(b6,cb,cg,b8,b7){var b9,ch,ci,b4,cd,ca,cf,b5,ce,e,b3,cc=bI._data(b6);if(!cc){return}if(cg.handler){b4=cg;cg=b4.handler;b7=b4.selector}if(!cg.guid){cg.guid=bI.guid++}if(!(ch=cc.events)){ch=cc.events={}}if(!(ca=cc.handle)){ca=cc.handle=function(cj){return typeof bI!==aA&&(!cj||bI.event.triggered!==cj.type)?bI.event.dispatch.apply(ca.elem,arguments):aE};ca.elem=b6}cb=(cb||"").match(aa)||[""];ci=cb.length;while(ci--){b9=bt.exec(cb[ci])||[];ce=b3=b9[1];e=(b9[2]||"").split(".").sort();if(!ce){continue}cd=bI.event.special[ce]||{};ce=(b7?cd.delegateType:cd.bindType)||ce;cd=bI.event.special[ce]||{};cf=bI.extend({type:ce,origType:b3,data:b8,handler:cg,guid:cg.guid,selector:b7,needsContext:b7&&bI.expr.match.needsContext.test(b7),namespace:e.join(".")},b4);if(!(b5=ch[ce])){b5=ch[ce]=[];b5.delegateCount=0;if(!cd.setup||cd.setup.call(b6,b8,e,ca)===false){if(b6.addEventListener){b6.addEventListener(ce,ca,false)}else{if(b6.attachEvent){b6.attachEvent("on"+ce,ca)}}}}if(cd.add){cd.add.call(b6,cf);if(!cf.handler.guid){cf.handler.guid=cg.guid}}if(b7){b5.splice(b5.delegateCount++,0,cf)}else{b5.push(cf)}bI.event.global[ce]=true}b6=null},remove:function(b5,cb,ci,b6,ca){var b8,cf,b9,b7,ch,cg,cd,b4,ce,e,b3,cc=bI.hasData(b5)&&bI._data(b5);if(!cc||!(cg=cc.events)){return}cb=(cb||"").match(aa)||[""];ch=cb.length;while(ch--){b9=bt.exec(cb[ch])||[];ce=b3=b9[1];e=(b9[2]||"").split(".").sort();if(!ce){for(ce in cg){bI.event.remove(b5,ce+cb[ch],ci,b6,true)}continue}cd=bI.event.special[ce]||{};ce=(b6?cd.delegateType:cd.bindType)||ce;b4=cg[ce]||[];b9=b9[2]&&new RegExp("(^|\\.)"+e.join("\\.(?:.*\\.|)")+"(\\.|$)");b7=b8=b4.length;while(b8--){cf=b4[b8];if((ca||b3===cf.origType)&&(!ci||ci.guid===cf.guid)&&(!b9||b9.test(cf.namespace))&&(!b6||b6===cf.selector||b6==="**"&&cf.selector)){b4.splice(b8,1);if(cf.selector){b4.delegateCount--}if(cd.remove){cd.remove.call(b5,cf)}}}if(b7&&!b4.length){if(!cd.teardown||cd.teardown.call(b5,e,cc.handle)===false){bI.removeEvent(b5,ce,cc.handle)}delete cg[ce]}}if(bI.isEmptyObject(cg)){delete cc.handle;bI._removeData(b5,"events")}},trigger:function(b3,ca,b6,ch){var cb,b5,cf,cg,cd,b9,b8,b7=[b6||l],ce=T.call(b3,"type")?b3.type:b3,b4=T.call(b3,"namespace")?b3.namespace.split("."):[];cf=b9=b6=b6||l;if(b6.nodeType===3||b6.nodeType===8){return}if(bA.test(ce+bI.event.triggered)){return}if(ce.indexOf(".")>=0){b4=ce.split(".");ce=b4.shift();b4.sort()}b5=ce.indexOf(":")<0&&"on"+ce;b3=b3[bI.expando]?b3:new bI.Event(ce,typeof b3==="object"&&b3);b3.isTrigger=ch?2:3;b3.namespace=b4.join(".");b3.namespace_re=b3.namespace?new RegExp("(^|\\.)"+b4.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;b3.result=aE;if(!b3.target){b3.target=b6}ca=ca==null?[b3]:bI.makeArray(ca,[b3]);cd=bI.event.special[ce]||{};if(!ch&&cd.trigger&&cd.trigger.apply(b6,ca)===false){return}if(!ch&&!cd.noBubble&&!bI.isWindow(b6)){cg=cd.delegateType||ce;if(!bA.test(cg+ce)){cf=cf.parentNode}for(;cf;cf=cf.parentNode){b7.push(cf);b9=cf}if(b9===(b6.ownerDocument||l)){b7.push(b9.defaultView||b9.parentWindow||a1)}}b8=0;while((cf=b7[b8++])&&!b3.isPropagationStopped()){b3.type=b8>1?cg:cd.bindType||ce;cb=(bI._data(cf,"events")||{})[b3.type]&&bI._data(cf,"handle");if(cb){cb.apply(cf,ca)}cb=b5&&cf[b5];if(cb&&bI.acceptData(cf)&&cb.apply&&cb.apply(cf,ca)===false){b3.preventDefault()}}b3.type=ce;if(!ch&&!b3.isDefaultPrevented()){if((!cd._default||cd._default.apply(b7.pop(),ca)===false)&&bI.acceptData(b6)){if(b5&&b6[ce]&&!bI.isWindow(b6)){b9=b6[b5];if(b9){b6[b5]=null}bI.event.triggered=ce;try{b6[ce]()}catch(cc){}bI.event.triggered=aE;if(b9){b6[b5]=b9}}}}return b3.result},dispatch:function(e){e=bI.event.fix(e);var b6,b7,cb,b3,b5,ca=[],b9=a3.call(arguments),b4=(bI._data(this,"events")||{})[e.type]||[],b8=bI.event.special[e.type]||{};b9[0]=e;e.delegateTarget=this;if(b8.preDispatch&&b8.preDispatch.call(this,e)===false){return}ca=bI.event.handlers.call(this,e,b4);b6=0;while((b3=ca[b6++])&&!e.isPropagationStopped()){e.currentTarget=b3.elem;b5=0;while((cb=b3.handlers[b5++])&&!e.isImmediatePropagationStopped()){if(!e.namespace_re||e.namespace_re.test(cb.namespace)){e.handleObj=cb;e.data=cb.data;b7=((bI.event.special[cb.origType]||{}).handle||cb.handler).apply(b3.elem,b9);if(b7!==aE){if((e.result=b7)===false){e.preventDefault();e.stopPropagation()}}}}}if(b8.postDispatch){b8.postDispatch.call(this,e)}return e.result},handlers:function(e,b4){var b3,b9,b7,b6,b8=[],b5=b4.delegateCount,ca=e.target;if(b5&&ca.nodeType&&(!e.button||e.type!=="click")){for(;ca!=this;ca=ca.parentNode||this){if(ca.nodeType===1&&(ca.disabled!==true||e.type!=="click")){b7=[];for(b6=0;b6<b5;b6++){b9=b4[b6];b3=b9.selector+" ";if(b7[b3]===aE){b7[b3]=b9.needsContext?bI(b3,this).index(ca)>=0:bI.find(b3,this,null,[ca]).length}if(b7[b3]){b7.push(b9)}}if(b7.length){b8.push({elem:ca,handlers:b7})}}}}if(b5<b4.length){b8.push({elem:this,handlers:b4.slice(b5)})}return b8},fix:function(b5){if(b5[bI.expando]){return b5}var b3,b8,b7,b4=b5.type,e=b5,b6=this.fixHooks[b4];if(!b6){this.fixHooks[b4]=b6=bM.test(b4)?this.mouseHooks:a2.test(b4)?this.keyHooks:{}}b7=b6.props?this.props.concat(b6.props):this.props;b5=new bI.Event(e);b3=b7.length;while(b3--){b8=b7[b3];b5[b8]=e[b8]}if(!b5.target){b5.target=e.srcElement||l}if(b5.target.nodeType===3){b5.target=b5.target.parentNode}b5.metaKey=!!b5.metaKey;return b6.filter?b6.filter(b5,e):b5},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(b3,e){if(b3.which==null){b3.which=e.charCode!=null?e.charCode:e.keyCode}return b3}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(b5,b4){var e,b6,b7,b3=b4.button,b8=b4.fromElement;if(b5.pageX==null&&b4.clientX!=null){b6=b5.target.ownerDocument||l;b7=b6.documentElement;e=b6.body;b5.pageX=b4.clientX+(b7&&b7.scrollLeft||e&&e.scrollLeft||0)-(b7&&b7.clientLeft||e&&e.clientLeft||0);b5.pageY=b4.clientY+(b7&&b7.scrollTop||e&&e.scrollTop||0)-(b7&&b7.clientTop||e&&e.clientTop||0)}if(!b5.relatedTarget&&b8){b5.relatedTarget=b8===b5.target?b4.toElement:b8}if(!b5.which&&b3!==aE){b5.which=(b3&1?1:(b3&2?3:(b3&4?2:0)))}return b5}},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==ai()&&this.focus){try{this.focus();return false}catch(b3){}}},delegateType:"focusin"},blur:{trigger:function(){if(this===ai()&&this.blur){this.blur();return false}},delegateType:"focusout"},click:{trigger:function(){if(bI.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();return false}},_default:function(e){return bI.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){if(e.result!==aE){e.originalEvent.returnValue=e.result}}}},simulate:function(b4,b6,b5,b3){var b7=bI.extend(new bI.Event(),b5,{type:b4,isSimulated:true,originalEvent:{}});if(b3){bI.event.trigger(b7,null,b6)}else{bI.event.dispatch.call(b6,b7)}if(b7.isDefaultPrevented()){b5.preventDefault()}}};bI.removeEvent=l.removeEventListener?function(b3,e,b4){if(b3.removeEventListener){b3.removeEventListener(e,b4,false)}}:function(b4,b3,b5){var e="on"+b3;if(b4.detachEvent){if(typeof b4[e]===aA){b4[e]=null}b4.detachEvent(e,b5)}};bI.Event=function(b3,e){if(!(this instanceof bI.Event)){return new bI.Event(b3,e)}if(b3&&b3.type){this.originalEvent=b3;this.type=b3.type;this.isDefaultPrevented=(b3.defaultPrevented||b3.returnValue===false||b3.getPreventDefault&&b3.getPreventDefault())?P:V}else{this.type=b3}if(e){bI.extend(this,e)}this.timeStamp=b3&&b3.timeStamp||bI.now();this[bI.expando]=true};bI.Event.prototype={isDefaultPrevented:V,isPropagationStopped:V,isImmediatePropagationStopped:V,preventDefault:function(){var b3=this.originalEvent;this.isDefaultPrevented=P;if(!b3){return}if(b3.preventDefault){b3.preventDefault()}else{b3.returnValue=false}},stopPropagation:function(){var b3=this.originalEvent;this.isPropagationStopped=P;if(!b3){return}if(b3.stopPropagation){b3.stopPropagation()}b3.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=P;this.stopPropagation()}};bI.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b3,e){bI.event.special[b3]={delegateType:e,bindType:e,handle:function(b6){var b4,b8=this,b7=b6.relatedTarget,b5=b6.handleObj;if(!b7||(b7!==b8&&!bI.contains(b8,b7))){b6.type=b5.origType;b4=b5.handler.apply(this,arguments);b6.type=e}return b4}}});if(!bI.support.submitBubbles){bI.event.special.submit={setup:function(){if(bI.nodeName(this,"form")){return false}bI.event.add(this,"click._submit keypress._submit",function(b5){var b4=b5.target,b3=bI.nodeName(b4,"input")||bI.nodeName(b4,"button")?b4.form:aE;if(b3&&!bI._data(b3,"submitBubbles")){bI.event.add(b3,"submit._submit",function(e){e._submit_bubble=true});bI._data(b3,"submitBubbles",true)}})},postDispatch:function(e){if(e._submit_bubble){delete e._submit_bubble;if(this.parentNode&&!e.isTrigger){bI.event.simulate("submit",this.parentNode,e,true)}}},teardown:function(){if(bI.nodeName(this,"form")){return false}bI.event.remove(this,"._submit")}}}if(!bI.support.changeBubbles){bI.event.special.change={setup:function(){if(bG.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){bI.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});bI.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false}bI.event.simulate("change",this,e,true)})}return false}bI.event.add(this,"beforeactivate._change",function(b4){var b3=b4.target;if(bG.test(b3.nodeName)&&!bI._data(b3,"changeBubbles")){bI.event.add(b3,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){bI.event.simulate("change",this.parentNode,e,true)}});bI._data(b3,"changeBubbles",true)}})},handle:function(b3){var e=b3.target;if(this!==e||b3.isSimulated||b3.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return b3.handleObj.handler.apply(this,arguments)}},teardown:function(){bI.event.remove(this,"._change");return !bG.test(this.nodeName)}}}if(!bI.support.focusinBubbles){bI.each({focus:"focusin",blur:"focusout"},function(b5,e){var b3=0,b4=function(b6){bI.event.simulate(e,b6.target,bI.event.fix(b6),true)};bI.event.special[e]={setup:function(){if(b3++===0){l.addEventListener(b5,b4,true)}},teardown:function(){if(--b3===0){l.removeEventListener(b5,b4,true)}}}})}bI.fn.extend({on:function(b4,e,b7,b6,b3){var b5,b8;if(typeof b4==="object"){if(typeof e!=="string"){b7=b7||e;e=aE}for(b5 in b4){this.on(b5,e,b7,b4[b5],b3)}return this}if(b7==null&&b6==null){b6=e;b7=e=aE}else{if(b6==null){if(typeof e==="string"){b6=b7;b7=aE}else{b6=b7;b7=e;e=aE}}}if(b6===false){b6=V}else{if(!b6){return this}}if(b3===1){b8=b6;b6=function(b9){bI().off(b9);return b8.apply(this,arguments)};b6.guid=b8.guid||(b8.guid=bI.guid++)}return this.each(function(){bI.event.add(this,b4,b6,b7,e)})},one:function(b3,e,b5,b4){return this.on(b3,e,b5,b4,1)},off:function(b4,e,b6){var b3,b5;if(b4&&b4.preventDefault&&b4.handleObj){b3=b4.handleObj;bI(b4.delegateTarget).off(b3.namespace?b3.origType+"."+b3.namespace:b3.origType,b3.selector,b3.handler);return this}if(typeof b4==="object"){for(b5 in b4){this.off(b5,e,b4[b5])}return this}if(e===false||typeof e==="function"){b6=e;e=aE}if(b6===false){b6=V}return this.each(function(){bI.event.remove(this,b4,b6,e)})},trigger:function(e,b3){return this.each(function(){bI.event.trigger(e,b3,this)})},triggerHandler:function(e,b4){var b3=this[0];if(b3){return bI.event.trigger(e,b4,b3,true)}}});var al=/^.[^:#\[\.,]*$/,bs=/^(?:parents|prev(?:Until|All))/,x=bI.expr.match.needsContext,bw={children:true,contents:true,next:true,prev:true};bI.fn.extend({find:function(b3){var b6,b5=[],b4=this,e=b4.length;if(typeof b3!=="string"){return this.pushStack(bI(b3).filter(function(){for(b6=0;b6<e;b6++){if(bI.contains(b4[b6],this)){return true}}}))}for(b6=0;b6<e;b6++){bI.find(b3,b4[b6],b5)}b5=this.pushStack(e>1?bI.unique(b5):b5);b5.selector=this.selector?this.selector+" "+b3:b3;return b5},has:function(b5){var b4,b3=bI(b5,this),e=b3.length;return this.filter(function(){for(b4=0;b4<e;b4++){if(bI.contains(this,b3[b4])){return true}}})},not:function(e){return this.pushStack(aM(this,e||[],true))},filter:function(e){return this.pushStack(aM(this,e||[],false))},is:function(e){return !!aM(this,typeof e==="string"&&x.test(e)?bI(e):e||[],false).length},closest:function(b6,b5){var b7,b4=0,e=this.length,b3=[],b8=x.test(b6)||typeof b6!=="string"?bI(b6,b5||this.context):0;for(;b4<e;b4++){for(b7=this[b4];b7&&b7!==b5;b7=b7.parentNode){if(b7.nodeType<11&&(b8?b8.index(b7)>-1:b7.nodeType===1&&bI.find.matchesSelector(b7,b6))){b7=b3.push(b7);break}}}return this.pushStack(b3.length>1?bI.unique(b3):b3)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1}if(typeof e==="string"){return bI.inArray(this[0],bI(e))}return bI.inArray(e.jquery?e[0]:e,this)},add:function(e,b3){var b5=typeof e==="string"?bI(e,b3):bI.makeArray(e&&e.nodeType?[e]:e),b4=bI.merge(this.get(),b5);return this.pushStack(bI.unique(b4))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function aV(b3,e){do{b3=b3[e]}while(b3&&b3.nodeType!==1);return b3}bI.each({parent:function(b3){var e=b3.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return bI.dir(e,"parentNode")},parentsUntil:function(b3,e,b4){return bI.dir(b3,"parentNode",b4)},next:function(e){return aV(e,"nextSibling")},prev:function(e){return aV(e,"previousSibling")},nextAll:function(e){return bI.dir(e,"nextSibling")},prevAll:function(e){return bI.dir(e,"previousSibling")},nextUntil:function(b3,e,b4){return bI.dir(b3,"nextSibling",b4)},prevUntil:function(b3,e,b4){return bI.dir(b3,"previousSibling",b4)},siblings:function(e){return bI.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return bI.sibling(e.firstChild)},contents:function(e){return bI.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:bI.merge([],e.childNodes)}},function(e,b3){bI.fn[e]=function(b6,b4){var b5=bI.map(this,b3,b6);if(e.slice(-5)!=="Until"){b4=b6}if(b4&&typeof b4==="string"){b5=bI.filter(b4,b5)}if(this.length>1){if(!bw[e]){b5=bI.unique(b5)}if(bs.test(e)){b5=b5.reverse()}}return this.pushStack(b5)}});bI.extend({filter:function(b5,e,b4){var b3=e[0];if(b4){b5=":not("+b5+")"}return e.length===1&&b3.nodeType===1?bI.find.matchesSelector(b3,b5)?[b3]:[]:bI.find.matches(b5,bI.grep(e,function(b6){return b6.nodeType===1}))},dir:function(b4,b3,b6){var e=[],b5=b4[b3];while(b5&&b5.nodeType!==9&&(b6===aE||b5.nodeType!==1||!bI(b5).is(b6))){if(b5.nodeType===1){e.push(b5)}b5=b5[b3]}return e},sibling:function(b4,b3){var e=[];for(;b4;b4=b4.nextSibling){if(b4.nodeType===1&&b4!==b3){e.push(b4)}}return e}});function aM(b4,e,b3){if(bI.isFunction(e)){return bI.grep(b4,function(b6,b5){return !!e.call(b6,b5,b6)!==b3})}if(e.nodeType){return bI.grep(b4,function(b5){return(b5===e)!==b3})}if(typeof e==="string"){if(al.test(e)){return bI.filter(e,b4,b3)}e=bI.filter(e,b4)}return bI.grep(b4,function(b5){return(bI.inArray(b5,e)>=0)!==b3})}function z(e){var b4=d.split("|"),b3=e.createDocumentFragment();if(b3.createElement){while(b4.length){b3.createElement(b4.pop())}}return b3}var d="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ay=/ jQuery\d+="(?:null|\d+)"/g,I=new RegExp("<(?:"+d+")[\\s/>]","i"),b2=/^\s+/,aB=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,m=/<([\w:]+)/,bX=/<tbody/i,H=/<|&#?\w+;/,aj=/<(?:script|style|link)/i,q=/^(?:checkbox|radio)$/i,bT=/checked\s*(?:[^=]|=\s*.checked.)/i,by=/^$|\/(?:java|ecma)script/i,ap=/^true\/(.*)/,aI=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,R={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:bI.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},aQ=z(l),j=aQ.appendChild(l.createElement("div"));R.optgroup=R.option;R.tbody=R.tfoot=R.colgroup=R.caption=R.thead;R.th=R.td;bI.fn.extend({text:function(e){return bI.access(this,function(b3){return b3===aE?bI.text(this):this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(b3))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b3=aZ(this,e);b3.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b3=aZ(this,e);b3.insertBefore(e,b3.firstChild)}})},before:function(){return this.domManip(arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this)}})},after:function(){return this.domManip(arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this.nextSibling)}})},remove:function(e,b6){var b5,b3=e?bI.filter(e,this):this,b4=0;for(;(b5=b3[b4])!=null;b4++){if(!b6&&b5.nodeType===1){bI.cleanData(k(b5))}if(b5.parentNode){if(b6&&bI.contains(b5.ownerDocument,b5)){br(k(b5,"script"))}b5.parentNode.removeChild(b5)}}return this},empty:function(){var b3,e=0;for(;(b3=this[e])!=null;e++){if(b3.nodeType===1){bI.cleanData(k(b3,false))}while(b3.firstChild){b3.removeChild(b3.firstChild)}if(b3.options&&bI.nodeName(b3,"select")){b3.options.length=0}}return this},clone:function(b3,e){b3=b3==null?false:b3;e=e==null?b3:e;return this.map(function(){return bI.clone(this,b3,e)})},html:function(e){return bI.access(this,function(b6){var b5=this[0]||{},b4=0,b3=this.length;if(b6===aE){return b5.nodeType===1?b5.innerHTML.replace(ay,""):aE}if(typeof b6==="string"&&!aj.test(b6)&&(bI.support.htmlSerialize||!I.test(b6))&&(bI.support.leadingWhitespace||!b2.test(b6))&&!R[(m.exec(b6)||["",""])[1].toLowerCase()]){b6=b6.replace(aB,"<$1></$2>");try{for(;b4<b3;b4++){b5=this[b4]||{};if(b5.nodeType===1){bI.cleanData(k(b5,false));b5.innerHTML=b6}}b5=0}catch(b7){}}if(b5){this.empty().append(b6)}},null,e,arguments.length)},replaceWith:function(){var e=bI.map(this,function(b4){return[b4.nextSibling,b4.parentNode]}),b3=0;this.domManip(arguments,function(b6){var b5=e[b3++],b4=e[b3++];if(b4){if(b5&&b5.parentNode!==b4){b5=this.nextSibling}bI(this).remove();b4.insertBefore(b6,b5)}},true);return b3?this:this.remove()},detach:function(e){return this.remove(e,true)},domManip:function(cb,cg,b4){cb=aG.apply([],cb);var b9,b5,e,b7,ce,ca,b8=0,b6=this.length,cd=this,cf=b6-1,cc=cb[0],b3=bI.isFunction(cc);if(b3||!(b6<=1||typeof cc!=="string"||bI.support.checkClone||!bT.test(cc))){return this.each(function(ci){var ch=cd.eq(ci);if(b3){cb[0]=cc.call(this,ci,ch.html())}ch.domManip(cb,cg,b4)})}if(b6){ca=bI.buildFragment(cb,this[0].ownerDocument,false,!b4&&this);b9=ca.firstChild;if(ca.childNodes.length===1){ca=b9}if(b9){b7=bI.map(k(ca,"script"),t);e=b7.length;for(;b8<b6;b8++){b5=ca;if(b8!==cf){b5=bI.clone(b5,true,true);if(e){bI.merge(b7,k(b5,"script"))}}cg.call(this[b8],b5,b8)}if(e){ce=b7[b7.length-1].ownerDocument;bI.map(b7,bc);for(b8=0;b8<e;b8++){b5=b7[b8];if(by.test(b5.type||"")&&!bI._data(b5,"globalEval")&&bI.contains(ce,b5)){if(b5.src){bI._evalUrl(b5.src)}else{bI.globalEval((b5.text||b5.textContent||b5.innerHTML||"").replace(aI,""))}}}}ca=b9=null}}return this}});function aZ(b3,e){return bI.nodeName(b3,"table")&&bI.nodeName(e.nodeType===1?e:e.firstChild,"tr")?b3.getElementsByTagName("tbody")[0]||b3.appendChild(b3.ownerDocument.createElement("tbody")):b3}function t(e){e.type=(bI.find.attr(e,"type")!==null)+"/"+e.type;return e}function bc(b3){var e=ap.exec(b3.type);if(e){b3.type=e[1]}else{b3.removeAttribute("type")}return b3}function br(e,b4){var b5,b3=0;for(;(b5=e[b3])!=null;b3++){bI._data(b5,"globalEval",!b4||bI._data(b4[b3],"globalEval"))}}function aq(b9,b3){if(b3.nodeType!==1||!bI.hasData(b9)){return}var b6,b5,e,b8=bI._data(b9),b7=bI._data(b3,b8),b4=b8.events;if(b4){delete b7.handle;b7.events={};for(b6 in b4){for(b5=0,e=b4[b6].length;b5<e;b5++){bI.event.add(b3,b6,b4[b6][b5])}}}if(b7.data){b7.data=bI.extend({},b7.data)}}function O(b6,b3){var b7,b5,b4;if(b3.nodeType!==1){return}b7=b3.nodeName.toLowerCase();if(!bI.support.noCloneEvent&&b3[bI.expando]){b4=bI._data(b3);for(b5 in b4.events){bI.removeEvent(b3,b5,b4.handle)}b3.removeAttribute(bI.expando)}if(b7==="script"&&b3.text!==b6.text){t(b3).text=b6.text;bc(b3)}else{if(b7==="object"){if(b3.parentNode){b3.outerHTML=b6.outerHTML}if(bI.support.html5Clone&&(b6.innerHTML&&!bI.trim(b3.innerHTML))){b3.innerHTML=b6.innerHTML}}else{if(b7==="input"&&q.test(b6.type)){b3.defaultChecked=b3.checked=b6.checked;if(b3.value!==b6.value){b3.value=b6.value}}else{if(b7==="option"){b3.defaultSelected=b3.selected=b6.defaultSelected}else{if(b7==="input"||b7==="textarea"){b3.defaultValue=b6.defaultValue}}}}}}bI.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,b3){bI.fn[e]=function(b4){var b5,b7=0,b6=[],b9=bI(b4),b8=b9.length-1;for(;b7<=b8;b7++){b5=b7===b8?this:this.clone(true);bI(b9[b7])[b3](b5);am.apply(b6,b5.get())}return this.pushStack(b6)}});function k(b5,e){var b3,b6,b4=0,b7=typeof b5.getElementsByTagName!==aA?b5.getElementsByTagName(e||"*"):typeof b5.querySelectorAll!==aA?b5.querySelectorAll(e||"*"):aE;if(!b7){for(b7=[],b3=b5.childNodes||b5;(b6=b3[b4])!=null;b4++){if(!e||bI.nodeName(b6,e)){b7.push(b6)}else{bI.merge(b7,k(b6,e))}}}return e===aE||e&&bI.nodeName(b5,e)?bI.merge([b5],b7):b7}function bU(e){if(q.test(e.type)){e.defaultChecked=e.checked}}bI.extend({clone:function(b3,b5,e){var b7,b4,ca,b6,b8,b9=bI.contains(b3.ownerDocument,b3);if(bI.support.html5Clone||bI.isXMLDoc(b3)||!I.test("<"+b3.nodeName+">")){ca=b3.cloneNode(true)}else{j.innerHTML=b3.outerHTML;j.removeChild(ca=j.firstChild)}if((!bI.support.noCloneEvent||!bI.support.noCloneChecked)&&(b3.nodeType===1||b3.nodeType===11)&&!bI.isXMLDoc(b3)){b7=k(ca);b8=k(b3);for(b6=0;(b4=b8[b6])!=null;++b6){if(b7[b6]){O(b4,b7[b6])}}}if(b5){if(e){b8=b8||k(b3);b7=b7||k(ca);for(b6=0;(b4=b8[b6])!=null;b6++){aq(b4,b7[b6])}}else{aq(b3,ca)}}b7=k(ca,"script");if(b7.length>0){br(b7,!b9&&k(b3,"script"))}b7=b8=b4=null;return ca},buildFragment:function(b3,b5,ca,cf){var cb,b7,b9,ce,cg,cd,b4,b8=b3.length,b6=z(b5),e=[],cc=0;for(;cc<b8;cc++){b7=b3[cc];if(b7||b7===0){if(bI.type(b7)==="object"){bI.merge(e,b7.nodeType?[b7]:b7)}else{if(!H.test(b7)){e.push(b5.createTextNode(b7))}else{ce=ce||b6.appendChild(b5.createElement("div"));cg=(m.exec(b7)||["",""])[1].toLowerCase();b4=R[cg]||R._default;ce.innerHTML=b4[1]+b7.replace(aB,"<$1></$2>")+b4[2];cb=b4[0];while(cb--){ce=ce.lastChild}if(!bI.support.leadingWhitespace&&b2.test(b7)){e.push(b5.createTextNode(b2.exec(b7)[0]))}if(!bI.support.tbody){b7=cg==="table"&&!bX.test(b7)?ce.firstChild:b4[1]==="<table>"&&!bX.test(b7)?ce:0;cb=b7&&b7.childNodes.length;while(cb--){if(bI.nodeName((cd=b7.childNodes[cb]),"tbody")&&!cd.childNodes.length){b7.removeChild(cd)}}}bI.merge(e,ce.childNodes);ce.textContent="";while(ce.firstChild){ce.removeChild(ce.firstChild)}ce=b6.lastChild}}}}if(ce){b6.removeChild(ce)}if(!bI.support.appendChecked){bI.grep(k(e,"input"),bU)}cc=0;while((b7=e[cc++])){if(cf&&bI.inArray(b7,cf)!==-1){continue}b9=bI.contains(b7.ownerDocument,b7);ce=k(b6.appendChild(b7),"script");if(b9){br(ce)}if(ca){cb=0;while((b7=ce[cb++])){if(by.test(b7.type||"")){ca.push(b7)}}}}ce=null;return b6},cleanData:function(b3,cb){var b5,ca,b4,b6,b7=0,cc=bI.expando,e=bI.cache,b8=bI.support.deleteExpando,b9=bI.event.special;for(;(b5=b3[b7])!=null;b7++){if(cb||bI.acceptData(b5)){b4=b5[cc];b6=b4&&e[b4];if(b6){if(b6.events){for(ca in b6.events){if(b9[ca]){bI.event.remove(b5,ca)}else{bI.removeEvent(b5,ca,b6.handle)}}}if(e[b4]){delete e[b4];if(b8){delete b5[cc]}else{if(typeof b5.removeAttribute!==aA){b5.removeAttribute(cc)}else{b5[cc]=null}}a5.push(b4)}}}}},_evalUrl:function(e){return bI.ajax({url:e,type:"GET",dataType:"script",async:false,global:false,"throws":true})}});bI.fn.extend({wrapAll:function(e){if(bI.isFunction(e)){return this.each(function(b4){bI(this).wrapAll(e.call(this,b4))})}if(this[0]){var b3=bI(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){b3.insertBefore(this[0])}b3.map(function(){var b4=this;while(b4.firstChild&&b4.firstChild.nodeType===1){b4=b4.firstChild}return b4}).append(this)}return this},wrapInner:function(e){if(bI.isFunction(e)){return this.each(function(b3){bI(this).wrapInner(e.call(this,b3))})}return this.each(function(){var b3=bI(this),b4=b3.contents();if(b4.length){b4.wrapAll(e)}else{b3.append(e)}})},wrap:function(e){var b3=bI.isFunction(e);return this.each(function(b4){bI(this).wrapAll(b3?e.call(this,b4):e)})},unwrap:function(){return this.parent().each(function(){if(!bI.nodeName(this,"body")){bI(this).replaceWith(this.childNodes)}}).end()}});var aC,bn,D,bf=/alpha\([^)]*\)/i,aR=/opacity\s*=\s*([^)]*)/,bm=/^(top|right|bottom|left)$/,E=/^(none|table(?!-c[ea]).+)/,aW=/^margin/,a8=new RegExp("^("+bz+")(.*)$","i"),U=new RegExp("^("+bz+")(?!px)[a-z%]+$","i"),Q=new RegExp("^([+-])=("+bz+")","i"),bi={BODY:"block"},bb={position:"absolute",visibility:"hidden",display:"block"},bB={letterSpacing:0,fontWeight:400},bS=["Top","Right","Bottom","Left"],at=["Webkit","O","Moz","ms"];function b(b5,b3){if(b3 in b5){return b3}var b6=b3.charAt(0).toUpperCase()+b3.slice(1),e=b3,b4=at.length;while(b4--){b3=at[b4]+b6;if(b3 in b5){return b3}}return e}function N(b3,e){b3=e||b3;return bI.css(b3,"display")==="none"||!bI.contains(b3.ownerDocument,b3)}function p(b8,e){var b9,b6,b7,b3=[],b4=0,b5=b8.length;for(;b4<b5;b4++){b6=b8[b4];if(!b6.style){continue}b3[b4]=bI._data(b6,"olddisplay");b9=b6.style.display;if(e){if(!b3[b4]&&b9==="none"){b6.style.display=""}if(b6.style.display===""&&N(b6)){b3[b4]=bI._data(b6,"olddisplay",bD(b6.nodeName))}}else{if(!b3[b4]){b7=N(b6);if(b9&&b9!=="none"||!b7){bI._data(b6,"olddisplay",b7?b9:bI.css(b6,"display"))}}}}for(b4=0;b4<b5;b4++){b6=b8[b4];if(!b6.style){continue}if(!e||b6.style.display==="none"||b6.style.display===""){b6.style.display=e?b3[b4]||"":"none"}}return b8}bI.fn.extend({css:function(e,b3){return bI.access(this,function(b8,b5,b9){var b4,b7,ca={},b6=0;if(bI.isArray(b5)){b7=bn(b8);b4=b5.length;for(;b6<b4;b6++){ca[b5[b6]]=bI.css(b8,b5[b6],false,b7)}return ca}return b9!==aE?bI.style(b8,b5,b9):bI.css(b8,b5)},e,b3,arguments.length>1)},show:function(){return p(this,true)},hide:function(){return p(this)},toggle:function(e){if(typeof e==="boolean"){return e?this.show():this.hide()}return this.each(function(){if(N(this)){bI(this).show()}else{bI(this).hide()}})}});bI.extend({cssHooks:{opacity:{get:function(b4,b3){if(b3){var e=D(b4,"opacity");return e===""?"1":e}}}},cssNumber:{columnCount:true,fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":bI.support.cssFloat?"cssFloat":"styleFloat"},style:function(b5,b4,cb,b6){if(!b5||b5.nodeType===3||b5.nodeType===8||!b5.style){return}var b9,ca,cc,b7=bI.camelCase(b4),b3=b5.style;b4=bI.cssProps[b7]||(bI.cssProps[b7]=b(b3,b7));cc=bI.cssHooks[b4]||bI.cssHooks[b7];if(cb!==aE){ca=typeof cb;if(ca==="string"&&(b9=Q.exec(cb))){cb=(b9[1]+1)*b9[2]+parseFloat(bI.css(b5,b4));ca="number"}if(cb==null||ca==="number"&&isNaN(cb)){return}if(ca==="number"&&!bI.cssNumber[b7]){cb+="px"}if(!bI.support.clearCloneStyle&&cb===""&&b4.indexOf("background")===0){b3[b4]="inherit"}if(!cc||!("set" in cc)||(cb=cc.set(b5,cb,b6))!==aE){try{b3[b4]=cb}catch(b8){}}}else{if(cc&&"get" in cc&&(b9=cc.get(b5,false,b6))!==aE){return b9}return b3[b4]}},css:function(b8,b6,b3,b7){var b5,b9,e,b4=bI.camelCase(b6);b6=bI.cssProps[b4]||(bI.cssProps[b4]=b(b8.style,b4));e=bI.cssHooks[b6]||bI.cssHooks[b4];if(e&&"get" in e){b9=e.get(b8,true,b3)}if(b9===aE){b9=D(b8,b6,b7)}if(b9==="normal"&&b6 in bB){b9=bB[b6]}if(b3===""||b3){b5=parseFloat(b9);return b3===true||bI.isNumeric(b5)?b5||0:b9}return b9}});if(a1.getComputedStyle){bn=function(e){return a1.getComputedStyle(e,null)};D=function(b6,b4,b8){var b5,b3,ca,b7=b8||bn(b6),b9=b7?b7.getPropertyValue(b4)||b7[b4]:aE,e=b6.style;if(b7){if(b9===""&&!bI.contains(b6.ownerDocument,b6)){b9=bI.style(b6,b4)}if(U.test(b9)&&aW.test(b4)){b5=e.width;b3=e.minWidth;ca=e.maxWidth;e.minWidth=e.maxWidth=e.width=b9;b9=b7.width;e.width=b5;e.minWidth=b3;e.maxWidth=ca}}return b9}}else{if(l.documentElement.currentStyle){bn=function(e){return e.currentStyle};D=function(b5,b3,b8){var b4,b7,b9,b6=b8||bn(b5),ca=b6?b6[b3]:aE,e=b5.style;if(ca==null&&e&&e[b3]){ca=e[b3]}if(U.test(ca)&&!bm.test(b3)){b4=e.left;b7=b5.runtimeStyle;b9=b7&&b7.left;if(b9){b7.left=b5.currentStyle.left}e.left=b3==="fontSize"?"1em":ca;ca=e.pixelLeft+"px";e.left=b4;if(b9){b7.left=b9}}return ca===""?"auto":ca}}}function aH(e,b4,b5){var b3=a8.exec(b4);return b3?Math.max(0,b3[1]-(b5||0))+(b3[2]||"px"):b4}function au(b6,b3,e,b8,b5){var b4=e===(b8?"border":"content")?4:b3==="width"?1:0,b7=0;for(;b4<4;b4+=2){if(e==="margin"){b7+=bI.css(b6,e+bS[b4],true,b5)}if(b8){if(e==="content"){b7-=bI.css(b6,"padding"+bS[b4],true,b5)}if(e!=="margin"){b7-=bI.css(b6,"border"+bS[b4]+"Width",true,b5)}}else{b7+=bI.css(b6,"padding"+bS[b4],true,b5);if(e!=="padding"){b7+=bI.css(b6,"border"+bS[b4]+"Width",true,b5)}}}return b7}function u(b6,b3,e){var b5=true,b7=b3==="width"?b6.offsetWidth:b6.offsetHeight,b4=bn(b6),b8=bI.support.boxSizing&&bI.css(b6,"boxSizing",false,b4)==="border-box";if(b7<=0||b7==null){b7=D(b6,b3,b4);if(b7<0||b7==null){b7=b6.style[b3]}if(U.test(b7)){return b7}b5=b8&&(bI.support.boxSizingReliable||b7===b6.style[b3]);b7=parseFloat(b7)||0}return(b7+au(b6,b3,e||(b8?"border":"content"),b5,b4))+"px"}function bD(b4){var b3=l,e=bi[b4];if(!e){e=a0(b4,b3);if(e==="none"||!e){aC=(aC||bI("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(b3.documentElement);b3=(aC[0].contentWindow||aC[0].contentDocument).document;b3.write("<!doctype html><html><body>");b3.close();e=a0(b4,b3);aC.detach()}bi[b4]=e}return e}function a0(e,b5){var b3=bI(b5.createElement(e)).appendTo(b5.body),b4=bI.css(b3[0],"display");b3.remove();return b4}bI.each(["height","width"],function(b3,e){bI.cssHooks[e]={get:function(b6,b5,b4){if(b5){return b6.offsetWidth===0&&E.test(bI.css(b6,"display"))?bI.swap(b6,bb,function(){return u(b6,e,b4)}):u(b6,e,b4)}},set:function(b6,b7,b4){var b5=b4&&bn(b6);return aH(b6,b7,b4?au(b6,e,b4,bI.support.boxSizing&&bI.css(b6,"boxSizing",false,b5)==="border-box",b5):0)}}});if(!bI.support.opacity){bI.cssHooks.opacity={get:function(b3,e){return aR.test((e&&b3.currentStyle?b3.currentStyle.filter:b3.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":e?"1":""},set:function(b6,b7){var b5=b6.style,b3=b6.currentStyle,e=bI.isNumeric(b7)?"alpha(opacity="+b7*100+")":"",b4=b3&&b3.filter||b5.filter||"";b5.zoom=1;if((b7>=1||b7==="")&&bI.trim(b4.replace(bf,""))===""&&b5.removeAttribute){b5.removeAttribute("filter");if(b7===""||b3&&!b3.filter){return}}b5.filter=bf.test(b4)?b4.replace(bf,e):b4+" "+e}}}bI(function(){if(!bI.support.reliableMarginRight){bI.cssHooks.marginRight={get:function(b3,e){if(e){return bI.swap(b3,{display:"inline-block"},D,[b3,"marginRight"])}}}}if(!bI.support.pixelPosition&&bI.fn.position){bI.each(["top","left"],function(e,b3){bI.cssHooks[b3]={get:function(b5,b4){if(b4){b4=D(b5,b3);return U.test(b4)?bI(b5).position()[b3]+"px":b4}}}})}});if(bI.expr&&bI.expr.filters){bI.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||(!bI.support.reliableHiddenOffsets&&((e.style&&e.style.display)||bI.css(e,"display"))==="none")};bI.expr.filters.visible=function(e){return !bI.expr.filters.hidden(e)}}bI.each({margin:"",padding:"",border:"Width"},function(e,b3){bI.cssHooks[e+b3]={expand:function(b6){var b5=0,b4={},b7=typeof b6==="string"?b6.split(" "):[b6];for(;b5<4;b5++){b4[e+bS[b5]+b3]=b7[b5]||b7[b5-2]||b7[0]}return b4}};if(!aW.test(e)){bI.cssHooks[e+b3].set=aH}});var bu=/%20/g,aP=/\[\]$/,S=/\r?\n/g,c=/^(?:submit|button|image|reset|file)$/i,ar=/^(?:input|select|textarea|keygen)/i;bI.fn.extend({serialize:function(){return bI.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=bI.prop(this,"elements");return e?bI.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!bI(this).is(":disabled")&&ar.test(this.nodeName)&&!c.test(e)&&(this.checked||!q.test(e))}).map(function(e,b3){var b4=bI(this).val();return b4==null?null:bI.isArray(b4)?bI.map(b4,function(b5){return{name:b3.name,value:b5.replace(S,"\r\n")}}):{name:b3.name,value:b4.replace(S,"\r\n")}}).get()}});bI.param=function(e,b4){var b5,b3=[],b6=function(b7,b8){b8=bI.isFunction(b8)?b8():(b8==null?"":b8);b3[b3.length]=encodeURIComponent(b7)+"="+encodeURIComponent(b8)};if(b4===aE){b4=bI.ajaxSettings&&bI.ajaxSettings.traditional}if(bI.isArray(e)||(e.jquery&&!bI.isPlainObject(e))){bI.each(e,function(){b6(this.name,this.value)})}else{for(b5 in e){i(b5,e[b5],b4,b6)}}return b3.join("&").replace(bu,"+")};function i(b4,b6,b3,b5){var e;if(bI.isArray(b6)){bI.each(b6,function(b8,b7){if(b3||aP.test(b4)){b5(b4,b7)}else{i(b4+"["+(typeof b7==="object"?b8:"")+"]",b7,b3,b5)}})}else{if(!b3&&bI.type(b6)==="object"){for(e in b6){i(b4+"["+e+"]",b6[e],b3,b5)}}else{b5(b4,b6)}}}bI.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(b3,e){bI.fn[e]=function(b5,b4){return arguments.length>0?this.on(e,null,b5,b4):this.trigger(e)}});bI.fn.extend({hover:function(e,b3){return this.mouseenter(e).mouseleave(b3||e)},bind:function(e,b4,b3){return this.on(e,null,b4,b3)},unbind:function(e,b3){return this.off(e,null,b3)},delegate:function(e,b3,b5,b4){return this.on(b3,e,b5,b4)},undelegate:function(e,b3,b4){return arguments.length===1?this.off(e,"**"):this.off(b3,e||"**",b4)}});var b1,W,bN=bI.now(),ax=/\?/,an=/#.*$/,M=/([?&])_=[^&]*/,ae=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,A=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,o=/^(?:GET|HEAD)$/,aF=/^\/\//,aS=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,b0=bI.fn.load,v={},a6={},aU="*/".concat("*");try{W=aJ.href}catch(be){W=l.createElement("a");W.href="";W=W.href}b1=aS.exec(W.toLowerCase())||[];function bK(e){return function(b6,b7){if(typeof b6!=="string"){b7=b6;b6="*"}var b3,b4=0,b5=b6.toLowerCase().match(aa)||[];if(bI.isFunction(b7)){while((b3=b5[b4++])){if(b3[0]==="+"){b3=b3.slice(1)||"*";(e[b3]=e[b3]||[]).unshift(b7)}else{(e[b3]=e[b3]||[]).push(b7)}}}}}function n(e,b4,b8,b5){var b3={},b6=(e===a6);function b7(b9){var ca;b3[b9]=true;bI.each(e[b9]||[],function(cc,cb){var cd=cb(b4,b8,b5);if(typeof cd==="string"&&!b6&&!b3[cd]){b4.dataTypes.unshift(cd);b7(cd);return false}else{if(b6){return !(ca=cd)}}});return ca}return b7(b4.dataTypes[0])||!b3["*"]&&b7("*")}function r(b4,b5){var e,b3,b6=bI.ajaxSettings.flatOptions||{};for(b3 in b5){if(b5[b3]!==aE){(b6[b3]?b4:(e||(e={})))[b3]=b5[b3]}}if(e){bI.extend(true,b4,e)}return b4}bI.fn.load=function(b5,b8,b9){if(typeof b5!=="string"&&b0){return b0.apply(this,arguments)}var e,b4,b6,b3=this,b7=b5.indexOf(" ");if(b7>=0){e=b5.slice(b7,b5.length);b5=b5.slice(0,b7)}if(bI.isFunction(b8)){b9=b8;b8=aE}else{if(b8&&typeof b8==="object"){b6="POST"}}if(b3.length>0){bI.ajax({url:b5,type:b6,dataType:"html",data:b8}).done(function(ca){b4=arguments;b3.html(e?bI("<div>").append(bI.parseHTML(ca)).find(e):ca)}).complete(b9&&function(cb,ca){b3.each(b9,b4||[cb.responseText,ca,cb])})}return this};bI.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,b3){bI.fn[b3]=function(b4){return this.on(b3,b4)}});bI.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:W,type:"GET",isLocal:A.test(b1[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":aU,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":bI.parseJSON,"text xml":bI.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(b3,e){return e?r(r(b3,bI.ajaxSettings),e):r(bI.ajaxSettings,b3)},ajaxPrefilter:bK(v),ajaxTransport:bK(a6),ajax:function(b7,b4){if(typeof b7==="object"){b4=b7;b7=aE}b4=b4||{};var cg,ci,b8,cn,cc,b3,cj,b5,cb=bI.ajaxSetup({},b4),cp=cb.context||cb,ce=cb.context&&(cp.nodeType||cp.jquery)?bI(cp):bI.event,co=bI.Deferred(),cl=bI.Callbacks("once memory"),b9=cb.statusCode||{},cf={},cm={},b6=0,ca="canceled",ch={readyState:0,getResponseHeader:function(cq){var e;if(b6===2){if(!b5){b5={};while((e=ae.exec(cn))){b5[e[1].toLowerCase()]=e[2]}}e=b5[cq.toLowerCase()]}return e==null?null:e},getAllResponseHeaders:function(){return b6===2?cn:null},setRequestHeader:function(cq,cr){var e=cq.toLowerCase();if(!b6){cq=cm[e]=cm[e]||cq;cf[cq]=cr}return this},overrideMimeType:function(e){if(!b6){cb.mimeType=e}return this},statusCode:function(cq){var e;if(cq){if(b6<2){for(e in cq){b9[e]=[b9[e],cq[e]]}}else{ch.always(cq[ch.status])}}return this},abort:function(cq){var e=cq||ca;if(cj){cj.abort(e)}cd(0,e);return this}};co.promise(ch).complete=cl.add;ch.success=ch.done;ch.error=ch.fail;cb.url=((b7||cb.url||W)+"").replace(an,"").replace(aF,b1[1]+"//");cb.type=b4.method||b4.type||cb.method||cb.type;cb.dataTypes=bI.trim(cb.dataType||"*").toLowerCase().match(aa)||[""];if(cb.crossDomain==null){cg=aS.exec(cb.url.toLowerCase());cb.crossDomain=!!(cg&&(cg[1]!==b1[1]||cg[2]!==b1[2]||(cg[3]||(cg[1]==="http:"?"80":"443"))!==(b1[3]||(b1[1]==="http:"?"80":"443"))))}if(cb.data&&cb.processData&&typeof cb.data!=="string"){cb.data=bI.param(cb.data,cb.traditional)}n(v,cb,b4,ch);if(b6===2){return ch}b3=cb.global;if(b3&&bI.active++===0){bI.event.trigger("ajaxStart")}cb.type=cb.type.toUpperCase();cb.hasContent=!o.test(cb.type);b8=cb.url;if(!cb.hasContent){if(cb.data){b8=(cb.url+=(ax.test(b8)?"&":"?")+cb.data);delete cb.data}if(cb.cache===false){cb.url=M.test(b8)?b8.replace(M,"$1_="+bN++):b8+(ax.test(b8)?"&":"?")+"_="+bN++}}if(cb.ifModified){if(bI.lastModified[b8]){ch.setRequestHeader("If-Modified-Since",bI.lastModified[b8])}if(bI.etag[b8]){ch.setRequestHeader("If-None-Match",bI.etag[b8])}}if(cb.data&&cb.hasContent&&cb.contentType!==false||b4.contentType){ch.setRequestHeader("Content-Type",cb.contentType)}ch.setRequestHeader("Accept",cb.dataTypes[0]&&cb.accepts[cb.dataTypes[0]]?cb.accepts[cb.dataTypes[0]]+(cb.dataTypes[0]!=="*"?", "+aU+"; q=0.01":""):cb.accepts["*"]);for(ci in cb.headers){ch.setRequestHeader(ci,cb.headers[ci])}if(cb.beforeSend&&(cb.beforeSend.call(cp,ch,cb)===false||b6===2)){return ch.abort()}ca="abort";for(ci in {success:1,error:1,complete:1}){ch[ci](cb[ci])}cj=n(a6,cb,b4,ch);if(!cj){cd(-1,"No Transport")}else{ch.readyState=1;if(b3){ce.trigger("ajaxSend",[ch,cb])}if(cb.async&&cb.timeout>0){cc=setTimeout(function(){ch.abort("timeout")},cb.timeout)}try{b6=1;cj.send(cf,cd)}catch(ck){if(b6<2){cd(-1,ck)}else{throw ck}}}function cd(cu,cq,cv,cs){var e,cy,cw,ct,cx,cr=cq;if(b6===2){return}b6=2;if(cc){clearTimeout(cc)}cj=aE;cn=cs||"";ch.readyState=cu>0?4:0;e=cu>=200&&cu<300||cu===304;if(cv){ct=g(cb,ch,cv)}ct=ad(cb,ct,ch,e);if(e){if(cb.ifModified){cx=ch.getResponseHeader("Last-Modified");if(cx){bI.lastModified[b8]=cx}cx=ch.getResponseHeader("etag");if(cx){bI.etag[b8]=cx}}if(cu===204||cb.type==="HEAD"){cr="nocontent"}else{if(cu===304){cr="notmodified"}else{cr=ct.state;cy=ct.data;cw=ct.error;e=!cw}}}else{cw=cr;if(cu||!cr){cr="error";if(cu<0){cu=0}}}ch.status=cu;ch.statusText=(cq||cr)+"";if(e){co.resolveWith(cp,[cy,cr,ch])}else{co.rejectWith(cp,[ch,cr,cw])}ch.statusCode(b9);b9=aE;if(b3){ce.trigger(e?"ajaxSuccess":"ajaxError",[ch,cb,e?cy:cw])}cl.fireWith(cp,[ch,cr]);if(b3){ce.trigger("ajaxComplete",[ch,cb]);if(!(--bI.active)){bI.event.trigger("ajaxStop")}}}return ch},getJSON:function(e,b3,b4){return bI.get(e,b3,b4,"json")},getScript:function(e,b3){return bI.get(e,aE,b3,"script")}});bI.each(["get","post"],function(e,b3){bI[b3]=function(b4,b6,b7,b5){if(bI.isFunction(b6)){b5=b5||b7;b7=b6;b6=aE}return bI.ajax({url:b4,type:b3,dataType:b5,data:b6,success:b7})}});function g(ca,b9,b6){var e,b5,b4,b7,b3=ca.contents,b8=ca.dataTypes;while(b8[0]==="*"){b8.shift();if(b5===aE){b5=ca.mimeType||b9.getResponseHeader("Content-Type")}}if(b5){for(b7 in b3){if(b3[b7]&&b3[b7].test(b5)){b8.unshift(b7);break}}}if(b8[0] in b6){b4=b8[0]}else{for(b7 in b6){if(!b8[0]||ca.converters[b7+" "+b8[0]]){b4=b7;break}if(!e){e=b7}}b4=b4||e}if(b4){if(b4!==b8[0]){b8.unshift(b4)}return b6[b4]}}function ad(ce,b6,cb,b4){var b3,b9,cc,b7,b5,cd={},ca=ce.dataTypes.slice();if(ca[1]){for(cc in ce.converters){cd[cc.toLowerCase()]=ce.converters[cc]}}b9=ca.shift();while(b9){if(ce.responseFields[b9]){cb[ce.responseFields[b9]]=b6}if(!b5&&b4&&ce.dataFilter){b6=ce.dataFilter(b6,ce.dataType)}b5=b9;b9=ca.shift();if(b9){if(b9==="*"){b9=b5}else{if(b5!=="*"&&b5!==b9){cc=cd[b5+" "+b9]||cd["* "+b9];if(!cc){for(b3 in cd){b7=b3.split(" ");if(b7[1]===b9){cc=cd[b5+" "+b7[0]]||cd["* "+b7[0]];if(cc){if(cc===true){cc=cd[b3]}else{if(cd[b3]!==true){b9=b7[0];ca.unshift(b7[1])}}break}}}}if(cc!==true){if(cc&&ce["throws"]){b6=cc(b6)}else{try{b6=cc(b6)}catch(b8){return{state:"parsererror",error:cc?b8:"No conversion from "+b5+" to "+b9}}}}}}}}return{state:"success",data:b6}}bI.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){bI.globalEval(e);return e}}});bI.ajaxPrefilter("script",function(e){if(e.cache===aE){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});bI.ajaxTransport("script",function(b4){if(b4.crossDomain){var e,b3=l.head||bI("head")[0]||l.documentElement;return{send:function(b5,b6){e=l.createElement("script");e.async=true;if(b4.scriptCharset){e.charset=b4.scriptCharset}e.src=b4.url;e.onload=e.onreadystatechange=function(b8,b7){if(b7||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(e.parentNode){e.parentNode.removeChild(e)}e=null;if(!b7){b6(200,"success")}}};b3.insertBefore(e,b3.firstChild)},abort:function(){if(e){e.onload(aE,true)}}}}});var bp=[],a4=/(=)\?(?=&|$)|\?\?/;bI.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=bp.pop()||(bI.expando+"_"+(bN++));this[e]=true;return e}});bI.ajaxPrefilter("json jsonp",function(b5,e,b6){var b8,b3,b4,b7=b5.jsonp!==false&&(a4.test(b5.url)?"url":typeof b5.data==="string"&&!(b5.contentType||"").indexOf("application/x-www-form-urlencoded")&&a4.test(b5.data)&&"data");if(b7||b5.dataTypes[0]==="jsonp"){b8=b5.jsonpCallback=bI.isFunction(b5.jsonpCallback)?b5.jsonpCallback():b5.jsonpCallback;if(b7){b5[b7]=b5[b7].replace(a4,"$1"+b8)}else{if(b5.jsonp!==false){b5.url+=(ax.test(b5.url)?"&":"?")+b5.jsonp+"="+b8}}b5.converters["script json"]=function(){if(!b4){bI.error(b8+" was not called")}return b4[0]};b5.dataTypes[0]="json";b3=a1[b8];a1[b8]=function(){b4=arguments};b6.always(function(){a1[b8]=b3;if(b5[b8]){b5.jsonpCallback=e.jsonpCallback;bp.push(b8)}if(b4&&bI.isFunction(b3)){b3(b4[0])}b4=b3=aE});return"script"}});var af,av,aw=0,aN=a1.ActiveXObject&&function(){var e;for(e in af){af[e](aE,true)}};function bC(){try{return new a1.XMLHttpRequest()}catch(b3){}}function bd(){try{return new a1.ActiveXObject("Microsoft.XMLHTTP")}catch(b3){}}bI.ajaxSettings.xhr=a1.ActiveXObject?function(){return !this.isLocal&&bC()||bd()}:bC;av=bI.ajaxSettings.xhr();bI.support.cors=!!av&&("withCredentials" in av);av=bI.support.ajax=!!av;if(av){bI.ajaxTransport(function(e){if(!e.crossDomain||bI.support.cors){var b3;return{send:function(b9,b4){var b7,b5,b8=e.xhr();if(e.username){b8.open(e.type,e.url,e.async,e.username,e.password)}else{b8.open(e.type,e.url,e.async)}if(e.xhrFields){for(b5 in e.xhrFields){b8[b5]=e.xhrFields[b5]}}if(e.mimeType&&b8.overrideMimeType){b8.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!b9["X-Requested-With"]){b9["X-Requested-With"]="XMLHttpRequest"}try{for(b5 in b9){b8.setRequestHeader(b5,b9[b5])}}catch(b6){}b8.send((e.hasContent&&e.data)||null);b3=function(cc,cb){var ca,cd,cg,ce;try{if(b3&&(cb||b8.readyState===4)){b3=aE;if(b7){b8.onreadystatechange=bI.noop;if(aN){delete af[b7]}}if(cb){if(b8.readyState!==4){b8.abort()}}else{ce={};ca=b8.status;cd=b8.getAllResponseHeaders();if(typeof b8.responseText==="string"){ce.text=b8.responseText}try{cg=b8.statusText}catch(cf){cg=""}if(!ca&&e.isLocal&&!e.crossDomain){ca=ce.text?200:404}else{if(ca===1223){ca=204}}}}}catch(ch){if(!cb){b4(-1,ch)}}if(ce){b4(ca,cg,ce,cd)}};if(!e.async){b3()}else{if(b8.readyState===4){setTimeout(b3)}else{b7=++aw;if(aN){if(!af){af={};bI(a1).unload(aN)}af[b7]=b3}b8.onreadystatechange=b3}}},abort:function(){if(b3){b3(aE,true)}}}}})}var J,ab,bQ=/^(?:toggle|show|hide)$/,bJ=new RegExp("^(?:([+-])=|)("+bz+")([a-z%]*)$","i"),bP=/queueHooks$/,az=[h],aY={"*":[function(e,b8){var ca=this.createTween(e,b8),b6=ca.cur(),b5=bJ.exec(b8),b9=b5&&b5[3]||(bI.cssNumber[e]?"":"px"),b3=(bI.cssNumber[e]||b9!=="px"&&+b6)&&bJ.exec(bI.css(ca.elem,e)),b4=1,b7=20;if(b3&&b3[3]!==b9){b9=b9||b3[3];b5=b5||[];b3=+b6||1;do{b4=b4||".5";b3=b3/b4;bI.style(ca.elem,e,b3+b9)}while(b4!==(b4=ca.cur()/b6)&&b4!==1&&--b7)}if(b5){b3=ca.start=+b3||+b6||0;ca.unit=b9;ca.end=b5[1]?b3+(b5[1]+1)*b5[2]:+b5[2]}return ca}]};function bl(){setTimeout(function(){J=aE});return(J=bI.now())}function ba(b6,b8,b5){var b3,b7=(aY[b8]||[]).concat(aY["*"]),e=0,b4=b7.length;for(;e<b4;e++){if((b3=b7[e].call(b5,b8,b6))){return b3}}}function f(b4,b8,cb){var cc,e,b7=0,b3=az.length,ca=bI.Deferred().always(function(){delete b6.elem}),b6=function(){if(e){return false}var ci=J||bl(),cf=Math.max(0,b5.startTime+b5.duration-ci),cd=cf/b5.duration||0,ch=1-cd,ce=0,cg=b5.tweens.length;for(;ce<cg;ce++){b5.tweens[ce].run(ch)}ca.notifyWith(b4,[b5,ch,cf]);if(ch<1&&cg){return cf}else{ca.resolveWith(b4,[b5]);return false}},b5=ca.promise({elem:b4,props:bI.extend({},b8),opts:bI.extend(true,{specialEasing:{}},cb),originalProperties:b8,originalOptions:cb,startTime:J||bl(),duration:cb.duration,tweens:[],createTween:function(cf,cd){var ce=bI.Tween(b4,b5.opts,cf,cd,b5.opts.specialEasing[cf]||b5.opts.easing);b5.tweens.push(ce);return ce},stop:function(ce){var cd=0,cf=ce?b5.tweens.length:0;if(e){return this}e=true;for(;cd<cf;cd++){b5.tweens[cd].run(1)}if(ce){ca.resolveWith(b4,[b5,ce])}else{ca.rejectWith(b4,[b5,ce])}return this}}),b9=b5.props;ak(b9,b5.opts.specialEasing);for(;b7<b3;b7++){cc=az[b7].call(b5,b4,b9,b5.opts);if(cc){return cc}}bI.map(b9,ba,b5);if(bI.isFunction(b5.opts.start)){b5.opts.start.call(b4,b5)}bI.fx.timer(bI.extend(b6,{elem:b4,anim:b5,queue:b5.opts.queue}));return b5.progress(b5.opts.progress).done(b5.opts.done,b5.opts.complete).fail(b5.opts.fail).always(b5.opts.always)}function ak(b5,b7){var b4,b3,b8,b6,e;for(b4 in b5){b3=bI.camelCase(b4);b8=b7[b3];b6=b5[b4];if(bI.isArray(b6)){b8=b6[1];b6=b5[b4]=b6[0]}if(b4!==b3){b5[b3]=b6;delete b5[b4]}e=bI.cssHooks[b3];if(e&&"expand" in e){b6=e.expand(b6);delete b5[b3];for(b4 in b6){if(!(b4 in b5)){b5[b4]=b6[b4];b7[b4]=b8}}}else{b7[b3]=b8}}}bI.Animation=bI.extend(f,{tweener:function(b3,b6){if(bI.isFunction(b3)){b6=b3;b3=["*"]}else{b3=b3.split(" ")}var b5,e=0,b4=b3.length;for(;e<b4;e++){b5=b3[e];aY[b5]=aY[b5]||[];aY[b5].unshift(b6)}},prefilter:function(b3,e){if(e){az.unshift(b3)}else{az.push(b3)}}});function h(b5,b9,e){var b4,cb,b7,ce,cf,cc,b6=this,ca={},b3=b5.style,b8=b5.nodeType&&N(b5),cd=bI._data(b5,"fxshow");if(!e.queue){cf=bI._queueHooks(b5,"fx");if(cf.unqueued==null){cf.unqueued=0;cc=cf.empty.fire;cf.empty.fire=function(){if(!cf.unqueued){cc()}}}cf.unqueued++;b6.always(function(){b6.always(function(){cf.unqueued--;if(!bI.queue(b5,"fx").length){cf.empty.fire()}})})}if(b5.nodeType===1&&("height" in b9||"width" in b9)){e.overflow=[b3.overflow,b3.overflowX,b3.overflowY];if(bI.css(b5,"display")==="inline"&&bI.css(b5,"float")==="none"){if(!bI.support.inlineBlockNeedsLayout||bD(b5.nodeName)==="inline"){b3.display="inline-block"}else{b3.zoom=1}}}if(e.overflow){b3.overflow="hidden";if(!bI.support.shrinkWrapBlocks){b6.always(function(){b3.overflow=e.overflow[0];b3.overflowX=e.overflow[1];b3.overflowY=e.overflow[2]})}}for(b4 in b9){cb=b9[b4];if(bQ.exec(cb)){delete b9[b4];b7=b7||cb==="toggle";if(cb===(b8?"hide":"show")){continue}ca[b4]=cd&&cd[b4]||bI.style(b5,b4)}}if(!bI.isEmptyObject(ca)){if(cd){if("hidden" in cd){b8=cd.hidden}}else{cd=bI._data(b5,"fxshow",{})}if(b7){cd.hidden=!b8}if(b8){bI(b5).show()}else{b6.done(function(){bI(b5).hide()})}b6.done(function(){var cg;bI._removeData(b5,"fxshow");for(cg in ca){bI.style(b5,cg,ca[cg])}});for(b4 in ca){ce=ba(b8?cd[b4]:0,b4,b6);if(!(b4 in cd)){cd[b4]=ce.start;if(b8){ce.end=ce.start;ce.start=b4==="width"||b4==="height"?1:0}}}}}function F(b4,b3,b6,e,b5){return new F.prototype.init(b4,b3,b6,e,b5)}bI.Tween=F;F.prototype={constructor:F,init:function(b5,b3,b7,e,b6,b4){this.elem=b5;this.prop=b7;this.easing=b6||"swing";this.options=b3;this.start=this.now=this.cur();this.end=e;this.unit=b4||(bI.cssNumber[b7]?"":"px")},cur:function(){var e=F.propHooks[this.prop];return e&&e.get?e.get(this):F.propHooks._default.get(this)},run:function(b4){var b3,e=F.propHooks[this.prop];if(this.options.duration){this.pos=b3=bI.easing[this.easing](b4,this.options.duration*b4,0,1,this.options.duration)}else{this.pos=b3=b4}this.now=(this.end-this.start)*b3+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(e&&e.set){e.set(this)}else{F.propHooks._default.set(this)}return this}};F.prototype.init.prototype=F.prototype;F.propHooks={_default:{get:function(b3){var e;if(b3.elem[b3.prop]!=null&&(!b3.elem.style||b3.elem.style[b3.prop]==null)){return b3.elem[b3.prop]}e=bI.css(b3.elem,b3.prop,"");return !e||e==="auto"?0:e},set:function(e){if(bI.fx.step[e.prop]){bI.fx.step[e.prop](e)}else{if(e.elem.style&&(e.elem.style[bI.cssProps[e.prop]]!=null||bI.cssHooks[e.prop])){bI.style(e.elem,e.prop,e.now+e.unit)}else{e.elem[e.prop]=e.now}}}}};F.propHooks.scrollTop=F.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode){e.elem[e.prop]=e.now}}};bI.each(["toggle","show","hide"],function(b3,e){var b4=bI.fn[e];bI.fn[e]=function(b5,b7,b6){return b5==null||typeof b5==="boolean"?b4.apply(this,arguments):this.animate(bH(e,true),b5,b7,b6)}});bI.fn.extend({fadeTo:function(e,b5,b4,b3){return this.filter(N).css("opacity",0).show().end().animate({opacity:b5},e,b4,b3)},animate:function(b8,b5,b7,b6){var b4=bI.isEmptyObject(b8),e=bI.speed(b5,b7,b6),b3=function(){var b9=f(this,bI.extend({},b8),e);if(b4||bI._data(this,"finish")){b9.stop(true)}};b3.finish=b3;return b4||e.queue===false?this.each(b3):this.queue(e.queue,b3)},stop:function(b4,b3,e){var b5=function(b6){var b7=b6.stop;delete b6.stop;b7(e)};if(typeof b4!=="string"){e=b3;b3=b4;b4=aE}if(b3&&b4!==false){this.queue(b4||"fx",[])}return this.each(function(){var b9=true,b6=b4!=null&&b4+"queueHooks",b8=bI.timers,b7=bI._data(this);if(b6){if(b7[b6]&&b7[b6].stop){b5(b7[b6])}}else{for(b6 in b7){if(b7[b6]&&b7[b6].stop&&bP.test(b6)){b5(b7[b6])}}}for(b6=b8.length;b6--;){if(b8[b6].elem===this&&(b4==null||b8[b6].queue===b4)){b8[b6].anim.stop(e);b9=false;b8.splice(b6,1)}}if(b9||!e){bI.dequeue(this,b4)}})},finish:function(e){if(e!==false){e=e||"fx"}return this.each(function(){var b5,b8=bI._data(this),b4=b8[e+"queue"],b3=b8[e+"queueHooks"],b7=bI.timers,b6=b4?b4.length:0;b8.finish=true;bI.queue(this,e,[]);if(b3&&b3.stop){b3.stop.call(this,true)}for(b5=b7.length;b5--;){if(b7[b5].elem===this&&b7[b5].queue===e){b7[b5].anim.stop(true);b7.splice(b5,1)}}for(b5=0;b5<b6;b5++){if(b4[b5]&&b4[b5].finish){b4[b5].finish.call(this)}}delete b8.finish})}});function bH(b4,b6){var b5,e={height:b4},b3=0;b6=b6?1:0;for(;b3<4;b3+=2-b6){b5=bS[b3];e["margin"+b5]=e["padding"+b5]=b4}if(b6){e.opacity=e.width=b4}return e}bI.each({slideDown:bH("show"),slideUp:bH("hide"),slideToggle:bH("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,b3){bI.fn[e]=function(b4,b6,b5){return this.animate(b3,b4,b6,b5)}});bI.speed=function(b4,b5,b3){var e=b4&&typeof b4==="object"?bI.extend({},b4):{complete:b3||!b3&&b5||bI.isFunction(b4)&&b4,duration:b4,easing:b3&&b5||b5&&!bI.isFunction(b5)&&b5};e.duration=bI.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in bI.fx.speeds?bI.fx.speeds[e.duration]:bI.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(){if(bI.isFunction(e.old)){e.old.call(this)}if(e.queue){bI.dequeue(this,e.queue)}};return e};bI.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2}};bI.timers=[];bI.fx=F.prototype.init;bI.fx.tick=function(){var b4,b3=bI.timers,e=0;J=bI.now();for(;e<b3.length;e++){b4=b3[e];if(!b4()&&b3[e]===b4){b3.splice(e--,1)}}if(!b3.length){bI.fx.stop()}J=aE};bI.fx.timer=function(e){if(e()&&bI.timers.push(e)){bI.fx.start()}};bI.fx.interval=13;bI.fx.start=function(){if(!ab){ab=setInterval(bI.fx.tick,bI.fx.interval)}};bI.fx.stop=function(){clearInterval(ab);ab=null};bI.fx.speeds={slow:600,fast:200,_default:400};bI.fx.step={};if(bI.expr&&bI.expr.filters){bI.expr.filters.animated=function(e){return bI.grep(bI.timers,function(b3){return e===b3.elem}).length}}bI.fn.offset=function(b3){if(arguments.length){return b3===aE?this:this.each(function(b8){bI.offset.setOffset(this,b3,b8)})}var e,b7,b5={top:0,left:0},b4=this[0],b6=b4&&b4.ownerDocument;if(!b6){return}e=b6.documentElement;if(!bI.contains(e,b4)){return b5}if(typeof b4.getBoundingClientRect!==aA){b5=b4.getBoundingClientRect()}b7=bo(b6);return{top:b5.top+(b7.pageYOffset||e.scrollTop)-(e.clientTop||0),left:b5.left+(b7.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};bI.offset={setOffset:function(b5,ce,b8){var b9=bI.css(b5,"position");if(b9==="static"){b5.style.position="relative"}var b7=bI(b5),b3=b7.offset(),e=bI.css(b5,"top"),cc=bI.css(b5,"left"),cd=(b9==="absolute"||b9==="fixed")&&bI.inArray("auto",[e,cc])>-1,cb={},ca={},b4,b6;if(cd){ca=b7.position();b4=ca.top;b6=ca.left}else{b4=parseFloat(e)||0;b6=parseFloat(cc)||0}if(bI.isFunction(ce)){ce=ce.call(b5,b8,b3)}if(ce.top!=null){cb.top=(ce.top-b3.top)+b4}if(ce.left!=null){cb.left=(ce.left-b3.left)+b6}if("using" in ce){ce.using.call(b5,cb)}else{b7.css(cb)}}};bI.fn.extend({position:function(){if(!this[0]){return}var b4,b5,e={top:0,left:0},b3=this[0];if(bI.css(b3,"position")==="fixed"){b5=b3.getBoundingClientRect()}else{b4=this.offsetParent();b5=this.offset();if(!bI.nodeName(b4[0],"html")){e=b4.offset()}e.top+=bI.css(b4[0],"borderTopWidth",true);e.left+=bI.css(b4[0],"borderLeftWidth",true)}return{top:b5.top-e.top-bI.css(b3,"marginTop",true),left:b5.left-e.left-bI.css(b3,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||bV;while(e&&(!bI.nodeName(e,"html")&&bI.css(e,"position")==="static")){e=e.offsetParent}return e||bV})}});bI.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b4,b3){var e=/Y/.test(b3);bI.fn[b4]=function(b5){return bI.access(this,function(b6,b9,b8){var b7=bo(b6);if(b8===aE){return b7?(b3 in b7)?b7[b3]:b7.document.documentElement[b9]:b6[b9]}if(b7){b7.scrollTo(!e?b8:bI(b7).scrollLeft(),e?b8:bI(b7).scrollTop())}else{b6[b9]=b8}},b4,b5,arguments.length,null)}});function bo(e){return bI.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}bI.each({Height:"height",Width:"width"},function(e,b3){bI.each({padding:"inner"+e,content:b3,"":"outer"+e},function(b4,b5){bI.fn[b5]=function(b9,b8){var b7=arguments.length&&(b4||typeof b9!=="boolean"),b6=b4||(b9===true||b8===true?"margin":"border");return bI.access(this,function(cb,ca,cc){var cd;if(bI.isWindow(cb)){return cb.document.documentElement["client"+e]}if(cb.nodeType===9){cd=cb.documentElement;return Math.max(cb.body["scroll"+e],cd["scroll"+e],cb.body["offset"+e],cd["offset"+e],cd["client"+e])}return cc===aE?bI.css(cb,ca,b6):bI.style(cb,ca,cc,b6)},b3,b7?b9:aE,b7,null)}})});bI.fn.size=function(){return this.length};bI.fn.andSelf=bI.fn.addBack;if(typeof module==="object"&&module&&typeof module.exports==="object"){module.exports=bI}else{a1.jQuery=a1.$=bI;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return bI})}}})(window);
/*
 * jQuery Migrate - v1.2.1 - 2013-05-08
 * https://github.com/jquery/jquery-migrate
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
 */
(function(s,p,i){var D={};s.migrateWarnings=[];if(!s.migrateMute&&p.console&&p.console.log){p.console.log("JQMIGRATE: Logging is active")}if(s.migrateTrace===i){s.migrateTrace=true}s.migrateReset=function(){D={};s.migrateWarnings.length=0};function h(H){var G=p.console;if(!D[H]){D[H]=true;s.migrateWarnings.push(H);if(G&&G.warn&&!s.migrateMute){G.warn("JQMIGRATE: "+H);if(s.migrateTrace&&G.trace){G.trace()}}}}function a(I,K,H,J){if(Object.defineProperty){try{Object.defineProperty(I,K,{configurable:true,enumerable:true,get:function(){h(J);return H},set:function(L){h(J);H=L}});return}catch(G){}}s._definePropertyBroken=true;I[K]=H}if(document.compatMode==="BackCompat"){h("jQuery is not compatible with Quirks Mode")}var f=s("<input/>",{size:1}).attr("size")&&s.attrFn,x=s.attr,w=s.attrHooks.value&&s.attrHooks.value.get||function(){return null},j=s.attrHooks.value&&s.attrHooks.value.set||function(){return i},t=/^(?:input|button)$/i,y=/^[238]$/,B=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,k=/^(?:checked|selected)$/i;a(s,"attrFn",f||{},"jQuery.attrFn is deprecated");s.attr=function(K,I,L,J){var H=I.toLowerCase(),G=K&&K.nodeType;if(J){if(x.length<4){h("jQuery.fn.attr( props, pass ) is deprecated")}if(K&&!y.test(G)&&(f?I in f:s.isFunction(s.fn[I]))){return s(K)[I](L)}}if(I==="type"&&L!==i&&t.test(K.nodeName)&&K.parentNode){h("Can't change the 'type' of an input or button in IE 6/7/8")}if(!s.attrHooks[H]&&B.test(H)){s.attrHooks[H]={get:function(N,M){var P,O=s.prop(N,M);return O===true||typeof O!=="boolean"&&(P=N.getAttributeNode(M))&&P.nodeValue!==false?M.toLowerCase():i},set:function(N,P,M){var O;if(P===false){s.removeAttr(N,M)}else{O=s.propFix[M]||M;if(O in N){N[O]=true}N.setAttribute(M,M.toLowerCase())}return M}};if(k.test(H)){h("jQuery.fn.attr('"+H+"') may use property instead of attribute")}}return x.call(s,K,I,L)};s.attrHooks.value={get:function(H,G){var I=(H.nodeName||"").toLowerCase();if(I==="button"){return w.apply(this,arguments)}if(I!=="input"&&I!=="option"){h("jQuery.fn.attr('value') no longer gets properties")}return G in H?H.value:null},set:function(G,H){var I=(G.nodeName||"").toLowerCase();if(I==="button"){return j.apply(this,arguments)}if(I!=="input"&&I!=="option"){h("jQuery.fn.attr('value', val) no longer sets properties")}G.value=H}};var q,E,z=s.fn.init,A=s.parseJSON,v=/^([^<]*)(<[\w\W]+>)([^>]*)$/;s.fn.init=function(G,J,I){var H;if(G&&typeof G==="string"&&!s.isPlainObject(J)&&(H=v.exec(s.trim(G)))&&H[0]){if(G.charAt(0)!=="<"){h("$(html) HTML strings must start with '<' character")}if(H[3]){h("$(html) HTML text after last tag is ignored")}if(H[0].charAt(0)==="#"){h("HTML string cannot start with a '#' character");s.error("JQMIGRATE: Invalid selector string (XSS)")}if(J&&J.context){J=J.context}if(s.parseHTML){return z.call(this,s.parseHTML(H[2],J,true),J,I)}}return z.apply(this,arguments)};s.fn.init.prototype=s.fn;s.parseJSON=function(G){if(!G&&G!==null){h("jQuery.parseJSON requires a valid JSON string");return null}return A.apply(this,arguments)};s.uaMatch=function(H){H=H.toLowerCase();var G=/(chrome)[ \/]([\w.]+)/.exec(H)||/(webkit)[ \/]([\w.]+)/.exec(H)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(H)||/(msie) ([\w.]+)/.exec(H)||H.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(H)||[];return{browser:G[1]||"",version:G[2]||"0"}};if(!s.browser){q=s.uaMatch(navigator.userAgent);E={};if(q.browser){E[q.browser]=true;E.version=q.version}if(E.chrome){E.webkit=true}else{if(E.webkit){E.safari=true}}s.browser=E}a(s,"browser",s.browser,"jQuery.browser is deprecated");s.sub=function(){function G(J,K){return new G.fn.init(J,K)}s.extend(true,G,this);G.superclass=this;G.fn=G.prototype=this();G.fn.constructor=G;G.sub=this.sub;G.fn.init=function I(J,K){if(K&&K instanceof s&&!(K instanceof G)){K=G(K)}return s.fn.init.call(this,J,K,H)};G.fn.init.prototype=G.fn;var H=G(document);h("jQuery.sub() is deprecated");return G};s.ajaxSetup({converters:{"text json":s.parseJSON}});var n=s.fn.data;s.fn.data=function(I){var H,G,J=this[0];if(J&&I==="events"&&arguments.length===1){H=s.data(J,I);G=s._data(J,I);if((H===i||H===G)&&G!==i){h("Use of jQuery.fn.data('events') is deprecated");return G}}return n.apply(this,arguments)};var o=/\/(java|ecma)script/i,u=s.fn.andSelf||s.fn.addBack;s.fn.andSelf=function(){h("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");return u.apply(this,arguments)};if(!s.clean){s.clean=function(G,H,N,J){H=H||document;H=!H.nodeType&&H[0]||H;H=H.ownerDocument||H;h("jQuery.clean() is deprecated");var K,I,L,O,M=[];s.merge(M,s.buildFragment(G,H).childNodes);if(N){L=function(P){if(!P.type||o.test(P.type)){return J?J.push(P.parentNode?P.parentNode.removeChild(P):P):N.appendChild(P)}};for(K=0;(I=M[K])!=null;K++){if(!(s.nodeName(I,"script")&&L(I))){N.appendChild(I);if(typeof I.getElementsByTagName!=="undefined"){O=s.grep(s.merge([],I.getElementsByTagName("script")),L);M.splice.apply(M,[K+1,0].concat(O));K+=O.length}}}}return M}}var c=s.event.add,b=s.event.remove,g=s.event.trigger,r=s.fn.toggle,d=s.fn.live,m=s.fn.die,C="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",e=new RegExp("\\b(?:"+C+")\\b"),F=/(?:^|\s)hover(\.\S+|)\b/,l=function(G){if(typeof(G)!=="string"||s.event.special.hover){return G}if(F.test(G)){h("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'")}return G&&G.replace(F,"mouseenter$1 mouseleave$1")};if(s.event.props&&s.event.props[0]!=="attrChange"){s.event.props.unshift("attrChange","attrName","relatedNode","srcElement")}if(s.event.dispatch){a(s.event,"handle",s.event.dispatch,"jQuery.event.handle is undocumented and deprecated")}s.event.add=function(J,H,I,K,G){if(J!==document&&e.test(H)){h("AJAX events should be attached to document: "+H)}c.call(this,J,l(H||""),I,K,G)};s.event.remove=function(K,I,J,G,H){b.call(this,K,l(I)||"",J,G,H)};s.fn.error=function(){var G=Array.prototype.slice.call(arguments,0);h("jQuery.fn.error() is deprecated");G.splice(0,0,"error");if(arguments.length){return this.bind.apply(this,G)}this.triggerHandler.apply(this,G);return this};s.fn.toggle=function(K,I){if(!s.isFunction(K)||!s.isFunction(I)){return r.apply(this,arguments)}h("jQuery.fn.toggle(handler, handler...) is deprecated");var H=arguments,G=K.guid||s.guid++,J=0,L=function(M){var N=(s._data(this,"lastToggle"+K.guid)||0)%J;s._data(this,"lastToggle"+K.guid,N+1);M.preventDefault();return H[N].apply(this,arguments)||false};L.guid=G;while(J<H.length){H[J++].guid=G}return this.click(L)};s.fn.live=function(G,I,H){h("jQuery.fn.live() is deprecated");if(d){return d.apply(this,arguments)}s(this.context).on(G,this.selector,I,H);return this};s.fn.die=function(G,H){h("jQuery.fn.die() is deprecated");if(m){return m.apply(this,arguments)}s(this.context).off(G,this.selector||"**",H);return this};s.event.trigger=function(I,J,H,G){if(!H&&!e.test(I)){h("Global events are undocumented and deprecated")}return g.call(this,I,J,H||document,G)};s.each(C.split("|"),function(H,G){s.event.special[G]={setup:function(){var I=this;if(I!==document){s.event.add(document,G+"."+s.guid,function(){s.event.trigger(G,null,I,true)});s._data(this,G,s.guid++)}return false},teardown:function(){if(this!==document){s.event.remove(document,G+"."+s._data(this,G))}return false}}})})(jQuery,window);
/*
	Colorbox v1.4.28 - 2013-09-04
	jQuery lightbox and modal window plugin
	(c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
	license: http://www.opensource.org/licenses/mit-license.php
*/
(function(M,l,aa){var N={transition:"elastic",speed:300,fadeOut:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,className:false,retinaImage:false,retinaUrl:false,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:false,returnFocus:true,trapFocus:true,reposition:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:undefined,closeButton:true},x="colorbox",V="cbox",r=V+"Element",Z=V+"_open",e=V+"_load",X=V+"_complete",v=V+"_cleanup",ag=V+"_closed",i=V+"_purge",T,al,am,d,K,p,b,S,c,ae,Q,k,h,o,u,ab,t,U,z,B,I=M("<a/>"),aj,an,m,g,a,w,L,n,D,ac,P,A,O,ai="div",ah,G=0,ad={},af;function J(ao,ar,aq){var ap=l.createElement(ao);if(ar){ap.id=V+ar}if(aq){ap.style.cssText=aq}return M(ap)}function s(){return aa.innerHeight?aa.innerHeight:M(aa).height()}function F(ap){var ao=c.length,aq=(L+ap)%ao;return(aq<0)?ao+aq:aq}function R(ao,ap){return Math.round((/%/.test(ao)?((ap==="x"?ae.width():s())/100):1)*parseInt(ao,10))}function C(ap,ao){return ap.photo||ap.photoRegex.test(ao)}function E(ap,ao){return ap.retinaUrl&&aa.devicePixelRatio>1?ao.replace(ap.photoRegex,ap.retinaSuffix):ao}function ak(ao){if("contains" in al[0]&&!al[0].contains(ao.target)){ao.stopPropagation();al.focus()}}function W(){var ao,ap=M.data(w,x);if(ap==null){aj=M.extend({},N);if(console&&console.log){console.log("Error: cboxElement missing settings object")}}else{aj=M.extend({},ap)}for(ao in aj){if(M.isFunction(aj[ao])&&ao.slice(0,2)!=="on"){aj[ao]=aj[ao].call(w)}}aj.rel=aj.rel||w.rel||M(w).data("rel")||"nofollow";aj.href=aj.href||M(w).attr("href");aj.title=aj.title||w.title;if(typeof aj.href==="string"){aj.href=M.trim(aj.href)}}function H(ao,ap){M(l).trigger(ao);I.trigger(ao);if(M.isFunction(ap)){ap.call(w)}}var y=(function(){var at=V+"Slideshow_",au="click."+V,ap=false,aq;function ao(){clearTimeout(aq)}function aw(){if(aj.loop||c[L+1]){ao();aq=setTimeout(O.next,aj.slideshowSpeed)}}function av(){ab.html(aj.slideshowStop).unbind(au).one(au,ar);I.bind(X,aw).bind(e,ao).bind(v,ar);al.removeClass(at+"off").addClass(at+"on")}function ar(){ao();I.unbind(X,aw).unbind(e,ao).unbind(v,ar);ab.html(aj.slideshowStart).unbind(au).one(au,function(){O.next();av()});al.removeClass(at+"on").addClass(at+"off")}return function(){if(ap){if(aj.slideshow){return}else{ap=false;ab.hide();ao();I.unbind(X,aw).unbind(e,ao).unbind(v,ar);al.removeClass(at+"off "+at+"on")}}else{if(aj.slideshow&&c[1]){ap=true;if(aj.slideshowAuto){av()}else{ar()}ab.show()}}}}());function f(ao){if(!P){w=ao;W();c=M(w);L=0;if(aj.rel!=="nofollow"){c=M("."+r).filter(function(){var aq=M.data(this,x),ap;if(aq){ap=M(this).data("rel")||aq.rel||this.rel}return(ap===aj.rel)});L=c.index(w);if(L===-1){c=c.add(w);L=c.length-1}}T.css({opacity:parseFloat(aj.opacity),cursor:aj.overlayClose?"pointer":"auto",visibility:"visible"}).show();if(ah){al.add(T).removeClass(ah)}if(aj.className){al.add(T).addClass(aj.className)}ah=aj.className;if(aj.closeButton){z.html(aj.close).appendTo(d)}else{z.appendTo("<div/>")}if(!D){D=ac=true;al.css({visibility:"hidden",display:"block"});Q=J(ai,"LoadedContent","width:0; height:0; overflow:hidden");d.css({width:"",height:""}).append(Q);an=K.height()+S.height()+d.outerHeight(true)-d.height();m=p.width()+b.width()+d.outerWidth(true)-d.width();g=Q.outerHeight(true);a=Q.outerWidth(true);aj.w=R(aj.initialWidth,"x");aj.h=R(aj.initialHeight,"y");O.position();H(Z,aj.onOpen);B.add(o).hide();al.focus();if(aj.trapFocus){if(l.addEventListener){l.addEventListener("focus",ak,true);I.one(ag,function(){l.removeEventListener("focus",ak,true)})}}if(aj.returnFocus){I.one(ag,function(){M(w).focus()})}}Y()}}function q(){if(!al&&l.body){af=false;ae=M(aa);al=J(ai).attr({id:x,"class":M.support.opacity===false?V+"IE":"",role:"dialog",tabindex:"-1"}).hide();T=J(ai,"Overlay").hide();h=M([J(ai,"LoadingOverlay")[0],J(ai,"LoadingGraphic")[0]]);am=J(ai,"Wrapper");d=J(ai,"Content").append(o=J(ai,"Title"),u=J(ai,"Current"),U=M('<button type="button"/>').attr({id:V+"Previous"}),t=M('<button type="button"/>').attr({id:V+"Next"}),ab=J("button","Slideshow"),h);z=M('<button type="button"/>').attr({id:V+"Close"});am.append(J(ai).append(J(ai,"TopLeft"),K=J(ai,"TopCenter"),J(ai,"TopRight")),J(ai,false,"clear:left").append(p=J(ai,"MiddleLeft"),d,b=J(ai,"MiddleRight")),J(ai,false,"clear:left").append(J(ai,"BottomLeft"),S=J(ai,"BottomCenter"),J(ai,"BottomRight"))).find("div div").css({"float":"left"});k=J(ai,false,"position:absolute; width:9999px; visibility:hidden; display:none");B=t.add(U).add(u).add(ab);M(l.body).append(T,al.append(am,k))}}function j(){function ao(ap){if(!(ap.which>1||ap.shiftKey||ap.altKey||ap.metaKey||ap.ctrlKey)){ap.preventDefault();f(this)}}if(al){if(!af){af=true;t.click(function(){O.next()});U.click(function(){O.prev()});z.click(function(){O.close()});T.click(function(){if(aj.overlayClose){O.close()}});M(l).bind("keydown."+V,function(aq){var ap=aq.keyCode;if(D&&aj.escKey&&ap===27){aq.preventDefault();O.close()}if(D&&aj.arrowKey&&c[1]&&!aq.altKey){if(ap===37){aq.preventDefault();U.click()}else{if(ap===39){aq.preventDefault();t.click()}}}});if(M.isFunction(M.fn.on)){M(l).on("click."+V,"."+r,ao)}else{M("."+r).live("click."+V,ao)}}return true}return false}if(M.colorbox){return}M(q);O=M.fn[x]=M[x]=function(ao,aq){var ap=this;ao=ao||{};q();if(j()){if(M.isFunction(ap)){ap=M("<a/>");ao.open=true}else{if(!ap[0]){return ap}}if(aq){ao.onComplete=aq}ap.each(function(){M.data(this,x,M.extend({},M.data(this,x)||N,ao))}).addClass(r);if((M.isFunction(ao.open)&&ao.open.call(ap))||ao.open){f(ap[0])}}return ap};O.position=function(aq,at){var aw,ay=0,ap=0,au=al.offset(),ao,ar;ae.unbind("resize."+V);al.css({top:-90000,left:-90000});ao=ae.scrollTop();ar=ae.scrollLeft();if(aj.fixed){au.top-=ao;au.left-=ar;al.css({position:"fixed"})}else{ay=ao;ap=ar;al.css({position:"absolute"})}if(aj.right!==false){ap+=Math.max(ae.width()-aj.w-a-m-R(aj.right,"x"),0)}else{if(aj.left!==false){ap+=R(aj.left,"x")}else{ap+=Math.round(Math.max(ae.width()-aj.w-a-m,0)/2)}}if(aj.bottom!==false){ay+=Math.max(s()-aj.h-g-an-R(aj.bottom,"y"),0)}else{if(aj.top!==false){ay+=R(aj.top,"y")}else{ay+=Math.round(Math.max(s()-aj.h-g-an,0)/2)}}al.css({top:au.top,left:au.left,visibility:"visible"});am[0].style.width=am[0].style.height="9999px";function ax(){K[0].style.width=S[0].style.width=d[0].style.width=(parseInt(al[0].style.width,10)-m)+"px";d[0].style.height=p[0].style.height=b[0].style.height=(parseInt(al[0].style.height,10)-an)+"px"}aw={width:aj.w+a+m,height:aj.h+g+an,top:ay,left:ap};if(aq){var av=0;M.each(aw,function(az){if(aw[az]!==ad[az]){av=aq;return}});aq=av}ad=aw;if(!aq){al.css(aw)}al.dequeue().animate(aw,{duration:aq||0,complete:function(){ax();ac=false;am[0].style.width=(aj.w+a+m)+"px";am[0].style.height=(aj.h+g+an)+"px";if(aj.reposition){setTimeout(function(){ae.bind("resize."+V,O.position)},1)}if(at){at()}},step:ax})};O.resize=function(ap){var ao;if(D){ap=ap||{};if(ap.width){aj.w=R(ap.width,"x")-a-m}if(ap.innerWidth){aj.w=R(ap.innerWidth,"x")}Q.css({width:aj.w});if(ap.height){aj.h=R(ap.height,"y")-g-an}if(ap.innerHeight){aj.h=R(ap.innerHeight,"y")}if(!ap.innerHeight&&!ap.height){ao=Q.scrollTop();Q.css({height:"auto"});aj.h=Q.height()}Q.css({height:aj.h});if(ao){Q.scrollTop(ao)}O.position(aj.transition==="none"?0:aj.speed)}};O.prep=function(ap){if(!D){return}var at,aq=aj.transition==="none"?0:aj.speed;Q.empty().remove();Q=J(ai,"LoadedContent").append(ap);function ao(){aj.w=aj.w||Q.width();aj.w=aj.mw&&aj.mw<aj.w?aj.mw:aj.w;return aj.w}function ar(){aj.h=aj.h||Q.height();aj.h=aj.mh&&aj.mh<aj.h?aj.mh:aj.h;return aj.h}Q.hide().appendTo(k.show()).css({width:ao(),overflow:aj.scrolling?"auto":"hidden"}).css({height:ar()}).prependTo(d);k.hide();M(n).css({"float":"none"});at=function(){var ay=c.length,aw,ax="frameBorder",au="allowTransparency",av;if(!D){return}function az(){if(M.support.opacity===false){al[0].style.removeAttribute("filter")}}av=function(){clearTimeout(A);h.hide();H(X,aj.onComplete)};o.html(aj.title).add(Q).show();if(ay>1){if(typeof aj.current==="string"){u.html(aj.current.replace("{current}",L+1).replace("{total}",ay)).show()}t[(aj.loop||L<ay-1)?"show":"hide"]().html(aj.next);U[(aj.loop||L)?"show":"hide"]().html(aj.previous);y();if(aj.preloading){M.each([F(-1),F(1)],function(){var aD,aA,aB=c[this],aC=M.data(aB,x);if(aC&&aC.href){aD=aC.href;if(M.isFunction(aD)){aD=aD.call(aB)}}else{aD=M(aB).attr("href")}if(aD&&C(aC,aD)){aD=E(aC,aD);aA=l.createElement("img");aA.src=aD}})}}else{B.hide()}if(aj.iframe){aw=J("iframe")[0];if(ax in aw){aw[ax]=0}if(au in aw){aw[au]="true"}if(!aj.scrolling){aw.scrolling="no"}M(aw).attr({src:aj.href,name:(new Date()).getTime(),"class":V+"Iframe",allowFullScreen:true,webkitAllowFullScreen:true,mozallowfullscreen:true}).one("load",av).appendTo(Q);I.one(i,function(){aw.src="//about:blank"});if(aj.fastIframe){M(aw).trigger("load")}}else{av()}if(aj.transition==="fade"){al.fadeTo(aq,1,az)}else{az()}};if(aj.transition==="fade"){al.fadeTo(aq,0,function(){O.position(0,at)})}else{O.position(aq,at)}};function Y(){var aq,ar,ap=O.prep,ao,at=++G;ac=true;n=false;w=c[L];W();H(i);H(e,aj.onLoad);aj.h=aj.height?R(aj.height,"y")-g-an:aj.innerHeight&&R(aj.innerHeight,"y");aj.w=aj.width?R(aj.width,"x")-a-m:aj.innerWidth&&R(aj.innerWidth,"x");aj.mw=aj.w;aj.mh=aj.h;if(aj.maxWidth){aj.mw=R(aj.maxWidth,"x")-a-m;aj.mw=aj.w&&aj.w<aj.mw?aj.w:aj.mw}if(aj.maxHeight){aj.mh=R(aj.maxHeight,"y")-g-an;aj.mh=aj.h&&aj.h<aj.mh?aj.h:aj.mh}aq=aj.href;A=setTimeout(function(){h.show()},100);if(aj.inline){ao=J(ai).hide().insertBefore(M(aq)[0]);I.one(i,function(){ao.replaceWith(Q.children())});ap(M(aq))}else{if(aj.iframe){ap(" ")}else{if(aj.html){ap(aj.html)}else{if(C(aj,aq)){aq=E(aj,aq);n=l.createElement("img");M(n).addClass(V+"Photo").bind("error",function(){aj.title=false;ap(J(ai,"Error").html(aj.imgError))}).one("load",function(){var au;if(at!==G){return}n.alt=M(w).attr("alt")||M(w).attr("data-alt")||"";if(aj.retinaImage&&aa.devicePixelRatio>1){n.height=n.height/aa.devicePixelRatio;n.width=n.width/aa.devicePixelRatio}if(aj.scalePhotos){ar=function(){n.height-=n.height*au;n.width-=n.width*au};if(aj.mw&&n.width>aj.mw){au=(n.width-aj.mw)/n.width;ar()}if(aj.mh&&n.height>aj.mh){au=(n.height-aj.mh)/n.height;ar()}}if(aj.h){n.style.marginTop=Math.max(aj.mh-n.height,0)/2+"px"}if(c[1]&&(aj.loop||c[L+1])){n.style.cursor="pointer";n.onclick=function(){O.next()}}n.style.width=n.width+"px";n.style.height=n.height+"px";setTimeout(function(){ap(n)},1)});setTimeout(function(){n.src=aq},1)}else{if(aq){k.load(aq,aj.data,function(av,au){if(at===G){ap(au==="error"?J(ai,"Error").html(aj.xhrError):M(this).contents())}})}}}}}}O.next=function(){if(!ac&&c[1]&&(aj.loop||c[L+1])){L=F(1);f(c[L])}};O.prev=function(){if(!ac&&c[1]&&(aj.loop||L)){L=F(-1);f(c[L])}};O.close=function(){if(D&&!P){P=true;D=false;H(v,aj.onCleanup);ae.unbind("."+V);T.fadeTo(aj.fadeOut||0,0);al.stop().fadeTo(aj.fadeOut||0,0,function(){al.add(T).css({opacity:1,cursor:"auto"}).hide();H(i);Q.empty().remove();setTimeout(function(){P=false;H(ag,aj.onClosed)},1)})}};O.remove=function(){if(!al){return}al.stop();M.colorbox.close();al.stop().remove();T.remove();P=false;al=null;M("."+r).removeData(x).removeClass(r);M(l).unbind("click."+V)};O.element=function(){return M(w)};O.settings=N}(jQuery,document,window));(function(window,document,undefined){(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{if(jQuery&&!jQuery.fn.dataTable){factory(jQuery)}}}(function($){var DataTable=function(oInit){function _fnAddColumn(oSettings,nTh){var oDefaults=DataTable.defaults.columns;var iCol=oSettings.aoColumns.length;var oCol=$.extend({},DataTable.models.oColumn,oDefaults,{sSortingClass:oSettings.oClasses.sSortable,sSortingClassJUI:oSettings.oClasses.sSortJUI,nTh:nTh?nTh:document.createElement("th"),sTitle:oDefaults.sTitle?oDefaults.sTitle:nTh?nTh.innerHTML:"",aDataSort:oDefaults.aDataSort?oDefaults.aDataSort:[iCol],mData:oDefaults.mData?oDefaults.oDefaults:iCol});oSettings.aoColumns.push(oCol);if(oSettings.aoPreSearchCols[iCol]===undefined||oSettings.aoPreSearchCols[iCol]===null){oSettings.aoPreSearchCols[iCol]=$.extend({},DataTable.models.oSearch)}else{var oPre=oSettings.aoPreSearchCols[iCol];if(oPre.bRegex===undefined){oPre.bRegex=true}if(oPre.bSmart===undefined){oPre.bSmart=true}if(oPre.bCaseInsensitive===undefined){oPre.bCaseInsensitive=true}}_fnColumnOptions(oSettings,iCol,null)}function _fnColumnOptions(oSettings,iCol,oOptions){var oCol=oSettings.aoColumns[iCol];if(oOptions!==undefined&&oOptions!==null){if(oOptions.mDataProp&&!oOptions.mData){oOptions.mData=oOptions.mDataProp}if(oOptions.sType!==undefined){oCol.sType=oOptions.sType;oCol._bAutoType=false}$.extend(oCol,oOptions);_fnMap(oCol,oOptions,"sWidth","sWidthOrig");if(oOptions.iDataSort!==undefined){oCol.aDataSort=[oOptions.iDataSort]}_fnMap(oCol,oOptions,"aDataSort")}var mRender=oCol.mRender?_fnGetObjectDataFn(oCol.mRender):null;var mData=_fnGetObjectDataFn(oCol.mData);oCol.fnGetData=function(oData,sSpecific){var innerData=mData(oData,sSpecific);if(oCol.mRender&&(sSpecific&&sSpecific!=="")){return mRender(innerData,sSpecific,oData)}return innerData};oCol.fnSetData=_fnSetObjectDataFn(oCol.mData);if(!oSettings.oFeatures.bSort){oCol.bSortable=false}if(!oCol.bSortable||($.inArray("asc",oCol.asSorting)==-1&&$.inArray("desc",oCol.asSorting)==-1)){oCol.sSortingClass=oSettings.oClasses.sSortableNone;oCol.sSortingClassJUI=""}else{if($.inArray("asc",oCol.asSorting)==-1&&$.inArray("desc",oCol.asSorting)==-1){oCol.sSortingClass=oSettings.oClasses.sSortable;oCol.sSortingClassJUI=oSettings.oClasses.sSortJUI}else{if($.inArray("asc",oCol.asSorting)!=-1&&$.inArray("desc",oCol.asSorting)==-1){oCol.sSortingClass=oSettings.oClasses.sSortableAsc;oCol.sSortingClassJUI=oSettings.oClasses.sSortJUIAscAllowed}else{if($.inArray("asc",oCol.asSorting)==-1&&$.inArray("desc",oCol.asSorting)!=-1){oCol.sSortingClass=oSettings.oClasses.sSortableDesc;oCol.sSortingClassJUI=oSettings.oClasses.sSortJUIDescAllowed}}}}}function _fnAdjustColumnSizing(oSettings){if(oSettings.oFeatures.bAutoWidth===false){return false}_fnCalculateColumnWidths(oSettings);for(var i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){oSettings.aoColumns[i].nTh.style.width=oSettings.aoColumns[i].sWidth}}function _fnVisibleToColumnIndex(oSettings,iMatch){var aiVis=_fnGetColumns(oSettings,"bVisible");return typeof aiVis[iMatch]==="number"?aiVis[iMatch]:null}function _fnColumnIndexToVisible(oSettings,iMatch){var aiVis=_fnGetColumns(oSettings,"bVisible");var iPos=$.inArray(iMatch,aiVis);return iPos!==-1?iPos:null}function _fnVisbleColumns(oSettings){return _fnGetColumns(oSettings,"bVisible").length}function _fnGetColumns(oSettings,sParam){var a=[];$.map(oSettings.aoColumns,function(val,i){if(val[sParam]){a.push(i)}});return a}function _fnDetectType(sData){var aTypes=DataTable.ext.aTypes;var iLen=aTypes.length;for(var i=0;i<iLen;i++){var sType=aTypes[i](sData);if(sType!==null){return sType}}return"string"}function _fnReOrderIndex(oSettings,sColumns){var aColumns=sColumns.split(",");var aiReturn=[];for(var i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){for(var j=0;j<iLen;j++){if(oSettings.aoColumns[i].sName==aColumns[j]){aiReturn.push(j);break}}}return aiReturn}function _fnColumnOrdering(oSettings){var sNames="";for(var i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){sNames+=oSettings.aoColumns[i].sName+","}if(sNames.length==iLen){return""}return sNames.slice(0,-1)}function _fnApplyColumnDefs(oSettings,aoColDefs,aoCols,fn){var i,iLen,j,jLen,k,kLen;if(aoColDefs){for(i=aoColDefs.length-1;i>=0;i--){var aTargets=aoColDefs[i].aTargets;if(!$.isArray(aTargets)){_fnLog(oSettings,1,"aTargets must be an array of targets, not a "+(typeof aTargets))}for(j=0,jLen=aTargets.length;j<jLen;j++){if(typeof aTargets[j]==="number"&&aTargets[j]>=0){while(oSettings.aoColumns.length<=aTargets[j]){_fnAddColumn(oSettings)}fn(aTargets[j],aoColDefs[i])}else{if(typeof aTargets[j]==="number"&&aTargets[j]<0){fn(oSettings.aoColumns.length+aTargets[j],aoColDefs[i])}else{if(typeof aTargets[j]==="string"){for(k=0,kLen=oSettings.aoColumns.length;k<kLen;k++){if(aTargets[j]=="_all"||$(oSettings.aoColumns[k].nTh).hasClass(aTargets[j])){fn(k,aoColDefs[i])}}}}}}}}if(aoCols){for(i=0,iLen=aoCols.length;i<iLen;i++){fn(i,aoCols[i])}}}function _fnAddData(oSettings,aDataSupplied){var oCol;var aDataIn=($.isArray(aDataSupplied))?aDataSupplied.slice():$.extend(true,{},aDataSupplied);var iRow=oSettings.aoData.length;var oData=$.extend(true,{},DataTable.models.oRow);oData._aData=aDataIn;oSettings.aoData.push(oData);var nTd,sThisType;for(var i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){oCol=oSettings.aoColumns[i];if(typeof oCol.fnRender==="function"&&oCol.bUseRendered&&oCol.mData!==null){_fnSetCellData(oSettings,iRow,i,_fnRender(oSettings,iRow,i))}else{_fnSetCellData(oSettings,iRow,i,_fnGetCellData(oSettings,iRow,i))}if(oCol._bAutoType&&oCol.sType!="string"){var sVarType=_fnGetCellData(oSettings,iRow,i,"type");if(sVarType!==null&&sVarType!==""){sThisType=_fnDetectType(sVarType);if(oCol.sType===null){oCol.sType=sThisType}else{if(oCol.sType!=sThisType&&oCol.sType!="html"){oCol.sType="string"}}}}}oSettings.aiDisplayMaster.push(iRow);if(!oSettings.oFeatures.bDeferRender){_fnCreateTr(oSettings,iRow)}return iRow}function _fnGatherData(oSettings){var iLoop,i,iLen,j,jLen,jInner,nTds,nTrs,nTd,nTr,aLocalData,iThisIndex,iRow,iRows,iColumn,iColumns,sNodeName,oCol,oData;if(oSettings.bDeferLoading||oSettings.sAjaxSource===null){nTr=oSettings.nTBody.firstChild;while(nTr){if(nTr.nodeName.toUpperCase()=="TR"){iThisIndex=oSettings.aoData.length;nTr._DT_RowIndex=iThisIndex;oSettings.aoData.push($.extend(true,{},DataTable.models.oRow,{nTr:nTr}));oSettings.aiDisplayMaster.push(iThisIndex);nTd=nTr.firstChild;jInner=0;while(nTd){sNodeName=nTd.nodeName.toUpperCase();if(sNodeName=="TD"||sNodeName=="TH"){_fnSetCellData(oSettings,iThisIndex,jInner,$.trim(nTd.innerHTML));jInner++}nTd=nTd.nextSibling}}nTr=nTr.nextSibling}}nTrs=_fnGetTrNodes(oSettings);nTds=[];for(i=0,iLen=nTrs.length;i<iLen;i++){nTd=nTrs[i].firstChild;while(nTd){sNodeName=nTd.nodeName.toUpperCase();if(sNodeName=="TD"||sNodeName=="TH"){nTds.push(nTd)}nTd=nTd.nextSibling}}for(iColumn=0,iColumns=oSettings.aoColumns.length;iColumn<iColumns;iColumn++){oCol=oSettings.aoColumns[iColumn];if(oCol.sTitle===null){oCol.sTitle=oCol.nTh.innerHTML}var bAutoType=oCol._bAutoType,bRender=typeof oCol.fnRender==="function",bClass=oCol.sClass!==null,bVisible=oCol.bVisible,nCell,sThisType,sRendered,sValType;if(bAutoType||bRender||bClass||!bVisible){for(iRow=0,iRows=oSettings.aoData.length;iRow<iRows;iRow++){oData=oSettings.aoData[iRow];nCell=nTds[(iRow*iColumns)+iColumn];if(bAutoType&&oCol.sType!="string"){sValType=_fnGetCellData(oSettings,iRow,iColumn,"type");if(sValType!==""){sThisType=_fnDetectType(sValType);if(oCol.sType===null){oCol.sType=sThisType}else{if(oCol.sType!=sThisType&&oCol.sType!="html"){oCol.sType="string"}}}}if(oCol.mRender){nCell.innerHTML=_fnGetCellData(oSettings,iRow,iColumn,"display")}else{if(oCol.mData!==iColumn){nCell.innerHTML=_fnGetCellData(oSettings,iRow,iColumn,"display")}}if(bRender){sRendered=_fnRender(oSettings,iRow,iColumn);nCell.innerHTML=sRendered;if(oCol.bUseRendered){_fnSetCellData(oSettings,iRow,iColumn,sRendered)}}if(bClass){nCell.className+=" "+oCol.sClass}if(!bVisible){oData._anHidden[iColumn]=nCell;nCell.parentNode.removeChild(nCell)}else{oData._anHidden[iColumn]=null}if(oCol.fnCreatedCell){oCol.fnCreatedCell.call(oSettings.oInstance,nCell,_fnGetCellData(oSettings,iRow,iColumn,"display"),oData._aData,iRow,iColumn)}}}}if(oSettings.aoRowCreatedCallback.length!==0){for(i=0,iLen=oSettings.aoData.length;i<iLen;i++){oData=oSettings.aoData[i];_fnCallbackFire(oSettings,"aoRowCreatedCallback",null,[oData.nTr,oData._aData,i])}}}function _fnNodeToDataIndex(oSettings,n){return(n._DT_RowIndex!==undefined)?n._DT_RowIndex:null}function _fnNodeToColumnIndex(oSettings,iRow,n){var anCells=_fnGetTdNodes(oSettings,iRow);for(var i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){if(anCells[i]===n){return i}}return -1}function _fnGetRowData(oSettings,iRow,sSpecific,aiColumns){var out=[];for(var i=0,iLen=aiColumns.length;i<iLen;i++){out.push(_fnGetCellData(oSettings,iRow,aiColumns[i],sSpecific))}return out}function _fnGetCellData(oSettings,iRow,iCol,sSpecific){var sData;var oCol=oSettings.aoColumns[iCol];var oData=oSettings.aoData[iRow]._aData;if((sData=oCol.fnGetData(oData,sSpecific))===undefined){if(oSettings.iDrawError!=oSettings.iDraw&&oCol.sDefaultContent===null){_fnLog(oSettings,0,"Requested unknown parameter "+(typeof oCol.mData=="function"?"{mData function}":"'"+oCol.mData+"'")+" from the data source for row "+iRow);oSettings.iDrawError=oSettings.iDraw}return oCol.sDefaultContent}if(sData===null&&oCol.sDefaultContent!==null){sData=oCol.sDefaultContent}else{if(typeof sData==="function"){return sData()}}if(sSpecific=="display"&&sData===null){return""}return sData}function _fnSetCellData(oSettings,iRow,iCol,val){var oCol=oSettings.aoColumns[iCol];var oData=oSettings.aoData[iRow]._aData;oCol.fnSetData(oData,val)}var __reArray=/\[.*?\]$/;function _fnGetObjectDataFn(mSource){if(mSource===null){return function(data,type){return null}}else{if(typeof mSource==="function"){return function(data,type,extra){return mSource(data,type,extra)}}else{if(typeof mSource==="string"&&(mSource.indexOf(".")!==-1||mSource.indexOf("[")!==-1)){var fetchData=function(data,type,src){var a=src.split(".");var arrayNotation,out,innerSrc;if(src!==""){for(var i=0,iLen=a.length;i<iLen;i++){arrayNotation=a[i].match(__reArray);if(arrayNotation){a[i]=a[i].replace(__reArray,"");if(a[i]!==""){data=data[a[i]]}out=[];a.splice(0,i+1);innerSrc=a.join(".");for(var j=0,jLen=data.length;j<jLen;j++){out.push(fetchData(data[j],type,innerSrc))}var join=arrayNotation[0].substring(1,arrayNotation[0].length-1);data=(join==="")?out:out.join(join);break}if(data===null||data[a[i]]===undefined){return undefined}data=data[a[i]]}}return data};return function(data,type){return fetchData(data,type,mSource)}}else{return function(data,type){return data[mSource]}}}}}function _fnSetObjectDataFn(mSource){if(mSource===null){return function(data,val){}}else{if(typeof mSource==="function"){return function(data,val){mSource(data,"set",val)}}else{if(typeof mSource==="string"&&(mSource.indexOf(".")!==-1||mSource.indexOf("[")!==-1)){var setData=function(data,val,src){var a=src.split("."),b;var arrayNotation,o,innerSrc;for(var i=0,iLen=a.length-1;i<iLen;i++){arrayNotation=a[i].match(__reArray);if(arrayNotation){a[i]=a[i].replace(__reArray,"");data[a[i]]=[];b=a.slice();b.splice(0,i+1);innerSrc=b.join(".");for(var j=0,jLen=val.length;j<jLen;j++){o={};setData(o,val[j],innerSrc);data[a[i]].push(o)}return}if(data[a[i]]===null||data[a[i]]===undefined){data[a[i]]={}}data=data[a[i]]}data[a[a.length-1].replace(__reArray,"")]=val};return function(data,val){return setData(data,val,mSource)}}else{return function(data,val){data[mSource]=val}}}}}function _fnGetDataMaster(oSettings){var aData=[];var iLen=oSettings.aoData.length;for(var i=0;i<iLen;i++){aData.push(oSettings.aoData[i]._aData)}return aData}function _fnClearTable(oSettings){oSettings.aoData.splice(0,oSettings.aoData.length);oSettings.aiDisplayMaster.splice(0,oSettings.aiDisplayMaster.length);oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);_fnCalculateEnd(oSettings)}function _fnDeleteIndex(a,iTarget){var iTargetIndex=-1;for(var i=0,iLen=a.length;i<iLen;i++){if(a[i]==iTarget){iTargetIndex=i}else{if(a[i]>iTarget){a[i]--}}}if(iTargetIndex!=-1){a.splice(iTargetIndex,1)}}function _fnRender(oSettings,iRow,iCol){var oCol=oSettings.aoColumns[iCol];return oCol.fnRender({iDataRow:iRow,iDataColumn:iCol,oSettings:oSettings,aData:oSettings.aoData[iRow]._aData,mDataProp:oCol.mData},_fnGetCellData(oSettings,iRow,iCol,"display"))}function _fnCreateTr(oSettings,iRow){var oData=oSettings.aoData[iRow];var nTd;if(oData.nTr===null){oData.nTr=document.createElement("tr");oData.nTr._DT_RowIndex=iRow;if(oData._aData.DT_RowId){oData.nTr.id=oData._aData.DT_RowId}if(oData._aData.DT_RowClass){oData.nTr.className=oData._aData.DT_RowClass}for(var i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){var oCol=oSettings.aoColumns[i];nTd=document.createElement(oCol.sCellType);nTd.innerHTML=(typeof oCol.fnRender==="function"&&(!oCol.bUseRendered||oCol.mData===null))?_fnRender(oSettings,iRow,i):_fnGetCellData(oSettings,iRow,i,"display");if(oCol.sClass!==null){nTd.className=oCol.sClass}if(oCol.bVisible){oData.nTr.appendChild(nTd);oData._anHidden[i]=null}else{oData._anHidden[i]=nTd}if(oCol.fnCreatedCell){oCol.fnCreatedCell.call(oSettings.oInstance,nTd,_fnGetCellData(oSettings,iRow,i,"display"),oData._aData,iRow,i)}}_fnCallbackFire(oSettings,"aoRowCreatedCallback",null,[oData.nTr,oData._aData,iRow])}}function _fnBuildHead(oSettings){var i,nTh,iLen,j,jLen;var iThs=$("th, td",oSettings.nTHead).length;var iCorrector=0;var jqChildren;if(iThs!==0){for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){nTh=oSettings.aoColumns[i].nTh;nTh.setAttribute("role","columnheader");if(oSettings.aoColumns[i].bSortable){nTh.setAttribute("tabindex",oSettings.iTabIndex);nTh.setAttribute("aria-controls",oSettings.sTableId)}if(oSettings.aoColumns[i].sClass!==null){$(nTh).addClass(oSettings.aoColumns[i].sClass)}if(oSettings.aoColumns[i].sTitle!=nTh.innerHTML){nTh.innerHTML=oSettings.aoColumns[i].sTitle}}}else{var nTr=document.createElement("tr");for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){nTh=oSettings.aoColumns[i].nTh;nTh.innerHTML=oSettings.aoColumns[i].sTitle;nTh.setAttribute("tabindex","0");if(oSettings.aoColumns[i].sClass!==null){$(nTh).addClass(oSettings.aoColumns[i].sClass)}nTr.appendChild(nTh)}$(oSettings.nTHead).html("")[0].appendChild(nTr);_fnDetectHeader(oSettings.aoHeader,oSettings.nTHead)}$(oSettings.nTHead).children("tr").attr("role","row");if(oSettings.bJUI){for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){nTh=oSettings.aoColumns[i].nTh;var nDiv=document.createElement("div");nDiv.className=oSettings.oClasses.sSortJUIWrapper;$(nTh).contents().appendTo(nDiv);var nSpan=document.createElement("span");nSpan.className=oSettings.oClasses.sSortIcon;nDiv.appendChild(nSpan);nTh.appendChild(nDiv)}}if(oSettings.oFeatures.bSort){for(i=0;i<oSettings.aoColumns.length;i++){if(oSettings.aoColumns[i].bSortable!==false){_fnSortAttachListener(oSettings,oSettings.aoColumns[i].nTh,i)}else{$(oSettings.aoColumns[i].nTh).addClass(oSettings.oClasses.sSortableNone)}}}if(oSettings.oClasses.sFooterTH!==""){$(oSettings.nTFoot).children("tr").children("th").addClass(oSettings.oClasses.sFooterTH)}if(oSettings.nTFoot!==null){var anCells=_fnGetUniqueThs(oSettings,null,oSettings.aoFooter);for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){if(anCells[i]){oSettings.aoColumns[i].nTf=anCells[i];if(oSettings.aoColumns[i].sClass){$(anCells[i]).addClass(oSettings.aoColumns[i].sClass)}}}}}function _fnDrawHead(oSettings,aoSource,bIncludeHidden){var i,iLen,j,jLen,k,kLen,n,nLocalTr;var aoLocal=[];var aApplied=[];var iColumns=oSettings.aoColumns.length;var iRowspan,iColspan;if(bIncludeHidden===undefined){bIncludeHidden=false}for(i=0,iLen=aoSource.length;i<iLen;i++){aoLocal[i]=aoSource[i].slice();aoLocal[i].nTr=aoSource[i].nTr;for(j=iColumns-1;j>=0;j--){if(!oSettings.aoColumns[j].bVisible&&!bIncludeHidden){aoLocal[i].splice(j,1)}}aApplied.push([])}for(i=0,iLen=aoLocal.length;i<iLen;i++){nLocalTr=aoLocal[i].nTr;if(nLocalTr){while((n=nLocalTr.firstChild)){nLocalTr.removeChild(n)}}for(j=0,jLen=aoLocal[i].length;j<jLen;j++){iRowspan=1;iColspan=1;if(aApplied[i][j]===undefined){nLocalTr.appendChild(aoLocal[i][j].cell);aApplied[i][j]=1;while(aoLocal[i+iRowspan]!==undefined&&aoLocal[i][j].cell==aoLocal[i+iRowspan][j].cell){aApplied[i+iRowspan][j]=1;iRowspan++}while(aoLocal[i][j+iColspan]!==undefined&&aoLocal[i][j].cell==aoLocal[i][j+iColspan].cell){for(k=0;k<iRowspan;k++){aApplied[i+k][j+iColspan]=1}iColspan++}aoLocal[i][j].cell.rowSpan=iRowspan;aoLocal[i][j].cell.colSpan=iColspan}}}}function _fnDraw(oSettings){var aPreDraw=_fnCallbackFire(oSettings,"aoPreDrawCallback","preDraw",[oSettings]);if($.inArray(false,aPreDraw)!==-1){_fnProcessingDisplay(oSettings,false);return}var i,iLen,n;var anRows=[];var iRowCount=0;var iStripes=oSettings.asStripeClasses.length;var iOpenRows=oSettings.aoOpenRows.length;oSettings.bDrawing=true;if(oSettings.iInitDisplayStart!==undefined&&oSettings.iInitDisplayStart!=-1){if(oSettings.oFeatures.bServerSide){oSettings._iDisplayStart=oSettings.iInitDisplayStart}else{oSettings._iDisplayStart=(oSettings.iInitDisplayStart>=oSettings.fnRecordsDisplay())?0:oSettings.iInitDisplayStart}oSettings.iInitDisplayStart=-1;_fnCalculateEnd(oSettings)}if(oSettings.bDeferLoading){oSettings.bDeferLoading=false;oSettings.iDraw++}else{if(!oSettings.oFeatures.bServerSide){oSettings.iDraw++}else{if(!oSettings.bDestroying&&!_fnAjaxUpdate(oSettings)){return}}}if(oSettings.aiDisplay.length!==0){var iStart=oSettings._iDisplayStart;var iEnd=oSettings._iDisplayEnd;if(oSettings.oFeatures.bServerSide){iStart=0;iEnd=oSettings.aoData.length}for(var j=iStart;j<iEnd;j++){var aoData=oSettings.aoData[oSettings.aiDisplay[j]];if(aoData.nTr===null){_fnCreateTr(oSettings,oSettings.aiDisplay[j])}var nRow=aoData.nTr;if(iStripes!==0){var sStripe=oSettings.asStripeClasses[iRowCount%iStripes];if(aoData._sRowStripe!=sStripe){$(nRow).removeClass(aoData._sRowStripe).addClass(sStripe);aoData._sRowStripe=sStripe}}_fnCallbackFire(oSettings,"aoRowCallback",null,[nRow,oSettings.aoData[oSettings.aiDisplay[j]]._aData,iRowCount,j]);anRows.push(nRow);iRowCount++;if(iOpenRows!==0){for(var k=0;k<iOpenRows;k++){if(nRow==oSettings.aoOpenRows[k].nParent){anRows.push(oSettings.aoOpenRows[k].nTr);break}}}}}else{anRows[0]=document.createElement("tr");if(oSettings.asStripeClasses[0]){anRows[0].className=oSettings.asStripeClasses[0]}var oLang=oSettings.oLanguage;var sZero=oLang.sZeroRecords;if(oSettings.iDraw==1&&oSettings.sAjaxSource!==null&&!oSettings.oFeatures.bServerSide){sZero=oLang.sLoadingRecords}else{if(oLang.sEmptyTable&&oSettings.fnRecordsTotal()===0){sZero=oLang.sEmptyTable}}var nTd=document.createElement("td");nTd.setAttribute("valign","top");nTd.colSpan=_fnVisbleColumns(oSettings);nTd.className=oSettings.oClasses.sRowEmpty;nTd.innerHTML=_fnInfoMacros(oSettings,sZero);anRows[iRowCount].appendChild(nTd)}_fnCallbackFire(oSettings,"aoHeaderCallback","header",[$(oSettings.nTHead).children("tr")[0],_fnGetDataMaster(oSettings),oSettings._iDisplayStart,oSettings.fnDisplayEnd(),oSettings.aiDisplay]);_fnCallbackFire(oSettings,"aoFooterCallback","footer",[$(oSettings.nTFoot).children("tr")[0],_fnGetDataMaster(oSettings),oSettings._iDisplayStart,oSettings.fnDisplayEnd(),oSettings.aiDisplay]);var nAddFrag=document.createDocumentFragment(),nRemoveFrag=document.createDocumentFragment(),nBodyPar,nTrs;if(oSettings.nTBody){nBodyPar=oSettings.nTBody.parentNode;nRemoveFrag.appendChild(oSettings.nTBody);if(!oSettings.oScroll.bInfinite||!oSettings._bInitComplete||oSettings.bSorted||oSettings.bFiltered){while((n=oSettings.nTBody.firstChild)){oSettings.nTBody.removeChild(n)}}for(i=0,iLen=anRows.length;i<iLen;i++){nAddFrag.appendChild(anRows[i])}oSettings.nTBody.appendChild(nAddFrag);if(nBodyPar!==null){nBodyPar.appendChild(oSettings.nTBody)}}_fnCallbackFire(oSettings,"aoDrawCallback","draw",[oSettings]);oSettings.bSorted=false;oSettings.bFiltered=false;oSettings.bDrawing=false;if(oSettings.oFeatures.bServerSide){_fnProcessingDisplay(oSettings,false);if(!oSettings._bInitComplete){_fnInitComplete(oSettings)}}}function _fnReDraw(oSettings){if(oSettings.oFeatures.bSort){_fnSort(oSettings,oSettings.oPreviousSearch)}else{if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch)}else{_fnCalculateEnd(oSettings);_fnDraw(oSettings)}}}function _fnAddOptionsHtml(oSettings){var nHolding=$("<div></div>")[0];oSettings.nTable.parentNode.insertBefore(nHolding,oSettings.nTable);oSettings.nTableWrapper=$('<div id="'+oSettings.sTableId+'_wrapper" class="'+oSettings.oClasses.sWrapper+'" role="grid"></div>')[0];oSettings.nTableReinsertBefore=oSettings.nTable.nextSibling;var nInsertNode=oSettings.nTableWrapper;var aDom=oSettings.sDom.split("");var nTmp,iPushFeature,cOption,nNewNode,cNext,sAttr,j;for(var i=0;i<aDom.length;i++){iPushFeature=0;cOption=aDom[i];if(cOption=="<"){nNewNode=$("<div></div>")[0];cNext=aDom[i+1];if(cNext=="'"||cNext=='"'){sAttr="";j=2;while(aDom[i+j]!=cNext){sAttr+=aDom[i+j];j++}if(sAttr=="H"){sAttr=oSettings.oClasses.sJUIHeader}else{if(sAttr=="F"){sAttr=oSettings.oClasses.sJUIFooter}}if(sAttr.indexOf(".")!=-1){var aSplit=sAttr.split(".");nNewNode.id=aSplit[0].substr(1,aSplit[0].length-1);nNewNode.className=aSplit[1]}else{if(sAttr.charAt(0)=="#"){nNewNode.id=sAttr.substr(1,sAttr.length-1)}else{nNewNode.className=sAttr}}i+=j}nInsertNode.appendChild(nNewNode);nInsertNode=nNewNode}else{if(cOption==">"){nInsertNode=nInsertNode.parentNode}else{if(cOption=="l"&&oSettings.oFeatures.bPaginate&&oSettings.oFeatures.bLengthChange){nTmp=_fnFeatureHtmlLength(oSettings);iPushFeature=1}else{if(cOption=="f"&&oSettings.oFeatures.bFilter){nTmp=_fnFeatureHtmlFilter(oSettings);iPushFeature=1}else{if(cOption=="r"&&oSettings.oFeatures.bProcessing){nTmp=_fnFeatureHtmlProcessing(oSettings);iPushFeature=1}else{if(cOption=="t"){nTmp=_fnFeatureHtmlTable(oSettings);iPushFeature=1}else{if(cOption=="i"&&oSettings.oFeatures.bInfo){nTmp=_fnFeatureHtmlInfo(oSettings);iPushFeature=1}else{if(cOption=="p"&&oSettings.oFeatures.bPaginate){nTmp=_fnFeatureHtmlPaginate(oSettings);iPushFeature=1}else{if(DataTable.ext.aoFeatures.length!==0){var aoFeatures=DataTable.ext.aoFeatures;for(var k=0,kLen=aoFeatures.length;k<kLen;k++){if(cOption==aoFeatures[k].cFeature){nTmp=aoFeatures[k].fnInit(oSettings);if(nTmp){iPushFeature=1}break}}}}}}}}}}}if(iPushFeature==1&&nTmp!==null){if(typeof oSettings.aanFeatures[cOption]!=="object"){oSettings.aanFeatures[cOption]=[]}oSettings.aanFeatures[cOption].push(nTmp);nInsertNode.appendChild(nTmp)}}nHolding.parentNode.replaceChild(oSettings.nTableWrapper,nHolding)}function _fnDetectHeader(aLayout,nThead){var nTrs=$(nThead).children("tr");var nTr,nCell;var i,k,l,iLen,jLen,iColShifted,iColumn,iColspan,iRowspan;var bUnique;var fnShiftCol=function(a,i,j){var k=a[i];while(k[j]){j++}return j};aLayout.splice(0,aLayout.length);for(i=0,iLen=nTrs.length;i<iLen;i++){aLayout.push([])}for(i=0,iLen=nTrs.length;i<iLen;i++){nTr=nTrs[i];iColumn=0;nCell=nTr.firstChild;while(nCell){if(nCell.nodeName.toUpperCase()=="TD"||nCell.nodeName.toUpperCase()=="TH"){iColspan=nCell.getAttribute("colspan")*1;iRowspan=nCell.getAttribute("rowspan")*1;iColspan=(!iColspan||iColspan===0||iColspan===1)?1:iColspan;iRowspan=(!iRowspan||iRowspan===0||iRowspan===1)?1:iRowspan;iColShifted=fnShiftCol(aLayout,i,iColumn);bUnique=iColspan===1?true:false;for(l=0;l<iColspan;l++){for(k=0;k<iRowspan;k++){aLayout[i+k][iColShifted+l]={cell:nCell,unique:bUnique};aLayout[i+k].nTr=nTr}}}nCell=nCell.nextSibling}}}function _fnGetUniqueThs(oSettings,nHeader,aLayout){var aReturn=[];if(!aLayout){aLayout=oSettings.aoHeader;if(nHeader){aLayout=[];_fnDetectHeader(aLayout,nHeader)}}for(var i=0,iLen=aLayout.length;i<iLen;i++){for(var j=0,jLen=aLayout[i].length;j<jLen;j++){if(aLayout[i][j].unique&&(!aReturn[j]||!oSettings.bSortCellsTop)){aReturn[j]=aLayout[i][j].cell}}}return aReturn}function _fnAjaxUpdate(oSettings){if(oSettings.bAjaxDataGet){oSettings.iDraw++;_fnProcessingDisplay(oSettings,true);var iColumns=oSettings.aoColumns.length;var aoData=_fnAjaxParameters(oSettings);_fnServerParams(oSettings,aoData);oSettings.fnServerData.call(oSettings.oInstance,oSettings.sAjaxSource,aoData,function(json){_fnAjaxUpdateDraw(oSettings,json)},oSettings);return false}else{return true}}function _fnAjaxParameters(oSettings){var iColumns=oSettings.aoColumns.length;var aoData=[],mDataProp,aaSort,aDataSort;var i,j;aoData.push({name:"sEcho",value:oSettings.iDraw});aoData.push({name:"iColumns",value:iColumns});aoData.push({name:"sColumns",value:_fnColumnOrdering(oSettings)});aoData.push({name:"iDisplayStart",value:oSettings._iDisplayStart});aoData.push({name:"iDisplayLength",value:oSettings.oFeatures.bPaginate!==false?oSettings._iDisplayLength:-1});for(i=0;i<iColumns;i++){mDataProp=oSettings.aoColumns[i].mData;aoData.push({name:"mDataProp_"+i,value:typeof(mDataProp)==="function"?"function":mDataProp})}if(oSettings.oFeatures.bFilter!==false){aoData.push({name:"sSearch",value:oSettings.oPreviousSearch.sSearch});aoData.push({name:"bRegex",value:oSettings.oPreviousSearch.bRegex});for(i=0;i<iColumns;i++){aoData.push({name:"sSearch_"+i,value:oSettings.aoPreSearchCols[i].sSearch});aoData.push({name:"bRegex_"+i,value:oSettings.aoPreSearchCols[i].bRegex});aoData.push({name:"bSearchable_"+i,value:oSettings.aoColumns[i].bSearchable})}}if(oSettings.oFeatures.bSort!==false){var iCounter=0;aaSort=(oSettings.aaSortingFixed!==null)?oSettings.aaSortingFixed.concat(oSettings.aaSorting):oSettings.aaSorting.slice();for(i=0;i<aaSort.length;i++){aDataSort=oSettings.aoColumns[aaSort[i][0]].aDataSort;for(j=0;j<aDataSort.length;j++){aoData.push({name:"iSortCol_"+iCounter,value:aDataSort[j]});aoData.push({name:"sSortDir_"+iCounter,value:aaSort[i][1]});iCounter++}}aoData.push({name:"iSortingCols",value:iCounter});for(i=0;i<iColumns;i++){aoData.push({name:"bSortable_"+i,value:oSettings.aoColumns[i].bSortable})}}return aoData}function _fnServerParams(oSettings,aoData){_fnCallbackFire(oSettings,"aoServerParams","serverParams",[aoData])}function _fnAjaxUpdateDraw(oSettings,json){if(json.sEcho!==undefined){if(json.sEcho*1<oSettings.iDraw){return}else{oSettings.iDraw=json.sEcho*1}}if(!oSettings.oScroll.bInfinite||(oSettings.oScroll.bInfinite&&(oSettings.bSorted||oSettings.bFiltered))){_fnClearTable(oSettings)}oSettings._iRecordsTotal=parseInt(json.iTotalRecords,10);oSettings._iRecordsDisplay=parseInt(json.iTotalDisplayRecords,10);var sOrdering=_fnColumnOrdering(oSettings);var bReOrder=(json.sColumns!==undefined&&sOrdering!==""&&json.sColumns!=sOrdering);var aiIndex;if(bReOrder){aiIndex=_fnReOrderIndex(oSettings,json.sColumns)}var aData=_fnGetObjectDataFn(oSettings.sAjaxDataProp)(json);for(var i=0,iLen=aData.length;i<iLen;i++){if(bReOrder){var aDataSorted=[];for(var j=0,jLen=oSettings.aoColumns.length;j<jLen;j++){aDataSorted.push(aData[i][aiIndex[j]])}_fnAddData(oSettings,aDataSorted)}else{_fnAddData(oSettings,aData[i])}}oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();oSettings.bAjaxDataGet=false;_fnDraw(oSettings);oSettings.bAjaxDataGet=true;_fnProcessingDisplay(oSettings,false)}function _fnFeatureHtmlFilter(oSettings){var oPreviousSearch=oSettings.oPreviousSearch;var sSearchStr=oSettings.oLanguage.sSearch;sSearchStr=(sSearchStr.indexOf("_INPUT_")!==-1)?sSearchStr.replace("_INPUT_",'<input type="text" />'):sSearchStr===""?'<input type="text" />':sSearchStr+' <input type="text" />';var nFilter=document.createElement("div");nFilter.className=oSettings.oClasses.sFilter;nFilter.innerHTML="<label>"+sSearchStr+"</label>";if(!oSettings.aanFeatures.f){nFilter.id=oSettings.sTableId+"_filter"}var jqFilter=$('input[type="text"]',nFilter);nFilter._DT_Input=jqFilter[0];jqFilter.val(oPreviousSearch.sSearch.replace('"',"&quot;"));jqFilter.bind("keyup.DT",function(e){var n=oSettings.aanFeatures.f;var val=this.value===""?"":this.value;for(var i=0,iLen=n.length;i<iLen;i++){if(n[i]!=$(this).parents("div.dataTables_filter")[0]){$(n[i]._DT_Input).val(val)}}if(val!=oPreviousSearch.sSearch){_fnFilterComplete(oSettings,{sSearch:val,bRegex:oPreviousSearch.bRegex,bSmart:oPreviousSearch.bSmart,bCaseInsensitive:oPreviousSearch.bCaseInsensitive})}});jqFilter.attr("aria-controls",oSettings.sTableId).bind("keypress.DT",function(e){if(e.keyCode==13){return false}});return nFilter}function _fnFilterComplete(oSettings,oInput,iForce){var oPrevSearch=oSettings.oPreviousSearch;var aoPrevSearch=oSettings.aoPreSearchCols;var fnSaveFilter=function(oFilter){oPrevSearch.sSearch=oFilter.sSearch;oPrevSearch.bRegex=oFilter.bRegex;oPrevSearch.bSmart=oFilter.bSmart;oPrevSearch.bCaseInsensitive=oFilter.bCaseInsensitive};if(!oSettings.oFeatures.bServerSide){_fnFilter(oSettings,oInput.sSearch,iForce,oInput.bRegex,oInput.bSmart,oInput.bCaseInsensitive);fnSaveFilter(oInput);for(var i=0;i<oSettings.aoPreSearchCols.length;i++){_fnFilterColumn(oSettings,aoPrevSearch[i].sSearch,i,aoPrevSearch[i].bRegex,aoPrevSearch[i].bSmart,aoPrevSearch[i].bCaseInsensitive)}_fnFilterCustom(oSettings)}else{fnSaveFilter(oInput)}oSettings.bFiltered=true;$(oSettings.oInstance).trigger("filter",oSettings);oSettings._iDisplayStart=0;_fnCalculateEnd(oSettings);_fnDraw(oSettings);_fnBuildSearchArray(oSettings,0)}function _fnFilterCustom(oSettings){var afnFilters=DataTable.ext.afnFiltering;var aiFilterColumns=_fnGetColumns(oSettings,"bSearchable");for(var i=0,iLen=afnFilters.length;i<iLen;i++){var iCorrector=0;for(var j=0,jLen=oSettings.aiDisplay.length;j<jLen;j++){var iDisIndex=oSettings.aiDisplay[j-iCorrector];var bTest=afnFilters[i](oSettings,_fnGetRowData(oSettings,iDisIndex,"filter",aiFilterColumns),iDisIndex);if(!bTest){oSettings.aiDisplay.splice(j-iCorrector,1);iCorrector++}}}}function _fnFilterColumn(oSettings,sInput,iColumn,bRegex,bSmart,bCaseInsensitive){if(sInput===""){return}var iIndexCorrector=0;var rpSearch=_fnFilterCreateSearch(sInput,bRegex,bSmart,bCaseInsensitive);for(var i=oSettings.aiDisplay.length-1;i>=0;i--){var sData=_fnDataToSearch(_fnGetCellData(oSettings,oSettings.aiDisplay[i],iColumn,"filter"),oSettings.aoColumns[iColumn].sType);if(!rpSearch.test(sData)){oSettings.aiDisplay.splice(i,1);iIndexCorrector++}}}function _fnFilter(oSettings,sInput,iForce,bRegex,bSmart,bCaseInsensitive){var i;var rpSearch=_fnFilterCreateSearch(sInput,bRegex,bSmart,bCaseInsensitive);var oPrevSearch=oSettings.oPreviousSearch;if(!iForce){iForce=0}if(DataTable.ext.afnFiltering.length!==0){iForce=1}if(sInput.length<=0){oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);oSettings.aiDisplay=oSettings.aiDisplayMaster.slice()}else{if(oSettings.aiDisplay.length==oSettings.aiDisplayMaster.length||oPrevSearch.sSearch.length>sInput.length||iForce==1||sInput.indexOf(oPrevSearch.sSearch)!==0){oSettings.aiDisplay.splice(0,oSettings.aiDisplay.length);_fnBuildSearchArray(oSettings,1);for(i=0;i<oSettings.aiDisplayMaster.length;i++){if(rpSearch.test(oSettings.asDataSearch[i])){oSettings.aiDisplay.push(oSettings.aiDisplayMaster[i])}}}else{var iIndexCorrector=0;for(i=0;i<oSettings.asDataSearch.length;i++){if(!rpSearch.test(oSettings.asDataSearch[i])){oSettings.aiDisplay.splice(i-iIndexCorrector,1);iIndexCorrector++}}}}}function _fnBuildSearchArray(oSettings,iMaster){if(!oSettings.oFeatures.bServerSide){oSettings.asDataSearch=[];var aiFilterColumns=_fnGetColumns(oSettings,"bSearchable");var aiIndex=(iMaster===1)?oSettings.aiDisplayMaster:oSettings.aiDisplay;for(var i=0,iLen=aiIndex.length;i<iLen;i++){oSettings.asDataSearch[i]=_fnBuildSearchRow(oSettings,_fnGetRowData(oSettings,aiIndex[i],"filter",aiFilterColumns))}}}function _fnBuildSearchRow(oSettings,aData){var sSearch=aData.join("  ");if(sSearch.indexOf("&")!==-1){sSearch=$("<div>").html(sSearch).text()}return sSearch.replace(/[\n\r]/g," ")}function _fnFilterCreateSearch(sSearch,bRegex,bSmart,bCaseInsensitive){var asSearch,sRegExpString;if(bSmart){asSearch=bRegex?sSearch.split(" "):_fnEscapeRegex(sSearch).split(" ");sRegExpString="^(?=.*?"+asSearch.join(")(?=.*?")+").*$";return new RegExp(sRegExpString,bCaseInsensitive?"i":"")}else{sSearch=bRegex?sSearch:_fnEscapeRegex(sSearch);return new RegExp(sSearch,bCaseInsensitive?"i":"")}}function _fnDataToSearch(sData,sType){if(typeof DataTable.ext.ofnSearch[sType]==="function"){return DataTable.ext.ofnSearch[sType](sData)}else{if(sData===null){return""}else{if(sType=="html"){return sData.replace(/[\r\n]/g," ").replace(/<.*?>/g,"")}else{if(typeof sData==="string"){return sData.replace(/[\r\n]/g," ")}}}}return sData}function _fnEscapeRegex(sVal){var acEscape=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"];var reReplace=new RegExp("(\\"+acEscape.join("|\\")+")","g");return sVal.replace(reReplace,"\\$1")}function _fnFeatureHtmlInfo(oSettings){var nInfo=document.createElement("div");nInfo.className=oSettings.oClasses.sInfo;if(!oSettings.aanFeatures.i){oSettings.aoDrawCallback.push({fn:_fnUpdateInfo,sName:"information"});nInfo.id=oSettings.sTableId+"_info"}oSettings.nTable.setAttribute("aria-describedby",oSettings.sTableId+"_info");return nInfo}function _fnUpdateInfo(oSettings){if(!oSettings.oFeatures.bInfo||oSettings.aanFeatures.i.length===0){return}var oLang=oSettings.oLanguage,iStart=oSettings._iDisplayStart+1,iEnd=oSettings.fnDisplayEnd(),iMax=oSettings.fnRecordsTotal(),iTotal=oSettings.fnRecordsDisplay(),sOut;if(iTotal===0){sOut=oLang.sInfoEmpty}else{sOut=oLang.sInfo}if(iTotal!=iMax){sOut+=" "+oLang.sInfoFiltered}sOut+=oLang.sInfoPostFix;sOut=_fnInfoMacros(oSettings,sOut);if(oLang.fnInfoCallback!==null){sOut=oLang.fnInfoCallback.call(oSettings.oInstance,oSettings,iStart,iEnd,iMax,iTotal,sOut)}var n=oSettings.aanFeatures.i;for(var i=0,iLen=n.length;i<iLen;i++){$(n[i]).html(sOut)}}function _fnInfoMacros(oSettings,str){var iStart=oSettings._iDisplayStart+1,sStart=oSettings.fnFormatNumber(iStart),iEnd=oSettings.fnDisplayEnd(),sEnd=oSettings.fnFormatNumber(iEnd),iTotal=oSettings.fnRecordsDisplay(),sTotal=oSettings.fnFormatNumber(iTotal),iMax=oSettings.fnRecordsTotal(),sMax=oSettings.fnFormatNumber(iMax);if(oSettings.oScroll.bInfinite){sStart=oSettings.fnFormatNumber(1)}return str.replace(/_START_/g,sStart).replace(/_END_/g,sEnd).replace(/_TOTAL_/g,sTotal).replace(/_MAX_/g,sMax)}function _fnInitialise(oSettings){var i,iLen,iAjaxStart=oSettings.iInitDisplayStart;if(oSettings.bInitialised===false){setTimeout(function(){_fnInitialise(oSettings)},200);return}_fnAddOptionsHtml(oSettings);_fnBuildHead(oSettings);_fnDrawHead(oSettings,oSettings.aoHeader);if(oSettings.nTFoot){_fnDrawHead(oSettings,oSettings.aoFooter)}_fnProcessingDisplay(oSettings,true);if(oSettings.oFeatures.bAutoWidth){_fnCalculateColumnWidths(oSettings)}for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){if(oSettings.aoColumns[i].sWidth!==null){oSettings.aoColumns[i].nTh.style.width=_fnStringToCss(oSettings.aoColumns[i].sWidth)}}if(oSettings.oFeatures.bSort){_fnSort(oSettings)}else{if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch)}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();_fnCalculateEnd(oSettings);_fnDraw(oSettings)}}if(oSettings.sAjaxSource!==null&&!oSettings.oFeatures.bServerSide){var aoData=[];_fnServerParams(oSettings,aoData);oSettings.fnServerData.call(oSettings.oInstance,oSettings.sAjaxSource,aoData,function(json){var aData=(oSettings.sAjaxDataProp!=="")?_fnGetObjectDataFn(oSettings.sAjaxDataProp)(json):json;for(i=0;i<aData.length;i++){_fnAddData(oSettings,aData[i])}oSettings.iInitDisplayStart=iAjaxStart;if(oSettings.oFeatures.bSort){_fnSort(oSettings)}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();_fnCalculateEnd(oSettings);_fnDraw(oSettings)}_fnProcessingDisplay(oSettings,false);_fnInitComplete(oSettings,json)},oSettings);return}if(!oSettings.oFeatures.bServerSide){_fnProcessingDisplay(oSettings,false);_fnInitComplete(oSettings)}}function _fnInitComplete(oSettings,json){oSettings._bInitComplete=true;_fnCallbackFire(oSettings,"aoInitComplete","init",[oSettings,json])}function _fnLanguageCompat(oLanguage){var oDefaults=DataTable.defaults.oLanguage;if(!oLanguage.sEmptyTable&&oLanguage.sZeroRecords&&oDefaults.sEmptyTable==="No data available in table"){_fnMap(oLanguage,oLanguage,"sZeroRecords","sEmptyTable")}if(!oLanguage.sLoadingRecords&&oLanguage.sZeroRecords&&oDefaults.sLoadingRecords==="Loading..."){_fnMap(oLanguage,oLanguage,"sZeroRecords","sLoadingRecords")}}function _fnFeatureHtmlLength(oSettings){if(oSettings.oScroll.bInfinite){return null}var sName='name="'+oSettings.sTableId+'_length"';var sStdMenu='<select size="1" '+sName+">";var i,iLen;var aLengthMenu=oSettings.aLengthMenu;if(aLengthMenu.length==2&&typeof aLengthMenu[0]==="object"&&typeof aLengthMenu[1]==="object"){for(i=0,iLen=aLengthMenu[0].length;i<iLen;i++){sStdMenu+='<option value="'+aLengthMenu[0][i]+'">'+aLengthMenu[1][i]+"</option>"}}else{for(i=0,iLen=aLengthMenu.length;i<iLen;i++){sStdMenu+='<option value="'+aLengthMenu[i]+'">'+aLengthMenu[i]+"</option>"}}sStdMenu+="</select>";var nLength=document.createElement("div");if(!oSettings.aanFeatures.l){nLength.id=oSettings.sTableId+"_length"}nLength.className=oSettings.oClasses.sLength;nLength.innerHTML="<label>"+oSettings.oLanguage.sLengthMenu.replace("_MENU_",sStdMenu)+"</label>";$('select option[value="'+oSettings._iDisplayLength+'"]',nLength).attr("selected",true);$("select",nLength).bind("change.DT",function(e){var iVal=$(this).val();var n=oSettings.aanFeatures.l;for(i=0,iLen=n.length;i<iLen;i++){if(n[i]!=this.parentNode){$("select",n[i]).val(iVal)}}oSettings._iDisplayLength=parseInt(iVal,10);_fnCalculateEnd(oSettings);if(oSettings.fnDisplayEnd()==oSettings.fnRecordsDisplay()){oSettings._iDisplayStart=oSettings.fnDisplayEnd()-oSettings._iDisplayLength;if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0}}if(oSettings._iDisplayLength==-1){oSettings._iDisplayStart=0}_fnDraw(oSettings)});$("select",nLength).attr("aria-controls",oSettings.sTableId);return nLength}function _fnCalculateEnd(oSettings){if(oSettings.oFeatures.bPaginate===false){oSettings._iDisplayEnd=oSettings.aiDisplay.length}else{if(oSettings._iDisplayStart+oSettings._iDisplayLength>oSettings.aiDisplay.length||oSettings._iDisplayLength==-1){oSettings._iDisplayEnd=oSettings.aiDisplay.length}else{oSettings._iDisplayEnd=oSettings._iDisplayStart+oSettings._iDisplayLength}}}function _fnFeatureHtmlPaginate(oSettings){if(oSettings.oScroll.bInfinite){return null}var nPaginate=document.createElement("div");nPaginate.className=oSettings.oClasses.sPaging+oSettings.sPaginationType;DataTable.ext.oPagination[oSettings.sPaginationType].fnInit(oSettings,nPaginate,function(oSettings){_fnCalculateEnd(oSettings);_fnDraw(oSettings)});if(!oSettings.aanFeatures.p){oSettings.aoDrawCallback.push({fn:function(oSettings){DataTable.ext.oPagination[oSettings.sPaginationType].fnUpdate(oSettings,function(oSettings){_fnCalculateEnd(oSettings);_fnDraw(oSettings)})},sName:"pagination"})}return nPaginate}function _fnPageChange(oSettings,mAction){var iOldStart=oSettings._iDisplayStart;if(typeof mAction==="number"){oSettings._iDisplayStart=mAction*oSettings._iDisplayLength;if(oSettings._iDisplayStart>oSettings.fnRecordsDisplay()){oSettings._iDisplayStart=0}}else{if(mAction=="first"){oSettings._iDisplayStart=0}else{if(mAction=="previous"){oSettings._iDisplayStart=oSettings._iDisplayLength>=0?oSettings._iDisplayStart-oSettings._iDisplayLength:0;if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0}}else{if(mAction=="next"){if(oSettings._iDisplayLength>=0){if(oSettings._iDisplayStart+oSettings._iDisplayLength<oSettings.fnRecordsDisplay()){oSettings._iDisplayStart+=oSettings._iDisplayLength}}else{oSettings._iDisplayStart=0}}else{if(mAction=="last"){if(oSettings._iDisplayLength>=0){var iPages=parseInt((oSettings.fnRecordsDisplay()-1)/oSettings._iDisplayLength,10)+1;oSettings._iDisplayStart=(iPages-1)*oSettings._iDisplayLength}else{oSettings._iDisplayStart=0}}else{_fnLog(oSettings,0,"Unknown paging action: "+mAction)}}}}}$(oSettings.oInstance).trigger("page",oSettings);return iOldStart!=oSettings._iDisplayStart}function _fnFeatureHtmlProcessing(oSettings){var nProcessing=document.createElement("div");if(!oSettings.aanFeatures.r){nProcessing.id=oSettings.sTableId+"_processing"}nProcessing.innerHTML=oSettings.oLanguage.sProcessing;nProcessing.className=oSettings.oClasses.sProcessing;oSettings.nTable.parentNode.insertBefore(nProcessing,oSettings.nTable);return nProcessing}function _fnProcessingDisplay(oSettings,bShow){if(oSettings.oFeatures.bProcessing){var an=oSettings.aanFeatures.r;for(var i=0,iLen=an.length;i<iLen;i++){an[i].style.visibility=bShow?"visible":"hidden"}}$(oSettings.oInstance).trigger("processing",[oSettings,bShow])}function _fnFeatureHtmlTable(oSettings){if(oSettings.oScroll.sX===""&&oSettings.oScroll.sY===""){return oSettings.nTable}var nScroller=document.createElement("div"),nScrollHead=document.createElement("div"),nScrollHeadInner=document.createElement("div"),nScrollBody=document.createElement("div"),nScrollFoot=document.createElement("div"),nScrollFootInner=document.createElement("div"),nScrollHeadTable=oSettings.nTable.cloneNode(false),nScrollFootTable=oSettings.nTable.cloneNode(false),nThead=oSettings.nTable.getElementsByTagName("thead")[0],nTfoot=oSettings.nTable.getElementsByTagName("tfoot").length===0?null:oSettings.nTable.getElementsByTagName("tfoot")[0],oClasses=oSettings.oClasses;nScrollHead.appendChild(nScrollHeadInner);nScrollFoot.appendChild(nScrollFootInner);nScrollBody.appendChild(oSettings.nTable);nScroller.appendChild(nScrollHead);nScroller.appendChild(nScrollBody);nScrollHeadInner.appendChild(nScrollHeadTable);nScrollHeadTable.appendChild(nThead);if(nTfoot!==null){nScroller.appendChild(nScrollFoot);nScrollFootInner.appendChild(nScrollFootTable);nScrollFootTable.appendChild(nTfoot)}nScroller.className=oClasses.sScrollWrapper;nScrollHead.className=oClasses.sScrollHead;nScrollHeadInner.className=oClasses.sScrollHeadInner;nScrollBody.className=oClasses.sScrollBody;nScrollFoot.className=oClasses.sScrollFoot;nScrollFootInner.className=oClasses.sScrollFootInner;if(oSettings.oScroll.bAutoCss){nScrollHead.style.overflow="hidden";nScrollHead.style.position="relative";nScrollFoot.style.overflow="hidden";nScrollBody.style.overflow="auto"}nScrollHead.style.border="0";nScrollHead.style.width="100%";nScrollFoot.style.border="0";nScrollHeadInner.style.width=oSettings.oScroll.sXInner!==""?oSettings.oScroll.sXInner:"100%";nScrollHeadTable.removeAttribute("id");nScrollHeadTable.style.marginLeft="0";oSettings.nTable.style.marginLeft="0";if(nTfoot!==null){nScrollFootTable.removeAttribute("id");nScrollFootTable.style.marginLeft="0"}var nCaption=$(oSettings.nTable).children("caption");if(nCaption.length>0){nCaption=nCaption[0];if(nCaption._captionSide==="top"){nScrollHeadTable.appendChild(nCaption)}else{if(nCaption._captionSide==="bottom"&&nTfoot){nScrollFootTable.appendChild(nCaption)}}}if(oSettings.oScroll.sX!==""){nScrollHead.style.width=_fnStringToCss(oSettings.oScroll.sX);nScrollBody.style.width=_fnStringToCss(oSettings.oScroll.sX);if(nTfoot!==null){nScrollFoot.style.width=_fnStringToCss(oSettings.oScroll.sX)}$(nScrollBody).scroll(function(e){nScrollHead.scrollLeft=this.scrollLeft;if(nTfoot!==null){nScrollFoot.scrollLeft=this.scrollLeft}})}if(oSettings.oScroll.sY!==""){nScrollBody.style.height=_fnStringToCss(oSettings.oScroll.sY)}oSettings.aoDrawCallback.push({fn:_fnScrollDraw,sName:"scrolling"});if(oSettings.oScroll.bInfinite){$(nScrollBody).scroll(function(){if(!oSettings.bDrawing&&$(this).scrollTop()!==0){if($(this).scrollTop()+$(this).height()>$(oSettings.nTable).height()-oSettings.oScroll.iLoadGap){if(oSettings.fnDisplayEnd()<oSettings.fnRecordsDisplay()){_fnPageChange(oSettings,"next");_fnCalculateEnd(oSettings);_fnDraw(oSettings)}}}})}oSettings.nScrollHead=nScrollHead;oSettings.nScrollFoot=nScrollFoot;return nScroller}function _fnScrollDraw(o){var nScrollHeadInner=o.nScrollHead.getElementsByTagName("div")[0],nScrollHeadTable=nScrollHeadInner.getElementsByTagName("table")[0],nScrollBody=o.nTable.parentNode,i,iLen,j,jLen,anHeadToSize,anHeadSizers,anFootSizers,anFootToSize,oStyle,iVis,nTheadSize,nTfootSize,iWidth,aApplied=[],aAppliedFooter=[],iSanityWidth,nScrollFootInner=(o.nTFoot!==null)?o.nScrollFoot.getElementsByTagName("div")[0]:null,nScrollFootTable=(o.nTFoot!==null)?nScrollFootInner.getElementsByTagName("table")[0]:null,ie67=o.oBrowser.bScrollOversize,zeroOut=function(nSizer){oStyle=nSizer.style;oStyle.paddingTop="0";oStyle.paddingBottom="0";oStyle.borderTopWidth="0";oStyle.borderBottomWidth="0";oStyle.height=0};$(o.nTable).children("thead, tfoot").remove();nTheadSize=$(o.nTHead).clone()[0];o.nTable.insertBefore(nTheadSize,o.nTable.childNodes[0]);anHeadToSize=o.nTHead.getElementsByTagName("tr");anHeadSizers=nTheadSize.getElementsByTagName("tr");if(o.nTFoot!==null){nTfootSize=$(o.nTFoot).clone()[0];o.nTable.insertBefore(nTfootSize,o.nTable.childNodes[1]);anFootToSize=o.nTFoot.getElementsByTagName("tr");anFootSizers=nTfootSize.getElementsByTagName("tr")}if(o.oScroll.sX===""){nScrollBody.style.width="100%";nScrollHeadInner.parentNode.style.width="100%"}var nThs=_fnGetUniqueThs(o,nTheadSize);for(i=0,iLen=nThs.length;i<iLen;i++){iVis=_fnVisibleToColumnIndex(o,i);nThs[i].style.width=o.aoColumns[iVis].sWidth}if(o.nTFoot!==null){_fnApplyToChildren(function(n){n.style.width=""},anFootSizers)}if(o.oScroll.bCollapse&&o.oScroll.sY!==""){nScrollBody.style.height=(nScrollBody.offsetHeight+o.nTHead.offsetHeight)+"px"}iSanityWidth=$(o.nTable).outerWidth();if(o.oScroll.sX===""){o.nTable.style.width="100%";if(ie67&&($("tbody",nScrollBody).height()>nScrollBody.offsetHeight||$(nScrollBody).css("overflow-y")=="scroll")){o.nTable.style.width=_fnStringToCss($(o.nTable).outerWidth()-o.oScroll.iBarWidth)}}else{if(o.oScroll.sXInner!==""){o.nTable.style.width=_fnStringToCss(o.oScroll.sXInner)}else{if(iSanityWidth==$(nScrollBody).width()&&$(nScrollBody).height()<$(o.nTable).height()){o.nTable.style.width=_fnStringToCss(iSanityWidth-o.oScroll.iBarWidth);if($(o.nTable).outerWidth()>iSanityWidth-o.oScroll.iBarWidth){o.nTable.style.width=_fnStringToCss(iSanityWidth)}}else{o.nTable.style.width=_fnStringToCss(iSanityWidth)}}}iSanityWidth=$(o.nTable).outerWidth();_fnApplyToChildren(zeroOut,anHeadSizers);_fnApplyToChildren(function(nSizer){aApplied.push(_fnStringToCss($(nSizer).width()))},anHeadSizers);_fnApplyToChildren(function(nToSize,i){nToSize.style.width=aApplied[i]},anHeadToSize);$(anHeadSizers).height(0);if(o.nTFoot!==null){_fnApplyToChildren(zeroOut,anFootSizers);_fnApplyToChildren(function(nSizer){aAppliedFooter.push(_fnStringToCss($(nSizer).width()))},anFootSizers);_fnApplyToChildren(function(nToSize,i){nToSize.style.width=aAppliedFooter[i]},anFootToSize);$(anFootSizers).height(0)}_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML="";nSizer.style.width=aApplied[i]},anHeadSizers);if(o.nTFoot!==null){_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML="";nSizer.style.width=aAppliedFooter[i]},anFootSizers)}if($(o.nTable).outerWidth()<iSanityWidth){var iCorrection=((nScrollBody.scrollHeight>nScrollBody.offsetHeight||$(nScrollBody).css("overflow-y")=="scroll"))?iSanityWidth+o.oScroll.iBarWidth:iSanityWidth;if(ie67&&(nScrollBody.scrollHeight>nScrollBody.offsetHeight||$(nScrollBody).css("overflow-y")=="scroll")){o.nTable.style.width=_fnStringToCss(iCorrection-o.oScroll.iBarWidth)}nScrollBody.style.width=_fnStringToCss(iCorrection);o.nScrollHead.style.width=_fnStringToCss(iCorrection);if(o.nTFoot!==null){o.nScrollFoot.style.width=_fnStringToCss(iCorrection)}if(o.oScroll.sX===""){_fnLog(o,1,"The table cannot fit into the current element which will cause column misalignment. The table has been drawn at its minimum possible width.")}else{if(o.oScroll.sXInner!==""){_fnLog(o,1,"The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation")}}}else{nScrollBody.style.width=_fnStringToCss("100%");o.nScrollHead.style.width=_fnStringToCss("100%");if(o.nTFoot!==null){o.nScrollFoot.style.width=_fnStringToCss("100%")}}if(o.oScroll.sY===""){if(ie67){nScrollBody.style.height=_fnStringToCss(o.nTable.offsetHeight+o.oScroll.iBarWidth)}}if(o.oScroll.sY!==""&&o.oScroll.bCollapse){nScrollBody.style.height=_fnStringToCss(o.oScroll.sY);var iExtra=(o.oScroll.sX!==""&&o.nTable.offsetWidth>nScrollBody.offsetWidth)?o.oScroll.iBarWidth:0;if(o.nTable.offsetHeight<nScrollBody.offsetHeight){nScrollBody.style.height=_fnStringToCss(o.nTable.offsetHeight+iExtra)}}var iOuterWidth=$(o.nTable).outerWidth();nScrollHeadTable.style.width=_fnStringToCss(iOuterWidth);nScrollHeadInner.style.width=_fnStringToCss(iOuterWidth);var bScrolling=$(o.nTable).height()>nScrollBody.clientHeight||$(nScrollBody).css("overflow-y")=="scroll";nScrollHeadInner.style.paddingRight=bScrolling?o.oScroll.iBarWidth+"px":"0px";if(o.nTFoot!==null){nScrollFootTable.style.width=_fnStringToCss(iOuterWidth);nScrollFootInner.style.width=_fnStringToCss(iOuterWidth);nScrollFootInner.style.paddingRight=bScrolling?o.oScroll.iBarWidth+"px":"0px"}$(nScrollBody).scroll();if(o.bSorted||o.bFiltered){nScrollBody.scrollTop=0}}function _fnApplyToChildren(fn,an1,an2){var index=0,i=0,iLen=an1.length;var nNode1,nNode2;while(i<iLen){nNode1=an1[i].firstChild;nNode2=an2?an2[i].firstChild:null;while(nNode1){if(nNode1.nodeType===1){if(an2){fn(nNode1,nNode2,index)}else{fn(nNode1,index)}index++}nNode1=nNode1.nextSibling;nNode2=an2?nNode2.nextSibling:null}i++}}function _fnConvertToWidth(sWidth,nParent){if(!sWidth||sWidth===null||sWidth===""){return 0}if(!nParent){nParent=document.body}var iWidth;var nTmp=document.createElement("div");nTmp.style.width=_fnStringToCss(sWidth);nParent.appendChild(nTmp);iWidth=nTmp.offsetWidth;nParent.removeChild(nTmp);return(iWidth)}function _fnCalculateColumnWidths(oSettings){var iTableWidth=oSettings.nTable.offsetWidth;var iUserInputs=0;var iTmpWidth;var iVisibleColumns=0;var iColums=oSettings.aoColumns.length;var i,iIndex,iCorrector,iWidth;var oHeaders=$("th",oSettings.nTHead);var widthAttr=oSettings.nTable.getAttribute("width");var nWrapper=oSettings.nTable.parentNode;for(i=0;i<iColums;i++){if(oSettings.aoColumns[i].bVisible){iVisibleColumns++;if(oSettings.aoColumns[i].sWidth!==null){iTmpWidth=_fnConvertToWidth(oSettings.aoColumns[i].sWidthOrig,nWrapper);if(iTmpWidth!==null){oSettings.aoColumns[i].sWidth=_fnStringToCss(iTmpWidth)}iUserInputs++}}}if(iColums==oHeaders.length&&iUserInputs===0&&iVisibleColumns==iColums&&oSettings.oScroll.sX===""&&oSettings.oScroll.sY===""){for(i=0;i<oSettings.aoColumns.length;i++){iTmpWidth=$(oHeaders[i]).width();if(iTmpWidth!==null){oSettings.aoColumns[i].sWidth=_fnStringToCss(iTmpWidth)}}}else{var nCalcTmp=oSettings.nTable.cloneNode(false),nTheadClone=oSettings.nTHead.cloneNode(true),nBody=document.createElement("tbody"),nTr=document.createElement("tr"),nDivSizing;nCalcTmp.removeAttribute("id");nCalcTmp.appendChild(nTheadClone);if(oSettings.nTFoot!==null){nCalcTmp.appendChild(oSettings.nTFoot.cloneNode(true));_fnApplyToChildren(function(n){n.style.width=""},nCalcTmp.getElementsByTagName("tr"))}nCalcTmp.appendChild(nBody);nBody.appendChild(nTr);var jqColSizing=$("thead th",nCalcTmp);if(jqColSizing.length===0){jqColSizing=$("tbody tr:eq(0)>td",nCalcTmp)}var nThs=_fnGetUniqueThs(oSettings,nTheadClone);iCorrector=0;for(i=0;i<iColums;i++){var oColumn=oSettings.aoColumns[i];if(oColumn.bVisible&&oColumn.sWidthOrig!==null&&oColumn.sWidthOrig!==""){nThs[i-iCorrector].style.width=_fnStringToCss(oColumn.sWidthOrig)}else{if(oColumn.bVisible){nThs[i-iCorrector].style.width=""}else{iCorrector++}}}for(i=0;i<iColums;i++){if(oSettings.aoColumns[i].bVisible){var nTd=_fnGetWidestNode(oSettings,i);if(nTd!==null){nTd=nTd.cloneNode(true);if(oSettings.aoColumns[i].sContentPadding!==""){nTd.innerHTML+=oSettings.aoColumns[i].sContentPadding}nTr.appendChild(nTd)}}}nWrapper.appendChild(nCalcTmp);if(oSettings.oScroll.sX!==""&&oSettings.oScroll.sXInner!==""){nCalcTmp.style.width=_fnStringToCss(oSettings.oScroll.sXInner)}else{if(oSettings.oScroll.sX!==""){nCalcTmp.style.width="";if($(nCalcTmp).width()<nWrapper.offsetWidth){nCalcTmp.style.width=_fnStringToCss(nWrapper.offsetWidth)}}else{if(oSettings.oScroll.sY!==""){nCalcTmp.style.width=_fnStringToCss(nWrapper.offsetWidth)}else{if(widthAttr){nCalcTmp.style.width=_fnStringToCss(widthAttr)}}}}nCalcTmp.style.visibility="hidden";_fnScrollingWidthAdjust(oSettings,nCalcTmp);var oNodes=$("tbody tr:eq(0)",nCalcTmp).children();if(oNodes.length===0){oNodes=_fnGetUniqueThs(oSettings,$("thead",nCalcTmp)[0])}if(oSettings.oScroll.sX!==""){var iTotal=0;iCorrector=0;for(i=0;i<oSettings.aoColumns.length;i++){if(oSettings.aoColumns[i].bVisible){if(oSettings.aoColumns[i].sWidthOrig===null){iTotal+=$(oNodes[iCorrector]).outerWidth()}else{iTotal+=parseInt(oSettings.aoColumns[i].sWidth.replace("px",""),10)+($(oNodes[iCorrector]).outerWidth()-$(oNodes[iCorrector]).width())}iCorrector++}}nCalcTmp.style.width=_fnStringToCss(iTotal);oSettings.nTable.style.width=_fnStringToCss(iTotal)}iCorrector=0;for(i=0;i<oSettings.aoColumns.length;i++){if(oSettings.aoColumns[i].bVisible){iWidth=$(oNodes[iCorrector]).width();if(iWidth!==null&&iWidth>0){oSettings.aoColumns[i].sWidth=_fnStringToCss(iWidth)}iCorrector++}}var cssWidth=$(nCalcTmp).css("width");oSettings.nTable.style.width=(cssWidth.indexOf("%")!==-1)?cssWidth:_fnStringToCss($(nCalcTmp).outerWidth());nCalcTmp.parentNode.removeChild(nCalcTmp)}if(widthAttr){oSettings.nTable.style.width=_fnStringToCss(widthAttr)}}function _fnScrollingWidthAdjust(oSettings,n){if(oSettings.oScroll.sX===""&&oSettings.oScroll.sY!==""){var iOrigWidth=$(n).width();n.style.width=_fnStringToCss($(n).outerWidth()-oSettings.oScroll.iBarWidth)}else{if(oSettings.oScroll.sX!==""){n.style.width=_fnStringToCss($(n).outerWidth())}}}function _fnGetWidestNode(oSettings,iCol){var iMaxIndex=_fnGetMaxLenString(oSettings,iCol);if(iMaxIndex<0){return null}if(oSettings.aoData[iMaxIndex].nTr===null){var n=document.createElement("td");n.innerHTML=_fnGetCellData(oSettings,iMaxIndex,iCol,"");return n}return _fnGetTdNodes(oSettings,iMaxIndex)[iCol]}function _fnGetMaxLenString(oSettings,iCol){var iMax=-1;var iMaxIndex=-1;for(var i=0;i<oSettings.aoData.length;i++){var s=_fnGetCellData(oSettings,i,iCol,"display")+"";s=s.replace(/<.*?>/g,"");if(s.length>iMax){iMax=s.length;iMaxIndex=i}}return iMaxIndex}function _fnStringToCss(s){if(s===null){return"0px"}if(typeof s=="number"){if(s<0){return"0px"}return s+"px"}var c=s.charCodeAt(s.length-1);if(c<48||c>57){return s}return s+"px"}function _fnScrollBarWidth(){var inner=document.createElement("p");var style=inner.style;style.width="100%";style.height="200px";style.padding="0px";var outer=document.createElement("div");style=outer.style;style.position="absolute";style.top="0px";style.left="0px";style.visibility="hidden";style.width="200px";style.height="150px";style.padding="0px";style.overflow="hidden";outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow="scroll";var w2=inner.offsetWidth;if(w1==w2){w2=outer.clientWidth}document.body.removeChild(outer);return(w1-w2)}function _fnSort(oSettings,bApplyClasses){var i,iLen,j,jLen,k,kLen,sDataType,nTh,aaSort=[],aiOrig=[],oSort=DataTable.ext.oSort,aoData=oSettings.aoData,aoColumns=oSettings.aoColumns,oAria=oSettings.oLanguage.oAria;if(!oSettings.oFeatures.bServerSide&&(oSettings.aaSorting.length!==0||oSettings.aaSortingFixed!==null)){aaSort=(oSettings.aaSortingFixed!==null)?oSettings.aaSortingFixed.concat(oSettings.aaSorting):oSettings.aaSorting.slice();for(i=0;i<aaSort.length;i++){var iColumn=aaSort[i][0];var iVisColumn=_fnColumnIndexToVisible(oSettings,iColumn);sDataType=oSettings.aoColumns[iColumn].sSortDataType;if(DataTable.ext.afnSortData[sDataType]){var aData=DataTable.ext.afnSortData[sDataType].call(oSettings.oInstance,oSettings,iColumn,iVisColumn);if(aData.length===aoData.length){for(j=0,jLen=aoData.length;j<jLen;j++){_fnSetCellData(oSettings,j,iColumn,aData[j])}}else{_fnLog(oSettings,0,"Returned data sort array (col "+iColumn+") is the wrong length")}}}for(i=0,iLen=oSettings.aiDisplayMaster.length;i<iLen;i++){aiOrig[oSettings.aiDisplayMaster[i]]=i}var iSortLen=aaSort.length;var fnSortFormat,aDataSort;for(i=0,iLen=aoData.length;i<iLen;i++){for(j=0;j<iSortLen;j++){aDataSort=aoColumns[aaSort[j][0]].aDataSort;for(k=0,kLen=aDataSort.length;k<kLen;k++){sDataType=aoColumns[aDataSort[k]].sType;fnSortFormat=oSort[(sDataType?sDataType:"string")+"-pre"];aoData[i]._aSortData[aDataSort[k]]=fnSortFormat?fnSortFormat(_fnGetCellData(oSettings,i,aDataSort[k],"sort")):_fnGetCellData(oSettings,i,aDataSort[k],"sort")}}}oSettings.aiDisplayMaster.sort(function(a,b){var k,l,lLen,iTest,aDataSort,sDataType;for(k=0;k<iSortLen;k++){aDataSort=aoColumns[aaSort[k][0]].aDataSort;for(l=0,lLen=aDataSort.length;l<lLen;l++){sDataType=aoColumns[aDataSort[l]].sType;iTest=oSort[(sDataType?sDataType:"string")+"-"+aaSort[k][1]](aoData[a]._aSortData[aDataSort[l]],aoData[b]._aSortData[aDataSort[l]]);if(iTest!==0){return iTest}}}return oSort["numeric-asc"](aiOrig[a],aiOrig[b])})}if((bApplyClasses===undefined||bApplyClasses)&&!oSettings.oFeatures.bDeferRender){_fnSortingClasses(oSettings)}for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){var sTitle=aoColumns[i].sTitle.replace(/<.*?>/g,"");nTh=aoColumns[i].nTh;nTh.removeAttribute("aria-sort");nTh.removeAttribute("aria-label");if(aoColumns[i].bSortable){if(aaSort.length>0&&aaSort[0][0]==i){nTh.setAttribute("aria-sort",aaSort[0][1]=="asc"?"ascending":"descending");var nextSort=(aoColumns[i].asSorting[aaSort[0][2]+1])?aoColumns[i].asSorting[aaSort[0][2]+1]:aoColumns[i].asSorting[0];nTh.setAttribute("aria-label",sTitle+(nextSort=="asc"?oAria.sSortAscending:oAria.sSortDescending))}else{nTh.setAttribute("aria-label",sTitle+(aoColumns[i].asSorting[0]=="asc"?oAria.sSortAscending:oAria.sSortDescending))}}else{nTh.setAttribute("aria-label",sTitle)}}oSettings.bSorted=true;$(oSettings.oInstance).trigger("sort",oSettings);if(oSettings.oFeatures.bFilter){_fnFilterComplete(oSettings,oSettings.oPreviousSearch,1)}else{oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();oSettings._iDisplayStart=0;_fnCalculateEnd(oSettings);_fnDraw(oSettings)}}function _fnSortAttachListener(oSettings,nNode,iDataIndex,fnCallback){_fnBindAction(nNode,{},function(e){if(oSettings.aoColumns[iDataIndex].bSortable===false){return}var fnInnerSorting=function(){var iColumn,iNextSort;if(e.shiftKey){var bFound=false;for(var i=0;i<oSettings.aaSorting.length;i++){if(oSettings.aaSorting[i][0]==iDataIndex){bFound=true;iColumn=oSettings.aaSorting[i][0];iNextSort=oSettings.aaSorting[i][2]+1;if(!oSettings.aoColumns[iColumn].asSorting[iNextSort]){oSettings.aaSorting.splice(i,1)}else{oSettings.aaSorting[i][1]=oSettings.aoColumns[iColumn].asSorting[iNextSort];oSettings.aaSorting[i][2]=iNextSort}break}}if(bFound===false){oSettings.aaSorting.push([iDataIndex,oSettings.aoColumns[iDataIndex].asSorting[0],0])}}else{if(oSettings.aaSorting.length==1&&oSettings.aaSorting[0][0]==iDataIndex){iColumn=oSettings.aaSorting[0][0];iNextSort=oSettings.aaSorting[0][2]+1;if(!oSettings.aoColumns[iColumn].asSorting[iNextSort]){iNextSort=0}oSettings.aaSorting[0][1]=oSettings.aoColumns[iColumn].asSorting[iNextSort];oSettings.aaSorting[0][2]=iNextSort}else{oSettings.aaSorting.splice(0,oSettings.aaSorting.length);oSettings.aaSorting.push([iDataIndex,oSettings.aoColumns[iDataIndex].asSorting[0],0])}}_fnSort(oSettings)};if(!oSettings.oFeatures.bProcessing){fnInnerSorting()}else{_fnProcessingDisplay(oSettings,true);setTimeout(function(){fnInnerSorting();if(!oSettings.oFeatures.bServerSide){_fnProcessingDisplay(oSettings,false)}},0)}if(typeof fnCallback=="function"){fnCallback(oSettings)}})}function _fnSortingClasses(oSettings){var i,iLen,j,jLen,iFound;var aaSort,sClass;var iColumns=oSettings.aoColumns.length;var oClasses=oSettings.oClasses;for(i=0;i<iColumns;i++){if(oSettings.aoColumns[i].bSortable){$(oSettings.aoColumns[i].nTh).removeClass(oClasses.sSortAsc+" "+oClasses.sSortDesc+" "+oSettings.aoColumns[i].sSortingClass)}}if(oSettings.aaSortingFixed!==null){aaSort=oSettings.aaSortingFixed.concat(oSettings.aaSorting)}else{aaSort=oSettings.aaSorting.slice()}for(i=0;i<oSettings.aoColumns.length;i++){if(oSettings.aoColumns[i].bSortable){sClass=oSettings.aoColumns[i].sSortingClass;iFound=-1;for(j=0;j<aaSort.length;j++){if(aaSort[j][0]==i){sClass=(aaSort[j][1]=="asc")?oClasses.sSortAsc:oClasses.sSortDesc;iFound=j;break}}$(oSettings.aoColumns[i].nTh).addClass(sClass);if(oSettings.bJUI){var jqSpan=$("span."+oClasses.sSortIcon,oSettings.aoColumns[i].nTh);jqSpan.removeClass(oClasses.sSortJUIAsc+" "+oClasses.sSortJUIDesc+" "+oClasses.sSortJUI+" "+oClasses.sSortJUIAscAllowed+" "+oClasses.sSortJUIDescAllowed);var sSpanClass;if(iFound==-1){sSpanClass=oSettings.aoColumns[i].sSortingClassJUI}else{if(aaSort[iFound][1]=="asc"){sSpanClass=oClasses.sSortJUIAsc}else{sSpanClass=oClasses.sSortJUIDesc}}jqSpan.addClass(sSpanClass)}}else{$(oSettings.aoColumns[i].nTh).addClass(oSettings.aoColumns[i].sSortingClass)}}sClass=oClasses.sSortColumn;if(oSettings.oFeatures.bSort&&oSettings.oFeatures.bSortClasses){var nTds=_fnGetTdNodes(oSettings);var iClass,iTargetCol;var asClasses=[];for(i=0;i<iColumns;i++){asClasses.push("")}for(i=0,iClass=1;i<aaSort.length;i++){iTargetCol=parseInt(aaSort[i][0],10);asClasses[iTargetCol]=sClass+iClass;if(iClass<3){iClass++}}var reClass=new RegExp(sClass+"[123]");var sTmpClass,sCurrentClass,sNewClass;for(i=0,iLen=nTds.length;i<iLen;i++){iTargetCol=i%iColumns;sCurrentClass=nTds[i].className;sNewClass=asClasses[iTargetCol];sTmpClass=sCurrentClass.replace(reClass,sNewClass);if(sTmpClass!=sCurrentClass){nTds[i].className=$.trim(sTmpClass)}else{if(sNewClass.length>0&&sCurrentClass.indexOf(sNewClass)==-1){nTds[i].className=sCurrentClass+" "+sNewClass}}}}}function _fnSaveState(oSettings){if(!oSettings.oFeatures.bStateSave||oSettings.bDestroying){return}var i,iLen,bInfinite=oSettings.oScroll.bInfinite;var oState={iCreate:new Date().getTime(),iStart:(bInfinite?0:oSettings._iDisplayStart),iEnd:(bInfinite?oSettings._iDisplayLength:oSettings._iDisplayEnd),iLength:oSettings._iDisplayLength,aaSorting:$.extend(true,[],oSettings.aaSorting),oSearch:$.extend(true,{},oSettings.oPreviousSearch),aoSearchCols:$.extend(true,[],oSettings.aoPreSearchCols),abVisCols:[]};for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){oState.abVisCols.push(oSettings.aoColumns[i].bVisible)}_fnCallbackFire(oSettings,"aoStateSaveParams","stateSaveParams",[oSettings,oState]);oSettings.fnStateSave.call(oSettings.oInstance,oSettings,oState)}function _fnLoadState(oSettings,oInit){if(!oSettings.oFeatures.bStateSave){return}var oData=oSettings.fnStateLoad.call(oSettings.oInstance,oSettings);if(!oData){return}var abStateLoad=_fnCallbackFire(oSettings,"aoStateLoadParams","stateLoadParams",[oSettings,oData]);if($.inArray(false,abStateLoad)!==-1){return}oSettings.oLoadedState=$.extend(true,{},oData);oSettings._iDisplayStart=oData.iStart;oSettings.iInitDisplayStart=oData.iStart;oSettings._iDisplayEnd=oData.iEnd;oSettings._iDisplayLength=oData.iLength;oSettings.aaSorting=oData.aaSorting.slice();oSettings.saved_aaSorting=oData.aaSorting.slice();$.extend(oSettings.oPreviousSearch,oData.oSearch);$.extend(true,oSettings.aoPreSearchCols,oData.aoSearchCols);oInit.saved_aoColumns=[];for(var i=0;i<oData.abVisCols.length;i++){oInit.saved_aoColumns[i]={};oInit.saved_aoColumns[i].bVisible=oData.abVisCols[i]}_fnCallbackFire(oSettings,"aoStateLoaded","stateLoaded",[oSettings,oData])}function _fnCreateCookie(sName,sValue,iSecs,sBaseName,fnCallback){var date=new Date();date.setTime(date.getTime()+(iSecs*1000));var aParts=window.location.pathname.split("/");var sNameFile=sName+"_"+aParts.pop().replace(/[\/:]/g,"").toLowerCase();var sFullCookie,oData;if(fnCallback!==null){oData=(typeof $.parseJSON==="function")?$.parseJSON(sValue):eval("("+sValue+")");sFullCookie=fnCallback(sNameFile,oData,date.toGMTString(),aParts.join("/")+"/")}else{sFullCookie=sNameFile+"="+encodeURIComponent(sValue)+"; expires="+date.toGMTString()+"; path="+aParts.join("/")+"/"}var aCookies=document.cookie.split(";"),iNewCookieLen=sFullCookie.split(";")[0].length,aOldCookies=[];if(iNewCookieLen+document.cookie.length+10>4096){for(var i=0,iLen=aCookies.length;i<iLen;i++){if(aCookies[i].indexOf(sBaseName)!=-1){var aSplitCookie=aCookies[i].split("=");try{oData=eval("("+decodeURIComponent(aSplitCookie[1])+")");if(oData&&oData.iCreate){aOldCookies.push({name:aSplitCookie[0],time:oData.iCreate})}}catch(e){}}}aOldCookies.sort(function(a,b){return b.time-a.time});while(iNewCookieLen+document.cookie.length+10>4096){if(aOldCookies.length===0){return}var old=aOldCookies.pop();document.cookie=old.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+aParts.join("/")+"/"}}document.cookie=sFullCookie}function _fnReadCookie(sName){var aParts=window.location.pathname.split("/"),sNameEQ=sName+"_"+aParts[aParts.length-1].replace(/[\/:]/g,"").toLowerCase()+"=",sCookieContents=document.cookie.split(";");for(var i=0;i<sCookieContents.length;i++){var c=sCookieContents[i];while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(sNameEQ)===0){return decodeURIComponent(c.substring(sNameEQ.length,c.length))}}return null}function _fnSettingsFromNode(nTable){for(var i=0;i<DataTable.settings.length;i++){if(DataTable.settings[i].nTable===nTable){return DataTable.settings[i]}}return null}function _fnGetTrNodes(oSettings){var aNodes=[];var aoData=oSettings.aoData;for(var i=0,iLen=aoData.length;i<iLen;i++){if(aoData[i].nTr!==null){aNodes.push(aoData[i].nTr)}}return aNodes}function _fnGetTdNodes(oSettings,iIndividualRow){var anReturn=[];var iCorrector;var anTds,nTd;var iRow,iRows=oSettings.aoData.length,iColumn,iColumns,oData,sNodeName,iStart=0,iEnd=iRows;if(iIndividualRow!==undefined){iStart=iIndividualRow;iEnd=iIndividualRow+1}for(iRow=iStart;iRow<iEnd;iRow++){oData=oSettings.aoData[iRow];if(oData.nTr!==null){anTds=[];nTd=oData.nTr.firstChild;while(nTd){sNodeName=nTd.nodeName.toLowerCase();if(sNodeName=="td"||sNodeName=="th"){anTds.push(nTd)}nTd=nTd.nextSibling}iCorrector=0;for(iColumn=0,iColumns=oSettings.aoColumns.length;iColumn<iColumns;iColumn++){if(oSettings.aoColumns[iColumn].bVisible){anReturn.push(anTds[iColumn-iCorrector])}else{anReturn.push(oData._anHidden[iColumn]);iCorrector++}}}}return anReturn}function _fnLog(oSettings,iLevel,sMesg){var sAlert=(oSettings===null)?"DataTables warning: "+sMesg:"DataTables warning (table id = '"+oSettings.sTableId+"'): "+sMesg;if(iLevel===0){if(DataTable.ext.sErrMode=="alert"){alert(sAlert)}else{throw new Error(sAlert)}return}else{if(window.console&&console.log){console.log(sAlert)}}}function _fnMap(oRet,oSrc,sName,sMappedName){if(sMappedName===undefined){sMappedName=sName}if(oSrc[sName]!==undefined){oRet[sMappedName]=oSrc[sName]}}function _fnExtend(oOut,oExtender){var val;for(var prop in oExtender){if(oExtender.hasOwnProperty(prop)){val=oExtender[prop];if(typeof oInit[prop]==="object"&&val!==null&&$.isArray(val)===false){$.extend(true,oOut[prop],val)}else{oOut[prop]=val}}}return oOut}function _fnBindAction(n,oData,fn){$(n).bind("click.DT",oData,function(e){n.blur();fn(e)}).bind("keypress.DT",oData,function(e){if(e.which===13){fn(e)}}).bind("selectstart.DT",function(){return false})}function _fnCallbackReg(oSettings,sStore,fn,sName){if(fn){oSettings[sStore].push({fn:fn,sName:sName})}}function _fnCallbackFire(oSettings,sStore,sTrigger,aArgs){var aoStore=oSettings[sStore];var aRet=[];for(var i=aoStore.length-1;i>=0;i--){aRet.push(aoStore[i].fn.apply(oSettings.oInstance,aArgs))}if(sTrigger!==null){$(oSettings.oInstance).trigger(sTrigger,aArgs)}return aRet}var _fnJsonString=(window.JSON)?JSON.stringify:function(o){var sType=typeof o;if(sType!=="object"||o===null){if(sType==="string"){o='"'+o+'"'}return o+""}var sProp,mValue,json=[],bArr=$.isArray(o);for(sProp in o){mValue=o[sProp];sType=typeof mValue;if(sType==="string"){mValue='"'+mValue+'"'}else{if(sType==="object"&&mValue!==null){mValue=_fnJsonString(mValue)}}json.push((bArr?"":'"'+sProp+'":')+mValue)}return(bArr?"[":"{")+json+(bArr?"]":"}")};function _fnBrowserDetect(oSettings){var n=$('<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden"><div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;"><div id="DT_BrowserTest" style="width:100%; height:10px;"></div></div></div>')[0];document.body.appendChild(n);oSettings.oBrowser.bScrollOversize=$("#DT_BrowserTest",n)[0].offsetWidth===100?true:false;document.body.removeChild(n)}this.$=function(sSelector,oOpts){var i,iLen,a=[],tr;var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var aoData=oSettings.aoData;var aiDisplay=oSettings.aiDisplay;var aiDisplayMaster=oSettings.aiDisplayMaster;if(!oOpts){oOpts={}}oOpts=$.extend({},{filter:"none",order:"current",page:"all"},oOpts);if(oOpts.page=="current"){for(i=oSettings._iDisplayStart,iLen=oSettings.fnDisplayEnd();i<iLen;i++){tr=aoData[aiDisplay[i]].nTr;if(tr){a.push(tr)}}}else{if(oOpts.order=="current"&&oOpts.filter=="none"){for(i=0,iLen=aiDisplayMaster.length;i<iLen;i++){tr=aoData[aiDisplayMaster[i]].nTr;if(tr){a.push(tr)}}}else{if(oOpts.order=="current"&&oOpts.filter=="applied"){for(i=0,iLen=aiDisplay.length;i<iLen;i++){tr=aoData[aiDisplay[i]].nTr;if(tr){a.push(tr)}}}else{if(oOpts.order=="original"&&oOpts.filter=="none"){for(i=0,iLen=aoData.length;i<iLen;i++){tr=aoData[i].nTr;if(tr){a.push(tr)}}}else{if(oOpts.order=="original"&&oOpts.filter=="applied"){for(i=0,iLen=aoData.length;i<iLen;i++){tr=aoData[i].nTr;if($.inArray(i,aiDisplay)!==-1&&tr){a.push(tr)}}}else{_fnLog(oSettings,1,"Unknown selection options")}}}}}var jqA=$(a);var jqTRs=jqA.filter(sSelector);var jqDescendants=jqA.find(sSelector);return $([].concat($.makeArray(jqTRs),$.makeArray(jqDescendants)))};this._=function(sSelector,oOpts){var aOut=[];var i,iLen,iIndex;var aTrs=this.$(sSelector,oOpts);for(i=0,iLen=aTrs.length;i<iLen;i++){aOut.push(this.fnGetData(aTrs[i]))}return aOut};this.fnAddData=function(mData,bRedraw){if(mData.length===0){return[]}var aiReturn=[];var iTest;var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);if(typeof mData[0]==="object"&&mData[0]!==null){for(var i=0;i<mData.length;i++){iTest=_fnAddData(oSettings,mData[i]);if(iTest==-1){return aiReturn}aiReturn.push(iTest)}}else{iTest=_fnAddData(oSettings,mData);if(iTest==-1){return aiReturn}aiReturn.push(iTest)}oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();if(bRedraw===undefined||bRedraw){_fnReDraw(oSettings)}return aiReturn};this.fnAdjustColumnSizing=function(bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);_fnAdjustColumnSizing(oSettings);if(bRedraw===undefined||bRedraw){this.fnDraw(false)}else{if(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!==""){this.oApi._fnScrollDraw(oSettings)}}};this.fnClearTable=function(bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);_fnClearTable(oSettings);if(bRedraw===undefined||bRedraw){_fnDraw(oSettings)}};this.fnClose=function(nTr){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);for(var i=0;i<oSettings.aoOpenRows.length;i++){if(oSettings.aoOpenRows[i].nParent==nTr){var nTrParent=oSettings.aoOpenRows[i].nTr.parentNode;if(nTrParent){nTrParent.removeChild(oSettings.aoOpenRows[i].nTr)}oSettings.aoOpenRows.splice(i,1);return 0}}return 1};this.fnDeleteRow=function(mTarget,fnCallBack,bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var i,iLen,iAODataIndex;iAODataIndex=(typeof mTarget==="object")?_fnNodeToDataIndex(oSettings,mTarget):mTarget;var oData=oSettings.aoData.splice(iAODataIndex,1);for(i=0,iLen=oSettings.aoData.length;i<iLen;i++){if(oSettings.aoData[i].nTr!==null){oSettings.aoData[i].nTr._DT_RowIndex=i}}var iDisplayIndex=$.inArray(iAODataIndex,oSettings.aiDisplay);oSettings.asDataSearch.splice(iDisplayIndex,1);_fnDeleteIndex(oSettings.aiDisplayMaster,iAODataIndex);_fnDeleteIndex(oSettings.aiDisplay,iAODataIndex);if(typeof fnCallBack==="function"){fnCallBack.call(this,oSettings,oData)}if(oSettings._iDisplayStart>=oSettings.fnRecordsDisplay()){oSettings._iDisplayStart-=oSettings._iDisplayLength;if(oSettings._iDisplayStart<0){oSettings._iDisplayStart=0}}if(bRedraw===undefined||bRedraw){_fnCalculateEnd(oSettings);_fnDraw(oSettings)}return oData};this.fnDestroy=function(bRemove){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var nOrig=oSettings.nTableWrapper.parentNode;var nBody=oSettings.nTBody;var i,iLen;bRemove=(bRemove===undefined)?false:bRemove;oSettings.bDestroying=true;_fnCallbackFire(oSettings,"aoDestroyCallback","destroy",[oSettings]);if(!bRemove){for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){if(oSettings.aoColumns[i].bVisible===false){this.fnSetColumnVis(i,true)}}}$(oSettings.nTableWrapper).find("*").andSelf().unbind(".DT");$("tbody>tr>td."+oSettings.oClasses.sRowEmpty,oSettings.nTable).parent().remove();if(oSettings.nTable!=oSettings.nTHead.parentNode){$(oSettings.nTable).children("thead").remove();oSettings.nTable.appendChild(oSettings.nTHead)}if(oSettings.nTFoot&&oSettings.nTable!=oSettings.nTFoot.parentNode){$(oSettings.nTable).children("tfoot").remove();oSettings.nTable.appendChild(oSettings.nTFoot)}oSettings.nTable.parentNode.removeChild(oSettings.nTable);$(oSettings.nTableWrapper).remove();oSettings.aaSorting=[];oSettings.aaSortingFixed=[];_fnSortingClasses(oSettings);$(_fnGetTrNodes(oSettings)).removeClass(oSettings.asStripeClasses.join(" "));$("th, td",oSettings.nTHead).removeClass([oSettings.oClasses.sSortable,oSettings.oClasses.sSortableAsc,oSettings.oClasses.sSortableDesc,oSettings.oClasses.sSortableNone].join(" "));if(oSettings.bJUI){$("th span."+oSettings.oClasses.sSortIcon+", td span."+oSettings.oClasses.sSortIcon,oSettings.nTHead).remove();$("th, td",oSettings.nTHead).each(function(){var jqWrapper=$("div."+oSettings.oClasses.sSortJUIWrapper,this);var kids=jqWrapper.contents();$(this).append(kids);jqWrapper.remove()})}if(!bRemove&&oSettings.nTableReinsertBefore){nOrig.insertBefore(oSettings.nTable,oSettings.nTableReinsertBefore)}else{if(!bRemove){nOrig.appendChild(oSettings.nTable)}}for(i=0,iLen=oSettings.aoData.length;i<iLen;i++){if(oSettings.aoData[i].nTr!==null){nBody.appendChild(oSettings.aoData[i].nTr)}}if(oSettings.oFeatures.bAutoWidth===true){oSettings.nTable.style.width=_fnStringToCss(oSettings.sDestroyWidth)}iLen=oSettings.asDestroyStripes.length;if(iLen){var anRows=$(nBody).children("tr");for(i=0;i<iLen;i++){anRows.filter(":nth-child("+iLen+"n + "+i+")").addClass(oSettings.asDestroyStripes[i])}}for(i=0,iLen=DataTable.settings.length;i<iLen;i++){if(DataTable.settings[i]==oSettings){DataTable.settings.splice(i,1)}}oSettings=null;oInit=null};this.fnDraw=function(bComplete){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);if(bComplete===false){_fnCalculateEnd(oSettings);_fnDraw(oSettings)}else{_fnReDraw(oSettings)}};this.fnFilter=function(sInput,iColumn,bRegex,bSmart,bShowGlobal,bCaseInsensitive){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);if(!oSettings.oFeatures.bFilter){return}if(bRegex===undefined||bRegex===null){bRegex=false}if(bSmart===undefined||bSmart===null){bSmart=true}if(bShowGlobal===undefined||bShowGlobal===null){bShowGlobal=true}if(bCaseInsensitive===undefined||bCaseInsensitive===null){bCaseInsensitive=true}if(iColumn===undefined||iColumn===null){_fnFilterComplete(oSettings,{sSearch:sInput+"",bRegex:bRegex,bSmart:bSmart,bCaseInsensitive:bCaseInsensitive},1);if(bShowGlobal&&oSettings.aanFeatures.f){var n=oSettings.aanFeatures.f;for(var i=0,iLen=n.length;i<iLen;i++){try{if(n[i]._DT_Input!=document.activeElement){$(n[i]._DT_Input).val(sInput)}}catch(e){$(n[i]._DT_Input).val(sInput)}}}}else{$.extend(oSettings.aoPreSearchCols[iColumn],{sSearch:sInput+"",bRegex:bRegex,bSmart:bSmart,bCaseInsensitive:bCaseInsensitive});_fnFilterComplete(oSettings,oSettings.oPreviousSearch,1)}};this.fnGetData=function(mRow,iCol){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);if(mRow!==undefined){var iRow=mRow;if(typeof mRow==="object"){var sNode=mRow.nodeName.toLowerCase();if(sNode==="tr"){iRow=_fnNodeToDataIndex(oSettings,mRow)}else{if(sNode==="td"){iRow=_fnNodeToDataIndex(oSettings,mRow.parentNode);iCol=_fnNodeToColumnIndex(oSettings,iRow,mRow)}}}if(iCol!==undefined){return _fnGetCellData(oSettings,iRow,iCol,"")}return(oSettings.aoData[iRow]!==undefined)?oSettings.aoData[iRow]._aData:null}return _fnGetDataMaster(oSettings)};this.fnGetNodes=function(iRow){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);if(iRow!==undefined){return(oSettings.aoData[iRow]!==undefined)?oSettings.aoData[iRow].nTr:null}return _fnGetTrNodes(oSettings)};this.fnGetPosition=function(nNode){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var sNodeName=nNode.nodeName.toUpperCase();if(sNodeName=="TR"){return _fnNodeToDataIndex(oSettings,nNode)}else{if(sNodeName=="TD"||sNodeName=="TH"){var iDataIndex=_fnNodeToDataIndex(oSettings,nNode.parentNode);var iColumnIndex=_fnNodeToColumnIndex(oSettings,iDataIndex,nNode);return[iDataIndex,_fnColumnIndexToVisible(oSettings,iColumnIndex),iColumnIndex]}}return null};this.fnIsOpen=function(nTr){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var aoOpenRows=oSettings.aoOpenRows;for(var i=0;i<oSettings.aoOpenRows.length;i++){if(oSettings.aoOpenRows[i].nParent==nTr){return true}}return false};this.fnOpen=function(nTr,mHtml,sClass){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var nTableRows=_fnGetTrNodes(oSettings);if($.inArray(nTr,nTableRows)===-1){return}this.fnClose(nTr);var nNewRow=document.createElement("tr");var nNewCell=document.createElement("td");nNewRow.appendChild(nNewCell);nNewCell.className=sClass;nNewCell.colSpan=_fnVisbleColumns(oSettings);if(typeof mHtml==="string"){nNewCell.innerHTML=mHtml}else{$(nNewCell).html(mHtml)}var nTrs=$("tr",oSettings.nTBody);if($.inArray(nTr,nTrs)!=-1){$(nNewRow).insertAfter(nTr)}oSettings.aoOpenRows.push({nTr:nNewRow,nParent:nTr});return nNewRow};this.fnPageChange=function(mAction,bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);_fnPageChange(oSettings,mAction);_fnCalculateEnd(oSettings);if(bRedraw===undefined||bRedraw){_fnDraw(oSettings)}};this.fnSetColumnVis=function(iCol,bShow,bRedraw){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var i,iLen;var aoColumns=oSettings.aoColumns;var aoData=oSettings.aoData;var nTd,bAppend,iBefore;if(aoColumns[iCol].bVisible==bShow){return}if(bShow){var iInsert=0;for(i=0;i<iCol;i++){if(aoColumns[i].bVisible){iInsert++}}bAppend=(iInsert>=_fnVisbleColumns(oSettings));if(!bAppend){for(i=iCol;i<aoColumns.length;i++){if(aoColumns[i].bVisible){iBefore=i;break}}}for(i=0,iLen=aoData.length;i<iLen;i++){if(aoData[i].nTr!==null){if(bAppend){aoData[i].nTr.appendChild(aoData[i]._anHidden[iCol])}else{aoData[i].nTr.insertBefore(aoData[i]._anHidden[iCol],_fnGetTdNodes(oSettings,i)[iBefore])}}}}else{for(i=0,iLen=aoData.length;i<iLen;i++){if(aoData[i].nTr!==null){nTd=_fnGetTdNodes(oSettings,i)[iCol];aoData[i]._anHidden[iCol]=nTd;nTd.parentNode.removeChild(nTd)}}}aoColumns[iCol].bVisible=bShow;_fnDrawHead(oSettings,oSettings.aoHeader);if(oSettings.nTFoot){_fnDrawHead(oSettings,oSettings.aoFooter)}for(i=0,iLen=oSettings.aoOpenRows.length;i<iLen;i++){oSettings.aoOpenRows[i].nTr.colSpan=_fnVisbleColumns(oSettings)}if(bRedraw===undefined||bRedraw){_fnAdjustColumnSizing(oSettings);_fnDraw(oSettings)}_fnSaveState(oSettings)};this.fnSettings=function(){return _fnSettingsFromNode(this[DataTable.ext.iApiIndex])};this.fnSort=function(aaSort){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);oSettings.aaSorting=aaSort;_fnSort(oSettings)};this.fnSortListener=function(nNode,iColumn,fnCallback){_fnSortAttachListener(_fnSettingsFromNode(this[DataTable.ext.iApiIndex]),nNode,iColumn,fnCallback)};this.fnUpdate=function(mData,mRow,iColumn,bRedraw,bAction){var oSettings=_fnSettingsFromNode(this[DataTable.ext.iApiIndex]);var i,iLen,sDisplay;var iRow=(typeof mRow==="object")?_fnNodeToDataIndex(oSettings,mRow):mRow;if($.isArray(mData)&&iColumn===undefined){oSettings.aoData[iRow]._aData=mData.slice();for(i=0;i<oSettings.aoColumns.length;i++){this.fnUpdate(_fnGetCellData(oSettings,iRow,i),iRow,i,false,false)}}else{if($.isPlainObject(mData)&&iColumn===undefined){oSettings.aoData[iRow]._aData=$.extend(true,{},mData);for(i=0;i<oSettings.aoColumns.length;i++){this.fnUpdate(_fnGetCellData(oSettings,iRow,i),iRow,i,false,false)}}else{_fnSetCellData(oSettings,iRow,iColumn,mData);sDisplay=_fnGetCellData(oSettings,iRow,iColumn,"display");var oCol=oSettings.aoColumns[iColumn];if(oCol.fnRender!==null){sDisplay=_fnRender(oSettings,iRow,iColumn);if(oCol.bUseRendered){_fnSetCellData(oSettings,iRow,iColumn,sDisplay)}}if(oSettings.aoData[iRow].nTr!==null){_fnGetTdNodes(oSettings,iRow)[iColumn].innerHTML=sDisplay}}}var iDisplayIndex=$.inArray(iRow,oSettings.aiDisplay);oSettings.asDataSearch[iDisplayIndex]=_fnBuildSearchRow(oSettings,_fnGetRowData(oSettings,iRow,"filter",_fnGetColumns(oSettings,"bSearchable")));if(bAction===undefined||bAction){_fnAdjustColumnSizing(oSettings)}if(bRedraw===undefined||bRedraw){_fnReDraw(oSettings)}return 0};this.fnVersionCheck=DataTable.ext.fnVersionCheck;function _fnExternApiFunc(sFunc){return function(){var aArgs=[_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return DataTable.ext.oApi[sFunc].apply(this,aArgs)}}this.oApi={_fnExternApiFunc:_fnExternApiFunc,_fnInitialise:_fnInitialise,_fnInitComplete:_fnInitComplete,_fnLanguageCompat:_fnLanguageCompat,_fnAddColumn:_fnAddColumn,_fnColumnOptions:_fnColumnOptions,_fnAddData:_fnAddData,_fnCreateTr:_fnCreateTr,_fnGatherData:_fnGatherData,_fnBuildHead:_fnBuildHead,_fnDrawHead:_fnDrawHead,_fnDraw:_fnDraw,_fnReDraw:_fnReDraw,_fnAjaxUpdate:_fnAjaxUpdate,_fnAjaxParameters:_fnAjaxParameters,_fnAjaxUpdateDraw:_fnAjaxUpdateDraw,_fnServerParams:_fnServerParams,_fnAddOptionsHtml:_fnAddOptionsHtml,_fnFeatureHtmlTable:_fnFeatureHtmlTable,_fnScrollDraw:_fnScrollDraw,_fnAdjustColumnSizing:_fnAdjustColumnSizing,_fnFeatureHtmlFilter:_fnFeatureHtmlFilter,_fnFilterComplete:_fnFilterComplete,_fnFilterCustom:_fnFilterCustom,_fnFilterColumn:_fnFilterColumn,_fnFilter:_fnFilter,_fnBuildSearchArray:_fnBuildSearchArray,_fnBuildSearchRow:_fnBuildSearchRow,_fnFilterCreateSearch:_fnFilterCreateSearch,_fnDataToSearch:_fnDataToSearch,_fnSort:_fnSort,_fnSortAttachListener:_fnSortAttachListener,_fnSortingClasses:_fnSortingClasses,_fnFeatureHtmlPaginate:_fnFeatureHtmlPaginate,_fnPageChange:_fnPageChange,_fnFeatureHtmlInfo:_fnFeatureHtmlInfo,_fnUpdateInfo:_fnUpdateInfo,_fnFeatureHtmlLength:_fnFeatureHtmlLength,_fnFeatureHtmlProcessing:_fnFeatureHtmlProcessing,_fnProcessingDisplay:_fnProcessingDisplay,_fnVisibleToColumnIndex:_fnVisibleToColumnIndex,_fnColumnIndexToVisible:_fnColumnIndexToVisible,_fnNodeToDataIndex:_fnNodeToDataIndex,_fnVisbleColumns:_fnVisbleColumns,_fnCalculateEnd:_fnCalculateEnd,_fnConvertToWidth:_fnConvertToWidth,_fnCalculateColumnWidths:_fnCalculateColumnWidths,_fnScrollingWidthAdjust:_fnScrollingWidthAdjust,_fnGetWidestNode:_fnGetWidestNode,_fnGetMaxLenString:_fnGetMaxLenString,_fnStringToCss:_fnStringToCss,_fnDetectType:_fnDetectType,_fnSettingsFromNode:_fnSettingsFromNode,_fnGetDataMaster:_fnGetDataMaster,_fnGetTrNodes:_fnGetTrNodes,_fnGetTdNodes:_fnGetTdNodes,_fnEscapeRegex:_fnEscapeRegex,_fnDeleteIndex:_fnDeleteIndex,_fnReOrderIndex:_fnReOrderIndex,_fnColumnOrdering:_fnColumnOrdering,_fnLog:_fnLog,_fnClearTable:_fnClearTable,_fnSaveState:_fnSaveState,_fnLoadState:_fnLoadState,_fnCreateCookie:_fnCreateCookie,_fnReadCookie:_fnReadCookie,_fnDetectHeader:_fnDetectHeader,_fnGetUniqueThs:_fnGetUniqueThs,_fnScrollBarWidth:_fnScrollBarWidth,_fnApplyToChildren:_fnApplyToChildren,_fnMap:_fnMap,_fnGetRowData:_fnGetRowData,_fnGetCellData:_fnGetCellData,_fnSetCellData:_fnSetCellData,_fnGetObjectDataFn:_fnGetObjectDataFn,_fnSetObjectDataFn:_fnSetObjectDataFn,_fnApplyColumnDefs:_fnApplyColumnDefs,_fnBindAction:_fnBindAction,_fnExtend:_fnExtend,_fnCallbackReg:_fnCallbackReg,_fnCallbackFire:_fnCallbackFire,_fnJsonString:_fnJsonString,_fnRender:_fnRender,_fnNodeToColumnIndex:_fnNodeToColumnIndex,_fnInfoMacros:_fnInfoMacros,_fnBrowserDetect:_fnBrowserDetect,_fnGetColumns:_fnGetColumns};$.extend(DataTable.ext.oApi,this.oApi);for(var sFunc in DataTable.ext.oApi){if(sFunc){this[sFunc]=_fnExternApiFunc(sFunc)}}var _that=this;this.each(function(){var i=0,iLen,j,jLen,k,kLen;var sId=this.getAttribute("id");var bInitHandedOff=false;var bUsePassedData=false;if(this.nodeName.toLowerCase()!="table"){_fnLog(null,0,"Attempted to initialise DataTables on a node which is not a table: "+this.nodeName);return}for(i=0,iLen=DataTable.settings.length;i<iLen;i++){if(DataTable.settings[i].nTable==this){if(oInit===undefined||oInit.bRetrieve){return DataTable.settings[i].oInstance}else{if(oInit.bDestroy){DataTable.settings[i].oInstance.fnDestroy();break}else{_fnLog(DataTable.settings[i],0,"Cannot reinitialise DataTable.\n\nTo retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy");return}}}if(DataTable.settings[i].sTableId==this.id){DataTable.settings.splice(i,1);break}}if(sId===null||sId===""){sId="DataTables_Table_"+(DataTable.ext._oExternConfig.iNextUnique++);this.id=sId}var oSettings=$.extend(true,{},DataTable.models.oSettings,{nTable:this,oApi:_that.oApi,oInit:oInit,sDestroyWidth:$(this).width(),sInstance:sId,sTableId:sId});DataTable.settings.push(oSettings);oSettings.oInstance=(_that.length===1)?_that:$(this).dataTable();if(!oInit){oInit={}}if(oInit.oLanguage){_fnLanguageCompat(oInit.oLanguage)}oInit=_fnExtend($.extend(true,{},DataTable.defaults),oInit);_fnMap(oSettings.oFeatures,oInit,"bPaginate");_fnMap(oSettings.oFeatures,oInit,"bLengthChange");_fnMap(oSettings.oFeatures,oInit,"bFilter");_fnMap(oSettings.oFeatures,oInit,"bSort");_fnMap(oSettings.oFeatures,oInit,"bInfo");_fnMap(oSettings.oFeatures,oInit,"bProcessing");_fnMap(oSettings.oFeatures,oInit,"bAutoWidth");_fnMap(oSettings.oFeatures,oInit,"bSortClasses");_fnMap(oSettings.oFeatures,oInit,"bServerSide");_fnMap(oSettings.oFeatures,oInit,"bDeferRender");_fnMap(oSettings.oScroll,oInit,"sScrollX","sX");_fnMap(oSettings.oScroll,oInit,"sScrollXInner","sXInner");_fnMap(oSettings.oScroll,oInit,"sScrollY","sY");_fnMap(oSettings.oScroll,oInit,"bScrollCollapse","bCollapse");_fnMap(oSettings.oScroll,oInit,"bScrollInfinite","bInfinite");_fnMap(oSettings.oScroll,oInit,"iScrollLoadGap","iLoadGap");_fnMap(oSettings.oScroll,oInit,"bScrollAutoCss","bAutoCss");_fnMap(oSettings,oInit,"asStripeClasses");_fnMap(oSettings,oInit,"asStripClasses","asStripeClasses");_fnMap(oSettings,oInit,"fnServerData");_fnMap(oSettings,oInit,"fnFormatNumber");_fnMap(oSettings,oInit,"sServerMethod");_fnMap(oSettings,oInit,"aaSorting");_fnMap(oSettings,oInit,"aaSortingFixed");_fnMap(oSettings,oInit,"aLengthMenu");_fnMap(oSettings,oInit,"sPaginationType");_fnMap(oSettings,oInit,"sAjaxSource");_fnMap(oSettings,oInit,"sAjaxDataProp");_fnMap(oSettings,oInit,"iCookieDuration");_fnMap(oSettings,oInit,"sCookiePrefix");_fnMap(oSettings,oInit,"sDom");_fnMap(oSettings,oInit,"bSortCellsTop");_fnMap(oSettings,oInit,"iTabIndex");_fnMap(oSettings,oInit,"oSearch","oPreviousSearch");_fnMap(oSettings,oInit,"aoSearchCols","aoPreSearchCols");_fnMap(oSettings,oInit,"iDisplayLength","_iDisplayLength");_fnMap(oSettings,oInit,"bJQueryUI","bJUI");_fnMap(oSettings,oInit,"fnCookieCallback");_fnMap(oSettings,oInit,"fnStateLoad");_fnMap(oSettings,oInit,"fnStateSave");_fnMap(oSettings.oLanguage,oInit,"fnInfoCallback");_fnCallbackReg(oSettings,"aoDrawCallback",oInit.fnDrawCallback,"user");_fnCallbackReg(oSettings,"aoServerParams",oInit.fnServerParams,"user");_fnCallbackReg(oSettings,"aoStateSaveParams",oInit.fnStateSaveParams,"user");_fnCallbackReg(oSettings,"aoStateLoadParams",oInit.fnStateLoadParams,"user");_fnCallbackReg(oSettings,"aoStateLoaded",oInit.fnStateLoaded,"user");_fnCallbackReg(oSettings,"aoRowCallback",oInit.fnRowCallback,"user");_fnCallbackReg(oSettings,"aoRowCreatedCallback",oInit.fnCreatedRow,"user");_fnCallbackReg(oSettings,"aoHeaderCallback",oInit.fnHeaderCallback,"user");_fnCallbackReg(oSettings,"aoFooterCallback",oInit.fnFooterCallback,"user");_fnCallbackReg(oSettings,"aoInitComplete",oInit.fnInitComplete,"user");_fnCallbackReg(oSettings,"aoPreDrawCallback",oInit.fnPreDrawCallback,"user");if(oSettings.oFeatures.bServerSide&&oSettings.oFeatures.bSort&&oSettings.oFeatures.bSortClasses){_fnCallbackReg(oSettings,"aoDrawCallback",_fnSortingClasses,"server_side_sort_classes")}else{if(oSettings.oFeatures.bDeferRender){_fnCallbackReg(oSettings,"aoDrawCallback",_fnSortingClasses,"defer_sort_classes")}}if(oInit.bJQueryUI){$.extend(oSettings.oClasses,DataTable.ext.oJUIClasses);if(oInit.sDom===DataTable.defaults.sDom&&DataTable.defaults.sDom==="lfrtip"){oSettings.sDom='<"H"lfr>t<"F"ip>'}}else{$.extend(oSettings.oClasses,DataTable.ext.oStdClasses)}$(this).addClass(oSettings.oClasses.sTable);if(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!==""){oSettings.oScroll.iBarWidth=_fnScrollBarWidth()}if(oSettings.iInitDisplayStart===undefined){oSettings.iInitDisplayStart=oInit.iDisplayStart;oSettings._iDisplayStart=oInit.iDisplayStart}if(oInit.bStateSave){oSettings.oFeatures.bStateSave=true;_fnLoadState(oSettings,oInit);_fnCallbackReg(oSettings,"aoDrawCallback",_fnSaveState,"state_save")}if(oInit.iDeferLoading!==null){oSettings.bDeferLoading=true;var tmp=$.isArray(oInit.iDeferLoading);oSettings._iRecordsDisplay=tmp?oInit.iDeferLoading[0]:oInit.iDeferLoading;oSettings._iRecordsTotal=tmp?oInit.iDeferLoading[1]:oInit.iDeferLoading}if(oInit.aaData!==null){bUsePassedData=true}if(oInit.oLanguage.sUrl!==""){oSettings.oLanguage.sUrl=oInit.oLanguage.sUrl;$.getJSON(oSettings.oLanguage.sUrl,null,function(json){_fnLanguageCompat(json);$.extend(true,oSettings.oLanguage,oInit.oLanguage,json);_fnInitialise(oSettings)});bInitHandedOff=true}else{$.extend(true,oSettings.oLanguage,oInit.oLanguage)}if(oInit.asStripeClasses===null){oSettings.asStripeClasses=[oSettings.oClasses.sStripeOdd,oSettings.oClasses.sStripeEven]}iLen=oSettings.asStripeClasses.length;oSettings.asDestroyStripes=[];if(iLen){var bStripeRemove=false;var anRows=$(this).children("tbody").children("tr:lt("+iLen+")");for(i=0;i<iLen;i++){if(anRows.hasClass(oSettings.asStripeClasses[i])){bStripeRemove=true;oSettings.asDestroyStripes.push(oSettings.asStripeClasses[i])}}if(bStripeRemove){anRows.removeClass(oSettings.asStripeClasses.join(" "))}}var anThs=[];var aoColumnsInit;var nThead=this.getElementsByTagName("thead");if(nThead.length!==0){_fnDetectHeader(oSettings.aoHeader,nThead[0]);anThs=_fnGetUniqueThs(oSettings)}if(oInit.aoColumns===null){aoColumnsInit=[];for(i=0,iLen=anThs.length;i<iLen;i++){aoColumnsInit.push(null)}}else{aoColumnsInit=oInit.aoColumns}for(i=0,iLen=aoColumnsInit.length;i<iLen;i++){if(oInit.saved_aoColumns!==undefined&&oInit.saved_aoColumns.length==iLen){if(aoColumnsInit[i]===null){aoColumnsInit[i]={}}aoColumnsInit[i].bVisible=oInit.saved_aoColumns[i].bVisible}_fnAddColumn(oSettings,anThs?anThs[i]:null)}_fnApplyColumnDefs(oSettings,oInit.aoColumnDefs,aoColumnsInit,function(iCol,oDef){_fnColumnOptions(oSettings,iCol,oDef)});for(i=0,iLen=oSettings.aaSorting.length;i<iLen;i++){if(oSettings.aaSorting[i][0]>=oSettings.aoColumns.length){oSettings.aaSorting[i][0]=0}var oColumn=oSettings.aoColumns[oSettings.aaSorting[i][0]];if(oSettings.aaSorting[i][2]===undefined){oSettings.aaSorting[i][2]=0}if(oInit.aaSorting===undefined&&oSettings.saved_aaSorting===undefined){oSettings.aaSorting[i][1]=oColumn.asSorting[0]}for(j=0,jLen=oColumn.asSorting.length;j<jLen;j++){if(oSettings.aaSorting[i][1]==oColumn.asSorting[j]){oSettings.aaSorting[i][2]=j;break}}}_fnSortingClasses(oSettings);_fnBrowserDetect(oSettings);var captions=$(this).children("caption").each(function(){this._captionSide=$(this).css("caption-side")});var thead=$(this).children("thead");if(thead.length===0){thead=[document.createElement("thead")];this.appendChild(thead[0])}oSettings.nTHead=thead[0];var tbody=$(this).children("tbody");if(tbody.length===0){tbody=[document.createElement("tbody")];this.appendChild(tbody[0])}oSettings.nTBody=tbody[0];oSettings.nTBody.setAttribute("role","alert");oSettings.nTBody.setAttribute("aria-live","polite");oSettings.nTBody.setAttribute("aria-relevant","all");var tfoot=$(this).children("tfoot");if(tfoot.length===0&&captions.length>0&&(oSettings.oScroll.sX!==""||oSettings.oScroll.sY!=="")){tfoot=[document.createElement("tfoot")];this.appendChild(tfoot[0])}if(tfoot.length>0){oSettings.nTFoot=tfoot[0];_fnDetectHeader(oSettings.aoFooter,oSettings.nTFoot)}if(bUsePassedData){for(i=0;i<oInit.aaData.length;i++){_fnAddData(oSettings,oInit.aaData[i])}}else{_fnGatherData(oSettings)}oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();oSettings.bInitialised=true;if(bInitHandedOff===false){_fnInitialise(oSettings)}});_that=null;return this};DataTable.fnVersionCheck=function(sVersion){var fnZPad=function(Zpad,count){while(Zpad.length<count){Zpad+="0"}return Zpad};var aThis=DataTable.ext.sVersion.split(".");var aThat=sVersion.split(".");var sThis="",sThat="";for(var i=0,iLen=aThat.length;i<iLen;i++){sThis+=fnZPad(aThis[i],3);sThat+=fnZPad(aThat[i],3)}return parseInt(sThis,10)>=parseInt(sThat,10)};DataTable.fnIsDataTable=function(nTable){var o=DataTable.settings;for(var i=0;i<o.length;i++){if(o[i].nTable===nTable||o[i].nScrollHead===nTable||o[i].nScrollFoot===nTable){return true}}return false};DataTable.fnTables=function(bVisible){var out=[];jQuery.each(DataTable.settings,function(i,o){if(!bVisible||(bVisible===true&&$(o.nTable).is(":visible"))){out.push(o.nTable)}});return out};DataTable.version="1.9.4";DataTable.settings=[];DataTable.models={};DataTable.models.ext={afnFiltering:[],afnSortData:[],aoFeatures:[],aTypes:[],fnVersionCheck:DataTable.fnVersionCheck,iApiIndex:0,ofnSearch:{},oApi:{},oStdClasses:{},oJUIClasses:{},oPagination:{},oSort:{},sVersion:DataTable.version,sErrMode:"alert",_oExternConfig:{iNextUnique:0}};DataTable.models.oSearch={bCaseInsensitive:true,sSearch:"",bRegex:false,bSmart:true};DataTable.models.oRow={nTr:null,_aData:[],_aSortData:[],_anHidden:[],_sRowStripe:""};DataTable.models.oColumn={aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bUseRendered:null,bVisible:null,_bAutoType:true,fnCreatedCell:null,fnGetData:null,fnRender:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};DataTable.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:true,bDeferRender:false,bDestroy:false,bFilter:true,bInfo:true,bJQueryUI:false,bLengthChange:true,bPaginate:true,bProcessing:false,bRetrieve:false,bScrollAutoCss:true,bScrollCollapse:false,bScrollInfinite:false,bServerSide:false,bSort:true,bSortCellsTop:false,bSortClasses:true,bStateSave:false,fnCookieCallback:null,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(iIn){if(iIn<1000){return iIn}var s=(iIn+""),a=s.split(""),out="",iLen=s.length;for(var i=0;i<iLen;i++){if(i%3===0&&i!==0){out=this.oLanguage.sInfoThousands+out}out=a[iLen-i-1]+out}return out},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:function(sUrl,aoData,fnCallback,oSettings){oSettings.jqXHR=$.ajax({url:sUrl,data:aoData,success:function(json){if(json.sError){oSettings.oApi._fnLog(oSettings,0,json.sError)}$(oSettings.oInstance).trigger("xhr",[oSettings,json]);fnCallback(json)},dataType:"json",cache:false,type:oSettings.sServerMethod,error:function(xhr,error,thrown){if(error=="parsererror"){oSettings.oApi._fnLog(oSettings,0,"DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.")}}})},fnServerParams:null,fnStateLoad:function(oSettings){var sData=this.oApi._fnReadCookie(oSettings.sCookiePrefix+oSettings.sInstance);var oData;try{oData=(typeof $.parseJSON==="function")?$.parseJSON(sData):eval("("+sData+")")}catch(e){oData=null}return oData},fnStateLoadParams:null,fnStateLoaded:null,fnStateSave:function(oSettings,oData){this.oApi._fnCreateCookie(oSettings.sCookiePrefix+oSettings.sInstance,this.oApi._fnJsonString(oData),oSettings.iCookieDuration,oSettings.sCookiePrefix,oSettings.fnCookieCallback)},fnStateSaveParams:null,iCookieDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iScrollLoadGap:100,iTabIndex:0,oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:$.extend({},DataTable.models.oSearch),sAjaxDataProp:"aaData",sAjaxSource:null,sCookiePrefix:"SpryMedia_DataTables_",sDom:"lfrtip",sPaginationType:"two_button",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET"};DataTable.defaults.columns={aDataSort:null,asSorting:["asc","desc"],bSearchable:true,bSortable:true,bUseRendered:true,bVisible:true,fnCreatedCell:null,fnRender:null,iDataSort:-1,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};DataTable.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortClasses:null,bStateSave:null},oScroll:{bAutoCss:null,bCollapse:null,bInfinite:null,iBarWidth:0,iLoadGap:null,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:false},aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],asDataSearch:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:null,asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:false,bInitialised:false,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iCookieDuration:0,sCookiePrefix:"",fnCookieCallback:null,aoStateSave:[],aoStateLoad:[],oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:true,jqXHR:null,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:false,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iDisplayEnd:10,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:false,bSorted:false,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){if(this.oFeatures.bServerSide){return parseInt(this._iRecordsTotal,10)}else{return this.aiDisplayMaster.length}},fnRecordsDisplay:function(){if(this.oFeatures.bServerSide){return parseInt(this._iRecordsDisplay,10)}else{return this.aiDisplay.length}},fnDisplayEnd:function(){if(this.oFeatures.bServerSide){if(this.oFeatures.bPaginate===false||this._iDisplayLength==-1){return this._iDisplayStart+this.aiDisplay.length}else{return Math.min(this._iDisplayStart+this._iDisplayLength,this._iRecordsDisplay)}}else{return this._iDisplayEnd}},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null};DataTable.ext=$.extend(true,{},DataTable.models.ext);$.extend(DataTable.ext.oStdClasses,{sTable:"dataTable",sPagePrevEnabled:"paginate_enabled_previous",sPagePrevDisabled:"paginate_disabled_previous",sPageNextEnabled:"paginate_enabled_next",sPageNextDisabled:"paginate_disabled_next",sPageJUINext:"",sPageJUIPrev:"",sPageButton:"paginate_button",sPageButtonActive:"paginate_active",sPageButtonStaticDisabled:"paginate_button paginate_button_disabled",sPageFirst:"first",sPagePrevious:"previous",sPageNext:"next",sPageLast:"last",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sFooterTH:"",sJUIHeader:"",sJUIFooter:""});$.extend(DataTable.ext.oJUIClasses,DataTable.ext.oStdClasses,{sPagePrevEnabled:"fg-button ui-button ui-state-default ui-corner-left",sPagePrevDisabled:"fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",sPageNextEnabled:"fg-button ui-button ui-state-default ui-corner-right",sPageNextDisabled:"fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",sPageJUINext:"ui-icon ui-icon-circle-arrow-e",sPageJUIPrev:"ui-icon ui-icon-circle-arrow-w",sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"fg-button ui-button ui-state-default ui-state-disabled",sPageButtonStaticDisabled:"fg-button ui-button ui-state-default ui-state-disabled",sPageFirst:"first ui-corner-tl ui-corner-bl",sPageLast:"last ui-corner-tr ui-corner-br",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:"ui-state-default",sSortDesc:"ui-state-default",sSortable:"ui-state-default",sSortableAsc:"ui-state-default",sSortableDesc:"ui-state-default",sSortableNone:"ui-state-default",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sFooterTH:"ui-state-default",sJUIHeader:"fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix",sJUIFooter:"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"});$.extend(DataTable.ext.oPagination,{two_button:{fnInit:function(oSettings,nPaging,fnCallbackDraw){var oLang=oSettings.oLanguage.oPaginate;var oClasses=oSettings.oClasses;var fnClickHandler=function(e){if(oSettings.oApi._fnPageChange(oSettings,e.data.action)){fnCallbackDraw(oSettings)}};var sAppend=(!oSettings.bJUI)?'<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sPrevious+'</a><a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sNext+"</a>":'<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUIPrev+'"></span></a><a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUINext+'"></span></a>';$(nPaging).append(sAppend);var els=$("a",nPaging);var nPrevious=els[0],nNext=els[1];oSettings.oApi._fnBindAction(nPrevious,{action:"previous"},fnClickHandler);oSettings.oApi._fnBindAction(nNext,{action:"next"},fnClickHandler);if(!oSettings.aanFeatures.p){nPaging.id=oSettings.sTableId+"_paginate";nPrevious.id=oSettings.sTableId+"_previous";nNext.id=oSettings.sTableId+"_next";nPrevious.setAttribute("aria-controls",oSettings.sTableId);nNext.setAttribute("aria-controls",oSettings.sTableId)}},fnUpdate:function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return}var oClasses=oSettings.oClasses;var an=oSettings.aanFeatures.p;var nNode;for(var i=0,iLen=an.length;i<iLen;i++){nNode=an[i].firstChild;if(nNode){nNode.className=(oSettings._iDisplayStart===0)?oClasses.sPagePrevDisabled:oClasses.sPagePrevEnabled;nNode=nNode.nextSibling;nNode.className=(oSettings.fnDisplayEnd()==oSettings.fnRecordsDisplay())?oClasses.sPageNextDisabled:oClasses.sPageNextEnabled}}}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(oSettings,nPaging,fnCallbackDraw){var oLang=oSettings.oLanguage.oPaginate;var oClasses=oSettings.oClasses;var fnClickHandler=function(e){if(oSettings.oApi._fnPageChange(oSettings,e.data.action)){fnCallbackDraw(oSettings)}};$(nPaging).append('<a  tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageFirst+'">'+oLang.sFirst+'</a><a  tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPagePrevious+'">'+oLang.sPrevious+'</a><span></span><a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageNext+'">'+oLang.sNext+'</a><a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageLast+'">'+oLang.sLast+"</a>");var els=$("a",nPaging);var nFirst=els[0],nPrev=els[1],nNext=els[2],nLast=els[3];oSettings.oApi._fnBindAction(nFirst,{action:"first"},fnClickHandler);oSettings.oApi._fnBindAction(nPrev,{action:"previous"},fnClickHandler);oSettings.oApi._fnBindAction(nNext,{action:"next"},fnClickHandler);oSettings.oApi._fnBindAction(nLast,{action:"last"},fnClickHandler);if(!oSettings.aanFeatures.p){nPaging.id=oSettings.sTableId+"_paginate";nFirst.id=oSettings.sTableId+"_first";nPrev.id=oSettings.sTableId+"_previous";nNext.id=oSettings.sTableId+"_next";nLast.id=oSettings.sTableId+"_last"}},fnUpdate:function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return}var iPageCount=DataTable.ext.oPagination.iFullNumbersShowPages;var iPageCountHalf=Math.floor(iPageCount/2);var iPages=Math.ceil((oSettings.fnRecordsDisplay())/oSettings._iDisplayLength);var iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;var sList="";var iStartButton,iEndButton,i,iLen;var oClasses=oSettings.oClasses;var anButtons,anStatic,nPaginateList,nNode;var an=oSettings.aanFeatures.p;var fnBind=function(j){oSettings.oApi._fnBindAction(this,{page:j+iStartButton-1},function(e){oSettings.oApi._fnPageChange(oSettings,e.data.page);fnCallbackDraw(oSettings);e.preventDefault()})};if(oSettings._iDisplayLength===-1){iStartButton=1;iEndButton=1;iCurrentPage=1}else{if(iPages<iPageCount){iStartButton=1;iEndButton=iPages}else{if(iCurrentPage<=iPageCountHalf){iStartButton=1;iEndButton=iPageCount}else{if(iCurrentPage>=(iPages-iPageCountHalf)){iStartButton=iPages-iPageCount+1;iEndButton=iPages}else{iStartButton=iCurrentPage-Math.ceil(iPageCount/2)+1;iEndButton=iStartButton+iPageCount-1}}}}for(i=iStartButton;i<=iEndButton;i++){sList+=(iCurrentPage!==i)?'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+'">'+oSettings.fnFormatNumber(i)+"</a>":'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButtonActive+'">'+oSettings.fnFormatNumber(i)+"</a>"}for(i=0,iLen=an.length;i<iLen;i++){nNode=an[i];if(!nNode.hasChildNodes()){continue}$("span:eq(0)",nNode).html(sList).children("a").each(fnBind);anButtons=nNode.getElementsByTagName("a");anStatic=[anButtons[0],anButtons[1],anButtons[anButtons.length-2],anButtons[anButtons.length-1]];$(anStatic).removeClass(oClasses.sPageButton+" "+oClasses.sPageButtonActive+" "+oClasses.sPageButtonStaticDisabled);$([anStatic[0],anStatic[1]]).addClass((iCurrentPage==1)?oClasses.sPageButtonStaticDisabled:oClasses.sPageButton);$([anStatic[2],anStatic[3]]).addClass((iPages===0||iCurrentPage===iPages||oSettings._iDisplayLength===-1)?oClasses.sPageButtonStaticDisabled:oClasses.sPageButton)}}}});$.extend(DataTable.ext.oSort,{"string-pre":function(a){if(typeof a!="string"){a=(a!==null&&a.toString)?a.toString():""}return a.toLowerCase()},"string-asc":function(x,y){return((x<y)?-1:((x>y)?1:0))},"string-desc":function(x,y){return((x<y)?1:((x>y)?-1:0))},"html-pre":function(a){return a.replace(/<.*?>/g,"").toLowerCase()},"html-asc":function(x,y){return((x<y)?-1:((x>y)?1:0))},"html-desc":function(x,y){return((x<y)?1:((x>y)?-1:0))},"date-pre":function(a){var x=Date.parse(a);if(isNaN(x)||x===""){x=Date.parse("01/01/1970 00:00:00")}return x},"date-asc":function(x,y){return x-y},"date-desc":function(x,y){return y-x},"numeric-pre":function(a){return(a=="-"||a==="")?0:a*1},"numeric-asc":function(x,y){return x-y},"numeric-desc":function(x,y){return y-x}});$.extend(DataTable.ext.aTypes,[function(sData){if(typeof sData==="number"){return"numeric"}else{if(typeof sData!=="string"){return null}}var sValidFirstChars="0123456789-";var sValidChars="0123456789.";var Char;var bDecimal=false;Char=sData.charAt(0);if(sValidFirstChars.indexOf(Char)==-1){return null}for(var i=1;i<sData.length;i++){Char=sData.charAt(i);if(sValidChars.indexOf(Char)==-1){return null}if(Char=="."){if(bDecimal){return null}bDecimal=true}}return"numeric"},function(sData){var iParse=Date.parse(sData);if((iParse!==null&&!isNaN(iParse))||(typeof sData==="string"&&sData.length===0)){return"date"}return null},function(sData){if(typeof sData==="string"&&sData.indexOf("<")!=-1&&sData.indexOf(">")!=-1){return"html"}return null}]);$.fn.DataTable=DataTable;$.fn.dataTable=DataTable;$.fn.dataTableSettings=DataTable.settings;$.fn.dataTableExt=DataTable.ext}))}(window,document));
/*
 * jQuery Nearest plugin v1.2.2
 *
 * Finds elements closest to a single point based on screen location and pixel dimensions
 * http://gilmoreorless.github.io/jquery-nearest/
 * Open source under the MIT licence: http://gilmoreorless.mit-license.org/2011/
 *
 * Requires jQuery 1.4 or above
 * Also supports Ben Alman's "each2" plugin for faster looping (if available)
 */
(function(c,d){var a=/^([\d.]+)%$/;function b(z,h,H){z||(z="div");var x=c(h.container),k=x.offset()||{left:0,top:0},y=[k.left+x.width(),k.top+x.height()],o={x:0,y:1,w:0,h:1},f,m;for(f in o){if(o.hasOwnProperty(f)){m=a.exec(h[f]);if(m){h[f]=y[o[f]]*m[1]/100}}}var p=x.find(z),r=[],q=!!h.furthest,t=!!h.checkHoriz,s=!!h.checkVert,e=q?0:Infinity,G=parseFloat(h.x)||0,E=parseFloat(h.y)||0,j=parseFloat(G+h.w)||G,g=parseFloat(E+h.h)||E,D=h.tolerance||0,n=!!c.fn.each2,v=Math.min,B=Math.max;if(!h.includeSelf&&H){p=p.not(H)}if(D<0){D=0}p[n?"each2":"each"](function(V,Y){var J=n?Y:c(this),Z=J.offset(),M=Z.left,L=Z.top,N=J.outerWidth(),W=J.outerHeight(),X=M+N,I=L+W,ab=B(M,G),S=v(X,j),K=B(L,E),aa=v(I,g),R=S>=ab,Q=aa>=K,P,O,T,U;if((t&&s)||(!t&&!s&&R&&Q)||(t&&Q)||(s&&R)||(t&&h.onlyX)||(s&&h.onlyY)){P=R?0:ab-S;O=Q?0:K-aa;if(h.onlyX){T=P}else{if(h.onlyY){T=O}else{T=R||Q?B(P,O):Math.sqrt(P*P+O*O)}}U=q?T>=e-D:T<=e+D;if(U){e=q?B(e,T):v(e,T);r.push({node:this,dist:T})}}});var C=r.length,l=[],u,w,A,F;if(C){if(q){u=e-D;w=e}else{u=e;w=e+D}for(A=0;A<C;A++){F=r[A];if(F.dist>=u&&F.dist<=w){l.push(F.node)}}}return l}c.each(["nearest","furthest","touching"],function(f,e){var g={x:0,y:0,w:0,h:0,tolerance:1,container:document,furthest:e=="furthest",includeSelf:false,checkHoriz:e!="touching",checkVert:e!="touching"};c[e]=function(i,h,j){if(!i||i.x===d||i.y===d){return c([])}var k=c.extend({},g,i,j||{});return c(b(h,k))};c.fn[e]=function(h,i){var k;if(h&&c.isPlainObject(h)){k=c.extend({},g,h,i||{});return this.pushStack(b(this,k))}var l=this.offset(),j={x:l.left,y:l.top,w:this.outerWidth(),h:this.outerHeight()};k=c.extend({},g,j,i||{});return this.pushStack(b(h,k,this))}})})(jQuery);var aidata;var chart;function navigateToAIDiagramm(){window.location.hash="#AbstractnessVsInstability"}(function(a){var b={init:function(){a(document).ready(b.ready);b.customSort()},ready:function(){b.handleMenu();b.navigatePages();b.initDatatables();b.initColorbox();b.handleCodeQuery();b.handleAI();a(window).on("hashchange",b.navigatePages)},customSort:function(){jQuery.fn.dataTableExt.aTypes.unshift(function(c){var d=c.replace(/[^\d\-\.\/a-zA-Z]/g,"");d=d.replace("N/A",-999999);if(a.isNumeric(d)||d==="-"){return"formatted-num"}return null});jQuery.extend(jQuery.fn.dataTableExt.oSort,{"formatted-num-pre":function(c){if(c==="-"){return 0}if(c==="N/A"){return 999999}c=c.replace(/[^\d\-\.]/g,"");return parseFloat(c)},"formatted-num-asc":function(d,c){return d-c},"formatted-num-desc":function(d,c){return c-d}})},handleAI:function(){var c=a("#searchai");c.keyup(function(){var e=[];for(var d=0;d<aidata.length;d++){if(aidata[d].key.toLowerCase().indexOf(c.val().toLowerCase())>=0){e.push(aidata[d])}}if(e.length==0){e=[{key:"empty",values:[{x:2,y:2,}]}]}d3.select("#AIContainer svg").datum(e);chart.update()})},handleMenu:function(){b.cache.menu=a("#Menu");b.cache.menuli=a("#Menu").find("li");b.cache.menu.on("click","a",function(c){c.preventDefault()});b.cache.menu.prepend("<div class='back'><span class='arrow'></span>Back</div>");b.cache.menu.find(" > ul").addClass("root");b.cache.menu.on("click",".back",function(){var c=b.cache.menu.find("li.active");c.last().removeClass("active");c.last().siblings().show();if(c.length==1){b.cache.menu.find(".back").removeClass("active")}});b.cache.menu.on("click","li",function(){if(a(this).find("> a").length>0){var c=a(this).find("> a").attr("href");if(c!="#"){window.location.hash=c}}if(a(this).find("ul").length>0){a(this).siblings().hide();a(this).addClass("active");b.cache.menu.find(".back").addClass("active")}return false});a("#divNavBars").on("click","a",function(d){d.preventDefault();var c=a(this).attr("href");if(c!="#"){window.location.hash=c}})},navigatePages:function(){var e=window.location.hash;var d={};if(e){if(e.match("#Query")){if((a(e).length)==0){e=window.location.hash.replace("#","#GroupOfQueries")}var f=a(e);if(!f.parents(".ndependScreen").is(":visible")){b.cache.screen=f.parents(".ndependScreen");a(".ndependNavbar").hide();d=a("#ndependNavbar-"+b.cache.screen.attr("id"));d.show();a(".ndependScreen").hide();b.cache.screen.show();b.initDatatables()}window.scrollTo(0,f.offset().top)}else{if(e.match("#QualityGate")){if((a(e).length)==0){e=window.location.hash.replace("#","#GroupOfQualityGates")}var f=a(e);if(!f.parents(".ndependScreen").is(":visible")){b.cache.screen=f.parents(".ndependScreen");a(".ndependNavbar").hide();d=a("#ndependNavbar-"+b.cache.screen.attr("id"));d.show();a(".ndependScreen").hide();b.cache.screen.show();b.initDatatables()}window.scrollTo(0,f.offset().top)}else{if(e.match("#divQualityGatesSummary")||e.match("#divRulesSummary")){if((a(e).length)==0){e=window.location.hash.replace("#","#Main")}var f=a(e);if(!f.parents(".ndependScreen").is(":visible")){b.cache.screen=f.parents(".ndependScreen");a(".ndependNavbar").hide();d=a("#ndependNavbar-"+b.cache.screen.attr("id"));d.show();a(".ndependScreen").hide();b.cache.screen.show();b.initDatatables()}window.scrollTo(0,f.offset().top)}else{if(e.match("_NoDirectChildQuery")&&(e.match("GroupOfRules")||e.match("GroupOfQualityGates"))){return}a(".ndependNavbar").hide();d=a(e.replace("#","#ndependNavbar-"));d.show();b.cache.screen=a(e);a(".ndependScreen").hide();b.cache.screen.show();b.initDatatables();window.scrollTo(0,0)}}}if(e.match("#AbstractnessVsInstability")){nv.addGraph(function(){chart=nv.models.scatterChart().margin({bottom:60}).showLegend(false);chart.tooltip.contentGenerator(function(g){return"<p>Project:"+g.series[0].key+'</p><h3 style="color:red;display:inline;">Abstractness</h3> : <span style="display:inline;"><b>'+g.point.y+'</b>&nbsp;  </span></br><h3 style="color:blue;display:inline;">Instability</h3> : <span style="display:inline;"><b>'+g.point.x+'</b>&nbsp;  </span></br><h3 style="color:green;display:inline;">Dist</h3> : <span style="display:inline;"><b>'+g.point.dist+"</b> &nbsp; </span></br></br>"});d3.select("#AIContainer svg").datum(aidata).call(chart);nv.utils.windowResize(chart.update);chart.dispatch.on("stateChange",function(g){("New State:",JSON.stringify(g))});return chart})}}else{d=a("#ndependNavbar-Main");b.cache.screen=a("#Main");b.cache.screen.show();location.replace("#Main");d.show()}var c=b.cache.menu.find("a[href='#"+b.cache.screen.attr("id")+"']");b.cache.menuli.removeClass("current").removeClass("active");c.parents("li").addClass("current");b.cache.menuli.show();c.parent().parents("li").each(function(){a(this).addClass("active");a(this).siblings().hide()});if(c.parents("li").length>1){b.cache.menu.find(".back").addClass("active")}else{b.cache.menu.find(".back").removeClass("active")}},initColorbox:function(){a("#AbstractnessVersusInstabilityOnlineLink").colorbox({width:"80%",height:"80%",iframe:true});a("#DependenciesDiagramOnlineLink").colorbox({width:"80%",height:"80%",iframe:true});a("#TreemapOnlineLink").colorbox({width:"80%",height:"80%",iframe:true});a("#AbstractnessVersusInstabilityHelp").colorbox({width:"50%",inline:true,href:"#inline_AbstractnessVersusInstability"});a("#DependenciesDiagramHelp").colorbox({width:"50%",inline:true,href:"#inline_DependenciesDiagram"});a("#DependenciesMatrixHelp").colorbox({width:"50%",inline:true,href:"#inline_DependenciesMatrix"});a("#TreemapHelp").colorbox({width:"50%",inline:true,href:"#inline_Treemap"});a("#QuickTipsMain").colorbox({width:"50%",inline:true,href:"#inline_QuickTipsMain"});a("#ForBeginnersMain").colorbox({width:"50%",inline:true,href:"#inline_ForBeginnersMain"});a("#RecentViolationsOnlyONHelp").colorbox({width:"50%",inline:true,href:"#inline_RecentViolationsOnlyONHelp"});a("#RecentViolationsOnlyOFFHelp").colorbox({width:"50%",inline:true,href:"#inline_RecentViolationsOnlyOFFHelp"});a("#ApplicationStatsHelp").colorbox({width:"50%",inline:true,href:"#inline_ApplicationStats"});a("#AssembliesStatsHelp").colorbox({width:"50%",inline:true,href:"#inline_AssembliesStats"});a("#TypesStatsHelp").colorbox({width:"50%",inline:true,href:"#inline_TypesStats"});a("a[data-ref='TruncatedQueryResult']").colorbox({width:"50%",inline:true,href:"#inline_TruncatedQueryResult"});a("a[data-ref='NONTruncatedQueryResult']").colorbox({width:"50%",inline:true,href:"#inline_NONTruncatedQueryResult"});a("a[data-ref='RecentViolationsONLY']").colorbox({width:"50%",inline:true,href:"#inline_RecentViolationsONLY"});a(document).bind("cbox_complete",function(){a.colorbox.resize()})},initDatatables:function(){b.cache.screen.find(".ndependGrid").not(".dataTable").dataTable({sPaginationType:"full_numbers",aaSorting:[],iDisplayLength:25,oLanguage:{sLengthMenu:'Display <select><option value="25" selected>25</option><option value="50">50</option><option value="100">100</option><option value="-1">All</option></select> records'}});b.cache.screen.find(".ndependStatGrid").not(".dataTable").dataTable({aaSorting:[]});b.handleDropdowns()},handleDropdowns:function(){b.cache.screen.find(".dataTables_paginate").not(".checked").each(function(){a(this).addClass("checked");if(a(this).find("span .paginate_button").length==0){a(this).hide();a(this).parent().find(".dataTables_length").hide()}});b.cache.screen.find(".dataTables_length select").not(".checked").each(function(){var d=a(this);d.addClass("checked");if(d.parent().find(".customDropdown").length==0){var c=document.createElement("span");c.className="customDropdown";a(c).append("<span class='currentValue'>"+d.find("option:selected").text()+"</span>");a(c).append("<span class='optionWrap'></span>");d.find("option").each(function(){var e=a(this);a(c).find(".optionWrap").append('<span data-value="'+e.val()+'">'+e.text()+"</span>")});d.after(c);a(c).click(function(){var e=a(this);a(this).addClass("active");setTimeout(function(){a("html").one("click",function(){a(c).removeClass("active")})},100)});a(c).find(".optionWrap span").click(function(){var e=a(this).parents(".customDropdown");e.find(".currentValue").text(a(this).text());e.unbind("click");setTimeout(function(){e.click(function(g){a(this).addClass("active");setTimeout(function(){a("html").one("click",function(){a(c).removeClass("active")})},100)})},100);var f=a(this).parents(".dataTables_length").find('select option[value="'+a(this).attr("data-value")+'"]');f.prop("selected",true);f.change()})}})},handleCodeQuery:function(){a(".codequery_body").each(function(){var c=this.attributes.caption.value;a(this).append("<span class='handle'>"+c+"</span>")});a("#content").on("click",".codequery_body .handle",function(){var c=a(this).parent();if(c.hasClass("collapsed")){a(this).parent().removeClass("collapsed")}else{a(this).parent().addClass("collapsed")}})},cache:{screen:{},menu:{},menuli:{}}};b.init()})(jQuery);d3=function(){var hs={version:"3.3.9"};if(!Date.now){Date.now=function(){return +new Date()}}var bO=[].slice,dT=function(e){return bO.call(e)};var bN=document,ee=bN.documentElement,fJ=window;try{dT(ee.childNodes)[0].nodeType}catch(hi){dT=function(ik){var e=ik.length,il=new Array(e);while(e--){il[e]=ik[e]}return il}}try{bN.createElement("div").style.setProperty("opacity",0,"")}catch(fF){var dR=fJ.Element.prototype,b1=dR.setAttribute,ha=dR.setAttributeNS,dD=fJ.CSSStyleDeclaration.prototype,gT=dD.setProperty;dR.setAttribute=function(e,ik){b1.call(this,e,ik+"")};dR.setAttributeNS=function(il,e,ik){ha.call(this,il,e,ik+"")};dD.setProperty=function(e,il,ik){gT.call(this,e,il+"",ik)}}hs.ascending=function(ik,e){return ik<e?-1:ik>e?1:ik>=e?0:NaN};hs.descending=function(ik,e){return e<ik?-1:e>ik?1:e>=ik?0:NaN};hs.min=function(ip,im){var il=-1,io=ip.length,ik,e;if(arguments.length===1){while(++il<io&&!((ik=ip[il])!=null&&ik<=ik)){ik=undefined}while(++il<io){if((e=ip[il])!=null&&ik>e){ik=e}}}else{while(++il<io&&!((ik=im.call(ip,ip[il],il))!=null&&ik<=ik)){ik=undefined}while(++il<io){if((e=im.call(ip,ip[il],il))!=null&&ik>e){ik=e}}}return ik};hs.max=function(ip,im){var il=-1,io=ip.length,ik,e;if(arguments.length===1){while(++il<io&&!((ik=ip[il])!=null&&ik<=ik)){ik=undefined}while(++il<io){if((e=ip[il])!=null&&e>ik){ik=e}}}else{while(++il<io&&!((ik=im.call(ip,ip[il],il))!=null&&ik<=ik)){ik=undefined}while(++il<io){if((e=im.call(ip,ip[il],il))!=null&&e>ik){ik=e}}}return ik};hs.extent=function(iq,im){var il=-1,ip=iq.length,ik,e,io;if(arguments.length===1){while(++il<ip&&!((ik=io=iq[il])!=null&&ik<=ik)){ik=io=undefined}while(++il<ip){if((e=iq[il])!=null){if(ik>e){ik=e}if(io<e){io=e}}}}else{while(++il<ip&&!((ik=io=im.call(iq,iq[il],il))!=null&&ik<=ik)){ik=undefined}while(++il<ip){if((e=im.call(iq,iq[il],il))!=null){if(ik>e){ik=e}if(io<e){io=e}}}}return[ik,io]};hs.sum=function(ip,im){var il=0,io=ip.length,e,ik=-1;if(arguments.length===1){while(++ik<io){if(!isNaN(e=+ip[ik])){il+=e}}}else{while(++ik<io){if(!isNaN(e=+im.call(ip,ip[ik],ik))){il+=e}}}return il};function hx(e){return e!=null&&!isNaN(e)}hs.mean=function(iq,io){var ip=iq.length,ik,e=0,im=-1,il=0;if(arguments.length===1){while(++im<ip){if(hx(ik=iq[im])){e+=(ik-e)/++il}}}else{while(++im<ip){if(hx(ik=io.call(iq,iq[im],im))){e+=(ik-e)/++il}}}return il?e:undefined};hs.quantile=function(il,iq){var im=(il.length-1)*iq+1,io=Math.floor(im),ik=+il[io-1],ip=im-io;return ip?ik+ip*(il[io]-ik):ik};hs.median=function(ik,e){if(arguments.length>1){ik=ik.map(e)}ik=ik.filter(hx);return ik.length?hs.quantile(ik.sort(hs.ascending),0.5):undefined};hs.bisector=function(e){return{left:function(il,ik,ip,io){if(arguments.length<3){ip=0}if(arguments.length<4){io=il.length}while(ip<io){var im=ip+io>>>1;if(e.call(il,il[im],im)<ik){ip=im+1}else{io=im}}return ip},right:function(il,ik,ip,io){if(arguments.length<3){ip=0}if(arguments.length<4){io=il.length}while(ip<io){var im=ip+io>>>1;if(ik<e.call(il,il[im],im)){io=im}else{ip=im+1}}return ip}}};var gx=hs.bisector(function(e){return e});hs.bisectLeft=gx.left;hs.bisect=hs.bisectRight=gx.right;hs.shuffle=function(im){var e=im.length,il,ik;while(e){ik=Math.random()*e--|0;il=im[e],im[e]=im[ik],im[ik]=il}return im};hs.permute=function(im,ik){var il=ik.length,e=new Array(il);while(il--){e[il]=im[ik[il]]}return e};hs.pairs=function(ip){var e=0,io=ip.length-1,im,il=ip[0],ik=new Array(io<0?0:io);while(e<io){ik[e]=[im=il,il=ip[++e]]}return ik};hs.zip=function(){if(!(ip=arguments.length)){return[]}for(var im=-1,e=hs.min(arguments,fo),il=new Array(e);++im<e;){for(var ik=-1,ip,io=il[im]=new Array(ip);++ik<ip;){io[ik]=arguments[ik][im]}}return il};function fo(e){return e.length}hs.transpose=function(e){return hs.zip.apply(hs,e)};hs.keys=function(il){var ik=[];for(var e in il){ik.push(e)}return ik};hs.values=function(il){var e=[];for(var ik in il){e.push(il[ik])}return e};hs.entries=function(il){var e=[];for(var ik in il){e.push({key:ik,value:il[ik]})}return e};hs.merge=function(io){var iq=io.length,ik,im=-1,il=0,e,ip;while(++im<iq){il+=io[im].length}e=new Array(il);while(--iq>=0){ip=io[iq];ik=ip.length;while(--ik>=0){e[--il]=ip[ik]}}return e};var cJ=Math.abs;hs.range=function(iq,io,ip){if(arguments.length<3){ip=1;if(arguments.length<2){io=iq;iq=0}}if((io-iq)/ip===Infinity){throw new Error("infinite range")}var ik=[],e=gs(cJ(ip)),im=-1,il;iq*=e,io*=e,ip*=e;if(ip<0){while((il=iq+ip*++im)>io){ik.push(il/e)}}else{while((il=iq+ip*++im)<io){ik.push(il/e)}}return ik};function gs(e){var ik=1;while(e*ik%1){ik*=10}return ik}function h9(im,il){try{for(var ik in il){Object.defineProperty(im.prototype,ik,{value:il[ik],enumerable:false})}}catch(io){im.prototype=il}}hs.map=function(e){var il=new aJ();if(e instanceof aJ){e.forEach(function(im,io){il.set(im,io)})}else{for(var ik in e){il.set(ik,e[ik])}}return il};function aJ(){}h9(aJ,{has:function(e){return ib+e in this},get:function(e){return this[ib+e]},set:function(e,ik){return this[ib+e]=ik},remove:function(e){e=ib+e;return e in this&&delete this[e]},keys:function(){var e=[];this.forEach(function(ik){e.push(ik)});return e},values:function(){var e=[];this.forEach(function(ik,il){e.push(il)});return e},entries:function(){var e=[];this.forEach(function(ik,il){e.push({key:ik,value:il})});return e},forEach:function(ik){for(var e in this){if(e.charCodeAt(0)===dH){ik.call(this,e.substring(1),this[e])}}}});var ib="\x00",dH=ib.charCodeAt(0);hs.nest=function(){var im={},il=[],iq=[],ik,io;function ip(it,iA,iy){if(iy>=il.length){return io?io.call(im,iA):ik?iA.sort(ik):iA}var iz=-1,ir=iA.length,iC=il[iy++],ix,iw,iv,iu=new aJ(),iB;while(++iz<ir){if(iB=iu.get(ix=iC(iw=iA[iz]))){iB.push(iw)}else{iu.set(ix,[iw])}}if(it){iw=it();iv=function(iE,iD){iw.set(iE,ip(it,iD,iy))}}else{iw={};iv=function(iE,iD){iw[iE]=ip(it,iD,iy)}}iu.forEach(iv);return iw}function e(it,iu){if(iu>=il.length){return it}var iv=[],ir=iq[iu++];it.forEach(function(iw,ix){iv.push({key:iw,values:e(ix,iu)})});return ir?iv.sort(function(ix,iw){return ir(ix.key,iw.key)}):iv}im.map=function(it,ir){return ip(ir,it,0)};im.entries=function(ir){return e(ip(hs.map,ir,0),0)};im.key=function(ir){il.push(ir);return im};im.sortKeys=function(ir){iq[il.length-1]=ir;return im};im.sortValues=function(ir){ik=ir;return im};im.rollup=function(ir){io=ir;return im};return im};hs.set=function(im){var il=new dv();if(im){for(var e=0,ik=im.length;e<ik;++e){il.add(im[e])}}return il};function dv(){}h9(dv,{has:function(e){return ib+e in this},add:function(e){this[ib+e]=true;return e},remove:function(e){e=ib+e;return e in this&&delete this[e]},values:function(){var e=[];this.forEach(function(ik){e.push(ik)});return e},forEach:function(ik){for(var e in this){if(e.charCodeAt(0)===dH){ik.call(this,e.substring(1))}}}});hs.behavior={};hs.rebind=function(il,ik){var e=1,io=arguments.length,im;while(++e<io){il[im=arguments[e]]=eE(il,ik,ik[im])}return il};function eE(ik,e,il){return function(){var im=il.apply(e,arguments);return im===e?ik:im}}function dm(il,ik){if(ik in il){return ik}ik=ik.charAt(0).toUpperCase()+ik.substring(1);for(var im=0,io=M.length;im<io;++im){var e=M[im]+ik;if(e in il){return e}}}var M=["webkit","ms","moz","Moz","o","O"];function aI(){}hs.dispatch=function(){var e=new e0(),ik=-1,il=arguments.length;while(++ik<il){e[arguments[ik]]=fr(e)}return e};function e0(){}e0.prototype.on=function(il,im){var ik=il.indexOf("."),e="";if(ik>=0){e=il.substring(ik+1);il=il.substring(0,ik)}if(il){return arguments.length<2?this[il].on(e):this[il].on(e,im)}if(arguments.length===2){if(im==null){for(il in this){if(this.hasOwnProperty(il)){this[il].on(e,null)}}}return this}};function fr(e){var il=[],ik=new aJ();function im(){var iq=il,ip=-1,ir=iq.length,io;while(++ip<ir){if(io=iq[ip].on){io.apply(this,arguments)}}return e}im.on=function(ip,ir){var io=ik.get(ip),iq;if(arguments.length<2){return io&&io.on}if(io){io.on=null;il=il.slice(0,iq=il.indexOf(io)).concat(il.slice(iq+1));ik.remove(ip)}if(ir){il.push(ik.set(ip,{on:ir}))}return e};return im}hs.event=null;function w(){hs.event.preventDefault()}function ah(){var il=hs.event,ik;while(ik=il.sourceEvent){il=ik}return il}function hn(il){var e=new e0(),ik=0,im=arguments.length;while(++ik<im){e[arguments[ik]]=fr(e)}e.of=function(ip,io){return function(iq){try{var ir=iq.sourceEvent=hs.event;iq.target=il;hs.event=iq;e[iq.type].apply(ip,io)}finally{hs.event=ir}}};return e}hs.requote=function(e){return e.replace(dd,"\\$&")};var dd=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;var ic={}.__proto__?function(ik,e){ik.__proto__=e}:function(ik,e){for(var il in e){ik[il]=e[il]}};function d5(e){ic(e,d4);return e}var du=function(e,ik){return ik.querySelector(e)},gg=function(e,ik){return ik.querySelectorAll(e)},c=ee[dm(ee,"matchesSelector")],a=function(ik,e){return c.call(ik,e)};if(typeof Sizzle==="function"){du=function(e,ik){return Sizzle(e,ik)[0]||null};gg=function(e,ik){return Sizzle.uniqueSort(Sizzle(e,ik))};a=Sizzle.matchesSelector}hs.selection=function(){return gY};var d4=hs.selection.prototype=[];d4.select=function(ip){var il=[],iu,e,it,im;ip=z(ip);for(var iq=-1,io=this.length;++iq<io;){il.push(iu=[]);iu.parentNode=(it=this[iq]).parentNode;for(var ir=-1,ik=it.length;++ir<ik;){if(im=it[ir]){iu.push(e=ip.call(im,im.__data__,ir,iq));if(e&&"__data__" in im){e.__data__=im.__data__}}else{iu.push(null)}}}return d5(il)};function z(e){return typeof e==="function"?e:function(){return du(e,this)}}d4.selectAll=function(io){var ik=[],it,il;io=c5(io);for(var ip=-1,im=this.length;++ip<im;){for(var ir=this[ip],iq=-1,e=ir.length;++iq<e;){if(il=ir[iq]){ik.push(it=dT(io.call(il,il.__data__,iq,ip)));it.parentNode=il}}}return d5(ik)};function c5(e){return typeof e==="function"?e:function(){return gg(e,this)}}var el={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};hs.ns={prefix:el,qualify:function(e){var ik=e.indexOf(":"),il=e;if(ik>=0){il=e.substring(0,ik);e=e.substring(ik+1)}return el.hasOwnProperty(il)?{space:el[il],local:e}:e}};d4.attr=function(e,il){if(arguments.length<2){if(typeof e==="string"){var ik=this.node();e=hs.ns.qualify(e);return e.local?ik.getAttributeNS(e.space,e.local):ik.getAttribute(e)}for(il in e){this.each(bt(il,e[il]))}return this}return this.each(bt(e,il))};function bt(il,iq){il=hs.ns.qualify(il);function ik(){this.removeAttribute(il)}function ir(){this.removeAttributeNS(il.space,il.local)}function ip(){this.setAttribute(il,iq)}function io(){this.setAttributeNS(il.space,il.local,iq)}function e(){var it=iq.apply(this,arguments);if(it==null){this.removeAttribute(il)}else{this.setAttribute(il,it)}}function im(){var it=iq.apply(this,arguments);if(it==null){this.removeAttributeNS(il.space,il.local)}else{this.setAttributeNS(il.space,il.local,it)}}return iq==null?il.local?ir:ik:typeof iq==="function"?il.local?im:e:il.local?io:ip}function cK(e){return e.trim().replace(/\s+/g," ")}d4.classed=function(e,im){if(arguments.length<2){if(typeof e==="string"){var il=this.node(),io=(e=e.trim().split(/^|\s+/g)).length,ik=-1;if(im=il.classList){while(++ik<io){if(!im.contains(e[ik])){return false}}}else{im=il.getAttribute("class");while(++ik<io){if(!gU(e[ik]).test(im)){return false}}}return true}for(im in e){this.each(gL(im,e[im]))}return this}return this.each(gL(e,im))};function gU(e){return new RegExp("(?:^|\\s+)"+hs.requote(e)+"(?:\\s+|$)","g")}function gL(ik,im){ik=ik.trim().split(/\s+/).map(h8);var io=ik.length;function e(){var ip=-1;while(++ip<io){ik[ip](this,im)}}function il(){var iq=-1,ip=im.apply(this,arguments);while(++iq<io){ik[iq](this,ip)}}return typeof im==="function"?il:e}function h8(e){var ik=gU(e);return function(il,im){if(io=il.classList){return im?io.add(e):io.remove(e)}var io=il.getAttribute("class")||"";if(im){ik.lastIndex=0;if(!ik.test(io)){il.setAttribute("class",cK(io+" "+e))}}else{il.setAttribute("class",cK(io.replace(ik," ")))}}}d4.style=function(e,il,ik){var im=arguments.length;if(im<3){if(typeof e!=="string"){if(im<2){il=""}for(ik in e){this.each(fW(ik,e[ik],il))}return this}if(im<2){return fJ.getComputedStyle(this.node(),null).getPropertyValue(e)}ik=""}return this.each(fW(e,il,ik))};function fW(il,ip,im){function ik(){this.style.removeProperty(il)}function io(){this.style.setProperty(il,ip,im)}function e(){var iq=ip.apply(this,arguments);if(iq==null){this.style.removeProperty(il)}else{this.style.setProperty(il,iq,im)}}return ip==null?ik:typeof ip==="function"?e:io}d4.property=function(e,ik){if(arguments.length<2){if(typeof e==="string"){return this.node()[e]}for(ik in e){this.each(hL(ik,e[ik]))}return this}return this.each(hL(e,ik))};function hL(ik,im){function e(){delete this[ik]}function il(){this[ik]=im}function io(){var ip=im.apply(this,arguments);if(ip==null){delete this[ik]}else{this[ik]=ip}}return im==null?e:typeof im==="function"?io:il}d4.text=function(e){return arguments.length?this.each(typeof e==="function"?function(){var ik=e.apply(this,arguments);this.textContent=ik==null?"":ik}:e==null?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent};d4.html=function(e){return arguments.length?this.each(typeof e==="function"?function(){var ik=e.apply(this,arguments);this.innerHTML=ik==null?"":ik}:e==null?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML};d4.append=function(e){e=aE(e);return this.select(function(){return this.appendChild(e.apply(this,arguments))})};function aE(e){return typeof e==="function"?e:(e=hs.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,e)}}d4.insert=function(e,ik){e=aE(e);ik=z(ik);return this.select(function(){return this.insertBefore(e.apply(this,arguments),ik.apply(this,arguments)||null)})};d4.remove=function(){return this.each(function(){var e=this.parentNode;if(e){e.removeChild(this)}})};d4.data=function(ir,iu){var io=-1,ik=this.length,it,il;if(!arguments.length){ir=new Array(ik=(it=this[0]).length);while(++io<ik){if(il=it[io]){ir[io]=il.__data__}}return ir}function ip(iE,iz){var iB,iw=iE.length,iy=iz.length,iD=Math.min(iw,iy),iI=new Array(iy),iF=new Array(iy),iC=new Array(iw),ix,iv;if(iu){var iJ=new aJ(),iG=new aJ(),iH=[],iA;for(iB=-1;++iB<iw;){iA=iu.call(ix=iE[iB],ix.__data__,iB);if(iJ.has(iA)){iC[iB]=ix}else{iJ.set(iA,ix)}iH.push(iA)}for(iB=-1;++iB<iy;){iA=iu.call(iz,iv=iz[iB],iB);if(ix=iJ.get(iA)){iI[iB]=ix;ix.__data__=iv}else{if(!iG.has(iA)){iF[iB]=N(iv)}}iG.set(iA,iv);iJ.remove(iA)}for(iB=-1;++iB<iw;){if(iJ.has(iH[iB])){iC[iB]=iE[iB]}}}else{for(iB=-1;++iB<iD;){ix=iE[iB];iv=iz[iB];if(ix){ix.__data__=iv;iI[iB]=ix}else{iF[iB]=N(iv)}}for(;iB<iy;++iB){iF[iB]=N(iz[iB])}for(;iB<iw;++iB){iC[iB]=iE[iB]}}iF.update=iI;iF.parentNode=iI.parentNode=iC.parentNode=iE.parentNode;iq.push(iF);im.push(iI);e.push(iC)}var iq=bU([]),im=d5([]),e=d5([]);if(typeof ir==="function"){while(++io<ik){ip(it=this[io],ir.call(it,it.parentNode.__data__,io))}}else{while(++io<ik){ip(it=this[io],ir)}}im.enter=function(){return iq};im.exit=function(){return e};return im};function N(e){return{__data__:e}}d4.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")};d4.filter=function(e){var il=[],it,ir,im;if(typeof e!=="function"){e=a9(e)}for(var ip=0,io=this.length;ip<io;ip++){il.push(it=[]);it.parentNode=(ir=this[ip]).parentNode;for(var iq=0,ik=ir.length;iq<ik;iq++){if((im=ir[iq])&&e.call(im,im.__data__,iq)){it.push(im)}}}return d5(il)};function a9(e){return function(){return a(this,e)}}d4.order=function(){for(var ik=-1,e=this.length;++ik<e;){for(var ip=this[ik],il=ip.length-1,im=ip[il],io;--il>=0;){if(io=ip[il]){if(im&&im!==io.nextSibling){im.parentNode.insertBefore(io,im)}im=io}}}return this};d4.sort=function(ik){ik=gS.apply(this,arguments);for(var il=-1,e=this.length;++il<e;){this[il].sort(ik)}return this.order()};function gS(e){if(!arguments.length){e=hs.ascending}return function(il,ik){return il&&ik?e(il.__data__,ik.__data__):!il-!ik}}d4.each=function(e){return cL(this,function(im,il,ik){e.call(im,im.__data__,il,ik)})};function cL(ik,ir){for(var il=0,e=ik.length;il<e;il++){for(var ip=ik[il],im=0,iq=ip.length,io;im<iq;im++){if(io=ip[im]){ir(io,im,il)}}}return ik}d4.call=function(ik){var e=dT(arguments);ik.apply(e[0]=this,e);return this};d4.empty=function(){return !this.node()};d4.node=function(){for(var ik=0,e=this.length;ik<e;ik++){for(var io=this[ik],il=0,ip=io.length;il<ip;il++){var im=io[il];if(im){return im}}}return null};d4.size=function(){var e=0;this.each(function(){++e});return e};function bU(e){ic(e,fe);return e}var fe=[];hs.selection.enter=bU;hs.selection.enter.prototype=fe;fe.append=d4.append;fe.empty=d4.empty;fe.node=d4.node;fe.call=d4.call;fe.size=d4.size;fe.select=function(ip){var il=[],iv,e,it,iu,io;for(var iq=-1,im=this.length;++iq<im;){it=(iu=this[iq]).update;il.push(iv=[]);iv.parentNode=iu.parentNode;for(var ir=-1,ik=iu.length;++ir<ik;){if(io=iu[ir]){iv.push(it[ir]=e=ip.call(iu.parentNode,io.__data__,ir,iq));e.__data__=io.__data__}else{iv.push(null)}}}return d5(il)};fe.insert=function(e,ik){if(arguments.length<2){ik=gC(this)}return d4.insert.call(this,e,ik)};function gC(il){var e,ik;return function(ir,io,im){var iq=il[im].update,it=iq.length,ip;if(im!=ik){ik=im,e=0}if(io>=e){e=io+1}while(!(ip=iq[e])&&++e<it){}return ip}}d4.transition=function(){var e=au||++hg,il=[],iu,im,ir=eb||{time:Date.now(),ease:ay,delay:0,duration:250};for(var ip=-1,io=this.length;++ip<io;){il.push(iu=[]);for(var it=this[ip],iq=-1,ik=it.length;++iq<ik;){if(im=it[iq]){fM(im,iq,e,ir)}iu.push(im)}}return gW(il,e)};d4.interrupt=function(){return this.each(cY)};function cY(){var e=this.__transition__;if(e){++e.active}}hs.select=function(e){var ik=[typeof e==="string"?du(e,bN):e];ik.parentNode=ee;return d5([ik])};hs.selectAll=function(e){var ik=dT(typeof e==="string"?gg(e,bN):e);ik.parentNode=ee;return d5([ik])};var gY=hs.select(ee);d4.on=function(ik,il,e){var im=arguments.length;if(im<3){if(typeof ik!=="string"){if(im<2){il=false}for(e in ik){this.each(l(e,ik[e],il))}return this}if(im<2){return(im=this.node()["__on"+ik])&&im._}e=false}return this.each(l(ik,il,e))};function l(it,im,iu){var e="__on"+it,ip=it.indexOf("."),ik=fA;if(ip>0){it=it.substring(0,ip)}var il=bK.get(it);if(il){it=il,ik=at}function io(){var iv=this[e];if(iv){this.removeEventListener(it,iv,iv.$);delete this[e]}}function ir(){var iv=ik(im,dT(arguments));io.call(this);this.addEventListener(it,this[e]=iv,iv.$=iu);iv._=im}function iq(){var iy=new RegExp("^__on([^.]+)"+hs.requote(it)+"$"),ix;for(var iw in this){if(ix=iw.match(iy)){var iv=this[iw];this.removeEventListener(ix[1],iv,iv.$);delete this[iw]}}}return ip?im?ir:io:im?aI:iq}var bK=hs.map({mouseenter:"mouseover",mouseleave:"mouseout"});bK.forEach(function(e){if("on"+e in bN){bK.remove(e)}});function fA(ik,e){return function(il){var im=hs.event;hs.event=il;e[0]=this.__data__;try{ik.apply(this,e)}finally{hs.event=im}}}function at(il,e){var ik=fA(il,e);return function(ip){var io=this,im=ip.relatedTarget;if(!im||im!==io&&!(im.compareDocumentPosition(io)&8)){ik.call(io,ip)}}}var cb="onselectstart" in bN?null:dm(ee.style,"userSelect"),gQ=0;function bL(){var il=".dragsuppress-"+ ++gQ,io="click"+il,ik=hs.select(fJ).on("touchmove"+il,w).on("dragstart"+il,w).on("selectstart"+il,w);if(cb){var im=ee.style,e=im[cb];im[cb]="none"}return function(ip){ik.on(il,null);if(cb){im[cb]=e}if(ip){function iq(){ik.on(io,null)}ik.on(io,function(){w();iq()},true);setTimeout(iq,0)}}}hs.mouse=function(e){return aZ(e,ah())};var cH=/WebKit/.test(fJ.navigator.userAgent)?-1:0;function aZ(im,iq){if(iq.changedTouches){iq=iq.changedTouches[0]}var io=im.ownerSVGElement||im;if(io.createSVGPoint){var ik=io.createSVGPoint();if(cH<0&&(fJ.scrollX||fJ.scrollY)){io=hs.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var il=io[0][0].getScreenCTM();cH=!(il.f||il.e);io.remove()}if(cH){ik.x=iq.pageX,ik.y=iq.pageY}else{ik.x=iq.clientX,ik.y=iq.clientY}ik=ik.matrixTransform(im.getScreenCTM().inverse());return[ik.x,ik.y]}var ip=im.getBoundingClientRect();return[iq.clientX-ip.left-im.clientLeft,iq.clientY-ip.top-im.clientTop]}hs.touches=function(e,ik){if(arguments.length<2){ik=ah().touches}return ik?dT(ik).map(function(im){var il=aZ(e,im);il.identifier=im.identifier;return il}):[]};hs.behavior.drag=function(){var io=hn(im,"drag","dragstart","dragend"),e=null,ik=il(aI,hs.mouse,"mousemove","mouseup"),ir=il(iq,ip,"touchmove","touchend");function im(){this.on("mousedown.drag",ik).on("touchstart.drag",ir)}function iq(){return hs.event.changedTouches[0].identifier}function ip(it,iu){return hs.touches(it).filter(function(iv){return iv.identifier===iu})[0]}function il(iw,it,iv,iu){return function(){var iB=this,iI=iB.parentNode,iJ=io.of(iB,arguments),iH=hs.event.target,ix=iw(),iz=ix==null?"drag":"drag-"+ix,iC=it(iI,ix),iE=0,iy,iG=hs.select(fJ).on(iv+"."+iz,iD).on(iu+"."+iz,iF),iA=bL();if(e){iy=e.apply(iB,arguments);iy=[iy.x-iC[0],iy.y-iC[1]]}else{iy=[0,0]}iJ({type:"dragstart"});function iD(){var iM=it(iI,ix),iL=iM[0]-iC[0],iK=iM[1]-iC[1];iE|=iL|iK;iC=iM;iJ({type:"drag",x:iM[0]+iy[0],y:iM[1]+iy[1],dx:iL,dy:iK})}function iF(){iG.on(iv+"."+iz,null).on(iu+"."+iz,null);iA(iE&&hs.event.target===iH);iJ({type:"dragend"})}}}im.origin=function(it){if(!arguments.length){return e}e=it;return im};return hs.rebind(im,io,"on")};var gm=Math.PI,gh=2*gm,ev=gm/2,gw=0.000001,eJ=gw*gw,L=gm/180,hI=180/gm;function b9(e){return e>0?1:e<0?-1:0}function ag(e){return e>1?0:e<-1?gm:Math.acos(e)}function ce(e){return e>1?ev:e<-1?-ev:Math.asin(e)}function d1(e){return((e=Math.exp(e))-1/e)/2}function bD(e){return((e=Math.exp(e))+1/e)/2}function fD(e){return((e=Math.exp(2*e))-1)/(e+1)}function aF(e){return(e=Math.sin(e/2))*e}var gk=Math.SQRT2,ad=2,ab=4;hs.interpolateZoom=function(ik,e){var iw=ik[0],iB=ik[1],iu=ik[2],iv=e[0],iA=e[1],ir=e[2];var it=iv-iw,iq=iA-iB,iC=it*it+iq*iq,iD=Math.sqrt(iC),io=(ir*ir-iu*iu+ab*iC)/(2*iu*ad*iD),im=(ir*ir-iu*iu-ab*iC)/(2*ir*ad*iD),iz=Math.log(Math.sqrt(io*io+1)-io),iy=Math.log(Math.sqrt(im*im+1)-im),ix=iy-iz,il=(ix||Math.log(ir/iu))/gk;function ip(iF){var iG=iF*il;if(ix){var iH=bD(iz),iE=iu/(ad*iD)*(iH*fD(gk*iG+iz)-d1(iz));return[iw+iE*it,iB+iE*iq,iu*iH/bD(gk*iG+iz)]}return[iw+iF*it,iB+iF*iq,iu*Math.exp(gk*iG)]}ip.duration=il*1000;return ip};hs.behavior.zoom=function(){var iw={x:0,y:0,k:1},iL,iN,iA=[960,500],il=f5,iE="mousedown.zoom",iM="mousemove.zoom",iF="mouseup.zoom",iB,iJ="touchstart.zoom",it,iG=hn(ik,"zoomstart","zoom","zoomend"),iK,iI,iq,io;function ik(iP){iP.on(iE,im).on(g9+".zoom",ix).on(iM,iH).on("dblclick.zoom",iu).on(iJ,ip)}ik.event=function(iP){iP.each(function(){var iR=iG.of(this,arguments),iQ=iw;if(au){hs.select(this).transition().each("start.zoom",function(){iw=this.__chart__||{x:0,y:0,k:1};iC(iR)}).tween("zoom:zoom",function(){var iU=iA[0],iT=iA[1],iS=iU/2,iW=iT/2,iV=hs.interpolateZoom([(iS-iw.x)/iw.k,(iW-iw.y)/iw.k,iU/iw.k],[(iS-iQ.x)/iQ.k,(iW-iQ.y)/iQ.k,iU/iQ.k]);return function(iZ){var iX=iV(iZ),iY=iU/iX[2];this.__chart__=iw={x:iS-iX[0]*iY,y:iW-iX[1]*iY,k:iY};iz(iR)}}).each("end.zoom",function(){iy(iR)})}else{this.__chart__=iw;iC(iR);iz(iR);iy(iR)}})};ik.translate=function(iP){if(!arguments.length){return[iw.x,iw.y]}iw={x:+iP[0],y:+iP[1],k:iw.k};iv();return ik};ik.scale=function(iP){if(!arguments.length){return iw.k}iw={x:iw.x,y:iw.y,k:+iP};iv();return ik};ik.scaleExtent=function(iP){if(!arguments.length){return il}il=iP==null?f5:[+iP[0],+iP[1]];return ik};ik.center=function(iP){if(!arguments.length){return iN}iN=iP&&[+iP[0],+iP[1]];return ik};ik.size=function(iP){if(!arguments.length){return iA}iA=iP&&[+iP[0],+iP[1]];return ik};ik.x=function(iP){if(!arguments.length){return iI}iI=iP;iK=iP.copy();iw={x:0,y:0,k:1};return ik};ik.y=function(iP){if(!arguments.length){return io}io=iP;iq=iP.copy();iw={x:0,y:0,k:1};return ik};function e(iP){return[(iP[0]-iw.x)/iw.k,(iP[1]-iw.y)/iw.k]}function iD(iP){return[iP[0]*iw.k+iw.x,iP[1]*iw.k+iw.y]}function ir(iP){iw.k=Math.max(il[0],Math.min(il[1],iP))}function iO(iQ,iP){iP=iD(iP);iw.x+=iQ[0]-iP[0];iw.y+=iQ[1]-iP[1]}function iv(){if(iI){iI.domain(iK.range().map(function(iP){return(iP-iw.x)/iw.k}).map(iK.invert))}if(io){io.domain(iq.range().map(function(iP){return(iP-iw.y)/iw.k}).map(iq.invert))}}function iC(iP){iP({type:"zoomstart"})}function iz(iP){iv();iP({type:"zoom",scale:iw.k,translate:[iw.x,iw.y]})}function iy(iP){iP({type:"zoomend"})}function im(){var iR=this,iW=iG.of(iR,arguments),iV=hs.event.target,iT=0,iX=hs.select(fJ).on(iM,iS).on(iF,iU),iP=e(hs.mouse(iR)),iQ=bL();cY.call(iR);iC(iW);function iS(){iT=1;iO(hs.mouse(iR),iP);iz(iW)}function iU(){iX.on(iM,fJ===iR?iH:null).on(iF,null);iQ(iT&&hs.event.target===iV);iy(iW)}}function ip(){var iV=this,i1=iG.of(iV,arguments),iT={},iX=0,iU,iP=hs.event.changedTouches[0].identifier,iR="touchmove.zoom-"+iP,i2="touchend.zoom-"+iP,i0=hs.select(fJ).on(iR,iY).on(i2,iZ),i3=hs.select(iV).on(iE,null).on(iJ,iW),iS=bL();cY.call(iV);iW();iC(i1);function iQ(){var i4=hs.touches(iV);iU=iw.k;i4.forEach(function(i5){if(i5.identifier in iT){iT[i5.identifier]=e(i5)}});return i4}function iW(){var i9=hs.event.changedTouches;for(var ja=0,i7=i9.length;ja<i7;++ja){iT[i9[ja].identifier]=null}var jb=iQ(),i6=Date.now();if(jb.length===1){if(i6-it<500){var i5=jb[0],i8=iT[i5.identifier];ir(iw.k*2);iO(i5,i8);w();iz(i1)}it=i6}else{if(jb.length>1){var i5=jb[0],i4=jb[1],jd=i5[0]-i4[0],jc=i5[1]-i4[1];iX=jd*jd+jc*jc}}}function iY(){var i8=hs.touches(iV),jc,i6,jb,i5;for(var i7=0,i4=i8.length;i7<i4;++i7,i5=null){jb=i8[i7];if(i5=iT[jb.identifier]){if(i6){break}jc=jb,i6=i5}}if(i5){var ja=(ja=jb[0]-jc[0])*ja+(ja=jb[1]-jc[1])*ja,i9=iX&&Math.sqrt(ja/iX);jc=[(jc[0]+jb[0])/2,(jc[1]+jb[1])/2];i6=[(i6[0]+i5[0])/2,(i6[1]+i5[1])/2];ir(i9*iU)}it=null;iO(jc,i6);iz(i1)}function iZ(){if(hs.event.touches.length){var i6=hs.event.changedTouches;for(var i5=0,i7=i6.length;i5<i7;++i5){delete iT[i6[i5].identifier]}for(var i4 in iT){return void iQ()}}i0.on(iR,null).on(i2,null);i3.on(iE,im).on(iJ,ip);iS();iy(i1)}}function ix(){var iQ=iG.of(this,arguments);if(iB){clearTimeout(iB)}else{cY.call(this),iC(iQ)}iB=setTimeout(function(){iB=null;iy(iQ)},50);w();var iP=iN||hs.mouse(this);if(!iL){iL=e(iP)}ir(Math.pow(2,cA()*0.002)*iw.k);iO(iP,iL);iz(iQ)}function iH(){iL=null}function iu(){var iR=iG.of(this,arguments),iS=hs.mouse(this),iP=e(iS),iQ=Math.log(iw.k)/Math.LN2;iC(iR);ir(Math.pow(2,hs.event.shiftKey?Math.ceil(iQ)-1:Math.floor(iQ)+1));iO(iS,iP);iz(iR);iy(iR)}return hs.rebind(ik,iG,"on")};var f5=[0,Infinity];var cA,g9="onwheel" in bN?(cA=function(){return -hs.event.deltaY*(hs.event.deltaMode?120:1)},"wheel"):"onmousewheel" in bN?(cA=function(){return hs.event.wheelDelta},"mousewheel"):(cA=function(){return -hs.event.detail},"MozMousePixelScroll");function H(){}H.prototype.toString=function(){return this.rgb()+""};hs.hsl=function(il,ik,e){return arguments.length===1?il instanceof fB?eN(il.h,il.s,il.l):aY(""+il,gE,eN):eN(+il,+ik,+e)};function eN(il,ik,e){return new fB(il,ik,e)}function fB(il,ik,e){this.h=il;this.s=ik;this.l=e}var eC=fB.prototype=new H();eC.brighter=function(e){e=Math.pow(0.7,arguments.length?e:1);return eN(this.h,this.s,this.l/e)};eC.darker=function(e){e=Math.pow(0.7,arguments.length?e:1);return eN(this.h,this.s,e*this.l)};eC.rgb=function(){return bh(this.h,this.s,this.l)};function bh(ip,io,e){var im,il;ip=isNaN(ip)?0:(ip%=360)<0?ip+360:ip;io=isNaN(io)?0:io<0?0:io>1?1:io;e=e<0?0:e>1?1:e;il=e<=0.5?e*(1+io):e+io-e*io;im=2*e-il;function ik(ir){if(ir>360){ir-=360}else{if(ir<0){ir+=360}}if(ir<60){return im+(il-im)*ir/60}if(ir<180){return il}if(ir<240){return im+(il-im)*(240-ir)/60}return im}function iq(ir){return Math.round(ik(ir)*255)}return ew(iq(ip+120),iq(ip),iq(ip-120))}hs.hcl=function(ik,il,e){return arguments.length===1?ik instanceof cw?bB(ik.h,ik.c,ik.l):ik instanceof db?gO(ik.l,ik.a,ik.b):gO((ik=d6((ik=hs.rgb(ik)).r,ik.g,ik.b)).l,ik.a,ik.b):bB(+ik,+il,+e)};function bB(ik,il,e){return new cw(ik,il,e)}function cw(ik,il,e){this.h=ik;this.c=il;this.l=e}var hl=cw.prototype=new H();hl.brighter=function(e){return bB(this.h,this.c,Math.min(100,this.l+br*(arguments.length?e:1)))};hl.darker=function(e){return bB(this.h,this.c,Math.max(0,this.l-br*(arguments.length?e:1)))};hl.rgb=function(){return bC(this.h,this.c,this.l).rgb()};function bC(ik,il,e){if(isNaN(ik)){ik=0}if(isNaN(il)){il=0}return co(e,Math.cos(ik*=L)*il,Math.sin(ik)*il)}hs.lab=function(il,ik,e){return arguments.length===1?il instanceof db?co(il.l,il.a,il.b):il instanceof cw?bC(il.l,il.c,il.h):d6((il=hs.rgb(il)).r,il.g,il.b):co(+il,+ik,+e)};function co(il,ik,e){return new db(il,ik,e)}function db(il,ik,e){this.l=il;this.a=ik;this.b=e}var br=18;var bi=0.95047,bg=1,bd=1.08883;var gG=db.prototype=new H();gG.brighter=function(e){return co(Math.min(100,this.l+br*(arguments.length?e:1)),this.a,this.b)};gG.darker=function(e){return co(Math.max(0,this.l-br*(arguments.length?e:1)),this.a,this.b)};gG.rgb=function(){return aD(this.l,this.a,this.b)};function aD(im,il,ik){var ip=(im+16)/116,e=ip+il/500,io=ip-ik/200;e=g6(e)*bi;ip=g6(ip)*bg;io=g6(io)*bd;return ew(d(3.2404542*e-1.5371385*ip-0.4985314*io),d(-0.969266*e+1.8760108*ip+0.041556*io),d(0.0556434*e-0.2040259*ip+1.0572252*io))}function gO(il,ik,e){return il>0?bB(Math.atan2(e,ik)*hI,Math.sqrt(ik*ik+e*e),il):bB(NaN,NaN,il)}function g6(e){return e>0.206893034?e*e*e:(e-4/29)/7.787037}function gy(e){return e>0.008856?Math.pow(e,1/3):7.787037*e+4/29}function d(e){return Math.round(255*(e<=0.00304?12.92*e:1.055*Math.pow(e,1/2.4)-0.055))}hs.rgb=function(il,ik,e){return arguments.length===1?il instanceof fh?ew(il.r,il.g,il.b):aY(""+il,ew,bh):ew(~~il,~~ik,~~e)};function dj(e){return ew(e>>16,e>>8&255,e&255)}function dz(e){return dj(e)+""}function ew(il,ik,e){return new fh(il,ik,e)}function fh(il,ik,e){this.r=il;this.g=ik;this.b=e}var eO=fh.prototype=new H();eO.brighter=function(ik){ik=Math.pow(0.7,arguments.length?ik:1);var io=this.r,im=this.g,e=this.b,il=30;if(!io&&!im&&!e){return ew(il,il,il)}if(io&&io<il){io=il}if(im&&im<il){im=il}if(e&&e<il){e=il}return ew(Math.min(255,~~(io/ik)),Math.min(255,~~(im/ik)),Math.min(255,~~(e/ik)))};eO.darker=function(e){e=Math.pow(0.7,arguments.length?e:1);return ew(~~(e*this.r),~~(e*this.g),~~(e*this.b))};eO.hsl=function(){return gE(this.r,this.g,this.b)};eO.toString=function(){return"#"+cy(this.r)+cy(this.g)+cy(this.b)};function cy(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function aY(ip,im,iq){var e=0,il=0,io=0,it,ir,ik;it=/([a-z]+)\((.*)\)/i.exec(ip);if(it){ir=it[2].split(",");switch(it[1]){case"hsl":return iq(parseFloat(ir[0]),parseFloat(ir[1])/100,parseFloat(ir[2])/100);case"rgb":return im(e3(ir[0]),e3(ir[1]),e3(ir[2]))}}if(ik=ap.get(ip)){return im(ik.r,ik.g,ik.b)}if(ip!=null&&ip.charAt(0)==="#"){if(ip.length===4){e=ip.charAt(1);e+=e;il=ip.charAt(2);il+=il;io=ip.charAt(3);io+=io}else{if(ip.length===7){e=ip.substring(1,3);il=ip.substring(3,5);io=ip.substring(5,7)}}e=parseInt(e,16);il=parseInt(il,16);io=parseInt(io,16)}return im(e,il,io)}function gE(e,io,iq){var il=Math.min(e/=255,io/=255,iq/=255),ir=Math.max(e,io,iq),ip=ir-il,im,it,ik=(ir+il)/2;if(ip){it=ik<0.5?ip/(ir+il):ip/(2-ir-il);if(e==ir){im=(io-iq)/ip+(io<iq?6:0)}else{if(io==ir){im=(iq-e)/ip+2}else{im=(e-io)/ip+4}}im*=60}else{im=NaN;it=ik>0&&ik<1?0:im}return eN(im,it,ik)}function d6(im,il,ik){im=dG(im);il=dG(il);ik=dG(ik);var e=gy((0.4124564*im+0.3575761*il+0.1804375*ik)/bi),ip=gy((0.2126729*im+0.7151522*il+0.072175*ik)/bg),io=gy((0.0193339*im+0.119192*il+0.9503041*ik)/bd);return co(116*ip-16,500*(e-ip),200*(ip-io))}function dG(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function e3(ik){var e=parseFloat(ik);return ik.charAt(ik.length-1)==="%"?Math.round(e*2.55):e}var ap=hs.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ap.forEach(function(e,ik){ap.set(e,dj(ik))});function U(e){return typeof e==="function"?e:function(){return e}}hs.functor=U;function gt(e){return e}hs.xhr=aa(gt);function aa(e){return function(ik,il,im){if(arguments.length===2&&typeof il==="function"){im=il,il=null}return h5(ik,il,e,im)}}function h5(e,il,io,it){var iu={},ir=hs.dispatch("beforesend","progress","load","error"),im={},ip=new XMLHttpRequest(),iq=null;if(fJ.XDomainRequest&&!("withCredentials" in ip)&&/^(http(s)?:)?\/\//.test(e)){ip=new XDomainRequest()}"onload" in ip?ip.onload=ip.onerror=ik:ip.onreadystatechange=function(){ip.readyState>3&&ik()};function ik(){var iw=ip.status,iv;if(!iw&&ip.responseText||iw>=200&&iw<300||iw===304){try{iv=io.call(iu,ip)}catch(ix){ir.error.call(iu,ix);return}ir.load.call(iu,iv)}else{ir.error.call(iu,ip)}}ip.onprogress=function(iv){var iw=hs.event;hs.event=iv;try{ir.progress.call(iu,ip)}finally{hs.event=iw}};iu.header=function(iv,iw){iv=(iv+"").toLowerCase();if(arguments.length<2){return im[iv]}if(iw==null){delete im[iv]}else{im[iv]=iw+""}return iu};iu.mimeType=function(iv){if(!arguments.length){return il}il=iv==null?null:iv+"";return iu};iu.responseType=function(iv){if(!arguments.length){return iq}iq=iv;return iu};iu.response=function(iv){io=iv;return iu};["get","post"].forEach(function(iv){iu[iv]=function(){return iu.send.apply(iu,[iv].concat(dT(arguments)))}});iu.send=function(iy,iw,ix){if(arguments.length===2&&typeof iw==="function"){ix=iw,iw=null}ip.open(iy,e,true);if(il!=null&&!("accept" in im)){im.accept=il+",*/*"}if(ip.setRequestHeader){for(var iv in im){ip.setRequestHeader(iv,im[iv])}}if(il!=null&&ip.overrideMimeType){ip.overrideMimeType(il)}if(iq!=null){ip.responseType=iq}if(ix!=null){iu.on("error",ix).on("load",function(iz){ix(null,iz)})}ir.beforesend.call(iu,ip);ip.send(iw==null?null:iw);return iu};iu.abort=function(){ip.abort();return iu};hs.rebind(iu,ir,"on");return it==null?iu:iu.get(ed(it))}function ed(e){return e.length===1?function(ik,il){e(ik==null?il:null)}:e}hs.dsv=function(e,ik){var im=new RegExp('["'+e+"\n]"),ip=e.charCodeAt(0);function ir(iu,iw,ix){if(arguments.length<3){ix=iw,iw=null}var iv=hs.xhr(iu,ik,ix);iv.row=function(iy){return arguments.length?iv.response((iw=iy)==null?io:il(iy)):iw};return iv.row(iw)}function io(iu){return ir.parse(iu.responseText)}function il(iu){return function(iv){return ir.parse(iv.responseText,iu)}}ir.parse=function(iw,iu){var iv;return ir.parseRows(iw,function(iz,iy){if(iv){return iv(iz,iy-1)}var ix=new Function("d","return {"+iz.map(function(iA,iB){return JSON.stringify(iA)+": d["+iB+"]"}).join(",")+"}");iv=iu?function(iB,iA){return iu(ix(iB),iA)}:ix})};ir.parseRows=function(iD,iy){var iv={},ix={},iF=[],iz=iD.length,iC=0,iu=0,iE,iA;function iw(){if(iC>=iz){return ix}if(iA){return iA=false,iv}var iH=iC;if(iD.charCodeAt(iH)===34){var iI=iH;while(iI++<iz){if(iD.charCodeAt(iI)===34){if(iD.charCodeAt(iI+1)!==34){break}++iI}}iC=iI+2;var iJ=iD.charCodeAt(iI+1);if(iJ===13){iA=true;if(iD.charCodeAt(iI+2)===10){++iC}}else{if(iJ===10){iA=true}}return iD.substring(iH+1,iI).replace(/""/g,'"')}while(iC<iz){var iJ=iD.charCodeAt(iC++),iG=1;if(iJ===10){iA=true}else{if(iJ===13){iA=true;if(iD.charCodeAt(iC)===10){++iC,++iG}}else{if(iJ!==ip){continue}}}return iD.substring(iH,iC-iG)}return iD.substring(iH)}while((iE=iw())!==ix){var iB=[];while(iE!==iv&&iE!==ix){iB.push(iE);iE=iw()}if(iy&&!(iB=iy(iB,iu++))){continue}iF.push(iB)}return iF};ir.format=function(iw){if(Array.isArray(iw[0])){return ir.formatRows(iw)}var iv=new dv(),iu=[];iw.forEach(function(iy){for(var ix in iy){if(!iv.has(ix)){iu.push(iv.add(ix))}}});return[iu.map(iq).join(e)].concat(iw.map(function(ix){return iu.map(function(iy){return iq(ix[iy])}).join(e)})).join("\n")};ir.formatRows=function(iu){return iu.map(it).join("\n")};function it(iu){return iu.map(iq).join(e)}function iq(iu){return im.test(iu)?'"'+iu.replace(/\"/g,'""')+'"':iu}return ir};hs.csv=hs.dsv(",","text/csv");hs.tsv=hs.dsv("	","text/tab-separated-values");var d7,ai,cs,fq,dp,hy=fJ[dm(fJ,"requestAnimationFrame")]||function(e){setTimeout(e,17)};hs.timer=function(ip,e,il){var io=arguments.length;if(io<2){e=0}if(io<3){il=Date.now()}var ik=il+e,im={c:ip,t:ik,f:false,n:null};if(ai){ai.n=im}else{d7=im}ai=im;if(!cs){fq=clearTimeout(fq);cs=1;hy(hz)}};function hz(){var ik=bE(),e=af()-ik;if(e>24){if(isFinite(e)){clearTimeout(fq);fq=setTimeout(hz,e)}cs=0}else{cs=1;hy(hz)}}hs.timer.flush=function(){bE();af()};function bE(){var e=Date.now();dp=d7;while(dp){if(e>=dp.t){dp.f=dp.c(e-dp.t)}dp=dp.n}return e}function af(){var ik,e=d7,il=Infinity;while(e){if(e.f){e=ik?ik.n=e.n:d7=e.n}else{if(e.t<il){il=e.t}e=(ik=e).n}}ai=ik;return il}var g3=".",fb=",",i=[3,3],bH="$";var cx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(dS);hs.formatPrefix=function(il,e){var ik=0;if(il){if(il<0){il*=-1}if(e){il=hs.round(il,en(il,e))}ik=1+Math.floor(1e-12+Math.log(il)/Math.LN10);ik=Math.max(-24,Math.min(24,Math.floor((ik<=0?ik+1:ik-1)/3)*3))}return cx[8+ik/3]};function dS(il,ik){var e=Math.pow(10,cJ(8-ik)*3);return{scale:ik>8?function(im){return im/e}:function(im){return im*e},symbol:il}}hs.round=function(e,ik){return ik?Math.round(e*(ik=Math.pow(10,ik)))/ik:Math.round(e)};hs.format=function(iw){var it=cC.exec(iw),iy=it[1]||" ",iu=it[2]||">",ik=it[3]||"",im=it[4]||"",io=it[5],e=+it[6],iz=it[7],ir=it[8],iv=it[9],il=1,ix="",iq=false;if(ir){ir=+ir.substring(1)}if(io||iy==="0"&&iu==="="){io=iy="0";iu="=";if(iz){e-=Math.floor((e-1)/4)}}switch(iv){case"n":iz=true;iv="g";break;case"%":il=100;ix="%";iv="f";break;case"p":il=100;ix="%";iv="r";break;case"b":case"o":case"x":case"X":if(im==="#"){im="0"+iv.toLowerCase()}case"c":case"d":iq=true;ir=0;break;case"s":il=-1;iv="r";break}if(im==="#"){im=""}else{if(im==="$"){im=bH}}if(iv=="r"&&!ir){iv="g"}if(ir!=null){if(iv=="g"){ir=Math.max(1,Math.min(21,ir))}else{if(iv=="e"||iv=="f"){ir=Math.max(0,Math.min(20,ir))}}}iv=x.get(iv)||bn;var ip=io&&iz;return function(iF){if(iq&&iF%1){return""}var iA=iF<0||iF===0&&1/iF<0?(iF=-iF,"-"):ik;if(il<0){var iE=hs.formatPrefix(iF,ir);iF=iE.scale(iF);ix=iE.symbol}else{iF*=il}iF=iv(iF,ir);var iB=iF.lastIndexOf("."),iD=iB<0?iF:iF.substring(0,iB),iH=iB<0?"":g3+iF.substring(iB+1);if(!io&&iz){iD=dl(iD)}var iC=im.length+iD.length+iH.length+(ip?0:iA.length),iG=iC<e?new Array(iC=e-iC+1).join(iy):"";if(ip){iD=dl(iG+iD)}iA+=im;iF=iD+iH;return(iu==="<"?iA+iF+iG:iu===">"?iG+iA+iF:iu==="^"?iG.substring(0,iC>>=1)+iA+iF+iG.substring(iC):iA+(ip?iF:iG+iF))+ix}};var cC=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i;var x=hs.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,ik){return e.toPrecision(ik)},e:function(e,ik){return e.toExponential(ik)},f:function(e,ik){return e.toFixed(ik)},r:function(e,ik){return(e=hs.round(e,en(e,ik))).toFixed(Math.max(0,Math.min(20,en(e*(1+1e-15),ik))))}});function en(e,ik){return ik-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function bn(e){return e+""}var dl=gt;if(i){var b8=i.length;dl=function(io){var il=io.length,ik=[],e=0,im=i[0];while(il>0&&im>0){ik.push(io.substring(il-=im,il+im));im=i[e=(e+1)%b8]}return ik.reverse().join(fb)}}hs.geo={};function fn(){}fn.prototype={s:0,t:0,add:function(e){dt(e,this.t,hV);dt(hV.s,this.s,this);if(this.s){this.t+=hV.t}else{this.s=hV.t}},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var hV=new fn();function dt(im,il,ip){var ik=ip.s=im+il,e=ik-im,io=ik-e;ip.t=im-io+(il-e)}hs.geo.stream=function(e,ik){if(e&&A.hasOwnProperty(e.type)){A[e.type](e,ik)}else{aS(e,ik)}};function aS(ik,e){if(ik&&eX.hasOwnProperty(ik.type)){eX[ik.type](ik,e)}}var A={Feature:function(e,ik){aS(e.geometry,ik)},FeatureCollection:function(e,im){var il=e.features,ik=-1,io=il.length;while(++ik<io){aS(il[ik].geometry,im)}}};var eX={Sphere:function(e,ik){ik.sphere()},Point:function(e,ik){e=e.coordinates;ik.point(e[0],e[1],e[2])},MultiPoint:function(e,il){var im=e.coordinates,ik=-1,io=im.length;while(++ik<io){e=im[ik],il.point(e[0],e[1],e[2])}},LineString:function(e,ik){cp(e.coordinates,ik,0)},MultiLineString:function(e,il){var im=e.coordinates,ik=-1,io=im.length;while(++ik<io){cp(im[ik],il,0)}},Polygon:function(e,ik){hk(e.coordinates,ik)},MultiPolygon:function(e,il){var im=e.coordinates,ik=-1,io=im.length;while(++ik<io){hk(im[ik],il)}},GeometryCollection:function(e,im){var il=e.geometries,ik=-1,io=il.length;while(++ik<io){aS(il[ik],im)}}};function cp(im,il,e){var ik=-1,ip=im.length-e,io;il.lineStart();while(++ik<ip){io=im[ik],il.point(io[0],io[1],io[2])}il.lineEnd()}function hk(il,ik){var e=-1,im=il.length;ik.polygonStart();while(++e<im){cp(il[e],ik,1)}ik.polygonEnd()}hs.geo.area=function(e){ba=0;hs.geo.stream(e,hq);return ba};var ba,f0=new fn();var hq={sphere:function(){ba+=4*gm},point:aI,lineStart:aI,lineEnd:aI,polygonStart:function(){f0.reset();hq.lineStart=b5},polygonEnd:function(){var e=2*f0;ba+=e<0?4*gm+e:e;hq.lineStart=hq.lineEnd=hq.point=aI}};function b5(){var ik,e,im,il,io;hq.point=function(ir,iq){hq.point=ip;im=(ik=ir)*L,il=Math.cos(iq=(e=iq)*L/2+gm/4),io=Math.sin(iq)};function ip(ir,iq){ir*=L;iq=iq*L/2+gm/4;var iw=ir-im,iy=Math.cos(iq),ix=Math.sin(iq),iu=io*ix,iv=il*iy+iu*Math.cos(iw),it=iu*Math.sin(iw);f0.add(Math.atan2(it,iv));im=ir,il=iy,io=ix}hq.lineEnd=function(){ip(ik,e)}}function ax(e){var il=e[0],ik=e[1],im=Math.cos(ik);return[im*Math.cos(il),im*Math.sin(il),Math.sin(ik)]}function aA(ik,e){return ik[0]*e[0]+ik[1]*e[1]+ik[2]*e[2]}function c2(ik,e){return[ik[1]*e[2]-ik[2]*e[1],ik[2]*e[0]-ik[0]*e[2],ik[0]*e[1]-ik[1]*e[0]]}function cE(ik,e){ik[0]+=e[0];ik[1]+=e[1];ik[2]+=e[2]}function go(e,ik){return[e[0]*ik,e[1]*ik,e[2]*ik]}function fu(ik){var e=Math.sqrt(ik[0]*ik[0]+ik[1]*ik[1]+ik[2]*ik[2]);ik[0]/=e;ik[1]/=e;ik[2]/=e}function ig(e){return[Math.atan2(e[1],e[0]),ce(e[2])]}function eY(ik,e){return cJ(ik[0]-e[0])<gw&&cJ(ik[1]-e[1])<gw}hs.geo.bounds=function(){var im,iE,ik,iC,io,iw,iy,ip,it,iq,iu;var e={point:iz,lineStart:iv,lineEnd:iB,polygonStart:function(){e.point=iA;e.lineStart=ir;e.lineEnd=ix;it=0;hq.polygonStart()},polygonEnd:function(){hq.polygonEnd();e.point=iz;e.lineStart=iv;e.lineEnd=iB;if(f0<0){im=-(ik=180),iE=-(iC=90)}else{if(it>gw){iC=90}else{if(it<-gw){iE=-90}}}iu[0]=im,iu[1]=ik}};function iz(iI,iH){iq.push(iu=[im=iI,ik=iI]);if(iH<iE){iE=iH}if(iH>iC){iC=iH}}function il(iL,iR){var iH=ax([iL*L,iR*L]);if(ip){var iN=c2(ip,iH),iO=[iN[1],-iN[0],0],iM=c2(iO,iN);fu(iM);iM=ig(iM);var iP=iL-io,iQ=iP>0?1:-1,iI=iM[0]*hI*iQ,iK=cJ(iP)>180;if(iK^(iQ*io<iI&&iI<iQ*iL)){var iJ=iM[1]*hI;if(iJ>iC){iC=iJ}}else{if(iI=(iI+360)%360-180,iK^(iQ*io<iI&&iI<iQ*iL)){var iJ=-iM[1]*hI;if(iJ<iE){iE=iJ}}else{if(iR<iE){iE=iR}if(iR>iC){iC=iR}}}if(iK){if(iL<io){if(iD(im,iL)>iD(im,ik)){ik=iL}}else{if(iD(iL,ik)>iD(im,ik)){im=iL}}}else{if(ik>=im){if(iL<im){im=iL}if(iL>ik){ik=iL}}else{if(iL>io){if(iD(im,iL)>iD(im,ik)){ik=iL}}else{if(iD(iL,ik)>iD(im,ik)){im=iL}}}}}else{iz(iL,iR)}ip=iH,io=iL}function iv(){e.point=il}function iB(){iu[0]=im,iu[1]=ik;e.point=iz;ip=null}function iA(iI,iH){if(ip){var iJ=iI-io;it+=cJ(iJ)>180?iJ+(iJ>0?360:-360):iJ}else{iw=iI,iy=iH}hq.point(iI,iH);il(iI,iH)}function ir(){hq.lineStart()}function ix(){iA(iw,iy);hq.lineEnd();if(cJ(it)>gw){im=-(ik=180)}iu[0]=im,iu[1]=ik;ip=null}function iD(iI,iH){return(iH-=iI)<0?iH+360:iH}function iG(iI,iH){return iI[0]-iH[0]}function iF(iH,iI){return iI[0]<=iI[1]?iI[0]<=iH&&iH<=iI[1]:iH<iI[0]||iI[1]<iH}return function(iM){iC=ik=-(im=iE=Infinity);iq=[];hs.geo.stream(iM,e);var iO=iq.length;if(iO){iq.sort(iG);for(var iL=1,iJ=iq[0],iI,iH=[iJ];iL<iO;++iL){iI=iq[iL];if(iF(iI[0],iJ)||iF(iI[1],iJ)){if(iD(iJ[0],iI[1])>iD(iJ[0],iJ[1])){iJ[1]=iI[1]}if(iD(iI[0],iJ[1])>iD(iJ[0],iJ[1])){iJ[0]=iI[0]}}else{iH.push(iJ=iI)}}var iN=-Infinity,iK;for(var iO=iH.length-1,iL=0,iJ=iH[iO],iI;iL<=iO;iJ=iI,++iL){iI=iH[iL];if((iK=iD(iJ[1],iI[0]))>iN){iN=iK,im=iI[0],ik=iJ[1]}}}iq=iu=null;return im===Infinity||iE===Infinity?[[NaN,NaN],[NaN,NaN]]:[[im,iE],[ik,iC]]}}();hs.geo.centroid=function(il){ej=eh=dP=ds=da=dO=dr=c8=dN=dq=c7=0;hs.geo.stream(il,gq);var ik=dN,io=dq,im=c7,e=ik*ik+io*io+im*im;if(e<eJ){ik=dO,io=dr,im=c8;if(eh<gw){ik=dP,io=ds,im=da}e=ik*ik+io*io+im*im;if(e<eJ){return[NaN,NaN]}}return[Math.atan2(io,ik)*hI,ce(im/Math.sqrt(e))*hI]};var ej,eh,dP,ds,da,dO,dr,c8,dN,dq,c7;var gq={sphere:aI,point:ca,lineStart:ft,lineEnd:aG,polygonStart:function(){gq.lineStart=bq},polygonEnd:function(){gq.lineStart=ft}};function ca(ik,e){ik*=L;var il=Math.cos(e*=L);gB(il*Math.cos(ik),il*Math.sin(ik),Math.sin(e))}function gB(e,il,ik){++ej;dP+=(e-dP)/ej;ds+=(il-ds)/ej;da+=(ik-da)/ej}function ft(){var e,ik,im;gq.point=function(ip,io){ip*=L;var iq=Math.cos(io*=L);e=iq*Math.cos(ip);ik=iq*Math.sin(ip);im=Math.sin(io);gq.point=il;gB(e,ik,im)};function il(ir,iq){ir*=L;var it=Math.cos(iq*=L),io=it*Math.cos(ir),iv=it*Math.sin(ir),iu=Math.sin(iq),ip=Math.atan2(Math.sqrt((ip=ik*iu-im*iv)*ip+(ip=im*io-e*iu)*ip+(ip=e*iv-ik*io)*ip),e*io+ik*iv+im*iu);eh+=ip;dO+=ip*(e+(e=io));dr+=ip*(ik+(ik=iv));c8+=ip*(im+(im=iu));gB(e,ik,im)}}function aG(){gq.point=ca}function bq(){var ik,e,il,im,ip;gq.point=function(ir,iq){ik=ir,e=iq;gq.point=io;ir*=L;var it=Math.cos(iq*=L);il=it*Math.cos(ir);im=it*Math.sin(ir);ip=Math.sin(iq);gB(il,im,ip)};gq.lineEnd=function(){io(ik,e);gq.lineEnd=aG;gq.point=ca};function io(iw,iD){iw*=L;var iu=Math.cos(iD*=L),iz=iu*Math.cos(iw),iy=iu*Math.sin(iw),ix=Math.sin(iD),iv=im*ix-ip*iy,it=ip*iz-il*ix,ir=il*iy-im*iz,iq=Math.sqrt(iv*iv+it*it+ir*ir),iC=il*iz+im*iy+ip*ix,iB=iq&&-ag(iC)/iq,iA=Math.atan2(iq,iC);dN+=iB*iv;dq+=iB*it;c7+=iB*ir;eh+=iA;dO+=iA*(il+(il=iz));dr+=iA*(im+(im=iy));c8+=iA*(ip+(ip=ix));gB(il,im,ip)}}function ak(){return true}function ct(iq,ik,iv,it,im){var iu=[],io=[];iq.forEach(function(iD){if((iG=iD.length-1)<=0){return}var iG,iF=iD[0],iE=iD[iG];if(eY(iF,iE)){im.lineStart();for(var iC=0;iC<iG;++iC){im.point((iF=iD[iC])[0],iF[1])}im.lineEnd();return}var iB=new b(iF,iD,null,true),iA=new b(iF,null,iB,false);iB.o=iA;iu.push(iB);io.push(iA);iB=new b(iE,iD,null,false);iA=new b(iE,null,iB,true);iB.o=iA;iu.push(iB);io.push(iA)});io.sort(ik);hO(iu);hO(io);if(!iu.length){return}for(var ip=0,ix=iv,il=io.length;ip<il;++ip){io[ip].e=ix=!ix}var e=iu[0],iy,iw;while(1){var ir=e,iz=true;while(ir.v){if((ir=ir.n)===e){return}}iy=ir.z;im.lineStart();do{ir.v=ir.o.v=true;if(ir.e){if(iz){for(var ip=0,il=iy.length;ip<il;++ip){im.point((iw=iy[ip])[0],iw[1])}}else{it(ir.x,ir.n.x,1,im)}ir=ir.n}else{if(iz){iy=ir.p.z;for(var ip=iy.length-1;ip>=0;--ip){im.point((iw=iy[ip])[0],iw[1])}}else{it(ir.x,ir.p.x,-1,im)}ir=ir.p}ir=ir.o;iy=ir.z;iz=!iz}while(!ir.v);im.lineEnd()}}function hO(io){if(!(im=io.length)){return}var im,il=0,ik=io[0],e;while(++il<im){ik.n=e=io[il];e.p=ik;ik=e}ik.n=e=io[0];e.p=ik}function b(ik,il,e,im){this.x=ik;this.z=il;this.o=e;this.e=im;this.v=false;this.n=this.p=null}function ep(e,im,ik,il){return function(iw,iq){var iF=im(iq),ip=iw.invert(il[0],il[1]);var ir={point:iD,lineStart:iz,lineEnd:iv,polygonStart:function(){ir.point=iB;ir.lineStart=iA;ir.lineEnd=iE;iy=[];iC=[];iq.polygonStart()},polygonEnd:function(){ir.point=iD;ir.lineStart=iz;ir.lineEnd=iv;iy=hs.merge(iy);var iG=fX(ip,iC);if(iy.length){ct(iy,d0,iG,ik,iq)}else{if(iG){iq.lineStart();ik(null,null,1,iq);iq.lineEnd()}}iq.polygonEnd();iy=iC=null},sphere:function(){iq.polygonStart();iq.lineStart();ik(null,null,1,iq);iq.lineEnd();iq.polygonEnd()}};function iD(iI,iH){var iG=iw(iI,iH);if(e(iI=iG[0],iH=iG[1])){iq.point(iI,iH)}}function ix(iI,iH){var iG=iw(iI,iH);iF.point(iG[0],iG[1])}function iz(){ir.point=ix;iF.lineStart()}function iv(){ir.point=iD;iF.lineEnd()}var iy;var iu=S(),io=im(iu),iC,it;function iB(iI,iH){it.push([iI,iH]);var iG=iw(iI,iH);io.point(iG[0],iG[1])}function iA(){io.lineStart();it=[]}function iE(){iB(it[0][0],it[0][1]);io.lineEnd();var iI=io.clean(),iK=iu.buffer(),iJ,iL=iK.length;it.pop();iC.push(it);it=null;if(!iL){return}if(iI&1){iJ=iK[0];var iL=iJ.length-1,iH=-1,iG;iq.lineStart();while(++iH<iL){iq.point((iG=iJ[iH])[0],iG[1])}iq.lineEnd();return}if(iL>1&&iI&2){iK.push(iK.pop().concat(iK.shift()))}iy.push(iK.filter(eT))}return ir}}function eT(e){return e.length>1}function S(){var ik=[],e;return{lineStart:function(){ik.push(e=[])},point:function(im,il){e.push([im,il])},lineEnd:aI,buffer:function(){var il=ik;ik=[];e=null;return il},rejoin:function(){if(ik.length>1){ik.push(ik.pop().concat(ik.shift()))}}}}function d0(ik,e){return((ik=ik.x)[0]<0?ik[1]-ev-gw:ev-ik[1])-((e=e.x)[0]<0?e[1]-ev-gw:ev-e[1])}function fX(iC,iy){var iK=iC[0],iL=iC[1],e=[Math.sin(iK),-Math.cos(iK),0],ix=0,iI=0;f0.reset();for(var iH=0,iz=iy.length;iH<iz;++iH){var it=iy[iH],iB=it.length;if(!iB){continue}var ip=it[0],il=ip[0],iJ=ip[1]/2+gm/4,ir=Math.sin(iJ),ik=Math.cos(iJ),iG=1;while(true){if(iG===iB){iG=0}iC=it[iG];var iA=iC[0],iw=iC[1]/2+gm/4,im=Math.sin(iw),iF=Math.cos(iw),iE=iA-il,io=cJ(iE)>gm,iD=ir*im;f0.add(Math.atan2(iD*Math.sin(iE),ik*iF+iD*Math.cos(iE)));ix+=io?iE+(iE>=0?gh:-gh):iE;if(io^il>=iK^iA>=iK){var iu=c2(ax(ip),ax(iC));fu(iu);var iv=c2(e,iu);fu(iv);var iq=(io^iE>=0?-1:1)*ce(iv[2]);if(iL>iq||iL===iq&&(iu[0]||iu[1])){iI+=io^iE>=0?1:-1}}if(!iG++){break}il=iA,ir=im,ik=iF,ip=iC}}return(ix<-gw||ix<gw&&f0<0)^iI&1}var k=ep(ak,eK,dh,[-gm,-gm/2]);function eK(io){var ik=NaN,e=NaN,im=NaN,il;return{lineStart:function(){io.lineStart();il=1},point:function(iq,ip){var it=iq>0?gm:-gm,ir=cJ(iq-ik);if(cJ(ir-gm)<gw){io.point(ik,e=(e+ip)/2>0?ev:-ev);io.point(im,e);io.lineEnd();io.lineStart();io.point(it,e);io.point(iq,e);il=0}else{if(im!==it&&ir>=gm){if(cJ(ik-im)<gw){ik-=im*gw}if(cJ(iq-it)<gw){iq-=it*gw}e=v(ik,e,iq,ip);io.point(im,e);io.lineEnd();io.lineStart();io.point(it,e);il=0}}io.point(ik=iq,e=ip);im=it},lineEnd:function(){io.lineEnd();ik=e=NaN},clean:function(){return 2-il}}}function v(ip,io,im,il){var ik,e,iq=Math.sin(ip-im);return cJ(iq)>gw?Math.atan((Math.sin(io)*(e=Math.cos(il))*Math.sin(im)-Math.sin(il)*(ik=Math.cos(io))*Math.sin(ip))/(ik*e*iq)):(io+il)/2}function dh(ip,io,im,il){var e;if(ip==null){e=im*ev;il.point(-gm,e);il.point(0,e);il.point(gm,e);il.point(gm,0);il.point(gm,-e);il.point(0,-e);il.point(-gm,-e);il.point(-gm,0);il.point(-gm,e)}else{if(cJ(ip[0]-io[0])>gw){var ik=ip[0]<io[0]?gm:-gm;e=im*ik/2;il.point(-ik,e);il.point(0,e);il.point(ik,e)}else{il.point(io[0],io[1])}}}function aN(io){var ip=Math.cos(io),im=ip>0,iq=cJ(ip)>gw,ir=b4(io,6*L);return ep(il,it,ir,im?[0,-io]:[-gm,io-gm]);function il(iv,iu){return Math.cos(iv)*Math.cos(iu)>ip}function it(iz){var iy,ix,iu,iw,iv;return{lineStart:function(){iw=iu=false;iv=1},point:function(iB,iA){var iF=[iB,iA],iE,iC=il(iB,iA),iG=im?iC?0:e(iB,iA):iC?e(iB+(iB<0?gm:-gm),iA):0;if(!iy&&(iw=iu=iC)){iz.lineStart()}if(iC!==iu){iE=ik(iy,iF);if(eY(iy,iE)||eY(iF,iE)){iF[0]+=gw;iF[1]+=gw;iC=il(iF[0],iF[1])}}if(iC!==iu){iv=0;if(iC){iz.lineStart();iE=ik(iF,iy);iz.point(iE[0],iE[1])}else{iE=ik(iy,iF);iz.point(iE[0],iE[1]);iz.lineEnd()}iy=iE}else{if(iq&&iy&&im^iC){var iD;if(!(iG&ix)&&(iD=ik(iF,iy,true))){iv=0;if(im){iz.lineStart();iz.point(iD[0][0],iD[0][1]);iz.point(iD[1][0],iD[1][1]);iz.lineEnd()}else{iz.point(iD[1][0],iD[1][1]);iz.lineEnd();iz.lineStart();iz.point(iD[0][0],iD[0][1])}}}}if(iC&&(!iy||!eY(iy,iF))){iz.point(iF[0],iF[1])}iy=iF,iu=iC,ix=iG},lineEnd:function(){if(iu){iz.lineEnd()}iy=null},clean:function(){return iv|(iw&&iu)<<1}}}function ik(iV,iU,iy){var iw=ax(iV),iu=ax(iU);var iD=[1,0,0],iA=c2(iw,iu),iG=aA(iA,iA),iT=iA[0],iM=iG-iT*iT;if(!iM){return !iy&&iV}var iP=ip*iG/iM,iO=-ip*iT/iM,iW=c2(iD,iA),iN=go(iD,iP),iL=go(iA,iO);cE(iN,iL);var iI=iW,iH=aA(iN,iI),iz=aA(iI,iI),iF=iH*iH-iz*(aA(iN,iN)-1);if(iF<0){return}var iJ=Math.sqrt(iF),iK=go(iI,(-iH-iJ)/iz);cE(iK,iN);iK=ig(iK);if(!iy){return iK}var ix=iV[0],iv=iU[0],iR=iV[1],iQ=iU[1],iC;if(iv<ix){iC=ix,ix=iv,iv=iC}var iB=iv-ix,iX=cJ(iB-gm)<gw,iS=iX||iB<gw;if(!iX&&iQ<iR){iC=iR,iR=iQ,iQ=iC}if(iS?iX?iR+iQ>0^iK[1]<(cJ(iK[0]-ix)<gw?iR:iQ):iR<=iK[1]&&iK[1]<=iQ:iB>gm^(ix<=iK[0]&&iK[0]<=iv)){var iE=go(iI,(-iH+iJ)/iz);cE(iE,iN);return[iK,ig(iE)]}}function e(iv,iu){var ix=im?io:gm-io,iw=0;if(iv<-ix){iw|=1}else{if(iv>ix){iw|=2}}if(iu<-ix){iw|=4}else{if(iu>ix){iw|=8}}return iw}}function an(ik,im,e,il){return function(iA){var iw=iA.a,iv=iA.b,ip=iw.x,iz=iw.y,iu=iv.x,it=iv.y,ir=0,iq=1,iy=iu-ip,ix=it-iz,io;io=ik-ip;if(!iy&&io>0){return}io/=iy;if(iy<0){if(io<ir){return}if(io<iq){iq=io}}else{if(iy>0){if(io>iq){return}if(io>ir){ir=io}}}io=e-ip;if(!iy&&io<0){return}io/=iy;if(iy<0){if(io>iq){return}if(io>ir){ir=io}}else{if(iy>0){if(io<ir){return}if(io<iq){iq=io}}}io=im-iz;if(!ix&&io>0){return}io/=ix;if(ix<0){if(io<ir){return}if(io<iq){iq=io}}else{if(ix>0){if(io>iq){return}if(io>ir){ir=io}}}io=il-iz;if(!ix&&io<0){return}io/=ix;if(ix<0){if(io>iq){return}if(io>ir){ir=io}}else{if(ix>0){if(io<ir){return}if(io<iq){iq=io}}}if(ir>0){iA.a={x:ip+ir*iy,y:iz+ir*ix}}if(iq<1){iA.b={x:ip+iq*iy,y:iz+iq*ix}}return iA}}var cM=1000000000;hs.geo.clipExtent=function(){var il,ip,ik,im,iq,io,e={stream:function(ir){if(iq){iq.valid=false}iq=io(ir);iq.valid=true;return iq},extent:function(ir){if(!arguments.length){return[[il,ip],[ik,im]]}io=em(il=+ir[0][0],ip=+ir[0][1],ik=+ir[1][0],im=+ir[1][1]);if(iq){iq.valid=false,iq=null}return e}};return e.extent([[0,0],[960,500]])};function em(ik,io,e,il){return function(ix){var it=ix,iD=S(),iu=an(ik,io,e,il),iL,iE,iB;var iP={point:iK,lineStart:iH,lineEnd:iN,polygonStart:function(){ix=iD;iL=[];iE=[];iM=true},polygonEnd:function(){ix=it;iL=hs.merge(iL);var iR=iG([ik,il]),iQ=iM&&iR,iS=iL.length;if(iQ||iS){ix.polygonStart();if(iQ){ix.lineStart();iC(null,null,1,ix);ix.lineEnd()}if(iS){ct(iL,ip,iR,iC,ix)}ix.polygonEnd()}iL=iE=iB=null}};function iG(iQ){var iY=0,iR=iE.length,iW=iQ[1];for(var iU=0;iU<iR;++iU){for(var iT=1,iZ=iE[iU],iS=iZ.length,iX=iZ[0],iV;iT<iS;++iT){iV=iZ[iT];if(iX[1]<=iW){if(iV[1]>iW&&iy(iX,iV,iQ)>0){++iY}}else{if(iV[1]<=iW&&iy(iX,iV,iQ)<0){--iY}}iX=iV}}return iY!==0}function iy(iR,iQ,iS){return(iQ[0]-iR[0])*(iS[1]-iR[1])-(iS[0]-iR[0])*(iQ[1]-iR[1])}function iC(iV,iU,iT,iS){var iR=0,iQ=0;if(iV==null||(iR=im(iV,iT))!==(iQ=im(iU,iT))||iq(iV,iU)<0^iT>0){do{iS.point(iR===0||iR===3?ik:e,iR>1?il:io)}while((iR=(iR+iT+4)%4)!==iQ)}else{iS.point(iU[0],iU[1])}}function iF(iQ,iR){return ik<=iQ&&iQ<=e&&io<=iR&&iR<=il}function iK(iQ,iR){if(iF(iQ,iR)){ix.point(iQ,iR)}}var iJ,iz,iI,iO,iw,iv,iA,iM;function iH(){iP.point=ir;if(iE){iE.push(iB=[])}iA=true;iv=false;iO=iw=NaN}function iN(){if(iL){ir(iJ,iz);if(iI&&iv){iD.rejoin()}iL.push(iD.buffer())}iP.point=iK;if(iv){ix.lineEnd()}}function ir(iQ,iT){iQ=Math.max(-cM,Math.min(cM,iQ));iT=Math.max(-cM,Math.min(cM,iT));var iS=iF(iQ,iT);if(iE){iB.push([iQ,iT])}if(iA){iJ=iQ,iz=iT,iI=iS;iA=false;if(iS){ix.lineStart();ix.point(iQ,iT)}}else{if(iS&&iv){ix.point(iQ,iT)}else{var iR={a:{x:iO,y:iw},b:{x:iQ,y:iT}};if(iu(iR)){if(!iv){ix.lineStart();ix.point(iR.a.x,iR.a.y)}ix.point(iR.b.x,iR.b.y);if(!iS){ix.lineEnd()}iM=false}else{if(iS){ix.lineStart();ix.point(iQ,iT);iM=false}}}}iO=iQ,iw=iT,iv=iS}return iP};function im(it,ir){return cJ(it[0]-ik)<gw?ir>0?0:3:cJ(it[0]-e)<gw?ir>0?2:1:cJ(it[1]-io)<gw?ir>0?1:0:ir>0?3:2}function ip(it,ir){return iq(it.x,ir.x)}function iq(iv,it){var iu=im(iv,1),ir=im(it,1);return iu!==ir?iu-ir:iu===0?it[1]-iv[1]:iu===1?iv[0]-it[0]:iu===2?iv[1]-it[1]:it[0]-iv[0]}}function fg(ik,e){function il(im,io){return im=ik(im,io),e(im[0],im[1])}if(ik.invert&&e.invert){il.invert=function(im,io){return im=e.invert(im,io),im&&ik.invert(im[0],im[1])}}return il}function b6(im){var il=0,ik=gm/3,e=fs(im),io=e(il,ik);io.parallels=function(ip){if(!arguments.length){return[il/gm*180,ik/gm*180]}return e(il=ip[0]*gm/180,ik=ip[1]*gm/180)};return io}function P(ik,e){var io=Math.sin(ik),iq=(io+Math.sin(e))/2,ip=1+io*(2*iq-io),im=Math.sqrt(ip)/iq;function il(it,ir){var iu=Math.sqrt(ip-2*iq*Math.sin(ir))/iq;return[iu*Math.sin(it*=iq),im-iu*Math.cos(it)]}il.invert=function(ir,iu){var it=im-iu;return[Math.atan2(ir,it)/iq,ce((ip-(ir*ir+it*it)*iq*iq)/(2*iq))]};return il}(hs.geo.conicEqualArea=function(){return b6(P)}).raw=P;hs.geo.albers=function(){return hs.geo.conicEqualArea().rotate([96,0]).center([-0.6,38.7]).parallels([29.5,45.5]).scale(1070)};hs.geo.albersUsa=function(){var ik=hs.geo.albers();var ip=hs.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]);var il=hs.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]);var ir,e={point:function(iu,iv){ir=[iu,iv]}},io,iq,im;function it(iv){var iu=iv[0],iw=iv[1];ir=null;(io(iu,iw),ir)||(iq(iu,iw),ir)||im(iu,iw);return ir}it.invert=function(ix){var iv=ik.scale(),iw=ik.translate(),iu=(ix[0]-iw[0])/iv,iy=(ix[1]-iw[1])/iv;return(iy>=0.12&&iy<0.234&&iu>=-0.425&&iu<-0.214?ip:iy>=0.166&&iy<0.234&&iu>=-0.214&&iu<-0.115?il:ik).invert(ix)};it.stream=function(iw){var iv=ik.stream(iw),ix=ip.stream(iw),iu=il.stream(iw);return{point:function(iy,iz){iv.point(iy,iz);ix.point(iy,iz);iu.point(iy,iz)},sphere:function(){iv.sphere();ix.sphere();iu.sphere()},lineStart:function(){iv.lineStart();ix.lineStart();iu.lineStart()},lineEnd:function(){iv.lineEnd();ix.lineEnd();iu.lineEnd()},polygonStart:function(){iv.polygonStart();ix.polygonStart();iu.polygonStart()},polygonEnd:function(){iv.polygonEnd();ix.polygonEnd();iu.polygonEnd()}}};it.precision=function(iu){if(!arguments.length){return ik.precision()}ik.precision(iu);ip.precision(iu);il.precision(iu);return it};it.scale=function(iu){if(!arguments.length){return ik.scale()}ik.scale(iu);ip.scale(iu*0.35);il.scale(iu);return it.translate(ik.translate())};it.translate=function(iw){if(!arguments.length){return ik.translate()}var iv=ik.scale(),iu=+iw[0],ix=+iw[1];io=ik.translate(iw).clipExtent([[iu-0.455*iv,ix-0.238*iv],[iu+0.455*iv,ix+0.238*iv]]).stream(e).point;iq=ip.translate([iu-0.307*iv,ix+0.201*iv]).clipExtent([[iu-0.425*iv+gw,ix+0.12*iv+gw],[iu-0.214*iv-gw,ix+0.234*iv-gw]]).stream(e).point;im=il.translate([iu-0.205*iv,ix+0.212*iv]).clipExtent([[iu-0.214*iv+gw,ix+0.166*iv+gw],[iu-0.115*iv-gw,ix+0.234*iv-gw]]).stream(e).point;return it};return it.scale(1070)};var fY,B,dE={point:aI,lineStart:aI,lineEnd:aI,polygonStart:function(){B=0;dE.lineStart=cO},polygonEnd:function(){dE.lineStart=dE.lineEnd=dE.point=aI;fY+=cJ(B/2)}};function cO(){var im,e,ik,il;dE.point=function(ip,iq){dE.point=io;im=ik=ip,e=il=iq};function io(ip,iq){B+=il*ip-ik*iq;ik=ip,il=iq}dE.lineEnd=function(){io(im,e)}}var eR,eu,eP,et;var az={point:cX,lineStart:aI,lineEnd:aI,polygonStart:aI,polygonEnd:aI};function cX(e,ik){if(e<eR){eR=e}if(e>eP){eP=e}if(ik<eu){eu=ik}if(ik>et){et=ik}}function cj(){var il=hc(4.5),ik=[];var ir={point:e,lineStart:function(){ir.point=iq},lineEnd:ip,polygonStart:function(){ir.lineEnd=im},polygonEnd:function(){ir.lineEnd=ip;ir.point=e},pointRadius:function(it){il=hc(it);return ir},result:function(){if(ik.length){var it=ik.join("");ik=[];return it}}};function e(it,iu){ik.push("M",it,",",iu,il)}function iq(it,iu){ik.push("M",it,",",iu);ir.point=io}function io(it,iu){ik.push("L",it,",",iu)}function ip(){ir.point=e}function im(){ik.push("Z")}return ir}function hc(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var hb={point:cS,lineStart:f3,lineEnd:cR,polygonStart:function(){hb.lineStart=bZ},polygonEnd:function(){hb.point=cS;hb.lineStart=f3;hb.lineEnd=cR}};function cS(e,ik){dP+=e;ds+=ik;++da}function f3(){var e,ik;hb.point=function(im,io){hb.point=il;cS(e=im,ik=io)};function il(im,ir){var ip=im-e,io=ir-ik,iq=Math.sqrt(ip*ip+io*io);dO+=iq*(e+im)/2;dr+=iq*(ik+ir)/2;c8+=iq;cS(e=im,ik=ir)}}function cR(){hb.point=cS}function bZ(){var im,e,ik,il;hb.point=function(ip,iq){hb.point=io;cS(im=ik=ip,e=il=iq)};function io(ip,iu){var ir=ip-ik,iq=iu-il,it=Math.sqrt(ir*ir+iq*iq);dO+=it*(ik+ip)/2;dr+=it*(il+iu)/2;c8+=it;it=il*ip-ik*iu;dN+=it*(ik+ip);dq+=it*(il+iu);c7+=it*3;cS(ik=ip,il=iu)}hb.lineEnd=function(){io(im,e)}}function cI(ik){var io=4.5;var ir={point:e,lineStart:function(){ir.point=iq},lineEnd:ip,polygonStart:function(){ir.lineEnd=il},polygonEnd:function(){ir.lineEnd=ip;ir.point=e},pointRadius:function(it){io=it;return ir},result:aI};function e(it,iu){ik.moveTo(it,iu);ik.arc(it,iu,io,0,gh)}function iq(it,iu){ik.moveTo(it,iu);ir.point=im}function im(it,iu){ik.lineTo(it,iu)}function ip(){ir.point=e}function il(){ik.closePath()}return ir}function fZ(iq){var io=0.5,ip=Math.cos(30*L),ir=16;function il(it){return(ir?im:e)(it)}function e(it){return eM(it,function(iu,iv){iu=iq(iu,iv);it.point(iu[0],iu[1])})}function im(iz){var iE,iK,iJ,iA,iN,iC,iu,iv,iM,iw,iO,iB,iF;var ix={point:iI,lineStart:iD,lineEnd:iL,polygonStart:function(){iz.polygonStart();ix.lineStart=iy},polygonEnd:function(){iz.polygonEnd();ix.lineStart=iD}};function iI(iP,iQ){iP=iq(iP,iQ);iz.point(iP[0],iP[1])}function iD(){iM=NaN;ix.point=it;iz.lineStart()}function it(iQ,iP){var iS=ax([iQ,iP]),iR=iq(iQ,iP);ik(iM,iw,iv,iO,iB,iF,iM=iR[0],iw=iR[1],iv=iQ,iO=iS[0],iB=iS[1],iF=iS[2],ir,iz);iz.point(iM,iw)}function iL(){ix.point=iI;iz.lineEnd()}function iy(){iD();ix.point=iH;ix.lineEnd=iG}function iH(iQ,iP){it(iE=iQ,iK=iP),iJ=iM,iA=iw,iN=iO,iC=iB,iu=iF;ix.point=it}function iG(){ik(iM,iw,iv,iO,iB,iF,iJ,iA,iE,iN,iC,iu,ir,iz);ix.lineEnd=iL;iL()}return ix}function ik(iO,iz,iv,iV,iC,iK,iN,iy,iu,iT,iB,iI,iS,iA){var iG=iN-iO,iF=iy-iz,iU=iG*iG+iF*iF;if(iU>4*io&&iS--){var iR=iV+iT,iQ=iC+iB,iP=iK+iI,iJ=Math.sqrt(iR*iR+iQ*iQ+iP*iP),iM=Math.asin(iP/=iJ),it=cJ(cJ(iP)-1)<gw?(iv+iu)/2:Math.atan2(iQ,iR),iH=iq(it,iM),iL=iH[0],ix=iH[1],iw=iL-iO,iE=ix-iz,iD=iF*iw-iG*iE;if(iD*iD/iU>io||cJ((iG*iw+iF*iE)/iU-0.5)>0.3||iV*iT+iC*iB+iK*iI<ip){ik(iO,iz,iv,iV,iC,iK,iL,ix,it,iR/=iJ,iQ/=iJ,iP,iS,iA);iA.point(iL,ix);ik(iL,ix,it,iR,iQ,iP,iN,iy,iu,iT,iB,iI,iS,iA)}}}il.precision=function(it){if(!arguments.length){return Math.sqrt(io)}ir=(io=it*it)>0&&16;return il};return il}hs.geo.path=function(){var iq=4.5,ik,im,io,e,il;function ir(it){if(it){if(typeof iq==="function"){e.pointRadius(+iq.apply(this,arguments))}if(!il||!il.valid){il=io(e)}hs.geo.stream(it,il)}return e.result()}ir.area=function(it){fY=0;hs.geo.stream(it,io(dE));return fY};ir.centroid=function(it){dP=ds=da=dO=dr=c8=dN=dq=c7=0;hs.geo.stream(it,io(hb));return c7?[dN/c7,dq/c7]:c8?[dO/c8,dr/c8]:da?[dP/da,ds/da]:[NaN,NaN]};ir.bounds=function(it){eP=et=-(eR=eu=Infinity);hs.geo.stream(it,io(az));return[[eR,eu],[eP,et]]};ir.projection=function(it){if(!arguments.length){return ik}io=(ik=it)?it.stream||hm(it):gt;return ip()};ir.context=function(it){if(!arguments.length){return im}e=(im=it)==null?new cj():new cI(it);if(typeof iq!=="function"){e.pointRadius(iq)}return ip()};ir.pointRadius=function(it){if(!arguments.length){return iq}iq=typeof it==="function"?it:(e.pointRadius(+it),+it);return ir};function ip(){il=null;return ir}return ir.projection(hs.geo.albersUsa()).context(null)};function hm(ik){var e=fZ(function(il,im){return ik([il*hI,im*hI])});return function(il){return cg(e(il))}}hs.geo.transform=function(e){return{stream:function(im){var il=new ei(im);for(var ik in e){il[ik]=e[ik]}return il}}};function ei(e){this.stream=e}ei.prototype={point:function(e,ik){this.stream.point(e,ik)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function eM(ik,e){return{point:e,sphere:function(){ik.sphere()},lineStart:function(){ik.lineStart()},lineEnd:function(){ik.lineEnd()},polygonStart:function(){ik.polygonStart()},polygonEnd:function(){ik.polygonEnd()}}}hs.geo.projection=fL;hs.geo.projectionMutator=fs;function fL(e){return fs(function(){return e})()}function fs(iz){var im,iE,ir,iB=fZ(function(iJ,iK){iJ=im(iJ,iK);return[iJ[0]*iD+ip,il-iJ[1]*iD]}),iD=150,ix=480,iv=250,iC=0,iw=0,it=0,io=0,iA=0,ip,il,iI=k,iF=gt,e=null,ik=null,iq;function iH(iJ){iJ=ir(iJ[0]*L,iJ[1]*L);return[iJ[0]*iD+ip,il-iJ[1]*iD]}function iy(iJ){iJ=ir.invert((iJ[0]-ip)/iD,(il-iJ[1])/iD);return iJ&&[iJ[0]*hI,iJ[1]*hI]}iH.stream=function(iJ){if(iq){iq.valid=false}iq=cg(iI(iE,iB(iF(iJ))));iq.valid=true;return iq};iH.clipAngle=function(iJ){if(!arguments.length){return e}iI=iJ==null?(e=iJ,k):aN((e=+iJ)*L);return iu()};iH.clipExtent=function(iJ){if(!arguments.length){return ik}ik=iJ;iF=iJ?em(iJ[0][0],iJ[0][1],iJ[1][0],iJ[1][1]):gt;return iu()};iH.scale=function(iJ){if(!arguments.length){return iD}iD=+iJ;return iG()};iH.translate=function(iJ){if(!arguments.length){return[ix,iv]}ix=+iJ[0];iv=+iJ[1];return iG()};iH.center=function(iJ){if(!arguments.length){return[iC*hI,iw*hI]}iC=iJ[0]%360*L;iw=iJ[1]%360*L;return iG()};iH.rotate=function(iJ){if(!arguments.length){return[it*hI,io*hI,iA*hI]}it=iJ[0]%360*L;io=iJ[1]%360*L;iA=iJ.length>2?iJ[2]%360*L:0;return iG()};hs.rebind(iH,iB,"precision");function iG(){ir=fg(iE=dK(it,io,iA),im);var iJ=im(iC,iw);ip=ix-iJ[0]*iD;il=iv+iJ[1]*iD;return iu()}function iu(){if(iq){iq.valid=false,iq=null}return iH}return function(){im=iz.apply(this,arguments);iH.invert=im.invert&&iy;return iG()}}function cg(e){return eM(e,function(ik,il){e.point(ik*L,il*L)})}function bx(ik,e){return[ik,e]}(hs.geo.equirectangular=function(){return fL(bx)}).raw=bx.invert=bx;hs.geo.rotation=function(ik){ik=dK(ik[0]%360*L,ik[1]*L,ik.length>2?ik[2]*L:0);function e(il){il=ik(il[0]*L,il[1]*L);return il[0]*=hI,il[1]*=hI,il}e.invert=function(il){il=ik.invert(il[0]*L,il[1]*L);return il[0]*=hI,il[1]*=hI,il};return e};function bJ(ik,e){return[ik>gm?ik-gh:ik<-gm?ik+gh:ik,e]}bJ.invert=bx;function dK(il,ik,e){return il?ik||e?fg(e8(il),bT(ik,e)):e8(il):ik||e?bT(ik,e):bJ}function g4(e){return function(il,ik){return il+=e,[il>gm?il-gh:il<-gm?il+gh:il,ik]}}function e8(ik){var e=g4(ik);e.invert=g4(-ik);return e}function bT(ip,ik){var io=Math.cos(ip),iq=Math.sin(ip),e=Math.cos(ik),il=Math.sin(ik);function im(iu,it){var iw=Math.cos(it),ir=Math.cos(iu)*iw,iy=Math.sin(iu)*iw,ix=Math.sin(it),iv=ix*io+ir*iq;return[Math.atan2(iy*e-iv*il,ir*io-ix*iq),ce(iv*e+iy*il)]}im.invert=function(iu,it){var iw=Math.cos(it),ir=Math.cos(iu)*iw,iy=Math.sin(iu)*iw,ix=Math.sin(it),iv=ix*e-iy*il;return[Math.atan2(iy*e+ix*il,ir*io+iv*iq),ce(iv*io-ir*iq)]};return im}hs.geo.circle=function(){var ik=[0,0],io,e=6,il;function im(){var ip=typeof ik==="function"?ik.apply(this,arguments):ik,ir=dK(-ip[0]*L,-ip[1]*L,0).invert,iq=[];il(null,null,1,{point:function(it,iu){iq.push(it=ir(it,iu));it[0]*=hI,it[1]*=hI}});return{type:"Polygon",coordinates:[iq]}}im.origin=function(ip){if(!arguments.length){return ik}ik=ip;return im};im.angle=function(ip){if(!arguments.length){return io}il=b4((io=+ip)*L,e*L);return im};im.precision=function(ip){if(!arguments.length){return e}il=b4(io*L,(e=+ip)*L);return im};return im.angle(90)};function b4(e,ik){var im=Math.cos(e),il=Math.sin(e);return function(iv,iu,it,ir){var iq=it*ik;if(iv!=null){iv=hY(im,iv);iu=hY(im,iu);if(it>0?iv<iu:iv>iu){iv+=it*gh}}else{iv=e+it*gh;iu=e-0.5*iq}for(var io,ip=iv;it>0?ip>iu:ip<iu;ip-=iq){ir.point((io=ig([im,-il*Math.cos(ip),-il*Math.sin(ip)]))[0],io[1])}}}function hY(il,e){var ik=ax(e);ik[0]-=il;fu(ik);var im=ag(-ik[1]);return((-ik[2]<0?-im:im)+2*Math.PI-gw)%(2*Math.PI)}hs.geo.distance=function(ir,iq){var it=(iq[0]-ir[0])*L,iv=ir[1]*L,iu=iq[1]*L,io=Math.sin(it),ik=Math.cos(it),ip=Math.sin(iv),il=Math.cos(iv),im=Math.sin(iu),e=Math.cos(iu),iw;return Math.atan2(Math.sqrt((iw=e*io)*iw+(iw=il*im-ip*e*ik)*iw),ip*im+il*e*ik)};hs.geo.graticule=function(){var iz,iB,iC,iD,im,io,ip,ir,ix=10,iw=ix,it=90,iq=360,iv,iu,il,ik,iy=2.5;function iA(){return{type:"MultiLineString",coordinates:e()}}function e(){return hs.range(Math.ceil(iD/it)*it,iC,it).map(il).concat(hs.range(Math.ceil(ir/iq)*iq,ip,iq).map(ik)).concat(hs.range(Math.ceil(iB/ix)*ix,iz,ix).filter(function(iE){return cJ(iE%it)>gw}).map(iv)).concat(hs.range(Math.ceil(io/iw)*iw,im,iw).filter(function(iE){return cJ(iE%iq)>gw}).map(iu))}iA.lines=function(){return e().map(function(iE){return{type:"LineString",coordinates:iE}})};iA.outline=function(){return{type:"Polygon",coordinates:[il(iD).concat(ik(ip).slice(1),il(iC).reverse().slice(1),ik(ir).reverse().slice(1))]}};iA.extent=function(iE){if(!arguments.length){return iA.minorExtent()}return iA.majorExtent(iE).minorExtent(iE)};iA.majorExtent=function(iE){if(!arguments.length){return[[iD,ir],[iC,ip]]}iD=+iE[0][0],iC=+iE[1][0];ir=+iE[0][1],ip=+iE[1][1];if(iD>iC){iE=iD,iD=iC,iC=iE}if(ir>ip){iE=ir,ir=ip,ip=iE}return iA.precision(iy)};iA.minorExtent=function(iE){if(!arguments.length){return[[iB,io],[iz,im]]}iB=+iE[0][0],iz=+iE[1][0];io=+iE[0][1],im=+iE[1][1];if(iB>iz){iE=iB,iB=iz,iz=iE}if(io>im){iE=io,io=im,im=iE}return iA.precision(iy)};iA.step=function(iE){if(!arguments.length){return iA.minorStep()}return iA.majorStep(iE).minorStep(iE)};iA.majorStep=function(iE){if(!arguments.length){return[it,iq]}it=+iE[0],iq=+iE[1];return iA};iA.minorStep=function(iE){if(!arguments.length){return[ix,iw]}ix=+iE[0],iw=+iE[1];return iA};iA.precision=function(iE){if(!arguments.length){return iy}iy=+iE;iv=aM(io,im,90);iu=aK(iB,iz,iy);il=aM(ir,ip,90);ik=aK(iD,iC,iy);return iA};return iA.majorExtent([[-180,-90+gw],[180,90-gw]]).minorExtent([[-180,-80-gw],[180,80+gw]])};function aM(il,ik,e){var im=hs.range(il,ik-gw,e).concat(ik);return function(io){return im.map(function(ip){return[io,ip]})}}function aK(im,il,ik){var e=hs.range(im,il-gw,ik).concat(il);return function(io){return e.map(function(ip){return[ip,io]})}}function hN(e){return e.source}function hW(e){return e.target}hs.geo.greatArc=function(){var il=hN,ik,im=hW,io;function e(){return{type:"LineString",coordinates:[ik||il.apply(this,arguments),io||im.apply(this,arguments)]}}e.distance=function(){return hs.geo.distance(ik||il.apply(this,arguments),io||im.apply(this,arguments))};e.source=function(ip){if(!arguments.length){return il}il=ip,ik=typeof ip==="function"?null:ip;return e};e.target=function(ip){if(!arguments.length){return im}im=ip,io=typeof ip==="function"?null:ip;return e};e.precision=function(){return arguments.length?e:0};return e};hs.geo.interpolate=function(e,ik){return g(e[0]*L,e[1]*L,ik[0]*L,ik[1]*L)};function g(im,iz,il,ix){var iq=Math.cos(iz),iy=Math.sin(iz),io=Math.cos(ix),iw=Math.sin(ix),it=iq*Math.cos(im),ik=iq*Math.sin(im),ir=io*Math.cos(il),e=io*Math.sin(il),iv=2*Math.asin(Math.sqrt(aF(ix-iz)+iq*io*aF(il-im))),ip=1/Math.sin(iv);var iu=iv?function(iC){var iF=Math.sin(iC*=iv)*ip,iB=Math.sin(iv-iC)*ip,iA=iB*it+iF*ir,iE=iB*ik+iF*e,iD=iB*iy+iF*iw;return[Math.atan2(iE,iA)*hI,Math.atan2(iD,Math.sqrt(iA*iA+iE*iE))*hI]}:function(){return[im*hI,iz*hI]};iu.distance=iv;return iu}hs.geo.length=function(e){dZ=0;hs.geo.stream(e,f7);return dZ};var dZ;var f7={sphere:aI,point:aI,lineStart:hQ,lineEnd:aI,polygonStart:aI,polygonEnd:aI};function hQ(){var ik,il,e;f7.point=function(ip,io){ik=ip*L,il=Math.sin(io*=L),e=Math.cos(io);f7.point=im};f7.lineEnd=function(){f7.point=f7.lineEnd=aI};function im(ip,io){var it=Math.sin(io*=L),iu=Math.cos(io),iq=cJ((ip*=L)-ik),ir=Math.cos(iq);dZ+=Math.atan2(Math.sqrt((iq=iu*Math.sin(iq))*iq+(iq=e*it-il*iu*ir)*iq),il*it+e*iu*ir);ik=ip,il=it,e=iu}}function eD(il,ik){function e(io,im){var ir=Math.cos(io),iq=Math.cos(im),ip=il(ir*iq);return[ip*iq*Math.sin(io),ip*Math.sin(im)]}e.invert=function(im,it){var iq=Math.sqrt(im*im+it*it),ir=ik(iq),io=Math.sin(ir),ip=Math.cos(ir);return[Math.atan2(im*io,iq*ip),Math.asin(iq&&it*io/iq)]};return e}var bu=eD(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(hs.geo.azimuthalEqualArea=function(){return fL(bu)}).raw=bu;var bI=eD(function(e){var ik=Math.acos(e);return ik&&ik/Math.sin(ik)},gt);(hs.geo.azimuthalEquidistant=function(){return fL(bI)}).raw=bI;function fU(il,ik){var e=Math.cos(il),io=function(ir){return Math.tan(gm/4+ir/2)},iq=il===ik?Math.sin(il):Math.log(e/Math.cos(ik))/Math.log(io(ik)/io(il)),ip=e*Math.pow(io(il),iq)/iq;if(!iq){return aV}function im(it,ir){var iu=cJ(cJ(ir)-ev)<gw?0:ip/Math.pow(io(ir),iq);return[iu*Math.sin(iq*it),ip-iu*Math.cos(iq*it)]}im.invert=function(ir,iv){var iu=ip-iv,it=b9(iq)*Math.sqrt(ir*ir+iu*iu);return[Math.atan2(ir,iu)/iq,2*Math.atan(Math.pow(ip/it,1/iq))-ev]};return im}(hs.geo.conicConformal=function(){return b6(fU)}).raw=fU;function hF(il,ik){var e=Math.cos(il),ip=il===ik?Math.sin(il):(e-Math.cos(ik))/(ik-il),io=e/ip+il;if(cJ(ip)<gw){return bx}function im(ir,iq){var it=io-iq;return[it*Math.sin(ip*ir),io-it*Math.cos(ip*ir)]}im.invert=function(iq,it){var ir=io-it;return[Math.atan2(iq,ir)/ip,io-b9(ip)*Math.sqrt(iq*iq+ir*ir)]};return im}(hs.geo.conicEquidistant=function(){return b6(hF)}).raw=hF;var eL=eD(function(e){return 1/e},Math.atan);(hs.geo.gnomonic=function(){return fL(eL)}).raw=eL;function aV(ik,e){return[ik,Math.log(Math.tan(gm/4+e/2))]}aV.invert=function(e,ik){return[e,2*Math.atan(Math.exp(ik))-ev]};function c9(ip){var e=fL(ip),io=e.scale,im=e.translate,ik=e.clipExtent,il;e.scale=function(){var iq=io.apply(e,arguments);return iq===e?il?e.clipExtent(null):e:iq};e.translate=function(){var iq=im.apply(e,arguments);return iq===e?il?e.clipExtent(null):e:iq};e.clipExtent=function(it){var ir=ik.apply(e,arguments);if(ir===e){if(il=it==null){var iq=gm*io(),iu=im();ik([[iu[0]-iq,iu[1]-iq],[iu[0]+iq,iu[1]+iq]])}}else{if(il){ir=null}}return ir};return e.clipExtent(null)}(hs.geo.mercator=function(){return c9(aV)}).raw=aV;var f9=eD(function(){return 1},Math.asin);(hs.geo.orthographic=function(){return fL(f9)}).raw=f9;var cc=eD(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(hs.geo.stereographic=function(){return fL(cc)}).raw=cc;function am(ik,e){var il=Math.cos(e)*Math.sin(ik);return[Math.log((1+il)/(1-il))/2,Math.atan2(Math.tan(e),Math.cos(ik))]}am.invert=function(e,ik){return[Math.atan2(d1(e),Math.cos(ik)),ce(Math.sin(ik)/bD(e))]};(hs.geo.transverseMercator=function(){return c9(am)}).raw=am;hs.geom={};function h0(e){return e[0]}function hZ(e){return e[1]}hs.geom.hull=function(ik){var e=h0,im=hZ;if(arguments.length){return il(ik)}function il(iJ){if(iJ.length<3){return[]}var ir=U(e),iq=U(im),iz=iJ.length,iu,iw=iz-1,iC=[],iv=[],iH,iD,iA,iE=0,iG,ip,iF,io,iy,ix,iI,iB;if(ir===h0&&im===hZ){iu=iJ}else{for(iD=0,iu=[];iD<iz;++iD){iu.push([+ir.call(this,iH=iJ[iD],iD),+iq.call(this,iH,iD)])}}for(iD=1;iD<iz;++iD){if(iu[iD][1]<iu[iE][1]||iu[iD][1]==iu[iE][1]&&iu[iD][0]<iu[iE][0]){iE=iD}}for(iD=0;iD<iz;++iD){if(iD===iE){continue}ip=iu[iD][1]-iu[iE][1];iG=iu[iD][0]-iu[iE][0];iC.push({angle:Math.atan2(ip,iG),index:iD})}iC.sort(function(iL,iK){return iL.angle-iK.angle});iI=iC[0].angle;ix=iC[0].index;iy=0;for(iD=1;iD<iw;++iD){iA=iC[iD].index;if(iI==iC[iD].angle){iG=iu[ix][0]-iu[iE][0];ip=iu[ix][1]-iu[iE][1];iF=iu[iA][0]-iu[iE][0];io=iu[iA][1]-iu[iE][1];if(iG*iG+ip*ip>=iF*iF+io*io){iC[iD].index=-1;continue}else{iC[iy].index=-1}}iI=iC[iD].angle;iy=iD;ix=iA}iv.push(iE);for(iD=0,iA=0;iD<2;++iA){if(iC[iA].index>-1){iv.push(iC[iA].index);iD++}}iB=iv.length;for(;iA<iw;++iA){if(iC[iA].index<0){continue}while(!dL(iv[iB-2],iv[iB-1],iC[iA].index,iu)){--iB}iv[iB++]=iC[iA].index}var it=[];for(iD=iB-1;iD>=0;--iD){it.push(iJ[iv[iD]])}return it}il.x=function(io){return arguments.length?(e=io,il):e};il.y=function(io){return arguments.length?(im=io,il):im};return il};function dL(im,il,ik,iv){var iw,iu,it,ir,iq,ip,io;iw=iv[im];iu=iw[0];it=iw[1];iw=iv[il];ir=iw[0];iq=iw[1];iw=iv[ik];ip=iw[0];io=iw[1];return(io-it)*(ir-iu)-(iq-it)*(ip-iu)>0}hs.geom.polygon=function(e){ic(e,ex);return e};var ex=hs.geom.polygon.prototype=[];ex.area=function(){var il=-1,io=this.length,ik,e=this[io-1],im=0;while(++il<io){ik=e;e=this[il];im+=ik[1]*e[0]-ik[0]*e[1]}return im*0.5};ex.centroid=function(im){var io=-1,ir=this.length,ik=0,iq=0,il,e=this[ir-1],ip;if(!arguments.length){im=-1/(6*this.area())}while(++io<ir){il=e;e=this[io];ip=il[0]*e[1]-e[0]*il[1];ik+=(il[0]+e[0])*ip;iq+=(il[1]+e[1])*ip}return[ik*im,iq*im]};ex.clip=function(ir){var iu,io=gZ(ir),im=-1,e=this.length-gZ(this),il,ik,iv=this[e-1],it,iq,ip;while(++im<e){iu=ir.slice();ir.length=0;it=this[im];iq=iu[(ik=iu.length-io)-1];il=-1;while(++il<ik){ip=iu[il];if(E(ip,iv,it)){if(!E(iq,iv,it)){ir.push(gu(iq,ip,iv,it))}ir.push(ip)}else{if(E(iq,iv,it)){ir.push(gu(iq,ip,iv,it))}}iq=ip}if(io){ir.push(ir[0])}iv=it}return ir};function E(il,ik,e){return(e[0]-ik[0])*(il[1]-ik[1])<(e[1]-ik[1])*(il[0]-ik[0])}function gu(iq,io,iv,ir){var il=iq[0],e=iv[0],im=io[0]-il,iw=ir[0]-e,iu=iq[1],ip=iv[1],it=io[1]-iu,ix=ir[1]-ip,ik=(iw*(iu-ip)-ix*(il-e))/(ix*im-iw*it);return[il+ik*im,iu+ik*it]}function gZ(il){var ik=il[0],e=il[il.length-1];return !(ik[0]-e[0]||ik[1]-e[1])}var gV,eF,cU,di=[],hj,d9,ez=[];function gK(){t(this);this.edge=this.site=this.circle=null}function e4(ik){var e=di.pop()||new gK();e.site=ik;return e}function gJ(e){eS(e);cU.remove(e);di.push(e);t(e)}function hu(ik){var e=ik.circle,iu=e.x,iq=e.cy,io={x:iu,y:iq},ip=ik.P,im=ik.N,it=[ik];gJ(ik);var iw=ip;while(iw.circle&&cJ(iu-iw.circle.x)<gw&&cJ(iq-iw.circle.cy)<gw){ip=iw.P;it.unshift(iw);gJ(iw);iw=ip}it.unshift(iw);eS(iw);var il=im;while(il.circle&&cJ(iu-il.circle.x)<gw&&cJ(iq-il.circle.cy)<gw){im=il.N;it.push(il);gJ(il);il=im}it.push(il);eS(il);var iv=it.length,ir;for(ir=1;ir<iv;++ir){il=it[ir];iw=it[ir-1];cq(il.edge,iw.site,il.site,io)}iw=it[0];il=it[iv-1];il.edge=hp(iw.site,il.site,null,io);Z(iw);Z(il)}function dy(iv){var it=iv.x,ix=iv.y,iz,iw,iF,iA,iy=cU._;while(iy){iF=dc(iy,ix)-it;if(iF>gw){iy=iy.L}else{iA=it-gn(iy,ix);if(iA>gw){if(!iy.R){iz=iy;break}iy=iy.R}else{if(iF>-gw){iz=iy.P;iw=iy}else{if(iA>-gw){iz=iy;iw=iy.N}else{iz=iw=iy}}break}}}var im=e4(iv);cU.insert(iz,im);if(!iz&&!iw){return}if(iz===iw){eS(iz);iw=e4(iz.site);cU.insert(im,iw);im.edge=iw.edge=hp(iz.site,im.site);Z(iz);Z(iw);return}if(!iw){im.edge=hp(iz.site,im.site);return}eS(iz);eS(iw);var iq=iz.site,iu=iq.x,ir=iq.y,iD=iv.x-iu,iB=iv.y-ir,e=iw.site,il=e.x-iu,ik=e.y-ir,iE=2*(iD*ik-iB*il),ip=iD*iD+iB*iB,io=il*il+ik*ik,iC={x:(ik*ip-iB*io)/iE+iu,y:(iD*io-il*ip)/iE+ir};cq(iw.edge,iq,e,iC);im.edge=hp(iq,iv,null,iC);iw.edge=hp(iv,e,null,iC);Z(iz);Z(iw)}function dc(im,io){var e=im.site,iw=e.x,iv=e.y,iu=iv-io;if(!iu){return iw}var ix=im.P;if(!ix){return -Infinity}e=ix.site;var iq=e.x,ip=e.y,il=ip-io;if(!il){return iq}var ik=iq-iw,it=1/iu-1/il,ir=ik/il;if(it){return(-ir+Math.sqrt(ir*ir-2*it*(ik*ik/(-2*il)-ip+il/2+iv-iu/2)))/it+iw}return(iw+iq)/2}function gn(ik,il){var im=ik.N;if(im){return dc(im,il)}var e=ik.site;return e.y===il?e.x:Infinity}function bX(e){this.site=e;this.edges=[]}bX.prototype.prepare=function(){var il=this.edges,e=il.length,ik;while(e--){ik=il[e].edge;if(!ik.b||!ik.a){il.splice(e,1)}}il.sort(u);return il.length};function by(iB){var iq=iB[0][0],ip=iB[1][0],ix=iB[0][1],iw=iB[1][1],im,iv,e,iu,iA=eF,il=iA.length,iz,iy,it,ik,io,ir;while(il--){iz=iA[il];if(!iz||!iz.prepare()){continue}it=iz.edges;ik=it.length;iy=0;while(iy<ik){ir=it[iy].end(),e=ir.x,iu=ir.y;io=it[++iy%ik].start(),im=io.x,iv=io.y;if(cJ(e-im)>gw||cJ(iu-iv)>gw){it.splice(iy,0,new h7(he(iz.site,ir,cJ(e-iq)<gw&&iw-iu>gw?{x:iq,y:cJ(im-iq)<gw?iv:iw}:cJ(iu-iw)<gw&&ip-e>gw?{x:cJ(iv-iw)<gw?im:ip,y:iw}:cJ(e-ip)<gw&&iu-ix>gw?{x:ip,y:cJ(im-ip)<gw?iv:ix}:cJ(iu-ix)<gw&&e-iq>gw?{x:cJ(iv-ix)<gw?im:iq,y:ix}:null),iz.site,null));++ik}}}}function u(ik,e){return e.angle-ik.angle}function aX(){t(this);this.x=this.y=this.arc=this.site=this.cy=null}function Z(iq){var iA=iq.P,iy=iq.N;if(!iA||!iy){return}var it=iA.site,iD=iq.site,e=iy.site;if(it===e){return}var iC=iD.x,iB=iD.y,iw=it.x-iC,iu=it.y-iB,il=e.x-iC,ik=e.y-iB;var iE=2*(iw*ik-iu*il);if(iE>=-eJ){return}var ip=iw*iw+iu*iu,io=il*il+ik*ik,iv=(ik*ip-iu*io)/iE,ir=(iw*io-il*ip)/iE,ik=ir+iB;var im=ez.pop()||new aX();im.arc=iq;im.site=iD;im.x=iv+iC;im.y=ik+Math.sqrt(iv*iv+ir*ir);im.cy=ik;iq.circle=im;var ix=null,iz=d9._;while(iz){if(im.y<iz.y||im.y===iz.y&&im.x<=iz.x){if(iz.L){iz=iz.L}else{ix=iz.P;break}}else{if(iz.R){iz=iz.R}else{ix=iz;break}}}d9.insert(ix,im);if(!ix){hj=im}}function eS(e){var ik=e.circle;if(ik){if(!ik.P){hj=ik.N}d9.remove(ik);ez.push(ik);t(ik);e.circle=null}}function hH(im){var ik=gV,io=an(im[0][0],im[0][1],im[1][0],im[1][1]),il=ik.length,ip;while(il--){ip=ik[il];if(!bo(ip,im)||!io(ip)||cJ(ip.a.x-ip.b.x)<gw&&cJ(ip.a.y-ip.b.y)<gw){ip.a=ip.b=null;ik.splice(il,1)}}}function bo(iw,iz){var e=iw.b;if(e){return true}var ik=iw.a,iC=iz[0][0],iB=iz[1][0],ip=iz[0][1],im=iz[1][1],iy=iw.l,il=iw.r,it=iy.x,ir=iy.y,iv=il.x,iu=il.y,iq=(it+iv)/2,io=(ir+iu)/2,ix,iA;if(iu===ir){if(iq<iC||iq>=iB){return}if(it>iv){if(!ik){ik={x:iq,y:ip}}else{if(ik.y>=im){return}}e={x:iq,y:im}}else{if(!ik){ik={x:iq,y:im}}else{if(ik.y<ip){return}}e={x:iq,y:ip}}}else{ix=(it-iv)/(iu-ir);iA=io-ix*iq;if(ix<-1||ix>1){if(it>iv){if(!ik){ik={x:(ip-iA)/ix,y:ip}}else{if(ik.y>=im){return}}e={x:(im-iA)/ix,y:im}}else{if(!ik){ik={x:(im-iA)/ix,y:im}}else{if(ik.y<ip){return}}e={x:(ip-iA)/ix,y:ip}}}else{if(ir<iu){if(!ik){ik={x:iC,y:ix*iC+iA}}else{if(ik.x>=iB){return}}e={x:iB,y:ix*iB+iA}}else{if(!ik){ik={x:iB,y:ix*iB+iA}}else{if(ik.x<iC){return}}e={x:iC,y:ix*iC+iA}}}}iw.a=ik;iw.b=e;return true}function I(ik,e){this.l=ik;this.r=e;this.a=this.b=null}function hp(io,e,im,ik){var il=new I(io,e);gV.push(il);if(im){cq(il,io,e,im)}if(ik){cq(il,e,io,ik)}eF[io.i].edges.push(new h7(il,io,e));eF[e.i].edges.push(new h7(il,e,io));return il}function he(im,il,e){var ik=new I(im,null);ik.a=il;ik.b=e;gV.push(ik);return ik}function cq(ik,im,e,il){if(!ik.a&&!ik.b){ik.a=il;ik.l=im;ik.r=e}else{if(ik.l===e){ik.b=il}else{ik.a=il}}}function h7(im,io,e){var il=im.a,ik=im.b;this.edge=im;this.site=io;this.angle=e?Math.atan2(e.y-io.y,e.x-io.x):im.l===io?Math.atan2(ik.x-il.x,il.y-ik.y):Math.atan2(il.x-ik.x,ik.y-il.y)}h7.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function bb(){this._=null}function t(e){e.U=e.C=e.L=e.R=e.P=e.N=null}bb.prototype={insert:function(io,im){var il,ik,e;if(io){im.P=io;im.N=io.N;if(io.N){io.N.P=im}io.N=im;if(io.R){io=io.R;while(io.L){io=io.L}io.L=im}else{io.R=im}il=io}else{if(this._){io=dg(this._);im.P=null;im.N=io;io.P=io.L=im;il=io}else{im.P=im.N=null;this._=im;il=null}}im.L=im.R=null;im.U=il;im.C=true;io=im;while(il&&il.C){ik=il.U;if(il===ik.L){e=ik.R;if(e&&e.C){il.C=e.C=false;ik.C=true;io=ik}else{if(io===il.R){al(this,il);io=il;il=io.U}il.C=false;ik.C=true;eW(this,ik)}}else{e=ik.L;if(e&&e.C){il.C=e.C=false;ik.C=true;io=ik}else{if(io===il.L){eW(this,il);io=il;il=io.U}il.C=false;ik.C=true;al(this,ik)}}il=io.U}this._.C=false},remove:function(io){if(io.N){io.N.P=io.P}if(io.P){io.P.N=io.N}io.N=io.P=null;var im=io.U,il,iq=io.L,e=io.R,ik,ip;if(!iq){ik=e}else{if(!e){ik=iq}else{ik=dg(e)}}if(im){if(im.L===io){im.L=ik}else{im.R=ik}}else{this._=ik}if(iq&&e){ip=ik.C;ik.C=io.C;ik.L=iq;iq.U=ik;if(ik!==e){im=ik.U;ik.U=io.U;io=ik.R;im.L=io;ik.R=e;e.U=ik}else{ik.U=im;im=ik;io=ik.R}}else{ip=io.C;io=ik}if(io){io.U=im}if(ip){return}if(io&&io.C){io.C=false;return}do{if(io===this._){break}if(io===im.L){il=im.R;if(il.C){il.C=false;im.C=true;al(this,im);il=im.R}if(il.L&&il.L.C||il.R&&il.R.C){if(!il.R||!il.R.C){il.L.C=false;il.C=true;eW(this,il);il=im.R}il.C=im.C;im.C=il.R.C=false;al(this,im);io=this._;break}}else{il=im.L;if(il.C){il.C=false;im.C=true;eW(this,im);il=im.L}if(il.L&&il.L.C||il.R&&il.R.C){if(!il.L||!il.L.C){il.R.C=false;il.C=true;al(this,il);il=im.L}il.C=im.C;im.C=il.L.C=false;eW(this,im);io=this._;break}}il.C=true;io=im;im=im.U}while(!io.C);if(io){io.C=false}}};function al(e,il){var io=il,im=il.R,ik=io.U;if(ik){if(ik.L===io){ik.L=im}else{ik.R=im}}else{e._=im}im.U=ik;io.U=im;io.R=im.L;if(io.R){io.R.U=io}im.L=io}function eW(e,il){var io=il,im=il.L,ik=io.U;if(ik){if(ik.L===io){ik.L=im}else{ik.R=im}}else{e._=im}im.U=ik;io.U=im;io.L=im.R;if(io.L){io.L.U=io}im.R=io}function dg(e){while(e.L){e=e.L}return e}function g8(ip,iq){var ik=ip.sort(bl).pop(),il,im,io;gV=[];eF=new Array(ip.length);cU=new bb();d9=new bb();while(true){io=hj;if(ik&&(!io||ik.y<io.y||ik.y===io.y&&ik.x<io.x)){if(ik.x!==il||ik.y!==im){eF[ik.i]=new bX(ik);dy(ik);il=ik.x,im=ik.y}ik=ip.pop()}else{if(io){hu(io.arc)}else{break}}}if(iq){hH(iq),by(iq)}var e={cells:eF,edges:gV};cU=d9=gV=eF=null;return e}function bl(ik,e){return e.y-ik.y||e.x-ik.x}hs.geom.voronoi=function(im){var e=h0,ir=hZ,io=e,il=ir,ik=hK;if(im){return iq(im)}function iq(iy){var it=new Array(iy.length),iv=ik[0][0],ix=ik[0][1],iu=ik[1][0],iw=ik[1][1];g8(ip(iy),ik).cells.forEach(function(iz,iD){var iA=iz.edges,iB=iz.site,iC=it[iD]=iA.length?iA.map(function(iF){var iE=iF.start();return[iE.x,iE.y]}):iB.x>=iv&&iB.x<=iu&&iB.y>=ix&&iB.y<=iw?[[iv,iw],[iu,iw],[iu,ix],[iv,ix]]:[];iC.point=iy[iD]});return it}function ip(it){return it.map(function(iv,iu){return{x:Math.round(io(iv,iu)/gw)*gw,y:Math.round(il(iv,iu)/gw)*gw,i:iu}})}iq.links=function(it){return g8(ip(it)).edges.filter(function(iu){return iu.l&&iu.r}).map(function(iu){return{source:it[iu.l.i],target:it[iu.r.i]}})};iq.triangles=function(iu){var it=[];g8(ip(iu)).cells.forEach(function(iD,iz){var iv=iD.site,iy=iD.edges.sort(u),ix=-1,iw=iy.length,iB,iE,iA=iy[iw-1].edge,iC=iA.l===iv?iA.r:iA.l;while(++ix<iw){iB=iA;iE=iC;iA=iy[ix].edge;iC=iA.l===iv?iA.r:iA.l;if(iz<iE.i&&iz<iC.i&&gI(iv,iE,iC)<0){it.push([iu[iz],iu[iE.i],iu[iC.i]])}}});return it};iq.x=function(it){return arguments.length?(io=U(e=it),iq):e};iq.y=function(it){return arguments.length?(il=U(ir=it),iq):ir};iq.clipExtent=function(it){if(!arguments.length){return ik===hK?null:ik}ik=it==null?hK:it;return iq};iq.size=function(it){if(!arguments.length){return ik===hK?null:ik&&ik[1]}return iq.clipExtent(it&&[[0,0],it])};return iq};var hK=[[-1000000,-1000000],[1000000,1000000]];function gI(ik,e,il){return(ik.x-il.x)*(e.y-ik.y)-(ik.x-e.x)*(il.y-ik.y)}hs.geom.delaunay=function(e){return hs.geom.voronoi().triangles(e)};hs.geom.quadtree=function(ir,ik,ip,e,io){var iq=h0,im=hZ,it;if(it=arguments.length){iq=gd;im=gc;if(it===3){io=ip;e=ik;ip=ik=0}return il(ir)}function il(iM){var iJ,iy=U(iq),iw=U(im),iA,iG,iH,iE,iu,iD,iz,iL;if(ik!=null){iu=ik,iD=ip,iz=e,iL=io}else{iz=iL=-(iu=iD=Infinity);iA=[],iG=[];iE=iM.length;if(it){for(iH=0;iH<iE;++iH){iJ=iM[iH];if(iJ.x<iu){iu=iJ.x}if(iJ.y<iD){iD=iJ.y}if(iJ.x>iz){iz=iJ.x}if(iJ.y>iL){iL=iJ.y}iA.push(iJ.x);iG.push(iJ.y)}}else{for(iH=0;iH<iE;++iH){var iI=+iy(iJ=iM[iH],iH),ix=+iw(iJ,iH);if(iI<iu){iu=iI}if(ix<iD){iD=ix}if(iI>iz){iz=iI}if(ix>iL){iL=ix}iA.push(iI);iG.push(ix)}}}var iC=iz-iu,iB=iL-iD;if(iC>iB){iL=iD+iC}else{iz=iu+iB}function iv(iP,iT,iX,iU,iO,iW,iN,iV){if(isNaN(iX)||isNaN(iU)){return}if(iP.leaf){var iS=iP.x,iR=iP.y;if(iS!=null){if(cJ(iS-iX)+cJ(iR-iU)<0.01){iK(iP,iT,iX,iU,iO,iW,iN,iV)}else{var iQ=iP.point;iP.x=iP.y=iP.point=null;iK(iP,iQ,iS,iR,iO,iW,iN,iV);iK(iP,iT,iX,iU,iO,iW,iN,iV)}}else{iP.x=iX,iP.y=iU,iP.point=iT}}else{iK(iP,iT,iX,iU,iO,iW,iN,iV)}}function iK(iQ,iS,iY,iU,iP,iX,iO,iV){var iW=(iP+iO)*0.5,iT=(iX+iV)*0.5,iZ=iY>=iW,iN=iU>=iT,iR=(iN<<1)+iZ;iQ.leaf=false;iQ=iQ.nodes[iR]||(iQ.nodes[iR]=fS());if(iZ){iP=iW}else{iO=iW}if(iN){iX=iT}else{iV=iT}iv(iQ,iS,iY,iU,iP,iX,iO,iV)}var iF=fS();iF.add=function(iN){iv(iF,iN,+iy(iN,++iH),+iw(iN,iH),iu,iD,iz,iL)};iF.visit=function(iN){cP(iN,iF,iu,iD,iz,iL)};iH=-1;if(ik==null){while(++iH<iE){iv(iF,iM[iH],iA[iH],iG[iH],iu,iD,iz,iL)}--iH}else{iM.forEach(iF.add)}iA=iG=iM=iJ=null;return iF}il.x=function(iu){return arguments.length?(iq=iu,il):iq};il.y=function(iu){return arguments.length?(im=iu,il):im};il.extent=function(iu){if(!arguments.length){return ik==null?null:[[ik,ip],[e,io]]}if(iu==null){ik=ip=e=io=null}else{ik=+iu[0][0],ip=+iu[0][1],e=+iu[1][0],io=+iu[1][1]}return il};il.size=function(iu){if(!arguments.length){return ik==null?null:[e-ik,io-ip]}if(iu==null){ik=ip=e=io=null}else{ik=ip=0,e=+iu[0],io=+iu[1]}return il};return il};function gd(e){return e.x}function gc(e){return e.y}function fS(){return{leaf:true,nodes:[],point:null,x:null,y:null}}function cP(io,im,ik,it,e,iq){if(!io(im,ik,it,e,iq)){var ir=(ik+e)*0.5,ip=(it+iq)*0.5,il=im.nodes;if(il[0]){cP(io,il[0],ik,it,ir,ip)}if(il[1]){cP(io,il[1],ir,it,e,ip)}if(il[2]){cP(io,il[2],ik,ip,ir,iq)}if(il[3]){cP(io,il[3],ir,ip,e,iq)}}}hs.interpolateRgb=aQ;function aQ(ik,e){ik=hs.rgb(ik);e=hs.rgb(e);var im=ik.r,il=ik.g,iq=ik.b,ip=e.r-im,io=e.g-il,ir=e.b-iq;return function(it){return"#"+cy(Math.round(im+ip*it))+cy(Math.round(il+io*it))+cy(Math.round(iq+ir*it))}}hs.interpolateObject=bM;function bM(ik,e){var im={},io={},il;for(il in ik){if(il in e){im[il]=fN(ik[il],e[il])}else{io[il]=ik[il]}}for(il in e){if(!(il in ik)){io[il]=e[il]}}return function(ip){for(il in im){io[il]=im[il](ip)}return io}}hs.interpolateNumber=bF;function bF(ik,e){e-=ik=+ik;return function(il){return ik+e*il}}hs.interpolateString=b0;function b0(ir,iq){var im,ip,io,iu=0,it=0,iv=[],e=[],il,ik;ir=ir+"",iq=iq+"";f2.lastIndex=0;for(ip=0;im=f2.exec(iq);++ip){if(im.index){iv.push(iq.substring(iu,it=im.index))}e.push({i:iv.length,x:im[0]});iv.push(null);iu=f2.lastIndex}if(iu<iq.length){iv.push(iq.substring(iu))}for(ip=0,il=e.length;(im=f2.exec(ir))&&ip<il;++ip){ik=e[ip];if(ik.x==im[0]){if(ik.i){if(iv[ik.i+1]==null){iv[ik.i-1]+=ik.x;iv.splice(ik.i,1);for(io=ip+1;io<il;++io){e[io].i--}}else{iv[ik.i-1]+=ik.x+iv[ik.i+1];iv.splice(ik.i,2);for(io=ip+1;io<il;++io){e[io].i-=2}}}else{if(iv[ik.i+1]==null){iv[ik.i]=ik.x}else{iv[ik.i]=ik.x+iv[ik.i+1];iv.splice(ik.i+1,1);for(io=ip+1;io<il;++io){e[io].i--}}}e.splice(ip,1);il--;ip--}else{ik.x=bF(parseFloat(im[0]),parseFloat(ik.x))}}while(ip<il){ik=e.pop();if(iv[ik.i+1]==null){iv[ik.i]=ik.x}else{iv[ik.i]=ik.x+iv[ik.i+1];iv.splice(ik.i+1,1)}il--}if(iv.length===1){return iv[0]==null?(ik=e[0].x,function(iw){return ik(iw)+""}):function(){return iq}}return function(iw){for(ip=0;ip<il;++ip){iv[(ik=e[ip]).i]=ik.x(iw)}return iv.join("")}}var f2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;hs.interpolate=fN;function fN(ik,e){var il=hs.interpolators.length,im;while(--il>=0&&!(im=hs.interpolators[il](ik,e))){}return im}hs.interpolators=[function(ik,e){var il=typeof e;return(il==="string"?ap.has(e)||/^(#|rgb\(|hsl\()/.test(e)?aQ:b0:e instanceof H?aQ:il==="object"?Array.isArray(e)?eU:bM:bF)(ik,e)}];hs.interpolateArray=eU;function eU(io,il){var ik=[],ir=[],im=io.length,e=il.length,iq=Math.min(io.length,il.length),ip;for(ip=0;ip<iq;++ip){ik.push(fN(io[ip],il[ip]))}for(;ip<im;++ip){ir[ip]=io[ip]}for(;ip<e;++ip){ir[ip]=il[ip]}return function(it){for(ip=0;ip<iq;++ip){ir[ip]=ik[ip](it)}return ir}}var ho=function(){return gt};var ae=hs.map({linear:ho,poly:aU,quad:function(){return bY},cubic:function(){return K},sin:function(){return gl},exp:function(){return fE},circle:function(){return ec},elastic:Y,back:g5,bounce:function(){return cl}});var j=hs.map({"in":gt,out:D,"in-out":a3,"out-in":function(e){return a3(D(e))}});hs.ease=function(ik){var im=ik.indexOf("-"),il=im>=0?ik.substring(0,im):ik,e=im>=0?ik.substring(im+1):"in";il=ae.get(il)||ho;e=j.get(e)||gt;return fK(e(il.apply(null,bO.call(arguments,1))))};function fK(e){return function(ik){return ik<=0?0:ik>=1?1:e(ik)}}function D(e){return function(ik){return 1-e(1-ik)}}function a3(e){return function(ik){return 0.5*(ik<0.5?e(2*ik):2-e(2-2*ik))}}function bY(e){return e*e}function K(e){return e*e*e}function ay(ik){if(ik<=0){return 0}if(ik>=1){return 1}var il=ik*ik,e=il*ik;return 4*(ik<0.5?e:3*(ik-il)+e-0.75)}function aU(ik){return function(e){return Math.pow(e,ik)}}function gl(e){return 1-Math.cos(e*ev)}function fE(e){return Math.pow(2,10*(e-1))}function ec(e){return 1-Math.sqrt(1-e*e)}function Y(e,il){var ik;if(arguments.length<2){il=0.45}if(arguments.length){ik=il/gh*Math.asin(1/e)}else{e=1,ik=il/4}return function(im){return 1+e*Math.pow(2,-10*im)*Math.sin((im-ik)*gh/il)}}function g5(e){if(!e){e=1.70158}return function(ik){return ik*ik*((e+1)*ik-e)}}function cl(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+0.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+0.9375:7.5625*(e-=2.625/2.75)*e+0.984375}hs.interpolateHcl=gX;function gX(il,e){il=hs.hcl(il);e=hs.hcl(e);var ik=il.h,io=il.c,iq=il.l,im=e.h-ik,ip=e.c-io,ir=e.l-iq;if(isNaN(ip)){ip=0,io=isNaN(io)?e.c:io}if(isNaN(im)){im=0,ik=isNaN(ik)?e.h:ik}else{if(im>180){im-=360}else{if(im<-180){im+=360}}}return function(it){return bC(ik+im*it,io+ip*it,iq+ir*it)+""}}hs.interpolateHsl=a4;function a4(im,e){im=hs.hsl(im);e=hs.hsl(e);var il=im.h,ik=im.s,iq=im.l,ip=e.h-il,io=e.s-ik,ir=e.l-iq;if(isNaN(io)){io=0,ik=isNaN(ik)?e.s:ik}if(isNaN(ip)){ip=0,il=isNaN(il)?e.h:il}else{if(ip>180){ip-=360}else{if(ip<-180){ip+=360}}}return function(it){return bh(il+ip*it,ik+io*it,iq+ir*it)+""}}hs.interpolateLab=hD;function hD(ik,e){ik=hs.lab(ik);e=hs.lab(e);var io=ik.l,im=ik.a,il=ik.b,ir=e.l-io,iq=e.a-im,ip=e.b-il;return function(it){return aD(io+ir*it,im+iq*it,il+ip*it)+""}}hs.interpolateRound=fI;function fI(ik,e){e-=ik;return function(il){return Math.round(ik+e*il)}}hs.transform=function(e){var ik=bN.createElementNS(hs.ns.prefix.svg,"g");return(hs.transform=function(il){if(il!=null){ik.setAttribute("transform",il);var im=ik.transform.baseVal.consolidate()}return new o(im?im.matrix:gi)})(e)};function o(e){var im=[e.a,e.b],ik=[e.c,e.d],ip=fz(im),il=e5(im,ik),io=fz(bS(ik,im,-il))||0;if(im[0]*ik[1]<ik[0]*im[1]){im[0]*=-1;im[1]*=-1;ip*=-1;il*=-1}this.rotate=(ip?Math.atan2(im[1],im[0]):Math.atan2(-ik[0],ik[1]))*hI;this.translate=[e.e,e.f];this.scale=[ip,io];this.skew=io?Math.atan2(il,io)*hI:0}o.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function e5(ik,e){return ik[0]*e[0]+ik[1]*e[1]}function fz(e){var ik=Math.sqrt(e5(e,e));if(ik){e[0]/=ik;e[1]/=ik}return ik}function bS(ik,e,il){ik[0]+=il*e[0];ik[1]+=il*e[1];return ik}var gi={a:1,b:0,c:0,d:1,e:0,f:0};hs.interpolateTransform=eo;function eo(iy,ix){var iz=[],ik=[],ip,io=hs.transform(iy),im=hs.transform(ix),iu=io.translate,it=im.translate,il=io.rotate,e=im.rotate,ir=io.skew,iq=im.skew,iw=io.scale,iv=im.scale;if(iu[0]!=it[0]||iu[1]!=it[1]){iz.push("translate(",null,",",null,")");ik.push({i:1,x:bF(iu[0],it[0])},{i:3,x:bF(iu[1],it[1])})}else{if(it[0]||it[1]){iz.push("translate("+it+")")}else{iz.push("")}}if(il!=e){if(il-e>180){e+=360}else{if(e-il>180){il+=360}}ik.push({i:iz.push(iz.pop()+"rotate(",null,")")-2,x:bF(il,e)})}else{if(e){iz.push(iz.pop()+"rotate("+e+")")}}if(ir!=iq){ik.push({i:iz.push(iz.pop()+"skewX(",null,")")-2,x:bF(ir,iq)})}else{if(iq){iz.push(iz.pop()+"skewX("+iq+")")}}if(iw[0]!=iv[0]||iw[1]!=iv[1]){ip=iz.push(iz.pop()+"scale(",null,",",null,")");ik.push({i:ip-4,x:bF(iw[0],iv[0])},{i:ip-2,x:bF(iw[1],iv[1])})}else{if(iv[0]!=1||iv[1]!=1){iz.push(iz.pop()+"scale("+iv+")")}}ip=ik.length;return function(iB){var iA=-1,iC;while(++iA<ip){iz[(iC=ik[iA]).i]=iC.x(iB)}return iz.join("")}}function hA(ik,e){e=e-(ik=+ik)?1/(e-ik):0;return function(il){return(il-ik)*e}}function aB(ik,e){e=e-(ik=+ik)?1/(e-ik):0;return function(il){return Math.max(0,Math.min(1,(il-ik)*e))}}hs.layout={};hs.layout.bundle=function(){return function(e){var il=[],ik=-1,im=e.length;while(++ik<im){il.push(eQ(e[ik]))}return il}};function eQ(im){var ip=im.source,e=im.target,io=fV(ip,e),il=[ip];while(ip!==io){ip=ip.parent;il.push(ip)}var ik=il.length;while(e!==io){il.splice(ik,0,e);e=e.parent}return il}function fy(il){var ik=[],e=il.parent;while(e!=null){ik.push(il);il=e;e=e.parent}ik.push(il);return ik}function fV(im,ik){if(im===ik){return im}var il=fy(im),e=fy(ik),io=il.pop(),ip=e.pop(),iq=null;while(io===ip){iq=io;io=il.pop();ip=e.pop()}return iq}hs.layout.chord=function(){var ip={},iq,im,iv,il,iu=0,e,ik,io;function it(){var iA={},iD=[],iL=hs.range(il),iH=[],iB,iJ,iz,iE,iC;iq=[];im=[];iB=0,iE=-1;while(++iE<il){iJ=0,iC=-1;while(++iC<il){iJ+=iv[iE][iC]}iD.push(iJ);iH.push(hs.range(il));iB+=iJ}if(e){iL.sort(function(iN,iM){return e(iD[iN],iD[iM])})}if(ik){iH.forEach(function(iN,iM){iN.sort(function(iP,iO){return ik(iv[iM][iP],iv[iM][iO])})})}iB=(gh-iu*il)/iB;iJ=0,iE=-1;while(++iE<il){iz=iJ,iC=-1;while(++iC<il){var iI=iL[iE],iG=iH[iI][iC],iK=iv[iI][iG],iy=iJ,ix=iJ+=iK*iB;iA[iI+"-"+iG]={index:iI,subindex:iG,startAngle:iy,endAngle:ix,value:iK}}im[iI]={index:iI,startAngle:iz,endAngle:iJ,value:(iJ-iz)/iB};iJ+=iu}iE=-1;while(++iE<il){iC=iE-1;while(++iC<il){var iw=iA[iE+"-"+iC],iF=iA[iC+"-"+iE];if(iw.value||iF.value){iq.push(iw.value<iF.value?{source:iF,target:iw}:{source:iw,target:iF})}}}if(io){ir()}}function ir(){iq.sort(function(ix,iw){return io((ix.source.value+ix.target.value)/2,(iw.source.value+iw.target.value)/2)})}ip.matrix=function(iw){if(!arguments.length){return iv}il=(iv=iw)&&iv.length;iq=im=null;return ip};ip.padding=function(iw){if(!arguments.length){return iu}iu=iw;iq=im=null;return ip};ip.sortGroups=function(iw){if(!arguments.length){return e}e=iw;iq=im=null;return ip};ip.sortSubgroups=function(iw){if(!arguments.length){return ik}ik=iw;iq=null;return ip};ip.sortChords=function(iw){if(!arguments.length){return io}io=iw;if(iq){ir()}return ip};ip.chords=function(){if(!iq){it()}return iq};ip.groups=function(){if(!im){it()}return im};return ip};hs.layout.force=function(){var ik={},iz=hs.dispatch("start","tick","end"),iv=[1,1],iB,io,ir=0.9,iC=f1,im=cv,iy=-30,ip=0.1,it=0.8,ix=[],il=[],iq,e,iu;function iA(iD){return function(iG,iL,iK,iJ){if(iG.point!==iD){var iI=iG.cx-iD.x,iF=iG.cy-iD.y,iE=1/Math.sqrt(iI*iI+iF*iF);if((iJ-iL)*iE<it){var iH=iG.charge*iE*iE;iD.px-=iI*iH;iD.py-=iF*iH;return true}if(iG.point&&isFinite(iE)){var iH=iG.pointCharge*iE*iE;iD.px-=iI*iH;iD.py-=iF*iH}}return !iG.charge}}ik.tick=function(){if((io*=0.99)<0.005){iz.end({type:"end",alpha:io=0});return true}var iF=ix.length,iG=il.length,iD,iJ,iE,iN,iM,iH,iI,iL,iK;for(iJ=0;iJ<iG;++iJ){iE=il[iJ];iN=iE.source;iM=iE.target;iL=iM.x-iN.x;iK=iM.y-iN.y;if(iH=iL*iL+iK*iK){iH=io*e[iJ]*((iH=Math.sqrt(iH))-iq[iJ])/iH;iL*=iH;iK*=iH;iM.x-=iL*(iI=iN.weight/(iM.weight+iN.weight));iM.y-=iK*iI;iN.x+=iL*(iI=1-iI);iN.y+=iK*iI}}if(iI=io*ip){iL=iv[0]/2;iK=iv[1]/2;iJ=-1;if(iI){while(++iJ<iF){iE=ix[iJ];iE.x+=(iL-iE.x)*iI;iE.y+=(iK-iE.y)*iI}}}if(iy){gH(iD=hs.geom.quadtree(ix),io,iu);iJ=-1;while(++iJ<iF){if(!(iE=ix[iJ]).fixed){iD.visit(iA(iE))}}}iJ=-1;while(++iJ<iF){iE=ix[iJ];if(iE.fixed){iE.x=iE.px;iE.y=iE.py}else{iE.x-=(iE.px-(iE.px=iE.x))*ir;iE.y-=(iE.py-(iE.py=iE.y))*ir}}iz.tick({type:"tick",alpha:io})};ik.nodes=function(iD){if(!arguments.length){return ix}ix=iD;return ik};ik.links=function(iD){if(!arguments.length){return il}il=iD;return ik};ik.size=function(iD){if(!arguments.length){return iv}iv=iD;return ik};ik.linkDistance=function(iD){if(!arguments.length){return iC}iC=typeof iD==="function"?iD:+iD;return ik};ik.distance=ik.linkDistance;ik.linkStrength=function(iD){if(!arguments.length){return im}im=typeof iD==="function"?iD:+iD;return ik};ik.friction=function(iD){if(!arguments.length){return ir}ir=+iD;return ik};ik.charge=function(iD){if(!arguments.length){return iy}iy=typeof iD==="function"?iD:+iD;return ik};ik.gravity=function(iD){if(!arguments.length){return ip}ip=+iD;return ik};ik.theta=function(iD){if(!arguments.length){return it}it=+iD;return ik};ik.alpha=function(iD){if(!arguments.length){return io}iD=+iD;if(io){if(iD>0){io=iD}else{io=0}}else{if(iD>0){iz.start({type:"start",alpha:io=iD});hs.timer(ik.tick)}}return ik};ik.start=function(){var iH,iK=ix.length,iE=il.length,iF=iv[0],iI=iv[1],iG,iJ;for(iH=0;iH<iK;++iH){(iJ=ix[iH]).index=iH;iJ.weight=0}for(iH=0;iH<iE;++iH){iJ=il[iH];if(typeof iJ.source=="number"){iJ.source=ix[iJ.source]}if(typeof iJ.target=="number"){iJ.target=ix[iJ.target]}++iJ.source.weight;++iJ.target.weight}for(iH=0;iH<iK;++iH){iJ=ix[iH];if(isNaN(iJ.x)){iJ.x=iD("x",iF)}if(isNaN(iJ.y)){iJ.y=iD("y",iI)}if(isNaN(iJ.px)){iJ.px=iJ.x}if(isNaN(iJ.py)){iJ.py=iJ.y}}iq=[];if(typeof iC==="function"){for(iH=0;iH<iE;++iH){iq[iH]=+iC.call(this,il[iH],iH)}}else{for(iH=0;iH<iE;++iH){iq[iH]=iC}}e=[];if(typeof im==="function"){for(iH=0;iH<iE;++iH){e[iH]=+im.call(this,il[iH],iH)}}else{for(iH=0;iH<iE;++iH){e[iH]=im}}iu=[];if(typeof iy==="function"){for(iH=0;iH<iK;++iH){iu[iH]=+iy.call(this,ix[iH],iH)}}else{for(iH=0;iH<iK;++iH){iu[iH]=iy}}function iD(iQ,iO){if(!iG){iG=new Array(iK);for(iN=0;iN<iK;++iN){iG[iN]=[]}for(iN=0;iN<iM;++iN){var iR=il[iN];iG[iR.source.index].push(iR.target);iG[iR.target.index].push(iR.source)}}var iP=iG[iH],iN=-1,iM=iP.length,iL;while(++iN<iM){if(!isNaN(iL=iP[iN][iQ])){return iL}}return Math.random()*iO}return ik.resume()};ik.resume=function(){return ik.alpha(0.1)};ik.stop=function(){return ik.alpha(0)};ik.drag=function(){if(!iB){iB=hs.behavior.drag().origin(gt).on("dragstart.force",r).on("drag.force",iw).on("dragend.force",ek)}if(!arguments.length){return iB}this.on("mouseover.force",cz).on("mouseout.force",er).call(iB)};function iw(iD){iD.px=hs.event.x,iD.py=hs.event.y;ik.resume()}return hs.rebind(ik,iz,"on")};function r(e){e.fixed|=2}function ek(e){e.fixed&=~6}function cz(e){e.fixed|=4;e.px=e.x,e.py=e.y}function er(e){e.fixed&=~4}function gH(iu,io,it){var ip=0,il=0;iu.charge=0;if(!iu.leaf){var e=iu.nodes,ik=e.length,iq=-1,ir;while(++iq<ik){ir=e[iq];if(ir==null){continue}gH(ir,io,it);iu.charge+=ir.charge;ip+=ir.charge*ir.cx;il+=ir.charge*ir.cy}}if(iu.point){if(!iu.leaf){iu.point.x+=Math.random()-0.5;iu.point.y+=Math.random()-0.5}var im=io*it[iu.point.index];iu.charge+=iu.pointCharge=im;ip+=im*iu.point.x;il+=im*iu.point.y}iu.cx=ip/iu.charge;iu.cy=il/iu.charge}var f1=20,cv=1;hs.layout.hierarchy=function(){var il=dV,ik=a8,io=hP;function im(it,iv,iq){var iy=ik.call(e,it,iv);it.depth=iv;iq.push(it);if(iy&&(ir=iy.length)){var iw=-1,ir,iz=it.children=new Array(ir),iA=0,iu=iv+1,ix;while(++iw<ir){ix=iz[iw]=im(iy[iw],iu,iq);ix.parent=it;iA+=ix.value}if(il){iz.sort(il)}if(io){it.value=iA}}else{delete it.children;if(io){it.value=+io.call(e,it,iv)||0}}return it}function ip(iv,iw){var iu=iv.children,iq=0;if(iu&&(ix=iu.length)){var it=-1,ix,ir=iw+1;while(++it<ix){iq+=ip(iu[it],ir)}}else{if(io){iq=+io.call(e,iv,iw)||0}}if(io){iv.value=iq}return iq}function e(ir){var iq=[];im(ir,0,iq);return iq}e.sort=function(iq){if(!arguments.length){return il}il=iq;return e};e.children=function(iq){if(!arguments.length){return ik}ik=iq;return e};e.value=function(iq){if(!arguments.length){return io}io=iq;return e};e.revalue=function(iq){ip(iq,0);return iq};return e};function gA(ik,e){hs.rebind(ik,e,"sort","children","value");ik.nodes=ik;ik.links=gD;return ik}function a8(e){return e.children}function hP(e){return e.value}function dV(ik,e){return e.value-ik.value}function gD(e){return hs.merge(e.map(function(ik){return(ik.children||[]).map(function(il){return{source:ik,target:il}})}))}hs.layout.partition=function(){var il=hs.layout.hierarchy(),im=[1,1];function e(ir,iw,iy,ix){var ip=ir.children;ir.x=iw;ir.y=ir.depth*ix;ir.dx=iy;ir.dy=ix;if(ip&&(iq=ip.length)){var it=-1,iq,iv,iu;iy=ir.value?iy/ir.value:0;while(++it<iq){e(iv=ip[it],iw,iu=iv.value*iy,ix);iw+=iu}}}function io(ir){var iq=ir.children,it=0;if(iq&&(iu=iq.length)){var ip=-1,iu;while(++ip<iu){it=Math.max(it,io(iq[ip]))}}return 1+it}function ik(ir,iq){var ip=il.call(this,ir,iq);e(ip[0],0,im[0],im[1]/io(ip[0]));return ip}ik.size=function(ip){if(!arguments.length){return im}im=ip;return ik};return gA(ik,il)};hs.layout.pie=function(){var io=Number,im=X,il=0,ik=gh;function e(iv){var ir=iv.map(function(ix,iw){return +io.call(e,ix,iw)});var ip=+(typeof il==="function"?il.apply(this,arguments):il);var iq=((typeof ik==="function"?ik.apply(this,arguments):ik)-ip)/hs.sum(ir);var it=hs.range(iv.length);if(im!=null){it.sort(im===X?function(ix,iw){return ir[iw]-ir[ix]}:function(ix,iw){return im(iv[ix],iv[iw])})}var iu=[];it.forEach(function(iw){var ix;iu[iw]={data:iv[iw],value:ix=ir[iw],startAngle:ip,endAngle:ip+=ix*iq}});return iu}e.value=function(ip){if(!arguments.length){return io}io=ip;return e};e.sort=function(ip){if(!arguments.length){return im}im=ip;return e};e.startAngle=function(ip){if(!arguments.length){return il}il=ip;return e};e.endAngle=function(ip){if(!arguments.length){return ik}ik=ip;return e};return e};var X={};hs.layout.stack=function(){var im=gt,il=bR,ip=fP,io=fQ,ik=aq,iq=ao;function e(iz,iB){var iA=iz.map(function(iE,iD){return im.call(e,iE,iD)});var iC=iA.map(function(iD){return iD.map(function(iE,iF){return[ik.call(e,iE,iF),iq.call(e,iE,iF)]})});var iw=il.call(e,iC,iB);iA=hs.permute(iA,iw);iC=hs.permute(iC,iw);var iv=ip.call(e,iC,iB);var it=iA.length,iu=iA[0].length,iy,ix,ir;for(ix=0;ix<iu;++ix){io.call(e,iA[0][ix],ir=iv[ix],iC[0][ix][1]);for(iy=1;iy<it;++iy){io.call(e,iA[iy][ix],ir+=iC[iy-1][ix][1],iC[iy][ix][1])}}return iz}e.values=function(ir){if(!arguments.length){return im}im=ir;return e};e.order=function(ir){if(!arguments.length){return il}il=typeof ir==="function"?ir:a6.get(ir)||bR;return e};e.offset=function(ir){if(!arguments.length){return ip}ip=typeof ir==="function"?ir:aj.get(ir)||fP;return e};e.x=function(ir){if(!arguments.length){return ik}ik=ir;return e};e.y=function(ir){if(!arguments.length){return iq}iq=ir;return e};e.out=function(ir){if(!arguments.length){return io}io=ir;return e};return e};function aq(e){return e.x}function ao(e){return e.y}function fQ(ik,e,il){ik.y0=e;ik.y=il}var a6=hs.map({"inside-out":function(io){var il=io.length,ip,im,iu=io.map(bW),iq=io.map(dx),ir=hs.range(il).sort(function(ix,iw){return iu[ix]-iu[iw]}),it=0,e=0,iv=[],ik=[];for(ip=0;ip<il;++ip){im=ir[ip];if(it<e){it+=iq[im];iv.push(im)}else{e+=iq[im];ik.push(im)}}return ik.reverse().concat(iv)},reverse:function(e){return hs.range(e.length).reverse()},"default":bR});var aj=hs.map({silhouette:function(io){var ik=io.length,il=io[0].length,iq=[],ir=0,ip,im,e,it=[];for(im=0;im<il;++im){for(ip=0,e=0;ip<ik;ip++){e+=io[ip][im][1]}if(e>ir){ir=e}iq.push(e)}for(im=0;im<il;++im){it[im]=(ir-iq[im])/2}return it},wiggle:function(iq){var ik=iq.length,iu=iq[0],il=iu.length,ir,ip,io,ix,iw,it,iy,e,im,iv=[];iv[0]=e=im=0;for(ip=1;ip<il;++ip){for(ir=0,ix=0;ir<ik;++ir){ix+=iq[ir][ip][1]}for(ir=0,iw=0,iy=iu[ip][0]-iu[ip-1][0];ir<ik;++ir){for(io=0,it=(iq[ir][ip][1]-iq[ir][ip-1][1])/(2*iy);io<ir;++io){it+=(iq[io][ip][1]-iq[io][ip-1][1])/iy}iw+=it*iq[ir][ip][1]}iv[ip]=e-=ix?iw/ix*iy:0;if(e<im){im=e}}for(ip=0;ip<il;++ip){iv[ip]-=im}return iv},expand:function(ip){var ir=ip.length,e=ip[0].length,ik=1/ir,im,il,iq,io=[];for(il=0;il<e;++il){for(im=0,iq=0;im<ir;im++){iq+=ip[im][il][1]}if(iq){for(im=0;im<ir;im++){ip[im][il][1]/=iq}}else{for(im=0;im<ir;im++){ip[im][il][1]=ik}}}for(il=0;il<e;++il){io[il]=0}return io},zero:fP});function bR(e){return hs.range(e.length)}function fP(im){var ik=-1,e=im[0].length,il=[];while(++ik<e){il[ik]=0}return il}function bW(ip){var im=1,il=0,ik=ip[0][1],e,io=ip.length;for(;im<io;++im){if((e=ip[im][1])>ik){il=im;ik=e}}return il}function dx(e){return e.reduce(fO,0)}function fO(e,ik){return e+ik[1]}hs.layout.histogram=function(){var io=true,ik=Number,e=bk,il=hB;function im(it,iu){var iz=[],ix=it.map(ik,this),iv=e.call(this,ix,iu),iy=il.call(this,iv,ix,iu),iA,iu=-1,ip=ix.length,iq=iy.length-1,ir=io?1:1/ip,iw;while(++iu<iq){iA=iz[iu]=[];iA.dx=iy[iu+1]-(iA.x=iy[iu]);iA.y=0}if(iq>0){iu=-1;while(++iu<ip){iw=ix[iu];if(iw>=iv[0]&&iw<=iv[1]){iA=iz[hs.bisect(iy,iw,1,iq)-1];iA.y+=ir;iA.push(it[iu])}}}return iz}im.value=function(ip){if(!arguments.length){return ik}ik=ip;return im};im.range=function(ip){if(!arguments.length){return e}e=U(ip);return im};im.bins=function(ip){if(!arguments.length){return il}il=typeof ip==="number"?function(iq){return h(iq,ip)}:U(ip);return im};im.frequency=function(ip){if(!arguments.length){return io}io=!!ip;return im};return im};function hB(ik,e){return h(ik,Math.ceil(Math.log(e.length)/Math.LN2+1))}function h(im,ip){var il=-1,ik=+im[0],e=(im[1]-ik)/ip,io=[];while(++il<=ip){io[il]=e*il+ik}return io}function bk(e){return[hs.min(e),hs.max(e)]}hs.layout.tree=function(){var il=hs.layout.hierarchy().sort(null).value(null),io=dC,im=[1,1],ik=false;function e(ix,iv){var iq=il.call(this,ix,iv),iz=iq[0];function iw(iH,iD){var iF=iH.children,iK=iH._tree;if(iF&&(iG=iF.length)){var iG,iM=iF[0],iL,iJ=iM,iE,iI=-1;while(++iI<iG){iE=iF[iI];iw(iE,iL);iJ=ip(iE,iL,iJ);iL=iE}dF(iH);var iN=0.5*(iM._tree.prelim+iE._tree.prelim);if(iD){iK.prelim=iD._tree.prelim+io(iH,iD);iK.mod=iK.prelim-iN}else{iK.prelim=iN}}else{if(iD){iK.prelim=iD._tree.prelim+io(iH,iD)}}}function iy(iG,iD){iG.x=iG._tree.prelim+iD;var iF=iG.children;if(iF&&(iH=iF.length)){var iE=-1,iH;iD+=iG._tree.mod;while(++iE<iH){iy(iF[iE],iD)}}}function ip(iH,iD,iK){if(iD){var iG=iH,iF=iH,iJ=iD,iI=iH.parent.children[0],iM=iG._tree.mod,iL=iF._tree.mod,iO=iJ._tree.mod,iN=iI._tree.mod,iE;while(iJ=aC(iJ),iG=h4(iG),iJ&&iG){iI=h4(iI);iF=aC(iF);iF._tree.ancestor=iH;iE=iJ._tree.prelim+iO-iG._tree.prelim-iM+io(iJ,iG);if(iE>0){h6(f8(iJ,iH,iK),iH,iE);iM+=iE;iL+=iE}iO+=iJ._tree.mod;iM+=iG._tree.mod;iN+=iI._tree.mod;iL+=iF._tree.mod}if(iJ&&!aC(iF)){iF._tree.thread=iJ;iF._tree.mod+=iO-iL}if(iG&&!h4(iI)){iI._tree.thread=iG;iI._tree.mod+=iM-iN;iK=iH}}return iK}hJ(iz,function(iE,iD){iE._tree={ancestor:iE,prelim:0,mod:0,change:0,shift:0,number:iD?iD._tree.number+1:0}});iw(iz);iy(iz,-iz._tree.prelim);var iu=d8(iz,bG),iC=d8(iz,c4),iB=d8(iz,F),it=iu.x-io(iu,iC)/2,ir=iC.x+io(iC,iu)/2,iA=iB.depth||1;hJ(iz,ik?function(iD){iD.x*=im[0];iD.y=iD.depth*im[1];delete iD._tree}:function(iD){iD.x=(iD.x-it)/(ir-it)*im[0];iD.y=iD.depth/iA*im[1];delete iD._tree});return iq}e.separation=function(ip){if(!arguments.length){return io}io=ip;return e};e.size=function(ip){if(!arguments.length){return ik?null:im}ik=(im=ip)==null;return e};e.nodeSize=function(ip){if(!arguments.length){return ik?im:null}ik=(im=ip)!=null;return e};return gA(e,il)};function dC(ik,e){return ik.parent==e.parent?1:2}function h4(ik){var e=ik.children;return e&&e.length?e[0]:ik._tree.thread}function aC(ik){var e=ik.children,il;return e&&(il=e.length)?e[il-1]:ik._tree.thread}function d8(il,im){var ik=il.children;if(ik&&(io=ik.length)){var ip,io,e=-1;while(++e<io){if(im(ip=d8(ik[e],im),il)>0){il=ip}}}return il}function c4(ik,e){return ik.x-e.x}function bG(ik,e){return e.x-ik.x}function F(ik,e){return ik.depth-e.depth}function hJ(ik,il){function e(ir,iq){var ip=ir.children;if(ip&&(it=ip.length)){var iu,io=null,im=-1,it;while(++im<it){iu=ip[im];e(iu,io);io=iu}}il(ir,iq)}e(ik,null)}function dF(im){var e=0,ip=0,il=im.children,ik=il.length,io;while(--ik>=0){io=il[ik]._tree;io.prelim+=e;io.mod+=e;e+=io.shift+(ip+=io.change)}}function h6(ik,il,e){ik=ik._tree;il=il._tree;var im=e/(il.number-ik.number);ik.change+=im;il.change-=im;il.shift+=e;il.prelim+=e;il.mod+=e}function f8(e,il,ik){return e._tree.ancestor.parent==il.parent?e._tree.ancestor:ik}hs.layout.pack=function(){var ik=hs.layout.hierarchy().sort(eG),io=0,im=[1,1],e;function il(ix,it){var ir=ik.call(this,ix,it),iq=ir[0],ip=im[0],iu=im[1],iv=e==null?Math.sqrt:typeof e==="function"?e:function(){return e};iq.x=iq.y=0;hJ(iq,function(iy){iy.r=+iv(iy.value)});hJ(iq,W);if(io){var iw=io*(e?1:Math.max(2*iq.r/ip,2*iq.r/iu))/2;hJ(iq,function(iy){iy.r+=iw});hJ(iq,W);hJ(iq,function(iy){iy.r-=iw})}fx(iq,ip/2,iu/2,e?1:1/Math.max(2*iq.r/ip,2*iq.r/iu));return ir}il.size=function(ip){if(!arguments.length){return im}im=ip;return il};il.radius=function(ip){if(!arguments.length){return e}e=ip==null||typeof ip==="function"?ip:+ip;return il};il.padding=function(ip){if(!arguments.length){return io}io=+ip;return il};return gA(il,ik)};function eG(ik,e){return ik.value-e.value}function bQ(ik,e){var il=ik._pack_next;ik._pack_next=e;e._pack_prev=ik;e._pack_next=il;il._pack_prev=e}function bf(ik,e){ik._pack_next=e;e._pack_prev=ik}function es(il,e){var im=e.x-il.x,ik=e.y-il.y,io=il.r+e.r;return 0.999*io*io>im*im+ik*ik}function W(iw){if(!(iv=iw.children)||!(iu=iv.length)){return}var iv,iA=Infinity,iE=-Infinity,e=Infinity,io=-Infinity,iD,iC,iB,iz,iy,ix,iu;function il(iF){iA=Math.min(iF.x-iF.r,iA);iE=Math.max(iF.x+iF.r,iE);e=Math.min(iF.y-iF.r,e);io=Math.max(iF.y+iF.r,io)}iv.forEach(aT);iD=iv[0];iD.x=-iD.r;iD.y=0;il(iD);if(iu>1){iC=iv[1];iC.x=iC.r;iC.y=0;il(iC);if(iu>2){iB=iv[2];be(iD,iC,iB);il(iB);bQ(iD,iB);iD._pack_prev=iB;bQ(iB,iC);iC=iD._pack_next;for(iz=3;iz<iu;iz++){be(iD,iC,iB=iv[iz]);var ik=0,ip=1,im=1;for(iy=iC._pack_next;iy!==iC;iy=iy._pack_next,ip++){if(es(iy,iB)){ik=1;break}}if(ik==1){for(ix=iD._pack_prev;ix!==iy._pack_prev;ix=ix._pack_prev,im++){if(es(ix,iB)){break}}}if(ik){if(ip<im||ip==im&&iC.r<iD.r){bf(iD,iC=iy)}else{bf(iD=ix,iC)}iz--}else{bQ(iD,iB);iC=iB;il(iB)}}}}var ir=(iA+iE)/2,iq=(e+io)/2,it=0;for(iz=0;iz<iu;iz++){iB=iv[iz];iB.x-=ir;iB.y-=iq;it=Math.max(it,iB.r+Math.sqrt(iB.x*iB.x+iB.y*iB.y))}iw.r=it;iv.forEach(eV)}function aT(e){e._pack_next=e._pack_prev=e}function eV(e){delete e._pack_next;delete e._pack_prev}function fx(io,e,iq,ik){var im=io.children;io.x=e+=ik*io.x;io.y=iq+=ik*io.y;io.r*=ik;if(im){var il=-1,ip=im.length;while(++il<ip){fx(im[il],e,iq,ik)}}}function be(io,il,e){var iq=io.r+e.r,iu=il.x-io.x,ir=il.y-io.y;if(iq&&(iu||ir)){var it=il.r+e.r,ip=iu*iu+ir*ir;it*=it;iq*=iq;var im=0.5+(iq-it)/(2*ip),ik=Math.sqrt(Math.max(0,2*it*(iq+ip)-(iq-=ip)*iq-it*it))/(2*ip);e.x=io.x+im*iu+ik*ir;e.y=io.y+im*ir-ik*iu}else{e.x=io.x+iq;e.y=io.y}}hs.layout.cluster=function(){var il=hs.layout.hierarchy().sort(null).value(null),io=dC,im=[1,1],ik=false;function e(iv,iu){var ip=il.call(this,iv,iu),iw=ip[0],ix,iy=0;hJ(iw,function(iB){var iA=iB.children;if(iA&&iA.length){iB.x=bw(iA);iB.y=bv(iA)}else{iB.x=ix?iy+=io(iB,ix):0;iB.y=0;ix=iB}});var it=eI(iw),iz=dJ(iw),ir=it.x-io(it,iz)/2,iq=iz.x+io(iz,it)/2;hJ(iw,ik?function(iA){iA.x=(iA.x-iw.x)*im[0];iA.y=(iw.y-iA.y)*im[1]}:function(iA){iA.x=(iA.x-ir)/(iq-ir)*im[0];iA.y=(1-(iw.y?iA.y/iw.y:1))*im[1]});return ip}e.separation=function(ip){if(!arguments.length){return io}io=ip;return e};e.size=function(ip){if(!arguments.length){return ik?null:im}ik=(im=ip)==null;return e};e.nodeSize=function(ip){if(!arguments.length){return ik?im:null}ik=(im=ip)!=null;return e};return gA(e,il)};function bv(e){return 1+hs.max(e,function(ik){return ik.y})}function bw(e){return e.reduce(function(ik,il){return ik+il.x},0)/e.length}function eI(ik){var e=ik.children;return e&&e.length?eI(e[0]):ik}function dJ(ik){var e=ik.children,il;return e&&(il=e.length)?dJ(e[il-1]):ik}hs.layout.treemap=function(){var it=hs.layout.hierarchy(),ix=Math.round,iz=[1,1],iu=null,e=fj,iv=false,iq,ip="squarify",ir=0.5*(1+Math.sqrt(5));function ik(iC,iA){var iB=-1,iF=iC.length,iE,iD;while(++iB<iF){iD=(iE=iC[iB]).value*(iA<0?0:iA);iE.area=isNaN(iD)||iD<=0?0:iD}}function im(iE){var iB=iE.children;if(iB&&iB.length){var iH=e(iE),iJ=[],iG=iB.slice(),iA,iF=Infinity,iD,iI=ip==="slice"?iH.dx:ip==="dice"?iH.dy:ip==="slice-dice"?iE.depth&1?iH.dy:iH.dx:Math.min(iH.dx,iH.dy),iC;ik(iG,iH.dx*iH.dy/iE.value);iJ.area=0;while((iC=iG.length)>0){iJ.push(iA=iG[iC-1]);iJ.area+=iA.area;if(ip!=="squarify"||(iD=il(iJ,iI))<=iF){iG.pop();iF=iD}else{iJ.area-=iJ.pop().area;io(iJ,iI,iH,false);iI=Math.min(iH.dx,iH.dy);iJ.length=iJ.area=0;iF=Infinity}}if(iJ.length){io(iJ,iI,iH,true);iJ.length=iJ.area=0}iB.forEach(im)}}function iy(iD){var iA=iD.children;if(iA&&iA.length){var iC=e(iD),iB=iA.slice(),iF,iE=[];ik(iB,iC.dx*iC.dy/iD.value);iE.area=0;while(iF=iB.pop()){iE.push(iF);iE.area+=iF.area;if(iF.z!=null){io(iE,iF.z?iC.dx:iC.dy,iC,!iB.length);iE.length=iE.area=0}}iA.forEach(iy)}}function il(iF,iB){var iD=iF.area,iE,iH=0,iA=Infinity,iC=-1,iG=iF.length;while(++iC<iG){if(!(iE=iF[iC].area)){continue}if(iE<iA){iA=iE}if(iE>iH){iH=iE}}iD*=iD;iB*=iB;return iD?Math.max(iB*iH*ir/iD,iD/(iB*iA*ir)):Infinity}function io(iJ,iI,iE,iH){var iC=-1,iB=iJ.length,iF=iE.x,iD=iE.y,iG=iI?ix(iJ.area/iI):0,iA;if(iI==iE.dx){if(iH||iG>iE.dy){iG=iE.dy}while(++iC<iB){iA=iJ[iC];iA.x=iF;iA.y=iD;iA.dy=iG;iF+=iA.dx=Math.min(iE.x+iE.dx-iF,iG?ix(iA.area/iG):0)}iA.z=true;iA.dx+=iE.x+iE.dx-iF;iE.y+=iG;iE.dy-=iG}else{if(iH||iG>iE.dx){iG=iE.dx}while(++iC<iB){iA=iJ[iC];iA.x=iF;iA.y=iD;iA.dx=iG;iD+=iA.dy=Math.min(iE.y+iE.dy-iD,iG?ix(iA.area/iG):0)}iA.z=false;iA.dy+=iE.y+iE.dy-iD;iE.x+=iG;iE.dx-=iG}}function iw(iC){var iB=iq||it(iC),iA=iB[0];iA.x=0;iA.y=0;iA.dx=iz[0];iA.dy=iz[1];if(iq){it.revalue(iA)}ik([iA],iA.dx*iA.dy/iA.value);(iq?iy:im)(iA);if(iv){iq=iB}return iB}iw.size=function(iA){if(!arguments.length){return iz}iz=iA;return iw};iw.padding=function(iA){if(!arguments.length){return iu}function iD(iE){var iF=iA.call(iw,iE,iE.depth);return iF==null?fj(iE):a1(iE,typeof iF==="number"?[iF,iF,iF,iF]:iF)}function iC(iE){return a1(iE,iA)}var iB;e=(iu=iA)==null?fj:(iB=typeof iA)==="function"?iD:iB==="number"?(iA=[iA,iA,iA,iA],iC):iC;return iw};iw.round=function(iA){if(!arguments.length){return ix!=Number}ix=iA?Math.round:Number;return iw};iw.sticky=function(iA){if(!arguments.length){return iv}iv=iA;iq=null;return iw};iw.ratio=function(iA){if(!arguments.length){return ir}ir=iA;return iw};iw.mode=function(iA){if(!arguments.length){return ip}ip=iA+"";return iw};return gA(iw,it)};function fj(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function a1(im,io){var e=im.x+io[3],ip=im.y+io[0],il=im.dx-io[1]-io[3],ik=im.dy-io[0]-io[2];if(il<0){e+=il/2;il=0}if(ik<0){ip+=ik/2;ik=0}return{x:e,y:ip,dx:il,dy:ik}}hs.random={normal:function(ik,e){var il=arguments.length;if(il<2){e=1}if(il<1){ik=0}return function(){var im,ip,io;do{im=Math.random()*2-1;ip=Math.random()*2-1;io=im*im+ip*ip}while(!io||io>1);return ik+e*im*Math.sqrt(-2*Math.log(io)/io)}},logNormal:function(){var e=hs.random.normal.apply(hs,arguments);return function(){return Math.exp(e())}},irwinHall:function(e){return function(){for(var il=0,ik=0;ik<e;ik++){il+=Math.random()}return il/e}}};hs.scale={};function ey(ik){var il=ik[0],e=ik[ik.length-1];return il<e?[il,e]:[e,il]}function a0(e){return e.rangeExtent?e.rangeExtent():ey(e.range())}function aH(io,e,ip,il){var ik=ip(io[0],io[1]),im=il(e[0],e[1]);return function(iq){return im(ik(iq))}}function gr(iq,io){var ip=0,im=iq.length-1,il=iq[ip],ik=iq[im],e;if(ik<il){e=ip,ip=im,im=e;e=il,il=ik,ik=e}iq[ip]=io.floor(il);iq[im]=io.ceil(ik);return iq}function a7(e){return e?{floor:function(ik){return Math.floor(ik/e)*e},ceil:function(ik){return Math.ceil(ik/e)*e}}:eH}var eH={floor:gt,ceil:gt};function O(iq,ik,ir,io){var im=[],ip=[],il=0,e=Math.min(iq.length,ik.length)-1;if(iq[e]<iq[0]){iq=iq.slice().reverse();ik=ik.slice().reverse()}while(++il<=e){im.push(ir(iq[il-1],iq[il]));ip.push(io(ik[il-1],ik[il]))}return function(it){var iu=hs.bisect(iq,it,1,e)-1;return ip[iu](im[iu](it))}}hs.scale.linear=function(){return eq([0,1],[0,1],fN,false)};function eq(ip,im,io,ir){var il,ik;function e(){var it=Math.min(ip.length,im.length)>2?O:aH,iu=ir?aB:hA;il=it(ip,im,iu,io);ik=it(im,ip,iu,fN);return iq}function iq(it){return il(it)}iq.invert=function(it){return ik(it)};iq.domain=function(it){if(!arguments.length){return ip}ip=it.map(Number);return e()};iq.range=function(it){if(!arguments.length){return im}im=it;return e()};iq.rangeRound=function(it){return iq.range(it).interpolate(fI)};iq.clamp=function(it){if(!arguments.length){return ir}ir=it;return e()};iq.interpolate=function(it){if(!arguments.length){return io}io=it;return e()};iq.ticks=function(it){return e9(ip,it)};iq.tickFormat=function(it,iu){return fl(ip,it,iu)};iq.nice=function(it){aP(ip,it);return e()};iq.copy=function(){return eq(ip,im,io,ir)};return e()}function gj(ik,e){return hs.rebind(ik,e,"range","rangeRound","interpolate","clamp")}function aP(ik,e){return gr(ik,a7(q(ik,e)[2]))}function q(ip,e){if(e==null){e=10}var il=ey(ip),ik=il[1]-il[0],io=Math.pow(10,Math.floor(Math.log(ik/e)/Math.LN10)),im=e/ik*io;if(im<=0.15){io*=10}else{if(im<=0.35){io*=5}else{if(im<=0.75){io*=2}}}il[0]=Math.ceil(il[0]/io)*io;il[1]=Math.floor(il[1]/io)*io+io*0.5;il[2]=io;return il}function e9(ik,e){return hs.range.apply(hs,q(ik,e))}function fl(il,e,im){var ik=q(il,e);return hs.format(im?im.replace(cC,function(iy,ix,iw,iv,iu,it,ir,iq,ip,io){return[ix,iw,iv,iu,it,ir,iq,ip||"."+y(io,ik),io].join("")}):",."+g1(ik[2])+"f")}var h3={s:1,g:1,p:1,r:1,e:1};function g1(e){return -Math.floor(Math.log(e)/Math.LN10+0.01)}function y(ik,e){var il=g1(e[2]);return ik in h3?Math.abs(il-g1(Math.max(Math.abs(e[0]),Math.abs(e[1]))))+ +(ik!=="e"):il-(ik==="%")*2}hs.scale.log=function(){return gN(hs.scale.linear().domain([0,1]),10,true,[1,10])};function gN(ik,ip,e,io){function il(ir){return(e?Math.log(ir<0?0:ir):-Math.log(ir>0?0:-ir))/Math.log(ip)}function im(ir){return e?Math.pow(ip,ir):-Math.pow(ip,-ir)}function iq(ir){return ik(il(ir))}iq.invert=function(ir){return im(ik.invert(ir))};iq.domain=function(ir){if(!arguments.length){return io}e=ir[0]>=0;ik.domain((io=ir.map(Number)).map(il));return iq};iq.base=function(ir){if(!arguments.length){return ip}ip=+ir;ik.domain(io.map(il));return iq};iq.nice=function(){var ir=gr(io.map(il),e?Math:gR);ik.domain(ir);io=ir.map(im);return iq};iq.ticks=function(){var ix=ey(io),iy=[],iv=ix[0],it=ix[1],iw=Math.floor(il(iv)),iu=Math.ceil(il(it)),iz=ip%1?2:ip;if(isFinite(iu-iw)){if(e){for(;iw<iu;iw++){for(var ir=1;ir<iz;ir++){iy.push(im(iw)*ir)}}iy.push(im(iw))}else{iy.push(im(iw));for(;iw++<iu;){for(var ir=iz-1;ir>0;ir--){iy.push(im(iw)*ir)}}}for(iw=0;iy[iw]<iv;iw++){}for(iu=iy.length;iy[iu-1]>it;iu--){}iy=iy.slice(iw,iu)}return iy};iq.tickFormat=function(iw,iv){if(!arguments.length){return dw}if(arguments.length<2){iv=dw}else{if(typeof iv!=="function"){iv=hs.format(iv)}}var ir=Math.max(0.1,iw/iq.ticks().length),it=e?(iu=1e-12,Math.ceil):(iu=-1e-12,Math.floor),iu;return function(ix){return ix/im(it(il(ix)+iu))<=ir?iv(ix):""}};iq.copy=function(){return gN(ik.copy(),ip,e,io)};return gj(iq,ik)}var dw=hs.format(".0e"),gR={floor:function(e){return -Math.ceil(-e)},ceil:function(e){return -Math.floor(-e)}};hs.scale.pow=function(){return gz(hs.scale.linear(),1,[0,1])};function gz(e,im,il){var ik=f4(im),io=f4(1/im);function ip(iq){return e(ik(iq))}ip.invert=function(iq){return io(e.invert(iq))};ip.domain=function(iq){if(!arguments.length){return il}e.domain((il=iq.map(Number)).map(ik));return ip};ip.ticks=function(iq){return e9(il,iq)};ip.tickFormat=function(iq,ir){return fl(il,iq,ir)};ip.nice=function(iq){return ip.domain(aP(il,iq))};ip.exponent=function(iq){if(!arguments.length){return im}ik=f4(im=iq);io=f4(1/im);e.domain(il.map(ik));return ip};ip.copy=function(){return gz(e.copy(),im,il)};return gj(ip,e)}function f4(ik){return function(e){return e<0?-Math.pow(-e,ik):Math.pow(e,ik)}}hs.scale.sqrt=function(){return hs.scale.pow().exponent(0.5)};hs.scale.ordinal=function(){return cu([],{t:"range",a:[[]]})};function cu(ip,il){var io,ik,im;function iq(ir){return ik[((io.get(ir)||il.t==="range"&&io.set(ir,ip.push(ir)))-1)%ik.length]}function e(it,ir){return hs.range(ip.length).map(function(iu){return it+ir*iu})}iq.domain=function(ir){if(!arguments.length){return ip}ip=[];io=new aJ();var iu=-1,iv=ir.length,it;while(++iu<iv){if(!io.has(it=ir[iu])){io.set(it,ip.push(it))}}return iq[il.t].apply(iq,il.a)};iq.range=function(ir){if(!arguments.length){return ik}ik=ir;im=0;il={t:"range",a:arguments};return iq};iq.rangePoints=function(ir,iv){if(arguments.length<2){iv=0}var iw=ir[0],it=ir[1],iu=(it-iw)/(Math.max(1,ip.length-1)+iv);ik=e(ip.length<2?(iw+it)/2:iw+iu*iv/2,iu);im=0;il={t:"rangePoints",a:arguments};return iq};iq.rangeBands=function(it,ix,ir){if(arguments.length<2){ix=0}if(arguments.length<3){ir=ix}var iu=it[1]<it[0],iy=it[iu-0],iv=it[1-iu],iw=(iv-iy)/(ip.length-ix+2*ir);ik=e(iy+iw*ir,iw);if(iu){ik.reverse()}im=iw*(1-ix);il={t:"rangeBands",a:arguments};return iq};iq.rangeRoundBands=function(it,iy,ir){if(arguments.length<2){iy=0}if(arguments.length<3){ir=iy}var iv=it[1]<it[0],iz=it[iv-0],iw=it[1-iv],ix=Math.floor((iw-iz)/(ip.length-iy+2*ir)),iu=iw-iz-(ip.length-iy)*ix;ik=e(iz+Math.round(iu/2),ix);if(iv){ik.reverse()}im=Math.round(ix*(1-iy));il={t:"rangeRoundBands",a:arguments};return iq};iq.rangeBand=function(){return im};iq.rangeExtent=function(){return ey(il.a[0])};iq.copy=function(){return cu(ip,il)};return iq.domain(ip)}hs.scale.category10=function(){return hs.scale.ordinal().range(cD)};hs.scale.category20=function(){return hs.scale.ordinal().range(ci)};hs.scale.category20b=function(){return hs.scale.ordinal().range(hh)};hs.scale.category20c=function(){return hs.scale.ordinal().range(hf)};var cD=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(dz);var ci=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(dz);var hh=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(dz);var hf=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(dz);hs.scale.quantile=function(){return C([],[])};function C(il,ik){var im;function e(){var ip=0,iq=ik.length;im=[];while(++ip<iq){im[ip-1]=hs.quantile(il,ip/iq)}return io}function io(ip){if(!isNaN(ip=+ip)){return ik[hs.bisect(im,ip)]}}io.domain=function(ip){if(!arguments.length){return il}il=ip.filter(function(iq){return !isNaN(iq)}).sort(hs.ascending);return e()};io.range=function(ip){if(!arguments.length){return ik}ik=ip;return e()};io.quantiles=function(){return im};io.invertExtent=function(ip){ip=ik.indexOf(ip);return ip<0?[NaN,NaN]:[ip>0?im[ip-1]:il[0],ip<im.length?im[ip]:il[il.length-1]]};io.copy=function(){return C(il,ik)};return e()}hs.scale.quantize=function(){return dI(0,1,[0,1])};function dI(io,il,ik){var ip,im;function iq(ir){return ik[Math.max(0,Math.min(im,Math.floor(ip*(ir-io))))]}function e(){ip=ik.length/(il-io);im=ik.length-1;return iq}iq.domain=function(ir){if(!arguments.length){return[io,il]}io=+ir[0];il=+ir[ir.length-1];return e()};iq.range=function(ir){if(!arguments.length){return ik}ik=ir;return e()};iq.invertExtent=function(ir){ir=ik.indexOf(ir);ir=ir<0?NaN:ir/ip+io;return[ir,ir+1/ip]};iq.copy=function(){return dI(io,il,ik)};return e()}hs.scale.threshold=function(){return ge([0.5],[0,1])};function ge(ik,e){function il(im){if(im<=im){return e[hs.bisect(ik,im)]}}il.domain=function(im){if(!arguments.length){return ik}ik=im;return il};il.range=function(im){if(!arguments.length){return e}e=im;return il};il.invertExtent=function(im){im=e.indexOf(im);return[ik[im-1],ik[im]]};il.copy=function(){return ge(ik,e)};return il}hs.scale.identity=function(){return eZ([0,1])};function eZ(ik){function e(il){return +il}e.invert=e;e.domain=e.range=function(il){if(!arguments.length){return ik}ik=il.map(e);return e};e.ticks=function(il){return e9(ik,il)};e.tickFormat=function(il,im){return fl(ik,il,im)};e.copy=function(){return eZ(ik)};return e}hs.svg={};hs.svg.arc=function(){var io=bA,im=cV,il=gp,e=ar;function ik(){var it=io.apply(this,arguments),ir=im.apply(this,arguments),iq=il.apply(this,arguments)+hM,ip=e.apply(this,arguments)+hM,iz=(ip<iq&&(iz=iq,iq=ip,ip=iz),ip-iq),iw=iz<gm?"0":"1",iv=Math.cos(iq),iy=Math.sin(iq),iu=Math.cos(ip),ix=Math.sin(ip);return iz>=hR?it?"M0,"+ir+"A"+ir+","+ir+" 0 1,1 0,"+-ir+"A"+ir+","+ir+" 0 1,1 0,"+ir+"M0,"+it+"A"+it+","+it+" 0 1,0 0,"+-it+"A"+it+","+it+" 0 1,0 0,"+it+"Z":"M0,"+ir+"A"+ir+","+ir+" 0 1,1 0,"+-ir+"A"+ir+","+ir+" 0 1,1 0,"+ir+"Z":it?"M"+ir*iv+","+ir*iy+"A"+ir+","+ir+" 0 "+iw+",1 "+ir*iu+","+ir*ix+"L"+it*iu+","+it*ix+"A"+it+","+it+" 0 "+iw+",0 "+it*iv+","+it*iy+"Z":"M"+ir*iv+","+ir*iy+"A"+ir+","+ir+" 0 "+iw+",1 "+ir*iu+","+ir*ix+"L0,0Z"}ik.innerRadius=function(ip){if(!arguments.length){return io}io=U(ip);return ik};ik.outerRadius=function(ip){if(!arguments.length){return im}im=U(ip);return ik};ik.startAngle=function(ip){if(!arguments.length){return il}il=U(ip);return ik};ik.endAngle=function(ip){if(!arguments.length){return e}e=U(ip);return ik};ik.centroid=function(){var iq=(io.apply(this,arguments)+im.apply(this,arguments))/2,ip=(il.apply(this,arguments)+e.apply(this,arguments))/2+hM;return[Math.cos(ip)*iq,Math.sin(ip)*iq]};return ik};var hM=-ev,hR=gh-gw;function bA(e){return e.innerRadius}function cV(e){return e.outerRadius}function gp(e){return e.startAngle}function ar(e){return e.endAngle}function fk(ik){var e=h0,ir=hZ,iq=ak,im=hX,ip=im.key,io=0.7;function il(iw){var iy=[],iB=[],ix=-1,it=iw.length,iA,iv=U(e),iu=U(ir);function iz(){iy.push("M",im(ik(iB),io))}while(++ix<it){if(iq.call(this,iA=iw[ix],ix)){iB.push([+iv.call(this,iA,ix),+iu.call(this,iA,ix)])}else{if(iB.length){iz();iB=[]}}}if(iB.length){iz()}return iy.length?iy.join(""):null}il.x=function(it){if(!arguments.length){return e}e=it;return il};il.y=function(it){if(!arguments.length){return ir}ir=it;return il};il.defined=function(it){if(!arguments.length){return iq}iq=it;return il};il.interpolate=function(it){if(!arguments.length){return ip}if(typeof it==="function"){ip=im=it}else{ip=(im=cd.get(it)||hX).key}return il};il.tension=function(it){if(!arguments.length){return io}io=it;return il};return il}hs.svg.line=function(){return fk(gt)};var cd=hs.map({linear:hX,"linear-closed":ac,step:de,"step-before":bm,"step-after":hC,basis:fp,"basis-open":bj,"basis-closed":cQ,bundle:cT,cardinal:dY,"cardinal-open":b3,"cardinal-closed":s,monotone:dn});cd.forEach(function(e,ik){ik.key=e;ik.closed=/-closed$/.test(e)});function hX(e){return e.join("L")}function ac(e){return hX(e)+"Z"}function de(ik){var e=0,io=ik.length,im=ik[0],il=[im[0],",",im[1]];while(++e<io){il.push("H",(im[0]+(im=ik[e])[0])/2,"V",im[1])}if(io>1){il.push("H",im[0])}return il.join("")}function bm(ik){var e=0,io=ik.length,im=ik[0],il=[im[0],",",im[1]];while(++e<io){il.push("V",(im=ik[e])[1],"H",im[0])}return il.join("")}function hC(ik){var e=0,io=ik.length,im=ik[0],il=[im[0],",",im[1]];while(++e<io){il.push("H",(im=ik[e])[0],"V",im[1])}return il.join("")}function b3(ik,e){return ik.length<4?hX(ik):ik[1]+c1(ik.slice(1,ik.length-1),bV(ik,e))}function s(ik,e){return ik.length<3?hX(ik):ik[0]+c1((ik.push(ik[0]),ik),bV([ik[ik.length-2]].concat(ik,[ik[1]]),e))}function dY(ik,e){return ik.length<3?hX(ik):ik[0]+c1(ik,bV(ik,e))}function c1(iq,ip){if(ip.length<1||iq.length!=ip.length&&iq.length!=ip.length+2){return hX(iq)}var ir=iq.length!=ip.length,iv="",it=iq[0],e=iq[1],io=ip[0],iu=io,il=1;if(ir){iv+="Q"+(e[0]-io[0]*2/3)+","+(e[1]-io[1]*2/3)+","+e[0]+","+e[1];it=iq[1];il=2}if(ip.length>1){iu=ip[1];e=iq[il];il++;iv+="C"+(it[0]+io[0])+","+(it[1]+io[1])+","+(e[0]-iu[0])+","+(e[1]-iu[1])+","+e[0]+","+e[1];for(var ik=2;ik<ip.length;ik++,il++){e=iq[il];iu=ip[ik];iv+="S"+(e[0]-iu[0])+","+(e[1]-iu[1])+","+e[0]+","+e[1]}}if(ir){var im=iq[il];iv+="Q"+(e[0]+iu[0]*2/3)+","+(e[1]+iu[1]*2/3)+","+im[0]+","+im[1]}return iv}function bV(iq,io){var il=[],im=(1-io)/2,it,ir=iq[0],ip=iq[1],ik=1,e=iq.length;while(++ik<e){it=ir;ir=ip;ip=iq[ik];il.push([im*(ip[0]-it[0]),im*(ip[1]-it[1])])}return il}function fp(ir){if(ir.length<3){return hX(ir)}var il=1,ik=ir.length,im=ir[0],e=im[0],ip=im[1],iq=[e,e,e,(im=ir[1])[0]],io=[ip,ip,ip,im[1]],it=[e,",",ip,"L",gv(hr,iq),",",gv(hr,io)];ir.push(ir[ik-1]);while(++il<=ik){im=ir[il];iq.shift();iq.push(im[0]);io.shift();io.push(im[1]);bP(it,iq,io)}ir.pop();it.push("L",im);return it.join("")}function bj(im){if(im.length<4){return hX(im)}var ip=[],il=-1,iq=im.length,io,ik=[0],e=[0];while(++il<3){io=im[il];ik.push(io[0]);e.push(io[1])}ip.push(gv(hr,ik)+","+gv(hr,e));--il;while(++il<iq){io=im[il];ik.shift();ik.push(io[0]);e.shift();e.push(io[1]);bP(ip,ik,e)}return ip.join("")}function cQ(io){var iq,im=-1,ir=io.length,e=ir+4,ip,il=[],ik=[];while(++im<4){ip=io[im%ir];il.push(ip[0]);ik.push(ip[1])}iq=[gv(hr,il),",",gv(hr,ik)];--im;while(++im<e){ip=io[im%ir];il.shift();il.push(ip[0]);ik.shift();ik.push(ip[1]);bP(iq,il,ik)}return iq.join("")}function cT(iq,ip){var il=iq.length-1;if(il){var ik=iq[0][0],io=iq[0][1],iu=iq[il][0]-ik,it=iq[il][1]-io,im=-1,e,ir;while(++im<=il){e=iq[im];ir=im/il;e[0]=ip*e[0]+(1-ip)*(ik+ir*iu);e[1]=ip*e[1]+(1-ip)*(io+ir*it)}}return fp(iq)}function gv(ik,e){return ik[0]*e[0]+ik[1]*e[1]+ik[2]*e[2]+ik[3]*e[3]}var hv=[0,2/3,1/3,0],ht=[0,1/3,2/3,0],hr=[0,1/6,2/3,1/6];function bP(ik,e,il){ik.push("C",gv(hv,e),",",gv(hv,il),",",gv(ht,e),",",gv(ht,il),",",gv(hr,e),",",gv(hr,il))}function ia(ik,e){return(e[1]-ik[1])/(e[0]-ik[0])}function ef(im){var il=0,ik=im.length-1,e=[],iq=im[0],ip=im[1],io=e[0]=ia(iq,ip);while(++il<ik){e[il]=(io+(io=ia(iq=ip,ip=im[il+1])))/2}e[il]=io;return e}function aw(ir){var io=[],im,iq,ip,it,e=ef(ir),il=-1,ik=ir.length-1;while(++il<ik){im=ia(ir[il],ir[il+1]);if(cJ(im)<gw){e[il]=e[il+1]=0}else{iq=e[il]/im;ip=e[il+1]/im;it=iq*iq+ip*ip;if(it>9){it=im*3/Math.sqrt(it);e[il]=it*iq;e[il+1]=it*ip}}}il=-1;while(++il<=ik){it=(ir[Math.min(ik,il+1)][0]-ir[Math.max(0,il-1)][0])/(6*(1+e[il]*e[il]));io.push([it||0,e[il]*it||0])}return io}function dn(e){return e.length<3?hX(e):e[0]+c1(e,aw(e))}hs.svg.line.radial=function(){var e=fk(R);e.radius=e.x,delete e.x;e.angle=e.y,delete e.y;return e};function R(im){var e,il=-1,ip=im.length,io,ik;while(++il<ip){e=im[il];io=e[0];ik=e[1]+hM;e[0]=io*Math.cos(ik);e[1]=io*Math.sin(ik)}return im}function id(io){var il=h0,ik=h0,iv=0,it=hZ,im=ak,ip=hX,iw=ip.key,ir=ip,iq="L",iu=0.7;function e(iB){var iD=[],ix=[],iK=[],iC=-1,iy=iB.length,iF,iA=U(il),iJ=U(iv),iz=il===ik?function(){return iH}:U(ik),iI=iv===it?function(){return iG}:U(it),iH,iG;function iE(){iD.push("M",ip(io(iK),iu),iq,ir(io(ix.reverse()),iu),"Z")}while(++iC<iy){if(im.call(this,iF=iB[iC],iC)){ix.push([iH=+iA.call(this,iF,iC),iG=+iJ.call(this,iF,iC)]);iK.push([+iz.call(this,iF,iC),+iI.call(this,iF,iC)])}else{if(ix.length){iE();ix=[];iK=[]}}}if(ix.length){iE()}return iD.length?iD.join(""):null}e.x=function(ix){if(!arguments.length){return ik}il=ik=ix;return e};e.x0=function(ix){if(!arguments.length){return il}il=ix;return e};e.x1=function(ix){if(!arguments.length){return ik}ik=ix;return e};e.y=function(ix){if(!arguments.length){return it}iv=it=ix;return e};e.y0=function(ix){if(!arguments.length){return iv}iv=ix;return e};e.y1=function(ix){if(!arguments.length){return it}it=ix;return e};e.defined=function(ix){if(!arguments.length){return im}im=ix;return e};e.interpolate=function(ix){if(!arguments.length){return iw}if(typeof ix==="function"){iw=ip=ix}else{iw=(ip=cd.get(ix)||hX).key}ir=ip.reverse||ip;iq=ip.closed?"M":"L";return e};e.tension=function(ix){if(!arguments.length){return iu}iu=ix;return e};return e}bm.reverse=hC;hC.reverse=bm;hs.svg.area=function(){return id(gt)};hs.svg.area.radial=function(){var e=id(R);e.radius=e.x,delete e.x;e.innerRadius=e.x0,delete e.x0;e.outerRadius=e.x1,delete e.x1;e.angle=e.y,delete e.y;e.startAngle=e.y0,delete e.y0;e.endAngle=e.y1,delete e.y1;return e};hs.svg.chord=function(){var e=hN,ir=hW,iq=J,it=gp,io=ar;function ip(iy,iw){var ix=iu(this,e,iy,iw),iv=iu(this,ir,iy,iw);return"M"+ix.p0+ik(ix.r,ix.p1,ix.a1-ix.a0)+(il(ix,iv)?im(ix.r,ix.p1,ix.r,ix.p0):im(ix.r,ix.p1,iv.r,iv.p0)+ik(iv.r,iv.p1,iv.a1-iv.a0)+im(iv.r,iv.p1,ix.r,ix.p0))+"Z"}function iu(iy,iB,iC,iz){var ix=iB.call(iy,iC,iz),iA=iq.call(iy,ix,iz),iw=it.call(iy,ix,iz)+hM,iv=io.call(iy,ix,iz)+hM;return{r:iA,a0:iw,a1:iv,p0:[iA*Math.cos(iw),iA*Math.sin(iw)],p1:[iA*Math.cos(iv),iA*Math.sin(iv)]}}function il(iw,iv){return iw.a0==iv.a0&&iw.a1==iv.a1}function ik(iw,ix,iv){return"A"+iw+","+iw+" 0 "+ +(iv>gm)+",1 "+ix}function im(iw,iy,iv,ix){return"Q 0,0 "+ix}ip.radius=function(iv){if(!arguments.length){return iq}iq=U(iv);return ip};ip.source=function(iv){if(!arguments.length){return e}e=U(iv);return ip};ip.target=function(iv){if(!arguments.length){return ir}ir=U(iv);return ip};ip.startAngle=function(iv){if(!arguments.length){return it}it=U(iv);return ip};ip.endAngle=function(iv){if(!arguments.length){return io}io=U(iv);return ip};return ip};function J(e){return e.radius}hs.svg.diagonal=function(){var il=hN,im=hW,e=m;function ik(it,ip){var iu=il.call(this,it,ip),iq=im.call(this,it,ip),io=(iu.y+iq.y)/2,ir=[iu,{x:iu.x,y:io},{x:iq.x,y:io},iq];ir=ir.map(e);return"M"+ir[0]+"C"+ir[1]+" "+ir[2]+" "+ir[3]}ik.source=function(io){if(!arguments.length){return il}il=U(io);return ik};ik.target=function(io){if(!arguments.length){return im}im=U(io);return ik};ik.projection=function(io){if(!arguments.length){return e}e=io;return ik};return ik};function m(e){return[e.x,e.y]}hs.svg.diagonal.radial=function(){var il=hs.svg.diagonal(),e=m,ik=il.projection;il.projection=function(im){return arguments.length?ik(n(e=im)):e};return il};function n(e){return function(){var im=e.apply(this,arguments),il=im[0],ik=im[1]+hM;return[il*Math.cos(ik),il*Math.sin(ik)]}}hs.svg.symbol=function(){var ik=aW,e=ff;function il(io,im){return(hT.get(ik.call(this,io,im))||cf)(e.call(this,io,im))}il.type=function(im){if(!arguments.length){return ik}ik=U(im);return il};il.size=function(im){if(!arguments.length){return e}e=U(im);return il};return il};function ff(){return 64}function aW(){return"circle"}function cf(e){var ik=Math.sqrt(e/gm);return"M0,"+ik+"A"+ik+","+ik+" 0 1,1 0,"+-ik+"A"+ik+","+ik+" 0 1,1 0,"+ik+"Z"}var hT=hs.map({circle:cf,cross:function(e){var ik=Math.sqrt(e/5)/2;return"M"+-3*ik+","+-ik+"H"+-ik+"V"+-3*ik+"H"+ik+"V"+-ik+"H"+3*ik+"V"+ik+"H"+ik+"V"+3*ik+"H"+-ik+"V"+ik+"H"+-3*ik+"Z"},diamond:function(e){var ik=Math.sqrt(e/(2*cn)),il=ik*cn;return"M0,"+-ik+"L"+il+",0 0,"+ik+" "+-il+",0Z"},square:function(e){var ik=Math.sqrt(e)/2;return"M"+-ik+","+-ik+"L"+ik+","+-ik+" "+ik+","+ik+" "+-ik+","+ik+"Z"},"triangle-down":function(e){var il=Math.sqrt(e/b7),ik=il*b7/2;return"M0,"+ik+"L"+il+","+-ik+" "+-il+","+-ik+"Z"},"triangle-up":function(e){var il=Math.sqrt(e/b7),ik=il*b7/2;return"M0,"+-ik+"L"+il+","+ik+" "+-il+","+ik+"Z"}});hs.svg.symbolTypes=hT.keys();var b7=Math.sqrt(3),cn=Math.tan(30*L);function gW(e,ik){ic(e,eA);e.id=ik;return e}var eA=[],hg=0,au,eb;eA.call=d4.call;eA.empty=d4.empty;eA.node=d4.node;eA.size=d4.size;hs.transition=function(e){return arguments.length?au?e.transition():e:gY.transition()};hs.transition.prototype=eA;eA.select=function(iq){var e=this.id,im=[],iv,ik,io;iq=z(iq);for(var ir=-1,ip=this.length;++ir<ip;){im.push(iv=[]);for(var iu=this[ir],it=-1,il=iu.length;++it<il;){if((io=iu[it])&&(ik=iq.call(io,io.__data__,it,ir))){if("__data__" in io){ik.__data__=io.__data__}fM(ik,it,e,io.__transition__[e]);iv.push(ik)}else{iv.push(null)}}}return gW(im,e)};eA.selectAll=function(it){var ik=this.id,ip=[],iz,e,ir,il,ix;it=c5(it);for(var iv=-1,iq=this.length;++iv<iq;){for(var iy=this[iv],iw=-1,io=iy.length;++iw<io;){if(ir=iy[iw]){ix=ir.__transition__[ik];e=it.call(ir,ir.__data__,iw,iv);ip.push(iz=[]);for(var iu=-1,im=e.length;++iu<im;){if(il=e[iu]){fM(il,iu,ik,ix)}iz.push(il)}}}}return gW(ip,ik)};eA.filter=function(e){var il=[],it,ir,im;if(typeof e!=="function"){e=a9(e)}for(var ip=0,io=this.length;ip<io;ip++){il.push(it=[]);for(var ir=this[ip],iq=0,ik=ir.length;iq<ik;iq++){if((im=ir[iq])&&e.call(im,im.__data__,iq)){it.push(im)}}}return gW(il,this.id)};eA.tween=function(e,ik){var il=this.id;if(arguments.length<2){return this.node().__transition__[il].tween.get(e)}return cL(this,ik==null?function(im){im.__transition__[il].tween.remove(e)}:function(im){im.__transition__[il].tween.set(e,ik)})};function hS(e,ik,im,il){var io=e.id;return cL(e,typeof im==="function"?function(ir,iq,ip){ir.__transition__[io].tween.set(ik,il(im.call(ir,ir.__data__,iq,ip)))}:(im=il(im),function(ip){ip.__transition__[io].tween.set(ik,im)}))}eA.attr=function(e,ip){if(arguments.length<2){for(ip in e){this.attr(ip,e[ip])}return this}var im=e=="transform"?eo:fN,il=hs.ns.qualify(e);function ik(){this.removeAttribute(il)}function ir(){this.removeAttributeNS(il.space,il.local)}function io(it){return it==null?ik:(it+="",function(){var iu=this.getAttribute(il),iv;return iu!==it&&(iv=im(iu,it),function(iw){this.setAttribute(il,iv(iw))})})}function iq(it){return it==null?ir:(it+="",function(){var iu=this.getAttributeNS(il.space,il.local),iv;return iu!==it&&(iv=im(iu,it),function(iw){this.setAttributeNS(il.space,il.local,iv(iw))})})}return hS(this,"attr."+e,ip,il.local?iq:io)};eA.attrTween=function(e,il){var ik=hs.ns.qualify(e);function im(ir,ip){var iq=il.call(this,ir,ip,this.getAttribute(ik));return iq&&function(it){this.setAttribute(ik,iq(it))}}function io(ir,ip){var iq=il.call(this,ir,ip,this.getAttributeNS(ik.space,ik.local));return iq&&function(it){this.setAttributeNS(ik.space,ik.local,iq(it))}}return this.tween("attr."+e,ik.local?io:im)};eA.style=function(il,io,im){var ip=arguments.length;if(ip<3){if(typeof il!=="string"){if(ip<2){io=""}for(im in il){this.style(im,il[im],io)}return this}im=""}function ik(){this.style.removeProperty(il)}function e(iq){return iq==null?ik:(iq+="",function(){var ir=fJ.getComputedStyle(this,null).getPropertyValue(il),it;return ir!==iq&&(it=fN(ir,iq),function(iu){this.style.setProperty(il,it(iu),im)})})}return hS(this,"style."+il,io,e)};eA.styleTween=function(e,il,ik){if(arguments.length<3){ik=""}function im(iq,io){var ip=il.call(this,iq,io,fJ.getComputedStyle(this,null).getPropertyValue(e));return ip&&function(ir){this.style.setProperty(e,ip(ir),ik)}}return this.tween("style."+e,im)};eA.text=function(e){return hS(this,"text",e,ij)};function ij(e){if(e==null){e=""}return function(){this.textContent=e}}eA.remove=function(){return this.each("end.transition",function(){var e;if(this.__transition__.count<2&&(e=this.parentNode)){e.removeChild(this)}})};eA.ease=function(e){var ik=this.id;if(arguments.length<1){return this.node().__transition__[ik].ease}if(typeof e!=="function"){e=hs.ease.apply(hs,arguments)}return cL(this,function(il){il.__transition__[ik].ease=e})};eA.delay=function(e){var ik=this.id;return cL(this,typeof e==="function"?function(io,im,il){io.__transition__[ik].delay=+e.call(io,io.__data__,im,il)}:(e=+e,function(il){il.__transition__[ik].delay=e}))};eA.duration=function(e){var ik=this.id;return cL(this,typeof e==="function"?function(io,im,il){io.__transition__[ik].duration=Math.max(1,e.call(io,io.__data__,im,il))}:(e=Math.max(1,e),function(il){il.__transition__[ik].duration=e}))};eA.each=function(ik,il){var io=this.id;if(arguments.length<2){var e=eb,im=au;au=io;cL(this,function(ir,iq,ip){eb=ir.__transition__[io];ik.call(ir,ir.__data__,iq,ip)});eb=e;au=im}else{cL(this,function(ip){var iq=ip.__transition__[io];(iq.event||(iq.event=hs.dispatch("start","end"))).on(ik,il)})}return this};eA.transition=function(){var iv=this.id,iu=++hg,ik=[],it,ir,im,iq;for(var io=0,il=this.length;io<il;io++){ik.push(it=[]);for(var ir=this[io],ip=0,e=ir.length;ip<e;ip++){if(im=ir[ip]){iq=Object.create(im.__transition__[iv]);iq.delay+=iq.duration;fM(im,ip,iu,iq)}it.push(im)}}return gW(ik,iu)};function fM(im,il,iq,e){var ik=im.__transition__||(im.__transition__={active:0,count:0}),ip=ik[iq];if(!ip){var io=e.time;ip=ik[iq]={tween:new aJ(),time:io,ease:e.ease,delay:e.delay,duration:e.duration};++ik.count;hs.timer(function(iB){var iy=im.__data__,iu=ip.ease,iw=ip.delay,iv=ip.duration,ir=dp,iA=[];ir.t=iw+io;if(iw<=iB){return it(iB-iw)}ir.c=it;function it(iC){if(ik.active>iq){return iz()}ik.active=iq;ip.event&&ip.event.start.call(im,iy,il);ip.tween.forEach(function(iD,iE){if(iE=iE.call(im,iy,il)){iA.push(iE)}});hs.timer(function(){ir.c=ix(iC||1)?ak:ix;return 1},0,io)}function ix(iC){if(ik.active!==iq){return iz()}var iD=iC/iv,iE=iu(iD),iF=iA.length;while(iF>0){iA[--iF].call(im,iE)}if(iD>=1){ip.event&&ip.event.end.call(im,iy,il);return iz()}}function iz(){if(--ik.count){delete ik[iq]}else{delete im.__transition__}return 1}},0,io)}}hs.svg.axis=function(){var il=hs.scale.linear(),io=h2,e=6,ip=6,it=3,ir=[10],im=null,iq;function ik(iu){iu.each(function(){var iL=hs.select(this);var iI=this.__chart__||il,iH=this.__chart__=il.copy();var iN=im==null?iH.ticks?iH.ticks.apply(iH,ir):iH.domain():im,iG=iq==null?iH.tickFormat?iH.tickFormat.apply(iH,ir):gt:iq,iJ=iL.selectAll(".tick").data(iN,iH),iD=iJ.enter().insert("g",".domain").attr("class","tick").style("opacity",gw),iF=hs.transition(iJ.exit()).style("opacity",gw).remove(),ix=hs.transition(iJ).style("opacity",1),iv;var iC=a0(iH),iE=iL.selectAll(".domain").data([0]),iO=(iE.enter().append("path").attr("class","domain"),hs.transition(iE));iD.append("line");iD.append("text");var iw=iD.select("line"),iM=ix.select("line"),iB=iJ.select("text").text(iG),iy=iD.select("text"),iK=ix.select("text");switch(io){case"bottom":iv=fw;iw.attr("y2",e);iy.attr("y",Math.max(e,0)+it);iM.attr("x2",0).attr("y2",e);iK.attr("x",0).attr("y",Math.max(e,0)+it);iB.attr("dy",".71em").style("text-anchor","middle");iO.attr("d","M"+iC[0]+","+ip+"V0H"+iC[1]+"V"+ip);break;case"top":iv=fw;iw.attr("y2",-e);iy.attr("y",-(Math.max(e,0)+it));iM.attr("x2",0).attr("y2",-e);iK.attr("x",0).attr("y",-(Math.max(e,0)+it));iB.attr("dy","0em").style("text-anchor","middle");iO.attr("d","M"+iC[0]+","+-ip+"V0H"+iC[1]+"V"+-ip);break;case"left":iv=fv;iw.attr("x2",-e);iy.attr("x",-(Math.max(e,0)+it));iM.attr("x2",-e).attr("y2",0);iK.attr("x",-(Math.max(e,0)+it)).attr("y",0);iB.attr("dy",".32em").style("text-anchor","end");iO.attr("d","M"+-ip+","+iC[0]+"H0V"+iC[1]+"H"+-ip);break;case"right":iv=fv;iw.attr("x2",e);iy.attr("x",Math.max(e,0)+it);iM.attr("x2",e).attr("y2",0);iK.attr("x",Math.max(e,0)+it).attr("y",0);iB.attr("dy",".32em").style("text-anchor","start");iO.attr("d","M"+ip+","+iC[0]+"H0V"+iC[1]+"H"+ip);break}if(iH.rangeBand){var iA=iH.rangeBand()/2,iz=function(iP){return iH(iP)+iA};iD.call(iv,iz);ix.call(iv,iz)}else{iD.call(iv,iI);ix.call(iv,iH);iF.call(iv,iH)}})}ik.scale=function(iu){if(!arguments.length){return il}il=iu;return ik};ik.orient=function(iu){if(!arguments.length){return io}io=iu in fa?iu+"":h2;return ik};ik.ticks=function(){if(!arguments.length){return ir}ir=arguments;return ik};ik.tickValues=function(iu){if(!arguments.length){return im}im=iu;return ik};ik.tickFormat=function(iu){if(!arguments.length){return iq}iq=iu;return ik};ik.tickSize=function(iu){var iv=arguments.length;if(!iv){return e}e=+iu;ip=+arguments[iv-1];return ik};ik.innerTickSize=function(iu){if(!arguments.length){return e}e=+iu;return ik};ik.outerTickSize=function(iu){if(!arguments.length){return ip}ip=+iu;return ik};ik.tickPadding=function(iu){if(!arguments.length){return it}it=+iu;return ik};ik.tickSubdivide=function(){return arguments.length&&ik};return ik};var h2="bottom",fa={top:1,right:1,bottom:1,left:1};function fw(ik,e){ik.attr("transform",function(il){return"translate("+e(il)+",0)"})}function fv(e,ik){e.attr("transform",function(il){return"translate(0,"+ik(il)+")"})}hs.svg.brush=function(){var ik=hn(it,"brushstart","brush","brushend"),iw=null,iu=null,il=[0,0],ir=[0,0],iv,io,e=true,iq=true,ix=av[0];function it(iA){iA.each(function(){var iG=hs.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",iy).on("touchstart.brush",iy);var iF=iG.selectAll(".background").data([0]);iF.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair");iG.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var iE=iG.selectAll(".resize").data(ix,gt);iE.exit().remove();iE.enter().append("g").attr("class",function(iH){return"resize "+iH}).style("cursor",function(iH){return e2[iH]}).append("rect").attr("x",function(iH){return/[ew]$/.test(iH)?-3:null}).attr("y",function(iH){return/^[ns]/.test(iH)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden");iE.style("display",it.empty()?"none":null);var iD=hs.transition(iG),iB=hs.transition(iF),iC;if(iw){iC=a0(iw);iB.attr("x",iC[0]).attr("width",iC[1]-iC[0]);ip(iD)}if(iu){iC=a0(iu);iB.attr("y",iC[0]).attr("height",iC[1]-iC[0]);im(iD)}iz(iD)})}it.event=function(iA){iA.each(function(){var iB=ik.of(this,arguments),iC={x:il,y:ir,i:iv,j:io},iD=this.__chart__||iC;this.__chart__=iC;if(au){hs.select(this).transition().each("start.brush",function(){iv=iD.i;io=iD.j;il=iD.x;ir=iD.y;iB({type:"brushstart"})}).tween("brush:brush",function(){var iE=eU(il,iC.x),iF=eU(ir,iC.y);iv=io=null;return function(iG){il=iC.x=iE(iG);ir=iC.y=iF(iG);iB({type:"brush",mode:"resize"})}}).each("end.brush",function(){iv=iC.i;io=iC.j;iB({type:"brush",mode:"resize"});iB({type:"brushend"})})}else{iB({type:"brushstart"});iB({type:"brush",mode:"resize"});iB({type:"brushend"})}})};function iz(iA){iA.selectAll(".resize").attr("transform",function(iB){return"translate("+il[+/e$/.test(iB)]+","+ir[+/^s/.test(iB)]+")"})}function ip(iA){iA.select(".extent").attr("x",il[0]);iA.selectAll(".extent,.n>rect,.s>rect").attr("width",il[1]-il[0])}function im(iA){iA.select(".extent").attr("y",ir[0]);iA.selectAll(".extent,.e>rect,.w>rect").attr("height",ir[1]-ir[0])}function iy(){var iT=this,iB=hs.select(hs.event.target),iI=ik.of(iT,arguments),iO=hs.select(iT),iQ=iB.datum(),iM=!/^(n|s)$/.test(iQ)&&iw,iK=!/^(e|w)$/.test(iQ)&&iu,iL=iB.classed("extent"),iD=bL(),iR,iS=hs.mouse(iT),iC;var iG=hs.select(fJ).on("keydown.brush",iJ).on("keyup.brush",iF);if(hs.event.changedTouches){iG.on("touchmove.brush",iH).on("touchend.brush",iA)}else{iG.on("mousemove.brush",iH).on("mouseup.brush",iA)}iO.interrupt().selectAll("*").interrupt();if(iL){iS[0]=il[0]-iS[0];iS[1]=ir[0]-iS[1]}else{if(iQ){var iP=+/w$/.test(iQ),iN=+/^n/.test(iQ);iC=[il[1-iP]-iS[0],ir[1-iN]-iS[1]];iS[0]=il[iP];iS[1]=ir[iN]}else{if(hs.event.altKey){iR=iS.slice()}}}iO.style("pointer-events","none").selectAll(".resize").style("display",null);hs.select("body").style("cursor",iB.style("cursor"));iI({type:"brushstart"});iH();function iJ(){if(hs.event.keyCode==32){if(!iL){iR=null;iS[0]-=il[1];iS[1]-=ir[1];iL=2}w()}}function iF(){if(hs.event.keyCode==32&&iL==2){iS[0]+=il[1];iS[1]+=ir[1];iL=0;w()}}function iH(){var iU=hs.mouse(iT),iV=false;if(iC){iU[0]+=iC[0];iU[1]+=iC[1]}if(!iL){if(hs.event.altKey){if(!iR){iR=[(il[0]+il[1])/2,(ir[0]+ir[1])/2]}iS[0]=il[+(iU[0]<iR[0])];iS[1]=ir[+(iU[1]<iR[1])]}else{iR=null}}if(iM&&iE(iU,iw,0)){ip(iO);iV=true}if(iK&&iE(iU,iu,1)){im(iO);iV=true}if(iV){iz(iO);iI({type:"brush",mode:iL?"move":"resize"})}}function iE(i2,iW,iY){var iZ=a0(iW),iV=iZ[0],iU=iZ[1],i0=iS[iY],i3=iY?ir:il,i4=i3[1]-i3[0],iX,i1;if(iL){iV-=i0;iU-=i4+i0}iX=(iY?iq:e)?Math.max(iV,Math.min(iU,i2[iY])):i2[iY];if(iL){i1=(iX+=i0)+i4}else{if(iR){i0=Math.max(iV,Math.min(iU,2*iR[iY]-iX))}if(i0<iX){i1=iX;iX=i0}else{i1=i0}}if(i3[0]!=iX||i3[1]!=i1){if(iY){io=null}else{iv=null}i3[0]=iX;i3[1]=i1;return true}}function iA(){iH();iO.style("pointer-events","all").selectAll(".resize").style("display",it.empty()?"none":null);hs.select("body").style("cursor",null);iG.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null);iD();iI({type:"brushend"})}}it.x=function(iA){if(!arguments.length){return iw}iw=iA;ix=av[!iw<<1|!iu];return it};it.y=function(iA){if(!arguments.length){return iu}iu=iA;ix=av[!iw<<1|!iu];return it};it.clamp=function(iA){if(!arguments.length){return iw&&iu?[e,iq]:iw?e:iu?iq:null}if(iw&&iu){e=!!iA[0],iq=!!iA[1]}else{if(iw){e=!!iA}else{if(iu){iq=!!iA}}}return it};it.extent=function(iF){var iC,iA,iE,iD,iB;if(!arguments.length){if(iw){if(iv){iC=iv[0],iA=iv[1]}else{iC=il[0],iA=il[1];if(iw.invert){iC=iw.invert(iC),iA=iw.invert(iA)}if(iA<iC){iB=iC,iC=iA,iA=iB}}}if(iu){if(io){iE=io[0],iD=io[1]}else{iE=ir[0],iD=ir[1];if(iu.invert){iE=iu.invert(iE),iD=iu.invert(iD)}if(iD<iE){iB=iE,iE=iD,iD=iB}}}return iw&&iu?[[iC,iE],[iA,iD]]:iw?[iC,iA]:iu&&[iE,iD]}if(iw){iC=iF[0],iA=iF[1];if(iu){iC=iC[0],iA=iA[0]}iv=[iC,iA];if(iw.invert){iC=iw(iC),iA=iw(iA)}if(iA<iC){iB=iC,iC=iA,iA=iB}if(iC!=il[0]||iA!=il[1]){il=[iC,iA]}}if(iu){iE=iF[0],iD=iF[1];if(iw){iE=iE[1],iD=iD[1]}io=[iE,iD];if(iu.invert){iE=iu(iE),iD=iu(iD)}if(iD<iE){iB=iE,iE=iD,iD=iB}if(iE!=ir[0]||iD!=ir[1]){ir=[iE,iD]}}return it};it.clear=function(){if(!it.empty()){il=[0,0],ir=[0,0];iv=io=null}return it};it.empty=function(){return !!iw&&il[0]==il[1]||!!iu&&ir[0]==ir[1]};return hs.rebind(it,ik,"on")};var e2={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"};var av=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];var fR=hs.time={},hw=Date,p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function ck(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}ck.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){gb.setUTCDate.apply(this._,arguments)},setDay:function(){gb.setUTCDay.apply(this._,arguments)},setFullYear:function(){gb.setUTCFullYear.apply(this._,arguments)},setHours:function(){gb.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){gb.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){gb.setUTCMinutes.apply(this._,arguments)},setMonth:function(){gb.setUTCMonth.apply(this._,arguments)},setSeconds:function(){gb.setUTCSeconds.apply(this._,arguments)},setTime:function(){gb.setTime.apply(this._,arguments)}};var gb=Date.prototype;var T="%a %b %e %X %Y",e1="%m/%d/%Y",df="%H:%M:%S";var cm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],cW=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],cr=["January","February","March","April","May","June","July","August","September","October","November","December"],aL=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c3(ip,e,ik){function it(iu){var iw=ip(iu),iv=im(iw,1);return iu-iw<iv-iu?iw:iv}function ir(iu){e(iu=ip(new hw(iu-1)),1);return iu}function im(iv,iu){e(iv=new hw(+iv),iu);return iv}function io(iw,iv,iu){var ix=ir(iw),iy=[];if(iu>1){while(ix<iv){if(!(ik(ix)%iu)){iy.push(new Date(+ix))}e(ix,1)}}else{while(ix<iv){iy.push(new Date(+ix)),e(ix,1)}}return iy}function il(ix,iw,iv){try{hw=ck;var iu=new ck();iu._=ix;return io(iu,iw,iv)}finally{hw=Date}}ip.floor=ip;ip.round=it;ip.ceil=ir;ip.offset=im;ip.range=io;var iq=ip.utc=dX(ip);iq.floor=iq;iq.round=dX(it);iq.ceil=dX(ir);iq.offset=dX(im);iq.range=il;return ip}function dX(e){return function(il,ik){try{hw=ck;var im=new ck();im._=il;return e(im,ik)._}finally{hw=Date}}}fR.year=c3(function(e){e=fR.day(e);e.setMonth(0,1);return e},function(e,ik){e.setFullYear(e.getFullYear()+ik)},function(e){return e.getFullYear()});fR.years=fR.year.range;fR.years.utc=fR.year.utc.range;fR.day=c3(function(ik){var e=new hw(2000,0);e.setFullYear(ik.getFullYear(),ik.getMonth(),ik.getDate());return e},function(e,ik){e.setDate(e.getDate()+ik)},function(e){return e.getDate()-1});fR.days=fR.day.range;fR.days.utc=fR.day.utc.range;fR.dayOfYear=function(e){var ik=fR.year(e);return Math.floor((e-ik-(e.getTimezoneOffset()-ik.getTimezoneOffset())*60000)/86400000)};p.forEach(function(ik,il){ik=ik.toLowerCase();il=7-il;var e=fR[ik]=c3(function(im){(im=fR.day(im)).setDate(im.getDate()-(im.getDay()+il)%7);return im},function(im,io){im.setDate(im.getDate()+Math.floor(io)*7)},function(io){var im=fR.year(io).getDay();return Math.floor((fR.dayOfYear(io)+(im+il)%7)/7)-(im!==il)});fR[ik+"s"]=e.range;fR[ik+"s"].utc=e.utc.range;fR[ik+"OfYear"]=function(io){var im=fR.year(io).getDay();return Math.floor((fR.dayOfYear(io)+(im+il)%7)/7)}});fR.week=fR.sunday;fR.weeks=fR.sunday.range;fR.weeks.utc=fR.sunday.utc.range;fR.weekOfYear=fR.sundayOfYear;fR.format=ii;function ii(e){var il=e.length;function ik(ip){var io=[],iq=-1,im=0,iu,it,ir;while(++iq<il){if(e.charCodeAt(iq)===37){io.push(e.substring(im,iq));if((it=aO[iu=e.charAt(++iq)])!=null){iu=e.charAt(++iq)}if(ir=gF[iu]){iu=ir(ip,it==null?iu==="e"?" ":"0":it)}io.push(iu);im=iq+1}}io.push(e.substring(im,iq));return io.join("")}ik.parse=function(ip){var ir={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},iq=ea(ir,e,ip,0);if(iq!=ip.length){return null}if("p" in ir){ir.H=ir.H%12+ir.p*12}var im=ir.Z!=null&&hw!==ck,io=new (im?ck:hw)();if("j" in ir){io.setFullYear(ir.y,0,ir.j)}else{if("w" in ir&&("W" in ir||"U" in ir)){io.setFullYear(ir.y,0,1);io.setFullYear(ir.y,0,"W" in ir?(ir.w+6)%7+ir.W*7-(io.getDay()+5)%7:ir.w+ir.U*7-(io.getDay()+6)%7)}else{io.setFullYear(ir.y,ir.m,ir.d)}}io.setHours(ir.H+Math.floor(ir.Z/100),ir.M+ir.Z%100,ir.S,ir.L);return im?io._:io};ik.toString=function(){return e};return ik}function ea(im,it,iq,io){var ir,e,iu,ip=0,ik=it.length,il=iq.length;while(ip<ik){if(io>=il){return -1}ir=it.charCodeAt(ip++);if(ir===37){iu=it.charAt(ip++);e=hU[iu in aO?it.charAt(ip++):iu];if(!e||(io=e(im,iq,io))<0){return -1}}else{if(ir!=iq.charCodeAt(io++)){return -1}}}return io}function cN(e){return new RegExp("^(?:"+e.map(hs.requote).join("|")+")","i")}function g0(il){var ik=new aJ(),e=-1,im=il.length;while(++e<im){ik.set(il[e].toLowerCase(),e)}return ik}function dB(io,ip,il){var e=io<0?"-":"",ik=(e?-io:io)+"",im=ik.length;return e+(im<il?new Array(il-im+1).join(ip)+ik:ik)}var hG=cN(cm),bc=g0(cm),fT=cN(cW),eg=g0(cW),hd=cN(cr),fG=g0(cr),e6=cN(aL),fd=g0(aL),fi=/^%/;var aO={"-":"",_:" ","0":"0"};var gF={a:function(e){return cW[e.getDay()]},A:function(e){return cm[e.getDay()]},b:function(e){return aL[e.getMonth()]},B:function(e){return cr[e.getMonth()]},c:ii(T),d:function(ik,e){return dB(ik.getDate(),e,2)},e:function(ik,e){return dB(ik.getDate(),e,2)},H:function(ik,e){return dB(ik.getHours(),e,2)},I:function(ik,e){return dB(ik.getHours()%12||12,e,2)},j:function(ik,e){return dB(1+fR.dayOfYear(ik),e,3)},L:function(ik,e){return dB(ik.getMilliseconds(),e,3)},m:function(ik,e){return dB(ik.getMonth()+1,e,2)},M:function(ik,e){return dB(ik.getMinutes(),e,2)},p:function(e){return e.getHours()>=12?"PM":"AM"},S:function(ik,e){return dB(ik.getSeconds(),e,2)},U:function(ik,e){return dB(fR.sundayOfYear(ik),e,2)},w:function(e){return e.getDay()},W:function(ik,e){return dB(fR.mondayOfYear(ik),e,2)},x:ii(e1),X:ii(df),y:function(ik,e){return dB(ik.getFullYear()%100,e,2)},Y:function(ik,e){return dB(ik.getFullYear()%10000,e,4)},Z:f6,"%":function(){return"%"}};var hU={a:g7,A:cG,b:a2,B:e7,c:eB,d:b2,e:b2,H:aR,I:aR,j:G,L:g2,m:gP,M:c0,p:hE,S:d2,U:bs,w:dW,W:dM,x:ie,X:gM,y:Q,Y:bz,Z:a5,"%":fC};function g7(ik,e,il){fT.lastIndex=0;var im=fT.exec(e.substring(il));return im?(ik.w=eg.get(im[0].toLowerCase()),il+im[0].length):-1}function cG(ik,e,il){hG.lastIndex=0;var im=hG.exec(e.substring(il));return im?(ik.w=bc.get(im[0].toLowerCase()),il+im[0].length):-1}function dW(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+1));return im?(ik.w=+im[0],il+im[0].length):-1}function bs(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il));return im?(ik.U=+im[0],il+im[0].length):-1}function dM(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il));return im?(ik.W=+im[0],il+im[0].length):-1}function a2(ik,e,il){e6.lastIndex=0;var im=e6.exec(e.substring(il));return im?(ik.m=fd.get(im[0].toLowerCase()),il+im[0].length):-1}function e7(ik,e,il){hd.lastIndex=0;var im=hd.exec(e.substring(il));return im?(ik.m=fG.get(im[0].toLowerCase()),il+im[0].length):-1}function eB(ik,e,il){return ea(ik,gF.c.toString(),e,il)}function ie(ik,e,il){return ea(ik,gF.x.toString(),e,il)}function gM(ik,e,il){return ea(ik,gF.X.toString(),e,il)}function bz(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+4));return im?(ik.y=+im[0],il+im[0].length):-1}function Q(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+2));return im?(ik.y=c6(+im[0]),il+im[0].length):-1}function a5(ik,e,il){return/^[+-]\d{4}$/.test(e=e.substring(il,il+5))?(ik.Z=+e,il+5):-1}function c6(e){return e+(e>68?1900:2000)}function gP(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+2));return im?(ik.m=im[0]-1,il+im[0].length):-1}function b2(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+2));return im?(ik.d=+im[0],il+im[0].length):-1}function G(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+3));return im?(ik.j=+im[0],il+im[0].length):-1}function aR(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+2));return im?(ik.H=+im[0],il+im[0].length):-1}function c0(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+2));return im?(ik.M=+im[0],il+im[0].length):-1}function d2(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+2));return im?(ik.S=+im[0],il+im[0].length):-1}function g2(ik,e,il){gf.lastIndex=0;var im=gf.exec(e.substring(il,il+3));return im?(ik.L=+im[0],il+im[0].length):-1}var gf=/^\s*\d+/;function hE(ik,e,il){var im=f.get(e.substring(il,il+=2).toLowerCase());return im==null?-1:(ik.p=im,il)}var f=hs.map({am:0,pm:1});function f6(io){var im=io.getTimezoneOffset(),il=im>0?"-":"+",ik=~~(cJ(im)/60),e=cJ(im)%60;return il+dB(ik,"0",2)+dB(e,"0",2)}function fC(ik,e,il){fi.lastIndex=0;var im=fi.exec(e.substring(il,il+1));return im?il+im[0].length:-1}ii.utc=dk;function dk(ik){var e=ii(ik);function il(im){try{hw=ck;var io=new hw();io._=im;return e(io)}finally{hw=Date}}il.parse=function(io){try{hw=ck;var im=e.parse(io);return im&&im._}finally{hw=Date}};il.toString=e.toString;return il}var dU=dk("%Y-%m-%dT%H:%M:%S.%LZ");ii.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?dA:dU;function dA(e){return e.toISOString()}dA.parse=function(ik){var e=new Date(ik);return isNaN(e)?null:e};dA.toString=dU.toString;fR.second=c3(function(e){return new hw(Math.floor(e/1000)*1000)},function(e,ik){e.setTime(e.getTime()+Math.floor(ik)*1000)},function(e){return e.getSeconds()});fR.seconds=fR.second.range;fR.seconds.utc=fR.second.utc.range;fR.minute=c3(function(e){return new hw(Math.floor(e/60000)*60000)},function(e,ik){e.setTime(e.getTime()+Math.floor(ik)*60000)},function(e){return e.getMinutes()});fR.minutes=fR.minute.range;fR.minutes.utc=fR.minute.utc.range;fR.hour=c3(function(e){var ik=e.getTimezoneOffset()/60;return new hw((Math.floor(e/3600000-ik)+ik)*3600000)},function(e,ik){e.setTime(e.getTime()+Math.floor(ik)*3600000)},function(e){return e.getHours()});fR.hours=fR.hour.range;fR.hours.utc=fR.hour.utc.range;fR.month=c3(function(e){e=fR.day(e);e.setDate(1);return e},function(e,ik){e.setMonth(e.getMonth()+ik)},function(e){return e.getMonth()});fR.months=fR.month.range;fR.months.utc=fR.month.utc.range;function bp(e,ik,il){function im(ip){return e(ip)}im.invert=function(ip){return ga(e.invert(ip))};im.domain=function(ip){if(!arguments.length){return e.domain().map(ga)}e.domain(ip);return im};function io(ir,it){var iq=ir[1]-ir[0],iu=iq/it,ip=hs.bisect(fm,iu);return ip==fm.length?[ik.year,q(ir.map(function(iv){return iv/31536000000}),it)[2]]:!ip?[cB,q(ir,it)[2]]:ik[iu/fm[ip-1]<fm[ip]/iu?ip-1:ip]}im.nice=function(iq,it){var iu=im.domain(),ir=ey(iu),iv=iq==null?io(ir,10):typeof iq==="number"&&io(ir,iq);if(iv){iq=iv[0],it=iv[1]}function ip(iw){return !isNaN(iw)&&!iq.range(iw,ga(+iw+1),it).length}return im.domain(gr(iu,it>1?{floor:function(iw){while(ip(iw=iq.floor(iw))){iw=ga(iw-1)}return iw},ceil:function(iw){while(ip(iw=iq.ceil(iw))){iw=ga(+iw+1)}return iw}}:iq))};im.ticks=function(ip,ir){var iq=ey(im.domain()),it=ip==null?io(iq,10):typeof ip==="number"?io(iq,ip):!ip.range&&[{range:ip},ir];if(it){ip=it[0],ir=it[1]}return ip.range(iq[0],ga(+iq[1]+1),ir<1?1:ir)};im.tickFormat=function(){return il};im.copy=function(){return bp(e.copy(),ik,il)};return gj(im,e)}function ga(e){return new Date(e)}function cZ(e){return function(ik){var il=e.length-1,im=e[il];while(!im[1](ik)){im=e[--il]}return im[0](ik)}}var fm=[1000,5000,15000,30000,60000,300000,900000,1800000,3600000,10800000,21600000,43200000,86400000,172800000,604800000,2592000000,7776000000,31536000000];var cF=[[fR.second,1],[fR.second,5],[fR.second,15],[fR.second,30],[fR.minute,1],[fR.minute,5],[fR.minute,15],[fR.minute,30],[fR.hour,1],[fR.hour,3],[fR.hour,6],[fR.hour,12],[fR.day,1],[fR.day,2],[fR.week,1],[fR.month,1],[fR.month,3],[fR.year,1]];var fH=[[ii("%Y"),ak],[ii("%B"),function(e){return e.getMonth()}],[ii("%b %d"),function(e){return e.getDate()!=1}],[ii("%a %d"),function(e){return e.getDay()&&e.getDate()!=1}],[ii("%I %p"),function(e){return e.getHours()}],[ii("%I:%M"),function(e){return e.getMinutes()}],[ii(":%S"),function(e){return e.getSeconds()}],[ii(".%L"),function(e){return e.getMilliseconds()}]];var V=cZ(fH);cF.year=fR.year;fR.scale=function(){return bp(hs.scale.linear(),cF,V)};var cB={range:function(il,e,ik){return hs.range(+il,+e,ik).map(ga)}};var h1=cF.map(function(e){return[e[0].utc,e[1]]});var ch=[[dk("%Y"),ak],[dk("%B"),function(e){return e.getUTCMonth()}],[dk("%b %d"),function(e){return e.getUTCDate()!=1}],[dk("%a %d"),function(e){return e.getUTCDay()&&e.getUTCDate()!=1}],[dk("%I %p"),function(e){return e.getUTCHours()}],[dk("%I:%M"),function(e){return e.getUTCMinutes()}],[dk(":%S"),function(e){return e.getUTCSeconds()}],[dk(".%L"),function(e){return e.getUTCMilliseconds()}]];var fc=cZ(ch);h1.year=fR.year.utc;fR.scale.utc=function(){return bp(hs.scale.linear(),h1,fc)};hs.text=aa(function(e){return e.responseText});hs.json=function(e,ik){return h5(e,"application/json",dQ,ik)};function dQ(e){return JSON.parse(e.responseText)}hs.html=function(e,ik){return h5(e,"text/html",ih,ik)};function ih(ik){var e=bN.createRange();e.selectNode(bN.body);return e.createContextualFragment(ik.responseText)}hs.xml=aa(function(e){return e.responseXML});return hs}();var nv={};nv.dev=false;nv.tooltip=nv.tooltip||{};nv.utils=nv.utils||{};nv.models=nv.models||{};nv.charts={};nv.logs={};nv.dom={};if(typeof(module)!=="undefined"&&typeof(exports)!=="undefined"&&typeof(d3)=="undefined"){d3=require("d3")}nv.dispatch=d3.dispatch("render_start","render_end");if(!Function.prototype.bind){Function.prototype.bind=function(a){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var e=Array.prototype.slice.call(arguments,1),d=this,b=function(){},c=function(){return d.apply(this instanceof b&&a?this:a,e.concat(Array.prototype.slice.call(arguments)))};b.prototype=this.prototype;c.prototype=new b();return c}}if(nv.dev){nv.dispatch.on("render_start",function(a){nv.logs.startTime=+new Date()});nv.dispatch.on("render_end",function(a){nv.logs.endTime=+new Date();nv.logs.totalTime=nv.logs.endTime-nv.logs.startTime;nv.log("total",nv.logs.totalTime)})}nv.log=function(){if(nv.dev&&window.console&&console.log&&console.log.apply){console.log.apply(console,arguments)}else{if(nv.dev&&window.console&&typeof console.log=="function"&&Function.prototype.bind){var a=Function.prototype.bind.call(console.log,console);a.apply(console,arguments)}}return arguments[arguments.length-1]};nv.deprecated=function(a,b){if(console&&console.warn){console.warn("nvd3 warning: `"+a+"` has been deprecated. ",b||"")}};nv.render=function render(b){b=b||1;nv.render.active=true;nv.dispatch.render_start();var a=function(){var d,e;for(var c=0;c<b&&(e=nv.render.queue[c]);c++){d=e.generate();if(typeof e.callback==typeof(Function)){e.callback(d)}}nv.render.queue.splice(0,c);if(nv.render.queue.length){setTimeout(a)}else{nv.dispatch.render_end();nv.render.active=false}};setTimeout(a)};nv.render.active=false;nv.render.queue=[];nv.addGraph=function(a){if(typeof arguments[0]===typeof(Function)){a={generate:arguments[0],callback:arguments[1]}}nv.render.queue.push(a);if(!nv.render.active){nv.render()}};if(typeof(module)!=="undefined"&&typeof(exports)!=="undefined"){module.exports=nv}if(typeof(window)!=="undefined"){window.nv=nv}nv.dom.write=function(a){if(window.fastdom!==undefined){return fastdom.mutate(a)}return a()};nv.dom.read=function(a){if(window.fastdom!==undefined){return fastdom.measure(a)}return a()};nv.interactiveGuideline=function(){var b={left:0,top:0},a=null,i=null,h=d3.scale.linear(),e=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),f=true,d=null,j=nv.models.tooltip(),g=window.ActiveXObject;j.duration(0).hideDelay(0).hidden(false);function c(k){k.each(function(o){var l=d3.select(this);var n=(a||960),q=(i||400);var m=l.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([o]);var r=m.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");r.append("g").attr("class","nv-interactiveGuideLine");if(!d){return}function p(){var v=d3.event.clientX-this.getBoundingClientRect().left;var t=d3.event.clientY-this.getBoundingClientRect().top;var x=true;var y=false;if(g){v=d3.event.offsetX;t=d3.event.offsetY;if(d3.event.target.tagName!=="svg"){x=false}if(d3.event.target.className.baseVal.match("nv-legend")){y=true}}if(x){v-=b.left;t-=b.top}if(d3.event.type==="mouseout"||v<0||t<0||v>n||t>q||(d3.event.relatedTarget&&d3.event.relatedTarget.ownerSVGElement===undefined)||y){if(g){if(d3.event.relatedTarget&&d3.event.relatedTarget.ownerSVGElement===undefined&&(d3.event.relatedTarget.className===undefined||d3.event.relatedTarget.className.match(j.nvPointerEventsClass))){return}}e.elementMouseout({mouseX:v,mouseY:t});c.renderGuideLine(null);j.hidden(true);return}else{j.hidden(false)}var u=typeof h.rangeBands==="function";var s=undefined;if(u){var w=d3.bisect(h.range(),v)-1;if(h.range()[w]+h.rangeBand()>=v){s=h.domain()[d3.bisect(h.range(),v)-1]}else{e.elementMouseout({mouseX:v,mouseY:t});c.renderGuideLine(null);j.hidden(true);return}}else{s=h.invert(v)}e.elementMousemove({mouseX:v,mouseY:t,pointXValue:s});if(d3.event.type==="dblclick"){e.elementDblclick({mouseX:v,mouseY:t,pointXValue:s})}if(d3.event.type==="click"){e.elementClick({mouseX:v,mouseY:t,pointXValue:s})}if(d3.event.type==="mousedown"){e.elementMouseDown({mouseX:v,mouseY:t,pointXValue:s})}if(d3.event.type==="mouseup"){e.elementMouseUp({mouseX:v,mouseY:t,pointXValue:s})}}d.on("touchmove",p).on("mousemove",p,true).on("mouseout",p,true).on("mousedown",p,true).on("mouseup",p,true).on("dblclick",p).on("click",p);c.guideLine=null;c.renderGuideLine=function(s){if(!f){return}if(c.guideLine&&c.guideLine.attr("x1")===s){return}nv.dom.write(function(){var t=m.select(".nv-interactiveGuideLine").selectAll("line").data((s!=null)?[nv.utils.NaNtoZero(s)]:[],String);t.enter().append("line").attr("class","nv-guideline").attr("x1",function(u){return u}).attr("x2",function(u){return u}).attr("y1",q).attr("y2",0);t.exit().remove()})}})}c.dispatch=e;c.tooltip=j;c.margin=function(k){if(!arguments.length){return b}b.top=typeof k.top!="undefined"?k.top:b.top;b.left=typeof k.left!="undefined"?k.left:b.left;return c};c.width=function(k){if(!arguments.length){return a}a=k;return c};c.height=function(k){if(!arguments.length){return i}i=k;return c};c.xScale=function(k){if(!arguments.length){return h}h=k;return c};c.showGuideLine=function(k){if(!arguments.length){return f}f=k;return c};c.svgContainer=function(k){if(!arguments.length){return d}d=k;return c};return c};nv.interactiveBisect=function(i,f,b){if(!(i instanceof Array)){return null}var a;if(typeof b!=="function"){a=function(k){return k.x}}else{a=b}var j=function(l,k){return a(l)-k};var c=d3.bisector(j).left;var e=d3.max([0,c(i,f)-1]);var h=a(i[e]);if(typeof h==="undefined"){h=e}if(h===f){return e}var d=d3.min([e+1,i.length-1]);var g=a(i[d]);if(typeof g==="undefined"){g=d}if(Math.abs(g-f)>=Math.abs(h-f)){return e}else{return d}};nv.nearestValueIndex=function(c,b,a){var e=Infinity,d=null;c.forEach(function(g,f){var h=Math.abs(b-g);if(g!=null&&h<=e&&h<a){e=h;d=f}});return d};nv.models.tooltip=function(){var p="nvtooltip-"+Math.floor(Math.random()*100000),x=null,f="w",d=25,n=0,t=null,s=true,k=200,e=null,o={left:null,top:null},j=true,b=100,u=true,h="nv-pointer-events-none";var a=function(A,y,z){return A};var q=function(y){return y};var r=function(z,y){return z};var c=function(D,C){if(D===null){return""}var B=d3.select(document.createElement("table"));if(u){var y=B.selectAll("thead").data([D]).enter().append("thead");y.append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",true).html(q(D.value))}var E=B.selectAll("tbody").data([D]).enter().append("tbody");var z=E.selectAll("tr").data(function(F){return F.series}).enter().append("tr").classed("highlight",function(F){return F.highlight});z.append("td").classed("legend-color-guide",true).append("div").style("background-color",function(F){return F.color});z.append("td").classed("key",true).classed("total",function(F){return !!F.total}).html(function(G,F){return r(G.key,F)});z.append("td").classed("value",true).html(function(G,F){return a(G.value,F,G)});z.filter(function(G,F){return G.percent!==undefined}).append("td").classed("percent",true).html(function(G,F){return"("+d3.format("%")(G.percent)+")"});z.selectAll("td").each(function(H){if(H.highlight){var G=d3.scale.linear().domain([0,1]).range(["#fff",H.color]);var F=0.6;d3.select(this).style("border-bottom-color",G(F)).style("border-top-color",G(F))}});var A=B.node().outerHTML;if(D.footer!==undefined){A+="<div class='footer'>"+D.footer+"</div>"}return A};var w=function(){var z={left:d3.event!==null?d3.event.clientX:0,top:d3.event!==null?d3.event.clientY:0};if(getComputedStyle(document.body).transform!="none"){var y=document.body.getBoundingClientRect();z.left-=y.left;z.top-=y.top}return z};var g=function(y){if(y&&y.series){if(nv.utils.isArray(y.series)){return true}if(nv.utils.isObject(y.series)){y.series=[y.series];return true}}return false};var m=function(F){var y=e.node().offsetHeight,B=e.node().offsetWidth,E=document.documentElement.clientWidth,z=document.documentElement.clientHeight,D,C,A;switch(f){case"e":D=-B-d;C=-(y/2);if(F.left+D<0){D=d}if((A=F.top+C)<0){C-=A}if((A=F.top+C+y)>z){C-=A-z}break;case"w":D=d;C=-(y/2);if(F.left+D+B>E){D=-B-d}if((A=F.top+C)<0){C-=A}if((A=F.top+C+y)>z){C-=A-z}break;case"n":D=-(B/2)-5;C=d;if(F.top+C+y>z){C=-y-d}if((A=F.left+D)<0){D-=A}if((A=F.left+D+B)>E){D-=A-E}break;case"s":D=-(B/2);C=-y-d;if(F.top+C<0){C=d}if((A=F.left+D)<0){D-=A}if((A=F.left+D+B)>E){D-=A-E}break;case"center":D=-(B/2);C=-(y/2);break;default:D=0;C=0;break}return{left:D,top:C}};var v=function(){nv.dom.read(function(){var F=w(),z=m(F),E=F.left+z.left,D=F.top+z.top;if(s){e.interrupt().transition().delay(k).duration(0).style("opacity",0)}else{var B="translate("+o.left+"px, "+o.top+"px)";var y="translate("+Math.round(E)+"px, "+Math.round(D)+"px)";var A=d3.interpolateString(B,y);var C=e.style("opacity")<0.1;e.interrupt().transition().duration(C?0:b).styleTween("transform",function(G){return A},"important").styleTween("-webkit-transform",function(G){return A}).style("-ms-transform",y).style("opacity",1)}o.left=E;o.top=D})};function i(){if(!e||!e.node()){var y=[1];e=d3.select(document.body).select("#"+p).data(y);e.enter().append("div").attr("class","nvtooltip "+(t?t:"xy-tooltip")).attr("id",p).style("top",0).style("left",0).style("opacity",0).style("position","fixed").selectAll("div, table, td, tr").classed(h,true).classed(h,true);e.exit().remove()}}function l(){if(!j){return}if(!g(x)){return}nv.dom.write(function(){i();var y=c(x,e.node());if(y){e.node().innerHTML=y}v()});return l}l.nvPointerEventsClass=h;l.options=nv.utils.optionsFunc.bind(l);l._options=Object.create({},{duration:{get:function(){return b},set:function(y){b=y}},gravity:{get:function(){return f},set:function(y){f=y}},distance:{get:function(){return d},set:function(y){d=y}},snapDistance:{get:function(){return n},set:function(y){n=y}},classes:{get:function(){return t},set:function(y){t=y}},enabled:{get:function(){return j},set:function(y){j=y}},hideDelay:{get:function(){return k},set:function(y){k=y}},contentGenerator:{get:function(){return c},set:function(y){c=y}},valueFormatter:{get:function(){return a},set:function(y){a=y}},headerFormatter:{get:function(){return q},set:function(y){q=y}},keyFormatter:{get:function(){return r},set:function(y){r=y}},headerEnabled:{get:function(){return u},set:function(y){u=y}},position:{get:function(){return w},set:function(y){w=y}},chartContainer:{get:function(){return document.body},set:function(y){nv.deprecated("chartContainer","feature removed after 1.8.3")}},fixedTop:{get:function(){return null},set:function(y){nv.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(y){nv.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return s},set:function(y){if(s!=y){s=!!y;l()}}},data:{get:function(){return x},set:function(y){if(y.point){y.value=y.point.x;y.series=y.series||{};y.series.value=y.point.y;y.series.color=y.point.color||y.series.color}x=y}},node:{get:function(){return e.node()},set:function(y){}},id:{get:function(){return p},set:function(y){}}});nv.utils.initOptions(l);return l};nv.utils.windowSize=function(){var a={width:640,height:480};if(window.innerWidth&&window.innerHeight){a.width=window.innerWidth;a.height=window.innerHeight;return(a)}if(document.compatMode=="CSS1Compat"&&document.documentElement&&document.documentElement.offsetWidth){a.width=document.documentElement.offsetWidth;a.height=document.documentElement.offsetHeight;return(a)}if(document.body&&document.body.offsetWidth){a.width=document.body.offsetWidth;a.height=document.body.offsetHeight;return(a)}return(a)};nv.utils.isArray=Array.isArray;nv.utils.isObject=function(b){return b!==null&&typeof b==="object"};nv.utils.isFunction=function(b){return typeof b==="function"};nv.utils.isDate=function(b){return toString.call(b)==="[object Date]"};nv.utils.isNumber=function(b){return !isNaN(b)&&typeof b==="number"};nv.utils.windowResize=function(a){if(window.addEventListener){window.addEventListener("resize",a)}else{nv.log("ERROR: Failed to bind to window.resize with: ",a)}return{callback:a,clear:function(){window.removeEventListener("resize",a)}}};nv.utils.getColor=function(a){if(a===undefined){return nv.utils.defaultColor()}else{if(nv.utils.isArray(a)){var b=d3.scale.ordinal().range(a);return function(f,e){var c=e===undefined?f:e;return f.color||b(c)}}else{return a}}};nv.utils.defaultColor=function(){return nv.utils.getColor(d3.scale.category20().range())};nv.utils.customTheme=function(d,b,c){b=b||function(e){return e.key};c=c||d3.scale.category20().range();var a=c.length;return function(g,e){var f=b(g);if(nv.utils.isFunction(d[f])){return d[f]()}else{if(d[f]!==undefined){return d[f]}else{if(!a){a=c.length}a=a-1;return c[a]}}}};nv.utils.pjax=function(a,b){var c=function(d){d3.html(d,function(e){var f=d3.select(b).node();f.parentNode.replaceChild(d3.select(e).select(b).node(),f);nv.utils.pjax(a,b)})};d3.selectAll(a).on("click",function(){history.pushState(this.href,this.textContent,this.href);c(this.href);d3.event.preventDefault()});d3.select(window).on("popstate",function(){if(d3.event.state){c(d3.event.state)}})};nv.utils.calcApproxTextWidth=function(a){if(nv.utils.isFunction(a.style)&&nv.utils.isFunction(a.text)){var c=parseInt(a.style("font-size").replace("px",""),10);var b=a.text().length;return nv.utils.NaNtoZero(b*c*0.5)}return 0};nv.utils.NaNtoZero=function(a){if(!nv.utils.isNumber(a)||isNaN(a)||a===null||a===Infinity||a===-Infinity){return 0}return a};d3.selection.prototype.watchTransition=function(b){var a=[this].concat([].slice.call(arguments,1));return b.transition.apply(b,a)};nv.utils.renderWatch=function(c,d){if(!(this instanceof nv.utils.renderWatch)){return new nv.utils.renderWatch(c,d)}var e=d!==undefined?d:250;var a=[];var b=this;this.models=function(f){f=[].slice.call(arguments,0);f.forEach(function(g){g.__rendered=false;(function(h){h.dispatch.on("renderEnd",function(i){h.__rendered=true;b.renderEnd("model")})})(g);if(a.indexOf(g)<0){a.push(g)}});return this};this.reset=function(f){if(f!==undefined){e=f}a=[]};this.transition=function(g,f,h){f=arguments.length>1?[].slice.call(arguments,1):[];if(f.length>1){h=f.pop()}else{h=e!==undefined?e:250}g.__rendered=false;if(a.indexOf(g)<0){a.push(g)}if(h===0){g.__rendered=true;g.delay=function(){return this};g.duration=function(){return this};return g}else{if(g.length===0){g.__rendered=true}else{if(g.every(function(j){return !j.length})){g.__rendered=true}else{g.__rendered=false}}var i=0;return g.transition().duration(h).each(function(){++i}).each("end",function(k,j){if(--i===0){g.__rendered=true;b.renderEnd.apply(this,f)}})}};this.renderEnd=function(){if(a.every(function(f){return f.__rendered})){a.forEach(function(f){f.__rendered=false});c.renderEnd.apply(this,arguments)}}};nv.utils.deepExtend=function(b){var a=arguments.length>1?[].slice.call(arguments,1):[];a.forEach(function(g){for(var f in g){var d=nv.utils.isArray(b[f]);var c=nv.utils.isObject(b[f]);var e=nv.utils.isObject(g[f]);if(c&&!d&&e){nv.utils.deepExtend(b[f],g[f])}else{b[f]=g[f]}}})};nv.utils.state=function(){if(!(this instanceof nv.utils.state)){return new nv.utils.state()}var d={};var b=this;var g=function(){};var c=function(){return{}};var f=null;var e=null;this.dispatch=d3.dispatch("change","set");this.dispatch.on("set",function(h){g(h,true)});this.getter=function(h){c=h;return this};this.setter=function(h,i){if(!i){i=function(){}}g=function(j,k){h(j);if(k){i()}};return this};this.init=function(h){f=f||{};nv.utils.deepExtend(f,h)};var a=function(){var i=c();if(JSON.stringify(i)===JSON.stringify(d)){return false}for(var h in i){if(d[h]===undefined){d[h]={}}d[h]=i[h];e=true}return true};this.update=function(){if(f){g(f,false);f=null}if(a.call(this)){this.dispatch.change(d)}}};nv.utils.optionsFunc=function(a){if(a){d3.map(a).forEach((function(b,c){if(nv.utils.isFunction(this[b])){this[b](c)}}).bind(this))}return this};nv.utils.calcTicksX=function(e,d){var a=1;var c=0;for(c;c<d.length;c+=1){var b=d[c]&&d[c].values?d[c].values.length:0;a=b>a?b:a}nv.log("Requested number of ticks: ",e);nv.log("Calculated max values to be: ",a);e=e>a?e=a-1:e;e=e<1?1:e;e=Math.floor(e);nv.log("Calculating tick count as: ",e);return e};nv.utils.calcTicksY=function(b,a){return nv.utils.calcTicksX(b,a)};nv.utils.initOption=function(b,a){if(b._calls&&b._calls[a]){b[a]=b._calls[a]}else{b[a]=function(c){if(!arguments.length){return b._options[a]}b._overrides[a]=true;b._options[a]=c;return b};b["_"+a]=function(c){if(!arguments.length){return b._options[a]}if(!b._overrides[a]){b._options[a]=c}return b}}};nv.utils.initOptions=function(d){d._overrides=d._overrides||{};var c=Object.getOwnPropertyNames(d._options||{});var b=Object.getOwnPropertyNames(d._calls||{});c=c.concat(b);for(var a in c){nv.utils.initOption(d,c[a])}};nv.utils.inheritOptionsD3=function(b,a,c){b._d3options=c.concat(b._d3options||[]);b._d3options=(b._d3options||[]).filter(function(f,e,d){return d.indexOf(f)===e});c.unshift(a);c.unshift(b);d3.rebind.apply(this,c)};nv.utils.arrayUnique=function(b){return b.sort().filter(function(a,c){return !c||a!=b[c-1]})};nv.utils.symbolMap=d3.map();nv.utils.symbol=function(){var b,a=64;function c(h,f){var e=b.call(this,h,f);var g=a.call(this,h,f);if(d3.svg.symbolTypes.indexOf(e)!==-1){return d3.svg.symbol().type(e).size(g)()}else{return nv.utils.symbolMap.get(e)(g)}}c.type=function(d){if(!arguments.length){return b}b=d3.functor(d);return c};c.size=function(d){if(!arguments.length){return a}a=d3.functor(d);return c};return c};nv.utils.inheritOptions=function(g,f){var e=Object.getOwnPropertyNames(f._options||{});var d=Object.getOwnPropertyNames(f._calls||{});var a=f._inherited||[];var b=f._d3options||[];var c=e.concat(d).concat(a).concat(b);c.unshift(f);c.unshift(g);d3.rebind.apply(this,c);g._inherited=nv.utils.arrayUnique(e.concat(d).concat(a).concat(e).concat(g._inherited||[]));g._d3options=nv.utils.arrayUnique(b.concat(g._d3options||[]))};nv.utils.initSVG=function(a){a.classed({"nvd3-svg":true})};nv.utils.sanitizeHeight=function(a,b){return(a||parseInt(b.style("height"),10)||400)};nv.utils.sanitizeWidth=function(b,a){return(b||parseInt(a.style("width"),10)||960)};nv.utils.availableHeight=function(a,b,c){return Math.max(0,nv.utils.sanitizeHeight(a,b)-c.top-c.bottom)};nv.utils.availableWidth=function(b,a,c){return Math.max(0,nv.utils.sanitizeWidth(b,a)-c.left-c.right)};nv.utils.noData=function(g,b){var d=g.options(),e=d.margin(),j=d.noData(),f=(j==null)?["No Data Available."]:[j],k=nv.utils.availableHeight(null,b,e),c=nv.utils.availableWidth(null,b,e),i=e.left+c/2,h=e.top+k/2;b.selectAll("g").remove();var a=b.selectAll(".nv-noData").data(f);a.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle");a.attr("x",i).attr("y",h).text(function(l){return l})};nv.utils.wrapTicks=function(b,a){b.each(function(){var i=d3.select(this),e=i.text().split(/\s+/).reverse(),c,k=[],d=0,h=1.1,g=i.attr("y"),j=parseFloat(i.attr("dy")),f=i.text(null).append("tspan").attr("x",0).attr("y",g).attr("dy",j+"em");while(c=e.pop()){k.push(c);f.text(k.join(" "));if(f.node().getComputedTextLength()>a){k.pop();f.text(k.join(" "));k=[c];f=i.append("tspan").attr("x",0).attr("y",g).attr("dy",++d*h+j+"em").text(c)}}})};nv.utils.arrayEquals=function(d,c){if(d===c){return true}if(!d||!c){return false}if(d.length!=c.length){return false}for(var b=0,a=d.length;b<a;b++){if(d[b] instanceof Array&&c[b] instanceof Array){if(!nv.arrayEquals(d[b],c[b])){return false}}else{if(d[b]!=c[b]){return false}}}return true};nv.utils.pointIsInArc=function(i,a,b){var d=b.innerRadius()(a),c=b.outerRadius()(a),g=b.startAngle()(a),f=b.endAngle()(a);var h=i.x*i.x+i.y*i.y,e=Math.atan2(i.x,-i.y);e=(e<0)?(e+Math.PI*2):e;return(d*d<=h)&&(h<=c*c)&&(g<=e)&&(e<=f)};nv.models.axis=function(){var c=d3.svg.axis();var s=d3.scale.linear();var j={top:0,right:0,bottom:0,left:0},l=75,k=60,g=null,o=true,e=0,p=true,b=false,m=false,q=null,h=0,d=undefined,a=250,r=d3.dispatch("renderEnd");c.scale(s).orient("bottom").tickFormat(function(t){return t});var n;var f=nv.utils.renderWatch(r,a);function i(t){f.reset();t.each(function(F){var v=d3.select(this);nv.utils.initSVG(v);var y=v.selectAll("g.nv-wrap.nv-axis").data([F]);var B=y.enter().append("g").attr("class","nvd3 nv-wrap nv-axis");var u=B.append("g");var H=y.select("g");if(q!==null){c.ticks(q)}else{if(c.orient()=="top"||c.orient()=="bottom"){c.ticks(Math.abs(s.range()[1]-s.range()[0])/100)}}H.watchTransition(f,"axis").call(c);n=n||c.scale();var A=c.tickFormat();if(A==null){A=n.tickFormat()}var z=H.selectAll("text.nv-axislabel").data([g||null]);z.exit().remove();if(d!==undefined){H.selectAll("g").select("text").style("font-size",d)}var E;var G;var L;switch(c.orient()){case"top":z.enter().append("text").attr("class","nv-axislabel");L=0;if(s.range().length===1){L=m?s.range()[0]*2+s.rangeBand():0}else{if(s.range().length===2){L=m?s.range()[0]+s.range()[1]+s.rangeBand():s.range()[1]}else{if(s.range().length>2){L=s.range()[s.range().length-1]+(s.range()[1]-s.range()[0])}}}z.attr("text-anchor","middle").attr("y",0).attr("x",L/2);if(o){G=y.selectAll("g.nv-axisMaxMin").data(s.domain());G.enter().append("g").attr("class",function(M,w){return["nv-axisMaxMin","nv-axisMaxMin-x",(w==0?"nv-axisMin-x":"nv-axisMax-x")].join(" ")}).append("text");G.exit().remove();G.attr("transform",function(M,w){return"translate("+nv.utils.NaNtoZero(s(M))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-c.tickPadding()).attr("text-anchor","middle").text(function(N,M){var w=A(N);return(""+w).match("NaN")?"":w});G.watchTransition(f,"min-max top").attr("transform",function(M,w){return"translate("+nv.utils.NaNtoZero(s.range()[w])+",0)"})}break;case"bottom":E=h+36;var x=30;var J=0;var C=H.selectAll("g").select("text");var K="";if(e%360){C.attr("transform","");C.each(function(O,w){var N=this.getBoundingClientRect();var M=N.width;J=N.height;if(M>x){x=M}});K="rotate("+e+" 0,"+(J/2+c.tickPadding())+")";var I=Math.abs(Math.sin(e*Math.PI/180));E=(I?I*x:x)+30;C.attr("transform",K).style("text-anchor",e%360>0?"start":"end")}else{if(b){C.attr("transform",function(M,w){return"translate(0,"+(w%2==0?"0":"12")+")"})}else{C.attr("transform","translate(0,0)")}}z.enter().append("text").attr("class","nv-axislabel");L=0;if(s.range().length===1){L=m?s.range()[0]*2+s.rangeBand():0}else{if(s.range().length===2){L=m?s.range()[0]+s.range()[1]+s.rangeBand():s.range()[1]}else{if(s.range().length>2){L=s.range()[s.range().length-1]+(s.range()[1]-s.range()[0])}}}z.attr("text-anchor","middle").attr("y",E).attr("x",L/2);if(o){G=y.selectAll("g.nv-axisMaxMin").data([s.domain()[0],s.domain()[s.domain().length-1]]);G.enter().append("g").attr("class",function(M,w){return["nv-axisMaxMin","nv-axisMaxMin-x",(w==0?"nv-axisMin-x":"nv-axisMax-x")].join(" ")}).append("text");G.exit().remove();G.attr("transform",function(M,w){return"translate("+nv.utils.NaNtoZero((s(M)+(m?s.rangeBand()/2:0)))+",0)"}).select("text").attr("dy",".71em").attr("y",c.tickPadding()).attr("transform",K).style("text-anchor",e?(e%360>0?"start":"end"):"middle").text(function(N,M){var w=A(N);return(""+w).match("NaN")?"":w});G.watchTransition(f,"min-max bottom").attr("transform",function(M,w){return"translate("+nv.utils.NaNtoZero((s(M)+(m?s.rangeBand()/2:0)))+",0)"})}break;case"right":z.enter().append("text").attr("class","nv-axislabel");z.style("text-anchor",p?"middle":"begin").attr("transform",p?"rotate(90)":"").attr("y",p?(-Math.max(j.right,l)+12-(h||0)):-10).attr("x",p?(d3.max(s.range())/2):c.tickPadding());if(o){G=y.selectAll("g.nv-axisMaxMin").data(s.domain());G.enter().append("g").attr("class",function(M,w){return["nv-axisMaxMin","nv-axisMaxMin-y",(w==0?"nv-axisMin-y":"nv-axisMax-y")].join(" ")}).append("text").style("opacity",0);G.exit().remove();G.attr("transform",function(M,w){return"translate(0,"+nv.utils.NaNtoZero(s(M))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",c.tickPadding()).style("text-anchor","start").text(function(N,M){var w=A(N);return(""+w).match("NaN")?"":w});G.watchTransition(f,"min-max right").attr("transform",function(M,w){return"translate(0,"+nv.utils.NaNtoZero(s.range()[w])+")"}).select("text").style("opacity",1)}break;case"left":z.enter().append("text").attr("class","nv-axislabel");z.style("text-anchor",p?"middle":"end").attr("transform",p?"rotate(-90)":"").attr("y",p?(-Math.max(j.left,l)+25-(h||0)):-10).attr("x",p?(-d3.max(s.range())/2):-c.tickPadding());if(o){G=y.selectAll("g.nv-axisMaxMin").data(s.domain());G.enter().append("g").attr("class",function(M,w){return["nv-axisMaxMin","nv-axisMaxMin-y",(w==0?"nv-axisMin-y":"nv-axisMax-y")].join(" ")}).append("text").style("opacity",0);G.exit().remove();G.attr("transform",function(M,w){return"translate(0,"+nv.utils.NaNtoZero(n(M))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-c.tickPadding()).attr("text-anchor","end").text(function(N,M){var w=A(N);return(""+w).match("NaN")?"":w});G.watchTransition(f,"min-max right").attr("transform",function(M,w){return"translate(0,"+nv.utils.NaNtoZero(s.range()[w])+")"}).select("text").style("opacity",1)}break}z.text(function(w){return w});if(o&&(c.orient()==="left"||c.orient()==="right")){H.selectAll("g").each(function(M,w){d3.select(this).select("text").attr("opacity",1);if(s(M)<s.range()[1]+10||s(M)>s.range()[0]-10){if(M>1e-10||M<-1e-10){d3.select(this).attr("opacity",0)}d3.select(this).select("text").attr("opacity",0)}});if(s.domain()[0]==s.domain()[1]&&s.domain()[0]==0){y.selectAll("g.nv-axisMaxMin").style("opacity",function(M,w){return !w?1:0})}}if(o&&(c.orient()==="top"||c.orient()==="bottom")){var D=[];y.selectAll("g.nv-axisMaxMin").each(function(N,w){try{if(w){D.push(s(N)-this.getBoundingClientRect().width-4)}else{D.push(s(N)+this.getBoundingClientRect().width+4)}}catch(M){if(w){D.push(s(N)-4)}else{D.push(s(N)+4)}}});H.selectAll("g").each(function(M,w){if(s(M)<D[0]||s(M)>D[1]){if(M>1e-10||M<-1e-10){d3.select(this).remove()}else{d3.select(this).select("text").remove()}}})}H.selectAll(".tick").filter(function(w){return !parseFloat(Math.round(w*100000)/1000000)&&(w!==undefined)}).classed("zero",true);n=s.copy()});f.renderEnd("axis immediate");return i}i.axis=c;i.dispatch=r;i.options=nv.utils.optionsFunc.bind(i);i._options=Object.create({},{axisLabelDistance:{get:function(){return h},set:function(t){h=t}},staggerLabels:{get:function(){return b},set:function(t){b=t}},rotateLabels:{get:function(){return e},set:function(t){e=t}},rotateYLabel:{get:function(){return p},set:function(t){p=t}},showMaxMin:{get:function(){return o},set:function(t){o=t}},axisLabel:{get:function(){return g},set:function(t){g=t}},height:{get:function(){return k},set:function(t){k=t}},ticks:{get:function(){return q},set:function(t){q=t}},width:{get:function(){return l},set:function(t){l=t}},fontSize:{get:function(){return d},set:function(t){d=t}},margin:{get:function(){return j},set:function(t){j.top=t.top!==undefined?t.top:j.top;j.right=t.right!==undefined?t.right:j.right;j.bottom=t.bottom!==undefined?t.bottom:j.bottom;j.left=t.left!==undefined?t.left:j.left}},duration:{get:function(){return a},set:function(t){a=t;f.reset(a)}},scale:{get:function(){return s},set:function(t){s=t;c.scale(s);m=typeof s.rangeBands==="function";nv.utils.inheritOptionsD3(i,s,["domain","range","rangeBand","rangeBands"])}}});nv.utils.initOptions(i);nv.utils.inheritOptionsD3(i,c,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]);nv.utils.inheritOptionsD3(i,s,["domain","range","rangeBand","rangeBands"]);return i};nv.models.distribution=function(){var e={top:0,right:0,bottom:0,left:0},a=400,m=8,b="x",h=function(n){return n[b]},f=nv.utils.defaultColor(),c=d3.scale.linear(),g,d=250,k=d3.dispatch("renderEnd");var j;var i=nv.utils.renderWatch(k,d);function l(n){i.reset();n.each(function(s){var t=a-(b==="x"?e.left+e.right:e.top+e.bottom),w=b=="x"?"y":"x",p=d3.select(this);nv.utils.initSVG(p);j=j||c;var q=p.selectAll("g.nv-distribution").data([s]);var r=q.enter().append("g").attr("class","nvd3 nv-distribution");var o=r.append("g");var u=q.select("g");q.attr("transform","translate("+e.left+","+e.top+")");var x=u.selectAll("g.nv-dist").data(function(y){return y},function(y){return y.key});x.enter().append("g");x.attr("class",function(z,y){return"nv-dist nv-series-"+y}).style("stroke",function(z,y){return f(z,y)});var v=x.selectAll("line.nv-dist"+b).data(function(y){return y.values});v.enter().append("line").attr(b+"1",function(z,y){return j(h(z,y))}).attr(b+"2",function(z,y){return j(h(z,y))});i.transition(x.exit().selectAll("line.nv-dist"+b),"dist exit").attr(b+"1",function(z,y){return c(h(z,y))}).attr(b+"2",function(z,y){return c(h(z,y))}).style("stroke-opacity",0).remove();v.attr("class",function(z,y){return"nv-dist"+b+" nv-dist"+b+"-"+y}).attr(w+"1",0).attr(w+"2",m);i.transition(v,"dist").attr(b+"1",function(z,y){return c(h(z,y))}).attr(b+"2",function(z,y){return c(h(z,y))});j=c.copy()});i.renderEnd("distribution immediate");return l}l.options=nv.utils.optionsFunc.bind(l);l.dispatch=k;l.margin=function(n){if(!arguments.length){return e}e.top=typeof n.top!="undefined"?n.top:e.top;e.right=typeof n.right!="undefined"?n.right:e.right;e.bottom=typeof n.bottom!="undefined"?n.bottom:e.bottom;e.left=typeof n.left!="undefined"?n.left:e.left;return l};l.width=function(n){if(!arguments.length){return a}a=n;return l};l.axis=function(n){if(!arguments.length){return b}b=n;return l};l.size=function(n){if(!arguments.length){return m}m=n;return l};l.getData=function(n){if(!arguments.length){return h}h=d3.functor(n);return l};l.scale=function(n){if(!arguments.length){return c}c=n;return l};l.color=function(n){if(!arguments.length){return f}f=nv.utils.getColor(n);return l};l.duration=function(n){if(!arguments.length){return d}d=n;i.reset(d);return l};return l};nv.models.legend=function(){var f={top:5,right:0,bottom:5,left:0},c=400,p=20,h=function(r){return r.key},a=function(r){return r},g=nv.utils.getColor(),n=20,l=true,o=32,d=true,q=true,e=true,b=false,j=false,k=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),i="classic";function m(r){r.each(function(T){var w=c-f.left-f.right,K=d3.select(this);nv.utils.initSVG(K);var I=K.selectAll("g.nv-legend").data([T]);var P=I.enter().append("g").attr("class","nvd3 nv-legend").append("g");var S=I.select("g");if(d){I.attr("transform","translate("+(-f.right)+","+f.top+")")}else{I.attr("transform","translate("+f.left+","+f.top+")")}var J=S.selectAll(".nv-series").data(function(U){if(i!="furious"){return U}return U.filter(function(V){return j?true:!V.disengaged})});var B=J.enter().append("g").attr("class","nv-series");var M;var A;switch(i){case"furious":A=23;break;case"classic":A=20}if(i=="classic"){B.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5);M=J.select(".nv-legend-symbol")}else{if(i=="furious"){B.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3);M=J.select(".nv-legend-symbol");B.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)");var x=J.select(".nv-check-box");x.each(function(V,U){d3.select(this).selectAll("path").attr("stroke",u(V,U))})}}B.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var F=J.select("text.nv-legend-text");J.on("mouseover",function(V,U){k.legendMouseover(V,U)}).on("mouseout",function(V,U){k.legendMouseout(V,U)}).on("click",function(X,U){k.legendClick(X,U);var W=J.data();if(q){if(i=="classic"){if(b){W.forEach(function(Y){Y.disabled=true});X.disabled=false}else{X.disabled=!X.disabled;if(W.every(function(Y){return Y.disabled})){W.forEach(function(Y){Y.disabled=false})}}}else{if(i=="furious"){if(j){X.disengaged=!X.disengaged;X.userDisabled=X.userDisabled==undefined?!!X.disabled:X.userDisabled;X.disabled=X.disengaged||X.userDisabled}else{if(!j){X.disabled=!X.disabled;X.userDisabled=X.disabled;var V=W.filter(function(Y){return !Y.disengaged});if(V.every(function(Y){return Y.userDisabled})){W.forEach(function(Y){Y.disabled=Y.userDisabled=false})}}}}}k.stateChange({disabled:W.map(function(Y){return !!Y.disabled}),disengaged:W.map(function(Y){return !!Y.disengaged})})}}).on("dblclick",function(W,U){if(e){if(i=="furious"&&j){return}k.legendDblclick(W,U);if(q){var V=J.data();V.forEach(function(X){X.disabled=true;if(i=="furious"){X.userDisabled=X.disabled}});W.disabled=false;if(i=="furious"){W.userDisabled=W.disabled}k.stateChange({disabled:V.map(function(X){return !!X.disabled})})}}});J.classed("nv-disabled",function(U){return U.userDisabled});J.exit().remove();F.attr("fill",u).text(function(U){return a(h(U))});var O=0;if(l){var z=[];J.each(function(Z,X){var W;if(a(h(Z))&&a(h(Z)).length>n){var U=a(h(Z)).substring(0,n);W=d3.select(this).select("text").text(U+"...");d3.select(this).append("svg:title").text(a(h(Z)))}else{W=d3.select(this).select("text")}var V;try{V=W.node().getComputedTextLength();if(V<=0){throw Error()}}catch(Y){V=nv.utils.calcApproxTextWidth(W)}z.push(V+o)});var H=0;var L=[];O=0;while(O<w&&H<z.length){L[H]=z[H];O+=z[H++]}if(H===0){H=1}while(O>w&&H>1){L=[];H--;for(var Q=0;Q<z.length;Q++){if(z[Q]>(L[Q%H]||0)){L[Q%H]=z[Q]}}O=L.reduce(function(V,W,U,X){return V+W})}var v=[];for(var R=0,G=0;R<H;R++){v[R]=G;G+=L[R]}J.attr("transform",function(V,U){return"translate("+v[U%H]+","+(5+Math.floor(U/H)*A)+")"});if(d){S.attr("transform","translate("+(c-f.right-O)+","+f.top+")")}else{S.attr("transform","translate(0,"+f.top+")")}p=f.top+f.bottom+(Math.ceil(z.length/H)*A)}else{var D=5,E=5,N=0,y;J.attr("transform",function(W,U){var V=d3.select(this).select("text").node().getComputedTextLength()+o;y=E;if(c<f.left+f.right+y+V){E=y=5;D+=A}E+=V;if(E>N){N=E}if(O<y+N){O=y+N}return"translate("+y+","+D+")"});S.attr("transform","translate("+(c-f.right-N)+","+f.top+")");p=f.top+f.bottom+D+15}if(i=="furious"){M.attr("width",function(V,U){return F[0][U].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15);P.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0);var C=S.select(".nv-legend-bg");C.transition().duration(300).attr("x",-A).attr("width",O+A-12).attr("height",p+10).attr("y",-f.top-10).attr("opacity",j?1:0)}M.style("fill",s).style("fill-opacity",t).style("stroke",s)});function u(w,v){if(i!="furious"){return"#000"}if(j){return w.disengaged?"#000":"#fff"}else{if(!j){if(!w.color){w.color=g(w,v)}return !!w.disabled?w.color:"#fff"}}}function s(w,v){if(j&&i=="furious"){return w.disengaged?"#eee":w.color||g(w,v)}else{return w.color||g(w,v)}}function t(w,v){if(j&&i=="furious"){return 1}else{return !!w.disabled?0:1}}return m}m.dispatch=k;m.options=nv.utils.optionsFunc.bind(m);m._options=Object.create({},{width:{get:function(){return c},set:function(r){c=r}},height:{get:function(){return p},set:function(r){p=r}},key:{get:function(){return h},set:function(r){h=r}},keyFormatter:{get:function(){return a},set:function(r){a=r}},align:{get:function(){return l},set:function(r){l=r}},maxKeyLength:{get:function(){return n},set:function(r){n=r}},rightAlign:{get:function(){return d},set:function(r){d=r}},padding:{get:function(){return o},set:function(r){o=r}},updateState:{get:function(){return q},set:function(r){q=r}},enableDoubleClick:{get:function(){return e},set:function(r){e=r}},radioButtonMode:{get:function(){return b},set:function(r){b=r}},expanded:{get:function(){return j},set:function(r){j=r}},vers:{get:function(){return i},set:function(r){i=r}},margin:{get:function(){return f},set:function(r){f.top=r.top!==undefined?r.top:f.top;f.right=r.right!==undefined?r.right:f.right;f.bottom=r.bottom!==undefined?r.bottom:f.bottom;f.left=r.left!==undefined?r.left:f.left}},color:{get:function(){return g},set:function(r){g=nv.utils.getColor(r)}}});nv.utils.initOptions(m);return m};nv.models.scatter=function(){var h={top:0,right:0,bottom:0,left:0},b=null,d=null,C=nv.utils.defaultColor(),t=null,I=Math.floor(Math.random()*100000),F=null,P=d3.scale.linear(),N=d3.scale.linear(),K=d3.scale.linear(),U=function(x){return x.x},T=function(x){return x.y},G=function(x){return x.size||1},o=function(x){return x.shape||"circle"},L=[],J=[],Y=[],g=true,Z=function(x){return !x.notActive},R=false,k=0.1,E=false,ac=true,l=false,r=function(){return 25},f=null,e=null,X=null,u=null,j=null,D=null,Q=false,S=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),ad=true,A=250,q=300,aa=false;var p,a,H,c,w,W,B,O,m=false,M=nv.utils.renderWatch(S,A),v=[128,128],n={};function i(z){var x,y;x=z[0].series+":"+z[1];y=n[x]=n[x]||{};return y}function V(z){var x,y;x=z[0].series+":"+z[1];delete n[x]}function s(ag){var z,y,af,x=i(ag),ae=false;for(z=1;z<arguments.length;z+=2){y=arguments[z];af=arguments[z+1](ag[0],ag[1]);if(x[y]!==af||!x.hasOwnProperty(y)){x[y]=af;ae=true}}return ae}function ab(x){M.reset();x.each(function(aD){F=d3.select(this);var z=nv.utils.availableWidth(b,F,h),ag=nv.utils.availableHeight(d,F,h);nv.utils.initSVG(F);aD.forEach(function(aG,aF){aG.values.forEach(function(aH){aH.series=aF})});var af=ab.yScale().name===d3.scale.log().name?true:false;var ax=(f&&e&&j)?[]:d3.merge(aD.map(function(aF){return aF.values.map(function(aH,aG){return{x:U(aH,aG),y:T(aH,aG),size:G(aH,aG)}})}));P.domain([0,1]);if(R&&aD[0]){P.range(X||[(z*k+z)/(2*aD[0].values.length),z-z*(1+k)/(2*aD[0].values.length)])}else{P.range(X||[0,z])}if(af){var ap=d3.min(ax.map(function(aF){if(aF.y!==0){return aF.y}}));N.clamp(true).domain([0,1]).range(u||[ag,0])}else{N.domain([0,1]).range(u||[ag,0])}K.domain(j||d3.extent(ax.map(function(aF){return aF.size}).concat(Y))).range(D||v);Q=P.domain()[0]===P.domain()[1]||N.domain()[0]===N.domain()[1];if(P.domain()[0]===P.domain()[1]){P.domain()[0]?P.domain([P.domain()[0]-P.domain()[0]*0.01,P.domain()[1]+P.domain()[1]*0.01]):P.domain([-1,1])}if(N.domain()[0]===N.domain()[1]){N.domain()[0]?N.domain([N.domain()[0]-N.domain()[0]*0.01,N.domain()[1]+N.domain()[1]*0.01]):N.domain([-1,1])}if(isNaN(P.domain()[0])){P.domain([-1,1])}if(isNaN(N.domain()[0])){N.domain([-1,1])}p=p||P;a=a||N;H=H||K;var au=P(1)!==p(1)||N(1)!==a(1)||K(1)!==H(1);W=W||b;B=B||d;var aq=W!==b||B!==d;c=c||[];var aA=c[0]!==P.domain()[0]||c[1]!==P.domain()[1];c=P.domain();w=w||[];aA=aA||w[0]!==N.domain()[0]||w[1]!==N.domain()[1];w=N.domain();var aC="1,"+d+","+b*0.4+","+d+",1,"+d*0.6;var al=b*0.6+",0,"+b+",0,"+b+","+d*0.4;var at=b*0.4+","+d+",1,"+d*0.6+",1,"+d*0.25+","+b*0.75+","+d;var ay=b*0.25+",0,"+b*0.6+",0,"+b+","+d*0.4+","+b+","+d*0.75;var aj="1,0,"+b*0.25+",0,"+b+","+d*0.75+","+b+","+d+","+b*0.75+","+d+",1,"+d*0.25;var ai=F.selectAll("#redzonedown");if(!ai.empty()){ai.attr("points",aC)}else{F.append("polygon").attr("id","redzonedown").attr("visibility","visible").attr("points",aC).attr("fill","rgb(255,220,220)")}var am=F.selectAll("#redzoneup");if(!am.empty()){am.attr("points",al)}else{F.append("polygon").attr("id","redzoneup").attr("visibility","visible").attr("points",al).attr("fill","rgb(255,220,220)")}var aB=F.selectAll("#orangezonedown");if(!aB.empty()){aB.attr("points",at)}else{F.append("polygon").attr("id","orangezonedown").attr("visibility","visible").attr("points",at).attr("fill","rgb(255,237,220)")}var ae=F.selectAll("#orangezoneup");if(!ae.empty()){ae.attr("points",ay)}else{F.append("polygon").attr("id","orangezoneup").attr("visibility","visible").attr("points",ay).attr("fill","rgb(255,237,220)")}var y=F.selectAll("#greenzone");if(!y.empty()){y.attr("points",aj)}else{F.append("polygon").attr("id","greenzone").attr("visibility","visible").attr("points",aj).attr("fill","rgb(230,255,230)")}if(F.selectAll("#InsabilityLabel").empty()){F.append("text").attr("class","x label").attr("text-anchor","end").attr("x",b).attr("y",d+20).style("font-size","20px").attr("id","InsabilityLabel").text("Instability")}if(F.selectAll("#AbstractnessLabel").empty()){F.append("text").attr("text-anchor","end").attr("y",-20).attr("id","AbstractnessLabel").style("font-size","20px").attr("dy",".75em").attr("transform","rotate(-90)").text("Abstractness")}if(F.selectAll("#PainLabel").empty()){F.append("text").attr("y",d-50).attr("x",20).attr("fill","rgb(255,185,181)").style("font-size","20px").attr("id","PainLabel").text("Zone of Pain")}if(F.selectAll("#UselessnessLabel").empty()){F.append("text").attr("x",b-190).attr("y",60).attr("fill","rgb(255,185,181)").style("font-size","20px").attr("id","UselessnessLabel").text("Zone of Uselessness")}if(F.selectAll("#yLine").empty()){F.append("line").attr("x1",1).attr("y1",d).attr("x2",b).attr("y2",d).attr("id","yLine").attr("stroke","black")}if(F.selectAll("#centerLine").empty()){F.append("line").attr("x1",1).attr("y1",0).attr("x2",b).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("stroke-dasharray","5,5").attr("id","centerLine")}var ak=F.selectAll("g.nv-wrap.nv-scatter").data([aD]);var ah=ak.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+I);var an=ah.append("defs");var ao=ah.append("g");var aw=ak.select("g");ak.classed("nv-single-point",Q);ao.append("g").attr("class","nv-groups");ao.append("g").attr("class","nv-point-paths");ah.append("g").attr("class","nv-point-clips");ak.attr("transform","translate("+h.left+","+h.top+")");an.append("clipPath").attr("id","nv-edge-clip-"+I).append("rect").attr("transform","translate( -10, -10)");ak.select("#nv-edge-clip-"+I+" rect").attr("width",z+20).attr("height",(ag>0)?ag+20:0);aw.attr("clip-path",E?"url(#nv-edge-clip-"+I+")":"");function av(){m=false;if(!g){return false}if(ad===true){ak.select(".nv-point-paths").selectAll("path").remove();var aM=d3.merge(aD.map(function(aQ,aP){return aQ.values.map(function(aR,aU){var aT=U(aR,aU);var aS=T(aR,aU);return[nv.utils.NaNtoZero(P(aT))+Math.random()*0.0001,nv.utils.NaNtoZero(N(aS))+Math.random()*0.0001,aP,aU,aR]}).filter(function(aR,aS){return Z(aR[4],aS)})}));if(aM.length==0){return false}if(aM.length<3){aM.push([P.range()[0]-20,N.range()[0]-20,null,null]);aM.push([P.range()[1]+20,N.range()[1]+20,null,null]);aM.push([P.range()[0]-20,N.range()[0]+20,null,null]);aM.push([P.range()[1]+20,N.range()[1]-20,null,null])}var aF=d3.geom.polygon([[-10,-10],[-10,d+10],[b+10,d+10],[b+10,-10]]);var aN=0.0001;aM=aM.sort(function(aQ,aP){return((aQ[0]-aP[0])||(aQ[1]-aP[1]))});for(var aK=0;aK<aM.length-1;){if((Math.abs(aM[aK][0]-aM[aK+1][0])<aN)&&(Math.abs(aM[aK][1]-aM[aK+1][1])<aN)){aM.splice(aK+1,1)}else{aK++}}var aO=d3.geom.voronoi(aM).map(function(aQ,aP){return{data:aF.clip(aQ),series:aM[aP][2],point:aM[aP][3]}});var aI=ak.select(".nv-point-paths").selectAll("path").data(aO);var aG=aI.enter().append("svg:path").attr("d",function(aP){if(!aP||!aP.data||aP.data.length===0){return"M 0 0"}else{return"M"+aP.data.join(",")+"Z"}}).attr("id",function(aQ,aP){return"nv-path-"+aP}).attr("clip-path",function(aQ,aP){return"url(#nv-clip-"+I+"-"+aP+")"});if(l){aG.style("fill",d3.rgb(230,230,230)).style("fill-opacity",0.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200))}if(ac){ak.select(".nv-point-clips").selectAll("*").remove();var aJ=ak.select(".nv-point-clips").selectAll("clipPath").data(aM);var aH=aJ.enter().append("svg:clipPath").attr("id",function(aQ,aP){return"nv-clip-"+I+"-"+aP}).append("svg:circle").attr("cx",function(aP){return aP[0]}).attr("cy",function(aP){return aP[1]}).attr("r",r)}var aL=function(aQ,aV,aS){if(m){return 0}var aT=aD[aV.series];if(aT===undefined){return}var aX=aT.values[aV.point];aX.color=C(aT,aV.series);aX.x=U(aX);aX.y=T(aX);var aU=F.node().getBoundingClientRect();var aP=window.pageYOffset||document.documentElement.scrollTop;var aR=window.pageXOffset||document.documentElement.scrollLeft;var aW={left:P(U(aX,aV.point))+aU.left+aR+h.left+10,top:N(T(aX,aV.point))+aU.top+aP+h.top+10};aS({point:aX,series:aT,pos:aW,relativePos:[P(U(aX,aV.point))+h.left,N(T(aX,aV.point))+h.top],seriesIndex:aV.series,pointIndex:aV.point,event:d3.event,element:aQ})};aI.on("click",function(aP){aL(this,aP,S.elementClick)}).on("dblclick",function(aP){aL(this,aP,S.elementDblClick)}).on("mouseover",function(aP){aL(this,aP,S.elementMouseover)}).on("mouseout",function(aQ,aP){aL(this,aQ,S.elementMouseout)})}else{ak.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(aT,aS){if(m||!aD[aT.series]){return 0}var aR=aD[aT.series],aP=aR.values[aS];var aQ=this;S.elementClick({point:aP,series:aR,pos:[P(U(aP,aS))+h.left,N(T(aP,aS))+h.top],relativePos:[P(U(aP,aS))+h.left,N(T(aP,aS))+h.top],seriesIndex:aT.series,pointIndex:aS,event:d3.event,element:aQ})}).on("dblclick",function(aS,aR){if(m||!aD[aS.series]){return 0}var aQ=aD[aS.series],aP=aQ.values[aR];S.elementDblClick({point:aP,series:aQ,pos:[P(U(aP,aR))+h.left,N(T(aP,aR))+h.top],relativePos:[P(U(aP,aR))+h.left,N(T(aP,aR))+h.top],seriesIndex:aS.series,pointIndex:aR})}).on("mouseover",function(aS,aR){if(m||!aD[aS.series]){return 0}var aQ=aD[aS.series],aP=aQ.values[aR];S.elementMouseover({point:aP,series:aQ,pos:[P(U(aP,aR))+h.left,N(T(aP,aR))+h.top],relativePos:[P(U(aP,aR))+h.left,N(T(aP,aR))+h.top],seriesIndex:aS.series,pointIndex:aR,color:C(aS,aR)})}).on("mouseout",function(aS,aR){if(m||!aD[aS.series]){return 0}var aQ=aD[aS.series],aP=aQ.values[aR];S.elementMouseout({point:aP,series:aQ,pos:[P(U(aP,aR))+h.left,N(T(aP,aR))+h.top],relativePos:[P(U(aP,aR))+h.left,N(T(aP,aR))+h.top],seriesIndex:aS.series,pointIndex:aR,color:C(aS,aR)})})}}m=true;var az=ak.select(".nv-groups").selectAll(".nv-group").data(function(aF){return aF},function(aF){return aF.key});az.enter().append("g").style("stroke-opacity",0.000001).style("fill-opacity",0.000001);az.exit().remove();az.attr("class",function(aG,aF){return(aG.classed||"")+" nv-group nv-series-"+aF}).classed("nv-noninteractive",!g).classed("hover",function(aF){return aF.hover});az.watchTransition(M,"scatter: groups").style("fill",function(aG,aF){return C(aG,aF)}).style("stroke",function(aG,aF){return aG.pointBorderColor||t||C(aG,aF)}).style("stroke-opacity",1).style("fill-opacity",0.5);var ar=az.selectAll("path.nv-point").data(function(aF){return aF.values.map(function(aG,aH){return[aG,aH]}).filter(function(aG,aH){return Z(aG[0],aH)})});ar.enter().append("path").attr("class",function(aF){return"nv-point nv-point-"+aF[1]}).style("fill",function(aF){return aF.color}).style("stroke",function(aF){return aF.color}).attr("transform",function(aF){return"translate("+nv.utils.NaNtoZero(p(U(aF[0],aF[1])))+","+nv.utils.NaNtoZero(a(T(aF[0],aF[1])))+")"}).attr("d",nv.utils.symbol().type(function(aF){return o(aF[0])}).size(function(aF){return K(G(aF[0],aF[1]))}));ar.exit().each(V).remove();az.exit().selectAll("path.nv-point").watchTransition(M,"scatter exit").attr("transform",function(aF){return"translate("+nv.utils.NaNtoZero(P(U(aF[0],aF[1])))+","+nv.utils.NaNtoZero(N(T(aF[0],aF[1])))+")"}).remove();ar.filter(function(aF){return s(aF,"x",U,"y",T)||au||aq||aA}).watchTransition(M,"scatter points").attr("transform",function(aF){return"translate("+nv.utils.NaNtoZero(P(U(aF[0],aF[1])))+","+nv.utils.NaNtoZero(N(T(aF[0],aF[1])))+")"});ar.filter(function(aF){return s(aF,"shape",o,"size",G)||au||aq||aA}).watchTransition(M,"scatter points").attr("d",nv.utils.symbol().type(function(aF){return o(aF[0])}).size(function(aF){return K(G(aF[0],aF[1]))}));if(aa){var aE=az.selectAll(".nv-label").data(function(aF){return aF.values.map(function(aG,aH){return[aG,aH]}).filter(function(aG,aH){return Z(aG[0],aH)})});aE.enter().append("text").style("fill",function(aG,aF){return aG.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(aG){var aF=nv.utils.NaNtoZero(p(U(aG[0],aG[1])))+Math.sqrt(K(G(aG[0],aG[1]))/Math.PI)+2;return"translate("+aF+","+nv.utils.NaNtoZero(a(T(aG[0],aG[1])))+")"}).text(function(aG,aF){return aG[0].label});aE.exit().remove();az.exit().selectAll("path.nv-label").watchTransition(M,"scatter exit").attr("transform",function(aG){var aF=nv.utils.NaNtoZero(P(U(aG[0],aG[1])))+Math.sqrt(K(G(aG[0],aG[1]))/Math.PI)+2;return"translate("+aF+","+nv.utils.NaNtoZero(N(T(aG[0],aG[1])))+")"}).remove();aE.each(function(aF){d3.select(this).classed("nv-label",true).classed("nv-label-"+aF[1],false).classed("hover",false)});aE.watchTransition(M,"scatter labels").attr("transform",function(aG){var aF=nv.utils.NaNtoZero(P(U(aG[0],aG[1])))+Math.sqrt(K(G(aG[0],aG[1]))/Math.PI)+2;return"translate("+aF+","+nv.utils.NaNtoZero(N(T(aG[0],aG[1])))+")"})}if(q){clearTimeout(O);O=setTimeout(av,q)}else{av()}p=P.copy();a=N.copy();H=K.copy();W=b;B=d});M.renderEnd("scatter immediate");return ab}ab.dispatch=S;ab.options=nv.utils.optionsFunc.bind(ab);ab._calls=new function(){this.clearHighlights=function(){nv.dom.write(function(){F.selectAll(".nv-point.hover").classed("hover",false)});return null};this.highlightPoint=function(y,z,x){nv.dom.write(function(){F.select(".nv-groups").selectAll(".nv-series-"+y).selectAll(".nv-point-"+z).classed("hover",x);if(!x){F.selectAll("#dist").remove()}})};this.highlightPoint2=function(x){nv.dom.write(function(){var z=x.point.x*b;var y=(1-x.point.y)*d;var af=(1+x.point.y-x.point.x)/2;var ah=(1-af)*d;var ae=1-af;var ag=ae*b;F.append("line").attr("x1",z).attr("id","dist").attr("y1",y).attr("x2",ag).attr("y2",ah).attr("stroke-width",1).attr("stroke","green");F.append("line").attr("x1",x.point.x*b).attr("id","dist").attr("y1",(1-x.point.y)*d).attr("x2",x.point.x*b).attr("y2",d).attr("stroke-width",1).attr("stroke","red");F.append("line").attr("x1",x.point.x*b).attr("id","dist").attr("y1",(1-x.point.y)*d).attr("x2",1).attr("y2",(1-x.point.y)*d).attr("stroke-width",1).attr("stroke","blue")})}};S.on("elementMouseover.point",function(x){if(g){ab._calls.highlightPoint(x.seriesIndex,x.pointIndex,true);ab._calls.highlightPoint2(x)}});S.on("elementMouseout.point",function(x){if(g){ab._calls.highlightPoint(x.seriesIndex,x.pointIndex,false)}});ab._options=Object.create({},{width:{get:function(){return b},set:function(x){b=x}},height:{get:function(){return d},set:function(x){d=x}},xScale:{get:function(){return P},set:function(x){P=x}},yScale:{get:function(){return N},set:function(x){N=x}},pointScale:{get:function(){return K},set:function(x){K=x}},xDomain:{get:function(){return f},set:function(x){f=x}},yDomain:{get:function(){return e},set:function(x){e=x}},pointDomain:{get:function(){return j},set:function(x){j=x}},xRange:{get:function(){return X},set:function(x){X=x}},yRange:{get:function(){return u},set:function(x){u=x}},pointRange:{get:function(){return D},set:function(x){D=x}},forceX:{get:function(){return L},set:function(x){L=x}},forceY:{get:function(){return J},set:function(x){J=x}},forcePoint:{get:function(){return Y},set:function(x){Y=x}},interactive:{get:function(){return g},set:function(x){g=x}},pointActive:{get:function(){return Z},set:function(x){Z=x}},padDataOuter:{get:function(){return k},set:function(x){k=x}},padData:{get:function(){return R},set:function(x){R=x}},clipEdge:{get:function(){return E},set:function(x){E=x}},clipVoronoi:{get:function(){return ac},set:function(x){ac=x}},clipRadius:{get:function(){return r},set:function(x){r=x}},showVoronoi:{get:function(){return l},set:function(x){l=x}},id:{get:function(){return I},set:function(x){I=x}},interactiveUpdateDelay:{get:function(){return q},set:function(x){q=x}},showLabels:{get:function(){return aa},set:function(x){aa=x}},pointBorderColor:{get:function(){return t},set:function(x){t=x}},x:{get:function(){return U},set:function(x){U=d3.functor(x)}},y:{get:function(){return T},set:function(x){T=d3.functor(x)}},pointSize:{get:function(){return G},set:function(x){G=d3.functor(x)}},pointShape:{get:function(){return o},set:function(x){o=d3.functor(x)}},margin:{get:function(){return h},set:function(x){h.top=x.top!==undefined?x.top:h.top;h.right=x.right!==undefined?x.right:h.right;h.bottom=x.bottom!==undefined?x.bottom:h.bottom;h.left=x.left!==undefined?x.left:h.left}},duration:{get:function(){return A},set:function(x){A=x;M.reset(A)}},color:{get:function(){return C},set:function(x){C=nv.utils.getColor(x)}},useVoronoi:{get:function(){return ad},set:function(x){ad=x;if(ad===false){ac=false}}}});nv.utils.initOptions(ab);return ab};nv.models.scatterChart=function(){var q=nv.models.scatter(),n=nv.models.axis(),c=nv.models.axis(),d=nv.models.legend(),v=nv.models.distribution(),t=nv.models.distribution(),i=nv.models.tooltip();var w={top:30,right:20,bottom:50,left:75},e=null,B=null,z=null,s=null,C=nv.utils.defaultColor(),p=q.xScale(),o=q.yScale(),b=false,I=false,F=true,G=true,r=true,m=false,h=nv.utils.state(),k=null,H=d3.dispatch("stateChange","changeState","renderEnd"),g=null,a=250,A=false;q.xScale(p).yScale(o);n.orient("bottom").tickPadding(10);c.orient((m)?"right":"left").tickPadding(10);v.axis("x");t.axis("y");i.headerFormatter(function(y,x){return n.tickFormat()(y,x)}).valueFormatter(function(y,x){return c.tickFormat()(y,x)});var E,f,j=nv.utils.renderWatch(H,a);var l=function(x){return function(){return{active:x.map(function(y){return !y.disabled})}}};var D=function(x){return function(y){if(y.active!==undefined){x.forEach(function(K,J){K.disabled=!y.active[J]})}}};function u(x){j.reset();j.models(q);if(G){j.models(n)}if(r){j.models(c)}if(b){j.models(v)}if(I){j.models(t)}x.each(function(O){var Q=this;s=d3.select(this);nv.utils.initSVG(s);var T=nv.utils.availableWidth(B,s,w),K=nv.utils.availableHeight(z,s,w);u.update=function(){if(a===0){s.call(u)}else{s.transition().duration(a).call(u)}};u.container=this;h.setter(D(O),u.update).getter(l(O)).update();h.disabled=O.map(function(U){return !!U.disabled});if(!k){var R;k={};for(R in h){if(h[R] instanceof Array){k[R]=h[R].slice(0)}else{k[R]=h[R]}}}if(!O||!O.length||!O.filter(function(U){return U.values.length}).length){nv.utils.noData(u,s);j.renderEnd("scatter immediate");return u}else{s.selectAll(".nv-noData").remove()}p=q.xScale();o=q.yScale();var J=s.selectAll("g.nv-wrap.nv-scatterChart").data([O]);var M=J.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+q.id());var y=M.append("g");var P=J.select("g");y.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none");y.append("g").attr("class","nv-x nv-axis");y.append("g").attr("class","nv-y nv-axis");y.append("g").attr("class","nv-scatterWrap");y.append("g").attr("class","nv-regressionLinesWrap");y.append("g").attr("class","nv-distWrap");y.append("g").attr("class","nv-legendWrap");if(m){P.select(".nv-y.nv-axis").attr("transform","translate("+T+",0)")}if(!F){P.select(".nv-legendWrap").selectAll("*").remove()}else{var S=T;d.width(S);J.select(".nv-legendWrap").datum(O).call(d);if(!e&&d.height()!==w.top){w.top=d.height();K=nv.utils.availableHeight(z,s,w)}J.select(".nv-legendWrap").attr("transform","translate(0,"+(-w.top)+")")}J.attr("transform","translate("+w.left+","+w.top+")");q.width(T).height(K).color(O.map(function(V,U){V.color=V.color||C(V,U);return V.color}).filter(function(V,U){return !O[U].disabled})).showLabels(A);J.select(".nv-scatterWrap").datum(O.filter(function(U){return !U.disabled})).call(q);J.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+q.id()+")");var N=J.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(U){return U});N.enter().append("g").attr("class","nv-regLines");var L=N.selectAll(".nv-regLine").data(function(U){return[U]});L.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0);L.filter(function(U){return U.intercept&&U.slope}).watchTransition(j,"scatterPlusLineChart: regline").attr("x1",p.range()[0]).attr("x2",p.range()[1]).attr("y1",function(V,U){return o(p.domain()[0]*V.slope+V.intercept)}).attr("y2",function(V,U){return o(p.domain()[1]*V.slope+V.intercept)}).style("stroke",function(W,V,U){return C(W,U)}).style("stroke-opacity",function(V,U){return(V.disabled||typeof V.slope==="undefined"||typeof V.intercept==="undefined")?0:1});if(G){n.scale(p)._ticks(nv.utils.calcTicksX(T/100,O)).tickSize(-K,0);P.select(".nv-x.nv-axis").attr("transform","translate(0,"+o.range()[0]+")").call(n)}if(r){c.scale(o)._ticks(nv.utils.calcTicksY(K/36,O)).tickSize(-T,0);P.select(".nv-y.nv-axis").call(c)}if(b){v.getData(q.x()).scale(p).width(T).color(O.map(function(V,U){return V.color||C(V,U)}).filter(function(V,U){return !O[U].disabled}));y.select(".nv-distWrap").append("g").attr("class","nv-distributionX");P.select(".nv-distributionX").attr("transform","translate(0,"+o.range()[0]+")").datum(O.filter(function(U){return !U.disabled})).call(v)}if(I){t.getData(q.y()).scale(o).width(K).color(O.map(function(V,U){return V.color||C(V,U)}).filter(function(V,U){return !O[U].disabled}));y.select(".nv-distWrap").append("g").attr("class","nv-distributionY");P.select(".nv-distributionY").attr("transform","translate("+(m?T:-t.size())+",0)").datum(O.filter(function(U){return !U.disabled})).call(t)}d.dispatch.on("stateChange",function(V){for(var U in V){h[U]=V[U]}H.stateChange(h);u.update()});H.on("changeState",function(U){if(typeof U.disabled!=="undefined"){O.forEach(function(W,V){W.disabled=U.disabled[V]});h.disabled=U.disabled}u.update()});q.dispatch.on("elementMouseout.tooltip",function(U){i.hidden(true);s.select(".nv-chart-"+q.id()+" .nv-series-"+U.seriesIndex+" .nv-distx-"+U.pointIndex).attr("y1",0);s.select(".nv-chart-"+q.id()+" .nv-series-"+U.seriesIndex+" .nv-disty-"+U.pointIndex).attr("x2",t.size())});q.dispatch.on("elementMouseover.tooltip",function(U){s.select(".nv-series-"+U.seriesIndex+" .nv-distx-"+U.pointIndex).attr("y1",U.relativePos[1]-K);s.select(".nv-series-"+U.seriesIndex+" .nv-disty-"+U.pointIndex).attr("x2",U.relativePos[0]+v.size());i.data(U).hidden(false)});E=p.copy();f=o.copy()});j.renderEnd("scatter with line immediate");return u}u.dispatch=H;u.scatter=q;u.legend=d;u.xAxis=n;u.yAxis=c;u.distX=v;u.distY=t;u.tooltip=i;u.options=nv.utils.optionsFunc.bind(u);u._options=Object.create({},{width:{get:function(){return B},set:function(x){B=x}},height:{get:function(){return z},set:function(x){z=x}},container:{get:function(){return s},set:function(x){s=x}},showDistX:{get:function(){return b},set:function(x){b=x}},showDistY:{get:function(){return I},set:function(x){I=x}},showLegend:{get:function(){return F},set:function(x){F=x}},showXAxis:{get:function(){return G},set:function(x){G=x}},showYAxis:{get:function(){return r},set:function(x){r=x}},defaultState:{get:function(){return k},set:function(x){k=x}},noData:{get:function(){return g},set:function(x){g=x}},duration:{get:function(){return a},set:function(x){a=x}},showLabels:{get:function(){return A},set:function(x){A=x}},margin:{get:function(){return w},set:function(x){if(x.top!==undefined){w.top=x.top;e=x.top}w.right=x.right!==undefined?x.right:w.right;w.bottom=x.bottom!==undefined?x.bottom:w.bottom;w.left=x.left!==undefined?x.left:w.left}},rightAlignYAxis:{get:function(){return m},set:function(x){m=x;c.orient((x)?"right":"left")}},color:{get:function(){return C},set:function(x){C=nv.utils.getColor(x);d.color(C);v.color(C);t.color(C)}}});nv.utils.inheritOptions(u,q);nv.utils.initOptions(u);return u};